From 9cb7975b18586eb17f6fe6912973d2a7acee45e0 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 25 May 2022 14:17:53 +0000 Subject: [PATCH 1/3] build(deps): bump rubocop-performance in /Library/Homebrew Bumps [rubocop-performance](https://github.com/rubocop/rubocop-performance) from 1.13.3 to 1.14.0. - [Release notes](https://github.com/rubocop/rubocop-performance/releases) - [Changelog](https://github.com/rubocop/rubocop-performance/blob/master/CHANGELOG.md) - [Commits](https://github.com/rubocop/rubocop-performance/compare/v1.13.3...v1.14.0) --- updated-dependencies: - dependency-name: rubocop-performance dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- Library/Homebrew/Gemfile.lock | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/Gemfile.lock b/Library/Homebrew/Gemfile.lock index cbe822b5f9..291e96c2e8 100644 --- a/Library/Homebrew/Gemfile.lock +++ b/Library/Homebrew/Gemfile.lock @@ -134,7 +134,7 @@ GEM unicode-display_width (>= 1.4.0, < 3.0) rubocop-ast (1.18.0) parser (>= 3.1.1.0) - rubocop-performance (1.13.3) + rubocop-performance (1.14.0) rubocop (>= 1.7.0, < 2.0) rubocop-ast (>= 0.4.0) rubocop-rails (2.14.2) From 554eaa27da5f2dcdabed79e0816f0f55ac323bee Mon Sep 17 00:00:00 2001 From: BrewTestBot <1589480+BrewTestBot@users.noreply.github.com> Date: Wed, 25 May 2022 14:23:59 +0000 Subject: [PATCH 2/3] brew vendor-gems: commit updates. --- .../Homebrew/vendor/bundle/bundler/setup.rb | 2 +- .../config/default.yml | 2 +- .../config/obsoletion.yml | 0 .../lib/rubocop-performance.rb | 0 .../rubocop/cop/mixin/regexp_metacharacter.rb | 4 ++-- .../lib/rubocop/cop/mixin/sort_block.rb | 0 .../cop/performance/ancestors_include.rb | 3 +-- .../array_semi_infinite_range_slice.rb | 2 +- .../big_decimal_with_numeric_argument.rb | 2 +- .../lib/rubocop/cop/performance/bind_call.rb | 0 .../block_given_with_explicit_block.rb | 2 +- .../lib/rubocop/cop/performance/caller.rb | 3 +-- .../cop/performance/case_when_splat.rb | 4 ++-- .../lib/rubocop/cop/performance/casecmp.rb | 22 +++++++++---------- .../cop/performance/chain_array_allocation.rb | 2 +- .../performance/collection_literal_in_loop.rb | 4 ++-- .../cop/performance/compare_with_block.rb | 2 +- .../performance/concurrent_monotonic_time.rb | 2 +- .../cop/performance/constant_regexp.rb | 2 +- .../lib/rubocop/cop/performance/count.rb | 2 +- .../rubocop/cop/performance/delete_prefix.rb | 3 +++ .../rubocop/cop/performance/delete_suffix.rb | 3 +++ .../lib/rubocop/cop/performance/detect.rb | 2 +- .../cop/performance/double_start_end_with.rb | 2 +- .../lib/rubocop/cop/performance/end_with.rb | 2 +- .../lib/rubocop/cop/performance/fixed_size.rb | 0 .../lib/rubocop/cop/performance/flat_map.rb | 2 +- .../performance/inefficient_hash_search.rb | 2 +- .../rubocop/cop/performance/io_readlines.rb | 2 +- .../rubocop/cop/performance/map_compact.rb | 0 .../cop/performance/method_object_as_block.rb | 2 +- .../rubocop/cop/performance/open_struct.rb | 2 +- .../rubocop/cop/performance/range_include.rb | 4 ++-- .../cop/performance/redundant_block_call.rb | 2 +- .../redundant_equality_comparison_block.rb | 5 ++++- .../cop/performance/redundant_match.rb | 2 +- .../cop/performance/redundant_merge.rb | 3 +-- .../cop/performance/redundant_sort_block.rb | 3 +-- .../redundant_split_regexp_argument.rb | 2 +- .../cop/performance/redundant_string_chars.rb | 2 +- .../rubocop/cop/performance/regexp_match.rb | 0 .../rubocop/cop/performance/reverse_each.rb | 3 +-- .../rubocop/cop/performance/reverse_first.rb | 2 +- .../lib/rubocop/cop/performance/select_map.rb | 0 .../lib/rubocop/cop/performance/size.rb | 3 +-- .../rubocop/cop/performance/sort_reverse.rb | 2 +- .../lib/rubocop/cop/performance/squeeze.rb | 2 +- .../lib/rubocop/cop/performance/start_with.rb | 2 +- .../performance/string_identifier_argument.rb | 4 ++-- .../rubocop/cop/performance/string_include.rb | 5 ++--- .../cop/performance/string_replacement.rb | 3 +-- .../lib/rubocop/cop/performance/sum.rb | 2 +- .../lib/rubocop/cop/performance/times_map.rb | 2 +- .../cop/performance/unfreeze_string.rb | 0 .../cop/performance/uri_default_parser.rb | 3 +-- .../lib/rubocop/cop/performance_cops.rb | 0 .../lib/rubocop/performance.rb | 0 .../lib/rubocop/performance/inject.rb | 0 .../lib/rubocop/performance/version.rb | 2 +- 59 files changed, 69 insertions(+), 71 deletions(-) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rubocop-performance-1.13.3 => rubocop-performance-1.14.0}/config/default.yml (99%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rubocop-performance-1.13.3 => rubocop-performance-1.14.0}/config/obsoletion.yml (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rubocop-performance-1.13.3 => rubocop-performance-1.14.0}/lib/rubocop-performance.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rubocop-performance-1.13.3 => rubocop-performance-1.14.0}/lib/rubocop/cop/mixin/regexp_metacharacter.rb (96%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rubocop-performance-1.13.3 => rubocop-performance-1.14.0}/lib/rubocop/cop/mixin/sort_block.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rubocop-performance-1.13.3 => rubocop-performance-1.14.0}/lib/rubocop/cop/performance/ancestors_include.rb (92%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rubocop-performance-1.13.3 => rubocop-performance-1.14.0}/lib/rubocop/cop/performance/array_semi_infinite_range_slice.rb (96%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rubocop-performance-1.13.3 => rubocop-performance-1.14.0}/lib/rubocop/cop/performance/big_decimal_with_numeric_argument.rb (95%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rubocop-performance-1.13.3 => rubocop-performance-1.14.0}/lib/rubocop/cop/performance/bind_call.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rubocop-performance-1.13.3 => rubocop-performance-1.14.0}/lib/rubocop/cop/performance/block_given_with_explicit_block.rb (94%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rubocop-performance-1.13.3 => rubocop-performance-1.14.0}/lib/rubocop/cop/performance/caller.rb (94%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rubocop-performance-1.13.3 => rubocop-performance-1.14.0}/lib/rubocop/cop/performance/case_when_splat.rb (98%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rubocop-performance-1.13.3 => rubocop-performance-1.14.0}/lib/rubocop/cop/performance/casecmp.rb (80%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rubocop-performance-1.13.3 => rubocop-performance-1.14.0}/lib/rubocop/cop/performance/chain_array_allocation.rb (96%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rubocop-performance-1.13.3 => rubocop-performance-1.14.0}/lib/rubocop/cop/performance/collection_literal_in_loop.rb (96%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rubocop-performance-1.13.3 => rubocop-performance-1.14.0}/lib/rubocop/cop/performance/compare_with_block.rb (97%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rubocop-performance-1.13.3 => rubocop-performance-1.14.0}/lib/rubocop/cop/performance/concurrent_monotonic_time.rb (94%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rubocop-performance-1.13.3 => rubocop-performance-1.14.0}/lib/rubocop/cop/performance/constant_regexp.rb (95%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rubocop-performance-1.13.3 => rubocop-performance-1.14.0}/lib/rubocop/cop/performance/count.rb (97%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rubocop-performance-1.13.3 => rubocop-performance-1.14.0}/lib/rubocop/cop/performance/delete_prefix.rb (97%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rubocop-performance-1.13.3 => rubocop-performance-1.14.0}/lib/rubocop/cop/performance/delete_suffix.rb (97%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rubocop-performance-1.13.3 => rubocop-performance-1.14.0}/lib/rubocop/cop/performance/detect.rb (98%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rubocop-performance-1.13.3 => rubocop-performance-1.14.0}/lib/rubocop/cop/performance/double_start_end_with.rb (98%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rubocop-performance-1.13.3 => rubocop-performance-1.14.0}/lib/rubocop/cop/performance/end_with.rb (96%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rubocop-performance-1.13.3 => rubocop-performance-1.14.0}/lib/rubocop/cop/performance/fixed_size.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rubocop-performance-1.13.3 => rubocop-performance-1.14.0}/lib/rubocop/cop/performance/flat_map.rb (97%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rubocop-performance-1.13.3 => rubocop-performance-1.14.0}/lib/rubocop/cop/performance/inefficient_hash_search.rb (97%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rubocop-performance-1.13.3 => rubocop-performance-1.14.0}/lib/rubocop/cop/performance/io_readlines.rb (98%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rubocop-performance-1.13.3 => rubocop-performance-1.14.0}/lib/rubocop/cop/performance/map_compact.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rubocop-performance-1.13.3 => rubocop-performance-1.14.0}/lib/rubocop/cop/performance/method_object_as_block.rb (91%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rubocop-performance-1.13.3 => rubocop-performance-1.14.0}/lib/rubocop/cop/performance/open_struct.rb (96%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rubocop-performance-1.13.3 => rubocop-performance-1.14.0}/lib/rubocop/cop/performance/range_include.rb (92%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rubocop-performance-1.13.3 => rubocop-performance-1.14.0}/lib/rubocop/cop/performance/redundant_block_call.rb (97%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rubocop-performance-1.13.3 => rubocop-performance-1.14.0}/lib/rubocop/cop/performance/redundant_equality_comparison_block.rb (95%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rubocop-performance-1.13.3 => rubocop-performance-1.14.0}/lib/rubocop/cop/performance/redundant_match.rb (95%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rubocop-performance-1.13.3 => rubocop-performance-1.14.0}/lib/rubocop/cop/performance/redundant_merge.rb (98%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rubocop-performance-1.13.3 => rubocop-performance-1.14.0}/lib/rubocop/cop/performance/redundant_sort_block.rb (90%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rubocop-performance-1.13.3 => rubocop-performance-1.14.0}/lib/rubocop/cop/performance/redundant_split_regexp_argument.rb (95%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rubocop-performance-1.13.3 => rubocop-performance-1.14.0}/lib/rubocop/cop/performance/redundant_string_chars.rb (98%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rubocop-performance-1.13.3 => rubocop-performance-1.14.0}/lib/rubocop/cop/performance/regexp_match.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rubocop-performance-1.13.3 => rubocop-performance-1.14.0}/lib/rubocop/cop/performance/reverse_each.rb (92%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rubocop-performance-1.13.3 => rubocop-performance-1.14.0}/lib/rubocop/cop/performance/reverse_first.rb (95%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rubocop-performance-1.13.3 => rubocop-performance-1.14.0}/lib/rubocop/cop/performance/select_map.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rubocop-performance-1.13.3 => rubocop-performance-1.14.0}/lib/rubocop/cop/performance/size.rb (94%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rubocop-performance-1.13.3 => rubocop-performance-1.14.0}/lib/rubocop/cop/performance/sort_reverse.rb (94%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rubocop-performance-1.13.3 => rubocop-performance-1.14.0}/lib/rubocop/cop/performance/squeeze.rb (95%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rubocop-performance-1.13.3 => rubocop-performance-1.14.0}/lib/rubocop/cop/performance/start_with.rb (96%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rubocop-performance-1.13.3 => rubocop-performance-1.14.0}/lib/rubocop/cop/performance/string_identifier_argument.rb (93%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rubocop-performance-1.13.3 => rubocop-performance-1.14.0}/lib/rubocop/cop/performance/string_include.rb (89%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rubocop-performance-1.13.3 => rubocop-performance-1.14.0}/lib/rubocop/cop/performance/string_replacement.rb (98%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rubocop-performance-1.13.3 => rubocop-performance-1.14.0}/lib/rubocop/cop/performance/sum.rb (99%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rubocop-performance-1.13.3 => rubocop-performance-1.14.0}/lib/rubocop/cop/performance/times_map.rb (97%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rubocop-performance-1.13.3 => rubocop-performance-1.14.0}/lib/rubocop/cop/performance/unfreeze_string.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rubocop-performance-1.13.3 => rubocop-performance-1.14.0}/lib/rubocop/cop/performance/uri_default_parser.rb (90%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rubocop-performance-1.13.3 => rubocop-performance-1.14.0}/lib/rubocop/cop/performance_cops.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rubocop-performance-1.13.3 => rubocop-performance-1.14.0}/lib/rubocop/performance.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rubocop-performance-1.13.3 => rubocop-performance-1.14.0}/lib/rubocop/performance/inject.rb (100%) rename Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/{rubocop-performance-1.13.3 => rubocop-performance-1.14.0}/lib/rubocop/performance/version.rb (91%) diff --git a/Library/Homebrew/vendor/bundle/bundler/setup.rb b/Library/Homebrew/vendor/bundle/bundler/setup.rb index e8a6014bfa..d6c40895d1 100644 --- a/Library/Homebrew/vendor/bundle/bundler/setup.rb +++ b/Library/Homebrew/vendor/bundle/bundler/setup.rb @@ -85,7 +85,7 @@ $:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/rubocop-ast-1.18.0/li $:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/ruby-progressbar-1.11.0/lib" $:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/unicode-display_width-2.1.0/lib" $:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/rubocop-1.27.0/lib" -$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/rubocop-performance-1.13.3/lib" +$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/rubocop-performance-1.14.0/lib" $:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/rubocop-rails-2.14.2/lib" $:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/rubocop-rspec-2.11.1/lib" $:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/rubocop-sorbet-0.6.8/lib" diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.13.3/config/default.yml b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.14.0/config/default.yml similarity index 99% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.13.3/config/default.yml rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.14.0/config/default.yml index b0fe7a584b..1f67d2d54e 100644 --- a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.13.3/config/default.yml +++ b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.14.0/config/default.yml @@ -247,7 +247,7 @@ Performance/RedundantSortBlock: VersionAdded: '1.7' Performance/RedundantSplitRegexpArgument: - Description: 'This cop identifies places where `split` argument can be replaced from a deterministic regexp to a string.' + Description: 'Identifies places where `split` argument can be replaced from a deterministic regexp to a string.' Enabled: pending VersionAdded: '1.10' diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.13.3/config/obsoletion.yml b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.14.0/config/obsoletion.yml similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.13.3/config/obsoletion.yml rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.14.0/config/obsoletion.yml diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.13.3/lib/rubocop-performance.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.14.0/lib/rubocop-performance.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.13.3/lib/rubocop-performance.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.14.0/lib/rubocop-performance.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.13.3/lib/rubocop/cop/mixin/regexp_metacharacter.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.14.0/lib/rubocop/cop/mixin/regexp_metacharacter.rb similarity index 96% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.13.3/lib/rubocop/cop/mixin/regexp_metacharacter.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.14.0/lib/rubocop/cop/mixin/regexp_metacharacter.rb index db41b0af87..e1f543b8c5 100644 --- a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.13.3/lib/rubocop/cop/mixin/regexp_metacharacter.rb +++ b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.14.0/lib/rubocop/cop/mixin/regexp_metacharacter.rb @@ -54,9 +54,9 @@ module RuboCop def drop_start_metacharacter(regexp_string) if regexp_string.start_with?('\\A') - regexp_string[2..-1] # drop `\A` anchor + regexp_string[2..] # drop `\A` anchor else - regexp_string[1..-1] # drop `^` anchor + regexp_string[1..] # drop `^` anchor end end diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.13.3/lib/rubocop/cop/mixin/sort_block.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.14.0/lib/rubocop/cop/mixin/sort_block.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.13.3/lib/rubocop/cop/mixin/sort_block.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.14.0/lib/rubocop/cop/mixin/sort_block.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.13.3/lib/rubocop/cop/performance/ancestors_include.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.14.0/lib/rubocop/cop/performance/ancestors_include.rb similarity index 92% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.13.3/lib/rubocop/cop/performance/ancestors_include.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.14.0/lib/rubocop/cop/performance/ancestors_include.rb index 5d3b577428..a65db86b0c 100644 --- a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.13.3/lib/rubocop/cop/performance/ancestors_include.rb +++ b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.14.0/lib/rubocop/cop/performance/ancestors_include.rb @@ -3,8 +3,7 @@ module RuboCop module Cop module Performance - # This cop is used to identify usages of `ancestors.include?` and - # change them to use `<=` instead. + # Identifies usages of `ancestors.include?` and change them to use `<=` instead. # # @safety # This cop is unsafe because it can't tell whether the receiver is a class or an object. diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.13.3/lib/rubocop/cop/performance/array_semi_infinite_range_slice.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.14.0/lib/rubocop/cop/performance/array_semi_infinite_range_slice.rb similarity index 96% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.13.3/lib/rubocop/cop/performance/array_semi_infinite_range_slice.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.14.0/lib/rubocop/cop/performance/array_semi_infinite_range_slice.rb index 04f417fd2a..a81b40f132 100644 --- a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.13.3/lib/rubocop/cop/performance/array_semi_infinite_range_slice.rb +++ b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.14.0/lib/rubocop/cop/performance/array_semi_infinite_range_slice.rb @@ -3,7 +3,7 @@ module RuboCop module Cop module Performance - # This cop identifies places where slicing arrays with semi-infinite ranges + # Identifies places where slicing arrays with semi-infinite ranges # can be replaced by `Array#take` and `Array#drop`. # This cop was created due to a mistake in microbenchmark and hence is disabled by default. # Refer https://github.com/rubocop/rubocop-performance/pull/175#issuecomment-731892717 diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.13.3/lib/rubocop/cop/performance/big_decimal_with_numeric_argument.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.14.0/lib/rubocop/cop/performance/big_decimal_with_numeric_argument.rb similarity index 95% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.13.3/lib/rubocop/cop/performance/big_decimal_with_numeric_argument.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.14.0/lib/rubocop/cop/performance/big_decimal_with_numeric_argument.rb index dfddc2e59f..d41d38c397 100644 --- a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.13.3/lib/rubocop/cop/performance/big_decimal_with_numeric_argument.rb +++ b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.14.0/lib/rubocop/cop/performance/big_decimal_with_numeric_argument.rb @@ -3,7 +3,7 @@ module RuboCop module Cop module Performance - # This cop identifies places where numeric argument to BigDecimal should be + # Identifies places where numeric argument to BigDecimal should be # converted to string. Initializing from String is faster # than from Numeric for BigDecimal. # diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.13.3/lib/rubocop/cop/performance/bind_call.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.14.0/lib/rubocop/cop/performance/bind_call.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.13.3/lib/rubocop/cop/performance/bind_call.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.14.0/lib/rubocop/cop/performance/bind_call.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.13.3/lib/rubocop/cop/performance/block_given_with_explicit_block.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.14.0/lib/rubocop/cop/performance/block_given_with_explicit_block.rb similarity index 94% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.13.3/lib/rubocop/cop/performance/block_given_with_explicit_block.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.14.0/lib/rubocop/cop/performance/block_given_with_explicit_block.rb index e8c32d0194..4c717d2774 100644 --- a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.13.3/lib/rubocop/cop/performance/block_given_with_explicit_block.rb +++ b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.14.0/lib/rubocop/cop/performance/block_given_with_explicit_block.rb @@ -3,7 +3,7 @@ module RuboCop module Cop module Performance - # This cop identifies unnecessary use of a `block_given?` where explicit check + # Identifies unnecessary use of a `block_given?` where explicit check # of block argument would suffice. # # @example diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.13.3/lib/rubocop/cop/performance/caller.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.14.0/lib/rubocop/cop/performance/caller.rb similarity index 94% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.13.3/lib/rubocop/cop/performance/caller.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.14.0/lib/rubocop/cop/performance/caller.rb index a071c04b8c..bba8758a6b 100644 --- a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.13.3/lib/rubocop/cop/performance/caller.rb +++ b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.14.0/lib/rubocop/cop/performance/caller.rb @@ -3,8 +3,7 @@ module RuboCop module Cop module Performance - # This cop identifies places where `caller[n]` - # can be replaced by `caller(n..n).first`. + # Identifies places where `caller[n]` can be replaced by `caller(n..n).first`. # # @example # # bad diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.13.3/lib/rubocop/cop/performance/case_when_splat.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.14.0/lib/rubocop/cop/performance/case_when_splat.rb similarity index 98% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.13.3/lib/rubocop/cop/performance/case_when_splat.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.14.0/lib/rubocop/cop/performance/case_when_splat.rb index 241bc8a94c..20ca76efbc 100644 --- a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.13.3/lib/rubocop/cop/performance/case_when_splat.rb +++ b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.14.0/lib/rubocop/cop/performance/case_when_splat.rb @@ -18,7 +18,7 @@ module RuboCop # that is inside of the splat expansion. # # @safety - # This cop is not unsafe auto-correction because it is not a guaranteed + # This cop is not unsafe autocorrection because it is not a guaranteed # performance improvement. If the data being processed by the `case` condition is # normalized in a manner that favors hitting a condition in the splat expansion, # it is possible that moving the splat condition to the end will use more memory, @@ -168,7 +168,7 @@ module RuboCop def needs_reorder?(when_node) following_branches = - when_node.parent.when_branches[(when_node.branch_index + 1)..-1] + when_node.parent.when_branches[(when_node.branch_index + 1)..] following_branches.any? do |when_branch| when_branch.conditions.any? do |condition| diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.13.3/lib/rubocop/cop/performance/casecmp.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.14.0/lib/rubocop/cop/performance/casecmp.rb similarity index 80% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.13.3/lib/rubocop/cop/performance/casecmp.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.14.0/lib/rubocop/cop/performance/casecmp.rb index b92ef41a14..29471c7d59 100644 --- a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.13.3/lib/rubocop/cop/performance/casecmp.rb +++ b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.14.0/lib/rubocop/cop/performance/casecmp.rb @@ -3,7 +3,7 @@ module RuboCop module Cop module Performance - # This cop identifies places where a case-insensitive string comparison + # Identifies places where a case-insensitive string comparison # can better be implemented using `casecmp`. # # @safety @@ -54,11 +54,11 @@ module RuboCop return unless (parts = take_method_apart(node)) _receiver, method, arg, variable = parts - good_method = build_good_method(arg, variable) + good_method = build_good_method(method, arg, variable) message = format(MSG, good: good_method, bad: node.source) add_offense(node, message: message) do |corrector| - correction(corrector, node, method, arg, variable) + autocorrect(corrector, node, good_method) end end @@ -81,22 +81,20 @@ module RuboCop [receiver, method, arg, variable] end - def correction(corrector, node, method, arg, variable) - corrector.insert_before(node.loc.expression, '!') if method == :!= - - replacement = build_good_method(arg, variable) - - corrector.replace(node.loc.expression, replacement) + def autocorrect(corrector, node, replacement) + corrector.replace(node, replacement) end - def build_good_method(arg, variable) + def build_good_method(method, arg, variable) + bang = method == :!= ? '!' : '' + # We want resulting call to be parenthesized # if arg already includes one or more sets of parens, don't add more # or if method call already used parens, again, don't add more if arg.send_type? || !parentheses?(arg) - "#{variable.source}.casecmp(#{arg.source}).zero?" + "#{bang}#{variable.source}.casecmp(#{arg.source}).zero?" else - "#{variable.source}.casecmp#{arg.source}.zero?" + "#{bang}#{variable.source}.casecmp#{arg.source}.zero?" end end end diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.13.3/lib/rubocop/cop/performance/chain_array_allocation.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.14.0/lib/rubocop/cop/performance/chain_array_allocation.rb similarity index 96% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.13.3/lib/rubocop/cop/performance/chain_array_allocation.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.14.0/lib/rubocop/cop/performance/chain_array_allocation.rb index 3d589261c9..84a33f53f7 100644 --- a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.13.3/lib/rubocop/cop/performance/chain_array_allocation.rb +++ b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.14.0/lib/rubocop/cop/performance/chain_array_allocation.rb @@ -3,7 +3,7 @@ module RuboCop module Cop module Performance - # This cop is used to identify usages of `array.compact.flatten.map { |x| x.downcase }`. + # Identifies usages of `array.compact.flatten.map { |x| x.downcase }`. # Each of these methods (`compact`, `flatten`, `map`) will generate a new intermediate array # that is promptly thrown away. Instead it is faster to mutate when we know it's safe. # diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.13.3/lib/rubocop/cop/performance/collection_literal_in_loop.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.14.0/lib/rubocop/cop/performance/collection_literal_in_loop.rb similarity index 96% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.13.3/lib/rubocop/cop/performance/collection_literal_in_loop.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.14.0/lib/rubocop/cop/performance/collection_literal_in_loop.rb index a9c5130ff3..5803594fa7 100644 --- a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.13.3/lib/rubocop/cop/performance/collection_literal_in_loop.rb +++ b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.14.0/lib/rubocop/cop/performance/collection_literal_in_loop.rb @@ -5,8 +5,8 @@ require 'set' module RuboCop module Cop module Performance - # This cop identifies places where Array and Hash literals are used - # within loops. It is better to extract them into a local variable or constant + # Identifies places where Array and Hash literals are used within loops. + # It is better to extract them into a local variable or constant # to avoid unnecessary allocations on each iteration. # # You can set the minimum number of elements to consider diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.13.3/lib/rubocop/cop/performance/compare_with_block.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.14.0/lib/rubocop/cop/performance/compare_with_block.rb similarity index 97% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.13.3/lib/rubocop/cop/performance/compare_with_block.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.14.0/lib/rubocop/cop/performance/compare_with_block.rb index de782cbf70..cfbbb1de9b 100644 --- a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.13.3/lib/rubocop/cop/performance/compare_with_block.rb +++ b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.14.0/lib/rubocop/cop/performance/compare_with_block.rb @@ -3,7 +3,7 @@ module RuboCop module Cop module Performance - # This cop identifies places where `sort { |a, b| a.foo <=> b.foo }` + # Identifies places where `sort { |a, b| a.foo <=> b.foo }` # can be replaced by `sort_by(&:foo)`. # This cop also checks `max` and `min` methods. # diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.13.3/lib/rubocop/cop/performance/concurrent_monotonic_time.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.14.0/lib/rubocop/cop/performance/concurrent_monotonic_time.rb similarity index 94% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.13.3/lib/rubocop/cop/performance/concurrent_monotonic_time.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.14.0/lib/rubocop/cop/performance/concurrent_monotonic_time.rb index a636b00cfb..9756070b91 100644 --- a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.13.3/lib/rubocop/cop/performance/concurrent_monotonic_time.rb +++ b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.14.0/lib/rubocop/cop/performance/concurrent_monotonic_time.rb @@ -3,7 +3,7 @@ module RuboCop module Cop module Performance - # This cop identifies places where `Concurrent.monotonic_time` + # Identifies places where `Concurrent.monotonic_time` # can be replaced by `Process.clock_gettime(Process::CLOCK_MONOTONIC)`. # # @example diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.13.3/lib/rubocop/cop/performance/constant_regexp.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.14.0/lib/rubocop/cop/performance/constant_regexp.rb similarity index 95% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.13.3/lib/rubocop/cop/performance/constant_regexp.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.14.0/lib/rubocop/cop/performance/constant_regexp.rb index dcb55dd0fd..af70c73966 100644 --- a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.13.3/lib/rubocop/cop/performance/constant_regexp.rb +++ b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.14.0/lib/rubocop/cop/performance/constant_regexp.rb @@ -3,7 +3,7 @@ module RuboCop module Cop module Performance - # This cop finds regular expressions with dynamic components that are all constants. + # Finds regular expressions with dynamic components that are all constants. # # Ruby allocates a new Regexp object every time it executes a code containing such # a regular expression. It is more efficient to extract it into a constant, diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.13.3/lib/rubocop/cop/performance/count.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.14.0/lib/rubocop/cop/performance/count.rb similarity index 97% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.13.3/lib/rubocop/cop/performance/count.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.14.0/lib/rubocop/cop/performance/count.rb index 935ba4cd12..d3d3233570 100644 --- a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.13.3/lib/rubocop/cop/performance/count.rb +++ b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.14.0/lib/rubocop/cop/performance/count.rb @@ -3,7 +3,7 @@ module RuboCop module Cop module Performance - # This cop is used to identify usages of `count` on an `Enumerable` that + # Identifies usages of `count` on an `Enumerable` that # follow calls to `select`, `find_all`, `filter` or `reject`. Querying logic can instead be # passed to the `count` call. # diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.13.3/lib/rubocop/cop/performance/delete_prefix.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.14.0/lib/rubocop/cop/performance/delete_prefix.rb similarity index 97% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.13.3/lib/rubocop/cop/performance/delete_prefix.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.14.0/lib/rubocop/cop/performance/delete_prefix.rb index e0279adc89..4df4f6f120 100644 --- a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.13.3/lib/rubocop/cop/performance/delete_prefix.rb +++ b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.14.0/lib/rubocop/cop/performance/delete_prefix.rb @@ -49,6 +49,9 @@ module RuboCop class DeletePrefix < Base include RegexpMetacharacter extend AutoCorrector + extend TargetRubyVersion + + minimum_target_ruby_version 2.5 MSG = 'Use `%s` instead of `%s`.' RESTRICT_ON_SEND = %i[gsub gsub! sub sub!].freeze diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.13.3/lib/rubocop/cop/performance/delete_suffix.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.14.0/lib/rubocop/cop/performance/delete_suffix.rb similarity index 97% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.13.3/lib/rubocop/cop/performance/delete_suffix.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.14.0/lib/rubocop/cop/performance/delete_suffix.rb index 49fe964397..ae13359db1 100644 --- a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.13.3/lib/rubocop/cop/performance/delete_suffix.rb +++ b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.14.0/lib/rubocop/cop/performance/delete_suffix.rb @@ -49,6 +49,9 @@ module RuboCop class DeleteSuffix < Base include RegexpMetacharacter extend AutoCorrector + extend TargetRubyVersion + + minimum_target_ruby_version 2.5 MSG = 'Use `%s` instead of `%s`.' RESTRICT_ON_SEND = %i[gsub gsub! sub sub!].freeze diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.13.3/lib/rubocop/cop/performance/detect.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.14.0/lib/rubocop/cop/performance/detect.rb similarity index 98% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.13.3/lib/rubocop/cop/performance/detect.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.14.0/lib/rubocop/cop/performance/detect.rb index 7ad329cddd..1cee1e8d93 100644 --- a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.13.3/lib/rubocop/cop/performance/detect.rb +++ b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.14.0/lib/rubocop/cop/performance/detect.rb @@ -3,7 +3,7 @@ module RuboCop module Cop module Performance - # This cop is used to identify usages of `first`, `last`, `[0]` or `[-1]` + # Identifies usages of `first`, `last`, `[0]` or `[-1]` # chained to `select`, `find_all` or `filter` and change them to use # `detect` instead. # diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.13.3/lib/rubocop/cop/performance/double_start_end_with.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.14.0/lib/rubocop/cop/performance/double_start_end_with.rb similarity index 98% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.13.3/lib/rubocop/cop/performance/double_start_end_with.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.14.0/lib/rubocop/cop/performance/double_start_end_with.rb index d9af50cfd4..3f922ba502 100644 --- a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.13.3/lib/rubocop/cop/performance/double_start_end_with.rb +++ b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.14.0/lib/rubocop/cop/performance/double_start_end_with.rb @@ -3,7 +3,7 @@ module RuboCop module Cop module Performance - # This cop checks for double `#start_with?` or `#end_with?` calls + # Checks for double `#start_with?` or `#end_with?` calls # separated by `||`. In some cases such calls can be replaced # with an single `#start_with?`/`#end_with?` call. # diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.13.3/lib/rubocop/cop/performance/end_with.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.14.0/lib/rubocop/cop/performance/end_with.rb similarity index 96% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.13.3/lib/rubocop/cop/performance/end_with.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.14.0/lib/rubocop/cop/performance/end_with.rb index b9b19fff12..460367be6c 100644 --- a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.13.3/lib/rubocop/cop/performance/end_with.rb +++ b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.14.0/lib/rubocop/cop/performance/end_with.rb @@ -3,7 +3,7 @@ module RuboCop module Cop module Performance - # This cop identifies unnecessary use of a regex where `String#end_with?` would suffice. + # Identifies unnecessary use of a regex where `String#end_with?` would suffice. # # This cop has `SafeMultiline` configuration option that `true` by default because # `end$` is unsafe as it will behave incompatible with `end_with?` diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.13.3/lib/rubocop/cop/performance/fixed_size.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.14.0/lib/rubocop/cop/performance/fixed_size.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.13.3/lib/rubocop/cop/performance/fixed_size.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.14.0/lib/rubocop/cop/performance/fixed_size.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.13.3/lib/rubocop/cop/performance/flat_map.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.14.0/lib/rubocop/cop/performance/flat_map.rb similarity index 97% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.13.3/lib/rubocop/cop/performance/flat_map.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.14.0/lib/rubocop/cop/performance/flat_map.rb index 3276a9beb4..29cd0fe62e 100644 --- a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.13.3/lib/rubocop/cop/performance/flat_map.rb +++ b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.14.0/lib/rubocop/cop/performance/flat_map.rb @@ -3,7 +3,7 @@ module RuboCop module Cop module Performance - # This cop is used to identify usages of `map { ... }.flatten` and + # Identifies usages of `map { ... }.flatten` and # change them to use `flat_map { ... }` instead. # # @example diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.13.3/lib/rubocop/cop/performance/inefficient_hash_search.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.14.0/lib/rubocop/cop/performance/inefficient_hash_search.rb similarity index 97% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.13.3/lib/rubocop/cop/performance/inefficient_hash_search.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.14.0/lib/rubocop/cop/performance/inefficient_hash_search.rb index cf6cf6e432..3c354e3b99 100644 --- a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.13.3/lib/rubocop/cop/performance/inefficient_hash_search.rb +++ b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.14.0/lib/rubocop/cop/performance/inefficient_hash_search.rb @@ -3,7 +3,7 @@ module RuboCop module Cop module Performance - # This cop checks for inefficient searching of keys and values within + # Checks for inefficient searching of keys and values within # hashes. # # `Hash#keys.include?` is less efficient than `Hash#key?` because diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.13.3/lib/rubocop/cop/performance/io_readlines.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.14.0/lib/rubocop/cop/performance/io_readlines.rb similarity index 98% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.13.3/lib/rubocop/cop/performance/io_readlines.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.14.0/lib/rubocop/cop/performance/io_readlines.rb index fb9d04b034..354bc7eca6 100644 --- a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.13.3/lib/rubocop/cop/performance/io_readlines.rb +++ b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.14.0/lib/rubocop/cop/performance/io_readlines.rb @@ -3,7 +3,7 @@ module RuboCop module Cop module Performance - # This cop identifies places where inefficient `readlines` method + # Identifies places where inefficient `readlines` method # can be replaced by `each_line` to avoid fully loading file content into memory. # # @example diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.13.3/lib/rubocop/cop/performance/map_compact.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.14.0/lib/rubocop/cop/performance/map_compact.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.13.3/lib/rubocop/cop/performance/map_compact.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.14.0/lib/rubocop/cop/performance/map_compact.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.13.3/lib/rubocop/cop/performance/method_object_as_block.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.14.0/lib/rubocop/cop/performance/method_object_as_block.rb similarity index 91% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.13.3/lib/rubocop/cop/performance/method_object_as_block.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.14.0/lib/rubocop/cop/performance/method_object_as_block.rb index 796ea10a10..8e342165a7 100644 --- a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.13.3/lib/rubocop/cop/performance/method_object_as_block.rb +++ b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.14.0/lib/rubocop/cop/performance/method_object_as_block.rb @@ -3,7 +3,7 @@ module RuboCop module Cop module Performance - # This cop identifies places where methods are converted to blocks, with the + # Identifies places where methods are converted to blocks, with the # use of `&method`, and passed as arguments to method calls. # It is faster to replace those with explicit blocks, calling those methods inside. # diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.13.3/lib/rubocop/cop/performance/open_struct.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.14.0/lib/rubocop/cop/performance/open_struct.rb similarity index 96% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.13.3/lib/rubocop/cop/performance/open_struct.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.14.0/lib/rubocop/cop/performance/open_struct.rb index 1395bd899c..9e4351eb70 100644 --- a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.13.3/lib/rubocop/cop/performance/open_struct.rb +++ b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.14.0/lib/rubocop/cop/performance/open_struct.rb @@ -3,7 +3,7 @@ module RuboCop module Cop module Performance - # This cop checks for `OpenStruct.new` calls. + # Checks for `OpenStruct.new` calls. # Instantiation of an `OpenStruct` invalidates # Ruby global method cache as it causes dynamic method # definition during program runtime. diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.13.3/lib/rubocop/cop/performance/range_include.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.14.0/lib/rubocop/cop/performance/range_include.rb similarity index 92% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.13.3/lib/rubocop/cop/performance/range_include.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.14.0/lib/rubocop/cop/performance/range_include.rb index 8308ac3aa4..1187bb3b4f 100644 --- a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.13.3/lib/rubocop/cop/performance/range_include.rb +++ b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.14.0/lib/rubocop/cop/performance/range_include.rb @@ -3,7 +3,7 @@ module RuboCop module Cop module Performance - # This cop identifies uses of `Range#include?` and `Range#member?`, which iterates over each + # Identifies uses of `Range#include?` and `Range#member?`, which iterates over each # item in a `Range` to see if a specified item is there. In contrast, # `Range#cover?` simply compares the target item with the beginning and # end points of the `Range`. In a great majority of cases, this is what @@ -11,7 +11,7 @@ module RuboCop # # @safety # This cop is unsafe because `Range#include?` (or `Range#member?`) and `Range#cover?` - # are not equivalent behaviour. + # are not equivalent behavior. # # @example # # bad diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.13.3/lib/rubocop/cop/performance/redundant_block_call.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.14.0/lib/rubocop/cop/performance/redundant_block_call.rb similarity index 97% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.13.3/lib/rubocop/cop/performance/redundant_block_call.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.14.0/lib/rubocop/cop/performance/redundant_block_call.rb index bf5a23dcc8..d3b6a3d992 100644 --- a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.13.3/lib/rubocop/cop/performance/redundant_block_call.rb +++ b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.14.0/lib/rubocop/cop/performance/redundant_block_call.rb @@ -3,7 +3,7 @@ module RuboCop module Cop module Performance - # This cop identifies the use of a `&block` parameter and `block.call` + # Identifies the use of a `&block` parameter and `block.call` # where `yield` would do just as well. # # @example diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.13.3/lib/rubocop/cop/performance/redundant_equality_comparison_block.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.14.0/lib/rubocop/cop/performance/redundant_equality_comparison_block.rb similarity index 95% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.13.3/lib/rubocop/cop/performance/redundant_equality_comparison_block.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.14.0/lib/rubocop/cop/performance/redundant_equality_comparison_block.rb index eb233388d3..39903b3176 100644 --- a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.13.3/lib/rubocop/cop/performance/redundant_equality_comparison_block.rb +++ b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.14.0/lib/rubocop/cop/performance/redundant_equality_comparison_block.rb @@ -3,7 +3,7 @@ module RuboCop module Cop module Performance - # This cop checks for uses `Enumerable#all?`, `Enumerable#any?`, `Enumerable#one?`, + # Checks for uses `Enumerable#all?`, `Enumerable#any?`, `Enumerable#one?`, # and `Enumerable#none?` are compared with `===` or similar methods in block. # # By default, `Object#===` behaves the same as `Object#==`, but this @@ -25,6 +25,9 @@ module RuboCop # class RedundantEqualityComparisonBlock < Base extend AutoCorrector + extend TargetRubyVersion + + minimum_target_ruby_version 2.5 MSG = 'Use `%s` instead of block.' diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.13.3/lib/rubocop/cop/performance/redundant_match.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.14.0/lib/rubocop/cop/performance/redundant_match.rb similarity index 95% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.13.3/lib/rubocop/cop/performance/redundant_match.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.14.0/lib/rubocop/cop/performance/redundant_match.rb index b75a8f856c..c2fa42c0c4 100644 --- a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.13.3/lib/rubocop/cop/performance/redundant_match.rb +++ b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.14.0/lib/rubocop/cop/performance/redundant_match.rb @@ -3,7 +3,7 @@ module RuboCop module Cop module Performance - # This cop identifies the use of `Regexp#match` or `String#match`, which + # Identifies the use of `Regexp#match` or `String#match`, which # returns `#`/`nil`. The return value of `=~` is an integral # index/`nil` and is more performant. # diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.13.3/lib/rubocop/cop/performance/redundant_merge.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.14.0/lib/rubocop/cop/performance/redundant_merge.rb similarity index 98% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.13.3/lib/rubocop/cop/performance/redundant_merge.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.14.0/lib/rubocop/cop/performance/redundant_merge.rb index 6bc5458e51..7dfb53a267 100644 --- a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.13.3/lib/rubocop/cop/performance/redundant_merge.rb +++ b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.14.0/lib/rubocop/cop/performance/redundant_merge.rb @@ -3,8 +3,7 @@ module RuboCop module Cop module Performance - # This cop identifies places where `Hash#merge!` can be replaced by - # `Hash#[]=`. + # Identifies places where `Hash#merge!` can be replaced by `Hash#[]=`. # You can set the maximum number of key-value pairs to consider # an offense with `MaxKeyValuePairs`. # diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.13.3/lib/rubocop/cop/performance/redundant_sort_block.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.14.0/lib/rubocop/cop/performance/redundant_sort_block.rb similarity index 90% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.13.3/lib/rubocop/cop/performance/redundant_sort_block.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.14.0/lib/rubocop/cop/performance/redundant_sort_block.rb index 698e5b3721..55c3af49cb 100644 --- a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.13.3/lib/rubocop/cop/performance/redundant_sort_block.rb +++ b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.14.0/lib/rubocop/cop/performance/redundant_sort_block.rb @@ -3,8 +3,7 @@ module RuboCop module Cop module Performance - # This cop identifies places where `sort { |a, b| a <=> b }` - # can be replaced with `sort`. + # Identifies places where `sort { |a, b| a <=> b }` can be replaced with `sort`. # # @example # # bad diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.13.3/lib/rubocop/cop/performance/redundant_split_regexp_argument.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.14.0/lib/rubocop/cop/performance/redundant_split_regexp_argument.rb similarity index 95% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.13.3/lib/rubocop/cop/performance/redundant_split_regexp_argument.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.14.0/lib/rubocop/cop/performance/redundant_split_regexp_argument.rb index 57ef30e556..77a0b95c64 100644 --- a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.13.3/lib/rubocop/cop/performance/redundant_split_regexp_argument.rb +++ b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.14.0/lib/rubocop/cop/performance/redundant_split_regexp_argument.rb @@ -3,7 +3,7 @@ module RuboCop module Cop module Performance - # This cop identifies places where `split` argument can be replaced from + # Identifies places where `split` argument can be replaced from # a deterministic regexp to a string. # # @example diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.13.3/lib/rubocop/cop/performance/redundant_string_chars.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.14.0/lib/rubocop/cop/performance/redundant_string_chars.rb similarity index 98% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.13.3/lib/rubocop/cop/performance/redundant_string_chars.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.14.0/lib/rubocop/cop/performance/redundant_string_chars.rb index d0d4972881..000d887ced 100644 --- a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.13.3/lib/rubocop/cop/performance/redundant_string_chars.rb +++ b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.14.0/lib/rubocop/cop/performance/redundant_string_chars.rb @@ -3,7 +3,7 @@ module RuboCop module Cop module Performance - # This cop checks for redundant `String#chars`. + # Checks for redundant `String#chars`. # # @example # # bad diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.13.3/lib/rubocop/cop/performance/regexp_match.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.14.0/lib/rubocop/cop/performance/regexp_match.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.13.3/lib/rubocop/cop/performance/regexp_match.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.14.0/lib/rubocop/cop/performance/regexp_match.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.13.3/lib/rubocop/cop/performance/reverse_each.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.14.0/lib/rubocop/cop/performance/reverse_each.rb similarity index 92% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.13.3/lib/rubocop/cop/performance/reverse_each.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.14.0/lib/rubocop/cop/performance/reverse_each.rb index 268c4e98cf..4be4fb7b03 100644 --- a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.13.3/lib/rubocop/cop/performance/reverse_each.rb +++ b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.14.0/lib/rubocop/cop/performance/reverse_each.rb @@ -3,8 +3,7 @@ module RuboCop module Cop module Performance - # This cop is used to identify usages of `reverse.each` and - # change them to use `reverse_each` instead. + # Identifies usages of `reverse.each` and change them to use `reverse_each` instead. # # If the return value is used, it will not be detected because the result will be different. # diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.13.3/lib/rubocop/cop/performance/reverse_first.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.14.0/lib/rubocop/cop/performance/reverse_first.rb similarity index 95% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.13.3/lib/rubocop/cop/performance/reverse_first.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.14.0/lib/rubocop/cop/performance/reverse_first.rb index 7db7f53e09..dde61bd38a 100644 --- a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.13.3/lib/rubocop/cop/performance/reverse_first.rb +++ b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.14.0/lib/rubocop/cop/performance/reverse_first.rb @@ -3,7 +3,7 @@ module RuboCop module Cop module Performance - # This cop identifies places where `reverse.first(n)` and `reverse.first` + # Identifies places where `reverse.first(n)` and `reverse.first` # can be replaced by `last(n).reverse` and `last`. # # @example diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.13.3/lib/rubocop/cop/performance/select_map.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.14.0/lib/rubocop/cop/performance/select_map.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.13.3/lib/rubocop/cop/performance/select_map.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.14.0/lib/rubocop/cop/performance/select_map.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.13.3/lib/rubocop/cop/performance/size.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.14.0/lib/rubocop/cop/performance/size.rb similarity index 94% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.13.3/lib/rubocop/cop/performance/size.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.14.0/lib/rubocop/cop/performance/size.rb index 4356c5d6e5..b107949a78 100644 --- a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.13.3/lib/rubocop/cop/performance/size.rb +++ b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.14.0/lib/rubocop/cop/performance/size.rb @@ -3,8 +3,7 @@ module RuboCop module Cop module Performance - # This cop is used to identify usages of `count` on an - # `Array` and `Hash` and change them to `size`. + # Identifies usages of `count` on an `Array` and `Hash` and change them to `size`. # # @example # # bad diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.13.3/lib/rubocop/cop/performance/sort_reverse.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.14.0/lib/rubocop/cop/performance/sort_reverse.rb similarity index 94% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.13.3/lib/rubocop/cop/performance/sort_reverse.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.14.0/lib/rubocop/cop/performance/sort_reverse.rb index 1b213b183d..301906804e 100644 --- a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.13.3/lib/rubocop/cop/performance/sort_reverse.rb +++ b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.14.0/lib/rubocop/cop/performance/sort_reverse.rb @@ -3,7 +3,7 @@ module RuboCop module Cop module Performance - # This cop identifies places where `sort { |a, b| b <=> a }` + # Identifies places where `sort { |a, b| b <=> a }` # can be replaced by a faster `sort.reverse`. # # @example diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.13.3/lib/rubocop/cop/performance/squeeze.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.14.0/lib/rubocop/cop/performance/squeeze.rb similarity index 95% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.13.3/lib/rubocop/cop/performance/squeeze.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.14.0/lib/rubocop/cop/performance/squeeze.rb index 315e5e3a23..3b7c0bfb58 100644 --- a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.13.3/lib/rubocop/cop/performance/squeeze.rb +++ b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.14.0/lib/rubocop/cop/performance/squeeze.rb @@ -3,7 +3,7 @@ module RuboCop module Cop module Performance - # This cop identifies places where `gsub(/a+/, 'a')` and `gsub!(/a+/, 'a')` + # Identifies places where `gsub(/a+/, 'a')` and `gsub!(/a+/, 'a')` # can be replaced by `squeeze('a')` and `squeeze!('a')`. # # The `squeeze('a')` method is faster than `gsub(/a+/, 'a')`. diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.13.3/lib/rubocop/cop/performance/start_with.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.14.0/lib/rubocop/cop/performance/start_with.rb similarity index 96% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.13.3/lib/rubocop/cop/performance/start_with.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.14.0/lib/rubocop/cop/performance/start_with.rb index d813ca5100..bf35a10af2 100644 --- a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.13.3/lib/rubocop/cop/performance/start_with.rb +++ b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.14.0/lib/rubocop/cop/performance/start_with.rb @@ -3,7 +3,7 @@ module RuboCop module Cop module Performance - # This cop identifies unnecessary use of a regex where `String#start_with?` would suffice. + # Identifies unnecessary use of a regex where `String#start_with?` would suffice. # # This cop has `SafeMultiline` configuration option that `true` by default because # `^start` is unsafe as it will behave incompatible with `start_with?` diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.13.3/lib/rubocop/cop/performance/string_identifier_argument.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.14.0/lib/rubocop/cop/performance/string_identifier_argument.rb similarity index 93% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.13.3/lib/rubocop/cop/performance/string_identifier_argument.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.14.0/lib/rubocop/cop/performance/string_identifier_argument.rb index a760633091..63a30ddb2f 100644 --- a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.13.3/lib/rubocop/cop/performance/string_identifier_argument.rb +++ b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.14.0/lib/rubocop/cop/performance/string_identifier_argument.rb @@ -3,7 +3,7 @@ module RuboCop module Cop module Performance - # This cop identifies places where string identifier argument can be replaced + # Identifies places where string identifier argument can be replaced # by symbol identifier argument. # It prevents the redundancy of the internal string-to-symbol conversion. # @@ -46,7 +46,7 @@ module RuboCop def on_send(node) return unless (first_argument = node.first_argument) return unless first_argument.str_type? - return if first_argument.value.include?(' ') + return if first_argument.value.include?(' ') || first_argument.value.include?('::') replacement = first_argument.value.to_sym.inspect diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.13.3/lib/rubocop/cop/performance/string_include.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.14.0/lib/rubocop/cop/performance/string_include.rb similarity index 89% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.13.3/lib/rubocop/cop/performance/string_include.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.14.0/lib/rubocop/cop/performance/string_include.rb index 415e02c929..c3d8dcf30a 100644 --- a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.13.3/lib/rubocop/cop/performance/string_include.rb +++ b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.14.0/lib/rubocop/cop/performance/string_include.rb @@ -3,11 +3,10 @@ module RuboCop module Cop module Performance - # This cop identifies unnecessary use of a regex where - # `String#include?` would suffice. + # Identifies unnecessary use of a regex where `String#include?` would suffice. # # @safety - # This cop's offenses are not safe to auto-correct if a receiver is nil. + # This cop's offenses are not safe to autocorrect if a receiver is nil. # # @example # # bad diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.13.3/lib/rubocop/cop/performance/string_replacement.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.14.0/lib/rubocop/cop/performance/string_replacement.rb similarity index 98% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.13.3/lib/rubocop/cop/performance/string_replacement.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.14.0/lib/rubocop/cop/performance/string_replacement.rb index 68f85eab4f..cc9358a528 100644 --- a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.13.3/lib/rubocop/cop/performance/string_replacement.rb +++ b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.14.0/lib/rubocop/cop/performance/string_replacement.rb @@ -3,8 +3,7 @@ module RuboCop module Cop module Performance - # This cop identifies places where `gsub` can be replaced by - # `tr` or `delete`. + # Identifies places where `gsub` can be replaced by `tr` or `delete`. # # @example # # bad diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.13.3/lib/rubocop/cop/performance/sum.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.14.0/lib/rubocop/cop/performance/sum.rb similarity index 99% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.13.3/lib/rubocop/cop/performance/sum.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.14.0/lib/rubocop/cop/performance/sum.rb index ebd9c08227..ea590a375d 100644 --- a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.13.3/lib/rubocop/cop/performance/sum.rb +++ b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.14.0/lib/rubocop/cop/performance/sum.rb @@ -3,7 +3,7 @@ module RuboCop module Cop module Performance - # This cop identifies places where custom code finding the sum of elements + # Identifies places where custom code finding the sum of elements # in some Enumerable object can be replaced by `Enumerable#sum` method. # # @safety diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.13.3/lib/rubocop/cop/performance/times_map.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.14.0/lib/rubocop/cop/performance/times_map.rb similarity index 97% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.13.3/lib/rubocop/cop/performance/times_map.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.14.0/lib/rubocop/cop/performance/times_map.rb index 6e297893cd..977b2c54a8 100644 --- a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.13.3/lib/rubocop/cop/performance/times_map.rb +++ b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.14.0/lib/rubocop/cop/performance/times_map.rb @@ -3,7 +3,7 @@ module RuboCop module Cop module Performance - # This cop checks for .times.map calls. + # Checks for .times.map calls. # In most cases such calls can be replaced # with an explicit array creation. # diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.13.3/lib/rubocop/cop/performance/unfreeze_string.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.14.0/lib/rubocop/cop/performance/unfreeze_string.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.13.3/lib/rubocop/cop/performance/unfreeze_string.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.14.0/lib/rubocop/cop/performance/unfreeze_string.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.13.3/lib/rubocop/cop/performance/uri_default_parser.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.14.0/lib/rubocop/cop/performance/uri_default_parser.rb similarity index 90% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.13.3/lib/rubocop/cop/performance/uri_default_parser.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.14.0/lib/rubocop/cop/performance/uri_default_parser.rb index 0dc0d43b5c..0f8de7d86a 100644 --- a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.13.3/lib/rubocop/cop/performance/uri_default_parser.rb +++ b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.14.0/lib/rubocop/cop/performance/uri_default_parser.rb @@ -3,8 +3,7 @@ module RuboCop module Cop module Performance - # This cop identifies places where `URI::Parser.new` - # can be replaced by `URI::DEFAULT_PARSER`. + # Identifies places where `URI::Parser.new` can be replaced by `URI::DEFAULT_PARSER`. # # @example # # bad diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.13.3/lib/rubocop/cop/performance_cops.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.14.0/lib/rubocop/cop/performance_cops.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.13.3/lib/rubocop/cop/performance_cops.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.14.0/lib/rubocop/cop/performance_cops.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.13.3/lib/rubocop/performance.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.14.0/lib/rubocop/performance.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.13.3/lib/rubocop/performance.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.14.0/lib/rubocop/performance.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.13.3/lib/rubocop/performance/inject.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.14.0/lib/rubocop/performance/inject.rb similarity index 100% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.13.3/lib/rubocop/performance/inject.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.14.0/lib/rubocop/performance/inject.rb diff --git a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.13.3/lib/rubocop/performance/version.rb b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.14.0/lib/rubocop/performance/version.rb similarity index 91% rename from Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.13.3/lib/rubocop/performance/version.rb rename to Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.14.0/lib/rubocop/performance/version.rb index cd1b0f7f64..c7da989ebb 100644 --- a/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.13.3/lib/rubocop/performance/version.rb +++ b/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.14.0/lib/rubocop/performance/version.rb @@ -4,7 +4,7 @@ module RuboCop module Performance # This module holds the RuboCop Performance version information. module Version - STRING = '1.13.3' + STRING = '1.14.0' def self.document_version STRING.match('\d+\.\d+').to_s From deec796294eb165203bcbae07cd8d7e0fa7cadcb Mon Sep 17 00:00:00 2001 From: BrewTestBot <1589480+BrewTestBot@users.noreply.github.com> Date: Wed, 25 May 2022 14:27:36 +0000 Subject: [PATCH 3/3] Update RBI files for rubocop-performance. --- .../sorbet/rbi/hidden-definitions/hidden.rbi | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Library/Homebrew/sorbet/rbi/hidden-definitions/hidden.rbi b/Library/Homebrew/sorbet/rbi/hidden-definitions/hidden.rbi index 27b7439507..2c3bdd463c 100644 --- a/Library/Homebrew/sorbet/rbi/hidden-definitions/hidden.rbi +++ b/Library/Homebrew/sorbet/rbi/hidden-definitions/hidden.rbi @@ -4618,6 +4618,18 @@ class RuboCop::Cop::FormulaCop def required_dependency_name?(param0, param1); end end +class RuboCop::Cop::Performance::DeletePrefix + extend ::RuboCop::Cop::TargetRubyVersion +end + +class RuboCop::Cop::Performance::DeleteSuffix + extend ::RuboCop::Cop::TargetRubyVersion +end + +class RuboCop::Cop::Performance::RedundantEqualityComparisonBlock + extend ::RuboCop::Cop::TargetRubyVersion +end + class RuboCop::Cop::RSpec::ChangeByZero def expect_change_with_arguments(param0=T.unsafe(nil)); end