Quick fix for ignoring lint rule is broken for external getters with existing DartDoc #4775
Labels
in editor
Relates to code editing or language features
in lsp/analysis server
Something to be fixed in the Dart analysis server
is bug
relies on sdk changes
Something that requires changes in the Dart/Flutter SDK to ship before it will become available
Milestone
Not sure if these quick fixes are provided by the analyzer, feel free to move this issue if that is the case
Describe the bug
When using the
ignore
quickfix, the ignore is put in the wrong place if there is DartDoc for an external getterTo Reproduce
Steps to reproduce the behavior:
Ignore constant_identifier_names for this line
Expected behavior
or
Actual behavior
Due to the ignore line not being directly before the code, it is not picked up and the lint is not ignored.
Workspace Environment
Output from 'dart info'
/Users/navaronbracke/Documents/flutter/bin/cache/dart-sdk/bin/dart info
If providing this information as part of reporting a bug, please review the information
below to ensure it only contains things you're comfortable posting publicly.
General info
Project info
Process info
Output from 'flutter doctor'
/Users/navaronbracke/Documents/flutter/bin/flutter doctor -v
The text was updated successfully, but these errors were encountered: