Repository navigation
CI: enable codespell - #16302
CI: enable codespell#16302
Conversation
|
[Experimental Bot, please feedback here] Fill In The Commit Message: This PR contains a Commit with an Empty Commit Message. Please fill in the Commit Message with the PR Summary. Yes, this PR meets the NuttX requirements, although the Testing section could be improved. Strengths:
Weaknesses:
Recommendation: Before merging, add the following:
By addressing these points, your PR will be even stronger and demonstrate that the changes are thoroughly tested and ready for integration. |
xiaoxiang781216
left a comment
There was a problem hiding this comment.
Thanks for enabling the spell check.
49a322b to
039f04d
Compare
hartmannathan
left a comment
There was a problem hiding this comment.
Thanks for adding codespell to CI!
This file can be extended in order to cover all spelling check exceptions (perceived as misspellings).
039f04d to
cc3f0f7
Compare
|
@sumpfralle you could add the spell check fix in this PR, so we can proceed more quickly. |
|
need to do the same also in the nuttx-apps repository @sumpfralle can you please do it? |
Yes, I plan to take a look at the apps repository, after everything is finished for the nuttx repository. |
|
@sumpfralle Thanks |
Summary
These commits add a
.codespellrcconfiguration file with suitable defaults and comments for all relevant use-cases in nuttx.Additionally the github workflow "check" is extended to run the codespell check on changed files.
The log message of the check refers to the
.codespellrcfile in order to help people skip valid false positives.At the moment, 1990 out of 25838 files in the
nuttxrepository are reported by codespell as containing errors. I already prepared two pull requests, which will reduce the number of reported files to 630. In case I can keep the mood up, I may grind this number down to zero in the next days.Impact
CI
CI tests will start to fail, if a file contains a spelling problem (as detected by codespell).
In case of a problem the PR submitter will:
.codespellrcin the CI log..codespellrcand hopefully understands easily, which approach would be suitable for this issue (exclude the word, line or file).pre-commit
The
pre-commitcheck displays spelling problems in changed files.The configuration file (
.codespellrc) is mentioned.Testing
CI
I did not test the CI workflow for now. This PR will be the first example.
pre-commit
The pre-commit hook now detects spelling problems in changed files: