Skip to content

Commit

Permalink
Linting for rviz_rendering (ros-visualization#17)
Browse files Browse the repository at this point in the history
* Introduce linters in rviz_rendering

- we don't use ament_lint_common because copyright checks fail
- we want to wait for changes in ament_copyright before fixing

* Fix cppcheck errors

- only one error: memory leak of log_manager

* Extract SdkQtCameraMan from OgreBites to fix linters

- SdkQtCameraMan is from OgreBites and not from rviz
- No change in functionality

* adding a todo about the copyright linter

* add a comment about delete-less new call
  • Loading branch information
Martin-Idel-SI authored and wjwwood committed Sep 6, 2017
1 parent 5aa09d3 commit 9742ff3
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 393 deletions.
12 changes: 12 additions & 0 deletions rviz_rendering/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -103,4 +103,16 @@ endif()

install(TARGETS rendering_example DESTINATION bin)

if(BUILD_TESTING)
# TODO(wjwwood): replace this with ament_lint_auto() and/or add the copyright linter back
find_package(ament_cmake_cppcheck REQUIRED)
find_package(ament_cmake_cpplint REQUIRED)
find_package(ament_cmake_lint_cmake REQUIRED)
find_package(ament_cmake_uncrustify REQUIRED)
ament_cppcheck()
ament_cpplint()
ament_lint_cmake()
ament_uncrustify()
endif()

ament_package()
5 changes: 5 additions & 0 deletions rviz_rendering/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@
<build_depend>rviz_ogre_vendor</build_depend>
<build_depend>qtbase5-dev</build_depend>

<test_depend>ament_cppcheck</test_depend>
<test_depend>ament_cpplint</test_depend>
<test_depend>ament_cmake</test_depend>
<test_depend>ament_uncrustify</test_depend>

<exec_depend>assimp</exec_depend>
<exec_depend>libogre</exec_depend>
<exec_depend>libqt5-core</exec_depend>
Expand Down
366 changes: 0 additions & 366 deletions rviz_rendering/src/SdkQtCameraMan.h

This file was deleted.

Loading

0 comments on commit 9742ff3

Please sign in to comment.