Skip to content

Commit

Permalink
report dead catches (#14)
Browse files Browse the repository at this point in the history
report `catch` blocks that are not reachable
  • Loading branch information
davidlienhard committed Apr 29, 2021
1 parent 8965ac8 commit 589b64a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions DavidLienhard/ruleset.xml
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@
<rule ref="SlevomatCodingStandard.Namespaces.AlphabeticallySortedUses" />
<rule ref="SlevomatCodingStandard.Classes.ClassConstantVisibility" />
<rule ref="SlevomatCodingStandard.Namespaces.UseDoesNotStartWithBackslash" />
<rule ref="SlevomatCodingStandard.Exceptions.DeadCatch" />

<rule ref="SlevomatCodingStandard.Variables.UnusedVariable">
<properties>
Expand Down

0 comments on commit 589b64a

Please sign in to comment.