Zfilipin has uploaded a new change for review.

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

Change subject: Fixed RuboCop Style/SpaceAroundEqualsInParameterDefault offense
......................................................................

Fixed RuboCop Style/SpaceAroundEqualsInParameterDefault offense

Bug: 72841
Change-Id: Icc43cc1fc14f92368fb3c714b42b595e615efc58
---
M .rubocop_todo.yml
M bin/doccomparer.rb
2 files changed, 1 insertion(+), 7 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/oojs/ui refs/changes/34/172734/1

diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml
index 64955da..943216b 100644
--- a/.rubocop_todo.yml
+++ b/.rubocop_todo.yml
@@ -101,12 +101,6 @@
 Style/SpaceAfterComma:
   Enabled: false
 
-# Offense count: 1
-# Cop supports --auto-correct.
-# Configuration parameters: SupportedStyles.
-Style/SpaceAroundEqualsInParameterDefault:
-  EnforcedStyle: no_space
-
 # Offense count: 8
 # Cop supports --auto-correct.
 Style/SpaceAroundOperators:
diff --git a/bin/doccomparer.rb b/bin/doccomparer.rb
index 8ec81c5..8bd6e78 100644
--- a/bin/doccomparer.rb
+++ b/bin/doccomparer.rb
@@ -98,7 +98,7 @@
        smart_compare a, b, a_name, b_name, :property
 end
 
-def compare_hash a, b, a_name, b_name, nested=:compare_hash
+def compare_hash a, b, a_name, b_name, nested = :compare_hash
        keys = (a ? a.keys: []) + (b ? b.keys : [])
        out = keys.to_a.sort.uniq.map do |key|
                a_val = a ? canonicalize(a[key]) : nil

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Icc43cc1fc14f92368fb3c714b42b595e615efc58
Gerrit-PatchSet: 1
Gerrit-Project: oojs/ui
Gerrit-Branch: master
Gerrit-Owner: Zfilipin <[email protected]>

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

Reply via email to