feat. nonascii test

This commit is contained in:
Hydraallen 2024-05-03 19:37:35 +08:00
parent 7d145c4172
commit 7edfd830a9
2 changed files with 24 additions and 36 deletions

View File

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

11
refet.json Normal file
View File

@ -0,0 +1,11 @@
[
{
"name": "dummy",
"results": [
{
"score": 110,
"comment": "dummy comment + comment from toml conf"
}
]
}
]