Add luacheck (#1)

master
David Leal 2020-02-06 19:06:56 -06:00 committed by GitHub
parent f3b60a7107
commit a58f167107
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 63 additions and 0 deletions

11
.github/workflows/check-release.yml vendored Normal file
View File

@ -0,0 +1,11 @@
on: [push, pull_request]
name: Check & Release
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: lint
uses: Roang-zero1/factorio-mod-luacheck@master
with:
luacheckrc_url: https://raw.githubusercontent.com/BlockySurvival/mobs_redo/master/.luacheckrc

51
.luacheckrc Normal file
View File

@ -0,0 +1,51 @@
unused_args = false
allow_defined_top = true
max_line_length = 999
ignore = {
"NS",
"min",
"damage_enabled",
"node_fire",
"node_permanent_flame",
"vel",
"pos",
"ent",
"new_line_of_sight",
"direction",
"yaw",
"sheight",
"self",
"p1",
"s",
"dist",
"p",
"obj",
"mob",
"nod",
"num",
"punch_interval",
"v",
"name",
"attach_at",
"eye_offset",
"new_velo",
"rot_steer",
"rot_view",
"objs",
}
globals = {
"minetest", "mobs",
"default",
}
read_globals = {
string = {fields = {"split", "trim"}},
table = {fields = {"copy", "getn"}},
"vector", "ItemStack",
"cmi", "tnt", "toolranks",
"intllib", "lucky_block", "invisibility",
}

View File

@ -1,3 +1,4 @@
[![](https://github.com/BlockySurvival/mobs_redo/workflows/Check%20&%20Release/badge.svg)](https://github.com/BlockySurvival/mobs_redo/actions)
MOBS REDO for MINETEST