Skip to content

Commit

Permalink
luacheck ignore intented prints
Browse files Browse the repository at this point in the history
  • Loading branch information
wardz committed Apr 21, 2021
1 parent 587c44a commit 2b41cca
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions ClassicCastbars/ClassicCastbars.lua
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ local npcCastTimeCache = {}
local npcCastUninterruptibleCache = {}

if not _G.WOW_PROJECT_ID or (_G.WOW_PROJECT_ID ~= _G.WOW_PROJECT_CLASSIC) then
-- luacheck: ignore
return print("|cFFFF0000[ERROR] ClassicCastbars only supports Classic WoW.|r")
end

Expand Down
1 change: 1 addition & 0 deletions ClassicCastbars/core/Frames.lua
Original file line number Diff line number Diff line change
Expand Up @@ -380,6 +380,7 @@ function addon:SkinPlayerCastbar()
if not db.enabled then return end

if not CastingBarFrame:IsEventRegistered("UNIT_SPELLCAST_START") then
-- luacheck: ignore
print("|cFFFF0000[ClassicCastbars] Incompatibility detected for player castbar. You most likely have another addon disabling the Blizzard castbar.|r")
end

Expand Down
1 change: 1 addition & 0 deletions ClassicCastbars_Options/TestMode.lua
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ function TestMode:SetCastbarMovable(unitID, parent)
local parentFrame = parent or ClassicCastbars.AnchorManager:GetAnchor(unitID)
if not parentFrame then
if unitID == "target" or unitID == "nameplate-testmode" then
-- luacheck: ignore
print(format("|cFFFF0000[ClassicCastbars] %s|r", _G.ERR_GENERIC_NO_TARGET))
end
return false
Expand Down

0 comments on commit 2b41cca

Please sign in to comment.