ci: add instructions that explain how to fix spellcheck errors (#7016)

This commit is contained in:
Alice Ryhl 2024-12-05 12:28:27 +01:00 committed by GitHub
parent 480c010b01
commit e0d1293fac
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1102,6 +1102,22 @@ jobs:
false
}
- name: Run cargo-spellcheck
run: cargo spellcheck --code 1
run: |
if ! cargo spellcheck --code 1
then
echo ''
echo ''
echo 'If this is a Rust method/type/variable name, then you should'
echo 'enclose it in backticks like this: `MyRustType`.'
echo ''
echo 'If this is a real word, then you can add it to spellcheck.dic'
exit 1
fi
- name: Detect trailing whitespace
run: if grep --exclude-dir=.git --exclude-dir=target -re '\s$' . ; then exit 1; fi
run: |
if grep --exclude-dir=.git --exclude-dir=target -rne '\s$' .
then
echo ''
echo 'Please remove trailing whitespace from these lines.'
exit 1
fi