-
Notifications
You must be signed in to change notification settings - Fork 22
/
.luacheckrc
136 lines (129 loc) · 2.3 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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
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',
'ShowTempPet',
'ShowTempWeaponEnchant',
'ShowTotem',
'SimpleBuffs',
'SimpleDebuffs',
-- WoW API
C_AddOns = {
fields = {
'GetAddOnMetadata',
'IsAddOnLoaded',
'LoadAddOn',
},
},
C_Spell = {
fields = {
'GetSpellCharges',
'GetSpellCastCount',
'GetSpellInfo',
'GetSpellLink',
'GetSpellName',
},
},
C_SpellBook = {
fields = {
'HasPetSpells',
},
},
'GetNumGroupMembers',
'GetPetTimeRemaining',
'GetRuneCooldown',
'GetShapeshiftFormID',
'GetSpellBonusHealing',
'GetTime',
'GetTotemInfo',
'GetWeaponEnchantInfo',
'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',
'strmatch',
'table',
'tinsert',
'type',
}