jbampton opened a new pull request, #191: URL: https://github.com/apache/openoffice/pull/191
Official -> "Git hook scripts are useful for identifying simple issues before submission to code review. We run our hooks on every commit to automatically point out issues in code such as missing semicolons, trailing whitespace, and debug statements. By pointing these issues out before code review, this allows a code reviewer to focus on the architecture of a change while not wasting time with trivial style nitpicks." https://pre-commit.com/ Using a `pre-commit` framework speeds up development as a lot of tests can be run on the local machine giving instant feedback. So we don't have to wait for the CI / GitHub actions to run to get feedback. The pre-commit automatically fixes some of the issues when you do git commit and if there are any issues the tests are marked as red failed. Then you will need to commit again so that all the tests pass green. When pre-commit runs with GitHub Actions on the GitHub website the hooks/tests either pass or fail. There are many more pre-commit checks listed here -> https://pre-commit.com/hooks.html Lets get this PR merged and then I will look at adding more pre-commit tests 👍 This PR adds `codespell` to our pre-commit hooks. The words in `codespell.txt` are ignored and this file has basically been created by running: `codespell . | cut -f2 -d' ' | tr A-Z a-z | sort | uniq > codespell.txt` from the repo root. https://github.com/codespell-project/codespell `codespell` is one of the leading spell checkers on GitHub. Going forwards we will need to fix a lot of the misspelled words that are in `codespell.txt` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: dev-unsubscr...@openoffice.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@openoffice.apache.org For additional commands, e-mail: dev-h...@openoffice.apache.org