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

Lint for unused package defined in pubspec #57174

Closed
kevmoo opened this issue Feb 14, 2015 · 8 comments
Closed

Lint for unused package defined in pubspec #57174

kevmoo opened this issue Feb 14, 2015 · 8 comments
Labels
analyzer-linter Issues with the analyzer's support for the linter package area-analyzer Use area-analyzer for Dart analyzer issues, including the analysis server and code completion. linter-lint-request type-enhancement A request for a change that isn't a bug

Comments

@kevmoo
Copy link
Member

kevmoo commented Feb 14, 2015

No description provided.

@pq pq added the type-enhancement A request for a change that isn't a bug label Feb 15, 2015
@seaneagan
Copy link

There may be false positives with dependencies solely depended on for their barback input assets.

@srawlins
Copy link
Member

pub publish does this now. Of course, it'd be nice to know sooner than pub publish... Come to think of it, why doesn't pub get do this?

@bwilkerson
Copy link
Member

I would prefer to see this as a hint (we are now analyzing pubspec files). It's analogous to the dead code hints and I think it should be treated the same way.

@pq
Copy link
Member

pq commented May 19, 2018

@bwilkerson : shall I move this to the SDK repo?

@kevmoo
Copy link
Member Author

kevmoo commented May 20, 2018 via email

@kevmoo
Copy link
Member Author

kevmoo commented May 20, 2018

CC @nex3, who has thought about this a bit...

@nex3
Copy link
Member

nex3 commented May 20, 2018

We definitely shouldn't warn people for packages that are in their pubspec but aren't imported. We want users to declare explicit dependencies on packages whose assets they use, whose executables they invoke, that they load dynamically via isolates, and so on.

@bwilkerson
Copy link
Member

It sounds like the request for this lint has been withdrawn. A request for a hint for imports of packages that are not explicitly listed in the pubspec should be opened in the sdk repo (if it isn't there already), but this issue should be closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
analyzer-linter Issues with the analyzer's support for the linter package area-analyzer Use area-analyzer for Dart analyzer issues, including the analysis server and code completion. linter-lint-request type-enhancement A request for a change that isn't a bug
Projects
None yet
Development

No branches or pull requests

7 participants