Zfilipin has uploaded a new change for review.
https://gerrit.wikimedia.org/r/172742
Change subject: Fixed RuboCop Style/WordArray offense
......................................................................
Fixed RuboCop Style/WordArray offense
Bug: 72841
Change-Id: I4e9bf2bbfa193e2113b5e614d77eadf485e1179d
---
M .rubocop_todo.yml
M bin/testsuitegenerator.rb
2 files changed, 2 insertions(+), 8 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/oojs/ui refs/changes/42/172742/1
diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml
index 32ed6d5..bb54d97 100644
--- a/.rubocop_todo.yml
+++ b/.rubocop_todo.yml
@@ -140,9 +140,3 @@
# Configuration parameters: EnforcedStyleForMultiline, SupportedStyles.
Style/TrailingComma:
Enabled: false
-
-# Offense count: 2
-# Cop supports --auto-correct.
-# Configuration parameters: WordRegex.
-Style/WordArray:
- MinSize: 2
diff --git a/bin/testsuitegenerator.rb b/bin/testsuitegenerator.rb
index 603bf8a..7088d93 100644
--- a/bin/testsuitegenerator.rb
+++ b/bin/testsuitegenerator.rb
@@ -30,8 +30,8 @@
# values to test for names
sensible_values = {
'href' => ['http://example.com/'],
- ['TextInputWidget', 'type'] => %w[text password],
- ['ButtonInputWidget', 'type'] => %w[button input],
+ %w(TextInputWidget type) => %w[text password],
+ %w(ButtonInputWidget type) => %w[button input],
'type' => %w[text button],
'method' => %w[GET POST],
'action' => [],
--
To view, visit https://gerrit.wikimedia.org/r/172742
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I4e9bf2bbfa193e2113b5e614d77eadf485e1179d
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