forked from beyond-all-reason/Beyond-All-Reason
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.luacheckrc
53 lines (45 loc) · 1.66 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
47
48
49
50
51
52
53
self = false
unused = false
-- unused_args = false
global = false
allow_defined_top = true
max_line_length = false
codes = true
-- Ideally reenable these warnings later
redefined = false
ignore = {
"512", -- Loop can be executed at most once.
"542", -- TODO: empty if branch
"611", -- TODO: line contains only whitespace
"612", -- TODO: line contains trailing whitespace
"614", -- TODO: trailing whitespace in a comment
"621", -- TODO: inconsistent indentation
}
-- Something to think about in the future
-- max_cyclomatic_complexity = 10
-- Default is probably fine, but anyway
std=lua51
globals = {
-- std extensions
"math.round", "math.bit_or", "math.diag", "math.cross_product", "math.triangulate",
"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", "Engine", "include", "COB",
-- GL
"GL_TEXTURE_2D", "GL_HINT_BIT",
-- Gadgets
"GG", "gadgetHandler", "gadget",
-- Widgets
"WG", "widgetHandler", "widget", "LUAUI_DIRNAME", "self",
-- Chili
"Chili", "Checkbox", "Control", "ComboBox", "Button", "Label",
"Line", "EditBox", "Font", "Window", "ScrollPanel", "LayoutPanel",
"Panel", "StackPanel", "Grid", "TextBox", "Image", "TreeView", "Trackbar",
"DetachableTabPanel", "screen0", "Progressbar",
-- Libs
-- "LCS", "Path", "Table", "Log", "String", "Shaders", "Time", "Array", "StartScript",
"CMDTYPE", "COBSCALE", "CallAsTeam", "SYNCED", "loadlib",
}