Compare commits

...

79 Commits

Author SHA1 Message Date
a2aca90c70
feat: new hc 2025-06-04 06:58:57 -04:00
201334ae4a
feat: new hc 2025-06-04 06:38:53 -04:00
a0ccb081f7
feat: succeed msg 2025-05-30 17:58:14 -04:00
8bc12dc409
chore: new conf version 2025-01-27 22:38:28 -05:00
c4733473b4
chore: new conf version 2025-01-27 21:57:44 -05:00
3c50a5ebc4
fix: non-lfs txt 2024-10-22 06:52:04 -04:00
be98cc8423
fix: link 2024-10-22 06:46:41 -04:00
f470b3bff3
fix: link 2024-10-22 06:44:34 -04:00
zzjc1234
7fdef6ecf5 fix: distinguish text file and non-text file 2024-10-21 16:44:56 +08:00
c676be2ad9
feat: move to repo-health-checker 2024-10-21 04:35:56 -04:00
zzjc1234
0e2478aa43 fix: expected out 2024-10-21 15:30:48 +08:00
zzjc1234
141317efad fix: ignore 2024-10-21 15:30:06 +08:00
zzjc1234
1055fb763d fix: expected out 2024-10-21 15:18:15 +08:00
zzjc1234
25f9673031 feat: gitattributes 2024-10-21 14:57:42 +08:00
zzjc1234
75805a9ad4 feat: gitattributes 2024-10-21 14:24:40 +08:00
zzjc1234
78397da16d fix: gitignore 2024-10-17 16:16:24 +08:00
zzjc1234
267d6d9dd0 fix: gitignore 2024-10-17 16:03:02 +08:00
zzjc1234
ad7b666d1a fix: gitignore 2024-10-17 16:01:14 +08:00
7da8d8c8bc
feat: test 2024-10-14 08:03:24 -04:00
0916bd4b9f
Added conf.json. 2024-10-13 22:51:07 -04:00
8e202e7c50
fix: unify comment title level 2024-10-06 07:28:35 -04:00
zzjc1234
6d82a1344f fix: tag 2024-10-01 17:40:52 +08:00
146b2f829a
feat: use CopyInDir 2024-09-22 01:21:48 -04:00
1492b43605
fix: conf.json 2024-09-19 17:14:28 -04:00
6a64defe24
feat: use conf.json 2024-09-19 17:07:44 -04:00
zzjc1234
a236c7ea93 Revert "fix: expected"
This reverts commit f2b090749c.
2024-08-20 14:20:13 +08:00
zzjc1234
f2b090749c fix: expected 2024-08-20 14:02:42 +08:00
54fe3e3a38
Added expected.json. 2024-06-20 04:30:09 -04:00
zzjc1234
04627367d5 feat: markdown style out 2024-06-18 16:39:48 +08:00
zzjc1234
2c522c1d04 feat: markdown style out 2024-06-18 16:36:42 +08:00
zzjc1234
a0a9a6a629 feat: markdown style out 2024-06-18 16:29:21 +08:00
zzjc1234
a470a46b48 feat: markdown style out 2024-06-18 13:23:05 +08:00
zzjc1234
d11fcda0e0 feat: markdown style out 2024-06-18 13:20:51 +08:00
zzjc1234
9c223443ab feat: markdown style out 2024-06-18 13:18:05 +08:00
zzjc1234
d0f1e45843 feat: markdown style out 2024-06-18 13:15:11 +08:00
zzjc1234
8458ec2acd feat: markdown style out 2024-06-18 13:12:45 +08:00
zzjc1234
214426d956 feat: markdown style out 2024-06-18 13:11:26 +08:00
zzjc1234
5951606c54 feat: markdown style out 2024-06-18 13:06:17 +08:00
zzjc1234
f1a57ee08d feat: markdown style out 2024-06-18 13:04:33 +08:00
zzjc1234
d042efa654 feat: markdown style out 2024-06-18 13:01:38 +08:00
zzjc1234
c816a1f88e feat: markdown style out 2024-06-18 13:00:11 +08:00
zzjc1234
ff1d788bee feat: markdown style out 2024-06-18 12:43:21 +08:00
Hydraallen
46804afd2e fix: exp 2024-05-27 19:34:53 +08:00
Hydraallen
e41038d412 fix: exp 2024-05-27 19:33:10 +08:00
Hydraallen
a67362eea3 fix: exp 2024-05-27 19:24:26 +08:00
Hydraallen
f9c11fec13 fix: exp 2024-05-27 19:21:22 +08:00
zzjc1234
c501e7f6a1 fix: out 2024-05-26 01:26:51 +08:00
zzjc1234
f94d93627f fix: out 2024-05-26 01:25:44 +08:00
zzjc1234
61046646fd fix: out 2024-05-26 01:23:40 +08:00
zzjc1234
9e74a17597 fix: out 2024-05-26 01:22:19 +08:00
zzjc1234
abfe973e94 fix: out 2024-05-26 01:21:08 +08:00
zzjc1234
fbc6a20e6e fix: arg 2024-05-26 01:17:49 +08:00
zzjc1234
19bc10ad84 fix: arg 2024-05-26 01:16:24 +08:00
zzjc1234
1b6428ed18 fix: arg 2024-05-26 01:12:58 +08:00
Hydraallen
95a387ddcd fix: expected json 2024-05-13 00:11:35 +08:00
Hydraallen
fc49d26591 rm: useless file 2024-05-13 00:09:09 +08:00
Hydraallen
f828cffae3 fix: config 2024-05-12 23:58:26 +08:00
Hydraallen
76dc1a2c66 fix: config 2024-05-12 23:56:40 +08:00
Hydraallen
7a0c067e2b fix: config 2024-05-12 23:54:55 +08:00
zzjc1234
c2907b9875 Revert "fix: test fix"
This reverts commit 3934383e3d.
2024-05-11 16:42:52 +08:00
zzjc1234
3934383e3d fix: test fix 2024-05-11 16:40:23 +08:00
Hydraallen
83cbc5bea5 fix: json 2024-05-03 23:36:11 +08:00
Hydraallen
8dc49f5fd9 fix: json 2024-05-03 21:22:19 +08:00
Hydraallen
d900d8c578 fix: cond 2024-05-03 20:45:47 +08:00
Hydraallen
5d0deb326a fix: conf 2024-05-03 20:44:08 +08:00
Hydraallen
bfb4c5b439 feat: test 2024-05-03 20:40:19 +08:00
Hydraallen
dd1a7060ae fix: script 2024-05-03 20:37:17 +08:00
Hydraallen
e94a335255 fix: json 2024-05-03 20:19:01 +08:00
Hydraallen
5e57f25404 fix: conf 2024-05-03 20:07:55 +08:00
Hydraallen
9feb9fc475 fix: bash script 2024-05-03 19:38:42 +08:00
Hydraallen
7edfd830a9 feat. nonascii test 2024-05-03 19:37:35 +08:00
Hydraallen
7d145c4172 fix: json format 2024-05-03 17:51:37 +08:00
Hydraallen
77fda15419 fix: whitelist input 2024-05-03 17:43:05 +08:00
CHHC-L
1f77a9128d feat. config 2024-04-13 00:42:43 +08:00
zzjc1234
dc13cbecb0 feat: expected out for asciifile check 2024-04-10 19:06:36 +08:00
zzjc1234
263f2e6387 feat: bash script for ascii file 2024-04-10 18:57:08 +08:00
zzjc1234
c5dae447eb fix: regex issue 2024-04-09 23:30:25 +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
9 changed files with 84 additions and 3 deletions

