mirror of
				https://github.com/neovim/neovim.git
				synced 2025-10-26 12:27:24 +00:00 
			
		
		
		
	 818f926eb0
			
		
	
	818f926eb0
	
	
	
		
			
			Source: https://github.com/mpeterv/luacheck Docs: http://luacheck.readthedocs.org/en/0.12.0/index.html Run via "make testlint".
		
			
				
	
	
		
			12 lines
		
	
	
		
			291 B
		
	
	
	
		
			CMake
		
	
	
	
	
	
			
		
		
	
	
			12 lines
		
	
	
		
			291 B
		
	
	
	
		
			CMake
		
	
	
	
	
	
| execute_process(
 | |
|   COMMAND ${LUACHECK_PRG} -q ${TEST_DIR}
 | |
|   WORKING_DIRECTORY ${TEST_DIR}
 | |
|   ERROR_VARIABLE err
 | |
|   RESULT_VARIABLE res
 | |
|   ${EXTRA_ARGS})
 | |
| 
 | |
| if(NOT res EQUAL 0)
 | |
|   message(STATUS "Output to stderr:\n${err}")
 | |
|   message(FATAL_ERROR "Linting tests failed with error: ${res}.")
 | |
| endif()
 |