-
Notifications
You must be signed in to change notification settings - Fork 58
/
.luacheckrc
152 lines (146 loc) · 3.28 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
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
std = 'lua51'
quiet = 1 -- suppress report output for files without warnings
-- see https://luacheck.readthedocs.io/en/stable/warnings.html#list-of-warnings
-- and https://luacheck.readthedocs.io/en/stable/cli.html#patterns
ignore = {
'212/self', -- unused argument self
'212/event', -- unused argument event
'212/unit', -- unused argument unit
'312/event', -- unused value of argument event
'312/unit', -- unused value of argument unit
'431', -- shadowing an upvalue
'614', -- trailing whitespace in comment (which is valid markdown for our docs)
'631', -- line is too long
}
read_globals = {
'debugstack',
'geterrorhandler',
'hooksecurefunc',
string = {fields = {'join', 'split', 'trim'}},
table = {fields = {'removemulti', 'wipe'}},
-- FrameXML
'BossTargetFrameContainer',
'Clamp',
'ColorMixin',
'ComboFrame',
'CompactArenaFrame',
'CreateColor',
'Enum',
'FocusFrame',
'GameTooltip',
'GameTooltip_SetDefaultAnchor',
'Mixin',
'MonkStaggerBar',
'NamePlateDriverFrame',
'PartyFrame',
'PetCastingBarFrame',
'PetFrame',
'PingableType_UnitFrameMixin',
'PlayerCastingBarFrame',
'PlayerFrame',
'PlayerPowerBarAlt',
'TargetFrame',
'TargetFrameToT',
'TargetofFocusFrame',
'TotemFrame',
'UIParent',
-- namespaces
'C_AddOns',
'C_IncomingSummon',
'C_NamePlate',
'C_PvP',
'C_Spell',
'C_UnitAuras',
-- API
'CopyTable',
'CreateFrame',
'GetArenaOpponentSpec',
'GetNetStats',
'GetNumArenaOpponentSpecs',
'GetPartyAssignment',
'GetRaidTargetIndex',
'GetReadyCheckStatus',
'GetRuneCooldown',
'GetSpecialization',
'GetSpecializationInfoByID',
'GetSpellPowerCost',
'GetTexCoordsForRoleSmallCircle',
'GetThreatStatusColor',
'GetTime',
'GetTotemInfo',
'GetUnitChargedPowerPoints',
'GetUnitEmpowerHoldAtMaxTime',
'GetUnitEmpowerStageDuration',
'GetUnitPowerBarInfo',
'GetUnitPowerBarInfoByID',
'GetUnitPowerBarStringsByID',
'GetUnitTotalModifiedMaxHealthPercent',
'HasLFGRestrictions',
'InCombatLockdown',
'IsLoggedIn',
'IsPlayerSpell',
'IsResting',
'PartyUtil',
'PlayerVehicleHasComboPoints',
'PowerBarColor',
'RegisterAttributeDriver',
'RegisterStateDriver',
'RegisterUnitWatch',
'SecureButton_GetModifiedUnit',
'SecureButton_GetUnit',
'SecureHandlerSetFrameRef',
'SetCVar',
'SetPortraitTexture',
'SetRaidTargetIconTexture',
'ShowBossFrameWhenUninteractable',
'UnitAffectingCombat',
'UnitAuraSlots',
'UnitCastingInfo',
'UnitChannelInfo',
'UnitClass',
'UnitClassBase',
'UnitExists',
'UnitFactionGroup',
'UnitGetIncomingHeals',
'UnitGetTotalAbsorbs',
'UnitGetTotalHealAbsorbs',
'UnitGroupRolesAssigned',
'UnitGUID',
'UnitHasIncomingResurrection',
'UnitHasVehiclePlayerFrameUI',
'UnitHasVehicleUI',
'UnitHealth',
'UnitHealthMax',
'UnitHonorLevel',
'UnitInParty',
'UnitInPartyIsAI',
'UnitInRaid',
'UnitInRange',
'UnitIsConnected',
'UnitIsGroupAssistant',
'UnitIsGroupLeader',
'UnitIsMercenary',
'UnitIsOwnerOrControllerOfUnit',
'UnitIsPlayer',
'UnitIsPVP',
'UnitIsPVPFreeForAll',
'UnitIsQuestBoss',
'UnitIsTapDenied',
'UnitIsUnit',
'UnitIsVisible',
'UnitPhaseReason',
'UnitPlayerControlled',
'UnitPower',
'UnitPowerBarID',
'UnitPowerDisplayMod',
'UnitPowerMax',
'UnitPowerType',
'UnitPvpClassification',
'UnitRace',
'UnitReaction',
'UnitSelectionType',
'UnitStagger',
'UnitThreatSituation',
'UnitWatchRegistered',
'UnregisterUnitWatch',
}