Compare commits

..

48 Commits

Author SHA1 Message Date
9067df7866
feat: new hc 2025-06-04 06:58:57 -04:00
99cbfb225e
feat: new hc 2025-06-04 06:38:53 -04:00
0144393f34
feat: succeed msg 2025-05-30 17:59:11 -04:00
38978db6fa
chore: new conf version 2025-01-27 22:38:28 -05:00
1ee28e6798
chore: new conf version 2025-01-27 21:57:44 -05:00
263730fd21
feat: move to repo-health-checker 2024-10-21 04:41:32 -04:00
32c68d77ba
feat: move to repo-health-checker 2024-10-21 04:35:56 -04:00
zzjc1234
180b781ce1 test: add forbidden file 2024-10-18 14:27:19 +08:00
zzjc1234
12f5f407ee test: add forbidden file 2024-10-18 14:14:16 +08:00
zzjc1234
ae655dbaee test: more test case 2024-10-17 19:58:48 +08:00
zzjc1234
08faa11d6d feat: ignore 2024-10-17 18:19:43 +08:00
zzjc1234
6c975e4609 fix: test 2024-10-17 16:16:04 +08:00
zzjc1234
1fd2c43204 fix: test 2024-10-17 14:56:22 +08:00
3cb05376e3
feat: tidy conf 2024-10-14 10:42:35 -04:00
26263ad7d5
feat: test 2024-10-14 08:03:24 -04:00
29767bde2d
Added conf.json. 2024-10-13 22:51:07 -04:00
da38c70c7f
fix: unify comment title level 2024-10-06 07:29:53 -04:00
zzjc1234
a384a00736 fix: tag 2024-10-01 17:44:01 +08:00
b93a0254c2
feat: use CopyInDir 2024-09-22 01:21:48 -04:00
02de953cbc
fix: conf.json 2024-09-19 17:21:21 -04:00
9cad8e4ccf
fix: conf.json 2024-09-19 17:19:27 -04:00
a67a45ce86
feat: use conf.json 2024-09-19 17:07:44 -04:00
62c43fe516
Added expected.json. 2024-06-20 04:30:09 -04:00
zzjc1234
656999a909 feat: markdown style out 2024-06-18 17:30:51 +08:00
zzjc1234
f1a1547509 test 2024-06-18 17:29:14 +08:00
zzjc1234
f1c9d84744 feat: markdown style out 2024-06-18 17:04:29 +08:00
Hydraallen
245d036af0 fix: exp 2024-05-27 19:39:30 +08:00
zzjc1234
656993c936 fix:out 2024-05-26 01:10:36 +08:00
zzjc1234
dd77b97838 fix:out 2024-05-26 01:08:59 +08:00
zzjc1234
fd845600a8 fix:out 2024-05-26 01:04:33 +08:00
zzjc1234
692477badf fix:out 2024-05-26 01:02:58 +08:00
zzjc1234
145db10ac5 fix:out 2024-05-26 00:59:23 +08:00
zzjc1234
7c4ed4fb4c fix:out 2024-05-26 00:58:14 +08:00
zzjc1234
1d2914728c fix:out 2024-05-26 00:53:33 +08:00
zzjc1234
f7950787d8 fix:out 2024-05-26 00:45:27 +08:00
zzjc1234
10e486ece8 fix:out 2024-05-26 00:43:33 +08:00
zzjc1234
de0fe72bab fix:out 2024-05-26 00:39:17 +08:00
zzjc1234
7cb3c61970 fix: arg 2024-05-26 00:36:16 +08:00
zzjc1234
8b004c661a fix: arg 2024-05-26 00:34:49 +08:00
zzjc1234
af3f0e323c fix: module name 2024-05-11 21:26:19 +08:00
Hydraallen
00ff2a1d35 fix: json 2024-05-03 23:31:51 +08:00
Hydraallen
60bd4d80b0 fix: script 2024-05-03 22:13:27 +08:00
Hydraallen
edff3780a8 fix: script 2024-05-03 22:11:30 +08:00
Hydraallen
ef271dc6f3 feat: bash script 2024-05-03 22:10:19 +08:00
CHHC-L
076445b7c3 feat. config 2024-04-19 16:52:42 +08:00
zzjc1234
ae7d070c45 feat: update result 2024-04-09 23:38:39 +08:00
zzjc1234
c86a94c178 fix: rename file 2024-04-09 23:22:02 +08:00
zzjc1234
c08d20ccd6 feat: test case for repohealth/success 2024-04-09 23:20:15 +08:00
7 changed files with 67 additions and 0 deletions

8
.gitignore vendored Normal file
View File

@ -0,0 +1,8 @@
**/*
test1/
!/test/
!stderr
!stdout
!*.md
!healthcheck
!.git*

57
conf.json Normal file
View File

@ -0,0 +1,57 @@
{
"stage": {
"stages": [
{
"name": "healthcheck",
"executor": {
"name": "sandbox",
"with": {
"default": {
"args": [
"/tmp/repo-health-checker",
"-root=.",
"-meta=readme"
],
"env": [
"PATH=/usr/bin:/bin"
],
"cpuLimit": 10000000000,
"memoryLimit": 104857600,
"procLimit": 50,
"copyInDir": ".",
"copyIn": {
"/tmp/repo-health-checker": {
"src": "./../../../../../../build/repo-health-checker"
}
},
"copyOut": [
"stdout",
"stderr"
],
"stdin": {
"content": ""
},
"stdout": {
"name": "stdout",
"max": 4096
},
"stderr": {
"name": "stderr",
"max": 4096
}
}
}
},
"parsers": [
{
"name": "healthcheck",
"with": {
"score": 10,
"comment": " + comment from toml conf"
}
}
]
}
]
}
}

1
expected.json Normal file
View File

@ -0,0 +1 @@
[{"name":"healthcheck","results":[{"score":0,"comment":"### Repo Size Check Passed\n### Forbidden File Check Failed:\nThe following forbidden files were found: `conf.json`, `expected.json`, `test/.DS_Store`, `test1`, `test1/test.md`\n\nTo fix it, first make a backup of your repository and then run the following commands:\n```bash\nexport GIT_BRANCH=$(git branch --show-current)\nexport GIT_REMOTE_URL=$(git config --get remote.origin.url)\nfor i in conf.json expected.json test/.DS_Store test1 test1/test.md; do git filter-repo --force --invert-paths --path \"$i\"; done\ngit remote add origin $GIT_REMOTE_URL\ngit push --set-upstream origin $GIT_BRANCH --force\n```\n\n### Meta File Check Passed\n### Non-ASCII Characters File Check Passed\n### Non-ASCII Characters Commit Message Check Passed\n### Repo File Check Passed\n### Author Email Check Passed\n"}],"force_quit":true}]

0
test/.DS_Store vendored Normal file
View File

1
test/.gitignore vendored Normal file
View File

@ -0,0 +1 @@
!*.json

0
test/demo.json Normal file
View File

0
test1/test.md Normal file
View File