From 244590b5f13fa682b554b04142ce4b30b8089f55 Mon Sep 17 00:00:00 2001 From: BoYanZh Date: Mon, 14 Oct 2024 10:34:32 -0400 Subject: [PATCH] feat: tidy conf --- conf.json | 22 +++++++++++----------- expected.json | 2 +- stdin.sh | 3 --- 3 files changed, 12 insertions(+), 15 deletions(-) delete mode 100644 stdin.sh diff --git a/conf.json b/conf.json index 46b27bb..9ae6cee 100644 --- a/conf.json +++ b/conf.json @@ -9,14 +9,17 @@ "args": [ "./healthcheck", "-root=.", - "releaseCheck=false", - "-releaseTag=h1", - "-releaseTag=h2", - "-releaseTag=test" - ], - "env": [ - "PATH=/usr/bin:/bin" + "-whitelist=stderr", + "-whitelist=stdout", + "-whitelist=.*\\.md", + "-whitelist=.*\\.json", + "-whitelist=healthcheck", + "releaseCheck=false", + "-releaseTag=h1", + "-releaseTag=h2", + "-releaseTag=test" ], + "env": ["PATH=/usr/bin:/bin"], "cpuLimit": 10000000000, "memoryLimit": 104857600, "procLimit": 50, @@ -26,10 +29,7 @@ "src": "./../../../../../../build/healthcheck" } }, - "copyOut": [ - "stdout", - "stderr" - ], + "copyOut": ["stdout", "stderr"], "stdin": { "content": "" }, diff --git a/expected.json b/expected.json index 80552eb..49f73e4 100644 --- a/expected.json +++ b/expected.json @@ -1 +1 @@ -[{"name":"healthcheck","results":[{"score":0,"comment":"### Forbidden File Check Failed:\nThe following forbidden files were found: README.md, conf.json, expected.json, healthcheck, stderr, stdin.sh, stdout\n\nTo fix it, first make a backup of your repository and then run the following commands:\nfor i in README.md conf.json expected.json healthcheck stderr stdin.sh stdout; do git filter-repo --force --invert-paths --path \"$i\"; done\ngit remote add origin \ngit push --set-upstream origin --force\n"}],"force_quit":true}] +[{"name":"healthcheck","results":[{"score":0,"comment":""}],"force_quit":false}] diff --git a/stdin.sh b/stdin.sh deleted file mode 100644 index fc21ce2..0000000 --- a/stdin.sh +++ /dev/null @@ -1,3 +0,0 @@ -#!bash - -./build/healthcheck -root=./examples/healthcheck/release -releaseTags="h1" -releaseTags="h2" -releaseTags="h3" -releaseTags="h4" -releaseCategories="homework" -releaseNumber="2"