Updated RuboCop to the latest version

Regenerated `.rubocop_todo.yml` file.
Added settings to `.rubocop.yml` file, as recommended at
https://www.mediawiki.org/wiki/Manual:Coding_conventions/Ruby#Base_configuration

Change-Id: Id9de4c1013b849cf56c7d7163d90c66ea708bceb
This commit is contained in:
Željko Filipin 2015-09-02 16:56:11 +02:00 committed by Dan Duvall
parent f85439cce9
commit 29ec231256
4 changed files with 40 additions and 33 deletions

View File

@ -1 +1,23 @@
inherit_from: .rubocop_todo.yml
AllCops:
StyleGuideCopsOnly: true
Metrics/LineLength:
Max: 100
Metrics/MethodLength:
Enabled: false
Style/Alias:
Enabled: false
Style/SignalException:
Enabled: false
# TODO: uncomment when the time comes
# Style/StringLiterals:
# EnforcedStyle: single_quotes
Style/TrivialAccessors:
ExactNameMatch: true

View File

@ -1,5 +1,6 @@
# This configuration was generated by `rubocop --auto-gen-config`
# on 2014-10-21 15:03:04 +0200 using RuboCop version 0.26.1.
# This configuration was generated by
# `rubocop --auto-gen-config`
# on 2015-09-02 17:15:05 +0200 using RuboCop version 0.33.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
@ -7,18 +8,10 @@
# Offense count: 1
# Cop supports --auto-correct.
Style/EmptyLines:
Enabled: false
# Offense count: 2
# Cop supports --auto-correct.
Style/LeadingCommentSpace:
Enabled: false
# Offense count: 1
# Cop supports --auto-correct.
# Configuration parameters: MultiSpaceAllowedForOperators.
Style/SpaceAroundOperators:
Enabled: false
Exclude:
- 'tests/browser/features/step_definitions/math_steps.rb'
# Offense count: 2
# Cop supports --auto-correct.
@ -26,14 +19,8 @@ Style/SpaceAroundOperators:
Style/SpaceInsideHashLiteralBraces:
EnforcedStyle: no_space
# Offense count: 9
# Offense count: 13
# Cop supports --auto-correct.
# Configuration parameters: SupportedStyles.
Style/StringLiterals:
EnforcedStyle: double_quotes
# Offense count: 2
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles.
Style/TrailingBlankLines:
Enabled: false

View File

@ -1,4 +1,4 @@
source "https://rubygems.org"
gem "mediawiki_selenium", "~> 1.5.0"
gem "rubocop", require: false
gem "rubocop", "~> 0.33.0", require: false

View File

@ -1,9 +1,9 @@
GEM
remote: https://rubygems.org/
specs:
ast (2.0.0)
astrolabe (1.3.0)
parser (>= 2.2.0.pre.3, < 3.0)
ast (2.1.0)
astrolabe (1.3.1)
parser (~> 2.2)
builder (3.2.2)
childprocess (0.5.6)
ffi (~> 1.0, >= 1.0.11)
@ -58,10 +58,9 @@ GEM
watir-webdriver (>= 0.6.11)
page_navigation (0.9)
data_magic (>= 0.14)
parser (2.2.0.pre.7)
parser (2.2.2.6)
ast (>= 1.1, < 3.0)
slop (~> 3.4, >= 3.4.5)
powerpack (0.0.9)
powerpack (0.1.1)
rainbow (2.0.0)
rest-client (1.8.0)
http-cookie (>= 1.0.2, < 2.0)
@ -69,20 +68,19 @@ GEM
netrc (~> 0.7)
rspec-expectations (2.99.2)
diff-lcs (>= 1.1.3, < 2.0)
rubocop (0.27.0)
rubocop (0.33.0)
astrolabe (~> 1.3)
parser (>= 2.2.0.pre.6, < 3.0)
powerpack (~> 0.0.6)
parser (>= 2.2.2.5, < 3.0)
powerpack (~> 0.1)
rainbow (>= 1.99.1, < 3.0)
ruby-progressbar (~> 1.4)
ruby-progressbar (1.7.0)
ruby-progressbar (1.7.5)
rubyzip (1.1.7)
selenium-webdriver (2.47.1)
childprocess (~> 0.5)
multi_json (~> 1.0)
rubyzip (~> 1.0)
websocket (~> 1.0)
slop (3.6.0)
syntax (1.2.0)
thor (0.19.1)
unf (0.1.4)
@ -98,4 +96,4 @@ PLATFORMS
DEPENDENCIES
mediawiki_selenium (~> 1.5.0)
rubocop
rubocop (~> 0.33.0)