Trailing Whitespace

Lines should not have trailing whitespace

  • Identifier: trailing_whitespace
  • Enabled by default: Yes
  • Supports autocorrection: Yes
  • Kind: style
  • Analyzer rule: No
  • Minimum Swift compiler version: 5.0.0
  • Default configuration:
    KeyValue
    severity warning
    ignores_empty_lines false
    ignores_comments true

Non Triggering Examples

let name: String

//

// 

let name: String //

let name: String // 

Triggering Examples

let name: String 

/* */ let name: String