-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.luacheckrc
60 lines (57 loc) · 1.16 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
std = "lua51"
max_line_length = false
exclude_files = {
".luacheckrc"
}
ignore = {
"211", -- Unused local variable
"211/L", -- Unused local variable "L"
"211/CL", -- Unused local variable "CL"
"212", -- Unused argument
"213", -- Unused loop variable
"231/_.*", -- unused variables starting with _
"311", -- Value assigned to a local variable is unused
"431", -- shadowing upvalue
"542", -- An empty if branch
}
globals = {
-- DBM
"DBM",
"DBM_CORE_L",
"DBM_COMMON_L",
-- Lua
"table.wipe",
-- WoW
"ALTERNATE_POWER_INDEX",
"GUILD_INTEREST_RP",
"PLAYER_DIFFICULTY2",
"C_ChatInfo.RegisterAddonMessagePrefix",
"Ambiguate",
"CheckInteractDistance",
"EJ_GetEncounterInfo",
"GetCVarBool",
"GetInstanceInfo",
"GetLocale",
"GetPartyAssignment",
"GetRaidRosterInfo",
"GetTime",
"IsInGroup",
"SendChatMessage",
"SetCVar",
"SetRaidTarget",
"UnitCastingInfo",
"UnitClass",
"UnitIsFriend",
"UnitExists",
"UnitGroupRolesAssigned",
"UnitGUID",
"UnitHealth",
"UnitHealthMax",
"UnitIsDeadOrGhost",
"UnitIsUnit",
"UnitName",
"UnitPosition",
"UnitPower",
"UnitPowerMax",
"UnitThreatSituation",
}