From 7edfd830a9e3f491c2b1b52bd996bd9c3226e5b7 Mon Sep 17 00:00:00 2001 From: Hydraallen Date: Fri, 3 May 2024 19:37:35 +0800 Subject: [PATCH] feat. nonascii test --- expected.json | 49 +++++++++++++------------------------------------ refet.json | 11 +++++++++++ 2 files changed, 24 insertions(+), 36 deletions(-) create mode 100644 refet.json diff --git a/expected.json b/expected.json index 36dcd9b..15846d0 100644 --- a/expected.json +++ b/expected.json @@ -1,36 +1,13 @@ - -[{ - "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 - }] +[ + { + "name": "healthcheck", + "results": [ + { + "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 + } + ] + } +] \ No newline at end of file diff --git a/refet.json b/refet.json new file mode 100644 index 0000000..564cb95 --- /dev/null +++ b/refet.json @@ -0,0 +1,11 @@ +[ + { + "name": "dummy", + "results": [ + { + "score": 110, + "comment": "dummy comment + comment from toml conf" + } + ] + } +] \ No newline at end of file