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