forked from AdiAddons/AdiButtonAuras
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.luacheckrc
45 lines (38 loc) · 1.96 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
std = 'lua51'
quiet = 1 -- suppress report output for files without warnings.
only = {
'011', -- syntax error
'111', -- setting an undefined global variable
'112', -- mutating an undefined global variable
'113', -- accessing an undefined global variable
'611', -- a line consists of nothing but whitespace
'612', -- a line contains trailing whitespace
'613', -- trailing whitespace in a string
'614', -- trailing whitespace in a comment
'621', -- inconsistent indentation (SPACE followed by TAB)
}
exclude_files = {
'./tests/*'
}
read_globals = {
-- Addons and Libraries
"AceGUIWidgetLSMlists", "AdiButtonAuras", "AdiDebug", "LibStub",
-- ABA API
"AddRuleFor", "BuffAliases", "BuildAuraHandler_FirstOf", "BuildAuraHandler_Longest", "BuildAuraHandler_Single",
"BuildDispelHandler", "BuildDesc", "BuildKey", "Configure", "DebuffAliases", "Debug",
"DescribeAllSpells", "DescribeAllTokens", "DescribeFilter", "DescribeHighlight",
"DescribeLPSSource", "GetBuff", "GetDebuff", "GetLib", "GetPlayerBuff", "GetPlayerDebuff",
"ImportPlayerSpells", "IterateBuffs", "IterateDebuffs", "IteratePlayerBuffs",
"IteratePlayerDebuffs", "L", "LongestDebuffOf", "PassiveModifier", "PetBuffs", "PLAYER_CLASS",
"SelfBuffAliases", "SelfBuffs", "SharedSimpleBuffs", "SharedSimpleDebuffs", "ShowDispellable",
"ShowHealth", "ShowPower", "ShowStacks", "SimpleBuffs", "SimpleDebuffs",
-- WoW API
"GetNumGroupMembers", "GetPetTimeRemaining", "GetRuneCooldown", "GetShapeshiftFormID", "GetSpellBonusHealing",
"GetSpellCharges", "GetSpellCount", "GetSpellInfo", "GetTime", "GetTotemInfo", "GetWeaponEnchantInfo",
"HasPetSpells", "IsPlayerSpell", "UnitCanAttack", "UnitCastingInfo", "UnitChannelInfo", "UnitClass", "UnitGUID",
"UnitHealth", "UnitHealthMax", "UnitIsDeadOrGhost", "UnitIsPlayer", "UnitName", "UnitPower", "UnitPowerMax",
"UnitStagger",
-- Lua API
"bit", "ceil", "floor", "format", "ipairs", "math", "max", "min", "pairs", "print", "select", "string", "table",
"tinsert", "type",
}