Skip to content

[ament_cppcheck] Report errors from additional includes#216

Merged
jacobperron merged 2 commits intomasterfrom
jacob/cppcheck_report_additional_includes
Mar 4, 2020
Merged

[ament_cppcheck] Report errors from additional includes#216
jacobperron merged 2 commits intomasterfrom
jacob/cppcheck_report_additional_includes

Conversation

@jacobperron
Copy link
Copy Markdown
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
Copy Markdown
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