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

Bump rubocop from 1.55.0 to 1.55.1 #511

Merged
merged 1 commit into from
Aug 1, 2023

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Aug 1, 2023

Bumps rubocop from 1.55.0 to 1.55.1.

Release notes

Sourced from rubocop's releases.

RuboCop 1.55.1

Bug fixes

  • #12068: Fix a false positive for Style/ReturnNilInPredicateMethodDefinition when the last method argument in method definition is nil. (@​koic)
  • #12082: Fix an error for Lint/UselessAssignment when a variable is assigned and unreferenced in for with multiple variables. (@​koic)
  • #12079: Fix an error for Style/MixinGrouping when mixin method has no arguments. (@​koic)
  • #11637: Correct Rubocop for private_class_method method documentation. (@​bigzed)
  • #12070: Fix false positive in Style/ArgumentsForwarding when receiver forwards args/kwargs. (@​owst)
Changelog

Sourced from rubocop's changelog.

1.55.1 (2023-07-31)

Bug fixes

  • #12068: Fix a false positive for Style/ReturnNilInPredicateMethodDefinition when the last method argument in method definition is nil. ([@​koic][])
  • #12082: Fix an error for Lint/UselessAssignment when a variable is assigned and unreferenced in for with multiple variables. ([@​koic][])
  • #12079: Fix an error for Style/MixinGrouping when mixin method has no arguments. ([@​koic][])
  • #11637: Correct Rubocop for private_class_method method documentation. ([@​bigzed][])
  • #12070: Fix false positive in Style/ArgumentsForwarding when receiver forwards args/kwargs. ([@​owst][])
