Skip to content

Files

Latest commit

 

History

History
25 lines (17 loc) · 873 Bytes

Generic.Functions.OpeningFunctionBraceKernighanRitchie.md

File metadata and controls

25 lines (17 loc) · 873 Bytes

Pattern: Malformed opening function brace (Kernighan & Ritchie)

Issue: -

Description

This rule checks the position of the opening brace of a function and/or closure (anonymous function).

Configuration

checkFunctions and checkClosures properties can be used to have the rule check one or both of these code blocks.

<!-- Don't check function braces, but check closure braces. -->
<rule ref="Generic.Functions.OpeningFunctionBraceKernighanRitchie">
    <properties>
        <property name="checkFunctions" value="false" />
        <property name="checkClosures" value="true" />
    </properties>
</rule>

Further Reading