CodingStyle-NoTrailingWhitespace

Do not use trailing whitespace

Required inputs: IR

Hardly visible trailing spaces at the end of a line are almost always unnecessary. For consistency and avoiding whitespace-only differences they should be removed. Use your editor setting to ensure this. Additionally, though not checked by this rule, use a single final newline for the last non-empty line at the end of a file (as lines are usually recognized by this line terminator).

Possible Messages

Key

Text

Severity

Disabled

trailing_whitespace

Do not use trailing whitespace.

None

False

Options

allow_in_comment

allow_in_comment : bool = False

Whether trailing whitespace in comments should be allowed.