-
-
Notifications
You must be signed in to change notification settings - Fork 13
/
.luacheckrc
96 lines (91 loc) · 1.94 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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
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",
"DBM_DISABLE_ZONE_DETECTION",
"DBT",
-- Lua
"table.wipe",
-- Utility functions
"C_Timer",
"tContains",
"strlower",
-- WoW
"ALTERNATE_POWER_INDEX",
"BOSS",
"LE_PARTY_CATEGORY_HOME",
"LE_PARTY_CATEGORY_INSTANCE",
"SHIELDSLOT",
"SPELL_TARGET_TYPE13_DESC",
"TANK",
"WOW_PROJECT_ID",
"WOW_PROJECT_CLASSIC",
"WOW_PROJECT_BURNING_CRUSADE_CLASSIC",
"WOW_PROJECT_MAINLINE",
"ExtraActionBarFrame",
"C_DateAndTime",
"C_GossipInfo.CloseGossip",
"C_GossipInfo.GetOptions",
"C_GossipInfo.GetText",
"C_GossipInfo.SelectOption",
"C_Map",
"C_QuestLog",
"C_Spell",
"C_UIWidgetManager.GetIconAndTextWidgetVisualizationInfo",
"Ambiguate",
"CheckInteractDistance",
"EJ_GetEncounterInfo",
"GetAchievementInfo",
"GetCVarBool",
"GetCVar",
"GetFramesRegisteredForEvent",
"GetLocale",
"GetQuestLogTitle",
"GetQuestLogIndexByID",
"GetQuestLogTitle",
"GetRaidTargetIndex",
"GetTime",
"IsEncounterInProgress",
"IsInGroup",
"SendChatMessage",
"SetCVar",
"SetRaidTarget",
"UnitCanAttack",
"UnitCastingInfo",
"UnitClass",
"UnitExists",
"UnitRace",
"UnitGroupRolesAssigned",
"UnitInParty",
"GetProfessions",
"GetProfessionInfo",
"UnitFactionGroup",
"UnitGetTotalAbsorbs",
"UnitGUID",
"UnitHealth",
"UnitHealthMax",
"UnitIsDead",
"UnitIsDeadOrGhost",
"UnitIsEnemy",
"UnitIsFriend",
"UnitIsUnit",
"UnitName",
"UnitPower",
}