linter fixes
Some checks failed
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/pr/woodpecker Pipeline failed

This commit is contained in:
2026-02-18 08:16:10 +01:00
parent f589b9bbca
commit 3dd6cfcdcb
18 changed files with 125 additions and 147 deletions

44
.luacheckrc Normal file
View File

@@ -0,0 +1,44 @@
-- .luacheckrc
-- Configuration for luacheck
globals = {
"Util",
"DesitionManager",
"ScreenManager",
"UI",
"Print",
"Input",
"Audio",
"Context",
"mset",
"mget",
"btnp",
"keyp",
"music",
"sfx",
"rect",
"rectb",
"circ",
"circb",
"cls",
"tri",
"Songs",
"frame_from_beat",
"beats_to_pattern",
"MapBedroom",
"TIC",
"exit",
"trace",
"index_menu",
}
-- Exclude certain warnings globally
exclude_warnings = {
"undefined_global", -- Will be covered by 'globals' table
"redefined_loop_variable", -- Common in Lua for iterators
}
-- Options for unused variables
std = "lua51" -- Assuming Lua 5.1, common for TIC-80