OSDN Git Service

move codesniffer parameters to ruleset.xml
authorscribu <mail@scribu.net>
Sun, 13 Oct 2013 13:51:38 +0000 (16:51 +0300)
committerscribu <mail@scribu.net>
Sun, 13 Oct 2013 14:02:38 +0000 (17:02 +0300)
ci/ruleset.xml
ci/test.sh

index e8d39ef..29a843d 100644 (file)
@@ -2,7 +2,11 @@
 <ruleset name="WP-CLI">
        <description>WP-CLI coding standards.</description>
 
+       <exclude-pattern>php/Spyc.php</exclude-pattern>
+
        <rule ref="Generic.CodeAnalysis.VariableAnalysis">
+               <exclude name="Generic.CodeAnalysis.VariableAnalysis.UnusedVariable"/>
+
                <properties>
                        <property name="allowUnusedFunctionParameters" value="1"/>
                </properties>
index 5939c59..c213a42 100755 (executable)
@@ -9,6 +9,4 @@ phpunit
 php behat.phar --format progress
 
 # Run CodeSniffer
-./codesniffer/scripts/phpcs \
-       --standard=./ci/ --sniffs=Generic.CodeAnalysis.VariableAnalysis.UndefinedVariable \
-       --ignore=php/Spyc.php php/
+./codesniffer/scripts/phpcs --standard=./ci/ php/