Skip to content

Files

Latest commit

 

History

History
23 lines (15 loc) · 689 Bytes

PEAR.WhiteSpace.ScopeClosingBrace.md

File metadata and controls

23 lines (15 loc) · 689 Bytes

Pattern: Malformed closing brace indentation

Issue: -

Description

Checks that the closing braces of scopes are aligned correctly.

Configuration

By default, this rule ensures that the statement is indented 4 spaces from the case or default keyword, but you can change the size of the indent by setting the indent property.

<rule ref="PEAR.WhiteSpace.ScopeClosingBrace">
    <properties>
        <property name="indent" value="2" />
    </properties>
</rule>

Further Reading