Compare commits
53 Commits
master
...
healthchec
Author | SHA1 | Date | |
---|---|---|---|
6a5f4b2677 | |||
fdec9d9027 | |||
1d69fd0bdb | |||
a192926045 | |||
4fce9da8c3 | |||
5f1ed50ab5 | |||
e4fa4be52f | |||
![]() |
6a721037ec | ||
![]() |
4e3abe2680 | ||
![]() |
8ab927da5a | ||
![]() |
86356cae96 | ||
![]() |
0bbf16f946 | ||
bcddc2a20d | |||
c7977daa3f | |||
3938475941 | |||
c7965f56d9 | |||
![]() |
dd11177f3c | ||
99d95c2841 | |||
5e25b932fc | |||
2d5ad97be4 | |||
![]() |
2f455dca9d | ||
![]() |
4d67bb4bdf | ||
![]() |
e24f9c3da4 | ||
![]() |
2847c11df8 | ||
![]() |
6b3e079a79 | ||
![]() |
8a34424201 | ||
![]() |
b1b27f5d84 | ||
![]() |
cf03a190af | ||
![]() |
8aaa7ededf | ||
![]() |
0cd9a00146 | ||
![]() |
412ee6bfd4 | ||
![]() |
0ea91ed9e4 | ||
![]() |
1c23924366 | ||
f9bed916b7 | |||
![]() |
66a3d6f739 | ||
![]() |
a7a3bd0894 | ||
![]() |
a67e9cca2f | ||
![]() |
109e0a7c6d | ||
![]() |
1ed7eaa253 | ||
![]() |
659426a6ab | ||
![]() |
02bde6c328 | ||
![]() |
12cea9761f | ||
![]() |
d1eac98eed | ||
![]() |
b693904bf9 | ||
![]() |
fd4863c581 | ||
![]() |
b5aa1929df | ||
![]() |
fd3e39cf02 | ||
![]() |
82e1a612ea | ||
![]() |
43b1502b7f | ||
![]() |
a2b9e74620 | ||
![]() |
c5dae447eb | ||
![]() |
c86a94c178 | ||
![]() |
c08d20ccd6 |
1
.drone.yml
Normal file
1
.drone.yml
Normal file
|
@ -0,0 +1 @@
|
||||||
|
Just for test
|
94
.gitignore
vendored
Normal file
94
.gitignore
vendored
Normal 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
58
conf.json
Normal 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
1
expected.json
Normal 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}]
|
Loading…
Reference in New Issue
Block a user