Skip to content

Add pre-commit hooks to implement spelling failures before PR is pushed. #5092

Open
@hjmjohnson

Description

@hjmjohnson

Description

Small spelling errors are caught (and rejected) by the github actions on PRs, but not during development.

Impact analysis

A small spelling error introduces:

  • a large time delay in getting feedback
  • extra developer time to work through fixing spelling error
  • wastes precious github action resources on failed PR compliance

Expected behavior

Enforcement of code requirements should be inline with normal development processes. Fixing these errors at the time they are made is much more efficient use of developer time.

Actual behavior

Developer burden is increased if the PR is made before identifying the spelling issue.

Environment

Development environments.

Additional Information

Possible solution:
https://github.com/codespell-project/codespell

Some GitHub itk infrastructure.

 .github/workflows/spell-check-comments.yml
.github/workflows/itk_dict.txt  

Metadata

Metadata

Assignees

Labels

type:InfrastructureInfrastructure/ecosystem related changes, such as CMake or buildbots

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions