-
Notifications
You must be signed in to change notification settings - Fork 107
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 lists #343
Comments
I'm onboard. |
After looking into this a little further, this might be a bit convoluted. Here's why:
Is there a way for file exclusion to reside in harmony with the central execution system used here? What needs to happen is, |
@aprotyas In other words, I don't see an issue with abiding to |
What?
A mechanism to provide a list of files to be excluded to
ament_lint_auto
, with the intention being that all linters running as a result of having invokedament_lint_auto
will inherit these exclusions.Why?
The main utility with this mechanism would be in declaring a list of common C++/Python source files that should not be linted within a package - common examples would be third-party files or templates.
In working on ros2/geometry2#469, I had to deal with the former type of files mentioned above. I noticed that it would be convenient if we had a way to provide a general file exclusion list to
ament_lint_auto
. It would simplify this workflow:Current CMakeLists.txt snippet
To the following workflow:
Desired CMakeLists.txt snippet
The pain point in the former being the need to manually exclude each of the linters that's supposed to receive the same file exclusion list -- if so, why not just signal that file exclusion list to the linter aggregator?
Implementation consideration
Introducing the ability to populate/append a list variable such as
AMENT_LINT_AUTO_FILE_EXCLUDE
with the general file exclusion list is probably the path with least friction. Having said that, I have not fully thought through the implementation or if there are any ways a general file exclusion list like this can bite.Thoughts?
The text was updated successfully, but these errors were encountered: