Skip to content
On this page

LongConditionClosingComment

Ensures long conditions have a comment at the end.

Scope

Squiz.Commenting.LongConditionClosingComment

Properties

Property NameTypeDefaultAvailable Since
commentFormatstring//end %s2.7.0
lineLimitint202.7.0

Usage

xml
<!-- Have code block comments look like // end foreach() etc. -->
<rule ref="Squiz.Commenting.LongConditionClosingComment">
    <properties>
        <property name="commentFormat" value="// end %s()" />
    </properties>
</rule>

Examples

No Examples Available

Please edit this page through Github to add examples.

Released under the MIT License.