Cleanup: Remove some unintended globals.

Add saved variables and module names to exclusions from globals detection script.
This commit is contained in:
Road-block
2017-11-08 18:26:56 +02:00
parent bf8ad90560
commit 14c4a6d6d7
9 changed files with 33 additions and 10 deletions
+4 -1
View File
@@ -204,4 +204,7 @@ function sepgp_bids:OnTooltipUpdate()
"func", "announceWinnerOS", "arg1", self, "arg2", name, "arg3", pr
)
end
end
end
-- GLOBALS: sepgp_saychannel,sepgp_groupbyclass,sepgp_raidonly,sepgp_decay,sepgp_reservechannel,sepgp_main,sepgp_progress,sepgp_discount,sepgp_log,sepgp_dbver,sepgp_looted
-- GLOBALS: sepgp,sepgp_prices,sepgp_standings,sepgp_bids,sepgp_loot,sepgp_reserves,sepgp_logs
+4 -1
View File
@@ -107,4 +107,7 @@ function sepgp_logs:OnTooltipUpdate()
"text2", line
)
end
end
end
-- GLOBALS: sepgp_saychannel,sepgp_groupbyclass,sepgp_raidonly,sepgp_decay,sepgp_reservechannel,sepgp_main,sepgp_progress,sepgp_discount,sepgp_log,sepgp_dbver,sepgp_looted
-- GLOBALS: sepgp,sepgp_prices,sepgp_standings,sepgp_bids,sepgp_loot,sepgp_reserves,sepgp_logs
+4 -1
View File
@@ -107,4 +107,7 @@ function sepgp_loot:OnTooltipUpdate()
-- "func", "OnClickItem", "arg1", self, "arg2", t[i]
)
end
end
end
-- GLOBALS: sepgp_saychannel,sepgp_groupbyclass,sepgp_raidonly,sepgp_decay,sepgp_reservechannel,sepgp_main,sepgp_progress,sepgp_discount,sepgp_log,sepgp_dbver,sepgp_looted
-- GLOBALS: sepgp,sepgp_prices,sepgp_standings,sepgp_bids,sepgp_loot,sepgp_reserves,sepgp_logs
+4 -1
View File
@@ -16,4 +16,7 @@ function sepgp:v2tov3()
end
self:defaultPrint(string.format("Updated %d members to v3 storage.",count))
sepgp_dbver = 3
end
end
-- GLOBALS: sepgp_saychannel,sepgp_groupbyclass,sepgp_raidonly,sepgp_decay,sepgp_reservechannel,sepgp_main,sepgp_progress,sepgp_discount,sepgp_log,sepgp_dbver,sepgp_looted
-- GLOBALS: sepgp,sepgp_prices,sepgp_standings,sepgp_bids,sepgp_loot,sepgp_reserves,sepgp_logs
+5 -2
View File
@@ -784,7 +784,7 @@ sepgp_prices = sepgp:NewModule("sepgp_prices", "AceDB-2.0")
function sepgp_prices:GetPrice(item,progress)
if not progress then progress = "T3" end
local itemID,found,_,itemString,data,tier
local itemID,found,_,itemString,data,tier,is,il
local price
if (type(item)=="number") then
itemID = tonumber(item)
@@ -810,4 +810,7 @@ function sepgp_prices:GetPrice(item,progress)
end
end
return price
end
end
-- GLOBALS: sepgp_saychannel,sepgp_groupbyclass,sepgp_raidonly,sepgp_decay,sepgp_reservechannel,sepgp_main,sepgp_progress,sepgp_discount,sepgp_log,sepgp_dbver,sepgp_looted
-- GLOBALS: sepgp,sepgp_prices,sepgp_standings,sepgp_bids,sepgp_loot,sepgp_reserves,sepgp_logs
+4 -1
View File
@@ -106,4 +106,7 @@ function sepgp_reserves:OnTooltipUpdate()
"func", "OnClickItem", "arg1", self, "arg2", alt or name
)
end
end
end
-- GLOBALS: sepgp_saychannel,sepgp_groupbyclass,sepgp_raidonly,sepgp_decay,sepgp_reservechannel,sepgp_main,sepgp_progress,sepgp_discount,sepgp_log,sepgp_dbver,sepgp_looted
-- GLOBALS: sepgp,sepgp_prices,sepgp_standings,sepgp_bids,sepgp_loot,sepgp_reserves,sepgp_logs
+5 -2
View File
@@ -28,7 +28,7 @@ local shooty_reservecall = string.format("{shootyepgp}Type \"+\" if on main, or
local shooty_reserveanswer = "^(%+)(%a*)$"
local out = "|cff9664c8shootyepgp:|r %s"
local lastUpdate = 0
local needInit = true
local needInit,needRefresh = true
local admin,sanitizeNote
local shooty_debugchat
local running_check,running_bid
@@ -1864,10 +1864,13 @@ function sepgp:EasyMenu(menuList, menuFrame, anchor, x, y, displayMode)
end
function sepgp:EasyMenu_Initialize(level, menuList)
for index = 1, table.getn( menuList ) do
value = menuList[index]
local value = menuList[index]
if (value.text) then
value.index = index;
UIDropDownMenu_AddButton( value, level );
end
end
end
-- GLOBALS: sepgp_saychannel,sepgp_groupbyclass,sepgp_raidonly,sepgp_decay,sepgp_reservechannel,sepgp_main,sepgp_progress,sepgp_discount,sepgp_log,sepgp_dbver,sepgp_looted
-- GLOBALS: sepgp,sepgp_prices,sepgp_standings,sepgp_bids,sepgp_loot,sepgp_reserves,sepgp_logs
+1 -1
View File
@@ -5,7 +5,7 @@
## X-Website: https://github.com/Road-block/shootyepgp/releases/latest
## X-Category: Guild
## X-Credits: shooty
## Version: 3.21
## Version: 3.21.1
## OptionalDeps: Ace2
## SavedVariables: sepgp_saychannel,sepgp_groupbyclass,sepgp_raidonly,sepgp_decay,sepgp_reservechannel,sepgp_main,sepgp_progress,sepgp_discount
## SavedVariablesPerCharacter: sepgp_log, sepgp_dbver, sepgp_looted
+2
View File
@@ -221,3 +221,5 @@ function sepgp_standings:OnTooltipUpdate()
end
end
-- GLOBALS: sepgp_saychannel,sepgp_groupbyclass,sepgp_raidonly,sepgp_decay,sepgp_reservechannel,sepgp_main,sepgp_progress,sepgp_discount,sepgp_log,sepgp_dbver,sepgp_looted
-- GLOBALS: sepgp,sepgp_prices,sepgp_standings,sepgp_bids,sepgp_loot,sepgp_reserves,sepgp_logs