-
Notifications
You must be signed in to change notification settings - Fork 495
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CMake format and lint in pre-commit #2683
Conversation
6878ccf
to
092a47d
Compare
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #2683 +/- ##
==========================================
- Coverage 50.74% 41.08% -9.66%
==========================================
Files 392 690 +298
Lines 32553 56237 +23684
Branches 0 7288 +7288
==========================================
+ Hits 16517 23098 +6581
- Misses 16036 32976 +16940
- Partials 0 163 +163 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome, thank you! For some reason, this change leads to a huge amount of failures like this:
- moveit_core.cpplint whitespace/line_length [2] (/home/runner/work/moveit2/moveit2/.work/target_ws/src/moveit2/moveit_core/collision_detection_bullet/src/bullet_integration/bullet_utils.cpp:226)
<<< failure message
Lines should be <= 100 characters long
Do you know why this is happening? Once it is fixed, we can merge this
Yea, I do and I'll fix it. |
Here is the list of linters that come from ament_lint. Now that we are dropping cmake-lint and using it in pre-commit none of these make much sense for us so I'm going to drop all of them. https://github.com/ament/ament_lint/blob/rolling/ament_lint_common/doc/index.rst |
Description
I think it is a much better developer experience having cmake consistently formatted and linted in pre-commit than in ament.