Skip to content

Commit 1e105ab

Browse files
committed
Make rules for multiline function calls in JavaScript a bit more relaxed.
1 parent 0339b5e commit 1e105ab

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

standards/Toolset/ruleset.xml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,22 @@
5151
<severity>0</severity>
5252
</rule>
5353

54+
<!--
55+
We allow this in JavaScript:
56+
57+
some_call( function( arg1, arg2 ) {
58+
...
59+
} );
60+
-->
61+
<rule ref="PEAR.Functions.FunctionCallSignature.ContentAfterOpenBracket">
62+
<exclude-pattern>*.js</exclude-pattern>
63+
</rule>
64+
<rule ref="PEAR.Functions.FunctionCallSignature.CloseBracketLine">
65+
<exclude-pattern>*.js</exclude-pattern>
66+
</rule>
67+
<rule ref="PEAR.Functions.FunctionCallSignature.MultipleArguments">
68+
<exclude-pattern>*.js</exclude-pattern>
69+
</rule>
5470

5571

5672
</ruleset>

0 commit comments

Comments
 (0)