Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
135 changes: 44 additions & 91 deletions .rubocop_todo.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# This configuration was generated by
# `rubocop --auto-gen-config --auto-gen-only-exclude --exclude-limit 42`
# on 2021-04-10 09:49:03 UTC using RuboCop version 1.12.1.
# `rubocop --auto-gen-config`
# on 2022-06-14 23:50:50 UTC using RuboCop version 1.28.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
# versions of RuboCop, may require this file to be generated again.

# Offense count: 53
# Cop supports --auto-correct.
# This cop supports safe auto-correction (--auto-correct).
# Configuration parameters: EnforcedStyle.
# SupportedStyles: leading, trailing
Layout/DotPosition:
Expand All @@ -22,29 +22,13 @@ Layout/DotPosition:
- 'spec/lib/http_spec.rb'
- 'spec/support/http_handling_shared.rb'

# Offense count: 174
# Cop supports --auto-correct.
# Offense count: 176
# This cop supports safe auto-correction (--auto-correct).
# Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces.
# SupportedStyles: space, no_space, compact
# SupportedStylesForEmptyBraces: space, no_space
Layout/SpaceInsideHashLiteralBraces:
Exclude:
- 'lib/http/chainable.rb'
- 'spec/lib/http/client_spec.rb'
- 'spec/lib/http/features/auto_inflate_spec.rb'
- 'spec/lib/http/features/instrumentation_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/merge_spec.rb'
- 'spec/lib/http/options/new_spec.rb'
- 'spec/lib/http/redirector_spec.rb'
- 'spec/lib/http/request_spec.rb'
- 'spec/lib/http/response_spec.rb'
- 'spec/lib/http_spec.rb'
- 'spec/support/dummy_server/servlet.rb'
- 'spec/support/http_handling_shared.rb'
- 'spec/support/ssl_helper.rb'
Enabled: false

# Offense count: 4
Lint/MissingSuper:
Expand All @@ -55,93 +39,51 @@ Lint/MissingSuper:
- 'lib/http/features/normalize_uri.rb'

# Offense count: 8
# Configuration parameters: IgnoredMethods, CountRepeatedAttributes, Max.
# Configuration parameters: IgnoredMethods, CountRepeatedAttributes.
Metrics/AbcSize:
Exclude:
- 'lib/http/chainable.rb'
- 'lib/http/client.rb'
- 'lib/http/connection.rb'
- 'lib/http/features/auto_deflate.rb'
- 'lib/http/redirector.rb'
- 'lib/http/request.rb'
- 'lib/http/response.rb'
Max: 33

# Offense count: 66
# Configuration parameters: CountComments, Max, CountAsOne, ExcludedMethods, IgnoredMethods.
# Offense count: 69
# Configuration parameters: CountComments, CountAsOne, ExcludedMethods, IgnoredMethods.
# IgnoredMethods: refine
Metrics/BlockLength:
Exclude:
- '**/*.gemspec'
- 'spec/lib/http/client_spec.rb'
- 'spec/lib/http/connection_spec.rb'
- 'spec/lib/http/content_type_spec.rb'
- 'spec/lib/http/features/auto_deflate_spec.rb'
- 'spec/lib/http/features/auto_inflate_spec.rb'
- 'spec/lib/http/features/instrumentation_spec.rb'
- 'spec/lib/http/features/logging_spec.rb'
- 'spec/lib/http/headers/mixin_spec.rb'
- 'spec/lib/http/headers_spec.rb'
- 'spec/lib/http/options/merge_spec.rb'
- 'spec/lib/http/redirector_spec.rb'
- 'spec/lib/http/request/body_spec.rb'
- 'spec/lib/http/request/writer_spec.rb'
- 'spec/lib/http/request_spec.rb'
- 'spec/lib/http/response/body_spec.rb'
- 'spec/lib/http/response/parser_spec.rb'
- 'spec/lib/http/response/status_spec.rb'
- 'spec/lib/http/response_spec.rb'
- 'spec/lib/http_spec.rb'
- 'spec/support/http_handling_shared.rb'
Max: 435

