Closed
Description
I glanced through the code and I'm not sure what's wrong, but phpcs
doesn't seem to respect the report-width
or extensions
arguments when specified via ruleset.xml
.
My ruleset.xml
starts like this:
<?xml version="1.0"?>
<ruleset name="MySniffs">
<arg name="report-width" value="auto" />
<arg name="extensions" value="php" />
<! -- rule refs omitted -->
</ruleset>
I do see that the arguments are captured, but the report isn't as wide as it should be:
$ ~/code/codesniffer/scripts/phpcs --standard=CSNStores -vv
Processing ruleset ...
...
=> set command line value --report-width=auto
=> set command line value --extensions=php
...
FILE: /home/nick/foo/bar/baz.php
----------------------------------------------------------------------
FOUND 39 ERRORS AFFECTING 23 LINES
----------------------------------------------------------------------
...
I noticed that extensions
doesn't work by observing the file counts given by the -p
option when using the command line --extensions=php
versus the xml <arg name="extensions" value="php">
.
Any thoughts?