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

Quickfix "Create 'noSuchMethod' method" should include @override #46556

Closed
stereotype441 opened this issue Jul 2, 2021 · 0 comments
Closed
Assignees
Labels
analyzer-quick-fix area-analyzer Use area-analyzer for Dart analyzer issues, including the analysis server and code completion.

Comments

@stereotype441
Copy link
Member

stereotype441 commented Jul 2, 2021

The analysis server's "Create 'noSuchMethod' method" quick fix inserts the following text:

  noSuchMethod(Invocation invocation) => super.noSuchMethod(invocation);

Which triggers the annotate_overrides lint.

It would be better to insert:

  @override
  noSuchMethod(Invocation invocation) => super.noSuchMethod(invocation);
@stereotype441 stereotype441 added area-analyzer Use area-analyzer for Dart analyzer issues, including the analysis server and code completion. analyzer-quick-fix labels Jul 2, 2021
@bwilkerson bwilkerson self-assigned this Jul 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
analyzer-quick-fix area-analyzer Use area-analyzer for Dart analyzer issues, including the analysis server and code completion.
Projects
None yet
Development

No branches or pull requests

2 participants