Trailing Newline

Files should have a single trailing newline

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

Non Triggering Examples

let a = 0

Triggering Examples

let a = 0
let a = 0