feat: json
This commit is contained in:
		
							parent
							
								
									8dc49f5fd9
								
							
						
					
					
						commit
						d120f5e45a
					
				|  | @ -8,24 +8,32 @@ | ||||||
|     }, |     }, | ||||||
|     { |     { | ||||||
|         "name of check": "forbiddenFile", |         "name of check": "forbiddenFile", | ||||||
|         "stdout": "Checking forbidden files: OK", |         "stdout": "Checking forbidden files: Failed", | ||||||
|         "exit code": 0, |         "exit code": 1, | ||||||
|         "stderr": "", |         "stderr": "", | ||||||
|         "errorLog": null |         "errorLog": { | ||||||
|  |             "Op": "lstat", | ||||||
|  |             "Path": "./examples/healthcheck/asciimsg", | ||||||
|  |             "Err": 2 | ||||||
|  |         } | ||||||
|     }, |     }, | ||||||
|     { |     { | ||||||
|         "name of check": "metaFile", |         "name of check": "metaFile", | ||||||
|         "stdout": "Checking the existence of meta file: OK", |         "stdout": "Checking the existence of meta file: ", | ||||||
|         "exit code": 0, |         "exit code": 1, | ||||||
|         "stderr": "", |         "stderr": "", | ||||||
|         "errorLog": null |         "errorLog": {} | ||||||
|     }, |     }, | ||||||
|     { |     { | ||||||
|       "name of check" : "NonAsciiFiles", |         "name of check": "NonAsciiFiles", | ||||||
|       "stdout" : "Checking for non-ascii files: Failed", |         "stdout": "Checking for non-ascii files: Failed", | ||||||
|       "exit code" : 1, |         "exit code": 1, | ||||||
|       "stderr" : "Non-ASCII characters found in the following files:\n\texamples/repohealth/asciifile/nonascii.txt", |         "stderr": "", | ||||||
|       "errorLog" : null |         "errorLog": { | ||||||
|  |             "Op": "lstat", | ||||||
|  |             "Path": "./examples/healthcheck/asciimsg", | ||||||
|  |             "Err": 2 | ||||||
|  |         } | ||||||
|     }, |     }, | ||||||
|     { |     { | ||||||
|         "name of check": "NonAsciiMsg", |         "name of check": "NonAsciiMsg", | ||||||
|  |  | ||||||
							
								
								
									
										2
									
								
								stdin.sh
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								stdin.sh
									
									
									
									
									
								
							|  | @ -1,3 +1,3 @@ | ||||||
| #!bash | #!bash | ||||||
| 
 | 
 | ||||||
| ./build/healthcheck -root=./examples/healthcheck/asciifile -whitelist=".*\.md" -whitelist=".*\.json" -whitelist=".*\.sh" -whitelist=".git.*" -whitelist=".*\.txt" | ./build/healthcheck -root=./examples/healthcheck/asciimsg -whitelist=".*\.md" -whitelist=".*\.json" -whitelist=".*\.sh" -whitelist=".git.*" -whitelist=".*\.txt" | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Hydraallen
						Hydraallen