* Add a new lint rule to the Makefile Signed-off-by: Kenfe-Mickael Laventure <mickael.laventure@gmail.com> * Fix linter errors Signed-off-by: Kenfe-Mickael Laventure <mickael.laventure@gmail.com> * Allow replacing the default apt mirror Signed-off-by: Kenfe-Mickael Laventure <mickael.laventure@gmail.com>
		
			
				
	
	
		
			10 lines
		
	
	
		
			143 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			10 lines
		
	
	
		
			143 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
#!/bin/bash
 | 
						|
 | 
						|
lint_error=$(golint ./... | grep -v vendor | grep -v .pb. | tee /dev/stderr)
 | 
						|
 | 
						|
if [ "$lint_error" != "" ]; then
 | 
						|
	exit 1
 | 
						|
fi
 | 
						|
 | 
						|
exit 0
 |