-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.luacheckrc
79 lines (75 loc) · 1.42 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
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",
-- Lua
"table.wipe",
-- Utility functions
"strsplit",
"tContains",
"tDeleteItem",
-- WoW
"ALTERNATE_POWER_INDEX",
"BOSS",
"GENERAL",
"GROUP",
"NO",
"OVERVIEW",
"PLAYER_DIFFICULTY6",
"SCENARIO_STAGE",
"YES",
"C_Map.GetBestMapForUnit",
"C_UIWidgetManager",
"Ambiguate",
"CheckInteractDistance",
"GetCVar",
"GetLocale",
"GetNumGroupMembers",
"GetNumSubgroupMembers",
"GetPartyAssignment",
"GetRaidTargetIndex",
"GetTime",
"IsInRaid",
"IsInGroup",
"IsItemInRange",
"IsPartyLFG",
"SetCVar",
"SetRaidTarget",
"UnitCanAttack",
"UnitCastingInfo",
"UnitDetailedThreatSituation",
"UnitExists",
"UnitFactionGroup",
"UnitGetTotalAbsorbs",
"UnitGroupRolesAssigned",
"UnitGUID",
"UnitHealth",
"UnitHealthMax",
"UnitInRange",
"UnitIsConnected",
"UnitIsDeadOrGhost",
"UnitIsFriend",
"UnitIsGroupLeader",
"UnitIsUnit",
"UnitName",
"UnitPosition",
"UnitPower",
"UnitPowerMax",
}