2
.gitattributes vendored Normal file
View File

@ -0,0 +1,2 @@
**/*.png filter=lfs diff=lfs merge=lfs -text
nonascii.txt text

12
.gitignore vendored Normal file
View File

@ -0,0 +1,12 @@
**/*
!stderr
!stdout
!*.toml
!*.md
!healthcheck
!*.json
!.git*
!nonascii.txt
!**/*.png
!**/*.jpg
!test_attr/

View File

@ -1,3 +0,0 @@
# JOJ3 examples
Check other branches.

56
conf.json Normal file
View File

@ -0,0 +1,56 @@
{
"stage": {
"stages": [
{
"name": "healthcheck",
"executor": {
"name": "sandbox",
"with": {
"default": {
"args": [
"/tmp/repo-health-checker",
"-root=."
],
"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 Passed\n### Meta File Check Passed\n### Non-ASCII Characters File Check Failed:\nNon-ASCII characters found in the following files:\n\tnonascii.txt\n\ttest.jpg\n### Non-ASCII Characters Commit Message Check Passed\n### Repo File Check Passed\n### Author Email Check Passed\n"}],"force_quit":true}]

6
nonascii.txt Normal file
View File

@ -0,0 +1,6 @@
███╗ ██╗███████╗ ██████╗ ██╗ ██╗██╗███╗ ███╗
████╗ ██║██╔════╝██╔═══██╗██║ ██║██║████╗ ████║
██╔██╗ ██║█████╗ ██║ ██║██║ ██║██║██╔████╔██║
██║╚██╗██║██╔══╝ ██║ ██║╚██╗ ██╔╝██║██║╚██╔╝██║
██║ ╚████║███████╗╚██████╔╝ ╚████╔╝ ██║██║ ╚═╝ ██║
╚═╝ ╚═══╝╚══════╝ ╚═════╝ ╚═══╝ ╚═╝╚═╝ ╚═╝

1
test.jpg Normal file
View File

@ -0,0 +1 @@
测试

BIN
test.png (Stored with Git LFS) Normal file

Binary file not shown.

BIN
test_attr/test.png (Stored with Git LFS) Normal file

Binary file not shown.