-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4da3de9
commit 0bce2af
Showing
2 changed files
with
25 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
name: Luacheck | ||
on: [push, pull_request] | ||
jobs: | ||
sile: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Luacheck linter | ||
uses: nebularg/actions-luacheck@v1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
max_line_length=140 | ||
-- show the warning/error codes as well | ||
codes=true | ||
-- skip showing files with no issues | ||
quiet=1 | ||
-- checks related to undefined variable usage | ||
-- there can be warnings because luacheck is unaware of Wesnoth's | ||
-- lua environment and has no way to check which have been loaded | ||
globals={"wesnoth","wml","gui","filesystem","unit_test","stringx","mathx","ai"} | ||
-- allow_defined=true | ||
-- allow_defined_top=true | ||
-- skip showing unused variables | ||
-- unused=false | ||
-- skip showing warnings about shadowing upvalues | ||
-- ignore={"431"} |
0bce2af
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@cooljeanius
0bce2af
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
missing newlines at EOF
0bce2af
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also 200 would probably be a good value for the
max_line_length=
setting here