From 7b44cc416bbecfb387d70be1656fe368699be4d4 Mon Sep 17 00:00:00 2001 From: zzjc1234 <2359047351@qq.com> Date: Sun, 26 May 2024 00:29:35 +0800 Subject: [PATCH] fix: out --- expected.json | 46 +++++++++------------------------------------- 1 file changed, 9 insertions(+), 37 deletions(-) diff --git a/expected.json b/expected.json index 7e1ecd0..a48404b 100644 --- a/expected.json +++ b/expected.json @@ -1,37 +1,9 @@ -[ - { - "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/meta/conf.toml, examples/healthcheck/meta/expected.json, examples/healthcheck/meta/stdin.sh, \n\nTo fix it, first make a backup of your repository and then run the following commands:\nfor i in examples/healthcheck/meta/conf.toml examples/healthcheck/meta/expected.json examples/healthcheck/meta/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 - } -] +{ + "name": "healthcheck", + "results": [ + { + "score": 0, + "comment": "{healthcheck [{0 [{\"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: Failed\",\"exit code\":104,\"stderr\":\"1 important project files missing\\n\\tno changelog\\\\.* file found, please refer to https://keepachangelog.com/en/1.1.0/ for more information\\n\",\"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}]}]}" + } + ] +}