forked from Spring-SpringBoard/SpringBoard-Core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.luacheckrc
46 lines (39 loc) · 1.51 KB
/
.luacheckrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
self = false
unused = false
-- unused_args = false
global = false -- IDEs tend to have issues with 'global = true', as they work on a per-file basis
allow_defined_top = true
max_line_length = false
codes = true
-- Something to think about in the future
-- max_cyclomatic_complexity = 10
-- Lua (unnecessary)
-- "os", "pairs", "math", "pcall", "table", "type", "unpack", "assert",
-- "ipairs", "tostring", "tonumber", "debug", "getfenv", "setfenv",
-- "loadstring", "io", "xpcall", "string", "collectgarbage",
-- "getmetatable", "setmetatable", "next",
-- Default is probably fine, but anyway
std=lua51
files["libs_sb/utils/luaunit.lua"] = { ignore = {"581"} }
globals = {
-- std extensions
"math.round", "math.bit_or",
"table.ifind", "table.show", "table.save", "table.echo", "table.print",
-- Spring
"Spring", "VFS", "gl", "GL", "Game",
"UnitDefs", "UnitDefNames", "FeatureDefs", "FeatureDefNames",
"WeaponDefs", "WeaponDefNames", "LOG", "KEYSYMS", "CMD", "Script",
"SendToUnsynced", "Platform", "include",
-- Gadgets
"GG", "gadgetHandler", "gadget",
-- Widgets
"WG", "widgetHandler", "widget",
-- Libs
"LCS", "Path", "Table", "Log", "String", "Shaders", "Time", "Array", "StartScript",
-- SB speciifc
"SB", "gfx",
-- SB view fields
"UnitField", "FeatureField", "AreaField", "TriggerField", "UnitTypeField", "FeatureTypeField",
"TeamField", "NumericField", "StringField", "BooleanField", "NumericComparisonField", "IdentityComparisonField",
"PositionField"
}