increase text linting in pre-commit, vim etc

This commit is contained in:
MorganGeek
2020-07-18 17:51:18 +02:00
parent 641f25cc99
commit aabb0dadc1
6 changed files with 19 additions and 10 deletions

View File

@ -278,13 +278,15 @@ function invalid_file_refs() {
# Text search
# run aspell in non interactive mode, to list all mispelled words found
# run write-good, proselint, and aspell in non interactive mode, to list all mispelled words found
function checkenlist() {
aspell -d en list < "$1" | sort --unique --ignore-case
write-good "$1" | sort --unique --ignore-case
proselint "$1" | sort --unique --ignore-case
}
function checkenremote() {
curl --location --insecure --silent "$1" > /tmp/file && checkenlist /tmp/file
curl --location --insecure --silent "$1" > /tmp/file && checkenlist /tmp/file && write-good /tmp/file && proselint /tmp/file
}
# Time management