Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ament_lint_auto] General file exclusion with AMENT_LINT_AUTO_FILE_EXCLUDE #386

Merged
merged 5 commits into from
Jun 13, 2022

Conversation

aprotyas
Copy link
Contributor

Currently, there is no interface to specify a file exclusion list for linters invoked through ament_lint_auto, and as such each linter needs to be provided with duplicates of a common file exclusion list.

As discussed in #343, it is reasonable to expect that linters registering themselves as ament_lint_auto extensions should abide to ament_lint_auto conventions in doing so. Namely, linter hooks should abide to the CMake list variable AMENT_LINT_AUTO_FILE_EXCLUDE which will propagate a file exclusion list to each linter invoked by ament_lint_auto.

Closes #343.

Signed-off-by: Abrar Rahman Protyasha [email protected]

aprotyas added 5 commits May 30, 2022 02:02
…er hook

This commit allows the ament_cmake_uncrustify linter hook to abide to
ament_lint_auto conventions by passing the AMENT_LINT_AUTO_FILE_EXCLUDE
list variable to ament_uncrustify's file exclusion argument.

Signed-off-by: Abrar Rahman Protyasha <[email protected]>
… hook

This commit allows the ament_cmake_cppcheck linter hook to abide to
ament_lint_auto conventions by passing the AMENT_LINT_AUTO_FILE_EXCLUDE
list variable to ament_cppcheck's file exclusion argument.

Signed-off-by: Abrar Rahman Protyasha <[email protected]>
…r hook

This commit allows the ament_cmake_copyright linter hook to abide to
ament_lint_auto conventions by passing the AMENT_LINT_AUTO_FILE_EXCLUDE
list variable to ament_copyright's file exclusion argument.

Signed-off-by: Abrar Rahman Protyasha <[email protected]>
…hook

This commit allows the ament_cmake_cpplint linter hook to abide to
ament_lint_auto conventions by passing the AMENT_LINT_AUTO_FILE_EXCLUDE
list variable to ament_cpplint's file exclusion argument.

Signed-off-by: Abrar Rahman Protyasha <[email protected]>
@aprotyas
Copy link
Contributor Author

@methylDragon pinging for a review!

@methylDragon
Copy link
Contributor

  • Linux Build Status
  • Linux-aarch64 Build Status
  • Windows Build Status

@clalancette
Copy link
Contributor

@Mergifyio backport humble

@mergify
Copy link

mergify bot commented Jul 13, 2023

backport humble

✅ Backports have been created

mergify bot pushed a commit that referenced this pull request Jul 13, 2023
clalancette pushed a commit that referenced this pull request Jul 17, 2023
…CLUDE (#386) (#445)

(cherry picked from commit 2ed2e93)

Co-authored-by: Abrar Rahman Protyasha <[email protected]>
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.

[ament_lint_auto] General file exclusion lists
3 participants