fix: json
This commit is contained in:
		
							parent
							
								
									d900d8c578
								
							
						
					
					
						commit
						8dc49f5fd9
					
				|  | @ -4,7 +4,7 @@ name = "healthcheck" | ||||||
| [stages.executor] | [stages.executor] | ||||||
| name = "sandbox" | name = "sandbox" | ||||||
| [stages.executor.with.default] | [stages.executor.with.default] | ||||||
| args = ["./healthcheck", "-root=./examples/healthcheck/asciifile"] | args = ["bash", "./stdin.sh"] | ||||||
| env = ["PATH=/usr/bin:/bin"] | env = ["PATH=/usr/bin:/bin"] | ||||||
| cpuLimit = 10_000_000_000 | cpuLimit = 10_000_000_000 | ||||||
| memoryLimit = 104_857_600 | memoryLimit = 104_857_600 | ||||||
|  |  | ||||||
|  | @ -1,9 +1,37 @@ | ||||||
| [ | [ | ||||||
|     { |     { | ||||||
|     "name": "healthcheck", |         "name of check": "RepoSize", | ||||||
|  |         "stdout": "Checking repository size: OK", | ||||||
|  |         "exit code": 0, | ||||||
|  |         "stderr": "", | ||||||
|  |         "errorLog": null | ||||||
|  |     }, | ||||||
|  |     { | ||||||
|  |         "name of check": "forbiddenFile", | ||||||
|  |         "stdout": "Checking forbidden files: OK", | ||||||
|  |         "exit code": 0, | ||||||
|  |         "stderr": "", | ||||||
|  |         "errorLog": null | ||||||
|  |     }, | ||||||
|  |     { | ||||||
|  |         "name of check": "metaFile", | ||||||
|  |         "stdout": "Checking the existence of meta file: OK", | ||||||
|  |         "exit code": 0, | ||||||
|  |         "stderr": "", | ||||||
|  |         "errorLog": null | ||||||
|  |     }, | ||||||
|  |     { | ||||||
|  |       "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" : "Non-ASCII characters found in the following files:\n\texamples/repohealth/asciifile/nonascii.txt", | ||||||
|       "errorLog" : null |       "errorLog" : null | ||||||
|  |     }, | ||||||
|  |     { | ||||||
|  |         "name of check": "NonAsciiMsg", | ||||||
|  |         "stdout": "Checking for non-ASCII characters in commit message: OK", | ||||||
|  |         "exit code": 0, | ||||||
|  |         "stderr": "", | ||||||
|  |         "errorLog": null | ||||||
|     } |     } | ||||||
| ] | ] | ||||||
							
								
								
									
										2
									
								
								stdin.sh
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								stdin.sh
									
									
									
									
									
								
							|  | @ -1,5 +1,3 @@ | ||||||
| #!bash | #!bash | ||||||
| 
 | 
 | ||||||
| echo sss |  | ||||||
| 
 |  | ||||||
| ./build/healthcheck -root=./examples/healthcheck/asciifile -whitelist=".*\.md" -whitelist=".*\.json" -whitelist=".*\.sh" -whitelist=".git.*" -whitelist=".*\.txt" | ./build/healthcheck -root=./examples/healthcheck/asciifile -whitelist=".*\.md" -whitelist=".*\.json" -whitelist=".*\.sh" -whitelist=".git.*" -whitelist=".*\.txt" | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Hydraallen
						Hydraallen