Skip to content

Commit b408e9c

Browse files
t4imparamat
authored andcommittedAug 9, 2016
Let Travis-CI automatically run luacheck on the game
1 parent 20fa037 commit b408e9c

File tree

2 files changed

+31
-0
lines changed

2 files changed

+31
-0
lines changed
 

‎.luacheckrc

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
unused_args = false
2+
allow_defined_top = true
3+
4+
read_globals = {
5+
"DIR_DELIM",
6+
"minetest", "core",
7+
"dump",
8+
"vector", "nodeupdate",
9+
"VoxelManip", "VoxelArea",
10+
"PseudoRandom", "ItemStack",
11+
}
12+
13+
-- Overwrites minetest.handle_node_drops
14+
files["mods/creative/init.lua"].globals = { "minetest" }
15+
16+
-- Don't report on legacy definitions of globals.
17+
files["mods/default/legacy.lua"].global = false

‎.travis.yml

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
language: generic
2+
3+
branches:
4+
only:
5+
- master
6+
7+
sudo: required
8+
9+
before_install:
10+
- sudo apt-get update
11+
- sudo apt-get install -y luarocks
12+
- sudo luarocks install luacheck
13+
14+
script: luacheck --no-color ./mods

0 commit comments

Comments
 (0)
Please sign in to comment.