Skip to content

Commit b0c6325

Browse files
Repository: Lua linter implementation (#354)
1 parent 7816898 commit b0c6325

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

.github/workflows/linter.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: MTA Resources Linter
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
lint:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- run: sudo apt update && sudo apt -y install luarocks lua5.1 && sudo luarocks install luacheck
10+
- uses: actions/checkout@v1
11+
- name: Lint mta resources
12+
run: |
13+
echo 'ignore = {"122","142","111","341","112","113","143","321"}' > config.lua
14+
luacheck --config config.lua ./

0 commit comments

Comments
 (0)