Disabling PCRESniff for now
authorTim Düsterhus <duesterhus@woltlab.com>
Sat, 5 Jan 2013 13:04:15 +0000 (14:04 +0100)
committerTim Düsterhus <duesterhus@woltlab.com>
Sat, 5 Jan 2013 13:04:15 +0000 (14:04 +0100)
CodeSniff/WCF/Sniffs/PHP/DiscouragePCRESniff.php
CodeSniff/WCF/ruleset.xml

index 5d300e3ecfbe51d0b374c9d5cb1b5525a3aa66ce..d47fa821935148f9bf0e97927c5075b83963666a 100644 (file)
@@ -7,7 +7,7 @@
  * @package    com.woltlab.wcf
  * @category   Community Framework
  */
-class WCF_Sniffs_PHP_DiscouragePCRESniff extends Generic_Sniffs_PHP_ForbiddenFunctionsSniff {
+class WCF_Sniffs_PHP_DiscouragePCRESniff/* extends Generic_Sniffs_PHP_ForbiddenFunctionsSniff*/ {
        /**
         * A list of forbidden functions with their alternatives.
         *
index 4794a9cee036367ee93f958359c9d2f3fe27171a..1cebaefb4e66f8e4dfc6c6344d486aa2f9677379 100644 (file)
@@ -31,7 +31,7 @@
        <rule ref="Squiz.PHP.ForbiddenFunctions" />
        <rule ref="WCF.Classes.ClassFileName" />
        <rule ref="WCF.ControlStructures.ControlSignature" />
-       <rule ref="WCF.PHP.DiscouragePCRE" />
+       <!--rule ref="WCF.PHP.DiscouragePCRE" /--> <!-- TODO: Sniff is disabled by commenting out the extends in the sniff file! -->
        <rule ref="WCF.Namespaces.SortedUseDeclaration" />
        <rule ref="WCF.Namespaces.UseDeclaration" />
        <rule ref="WCF.WhiteSpace.SuperfluousWhitespace" />