Zfilipin has uploaded a new change for review.

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

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

Fixed RuboCop Style/SpaceAfterComma offense

Bug: 72841
Change-Id: Ib6e4c481a4224014253578beffa1ddfba487cbb4
---
M .rubocop_todo.yml
M bin/docparser.rb
2 files changed, 2 insertions(+), 7 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/oojs/ui refs/changes/40/172740/1

diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml
index fb24f26..154fcb7 100644
--- a/.rubocop_todo.yml
+++ b/.rubocop_todo.yml
@@ -86,11 +86,6 @@
 Style/RegexpLiteral:
   MaxSlashes: 3
 
-# Offense count: 2
-# Cop supports --auto-correct.
-Style/SpaceAfterComma:
-  Enabled: false
-
 # Offense count: 8
 # Cop supports --auto-correct.
 Style/SpaceAroundOperators:
diff --git a/bin/docparser.rb b/bin/docparser.rb
index 6cd413a..81b7d35 100644
--- a/bin/docparser.rb
+++ b/bin/docparser.rb
@@ -178,7 +178,7 @@
                        if current_class
                                output << current_class
                        end
-                       current_class = data.select{|k,v| 
valid_per_kind[:class].include? k }
+                       current_class = data.select{|k, v| 
valid_per_kind[:class].include? k }
                        current_class[:description] = js_class_constructor_desc 
if js_class_constructor_desc != ''
                        previous_item = current_class
                end
@@ -195,7 +195,7 @@
                                property: :properties,
                                event: :events,
                        }
-                       current_class[keys[kind]] << data.select{|k,v| 
valid_per_kind[kind].include? k }
+                       current_class[keys[kind]] << data.select{|k, v| 
valid_per_kind[kind].include? k }
                        previous_item = current_class[keys[kind]]
                end
        }

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ib6e4c481a4224014253578beffa1ddfba487cbb4
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