Compare commits
79 Commits
master
...
healthchec
Author | SHA1 | Date | |
---|---|---|---|
a2aca90c70 | |||
201334ae4a | |||
a0ccb081f7 | |||
8bc12dc409 | |||
c4733473b4 | |||
3c50a5ebc4 | |||
be98cc8423 | |||
f470b3bff3 | |||
![]() |
7fdef6ecf5 | ||
c676be2ad9 | |||
![]() |
0e2478aa43 | ||
![]() |
141317efad | ||
![]() |
1055fb763d | ||
![]() |
25f9673031 | ||
![]() |
75805a9ad4 | ||
![]() |
78397da16d | ||
![]() |
267d6d9dd0 | ||
![]() |
ad7b666d1a | ||
7da8d8c8bc | |||
0916bd4b9f | |||
8e202e7c50 | |||
![]() |
6d82a1344f | ||
146b2f829a | |||
1492b43605 | |||
6a64defe24 | |||
![]() |
a236c7ea93 | ||
![]() |
f2b090749c | ||
54fe3e3a38 | |||
![]() |
04627367d5 | ||
![]() |
2c522c1d04 | ||
![]() |
a0a9a6a629 | ||
![]() |
a470a46b48 | ||
![]() |
d11fcda0e0 | ||
![]() |
9c223443ab | ||
![]() |
d0f1e45843 | ||
![]() |
8458ec2acd | ||
![]() |
214426d956 | ||
![]() |
5951606c54 | ||
![]() |
f1a57ee08d | ||
![]() |
d042efa654 | ||
![]() |
c816a1f88e | ||
![]() |
ff1d788bee | ||
![]() |
46804afd2e | ||
![]() |
e41038d412 | ||
![]() |
a67362eea3 | ||
![]() |
f9c11fec13 | ||
![]() |
c501e7f6a1 | ||
![]() |
f94d93627f | ||
![]() |
61046646fd | ||
![]() |
9e74a17597 | ||
![]() |
abfe973e94 | ||
![]() |
fbc6a20e6e | ||
![]() |
19bc10ad84 | ||
![]() |
1b6428ed18 | ||
![]() |
95a387ddcd | ||
![]() |
fc49d26591 | ||
![]() |
f828cffae3 | ||
![]() |
76dc1a2c66 | ||
![]() |
7a0c067e2b | ||
![]() |
c2907b9875 | ||
![]() |
3934383e3d | ||
![]() |
83cbc5bea5 | ||
![]() |
8dc49f5fd9 | ||
![]() |
d900d8c578 | ||
![]() |
5d0deb326a | ||
![]() |
bfb4c5b439 | ||
![]() |
dd1a7060ae | ||
![]() |
e94a335255 | ||
![]() |
5e57f25404 | ||
![]() |
9feb9fc475 | ||
![]() |
7edfd830a9 | ||
![]() |
7d145c4172 | ||
![]() |
77fda15419 | ||
![]() |
1f77a9128d | ||
![]() |
dc13cbecb0 | ||
![]() |
263f2e6387 | ||
![]() |
c5dae447eb | ||
![]() |
c86a94c178 | ||
![]() |
c08d20ccd6 |
2
.gitattributes
vendored
Normal file
2
.gitattributes
vendored
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
**/*.png filter=lfs diff=lfs merge=lfs -text
|
||||||
|
nonascii.txt text
|
12
.gitignore
vendored
Normal file
12
.gitignore
vendored
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
**/*
|
||||||
|
!stderr
|
||||||
|
!stdout
|
||||||
|
!*.toml
|
||||||
|
!*.md
|
||||||
|
!healthcheck
|
||||||
|
!*.json
|
||||||
|
!.git*
|
||||||
|
!nonascii.txt
|
||||||
|
!**/*.png
|
||||||
|
!**/*.jpg
|
||||||
|
!test_attr/
|
56
conf.json
Normal file
56
conf.json
Normal 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
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 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
6
nonascii.txt
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
███╗ ██╗███████╗ ██████╗ ██╗ ██╗██╗███╗ ███╗
|
||||||
|
████╗ ██║██╔════╝██╔═══██╗██║ ██║██║████╗ ████║
|
||||||
|
██╔██╗ ██║█████╗ ██║ ██║██║ ██║██║██╔████╔██║
|
||||||
|
██║╚██╗██║██╔══╝ ██║ ██║╚██╗ ██╔╝██║██║╚██╔╝██║
|
||||||
|
██║ ╚████║███████╗╚██████╔╝ ╚████╔╝ ██║██║ ╚═╝ ██║
|
||||||
|
╚═╝ ╚═══╝╚══════╝ ╚═════╝ ╚═══╝ ╚═╝╚═╝ ╚═╝
|
BIN
test_attr/test.png
(Stored with Git LFS)
Normal file
BIN
test_attr/test.png
(Stored with Git LFS)
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user