Skip to content

Commit

Permalink
Added linter
Browse files Browse the repository at this point in the history
  • Loading branch information
SX committed Feb 14, 2020
1 parent a3966d1 commit 13f7c69
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/luacheck.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: luacheck

on: [push]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1
- name: apt
run: sudo apt-get install -y luarocks
- name: luacheck install
run: luarocks install --local luacheck
- name: luacheck run
run: $HOME/.luarocks/bin/luacheck ./
24 changes: 24 additions & 0 deletions .luacheckrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
unused_args = false

ignore = {
"631",
}

globals = {
"elevator",
}

read_globals = {
-- Stdlib
string = {fields = {"split"}},
table = {fields = {"copy", "getn"}},

-- Minetest
"minetest",
"vector",
"VoxelManip",

-- deps
"default", "screwdriver",
"farming", "armor",
}

0 comments on commit 13f7c69

Please sign in to comment.