mirror of
https://github.com/lnbook/lnbook
synced 2024-11-04 18:00:26 +00:00
parent
8caa9ffa3f
commit
ff5ae783d4
@ -19,6 +19,5 @@ script:
|
||||
- for FILE in $(git ls-files -- "*.asciidoc" "*.md"); do if [[ $(tail -c1 $FILE) != "" ]]; then echo "File ${FILE} does not end with a newline character (\n)."; exit 1; fi; done
|
||||
- git grep "" -- "*.asciidoc" "*.md" | uniq -c | grep -1 "^ [2-9] " | cut -b9- | sed 's/:$/:[more-than-one-blank-line-here-please-remove]/' | grep ":" && echo "^ Multiple blank lines detected. Please use only one blank line between paragraphs." && exit 1 || true
|
||||
- git grep -E "^[= ]*[a-z]" -- "*.asciidoc" "*.md" | grep -vE '(:(link|pass):|::$)' | grep -vE ':[= ]*(http|https)' | grep -n -E "[a-z]" && echo "^ The first letter of the sentence should be capitalized. The end of the sentence should be on the same line as the beginning of the sentence. Please correct." && exit 1 || true
|
||||
- git grep '^.* .*[a-zA-Z]$' -- "*.asciidoc" "*.md" | grep -vE '\.(asciidoc|md): *[=*\[_/#0-9]' | grep -vE '(http:|https:|footnote:)' | grep -vE ': [^ ]+$' | grep ":" && echo "^ Lines not properly terminated. Please add proper punctuation." && exit 1 || true
|
||||
- codespell --ignore-words-list=que $(git ls-files -- "*.asciidoc" "*.md")
|
||||
- misspell -error $(git ls-files -- "*.asciidoc" "*.md")
|
||||
|
Loading…
Reference in New Issue
Block a user