Linting
Last updated
Was this helpful?
Last updated
Was this helpful?
roslint
with catkinBefore merging into the main repository roslint
is ran on all merge requests. Unless all errors are resolved the merge request will be rejected. To test if your changes would pass the roslint
test locally:
Add the following lines to your CMakelists.txt
:
Your package.xml
should include roslint
as a build dependency:
Build target roslint
:
with catkin_make
: catkin_make roslint_<package_name>
with catkin_tools
: catkin build --no-deps <package_name> --make-args roslint_<package_name>
If build fail copy and execute the gray line that looks something like the following to see more detailed errors:
catkin_lint
You should also make sure that the catkin_lint
tests pass; running it from the root of your catkin workspace you can run:
Proposed linters: