-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
84 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
name: Lint | ||
|
||
on: | ||
- push | ||
- pull_request | ||
|
||
jobs: | ||
lint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Run luacheck | ||
uses: nebularg/actions-luacheck@v1 | ||
with: | ||
annotate: warning | ||
args: --no-color |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
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 | ||
'212/element', -- unused argument element | ||
'312/event', -- unused value of argument event | ||
'312/unit', -- unused value of argument unit | ||
'431', -- shadowing an upvalue | ||
'614', -- trailing whitespace in comment (we use this for docs) | ||
'631', -- line is too long | ||
} | ||
|
||
globals = { | ||
-- FrameXML objects we mutate | ||
'SlashCmdList', -- FrameXML/ChatFrame.lua | ||
} | ||
|
||
read_globals = { | ||
table = {fields = {'wipe'}}, | ||
|
||
-- FrameXML objects | ||
'DEFAULT_CHAT_FRAME', -- FrameXML/ChatFrame.lua | ||
|
||
-- FrameXML functions | ||
'DisplayTableInspectorWindow', -- AddOns/Blizzard_DebugTools/Blizzard_TableInspector.lua | ||
'UIParentLoadAddOn', -- FrameXML/UIParent.lua | ||
'nop', -- FrameXML/UIParent.lua | ||
|
||
-- SharedXML objects | ||
'MinimalSliderWithSteppersMixin', -- SharedXML/Slider/MinimalSlider.lua | ||
'Settings', -- SharedXML/Settings/Blizzard_Settings.lua | ||
'SettingsPanel', -- SharedXML/Settings/Blizzard_SettingsPanel.xml | ||
|
||
-- SharedXML functions | ||
'DevTools_Dump', -- SharedXML/Dump.lua | ||
'GenerateClosure', -- SharedXML/FunctionUtil.lua | ||
'Mixin', -- SharedXML/Mixin.lua | ||
|
||
-- namespaces | ||
'C_AddOns', | ||
'C_CVar', | ||
'C_EventUtils', | ||
'C_Map', | ||
'C_UnitAuras', | ||
|
||
-- API | ||
'CombatLogGetCurrentEventInfo', | ||
'CreateFrame', | ||
'GetBuildInfo', | ||
'GetLocale', | ||
'InCombatLockdown', | ||
'IsAddOnLoaded', -- until wrath classic bumps API | ||
'UnitAuraSlots', | ||
'UnitGUID', | ||
'UnitIsOwnerOrControllerOfUnit', | ||
'UnitIsUnit', | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters