Skip to content

Remove trailling whitespace #201

@giggio

Description

@giggio

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:

var i = 1;·
var j = 2;

Becomes

var i = 1;
var j = 2;

Multiple characters are removed as well.

So this:

var i = 1;·····
var j = 2;↹↹↹

Becomes

var i = 1;
var j = 2;

Severity: Info
Category: Style
Diagnostic id: CC0065

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions