Amire80 has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/191612

Change subject: Fix the Rubocop offense SpaceAroundOperators
......................................................................

Fix the Rubocop offense SpaceAroundOperators

Done using
bundle exec rubocop -c .rubocop.yml --auto-correct

Change-Id: I10048311b3cc03d2e3f2d71ba229d5f3437f6d76
---
M .rubocop_todo.yml
M maintenance/jsduck/CustomTags.rb
2 files changed, 2 insertions(+), 7 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core 
refs/changes/12/191612/1

diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml
index 904f142..6f10c52 100644
--- a/.rubocop_todo.yml
+++ b/.rubocop_todo.yml
@@ -35,11 +35,6 @@
 Style/PerlBackrefs:
   Enabled: false
 
-# Offense count: 4
-# Cop supports --auto-correct.
-Style/SpaceAroundOperators:
-  Enabled: false
-
 # Offense count: 1
 # Cop supports --auto-correct.
 # Configuration parameters: EnforcedStyle, SupportedStyles, 
EnforcedStyleForEmptyBraces, SpaceBeforeBlockParameters.
diff --git a/maintenance/jsduck/CustomTags.rb b/maintenance/jsduck/CustomTags.rb
index bf0e07f..2de3ac0 100644
--- a/maintenance/jsduck/CustomTags.rb
+++ b/maintenance/jsduck/CustomTags.rb
@@ -77,7 +77,7 @@
       doc = $2 ? ': ' + $2 : ''
       return formatter.format("{@link #{name}} #{doc}")
     else
-      JsDuck::Logger.warn(nil, 'Unexpected @see argument: "'+tag+'"', position)
+      JsDuck::Logger.warn(nil, 'Unexpected @see argument: "' + tag + '"', 
position)
       return tag
     end
   end
@@ -109,7 +109,7 @@
       name = $1
       return formatter.format("`context` : {@link #{name}}")
     else
-      JsDuck::Logger.warn(nil, 'Unexpected @context argument: "'+tag+'"', 
position)
+      JsDuck::Logger.warn(nil, 'Unexpected @context argument: "' + tag + '"', 
position)
       return tag
     end
   end

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I10048311b3cc03d2e3f2d71ba229d5f3437f6d76
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Amire80 <amir.ahar...@mail.huji.ac.il>

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

Reply via email to