Skip to content

Commit e120137

Browse files
committed
Adjust the Toolset ruleset.
1 parent 6ac99bc commit e120137

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

standards/Toolset/ruleset.xml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919

2020
<!--
2121
TODO add a sniff for missing translators: comment in Twig templates.
22+
TODO add a sniff for mixed indents (except before docblocks): https://github.com/squizlabs/PHP_CodeSniffer/issues/547
2223
-->
2324

2425
<!--
@@ -29,6 +30,18 @@
2930
<type>warning</type>
3031
</rule>
3132

33+
<!-- These are relevant but not critical... -->
34+
<rule ref="WordPress.WhiteSpace.ControlStructureSpacing.NoSpaceAfterStructureOpen">
35+
<type>warning</type>
36+
</rule>
37+
<rule ref="WordPress.WhiteSpace.ControlStructureSpacing.NoSpaceBeforeOpenParenthesis">
38+
<type>warning</type>
39+
</rule>
40+
<rule ref="Squiz.ControlStructures.ControlSignature.SpaceAfterKeyword">
41+
<type>warning</type>
42+
</rule>
43+
44+
3245
<!--
3346
EXCLUSIONS
3447
-->

0 commit comments

Comments
 (0)