If a line ends with a space or tab and it is not a string, then raise a diagnostic and offer a fix to remove it.
I will use an interpunct (·) to represent trailling whitespace and a tab character (↹) to represent tabs. So this:
Becomes
Multiple characters are removed as well.
So this:
var i = 1;·····
var j = 2;↹↹↹
Becomes
Severity: Info
Category: Style
Diagnostic id: CC0065
If a line ends with a space or tab and it is not a string, then raise a diagnostic and offer a fix to remove it.
I will use an interpunct (·) to represent trailling whitespace and a tab character (↹) to represent tabs. So this:
Becomes
Multiple characters are removed as well.
So this:
Becomes
Severity:
InfoCategory:
StyleDiagnostic id:
CC0065