Skip to content

[ament_lint_auto] General file exclusion with AMENT_LINT_AUTO_FILE_EXCLUDE#386

Merged
methylDragon merged 5 commits intoament:masterfrom
aprotyas:ament_lint_auto_file_exclude
Jun 13, 2022
Merged

[ament_lint_auto] General file exclusion with AMENT_LINT_AUTO_FILE_EXCLUDE#386
methylDragon merged 5 commits intoament:masterfrom
aprotyas:ament_lint_auto_file_exclude

Conversation

@aprotyas
Copy link
Copy Markdown
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 aprotyas@u.rochester.edu

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 <aprotyas@u.rochester.edu>
… 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 <aprotyas@u.rochester.edu>
…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 <aprotyas@u.rochester.edu>
…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 <aprotyas@u.rochester.edu>
Signed-off-by: Abrar Rahman Protyasha <aprotyas@u.rochester.edu>
@aprotyas
Copy link
Copy Markdown
Contributor Author

@methylDragon pinging for a review!

@methylDragon
Copy link
Copy Markdown
Contributor

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

@clalancette
Copy link
Copy Markdown
Contributor

@Mergifyio backport humble

@mergify
Copy link
Copy Markdown

mergify bot commented Jul 13, 2023

backport humble

✅ Backports have been created

Details

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 <aprotyas@u.rochester.edu>
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