-
Notifications
You must be signed in to change notification settings - Fork 983
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
Add latest rubocop and use Ruby 2.6+ #1311
Merged
Merged
Changes from all commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
00303b6
Use latest RuboCop, and bump Ruby req to 2.6
olleolleolle 43d5ef8
chore: Remove unnecessary lint skip
olleolleolle a782d48
Add all new RuboCop rules
olleolleolle 64b5d96
Regenerate RuboCop TODO file
olleolleolle 1fcfef4
Lint Style/RedundantBegin
olleolleolle 1b09973
Gemfile: unlock RuboCop to get 1.x
olleolleolle 50614b4
RuboCop: add new rules
olleolleolle 067f856
Lint: Style/HashConversion
olleolleolle b3fcff7
Lint: Layout/LineEndStringConcatenationIndentation
olleolleolle 4a1a7e5
Lint: Layout/EmptyLineBetweenDefs
olleolleolle 3ffa1f8
Lint: Layout/LineEndStringConcatenationIndentation
olleolleolle d4539a2
Lint: Style/RedundantSelfAssignmentBranch
olleolleolle 495ae88
Lint: Avoid an issue with numeric suffix
olleolleolle c6a0274
RuboCop: Update .rubocop_todo.yml
olleolleolle aea55cb
Lint: Style/NegatedIfElseCondition
olleolleolle 7afb26e
Gem rubocop-inclusivity features are now upstream
olleolleolle 0ae6062
Lint: Style/PerlBackrefs
olleolleolle 9481d7d
Lint: skip Performance/StringInclude
olleolleolle 56a2456
Lint: Performance/BlockGivenWithExplicitBlock, and...
olleolleolle 80dd7d8
Lint: Lint/RedundantSafeNavigation
olleolleolle File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,57 @@ | ||
# This configuration was generated by | ||
# `rubocop --auto-gen-config` | ||
# on 2021-04-14 06:51:37 UTC using RuboCop version 0.90.0. | ||
# on 2021-08-16 15:31:43 UTC using RuboCop version 1.19.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: 26 | ||
# Configuration parameters: IgnoredMethods. | ||
# Offense count: 7 | ||
# Configuration parameters: AllowedMethods. | ||
# AllowedMethods: enums | ||
Lint/ConstantDefinitionInBlock: | ||
Exclude: | ||
- 'spec/faraday/composite_read_io_spec.rb' | ||
- 'spec/faraday/options/options_spec.rb' | ||
- 'spec/faraday/rack_builder_spec.rb' | ||
- 'spec/faraday/request/instrumentation_spec.rb' | ||
|
||
# Offense count: 11 | ||
# Configuration parameters: AllowComments, AllowEmptyLambdas. | ||
Lint/EmptyBlock: | ||
Exclude: | ||
- 'spec/faraday/connection_spec.rb' | ||
- 'spec/faraday/rack_builder_spec.rb' | ||
- 'spec/faraday/response_spec.rb' | ||
|
||
# Offense count: 16 | ||
# Configuration parameters: IgnoredMethods, CountRepeatedAttributes. | ||
Metrics/AbcSize: | ||
Max: 42 | ||
|
||
# Offense count: 5 | ||
# Offense count: 3 | ||
# Configuration parameters: CountComments, CountAsOne. | ||
Metrics/ClassLength: | ||
Max: 256 | ||
Max: 226 | ||
|
||
# Offense count: 15 | ||
# Offense count: 12 | ||
# Configuration parameters: IgnoredMethods. | ||
Metrics/CyclomaticComplexity: | ||
Max: 13 | ||
|
||
# Offense count: 43 | ||
# Configuration parameters: CountComments, CountAsOne, ExcludedMethods. | ||
# Offense count: 27 | ||
# Configuration parameters: CountComments, CountAsOne, ExcludedMethods, IgnoredMethods. | ||
Metrics/MethodLength: | ||
Max: 37 | ||
Max: 33 | ||
|
||
# Offense count: 9 | ||
# Offense count: 8 | ||
# Configuration parameters: IgnoredMethods. | ||
Metrics/PerceivedComplexity: | ||
Max: 14 | ||
|
||
# Offense count: 3 | ||
Style/DocumentDynamicEvalDefinition: | ||
Exclude: | ||
- 'lib/faraday/connection.rb' | ||
- 'lib/faraday/options.rb' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,8 +12,10 @@ def call(env) | |
|
||
class Apple < Handler | ||
end | ||
|
||
class Orange < Handler | ||
end | ||
|
||
class Banana < Handler | ||
end | ||
|
||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I want to talk a bit about this rule, since the fix will have visual impact, and we'd like to pick the nicest alternative.