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

Config where to look #2

Open
badwolf4815162342 opened this issue May 24, 2024 · 1 comment
Open

Config where to look #2

badwolf4815162342 opened this issue May 24, 2024 · 1 comment
Labels
feature A new feature request

Comments

@badwolf4815162342
Copy link

Since I use flutter fvm, all packages that are in the yaml file are technically appearing in my folders since I assume your tool looks everywhere in the project, also the .fvm folder which includes all the downloaded packages that I'm using. So even though a dependency is not used in my lib folder it does not show as an unused dependency. Could you make a configfile to set folder in which your tool should look for appearances of dependencies?

@esentis
Copy link
Owner

esentis commented May 24, 2024

I appreciate your feedback. Let me clarify how the tool works and address your concerns:

fvm is used for managing Flutter versions and does not directly manage your project's dependencies. Your project's dependencies are listed in the pubspec.yaml file at the root of your project. The tool reads this file to get the list of dependencies and then checks the lib/ folder to see if any of these libraries are imported at least once.

I'll consider this feature request for a future update (custom pubspec.yaml path).
In the meantime, please ensure that only the necessary folders, like lib/,
are being included in your analysis to reduce false positives.

If I've misunderstood your issue or if you have additional suggestions, please let me know!
Thank you for your understanding and cooperation.

@esentis esentis added the feature A new feature request label May 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature A new feature request
Projects
None yet
Development

No branches or pull requests

2 participants