forked from Nevcairiel/Mapster
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.luacheckrc
85 lines (73 loc) · 1.5 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
std = "lua51"
max_line_length = false
exclude_files = {
"Libs/",
"Locale/find-locale-strings.lua",
"BattleMap.lua",
".luacheckrc"
}
ignore = {
"211/L", -- Unused local variable L
"211/_.*", -- Unused local variable starting with _
"212", -- Unused argument
"213/_.*", -- Unused loop variable starting with _
"311", -- Value assigned to a local variable is unused
"512", -- loop is only executed once
"542", -- empty if branch
}
globals = {
"HelpPlate",
"UIPanelWindows",
"UISpecialFrames",
"WorldMapFrame",
"MapsterFogClearData",
"StaticPopupDialogs.MAPSTER_RELOAD_UI_SCALING",
}
read_globals = {
"sqrt",
"strsplit",
"tinsert",
"issecurevariable",
-- Third Party Addon/Libraries
"LibStub",
-- API functions
"C_AddOns",
"C_Map",
"C_MapExplorationInfo",
"CreateFrame",
"GetBuildInfo",
"GetCursorPosition",
"GetCVarBool",
"InCombatLockdown",
"IsPlayerMoving",
"PlaySound",
"ReloadUI",
"SetCVar",
-- FrameXML Frames
"BattlefieldMinimap",
"InterfaceOptionsFrame",
"PlayerMovementFrameFader",
"Settings",
"UIParent",
"WorldMapZoomOutButton",
-- FrameXML Functions
"DeltaLerp",
"HelpPlate_Show",
-- FrameXML Misc
"BonusObjectivePinMixin",
"EncounterJournalPinMixin",
"GameFontNormal",
"QuestPinMixin",
"WorldMap_WorldQuestPinMixin",
"STATICPOPUP_NUMDIALOGS",
"StaticPopup_Show",
-- FrameXML Constants
"MAP_FADE_TEXT",
"NO",
"SOUNDKIT",
"WOW_PROJECT_ID",
"WOW_PROJECT_MAINLINE",
"WOW_PROJECT_CLASSIC",
"WOW_PROJECT_BURNING_CRUSADE_CLASSIC",
"WOW_PROJECT_WRATH_CLASSIC",
}