-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Open
Labels
rule-requestRequests for a new rules.Requests for a new rules.
Description
New Issue Checklist
- I've Updated SwiftLint to the latest version.
- I've searched for existing GitHub issues.
Feature or Enhancement Proposal
Rule Name
multiline_operator_position
Description
Ensures that operators in multiline expressions are placed at the beginning of the next line.
Motivation
This formatting style enhances readability by clearly distinguishing operators from operands in complex expressions.
Example
// Before:
let result = a + b +
c + d
// After:
let result =
a + b +
c + dAlternatives Considered
Currently, this formatting is manually enforced or handled by custom rules.
Metadata
Metadata
Assignees
Labels
rule-requestRequests for a new rules.Requests for a new rules.