Permalink
Please
sign in to comment.
Showing
with
18 additions
and 0 deletions.
- +1 −0 .github/issue_template.md
- +16 −0 .github/lint-markdown.sh
- +1 −0 .travis.yml
| @@ -0,0 +1,16 @@ | |||
| #!/bin/bash | |||
| set -eu | |||
|
|
|||
| error () { echo "ERROR in '$file': $@" >&2; exit 1; } | |||
|
|
|||
| for file in "$@"; do | |||
| if grep '\x0D' "$file"; then | |||
| error 'Use LF to end lines, not CRLF' | |||
| fi | |||
| if grep -Pzo '(?<![-=\n]\n\n)(?<=\n)(#+ \N*\w\N*|\N*\w\N*\n-+)\n' "$file"; then | |||
| error 'Need two blank lines before heading' | |||
| fi | |||
| if grep -Pv '^(\[[^\]]+\]: .*|\[!.*\))$' "$file" | grep -Pvn '^.{0,90}$'; then | |||
| error 'Lines too long' | |||
| fi | |||
| done | |||
0 comments on commit
fbaf2bf