Use new linter (#294)

* Use new linter

* Luacheck and Sumneko Lua fixes

* Bump CI action versions

* Fix excludes for ldoc
This commit is contained in:
Cooldude2606 authored and GitHub committed 2024-05-29 15:39:37 +01:00
1 parent 4fa410e872
commit 8638504550
27 files changed
+96 -92

No files matched your search

+2 -1
View File
@@ -32,7 +32,8 @@ local function format_energy(amount, unit)
end
end
local formatted, k = amount
local k
local formatted = amount
while true do
formatted, k = string.gsub(formatted, '^(-?%d+)(%d%d%d)', '%1,%2')