fix: json

This commit is contained in:
Hydraallen 2024-05-03 21:22:19 +08:00
parent d900d8c578
commit 8dc49f5fd9
3 changed files with 36 additions and 10 deletions

View File

@ -4,7 +4,7 @@ name = "healthcheck"
[stages.executor]
name = "sandbox"
[stages.executor.with.default]
args = ["./healthcheck", "-root=./examples/healthcheck/asciifile"]
args = ["bash", "./stdin.sh"]
env = ["PATH=/usr/bin:/bin"]
cpuLimit = 10_000_000_000
memoryLimit = 104_857_600

View File

@ -1,9 +1,37 @@
[
{
"name": "healthcheck",
"stdout": "Checking for non-ascii files: Failed",
"exit code": 1,
"stderr": "Non-ASCII characters found in the following files:\n\texamples/repohealth/asciifile/nonascii.txt",
"errorLog": null
}
{
"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",
"exit code" : 1,
"stderr" : "Non-ASCII characters found in the following files:\n\texamples/repohealth/asciifile/nonascii.txt",
"errorLog" : null
},
{
"name of check": "NonAsciiMsg",
"stdout": "Checking for non-ASCII characters in commit message: OK",
"exit code": 0,
"stderr": "",
"errorLog": null
}
]

View File

@ -1,5 +1,3 @@
#!bash
echo sss
./build/healthcheck -root=./examples/healthcheck/asciifile -whitelist=".*\.md" -whitelist=".*\.json" -whitelist=".*\.sh" -whitelist=".git.*" -whitelist=".*\.txt"