forked from mtcontrib/pipeworks
		
	Merge branch 'master' into 'master'
Add luacheck config and ci job See merge request VanessaE/pipeworks!37
This commit is contained in:
		
							
								
								
									
										8
									
								
								.gitlab-ci.yml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										8
									
								
								.gitlab-ci.yml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,8 @@
 | 
			
		||||
stages:
 | 
			
		||||
  - test
 | 
			
		||||
 | 
			
		||||
luacheck:
 | 
			
		||||
 stage: test
 | 
			
		||||
 image: pipelinecomponents/luacheck:latest
 | 
			
		||||
 script:
 | 
			
		||||
  - luacheck .
 | 
			
		||||
							
								
								
									
										24
									
								
								.luacheckrc
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										24
									
								
								.luacheckrc
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,24 @@
 | 
			
		||||
unused_args = false
 | 
			
		||||
max_line_length= 240
 | 
			
		||||
redefined = false
 | 
			
		||||
 | 
			
		||||
globals = {
 | 
			
		||||
	"pipeworks",
 | 
			
		||||
	"luaentity"
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
read_globals = {
 | 
			
		||||
	-- Stdlib
 | 
			
		||||
	string = {fields = {"split"}},
 | 
			
		||||
	table = {fields = {"copy", "getn"}},
 | 
			
		||||
 | 
			
		||||
	-- Minetest
 | 
			
		||||
	"vector", "ItemStack",
 | 
			
		||||
	"dump", "minetest",
 | 
			
		||||
	"VoxelManip", "VoxelArea",
 | 
			
		||||
 | 
			
		||||
	-- mods
 | 
			
		||||
	"default", "mesecon", "digiline",
 | 
			
		||||
	"screwdriver"
 | 
			
		||||
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user