Skip to content

Commit

Permalink
chore: Update Luacheck CI action and check for minimum Lua version
Browse files Browse the repository at this point in the history
  • Loading branch information
Omikhleia authored and Didier Willis committed Dec 8, 2023
1 parent e5f4314 commit b0f4531
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 13 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/luacheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ jobs:
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Luacheck
uses: lunarmodules/luacheck@v0
uses: lunarmodules/luacheck@v1
13 changes: 2 additions & 11 deletions .luacheckrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
std = "max"
std = "min+sile"
include_files = {
"**/*.lua",
"sile.in",
Expand All @@ -11,23 +11,14 @@ exclude_files = {
"compare-*",
"sile-*",
"lua_modules",
"lua-libraries",
-- "lua-libraries", -- Let's also check out vendored libraries
".lua",
".luarocks",
".install"
}
files["**/*_spec.lua"] = {
std = "+busted"
}
globals = {
"SILE",
"SU",
"luautf8",
"pl",
"fluent",
"SYSTEM_SILE_PATH",
"SHARED_LIB_EXT"
}
max_line_length = false
ignore = {
"581" -- operator order warning doesn't account for custom table metamethods
Expand Down

0 comments on commit b0f4531

Please sign in to comment.