Skip to content
Draft
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,17 @@
ament_lint contains a number of packages that perform linting tasks. Those linters can be used both from the command line and from CMake.
## ament_lint

ament_lint contains a number of packages, each package wraps a linter into an ament_$linter CLI tool, which is then wrapped in CMake (ament_cmake_$linter)
Those linters can be used both from the command line and from CMake.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

They also have a Python API, e.g., here:

def main(argv: List[str] = sys.argv[1:]) -> int:
. This can be called in a test, e.g., here: https://github.com/ros2/launch/blob/f8ef67a0f8cface863e1cd168f0b6bf2976be60b/launch/test/test_mypy.py#L22.

The tools are configured to meet [ROS 2 coding standards](https://docs.ros.org/en/rolling/The-ROS2-Project/Contributing/Code-Style-Language-Versions.html).
It bundles common linting tools with ROS 2-specific wrappers to ensure consistent functionality across packages.
Fore more information regarding ament_lint see [here](https://docs.ros.org/en/rolling/Tutorials/Advanced/Ament-Lint-For-Clean-Code.html).
For information on each ament tool, refer to the documentation in their package's doc/ directory.

## Contributing

The tool argument are still being refined — some features from standalone linters may not yet work perfectly. We welcome contributions to improve:
We welcome contributions to improve:
- Linter arguments
- Additional tool support
- ...
Please follow the [Contrubution Guidelines](CONTRIBUTING.md).

Please follow the [Contribution Guidelines](CONTRIBUTING.md).