Skip to content

Add polymath-ros linter which adds a check for executor threads#10

Open
skyegalaxy wants to merge 7 commits into
mainfrom
skyegalaxy/add-ros-linter
Open

Add polymath-ros linter which adds a check for executor threads#10
skyegalaxy wants to merge 7 commits into
mainfrom
skyegalaxy/add-ros-linter

Conversation

@skyegalaxy

@skyegalaxy skyegalaxy commented Jun 12, 2026

Copy link
Copy Markdown
Member

Adds a new check, polymath-ros under which opinionated ROS linting can be added. The first one in this category checks that all instances of Multi-Threaded (or Callback Group) executors specify thread_num in their constructor.
The rules allow for passing 0 explicitly (which defaults to std::hardware_concurrency), because we want it to be an explicit choice on the part of the user instead of a consequence of default construction.

image

Skyler Medeiros added 7 commits June 12, 2026 12:34
Signed-off-by: Skyler Medeiros <skye@polymathrobotics.com>
Signed-off-by: Skyler Medeiros <skye@polymathrobotics.com>
Signed-off-by: Skyler Medeiros <skye@polymathrobotics.com>
Signed-off-by: Skyler Medeiros <skye@polymathrobotics.com>
Signed-off-by: Skyler Medeiros <skye@polymathrobotics.com>
Signed-off-by: Skyler Medeiros <skye@polymathrobotics.com>
Signed-off-by: Skyler Medeiros <skye@polymathrobotics.com>
@skyegalaxy skyegalaxy marked this pull request as ready for review June 12, 2026 22:04
@skyegalaxy skyegalaxy requested a review from emersonknapp June 12, 2026 22:19
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.

1 participant