InsightSoftwareConsortium / InsightSoftwareConsortium/ITK

Add a pre-commit hook workflow to check for CMake style

Open
#4,238 1 comment 0 reactions 0 assignees View on GitHub
type:Infrastructure
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.