-
Notifications
You must be signed in to change notification settings - Fork 125
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update markdown lint and linkchecker (#521)
* update CI and scripts Signed-off-by: Nicolas MASSART <[email protected]> * fix MD and ignore log files Signed-off-by: Nicolas MASSART <[email protected]> * remove previously commited logs Signed-off-by: Nicolas MASSART <[email protected]> * fix package path Signed-off-by: Nicolas MASSART <[email protected]> * update link checker conf Signed-off-by: Nicolas MASSART <[email protected]> * restored some link exclusions probably ddos protection on etherescan and internal postman link is in an include making path wrong when checked separately Signed-off-by: Nicolas MASSART <[email protected]>
- Loading branch information
1 parent
a5461b0
commit 82e8ca4
Showing
62 changed files
with
684 additions
and
269 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,3 +5,4 @@ env/ | |
node_modules/ | ||
.circleci/process.yml | ||
.DS_Store | ||
*.log |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
For changes see the Hyperledger Besu | ||
[CHANGELOG.md](https://github.com/hyperledger/besu/blob/master/CHANGELOG.md) | ||
[CHANGELOG.md](https://github.com/hyperledger/besu/blob/master/CHANGELOG.md) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
default: true | ||
no-trailing-punctuation: | ||
punctuation: '.,;:!' | ||
ul-indent: | ||
indent: 4 | ||
|
||
no-bare-urls: false | ||
code-block-style: false | ||
line-length: false | ||
|
||
# excluded rule for as kramdown has a bug. | ||
# see https://github.com/markdownlint/markdownlint/issues/294#issuecomment-600600407 | ||
# these are now in info style. | ||
# to be put back in error style once bug fixed. | ||
single-h1: false | ||
no-space-in-code: false | ||
no-duplicate-header: false | ||
first-line-h1: false | ||
|
||
# Because I hate HTML but sometimes a table is hard to format in MD | ||
# now in info style. | ||
no-inline-html: false | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
line-length: | ||
line_length: 100 | ||
code_blocks: false | ||
tables: false | ||
|
||
no-bare-urls: false | ||
|
||
# excluded rule for error as kramdown has a bug. | ||
# see https://github.com/markdownlint/markdownlint/issues/294#issuecomment-600600407 | ||
# these are now in this info style. | ||
# to be put back in error style once bug fixed. | ||
single-h1: true | ||
no-space-in-code: true | ||
no-duplicate-header: | ||
allow_different_nesting: true | ||
first-line-h1: true | ||
|
||
# Because I hate HTML but sometimes a table is hard to format in MD | ||
no-inline-html: true | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -o pipefail | ||
|
||
if [ -z "$1" ] | ||
then | ||
echo "No job mame supplied. See .circleci/config.yml for job names." | ||
exit 1 | ||
else | ||
JOB=$1 | ||
fi | ||
|
||
exec < /dev/tty | ||
|
||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" | ||
LOGFILE=${DIR}/${JOB}.log | ||
|
||
echo -e "\rRunning ${JOB} test job, please wait.\r" | ||
|
||
circleci config process .circleci/config.yml > .circleci/process.yml && circleci local execute -c .circleci/process.yml --job $JOB > ${LOGFILE} 2>&1 | ||
|
||
if [ "$?" -eq "0" ] | ||
then | ||
echo -e "\r✓ ${JOB} test job succeeded\r" | ||
exit 0 | ||
else | ||
echo -e "\r✖ ${JOB} test job failed. See ${LOGFILE}" | ||
exit 1 | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,16 @@ | ||
#!/usr/bin/env bash | ||
CI/scripts/test_build.sh | ||
CI/scripts/test_guidelines.sh | ||
CI/scripts/test_links.sh | ||
CI/scripts/test_lint.sh | ||
|
||
echo -e "\r=================================" | ||
echo -e "\rRunning all tests jobs, please wait." | ||
echo -e "\r=================================" | ||
|
||
CI/scripts/run_job.sh build & buildPID=$! | ||
CI/scripts/run_job.sh vale & guidelinesPID=$! | ||
CI/scripts/run_job.sh linkchecker & linksPID=$! | ||
CI/scripts/run_job.sh markdownlint & syntaxPID=$! | ||
|
||
wait $buildPID $linksPID $syntaxPID $guidelinesPID | ||
|
||
echo -e "\r=================================" | ||
echo -e "\rAll tests jobs completed." | ||
echo -e "\r=================================" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
#!/usr/bin/env bash | ||
circleci config process .circleci/config.yml > .circleci/process.yml && circleci local execute -c .circleci/process.yml --job build | ||
|
||
CI/scripts/run_job.sh build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
#!/usr/bin/env bash | ||
circleci config process .circleci/config.yml > .circleci/process.yml && circleci local execute -c .circleci/process.yml --job vale | ||
|
||
CI/scripts/run_job.sh vale |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
#!/usr/bin/env bash | ||
circleci config process .circleci/config.yml > .circleci/process.yml && circleci local execute -c .circleci/process.yml --job linkchecker | ||
|
||
CI/scripts/run_job.sh linkchecker |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/usr/bin/env bash | ||
|
||
CI/scripts/run_job.sh markdownlint |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.