final-newline
New Autofix Since v0.1.0
Formatter: ends the file with exactly one newline.
Example#
doc.md:
The last line, without a newlinemarkright check reports:
doc.md:1: the file does not end with exactly one newline (final-newline)
markright: 1 issue(s)markright fmt rewrites it to:
The last line, without a newlineTurning it off#
formatters:
disable: [final-newline][formatters]
disable = ["final-newline"]More in Rules.