Seb35 has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/344797 )

Change subject: Exclude .git in phpcs.xml instead of command line argument
......................................................................

Exclude .git in phpcs.xml instead of command line argument

In order to benefit of it in other PHP_CodeSniffer tools.
Thanks to Legoktm for this tip!

Change-Id: I6d8e2a4242f0b5ec4536da72a44a4fb2f9b9e2f2
---
M composer.json
M phpcs.xml
2 files changed, 2 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/MediaWikiFarm 
refs/changes/97/344797/1

diff --git a/composer.json b/composer.json
index 4ff65bd..61956c2 100644
--- a/composer.json
+++ b/composer.json
@@ -27,7 +27,7 @@
        "scripts": {
                "validate-schema": "php ./bin/validate-schema.php",
                "lint": "parallel-lint --exclude vendor .",
-               "phpcs": "phpcs -p -s --ignore=.git",
+               "phpcs": "phpcs -p -s",
                "phpdoc": "[ \"`which phpdoc`\" = \"\" ] || phpdoc -d bin,src 
-t ./docs/code",
                "phpunit": "which phpdbg && phpdbg -qrr `which phpunit` 
--strict-coverage || phpunit --strict-coverage",
                "unit": "phpunit --no-coverage",
diff --git a/phpcs.xml b/phpcs.xml
index 6224889..9a172ae 100644
--- a/phpcs.xml
+++ b/phpcs.xml
@@ -32,4 +32,5 @@
        <arg name="extensions" value="php" />
        <exclude-pattern>tests/perfs/results</exclude-pattern>
        <exclude-pattern>vendor</exclude-pattern>
+       <exclude-pattern>.git</exclude-pattern>
 </ruleset>

-- 
To view, visit https://gerrit.wikimedia.org/r/344797
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I6d8e2a4242f0b5ec4536da72a44a4fb2f9b9e2f2
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/MediaWikiFarm
Gerrit-Branch: master
Gerrit-Owner: Seb35 <se...@seb35.fr>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to