Zfilipin has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/395496 )

Change subject: Update RuboCop Ruby gem
......................................................................

Update RuboCop Ruby gem

Also updated parallel_tests.

Bug: T180878
Change-Id: Ic2600306231c0e0aed100388f5e6a68955288759
---
M .rubocop.yml
A .rubocop_todo.yml
M Gemfile
M Gemfile.lock
4 files changed, 65 insertions(+), 22 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/PoolCounter 
refs/changes/96/395496/1

diff --git a/.rubocop.yml b/.rubocop.yml
index 98ce794..dc9ef01 100644
--- a/.rubocop.yml
+++ b/.rubocop.yml
@@ -1,3 +1,5 @@
+inherit_from: .rubocop_todo.yml
+
 Metrics/AbcSize:
   Enabled: false
 
diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml
new file mode 100644
index 0000000..d0fcc84
--- /dev/null
+++ b/.rubocop_todo.yml
@@ -0,0 +1,38 @@
+# This configuration was generated by
+# `rubocop --auto-gen-config`
+# on 2017-12-05 12:05:04 +0100 using RuboCop version 0.51.0.
+# The point is for the user to remove these configuration records
+# one by one as the offenses are removed from the code base.
+# Note that changes in the inspected code, or installation of new
+# versions of RuboCop, may require this file to be generated again.
+
+# Offense count: 1
+# Cop supports --auto-correct.
+Layout/MultilineBlockLayout:
+  Exclude:
+    - 'daemon/tests/features/step_definitions/sim_steps.rb'
+
+# Offense count: 1
+# Cop supports --auto-correct.
+# Configuration parameters: EnforcedStyle, SupportedStyles, 
SingleLineConditionsOnly, IncludeTernaryExpressions.
+# SupportedStyles: assign_to_condition, assign_inside_condition
+Style/ConditionalAssignment:
+  Exclude:
+    - 'daemon/tests/features/support/search_sim.rb'
+
+# Offense count: 1
+# Cop supports --auto-correct.
+# Configuration parameters: AutoCorrect, EnforcedStyle, SupportedStyles.
+# SupportedStyles: predicate, comparison
+Style/NumericPredicate:
+  Exclude:
+    - 'spec/**/*'
+    - 'daemon/tests/features/support/client.rb'
+
+# Offense count: 3
+# Cop supports --auto-correct.
+# Configuration parameters: PreferredDelimiters.
+Style/PercentLiteralDelimiters:
+  Exclude:
+    - 'daemon/tests/features/support/reader_sim.rb'
+    - 'daemon/tests/features/support/search_sim.rb'
diff --git a/Gemfile b/Gemfile
index 7326655..22a9530 100644
--- a/Gemfile
+++ b/Gemfile
@@ -1,6 +1,6 @@
 source 'https://rubygems.org'
 
 gem 'cucumber'
-gem 'parallel_tests'
+gem 'parallel_tests', '~> 2.19'
 gem 'rspec-expectations'
-gem 'rubocop', require: false
+gem 'rubocop', '~> 0.51.0', require: false
diff --git a/Gemfile.lock b/Gemfile.lock
index ec57fe8..cd3440f 100644
--- a/Gemfile.lock
+++ b/Gemfile.lock
@@ -1,9 +1,7 @@
 GEM
   remote: https://rubygems.org/
   specs:
-    ast (2.0.0)
-    astrolabe (1.3.0)
-      parser (>= 2.2.0.pre.3, < 3.0)
+    ast (2.3.0)
     builder (3.2.2)
     cucumber (1.3.17)
       builder (>= 2.1.2)
@@ -16,32 +14,37 @@
       multi_json (~> 1.3)
     multi_json (1.10.1)
     multi_test (0.1.1)
-    parallel (1.3.3)
-    parallel_tests (1.0.7)
+    parallel (1.12.0)
+    parallel_tests (2.19.0)
       parallel
-    parser (2.2.0.pre.8)
-      ast (>= 1.1, < 3.0)
-      slop (~> 3.4, >= 3.4.5)
-    powerpack (0.0.9)
-    rainbow (2.0.0)
+    parser (2.4.0.2)
+      ast (~> 2.3)
+    powerpack (0.1.1)
+    rainbow (2.2.2)
+      rake
+    rake (12.3.0)
     rspec-expectations (3.1.2)
       diff-lcs (>= 1.2.0, < 2.0)
       rspec-support (~> 3.1.0)
     rspec-support (3.1.2)
-    rubocop (0.27.1)
-      astrolabe (~> 1.3)
-      parser (>= 2.2.0.pre.7, < 3.0)
-      powerpack (~> 0.0.6)
-      rainbow (>= 1.99.1, < 3.0)
-      ruby-progressbar (~> 1.4)
-    ruby-progressbar (1.7.0)
-    slop (3.6.0)
+    rubocop (0.51.0)
+      parallel (~> 1.10)
+      parser (>= 2.3.3.1, < 3.0)
+      powerpack (~> 0.1)
+      rainbow (>= 2.2.2, < 3.0)
+      ruby-progressbar (~> 1.7)
+      unicode-display_width (~> 1.0, >= 1.0.1)
+    ruby-progressbar (1.9.0)
+    unicode-display_width (1.3.0)
 
 PLATFORMS
   ruby
 
 DEPENDENCIES
   cucumber
-  parallel_tests
+  parallel_tests (~> 2.19)
   rspec-expectations
-  rubocop
+  rubocop (~> 0.51.0)
+
+BUNDLED WITH
+   1.16.0

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ic2600306231c0e0aed100388f5e6a68955288759
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/PoolCounter
Gerrit-Branch: master
Gerrit-Owner: Zfilipin <zfili...@wikimedia.org>

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

Reply via email to