InsightSoftwareConsortium / InsightSoftwareConsortium/ITK
Add a pre-commit hook workflow to check for CMake style
- Dominant language
- C++
- Stars
- 1.7k
- Forks
- 748
- Avg merge
- 1d 1h
- Merged PRs (30d)
- 64
Description
### Description
Add a pre-commit hook workflow to check for CMake style.
### Impact analysis
Would allow reporting style inconsistencies, and by preventing a commit from being done until the style check passes, consistency in style would be ensured and readability would improve on the new code.
### Expected behavior
Report locally inconsistencies in CMake code style with respect to the defined style, preventing to commit changes that do not conform to the defined style.
### Actual behavior
No pre-commit hook is in place to check for CMake code style.
### Versions
`master`.
### Environment
Any.
### Additional Information
Cross-referencing https://github.com/InsightSoftwareConsortium/ITK/pull/4233#issuecomment-1741554287.
Contributor guide
Assessment
This issue has not been assessed yet.