Bug #19693 [Opn->Fbk]: exclude-pattern * no longer works

From: Date: Wed, 07 Nov 2012 01:37:47 +0000
Subject: Bug #19693 [Opn->Fbk]: exclude-pattern * no longer works
References: 1  Groups: php.pear.bugs 
Request: Send a blank email to pear-bugs+get-9294@lists.php.net to get a copy of this message
Edit report at https://pear.php.net/bugs/bug.php?id=19693&edit=1 ID: 19693 Updated by: gsherwood@squiz.net Reported By: pear at kennel17 dot co dot uk Summary: exclude-pattern * no longer works -Status: Open +Status: Feedback Type: Bug Package: PHP_CodeSniffer Operating System: All Package Version: 1.4.1 PHP Version: Irrelevant -Assigned To: +Assigned To: squiz Roadmap Versions: New Comment: -Status: Open +Status: Feedback -Assigned To: +Assigned To: squiz Yes, it should exclude all files, so I will look into it. But the best way of doing this is actually to use this: <rule ref="Squiz.WhiteSpace.SuperfluousWhitespace.EndLine"> <severity>0</severity> </rule> That drops the severity down to 0, which tells PHPCS to stop generating that message. Give that a go and let me know if it works. Previous Comments: ------------------------------------------------------------------------ [2012-11-07 00:50:55] happydog Description: ------------ In 1.4.0 I had this instruction in my ruleset.xml: <rule ref="Squiz.WhiteSpace.SuperfluousWhitespace.EndLine"> <exclude-pattern>*</exclude-pattern> </rule> This successfully excluded the rule for all files. In 1.4.1, this no longer works, and the EndLine errors are reported. I tried adding type="relative" to the <exclude-pattern> tag, but this makes no difference. Expected result: ---------------- An exclude pattern of * should block all files, regardless of whether in 'absolute' or 'relative' mode. Actual result: -------------- It doesn't seem to work in either mode. ------------------------------------------------------------------------ -- Edit this bug report at https://pear.php.net/bugs/bug.php?id=19693&edit=1

« previous php.pear.bugs (#9294) next »