forked from WoWUIDev/Ace3
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.luacheckrc
105 lines (96 loc) · 1.84 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
std = "lua51"
max_line_length = false
exclude_files = {
"tests/",
".luacheckrc"
}
ignore = {
"11./BINDING_.*", -- Setting an undefined (Keybinding) global variable
"211", -- Unused local variable
"212", -- Unused argument
"213", -- Unused loop variable
"542", -- empty if branch
}
globals = {
"Ace3",
"ChatThrottleLib",
"AceGUIEditBoxInsertLink",
"AceGUIMultiLineEditBoxInsertLink",
"ChatEdit_CustomTabPressed",
"CloseSpecialWindows",
"ColorPickerFrame",
"SlashCmdList", "hash_SlashCmdList",
}
read_globals = {
"geterrorhandler",
"securecallfunction",
"table", "string",
"LibStub",
-- WoW API
"Ambiguate",
"C_ChatInfo",
"C_Spell",
"C_Timer",
"ClearCursor",
"CreateFont",
"CreateFrame",
"Enum.SendAddonMessageResult",
"GetCurrentRegion",
"GetCurrentRegionName",
"GetCursorInfo",
"GetFramerate",
"GetLocale",
"GetMacroInfo",
"GetRealmName",
"GetSpellInfo",
"GetTime",
"hooksecurefunc",
"InCombatLockdown",
"issecurevariable",
"IsAltKeyDown",
"IsControlKeyDown",
"IsLoggedIn",
"IsShiftKeyDown",
"PlaySound",
"RegisterAddonMessagePrefix",
"ReloadUI",
"UnitClass",
"UnitFactionGroup",
"UnitInParty",
"UnitInRaid",
"UnitName",
"UnitRace",
-- FrameXML API
"ChatEdit_GetActiveWindow",
"InterfaceOptions_AddCategory",
"IsSecureCmd",
"SetDesaturation",
"Settings",
-- FrameXML Frames & Constants
"ACCEPT",
"CANCEL",
"ChatFontNormal",
"CLOSE",
"DEFAULT_CHAT_FRAME",
"FONT_COLOR_CODE_CLOSE",
"GameFontDisableSmall",
"GameFontHighlight",
"GameFontHighlightLarge",
"GameFontHighlightSmall",
"GameFontNormal",
"GameFontNormalSmall",
"GameTooltip",
"InterfaceOptionsFramePanelContainer",
"NORMAL_FONT_COLOR",
"NORMAL_FONT_COLOR_CODE",
"NOT_BOUND",
"NUM_CHAT_WINDOWS",
"OKAY",
"OpacitySliderFrame",
"SELECTED_CHAT_FRAME",
"UIParent",
"WOW_PROJECT_ID",
"WOW_PROJECT_MAINLINE",
-- Custom Globals
"GAME_LOCALE",
}