Skip to content

Commit

Permalink
Purge unused luacheckrc globals
Browse files Browse the repository at this point in the history
  • Loading branch information
nebularg committed Aug 23, 2024
1 parent 3bf0fd5 commit e6f2b82
Showing 1 changed file with 18 additions and 104 deletions.
122 changes: 18 additions & 104 deletions .luacheckrc
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ ignore = {
"432/self", -- Shadowing an upvalue argument
}
globals = {
-- Addons
"ElvUI",
"LibStub",
"Tukui",

-- wow std api
"abs",
"acos",
Expand Down Expand Up @@ -83,127 +88,72 @@ globals = {
"tremove",
"wipe",

-- framexml
"AuraUtil",
"CopyTable",
"getprinthandler",
"hash_SlashCmdList",
"setprinthandler",
"tContains",
"tDeleteItem",
"tInvert",
"tostringall",
"UIPanelWindows",
-- FrameXML
"CanOpenPanels",
"ChatTypeInfo",
"CopyTable",
"FriendsFrame",
"GameFontNormal",
"GameTooltip",
"GameTooltip_Hide",
"GetUIPanel",
"GetUIPanelWidth",
"SecondsToTime",
"SlashCmdList",
"UIPanelWindows",
"UIParent",
"tContains",

-- everything else
"AlertFrame",
-- API
"Ambiguate",
"BNGetFriendIndex",
"BNInviteFriend",
"BNIsSelf",
"BNSendWhisper",
"BasicMessageDialog",
"BossBanner",
"C_AddOns",
"C_BattleNet",
"C_CVar",
"C_ChatInfo",
"C_EncounterJournal",
"C_FriendList",
"C_GuildInfo",
"C_Item",
"C_Map",
"C_PaperDollInfo",
"C_PartyInfo",
"C_RaidLocks",
"C_Scenario",
"C_Spell",
"C_Timer",
"C_TradeSkillUI",
"C_UIWidgetManager",
"C_UnitAuras",
"ChatFrame_ImportAllListsToHash",
"ChatTypeInfo",
"CheckInteractDistance",
"CinematicFrame_CancelCinematic",
"CollapseFactionHeader",
"CombatLogGetCurrentEventInfo",
"CombatLog_String_GetIcon",
"CreateFrame",
"DemoteAssistant",
"DoReadyCheck",
"EJ_GetCreatureInfo",
"EJ_GetEncounterInfo",
"EJ_GetTierInfo",
"ElvUI",
"EnableAddOn",
"ExpandFactionHeader",
"FlashClientIcon",
"FriendsFrame",
"GameFontHighlight",
"GameFontNormal",
"GameTooltip",
"GameTooltip_Hide",
"GetAddOnDependencies",
"GetAddOnEnableState",
"GetAddOnInfo",
"GetAddOnMetadata",
"GetAddOnOptionalDependencies",
"GetAverageItemLevel",
"GetBattlefieldStatus",
"GetCVarBool",
"GetChannelDisplayInfo",
"GetChannelName",
"GetDetailedItemLevelInfo",
"GetDifficultyInfo",
"GetExpansionLevel",
"GetFactionInfo",
"GetFramesRegisteredForEvent",
"GetGuildInfo",
"GetGuildRosterInfo",
"GetInstanceInfo",
"GetInventoryItemLink",
"GetInventoryItemQuality",
"GetItemCount",
"GetItemSpell",
"GetItemStats",
"GetLFGMode",
"GetLocale",
"GetMaxBattlefieldID",
"GetMaxLevelForLatestExpansion",
"GetNumAddOns",
"GetNumDisplayChannels",
"GetNumFactions",
"GetNumGroupMembers",
"GetNumGuildMembers",
"GetNumSubgroupMembers",
"GetPartyAssignment",
"GetPlayerFacing",
"GetProfessionInfo",
"GetProfessions",
"GetRaidDifficultyID",
"GetRaidRosterInfo",
"GetRaidTargetIndex",
"GetReadyCheckStatus",
"GetReadyCheckTimeLeft",
"GetRealZoneText",
"GetRealmName",
"GetSpecialization",
"GetSpecializationInfoByID",
"GetSpecializationRole",
"GetSpecializationRoleByID",
"GetSubZoneText",
"GetTime",
"GetTrackedAchievements",
"GuildControlGetNumRanks",
"GuildControlGetRankName",
"InCombatLockdown",
"IsAddOnLoadOnDemand",
"IsAddOnLoaded",
"IsAltKeyDown",
"IsControlKeyDown",
"IsEncounterInProgress",
"IsEveryoneAssistant",
Expand All @@ -212,61 +162,31 @@ globals = {
"IsInGuild",
"IsInInstance",
"IsInRaid",
"IsItemInRange",
"IsLoggedIn",
"IsPartyLFG",
"IsShiftKeyDown",
"IsSpellKnown",
"IsTestBuild",
"LFGDungeonReadyPopup",
"LibStub",
"LoadAddOn",
"LoggingCombat",
"MovieFrame",
"ObjectiveTrackerFrame",
"PlaySound",
"PlaySoundFile",
"PlayerHasToy",
"PromoteToAssistant",
"RaidBossEmoteFrame",
"RaidNotice_AddMessage",
"RaidWarningFrame",
"RolePollPopup",
"SecondsToTime",
"SendChatMessage",
"SetEveryoneIsAssistant",
"SetPortraitToTexture",
"SetRaidDifficulties",
"SetRaidTarget",
"SlashCmdList",
"StopSound",
"Tukui",
"UIErrorsFrame",
"UIParent",
"UninviteUnit",
"UnitAffectingCombat",
"UnitAura",
"UnitCanAttack",
"UnitCastingInfo",
"UnitChannelInfo",
"UnitClass",
"UnitClassBase",
"UnitDetailedThreatSituation",
"UnitEffectiveLevel",
"UnitExists",
"UnitFactionGroup",
"UnitGUID",
"UnitGetTotalAbsorbs",
"UnitGroupRolesAssigned",
"UnitHealth",
"UnitHealthMax",
"UnitInBattleground",
"UnitInParty",
"UnitInRaid",
"UnitInRange",
"UnitInVehicle",
"UnitIsConnected",
"UnitIsCorpse",
"UnitIsDead",
"UnitIsDeadOrGhost",
"UnitIsFeignDeath",
Expand All @@ -279,11 +199,5 @@ globals = {
"UnitIsVisible",
"UnitLevel",
"UnitName",
"UnitPlayerControlled",
"UnitPosition",
"UnitPower",
"UnitPowerMax",
"UnitRace",
"UnitSetRole",
"WorldFrame",
}

0 comments on commit e6f2b82

Please sign in to comment.