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

Feature request: (Dart) preserve linter 'ignore:' lines #385

Open
jibbers42 opened this issue Oct 11, 2023 · 0 comments
Open

Feature request: (Dart) preserve linter 'ignore:' lines #385

jibbers42 opened this issue Oct 11, 2023 · 0 comments

Comments

@jibbers42
Copy link

Specific to Dart, I'd like a feature to preserve lint ignore lines such as:

// My really good reason that is either very short or wraps just a bit to
// the next line.
// ignore: unused_local_variable
const lonelyVar = 1;

Wrapped at 80 we get the following and the ignore no longer works.

// My really good reason that is either very short or wraps just a bit to
// the next line. ignore: unused_local_variable
const lonelyVar = 1;

I realize I can use a blank line as a workaround, but would prefer this feature. I also don't prefer the 2 empty spaces technique since so much tooling will autotrim it away depending on tool config.

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