From 3b3ea242f79dbef80d0c7d0b9df05fcec963b9e9 Mon Sep 17 00:00:00 2001 From: Luke aka SwissalpS Date: Wed, 27 Nov 2024 22:33:36 +0100 Subject: [PATCH] add luacheck --- .github/workflows/luacheck.yml | 10 ++++++++++ .luacheckrc | 12 ++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 .github/workflows/luacheck.yml create mode 100644 .luacheckrc diff --git a/.github/workflows/luacheck.yml b/.github/workflows/luacheck.yml new file mode 100644 index 0000000..3c99a99 --- /dev/null +++ b/.github/workflows/luacheck.yml @@ -0,0 +1,10 @@ +name: luacheck +on: [push, pull_request] +jobs: + luacheck: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@master + - name: Luacheck + uses: lunarmodules/luacheck@master diff --git a/.luacheckrc b/.luacheckrc new file mode 100644 index 0000000..77837ad --- /dev/null +++ b/.luacheckrc @@ -0,0 +1,12 @@ +globals = { + "banners", + "smartfs", +} + +read_globals = { + "core", + "dump", + "factions", + "inventory_plus", + "unified_inventory", +}