Skip to content

trailing_whitespace

Ian Applebaum edited this page Jun 13, 2020 · 1 revision

Trailing Whitespace

Lines should not have trailing whitespace.

  • Identifier: trailing_whitespace
  • Enabled by default: Enabled
  • Supports autocorrection: Yes
  • Kind: style
  • Analyzer rule: No
  • Minimum Swift compiler version: 3.0.0
  • Default configuration: 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 
Clone this wiki locally