Skip to content

Commit

Permalink
Changes needed to not violate CurseForge ToS #16
Browse files Browse the repository at this point in the history
  • Loading branch information
Limmek committed Aug 19, 2024
1 parent 2583926 commit 91660b8
Show file tree
Hide file tree
Showing 9 changed files with 353 additions and 845 deletions.
387 changes: 7 additions & 380 deletions .luacheckrc
Original file line number Diff line number Diff line change
@@ -1,17 +1,10 @@
std = "lua51"
-- self = false
-- unused_args = false
max_line_length = false
-- max_code_line_length = false
-- max_string_line_length = false
-- max_comment_line_length = false
self = false

-- include_files = {
-- "Shitlist.lua",
-- "ShitlistConfig.lua",
-- "ShitlistUtils.lua",
-- "Locales/*.lua"
-- }
max_line_length = false
max_code_line_length = false
max_string_line_length = false
max_comment_line_length = false

exclude_files = {
"libs/",
Expand All @@ -31,372 +24,6 @@ ignore = {
"542", -- empty if branch
}

globals = {
"Shitlist"
}

read_globals = {
"bit",
"math",
"ceil", "floor",
"abs", "mod", "max",
"sin", "cos", "tan",
"hooksecurefunc",
"table", "tinsert", "tContains", "tAppendAll", "tDeleteItem", "wipe", "MergeTable",
"string", "tostringall", "strtrim", "strmatch", "strjoin", "strsplit", "strlower",
"time",

-- our own globals
globals = {}

-- misc custom, third party libraries
"LibStub", "tekDebug",
"AceGUIWidgetLSMlists",
"ChatThrottleLib",
"GetAuctionBuyout",
"TomTom",
"DBM",

-- API functions
"C_AreaPoiInfo",
"C_Calendar",
"C_ChatInfo",
"C_Covenants",
"C_CovenantSanctumUI",
"C_CurrencyInfo",
"C_DateAndTime",
"C_GamePad",
"C_Garrison",
"C_Item",
"C_MajorFactions",
"C_Map",
"C_Minimap",
"C_MountJournal",
"C_NamePlate",
"C_PetJournal",
"C_QuestLog",
"C_Spell",
"C_SuperTrack",
"C_TaskQuest",
"C_Texture",
"C_Timer",
"C_TooltipInfo",
"C_ToyBox",
"C_Transmog",
"C_TransmogCollection",
"C_UnitAuras",
"C_VignetteInfo",
"TransmogUtil",
"UiMapPoint",
"Debug",
"Enum",
"BankButtonIDToInvSlotID",
"ContainerIDToInventoryID",
"ReagentBankButtonIDToInvSlotID",
"Ambiguate",
"CombatLogGetCurrentEventInfo",
"CreateColor",
"CreateColorFromBytes",
"CreateMacro",
"CursorHasItem",
"DeleteCursorItem",
"EditMacro",
"EnumerateServerChannels",
"FlashClientIcon",
"GetAddOnInfo",
"GetAddOnMetadata",
"GetAchievementCriteriaInfo",
"GetAchievementCriteriaInfoByID",
"GetAchievementInfo",
"GetAchievementLink",
"GetAchievementNumCriteria",
"GetAuctionItemSubClasses",
"GetBuildInfo",
"GetBackpackAutosortDisabled",
"GetBagSlotFlag",
"GetBankAutosortDisabled",
"GetBankBagSlotFlag",
"GetChannelName",
"GetContainerNumFreeSlots",
"GetContainerNumSlots",
"GetContainerItemID",
"GetContainerItemInfo",
"GetContainerItemLink",
"GetCurrentGuildBankTab",
"GetCurrentMapAreaID",
"GetCursorInfo",
"GetCVar",
"GetFactionInfoByID",
"GetGuildBankItemInfo",
"GetGuildBankItemLink",
"GetGuildBankTabInfo",
"GetGuildBankNumSlots",
"GetInventoryItemLink",
"GetItemClassInfo",
"GetItemCount",
"GetItemFamily",
"GetItemInfo",
"GetItemInfoInstant",
"GetItemQualityColor",
"GetItemSpecInfo",
"GetLocale",
"GetMacroIndexByName",
"GetNumGroupMembers",
"GetNumMacros",
"GetRealmName",
"GetPlayerAuraBySpellID",
"GetPlayerFacing",
"GetRaidTargetIndex",
"GetScreenHeight",
"GetScreenWidth",
"GetSpellInfo",
"GetTime",
"GetZoneText",
"InCinematic",
"InCombatLockdown",
"IsAddOnLoaded",
"IsAltKeyDown",
"IsControlKeyDown",
"IsCosmeticItem",
"IsInCinematicScene",
"IsInGroup",
"IsInGuild",
"IsInInstance",
"IsInRaid",
"IsModifiedClick",
"IsModifierKeyDown",
"IsReagentBankUnlocked",
"IsShiftKeyDown",
"IsSpellKnown",
"LoadAddOn",
"MouseIsOver",
"OpenWorldMap",
"PlaySound",
"PlaySoundFile",
"PlayerHasToy",
"PickupContainerItem",
"PickupGuildBankItem",
"QueryGuildBankTab",
"SendChatMessage",
"SetCVar",
"SetMapByID",
"SetMapToCurrentZone",
"SetRaidTarget",
"SetRaidTargetIconTexture",
"SplitContainerItem",
"SplitGuildBankItem",
"StopSound",
"UnitClass",
"UnitClassification",
"UnitCreatureType",
"UnitExists",
"UnitFactionGroup",
"UnitFullName",
"UnitGUID",
"UnitHealth",
"UnitHealthMax",
"UnitInRange",
"UnitIsAFK",
"UnitIsDead",
"UnitIsGroupLeader",
"UnitIsPlayer",
"UnitIsVisible",
"UnitLevel",
"UnitName",
"UnitOnTaxi",
"UnitPlayerControlled",
"UseContainerItem",

-- FrameXML frames
"BankFrame",
"MerchantFrame",
"GameTooltip",
"UIParent",
"WorldFrame",
"Minimap",
"WorldMapFrame",
"MountJournal",
"DEFAULT_CHAT_FRAME",
"GameFontHighlightSmall",

-- FrameXML API
"ChatEdit_InsertLink",
"ChatFrame_OpenChat",
"CopyTable",
"CreateAtlasMarkup",
"CreateTextureMarkup",
"CreateFrame",
"CreateFramePool",
"CreateObjectPool",
"CreateFromMixins",
"CreateAndInitFromMixin",
"Mixin",
"Item",
"ContinuableContainer",
"InterfaceOptionsFrame_OpenToCategory",
"CloseDropDownMenus",
"ToggleDropDownMenu",
"UIDropDownMenu_AddButton",
"UIDropDownMenu_CreateInfo",
"UISpecialFrames",
"ScrollingEdit_OnCursorChanged",
"ScrollingEdit_OnUpdate",
"GameTooltip_Hide",
"GameTooltip_OnLoad",
"GameTooltip_OnTooltipSetItem",
"GameTooltip_OnTooltipSetSpell",
"GameTooltip_OnTooltipSetUnit",
"GameTooltip_OnTooltipSetShoppingItem",
"GameTooltip_OnUpdate",
"GameTooltip_SetTitle",
"GameTooltip_SetDefaultAnchor",
"HandleModifiedItemClick",
"MapCanvasDataProviderMixin",
"MapCanvasPinMixin",
"Vector2DMixin",
"VignettePinMixin",
"WorldMapPOIQuantizerMixin",
"RegionUtil",
"FramePool_HideAndClearAnchors",
"OpenAchievementFrameToAchievement",
"ToggleWorldMap",
"SetItemButtonTexture",
"TooltipDataProcessor",
"TooltipUtil",

-- FrameXML Constants
"ACHIEVEMENTS",
"ACTION_PARTY_KILL",
"ADD",
"ALL",
"ALT_KEY_TEXT",
"AZERITE_ESSENCE_TOOLTIP_NAME_RANK",
"BACKPACK_CONTAINER",
"BACKPACK_TOOLTIP",
"BAG_CLEANUP_BAGS",
"BAG_FILTER_ICONS",
"BAGSLOT",
"BANK",
"BANK_BAG_PURCHASE",
"BANK_CONTAINER",
"BOSS_DEAD",
"CHAT_MSG_SAY",
"CHAT_MSG_YELL",
"CHAT_MSG_PARTY",
"CHAT_MSG_RAID",
"CHAT_MSG_GUILD",
"CHAT_MSG_OFFICER",
"CLASS_ICON_TCOORDS",
"CLICK_FOR_DETAILS",
"CLOSE",
"COLOR",
"COMMUNITIES_DEFAULT_CHANNEL_NAME",
"COMMUNITIES_INVITE_MANAGER_LINK_TO_CHAT",
"COMPLETE",
"CONFIRM_BUY_BANK_SLOT",
"COVENANT_COLORS",
"CRITERIA_COMPLETED",
"CTRL_KEY_TEXT",
"DEFAULT",
"DRAG_MODEL",
"DONE",
"EMOTE88_CMD1",
"EMOTE410_CMD1",
"ENABLE",
"ENCOUNTER_JOURNAL_ITEM",
"ERR_USE_LOCKED_WITH_ITEM_S",
"EQUIP_CONTAINER",
"GREEN_FONT_COLOR",
"HIDE",
"ICON_LIST",
"ID",
"IGNORE",
"INCOMPLETE",
"ITEM_BIND_QUEST",
"ITEM_BNETACCOUNTBOUND",
"ITEM_CONJURED",
"ITEM_PET_KNOWN",
"ITEM_REQ_SKILL",
"ITEM_SET_NAME",
"ITEM_SOULBOUND",
"LE_BAG_FILTER_FLAG_EQUIPMENT",
"LE_BAG_FILTER_FLAG_IGNORE_CLEANUP",
"LE_EXPANSION_LEVEL_CURRENT",
"LE_EXPANSION_CLASSIC",
"LE_EXPANSION_BURNING_CRUSADE",
"LE_EXPANSION_WRATH_OF_THE_LICH_KING",
"LE_EXPANSION_CATACLYSM",
"LE_EXPANSION_MISTS_OF_PANDARIA",
"LE_EXPANSION_WARLORDS_OF_DRAENOR",
"LE_EXPANSION_LEGION",
"LE_EXPANSION_BATTLE_FOR_AZEROTH",
"LE_EXPANSION_SHADOWLANDS",
"LE_EXPANSION_DRAGONFLIGHT",
"LE_ITEM_CLASS_WEAPON",
"LE_ITEM_CLASS_ARMOR",
"LE_ITEM_CLASS_CONTAINER",
"LE_ITEM_CLASS_GEM",
"LE_ITEM_CLASS_ITEM_ENHANCEMENT",
"LE_ITEM_CLASS_CONSUMABLE",
"LE_ITEM_CLASS_GLYPH",
"LE_ITEM_CLASS_TRADEGOODS",
"LE_ITEM_CLASS_RECIPE",
"LE_ITEM_CLASS_BATTLEPET",
"LE_ITEM_CLASS_QUESTITEM",
"LE_ITEM_CLASS_MISCELLANEOUS",
"LE_ITEM_QUALITY_POOR",
"LE_PARTY_CATEGORY_HOME",
"LE_PARTY_CATEGORY_INSTANCE",
"LOCALIZED_CLASS_NAMES_FEMALE",
"LOCALIZED_CLASS_NAMES_MALE",
"LOCATION_COLON",
"LOOT",
"MAP_PIN",
"MAP_PIN_HYPERLINK",
"MAX_ACCOUNT_MACROS",
"MAX_CONTAINER_ITEMS",
"MOUNT",
"MOVE_FRAME",
"NEED",
"NEVER",
"NEW_ITEM_ATLAS_BY_QUALITY",
"NO",
"NONE",
"NUM_BAG_SLOTS",
"NUM_BANKBAGSLOTS",
"NUM_CONTAINER_FRAMES",
"NUM_LE_BAG_FILTER_FLAGS",
"OBJECTIVES_VIEW_ACHIEVEMENT",
"PARENS_TEMPLATE",
"PREVIEW",
"QUESTS_COLON",
"RAID_CLASS_COLORS",
"REAGENT_BANK",
"REAGENTBANK_CONTAINER",
"REAGENTBANK_DEPOSIT",
"RED_FONT_COLOR",
"REMOVE",
"RETRIEVING_ITEM_INFO",
"SEARCH_LOADING_TEXT",
"SHIFT_KEY_TEXT",
"SOUNDKIT",
"STATICPOPUP_NUMDIALOGS",
"SUBTITLE_FORMAT",
"TARGET",
"TEXTURE_ITEM_QUEST_BANG",
"TEXTURE_ITEM_QUEST_BORDER",
"TEXTURES_SUBHEADER",
"TOOLTIP_BATTLE_PET",
"TOY",
"TRADESKILL_POST",
"UIDROPDOWNMENU_MENU_VALUE",
"UIDROPDOWNMENU_MENU_LEVEL",
"UI_SCALE",
"UNKNOWN",
"UNKNOWNOBJECT",
"USED",
"WOW_PROJECT_ID",
"WOW_PROJECT_MAINLINE",
"WOW_PROJECT_CLASSIC",
"YES",
"ZONE",
}
read_globals = {}
Loading

0 comments on commit 91660b8

Please sign in to comment.