jenkins-bot has submitted this change and it was merged.

Change subject: build: Add and use phpcs.xml
......................................................................


build: Add and use phpcs.xml

Instead of hardcoding a bunch of parameters in the composer.json file,
add a phpcs.xml file that configures everything.

Bug: T116866
Change-Id: Ifef86402067e085fa2484e76d314b9e1bf2c4fb5
---
M composer.json
A phpcs.xml
2 files changed, 9 insertions(+), 1 deletion(-)

Approvals:
  Legoktm: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/composer.json b/composer.json
index 72309ec..50b37ec 100644
--- a/composer.json
+++ b/composer.json
@@ -15,7 +15,7 @@
                "test": [
                        "parallel-lint . --exclude vendor",
                        "phpunit $PHPUNIT_ARGS",
-                       "phpcs --standard=./MediaWiki --extensions=php,php5,inc 
--ignore=vendor,*fail.php -p -s ."
+                       "phpcs  -p -s"
                ]
        }
 }
diff --git a/phpcs.xml b/phpcs.xml
new file mode 100644
index 0000000..65b1ff0
--- /dev/null
+++ b/phpcs.xml
@@ -0,0 +1,8 @@
+<?xml version = "1.0"?>
+<ruleset>
+       <rule ref="MediaWiki"/>
+       <file>.</file>
+       <arg name="extensions" value="php,php5,inc"/>
+       <arg name="ignore" value="vendor,*fail.php"/>
+       <exclude-pattern>vendor</exclude-pattern>
+</ruleset>

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

Gerrit-MessageType: merged
Gerrit-Change-Id: Ifef86402067e085fa2484e76d314b9e1bf2c4fb5
Gerrit-PatchSet: 4
Gerrit-Project: mediawiki/tools/codesniffer
Gerrit-Branch: master
Gerrit-Owner: Haritha28 <[email protected]>
Gerrit-Reviewer: Addshore <[email protected]>
Gerrit-Reviewer: Legoktm <[email protected]>
Gerrit-Reviewer: Polybuildr <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to