docs: Add information how to automatically check your code with luacheck
This commit is contained in:
		
							parent
							
								
									a8e5a82215
								
							
						
					
					
						commit
						2541d0a0e2
					
				| @ -54,16 +54,18 @@ commits, making `git reflog` the only way to recover them! | |||||||
| 
 | 
 | ||||||
| Development Guidelines | Development Guidelines | ||||||
| ---------------------- | ---------------------- | ||||||
| lua should be used instead of sh whenever sensible. The following criteria | Lua should be used instead of sh whenever sensible. The following criteria | ||||||
| should be considered: | should be considered: | ||||||
| 
 | 
 | ||||||
| - Is the script doing more than just executing external commands? if so, use lua | - Is the script doing more than just executing external commands? if so, use Lua | ||||||
| - Is the script parsing/editing json-data? If so, use lua for speed | - Is the script parsing/editing json-data? If so, use Lua for speed | ||||||
| - When using sh, use jsonfilter instead of json_* functions for speed | - When using sh, use jsonfilter instead of json_* functions for speed | ||||||
| 
 | 
 | ||||||
| Code formatting may sound like a topic for the pedantic, however it helps if | Code formatting may sound like a topic for the pedantic, however it helps if | ||||||
| the code in the project is formatted in the same way. The following rules | the code in the project is formatted in the same way. The following basic rules | ||||||
| apply: | apply: | ||||||
| 
 | 
 | ||||||
| - use tabs instead of spaces | - use tabs instead of spaces | ||||||
| - trailing whitespaces must be eliminated | - trailing whitespaces must be eliminated | ||||||
|  | 
 | ||||||
|  | If you add Lua scripts to gluon, check formatting with ``luacheck``. | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user