Trailing Semicolon
Lines should not have trailing semicolons
- Identifier:
trailing_semicolon
- Enabled by default: Yes
- Supports autocorrection: Yes
- Kind: idiomatic
- Analyzer rule: No
- Minimum Swift compiler version: 5.0.0
- Default configuration:
Key Value severity warning
Non Triggering Examples
let a = 0
let a = 0; let b = 0
Triggering Examples
let a = 0↓;
let a = 0↓;
let b = 1
let a = 0↓; // a comment