Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 3.7.2

Bug #19095 External standard does not work
Submitted: 2011-12-01 18:06 UTC
From: michaelb Assigned: squiz
Status: No Feedback Package: PHP_CodeSniffer (version 1.3.1)
PHP Version: 5.3.8 OS: Windows 7
Roadmaps: (Not assigned)    
Subscription  


 [2011-12-01 18:06 UTC] michaelb (michael widefield)
Description: ------------ Loading external standard does not work. I'm trying to load an self made standard which is outside the PHP_CodeSniffer's Standards directory discribed on http://pear.php.net/manual/en/package.php.php-codesniffer.usage.php But this does not work, when i load de standard like this. (see test script) The MyStandard dir has an valid ruleset.xml ( i think because it works when it is inside the PHP_CodeSniffer's Standards directory) Am i missing something or is this a bug? Test script: --------------- // Does not work phpcs --standard=C:\\MyStandard pathtofile phpcs --standard=C:\MyStandard pathtofile phpcs --standard=C://MyStandard pathtofile // Does work when i put MyStandard dir in the // PHP_CodeSniffer's Standards directory phpcs --standard=MyStandard pathtofie Ruleset.xml : <?xml version="1.0"?> <ruleset name="MyStandard"> <description>The MyStandard coding standard.</description> <!-- Function Sniffs --> <rule ref="Generic.Functions.FunctionCallArgumentSpacing"/> <!-- //Function Sniffs --> <!-- Formatting Sniffs --> <rule ref="Generic.Formatting.NoSpaceAfterCast"/> <!-- //Formatting Sniffs --> <!-- PHP Sniffs --> <rule ref="Generic.PHP.LowerCaseConstant"/> <rule ref="Generic.PHP.DisallowShortOpenTag"/> <rule ref="Generic.PHP.ForbiddenFunctions"/> <!-- //PHP Sniffs --> <!-- FILES SNIFFS --> <!-- Lines can be 150 chars long, show errors at 150 chars --> <rule ref="Generic.Files.LineLength"> <properties> <property name="lineLimit" value="150"/> <property name="absoluteLineLimit" value="150"/> </properties> </rule> <!-- Use Windows newlines --> <rule ref="Generic.Files.LineEndings"> <properties> <property name="eolChar" value="\r\n"/> </properties> </rule> <!-- //FILES SNIFFS --> <!-- NAMINGCONVENTIONS SNIFFS --> <rule ref="Generic.NamingConventions.UpperCaseConstantName"/> <rule ref="Generic.NamingConventions.ConstructorName"/> <!-- //NAMINGCONVENTIONS SNIFFS --> </ruleset> Expected result: ---------------- Error report.

Comments

 [2011-12-01 20:31 UTC] michaelb (michael widefield)
-Package Version: 1.3.2 +Package Version: 1.3.1
Package Version is not 1.3.2 but it's 1.3.1 sorry my bad.
 [2011-12-02 04:29 UTC] squiz (Greg Sherwood)
-Status: Open +Status: Duplicate -Assigned To: +Assigned To: squiz
Seems to be submitted twice. Issue with test script is bug #19096
 [2011-12-02 21:17 UTC] michaelb (michael widefield)
I cannot see the bug #19096. ERROR:?The user who submitted this bug has not yet confirmed their email address.
 [2011-12-05 04:00 UTC] squiz (Greg Sherwood)
-Status: Duplicate +Status: Open
The other report had been deleted. I've re-opened this one.
 [2011-12-05 04:01 UTC] squiz (Greg Sherwood)
-Status: Assigned +Status: Feedback
My comment from the other bug report was: Are you able to try with the new 1.3.2 version please.
 [2012-01-30 08:42 UTC] squiz (Greg Sherwood)
-Status: Feedback +Status: No Feedback
If you get a chance to re-test with the new version, please reopen and let me know.