trailing-whitespace
New Autofix Since v0.1.0
Formatter: removes spaces and tabs at the end of a line.
Example#
doc.md:
A line that ends in spaces.
The next line.markright check reports:
doc.md:1: trailing whitespace (trailing-whitespace)
markright: 1 issue(s)markright fmt rewrites it to:
A line that ends in spaces.
The next line.Turning it off#
formatters:
disable: [trailing-whitespace][formatters]
disable = ["trailing-whitespace"]More in Rules.