feat(ci): using .luacheckrc

This commit is contained in:
Werner Fleischer 2023-01-27 09:17:00 +01:00 committed by Saúl Ibarra Corretgé
parent 74bdb7bc3f
commit e6eba3536a
2 changed files with 9 additions and 2 deletions

View File

@ -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

8
.luacheckrc Normal file
View File

@ -0,0 +1,8 @@
global = false
unused = false
redefined = false
ignore = { "581" }
max_line_length = false
color = false
formatter = "plain"
quiet = 1