diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..2959d64 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,12 @@ +name: Luacheck +on: [push] +jobs: + Luacheck_Tests: + runs-on: ubuntu-latest + steps: + - run: echo "Running tests triggered by a ${{ github.event_name }} event." + - run: echo "Testing ${{ github.ref }} from ${{ github.repository }} on ${{ runner.os }}" + - name: Check out code + uses: actions/checkout@v3 + - name: Run tests + uses: lunarmodules/luacheck@v0 diff --git a/.luacheckrc b/.luacheckrc new file mode 100644 index 0000000..5889780 --- /dev/null +++ b/.luacheckrc @@ -0,0 +1,11 @@ +codes = true +allow_defined = true +max_line_length = false + +globals = { + "client", "screen", "mouse" +} + +ignore = { + "131", +}