Added empty-catch-block rule file.

This commit is contained in:
orbitcowboy 2016-08-23 23:40:54 +02:00
parent cd6aa27010
commit 9d066020cb
1 changed files with 9 additions and 0 deletions

View File

@ -0,0 +1,9 @@
<?xml version="1.0"?>
<rule>
<tokenlist>normal</tokenlist>
<pattern><![CDATA[\}\s*catch\s*\(.*\)\s*\{\s*\}]]></pattern>
<message>
<severity>style</severity>
<summary>Empty catch block found.</summary>
</message>
</rule>