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:
Key Value severity warning ignores_empty_lines false ignores_comments true ignores_literals false
Non Triggering Examples
let name: String
//
//
let name: String //
let name: String //
let stringWithSpace = "hello "
//
// ignores_literals: true
//
let multiline = """
line with spaces
"""
Triggering Examples
let name: String↓
/* */ let name: String↓
//
// ignores_literals: true
//
let codeWithSpace = 123↓