Skip to content

Rule Request: multiline_operator_position #6243

@iliaskarim

Description

@iliaskarim

New Issue Checklist

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 + d

Alternatives Considered

Currently, this formatting is manually enforced or handled by custom rules.

Metadata

Metadata

Assignees

No one assigned

    Labels

    rule-requestRequests for a new rules.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions