Skip to content

Commit bc6e125

Browse files
committed
Disable code style sniff on "Side Effects"
This isn sensible for the simple tutorial style code examples. https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-1-basic-coding-standard.md#23-side-effects
1 parent 04e3f27 commit bc6e125

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

phpcs.xml.dist

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@
1111
<!-- PSR-2 base standard -->
1212
<rule ref="PSR2"/>
1313

14+
<!-- Disable code style sniff on side effects -->
15+
<rule ref="PSR1">
16+
<exclude name="PSR1.Files.SideEffects"/>
17+
</rule>
18+
1419
<!-- General sniffs -->
1520
<rule ref="Generic.Files.LineLength"/>
1621
<rule ref="Squiz.Arrays.ArrayBracketSpacing"/>

0 commit comments

Comments
 (0)