Skip to content

Missing inspections for unused class, unused public methods and properties #4629

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

Closed
ph55 opened this issue Jun 16, 2020 · 1 comment
Closed

Comments

@ph55
Copy link

ph55 commented Jun 16, 2020

Feature request / improvement.

Classes missing some inspections for

  • Unused class itself
  • Unused public properties
  • Unused public methods

Steps to Reproduce

class Test {
  final unusedPublicProp = 0;
  final _unusedPrivateProp = 0;

  unusedPublic(){
    return 0;
  }

  int _unusedPrivate(){
    return 0;
  }
}

There is no inspection highlight for unused public methods/properties and class:

image

Message only pop-up when you Ctrl+click on method/property/class to find usages:

image

image

image

@ph55 ph55 changed the title Missing unused inspections for class and public methods and properties Missing inspections for unused class, unused public methods and properties Jun 16, 2020
@ghost ghost deleted a comment from pq Jun 16, 2020
@ghost
Copy link

ghost commented Jun 16, 2020

This issue was moved by pq to dart-lang/sdk#42358.

@ghost ghost closed this as completed Jun 16, 2020
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant