Skip to content

Files

Latest commit

 

History

History
28 lines (20 loc) · 847 Bytes

Squiz.WhiteSpace.MemberVarSpacing.md

File metadata and controls

28 lines (20 loc) · 847 Bytes

Pattern: Malformed class member spacing

Issue: -

Description

Verifies that class members are spaced correctly.

Configuration

This rule checks that there is one blank line before between member vars and before the fist member var, but you can change the required padding using the spacing and spacingBeforeFirst properties.

<!--
 Ensure 2 blank lines between member vars,
 but don't require blank lines before the first.
-->
<rule ref="Squiz.WhiteSpace.MemberVarSpacing">
    <properties>
        <property name="spacing" value="2" />
        <property name="spacingBeforeFirst" value="0" />
    </properties>
</rule>

Further Reading