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

Change subject: build: Updating mediawiki/mediawiki-codesniffer to 0.12.0
......................................................................

build: Updating mediawiki/mediawiki-codesniffer to 0.12.0

The following sniffs are failing and were disabled:
* MediaWiki.Commenting.FunctionComment.MissingParamComment
* MediaWiki.Commenting.FunctionComment.MissingParamTag
* MediaWiki.Commenting.FunctionComment.ParamNameNoMatch
* MediaWiki.WhiteSpace.SpaceBeforeSingleLineComment.NewLineComment

Also added "composer fix" command.

Change-Id: Ie065bfb1129835599e8ef4fdb24159157f2033b9
---
M composer.json
M phpcs.xml
M tests/ScopedCallbackTest.php
3 files changed, 14 insertions(+), 4 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/libs/ScopedCallback 
refs/changes/40/375840/1

diff --git a/composer.json b/composer.json
index 7ccd7a5..8b8284a 100644
--- a/composer.json
+++ b/composer.json
@@ -10,7 +10,9 @@
                }
        ],
        "autoload": {
-               "classmap": ["src/"]
+               "classmap": [
+                       "src/"
+               ]
        },
        "require": {
                "php": ">=5.5.9"
@@ -18,13 +20,16 @@
        "require-dev": {
                "jakub-onderka/php-parallel-lint": "0.9.2",
                "phpunit/phpunit": "4.8.27",
-               "mediawiki/mediawiki-codesniffer": "0.7.2"
+               "mediawiki/mediawiki-codesniffer": "0.12.0"
        },
        "scripts": {
                "test": [
                        "parallel-lint . --exclude vendor",
                        "phpunit",
                        "phpcs -p -s"
+               ],
+               "fix": [
+                       "phpcbf"
                ]
        }
 }
diff --git a/phpcs.xml b/phpcs.xml
index 06c43bc..8a3ce1d 100644
--- a/phpcs.xml
+++ b/phpcs.xml
@@ -1,6 +1,11 @@
 <?xml version="1.0"?>
 <ruleset>
-       <rule ref="vendor/mediawiki/mediawiki-codesniffer/MediaWiki"/>
+       <rule ref="./vendor/mediawiki/mediawiki-codesniffer/MediaWiki">
+               <exclude 
name="MediaWiki.Commenting.FunctionComment.MissingParamComment" />
+               <exclude 
name="MediaWiki.Commenting.FunctionComment.MissingParamTag" />
+               <exclude 
name="MediaWiki.Commenting.FunctionComment.ParamNameNoMatch" />
+               <exclude 
name="MediaWiki.WhiteSpace.SpaceBeforeSingleLineComment.NewLineComment" />
+       </rule>
        <file>.</file>
        <arg name="encoding" value="UTF-8"/>
        <arg name="extensions" value="php"/>
diff --git a/tests/ScopedCallbackTest.php b/tests/ScopedCallbackTest.php
index 7daa93f..d75af64 100644
--- a/tests/ScopedCallbackTest.php
+++ b/tests/ScopedCallbackTest.php
@@ -43,7 +43,7 @@
 
        public function testParams() {
                $params = [ 'foo', 'bar', 'baz' ];
-               $sc = new ScopedCallback( function( /*...*/ ) {
+               $sc = new ScopedCallback( function ( /*...*/ ) {
                        $this->assertSame( [ 'foo', 'bar', 'baz' ], 
func_get_args() );
                }, $params );
                ScopedCallback::consume( $sc );

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ie065bfb1129835599e8ef4fdb24159157f2033b9
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/libs/ScopedCallback
Gerrit-Branch: master
Gerrit-Owner: Libraryupgrader <[email protected]>

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

Reply via email to