moja-global / moja_global_docs

Repository to host the moja global technical documentation
https://docs.moja.global/en/master/
Mozilla Public License 2.0
35 stars 67 forks source link

Feature Request: Correct spelling errors using a pre-commit hook #190

Closed Namyalg closed 2 years ago

Namyalg commented 2 years ago

Is your feature request related to a problem? Please describe.

Currently, there is no mechanism in place to test the correctness of word spellings.

Describe the solution you'd like.

I propose to use https://github.com/codespell-project/codespell as a pre-commit hook. codespell rectifies the spellings of commonly used words on running git commit. Once the spellings are corrected, the changes need to be staged and committed again.

Describe alternatives you've considered

The initial idea was to use vale-action. vale can be used to lint the documentation and ensure it adheres to a particular style. However, due to its complexity, this is put on hold for the moment.