fix workflow/issue templates
This commit is contained in:
@@ -1,7 +1,6 @@
|
|||||||
name: "Bug Report"
|
name: "Bug Report"
|
||||||
description: Create a report to help us improve
|
description: Create a report to help us improve
|
||||||
labels: ['🐛 Bug']
|
labels: ['🐛 Bug']
|
||||||
type: Bug
|
|
||||||
body:
|
body:
|
||||||
- type: checkboxes
|
- type: checkboxes
|
||||||
attributes:
|
attributes:
|
||||||
|
|||||||
@@ -5,6 +5,9 @@ on:
|
|||||||
paths:
|
paths:
|
||||||
- '.github/workflows/**.yml'
|
- '.github/workflows/**.yml'
|
||||||
- '**.lua'
|
- '**.lua'
|
||||||
|
pull_request:
|
||||||
|
paths:
|
||||||
|
- '**.lua'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
lint:
|
lint:
|
||||||
@@ -60,4 +63,4 @@ jobs:
|
|||||||
rm -rf $GITHUB_WORKSPACE/luarocks-${{ env.LUAROCKS_VERSION }}
|
rm -rf $GITHUB_WORKSPACE/luarocks-${{ env.LUAROCKS_VERSION }}
|
||||||
|
|
||||||
- name: Luacheck
|
- name: Luacheck
|
||||||
run: .luarocks/bin/luacheck . -q
|
run: .luarocks/bin/luacheck .
|
||||||
|
|||||||
+26
-2
@@ -1,12 +1,15 @@
|
|||||||
std = "lua51"
|
std = "lua51"
|
||||||
max_line_length = false
|
max_line_length = false
|
||||||
exclude_files = {
|
exclude_files = {
|
||||||
"babelfish.lua",
|
|
||||||
"WeakAuras_Main.lua",
|
"WeakAuras_Main.lua",
|
||||||
"WeakAuras_Options.lua",
|
"WeakAuras_Options.lua",
|
||||||
"WeakAuras_Templates.lua",
|
"WeakAuras_Templates.lua",
|
||||||
"WeakAuras/Libs/",
|
"WeakAuras/Libs/",
|
||||||
".luacheckrc"
|
"WeakAurasOptions/Libs/",
|
||||||
|
"WeakAuras/Locales",
|
||||||
|
"WeakAurasOptions/Locales",
|
||||||
|
".luacheckrc",
|
||||||
|
".luarocks",
|
||||||
}
|
}
|
||||||
ignore = {
|
ignore = {
|
||||||
"11./SLASH_.*", -- Setting an undefined (Slash handler) global variable
|
"11./SLASH_.*", -- Setting an undefined (Slash handler) global variable
|
||||||
@@ -27,6 +30,7 @@ ignore = {
|
|||||||
"542", -- An empty if branch
|
"542", -- An empty if branch
|
||||||
"581", -- error-prone operator orders
|
"581", -- error-prone operator orders
|
||||||
"582", -- error-prone operator orders
|
"582", -- error-prone operator orders
|
||||||
|
"512", -- loop is executed at most once (Retail function)
|
||||||
}
|
}
|
||||||
globals = {
|
globals = {
|
||||||
"_G",
|
"_G",
|
||||||
@@ -19545,4 +19549,24 @@ globals = {
|
|||||||
"ZOOM_OUT",
|
"ZOOM_OUT",
|
||||||
"ZOOM_OUT_BUTTON_TEXT",
|
"ZOOM_OUT_BUTTON_TEXT",
|
||||||
"_RECORDING_WARNING_CORRUPTED",
|
"_RECORDING_WARNING_CORRUPTED",
|
||||||
|
|
||||||
|
"GetNumPartyMembers", "GetNumRaidMembers", "noop", "tInvert", "DeltaLerp",
|
||||||
|
"GetNumEquipmentSets", "GetEquipmentSetInfo", "CR_HASTE_MELEE", "CR_HASTE_RANGED",
|
||||||
|
"CR_CRIT_TAKEN_MELEE", "CR_CRIT_TAKEN_RANGED", "CR_CRIT_TAKEN_SPELL",
|
||||||
|
"BNGetNumFriendToons", "BNGetFriendToonInfo", "KuiNameplates", "TidyPlatesThreat",
|
||||||
|
"UnitIsPartyLeader", "EasyMenu", "SELECTED_CHAT_FRAME", "handler", "InterfaceOptions_AddCategory",
|
||||||
|
"PanelTemplates_SetDisabledTabState", "PanelTemplates_SelectTab", "PanelTemplates_DeselectTab",
|
||||||
|
"PanelTemplates_TabResize", "GameFontNormalSmall", "ColorPickerFrame", "OpacitySliderFrame",
|
||||||
|
"AceGUIEditBoxInsertLink", "AceGUIMultiLineEditBoxInsertLink",
|
||||||
|
"ObjectPoolMixin", "FramePoolMixin", "FramePool_Hide", "FramePool_HideAndClearAnchors",
|
||||||
|
"TexturePoolMixin", "TexturePool_Hide", "TexturePool_HideAndClearAnchors", "CreateTexturePool",
|
||||||
|
"FontStringPoolMixin", "FontStringPool_Hide", "FontStringPool_HideAndClearAnchors",
|
||||||
|
"CreateFontStringPool", "ActorPoolMixin", "ActorPool_Hide", "ActorPool_HideAndClearModel",
|
||||||
|
"CreateActorPool", "FramePoolCollectionMixin", "CreateFramePoolCollection",
|
||||||
|
"FixedSizeFramePoolCollectionMixin", "CreateFixedSizeFramePoolCollection",
|
||||||
|
"WA_MaximizeMinimizeButtonFrame_Mixin", "WA_PortraitFrameTemplate_Mixin",
|
||||||
|
"WA_UpdateNineSliceBorders", "SecondsToMinutes", "MinutesToSeconds", "HasTimePassed",
|
||||||
|
"SecondsFormatterConstants", "ConvertSecondsToUnits", "SecondsToClock",
|
||||||
|
"MinutesToTime", "FormatShortDate", "NUMBER_ABBREVIATION_DATA", "WeakAurasProfilingReportTitleText",
|
||||||
|
"WeakAurasRealTimeProfiling", "WeakAurasRealTimeProfilingTitleText", "seconds"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,14 +2,13 @@ if not WeakAuras.IsLibsOK() then return end
|
|||||||
|
|
||||||
local AddonName, Private = ...
|
local AddonName, Private = ...
|
||||||
|
|
||||||
local LibGroupTalents = LibStub:GetLibrary("LibGroupTalents-1.0", true)
|
|
||||||
local subscribers = {}
|
local subscribers = {}
|
||||||
|
|
||||||
Private.LibGroupTalentsWrapper = {
|
Private.LibGroupTalentsWrapper = {
|
||||||
Register = function(f) end,
|
Register = function(f) end,
|
||||||
}
|
}
|
||||||
|
|
||||||
if LibGroupTalents then
|
if WeakAuras.LGT and WeakAuras.LGT.RegisterCallback then
|
||||||
function Private.LibGroupTalentsWrapper.CallbackHandler(_, _, _, unit)
|
function Private.LibGroupTalentsWrapper.CallbackHandler(_, _, _, unit)
|
||||||
if unit then
|
if unit then
|
||||||
for _, f in ipairs(subscribers) do
|
for _, f in ipairs(subscribers) do
|
||||||
|
|||||||
@@ -1,14 +1,8 @@
|
|||||||
if not WeakAuras.IsLibsOK() then return end
|
if not WeakAuras.IsLibsOK() then return end
|
||||||
---@type string
|
|
||||||
local AddonName = ...
|
local AddonName = ...
|
||||||
---@class OptionsPrivate
|
|
||||||
local OptionsPrivate = select(2, ...)
|
local OptionsPrivate = select(2, ...)
|
||||||
|
|
||||||
if not WeakAuras.IsLibsOK() then return end
|
|
||||||
---@type string
|
|
||||||
local AddonName = ...
|
|
||||||
---@class OptionsPrivate
|
|
||||||
local OptionsPrivate = select(2, ...)
|
|
||||||
OptionsPrivate.changelog = {
|
OptionsPrivate.changelog = {
|
||||||
versionString = '5.19.1',
|
versionString = '5.19.1',
|
||||||
dateString = '2025-01-30',
|
dateString = '2025-01-30',
|
||||||
|
|||||||
Reference in New Issue
Block a user