D7483 showed that the trailing whitespaces can actually be a feature from the markdown syntax, so they need to be excluded from the linter.
Exactly 2 whitespace is a [[ https://github.github.com/gfm/#hard-line-breaks | hard break ]]with the github flavored markdown (and maybe others).
Details
Details
- Reviewers
jasonbcox - Group Reviewers
Restricted Project - Commits
- rABC88ac041b3196: [LINTER] Accept hard line breaks in markdown files
No issue:
arc lint --everything
Add trailing a single or 3+ spaces to some markdown files, then:
arc lint
Ensure there is no error reported.
Diff Detail
Diff Detail
- Repository
- rABC Bitcoin ABC
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
Comment Actions
I don't think this makes sense. Even if markdown supports trailing whitespace as a line break, it doesn't mean it's a good idea. Consider:
- Not linting this will now allow accidental trailing whitespaces.
- Trailing whitespace does not render well in all IDEs/editors.
- Intentional line breaks should be obvious, which trailing whitespace are not.
Comment Actions
Don't exclude all markdown, but adds an exception to the linter for the hard break special case