Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace RestClient gem with HTTP #60

Merged
merged 1 commit into from
Aug 24, 2019
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
60 changes: 9 additions & 51 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`
# on 2019-07-01 15:09:18 +0200 using RuboCop version 0.69.0.
# on 2019-08-12 11:40:23 +0300 using RuboCop version 0.71.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
Expand All @@ -13,14 +13,13 @@ Layout/EmptyLineAfterGuardClause:
- 'lib/report_portal/cucumber/json_slurper.rb'
- 'tests/features/step_definitions/steps.rb'

# Offense count: 5
# Offense count: 2
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces.
# SupportedStyles: space, no_space, compact
# SupportedStylesForEmptyBraces: space, no_space
Layout/SpaceInsideHashLiteralBraces:
Exclude:
- 'lib/reportportal.rb'
- 'tests/formatter_spec.rb'

# Offense count: 1
Expand All @@ -39,7 +38,7 @@ Lint/UriEscapeUnescape:
Exclude:
- 'lib/reportportal.rb'

# Offense count: 18
# Offense count: 15
Metrics/AbcSize:
Max: 106

Expand All @@ -58,27 +57,20 @@ Metrics/ClassLength:
Metrics/CyclomaticComplexity:
Max: 13

# Offense count: 19
# Offense count: 17
# Configuration parameters: CountComments, ExcludedMethods.
Metrics/MethodLength:
Max: 79

# Offense count: 1
# Configuration parameters: CountComments.
Metrics/ModuleLength:
Max: 162
Max: 139

# Offense count: 5
Metrics/PerceivedComplexity:
Max: 14

# Offense count: 3
# Configuration parameters: MinNameLength, AllowNamesEndingInNumbers, AllowedNames, ForbiddenNames.
# AllowedNames: io, id, to, by, on, in, at, ip, db
Naming/UncommunicativeMethodParamName:
Exclude:
- 'lib/report_portal/patches/rest_client.rb'

# Offense count: 1
# Cop supports --auto-correct.
Security/YAMLLoad:
Expand All @@ -98,15 +90,7 @@ Style/CommentedKeyword:
Exclude:
- 'lib/report_portal/cucumber/report.rb'

# Offense count: 2
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SingleLineConditionsOnly, IncludeTernaryExpressions.
# SupportedStyles: assign_to_condition, assign_inside_condition
Style/ConditionalAssignment:
Exclude:
- 'lib/reportportal.rb'

# Offense count: 9
# Offense count: 7
Style/Documentation:
Exclude:
- 'spec/**/*'
Expand All @@ -115,7 +99,6 @@ Style/Documentation:
- 'lib/report_portal/cucumber/parallel_formatter.rb'
- 'lib/report_portal/cucumber/parallel_report.rb'
- 'lib/report_portal/logging/logger.rb'
- 'lib/report_portal/patches/rest_client.rb'
- 'lib/report_portal/rspec/formatter.rb'
- 'lib/report_portal/settings.rb'
- 'lib/reportportal.rb'
Expand Down Expand Up @@ -150,7 +133,7 @@ Style/FormatString:
Style/FormatStringToken:
EnforcedStyle: unannotated

# Offense count: 21
# Offense count: 20
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle.
# SupportedStyles: always, never
Expand All @@ -174,13 +157,12 @@ Style/GuardClause:
- 'lib/reportportal.rb'
- 'tests/features/step_definitions/steps.rb'

# Offense count: 3
# Offense count: 1
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, UseHashRocketsWithSymbolValues, PreferHashRocketsForNonAlnumEndingSymbols.
# SupportedStyles: ruby19, hash_rockets, no_mixed_keys, ruby19_no_mixed_keys
Style/HashSyntax:
Exclude:
- 'lib/reportportal.rb'
- 'tests/formatter_spec.rb'

# Offense count: 5
Expand All @@ -191,14 +173,6 @@ Style/IfUnlessModifier:
- 'lib/report_portal/cucumber/report.rb'
- 'tests/features/support/env.rb'

# Offense count: 1
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, Autocorrect.
# SupportedStyles: module_function, extend_self
Style/ModuleFunction:
Exclude:
- 'lib/report_portal/patches/rest_client.rb'

# Offense count: 3
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle.
Expand All @@ -225,14 +199,6 @@ Style/PercentLiteralDelimiters:
Exclude:
- 'lib/report_portal/cucumber/json_slurper.rb'

# Offense count: 1
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle.
# SupportedStyles: implicit, explicit
Style/RescueStandardError:
Exclude:
- 'lib/reportportal.rb'

# Offense count: 2
# Cop supports --auto-correct.
# Configuration parameters: ConvertCodeThatCanStartToReturnNil, Whitelist.
Expand All @@ -254,14 +220,6 @@ Style/SignalException:
- 'tests/features/support/env.rb'
- 'tests/spec/test_spec.rb'

# Offense count: 3
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle.
# SupportedStyles: use_perl_names, use_english_names
Style/SpecialGlobalVars:
Exclude:
- 'lib/reportportal.rb'

# Offense count: 2
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, ConsistentQuotesInMultiline.
Expand Down Expand Up @@ -295,7 +253,7 @@ Style/TrailingCommaInHashLiteral:
Exclude:
- 'lib/report_portal/settings.rb'

# Offense count: 104
# Offense count: 99
# Cop supports --auto-correct.
# Configuration parameters: AutoCorrect, AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
# URISchemes: http, https
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@
## In Git (not released)

* reportportal/reportportal#293 - Re-licence client side to Apache 2.0
* Remove multipart monkeypatch of RestClient. Replace RestClient with HTTP gem as it supports multipart fine
45 changes: 0 additions & 45 deletions lib/report_portal/patches/rest_client.rb

This file was deleted.

Loading