diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..c023f83 --- /dev/null +++ b/.gitattributes @@ -0,0 +1 @@ +nonascii.txt text diff --git a/conf.json b/conf.json new file mode 100644 index 0000000..10836a3 --- /dev/null +++ b/conf.json @@ -0,0 +1,20 @@ +{ + "stages": [ + { + "name": "healthcheck", + "executor": { + "name": "sandbox", + "with": { + "default": { + "args": [ + "/tmp/repo-health-checker", + "-root=.", + "-allowedDomainList=example.com", + "-whitelistedChars=\u6d4b" + ] + } + } + } + } + ] +} diff --git a/expected.json b/expected.json new file mode 100644 index 0000000..0b0f7ee --- /dev/null +++ b/expected.json @@ -0,0 +1,10 @@ +{ + "failed": false, + "msgContains": [ + "### Non-ASCII Characters File Check Passed" + ], + "msgNotContains": [ + "### Non-ASCII Characters File Check Failed" + ], + "stderrContains": [] +} diff --git a/nonascii.txt b/nonascii.txt new file mode 100644 index 0000000..9ea08c4 --- /dev/null +++ b/nonascii.txt @@ -0,0 +1 @@ +Allowed non-ASCII: 测