.luacheckrc 40 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693
  1. local empty = {}
  2. local read_write = { read_only = false }
  3. local read_write_class = { read_only = false, other_fields = true }
  4. local read_only = { read_only = true }
  5. local function def_fields(field_list)
  6. local fields = {}
  7. for _, field in ipairs(field_list) do
  8. fields[field] = empty
  9. end
  10. return { fields = fields }
  11. end
  12. local enum = def_fields({"Value", "Name"})
  13. local function def_enum(field_list)
  14. local fields = {}
  15. for _, field in ipairs(field_list) do
  16. fields[field] = enum
  17. end
  18. fields["GetEnumItems"] = read_only
  19. return { fields = fields }
  20. end
  21. stds.roblox = {
  22. globals = {
  23. plugin = {
  24. other_fields = true,
  25. },
  26. script = {
  27. other_fields = true,
  28. fields = {
  29. Source = read_write;
  30. GetHash = read_write;
  31. Disabled = read_write;
  32. LinkedSource = read_write;
  33. CurrentEditor = read_write_class;
  34. Archivable = read_write;
  35. ClassName = read_only;
  36. DataCost = read_only;
  37. Name = read_write;
  38. Parent = read_write_class;
  39. RobloxLocked = read_write;
  40. ClearAllChildren = read_write;
  41. Clone = read_write;
  42. Destroy = read_write;
  43. FindFirstAncestor = read_write;
  44. FindFirstAncestorOfClass = read_write;
  45. FindFirstAncestorWhichIsA = read_write;
  46. FindFirstChild = read_write;
  47. FindFirstChildOfClass = read_write;
  48. FindFirstChildWhichIsA = read_write;
  49. GetChildren = read_write;
  50. GetDebugId = read_write;
  51. GetDescendants = read_write;
  52. GetFullName = read_write;
  53. GetPropertyChangedSignal = read_write;
  54. IsA = read_write;
  55. IsAncestorOf = read_write;
  56. IsDescendantOf = read_write;
  57. WaitForChild = read_write;
  58. AncestryChanged = read_write;
  59. Changed = read_write;
  60. ChildAdded = read_write;
  61. ChildRemoved = read_write;
  62. DescendantAdded = read_write;
  63. DescendantRemoving = read_write;
  64. }
  65. },
  66. game = {
  67. other_fields = true,
  68. fields = {
  69. CreatorId = read_only;
  70. CreatorType = read_only;
  71. GameId = read_only;
  72. GearGenreSetting = read_only;
  73. Genre = read_only;
  74. IsSFFlagsLoaded = read_only;
  75. JobId = read_only;
  76. PlaceId = read_only;
  77. PlaceVersion = read_only;
  78. PrivateServerId = read_only;
  79. PrivateServerOwnerId = read_only;
  80. Workspace = read_only;
  81. BindToClose = read_write;
  82. GetJobIntervalPeakFraction = read_write;
  83. GetJobTimePeakFraction = read_write;
  84. GetJobsExtendedStats = read_write;
  85. GetJobsInfo = read_write;
  86. GetObjects = read_write;
  87. IsGearTypeAllowed = read_write;
  88. IsLoaded = read_write;
  89. Load = read_write;
  90. OpenScreenshotsFolder = read_write;
  91. OpenVideosFolder = read_write;
  92. ReportInGoogleAnalytics = read_write;
  93. SetPlaceId = read_write;
  94. SetUniverseId = read_write;
  95. Shutdown = read_write;
  96. HttpGetAsync = read_write;
  97. HttpPostAsync = read_write;
  98. GraphicsQualityChangeRequest = read_write;
  99. Loaded = read_write;
  100. ScreenshotReady = read_write;
  101. FindService = read_write;
  102. GetService = read_write;
  103. Close = read_write;
  104. CloseLate = read_write;
  105. ServiceAdded = read_write;
  106. ServiceRemoving = read_write;
  107. Archivable = read_write;
  108. ClassName = read_only;
  109. DataCost = read_only;
  110. Name = read_write;
  111. Parent = read_write_class;
  112. RobloxLocked = read_write;
  113. ClearAllChildren = read_write;
  114. Clone = read_write;
  115. Destroy = read_write;
  116. FindFirstAncestor = read_write;
  117. FindFirstAncestorOfClass = read_write;
  118. FindFirstAncestorWhichIsA = read_write;
  119. FindFirstChild = read_write;
  120. FindFirstChildOfClass = read_write;
  121. FindFirstChildWhichIsA = read_write;
  122. GetChildren = read_write;
  123. GetDebugId = read_write;
  124. GetDescendants = read_write;
  125. GetFullName = read_write;
  126. GetPropertyChangedSignal = read_write;
  127. IsA = read_write;
  128. IsAncestorOf = read_write;
  129. IsDescendantOf = read_write;
  130. WaitForChild = read_write;
  131. AncestryChanged = read_write;
  132. Changed = read_write;
  133. ChildAdded = read_write;
  134. ChildRemoved = read_write;
  135. DescendantAdded = read_write;
  136. DescendantRemoving = read_write;
  137. }
  138. },
  139. workspace = {
  140. other_fields = true,
  141. fields = {
  142. AllowThirdPartySales = read_write;
  143. AutoJointsMode = read_write;
  144. CurrentCamera = read_write_class;
  145. DistributedGameTime = read_write;
  146. FallenPartsDestroyHeight = read_write;
  147. FilteringEnabled = read_write;
  148. Gravity = read_write;
  149. PGSPhysicsSolverEnabled = read_write;
  150. StreamingEnabled = read_write;
  151. StreamingMinRadius = read_write;
  152. StreamingTargetRadius = read_write;
  153. TemporaryLegacyPhysicsSolverOverride = read_write;
  154. Terrain = read_only;
  155. BreakJoints = read_write;
  156. ExperimentalSolverIsEnabled = read_write;
  157. FindPartOnRay = read_write;
  158. FindPartOnRayWithIgnoreList = read_write;
  159. FindPartOnRayWithWhitelist = read_write;
  160. FindPartsInRegion3 = read_write;
  161. FindPartsInRegion3WithIgnoreList = read_write;
  162. FindPartsInRegion3WithWhiteList = read_write;
  163. GetNumAwakeParts = read_write;
  164. GetPhysicsThrottling = read_write;
  165. GetRealPhysicsFPS = read_write;
  166. IsRegion3Empty = read_write;
  167. IsRegion3EmptyWithIgnoreList = read_write;
  168. JoinToOutsiders = read_write;
  169. MakeJoints = read_write;
  170. PGSIsEnabled = read_write;
  171. SetPhysicsThrottleEnabled = read_write;
  172. UnjoinFromOutsiders = read_write;
  173. ZoomToExtents = read_write;
  174. PrimaryPart = read_write_class;
  175. BreakJoints = read_write;
  176. GetBoundingBox = read_write;
  177. GetExtentsSize = read_write;
  178. GetPrimaryPartCFrame = read_write;
  179. MakeJoints = read_write;
  180. MoveTo = read_write;
  181. SetPrimaryPartCFrame = read_write;
  182. TranslateBy = read_write;
  183. Archivable = read_write;
  184. ClassName = read_only;
  185. DataCost = read_only;
  186. Name = read_write;
  187. Parent = read_write_class;
  188. RobloxLocked = read_write;
  189. ClearAllChildren = read_write;
  190. Clone = read_write;
  191. Destroy = read_write;
  192. FindFirstAncestor = read_write;
  193. FindFirstAncestorOfClass = read_write;
  194. FindFirstAncestorWhichIsA = read_write;
  195. FindFirstChild = read_write;
  196. FindFirstChildOfClass = read_write;
  197. FindFirstChildWhichIsA = read_write;
  198. GetChildren = read_write;
  199. GetDebugId = read_write;
  200. GetDescendants = read_write;
  201. GetFullName = read_write;
  202. GetPropertyChangedSignal = read_write;
  203. IsA = read_write;
  204. IsAncestorOf = read_write;
  205. IsDescendantOf = read_write;
  206. WaitForChild = read_write;
  207. AncestryChanged = read_write;
  208. Changed = read_write;
  209. ChildAdded = read_write;
  210. ChildRemoved = read_write;
  211. DescendantAdded = read_write;
  212. DescendantRemoving = read_write;
  213. }
  214. },
  215. },
  216. read_globals = {
  217. -- Methods
  218. delay = empty;
  219. settings = empty;
  220. spawn = empty;
  221. tick = empty;
  222. time = empty;
  223. typeof = empty;
  224. version = empty;
  225. wait = empty;
  226. warn = empty;
  227. -- Libraries
  228. math = def_fields({"abs", "acos", "asin", "atan", "atan2", "ceil", "clamp", "cos", "cosh",
  229. "deg", "exp", "floor", "fmod", "frexp", "ldexp", "log", "log10", "max", "min", "modf",
  230. "noise", "pow", "rad", "random", "randomseed", "sign", "sin", "sinh", "sqrt", "tan",
  231. "tanh", "huge", "pi"}),
  232. debug = def_fields({"traceback", "profilebegin", "profileend"}),
  233. utf8 = def_fields({"char", "codes", "codepoint", "len", "offset", "graphemes",
  234. "nfcnormalize", "nfdnormalize", "charpattern"}),
  235. -- Types
  236. Axes = def_fields({"new"}),
  237. BrickColor = def_fields({"new", "palette", "random", "White", "Gray", "DarkGray", "Black",
  238. "Red", "Yellow", "Green", "Blue"}),
  239. CFrame = def_fields({"new", "fromEulerAnglesXYZ", "Angles", "fromOrientation",
  240. "fromAxisAngle", "fromMatrix"}),
  241. Color3 = def_fields({"new", "fromRGB", "fromHSV", "toHSV"}),
  242. ColorSequence = def_fields({"new"}),
  243. ColorSequenceKeypoint = def_fields({"new"}),
  244. DockWidgetPluginGuiInfo = def_fields({"new"}),
  245. Enums = def_fields({"GetEnums"}),
  246. Faces = def_fields({"new"}),
  247. Instance = def_fields({"new"}),
  248. NumberRange = def_fields({"new"}),
  249. NumberSequence = def_fields({"new"}),
  250. NumberSequenceKeypoint = def_fields({"new"}),
  251. PhysicalProperties = def_fields({"new"}),
  252. Random = def_fields({"new"}),
  253. Ray = def_fields({"new"}),
  254. Rect = def_fields({"new"}),
  255. Region3 = def_fields({"new"}),
  256. Region3int16 = def_fields({"new"}),
  257. TweenInfo = def_fields({"new"}),
  258. UDim = def_fields({"new"}),
  259. UDim2 = def_fields({"new"}),
  260. Vector2 = def_fields({"new"}),
  261. Vector2int16 = def_fields({"new"}),
  262. Vector3 = def_fields({"new", "FromNormalId", "FromAxis"}),
  263. Vector3int16 = def_fields({"new"}),
  264. -- Enums
  265. Enum = {
  266. readonly = true,
  267. fields = {
  268. ActionType = def_enum({"Nothing", "Pause", "Lose", "Draw", "Win"}),
  269. ActuatorRelativeTo = def_enum({"Attachment0", "Attachment1", "World"}),
  270. ActuatorType = def_enum({"None", "Motor", "Servo"}),
  271. AnimationPriority = def_enum({"Idle", "Movement", "Action", "Core"}),
  272. AppShellActionType = def_enum({"None", "OpenApp", "TapChatTab",
  273. "TapConversationEntry", "TapAvatarTab", "ReadConversation", "TapGamePageTab",
  274. "TapHomePageTab", "GamePageLoaded", "HomePageLoaded", "AvatarEditorPageLoaded"}),
  275. AspectType = def_enum({"FitWithinMaxSize", "ScaleWithParentSize"}),
  276. AssetType = def_enum({"Image", "TeeShirt", "Audio", "Mesh", "Lua", "Hat", "Place",
  277. "Model", "Shirt", "Pants", "Decal", "Head", "Face", "Gear", "Badge",
  278. "Animation", "Torso", "RightArm", "LeftArm", "LeftLeg", "RightLeg", "Package",
  279. "GamePass", "Plugin", "MeshPart", "HairAccessory", "FaceAccessory",
  280. "NeckAccessory", "ShoulderAccessory", "FrontAccessory", "BackAccessory",
  281. "WaistAccessory", "ClimbAnimation", "DeathAnimation", "FallAnimation",
  282. "IdleAnimation", "JumpAnimation", "RunAnimation", "SwimAnimation",
  283. "WalkAnimation", "PoseAnimation", "EarAccessory", "EyeAccessory"}),
  284. AutoJointsMode = def_enum({"Default", "Explicit", "LegacyImplicit"}),
  285. AvatarContextMenuOption = def_enum({"Friend", "Chat", "Emote"}),
  286. AvatarJointPositionType = def_enum({"Fixed", "ArtistIntent"}),
  287. Axis = def_enum({"X", "Y", "Z"}),
  288. BinType = def_enum({"Script", "GameTool", "Grab", "Clone", "Hammer"}),
  289. BodyPart = def_enum({"Head", "Torso", "LeftArm", "RightArm", "LeftLeg", "RightLeg"}),
  290. BodyPartR15 = def_enum({"Head", "UpperTorso", "LowerTorso", "LeftFoot",
  291. "LeftLowerLeg", "LeftUpperLeg", "RightFoot", "RightLowerLeg", "RightUpperLeg",
  292. "LeftHand", "LeftLowerArm", "LeftUpperArm", "RightHand", "RightLowerArm",
  293. "RightUpperArm", "RootPart", "Unknown"}),
  294. Button = def_enum({"Jump", "Dismount"}),
  295. ButtonStyle = def_enum({"Custom", "RobloxButtonDefault", "RobloxButton",
  296. "RobloxRoundButton", "RobloxRoundDefaultButton", "RobloxRoundDropdownButton"}),
  297. CameraMode = def_enum({"Classic", "LockFirstPerson"}),
  298. CameraPanMode = def_enum({"Classic", "EdgeBump"}),
  299. CameraType = def_enum({"Fixed", "Watch", "Attach", "Track", "Follow", "Custom",
  300. "Scriptable", "Orbital"}),
  301. CellBlock = def_enum({"Solid", "VerticalWedge", "CornerWedge",
  302. "InverseCornerWedge", "HorizontalWedge"}),
  303. CellMaterial = def_enum({"Empty", "Grass", "Sand", "Brick", "Granite", "Asphalt",
  304. "Iron", "Aluminum", "Gold", "WoodPlank", "WoodLog", "Gravel", "CinderBlock",
  305. "MossyStone", "Cement", "RedPlastic", "BluePlastic", "Water"}),
  306. CellOrientation = def_enum({"NegZ", "X", "Z", "NegX"}),
  307. CenterDialogType = def_enum({"UnsolicitedDialog", "PlayerInitiatedDialog",
  308. "ModalDialog", "QuitDialog"}),
  309. ChatCallbackType = def_enum({"OnCreatingChatWindow", "OnClientSendingMessage",
  310. "OnClientFormattingMessage", "OnServerReceivingMessage"}),
  311. ChatColor = def_enum({"Blue", "Green", "Red", "White"}),
  312. ChatMode = def_enum({"Menu", "TextAndMenu"}),
  313. ChatPrivacyMode = def_enum({"AllUsers", "NoOne", "Friends"}),
  314. ChatStyle = def_enum({"Classic", "Bubble", "ClassicAndBubble"}),
  315. CollisionFidelity = def_enum({"Default", "Hull", "Box"}),
  316. ComputerCameraMovementMode = def_enum({"Default", "Follow", "Classic", "Orbital"}),
  317. ComputerMovementMode = def_enum({"Default", "KeyboardMouse", "ClickToMove"}),
  318. ConnectionError = def_enum({"OK", "DisconnectErrors", "DisconnectBadhash",
  319. "DisconnectSecurityKeyMismatch", "DisconnectNewSecurityKeyMismatch",
  320. "DisconnectProtocolMismatch", "DisconnectReceivePacketError",
  321. "DisconnectReceivePacketStreamError", "DisconnectSendPacketError",
  322. "DisconnectIllegalTeleport", "DisconnectDuplicatePlayer",
  323. "DisconnectDuplicateTicket", "DisconnectTimeout", "DisconnectLuaKick",
  324. "DisconnectOnRemoteSysStats", "DisconnectHashTimeout",
  325. "DisconnectCloudEditKick", "DisconnectPlayerless", "DisconnectEvicted",
  326. "DisconnectDevMaintenance", "DisconnectRobloxMaintenance", "DisconnectRejoin",
  327. "DisconnectConnectionLost", "DisconnectIdle", "DisconnectRaknetErrors",
  328. "DisconnectWrongVersion", "PlacelaunchErrors", "PlacelaunchDisabled",
  329. "PlacelaunchError", "PlacelaunchGameEnded", "PlacelaunchGameFull",
  330. "PlacelaunchUserLeft", "PlacelaunchRestricted", "PlacelaunchUnauthorized",
  331. "PlacelaunchFlooded", "PlacelaunchHashExpired", "PlacelaunchHashException",
  332. "PlacelaunchPartyCannotFit", "PlacelaunchHttpError",
  333. "PlacelaunchCustomMessage", "PlacelaunchOtherError", "TeleportErrors",
  334. "TeleportFailure", "TeleportGameNotFound", "TeleportGameEnded",
  335. "TeleportGameFull", "TeleportUnauthorized", "TeleportFlooded",
  336. "TeleportIsTeleporting"}),
  337. ConnectionState = def_enum({"Connected", "Disconnected"}),
  338. ContextActionPriority = def_enum({"Low", "Medium", "Default", "High"}),
  339. ContextActionResult = def_enum({"Pass", "Sink"}),
  340. ControlMode = def_enum({"MouseLockSwitch", "Classic"}),
  341. CoreGuiType = def_enum({"PlayerList", "Health", "Backpack", "Chat", "All"}),
  342. CreatorType = def_enum({"User", "Group"}),
  343. CurrencyType = def_enum({"Default", "Robux", "Tix"}),
  344. CustomCameraMode = def_enum({"Default", "Follow", "Classic"}),
  345. DEPRECATED_DebuggerDataModelPreference = def_enum({"Server", "Client"}),
  346. DataStoreRequestType = def_enum({"GetAsync", "SetIncrementAsync", "UpdateAsync",
  347. "GetSortedAsync", "SetIncrementSortedAsync", "OnUpdate"}),
  348. DevCameraOcclusionMode = def_enum({"Zoom", "Invisicam"}),
  349. DevComputerCameraMovementMode = def_enum({"UserChoice", "Classic", "Follow",
  350. "Orbital"}),
  351. DevComputerMovementMode = def_enum({"UserChoice", "KeyboardMouse", "ClickToMove",
  352. "Scriptable"}),
  353. DevTouchCameraMovementMode = def_enum({"UserChoice", "Classic", "Follow",
  354. "Orbital"}),
  355. DevTouchMovementMode = def_enum({"UserChoice", "Thumbstick", "DPad", "Thumbpad",
  356. "ClickToMove", "Scriptable", "DynamicThumbstick"}),
  357. DeveloperMemoryTag = def_enum({"Internal", "HttpCache", "Instances", "Signals",
  358. "LuaHeap", "Script", "PhysicsCollision", "PhysicsParts", "GraphicsSolidModels",
  359. "GraphicsMeshParts", "GraphicsParticles", "GraphicsParts",
  360. "GraphicsSpatialHash", "GraphicsTerrain", "GraphicsTexture",
  361. "GraphicsTextureCharacter", "Sounds", "StreamingSounds", "TerrainVoxels",
  362. "Gui", "Animation", "Navigation"}),
  363. DialogBehaviorType = def_enum({"SinglePlayer", "MultiplePlayers"}),
  364. DialogPurpose = def_enum({"Quest", "Help", "Shop"}),
  365. DialogTone = def_enum({"Neutral", "Friendly", "Enemy"}),
  366. DominantAxis = def_enum({"Width", "Height"}),
  367. EasingDirection = def_enum({"In", "Out", "InOut"}),
  368. EasingStyle = def_enum({"Linear", "Sine", "Back", "Quad", "Quart", "Quint",
  369. "Bounce", "Elastic"}),
  370. ElasticBehavior = def_enum({"WhenScrollable", "Always", "Never"}),
  371. EnviromentalPhysicsThrottle = def_enum({"DefaultAuto", "Disabled", "Always",
  372. "Skip2", "Skip4", "Skip8", "Skip16"}),
  373. ErrorReporting = def_enum({"DontReport", "Prompt", "Report"}),
  374. ExplosionType = def_enum({"NoCraters", "Craters", "CratersAndDebris"}),
  375. FillDirection = def_enum({"Horizontal", "Vertical"}),
  376. FilterResult = def_enum({"Rejected", "Accepted"}),
  377. Font = def_enum({"Legacy", "Arial", "ArialBold", "SourceSans", "SourceSansBold",
  378. "SourceSansSemibold", "SourceSansLight", "SourceSansItalic", "Bodoni",
  379. "Garamond", "Cartoon", "Code", "Highway", "SciFi", "Arcade", "Fantasy",
  380. "Antique", "Gotham", "GothamSemibold", "GothamBold", "GothamBlack"}),
  381. FontSize = def_enum({"Size8", "Size9", "Size10", "Size11", "Size12", "Size14",
  382. "Size18", "Size24", "Size36", "Size48", "Size28", "Size32", "Size42", "Size60",
  383. "Size96"}),
  384. FormFactor = def_enum({"Symmetric", "Brick", "Plate", "Custom"}),
  385. FrameStyle = def_enum({"Custom", "ChatBlue", "RobloxSquare", "RobloxRound",
  386. "ChatGreen", "ChatRed", "DropShadow"}),
  387. FramerateManagerMode = def_enum({"Automatic", "On", "Off"}),
  388. FriendRequestEvent = def_enum({"Issue", "Revoke", "Accept", "Deny"}),
  389. FriendStatus = def_enum({"Unknown", "NotFriend", "Friend", "FriendRequestSent",
  390. "FriendRequestReceived"}),
  391. FunctionalTestResult = def_enum({"Passed", "Warning", "Error"}),
  392. GameAvatarType = def_enum({"R6", "R15", "PlayerChoice"}),
  393. GearGenreSetting = def_enum({"AllGenres", "MatchingGenreOnly"}),
  394. GearType = def_enum({"MeleeWeapons", "RangedWeapons", "Explosives", "PowerUps",
  395. "NavigationEnhancers", "MusicalInstruments", "SocialItems", "BuildingTools",
  396. "Transport"}),
  397. Genre = def_enum({"All", "TownAndCity", "Fantasy", "SciFi", "Ninja", "Scary",
  398. "Pirate", "Adventure", "Sports", "Funny", "WildWest", "War", "SkatePark",
  399. "Tutorial"}),
  400. GraphicsMode = def_enum({"Automatic", "Direct3D9", "Direct3D11", "OpenGL", "Metal",
  401. "Vulkan", "NoGraphics"}),
  402. HandlesStyle = def_enum({"Resize", "Movement"}),
  403. HorizontalAlignment = def_enum({"Center", "Left", "Right"}),
  404. HoverAnimateSpeed = def_enum({"VerySlow", "Slow", "Medium", "Fast", "VeryFast"}),
  405. HttpCachePolicy = def_enum({"None", "Full", "DataOnly", "Default",
  406. "InternalRedirectRefresh"}),
  407. HttpContentType = def_enum({"ApplicationJson", "ApplicationXml",
  408. "ApplicationUrlEncoded", "TextPlain", "TextXml"}),
  409. HttpError = def_enum({"OK", "InvalidUrl", "DnsResolve", "ConnectFail",
  410. "OutOfMemory", "TimedOut", "TooManyRedirects", "InvalidRedirect", "NetFail",
  411. "Aborted", "SslConnectFail", "Unknown"}),
  412. HttpRequestType = def_enum({"Default", "MarketplaceService", "Players", "Chat",
  413. "Avatar", "Analytics", "Localization"}),
  414. HumanoidDisplayDistanceType = def_enum({"Viewer", "Subject", "None"}),
  415. HumanoidHealthDisplayType = def_enum({"DisplayWhenDamaged", "AlwaysOn",
  416. "AlwaysOff"}),
  417. HumanoidRigType = def_enum({"R6", "R15"}),
  418. HumanoidStateType = def_enum({"FallingDown", "Running", "RunningNoPhysics",
  419. "Climbing", "StrafingNoPhysics", "Ragdoll", "GettingUp", "Jumping", "Landed",
  420. "Flying", "Freefall", "Seated", "PlatformStanding", "Dead", "Swimming",
  421. "Physics", "None"}),
  422. InOut = def_enum({"Edge", "Inset", "Center"}),
  423. InfoType = def_enum({"Asset", "Product", "GamePass"}),
  424. InitialDockState = def_enum({"Top", "Bottom", "Left", "Right", "Float"}),
  425. InputType = def_enum({"NoInput", "Constant", "Sin"}),
  426. JointCreationMode = def_enum({"All", "Surface", "None"}),
  427. JointType = def_enum({"None", "Rotate", "RotateP", "RotateV", "Glue", "Weld",
  428. "Snap"}),
  429. KeyCode = def_enum({"Unknown", "Backspace", "Tab", "Clear", "Return", "Pause",
  430. "Escape", "Space", "QuotedDouble", "Hash", "Dollar", "Percent", "Ampersand",
  431. "Quote", "LeftParenthesis", "RightParenthesis", "Asterisk", "Plus", "Comma",
  432. "Minus", "Period", "Slash", "Zero", "One", "Two", "Three", "Four", "Five",
  433. "Six", "Seven", "Eight", "Nine", "Colon", "Semicolon", "LessThan", "Equals",
  434. "GreaterThan", "Question", "At", "LeftBracket", "BackSlash", "RightBracket",
  435. "Caret", "Underscore", "Backquote", "A", "B", "C", "D", "E", "F", "G", "H",
  436. "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X",
  437. "Y", "Z", "LeftCurly", "Pipe", "RightCurly", "Tilde", "Delete", "KeypadZero",
  438. "KeypadOne", "KeypadTwo", "KeypadThree", "KeypadFour", "KeypadFive",
  439. "KeypadSix", "KeypadSeven", "KeypadEight", "KeypadNine", "KeypadPeriod",
  440. "KeypadDivide", "KeypadMultiply", "KeypadMinus", "KeypadPlus", "KeypadEnter",
  441. "KeypadEquals", "Up", "Down", "Right", "Left", "Insert", "Home", "End",
  442. "PageUp", "PageDown", "LeftShift", "RightShift", "LeftMeta", "RightMeta",
  443. "LeftAlt", "RightAlt", "LeftControl", "RightControl", "CapsLock", "NumLock",
  444. "ScrollLock", "LeftSuper", "RightSuper", "Mode", "Compose", "Help", "Print",
  445. "SysReq", "Break", "Menu", "Power", "Euro", "Undo", "F1", "F2", "F3", "F4",
  446. "F5", "F6", "F7", "F8", "F9", "F10", "F11", "F12", "F13", "F14", "F15",
  447. "World0", "World1", "World2", "World3", "World4", "World5", "World6", "World7",
  448. "World8", "World9", "World10", "World11", "World12", "World13", "World14",
  449. "World15", "World16", "World17", "World18", "World19", "World20", "World21",
  450. "World22", "World23", "World24", "World25", "World26", "World27", "World28",
  451. "World29", "World30", "World31", "World32", "World33", "World34", "World35",
  452. "World36", "World37", "World38", "World39", "World40", "World41", "World42",
  453. "World43", "World44", "World45", "World46", "World47", "World48", "World49",
  454. "World50", "World51", "World52", "World53", "World54", "World55", "World56",
  455. "World57", "World58", "World59", "World60", "World61", "World62", "World63",
  456. "World64", "World65", "World66", "World67", "World68", "World69", "World70",
  457. "World71", "World72", "World73", "World74", "World75", "World76", "World77",
  458. "World78", "World79", "World80", "World81", "World82", "World83", "World84",
  459. "World85", "World86", "World87", "World88", "World89", "World90", "World91",
  460. "World92", "World93", "World94", "World95", "ButtonX", "ButtonY", "ButtonA",
  461. "ButtonB", "ButtonR1", "ButtonL1", "ButtonR2", "ButtonL2", "ButtonR3",
  462. "ButtonL3", "ButtonStart", "ButtonSelect", "DPadLeft", "DPadRight", "DPadUp",
  463. "DPadDown", "Thumbstick1", "Thumbstick2"}),
  464. KeywordFilterType = def_enum({"Include", "Exclude"}),
  465. Language = def_enum({"Default"}),
  466. LeftRight = def_enum({"Left", "Center", "Right"}),
  467. LevelOfDetailSetting = def_enum({"High", "Medium", "Low"}),
  468. Limb = def_enum({"Head", "Torso", "LeftArm", "RightArm", "LeftLeg", "RightLeg",
  469. "Unknown"}),
  470. ListDisplayMode = def_enum({"Horizontal", "Vertical"}),
  471. ListenerType = def_enum({"Camera", "CFrame", "ObjectPosition", "ObjectCFrame"}),
  472. Material = def_enum({"Plastic", "Wood", "Slate", "Concrete", "CorrodedMetal",
  473. "DiamondPlate", "Foil", "Grass", "Ice", "Marble", "Granite", "Brick", "Pebble",
  474. "Sand", "Fabric", "SmoothPlastic", "Metal", "WoodPlanks", "Cobblestone", "Air",
  475. "Water", "Rock", "Glacier", "Snow", "Sandstone", "Mud", "Basalt", "Ground",
  476. "CrackedLava", "Neon", "Glass", "Asphalt", "LeafyGrass", "Salt", "Limestone",
  477. "Pavement"}),
  478. MembershipType = def_enum({"None", "BuildersClub", "TurboBuildersClub",
  479. "OutrageousBuildersClub"}),
  480. MeshType = def_enum({"Head", "Torso", "Wedge", "Prism", "Pyramid", "ParallelRamp",
  481. "RightAngleRamp", "CornerWedge", "Brick", "Sphere", "Cylinder", "FileMesh"}),
  482. MessageType = def_enum({"MessageOutput", "MessageInfo", "MessageWarning",
  483. "MessageError"}),
  484. MouseBehavior = def_enum({"Default", "LockCenter", "LockCurrentPosition"}),
  485. MoveState = def_enum({"Stopped", "Coasting", "Pushing", "Stopping", "AirFree"}),
  486. NameOcclusion = def_enum({"OccludeAll", "EnemyOcclusion", "NoOcclusion"}),
  487. NetworkOwnership = def_enum({"Automatic", "Manual", "OnContact"}),
  488. NormalId = def_enum({"Top", "Bottom", "Back", "Front", "Right", "Left"}),
  489. OutputLayoutMode = def_enum({"Horizontal", "Vertical"}),
  490. OverrideMouseIconBehavior = def_enum({"None", "ForceShow", "ForceHide"}),
  491. PacketPriority = def_enum({"IMMEDIATE_PRIORITY", "HIGH_PRIORITY",
  492. "MEDIUM_PRIORITY", "LOW_PRIORITY"}),
  493. PartType = def_enum({"Ball", "Block", "Cylinder"}),
  494. PathStatus = def_enum({"Success", "ClosestNoPath", "ClosestOutOfRange",
  495. "FailStartNotEmpty", "FailFinishNotEmpty", "NoPath"}),
  496. PathWaypointAction = def_enum({"Walk", "Jump"}),
  497. PermissionLevelShown = def_enum({"Game", "RobloxGame", "RobloxScript", "Studio",
  498. "Roblox"}),
  499. Platform = def_enum({"Windows", "OSX", "IOS", "Android", "XBoxOne", "PS4", "PS3",
  500. "XBox360", "WiiU", "NX", "Ouya", "AndroidTV", "Chromecast", "Linux", "SteamOS",
  501. "WebOS", "DOS", "BeOS", "UWP", "None"}),
  502. PlaybackState = def_enum({"Begin", "Delayed", "Playing", "Paused", "Completed",
  503. "Cancelled"}),
  504. PlayerActions = def_enum({"CharacterForward", "CharacterBackward", "CharacterLeft",
  505. "CharacterRight", "CharacterJump"}),
  506. PlayerChatType = def_enum({"All", "Team", "Whisper"}),
  507. PoseEasingDirection = def_enum({"Out", "InOut", "In"}),
  508. PoseEasingStyle = def_enum({"Linear", "Constant", "Elastic", "Cubic", "Bounce"}),
  509. PrivilegeType = def_enum({"Owner", "Admin", "Member", "Visitor", "Banned"}),
  510. ProductPurchaseDecision = def_enum({"NotProcessedYet", "PurchaseGranted"}),
  511. QualityLevel = def_enum({"Automatic", "Level01", "Level02", "Level03", "Level04",
  512. "Level05", "Level06", "Level07", "Level08", "Level09", "Level10", "Level11",
  513. "Level12", "Level13", "Level14", "Level15", "Level16", "Level17", "Level18",
  514. "Level19", "Level20", "Level21"}),
  515. R15CollisionType = def_enum({"OuterBox", "InnerBox"}),
  516. RenderFidelity = def_enum({"Automatic", "Precise"}),
  517. RenderPriority = def_enum({"First", "Input", "Camera", "Character", "Last"}),
  518. RenderingTestComparisonMethod = def_enum({"psnr", "diff"}),
  519. ReverbType = def_enum({"NoReverb", "GenericReverb", "PaddedCell", "Room",
  520. "Bathroom", "LivingRoom", "StoneRoom", "Auditorium", "ConcertHall", "Cave",
  521. "Arena", "Hangar", "CarpettedHallway", "Hallway", "StoneCorridor", "Alley",
  522. "Forest", "City", "Mountains", "Quarry", "Plain", "ParkingLot", "SewerPipe",
  523. "UnderWater"}),
  524. RibbonTool = def_enum({"Select", "Scale", "Rotate", "Move", "Transform",
  525. "ColorPicker", "MaterialPicker", "Group", "Ungroup", "None"}),
  526. RollOffMode = def_enum({"Inverse", "Linear", "InverseTapered", "LinearSquare"}),
  527. RotationType = def_enum({"MovementRelative", "CameraRelative"}),
  528. RuntimeUndoBehavior = def_enum({"Aggregate", "Snapshot", "Hybrid"}),
  529. SaveFilter = def_enum({"SaveAll", "SaveWorld", "SaveGame"}),
  530. SavedQualitySetting = def_enum({"Automatic", "QualityLevel1", "QualityLevel2",
  531. "QualityLevel3", "QualityLevel4", "QualityLevel5", "QualityLevel6",
  532. "QualityLevel7", "QualityLevel8", "QualityLevel9", "QualityLevel10"}),
  533. ScaleType = def_enum({"Stretch", "Slice", "Tile", "Fit", "Crop"}),
  534. ScreenOrientation = def_enum({"LandscapeLeft", "LandscapeRight", "LandscapeSensor",
  535. "Portrait", "Sensor"}),
  536. ScrollBarInset = def_enum({"None", "ScrollBar", "Always"}),
  537. ScrollingDirection = def_enum({"X", "Y", "XY"}),
  538. ServerAudioBehavior = def_enum({"Enabled", "Muted", "OnlineGame"}),
  539. SizeConstraint = def_enum({"RelativeXY", "RelativeXX", "RelativeYY"}),
  540. SortOrder = def_enum({"LayoutOrder", "Name", "Custom"}),
  541. SoundType = def_enum({"NoSound", "Boing", "Bomb", "Break", "Click", "Clock",
  542. "Slingshot", "Page", "Ping", "Snap", "Splat", "Step", "StepOn", "Swoosh",
  543. "Victory"}),
  544. SpecialKey = def_enum({"Insert", "Home", "End", "PageUp", "PageDown", "ChatHotkey"}),
  545. StartCorner = def_enum({"TopLeft", "TopRight", "BottomLeft", "BottomRight"}),
  546. Status = def_enum({"Poison", "Confusion"}),
  547. StudioStyleGuideColor = def_enum({"MainBackground", "Titlebar", "Dropdown",
  548. "Tooltip", "Notification", "ScrollBar", "ScrollBarBackground", "TabBar", "Tab",
  549. "RibbonTab", "RibbonTabTopBar", "Button", "MainButton", "RibbonButton",
  550. "ViewPortBackground", "InputFieldBackground", "Item", "TableItem",
  551. "CategoryItem", "GameSettingsTableItem", "GameSettingsTooltip", "EmulatorBar",
  552. "EmulatorDropDown", "ColorPickerFrame", "CurrentMarker", "Border", "Shadow",
  553. "Light", "Dark", "Mid", "MainText", "SubText", "TitlebarText", "BrightText",
  554. "DimmedText", "LinkText", "WarningText", "ErrorText", "InfoText",
  555. "SensitiveText", "ScriptSideWidget", "ScriptBackground", "ScriptText",
  556. "ScriptSelectionText", "ScriptSelectionBackground",
  557. "ScriptFindSelectionBackground", "ScriptMatchingWordSelectionBackground",
  558. "ScriptOperator", "ScriptNumber", "ScriptString", "ScriptComment",
  559. "ScriptPreprocessor", "ScriptKeyword", "ScriptBuiltInFunction",
  560. "ScriptWarning", "ScriptError", "DebuggerCurrentLine", "DebuggerErrorLine",
  561. "DiffFilePathText", "DiffTextHunkInfo", "DiffTextNoChange", "DiffTextAddition",
  562. "DiffTextDeletion", "DiffTextSeparatorBackground",
  563. "DiffTextNoChangeBackground", "DiffTextAdditionBackground",
  564. "DiffTextDeletionBackground", "DiffLineNum", "DiffLineNumSeparatorBackground",
  565. "DiffLineNumNoChangeBackground", "DiffLineNumAdditionBackground",
  566. "DiffLineNumDeletionBackground", "DiffFilePathBackground",
  567. "DiffFilePathBorder", "Separator", "ButtonBorder", "ButtonText",
  568. "InputFieldBorder", "CheckedFieldBackground", "CheckedFieldBorder",
  569. "CheckedFieldIndicator", "HeaderSection", "Midlight", "StatusBar"}),
  570. StudioStyleGuideModifier = def_enum({"Default", "Selected", "Pressed", "Disabled",
  571. "Hover"}),
  572. Style = def_enum({"AlternatingSupports", "BridgeStyleSupports", "NoSupports"}),
  573. SurfaceConstraint = def_enum({"None", "Hinge", "SteppingMotor", "Motor"}),
  574. SurfaceType = def_enum({"Smooth", "Glue", "Weld", "Studs", "Inlet", "Universal",
  575. "Hinge", "Motor", "SteppingMotor", "SmoothNoOutlines"}),
  576. SwipeDirection = def_enum({"Right", "Left", "Up", "Down", "None"}),
  577. TableMajorAxis = def_enum({"RowMajor", "ColumnMajor"}),
  578. Technology = def_enum({"Legacy", "Voxel"}),
  579. TeleportResult = def_enum({"Success", "Failure", "GameNotFound", "GameEnded",
  580. "GameFull", "Unauthorized", "Flooded", "IsTeleporting"}),
  581. TeleportState = def_enum({"RequestedFromServer", "Started", "WaitingForServer",
  582. "Failed", "InProgress"}),
  583. TeleportType = def_enum({"ToPlace", "ToInstance", "ToReservedServer"}),
  584. TextFilterContext = def_enum({"PublicChat", "PrivateChat"}),
  585. TextTruncate = def_enum({"None", "AtEnd"}),
  586. TextXAlignment = def_enum({"Left", "Center", "Right"}),
  587. TextYAlignment = def_enum({"Top", "Center", "Bottom"}),
  588. TextureMode = def_enum({"Stretch", "Wrap", "Static"}),
  589. TextureQueryType = def_enum({"NonHumanoid", "NonHumanoidOrphaned", "Humanoid",
  590. "HumanoidOrphaned"}),
  591. ThreadPoolConfig = def_enum({"Auto", "PerCore1", "PerCore2", "PerCore3",
  592. "PerCore4", "Threads1", "Threads2", "Threads3", "Threads4", "Threads8",
  593. "Threads16"}),
  594. ThrottlingPriority = def_enum({"Extreme", "ElevatedOnServer", "Default"}),
  595. ThumbnailSize = def_enum({"Size48x48", "Size180x180", "Size420x420", "Size60x60",
  596. "Size100x100", "Size150x150", "Size352x352"}),
  597. ThumbnailType = def_enum({"HeadShot", "AvatarBust", "AvatarThumbnail"}),
  598. TickCountSampleMethod = def_enum({"Fast", "Benchmark", "Precise"}),
  599. TopBottom = def_enum({"Top", "Center", "Bottom"}),
  600. TouchCameraMovementMode = def_enum({"Default", "Follow", "Classic", "Orbital"}),
  601. TouchMovementMode = def_enum({"Default", "Thumbstick", "DPad", "Thumbpad",
  602. "ClickToMove", "DynamicThumbstick"}),
  603. TweenStatus = def_enum({"Canceled", "Completed"}),
  604. UITheme = def_enum({"Light", "Dark"}),
  605. UiMessageType = def_enum({"UiMessageError", "UiMessageInfo"}),
  606. UploadSetting = def_enum({"Never", "Ask", "Always"}),
  607. UserCFrame = def_enum({"Head", "LeftHand", "RightHand"}),
  608. UserInputState = def_enum({"Begin", "Change", "End", "Cancel", "None"}),
  609. UserInputType = def_enum({"MouseButton1", "MouseButton2", "MouseButton3",
  610. "MouseWheel", "MouseMovement", "Touch", "Keyboard", "Focus", "Accelerometer",
  611. "Gyro", "Gamepad1", "Gamepad2", "Gamepad3", "Gamepad4", "Gamepad5", "Gamepad6",
  612. "Gamepad7", "Gamepad8", "TextInput", "None"}),
  613. VRTouchpad = def_enum({"Left", "Right"}),
  614. VRTouchpadMode = def_enum({"Touch", "VirtualThumbstick", "ABXY"}),
  615. VerticalAlignment = def_enum({"Center", "Top", "Bottom"}),
  616. VerticalScrollBarPosition = def_enum({"Left", "Right"}),
  617. VibrationMotor = def_enum({"Large", "Small", "LeftTrigger", "RightTrigger",
  618. "LeftHand", "RightHand"}),
  619. VideoQualitySettings = def_enum({"LowResolution", "MediumResolution",
  620. "HighResolution"}),
  621. VirtualInputMode = def_enum({"Recording", "Playing", "None"}),
  622. WaterDirection = def_enum({"NegX", "X", "NegY", "Y", "NegZ", "Z"}),
  623. WaterForce = def_enum({"None", "Small", "Medium", "Strong", "Max"}),
  624. ZIndexBehavior = def_enum({"Global", "Sibling"}),
  625. }
  626. }
  627. },
  628. }
  629. stds.testez = {
  630. read_globals = {
  631. "describe",
  632. "it", "itFOCUS", "itSKIP",
  633. "FOCUS", "SKIP", "HACK_NO_XPCALL",
  634. "expect",
  635. }
  636. }
  637. stds.plugin = {
  638. read_globals = {
  639. "DebuggerManager",
  640. }
  641. }
  642. ignore = {
  643. "212", -- unused arguments
  644. }
  645. std = "lua51+roblox"
  646. files["**/*.spec.lua"] = {
  647. std = "+testez",
  648. }