-
Notifications
You must be signed in to change notification settings - Fork 5
/
.luacheckrc
90 lines (85 loc) · 1.95 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
std = "lua51"
max_line_length = false
exclude_files = {
"ClassicCastbars_Options/Libs/",
"ClassicCastbars/Libs/",
".luacheckrc",
}
ignore = {
"11./SLASH_.*", -- Setting an undefined (Slash handler) global variable
"113/CastingBarFrame_.*", -- Accessing an undefined (CastingBarFrame) global variable.
"212/self", -- Unused argument self
"212/pool",
"212/cast",
"213", -- Unused loop variable
}
not_globals = { "print" } -- force error on print() to help catch forgotten debug statements
globals = {
"ClassicCastbars",
"ClassicCastbars_TestMode",
"ClassicCastbarsDB",
"ClassicCastbarsCharDB",
"SlashCmdList",
}
read_globals = {
"WOW_PROJECT_ID",
"WOW_PROJECT_CLASSIC",
"WOW_PROJECT_BURNING_CRUSADE_CLASSIC",
"WOW_PROJECT_MAINLINE",
"UIParentBottomManagedFrameContainer",
"CastingBarFrame",
"PlayerCastingBarFrame",
"TargetFrameSpellBar",
"FocusFrameSpellBar",
"PartyFrame",
"EditModeManagerFrame",
"ShowUIPanel",
"HideUIPanel",
"ArenaEnemyFrames",
"C_NamePlate",
"C_Timer",
"CopyTable",
"CreateFrame",
"CreateFramePool",
"floor",
"format",
"GameMenuFrame",
"GetAddOnMetadata",
"GetCVarBool",
"GetLocale",
"GetSpellInfo",
"GetSpellTexture",
"GetTickTime",
"GetTime",
"hooksecurefunc",
"IsAddOnLoaded",
"IsInGroup",
"IsMetaKeyDown",
"IsModifierKeyDown",
"LibStub",
"LoadAddOn",
"ReloadUI",
"STANDARD_TEXT_FONT",
"TargetFrame",
"UIParent",
"UnitClass",
"UnitExists",
"UnitGUID",
"UnitIsPlayer",
"wipe",
"PlayerFrame_AdjustAttachments",
"C_EventUtils",
"GetNumGroupMembers",
"LOSS_OF_CONTROL_DISPLAY_INTERRUPT_SCHOOL",
"GetSchoolString",
"UnitIsUnit",
"UnitHealth",
"UnitHealthMax",
"UnitCastingInfo",
"UnitChannelInfo",
"UnitIsFriend",
"UnitIsOtherPlayersPet",
"strsplit",
"C_AddOns",
"C_Spell",
}