Skip to content
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

[ament_cppcheck] Report errors from additional includes #216

Merged
merged 2 commits into from
Mar 4, 2020

Conversation

jacobperron
Copy link
Contributor

Before, if an error was found in an additional include we get a KeyError exception.


For example: https://ci.ros2.org/job/ci_linux/9443/testReport/junit/(root)/rclcpp_action/cppcheck_xunit_missing_result/

Additional includes added to rclcpp_action and rclcpp_lifecycle in ros2/rclcpp#1000 by chance picked up a cppcheck error in rclcpp, causing a KeyError exception.

The other option is to ignore errors from additional include directories, but I think being louder about errors is better.

Before, if an error was found in an additional include we get a KeyError exception.

Signed-off-by: Jacob Perron <jacob@openrobotics.org>
@jacobperron jacobperron self-assigned this Feb 26, 2020
@jacobperron jacobperron added the bug Something isn't working label Feb 26, 2020
@jacobperron
Copy link
Contributor Author

jacobperron commented Feb 26, 2020

CI including ros2/rclcpp#1000

  • Linux Build Status
  • Linux-aarch64 Build Status
  • macOS Build Status
  • Windows Build Status
  • Windows-container Build Status

Signed-off-by: Jacob Perron <jacob@openrobotics.org>
@jacobperron jacobperron merged commit 49ab00d into master Mar 4, 2020
@delete-merged-branch delete-merged-branch bot deleted the jacob/cppcheck_report_additional_includes branch March 4, 2020 17:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants