Skip to content

Files

Latest commit

 

History

History
23 lines (15 loc) · 699 Bytes

PEAR.Formatting.MultiLineAssignment.md

File metadata and controls

23 lines (15 loc) · 699 Bytes

Pattern: Malformed multi-line assignment indentation

Issue: -

Description

If an assignment goes over two lines, ensure the equal sign is indented.

Configuration

By default, this rule ensures that the line with the assignment operator is indented 4 spaces, but you can change the size of the indent by setting the indent property.

<rule ref="PEAR.Formatting.MultiLineAssignment">
    <properties>
        <property name="indent" value="2" />
    </properties>
</rule>

Further Reading