Repository navigation
COMP: Restore the clang-format lint check - #79
Merged
hjmjohnson merged 1 commit intoNov 3, 2026
Merged
Conversation
The lint job referenced ITKClangFormatLinterAction@master, which no longer resolves since the action's default branch became main. The action now also fails when no tracked file has the hooks.style=clangformat attribute, so add a .gitattributes marking the C++ sources, and apply the module's .clang-format to the four files that did not conform. The reformat changes only whitespace and line breaks.
hjmjohnson
marked this pull request as ready for review
November 3, 2026 15:23
dzenanz
approved these changes
Nov 3, 2026
hjmjohnson
merged commit Nov 3, 2026
d52dc1e
into
InsightSoftwareConsortium:main
16 of 17 checks passed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Restores the
lintjob:ITKClangFormatLinterAction@masterno longer resolves (the action's default branch ismain), and the action now fails unless files are markedhooks.style=clangformat. Adds that.gitattributesand applies the module's.clang-formatto the four files that did not conform. This unblocks the lint check on #78.Details
.github/workflows/clang-format-linter.yml:@masterto@main..gitattributes: marks*.h,*.hxx, and*.cxxfor the check. Since InsightSoftwareConsortium/ITKClangFormatLinterAction@fc9d6869 (2026-09-23) the action fails when no tracked file carries the attribute, instead of passing without checking anything..clang-format:src/itkOMEZarrNGFFImageIO.cxx,src/itkOMEZarrNGFFImageIOFactory.cxx,test/itkOMEZarrNGFFInMemoryTest.cxx,test/itkOMEZarrNGFFReadSliceTest.cxx. The changes are whitespace and line breaks only (git diff -wshows only re-wrapped lines).Testing
clang-format.bash, clang-format 19.1.7) passes locally on this branch.git diff -wshows only re-wrapped lines; one long string literal is split into two adjacent literals, which concatenate to the same string.mainas well as this branch. CI builds and tests it here.