From dad714ee2cec54a23051cb4a55cc381daf7350e6 Mon Sep 17 00:00:00 2001 From: Konstantin Munteanu Date: Tue, 7 Jan 2020 11:23:21 +0100 Subject: [PATCH] Update rubocop (#51) --- .rubocop.yml | 6 +++--- api_valve.gemspec | 4 ++-- spec/.rubocop.yml | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.rubocop.yml b/.rubocop.yml index ca3854c..d7e1355 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -1,12 +1,14 @@ AllCops: TargetRubyVersion: 2.5 -Layout/AlignHash: +Layout/HashAlignment: EnforcedColonStyle: table EnforcedHashRocketStyle: table Layout/LeadingCommentSpace: Exclude: - '**/*.ru' +Layout/LineLength: + Max: 120 Layout/SpaceInsideHashLiteralBraces: EnforcedStyle: no_space @@ -21,8 +23,6 @@ Metrics/ClassLength: Metrics/CyclomaticComplexity: Exclude: - lib/api_valve/middleware/logging.rb -Metrics/LineLength: - Max: 120 Style/ClassAndModuleChildren: Enabled: false diff --git a/api_valve.gemspec b/api_valve.gemspec index 87edd33..87f2474 100644 --- a/api_valve.gemspec +++ b/api_valve.gemspec @@ -20,8 +20,8 @@ Gem::Specification.new do |s| s.add_development_dependency 'json_spec', '~> 1.1' s.add_development_dependency 'rack-test', '~> 1.1' s.add_development_dependency 'rspec', '~> 3.7' - s.add_development_dependency 'rubocop', '0.76.0' - s.add_development_dependency 'rubocop-rspec', '1.37.0' + s.add_development_dependency 'rubocop', '0.78.0' + s.add_development_dependency 'rubocop-rspec', '1.37.1' s.add_development_dependency 'simplecov', '~> 0.16' s.add_development_dependency 'timecop', '~> 0.9' s.add_development_dependency 'webmock', '~> 3.4' diff --git a/spec/.rubocop.yml b/spec/.rubocop.yml index 41d9e49..d1da378 100644 --- a/spec/.rubocop.yml +++ b/spec/.rubocop.yml @@ -1,7 +1,7 @@ require: rubocop-rspec inherit_from: ../.rubocop.yml -Layout/AlignHash: +Layout/HashAlignment: EnforcedColonStyle: table EnforcedHashRocketStyle: table