-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
.luacheckrc
50 lines (47 loc) · 1013 Bytes
/
.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
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",
"DBM_DISABLE_ZONE_DETECTION",
-- Lua
"table.wipe",
-- WoW
"ALTERNATE_POWER_INDEX",
"CHALLENGE_MODE_MEDAL1",
"CHALLENGE_MODE_MEDAL2",
"CHALLENGE_MODE_MEDAL3",
"RUNES",
"C_Scenario.GetProvingGroundsInfo",
"Ambiguate",
"BNSendWhisper",
"GetLocale",
"GetNumGroupMembers",
"GetCVar",
"InCombatLockdown",
"PlaySoundFile",
"SendChatMessage",
"SetCVar",
"UnitGUID",
"UnitInVehicle",
"UnitPlayerOrPetInParty",
"UnitPlayerOrPetInRaid",
"UnitName",
"UnitExists",
}