-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.luacheckrc
74 lines (70 loc) · 1.37 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
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",
-- Utility functions
"tContains",
"tDeleteItem",
-- WoW
"ALL",
"ALTERNATE_POWER_INDEX",
"BATTLE_PET_DAMAGE_NAME_8",
"CORE_ABILITIES",
"ENCOUNTER_JOURNAL_SECTION_FLAG12",
"HEALER",
"MELEE",
"OTHER",
"RAID_TARGET_1",
"RAID_TARGET_2",
"RAID_TARGET_3",
"RAID_TARGET_4",
"RAID_TARGET_5",
"RANGED",
"RUNES",
"SCENARIO_STAGE",
"SPELL_BUCKET_ABILITIES_UNLOCKED",
"TANK",
"Ambiguate",
"EJ_GetEncounterInfo",
"GetLocale",
"GetNumGroupMembers",
"GetTime",
"IsInRaid",
"IsPartyLFG",
"SetRaidTarget",
"UnitCastingInfo",
"UnitClass",
"UnitDetailedThreatSituation",
"UnitExists",
"UnitGUID",
"UnitHealth",
"UnitHealthMax",
"UnitInVehicle",
"UnitIsDeadOrGhost",
"UnitIsGroupLeader",
"UnitIsUnit",
"UnitName",
"UnitPosition",
"UnitPower",
"UnitPowerMax",
}