-
Notifications
You must be signed in to change notification settings - Fork 3
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
116 changed files
with
351 additions
and
254 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
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,182 @@ | ||
std = "none" | ||
max_line_length = false | ||
max_comment_line_length = 120 | ||
self = false | ||
|
||
exclude_files = { | ||
".luacheckrc", | ||
"ls_Toasts/embeds/", | ||
} | ||
|
||
ignore = { | ||
"111/LS.*", -- Setting an undefined global variable starting with LS | ||
"111/SLASH_.*", -- Setting an undefined global variable starting with SLASH_ | ||
"112/LS.*", -- Mutating an undefined global variable starting with LS | ||
"112/ls_Toasts", -- Mutating an undefined global variable ls_Toasts | ||
"113/LS.*", -- Accessing an undefined global variable starting with LS | ||
"113/ls_Toasts", -- Accessing an undefined global variable ls_Toasts | ||
"122", -- Setting a read-only field of a global variable | ||
"211/_G", -- Unused local variable _G | ||
"211/C", -- Unused local variable C | ||
"211/D", -- Unused local variable D | ||
"211/E", -- Unused local variable E | ||
"211/L", -- Unused local variable L | ||
"211/P", -- Unused local variable P | ||
"432", -- Shadowing an upvalue argument | ||
} | ||
|
||
globals = { | ||
-- Lua | ||
"getfenv", | ||
"print", | ||
|
||
-- FrameXML | ||
"SlashCmdList", | ||
} | ||
|
||
read_globals = { | ||
"AchievementFrame", | ||
"AchievementFrame_LoadUI", | ||
"AchievementFrame_SelectAchievement", | ||
"AlertFrame", | ||
"ArchaeologyFrame", | ||
"ArcheologyDigsiteProgressBar", | ||
"BattlePetTooltip", | ||
"BattlePetToolTip_Show", | ||
"BonusRollFrame", | ||
"C_CurrencyInfo", | ||
"C_Garrison", | ||
"C_LegendaryCrafting", | ||
"C_MountJournal", | ||
"C_PetJournal", | ||
"C_QuestLog", | ||
"C_Scenario", | ||
"C_TaskQuest", | ||
"C_Timer", | ||
"C_ToyBox", | ||
"C_TradeSkillUI", | ||
"C_TransmogCollection", | ||
"COLLECTIONS_JOURNAL_TAB_INDEX_APPEARANCES", | ||
"COLLECTIONS_JOURNAL_TAB_INDEX_MOUNTS", | ||
"COLLECTIONS_JOURNAL_TAB_INDEX_PETS", | ||
"COLLECTIONS_JOURNAL_TAB_INDEX_TOYS", | ||
"CollectionsJournal", | ||
"CollectionsJournal_LoadUI", | ||
"CreateFrame", | ||
"DressUpBattlePet", | ||
"DressUpLink", | ||
"DressUpMount", | ||
"DressUpVisual", | ||
"EncounterJournal", | ||
"EncounterJournal_LoadUI", | ||
"EncounterJournal_OpenToPowerID", | ||
"Enum", | ||
"FormatLargeNumber", | ||
"FormatShortDate", | ||
"GameTooltip", | ||
"GameTooltip_AddBlankLineToTooltip", | ||
"GameTooltip_AddColoredLine", | ||
"GameTooltip_AddErrorLine", | ||
"GameTooltip_AddNormalLine", | ||
"GameTooltip_SetTitle", | ||
"GameTooltip_ShowCompareItem", | ||
"GarrisonFollowerOptions", | ||
"GarrisonFollowerTooltip", | ||
"GarrisonFollowerTooltipTemplate_SetGarrisonFollower", | ||
"GarrisonFollowerTooltipTemplate_SetShipyardFollower", | ||
"GarrisonShipyardFollowerTooltip", | ||
"GetAchievementInfo", | ||
"GetAddOnMetadata", | ||
"GetArchaeologyRaceInfoByID", | ||
"GetCVarBool", | ||
"GetDetailedItemLevelInfo", | ||
"GetInstanceInfo", | ||
"GetItemInfo", | ||
"GetItemInfoInstant", | ||
"GetLFGCompletionReward", | ||
"GetLFGCompletionRewardItem", | ||
"GetLFGCompletionRewardItemLink", | ||
"GetLFGDungeonInfo", | ||
"GetLocale", | ||
"GetMoney", | ||
"GetMoneyString", | ||
"GetNumQuestLogRewardCurrencies", | ||
"GetQuestLogRewardCurrencyInfo", | ||
"GetQuestLogRewardMoney", | ||
"GetQuestLogRewardXP", | ||
"GetSpellInfo", | ||
"GetSpellRank", | ||
"GREEN_FONT_COLOR", | ||
"GroupLootContainer", | ||
"GroupLootContainer_RemoveFrame", | ||
"HaveQuestData", | ||
"HaveQuestRewardData", | ||
"HideUIPanel", | ||
"HIGHLIGHT_FONT_COLOR", | ||
"InCombatLockdown", | ||
"INVSLOT_BACK", | ||
"INVSLOT_CHEST", | ||
"INVSLOT_FEET", | ||
"INVSLOT_FINGER1", | ||
"INVSLOT_FINGER2", | ||
"INVSLOT_HAND", | ||
"INVSLOT_HEAD", | ||
"INVSLOT_LEGS", | ||
"INVSLOT_MAINHAND", | ||
"INVSLOT_NECK", | ||
"INVSLOT_OFFHAND", | ||
"INVSLOT_RANGED", | ||
"INVSLOT_SHOULDER", | ||
"INVSLOT_TRINKET1", | ||
"INVSLOT_TRINKET2", | ||
"INVSLOT_WAIST", | ||
"INVSLOT_WRIST", | ||
"IsLoggedIn", | ||
"IsModifiedClick", | ||
"IsShiftKeyDown", | ||
"ITEM_QUALITY_COLORS", | ||
"ITEM_QUALITY0_DESC", | ||
"ITEM_QUALITY1_DESC", | ||
"ITEM_QUALITY2_DESC", | ||
"ITEM_QUALITY3_DESC", | ||
"ITEM_QUALITY4_DESC", | ||
"ITEM_QUALITY5_DESC", | ||
"LE_SCENARIO_TYPE_LEGION_INVASION", | ||
"LEGENDARY_ORANGE_COLOR", | ||
"LFG_SUBTYPEID_HEROIC", | ||
"LibStub", | ||
"LIST_DELIMITER", | ||
"LOOT_ITEM_CREATED_SELF", | ||
"LOOT_ITEM_CREATED_SELF_MULTIPLE", | ||
"LOOT_ITEM_PUSHED_SELF", | ||
"LOOT_ITEM_PUSHED_SELF_MULTIPLE", | ||
"LOOT_ITEM_SELF", | ||
"LOOT_ITEM_SELF_MULTIPLE", | ||
"LOOTUPGRADEFRAME_QUALITY_TEXTURES", | ||
"MAX_PLAYER_LEVEL", | ||
"MountJournal_SelectByMountID", | ||
"OpenBag", | ||
"PetJournal", | ||
"PetJournal_SelectPet", | ||
"PlaySound", | ||
"ProfessionsFrame", | ||
"ProfessionsFrame_LoadUI", | ||
"SearchBagsForItem", | ||
"SetCollectionsJournalShown", | ||
"Settings", | ||
"SettingsPanel", | ||
"ShoppingTooltip1", | ||
"ShoppingTooltip2", | ||
"ShowUIPanel", | ||
"SquareButton_SetIcon", | ||
"ToyBox", | ||
"ToyBox_FindPageForToyID", | ||
"UIParent", | ||
"UnitClass", | ||
"UnitFactionGroup", | ||
"UnitGUID", | ||
"UnitLevel", | ||
"WardrobeCollectionFrame", | ||
"WardrobeCollectionFrame_OpenTransmogLink", | ||
"WORLD_QUEST_QUALITY_COLORS", | ||
} |
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,28 @@ | ||
$luacheckrc = ".\.luacheckrc" | ||
|
||
$out = "" | ||
foreach ($line in Get-Content $luacheckrc) { | ||
if ($line -match "read_globals") { break } | ||
|
||
$out += $line + "`n" | ||
} | ||
|
||
Set-Content $luacheckrc -Value $out.TrimEnd() | ||
|
||
$out = @() | ||
luacheck . | ForEach-Object { | ||
if ($_ -match "accessing undefined variable '(.+?)'") { | ||
if ($out -notcontains $matches[1]) { | ||
$out += $matches[1] | ||
} | ||
} | ||
} | ||
|
||
Add-Content $luacheckrc "" | ||
Add-Content $luacheckrc ("read_globals = {") | ||
|
||
foreach ($arg in $out | Sort-Object) { | ||
Add-Content $luacheckrc ("`t`"" + $arg + "`",") | ||
} | ||
|
||
Add-Content $luacheckrc ("}") |
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 was deleted.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
local _, addonTable = ... | ||
local E = addonTable.E | ||
|
||
-- Lua | ||
local _G = getfenv(0) | ||
|
||
-- Mine | ||
E.CHANGELOG = [[ | ||
- Fixed "10.0 Dragonrider PVP - Whirling Surge Dismounts" spam. | ||
- Updated French translation. Translated by agstegiel@Curse and Braincell1980@Curse. | ||
- Updated German translation. Translated by MrKimab@Curse. | ||
]] |
File renamed without changes.
File renamed without changes.
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
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
Oops, something went wrong.