Skip to content

Commit

Permalink
ci: Lint rockspec and other Lua syntax files
Browse files Browse the repository at this point in the history
  • Loading branch information
alerque committed Sep 30, 2020
1 parent a1315a6 commit 28f79db
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/luacheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,6 @@ jobs:
- name: Setup dependencies
run: luarocks install luacheck
- name: Run Code Linter
run: luacheck .
run: |
luacheck .
luarocks lint *.rockspec
6 changes: 6 additions & 0 deletions .luacheckrc
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@ not_globals = {
"table.getn",
}

include_files = {
"**/*.lua",
"*.rockspec",
".luacheckrc",
"config.lp",
}

exclude_files = {
"tests/*.lua",
Expand Down

0 comments on commit 28f79db

Please sign in to comment.