summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Giddins <segiddins@segiddins.me>2015-10-04 17:05:35 -0500
committerSamuel Giddins <segiddins@segiddins.me>2015-10-18 19:26:43 -0500
commit18e50d45ac22169cd071d729016d0ba0122a7335 (patch)
tree4a5e08e16f4624c10ad4a3fcc908271a61b9f6af
parent7eedfd15853e197d1da69e07bb54d789bb2333d4 (diff)
downloadbundler-18e50d45ac22169cd071d729016d0ba0122a7335.tar.gz
[RuboCop] Regenerate todo file with new file excludes
-rw-r--r--.rubocop_todo.yml187
-rw-r--r--Rakefile4
-rwxr-xr-xbin/rubocop2
3 files changed, 140 insertions, 53 deletions
diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml
index 21792ca621..b674f399bb 100644
--- a/.rubocop_todo.yml
+++ b/.rubocop_todo.yml
@@ -1,5 +1,6 @@
-# This configuration was generated by `rubocop --auto-gen-config`
-# on 2015-07-15 20:39:25 -0700 using RuboCop version 0.32.1.
+# This configuration was generated by
+# `rubocop --auto-gen-config`
+# on 2015-10-05 08:53:42 -0500 using RuboCop version 0.34.2.
# 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,58 +8,82 @@
# Offense count: 4
Lint/Eval:
- Enabled: false
+ Exclude:
+ - 'lib/bundler.rb'
+ - 'lib/bundler/endpoint_specification.rb'
+ - 'spec/support/streams.rb'
# Offense count: 5
Lint/HandleExceptions:
- Enabled: false
+ Exclude:
+ - 'lib/bundler/fetcher/dependency.rb'
+ - 'lib/bundler/installer.rb'
+ - 'lib/bundler/psyched_yaml.rb'
+ - 'lib/bundler/vendored_persistent.rb'
# Offense count: 1
Lint/NestedMethodDefinition:
- Enabled: false
+ Exclude:
+ - 'lib/bundler/graph.rb'
# Offense count: 1
Lint/NonLocalExitFromIterator:
- Enabled: false
+ Exclude:
+ - 'lib/bundler/rubygems_integration.rb'
# Offense count: 6
Lint/RescueException:
- Enabled: false
+ Exclude:
+ - 'lib/bundler/cli.rb'
+ - 'lib/bundler/dsl.rb'
+ - 'lib/bundler/friendly_errors.rb'
+ - 'lib/bundler/installer.rb'
+ - 'lib/bundler/rubygems_integration.rb'
+ - 'lib/bundler/worker.rb'
# Offense count: 7
Lint/UselessAssignment:
- Enabled: false
+ Exclude:
+ - 'lib/bundler/graph.rb'
+ - 'lib/bundler/index.rb'
+ - 'lib/bundler/installer.rb'
-# Offense count: 959
+# Offense count: 1002
# Configuration parameters: AllowURI, URISchemes.
Metrics/LineLength:
Max: 207
-# Offense count: 4
-# Configuration parameters: CountComments.
-Metrics/ModuleLength:
- Max: 363
-
# Offense count: 2
# Configuration parameters: CountKeywordArgs.
Metrics/ParameterLists:
Max: 6
-# Offense count: 49
+# Offense count: 50
Metrics/PerceivedComplexity:
Max: 54
# Offense count: 1
Style/AccessorMethodName:
- Enabled: false
+ Exclude:
+ - 'lib/bundler/source/git.rb'
# Offense count: 16
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles.
Style/AndOr:
- Enabled: false
-
-# Offense count: 22
+ Exclude:
+ - 'lib/bundler/gem_helper.rb'
+ - 'lib/bundler/graph.rb'
+ - 'lib/bundler/lazy_specification.rb'
+ - 'lib/bundler/match_platform.rb'
+ - 'lib/bundler/remote_specification.rb'
+ - 'lib/bundler/resolver.rb'
+ - 'lib/bundler/rubygems_integration.rb'
+ - 'lib/bundler/runtime.rb'
+ - 'lib/bundler/settings.rb'
+ - 'spec/support/builders.rb'
+
+# Offense count: 23
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles, ProceduralMethods, FunctionalMethods, IgnoredMethods.
Style/BlockDelimiters:
@@ -66,7 +91,10 @@ Style/BlockDelimiters:
# Offense count: 3
Style/CaseEquality:
- Enabled: false
+ Exclude:
+ - 'lib/bundler/dsl.rb'
+ - 'lib/bundler/match_platform.rb'
+ - 'lib/bundler/rubygems_ext.rb'
# Offense count: 4
# Cop supports --auto-correct.
@@ -79,52 +107,83 @@ Style/CaseIndentation:
Style/ClassAndModuleChildren:
Enabled: false
-# Offense count: 153
+# Offense count: 117
+# Configuration parameters: Exclude.
Style/Documentation:
Enabled: false
-# Offense count: 1
+# Offense count: 2
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles.
Style/EmptyElse:
- Enabled: false
+ Exclude:
+ - 'lib/bundler/fetcher.rb'
+ - 'lib/bundler/ruby_version.rb'
-# Offense count: 9
+# Offense count: 10
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles.
Style/EmptyLinesAroundModuleBody:
- Enabled: false
+ Exclude:
+ - 'lib/bundler/cli/common.rb'
+ - 'lib/bundler/deprecate.rb'
+ - 'lib/bundler/dsl.rb'
+ - 'lib/bundler/fetcher.rb'
+ - 'lib/bundler/friendly_errors.rb'
+ - 'lib/bundler/gem_helpers.rb'
+ - 'spec/support/builders.rb'
+ - 'spec/support/indexes.rb'
+ - 'spec/support/rubygems_ext.rb'
# Offense count: 1
# Configuration parameters: Exclude.
Style/FileName:
- Enabled: false
+ Exclude:
+ - 'lib/bundler/templates/Executable'
# Offense count: 4
# Configuration parameters: AllowedVariables.
Style/GlobalVars:
- Enabled: false
+ Exclude:
+ - 'lib/bundler/cli.rb'
+ - 'spec/spec_helper.rb'
+ - 'spec/support/helpers.rb'
-# Offense count: 29
+# Offense count: 30
# Configuration parameters: MinBodyLength.
Style/GuardClause:
Enabled: false
-# Offense count: 20
+# Offense count: 18
# Cop supports --auto-correct.
# Configuration parameters: MaxLineLength.
Style/IfUnlessModifier:
- Enabled: false
+ Exclude:
+ - 'lib/bundler.rb'
+ - 'lib/bundler/cli/install.rb'
+ - 'lib/bundler/definition.rb'
+ - 'lib/bundler/dependency.rb'
+ - 'lib/bundler/fetcher.rb'
+ - 'lib/bundler/gem_helper.rb'
+ - 'lib/bundler/lockfile_parser.rb'
+ - 'lib/bundler/rubygems_integration.rb'
+ - 'lib/bundler/settings.rb'
+ - 'lib/bundler/source/git.rb'
+ - 'lib/bundler/source/git/git_proxy.rb'
+ - 'spec/support/builders.rb'
# Offense count: 2
Style/ModuleFunction:
- Enabled: false
+ Exclude:
+ - 'lib/bundler/shared_helpers.rb'
+ - 'spec/support/path.rb'
# Offense count: 1
Style/MultilineBlockChain:
- Enabled: false
+ Exclude:
+ - 'spec/support/less_than_proc.rb'
-# Offense count: 13
+# Offense count: 3
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles.
Style/MultilineOperationIndentation:
@@ -133,9 +192,16 @@ Style/MultilineOperationIndentation:
# Offense count: 10
# Configuration parameters: EnforcedStyle, MinBodyLength, SupportedStyles.
Style/Next:
- Enabled: false
-
-# Offense count: 63
+ Exclude:
+ - 'exe/bundle'
+ - 'exe/bundler'
+ - 'lib/bundler/definition.rb'
+ - 'lib/bundler/dsl.rb'
+ - 'lib/bundler/resolver.rb'
+ - 'lib/bundler/source/path.rb'
+ - 'spec/support/artifice/endpoint.rb'
+
+# Offense count: 67
# Cop supports --auto-correct.
# Configuration parameters: PreferredDelimiters.
Style/PercentLiteralDelimiters:
@@ -144,14 +210,28 @@ Style/PercentLiteralDelimiters:
# Offense count: 22
# Cop supports --auto-correct.
Style/PerlBackrefs:
- Enabled: false
+ Exclude:
+ - 'exe/bundle'
+ - 'exe/bundler'
+ - 'lib/bundler/cli/gem.rb'
+ - 'lib/bundler/dsl.rb'
+ - 'lib/bundler/lockfile_parser.rb'
+ - 'lib/bundler/runtime.rb'
+ - 'lib/bundler/source/git/git_proxy.rb'
+ - 'lib/bundler/source/path.rb'
# Offense count: 8
# Configuration parameters: NamePrefix, NamePrefixBlacklist.
Style/PredicateName:
- Enabled: false
+ Exclude:
+ - 'lib/bundler/definition.rb'
+ - 'lib/bundler/installer/parallel_installer.rb'
+ - 'lib/bundler/settings.rb'
+ - 'lib/bundler/source/git.rb'
+ - 'lib/bundler/source/git/git_proxy.rb'
+ - 'lib/bundler/source/path.rb'
-# Offense count: 8
+# Offense count: 6
# Configuration parameters: EnforcedStyle, SupportedStyles.
Style/RaiseArgs:
Enabled: false
@@ -159,19 +239,26 @@ Style/RaiseArgs:
# Offense count: 7
# Cop supports --auto-correct.
Style/RedundantSelf:
- Enabled: false
+ Exclude:
+ - 'lib/bundler.rb'
+ - 'lib/bundler/definition.rb'
+ - 'lib/bundler/graph.rb'
+ - 'lib/bundler/rubygems_integration.rb'
+ - 'lib/bundler/source/rubygems.rb'
+ - 'spec/support/less_than_proc.rb'
+ - 'spec/support/ruby_ext.rb'
-# Offense count: 3
+# Offense count: 5
+# Cop supports --auto-correct.
Style/RescueModifier:
- Enabled: false
+ Exclude:
+ - 'lib/bundler.rb'
+ - 'lib/bundler/fetcher.rb'
+ - 'lib/bundler/resolver.rb'
+ - 'spec/realworld/dependency_api_spec.rb'
-# Offense count: 2
+# Offense count: 1
# Configuration parameters: Methods.
Style/SingleLineBlockParams:
- Enabled: false
-
-# Offense count: 7
-# Cop supports --auto-correct.
-# Configuration parameters: EnforcedStyle, SupportedStyles.
-Style/SpaceAroundEqualsInParameterDefault:
- Enabled: false
+ Exclude:
+ - 'lib/bundler/cli/gem.rb'
diff --git a/Rakefile b/Rakefile
index 31dd7f86fe..745adfb5b4 100644
--- a/Rakefile
+++ b/Rakefile
@@ -33,7 +33,7 @@ namespace :spec do
deps = Hash[BUNDLER_SPEC.development_dependencies.map do |d|
[d.name, d.requirement.to_s]
end]
- deps["rubocop"] ||= "= 0.34.1" if RUBY_VERSION >= "1.9.3" # can't go in the gemspec because of the ruby version requirement
+ deps["rubocop"] ||= "= 0.34.2" if RUBY_VERSION >= "1.9.3" # can't go in the gemspec because of the ruby version requirement
# JRuby can't build ronn or rdiscount, so we skip that
if defined?(RUBY_ENGINE) && RUBY_ENGINE == "jruby"
@@ -88,7 +88,7 @@ begin
if RUBY_VERSION >= "1.9.3"
# can't go in the gemspec because of the ruby version requirement
- gem "rubocop", "= 0.34.1"
+ gem "rubocop", "= 0.34.2"
require "rubocop/rake_task"
RuboCop::RakeTask.new
end
diff --git a/bin/rubocop b/bin/rubocop
index 56201d51f0..f4993c40f3 100755
--- a/bin/rubocop
+++ b/bin/rubocop
@@ -7,5 +7,5 @@ bundler_spec.dependencies.each do |dep|
gem dep.name, dep.requirement.to_s
end
-gem "rubocop", "= 0.34.1"
+gem "rubocop", "= 0.34.2"
load Gem.bin_path("rubocop", "rubocop")