Commits
  • 000ae57 Cut 1.55.1
  • 89c3045 Update Changelog
  • 6e01713 [Fix #12079] Fix an error for Style/MixinGrouping
  • ee26d06 [Fix #12082] Fix an error for Lint/UselessAssignment
  • 59e940b Use RuboCop RSpec 2.23
  • 28e1456 Make InternalAffairs/ExampleDescription aware of an incorrect term
  • 2e1d3f9 Fix a typo
  • 24f6e99 [Fix #12070] Fix false positive in Style/ArgumentsForwarding
  • 14e81ad [Fix #12068] Fix a false positive for `Style/ReturnNilInPredicateMethodDefini...
  • d5b52dc [Docs] Tweak examples for Bundler/OrderedGems and `Gemspec/OrderedDependenc...
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

@dependabot dependabot bot added dependencies ruby Pull requests that update Ruby code labels Aug 1, 2023
@github-actions
Copy link

github-actions bot commented Aug 1, 2023

@github-actions
Copy link

github-actions bot commented Aug 1, 2023

gem compare rubocop 1.55.0 1.55.1

Compared versions: ["1.55.0", "1.55.1"]
  DIFFERENT date:
    1.55.0: 2023-07-25 00:00:00 UTC
    1.55.1: 2023-07-31 00:00:00 UTC
  DIFFERENT version:
    1.55.0: 1.55.0
    1.55.1: 1.55.1
  DIFFERENT files:
    1.55.0->1.55.1:
      * Changed:
            lib/rubocop/cop/base.rb +1/-1
            lib/rubocop/cop/bundler/ordered_gems.rb +9/-1
            lib/rubocop/cop/gemspec/ordered_dependencies.rb +9/-1
            lib/rubocop/cop/internal_affairs/example_description.rb +2/-1
            lib/rubocop/cop/layout/space_around_method_call_operator.rb +2/-2
            lib/rubocop/cop/mixin/def_node.rb +1/-1
            lib/rubocop/cop/style/arguments_forwarding.rb +13/-9
            lib/rubocop/cop/style/mixin_grouping.rb +1/-1
            lib/rubocop/cop/style/return_nil_in_predicate_method_definition.rb +2/-0
            lib/rubocop/cop/variable_force/assignment.rb +1/-3
            lib/rubocop/version.rb +1/-1

@github-actions
Copy link

github-actions bot commented Aug 1, 2023

gem compare --diff rubocop 1.55.0 1.55.1

Compared versions: ["1.55.0", "1.55.1"]
  DIFFERENT files:
    1.55.0->1.55.1:
      * Changed:
        lib/rubocop/cop/base.rb
                --- /tmp/d20230801-2561-ga6trp/rubocop-1.55.0/lib/rubocop/cop/base.rb	2023-08-01 02:03:41.999696945 +0000
                +++ /tmp/d20230801-2561-ga6trp/rubocop-1.55.1/lib/rubocop/cop/base.rb	2023-08-01 02:03:42.311699797 +0000
                @@ -56 +56 @@
                -      # @return [Array<RuboCop::Cop::Cop>]
                +      # @return [Array<RuboCop::Cop::Base>]
        lib/rubocop/cop/bundler/ordered_gems.rb
                --- /tmp/d20230801-2561-ga6trp/rubocop-1.55.0/lib/rubocop/cop/bundler/ordered_gems.rb	2023-08-01 02:03:41.999696945 +0000
                +++ /tmp/d20230801-2561-ga6trp/rubocop-1.55.1/lib/rubocop/cop/bundler/ordered_gems.rb	2023-08-01 02:03:42.315699834 +0000
                @@ -22 +22,9 @@
                -      #   # good only if TreatCommentsAsGroupSeparators is true
                +      # @example TreatCommentsAsGroupSeparators: true (default)
                +      #   # good
                +      #   # For code quality
                +      #   gem 'rubocop'
                +      #   # For tests
                +      #   gem 'rspec'
                +      #
                +      # @example TreatCommentsAsGroupSeparators: false
                +      #   # bad
        lib/rubocop/cop/gemspec/ordered_dependencies.rb
                --- /tmp/d20230801-2561-ga6trp/rubocop-1.55.0/lib/rubocop/cop/gemspec/ordered_dependencies.rb	2023-08-01 02:03:42.007697018 +0000
                +++ /tmp/d20230801-2561-ga6trp/rubocop-1.55.1/lib/rubocop/cop/gemspec/ordered_dependencies.rb	2023-08-01 02:03:42.319699870 +0000
                @@ -48 +48,9 @@
                -      #   # good only if TreatCommentsAsGroupSeparators is true
                +      # @example TreatCommentsAsGroupSeparators: true (default)
                +      #   # good
                +      #   # For code quality
                +      #   spec.add_dependency 'rubocop'
                +      #   # For tests
                +      #   spec.add_dependency 'rspec'
                +      #
                +      # @example TreatCommentsAsGroupSeparators: false
                +      #   # bad
        lib/rubocop/cop/internal_affairs/example_description.rb
                --- /tmp/d20230801-2561-ga6trp/rubocop-1.55.0/lib/rubocop/cop/internal_affairs/example_description.rb	2023-08-01 02:03:42.011697055 +0000
                +++ /tmp/d20230801-2561-ga6trp/rubocop-1.55.1/lib/rubocop/cop/internal_affairs/example_description.rb	2023-08-01 02:03:42.323699907 +0000
                @@ -49 +49,2 @@
                -          /^(does not|doesn't) add (a|an|any )?offense/
                +          /^(does not|doesn't) add (a|an|any )?offense/,
                +          /^accepts\b/
        lib/rubocop/cop/layout/space_around_method_call_operator.rb
                --- /tmp/d20230801-2561-ga6trp/rubocop-1.55.0/lib/rubocop/cop/layout/space_around_method_call_operator.rb	2023-08-01 02:03:42.031697237 +0000
                +++ /tmp/d20230801-2561-ga6trp/rubocop-1.55.1/lib/rubocop/cop/layout/space_around_method_call_operator.rb	2023-08-01 02:03:42.343700090 +0000
                @@ -22 +22 @@
                -      #   RuboCop:: Cop:: Cop
                +      #   RuboCop:: Cop:: Base
                @@ -34 +34 @@
                -      #   RuboCop::Cop::Cop
                +      #   RuboCop::Cop::Base
        lib/rubocop/cop/mixin/def_node.rb
                --- /tmp/d20230801-2561-ga6trp/rubocop-1.55.0/lib/rubocop/cop/mixin/def_node.rb	2023-08-01 02:03:42.071697603 +0000
                +++ /tmp/d20230801-2561-ga6trp/rubocop-1.55.1/lib/rubocop/cop/mixin/def_node.rb	2023-08-01 02:03:42.503701553 +0000
                @@ -22 +22 @@
                -        (send nil? {:private :protected} ({def defs} ...))
                +        (send nil? {:private :protected :private_class_method} ({def defs} ...))
        lib/rubocop/cop/style/arguments_forwarding.rb
                --- /tmp/d20230801-2561-ga6trp/rubocop-1.55.0/lib/rubocop/cop/style/arguments_forwarding.rb	2023-08-01 02:03:42.087697749 +0000
                +++ /tmp/d20230801-2561-ga6trp/rubocop-1.55.1/lib/rubocop/cop/style/arguments_forwarding.rb	2023-08-01 02:03:42.575702211 +0000
                @@ -243,2 +243,2 @@
                -          # @!method find_forwarded_rest_arg(node, rest_name)
                -          def_node_search :find_forwarded_rest_arg, '(splat (lvar %1))'
                +          # @!method forwarded_rest_arg?(node, rest_name)
                +          def_node_matcher :forwarded_rest_arg?, '(splat (lvar %1))'
                @@ -246,2 +246,2 @@
                -          # @!method find_forwarded_kwrest_arg(node, kwrest_name)
                -          def_node_search :find_forwarded_kwrest_arg, '(kwsplat (lvar %1))'
                +          # @!method extract_forwarded_kwrest_arg(node, kwrest_name)
                +          def_node_matcher :extract_forwarded_kwrest_arg, '(hash <$(kwsplat (lvar %1)) ...>)'
                @@ -249,2 +249,2 @@
                -          # @!method find_forwarded_block_arg(node, block_name)
                -          def_node_search :find_forwarded_block_arg, '(block_pass {(lvar %1) nil?})'
                +          # @!method forwarded_block_arg?(node, block_name)
                +          def_node_matcher :forwarded_block_arg?, '(block_pass {(lvar %1) nil?})'
                @@ -265 +265 @@
                -            find_forwarded_rest_arg(@send_node, @rest_arg_name).first
                +            arguments.find { |arg| forwarded_rest_arg?(arg, @rest_arg_name) }
                @@ -271 +271 @@
                -            find_forwarded_kwrest_arg(@send_node, @kwrest_arg_name).first
                +            arguments.filter_map { |arg| extract_forwarded_kwrest_arg(arg, @kwrest_arg_name) }.first
                @@ -277 +277 @@
                -            find_forwarded_block_arg(@send_node, @block_arg_name).first
                +            arguments.find { |arg| forwarded_block_arg?(arg, @block_arg_name) }
                @@ -290,0 +291,4 @@
                +
                +          def arguments
                +            @send_node.arguments
                +          end
        lib/rubocop/cop/style/mixin_grouping.rb
                --- /tmp/d20230801-2561-ga6trp/rubocop-1.55.0/lib/rubocop/cop/style/mixin_grouping.rb	2023-08-01 02:03:42.251699249 +0000
                +++ /tmp/d20230801-2561-ga6trp/rubocop-1.55.1/lib/rubocop/cop/style/mixin_grouping.rb	2023-08-01 02:03:42.599702430 +0000
                @@ -43 +43 @@
                -            next unless MIXIN_METHODS.include?(macro.method_name)
                +            next if !MIXIN_METHODS.include?(macro.method_name) || macro.arguments.empty?
        lib/rubocop/cop/style/return_nil_in_predicate_method_definition.rb
                --- /tmp/d20230801-2561-ga6trp/rubocop-1.55.0/lib/rubocop/cop/style/return_nil_in_predicate_method_definition.rb	2023-08-01 02:03:42.267699395 +0000
                +++ /tmp/d20230801-2561-ga6trp/rubocop-1.55.1/lib/rubocop/cop/style/return_nil_in_predicate_method_definition.rb	2023-08-01 02:03:42.615702577 +0000
                @@ -79,0 +80,2 @@
                +          return body if body.nil_type?
                +          return unless body.begin_type?
        lib/rubocop/cop/variable_force/assignment.rb
                --- /tmp/d20230801-2561-ga6trp/rubocop-1.55.0/lib/rubocop/cop/variable_force/assignment.rb	2023-08-01 02:03:42.283699541 +0000
                +++ /tmp/d20230801-2561-ga6trp/rubocop-1.55.1/lib/rubocop/cop/variable_force/assignment.rb	2023-08-01 02:03:42.627702686 +0000
                @@ -122,3 +122 @@
                -          return nil unless node.parent&.for_type?
                -
                -          node.parent
                +          node.ancestors.find(&:for_type?)
        lib/rubocop/version.rb
                --- /tmp/d20230801-2561-ga6trp/rubocop-1.55.0/lib/rubocop/version.rb	2023-08-01 02:03:42.299699688 +0000
                +++ /tmp/d20230801-2561-ga6trp/rubocop-1.55.1/lib/rubocop/version.rb	2023-08-01 02:03:42.643702833 +0000
                @@ -6 +6 @@
                -    STRING = '1.55.0'
                +    STRING = '1.55.1'

@dentarg dentarg enabled auto-merge (squash) August 1, 2023 04:07
@dependabot dependabot bot force-pushed the dependabot/bundler/rubocop-1.55.1 branch from 2ebbba4 to 035be3c Compare August 1, 2023 04:08
Bumps [rubocop](https://github.com/rubocop/rubocop) from 1.55.0 to 1.55.1.
- [Release notes](https://github.com/rubocop/rubocop/releases)
- [Changelog](https://github.com/rubocop/rubocop/blob/master/CHANGELOG.md)
- [Commits](rubocop/rubocop@v1.55.0...v1.55.1)

---
updated-dependencies:
- dependency-name: rubocop
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot force-pushed the dependabot/bundler/rubocop-1.55.1 branch from 035be3c to 985cffe Compare August 1, 2023 04:10
@dentarg dentarg merged commit 581c8e0 into main Aug 1, 2023
5 checks passed
@dentarg dentarg deleted the dependabot/bundler/rubocop-1.55.1 branch August 1, 2023 04:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies ruby Pull requests that update Ruby code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant