diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..05e6384 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,11 @@ +on: [push, pull_request] +name: build +jobs: + lint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: lint + uses: Roang-zero1/factorio-mod-luacheck@master + with: + luacheckrc_url: "" diff --git a/.luacheckrc b/.luacheckrc new file mode 100644 index 0000000..855ad92 --- /dev/null +++ b/.luacheckrc @@ -0,0 +1,19 @@ +allow_defined_top = true +unused_args = false +max_line_length = false + +read_globals = { + string = {fields = {"split", "trim"}}, + table = {fields = {"copy", "getn"}}, + + "player_monoids", + "playerphysics", + "hb", + "vector", + "hunger_ng", +} + +globals = { + "minetest", + "hbhunger" +}