Added code checker script
This script just calls code checkers pep8 and pylint. Signed-off-by: Claudius Heine <ch@denx.de>
This commit is contained in:
		
				
					committed by
					
						 Daniel Wagner
						Daniel Wagner
					
				
			
			
				
	
			
			
			
						parent
						
							503fd3d47a
						
					
				
				
					commit
					1ef50b559a
				
			
							
								
								
									
										11
									
								
								scripts/checkcode.sh
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										11
									
								
								scripts/checkcode.sh
									
									
									
									
									
										Executable file
									
								
							| @@ -0,0 +1,11 @@ | ||||
| #!/bin/sh | ||||
|  | ||||
| ERROR=0 | ||||
|  | ||||
| echo "Checking with pep8" | ||||
| pep8 $1/*.py $1/*/*.py || ERROR=$(expr $ERROR + 1) | ||||
|  | ||||
| echo "Checking with pylint" | ||||
| pylint $1/*.py $1/*/*.py || ERROR=$(expr $ERROR + 2) | ||||
|  | ||||
| exit $ERROR | ||||
		Reference in New Issue
	
	Block a user