Lint carriage return

This commit is contained in:
Boris Verkhovskiy 2024-12-18 18:39:21 -07:00
parent 11b91ad5cc
commit 01771b39c9

View File

@ -22,16 +22,21 @@ jobs:
- name: Files are UTF-8 - name: Files are UTF-8
run: ./lint/encoding.sh . run: ./lint/encoding.sh .
- name: No non-breaking spaces - name: "No non-breaking spaces"
run: | run: |
if grep -rI --include='*.md' $'\u00A0' .; then if grep -rI --include='*.md' $'\u00A0' .; then
exit 1 exit 1
fi fi
- name: No zero-width spaces - name: "No zero-width spaces"
run: | run: |
if grep -rI --include='*.md' $'\u200B' .; then if grep -rI --include='*.md' $'\u200B' .; then
exit 1 exit 1
fi fi
- name: "No carriage return"
run: |
if grep -rI --include='*.md' $'\u000D' .; then
exit 1
fi
- name: Lint Markdown - name: Lint Markdown
run: mdl . --ignore-front-matter -r MD003,MD005,MD011,MD018,MD019,MD023,MD025,MD027,MD028,MD030,MD035,MD037,MD038,MD039,MD047 run: mdl . --ignore-front-matter -r MD003,MD005,MD011,MD018,MD019,MD023,MD025,MD027,MD028,MD030,MD035,MD037,MD038,MD039,MD047
- name: Lint frontmatter - name: Lint frontmatter