[dart_custom_lints] Help Request: How to Propagate Custom Lints Using a Centralized Lint Package? #3780
-
Hi everyone, I'm trying to set up a centralized system for managing lints across multiple projects, including some custom lints using the Overview of My Setup:
Structure and Configuration:
What I'm Trying to Achieve:
The Issue I'm Facing: Here is a minimal reproducible example of my setup:
Even after setting it up this way, my custom lints are not being recognized in the My Question: Thanks a lot in advance for your help! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Custom_lint only enables plugins if they are directly depended on. It doesn't look through the dependencies of your dependencies (because they could be using a different set of lints than yours :) ) You should therefore have your "central" package also depend on |
Beta Was this translation helpful? Give feedback.
-
Thanks for your answer ! |
Beta Was this translation helpful? Give feedback.
Custom_lint only enables plugins if they are directly depended on. It doesn't look through the dependencies of your dependencies (because they could be using a different set of lints than yours :) )
You should therefore have your "central" package also depend on
custom_lint_builder
; and define aPlugin
for it (which would re-export all lints from your different packages)