Vertical Whitespace
Limit vertical whitespace to a single empty line.
- Identifier:
vertical_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 max_empty_lines 1
Non Triggering Examples
let abc = 0
let abc = 0
/* bcs
*/
// bca
Triggering Examples
let aaaa = 0
struct AAAA {}
class BBBB {}