jenkins-bot has submitted this change and it was merged. (
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(-)
Approvals:
Seb35: Looks good to me, approved
jenkins-bot: Verified
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: merged
Gerrit-Change-Id: I6d8e2a4242f0b5ec4536da72a44a4fb2f9b9e2f2
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/MediaWikiFarm
Gerrit-Branch: master
Gerrit-Owner: Seb35 <[email protected]>
Gerrit-Reviewer: Hashar <[email protected]>
Gerrit-Reviewer: Legoktm <[email protected]>
Gerrit-Reviewer: Seb35 <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits