-
Notifications
You must be signed in to change notification settings - Fork 1
/
.luacheckrc
72 lines (60 loc) · 1.23 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
-- vim:ft=lua:
std = "lua51"
-- Show codes for warnings
codes = true
-- Disable colour output
color = false
-- Suppress reports for files without warnings
quiet = 1
-- Disable max line length check
max_line_length = false
-- We don't want to check externals Libs or this config file
exclude_files = {
".release/",
"Libs/",
".luacheckrc",
}
-- Ignored warnings
ignore = {
"211", -- Unused variable
"212", -- Unused argument
"431", -- Shadowed upvalue
}
-- Globals that we read/write
globals = {
-- Our globals
"Broker_BagFu",
}
-- Globals that we only read
read_globals = {
-- Libraries
"LibStub",
-- C API
"C_AddOns",
"C_Container",
-- API Functions
"CloseAllBags",
"GetAddOnMetadata",
"GetBagName",
"GetBuildInfo",
"GetContainerNumFreeSlots",
"GetContainerNumSlots",
"GetItemInfo",
"GetItemInfoInstant",
"GetItemQualityColor",
"InterfaceOptionsFrame_OpenToCategory",
"IsShiftKeyDown",
"Item",
"OpenAllBags",
"ToggleBackpack",
"ToggleBag",
-- FrameXML Globals
"Enum",
"LE_ITEM_QUALITY_COMMON",
"NUM_BAG_SLOTS",
"WOW_PROJECT_ID",
"WOW_PROJECT_MAINLINE",
-- Frames
"ContainerFrame1",
"Settings",
}