navigation

TrailingWhitespaceOnLine (FL0061)

Cause

Whitespace was found at the end of a line.

Rationale

Pointless whitespace.

How To Fix

Remove any whitespace from the end of the line.

Rule Settings

{
    "trailingWhitespaceOnLine": {
        "enabled": false,
        "config": {
            "numberOfSpacesAllowed": 1,
            "oneSpaceAllowedAfterOperator": true,
            "ignoreBlankLines": true
        }
    }
}
  • numberOfSpacesAllowed - An integer property that specifies how many space characters are allowed on the end of a line (default: 1).
  • oneSpaceAllowedAfterOperator - A boolean property that will allow a single space on the end of the line if it's preceded by an operator/symbol character (default: true).
  • ignoreBlankLines - A boolean property that will ignore any lines that are made up of just whitespace (default: true).