-
-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy path.luacheckrc
68 lines (64 loc) · 1.34 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
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
"43.", -- Shadowing an upvalue, an upvalue argument, an upvalue loop variable.
"542", -- An empty if branch
}
globals = {
-- DBM
"DBM",
"DBM_CORE_L",
"DBM_COMMON_L",
"DBT",
-- Lua
"bit.band",
"table.wipe",
"time",
-- WoW
"COMBATLOG_OBJECT_AFFILIATION_MINE",
"COMBATLOG_OBJECT_TYPE_PLAYER",
"SCENARIO_STAGE",
"TANK",
"WOW_PROJECT_BURNING_CRUSADE_CLASSIC",
"WOW_PROJECT_CLASSIC",
"WOW_PROJECT_MAINLINE",
"WOW_PROJECT_ID",
"UIParent",
"C_UIWidgetManager",
"Ambiguate",
"CheckInteractDistance",
"CreateFrame",
"C_UIWidgetManager",
"GetLocale",
"GetTime",
"GetUnitName",
"IsInGroup",
"IsInRaid",
"SendChatMessage",
"SetRaidTarget",
"UnitAffectingCombat",
"UnitClass",
"UnitDebuff",
"UnitDetailedThreatSituation",
"UnitExists",
"UnitFactionGroup",
"UnitGetTotalAbsorbs",
"UnitGUID",
"UnitHealth",
"UnitHealthMax",
"UnitIsDeadOrGhost",
"UnitIsUnit",
"UnitInVehicle",
"UnitName",
"UnitPosition",
}