Repo-Level Linting for ROS 2: pre-commit Instead of ament_lint

A concept guide to repository-level code standards for ROS 2: why style checks do not belong in the build, how pre-commit works, the trade-offs against ament_lint, and a safe migration order.

In this article

  • How lint works in ROS 2 today
  • The case against package-level lint tests
  • What repo-level checking looks like
  • Trade-offs to weigh
  • A practical migration path
  • Takeaways