Rewrap icon indicating copy to clipboard operation
Rewrap copied to clipboard

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

Open jibbers42 opened this issue 10 months ago • 0 comments

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.

jibbers42 avatar Oct 11 '23 13:10 jibbers42