Skip to content

Commit

Permalink
Downgrade rubocop
Browse files Browse the repository at this point in the history
  • Loading branch information
ixti committed Jul 14, 2023
1 parent 11defe7 commit ccf790e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 26 deletions.
33 changes: 8 additions & 25 deletions .rubocop_todo.yml
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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.
Expand Down Expand Up @@ -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'
Expand All @@ -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:
Expand All @@ -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:
Expand Down Expand Up @@ -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'
Expand Down Expand Up @@ -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).
Expand Down
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit ccf790e

Please sign in to comment.