diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index f0a468d8..f536c9da 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -1,6 +1,6 @@ # This configuration was generated by # `rubocop --auto-gen-config --auto-gen-only-exclude --exclude-limit 100` -# on 2023-07-14 19:45:58 UTC using RuboCop version 1.54.2. +# on 2023-07-14 20:07:24 UTC using RuboCop version 1.50.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 @@ -14,14 +14,6 @@ Gemspec/DeprecatedAttributeAssignment: Exclude: - 'http.gemspec' -# Offense count: 1 -# Configuration parameters: EnforcedStyle, AllowedGems, Include. -# SupportedStyles: Gemfile, gems.rb, gemspec -# Include: **/*.gemspec, **/Gemfile, **/gems.rb -Gemspec/DevelopmentDependencies: - Exclude: - - 'http.gemspec' - # Offense count: 56 # This cop supports safe autocorrection (--autocorrect). # Configuration parameters: EnforcedStyle. @@ -63,7 +55,6 @@ Layout/SpaceInsideHashLiteralBraces: - 'spec/support/ssl_helper.rb' # Offense count: 5 -# Configuration parameters: AllowedParentClasses. Lint/MissingSuper: Exclude: - 'lib/http/features/auto_deflate.rb' @@ -72,7 +63,7 @@ Lint/MissingSuper: - 'lib/http/features/normalize_uri.rb' - 'spec/lib/http/features/instrumentation_spec.rb' -# Offense count: 9 +# Offense count: 8 # Configuration parameters: AllowedMethods, AllowedPatterns, CountRepeatedAttributes, Max. Metrics/AbcSize: Exclude: @@ -93,14 +84,14 @@ Metrics/ClassLength: - 'lib/http/headers.rb' - 'lib/http/request.rb' -# Offense count: 3 +# Offense count: 2 # Configuration parameters: AllowedMethods, AllowedPatterns, Max. Metrics/CyclomaticComplexity: Exclude: - 'lib/http/chainable.rb' - 'lib/http/client.rb' -# Offense count: 13 +# Offense count: 12 # Configuration parameters: CountComments, Max, CountAsOne, AllowedMethods, AllowedPatterns. Metrics/MethodLength: Exclude: @@ -267,14 +258,13 @@ RSpec/EmptyLineAfterSubject: - 'spec/lib/http/uri_spec.rb' - 'spec/lib/http_spec.rb' -# Offense count: 54 +# Offense count: 52 # Configuration parameters: Max, CountAsOne. RSpec/ExampleLength: Exclude: - 'spec/lib/http/client_spec.rb' - 'spec/lib/http/connection_spec.rb' - 'spec/lib/http/features/auto_deflate_spec.rb' - - 'spec/lib/http/features/logging_spec.rb' - 'spec/lib/http/headers_spec.rb' - 'spec/lib/http/options/features_spec.rb' - 'spec/lib/http/options/headers_spec.rb' @@ -536,18 +526,11 @@ Style/RedundantConstantBase: Exclude: - 'spec/lib/http/headers_spec.rb' -# Offense count: 2 -# This cop supports safe autocorrection (--autocorrect). -Style/RedundantCurrentDirectoryInPath: - Exclude: - - 'spec/spec_helper.rb' - -# Offense count: 6 +# Offense count: 1 # This cop supports safe autocorrection (--autocorrect). -Style/RedundantRegexpArgument: +Style/RedundantRegexpEscape: Exclude: - - 'spec/lib/http/client_spec.rb' - - 'spec/lib/http/connection_spec.rb' + - 'lib/http/headers.rb' # Offense count: 1 # This cop supports unsafe autocorrection (--autocorrect-all). diff --git a/Gemfile b/Gemfile index 917278f7..fc5c26d9 100644 --- a/Gemfile +++ b/Gemfile @@ -27,7 +27,7 @@ group :test do gem "backports" - gem "rubocop", "~> 1.54.2" + gem "rubocop", "~> 1.50.0" gem "rubocop-performance" gem "rubocop-rake" gem "rubocop-rspec", "~> 2.22.0"