jenkins-bot has submitted this change and it was merged. ( 
https://gerrit.wikimedia.org/r/375324 )

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.Files.ClassMatchesFilename.NotMatch
* MediaWiki.Files.ClassMatchesFilename.WrongCase

Change-Id: Ibcdf35a9ba5ea0e1101a6a170b6ce07627133685
---
M composer.json
M filebackend/measureZoneSizes.php
M phpcs.xml
3 files changed, 5 insertions(+), 3 deletions(-)

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



diff --git a/composer.json b/composer.json
index d355432..cc9738f 100644
--- a/composer.json
+++ b/composer.json
@@ -2,7 +2,7 @@
        "require-dev": {
                "jakub-onderka/php-parallel-lint": "0.9.2",
                "jakub-onderka/php-console-highlighter": "0.3.2",
-               "mediawiki/mediawiki-codesniffer": "0.11.0"
+               "mediawiki/mediawiki-codesniffer": "0.12.0"
        },
        "scripts": {
                "lint": "parallel-lint --exclude vendor --exclude node_modules 
--ignore-fails .",
diff --git a/filebackend/measureZoneSizes.php b/filebackend/measureZoneSizes.php
index a58eb51..3153352 100644
--- a/filebackend/measureZoneSizes.php
+++ b/filebackend/measureZoneSizes.php
@@ -53,7 +53,7 @@
                $b2_bytes = ( $bytesC + $bytesA ) * $pfactor;
                $output .= "B2\t\tpublic\t\t$b2_count\t\t$b2_bytes\t\n";
 
-               if ( $file && ( $b2_count <= .97 * $b1_count || $b2_bytes < .97 
* $b1_bytes ) ) {
+               if ( $file && ( $b2_count <= 0.97 * $b1_count || $b2_bytes < 
0.97 * $b1_bytes ) ) {
                        file_put_contents( $file, "$wgDBname:\n$output", 
LOCK_EX | FILE_APPEND );
                }
                $this->output( $output );
@@ -73,7 +73,7 @@
                $b2_bytes = $bytes * $dfactor;
                $output .= "B2\t\tdeleted\t\t$b2_count\t\t$b2_bytes\t\n";
 
-               if ( $file && ( $b2_count <= .97 * $b1_count || $b2_bytes < .97 
* $b1_bytes ) ) {
+               if ( $file && ( $b2_count <= 0.97 * $b1_count || $b2_bytes < 
0.97 * $b1_bytes ) ) {
                        file_put_contents( $file, "$wgDBname:\n$output", 
LOCK_EX | FILE_APPEND );
                }
                $this->output( $output );
diff --git a/phpcs.xml b/phpcs.xml
index dc46632..88e489f 100644
--- a/phpcs.xml
+++ b/phpcs.xml
@@ -8,6 +8,8 @@
                <exclude 
name="MediaWiki.Commenting.FunctionComment.MissingParamTag" />
                <exclude 
name="MediaWiki.Commenting.FunctionComment.MissingReturn" />
                <exclude 
name="MediaWiki.ControlStructures.AssignmentInControlStructures.AssignmentInControlStructures"
 />
+               <exclude name="MediaWiki.Files.ClassMatchesFilename.NotMatch" />
+               <exclude name="MediaWiki.Files.ClassMatchesFilename.WrongCase" 
/>
                <exclude 
name="MediaWiki.WhiteSpace.SpaceBeforeSingleLineComment.NewLineComment" />
                <exclude name="Generic.Classes.DuplicateClassName.Found" />
                <exclude 
name="Generic.CodeAnalysis.ForLoopWithTestFunctionCall.NotAllowed" />

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

Gerrit-MessageType: merged
Gerrit-Change-Id: Ibcdf35a9ba5ea0e1101a6a170b6ce07627133685
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/WikimediaMaintenance
Gerrit-Branch: master
Gerrit-Owner: Libraryupgrader <[email protected]>
Gerrit-Reviewer: Legoktm <[email protected]>
Gerrit-Reviewer: Niharika29 <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

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

Reply via email to