.rubocop_todo.yml in bundler-1.14.6 vs .rubocop_todo.yml in bundler-1.15.0.pre.1
- old
+ new
@@ -1,27 +1,35 @@
# This configuration was generated by
# `rubocop --auto-gen-config`
-# on 2016-11-19 11:43:45 -0600 using RuboCop version 0.45.0.
+# on 2017-04-08 17:26:10 -0500 using RuboCop version 0.48.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: 23
+Lint/AmbiguousBlockAssociation:
+ Exclude:
+ - 'lib/bundler/definition.rb'
+ - 'lib/bundler/resolver.rb'
+ - 'lib/bundler/runtime.rb'
+ - 'lib/bundler/source/path.rb'
+ - 'spec/bundler/compact_index_client/updater_spec.rb'
+ - 'spec/commands/init_spec.rb'
+ - 'spec/commands/install_spec.rb'
+ - 'spec/install/gems/flex_spec.rb'
+ - 'spec/lock/lockfile_spec.rb'
+ - 'spec/runtime/setup_spec.rb'
+ - 'spec/support/indexes.rb'
+
# Offense count: 2
Lint/EmptyWhen:
Exclude:
- 'lib/bundler/friendly_errors.rb'
- 'spec/support/builders.rb'
# Offense count: 4
-Lint/Eval:
- Exclude:
- - 'lib/bundler.rb'
- - 'lib/bundler/endpoint_specification.rb'
- - 'spec/support/streams.rb'
-
-# Offense count: 4
Lint/HandleExceptions:
Exclude:
- 'lib/bundler/installer.rb'
- 'lib/bundler/psyched_yaml.rb'
- 'lib/bundler/vendored_persistent.rb'
@@ -44,34 +52,40 @@
- 'lib/bundler/dsl.rb'
- 'lib/bundler/friendly_errors.rb'
- 'lib/bundler/rubygems_integration.rb'
- 'lib/bundler/worker.rb'
+# Offense count: 2
+Lint/ShadowedException:
+ Exclude:
+ - 'lib/bundler.rb'
+ - 'lib/bundler/rubygems_integration.rb'
+
# Offense count: 1
-# Configuration parameters: ContextCreatingMethods.
+# Configuration parameters: ContextCreatingMethods, MethodCreatingMethods.
Lint/UselessAccessModifier:
Exclude:
- 'lib/bundler/fetcher.rb'
# Offense count: 6
Lint/UselessAssignment:
Exclude:
- 'lib/bundler/index.rb'
- 'lib/bundler/installer.rb'
-# Offense count: 7
-# Configuration parameters: CountComments.
+# Offense count: 451
+# Configuration parameters: CountComments, ExcludedMethods.
Metrics/BlockLength:
- Max: 46
+ Max: 988
-# Offense count: 1855
-# Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives.
+# Offense count: 2035
+# Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
# URISchemes: http, https
Metrics/LineLength:
Max: 207
-# Offense count: 6
+# Offense count: 7
# Cop supports --auto-correct.
Performance/RedundantBlockCall:
Exclude:
- 'lib/bundler/dsl.rb'
- 'lib/bundler/gem_helper.rb'
@@ -84,17 +98,39 @@
Performance/RedundantMatch:
Exclude:
- 'lib/bundler/definition.rb'
- 'lib/bundler/lockfile_parser.rb'
-# Offense count: 5
+# Offense count: 6
# Cop supports --auto-correct.
# Configuration parameters: MaxKeyValuePairs.
Performance/RedundantMerge:
Exclude:
- 'lib/bundler/cli/gem.rb'
+# Offense count: 4
+Security/Eval:
+ Exclude:
+ - 'lib/bundler.rb'
+ - 'lib/bundler/endpoint_specification.rb'
+ - 'spec/support/streams.rb'
+
+# Offense count: 6
+Security/MarshalLoad:
+ Exclude:
+ - 'lib/bundler.rb'
+ - 'spec/install/gems/resolving_spec.rb'
+ - 'spec/support/artifice/compact_index.rb'
+ - 'spec/support/artifice/endpoint.rb'
+
+# Offense count: 2
+# Cop supports --auto-correct.
+Security/YAMLLoad:
+ Exclude:
+ - 'spec/bundler/yaml_serializer_spec.rb'
+ - 'spec/commands/inject_spec.rb'
+
# Offense count: 1
Style/AccessorMethodName:
Exclude:
- 'lib/bundler/source/git.rb'
@@ -103,19 +139,19 @@
Exclude:
- 'lib/bundler/dsl.rb'
- 'lib/bundler/match_platform.rb'
- 'lib/bundler/rubygems_ext.rb'
-# Offense count: 23
+# Offense count: 25
# Configuration parameters: EnforcedStyle, SupportedStyles.
# SupportedStyles: nested, compact
Style/ClassAndModuleChildren:
Enabled: false
# Offense count: 9
# Cop supports --auto-correct.
-# Configuration parameters: EnforcedStyle, SupportedStyles, SingleLineConditionsOnly.
+# Configuration parameters: EnforcedStyle, SupportedStyles, SingleLineConditionsOnly, IncludeTernaryExpressions.
# SupportedStyles: assign_to_condition, assign_inside_condition
Style/ConditionalAssignment:
Exclude:
- 'lib/bundler/cli.rb'
- 'lib/bundler/cli/gem.rb'
@@ -125,16 +161,40 @@
- 'lib/bundler/psyched_yaml.rb'
- 'lib/bundler/rubygems_integration.rb'
- 'lib/bundler/source/git.rb'
- 'lib/bundler/source/rubygems.rb'
-# Offense count: 148
+# Offense count: 158
Style/Documentation:
Enabled: false
+# Offense count: 304
+# Cop supports --auto-correct.
+Style/EmptyLineAfterMagicComment:
+ Enabled: false
+
# Offense count: 2
# Cop supports --auto-correct.
+Style/EmptyLinesAroundExceptionHandlingKeywords:
+ Exclude:
+ - 'Rakefile'
+
+# Offense count: 17
+# Cop supports --auto-correct.
+# Configuration parameters: EnforcedStyle, SupportedStyles.
+# SupportedStyles: compact, expanded
+Style/EmptyMethod:
+ Exclude:
+ - 'exe/bundle_ruby'
+ - 'lib/bundler/cli.rb'
+ - 'lib/bundler/plugin/api/source.rb'
+ - 'lib/bundler/rubygems_integration.rb'
+ - 'lib/bundler/ui/silent.rb'
+ - 'spec/support/artifice/fail.rb'
+
+# Offense count: 2
+# Cop supports --auto-correct.
# Configuration parameters: AllowForAlignment, ForceEqualSignAlignment.
Style/ExtraSpacing:
Exclude:
- 'lib/bundler/cli.rb'
@@ -143,11 +203,11 @@
Style/GlobalVars:
Exclude:
- 'lib/bundler/cli.rb'
- 'spec/spec_helper.rb'
-# Offense count: 19
+# Offense count: 17
# Configuration parameters: MinBodyLength.
Style/GuardClause:
Exclude:
- 'lib/bundler/cli/cache.rb'
- 'lib/bundler/cli/clean.rb'
@@ -155,13 +215,11 @@
- 'lib/bundler/cli/outdated.rb'
- 'lib/bundler/cli/package.rb'
- 'lib/bundler/definition.rb'
- 'lib/bundler/dsl.rb'
- 'lib/bundler/installer.rb'
- - 'lib/bundler/lockfile_parser.rb'
- 'lib/bundler/runtime.rb'
- - 'lib/bundler/shared_helpers.rb'
- 'lib/bundler/source/path/installer.rb'
- 'lib/bundler/source_list.rb'
- 'spec/commands/newgem_spec.rb'
- 'spec/support/sometimes.rb'
@@ -180,10 +238,28 @@
# Configuration parameters: SupportedStyles, IndentationWidth.
# SupportedStyles: special_inside_parentheses, consistent, align_brackets
Style/IndentArray:
EnforcedStyle: consistent
+# Offense count: 34
+# Cop supports --auto-correct.
+# Configuration parameters: EnforcedStyle, SupportedStyles.
+# SupportedStyles: auto_detection, squiggly, active_support, powerpack, unindent
+Style/IndentHeredoc:
+ Enabled: false
+
+# Offense count: 9
+# Cop supports --auto-correct.
+# Configuration parameters: InverseMethods, InverseBlocks.
+Style/InverseMethods:
+ Exclude:
+ - 'lib/bundler/cli/doctor.rb'
+ - 'lib/bundler/definition.rb'
+ - 'lib/bundler/dsl.rb'
+ - 'lib/bundler/index.rb'
+ - 'lib/bundler/resolver.rb'
+
# Offense count: 6
Style/MethodMissing:
Exclude:
- 'lib/bundler/dep_proxy.rb'
- 'lib/bundler/dsl.rb'
@@ -192,10 +268,18 @@
- 'lib/bundler/remote_specification.rb'
- 'spec/support/builders.rb'
# Offense count: 2
# Configuration parameters: EnforcedStyle, SupportedStyles.
+# SupportedStyles: separated, grouped
+Style/MixinGrouping:
+ Exclude:
+ - 'lib/bundler/spec_set.rb'
+ - 'spec/runtime/setup_spec.rb'
+
+# Offense count: 2
+# Configuration parameters: EnforcedStyle, SupportedStyles.
# SupportedStyles: module_function, extend_self
Style/ModuleFunction:
Exclude:
- 'lib/bundler/shared_helpers.rb'
- 'spec/support/path.rb'
@@ -253,16 +337,31 @@
- 'lib/bundler/settings.rb'
- 'lib/bundler/source/git.rb'
- 'lib/bundler/source/git/git_proxy.rb'
- 'lib/bundler/source/path.rb'
-# Offense count: 25
+# Offense count: 24
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles.
# SupportedStyles: compact, exploded
Style/RaiseArgs:
- Enabled: false
+ Exclude:
+ - 'lib/bundler/cli/install.rb'
+ - 'lib/bundler/deployment.rb'
+ - 'lib/bundler/fetcher/downloader.rb'
+ - 'lib/bundler/fetcher/index.rb'
+ - 'lib/bundler/installer/standalone.rb'
+ - 'lib/bundler/rubygems_integration.rb'
+ - 'lib/bundler/shared_helpers.rb'
+ - 'lib/bundler/source/git/git_proxy.rb'
+ - 'lib/bundler/source/rubygems/remote.rb'
+ - 'spec/bundler/endpoint_specification_spec.rb'
+ - 'spec/bundler/fetcher/dependency_spec.rb'
+ - 'spec/bundler/fetcher/downloader_spec.rb'
+ - 'spec/bundler/fetcher/index_spec.rb'
+ - 'spec/bundler/rubygems_integration_spec.rb'
+ - 'spec/bundler/shared_helpers_spec.rb'
# Offense count: 2
# Cop supports --auto-correct.
Style/RedundantParentheses:
Exclude:
@@ -274,57 +373,46 @@
# Configuration parameters: AllowForAlignment.
Style/SpaceAroundOperators:
Exclude:
- 'lib/bundler/retry.rb'
-# Offense count: 1
+# Offense count: 2
# Cop supports --auto-correct.
-# Configuration parameters: EnforcedStyle, SupportedStyles, EnforcedStyleForEmptyBraces, SpaceBeforeBlockParameters.
+# Configuration parameters: EnforcedStyle, SupportedStyles, EnforcedStyleForEmptyBraces, SupportedStylesForEmptyBraces, SpaceBeforeBlockParameters.
# SupportedStyles: space, no_space
+# SupportedStylesForEmptyBraces: space, no_space
Style/SpaceInsideBlockBraces:
Exclude:
- 'lib/bundler/installer/parallel_installer.rb'
# Offense count: 2
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles, AllowSafeAssignment.
-# SupportedStyles: require_parentheses, require_no_parentheses
+# SupportedStyles: require_parentheses, require_no_parentheses, require_parentheses_when_complex
Style/TernaryParentheses:
Exclude:
- 'lib/bundler/cli/common.rb'
- 'lib/bundler/gem_version_promoter.rb'
-# Offense count: 10
+# Offense count: 9
# Cop supports --auto-correct.
-# Configuration parameters: EnforcedStyleForMultiline, SupportedStyles.
-# SupportedStyles: comma, consistent_comma, no_comma
+# Configuration parameters: EnforcedStyleForMultiline, SupportedStylesForMultiline.
+# SupportedStylesForMultiline: comma, consistent_comma, no_comma
Style/TrailingCommaInLiteral:
Exclude:
- 'lib/bundler/cli/gem.rb'
- - 'lib/bundler/dependency.rb'
- 'lib/bundler/fetcher.rb'
- 'lib/bundler/gem_helpers.rb'
- 'lib/bundler/graph.rb'
- 'lib/bundler/ruby_version.rb'
- 'lib/bundler/similarity_detector.rb'
- 'spec/support/artifice/endpoint.rb'
-# Offense count: 18
+# Offense count: 7
# Cop supports --auto-correct.
Style/UnneededInterpolation:
Exclude:
- 'lib/bundler/cli/config.rb'
- 'lib/bundler/env.rb'
- 'spec/bundler/shared_helpers_spec.rb'
- 'spec/cache/git_spec.rb'
- 'spec/commands/exec_spec.rb'
- - 'spec/support/artifice/endpoint.rb'
- - 'spec/support/artifice/endpoint_500.rb'
-
-# Offense count: 2
-# Configuration parameters: SupportedStyles.
-# SupportedStyles: snake_case, normalcase, non_integer
-Style/VariableNumber:
- EnforcedStyle: normalcase
- Exclude:
- - 'spec/commands/help_spec.rb'
- - 'spec/other/ext_spec.rb'