-
Notifications
You must be signed in to change notification settings - Fork 23
/
Copy path.luacheckrc
108 lines (97 loc) · 2.03 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
97
98
99
100
101
102
103
104
105
106
107
108
std = "lua51"
max_line_length = false
exclude_files = {
"libs/",
"locale/find-locale-strings.lua",
".luacheckrc"
}
ignore = {
"11./BINDING_.*", -- Setting an undefined (Keybinding) global variable
"211", -- Unused local variable
"211/L", -- Unused local variable "L"
"212", -- Unused argument
"213", -- Unused loop variable
"311", -- Value assigned to a local variable is unused
"542", -- empty if branch
}
globals = {
"_G",
"QuartzDB",
"CONFIGMODE_CALLBACKS",
"CastingBarFrame",
"FocusFrameSpellBar",
"PetCastingBarFrame",
"PlayerCastingBarFrame",
"TargetFrameSpellBar",
}
read_globals = {
"bit",
"format",
"min", "max",
"sort",
"wipe",
-- misc custom, third party libraries
"LibStub",
"AceGUIWidgetLSMlists",
"InFlight", "InFlightBar",
-- API functions
"C_AddOns",
"C_Spell",
"C_TradeSkillUI",
"C_UnitAuras",
"CreateFrame",
"CombatLogGetCurrentEventInfo",
"GetActiveSpecGroup",
"GetBuildInfo",
"GetCombatRatingBonus",
"GetCorpseRecoveryDelay",
"GetCVar",
"GetMirrorTimerInfo",
"GetMirrorTimerProgress",
"GetSpellCooldown",
"GetSpellInfo",
"GetTalentInfoByID",
"GetTime",
"GetUnitEmpowerHoldAtMaxTime",
"GetUnitEmpowerStageDuration",
"IsInInstance",
"IsPlayerSpell",
"IsSpellInRange",
"PlaySound",
"UnitAttackSpeed",
"UnitCastingInfo",
"UnitChannelInfo",
"UnitClass",
"UnitDamage",
"UnitHealth",
"UnitIsEnemy",
"UnitIsFriend",
"UnitIsUnit",
"UnitName",
"UnitRangedDamage",
-- FrameXML functions
"InterfaceOptionsFrame_OpenToCategory",
"Settings.OpenToCategory",
-- FrameXML Frames
"MirrorTimerContainer",
"UIParent",
"ProfessionsFrame.CraftingPage",
-- FrameXML Misc
"StaticPopupDialogs",
-- FrameXML Constants
"CR_HASTE_SPELL",
"COMBATLOG_FILTER_ME",
"COMBATLOG_OBJECT_CONTROL_NPC",
"COMBATLOG_OBJECT_REACTION_FRIENDLY",
"MIRRORTIMER_NUMTIMERS",
"READY_CHECK",
"SPELLINTERRUPTOTHERSELF",
"SOUNDKIT",
"UNKNOWN",
"WOW_PROJECT_ID",
"WOW_PROJECT_BURNING_CRUSADE_CLASSIC",
"WOW_PROJECT_CLASSIC",
"WOW_PROJECT_MAINLINE",
"WOW_PROJECT_WRATH_CLASSIC",
"WOW_PROJECT_CATACLYSM_CLASSIC",
}