Skip to content

Commit 2f77a2a

Browse files
committed
PHPCS: add the Squiz.PHP.NonExecutableCode sniff to the ruleset
... which is used for PHPCS itself.
1 parent e810f31 commit 2f77a2a

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
@@ -142,6 +142,11 @@
142142
<type>error</type>
143143
</rule>
144144

145+
<!-- Do not allow unreachable code. -->
146+
<rule ref="Squiz.PHP.NonExecutableCode">
147+
<type>error</type>
148+
</rule>
149+
145150
<!-- The testing bootstrap file uses string concats to stop IDEs seeing the class aliases -->
146151
<rule ref="Generic.Strings.UnnecessaryStringConcat">
147152
<exclude-pattern>tests/bootstrap\.php</exclude-pattern>

0 commit comments

Comments
 (0)