Closed SAGARSURI closed 6 months ago
Does your movie_app
have custom_lint
as a dependency?
Nope! It's defined inside the movie_lint
package. Idea is not to add it to all the packages that I will have in the future.
Unfortunately, thats a limitation of analyzer plugins, as far as I know you cannot do that. You have to mention custom_lint
in every package (both in pubspec and analysis options, I think, you have to check). What is worse, I don't think its possible to have just movie_lint
mention leancode_lint
, but all of them have to do that. The only thing that I think will work indeed is using include:
in analysis_options
to bring in configuration of lints.
So I do have analysis_options.yaml
in every package but it include movie_lint
's analysis_options.yaml
which internally uses leancode_lint
. It works for me. The advantage I get is, I now have a central place to enable/disable rules.
So is this issue resolved then? Or can I help with something else?
Yeah let's close this out as it's the analyze plugin limitation. Thank you for the support
Hey team,
Thank you for this great package. I really like your
custom_lint
rules. But I am not able to make it run in my multi-package flutter project setup. I have the following structure of my project:movie_app
: my flutter appmovie_lint
: my custom lint which internally use leancode_lint packageIn my
movie_lint
package. I haveanalysis_options.yaml
inside thelib/
folder which have the following code:In my
movie_app
theanalysis_options.yaml
looks like this:Now when I use this package inside my
movie_app
flutter app. Thedart analyze .
is working fine butdart run custom_lint
is not detecting the issues in my codebase.