Skip to content

Commit

Permalink
ci: add instructions that explain how to fix spellcheck errors (#7016)
Browse files Browse the repository at this point in the history
  • Loading branch information
Darksonn authored Dec 5, 2024
1 parent 480c010 commit e0d1293
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit e0d1293

Please sign in to comment.