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

[analyzer] unused_import not being triggered #55483

Open
HosseinYousefi opened this issue Apr 16, 2024 · 2 comments
Open

[analyzer] unused_import not being triggered #55483

HosseinYousefi opened this issue Apr 16, 2024 · 2 comments
Labels
analyzer-warning Issues with the analyzer's Warning codes area-analyzer Use area-analyzer for Dart analyzer issues, including the analysis server and code completion. P2 A bug or feature request we're likely to work on type-bug Incorrect behavior (everything from a crash to more subtle misbehavior)

Comments

@HosseinYousefi
Copy link
Member

HosseinYousefi commented Apr 16, 2024

Specifically in this file, unused dart:lib imports like dart:ffi or dart:async won't trigger the unused_import lint. Unused package:pkg/pkg.dart and path/to/file.dart imports do trigger the lint correctly!

- Dart 3.4.0-242.0.dev (dev) (Sat Mar 16 17:06:53 2024 -0700) on "macos_arm64"
- on macos / Version 14.4.1 (Build 23E224)
- locale is en
@HosseinYousefi HosseinYousefi added the analyzer-linter Issues with the analyzer's support for the linter package label Apr 16, 2024
@HosseinYousefi HosseinYousefi changed the title unused_import not being triggered [analyzer] unused_import not being triggered Apr 16, 2024
@mraleph mraleph added area-analyzer Use area-analyzer for Dart analyzer issues, including the analysis server and code completion. type-bug Incorrect behavior (everything from a crash to more subtle misbehavior) labels Apr 17, 2024
@bwilkerson bwilkerson added analyzer-warning Issues with the analyzer's Warning codes P2 A bug or feature request we're likely to work on and removed analyzer-linter Issues with the analyzer's support for the linter package labels Apr 19, 2024
@bwilkerson
Copy link
Member

@srawlins Do you know whether this is intentional?

@srawlins
Copy link
Member

I don't. We'd need a minimal reproduction case to investigate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
analyzer-warning Issues with the analyzer's Warning codes area-analyzer Use area-analyzer for Dart analyzer issues, including the analysis server and code completion. P2 A bug or feature request we're likely to work on type-bug Incorrect behavior (everything from a crash to more subtle misbehavior)
Projects
None yet
Development

No branches or pull requests

4 participants