chore: Enable clang-tidy misc checks - #6655
Conversation
|
This PR has conflicts, please resolve them in order for the PR to be reviewed. |
|
All conflicts have been resolved. Assigned reviewers can now start or resume their review. |
| continue-on-error: true | ||
| env: | ||
| TARGETS: ${{ inputs.files != '' && inputs.files || 'src tests' }} | ||
| TARGETS: ${{ inputs.files != '' && inputs.files || '^(?!.*src/tests/libxrpl/protocol_autogen/).*(/src/|/tests/).*\.cpp$' }} |
There was a problem hiding this comment.
So this is the easiest way for now, we don't want to run tidy on generated code, eventually we may want to enable it but i think it's best left for last moment when all other code is fully compliant.
There was a problem hiding this comment.
Shouldn't we exclude generated code paths in .clang-tidy file instead?
There was a problem hiding this comment.
I'm not aware of such option in clang-tidy. The closest thing i know of is header filter and exclude filter but that only affects #included code, not inputs directly consumed by clang-tidy
There was a problem hiding this comment.
I think I found a way - put a second .clang-tidy file in the directory you want to exclude with
# This disables all checks for this directory and its subdirectories
Checks: '-*'
InheritParentConfig: false
There was a problem hiding this comment.
Oh! this is actually a great idea, i will try, thanks for the suggestion
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## develop #6655 +/- ##
=========================================
- Coverage 81.5% 81.4% -0.1%
=========================================
Files 999 999
Lines 74459 74458 -1
Branches 7563 7577 +14
=========================================
- Hits 60652 60613 -39
- Misses 13807 13845 +38
🚀 New features to boost your workflow:
|
| @@ -23,7 +23,7 @@ operator==(Config const& lhs, Config const& rhs) | |||
| return lhs.autoConnect == rhs.autoConnect && lhs.peerPrivate == rhs.peerPrivate && | |||
| lhs.wantIncoming == rhs.wantIncoming && lhs.inPeers == rhs.inPeers && | |||
| lhs.maxPeers == rhs.maxPeers && lhs.outPeers == rhs.outPeers && | |||
| lhs.features == lhs.features && lhs.ipLimit == rhs.ipLimit && | |||
There was a problem hiding this comment.
Looks like a copypasta bug caught 👍
mathbunnyru
left a comment
There was a problem hiding this comment.
I checked random places, overall LGTM
|
@godexsoft looks like more clang-tidy fixes are needed. |
High Level Overview of Change
This PR enables various checks:
API Impact
No impact.