# Offense count: 4
# Configuration parameters: CountComments, Max, CountAsOne.
# Configuration parameters: CountComments, CountAsOne.
Metrics/ClassLength:
Exclude:
- 'lib/http/client.rb'
- 'lib/http/connection.rb'
- 'lib/http/headers.rb'
- 'lib/http/request.rb'
Max: 128

# Offense count: 2
# Configuration parameters: IgnoredMethods, Max.
# Configuration parameters: IgnoredMethods.
Metrics/CyclomaticComplexity:
Exclude:
- 'lib/http/chainable.rb'
- 'lib/http/client.rb'
Max: 8

# Offense count: 19
# Configuration parameters: CountComments, Max, CountAsOne, ExcludedMethods, IgnoredMethods.
# Offense count: 18
# Configuration parameters: CountComments, CountAsOne, ExcludedMethods, IgnoredMethods.
Metrics/MethodLength:
Exclude:
- 'lib/http/chainable.rb'
- 'lib/http/client.rb'
- 'lib/http/connection.rb'
- 'lib/http/features/auto_deflate.rb'
- 'lib/http/features/auto_inflate.rb'
- 'lib/http/headers.rb'
- 'lib/http/options.rb'
- 'lib/http/redirector.rb'
- 'lib/http/request.rb'
- 'lib/http/response.rb'
- 'lib/http/response/body.rb'
- 'lib/http/timeout/global.rb'
Max: 24

# Offense count: 1
# Configuration parameters: CountComments, Max, CountAsOne.
# Configuration parameters: CountComments, CountAsOne.
Metrics/ModuleLength:
Max: 110

# Offense count: 1
Security/CompoundHash:
Exclude:
- 'lib/http/chainable.rb'
- 'lib/http/uri.rb'

# Offense count: 2
# Cop supports --auto-correct.
# This cop supports safe auto-correction (--auto-correct).
# Configuration parameters: EnforcedStyle.
# SupportedStyles: separated, grouped
Style/AccessorGrouping:
Exclude:
- 'lib/http/request.rb'

# Offense count: 4
# Cop supports --auto-correct.
# This cop supports safe auto-correction (--auto-correct).
Style/EmptyCaseCondition:
Exclude:
- 'lib/http/client.rb'
Expand All @@ -150,7 +92,7 @@ Style/EmptyCaseCondition:
- 'lib/http/response/status.rb'

# Offense count: 5
# Cop supports --auto-correct.
# This cop supports safe auto-correction (--auto-correct).
Style/Encoding:
Exclude:
- 'spec/lib/http/client_spec.rb'
Expand All @@ -159,8 +101,21 @@ Style/Encoding:
- 'spec/lib/http_spec.rb'
- 'spec/support/dummy_server/servlet.rb'

# Offense count: 1
# This cop supports safe auto-correction (--auto-correct).
# Configuration parameters: AllowedVars.
Style/FetchEnvVar:
Exclude:
- 'spec/spec_helper.rb'

# Offense count: 2
# This cop supports safe auto-correction (--auto-correct).
Style/IfUnlessModifier:
Exclude:
- 'lib/http/connection.rb'

# Offense count: 17
# Configuration parameters: SuspiciousParamNames.
# Configuration parameters: SuspiciousParamNames, Allowlist.
# SuspiciousParamNames: options, opts, args, params, parameters
Style/OptionHash:
Exclude:
Expand All @@ -183,10 +138,8 @@ Style/OptionalBooleanParameter:
- 'lib/http/uri.rb'

# Offense count: 3
# Cop supports --auto-correct.
# Configuration parameters: AutoCorrect, Max, AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
# This cop supports safe auto-correction (--auto-correct).
# Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, AllowedPatterns, IgnoredPatterns.
# URISchemes: http, https
Layout/LineLength:
Exclude:
- 'lib/http/chainable.rb'
- 'spec/lib/http/options/proxy_spec.rb'
Max: 143
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.21"
gem "rubocop", "~> 1.28.2"
gem "rubocop-performance"
gem "rubocop-rake"
gem "rubocop-rspec"
Expand Down