summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColby Swandale <colby@taplaboratories.com>2017-09-18 21:28:36 +0900
committerColby Swandale <colby@taplaboratories.com>2017-09-18 21:28:36 +0900
commit31b3b11d4c0643445d9bf0c3aec84d75a086f6c9 (patch)
treed3908d9c867ae2ae4520f642bebb217369d7aff9
parent0a672a1deb01fa4ce8b51eb2f5b545692c64cd83 (diff)
downloadbundler-colby/update-rubocop-ruby-version.tar.gz
update Rubocop target ruby version to 2.3colby/update-rubocop-ruby-version
-rw-r--r--.rubocop.yml2
-rw-r--r--.rubocop_todo.yml42
2 files changed, 40 insertions, 4 deletions
diff --git a/.rubocop.yml b/.rubocop.yml
index f12289800a..7b3c9b8e77 100644
--- a/.rubocop.yml
+++ b/.rubocop.yml
@@ -2,7 +2,7 @@ inherit_from:
- .rubocop_todo.yml
AllCops:
- TargetRubyVersion: 1.9
+ TargetRubyVersion: 2.3
Exclude:
- tmp/**/*
- lib/bundler/vendor/**/*
diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml
index 472c641f55..04e63daa7b 100644
--- a/.rubocop_todo.yml
+++ b/.rubocop_todo.yml
@@ -1,6 +1,6 @@
# This configuration was generated by
# `rubocop --auto-gen-config`
-# on 2017-09-17 16:46:43 +0900 using RuboCop version 0.50.0.
+# on 2017-09-18 21:24:20 +0900 using RuboCop version 0.50.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
@@ -140,7 +140,7 @@ Lint/Void:
Exclude:
- 'lib/bundler/spec_set.rb'
-# Offense count: 2564
+# Offense count: 2588
# Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
# URISchemes: http, https
Metrics/LineLength:
@@ -215,6 +215,10 @@ Performance/RedundantMerge:
Exclude:
- 'lib/bundler/cli/gem.rb'
+# Offense count: 37
+Performance/UnfreezeString:
+ Enabled: false
+
# Offense count: 4
Security/Eval:
Exclude:
@@ -382,13 +386,14 @@ Style/NestedParenthesizedCalls:
- 'spec/commands/lock_spec.rb'
- 'spec/runtime/setup_spec.rb'
-# Offense count: 5
+# Offense count: 6
# Cop supports --auto-correct.
# Configuration parameters: AutoCorrect, EnforcedStyle, SupportedStyles.
# SupportedStyles: predicate, comparison
Style/NumericPredicate:
Exclude:
- 'spec/**/*'
+ - 'lib/bundler/cli/common.rb'
- 'lib/bundler/gem_helper.rb'
- 'lib/bundler/mirror.rb'
- 'lib/bundler/source/path.rb'
@@ -421,12 +426,43 @@ Style/RaiseArgs:
- 'spec/bundler/rubygems_integration_spec.rb'
- 'spec/bundler/shared_helpers_spec.rb'
+# Offense count: 23
+# Cop supports --auto-correct.
+Style/RedundantFreeze:
+ Exclude:
+ - 'bin/bundle1'
+ - 'bin/bundle2'
+ - 'lib/bundler.rb'
+ - 'lib/bundler/endpoint_specification.rb'
+ - 'lib/bundler/environment_preserver.rb'
+ - 'lib/bundler/index.rb'
+ - 'lib/bundler/installer.rb'
+ - 'lib/bundler/lockfile_generator.rb'
+ - 'lib/bundler/lockfile_parser.rb'
+ - 'lib/bundler/plugin.rb'
+ - 'lib/bundler/resolver/spec_group.rb'
+ - 'lib/bundler/source/path.rb'
+ - 'spec/bundler/shared_helpers_spec.rb'
+
# Offense count: 1
# Cop supports --auto-correct.
Style/RedundantParentheses:
Exclude:
- 'lib/bundler/cli/console.rb'
+# Offense count: 38
+# Cop supports --auto-correct.
+# Configuration parameters: ConvertCodeThatCanStartToReturnNil.
+Style/SafeNavigation:
+ Enabled: false
+
+# Offense count: 56
+# Cop supports --auto-correct.
+# Configuration parameters: MinSize, SupportedStyles.
+# SupportedStyles: percent, brackets
+Style/SymbolArray:
+ EnforcedStyle: brackets
+
# Offense count: 2
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles, AllowSafeAssignment.