Open wdconinc opened 7 months ago
pre-commit.ci autofix
After squash merge, we should add the commit to .git-blame-ignore-revs
, https://docs.github.com/en/repositories/working-with-files/using-files/viewing-a-file#ignore-commits-in-the-blame-view.
clang-tidy error https://github.com/eic/EICrecon/actions/runs/8663802856/job/23763825088#step:9:120 is caused by the yaml file containing segments like:
- BuildDirectory: /home/runner/work/EICrecon/EICrecon/build/src/utilities/eicrecon
DiagnosticMessage:
FileOffset: 0
FilePath: ''
Message: macro replacement list should be enclosed in parentheses
Replacements:
- FilePath: ''
Length: 0
Offset: 15074
ReplacementText: (
- FilePath: ''
Length: 0
Offset: 15088
ReplacementText: )
DiagnosticName: bugprone-macro-parentheses
Level: Warning
where the FilePath
is empty. We should fix this, but the byte offset is not letting me figure out where the error is...
Briefly, what does this PR introduce?
We don't let the CI pre-commit job run automatic clang-format and cmake-format fixes. This PR changes that behavior for clang-format, by updating the clang-format pre-commit hook.
What kind of change does this PR introduce?
Please check if this PR fulfills the following:
Does this PR introduce breaking changes? What changes might users need to make to their code?
No changes.
Does this PR change default behavior?
Yes, it might lead to developers seeing their code reformatted automatically.