-
Notifications
You must be signed in to change notification settings - Fork 18
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
Showing
45 changed files
with
2,453 additions
and
1,513 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,24 @@ | ||
name: CI | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Install Lua | ||
run: | | ||
sudo apt install lua5.1 luarocks | ||
sudo luarocks install luafilesystem | ||
sudo luarocks install luacheck | ||
- name: Set up environment | ||
run: | | ||
wget -O .luacheckrc 'https://ci.appveyor.com/api/projects/cuberite/cuberite/artifacts/.luacheckrc?job=Windows-x64&pr=false&branch=master' | ||
- name: Run tests | ||
run: | | ||
luacheck . --codes |
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,23 @@ | ||
-- This file contains plugin specific options or tables for luacheck | ||
-- It will be merged with cuberite's luacheck | ||
|
||
-- Ignore variables / warning codes | ||
-- Doc: http://luacheck.readthedocs.io/en/stable/warnings.html | ||
ignore = | ||
{ | ||
"122", -- Mutating read-only global variable | ||
"131", -- Unused global variable | ||
"142", -- Setting undefined field of global math, string, table | ||
"143", -- Accessing undefined field of global math, table | ||
"211", -- Unused variable | ||
"221", -- Variable is never set | ||
"231", -- Variable is never accessed | ||
"311", -- Value assigned to variable is unused | ||
"411", -- Variable was previously defined | ||
"421", -- Shadowing definition of variable | ||
"423", -- Shadowing definition of loop variable | ||
"432", -- Shadowing upvalue argument | ||
"531", -- Left-hand side of assignment is too short | ||
"542", -- Empty if branch | ||
"631", -- Line too long | ||
} |
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
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
Oops, something went wrong.