Skip to content

Commit

Permalink
Code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
AcidWeb committed Mar 20, 2019
1 parent 2626ba5 commit bc5f346
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 7 deletions.
4 changes: 4 additions & 0 deletions .luacheckrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
globals = {'LibStub', 'UIDROPDOWNMENU_OPEN_PATCH_VERSION', 'UIDROPDOWNMENU_OPEN_MENU', 'COMMUNITY_UIDD_REFRESH_PATCH_VERSION', 'COMMUNITY_UIDD_REFRESH_PATCH_VERSION', 'RAID_CLASS_COLORS', 'LOCALIZED_CLASS_NAMES_MALE', 'CLASS_ICON_TCOORDS', 'ALL', 'ARENA_2V2', 'ARENA_3V3', 'BATTLEGROUND_10V10', 'MAX_CLASSES', 'BATTLEGROUND', 'AUCTION_DURATION', 'DAMAGE', 'WIN', 'SHOW_COMBAT_HEALING', 'HONOR', 'RATING', 'TEAM', 'ENEMY', 'ARENA', 'hooksecurefunc', 'issecurevariable', 'FriendsFrame', 'FriendsTabHeader'}
ignore = {'self', '532'}
max_line_length = false
self = false
1 change: 1 addition & 0 deletions .pkgmeta
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ externals:

ignore:
- README.md
- .luacheckrc
- Libs/LibToast-1.0/LibStub
- Libs/LibToast-1.0/LibToast-1.0.toc
- Libs/LibToast-1.0/lib.xml
Expand Down
4 changes: 2 additions & 2 deletions ElvUI.lua
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
local _G = _G
local unpack = _G.unpack

if not AddOnSkins then return end
local AS = unpack(AddOnSkins)
if not _G.AddOnSkins then return end
local AS = unpack(_G.AddOnSkins)
if not AS:CheckAddOn("REFlex") then return end

function AS:REFlex()
Expand Down
2 changes: 1 addition & 1 deletion LICENSE.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
All Rights Reserved unless otherwise explicitly stated.
Copyright (c) 2013-2018 Paweł Jastrzębski <[email protected]>
Copyright (c) 2013-2019 Paweł Jastrzębski <[email protected]>
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@

All Rights Reserved unless otherwise explicitly stated.

Copyright (c) 2013-2018 Paweł Jastrzębski <[email protected]>
Copyright (c) 2013-2019 Paweł Jastrzębski <[email protected]>
3 changes: 1 addition & 2 deletions REFlex.lua
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ if (COMMUNITY_UIDD_REFRESH_PATCH_VERSION or 0) < 1 then
end)
end

--GLOBALS: UIDROPDOWNMENU_VALUE_PATCH_VERSION, UIDROPDOWNMENU_MAXLEVELS, UIDROPDOWNMENU_MAXBUTTONS, UIDROPDOWNMENU_OPEN_PATCH_VERSION, UIDROPDOWNMENU_OPEN_MENU, issecurevariable
local tinsert = _G.table.insert
local mfloor = _G.math.floor
local strmatch = _G.string.match
Expand Down Expand Up @@ -576,7 +575,7 @@ function RE:OnEnterTooltip(cellFrame, databaseID)
RE.TooltipRGB1:SetBackdropColor(red, green, blue, ElvUI[1].Tooltip and ElvUI[1].Tooltip.db.colorAlpha or 1)
end
RE.TooltipRGB1:Show()
local team, damageSum, healingSum, kbSum = RE:GetRGBTeamDetails(databaseID, false)
team, damageSum, healingSum, kbSum = RE:GetRGBTeamDetails(databaseID, false)
RE.TooltipRGB2 = QTIP:Acquire("REFlexTooltipRGB2", 7, "CENTER", "CENTER", "CENTER", "CENTER", "CENTER", "CENTER", "CENTER")
RE.TooltipRGB2:AddLine()
for i=1, 7 do
Expand Down
1 change: 0 additions & 1 deletion REFlexFunctions.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ local DUMP = LibStub("LibTextDump-1.0")
local TOAST = LibStub("LibToast-1.0")
local ST = LibStub("ScrollingTable")

--GLOBALS: CLASS_ICON_TCOORDS, RAID_CLASS_COLORS, LOCALIZED_CLASS_NAMES_MALE
local tinsert, tsort, tconcat, tremove = _G.table.insert, _G.table.sort, _G.table.concat, _G.table.remove
local mfloor = _G.math.floor
local sgsub, sbyte = _G.string.gsub, _G.string.byte
Expand Down

0 comments on commit bc5f346

Please sign in to comment.