Skip to content

Commit 63ff6dd

Browse files
authored
Merge pull request finale-lua#675 from asherber/lint
Linting tweaks
2 parents a396501 + 5247739 commit 63ff6dd

10 files changed

+67
-253
lines changed

.vscode/extensions.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"recommendations": ["Koihik.vscode-lua-format", "sumneko.lua", "rog2.luacheck"]
2+
"recommendations": ["Koihik.vscode-lua-format", "sumneko.lua", "dwenegar.vscode-luacheck"]
33
}

src/harp_pedal_wizard.lua

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@ function plugindef()
44
finaleplugin.RequireSelection = false
55
finaleplugin.Author = "Jacob Winkler"
66
finaleplugin.Copyright = "2022"
7-
finaleplugin.Version = "2.0.2"
7+
finaleplugin.Version = "2.0.3"
88
finaleplugin.Date = "2024-01-15"
99
finaleplugin.HandlesUndo = true
1010
finaleplugin.MinJWLuaVersion = 0.63 -- https://robertgpatterson.com/-fininfo/-rgplua/rgplua.html
1111
return "Harp Pedal Wizard...", "Harp Pedal Wizard", "Creates Harp Diagrams and Pedal Changes"
1212
end
1313

1414
-- just for now
15-
-- luacheck: ignore
15+
-- luacheck: no global, no unused
1616

1717
local library = require("library.general_library")
1818
local configuration = require("library.configuration")

src/lyrics_openai_hyphenation.lua

+4-4
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ function plugindef()
44
finaleplugin.ExecuteHttpsCalls = true
55
finaleplugin.Author = "Robert Patterson"
66
finaleplugin.Copyright = "CC0 https://creativecommons.org/publicdomain/zero/1.0/"
7-
finaleplugin.Version = "3.0.2"
7+
finaleplugin.Version = "3.0.3"
88
finaleplugin.Date = "October 29, 2023"
99
finaleplugin.CategoryTags = "Lyrics"
1010
finaleplugin.Notes = [[
@@ -366,7 +366,7 @@ local function on_selection_changed(text_ctrl)
366366
end
367367

368368
-- FCXCustomLuaWindow (mixin version) passes the dialog as the first parameter to HandleTimer
369-
local function on_timer(_, timer_id)
369+
local function on_timer(_dialog, timer_id)
370370
if timer_id ~= context.global_timer_id then return end
371371
local curr_doc_id = finale.FCDocument().ID
372372
if curr_doc_id ~= context.current_document_id then
@@ -522,7 +522,7 @@ local function create_dialog_box()
522522
dlg:CreateButton(xoff, yoff, "update")
523523
:SetText("Update")
524524
:SetWidth(110)
525-
:AddHandleCommand(function(_) update_document() end)
525+
:AddHandleCommand(function(_control) update_document() end)
526526
xoff = xoff + 120
527527
dlg:CreateCheckbox(xoff, yoff, "auto_update")
528528
:SetText("Update Automatically")
@@ -534,7 +534,7 @@ local function create_dialog_box()
534534
dlg:CreateButton(xoff, yoff, "refresh")
535535
:SetText("Get from Document")
536536
:SetWidth(150)
537-
:AddHandleCommand(function(_)
537+
:AddHandleCommand(function(_control)
538538
update_dlg_text({reset_undo = false})
539539
end)
540540
dlg:CreateCloseButton(xoff + text_width - 80, yoff)

0 commit comments

Comments
 (0)