-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.luacheckrc
executable file
·72 lines (67 loc) · 1.49 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
std = "none"
max_line_length = false
max_comment_line_length = 120
self = false
exclude_files = {
".luacheckrc",
"ls_Glass/embeds/",
}
ignore = {
"111/LS.*", -- Setting an undefined global variable starting with LS
"111/SLASH_.*", -- Setting an undefined global variable starting with SLASH_
"112/LS.*", -- Mutating an undefined global variable starting with LS
"113/LS.*", -- Accessing an undefined global variable starting with LS
"122", -- Setting a read-only field of a global variable
"211/_G", -- Unused local variable _G
"211/C", -- Unused local variable C
"211/D", -- Unused local variable D
"211/E", -- Unused local variable E
"211/L", -- Unused local variable L
"432", -- Shadowing an upvalue argument
}
globals = {
-- Lua
"getfenv",
"print",
-- FrameXML
"SlashCmdList",
}
read_globals = {
"AddonCompartmentFrame",
"BattlePetTooltip",
"BattlePetToolTip_ShowLink",
"C_AddOns",
"C_Timer",
"ChatAlertFrame",
"ChatFontNormal",
"ChatFrame1",
"ChatFrame2",
"ChatFrameChannelButton",
"ChatFrameMenuButton",
"ColorMixin",
"CreateFont",
"CreateFrame",
"CreateUnsecuredObjectPool",
"DEFAULT_TAB_SELECTED_COLOR_TABLE",
"ElvUI",
"GameFontNormalSmall",
"GameTooltip",
"GeneralDockManager",
"GetChatWindowInfo",
"GetLocale",
"GetTime",
"HideUIPanel",
"InCombatLockdown",
"IsControlKeyDown",
"IsShiftKeyDown",
"LibStub",
"LinkUtil",
"Mixin",
"NORMAL_FONT_COLOR",
"NUM_CHAT_WINDOWS",
"QuickJoinToastButton",
"Settings",
"SettingsPanel",
"TextToSpeechButton",
"UIParent",
}