add gs
This commit is contained in:
@@ -0,0 +1,67 @@
|
||||
stds.roblox = {
|
||||
read_globals = {
|
||||
game = {
|
||||
other_fields = true,
|
||||
},
|
||||
|
||||
-- Roblox globals
|
||||
"script",
|
||||
|
||||
-- Extra functions
|
||||
"tick", "warn", "spawn", "delay",
|
||||
"wait", "settings", "UserSettings", "typeof",
|
||||
|
||||
-- Types
|
||||
"Vector2", "Vector3",
|
||||
"Color3",
|
||||
"UDim", "UDim2",
|
||||
"Ray",
|
||||
"Rect",
|
||||
"CFrame",
|
||||
"Enum",
|
||||
"Instance",
|
||||
"TweenInfo",
|
||||
"Random",
|
||||
"NumberRange",
|
||||
"NumberSequence",
|
||||
"NumberSequenceKeypoint",
|
||||
"ColorSequence",
|
||||
"BrickColor",
|
||||
}
|
||||
}
|
||||
|
||||
stds.testez = {
|
||||
read_globals = {
|
||||
"describe",
|
||||
"it", "itFOCUS", "itSKIP",
|
||||
"FOCUS", "SKIP", "HACK_NO_XPCALL",
|
||||
"expect",
|
||||
}
|
||||
}
|
||||
|
||||
ignore = {
|
||||
"212", -- unused arguments
|
||||
"421", -- shadowing local variable
|
||||
"422", -- shadowing argument
|
||||
"431", -- shadowing upvalue
|
||||
"432", -- shadowing upvalue argument
|
||||
}
|
||||
|
||||
std = "lua51+roblox"
|
||||
|
||||
files["**/*.spec.lua"] = {
|
||||
std = "+testez",
|
||||
ignore = { "631" }, --Line is too long
|
||||
}
|
||||
|
||||
files["**/*Locale.lua"] = {
|
||||
ignore = { "631" }, --Line is too long
|
||||
}
|
||||
|
||||
files["**/Locales/*.lua"] = {
|
||||
ignore = { "631" }, --Line is too long
|
||||
}
|
||||
|
||||
files["**/Legacy/AvatarEditor/*.lua"] = {
|
||||
ignore = { "121", "122", "211", "213", "612", "614", "631", }, -- Bunch of warnings for legacy code
|
||||
}
|
||||
Reference in New Issue
Block a user