From de0fe72babc5faab29e97ef89d2c9848e242e454 Mon Sep 17 00:00:00 2001 From: zzjc1234 <2359047351@qq.com> Date: Sun, 26 May 2024 00:39:17 +0800 Subject: [PATCH] fix:out --- expected.json | 60 +++++++++------------------------------------------ 1 file changed, 10 insertions(+), 50 deletions(-) diff --git a/expected.json b/expected.json index 08028d3..c7c337e 100644 --- a/expected.json +++ b/expected.json @@ -1,51 +1,11 @@ [ - { - "name of check": "RepoSize", - "stdout": "Checking repository size: OK", - "exit code": 0, - "stderr": "", - "errorLog": null - }, - { - "name of check": "forbiddenFile", - "stdout": "Checking forbidden files: Failed", - "exit code": 101, - "stderr": "103the following forbidden files were found: examples/healthcheck/forbiddenfile/conf.toml, examples/healthcheck/forbiddenfile/expected.json, examples/healthcheck/forbiddenfile/stdin.sh, \n\nTo fix it, first make a backup of your repository and then run the following commands:\nfor i in examples/healthcheck/forbiddenfile/conf.toml examples/healthcheck/forbiddenfile/expected.json examples/healthcheck/forbiddenfile/stdin.sh ; do git filter-repo --force --invert-paths --path \\\"\\$i\\\"; done\ngit remote add origin \ngit push --set-upstream origin master --force", - "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: OK", - "exit code": 0, - "stderr": "", - "errorLog": null - }, - { - "name of check": "NonAsciiMsg", - "stdout": "Checking for non-ASCII characters in commit message: OK", - "exit code": 0, - "stderr": "", - "errorLog": null - }, - { - "name of check": "ReleaseCheck", - "stdout": "Failed", - "exit code": 107, - "stderr": "wrong release tag, please use one of aborting", - "errorLog": null - }, - { - "name of check": "verifyFile", - "stdout": "Checking files to be verified: FailedFailedFailedFailedFailed!", - "exit code": 101, - "stderr": "File is not identicalFile missingFile missingFile missing", - "errorLog": null - } -] \ No newline at end of file + { + "name": "healthcheck", + "results": [ + { + "score": 0, + "comment": " [ { \"name of check\": \"RepoSize\", \"stdout\": \"Checking repository size: OK\", \"exit code\": 0, \"stderr\": \"\", \"errorLog\": null }, { \"name of check\": \"forbiddenFile\", \"stdout\": \"Checking forbidden files: Failed\", \"exit code\": 103, \"stderr\": \"103the following forbidden files were found: expected.json, stdin.sh, \n\nTo fix it, first make a backup of your repository and then run the following commands:\nfor i in expected.json stdin.sh ; do git filter-repo --force --invert-paths --path \\\\\"\\$i\\\\\"; done\ngit remote add origin \ngit push --set-upstream origin --force\", \"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: OK\", \"exit code\": 0, \"stderr\": \"\", \"errorLog\": null }, { \"name of check\": \"NonAsciiMsg\", \"stdout\": \"Checking for non-ASCII characters in commit message: OK\", \"exit code\": 0, \"stderr\": \"\", \"errorLog\": null }]" + } + ] + } +]