-
Notifications
You must be signed in to change notification settings - Fork 251
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
reenable cppcheck for rosbag2_transport #461
Conversation
Signed-off-by: Karsten Knese <karsten@openrobotics.org>
it makes me a bit nervous that the GitHub actions (at least the linters) are all passing even though |
I just checked and realized that the linters are running the version from Eloquent - #463 should clear that up |
I was realizing on #463 that I had to disable cppcheck for rosbag2_transport in the Action configuration - I tried incorporating this fix, but invoking the linter from outside of CMake seems to not take it into account. I think I'll need to leave the action-ros-lint cppcheck configuration disabled, and just expect to see it in the regular builds. |
Would you prefer to use the alternative solution to this problem and explicitly disable the |
I think I like that better. Linters feel like they should be able to operate without being involved in the build system. If the macro really couldn't be found - the build wouldn't pass |
Signed-off-by: Karsten Knese <karsten@openrobotics.org>
Seems like the windows jenkins CI had a hiccup here. Given that I am testing only |
* reenable cppcheck Signed-off-by: Karsten Knese <karsten@openrobotics.org> * suppress unknown macro inline Signed-off-by: Karsten Knese <karsten@openrobotics.org>
* reenable cppcheck Signed-off-by: Karsten Knese <karsten@openrobotics.org> * suppress unknown macro inline Signed-off-by: Karsten Knese <karsten@openrobotics.org>
I wasn't aware of it and not sure why it got disabled in the first place, but with the following patch
cppcheck
passes successfully locally on my OSX.Alternatively, one can place a
// cppcheck-suppress unknownMacro
above the twoRCLCPP
macros.This PR was inspired by ros2/rclpy#577
CI (only testing
cppcheck
withinrosbag2_transport
):