Skip to content

Fix cpplint and crustify errors - #383

Open
gboeer wants to merge 2 commits into
ros-drivers:mainfrom
gboeer:main
Open

Fix cpplint and crustify errors #383
gboeer wants to merge 2 commits into
ros-drivers:mainfrom
gboeer:main

Conversation

@gboeer

@gboeer gboeer commented Feb 26, 2026

Copy link
Copy Markdown

It seems the CI currently fails because of errors produced by ament_cpplint
In particular it seems to be unsatisfied by the include order of system and local headers in include/usb_cam/formats/mjpeg.hpp.

I changed all external C headers to system headers (I think this should be the case anyway?)
I moved the cpp header include of iostream after them. Now ament_cpplint seems to be satisfied.
Also, applied minor code refomratting as porposed by crustify.

fixes: #382

@gboeer

gboeer commented Feb 26, 2026

Copy link
Copy Markdown
Author

Just ran the pipline on my end:
https://github.com/gboeer/usb_cam/actions/runs/22445856859

The errors raised by cpplint and uncrustify are gone.
The remaining fails happen in rolling releases, which should be fixed by this PR: #381

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix CI that's broken

1 participant