From e6eba3536ad95a9d0184d62a4594a1f37507958f Mon Sep 17 00:00:00 2001 From: Werner Fleischer <70745309+wfleischer@users.noreply.github.com> Date: Fri, 27 Jan 2023 09:17:00 +0100 Subject: [PATCH] feat(ci): using .luacheckrc --- .github/workflows/ci-lua.yml | 3 +-- .luacheckrc | 8 ++++++++ 2 files changed, 9 insertions(+), 2 deletions(-) create mode 100644 .luacheckrc diff --git a/.github/workflows/ci-lua.yml b/.github/workflows/ci-lua.yml index 123c088d9..6fe4c5957 100644 --- a/.github/workflows/ci-lua.yml +++ b/.github/workflows/ci-lua.yml @@ -17,8 +17,7 @@ jobs: - name: Check lua codes run: | - set -o pipefail - luacheck -q -gur -i 581 --no-max-line-length --no-color --formatter plain $(find -name '*.lua') | awk -F: ' + set -o pipefail && luacheck . | awk -F: ' { print $0 printf "::warning file=%s,line=%s,col=%s::%s\n", $1, $2, $3, $4 diff --git a/.luacheckrc b/.luacheckrc new file mode 100644 index 000000000..148df0976 --- /dev/null +++ b/.luacheckrc @@ -0,0 +1,8 @@ +global = false +unused = false +redefined = false +ignore = { "581" } +max_line_length = false +color = false +formatter = "plain" +quiet = 1