Compare commits

...

53 Commits

Author SHA1 Message Date
6a5f4b2677
feat: new hc 2025-06-04 06:58:57 -04:00
fdec9d9027
feat: new hc 2025-06-04 06:38:53 -04:00
1d69fd0bdb
feat: succeed msg 2025-05-30 18:07:37 -04:00
a192926045
chore: new conf version 2025-01-27 22:38:29 -05:00
4fce9da8c3
chore: new conf version 2025-01-27 21:57:45 -05:00
5f1ed50ab5
feat: new msg 2024-10-30 18:46:58 -04:00
e4fa4be52f
feat: move to repo-health-checker 2024-10-21 04:35:57 -04:00
Hydraallen
6a721037ec fix: expected 2024-10-17 17:51:42 +08:00
Hydraallen
4e3abe2680 feat: test 2024-10-17 17:49:33 +08:00
Hydraallen
8ab927da5a fix: conf 2024-10-17 17:44:04 +08:00
zzjc1234
86356cae96 fix: conf 2024-10-17 16:25:27 +08:00
zzjc1234
0bbf16f946 fix: conf 2024-10-17 16:18:38 +08:00
bcddc2a20d
feat: tidy conf 2024-10-14 10:41:33 -04:00
c7977daa3f
feat: test 2024-10-14 08:03:24 -04:00
3938475941
Added conf.json. 2024-10-13 22:51:07 -04:00
c7965f56d9
fix: unify comment title level 2024-10-06 07:30:45 -04:00
zzjc1234
dd11177f3c fix: tag 2024-10-01 17:45:33 +08:00
99d95c2841
feat: use CopyInDir 2024-09-22 01:21:49 -04:00
5e25b932fc
fix: conf.json 2024-09-19 17:14:28 -04:00
2d5ad97be4
feat: use conf.json 2024-09-19 17:07:45 -04:00
Hydraallen
2f455dca9d fix: expeected 2024-08-26 20:01:35 +08:00
Hydraallen
4d67bb4bdf fix: expected 2024-08-26 19:57:10 +08:00
Hydraallen
e24f9c3da4 fix: expected 2024-08-26 19:55:41 +08:00
Hydraallen
2847c11df8 fix: expected 2024-08-26 19:53:32 +08:00
Hydraallen
6b3e079a79 fix: expected 2024-08-26 19:48:35 +08:00
Hydraallen
8a34424201 add: test file 2024-08-26 19:44:33 +08:00
Hydraallen
b1b27f5d84 fix: expected 2024-08-26 00:03:18 +08:00
Hydraallen
cf03a190af fix: expedcted 2024-08-25 23:59:31 +08:00
Hydraallen
8aaa7ededf fix: expected 2024-08-25 23:48:41 +08:00
Hydraallen
0cd9a00146 fix: expected 2024-08-25 23:47:36 +08:00
Hydraallen
412ee6bfd4 fix: expected 2024-08-25 23:39:14 +08:00
Hydraallen
0ea91ed9e4 fix: expected 2024-08-25 23:30:59 +08:00
Hydraallen
1c23924366 add: gitignore for test 2024-08-25 23:24:22 +08:00
f9bed916b7
Added expected.json. 2024-06-20 04:59:37 -04:00
zzjc1234
66a3d6f739 feat: markdown style out 2024-06-18 16:52:11 +08:00
Hydraallen
a7a3bd0894 fix: exp 2024-05-27 19:46:01 +08:00
Hydraallen
a67e9cca2f fix: expected 2024-05-27 16:34:24 +08:00
Hydraallen
109e0a7c6d fix: expected 2024-05-27 16:30:58 +08:00
Hydraallen
1ed7eaa253 fix: expected 2024-05-27 16:26:00 +08:00
Hydraallen
659426a6ab fix: conf 2024-05-27 16:19:46 +08:00
Hydraallen
02bde6c328 rm: sh 2024-05-27 16:18:14 +08:00
Hydraallen
12cea9761f fix: josn 2024-05-27 16:16:41 +08:00
Hydraallen
d1eac98eed fix: toml 2024-05-27 16:14:15 +08:00
zzjc1234
b693904bf9 fix: module name 2024-05-11 21:29:00 +08:00
Hydraallen
fd4863c581 fix: json 2024-05-03 23:19:20 +08:00
Hydraallen
b5aa1929df feat: verify 2024-05-03 23:15:35 +08:00
Hydraallen
fd3e39cf02 fix: script 2024-05-03 23:11:36 +08:00
Hydraallen
82e1a612ea feat: reposize 2024-05-03 23:09:17 +08:00
CHHC-L
43b1502b7f feat. config 2024-04-19 16:53:52 +08:00
zzjc1234
a2b9e74620 feat: example to check repo size 2024-04-10 18:52:40 +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
4 changed files with 154 additions and 0 deletions

1
.drone.yml Normal file
View File

@ -0,0 +1 @@
Just for test

94
.gitignore vendored Normal file
View File

@ -0,0 +1,94 @@
### C++ template
# Prerequisites
*.d
# Compiled Object files
*.slo
*.lo
*.o
*.obj
# Precompiled Headers
*.gch
*.pch
# Compiled Dynamic libraries
*.so
*.dylib
*.dll
# Fortran module files
*.mod
*.smod
# Compiled Static libraries
*.lai
*.la
*.a
*.lib
# Executables
*.exe
*.out
!case*.out
*.app
### Node template
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
# Runtime data
pids
*.pid
*.seed
*.pid.lock
# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov
# Coverage directory used by tools like istanbul
coverage
# nyc test coverage
.nyc_output
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt
# Bower dependency directory (https://bower.io/)
bower_components
# node-waf configuration
.lock-wscript
# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release
# Dependency directories
node_modules/
jspm_packages/
# TypeScript v1 declaration files
typings/
# Optional npm cache directory
.npm
# Optional eslint cache
.eslintcache
# Optional REPL history
.node_repl_history
# Output of 'npm pack'
*.tgz
# Yarn Integrity file
.yarn-integrity
# dotenv environment variables file
.env

58
conf.json Normal file
View File

@ -0,0 +1,58 @@
{
"stage": {
"stages": [
{
"name": "healthcheck",
"executor": {
"name": "sandbox",
"with": {
"default": {
"args": [
"/tmp/repo-health-checker",
"-root=.",
"-checkFileNameList=.gitignore,.drone.yml",
"-checkFileSumList=97392a850b161ccf64c1eb108c1c2931f9ce57c8e9bd5b6b1f54d34f82082ddc,52ca5824f38a87aa7c31f10d78611a9ed827c96d1f5a99a55b66f34bc1fe1afe"
],
"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 Passed\n### Non-ASCII Characters Commit Message Check Passed\n### Repo File Check Failed:\nThe following files have been altered: `.drone.yml`.\nPlease revert your changes or contact the teaching team if you have a valid reason for adjusting them.\n### Author Email Check Passed\n"}],"force_quit":true}]