From 287d7798e2452f819702084c0f2bf5cd484a9a12 Mon Sep 17 00:00:00 2001 From: David Leal Date: Fri, 28 Jul 2023 13:05:38 -0600 Subject: [PATCH] Add LuaCheck (#17) --- .github/workflows/build.yml | 11 +++++++++++ .luacheckrc | 15 +++++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 .github/workflows/build.yml create mode 100644 .luacheckrc 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..3c42a6d --- /dev/null +++ b/.luacheckrc @@ -0,0 +1,15 @@ +allow_defined_top = true +unused_args = false +max_line_length = false + +read_globals = { + "mcl_sounds", + "ItemStack", + "vector", + "default", + "mcl_core" +} + +globals = { + "minetest" +}