Skip to content
This repository has been archived by the owner on Nov 14, 2023. It is now read-only.

add a command to find unused package dependencies #9

Closed
devoncarew opened this issue Dec 21, 2014 · 6 comments
Closed

add a command to find unused package dependencies #9

devoncarew opened this issue Dec 21, 2014 · 6 comments
Milestone

Comments

@devoncarew
Copy link
Contributor

No description provided.

@devoncarew devoncarew modified the milestone: M1 Feb 10, 2015
@travissanderson-wf
Copy link

@devoncarew I'm wondering if this was closed because you decided not to do it, because it is supported now, or because there is something that already does this. I was thinking about writing something but decided to look for an existing tool and found this!

@devoncarew
Copy link
Contributor Author

I just didn't get to it. I'm not sure if there is another tool that does it; perhaps the linter package?

@travissanderson-wf
Copy link

Looks like it is an outstanding request for linter dart-lang/linter#28. Do you think it is an equally good fit in either project?

@travissanderson-wf
Copy link

I have this partially completed in this branch https://github.com/travissanderson-wf/tuneup.dart/tree/depcheck.

For regular dependencies, the only thing I know of that is missing is filtering out transformers that are using $exclude/$include.

For dev dependencies, in our org we have a weird case due to dart_dev where we list dependencies that are actually only transitive dependencies (like coverage, dart_style, etc) that dart_dev requires so that we can control which version of those it uses when running things like pub run dart_dev format. So there's not a great solution for that that I can think of..

Just wanted to post this somewhere because it has already been helpful to me even in its current state, but it isn't really complete enough to incorporate IMO.

@zoechi
Copy link

zoechi commented Feb 4, 2017

There was also some work done on pub dart-lang/pub#1515 (some discussion also in dart-lang/pub#1508, dart-lang/pub#343)

@travissanderson-wf
Copy link

Nice!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants