From 43ab78eb41fbf0f39256c96f6cc56bdf256cea1c Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 4 Nov 2024 21:08:06 +0000 Subject: [PATCH 1/2] Bump the minor-and-patch group with 5 updates Bumps the minor-and-patch group with 5 updates: | Package | From | To | | --- | --- | --- | | [rubocop-sorbet](https://github.com/shopify/rubocop-sorbet) | `0.8.6` | `0.8.7` | | [activeresource](https://github.com/rails/activeresource) | `6.1.3` | `6.1.4` | | [graphql](https://github.com/rmosolgo/graphql-ruby) | `2.3.19` | `2.4.1` | | [sidekiq](https://github.com/sidekiq/sidekiq) | `7.3.4` | `7.3.5` | | [sorbet-static-and-runtime](https://github.com/sorbet/sorbet) | `0.5.11620` | `0.5.11633` | Updates `rubocop-sorbet` from 0.8.6 to 0.8.7 - [Release notes](https://github.com/shopify/rubocop-sorbet/releases) - [Commits](https://github.com/shopify/rubocop-sorbet/compare/v0.8.6...v0.8.7) Updates `activeresource` from 6.1.3 to 6.1.4 - [Release notes](https://github.com/rails/activeresource/releases) - [Commits](https://github.com/rails/activeresource/compare/v6.1.3...v6.1.4) Updates `graphql` from 2.3.19 to 2.4.1 - [Release notes](https://github.com/rmosolgo/graphql-ruby/releases) - [Changelog](https://github.com/rmosolgo/graphql-ruby/blob/master/CHANGELOG.md) - [Commits](https://github.com/rmosolgo/graphql-ruby/compare/v2.3.19...v2.4.1) Updates `sidekiq` from 7.3.4 to 7.3.5 - [Changelog](https://github.com/sidekiq/sidekiq/blob/main/Changes.md) - [Commits](https://github.com/sidekiq/sidekiq/commits/v7.3.5) Updates `sorbet-static-and-runtime` from 0.5.11620 to 0.5.11633 - [Release notes](https://github.com/sorbet/sorbet/releases) - [Commits](https://github.com/sorbet/sorbet/commits) --- updated-dependencies: - dependency-name: rubocop-sorbet dependency-type: direct:production update-type: version-update:semver-patch dependency-group: minor-and-patch - dependency-name: activeresource dependency-type: direct:development update-type: version-update:semver-patch dependency-group: minor-and-patch - dependency-name: graphql dependency-type: direct:development update-type: version-update:semver-minor dependency-group: minor-and-patch - dependency-name: sidekiq dependency-type: direct:development update-type: version-update:semver-patch dependency-group: minor-and-patch - dependency-name: sorbet-static-and-runtime dependency-type: direct:production update-type: version-update:semver-patch dependency-group: minor-and-patch ... Signed-off-by: dependabot[bot] --- Gemfile.lock | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/Gemfile.lock b/Gemfile.lock index 504a13433..62382cf8e 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -87,7 +87,7 @@ GEM timeout (>= 0.4.0) activerecord-typedstore (1.6.0) activerecord (>= 6.1) - activeresource (6.1.3) + activeresource (6.1.4) activemodel (>= 6.0) activemodel-serializers-xml (~> 1.0) activesupport (>= 6.0) @@ -154,7 +154,7 @@ GEM google-protobuf (4.28.3-x86_64-linux) bigdecimal rake (>= 13) - graphql (2.3.19) + graphql (2.4.1) base64 fiber-storage hashdiff (1.1.1) @@ -167,7 +167,7 @@ GEM irb (1.14.1) rdoc (>= 4.0.0) reline (>= 0.4.2) - json (2.7.4) + json (2.7.6) json_api_client (1.23.0) activemodel (>= 6.0.0) activesupport (>= 6.0.0) @@ -223,7 +223,7 @@ GEM racc (~> 1.4) ostruct (0.6.0) parallel (1.26.3) - parser (3.3.5.0) + parser (3.3.5.1) ast (~> 2.4.1) racc prism (1.2.0) @@ -283,7 +283,7 @@ GEM reline (0.5.10) io-console (~> 0.5) rexml (3.3.9) - rubocop (1.67.0) + rubocop (1.68.0) json (~> 2.3) language_server-protocol (>= 3.17.0) parallel (~> 1.10) @@ -293,30 +293,30 @@ GEM rubocop-ast (>= 1.32.2, < 2.0) ruby-progressbar (~> 1.7) unicode-display_width (>= 2.4.0, < 3.0) - rubocop-ast (1.32.3) + rubocop-ast (1.34.0) parser (>= 3.3.1.0) rubocop-rspec (3.2.0) rubocop (~> 1.61) rubocop-shopify (2.15.1) rubocop (~> 1.51) - rubocop-sorbet (0.8.6) + rubocop-sorbet (0.8.7) rubocop (>= 1) ruby-progressbar (1.13.0) shopify-money (3.0.0) - sidekiq (7.3.4) + sidekiq (7.3.5) connection_pool (>= 2.3.0) logger rack (>= 2.2.4) redis-client (>= 0.22.2) smart_properties (1.17.0) - sorbet (0.5.11620) - sorbet-static (= 0.5.11620) - sorbet-runtime (0.5.11620) - sorbet-static (0.5.11620-universal-darwin) - sorbet-static (0.5.11620-x86_64-linux) - sorbet-static-and-runtime (0.5.11620) - sorbet (= 0.5.11620) - sorbet-runtime (= 0.5.11620) + sorbet (0.5.11633) + sorbet-static (= 0.5.11633) + sorbet-runtime (0.5.11633) + sorbet-static (0.5.11633-universal-darwin) + sorbet-static (0.5.11633-x86_64-linux) + sorbet-static-and-runtime (0.5.11633) + sorbet (= 0.5.11633) + sorbet-runtime (= 0.5.11633) spoom (1.5.0) erubi (>= 1.10.0) prism (>= 0.28.0) From b5dba3db92020afd7f82e61e02ef1f153ddc8c85 Mon Sep 17 00:00:00 2001 From: Vinicius Stock Date: Mon, 4 Nov 2024 17:05:10 -0500 Subject: [PATCH 2/2] Update gem RBIs --- ...rce@6.1.3.rbi => activeresource@6.1.4.rbi} | 118 +- .../{graphql@2.3.19.rbi => graphql@2.4.1.rbi} | 715 +++++---- .../gems/{json@2.7.4.rbi => json@2.7.6.rbi} | 78 +- ...{parser@3.3.5.0.rbi => parser@3.3.5.1.rbi} | 0 ...-ast@1.32.3.rbi => rubocop-ast@1.34.0.rbi} | 430 ++++-- ...bet@0.8.6.rbi => rubocop-sorbet@0.8.7.rbi} | 0 ...{rubocop@1.67.0.rbi => rubocop@1.68.0.rbi} | 1310 +++++++++++------ .../{sidekiq@7.3.4.rbi => sidekiq@7.3.5.rbi} | 148 +- 8 files changed, 1769 insertions(+), 1030 deletions(-) rename sorbet/rbi/gems/{activeresource@6.1.3.rbi => activeresource@6.1.4.rbi} (97%) rename sorbet/rbi/gems/{graphql@2.3.19.rbi => graphql@2.4.1.rbi} (97%) rename sorbet/rbi/gems/{json@2.7.4.rbi => json@2.7.6.rbi} (96%) rename sorbet/rbi/gems/{parser@3.3.5.0.rbi => parser@3.3.5.1.rbi} (100%) rename sorbet/rbi/gems/{rubocop-ast@1.32.3.rbi => rubocop-ast@1.34.0.rbi} (95%) rename sorbet/rbi/gems/{rubocop-sorbet@0.8.6.rbi => rubocop-sorbet@0.8.7.rbi} (100%) rename sorbet/rbi/gems/{rubocop@1.67.0.rbi => rubocop@1.68.0.rbi} (98%) rename sorbet/rbi/gems/{sidekiq@7.3.4.rbi => sidekiq@7.3.5.rbi} (93%) diff --git a/sorbet/rbi/gems/activeresource@6.1.3.rbi b/sorbet/rbi/gems/activeresource@6.1.4.rbi similarity index 97% rename from sorbet/rbi/gems/activeresource@6.1.3.rbi rename to sorbet/rbi/gems/activeresource@6.1.4.rbi index 116e29b6f..10d3a433e 100644 --- a/sorbet/rbi/gems/activeresource@6.1.3.rbi +++ b/sorbet/rbi/gems/activeresource@6.1.4.rbi @@ -10,7 +10,7 @@ module ActiveResource extend ::ActiveSupport::Autoload class << self - # source://activeresource//lib/active_resource.rb#55 + # source://activeresource//lib/active_resource.rb#51 def deprecator; end end end @@ -621,10 +621,10 @@ class ActiveResource::Base # source://activeresource//lib/active_resource/base.rb#1318 def ==(other); end - # source://activesupport/7.1.4/lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.4.2/lib/active_support/callbacks.rb#70 def __callbacks; end - # source://activesupport/7.1.4/lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.4.2/lib/active_support/callbacks.rb#70 def __callbacks?; end # source://activeresource//lib/active_resource/base.rb#331 @@ -636,10 +636,10 @@ class ActiveResource::Base # source://activeresource//lib/active_resource/base.rb#331 def _collection_parser?; end - # source://activesupport/7.1.4/lib/active_support/callbacks.rb#963 + # source://activesupport/7.1.4.2/lib/active_support/callbacks.rb#963 def _create_callbacks; end - # source://activesupport/7.1.4/lib/active_support/callbacks.rb#963 + # source://activesupport/7.1.4.2/lib/active_support/callbacks.rb#963 def _destroy_callbacks; end # source://activeresource//lib/active_resource/base.rb#330 @@ -651,40 +651,40 @@ class ActiveResource::Base # source://activeresource//lib/active_resource/base.rb#330 def _format?; end - # source://activesupport/7.1.4/lib/active_support/callbacks.rb#951 + # source://activesupport/7.1.4.2/lib/active_support/callbacks.rb#951 def _run_create_callbacks(&block); end - # source://activesupport/7.1.4/lib/active_support/callbacks.rb#951 + # source://activesupport/7.1.4.2/lib/active_support/callbacks.rb#951 def _run_destroy_callbacks(&block); end - # source://activesupport/7.1.4/lib/active_support/callbacks.rb#951 + # source://activesupport/7.1.4.2/lib/active_support/callbacks.rb#951 def _run_save_callbacks(&block); end - # source://activesupport/7.1.4/lib/active_support/callbacks.rb#951 + # source://activesupport/7.1.4.2/lib/active_support/callbacks.rb#951 def _run_update_callbacks(&block); end - # source://activesupport/7.1.4/lib/active_support/callbacks.rb#951 + # source://activesupport/7.1.4.2/lib/active_support/callbacks.rb#951 def _run_validate_callbacks(&block); end - # source://activesupport/7.1.4/lib/active_support/callbacks.rb#951 + # source://activesupport/7.1.4.2/lib/active_support/callbacks.rb#951 def _run_validation_callbacks(&block); end - # source://activesupport/7.1.4/lib/active_support/callbacks.rb#963 + # source://activesupport/7.1.4.2/lib/active_support/callbacks.rb#963 def _save_callbacks; end - # source://activesupport/7.1.4/lib/active_support/callbacks.rb#963 + # source://activesupport/7.1.4.2/lib/active_support/callbacks.rb#963 def _update_callbacks; end - # source://activesupport/7.1.4/lib/active_support/callbacks.rb#963 + # source://activesupport/7.1.4.2/lib/active_support/callbacks.rb#963 def _validate_callbacks; end - # source://activesupport/7.1.4/lib/active_support/callbacks.rb#963 + # source://activesupport/7.1.4.2/lib/active_support/callbacks.rb#963 def _validation_callbacks; end - # source://activemodel/7.1.4/lib/active_model/validations.rb#71 + # source://activemodel/7.1.4.2/lib/active_model/validations.rb#71 def _validators; end - # source://activemodel/7.1.4/lib/active_model/validations.rb#71 + # source://activemodel/7.1.4.2/lib/active_model/validations.rb#71 def _validators?; end # source://activeresource//lib/active_resource/base.rb#1184 @@ -819,10 +819,10 @@ class ActiveResource::Base # source://activeresource//lib/active_resource/base.rb#332 def include_format_in_path?; end - # source://activemodel/7.1.4/lib/active_model/serializers/json.rb#15 + # source://activemodel/7.1.4.2/lib/active_model/serializers/json.rb#15 def include_root_in_json; end - # source://activemodel/7.1.4/lib/active_model/serializers/json.rb#15 + # source://activemodel/7.1.4.2/lib/active_model/serializers/json.rb#15 def include_root_in_json?; end # This is a list of known attributes for this resource. Either @@ -863,7 +863,7 @@ class ActiveResource::Base # source://activeresource//lib/active_resource/base.rb#323 def logger; end - # source://activemodel/7.1.4/lib/active_model/naming.rb#255 + # source://activemodel/7.1.4.2/lib/active_model/naming.rb#255 def model_name(&block); end # Returns +true+ if this object hasn't yet been saved, otherwise, returns +false+. @@ -900,7 +900,7 @@ class ActiveResource::Base # source://activeresource//lib/active_resource/base.rb#1265 def new_record?; end - # source://activemodel/7.1.4/lib/active_model/conversion.rb#32 + # source://activemodel/7.1.4.2/lib/active_model/conversion.rb#32 def param_delimiter=(_arg0); end # Returns +true+ if this object has been saved, otherwise returns +false+. @@ -1035,7 +1035,7 @@ class ActiveResource::Base # source://activeresource//lib/active_resource/base.rb#1532 def update_attributes(attributes); end - # source://activemodel/7.1.4/lib/active_model/validations.rb#67 + # source://activemodel/7.1.4.2/lib/active_model/validations.rb#67 def validation_context; end protected @@ -1123,17 +1123,17 @@ class ActiveResource::Base # source://activeresource//lib/active_resource/base.rb#1697 def split_options(options = T.unsafe(nil)); end - # source://activemodel/7.1.4/lib/active_model/validations.rb#67 + # source://activemodel/7.1.4.2/lib/active_model/validations.rb#67 def validation_context=(_arg0); end class << self - # source://activesupport/7.1.4/lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.4.2/lib/active_support/callbacks.rb#70 def __callbacks; end - # source://activesupport/7.1.4/lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.4.2/lib/active_support/callbacks.rb#70 def __callbacks=(value); end - # source://activesupport/7.1.4/lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.4.2/lib/active_support/callbacks.rb#70 def __callbacks?; end # source://activeresource//lib/active_resource/threadsafe_attributes.rb#15 @@ -1163,16 +1163,16 @@ class ActiveResource::Base # source://activeresource//lib/active_resource/threadsafe_attributes.rb#23 def _connection_defined?; end - # source://activesupport/7.1.4/lib/active_support/callbacks.rb#955 + # source://activesupport/7.1.4.2/lib/active_support/callbacks.rb#955 def _create_callbacks; end - # source://activesupport/7.1.4/lib/active_support/callbacks.rb#959 + # source://activesupport/7.1.4.2/lib/active_support/callbacks.rb#959 def _create_callbacks=(value); end - # source://activesupport/7.1.4/lib/active_support/callbacks.rb#955 + # source://activesupport/7.1.4.2/lib/active_support/callbacks.rb#955 def _destroy_callbacks; end - # source://activesupport/7.1.4/lib/active_support/callbacks.rb#959 + # source://activesupport/7.1.4.2/lib/active_support/callbacks.rb#959 def _destroy_callbacks=(value); end # source://activeresource//lib/active_resource/base.rb#330 @@ -1211,10 +1211,10 @@ class ActiveResource::Base # source://activeresource//lib/active_resource/threadsafe_attributes.rb#23 def _proxy_defined?; end - # source://activesupport/7.1.4/lib/active_support/callbacks.rb#955 + # source://activesupport/7.1.4.2/lib/active_support/callbacks.rb#955 def _save_callbacks; end - # source://activesupport/7.1.4/lib/active_support/callbacks.rb#959 + # source://activesupport/7.1.4.2/lib/active_support/callbacks.rb#959 def _save_callbacks=(value); end # source://activeresource//lib/active_resource/threadsafe_attributes.rb#15 @@ -1226,10 +1226,10 @@ class ActiveResource::Base # source://activeresource//lib/active_resource/threadsafe_attributes.rb#23 def _site_defined?; end - # source://activesupport/7.1.4/lib/active_support/callbacks.rb#955 + # source://activesupport/7.1.4.2/lib/active_support/callbacks.rb#955 def _update_callbacks; end - # source://activesupport/7.1.4/lib/active_support/callbacks.rb#959 + # source://activesupport/7.1.4.2/lib/active_support/callbacks.rb#959 def _update_callbacks=(value); end # source://activeresource//lib/active_resource/threadsafe_attributes.rb#15 @@ -1241,37 +1241,37 @@ class ActiveResource::Base # source://activeresource//lib/active_resource/threadsafe_attributes.rb#23 def _user_defined?; end - # source://activesupport/7.1.4/lib/active_support/callbacks.rb#955 + # source://activesupport/7.1.4.2/lib/active_support/callbacks.rb#955 def _validate_callbacks; end - # source://activesupport/7.1.4/lib/active_support/callbacks.rb#959 + # source://activesupport/7.1.4.2/lib/active_support/callbacks.rb#959 def _validate_callbacks=(value); end - # source://activesupport/7.1.4/lib/active_support/callbacks.rb#955 + # source://activesupport/7.1.4.2/lib/active_support/callbacks.rb#955 def _validation_callbacks; end - # source://activesupport/7.1.4/lib/active_support/callbacks.rb#959 + # source://activesupport/7.1.4.2/lib/active_support/callbacks.rb#959 def _validation_callbacks=(value); end - # source://activemodel/7.1.4/lib/active_model/validations.rb#71 + # source://activemodel/7.1.4.2/lib/active_model/validations.rb#71 def _validators; end - # source://activemodel/7.1.4/lib/active_model/validations.rb#71 + # source://activemodel/7.1.4.2/lib/active_model/validations.rb#71 def _validators=(value); end - # source://activemodel/7.1.4/lib/active_model/validations.rb#71 + # source://activemodel/7.1.4.2/lib/active_model/validations.rb#71 def _validators?; end - # source://activemodel/7.1.4/lib/active_model/callbacks.rb#144 + # source://activemodel/7.1.4.2/lib/active_model/callbacks.rb#144 def after_create(*args, **options, &block); end - # source://activemodel/7.1.4/lib/active_model/callbacks.rb#144 + # source://activemodel/7.1.4.2/lib/active_model/callbacks.rb#144 def after_destroy(*args, **options, &block); end - # source://activemodel/7.1.4/lib/active_model/callbacks.rb#144 + # source://activemodel/7.1.4.2/lib/active_model/callbacks.rb#144 def after_save(*args, **options, &block); end - # source://activemodel/7.1.4/lib/active_model/callbacks.rb#144 + # source://activemodel/7.1.4.2/lib/active_model/callbacks.rb#144 def after_update(*args, **options, &block); end # This is an alias for find(:all). You can pass in all the same @@ -1280,16 +1280,16 @@ class ActiveResource::Base # source://activeresource//lib/active_resource/base.rb#1039 def all(*args); end - # source://activemodel/7.1.4/lib/active_model/callbacks.rb#137 + # source://activemodel/7.1.4.2/lib/active_model/callbacks.rb#137 def around_create(*args, **options, &block); end - # source://activemodel/7.1.4/lib/active_model/callbacks.rb#137 + # source://activemodel/7.1.4.2/lib/active_model/callbacks.rb#137 def around_destroy(*args, **options, &block); end - # source://activemodel/7.1.4/lib/active_model/callbacks.rb#137 + # source://activemodel/7.1.4.2/lib/active_model/callbacks.rb#137 def around_save(*args, **options, &block); end - # source://activemodel/7.1.4/lib/active_model/callbacks.rb#137 + # source://activemodel/7.1.4.2/lib/active_model/callbacks.rb#137 def around_update(*args, **options, &block); end # source://activeresource//lib/active_resource/base.rb#562 @@ -1308,16 +1308,16 @@ class ActiveResource::Base # source://activeresource//lib/active_resource/base.rb#557 def bearer_token=(bearer_token); end - # source://activemodel/7.1.4/lib/active_model/callbacks.rb#130 + # source://activemodel/7.1.4.2/lib/active_model/callbacks.rb#130 def before_create(*args, **options, &block); end - # source://activemodel/7.1.4/lib/active_model/callbacks.rb#130 + # source://activemodel/7.1.4.2/lib/active_model/callbacks.rb#130 def before_destroy(*args, **options, &block); end - # source://activemodel/7.1.4/lib/active_model/callbacks.rb#130 + # source://activemodel/7.1.4.2/lib/active_model/callbacks.rb#130 def before_save(*args, **options, &block); end - # source://activemodel/7.1.4/lib/active_model/callbacks.rb#130 + # source://activemodel/7.1.4.2/lib/active_model/callbacks.rb#130 def before_update(*args, **options, &block); end # Builds a new, unsaved record using the default values from the remote server so @@ -1633,13 +1633,13 @@ class ActiveResource::Base # source://activeresource//lib/active_resource/base.rb#332 def include_format_in_path?; end - # source://activemodel/7.1.4/lib/active_model/serializers/json.rb#15 + # source://activemodel/7.1.4.2/lib/active_model/serializers/json.rb#15 def include_root_in_json; end - # source://activemodel/7.1.4/lib/active_model/serializers/json.rb#15 + # source://activemodel/7.1.4.2/lib/active_model/serializers/json.rb#15 def include_root_in_json=(value); end - # source://activemodel/7.1.4/lib/active_model/serializers/json.rb#15 + # source://activemodel/7.1.4.2/lib/active_model/serializers/json.rb#15 def include_root_in_json?; end # Returns the list of known attributes for this resource, gathered @@ -1699,13 +1699,13 @@ class ActiveResource::Base # source://activeresource//lib/active_resource/base.rb#1063 def orig_delete(id, options = T.unsafe(nil)); end - # source://activemodel/7.1.4/lib/active_model/conversion.rb#32 + # source://activemodel/7.1.4.2/lib/active_model/conversion.rb#32 def param_delimiter; end - # source://activemodel/7.1.4/lib/active_model/conversion.rb#32 + # source://activemodel/7.1.4.2/lib/active_model/conversion.rb#32 def param_delimiter=(value); end - # source://activemodel/7.1.4/lib/active_model/conversion.rb#32 + # source://activemodel/7.1.4.2/lib/active_model/conversion.rb#32 def param_delimiter?; end # Gets the \password for REST HTTP authentication. diff --git a/sorbet/rbi/gems/graphql@2.3.19.rbi b/sorbet/rbi/gems/graphql@2.4.1.rbi similarity index 97% rename from sorbet/rbi/gems/graphql@2.3.19.rbi rename to sorbet/rbi/gems/graphql@2.4.1.rbi index 5d5335de9..4c2c3595c 100644 --- a/sorbet/rbi/gems/graphql@2.3.19.rbi +++ b/sorbet/rbi/gems/graphql@2.4.1.rbi @@ -7418,8 +7418,8 @@ class GraphQL::Query::NullContext < ::GraphQL::Query::Context # source://graphql//lib/graphql/query/null_context.rb#20 def schema; end - # source://graphql//lib/graphql/query/null_context.rb#30 - def types; end + # source://forwardable/1.3.3/forwardable.rb#231 + def to_h(*args, **_arg1, &block); end # Returns the value of attribute warden. # @@ -7791,7 +7791,7 @@ class GraphQL::Schema class << self # @api private # - # source://graphql//lib/graphql/schema.rb#1403 + # source://graphql//lib/graphql/schema.rb#1503 def add_subscription_extension_if_necessary; end # Return a lazy if any of `maybe_lazies` are lazy, @@ -7800,7 +7800,7 @@ class GraphQL::Schema # @api private # @param maybe_lazies [Array] # - # source://graphql//lib/graphql/schema.rb#1463 + # source://graphql//lib/graphql/schema.rb#1568 def after_any_lazies(maybe_lazies); end # Call the given block at the right time, either: @@ -7809,17 +7809,17 @@ class GraphQL::Schema # # @api private # - # source://graphql//lib/graphql/schema.rb#1423 + # source://graphql//lib/graphql/schema.rb#1528 def after_lazy(value, &block); end - # source://graphql//lib/graphql/schema.rb#830 + # source://graphql//lib/graphql/schema.rb#857 def analysis_engine; end # Sets the attribute analysis_engine # # @param value the value to set the attribute analysis_engine to. # - # source://graphql//lib/graphql/schema.rb#828 + # source://graphql//lib/graphql/schema.rb#855 def analysis_engine=(_arg0); end # Return the Hash response of {Introspection::INTROSPECTION_QUERY}. @@ -7850,44 +7850,48 @@ class GraphQL::Schema # source://graphql//lib/graphql/schema.rb#416 def connections=(_arg0); end - # source://graphql//lib/graphql/schema.rb#994 + # @param new_context_class [Class] A subclass to use when executing queries + # + # source://graphql//lib/graphql/schema.rb#1024 def context_class(new_context_class = T.unsafe(nil)); end - # source://graphql//lib/graphql/schema.rb#858 + # source://graphql//lib/graphql/schema.rb#885 def count_introspection_fields; end - # source://graphql//lib/graphql/schema.rb#690 + # source://graphql//lib/graphql/schema.rb#716 def cursor_encoder(new_encoder = T.unsafe(nil)); end # @api private # @see GraphQL::Dataloader # - # source://graphql//lib/graphql/schema.rb#614 + # source://graphql//lib/graphql/schema.rb#640 def dataloader_class; end # Sets the attribute dataloader_class # # @param value the value to set the attribute dataloader_class to. # - # source://graphql//lib/graphql/schema.rb#618 + # source://graphql//lib/graphql/schema.rb#644 def dataloader_class=(_arg0); end - # source://graphql//lib/graphql/schema.rb#966 + # source://graphql//lib/graphql/schema.rb#993 def default_analysis_engine; end - # source://graphql//lib/graphql/schema.rb#1213 + # source://graphql//lib/graphql/schema.rb#1308 def default_directives; end - # source://graphql//lib/graphql/schema.rb#958 + # source://graphql//lib/graphql/schema.rb#985 def default_execution_strategy; end - # source://graphql//lib/graphql/schema.rb#974 + # @param new_default_logger [#log] Something to use for logging messages + # + # source://graphql//lib/graphql/schema.rb#1003 def default_logger(new_default_logger = T.unsafe(nil)); end - # source://graphql//lib/graphql/schema.rb#697 + # source://graphql//lib/graphql/schema.rb#723 def default_max_page_size(new_default_max_page_size = T.unsafe(nil)); end - # source://graphql//lib/graphql/schema.rb#716 + # source://graphql//lib/graphql/schema.rb#742 def default_page_size(new_default_page_size = T.unsafe(nil)); end # @param new_mode [Symbol] If configured, this will be used when `context: { trace_mode: ... }` isn't set. @@ -7903,56 +7907,62 @@ class GraphQL::Schema # source://graphql//lib/graphql/schema.rb#298 def description(new_description = T.unsafe(nil)); end + # Returns `DidYouMean` if it's defined. + # Override this to return `nil` if you don't want to use `DidYouMean` + # + # source://graphql//lib/graphql/schema.rb#1580 + def did_you_mean(new_dym = T.unsafe(nil)); end + # Attach a single directive to this schema # # @param new_directive [Class] # @return void # - # source://graphql//lib/graphql/schema.rb#1205 + # source://graphql//lib/graphql/schema.rb#1300 def directive(new_directive); end # Add several directives at once # # @param new_directives [Class] # - # source://graphql//lib/graphql/schema.rb#1189 + # source://graphql//lib/graphql/schema.rb#1284 def directives(*new_directives); end - # source://graphql//lib/graphql/schema.rb#866 + # source://graphql//lib/graphql/schema.rb#893 def disable_introspection_entry_points; end # @return [Boolean] # - # source://graphql//lib/graphql/schema.rb#884 + # source://graphql//lib/graphql/schema.rb#911 def disable_introspection_entry_points?; end - # source://graphql//lib/graphql/schema.rb#872 + # source://graphql//lib/graphql/schema.rb#899 def disable_schema_introspection_entry_point; end # @return [Boolean] # - # source://graphql//lib/graphql/schema.rb#892 + # source://graphql//lib/graphql/schema.rb#919 def disable_schema_introspection_entry_point?; end - # source://graphql//lib/graphql/schema.rb#878 + # source://graphql//lib/graphql/schema.rb#905 def disable_type_introspection_entry_point; end # @return [Boolean] # - # source://graphql//lib/graphql/schema.rb#900 + # source://graphql//lib/graphql/schema.rb#927 def disable_type_introspection_entry_point?; end - # source://graphql//lib/graphql/schema.rb#834 + # source://graphql//lib/graphql/schema.rb#861 def error_bubbling(new_error_bubbling = T.unsafe(nil)); end # Sets the attribute error_bubbling # # @param value the value to set the attribute error_bubbling to. # - # source://graphql//lib/graphql/schema.rb#843 + # source://graphql//lib/graphql/schema.rb#870 def error_bubbling=(_arg0); end - # source://graphql//lib/graphql/schema.rb#1016 + # source://graphql//lib/graphql/schema.rb#1060 def error_handlers; end # Execute a query on itself. @@ -7960,13 +7970,13 @@ class GraphQL::Schema # @return [GraphQL::Query::Result] query result, ready to be serialized as JSON # @see {Query#initialize} for arguments. # - # source://graphql//lib/graphql/schema.rb#1351 + # source://graphql//lib/graphql/schema.rb#1451 def execute(query_str = T.unsafe(nil), **kwargs); end # @param new_extra_types [Module] Type definitions to include in printing and introspection, even though they aren't referenced in the schema # @return [Array] Type definitions added to this schema # - # source://graphql//lib/graphql/schema.rb#910 + # source://graphql//lib/graphql/schema.rb#937 def extra_types(*new_extra_types); end # source://graphql//lib/graphql/schema.rb#308 @@ -7991,10 +8001,10 @@ class GraphQL::Schema # source://graphql//lib/graphql/schema.rb#102 def from_introspection(introspection_result); end - # source://graphql//lib/graphql/schema.rb#645 + # source://graphql//lib/graphql/schema.rb#671 def get_field(type_or_name, field_name, context = T.unsafe(nil)); end - # source://graphql//lib/graphql/schema.rb#668 + # source://graphql//lib/graphql/schema.rb#694 def get_fields(type, context = T.unsafe(nil)); end # @param type_name [String] @@ -8007,7 +8017,7 @@ class GraphQL::Schema # @api private # - # source://graphql//lib/graphql/schema.rb#1025 + # source://graphql//lib/graphql/schema.rb#1069 def handle_or_reraise(context, err); end # @return [Boolean] Does this schema have _any_ definition for a type named `type_name`, regardless of visibility? @@ -8015,65 +8025,77 @@ class GraphQL::Schema # source://graphql//lib/graphql/schema.rb#411 def has_defined_type?(type_name); end + # Return a stable ID string for `object` so that it can be refetched later, using {.object_from_id}. + # + # {GlobalID}(https://github.com/rails/globalid) and {SQIDs}(https://sqids.org/ruby) can both be used to create IDs. + # + # @example Using Rails's GlobalID to generate IDs + # def self.id_from_object(application_object, graphql_type, context) + # application_object.to_gid_param + # end + # @param application_object [Object] Some object encountered by GraphQL-Ruby while running a query + # @param graphql_type [Class, Module] The type that GraphQL-Ruby is using for `application_object` during this query + # @param context [GraphQL::Query::Context] The context for the operation that is currently running # @raise [GraphQL::RequiredImplementationMissingError] + # @return [String] A stable identifier which can be passed to {.object_from_id} later to re-fetch `application_object` # - # source://graphql//lib/graphql/schema.rb#1096 - def id_from_object(object, type, ctx); end + # source://graphql//lib/graphql/schema.rb#1181 + def id_from_object(application_object, graphql_type, context); end - # source://graphql//lib/graphql/schema.rb#1073 + # source://graphql//lib/graphql/schema.rb#1133 def inherited(child_class); end - # source://graphql//lib/graphql/schema.rb#1177 + # source://graphql//lib/graphql/schema.rb#1272 def instrument(instrument_step, instrumenter, options = T.unsafe(nil)); end - # source://graphql//lib/graphql/schema.rb#1395 + # source://graphql//lib/graphql/schema.rb#1495 def instrumenters; end - # source://graphql//lib/graphql/schema.rb#672 + # source://graphql//lib/graphql/schema.rb#698 def introspection(new_introspection_namespace = T.unsafe(nil)); end - # source://graphql//lib/graphql/schema.rb#682 + # source://graphql//lib/graphql/schema.rb#708 def introspection_system; end # @return [Boolean] True if this object should be lazily resolved # - # source://graphql//lib/graphql/schema.rb#1455 + # source://graphql//lib/graphql/schema.rb#1560 def lazy?(obj); end # @return [Symbol, nil] The method name to lazily resolve `obj`, or nil if `obj`'s class wasn't registered with {#lazy_resolve}. # - # source://graphql//lib/graphql/schema.rb#1450 + # source://graphql//lib/graphql/schema.rb#1555 def lazy_method_name(obj); end - # source://graphql//lib/graphql/schema.rb#1173 + # source://graphql//lib/graphql/schema.rb#1268 def lazy_resolve(lazy_class, value_method); end # Called when a type is needed by name at runtime # - # source://graphql//lib/graphql/schema.rb#1114 + # source://graphql//lib/graphql/schema.rb#1199 def load_type(type_name, ctx); end - # source://graphql//lib/graphql/schema.rb#809 + # source://graphql//lib/graphql/schema.rb#836 def max_complexity(max_complexity = T.unsafe(nil), count_introspection_fields: T.unsafe(nil)); end # Sets the attribute max_complexity # # @param value the value to set the attribute max_complexity to. # - # source://graphql//lib/graphql/schema.rb#807 + # source://graphql//lib/graphql/schema.rb#834 def max_complexity=(_arg0); end - # source://graphql//lib/graphql/schema.rb#820 + # source://graphql//lib/graphql/schema.rb#847 def max_complexity_count_introspection_fields; end - # source://graphql//lib/graphql/schema.rb#847 + # source://graphql//lib/graphql/schema.rb#874 def max_depth(new_max_depth = T.unsafe(nil), count_introspection_fields: T.unsafe(nil)); end # Sets the attribute max_depth # # @param value the value to set the attribute max_depth to. # - # source://graphql//lib/graphql/schema.rb#845 + # source://graphql//lib/graphql/schema.rb#872 def max_depth=(_arg0); end # A limit on the number of tokens to accept on incoming query strings. @@ -8081,7 +8103,7 @@ class GraphQL::Schema # # @return [nil, Integer] # - # source://graphql//lib/graphql/schema.rb#708 + # source://graphql//lib/graphql/schema.rb#734 def max_query_string_tokens(new_max_tokens = T.unsafe(nil)); end # Execute several queries on itself, concurrently. @@ -8103,19 +8125,30 @@ class GraphQL::Schema # @see {Query#initialize} for query keyword arguments # @see {Execution::Multiplex#run_all} for multiplex keyword arguments # - # source://graphql//lib/graphql/schema.rb#1391 + # source://graphql//lib/graphql/schema.rb#1491 def multiplex(queries, **kwargs); end - # source://graphql//lib/graphql/schema.rb#1332 + # @param new_analyzer [Class] An analyzer to run on multiplexes to this schema + # @see GraphQL::Analysis the analysis system + # + # source://graphql//lib/graphql/schema.rb#1432 def multiplex_analyzer(new_analyzer); end - # source://graphql//lib/graphql/schema.rb#1336 + # source://graphql//lib/graphql/schema.rb#1436 def multiplex_analyzers; end - # source://graphql//lib/graphql/schema.rb#453 + # Get or set the root `mutation { ... }` object for this schema. + # + # @example Using `Types::Mutation` as the entry-point + # mutation { Types::Mutation } + # @param new_mutation_object [Class] The root type to use for mutations + # @param lazy_load_block If a block is given, then it will be called when GraphQL-Ruby needs the root mutation type. + # @return [Class, nil] The configured mutation root type, if there is one. + # + # source://graphql//lib/graphql/schema.rb#469 def mutation(new_mutation_object = T.unsafe(nil), &lazy_load_block); end - # source://graphql//lib/graphql/schema.rb#736 + # source://graphql//lib/graphql/schema.rb#762 def mutation_execution_strategy(new_mutation_execution_strategy = T.unsafe(nil), deprecation_warning: T.unsafe(nil)); end # Create a trace instance which will include the trace modules specified for the optional mode. @@ -8126,15 +8159,27 @@ class GraphQL::Schema # @param options [Hash] Keywords that will be passed to the tracing class during `#initialize` # @return [Tracing::Trace] # - # source://graphql//lib/graphql/schema.rb#1299 + # source://graphql//lib/graphql/schema.rb#1395 def new_trace(mode: T.unsafe(nil), **options); end + # Fetch an object based on an incoming ID and the current context. This method should return an object + # from your application, or return `nil` if there is no object or the object shouldn't be available to this operation. + # + # @example Fetching an object with Rails's GlobalID + # def self.object_from_id(object_id, _context) + # GlobalID.find(global_id) + # # TODO: use `context[:current_user]` to determine if this object is authorized. + # end + # @param object_id [String] The ID to fetch an object for. This may be client-provided (as in `node(id: ...)` or `loads:`) or previously stored by the schema (eg, by the `ObjectCache`) + # @param context [GraphQL::Query::Context] The context for the currently-executing operation # @raise [GraphQL::RequiredImplementationMissingError] + # @return [Object, nil] The application which `object_id` references, or `nil` if there is no object or the current operation shouldn't have access to the object + # @see id_from_object which produces these IDs # - # source://graphql//lib/graphql/schema.rb#1092 - def object_from_id(node_id, ctx); end + # source://graphql//lib/graphql/schema.rb#1164 + def object_from_id(object_id, context); end - # source://graphql//lib/graphql/schema.rb#928 + # source://graphql//lib/graphql/schema.rb#955 def orphan_types(*new_orphan_types); end # source://graphql//lib/graphql/schema.rb#204 @@ -8151,7 +8196,7 @@ class GraphQL::Schema # @param ctx [GraphQL::Query::Context] The context for the query where the error occurred # @return void # - # source://graphql//lib/graphql/schema.rb#1169 + # source://graphql//lib/graphql/schema.rb#1264 def parse_error(parse_err, ctx); end # source://graphql//lib/graphql/schema.rb#332 @@ -8163,63 +8208,122 @@ class GraphQL::Schema # @return [Hash] All possible types, if no `type` is given. # @return [Array] Possible types for `type`, if it's given. # - # source://graphql//lib/graphql/schema.rb#561 + # source://graphql//lib/graphql/schema.rb#587 def possible_types(type = T.unsafe(nil), context = T.unsafe(nil), use_visibility_profile = T.unsafe(nil)); end - # source://graphql//lib/graphql/schema.rb#434 + # Get or set the root `query { ... }` object for this schema. + # + # @example Using `Types::Query` as the entry-point + # query { Types::Query } + # @param new_query_object [Class] The root type to use for queries + # @param lazy_load_block If a block is given, then it will be called when GraphQL-Ruby needs the root query type. + # @return [Class, nil] The configured query root type, if there is one. + # + # source://graphql//lib/graphql/schema.rb#442 def query(new_query_object = T.unsafe(nil), &lazy_load_block); end - # source://graphql//lib/graphql/schema.rb#1324 + # @param new_analyzer [Class] An analyzer to run on queries to this schema + # @see GraphQL::Analysis the analysis system + # + # source://graphql//lib/graphql/schema.rb#1422 def query_analyzer(new_analyzer); end - # source://graphql//lib/graphql/schema.rb#1328 + # source://graphql//lib/graphql/schema.rb#1426 def query_analyzers; end - # source://graphql//lib/graphql/schema.rb#789 + # @param new_query_class [Class] A subclass to use when executing queries + # + # source://graphql//lib/graphql/schema.rb#816 def query_class(new_query_class = T.unsafe(nil)); end - # source://graphql//lib/graphql/schema.rb#724 + # source://graphql//lib/graphql/schema.rb#750 def query_execution_strategy(new_query_execution_strategy = T.unsafe(nil), deprecation_warning: T.unsafe(nil)); end - # source://graphql//lib/graphql/schema.rb#1415 + # Called when execution encounters a `SystemStackError`. By default, it adds a client-facing error to the response. + # You could modify this method to report this error to your bug tracker. + # + # @param query [GraphQL::Query] + # @param err [SystemStackError] + # @return [void] + # + # source://graphql//lib/graphql/schema.rb#1520 def query_stack_error(query, err); end - # source://graphql//lib/graphql/schema.rb#620 + # source://graphql//lib/graphql/schema.rb#646 def references_to(to_type = T.unsafe(nil), from: T.unsafe(nil)); end - # source://graphql//lib/graphql/schema.rb#1002 + # Register a handler for errors raised during execution. The handlers can return a new value or raise a new error. + # + # @example Handling "not found" with a client-facing error + # rescue_from(ActiveRecord::NotFound) { raise GraphQL::ExecutionError, "An object could not be found" } + # @param err_classes [Array] Classes which should be rescued by `handler_block` + # @param handler_block The code to run when one of those errors is raised during execution + # @raise [GraphQL::ExecutionError] In the handler, raise to add a client-facing error to the response + # @raise [StandardError] In the handler, raise to crash the query with a developer-facing error + # @yieldparam error [StandardError] An instance of one of the configured `err_classes` + # @yieldparam object [Object] The current application object in the query when the error was raised + # @yieldparam arguments [GraphQL::Query::Arguments] The current field arguments when the error was raised + # @yieldparam context [GraphQL::Query::Context] The context for the currently-running operation + # @yieldreturn [Object] Some object to use in the place where this error was raised + # + # source://graphql//lib/graphql/schema.rb#1046 def rescue_from(*err_classes, &handler_block); end + # GraphQL-Ruby calls this method during execution when it needs the application to determine the type to use for an object. + # + # Usually, this object was returned from a field whose return type is an {GraphQL::Schema::Interface} or a {GraphQL::Schema::Union}. + # But this method is called in other cases, too -- for example, when {GraphQL::Schema::Argument.loads} cases an object to be directly loaded from the database. + # + # @example Returning a GraphQL type based on the object's class name + # class MySchema < GraphQL::Schema + # def resolve_type(_abs_type, object, _context) + # graphql_type_name = "Types::#{object.class.name}Type" + # graphql_type_name.constantize # If this raises a NameError, then come implement special cases in this method + # end + # end + # @param abstract_type [Class, Module, nil] The Interface or Union type which is being resolved, if there is one + # @param application_object [Object] The object returned from a field whose type must be determined + # @param context [GraphQL::Query::Context] The query context for the currently-executing query # @raise [GraphQL::RequiredImplementationMissingError] + # @return [Class] The root types (query, mutation, subscription) defined for this schema + # + # source://graphql//lib/graphql/schema.rb#534 def root_types; end - # source://graphql//lib/graphql/schema.rb#1340 + # source://graphql//lib/graphql/schema.rb#1440 def sanitized_printer(new_sanitized_printer = T.unsafe(nil)); end - # source://graphql//lib/graphql/schema.rb#1104 + # source://graphql//lib/graphql/schema.rb#1189 def schema_directive(dir_class, **options); end - # source://graphql//lib/graphql/schema.rb#1109 + # source://graphql//lib/graphql/schema.rb#1194 def schema_directives; end # source://graphql//lib/graphql/schema.rb#316 def static_validator; end - # source://graphql//lib/graphql/schema.rb#472 + # Get or set the root `subscription { ... }` object for this schema. + # + # @example Using `Types::Subscription` as the entry-point + # subscription { Types::Subscription } + # @param new_subscription_object [Class] The root type to use for subscriptions + # @param lazy_load_block If a block is given, then it will be called when GraphQL-Ruby needs the root subscription type. + # @return [Class, nil] The configured subscription root type, if there is one. + # + # source://graphql//lib/graphql/schema.rb#496 def subscription(new_subscription_object = T.unsafe(nil), &lazy_load_block); end - # source://graphql//lib/graphql/schema.rb#748 + # source://graphql//lib/graphql/schema.rb#774 def subscription_execution_strategy(new_subscription_execution_strategy = T.unsafe(nil), deprecation_warning: T.unsafe(nil)); end # @return [GraphQL::Subscriptions] @@ -8236,7 +8340,7 @@ class GraphQL::Schema # @param value [Object] an instance of a class registered with {.lazy_resolve} # @return [Object] A GraphQL-ready (non-lazy) object # - # source://graphql//lib/graphql/schema.rb#1439 + # source://graphql//lib/graphql/schema.rb#1544 def sync_lazy(value); end # Return the GraphQL IDL for the schema @@ -8295,7 +8399,7 @@ class GraphQL::Schema # # @return [Hash] # - # source://graphql//lib/graphql/schema.rb#1277 + # source://graphql//lib/graphql/schema.rb#1373 def trace_options_for(mode); end # Mix `trace_mod` into this schema's `Trace` class so that its methods @@ -8305,20 +8409,33 @@ class GraphQL::Schema # @param mode [Symbol] Trace module will only be used for this trade mode # @param options [Hash] Keywords that will be passed to the tracing class during `#initialize` # @return [void] + # @see GraphQL::Tracing::Trace for available tracing methods # - # source://graphql//lib/graphql/schema.rb#1247 + # source://graphql//lib/graphql/schema.rb#1343 def trace_with(trace_mod, mode: T.unsafe(nil), **options); end - # source://graphql//lib/graphql/schema.rb#1223 + # source://graphql//lib/graphql/schema.rb#1318 def tracer(new_tracer, silence_deprecation_warning: T.unsafe(nil)); end - # source://graphql//lib/graphql/schema.rb#1236 + # source://graphql//lib/graphql/schema.rb#1331 def tracers; end - # source://graphql//lib/graphql/schema.rb#1152 + # Called at runtime when GraphQL-Ruby encounters a mismatch between the application behavior + # and the GraphQL type system. + # + # The default implementation of this method is to follow the GraphQL specification, + # but you can override this to report errors to your bug tracker or customize error handling. + # + # @param type_error [GraphQL::Error] several specific error classes are passed here, see the default implementation for details + # @param context [GraphQL::Query::Context] the context for the currently-running operation + # @raise [GraphQL::ExecutionError] to return this error to the client + # @raise [GraphQL::Error] to crash the query and raise a developer-facing error + # @return [void] + # + # source://graphql//lib/graphql/schema.rb#1247 def type_error(type_error, ctx); end - # source://graphql//lib/graphql/schema.rb#641 + # source://graphql//lib/graphql/schema.rb#667 def type_from_ast(ast_node, context: T.unsafe(nil)); end # Build a map of `{ name => type }` and return it @@ -8342,7 +8459,7 @@ class GraphQL::Schema # @param unauthorized_error [GraphQL::UnauthorizedFieldError] # @return [Field] The returned field will be put in the GraphQL response # - # source://graphql//lib/graphql/schema.rb#1148 + # source://graphql//lib/graphql/schema.rb#1233 def unauthorized_field(unauthorized_error); end # This hook is called when an object fails an `authorized?` check. @@ -8361,10 +8478,10 @@ class GraphQL::Schema # @param unauthorized_error [GraphQL::UnauthorizedError] # @return [Object] The returned object will be put in the GraphQL response # - # source://graphql//lib/graphql/schema.rb#1132 + # source://graphql//lib/graphql/schema.rb#1217 def unauthorized_object(unauthorized_error); end - # source://graphql//lib/graphql/schema.rb#597 + # source://graphql//lib/graphql/schema.rb#623 def union_memberships(type = T.unsafe(nil)); end # Add `plugin` to this schema @@ -8377,13 +8494,13 @@ class GraphQL::Schema # @api private # - # source://graphql//lib/graphql/schema.rb#542 + # source://graphql//lib/graphql/schema.rb#568 def use_visibility_profile=(_arg0); end # @api private # @return [Boolean] # - # source://graphql//lib/graphql/schema.rb#546 + # source://graphql//lib/graphql/schema.rb#572 def use_visibility_profile?; end # Validate a query string according to this schema. @@ -8391,117 +8508,117 @@ class GraphQL::Schema # @param string_or_document [String, GraphQL::Language::Nodes::Document] # @return [Array] # - # source://graphql//lib/graphql/schema.rb#775 + # source://graphql//lib/graphql/schema.rb#801 def validate(string_or_document, rules: T.unsafe(nil), context: T.unsafe(nil)); end - # source://graphql//lib/graphql/schema.rb#799 + # source://graphql//lib/graphql/schema.rb#826 def validate_max_errors(new_validate_max_errors = T.unsafe(nil)); end # Sets the attribute validate_max_errors # # @param value the value to set the attribute validate_max_errors to. # - # source://graphql//lib/graphql/schema.rb#797 + # source://graphql//lib/graphql/schema.rb#824 def validate_max_errors=(_arg0); end - # source://graphql//lib/graphql/schema.rb#762 + # source://graphql//lib/graphql/schema.rb#788 def validate_timeout(new_validate_timeout = T.unsafe(nil)); end # Sets the attribute validate_timeout # # @param value the value to set the attribute validate_timeout to. # - # source://graphql//lib/graphql/schema.rb#760 + # source://graphql//lib/graphql/schema.rb#786 def validate_timeout=(_arg0); end # @api private # - # source://graphql//lib/graphql/schema.rb#544 + # source://graphql//lib/graphql/schema.rb#570 def visibility; end # @api private # - # source://graphql//lib/graphql/schema.rb#544 + # source://graphql//lib/graphql/schema.rb#570 def visibility=(_arg0); end # @api private # - # source://graphql//lib/graphql/schema.rb#531 + # source://graphql//lib/graphql/schema.rb#557 def visibility_profile_class; end # @api private # - # source://graphql//lib/graphql/schema.rb#542 + # source://graphql//lib/graphql/schema.rb#568 def visibility_profile_class=(_arg0); end # @return [Boolean] # - # source://graphql//lib/graphql/schema.rb#1100 + # source://graphql//lib/graphql/schema.rb#1185 def visible?(member, ctx); end - # source://graphql//lib/graphql/schema.rb#518 + # @api private + # + # source://graphql//lib/graphql/schema.rb#543 def warden_class; end - # Sets the attribute warden_class - # - # @param value the value to set the attribute warden_class to. + # @api private # - # source://graphql//lib/graphql/schema.rb#528 + # source://graphql//lib/graphql/schema.rb#554 def warden_class=(_arg0); end private - # source://graphql//lib/graphql/schema.rb#1475 + # source://graphql//lib/graphql/schema.rb#1594 def add_trace_options_for(mode, new_options); end # @param t [Module, Array] # @return [void] # - # source://graphql//lib/graphql/schema.rb#1492 + # source://graphql//lib/graphql/schema.rb#1611 def add_type_and_traverse(t, root:); end # This is overridden in subclasses to check the inheritance chain # - # source://graphql//lib/graphql/schema.rb#1607 + # source://graphql//lib/graphql/schema.rb#1726 def get_references_to(type_defn); end - # source://graphql//lib/graphql/schema.rb#1544 + # source://graphql//lib/graphql/schema.rb#1663 def lazy_methods; end - # source://graphql//lib/graphql/schema.rb#1566 + # source://graphql//lib/graphql/schema.rb#1685 def non_introspection_types; end - # source://graphql//lib/graphql/schema.rb#1586 + # source://graphql//lib/graphql/schema.rb#1705 def own_directives; end - # source://graphql//lib/graphql/schema.rb#1590 + # source://graphql//lib/graphql/schema.rb#1709 def own_instrumenters; end - # source://graphql//lib/graphql/schema.rb#1602 + # source://graphql//lib/graphql/schema.rb#1721 def own_multiplex_analyzers; end - # source://graphql//lib/graphql/schema.rb#1574 + # source://graphql//lib/graphql/schema.rb#1693 def own_orphan_types; end - # source://graphql//lib/graphql/schema.rb#1570 + # source://graphql//lib/graphql/schema.rb#1689 def own_plugins; end - # source://graphql//lib/graphql/schema.rb#1578 + # source://graphql//lib/graphql/schema.rb#1697 def own_possible_types; end - # source://graphql//lib/graphql/schema.rb#1598 + # source://graphql//lib/graphql/schema.rb#1717 def own_query_analyzers; end - # source://graphql//lib/graphql/schema.rb#1562 + # source://graphql//lib/graphql/schema.rb#1681 def own_references_to; end - # source://graphql//lib/graphql/schema.rb#1594 + # source://graphql//lib/graphql/schema.rb#1713 def own_tracers; end - # source://graphql//lib/graphql/schema.rb#1558 + # source://graphql//lib/graphql/schema.rb#1677 def own_types; end - # source://graphql//lib/graphql/schema.rb#1582 + # source://graphql//lib/graphql/schema.rb#1701 def own_union_memberships; end end end @@ -8985,7 +9102,7 @@ end # @api private # -# source://graphql//lib/graphql/schema.rb#1632 +# source://graphql//lib/graphql/schema.rb#1751 module GraphQL::Schema::DefaultTraceClass; end # Subclasses of this can influence how {GraphQL::Execution::Interpreter} runs queries. @@ -9375,7 +9492,7 @@ class GraphQL::Schema::Enum < ::GraphQL::Schema::Member class << self # @return [Array] An unfiltered list of all definitions # - # source://graphql//lib/graphql/schema/enum.rb#109 + # source://graphql//lib/graphql/schema/enum.rb#123 def all_enum_value_definitions; end # Called by the runtime with incoming string representations from a query. @@ -9386,7 +9503,7 @@ class GraphQL::Schema::Enum < ::GraphQL::Schema::Member # @raise [GraphQL::UnauthorizedEnumValueError] if an {EnumValue} matches but returns false for `.authorized?`. Goes to {Schema.unauthorized_object}. # @return [Object] The Ruby value for the matched {GraphQL::Schema::EnumValue} # - # source://graphql//lib/graphql/schema/enum.rb#181 + # source://graphql//lib/graphql/schema/enum.rb#197 def coerce_input(value_name, ctx); end # Called by the runtime when a field returns a value to give back to the client. @@ -9397,12 +9514,12 @@ class GraphQL::Schema::Enum < ::GraphQL::Schema::Member # @raise [GraphQL::Schema::Enum::UnresolvedValueError] if {value} doesn't match a configured value or if the matching value isn't authorized. # @return [String] The GraphQL-ready string for {value} # - # source://graphql//lib/graphql/schema/enum.rb#164 + # source://graphql//lib/graphql/schema/enum.rb#180 def coerce_result(value, ctx); end # @return [Class] for handling `value(...)` inputs and building `GraphQL::Enum::EnumValue`s out of them # - # source://graphql//lib/graphql/schema/enum.rb#133 + # source://graphql//lib/graphql/schema/enum.rb#147 def enum_value_class(new_enum_value_class = T.unsafe(nil)); end # @return [Array] Possible values of this enum @@ -9412,13 +9529,13 @@ class GraphQL::Schema::Enum < ::GraphQL::Schema::Member # @private # - # source://graphql//lib/graphql/schema/enum.rb#196 + # source://graphql//lib/graphql/schema/enum.rb#212 def inherited(child_class); end - # source://graphql//lib/graphql/schema/enum.rb#143 + # source://graphql//lib/graphql/schema/enum.rb#157 def kind; end - # source://graphql//lib/graphql/schema/enum.rb#147 + # source://graphql//lib/graphql/schema/enum.rb#161 def validate_non_null_input(value_name, ctx, max_errors: T.unsafe(nil)); end # Define a value for this enum @@ -9437,12 +9554,12 @@ class GraphQL::Schema::Enum < ::GraphQL::Schema::Member # @return [Hash GraphQL::Schema::EnumValue>] Possible values of this enum, keyed by name. # - # source://graphql//lib/graphql/schema/enum.rb#128 + # source://graphql//lib/graphql/schema/enum.rb#142 def values(context = T.unsafe(nil)); end private - # source://graphql//lib/graphql/schema/enum.rb#207 + # source://graphql//lib/graphql/schema/enum.rb#223 def own_values; end end end @@ -10341,7 +10458,7 @@ class GraphQL::Schema::InputObject < ::GraphQL::Schema::Member private - # source://graphql//lib/graphql/schema/input_object.rb#250 + # source://graphql//lib/graphql/schema/input_object.rb#263 def overwrite_argument(key, value); end class << self @@ -10353,16 +10470,16 @@ class GraphQL::Schema::InputObject < ::GraphQL::Schema::Member # source://graphql//lib/graphql/schema/input_object.rb#59 def authorized?(obj, value, ctx); end - # source://graphql//lib/graphql/schema/input_object.rb#209 + # source://graphql//lib/graphql/schema/input_object.rb#211 def coerce_input(value, ctx); end # It's funny to think of a _result_ of an input object. # This is used for rendering the default value in introspection responses. # - # source://graphql//lib/graphql/schema/input_object.rb#227 + # source://graphql//lib/graphql/schema/input_object.rb#229 def coerce_result(value, ctx); end - # source://graphql//lib/graphql/schema/input_object.rb#145 + # source://graphql//lib/graphql/schema/input_object.rb#147 def kind; end # source://graphql//lib/graphql/schema/input_object.rb#73 @@ -10373,8 +10490,15 @@ class GraphQL::Schema::InputObject < ::GraphQL::Schema::Member # source://graphql//lib/graphql/schema/input_object.rb#82 def one_of?; end - # source://graphql//lib/graphql/schema/input_object.rb#152 + # source://graphql//lib/graphql/schema/input_object.rb#154 def validate_non_null_input(input, ctx, max_errors: T.unsafe(nil)); end + + private + + # Suppress redefinition warning for objectId arguments + # + # source://graphql//lib/graphql/schema/input_object.rb#252 + def suppress_redefinition_warning; end end end @@ -11828,10 +11952,10 @@ class GraphQL::Schema::Printer < ::GraphQL::Language::Printer # Return a GraphQL schema string for the defined types in the schema # - # source://graphql//lib/graphql/schema/printer.rb#87 + # source://graphql//lib/graphql/schema/printer.rb#88 def print_schema; end - # source://graphql//lib/graphql/schema/printer.rb#91 + # source://graphql//lib/graphql/schema/printer.rb#92 def print_type(type); end # Returns the value of attribute schema. @@ -11857,14 +11981,14 @@ class GraphQL::Schema::Printer < ::GraphQL::Language::Printer # @param only [<#call(member, ctx)>] # @param except [<#call(member, ctx)>] # - # source://graphql//lib/graphql/schema/printer.rb#81 + # source://graphql//lib/graphql/schema/printer.rb#82 def print_schema(schema, **args); end end end -# source://graphql//lib/graphql/schema/printer.rb#96 +# source://graphql//lib/graphql/schema/printer.rb#97 class GraphQL::Schema::Printer::IntrospectionPrinter < ::GraphQL::Language::Printer - # source://graphql//lib/graphql/schema/printer.rb#97 + # source://graphql//lib/graphql/schema/printer.rb#98 def print_schema_definition(schema); end end @@ -12248,9 +12372,9 @@ class GraphQL::Schema::Scalar < ::GraphQL::Schema::Member end end -# source://graphql//lib/graphql/schema.rb#1612 +# source://graphql//lib/graphql/schema.rb#1731 module GraphQL::Schema::SubclassGetReferencesTo - # source://graphql//lib/graphql/schema.rb#1613 + # source://graphql//lib/graphql/schema.rb#1732 def get_references_to(type_defn); end end @@ -13047,70 +13171,73 @@ class GraphQL::Schema::Visibility::Migration < ::GraphQL::Schema::Visibility::Pr # source://graphql//lib/graphql/schema/visibility/migration.rb#79 def initialize(context:, schema:, name: T.unsafe(nil)); end - # source://graphql//lib/graphql/schema/visibility/migration.rb#128 + # source://graphql//lib/graphql/schema/visibility/migration.rb#130 def all_types(*args); end - # source://graphql//lib/graphql/schema/visibility/migration.rb#128 + # source://graphql//lib/graphql/schema/visibility/migration.rb#130 def all_types_h(*args); end - # source://graphql//lib/graphql/schema/visibility/migration.rb#128 + # source://graphql//lib/graphql/schema/visibility/migration.rb#130 def argument(*args); end - # source://graphql//lib/graphql/schema/visibility/migration.rb#128 + # source://graphql//lib/graphql/schema/visibility/migration.rb#130 def arguments(*args); end - # source://graphql//lib/graphql/schema/visibility/migration.rb#133 + # source://graphql//lib/graphql/schema/visibility/migration.rb#135 def call_method_and_compare(method, args); end - # source://graphql//lib/graphql/schema/visibility/migration.rb#128 + # source://graphql//lib/graphql/schema/visibility/migration.rb#130 def directive_exists?(*args); end - # source://graphql//lib/graphql/schema/visibility/migration.rb#128 + # source://graphql//lib/graphql/schema/visibility/migration.rb#130 def directives(*args); end - # source://graphql//lib/graphql/schema/visibility/migration.rb#128 + # source://graphql//lib/graphql/schema/visibility/migration.rb#130 def enum_values(*args); end # @return [Boolean] # - # source://graphql//lib/graphql/schema/visibility/migration.rb#151 + # source://graphql//lib/graphql/schema/visibility/migration.rb#153 def equivalent_schema_members?(member1, member2); end - # source://graphql//lib/graphql/schema/visibility/migration.rb#128 + # source://graphql//lib/graphql/schema/visibility/migration.rb#130 def field(*args); end - # source://graphql//lib/graphql/schema/visibility/migration.rb#128 + # source://graphql//lib/graphql/schema/visibility/migration.rb#130 def fields(*args); end - # source://graphql//lib/graphql/schema/visibility/migration.rb#128 + # source://graphql//lib/graphql/schema/visibility/migration.rb#130 def interfaces(*args); end - # source://graphql//lib/graphql/schema/visibility/migration.rb#128 + # source://graphql//lib/graphql/schema/visibility/migration.rb#130 def loadable?(*args); end - # source://graphql//lib/graphql/schema/visibility/migration.rb#103 + # source://graphql//lib/graphql/schema/visibility/migration.rb#104 def loaded_types; end - # source://graphql//lib/graphql/schema/visibility/migration.rb#128 + # source://graphql//lib/graphql/schema/visibility/migration.rb#130 def mutation_root(*args); end - # source://graphql//lib/graphql/schema/visibility/migration.rb#128 + # source://graphql//lib/graphql/schema/visibility/migration.rb#130 def possible_types(*args); end - # source://graphql//lib/graphql/schema/visibility/migration.rb#128 + # source://graphql//lib/graphql/schema/visibility/migration.rb#130 def query_root(*args); end - # source://graphql//lib/graphql/schema/visibility/migration.rb#128 + # source://graphql//lib/graphql/schema/visibility/migration.rb#130 def reachable_type?(*args); end - # source://graphql//lib/graphql/schema/visibility/migration.rb#128 + # source://graphql//lib/graphql/schema/visibility/migration.rb#130 def subscription_root(*args); end - # source://graphql//lib/graphql/schema/visibility/migration.rb#128 + # source://graphql//lib/graphql/schema/visibility/migration.rb#130 def type(*args); end + + # source://graphql//lib/graphql/schema/visibility/migration.rb#130 + def visible_enum_value?(*args); end end -# source://graphql//lib/graphql/schema/visibility/migration.rb#107 +# source://graphql//lib/graphql/schema/visibility/migration.rb#108 GraphQL::Schema::Visibility::Migration::PUBLIC_PROFILE_METHODS = T.let(T.unsafe(nil), Array) # source://graphql//lib/graphql/schema/visibility/migration.rb#30 @@ -13216,34 +13343,39 @@ class GraphQL::Schema::Visibility::Profile # source://graphql//lib/graphql/schema/visibility/profile.rb#166 def type(type_name); end + # @return [Boolean] + # + # source://graphql//lib/graphql/schema/visibility/profile.rb#330 + def visible_enum_value?(enum_value, _ctx = T.unsafe(nil)); end + private - # source://graphql//lib/graphql/schema/visibility/profile.rb#332 + # source://graphql//lib/graphql/schema/visibility/profile.rb#336 def add_if_visible(t); end - # source://graphql//lib/graphql/schema/visibility/profile.rb#336 + # source://graphql//lib/graphql/schema/visibility/profile.rb#340 def add_type(t, by_member); end - # source://graphql//lib/graphql/schema/visibility/profile.rb#377 + # source://graphql//lib/graphql/schema/visibility/profile.rb#381 def load_all_types; end - # source://graphql//lib/graphql/schema/visibility/profile.rb#355 + # source://graphql//lib/graphql/schema/visibility/profile.rb#359 def non_duplicate_items(definitions, visibility_cache); end # @raise [DuplicateNamesError] # - # source://graphql//lib/graphql/schema/visibility/profile.rb#368 + # source://graphql//lib/graphql/schema/visibility/profile.rb#372 def raise_duplicate_definition(first_defn, second_defn); end # @return [Boolean] # - # source://graphql//lib/graphql/schema/visibility/profile.rb#372 + # source://graphql//lib/graphql/schema/visibility/profile.rb#376 def referenced?(t); end - # source://graphql//lib/graphql/schema/visibility/profile.rb#505 + # source://graphql//lib/graphql/schema/visibility/profile.rb#509 def visit_directives(member); end - # source://graphql//lib/graphql/schema/visibility/profile.rb#437 + # source://graphql//lib/graphql/schema/visibility/profile.rb#441 def visit_type(type); end class << self @@ -13253,7 +13385,7 @@ class GraphQL::Schema::Visibility::Profile def from_context(ctx, schema); end # source://graphql//lib/graphql/schema/visibility/profile.rb#25 - def pass_thru(context:, schema:); end + def null_profile(context:, schema:); end end end @@ -13272,136 +13404,146 @@ class GraphQL::Schema::Warden # @param schema [GraphQL::Schema] # @return [Warden] a new instance of Warden # - # source://graphql//lib/graphql/schema/warden.rb#183 + # source://graphql//lib/graphql/schema/warden.rb#194 def initialize(context:, schema:); end # @api private # @param argument_owner [GraphQL::Field, GraphQL::InputObjectType] # @return [Array] Visible arguments on `argument_owner` # - # source://graphql//lib/graphql/schema/warden.rb#283 + # source://graphql//lib/graphql/schema/warden.rb#297 def arguments(argument_owner, ctx = T.unsafe(nil)); end # @api private # - # source://graphql//lib/graphql/schema/warden.rb#326 + # source://graphql//lib/graphql/schema/warden.rb#340 def directives; end # @api private # @return [Array] Visible members of `enum_defn` # - # source://graphql//lib/graphql/schema/warden.rb#298 + # source://graphql//lib/graphql/schema/warden.rb#312 def enum_values(enum_defn); end # @api private # @param type_defn [GraphQL::ObjectType, GraphQL::InterfaceType] # @return [Array] Fields on `type_defn` # - # source://graphql//lib/graphql/schema/warden.rb#276 + # source://graphql//lib/graphql/schema/warden.rb#290 def fields(type_defn); end # @api private # @return [GraphQL::Argument, nil] The argument named `argument_name` on `parent_type`, if it exists and is visible # - # source://graphql//lib/graphql/schema/warden.rb#260 + # source://graphql//lib/graphql/schema/warden.rb#274 def get_argument(parent_type, argument_name); end # @api private # @return [GraphQL::Field, nil] The field named `field_name` on `parent_type`, if it exists # - # source://graphql//lib/graphql/schema/warden.rb#244 + # source://graphql//lib/graphql/schema/warden.rb#258 def get_field(parent_type, field_name); end # @api private # @return [GraphQL::BaseType, nil] The type named `type_name`, if it exists (else `nil`) # - # source://graphql//lib/graphql/schema/warden.rb#219 + # source://graphql//lib/graphql/schema/warden.rb#233 def get_type(type_name); end # @api private # - # source://graphql//lib/graphql/schema/warden.rb#363 + # source://graphql//lib/graphql/schema/warden.rb#377 def interface_type_memberships(obj_type, _ctx = T.unsafe(nil)); end # @api private # @return [Array] Visible interfaces implemented by `obj_type` # - # source://graphql//lib/graphql/schema/warden.rb#315 + # source://graphql//lib/graphql/schema/warden.rb#329 def interfaces(obj_type); end # @api private # @return [Boolean] True if this type is used for `loads:` but not in the schema otherwise and not _explicitly_ hidden. # - # source://graphql//lib/graphql/schema/warden.rb#214 + # source://graphql//lib/graphql/schema/warden.rb#228 def loadable?(type, _ctx); end # @api private # @return [Array] The types which may be member of `type_defn` # - # source://graphql//lib/graphql/schema/warden.rb#266 + # source://graphql//lib/graphql/schema/warden.rb#280 def possible_types(type_defn); end # @api private # @return [Boolean] Boolean True if the type is visible and reachable in the schema # - # source://graphql//lib/graphql/schema/warden.rb#238 + # source://graphql//lib/graphql/schema/warden.rb#252 def reachable_type?(type_name); end # @api private # @return [Array] Visible and reachable types in the schema # - # source://graphql//lib/graphql/schema/warden.rb#233 + # source://graphql//lib/graphql/schema/warden.rb#247 def reachable_types; end # @api private # - # source://graphql//lib/graphql/schema/warden.rb#330 + # source://graphql//lib/graphql/schema/warden.rb#344 def root_type_for_operation(op_name); end + # @api private + # + # source://graphql//lib/graphql/schema/warden.rb#212 + def skip_warning=(_arg0); end + # @api private # @return [Hash] Visible types in the schema # - # source://graphql//lib/graphql/schema/warden.rb#201 + # source://graphql//lib/graphql/schema/warden.rb#215 def types; end # @api private # - # source://graphql//lib/graphql/schema/warden.rb#107 + # source://graphql//lib/graphql/schema/warden.rb#114 def visibility_profile; end # @api private # @return [Boolean] # - # source://graphql//lib/graphql/schema/warden.rb#350 + # source://graphql//lib/graphql/schema/warden.rb#364 def visible_argument?(arg_defn, _ctx = T.unsafe(nil)); end # @api private # @return [Boolean] # - # source://graphql//lib/graphql/schema/warden.rb#309 + # source://graphql//lib/graphql/schema/warden.rb#323 def visible_enum_value?(enum_value, _ctx = T.unsafe(nil)); end # @api private # @param owner [Class, Module] If provided, confirm that field has the given owner. # @return [Boolean] # - # source://graphql//lib/graphql/schema/warden.rb#340 + # source://graphql//lib/graphql/schema/warden.rb#354 def visible_field?(field_defn, _ctx = T.unsafe(nil), owner = T.unsafe(nil)); end # @api private # @return [Boolean] # - # source://graphql//lib/graphql/schema/warden.rb#354 + # source://graphql//lib/graphql/schema/warden.rb#368 def visible_type?(type_defn, _ctx = T.unsafe(nil)); end # @api private # @return [Boolean] # - # source://graphql//lib/graphql/schema/warden.rb#359 + # source://graphql//lib/graphql/schema/warden.rb#373 def visible_type_membership?(type_membership, _ctx = T.unsafe(nil)); end private + # @api private + # + # source://graphql//lib/graphql/schema/warden.rb#482 + def check_visible(schema, member); end + # If this field was inherited from an interface, and the field on that interface is _hidden_, # then treat this inherited field as hidden. # (If it _wasn't_ inherited, then don't hide it for this reason.) @@ -13409,35 +13551,35 @@ class GraphQL::Schema::Warden # @api private # @return [Boolean] # - # source://graphql//lib/graphql/schema/warden.rb#419 + # source://graphql//lib/graphql/schema/warden.rb#433 def field_on_visible_interface?(field_defn, type_defn); end # @api private # @return [Boolean] # - # source://graphql//lib/graphql/schema/warden.rb#456 + # source://graphql//lib/graphql/schema/warden.rb#470 def orphan_type?(type_defn); end # @api private # - # source://graphql//lib/graphql/schema/warden.rb#468 + # source://graphql//lib/graphql/schema/warden.rb#534 def reachable_type_set; end # @api private # - # source://graphql//lib/graphql/schema/warden.rb#464 + # source://graphql//lib/graphql/schema/warden.rb#478 def read_through; end # @api private # @return [Boolean] # - # source://graphql//lib/graphql/schema/warden.rb#451 + # source://graphql//lib/graphql/schema/warden.rb#465 def referenced?(type_defn); end # @api private # @return [Boolean] # - # source://graphql//lib/graphql/schema/warden.rb#445 + # source://graphql//lib/graphql/schema/warden.rb#459 def root_type?(type_defn); end # We need this to tell whether a field was inherited by an interface @@ -13445,29 +13587,29 @@ class GraphQL::Schema::Warden # # @api private # - # source://graphql//lib/graphql/schema/warden.rb#411 + # source://graphql//lib/graphql/schema/warden.rb#425 def unfiltered_interfaces(type_defn); end # @api private # - # source://graphql//lib/graphql/schema/warden.rb#404 + # source://graphql//lib/graphql/schema/warden.rb#418 def union_memberships(obj_type); end # @api private # @return [Boolean] # - # source://graphql//lib/graphql/schema/warden.rb#460 + # source://graphql//lib/graphql/schema/warden.rb#474 def visible?(member); end # @api private # @return [Boolean] # - # source://graphql//lib/graphql/schema/warden.rb#372 + # source://graphql//lib/graphql/schema/warden.rb#386 def visible_and_reachable_type?(type_defn); end # @api private # - # source://graphql//lib/graphql/schema/warden.rb#506 + # source://graphql//lib/graphql/schema/warden.rb#572 def visit_type(type, unvisited_types, visited_type_set, type_by_name_hash, included_interface_possible_types_set, include_interface_possible_types:); end class << self @@ -13476,6 +13618,16 @@ class GraphQL::Schema::Warden # source://graphql//lib/graphql/schema/warden.rb#15 def from_context(context); end + # @api private + # + # source://graphql//lib/graphql/schema/warden.rb#22 + def types_from_context(context); end + + # @api private + # + # source://graphql//lib/graphql/schema/warden.rb#29 + def use(schema); end + # @api private # @param visibility_method [Symbol] a Warden method to call for this entry # @param entry [Object, Array] One or more definitions for a given name in a GraphQL Schema @@ -13484,146 +13636,146 @@ class GraphQL::Schema::Warden # @return [Object] `entry` or one of `entry`'s items if exactly one of them is visible for this context # @return [nil] If neither `entry` nor any of `entry`'s items are visible for this context # - # source://graphql//lib/graphql/schema/warden.rb#28 + # source://graphql//lib/graphql/schema/warden.rb#39 def visible_entry?(visibility_method, entry, context, warden = T.unsafe(nil)); end end end # @api private # -# source://graphql//lib/graphql/schema/warden.rb#70 +# source://graphql//lib/graphql/schema/warden.rb#518 +GraphQL::Schema::Warden::ADD_WARDEN_WARNING = T.let(T.unsafe(nil), String) + +# @api private +# +# source://graphql//lib/graphql/schema/warden.rb#81 class GraphQL::Schema::Warden::NullWarden # @api private # @return [NullWarden] a new instance of NullWarden # - # source://graphql//lib/graphql/schema/warden.rb#71 + # source://graphql//lib/graphql/schema/warden.rb#82 def initialize(_filter = T.unsafe(nil), context:, schema:); end # @api private # - # source://graphql//lib/graphql/schema/warden.rb#92 + # source://graphql//lib/graphql/schema/warden.rb#99 def arguments(argument_owner, ctx = T.unsafe(nil)); end # @api private # - # source://graphql//lib/graphql/schema/warden.rb#97 + # source://graphql//lib/graphql/schema/warden.rb#104 def directives; end # @api private # - # source://graphql//lib/graphql/schema/warden.rb#93 + # source://graphql//lib/graphql/schema/warden.rb#100 def enum_values(enum_defn); end # @api private # - # source://graphql//lib/graphql/schema/warden.rb#98 + # source://graphql//lib/graphql/schema/warden.rb#105 def fields(type_defn); end # @api private # - # source://graphql//lib/graphql/schema/warden.rb#94 + # source://graphql//lib/graphql/schema/warden.rb#101 def get_argument(parent_type, argument_name); end # @api private # - # source://graphql//lib/graphql/schema/warden.rb#99 + # source://graphql//lib/graphql/schema/warden.rb#106 def get_field(parent_type, field_name); end # @api private # - # source://graphql//lib/graphql/schema/warden.rb#91 + # source://graphql//lib/graphql/schema/warden.rb#98 def get_type(type_name); end # @api private # - # source://graphql//lib/graphql/schema/warden.rb#90 + # source://graphql//lib/graphql/schema/warden.rb#97 def interface_type_memberships(obj_type, _ctx = T.unsafe(nil)); end # @api private # - # source://graphql//lib/graphql/schema/warden.rb#104 + # source://graphql//lib/graphql/schema/warden.rb#111 def interfaces(obj_type); end # @api private # @return [Boolean] # - # source://graphql//lib/graphql/schema/warden.rb#101 + # source://graphql//lib/graphql/schema/warden.rb#108 def loadable?(type, _ctx); end # @api private # - # source://graphql//lib/graphql/schema/warden.rb#103 + # source://graphql//lib/graphql/schema/warden.rb#110 def possible_types(type_defn); end # @api private # @return [Boolean] # - # source://graphql//lib/graphql/schema/warden.rb#100 + # source://graphql//lib/graphql/schema/warden.rb#107 def reachable_type?(type_name); end # @api private # - # source://graphql//lib/graphql/schema/warden.rb#102 + # source://graphql//lib/graphql/schema/warden.rb#109 def reachable_types; end # @api private # - # source://graphql//lib/graphql/schema/warden.rb#96 + # source://graphql//lib/graphql/schema/warden.rb#103 def root_type_for_operation(op_name); end + # No-op, but for compatibility: + # # @api private # - # source://graphql//lib/graphql/schema/warden.rb#95 + # source://graphql//lib/graphql/schema/warden.rb#88 + def skip_warning=(_arg0); end + + # @api private + # + # source://graphql//lib/graphql/schema/warden.rb#102 def types; end # @api private # - # source://graphql//lib/graphql/schema/warden.rb#83 + # source://graphql//lib/graphql/schema/warden.rb#90 def visibility_profile; end # @api private # @return [Boolean] # - # source://graphql//lib/graphql/schema/warden.rb#86 + # source://graphql//lib/graphql/schema/warden.rb#93 def visible_argument?(arg_defn, _ctx = T.unsafe(nil)); end # @api private # @return [Boolean] # - # source://graphql//lib/graphql/schema/warden.rb#88 + # source://graphql//lib/graphql/schema/warden.rb#95 def visible_enum_value?(enum_value, _ctx = T.unsafe(nil)); end # @api private # @return [Boolean] # - # source://graphql//lib/graphql/schema/warden.rb#85 + # source://graphql//lib/graphql/schema/warden.rb#92 def visible_field?(field_defn, _ctx = T.unsafe(nil), owner = T.unsafe(nil)); end # @api private # @return [Boolean] # - # source://graphql//lib/graphql/schema/warden.rb#87 + # source://graphql//lib/graphql/schema/warden.rb#94 def visible_type?(type_defn, _ctx = T.unsafe(nil)); end # @api private # @return [Boolean] # - # source://graphql//lib/graphql/schema/warden.rb#89 + # source://graphql//lib/graphql/schema/warden.rb#96 def visible_type_membership?(type_membership, _ctx = T.unsafe(nil)); end end -# @api private -# -# source://graphql//lib/graphql/schema/warden.rb#77 -module GraphQL::Schema::Warden::NullWarden::NullVisibilityProfile - class << self - # @api private - # - # source://graphql//lib/graphql/schema/warden.rb#78 - def new(context:, schema:); end - end -end - # This is used when a caller provides a Hash for context. # We want to call the schema's hooks, but we don't have a full-blown warden. # The `context` arguments to these methods exist purely to simplify the code that @@ -13631,116 +13783,116 @@ end # # @api private # -# source://graphql//lib/graphql/schema/warden.rb#54 +# source://graphql//lib/graphql/schema/warden.rb#65 class GraphQL::Schema::Warden::PassThruWarden class << self # @api private # - # source://graphql//lib/graphql/schema/warden.rb#62 + # source://graphql//lib/graphql/schema/warden.rb#73 def arguments(owner, ctx); end # @api private # - # source://graphql//lib/graphql/schema/warden.rb#61 + # source://graphql//lib/graphql/schema/warden.rb#72 def interface_type_memberships(obj_t, ctx); end # @api private # @return [Boolean] # - # source://graphql//lib/graphql/schema/warden.rb#63 + # source://graphql//lib/graphql/schema/warden.rb#74 def loadable?(type, ctx); end # @api private # - # source://graphql//lib/graphql/schema/warden.rb#64 + # source://graphql//lib/graphql/schema/warden.rb#75 def visibility_profile; end # @api private # @return [Boolean] # - # source://graphql//lib/graphql/schema/warden.rb#57 + # source://graphql//lib/graphql/schema/warden.rb#68 def visible_argument?(arg, ctx); end # @api private # @return [Boolean] # - # source://graphql//lib/graphql/schema/warden.rb#59 + # source://graphql//lib/graphql/schema/warden.rb#70 def visible_enum_value?(ev, ctx); end # @api private # @return [Boolean] # - # source://graphql//lib/graphql/schema/warden.rb#56 + # source://graphql//lib/graphql/schema/warden.rb#67 def visible_field?(field, ctx); end # @api private # @return [Boolean] # - # source://graphql//lib/graphql/schema/warden.rb#58 + # source://graphql//lib/graphql/schema/warden.rb#69 def visible_type?(type, ctx); end # @api private # @return [Boolean] # - # source://graphql//lib/graphql/schema/warden.rb#60 + # source://graphql//lib/graphql/schema/warden.rb#71 def visible_type_membership?(tm, ctx); end end end # @api private # -# source://graphql//lib/graphql/schema/warden.rb#111 +# source://graphql//lib/graphql/schema/warden.rb#118 class GraphQL::Schema::Warden::VisibilityProfile # @api private # @return [VisibilityProfile] a new instance of VisibilityProfile # - # source://graphql//lib/graphql/schema/warden.rb#112 + # source://graphql//lib/graphql/schema/warden.rb#119 def initialize(warden); end # @api private # - # source://graphql//lib/graphql/schema/warden.rb#164 + # source://graphql//lib/graphql/schema/warden.rb#171 def all_types; end # @api private # - # source://graphql//lib/graphql/schema/warden.rb#132 + # source://graphql//lib/graphql/schema/warden.rb#139 def argument(owner, arg_name); end # @api private # - # source://graphql//lib/graphql/schema/warden.rb#148 + # source://graphql//lib/graphql/schema/warden.rb#155 def arguments(owner); end # @api private # @return [Boolean] # - # source://graphql//lib/graphql/schema/warden.rb#120 + # source://graphql//lib/graphql/schema/warden.rb#127 def directive_exists?(dir_name); end # @api private # - # source://graphql//lib/graphql/schema/warden.rb#116 + # source://graphql//lib/graphql/schema/warden.rb#123 def directives; end # @api private # - # source://graphql//lib/graphql/schema/warden.rb#160 + # source://graphql//lib/graphql/schema/warden.rb#167 def enum_values(enum_type); end # @api private # - # source://graphql//lib/graphql/schema/warden.rb#128 + # source://graphql//lib/graphql/schema/warden.rb#135 def field(owner, field_name); end # @api private # - # source://graphql//lib/graphql/schema/warden.rb#152 + # source://graphql//lib/graphql/schema/warden.rb#159 def fields(owner); end # @api private # - # source://graphql//lib/graphql/schema/warden.rb#168 + # source://graphql//lib/graphql/schema/warden.rb#175 def interfaces(obj_type); end # TODO remove ctx here? @@ -13748,39 +13900,45 @@ class GraphQL::Schema::Warden::VisibilityProfile # @api private # @return [Boolean] # - # source://graphql//lib/graphql/schema/warden.rb#172 + # source://graphql//lib/graphql/schema/warden.rb#179 def loadable?(t, ctx); end # @api private # - # source://graphql//lib/graphql/schema/warden.rb#140 + # source://graphql//lib/graphql/schema/warden.rb#147 def mutation_root; end # @api private # - # source://graphql//lib/graphql/schema/warden.rb#156 + # source://graphql//lib/graphql/schema/warden.rb#163 def possible_types(type); end # @api private # - # source://graphql//lib/graphql/schema/warden.rb#136 + # source://graphql//lib/graphql/schema/warden.rb#143 def query_root; end # @api private # @return [Boolean] # - # source://graphql//lib/graphql/schema/warden.rb#176 + # source://graphql//lib/graphql/schema/warden.rb#183 def reachable_type?(type_name); end # @api private # - # source://graphql//lib/graphql/schema/warden.rb#144 + # source://graphql//lib/graphql/schema/warden.rb#151 def subscription_root; end # @api private # - # source://graphql//lib/graphql/schema/warden.rb#124 + # source://graphql//lib/graphql/schema/warden.rb#131 def type(name); end + + # @api private + # @return [Boolean] + # + # source://graphql//lib/graphql/schema/warden.rb#187 + def visible_enum_value?(enum_value, ctx = T.unsafe(nil)); end end # source://graphql//lib/graphql/schema/wrapper.rb#5 @@ -13900,15 +14058,15 @@ module GraphQL::StaticValidation::ArgumentsAreDefined private - # source://graphql//lib/graphql/static_validation/rules/arguments_are_defined.rb#43 + # source://graphql//lib/graphql/static_validation/rules/arguments_are_defined.rb#44 def node_type(parent); end - # source://graphql//lib/graphql/static_validation/rules/arguments_are_defined.rb#47 + # source://graphql//lib/graphql/static_validation/rules/arguments_are_defined.rb#48 def parent_definition(parent); end # TODO smell: these methods are added to all visitors, since they're included in a module. # - # source://graphql//lib/graphql/static_validation/rules/arguments_are_defined.rb#30 + # source://graphql//lib/graphql/static_validation/rules/arguments_are_defined.rb#31 def parent_name(parent, type_defn); end end @@ -15341,6 +15499,9 @@ class GraphQL::StaticValidation::ValidationContext # source://forwardable/1.3.3/forwardable.rb#231 def dependencies(*args, **_arg1, &block); end + # source://graphql//lib/graphql/static_validation/validation_context.rb#52 + def did_you_mean_suggestion(name, options); end + # source://forwardable/1.3.3/forwardable.rb#231 def directive_definition(*args, **_arg1, &block); end @@ -15616,7 +15777,7 @@ module GraphQL::StaticValidation::VariablesAreInputTypes private - # source://graphql//lib/graphql/static_validation/rules/variables_are_input_types.rb#30 + # source://graphql//lib/graphql/static_validation/rules/variables_are_input_types.rb#39 def get_type_name(ast_type); end end diff --git a/sorbet/rbi/gems/json@2.7.4.rbi b/sorbet/rbi/gems/json@2.7.6.rbi similarity index 96% rename from sorbet/rbi/gems/json@2.7.4.rbi rename to sorbet/rbi/gems/json@2.7.6.rbi index 5fb5bd9ac..d2f9dadcf 100644 --- a/sorbet/rbi/gems/json@2.7.4.rbi +++ b/sorbet/rbi/gems/json@2.7.6.rbi @@ -7,7 +7,7 @@ # Extends any Class to include _json_creatable?_ method. # -# source://json//lib/json/common.rb#721 +# source://json//lib/json/common.rb#726 class Class < ::Module # Returns true if this class can be used to create an instance # from a serialised JSON string. The class has to implement a class @@ -16,7 +16,7 @@ class Class < ::Module # # @return [Boolean] # - # source://json//lib/json/common.rb#726 + # source://json//lib/json/common.rb#731 def json_creatable?; end end @@ -631,7 +631,7 @@ module JSON # Output: # {"foo":[0,1],"bar":{"baz":2,"bat":3},"bam":"bad"} # - # source://json//lib/json/common.rb#625 + # source://json//lib/json/common.rb#630 def dump(obj, anIO = T.unsafe(nil), limit = T.unsafe(nil), kwargs = T.unsafe(nil)); end # :call-seq: @@ -648,13 +648,13 @@ module JSON # # Raises SystemStackError (stack level too deep): # JSON.fast_generate(a) # - # source://json//lib/json/common.rb#332 + # source://json//lib/json/common.rb#337 def fast_generate(obj, opts = T.unsafe(nil)); end # :stopdoc: # I want to deprecate these later, so I'll first be silent about them, and later delete them. # - # source://json//lib/json/common.rb#332 + # source://json//lib/json/common.rb#337 def fast_unparse(obj, opts = T.unsafe(nil)); end # :call-seq: @@ -693,7 +693,7 @@ module JSON # # Raises JSON::NestingError (nesting of 100 is too deep): # JSON.generate(a) # - # source://json//lib/json/common.rb#303 + # source://json//lib/json/common.rb#308 def generate(obj, opts = T.unsafe(nil)); end # :call-seq: @@ -824,7 +824,7 @@ module JSON # #"Admin", "password"=>"0wn3d"}>} # - # source://json//lib/json/common.rb#544 + # source://json//lib/json/common.rb#549 def load(source, proc = T.unsafe(nil), options = T.unsafe(nil)); end # :call-seq: @@ -835,7 +835,7 @@ module JSON # # See method #parse. # - # source://json//lib/json/common.rb#252 + # source://json//lib/json/common.rb#257 def load_file(filespec, opts = T.unsafe(nil)); end # :call-seq: @@ -846,10 +846,10 @@ module JSON # # See method #parse! # - # source://json//lib/json/common.rb#263 + # source://json//lib/json/common.rb#268 def load_file!(filespec, opts = T.unsafe(nil)); end - # source://json//lib/json/common.rb#669 + # source://json//lib/json/common.rb#674 def merge_dump_options(opts, strict: T.unsafe(nil)); end # :call-seq: @@ -915,7 +915,7 @@ module JSON # which disables checking for nesting depth. # - Option +allow_nan+, if not provided, defaults to +true+. # - # source://json//lib/json/common.rb#237 + # source://json//lib/json/common.rb#242 def parse!(source, opts = T.unsafe(nil)); end # :call-seq: @@ -948,28 +948,28 @@ module JSON # } # } # - # source://json//lib/json/common.rb#377 + # source://json//lib/json/common.rb#382 def pretty_generate(obj, opts = T.unsafe(nil)); end # :stopdoc: # I want to deprecate these later, so I'll first be silent about them, and later delete them. # - # source://json//lib/json/common.rb#377 + # source://json//lib/json/common.rb#382 def pretty_unparse(obj, opts = T.unsafe(nil)); end # Recursively calls passed _Proc_ if the parsed data structure is an _Array_ or _Hash_ # - # source://json//lib/json/common.rb#570 + # source://json//lib/json/common.rb#575 def recurse_proc(result, &proc); end - # source://json//lib/json/common.rb#544 + # source://json//lib/json/common.rb#549 def restore(source, proc = T.unsafe(nil), options = T.unsafe(nil)); end # :stopdoc: # I want to deprecate these later, so I'll first be silent about them, and # later delete them. # - # source://json//lib/json/common.rb#303 + # source://json//lib/json/common.rb#308 def unparse(obj, opts = T.unsafe(nil)); end class << self @@ -1043,7 +1043,7 @@ module JSON # Output: # {"foo":[0,1],"bar":{"baz":2,"bat":3},"bam":"bad"} # - # source://json//lib/json/common.rb#625 + # source://json//lib/json/common.rb#630 def dump(obj, anIO = T.unsafe(nil), limit = T.unsafe(nil), kwargs = T.unsafe(nil)); end # Sets or returns the default options for the JSON.dump method. @@ -1051,7 +1051,7 @@ module JSON # opts = JSON.dump_default_options # opts # => {:max_nesting=>false, :allow_nan=>true} # - # source://json//lib/json/common.rb#591 + # source://json//lib/json/common.rb#596 def dump_default_options; end # Sets or returns the default options for the JSON.dump method. @@ -1059,7 +1059,7 @@ module JSON # opts = JSON.dump_default_options # opts # => {:max_nesting=>false, :allow_nan=>true} # - # source://json//lib/json/common.rb#591 + # source://json//lib/json/common.rb#596 def dump_default_options=(_arg0); end # :call-seq: @@ -1076,13 +1076,13 @@ module JSON # # Raises SystemStackError (stack level too deep): # JSON.fast_generate(a) # - # source://json//lib/json/common.rb#332 + # source://json//lib/json/common.rb#337 def fast_generate(obj, opts = T.unsafe(nil)); end # :stopdoc: # I want to deprecate these later, so I'll first be silent about them, and later delete them. # - # source://json//lib/json/common.rb#332 + # source://json//lib/json/common.rb#337 def fast_unparse(obj, opts = T.unsafe(nil)); end # :call-seq: @@ -1121,7 +1121,7 @@ module JSON # # Raises JSON::NestingError (nesting of 100 is too deep): # JSON.generate(a) # - # source://json//lib/json/common.rb#303 + # source://json//lib/json/common.rb#308 def generate(obj, opts = T.unsafe(nil)); end # Returns the JSON generator module that is used by JSON. This is @@ -1138,7 +1138,7 @@ module JSON # Encodes string using String.encode. # - # source://json//lib/json/common.rb#665 + # source://json//lib/json/common.rb#670 def iconv(to, from, string); end # :call-seq: @@ -1269,7 +1269,7 @@ module JSON # #"Admin", "password"=>"0wn3d"}>} # - # source://json//lib/json/common.rb#544 + # source://json//lib/json/common.rb#549 def load(source, proc = T.unsafe(nil), options = T.unsafe(nil)); end # Sets or returns default options for the JSON.load method. @@ -1277,7 +1277,7 @@ module JSON # opts = JSON.load_default_options # opts # => {:max_nesting=>false, :allow_nan=>true, :allow_blank=>true, :create_additions=>true} # - # source://json//lib/json/common.rb#407 + # source://json//lib/json/common.rb#412 def load_default_options; end # Sets or returns default options for the JSON.load method. @@ -1285,7 +1285,7 @@ module JSON # opts = JSON.load_default_options # opts # => {:max_nesting=>false, :allow_nan=>true, :allow_blank=>true, :create_additions=>true} # - # source://json//lib/json/common.rb#407 + # source://json//lib/json/common.rb#412 def load_default_options=(_arg0); end # :call-seq: @@ -1296,7 +1296,7 @@ module JSON # # See method #parse. # - # source://json//lib/json/common.rb#252 + # source://json//lib/json/common.rb#257 def load_file(filespec, opts = T.unsafe(nil)); end # :call-seq: @@ -1307,7 +1307,7 @@ module JSON # # See method #parse! # - # source://json//lib/json/common.rb#263 + # source://json//lib/json/common.rb#268 def load_file!(filespec, opts = T.unsafe(nil)); end # :call-seq: @@ -1373,7 +1373,7 @@ module JSON # which disables checking for nesting depth. # - Option +allow_nan+, if not provided, defaults to +true+. # - # source://json//lib/json/common.rb#237 + # source://json//lib/json/common.rb#242 def parse!(source, opts = T.unsafe(nil)); end # Returns the JSON parser class that is used by JSON. This is either @@ -1418,21 +1418,21 @@ module JSON # } # } # - # source://json//lib/json/common.rb#377 + # source://json//lib/json/common.rb#382 def pretty_generate(obj, opts = T.unsafe(nil)); end # :stopdoc: # I want to deprecate these later, so I'll first be silent about them, and later delete them. # - # source://json//lib/json/common.rb#377 + # source://json//lib/json/common.rb#382 def pretty_unparse(obj, opts = T.unsafe(nil)); end # Recursively calls passed _Proc_ if the parsed data structure is an _Array_ or _Hash_ # - # source://json//lib/json/common.rb#570 + # source://json//lib/json/common.rb#575 def recurse_proc(result, &proc); end - # source://json//lib/json/common.rb#544 + # source://json//lib/json/common.rb#549 def restore(source, proc = T.unsafe(nil), options = T.unsafe(nil)); end # Sets or Returns the JSON generator state class that is used by JSON. This is @@ -1453,12 +1453,12 @@ module JSON # I want to deprecate these later, so I'll first be silent about them, and # later delete them. # - # source://json//lib/json/common.rb#303 + # source://json//lib/json/common.rb#308 def unparse(obj, opts = T.unsafe(nil)); end private - # source://json//lib/json/common.rb#669 + # source://json//lib/json/common.rb#674 def merge_dump_options(opts, strict: T.unsafe(nil)); end end end @@ -1601,7 +1601,7 @@ JSON::State = JSON::Ext::Generator::State # source://json//lib/json/common.rb#162 JSON::UnparserError = JSON::GeneratorError -# source://json//lib/json/common.rb#679 +# source://json//lib/json/common.rb#684 module Kernel private @@ -1612,18 +1612,18 @@ module Kernel # The _opts_ argument is passed through to generate/parse respectively. See # generate and parse for their documentation. # - # source://json//lib/json/common.rb#706 + # source://json//lib/json/common.rb#711 def JSON(object, *args); end # Outputs _objs_ to STDOUT as JSON strings in the shortest form, that is in # one line. # - # source://json//lib/json/common.rb#684 + # source://json//lib/json/common.rb#689 def j(*objs); end # Outputs _objs_ to STDOUT as JSON strings in a pretty format, with # indentation and over many lines. # - # source://json//lib/json/common.rb#693 + # source://json//lib/json/common.rb#698 def jj(*objs); end end diff --git a/sorbet/rbi/gems/parser@3.3.5.0.rbi b/sorbet/rbi/gems/parser@3.3.5.1.rbi similarity index 100% rename from sorbet/rbi/gems/parser@3.3.5.0.rbi rename to sorbet/rbi/gems/parser@3.3.5.1.rbi diff --git a/sorbet/rbi/gems/rubocop-ast@1.32.3.rbi b/sorbet/rbi/gems/rubocop-ast@1.34.0.rbi similarity index 95% rename from sorbet/rbi/gems/rubocop-ast@1.32.3.rbi rename to sorbet/rbi/gems/rubocop-ast@1.34.0.rbi index d991664ae..682f09125 100644 --- a/sorbet/rbi/gems/rubocop-ast@1.32.3.rbi +++ b/sorbet/rbi/gems/rubocop-ast@1.34.0.rbi @@ -209,15 +209,29 @@ class RuboCop::AST::AsgnNode < ::RuboCop::AST::Node # # @return [Node] the expression being assigned. # - # source://rubocop-ast//lib/rubocop/ast/node/asgn_node.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/asgn_node.rb#20 def expression; end + # The name of the variable being assigned as a symbol. + # + # @return [Symbol] the name of the variable being assigned + # + # source://rubocop-ast//lib/rubocop/ast/node/asgn_node.rb#12 + def lhs; end + # The name of the variable being assigned as a symbol. # # @return [Symbol] the name of the variable being assigned # # source://rubocop-ast//lib/rubocop/ast/node/asgn_node.rb#12 def name; end + + # The expression being assigned to the variable. + # + # @return [Node] the expression being assigned. + # + # source://rubocop-ast//lib/rubocop/ast/node/asgn_node.rb#20 + def rhs; end end # Common functionality for primitive literal nodes: `sym`, `str`, @@ -443,18 +457,18 @@ class RuboCop::AST::Builder < ::Parser::Builders::Default # # @return [Node] the generated node # - # source://rubocop-ast//lib/rubocop/ast/builder.rb#99 + # source://rubocop-ast//lib/rubocop/ast/builder.rb#105 def n(type, children, source_map); end # TODO: Figure out what to do about literal encoding handling... # More details here https://github.com/whitequark/parser/issues/283 # - # source://rubocop-ast//lib/rubocop/ast/builder.rb#105 + # source://rubocop-ast//lib/rubocop/ast/builder.rb#111 def string_value(token); end private - # source://rubocop-ast//lib/rubocop/ast/builder.rb#111 + # source://rubocop-ast//lib/rubocop/ast/builder.rb#117 def node_klass(type); end end @@ -574,26 +588,27 @@ end # # source://rubocop-ast//lib/rubocop/ast/node/casgn_node.rb#8 class RuboCop::AST::CasgnNode < ::RuboCop::AST::Node + include ::RuboCop::AST::ConstantNode + # The expression being assigned to the variable. # # @return [Node] the expression being assigned. # - # source://rubocop-ast//lib/rubocop/ast/node/casgn_node.rb#26 + # source://rubocop-ast//lib/rubocop/ast/node/casgn_node.rb#17 def expression; end - # The name of the variable being assigned as a symbol. - # - # @return [Symbol] the name of the variable being assigned - # - # source://rubocop-ast//lib/rubocop/ast/node/casgn_node.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/constant_node.rb#14 + def lhs; end + + # source://rubocop-ast//lib/rubocop/ast/node/mixin/constant_node.rb#14 def name; end - # The namespace of the constant being assigned. + # The expression being assigned to the variable. # - # @return [Node, nil] the node associated with the scope (e.g. cbase, const, ...) + # @return [Node] the expression being assigned. # - # source://rubocop-ast//lib/rubocop/ast/node/casgn_node.rb#12 - def namespace; end + # source://rubocop-ast//lib/rubocop/ast/node/casgn_node.rb#17 + def rhs; end end # A node extension for `class` nodes. This will be used in place of a plain @@ -1084,16 +1099,24 @@ end # # source://rubocop-ast//lib/rubocop/ast/node/const_node.rb#6 class RuboCop::AST::ConstNode < ::RuboCop::AST::Node + include ::RuboCop::AST::ConstantNode +end + +# Common functionality for nodes that deal with constants: +# `const`, `casgn`. +# +# source://rubocop-ast//lib/rubocop/ast/node/mixin/constant_node.rb#7 +module RuboCop::AST::ConstantNode # @return [Boolean] if the constant starts with `::` (aka s(:cbase)) # - # source://rubocop-ast//lib/rubocop/ast/node/const_node.rb#26 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/constant_node.rb#27 def absolute?; end # @return [Boolean] if the constant is a Module / Class, according to the standard convention. # Note: some classes might have uppercase in which case this method # returns false # - # source://rubocop-ast//lib/rubocop/ast/node/const_node.rb#20 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/constant_node.rb#21 def class_name?; end # Yield nodes for the namespace @@ -1103,29 +1126,29 @@ class RuboCop::AST::ConstNode < ::RuboCop::AST::Node # s(:const, :Foo), then # s(:const, s(:const, :Foo), :Bar) # - # source://rubocop-ast//lib/rubocop/ast/node/const_node.rb#43 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/constant_node.rb#44 def each_path(&block); end # @return [Boolean] if the constant is a Module / Class, according to the standard convention. # Note: some classes might have uppercase in which case this method # returns false # - # source://rubocop-ast//lib/rubocop/ast/node/const_node.rb#20 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/constant_node.rb#21 def module_name?; end # @return [Node, nil] the node associated with the scope (e.g. cbase, const, ...) # - # source://rubocop-ast//lib/rubocop/ast/node/const_node.rb#8 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/constant_node.rb#9 def namespace; end # @return [Boolean] if the constant does not start with `::` (aka s(:cbase)) # - # source://rubocop-ast//lib/rubocop/ast/node/const_node.rb#33 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/constant_node.rb#34 def relative?; end # @return [Symbol] the demodulized name of the constant: "::Foo::Bar" => :Bar # - # source://rubocop-ast//lib/rubocop/ast/node/const_node.rb#13 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/constant_node.rb#14 def short_name; end end @@ -2046,6 +2069,71 @@ class RuboCop::AST::LambdaNode < ::RuboCop::AST::Node def first_argument_index; end end +# A node extension for `masgn` nodes. +# This will be used in place of a plain node when the builder constructs +# the AST, making its methods available to all assignment nodes within RuboCop. +# +# source://rubocop-ast//lib/rubocop/ast/node/masgn_node.rb#8 +class RuboCop::AST::MasgnNode < ::RuboCop::AST::Node + # @return [Array] the assignment nodes of the multiple assignment + # + # source://rubocop-ast//lib/rubocop/ast/node/masgn_node.rb#16 + def assignments; end + + # The RHS (right hand side) of the multiple assignment. This returns + # the nodes as parsed: either a single node if the RHS has a single value, + # or an `array` node containing multiple nodes. + # + # NOTE: Due to how parsing works, `expression` will return the same for + # `a, b = x, y` and `a, b = [x, y]`. + # + # @return [Node] the right hand side of a multiple assignment. + # + # source://rubocop-ast//lib/rubocop/ast/node/masgn_node.rb#39 + def expression; end + + # @return [MlhsNode] the `mlhs` node + # + # source://rubocop-ast//lib/rubocop/ast/node/masgn_node.rb#10 + def lhs; end + + # @return [Array] names of all the variables being assigned + # + # source://rubocop-ast//lib/rubocop/ast/node/masgn_node.rb#21 + def names; end + + # The RHS (right hand side) of the multiple assignment. This returns + # the nodes as parsed: either a single node if the RHS has a single value, + # or an `array` node containing multiple nodes. + # + # NOTE: Due to how parsing works, `expression` will return the same for + # `a, b = x, y` and `a, b = [x, y]`. + # + # @return [Node] the right hand side of a multiple assignment. + # + # source://rubocop-ast//lib/rubocop/ast/node/masgn_node.rb#39 + def rhs; end + + # In contrast to `expression`, `values` always returns a Ruby array + # containing all the nodes being assigned on the RHS. + # + # Literal arrays are considered a singular value; but unlike `expression`, + # implied `array` nodes from assigning multiple values on the RHS are treated + # as separate. + # + # @return [Array] individual values being assigned on the RHS of the multiple assignment + # + # source://rubocop-ast//lib/rubocop/ast/node/masgn_node.rb#52 + def values; end + + private + + # @return [Boolean] + # + # source://rubocop-ast//lib/rubocop/ast/node/masgn_node.rb#58 + def multiple_rhs?; end +end + # Common functionality for nodes that are a kind of method dispatch: # `send`, `csend`, `super`, `zsuper`, `yield`, `defined?`, # and (modern only): `index`, `indexasgn`, `lambda` @@ -2478,6 +2566,22 @@ RuboCop::AST::MethodIdentifierPredicates::NONMUTATING_UNARY_OPERATOR_METHODS = T # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_identifier_predicates.rb#20 RuboCop::AST::MethodIdentifierPredicates::OPERATOR_METHODS = T.let(T.unsafe(nil), Set) +# A node extension for `mlhs` nodes. +# This will be used in place of a plain node when the builder constructs +# the AST, making its methods available to all assignment nodes within RuboCop. +# +# source://rubocop-ast//lib/rubocop/ast/node/mlhs_node.rb#8 +class RuboCop::AST::MlhsNode < ::RuboCop::AST::Node + # Returns all the assignment nodes on the left hand side (LHS) of a multiple assignment. + # These are generally assignment nodes (`lvasgn`, `ivasgn`, `cvasgn`, `gvasgn`, `casgn`) + # but can also be `send` nodes in case of `foo.bar, ... =` or `foo[:bar], ... =`. + # + # @return [Array] the assignment nodes of the multiple assignment LHS + # + # source://rubocop-ast//lib/rubocop/ast/node/mlhs_node.rb#14 + def assignments; end +end + # Common functionality for nodes that can be used as modifiers: # `if`, `while`, `until` # @@ -4459,7 +4563,7 @@ class RuboCop::AST::NodePattern::LexerRex # The current location in the parse. # - # source://rubocop-ast//lib/rubocop/ast/node_pattern/lexer.rex.rb#104 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/lexer.rex.rb#103 def location; end # The StringScanner for this lexer. @@ -4474,22 +4578,22 @@ class RuboCop::AST::NodePattern::LexerRex # Lex the next token. # - # source://rubocop-ast//lib/rubocop/ast/node_pattern/lexer.rex.rb#113 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/lexer.rex.rb#112 def next_token; end # Parse the given string. # - # source://rubocop-ast//lib/rubocop/ast/node_pattern/lexer.rex.rb#84 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/lexer.rex.rb#83 def parse(str); end # Read in and parse the file at +path+. # - # source://rubocop-ast//lib/rubocop/ast/node_pattern/lexer.rex.rb#94 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/lexer.rex.rb#93 def parse_file(path); end # The current scanner class. Must be overridden in subclasses. # - # source://rubocop-ast//lib/rubocop/ast/node_pattern/lexer.rex.rb#77 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/lexer.rex.rb#76 def scanner_class; end # The StringScanner for this lexer. @@ -4863,116 +4967,116 @@ class RuboCop::AST::NodePattern::Parser < ::Racc::Parser # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.rb#19 def initialize(builder = T.unsafe(nil)); end - # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#333 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#335 def _reduce_10(val, _values); end - # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#337 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#339 def _reduce_11(val, _values); end # reduce 12 omitted # - # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#343 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#345 def _reduce_13(val, _values); end - # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#347 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#349 def _reduce_14(val, _values); end - # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#351 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#353 def _reduce_15(val, _values); end - # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#355 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#357 def _reduce_16(val, _values); end - # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#359 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#361 def _reduce_17(val, _values); end - # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#363 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#365 def _reduce_18(val, _values); end - # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#367 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#369 def _reduce_19(val, _values); end # reduce 1 omitted # - # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#301 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#303 def _reduce_2(val, _values); end - # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#371 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#373 def _reduce_20(val, _values); end - # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#375 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#377 def _reduce_21(val, _values); end - # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#379 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#381 def _reduce_22(val, _values); end # reduce 24 omitted # - # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#387 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#389 def _reduce_25(val, _values); end - # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#393 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#395 def _reduce_26(val, _values); end - # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#305 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#307 def _reduce_3(val, _values); end # reduce 32 omitted # - # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#413 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#415 def _reduce_33(val, _values); end # reduce 36 omitted # - # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#423 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#425 def _reduce_37(val, _values); end - # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#427 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#429 def _reduce_38(val, _values); end - # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#431 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#433 def _reduce_39(val, _values); end - # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#309 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#311 def _reduce_4(val, _values); end - # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#435 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#437 def _reduce_40(val, _values); end - # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#439 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#441 def _reduce_41(val, _values); end - # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#443 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#445 def _reduce_42(val, _values); end - # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#447 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#449 def _reduce_43(val, _values); end - # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#451 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#453 def _reduce_44(val, _values); end - # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#455 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#457 def _reduce_45(val, _values); end - # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#459 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#461 def _reduce_46(val, _values); end - # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#313 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#315 def _reduce_5(val, _values); end - # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#317 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#319 def _reduce_6(val, _values); end - # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#321 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#323 def _reduce_7(val, _values); end - # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#325 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#327 def _reduce_8(val, _values); end - # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#329 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#331 def _reduce_9(val, _values); end - # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#463 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#465 def _reduce_none(val, _values); end # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9 @@ -5032,10 +5136,10 @@ RuboCop::AST::NodePattern::Parser::Lexer = RuboCop::AST::NodePattern::Lexer # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#227 RuboCop::AST::NodePattern::Parser::Racc_arg = T.let(T.unsafe(nil), Array) -# source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#293 +# source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#295 RuboCop::AST::NodePattern::Parser::Racc_debug_parser = T.let(T.unsafe(nil), FalseClass) -# source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#243 +# source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#244 RuboCop::AST::NodePattern::Parser::Racc_token_to_s_table = T.let(T.unsafe(nil), Array) # Overrides Parser to use `WithMeta` variants and provide additional methods @@ -5376,7 +5480,7 @@ RuboCop::AST::NodePattern::Sets::SET_RECEIVE_RECEIVE_MESSAGE_CHAIN = T.let(T.uns RuboCop::AST::NodePattern::Sets::SET_REDUCE_INJECT = T.let(T.unsafe(nil), Set) # source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 -RuboCop::AST::NodePattern::Sets::SET_REJECT_DELETE_IF_REJECT = T.let(T.unsafe(nil), Set) +RuboCop::AST::NodePattern::Sets::SET_REJECT_REJECT = T.let(T.unsafe(nil), Set) # source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_REQUIRE_REQUIRE_RELATIVE = T.let(T.unsafe(nil), Set) @@ -5385,7 +5489,7 @@ RuboCop::AST::NodePattern::Sets::SET_REQUIRE_REQUIRE_RELATIVE = T.let(T.unsafe(n RuboCop::AST::NodePattern::Sets::SET_SELECT_FILTER_FIND_ALL = T.let(T.unsafe(nil), Set) # source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 -RuboCop::AST::NodePattern::Sets::SET_SELECT_SELECT = T.let(T.unsafe(nil), Set) +RuboCop::AST::NodePattern::Sets::SET_SELECT_SELECT_FILTER_FILTER = T.let(T.unsafe(nil), Set) # source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_SEND_PUBLIC_SEND___SEND__ = T.let(T.unsafe(nil), Set) @@ -5549,22 +5653,34 @@ class RuboCop::AST::OpAsgnNode < ::RuboCop::AST::Node # # @return [Node] the expression being assigned. # - # source://rubocop-ast//lib/rubocop/ast/node/op_asgn_node.rb#31 + # source://rubocop-ast//lib/rubocop/ast/node/op_asgn_node.rb#32 def expression; end + # @return [AsgnNode] the assignment node + # + # source://rubocop-ast//lib/rubocop/ast/node/op_asgn_node.rb#10 + def lhs; end + # The name of the variable being assigned as a symbol. # # @return [Symbol] the name of the variable being assigned # - # source://rubocop-ast//lib/rubocop/ast/node/op_asgn_node.rb#17 + # source://rubocop-ast//lib/rubocop/ast/node/op_asgn_node.rb#18 def name; end # The operator being used for assignment as a symbol. # # @return [Symbol] the assignment operator # - # source://rubocop-ast//lib/rubocop/ast/node/op_asgn_node.rb#24 + # source://rubocop-ast//lib/rubocop/ast/node/op_asgn_node.rb#25 def operator; end + + # The expression being assigned to the variable. + # + # @return [Node] the expression being assigned. + # + # source://rubocop-ast//lib/rubocop/ast/node/op_asgn_node.rb#32 + def rhs; end end # A node extension for `op_asgn` nodes. @@ -7038,6 +7154,18 @@ class RuboCop::AST::UntilNode < ::RuboCop::AST::Node def keyword; end end +# A node extension for `lvar`, `ivar`, `cvar` and `gvar` nodes. +# This will be used in place of a plain node when the builder constructs +# the AST, making its methods available to all assignment nodes within RuboCop. +# +# source://rubocop-ast//lib/rubocop/ast/node/var_node.rb#8 +class RuboCop::AST::VarNode < ::RuboCop::AST::Node + # @return [Symbol] The name of the variable. + # + # source://rubocop-ast//lib/rubocop/ast/node/var_node.rb#10 + def name; end +end + # source://rubocop-ast//lib/rubocop/ast/version.rb#5 module RuboCop::AST::Version; end @@ -7139,28 +7267,28 @@ class RuboCop::AST::YieldNode < ::RuboCop::AST::Node end class RuboCop::CommentConfig - # source://rubocop/1.66.1/lib/rubocop/comment_config.rb#34 + # source://rubocop/1.68.0/lib/rubocop/comment_config.rb#34 def initialize(processed_source); end - # source://rubocop/1.66.1/lib/rubocop/comment_config.rb#63 + # source://rubocop/1.68.0/lib/rubocop/comment_config.rb#63 def comment_only_line?(line_number); end # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9 def config(*_arg0, **_arg1, &_arg2); end - # source://rubocop/1.66.1/lib/rubocop/comment_config.rb#51 + # source://rubocop/1.68.0/lib/rubocop/comment_config.rb#51 def cop_disabled_line_ranges; end - # source://rubocop/1.66.1/lib/rubocop/comment_config.rb#39 + # source://rubocop/1.68.0/lib/rubocop/comment_config.rb#39 def cop_enabled_at_line?(cop, line_number); end - # source://rubocop/1.66.1/lib/rubocop/comment_config.rb#47 + # source://rubocop/1.68.0/lib/rubocop/comment_config.rb#47 def cop_opted_in?(cop); end - # source://rubocop/1.66.1/lib/rubocop/comment_config.rb#55 + # source://rubocop/1.68.0/lib/rubocop/comment_config.rb#55 def extra_enabled_comments; end - # source://rubocop/1.66.1/lib/rubocop/comment_config.rb#30 + # source://rubocop/1.68.0/lib/rubocop/comment_config.rb#30 def processed_source; end # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9 @@ -7168,51 +7296,51 @@ class RuboCop::CommentConfig private - # source://rubocop/1.66.1/lib/rubocop/comment_config.rb#96 + # source://rubocop/1.68.0/lib/rubocop/comment_config.rb#96 def analyze; end - # source://rubocop/1.66.1/lib/rubocop/comment_config.rb#124 + # source://rubocop/1.68.0/lib/rubocop/comment_config.rb#124 def analyze_cop(analysis, directive); end - # source://rubocop/1.66.1/lib/rubocop/comment_config.rb#144 + # source://rubocop/1.68.0/lib/rubocop/comment_config.rb#144 def analyze_disabled(analysis, directive); end - # source://rubocop/1.66.1/lib/rubocop/comment_config.rb#155 + # source://rubocop/1.68.0/lib/rubocop/comment_config.rb#155 def analyze_rest(analysis, directive); end - # source://rubocop/1.66.1/lib/rubocop/comment_config.rb#135 + # source://rubocop/1.68.0/lib/rubocop/comment_config.rb#135 def analyze_single_line(analysis, directive); end - # source://rubocop/1.66.1/lib/rubocop/comment_config.rb#164 + # source://rubocop/1.68.0/lib/rubocop/comment_config.rb#164 def cop_line_ranges(analysis); end - # source://rubocop/1.66.1/lib/rubocop/comment_config.rb#170 + # source://rubocop/1.68.0/lib/rubocop/comment_config.rb#170 def each_directive; end - # source://rubocop/1.66.1/lib/rubocop/comment_config.rb#69 + # source://rubocop/1.68.0/lib/rubocop/comment_config.rb#69 def extra_enabled_comments_with_names(extras:, names:); end - # source://rubocop/1.66.1/lib/rubocop/comment_config.rb#190 + # source://rubocop/1.68.0/lib/rubocop/comment_config.rb#190 def handle_enable_all(directive, names, extras); end - # source://rubocop/1.66.1/lib/rubocop/comment_config.rb#204 + # source://rubocop/1.68.0/lib/rubocop/comment_config.rb#204 def handle_switch(directive, names, extras); end - # source://rubocop/1.66.1/lib/rubocop/comment_config.rb#115 + # source://rubocop/1.68.0/lib/rubocop/comment_config.rb#115 def inject_disabled_cops_directives(analyses); end - # source://rubocop/1.66.1/lib/rubocop/comment_config.rb#183 + # source://rubocop/1.68.0/lib/rubocop/comment_config.rb#183 def non_comment_token_line_numbers; end - # source://rubocop/1.66.1/lib/rubocop/comment_config.rb#83 + # source://rubocop/1.68.0/lib/rubocop/comment_config.rb#83 def opt_in_cops; end - # source://rubocop/1.66.1/lib/rubocop/comment_config.rb#179 + # source://rubocop/1.68.0/lib/rubocop/comment_config.rb#179 def qualified_cop_name(cop_name); end end class RuboCop::Config - # source://rubocop/1.66.1/lib/rubocop/config.rb#30 + # source://rubocop/1.68.0/lib/rubocop/config.rb#30 def initialize(hash = T.unsafe(nil), loaded_path = T.unsafe(nil)); end # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9 @@ -7221,37 +7349,37 @@ class RuboCop::Config # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9 def []=(*_arg0, **_arg1, &_arg2); end - # source://rubocop/1.66.1/lib/rubocop/config.rb#170 + # source://rubocop/1.68.0/lib/rubocop/config.rb#170 def active_support_extensions_enabled?; end - # source://rubocop/1.66.1/lib/rubocop/config.rb#96 + # source://rubocop/1.68.0/lib/rubocop/config.rb#96 def add_excludes_from_higher_level(highest_config); end - # source://rubocop/1.66.1/lib/rubocop/config.rb#197 + # source://rubocop/1.68.0/lib/rubocop/config.rb#197 def allowed_camel_case_file?(file); end - # source://rubocop/1.66.1/lib/rubocop/config.rb#241 + # source://rubocop/1.68.0/lib/rubocop/config.rb#241 def base_dir_for_path_parameters; end - # source://rubocop/1.66.1/lib/rubocop/config.rb#271 + # source://rubocop/1.68.0/lib/rubocop/config.rb#271 def bundler_lock_file_path; end - # source://rubocop/1.66.1/lib/rubocop/config.rb#51 + # source://rubocop/1.68.0/lib/rubocop/config.rb#51 def check; end - # source://rubocop/1.66.1/lib/rubocop/config.rb#142 + # source://rubocop/1.68.0/lib/rubocop/config.rb#142 def clusivity_config_for_badge?(badge); end # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9 def delete(*_arg0, **_arg1, &_arg2); end - # source://rubocop/1.66.1/lib/rubocop/config.rb#108 + # source://rubocop/1.68.0/lib/rubocop/config.rb#108 def deprecation_check; end # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9 def dig(*_arg0, **_arg1, &_arg2); end - # source://rubocop/1.66.1/lib/rubocop/config.rb#162 + # source://rubocop/1.68.0/lib/rubocop/config.rb#162 def disabled_new_cops?; end # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9 @@ -7260,37 +7388,37 @@ class RuboCop::Config # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9 def each_key(*_arg0, **_arg1, &_arg2); end - # source://rubocop/1.66.1/lib/rubocop/config.rb#166 + # source://rubocop/1.68.0/lib/rubocop/config.rb#166 def enabled_new_cops?; end # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9 def fetch(*_arg0, **_arg1, &_arg2); end - # source://rubocop/1.66.1/lib/rubocop/config.rb#219 + # source://rubocop/1.68.0/lib/rubocop/config.rb#219 def file_to_exclude?(file); end - # source://rubocop/1.66.1/lib/rubocop/config.rb#178 + # source://rubocop/1.68.0/lib/rubocop/config.rb#178 def file_to_include?(file); end - # source://rubocop/1.66.1/lib/rubocop/config.rb#158 + # source://rubocop/1.68.0/lib/rubocop/config.rb#158 def for_all_cops; end - # source://rubocop/1.66.1/lib/rubocop/config.rb#128 + # source://rubocop/1.68.0/lib/rubocop/config.rb#128 def for_badge(badge); end - # source://rubocop/1.66.1/lib/rubocop/config.rb#122 + # source://rubocop/1.68.0/lib/rubocop/config.rb#122 def for_cop(cop); end - # source://rubocop/1.66.1/lib/rubocop/config.rb#153 + # source://rubocop/1.68.0/lib/rubocop/config.rb#153 def for_department(department_name); end - # source://rubocop/1.66.1/lib/rubocop/config.rb#296 + # source://rubocop/1.68.0/lib/rubocop/config.rb#296 def gem_versions_in_target; end - # source://rubocop/1.66.1/lib/rubocop/config.rb#300 + # source://rubocop/1.68.0/lib/rubocop/config.rb#300 def inspect; end - # source://rubocop/1.66.1/lib/rubocop/config.rb#76 + # source://rubocop/1.68.0/lib/rubocop/config.rb#76 def internal?; end # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9 @@ -7299,13 +7427,13 @@ class RuboCop::Config # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9 def keys(*_arg0, **_arg1, &_arg2); end - # source://rubocop/1.66.1/lib/rubocop/config.rb#47 + # source://rubocop/1.68.0/lib/rubocop/config.rb#47 def loaded_features; end - # source://rubocop/1.66.1/lib/rubocop/config.rb#20 + # source://rubocop/1.68.0/lib/rubocop/config.rb#20 def loaded_path; end - # source://rubocop/1.66.1/lib/rubocop/config.rb#81 + # source://rubocop/1.68.0/lib/rubocop/config.rb#81 def make_excludes_absolute; end # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9 @@ -7314,37 +7442,37 @@ class RuboCop::Config # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9 def merge(*_arg0, **_arg1, &_arg2); end - # source://rubocop/1.66.1/lib/rubocop/config.rb#251 + # source://rubocop/1.68.0/lib/rubocop/config.rb#251 def parser_engine; end - # source://rubocop/1.66.1/lib/rubocop/config.rb#232 + # source://rubocop/1.68.0/lib/rubocop/config.rb#232 def path_relative_to_config(path); end - # source://rubocop/1.66.1/lib/rubocop/config.rb#228 + # source://rubocop/1.68.0/lib/rubocop/config.rb#228 def patterns_to_exclude; end - # source://rubocop/1.66.1/lib/rubocop/config.rb#224 + # source://rubocop/1.68.0/lib/rubocop/config.rb#224 def patterns_to_include; end - # source://rubocop/1.66.1/lib/rubocop/config.rb#282 + # source://rubocop/1.68.0/lib/rubocop/config.rb#282 def pending_cops; end - # source://rubocop/1.66.1/lib/rubocop/config.rb#211 + # source://rubocop/1.68.0/lib/rubocop/config.rb#211 def possibly_include_hidden?; end # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9 def replace(*_arg0, **_arg1, &_arg2); end - # source://rubocop/1.66.1/lib/rubocop/config.rb#71 + # source://rubocop/1.68.0/lib/rubocop/config.rb#71 def signature; end - # source://rubocop/1.66.1/lib/rubocop/config.rb#266 + # source://rubocop/1.68.0/lib/rubocop/config.rb#266 def smart_loaded_path; end - # source://rubocop/1.66.1/lib/rubocop/config.rb#174 + # source://rubocop/1.68.0/lib/rubocop/config.rb#174 def string_literals_frozen_by_default?; end - # source://rubocop/1.66.1/lib/rubocop/config.rb#255 + # source://rubocop/1.68.0/lib/rubocop/config.rb#255 def target_rails_version; end # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9 @@ -7356,7 +7484,7 @@ class RuboCop::Config # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9 def to_hash(*_arg0, **_arg1, &_arg2); end - # source://rubocop/1.66.1/lib/rubocop/config.rb#67 + # source://rubocop/1.68.0/lib/rubocop/config.rb#67 def to_s; end # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9 @@ -7365,37 +7493,37 @@ class RuboCop::Config # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9 def validate(*_arg0, **_arg1, &_arg2); end - # source://rubocop/1.66.1/lib/rubocop/config.rb#58 + # source://rubocop/1.68.0/lib/rubocop/config.rb#58 def validate_after_resolution; end private - # source://rubocop/1.66.1/lib/rubocop/config.rb#350 + # source://rubocop/1.68.0/lib/rubocop/config.rb#350 def department_of(qualified_cop_name); end - # source://rubocop/1.66.1/lib/rubocop/config.rb#338 + # source://rubocop/1.68.0/lib/rubocop/config.rb#338 def enable_cop?(qualified_cop_name, cop_options); end - # source://rubocop/1.66.1/lib/rubocop/config.rb#325 + # source://rubocop/1.68.0/lib/rubocop/config.rb#325 def gem_version_to_major_minor_float(gem_version); end - # source://rubocop/1.66.1/lib/rubocop/config.rb#331 + # source://rubocop/1.68.0/lib/rubocop/config.rb#331 def read_gem_versions_from_target_lockfile; end - # source://rubocop/1.66.1/lib/rubocop/config.rb#312 + # source://rubocop/1.68.0/lib/rubocop/config.rb#312 def read_rails_version_from_bundler_lock_file; end - # source://rubocop/1.66.1/lib/rubocop/config.rb#307 + # source://rubocop/1.68.0/lib/rubocop/config.rb#307 def target_rails_version_from_bundler_lock_file; end class << self - # source://rubocop/1.66.1/lib/rubocop/config.rb#22 + # source://rubocop/1.68.0/lib/rubocop/config.rb#22 def create(hash, path, check: T.unsafe(nil)); end end end class RuboCop::ConfigValidator - # source://rubocop/1.66.1/lib/rubocop/config_validator.rb#26 + # source://rubocop/1.68.0/lib/rubocop/config_validator.rb#27 def initialize(config); end # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9 @@ -7404,66 +7532,66 @@ class RuboCop::ConfigValidator # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9 def smart_loaded_path(*_arg0, **_arg1, &_arg2); end - # source://rubocop/1.66.1/lib/rubocop/config_validator.rb#62 + # source://rubocop/1.68.0/lib/rubocop/config_validator.rb#63 def target_ruby_version; end - # source://rubocop/1.66.1/lib/rubocop/config_validator.rb#32 + # source://rubocop/1.68.0/lib/rubocop/config_validator.rb#33 def validate; end - # source://rubocop/1.66.1/lib/rubocop/config_validator.rb#58 + # source://rubocop/1.68.0/lib/rubocop/config_validator.rb#59 def validate_after_resolution; end - # source://rubocop/1.66.1/lib/rubocop/config_validator.rb#66 + # source://rubocop/1.68.0/lib/rubocop/config_validator.rb#67 def validate_section_presence(name); end private - # source://rubocop/1.66.1/lib/rubocop/config_validator.rb#103 + # source://rubocop/1.68.0/lib/rubocop/config_validator.rb#104 def alert_about_unrecognized_cops(invalid_cop_names); end - # source://rubocop/1.66.1/lib/rubocop/config_validator.rb#253 + # source://rubocop/1.68.0/lib/rubocop/config_validator.rb#254 def check_cop_config_value(hash, parent = T.unsafe(nil)); end - # source://rubocop/1.66.1/lib/rubocop/config_validator.rb#76 + # source://rubocop/1.68.0/lib/rubocop/config_validator.rb#77 def check_obsoletions; end - # source://rubocop/1.66.1/lib/rubocop/config_validator.rb#83 + # source://rubocop/1.68.0/lib/rubocop/config_validator.rb#84 def check_target_ruby; end - # source://rubocop/1.66.1/lib/rubocop/config_validator.rb#194 + # source://rubocop/1.68.0/lib/rubocop/config_validator.rb#195 def each_invalid_parameter(cop_name); end - # source://rubocop/1.66.1/lib/rubocop/config_validator.rb#119 + # source://rubocop/1.68.0/lib/rubocop/config_validator.rb#120 def list_unknown_cops(invalid_cop_names); end - # source://rubocop/1.66.1/lib/rubocop/config_validator.rb#273 + # source://rubocop/1.68.0/lib/rubocop/config_validator.rb#274 def param_error_message(parent, key, value, supposed_values); end - # source://rubocop/1.66.1/lib/rubocop/config_validator.rb#241 + # source://rubocop/1.68.0/lib/rubocop/config_validator.rb#242 def reject_conflicting_safe_settings; end - # source://rubocop/1.66.1/lib/rubocop/config_validator.rb#232 + # source://rubocop/1.68.0/lib/rubocop/config_validator.rb#233 def reject_mutually_exclusive_defaults; end - # source://rubocop/1.66.1/lib/rubocop/config_validator.rb#141 + # source://rubocop/1.68.0/lib/rubocop/config_validator.rb#142 def suggestion(name); end - # source://rubocop/1.66.1/lib/rubocop/config_validator.rb#74 + # source://rubocop/1.68.0/lib/rubocop/config_validator.rb#75 def target_ruby; end - # source://rubocop/1.66.1/lib/rubocop/config_validator.rb#206 + # source://rubocop/1.68.0/lib/rubocop/config_validator.rb#207 def validate_enforced_styles(valid_cop_names); end - # source://rubocop/1.66.1/lib/rubocop/config_validator.rb#168 + # source://rubocop/1.68.0/lib/rubocop/config_validator.rb#169 def validate_new_cops_parameter; end - # source://rubocop/1.66.1/lib/rubocop/config_validator.rb#179 + # source://rubocop/1.68.0/lib/rubocop/config_validator.rb#180 def validate_parameter_names(valid_cop_names); end - # source://rubocop/1.66.1/lib/rubocop/config_validator.rb#226 + # source://rubocop/1.68.0/lib/rubocop/config_validator.rb#227 def validate_support_and_has_list(name, formats, valid); end - # source://rubocop/1.66.1/lib/rubocop/config_validator.rb#157 + # source://rubocop/1.68.0/lib/rubocop/config_validator.rb#158 def validate_syntax_cop; end end diff --git a/sorbet/rbi/gems/rubocop-sorbet@0.8.6.rbi b/sorbet/rbi/gems/rubocop-sorbet@0.8.7.rbi similarity index 100% rename from sorbet/rbi/gems/rubocop-sorbet@0.8.6.rbi rename to sorbet/rbi/gems/rubocop-sorbet@0.8.7.rbi diff --git a/sorbet/rbi/gems/rubocop@1.67.0.rbi b/sorbet/rbi/gems/rubocop@1.68.0.rbi similarity index 98% rename from sorbet/rbi/gems/rubocop@1.67.0.rbi rename to sorbet/rbi/gems/rubocop@1.68.0.rbi index 604f63d45..b5a09d240 100644 --- a/sorbet/rbi/gems/rubocop@1.67.0.rbi +++ b/sorbet/rbi/gems/rubocop@1.68.0.rbi @@ -741,8 +741,8 @@ class RuboCop::CachedData # @api private # - # source://rubocop//lib/rubocop/cached_data.rb#56 - def location_from_source_buffer(offense, source_buffer); end + # source://rubocop//lib/rubocop/cached_data.rb#54 + def location_from_source_buffer(offense); end # @api private # @@ -753,6 +753,15 @@ class RuboCop::CachedData # # source://rubocop//lib/rubocop/cached_data.rb#23 def serialize_offense(offense); end + + # Delay creation until needed. Some type of offenses will have no buffer associated with them + # and be global only. For these, trying to create the buffer will likely fail, for example + # because of unknown encoding comments. + # + # @api private + # + # source://rubocop//lib/rubocop/cached_data.rb#67 + def source_buffer; end end # and provides a way to check if each cop is enabled at arbitrary line. @@ -771,7 +780,7 @@ class RuboCop::CommentConfig # source://rubocop//lib/rubocop/comment_config.rb#63 def comment_only_line?(line_number); end - # source://rubocop-ast/1.32.3/lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/1.34.0/lib/rubocop/ast/utilities/simple_forwardable.rb#9 def config(*_arg0, **_arg1, &_arg2); end # source://rubocop//lib/rubocop/comment_config.rb#51 @@ -795,7 +804,7 @@ class RuboCop::CommentConfig # source://rubocop//lib/rubocop/comment_config.rb#30 def processed_source; end - # source://rubocop-ast/1.32.3/lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/1.34.0/lib/rubocop/ast/utilities/simple_forwardable.rb#9 def registry(*_arg0, **_arg1, &_arg2); end private @@ -971,10 +980,10 @@ class RuboCop::Config # source://rubocop//lib/rubocop/config.rb#30 def initialize(hash = T.unsafe(nil), loaded_path = T.unsafe(nil)); end - # source://rubocop-ast/1.32.3/lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/1.34.0/lib/rubocop/ast/utilities/simple_forwardable.rb#9 def [](*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast/1.32.3/lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/1.34.0/lib/rubocop/ast/utilities/simple_forwardable.rb#9 def []=(*_arg0, **_arg1, &_arg2); end # @return [Boolean] @@ -1013,13 +1022,13 @@ class RuboCop::Config # source://rubocop//lib/rubocop/config.rb#142 def clusivity_config_for_badge?(badge); end - # source://rubocop-ast/1.32.3/lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/1.34.0/lib/rubocop/ast/utilities/simple_forwardable.rb#9 def delete(*_arg0, **_arg1, &_arg2); end # source://rubocop//lib/rubocop/config.rb#108 def deprecation_check; end - # source://rubocop-ast/1.32.3/lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/1.34.0/lib/rubocop/ast/utilities/simple_forwardable.rb#9 def dig(*_arg0, **_arg1, &_arg2); end # @return [Boolean] @@ -1027,10 +1036,10 @@ class RuboCop::Config # source://rubocop//lib/rubocop/config.rb#162 def disabled_new_cops?; end - # source://rubocop-ast/1.32.3/lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/1.34.0/lib/rubocop/ast/utilities/simple_forwardable.rb#9 def each(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast/1.32.3/lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/1.34.0/lib/rubocop/ast/utilities/simple_forwardable.rb#9 def each_key(*_arg0, **_arg1, &_arg2); end # @return [Boolean] @@ -1038,7 +1047,7 @@ class RuboCop::Config # source://rubocop//lib/rubocop/config.rb#166 def enabled_new_cops?; end - # source://rubocop-ast/1.32.3/lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/1.34.0/lib/rubocop/ast/utilities/simple_forwardable.rb#9 def fetch(*_arg0, **_arg1, &_arg2); end # @return [Boolean] @@ -1092,10 +1101,10 @@ class RuboCop::Config # source://rubocop//lib/rubocop/config.rb#76 def internal?; end - # source://rubocop-ast/1.32.3/lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/1.34.0/lib/rubocop/ast/utilities/simple_forwardable.rb#9 def key?(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast/1.32.3/lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/1.34.0/lib/rubocop/ast/utilities/simple_forwardable.rb#9 def keys(*_arg0, **_arg1, &_arg2); end # source://rubocop//lib/rubocop/config.rb#47 @@ -1109,10 +1118,10 @@ class RuboCop::Config # source://rubocop//lib/rubocop/config.rb#81 def make_excludes_absolute; end - # source://rubocop-ast/1.32.3/lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/1.34.0/lib/rubocop/ast/utilities/simple_forwardable.rb#9 def map(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast/1.32.3/lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/1.34.0/lib/rubocop/ast/utilities/simple_forwardable.rb#9 def merge(*_arg0, **_arg1, &_arg2); end # source://rubocop//lib/rubocop/config.rb#251 @@ -1138,7 +1147,7 @@ class RuboCop::Config # source://rubocop//lib/rubocop/config.rb#211 def possibly_include_hidden?; end - # source://rubocop-ast/1.32.3/lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/1.34.0/lib/rubocop/ast/utilities/simple_forwardable.rb#9 def replace(*_arg0, **_arg1, &_arg2); end # source://rubocop//lib/rubocop/config.rb#71 @@ -1155,22 +1164,22 @@ class RuboCop::Config # source://rubocop//lib/rubocop/config.rb#255 def target_rails_version; end - # source://rubocop-ast/1.32.3/lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/1.34.0/lib/rubocop/ast/utilities/simple_forwardable.rb#9 def target_ruby_version(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast/1.32.3/lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/1.34.0/lib/rubocop/ast/utilities/simple_forwardable.rb#9 def to_h(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast/1.32.3/lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/1.34.0/lib/rubocop/ast/utilities/simple_forwardable.rb#9 def to_hash(*_arg0, **_arg1, &_arg2); end # source://rubocop//lib/rubocop/config.rb#67 def to_s; end - # source://rubocop-ast/1.32.3/lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/1.34.0/lib/rubocop/ast/utilities/simple_forwardable.rb#9 def transform_values(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast/1.32.3/lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/1.34.0/lib/rubocop/ast/utilities/simple_forwardable.rb#9 def validate(*_arg0, **_arg1, &_arg2); end # source://rubocop//lib/rubocop/config.rb#58 @@ -2263,10 +2272,10 @@ class RuboCop::ConfigValidator # source://rubocop//lib/rubocop/config_validator.rb#27 def initialize(config); end - # source://rubocop-ast/1.32.3/lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/1.34.0/lib/rubocop/ast/utilities/simple_forwardable.rb#9 def for_all_cops(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast/1.32.3/lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/1.34.0/lib/rubocop/ast/utilities/simple_forwardable.rb#9 def smart_loaded_path(*_arg0, **_arg1, &_arg2); end # source://rubocop//lib/rubocop/config_validator.rb#63 @@ -2460,7 +2469,7 @@ class RuboCop::Cop::AlignmentCorrector private - # source://rubocop//lib/rubocop/cop/correctors/alignment_corrector.rb#124 + # source://rubocop//lib/rubocop/cop/correctors/alignment_corrector.rb#113 def alignment_column(align_to); end # source://rubocop//lib/rubocop/cop/correctors/alignment_corrector.rb#40 @@ -2485,7 +2494,7 @@ class RuboCop::Cop::AlignmentCorrector # source://rubocop//lib/rubocop/cop/correctors/alignment_corrector.rb#75 def delimited_string_literal?(node); end - # source://rubocop//lib/rubocop/cop/correctors/alignment_corrector.rb#110 + # source://rubocop//lib/rubocop/cop/correctors/alignment_corrector.rb#99 def each_line(expr); end # source://rubocop//lib/rubocop/cop/correctors/alignment_corrector.rb#60 @@ -2494,10 +2503,7 @@ class RuboCop::Cop::AlignmentCorrector # source://rubocop//lib/rubocop/cop/correctors/alignment_corrector.rb#54 def inside_string_ranges(node); end - # source://rubocop//lib/rubocop/cop/correctors/alignment_corrector.rb#99 - def remove(range, corrector); end - - # source://rubocop//lib/rubocop/cop/correctors/alignment_corrector.rb#118 + # source://rubocop//lib/rubocop/cop/correctors/alignment_corrector.rb#107 def whitespace_range(node); end end end @@ -2798,31 +2804,44 @@ module RuboCop::Cop::AutocorrectLogic # source://rubocop//lib/rubocop/cop/autocorrect_logic.rb#51 def disable_offense(offense_range); end - # source://rubocop//lib/rubocop/cop/autocorrect_logic.rb#118 + # source://rubocop//lib/rubocop/cop/autocorrect_logic.rb#138 def disable_offense_at_end_of_line(range, eol_comment); end - # source://rubocop//lib/rubocop/cop/autocorrect_logic.rb#122 + # source://rubocop//lib/rubocop/cop/autocorrect_logic.rb#142 def disable_offense_before_and_after(range_by_lines); end - # source://rubocop//lib/rubocop/cop/autocorrect_logic.rb#61 + # source://rubocop//lib/rubocop/cop/autocorrect_logic.rb#63 def disable_offense_with_eol_or_surround_comment(range); end - # source://rubocop//lib/rubocop/cop/autocorrect_logic.rb#114 + # source://rubocop//lib/rubocop/cop/autocorrect_logic.rb#134 def max_line_length; end # Expand the given range to include all of any lines it covers. Does not # include newline at end of the last line. # - # source://rubocop//lib/rubocop/cop/autocorrect_logic.rb#104 + # source://rubocop//lib/rubocop/cop/autocorrect_logic.rb#124 def range_by_lines(range); end - # source://rubocop//lib/rubocop/cop/autocorrect_logic.rb#95 + # source://rubocop//lib/rubocop/cop/autocorrect_logic.rb#115 def range_of_first_line(range); end - # source://rubocop//lib/rubocop/cop/autocorrect_logic.rb#72 + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/autocorrect_logic.rb#107 + def range_overlaps_offense?(offense_range, range); end + + # source://rubocop//lib/rubocop/cop/autocorrect_logic.rb#97 + def string_continuation(offense_range); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/autocorrect_logic.rb#111 + def string_continuation?(node); end + + # source://rubocop//lib/rubocop/cop/autocorrect_logic.rb#74 def surrounding_heredoc(offense_range); end - # source://rubocop//lib/rubocop/cop/autocorrect_logic.rb#83 + # source://rubocop//lib/rubocop/cop/autocorrect_logic.rb#85 def surrounding_percent_array(offense_range); end end @@ -4084,64 +4103,69 @@ module RuboCop::Cop::CheckLineBreakable # @api private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/mixin/check_line_breakable.rb#200 + # source://rubocop//lib/rubocop/cop/mixin/check_line_breakable.rb#202 def all_on_same_line?(nodes); end # @api private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/mixin/check_line_breakable.rb#220 + # source://rubocop//lib/rubocop/cop/mixin/check_line_breakable.rb#222 def already_on_multiple_lines?(node); end # @api private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/mixin/check_line_breakable.rb#133 + # source://rubocop//lib/rubocop/cop/mixin/check_line_breakable.rb#135 def breakable_collection?(node, elements); end + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/mixin/check_line_breakable.rb#228 + def chained_to_heredoc?(node); end + # @api private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/mixin/check_line_breakable.rb#187 + # source://rubocop//lib/rubocop/cop/mixin/check_line_breakable.rb#189 def children_could_be_broken_up?(children); end # @api private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/mixin/check_line_breakable.rb#150 + # source://rubocop//lib/rubocop/cop/mixin/check_line_breakable.rb#152 def contained_by_breakable_collection_on_same_line?(node); end # @api private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/mixin/check_line_breakable.rb#170 + # source://rubocop//lib/rubocop/cop/mixin/check_line_breakable.rb#172 def contained_by_multiline_collection_that_could_be_broken_up?(node); end # @api private # - # source://rubocop//lib/rubocop/cop/mixin/check_line_breakable.rb#60 + # source://rubocop//lib/rubocop/cop/mixin/check_line_breakable.rb#62 def extract_breakable_node_from_elements(node, elements, max); end # @api private # - # source://rubocop//lib/rubocop/cop/mixin/check_line_breakable.rb#72 + # source://rubocop//lib/rubocop/cop/mixin/check_line_breakable.rb#74 def extract_first_element_over_column_limit(node, elements, max); end # @api private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/mixin/check_line_breakable.rb#92 + # source://rubocop//lib/rubocop/cop/mixin/check_line_breakable.rb#94 def first_argument_is_heredoc?(node); end # @api private # - # source://rubocop//lib/rubocop/cop/mixin/check_line_breakable.rb#207 + # source://rubocop//lib/rubocop/cop/mixin/check_line_breakable.rb#209 def process_args(args); end # @api private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/mixin/check_line_breakable.rb#117 + # source://rubocop//lib/rubocop/cop/mixin/check_line_breakable.rb#119 def safe_to_ignore?(node); end # If a send node contains a heredoc argument, splitting cannot happen @@ -4149,13 +4173,13 @@ module RuboCop::Cop::CheckLineBreakable # # @api private # - # source://rubocop//lib/rubocop/cop/mixin/check_line_breakable.rb#101 + # source://rubocop//lib/rubocop/cop/mixin/check_line_breakable.rb#103 def shift_elements_for_heredoc_arg(node, elements, index); end # @api private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/mixin/check_line_breakable.rb#112 + # source://rubocop//lib/rubocop/cop/mixin/check_line_breakable.rb#114 def within_column_limit?(element, max, line); end end @@ -5102,7 +5126,7 @@ class RuboCop::Cop::Corrector < ::Parser::Source::TreeRewriter # Legacy # - # source://parser/3.3.5.0/lib/parser/source/tree_rewriter.rb#252 + # source://parser/3.3.5.1/lib/parser/source/tree_rewriter.rb#252 def rewrite; end # Swaps sources at the given ranges. @@ -5447,6 +5471,19 @@ end # source://rubocop//lib/rubocop/cop/mixin/end_keyword_alignment.rb#10 RuboCop::Cop::EndKeywordAlignment::MSG = T.let(T.unsafe(nil), String) +# Common functionality for rewriting endless methods to normal method definitions +# +# source://rubocop//lib/rubocop/cop/mixin/endless_method_rewriter.rb#6 +module RuboCop::Cop::EndlessMethodRewriter + # source://rubocop//lib/rubocop/cop/mixin/endless_method_rewriter.rb#7 + def correct_to_multiline(corrector, node); end + + private + + # source://rubocop//lib/rubocop/cop/mixin/endless_method_rewriter.rb#19 + def arguments(node, missing = T.unsafe(nil)); end +end + # Common functionality for enforcing a specific superclass. # # IMPORTANT: RuboCop core depended on this module when it supported Rails department. @@ -5618,7 +5655,7 @@ end module RuboCop::Cop::FrozenStringLiteral private - # source://rubocop//lib/rubocop/cop/mixin/frozen_string_literal.rb#35 + # source://rubocop//lib/rubocop/cop/mixin/frozen_string_literal.rb#37 def frozen_heredoc?(node); end # source://rubocop//lib/rubocop/cop/mixin/frozen_string_literal.rb#21 @@ -5627,22 +5664,22 @@ module RuboCop::Cop::FrozenStringLiteral # source://rubocop//lib/rubocop/cop/mixin/frozen_string_literal.rb#15 def frozen_string_literal_comment_exists?; end - # source://rubocop//lib/rubocop/cop/mixin/frozen_string_literal.rb#76 + # source://rubocop//lib/rubocop/cop/mixin/frozen_string_literal.rb#78 def frozen_string_literal_specified?; end - # source://rubocop//lib/rubocop/cop/mixin/frozen_string_literal.rb#70 + # source://rubocop//lib/rubocop/cop/mixin/frozen_string_literal.rb#72 def frozen_string_literals_disabled?; end - # source://rubocop//lib/rubocop/cop/mixin/frozen_string_literal.rb#42 + # source://rubocop//lib/rubocop/cop/mixin/frozen_string_literal.rb#44 def frozen_string_literals_enabled?; end - # source://rubocop//lib/rubocop/cop/mixin/frozen_string_literal.rb#86 + # source://rubocop//lib/rubocop/cop/mixin/frozen_string_literal.rb#88 def leading_comment_lines; end - # source://rubocop//lib/rubocop/cop/mixin/frozen_string_literal.rb#82 + # source://rubocop//lib/rubocop/cop/mixin/frozen_string_literal.rb#84 def leading_magic_comments; end - # source://rubocop//lib/rubocop/cop/mixin/frozen_string_literal.rb#35 + # source://rubocop//lib/rubocop/cop/mixin/frozen_string_literal.rb#37 def uninterpolated_heredoc?(node); end # source://rubocop//lib/rubocop/cop/mixin/frozen_string_literal.rb#31 @@ -12413,13 +12450,15 @@ RuboCop::Cop::Layout::InitialIndentation::MSG = T.let(T.unsafe(nil), String) # `#:nodoc`, `=begin`- and `=end` comments, "shebang" directives, # or rackup options. # -# @example -# -# # bad -# #Some comment +# @example AllowSteepAnnotation: true # # # good -# # Some comment +# +# [1, 2, 3].each_with_object([]) do |n, list| #$ Array[Integer] +# list << n +# end +# +# name = 'John' #: String # @example AllowDoxygenCommentStyle: false (default) # # # bad @@ -12464,82 +12503,107 @@ RuboCop::Cop::Layout::InitialIndentation::MSG = T.let(T.unsafe(nil), String) # # attr_reader :name #: String # attr_reader :age #: Integer? +# @example AllowSteepAnnotation: false (default) +# +# # bad +# [1, 2, 3].each_with_object([]) do |n, list| #$ Array[Integer] +# list << n +# end # -# source://rubocop//lib/rubocop/cop/layout/leading_comment_space.rb#70 +# name = 'John' #: String +# @example +# +# # bad +# #Some comment +# +# # good +# # Some comment +# +# source://rubocop//lib/rubocop/cop/layout/leading_comment_space.rb#89 class RuboCop::Cop::Layout::LeadingCommentSpace < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/layout/leading_comment_space.rb#76 + # source://rubocop//lib/rubocop/cop/layout/leading_comment_space.rb#95 def on_new_investigation; end private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/leading_comment_space.rb#114 + # source://rubocop//lib/rubocop/cop/layout/leading_comment_space.rb#134 def allow_doxygen_comment?; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/leading_comment_space.rb#122 + # source://rubocop//lib/rubocop/cop/layout/leading_comment_space.rb#142 def allow_gemfile_ruby_comment?; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/leading_comment_space.rb#138 + # source://rubocop//lib/rubocop/cop/layout/leading_comment_space.rb#158 def allow_rbs_inline_annotation?; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/leading_comment_space.rb#98 - def allowed_on_first_line?(comment); end + # source://rubocop//lib/rubocop/cop/layout/leading_comment_space.rb#166 + def allow_steep_annotation?; end # @return [Boolean] # # source://rubocop//lib/rubocop/cop/layout/leading_comment_space.rb#118 + def allowed_on_first_line?(comment); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/leading_comment_space.rb#138 def doxygen_comment_style?(comment); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/leading_comment_space.rb#126 + # source://rubocop//lib/rubocop/cop/layout/leading_comment_space.rb#146 def gemfile?; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/leading_comment_space.rb#134 + # source://rubocop//lib/rubocop/cop/layout/leading_comment_space.rb#154 def gemfile_ruby_comment?(comment); end - # source://rubocop//lib/rubocop/cop/layout/leading_comment_space.rb#94 + # source://rubocop//lib/rubocop/cop/layout/leading_comment_space.rb#114 def hash_mark(expr); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/leading_comment_space.rb#110 + # source://rubocop//lib/rubocop/cop/layout/leading_comment_space.rb#130 def rackup_config_file?; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/leading_comment_space.rb#106 + # source://rubocop//lib/rubocop/cop/layout/leading_comment_space.rb#126 def rackup_options?(comment); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/leading_comment_space.rb#142 + # source://rubocop//lib/rubocop/cop/layout/leading_comment_space.rb#162 def rbs_inline_annotation?(comment); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/leading_comment_space.rb#130 + # source://rubocop//lib/rubocop/cop/layout/leading_comment_space.rb#150 def ruby_comment_in_gemfile?(comment); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/leading_comment_space.rb#102 + # source://rubocop//lib/rubocop/cop/layout/leading_comment_space.rb#122 def shebang?(comment); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/leading_comment_space.rb#170 + def steep_annotation?(comment); end end -# source://rubocop//lib/rubocop/cop/layout/leading_comment_space.rb#74 +# source://rubocop//lib/rubocop/cop/layout/leading_comment_space.rb#93 RuboCop::Cop::Layout::LeadingCommentSpace::MSG = T.let(T.unsafe(nil), String) # Checks for unnecessary leading blank lines at the beginning @@ -15872,67 +15936,72 @@ class RuboCop::Cop::Layout::SpaceInsideBlockBraces < ::RuboCop::Cop::Base include ::RuboCop::Cop::SurroundingSpace extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/layout/space_inside_block_braces.rb#85 + # source://rubocop//lib/rubocop/cop/layout/space_inside_block_braces.rb#89 def on_block(node); end - # source://rubocop//lib/rubocop/cop/layout/space_inside_block_braces.rb#85 + # source://rubocop//lib/rubocop/cop/layout/space_inside_block_braces.rb#89 def on_numblock(node); end private - # source://rubocop//lib/rubocop/cop/layout/space_inside_block_braces.rb#122 + # source://rubocop//lib/rubocop/cop/layout/space_inside_block_braces.rb#126 def adjacent_braces(left_brace, right_brace); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/space_inside_block_braces.rb#161 + # source://rubocop//lib/rubocop/cop/layout/space_inside_block_braces.rb#165 def aligned_braces?(inner, right_brace, column); end - # source://rubocop//lib/rubocop/cop/layout/space_inside_block_braces.rb#130 + # source://rubocop//lib/rubocop/cop/layout/space_inside_block_braces.rb#134 def braces_with_contents_inside(node, inner); end - # source://rubocop//lib/rubocop/cop/layout/space_inside_block_braces.rb#105 + # source://rubocop//lib/rubocop/cop/layout/space_inside_block_braces.rb#109 def check_inside(node, left_brace, right_brace); end - # source://rubocop//lib/rubocop/cop/layout/space_inside_block_braces.rb#137 + # source://rubocop//lib/rubocop/cop/layout/space_inside_block_braces.rb#141 def check_left_brace(inner, left_brace, args_delimiter); end - # source://rubocop//lib/rubocop/cop/layout/space_inside_block_braces.rb#145 + # source://rubocop//lib/rubocop/cop/layout/space_inside_block_braces.rb#149 def check_right_brace(node, inner, left_brace, right_brace, single_line); end - # source://rubocop//lib/rubocop/cop/layout/space_inside_block_braces.rb#165 + # source://rubocop//lib/rubocop/cop/layout/space_inside_block_braces.rb#169 def inner_last_space_count(inner); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/space_inside_block_braces.rb#157 + # source://rubocop//lib/rubocop/cop/layout/space_inside_block_braces.rb#161 def multiline_block?(left_brace, right_brace); end - # source://rubocop//lib/rubocop/cop/layout/space_inside_block_braces.rb#222 + # source://rubocop//lib/rubocop/cop/layout/space_inside_block_braces.rb#226 def no_space(begin_pos, end_pos, msg); end - # source://rubocop//lib/rubocop/cop/layout/space_inside_block_braces.rb#169 + # source://rubocop//lib/rubocop/cop/layout/space_inside_block_braces.rb#173 def no_space_inside_left_brace(left_brace, args_delimiter); end - # source://rubocop//lib/rubocop/cop/layout/space_inside_block_braces.rb#238 + # source://rubocop//lib/rubocop/cop/layout/space_inside_block_braces.rb#242 def offense(begin_pos, end_pos, msg, style_param = T.unsafe(nil)); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/space_inside_block_braces.rb#201 + # source://rubocop//lib/rubocop/cop/layout/space_inside_block_braces.rb#205 def pipe?(args_delimiter); end - # source://rubocop//lib/rubocop/cop/layout/space_inside_block_braces.rb#230 + # source://rubocop//lib/rubocop/cop/layout/space_inside_block_braces.rb#234 def space(begin_pos, end_pos, msg); end - # source://rubocop//lib/rubocop/cop/layout/space_inside_block_braces.rb#186 + # source://rubocop//lib/rubocop/cop/layout/space_inside_block_braces.rb#190 def space_inside_left_brace(left_brace, args_delimiter); end - # source://rubocop//lib/rubocop/cop/layout/space_inside_block_braces.rb#205 + # source://rubocop//lib/rubocop/cop/layout/space_inside_block_braces.rb#209 def space_inside_right_brace(inner, right_brace, column); end - # source://rubocop//lib/rubocop/cop/layout/space_inside_block_braces.rb#253 + # source://rubocop//lib/rubocop/cop/layout/space_inside_block_braces.rb#257 def style_for_empty_braces; end + + class << self + # source://rubocop//lib/rubocop/cop/layout/space_inside_block_braces.rb#85 + def autocorrect_incompatible_with; end + end end # Checks that braces used for hash literals have or don't have @@ -17889,6 +17958,9 @@ RuboCop::Cop::Lint::DisjunctiveAssignmentInConstructor::MSG = T.let(T.unsafe(nil # With `IgnoreConstantBranches: true`, branches are not registered # as offenses if they return a constant value. # +# With `IgnoreDuplicateElseBranch: true`, in conditionals with multiple branches, +# duplicate 'else' branches are not registered as offenses. +# # @example # # bad # if foo @@ -17954,59 +18026,78 @@ RuboCop::Cop::Lint::DisjunctiveAssignmentInConstructor::MSG = T.let(T.unsafe(nil # when "large" then LARGE_SIZE # else MEDIUM_SIZE # end +# @example IgnoreDuplicateElseBranch: true +# # good +# if foo +# do_foo +# elsif bar +# do_bar +# else +# do_foo +# end # -# source://rubocop//lib/rubocop/cop/lint/duplicate_branch.rb#86 +# source://rubocop//lib/rubocop/cop/lint/duplicate_branch.rb#99 class RuboCop::Cop::Lint::DuplicateBranch < ::RuboCop::Cop::Base - # source://rubocop//lib/rubocop/cop/lint/duplicate_branch.rb#89 + # source://rubocop//lib/rubocop/cop/lint/duplicate_branch.rb#102 def on_branching_statement(node); end - # source://rubocop//lib/rubocop/cop/lint/duplicate_branch.rb#89 + # source://rubocop//lib/rubocop/cop/lint/duplicate_branch.rb#102 def on_case(node); end - # source://rubocop//lib/rubocop/cop/lint/duplicate_branch.rb#89 + # source://rubocop//lib/rubocop/cop/lint/duplicate_branch.rb#102 def on_case_match(node); end - # source://rubocop//lib/rubocop/cop/lint/duplicate_branch.rb#89 + # source://rubocop//lib/rubocop/cop/lint/duplicate_branch.rb#114 def on_if(node); end - # source://rubocop//lib/rubocop/cop/lint/duplicate_branch.rb#89 + # source://rubocop//lib/rubocop/cop/lint/duplicate_branch.rb#102 def on_rescue(node); end private - # source://rubocop//lib/rubocop/cop/lint/duplicate_branch.rb#117 + # source://rubocop//lib/rubocop/cop/lint/duplicate_branch.rb#136 def branches(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/duplicate_branch.rb#121 - def consider_branch?(branch); end + # source://rubocop//lib/rubocop/cop/lint/duplicate_branch.rb#140 + def consider_branch?(branches, branch); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/duplicate_branch.rb#147 + # source://rubocop//lib/rubocop/cop/lint/duplicate_branch.rb#174 def const_branch?(branch); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/duplicate_branch.rb#132 + # source://rubocop//lib/rubocop/cop/lint/duplicate_branch.rb#178 + def duplicate_else_branch?(branches, branch); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/duplicate_branch.rb#155 def ignore_constant_branches?; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/duplicate_branch.rb#128 + # source://rubocop//lib/rubocop/cop/lint/duplicate_branch.rb#159 + def ignore_duplicate_else_branches?; end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/duplicate_branch.rb#151 def ignore_literal_branches?; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/duplicate_branch.rb#136 + # source://rubocop//lib/rubocop/cop/lint/duplicate_branch.rb#163 def literal_branch?(branch); end - # source://rubocop//lib/rubocop/cop/lint/duplicate_branch.rb#103 + # source://rubocop//lib/rubocop/cop/lint/duplicate_branch.rb#122 def offense_range(duplicate_branch); end end -# source://rubocop//lib/rubocop/cop/lint/duplicate_branch.rb#87 +# source://rubocop//lib/rubocop/cop/lint/duplicate_branch.rb#100 RuboCop::Cop::Lint::DuplicateBranch::MSG = T.let(T.unsafe(nil), String) # Checks that there are no repeated conditions @@ -21066,17 +21157,17 @@ class RuboCop::Cop::Lint::NonAtomicFileOperation < ::RuboCop::Cop::Base # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/non_atomic_file_operation.rb#151 + # source://rubocop//lib/rubocop/cop/lint/non_atomic_file_operation.rb#152 def force_method?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/non_atomic_file_operation.rb#159 + # source://rubocop//lib/rubocop/cop/lint/non_atomic_file_operation.rb#166 def force_method_name?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/non_atomic_file_operation.rb#155 + # source://rubocop//lib/rubocop/cop/lint/non_atomic_file_operation.rb#162 def force_option?(node); end # @return [Boolean] @@ -21093,8 +21184,13 @@ class RuboCop::Cop::Lint::NonAtomicFileOperation < ::RuboCop::Cop::Base # source://rubocop//lib/rubocop/cop/lint/non_atomic_file_operation.rb#101 def register_offense(node, exist_node); end - # source://rubocop//lib/rubocop/cop/lint/non_atomic_file_operation.rb#139 + # source://rubocop//lib/rubocop/cop/lint/non_atomic_file_operation.rb#140 def replacement_method(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/non_atomic_file_operation.rb#156 + def require_mode_keyword?(node); end end # source://rubocop//lib/rubocop/cop/lint/non_atomic_file_operation.rb#50 @@ -23060,25 +23156,30 @@ class RuboCop::Cop::Lint::SafeNavigationChain < ::RuboCop::Cop::Base # @param send_node [RuboCop::AST::SendNode] # @return [String] # - # source://rubocop//lib/rubocop/cop/lint/safe_navigation_chain.rb#58 + # source://rubocop//lib/rubocop/cop/lint/safe_navigation_chain.rb#67 def add_safe_navigation_operator(offense_range:, send_node:); end # @param corrector [RuboCop::Cop::Corrector] # @param offense_range [Parser::Source::Range] # @param send_node [RuboCop::AST::SendNode] # - # source://rubocop//lib/rubocop/cop/lint/safe_navigation_chain.rb#77 + # source://rubocop//lib/rubocop/cop/lint/safe_navigation_chain.rb#86 def autocorrect(corrector, offense_range:, send_node:); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/safe_navigation_chain.rb#86 + # source://rubocop//lib/rubocop/cop/lint/safe_navigation_chain.rb#95 def brackets?(send_node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/safe_navigation_chain.rb#90 + # source://rubocop//lib/rubocop/cop/lint/safe_navigation_chain.rb#99 def require_parentheses?(send_node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/safe_navigation_chain.rb#57 + def require_safe_navigation?(node); end end # source://rubocop//lib/rubocop/cop/lint/safe_navigation_chain.rb#29 @@ -23147,31 +23248,31 @@ class RuboCop::Cop::Lint::SafeNavigationConsistency < ::RuboCop::Cop::Base # source://rubocop//lib/rubocop/cop/lint/safe_navigation_consistency.rb#83 def find_consistent_parts(grouped_operands); end - # source://rubocop//lib/rubocop/cop/lint/safe_navigation_consistency.rb#120 + # source://rubocop//lib/rubocop/cop/lint/safe_navigation_consistency.rb#122 def most_left_indices(grouped_operands); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/safe_navigation_consistency.rb#150 + # source://rubocop//lib/rubocop/cop/lint/safe_navigation_consistency.rb#152 def nilable?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/safe_navigation_consistency.rb#134 + # source://rubocop//lib/rubocop/cop/lint/safe_navigation_consistency.rb#136 def operand_in_and?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/safe_navigation_consistency.rb#142 + # source://rubocop//lib/rubocop/cop/lint/safe_navigation_consistency.rb#144 def operand_in_or?(node); end - # source://rubocop//lib/rubocop/cop/lint/safe_navigation_consistency.rb#111 + # source://rubocop//lib/rubocop/cop/lint/safe_navigation_consistency.rb#113 def operand_nodes(operand, operand_nodes); end # source://rubocop//lib/rubocop/cop/lint/safe_navigation_consistency.rb#74 def receiver_name_as_key(method, fully_receivers); end - # source://rubocop//lib/rubocop/cop/lint/safe_navigation_consistency.rb#100 + # source://rubocop//lib/rubocop/cop/lint/safe_navigation_consistency.rb#102 def register_offense(operand, dot_operator); end end @@ -24268,6 +24369,58 @@ end # source://rubocop//lib/rubocop/cop/lint/underscore_prefixed_variable_name.rb#44 RuboCop::Cop::Lint::UnderscorePrefixedVariableName::MSG = T.let(T.unsafe(nil), String) +# Checks for Regexpes (both literals and via `Regexp.new` / `Regexp.compile`) +# that contain unescaped `]` characters. +# +# It emulates the following Ruby warning: +# +# [source,ruby] +# ---- +# $ ruby -e '/abc]123/' +# -e:1: warning: regular expression has ']' without escape: /abc]123/ +# ---- +# +# @example +# # bad +# /abc]123/ +# %r{abc]123} +# Regexp.new('abc]123') +# Regexp.compile('abc]123') +# +# # good +# /abc\]123/ +# %r{abc\]123} +# Regexp.new('abc\]123') +# Regexp.compile('abc\]123') +# +# source://rubocop//lib/rubocop/cop/lint/unescaped_bracket_in_regexp.rb#30 +class RuboCop::Cop::Lint::UnescapedBracketInRegexp < ::RuboCop::Cop::Base + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/lint/unescaped_bracket_in_regexp.rb#45 + def on_regexp(node); end + + # source://rubocop//lib/rubocop/cop/lint/unescaped_bracket_in_regexp.rb#53 + def on_send(node); end + + # source://rubocop//lib/rubocop/cop/lint/unescaped_bracket_in_regexp.rb#37 + def regexp_constructor(param0); end + + private + + # source://rubocop//lib/rubocop/cop/lint/unescaped_bracket_in_regexp.rb#66 + def detect_offenses(node, expr); end + + # source://rubocop//lib/rubocop/cop/lint/unescaped_bracket_in_regexp.rb#81 + def range_at_index(node, index, offset); end +end + +# source://rubocop//lib/rubocop/cop/lint/unescaped_bracket_in_regexp.rb#33 +RuboCop::Cop::Lint::UnescapedBracketInRegexp::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/lint/unescaped_bracket_in_regexp.rb#34 +RuboCop::Cop::Lint::UnescapedBracketInRegexp::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + # Checks for a block that is known to need more positional # block arguments than are given (by default this is configured for # `Enumerable` methods needing 2 arguments). Optional arguments are allowed, @@ -26453,23 +26606,26 @@ RuboCop::Cop::Metrics::CollectionLiteralLength::RESTRICT_ON_SEND = T.let(T.unsaf # and ||/or is shorthand for a sequence of ifs, so they also add one. # Loops can be said to have an exit condition, so they add one. # Blocks that are calls to builtin iteration methods -# (e.g. `ary.map{...}) also add one, others are ignored. +# (e.g. `ary.map{...}`) also add one, others are ignored. +# +# @example # # def each_child_node(*types) # count begins: 1 -# unless block_given? # unless: +1 -# return to_enum(__method__, *types) +# unless block_given? # unless: +1 +# return to_enum(__method__, *types) +# end # -# children.each do |child| # each{}: +1 -# next unless child.is_a?(Node) # unless: +1 +# children.each do |child| # each{}: +1 +# next unless child.is_a?(Node) # unless: +1 # -# yield child if types.empty? || # if: +1, ||: +1 -# types.include?(child.type) -# end +# yield child if types.empty? || # if: +1, ||: +1 +# types.include?(child.type) +# end # -# self +# self # end # total: 6 # -# source://rubocop//lib/rubocop/cop/metrics/cyclomatic_complexity.rb#32 +# source://rubocop//lib/rubocop/cop/metrics/cyclomatic_complexity.rb#35 class RuboCop::Cop::Metrics::CyclomaticComplexity < ::RuboCop::Cop::Base include ::RuboCop::Cop::AllowedMethods include ::RuboCop::Cop::AllowedPattern @@ -26479,19 +26635,19 @@ class RuboCop::Cop::Metrics::CyclomaticComplexity < ::RuboCop::Cop::Base private - # source://rubocop//lib/rubocop/cop/metrics/cyclomatic_complexity.rb#42 + # source://rubocop//lib/rubocop/cop/metrics/cyclomatic_complexity.rb#45 def complexity_score_for(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/metrics/cyclomatic_complexity.rb#49 + # source://rubocop//lib/rubocop/cop/metrics/cyclomatic_complexity.rb#52 def count_block?(block); end end -# source://rubocop//lib/rubocop/cop/metrics/cyclomatic_complexity.rb#37 +# source://rubocop//lib/rubocop/cop/metrics/cyclomatic_complexity.rb#40 RuboCop::Cop::Metrics::CyclomaticComplexity::COUNTED_NODES = T.let(T.unsafe(nil), Array) -# source://rubocop//lib/rubocop/cop/metrics/cyclomatic_complexity.rb#36 +# source://rubocop//lib/rubocop/cop/metrics/cyclomatic_complexity.rb#39 RuboCop::Cop::Metrics::CyclomaticComplexity::MSG = T.let(T.unsafe(nil), String) # Checks if the length of a method exceeds some maximum value. @@ -29175,7 +29331,7 @@ class RuboCop::Cop::Offense # @api private # @return [Offense] a new instance of Offense # - # source://rubocop//lib/rubocop/cop/offense.rb#84 + # source://rubocop//lib/rubocop/cop/offense.rb#83 def initialize(severity, location, message, cop_name, status = T.unsafe(nil), corrector = T.unsafe(nil)); end # Returns `-1`, `0`, or `+1` @@ -29184,105 +29340,104 @@ class RuboCop::Cop::Offense # @api public # @return [Integer] comparison result # - # source://rubocop//lib/rubocop/cop/offense.rb#230 + # source://rubocop//lib/rubocop/cop/offense.rb#229 def <=>(other); end # @api public # @return [Boolean] returns `true` if two offenses contain same attributes # - # source://rubocop//lib/rubocop/cop/offense.rb#211 + # source://rubocop//lib/rubocop/cop/offense.rb#210 def ==(other); end # @api private # - # source://rubocop//lib/rubocop/cop/offense.rb#160 + # source://rubocop//lib/rubocop/cop/offense.rb#159 def column; end # @api private # - # source://rubocop//lib/rubocop/cop/offense.rb#170 + # source://rubocop//lib/rubocop/cop/offense.rb#169 def column_length; end # @api private # - # source://rubocop//lib/rubocop/cop/offense.rb#194 + # source://rubocop//lib/rubocop/cop/offense.rb#193 def column_range; end # @api public # @example - # 'LineLength' - # @return [String] a cop class name without department. - # i.e. type of the violation. + # 'Layout/LineLength' + # @return [String] the cop name as a String for which this offense is for. # - # source://rubocop//lib/rubocop/cop/offense.rb#51 + # source://rubocop//lib/rubocop/cop/offense.rb#50 def cop_name; end # @api public # @return [Boolean] whether this offense can be automatically corrected via autocorrect. # This includes todo comments, for example when requested with `--disable-uncorrectable`. # - # source://rubocop//lib/rubocop/cop/offense.rb#102 + # source://rubocop//lib/rubocop/cop/offense.rb#101 def correctable?; end # @api public # @return [Boolean] whether this offense is automatically corrected via # autocorrect or a todo. # - # source://rubocop//lib/rubocop/cop/offense.rb#113 + # source://rubocop//lib/rubocop/cop/offense.rb#112 def corrected?; end # @api public # @return [Boolean] whether this offense is automatically disabled via a todo. # - # source://rubocop//lib/rubocop/cop/offense.rb#123 + # source://rubocop//lib/rubocop/cop/offense.rb#122 def corrected_with_todo?; end # @api public # @return [Corrector | nil] the autocorrection for this offense, or `nil` when not available # - # source://rubocop//lib/rubocop/cop/offense.rb#62 + # source://rubocop//lib/rubocop/cop/offense.rb#61 def corrector; end # @api public # @return [Boolean] whether this offense was locally disabled with a # disable or todo where it occurred. # - # source://rubocop//lib/rubocop/cop/offense.rb#134 + # source://rubocop//lib/rubocop/cop/offense.rb#133 def disabled?; end # @api public # @return [Boolean] returns `true` if two offenses contain same attributes # - # source://rubocop//lib/rubocop/cop/offense.rb#211 + # source://rubocop//lib/rubocop/cop/offense.rb#210 def eql?(other); end # @api private # - # source://rubocop//lib/rubocop/cop/offense.rb#179 + # source://rubocop//lib/rubocop/cop/offense.rb#178 def first_line; end - # source://rubocop//lib/rubocop/cop/offense.rb#219 + # source://rubocop//lib/rubocop/cop/offense.rb#218 def hash; end # @api public # @return [Parser::Source::Range] the range of the code that is highlighted # - # source://rubocop//lib/rubocop/cop/offense.rb#142 + # source://rubocop//lib/rubocop/cop/offense.rb#141 def highlighted_area; end # @api private # - # source://rubocop//lib/rubocop/cop/offense.rb#189 + # source://rubocop//lib/rubocop/cop/offense.rb#188 def last_column; end # @api private # - # source://rubocop//lib/rubocop/cop/offense.rb#184 + # source://rubocop//lib/rubocop/cop/offense.rb#183 def last_line; end # @api private # - # source://rubocop//lib/rubocop/cop/offense.rb#155 + # source://rubocop//lib/rubocop/cop/offense.rb#154 def line; end # @api public @@ -29306,7 +29461,7 @@ class RuboCop::Cop::Offense # # @api private # - # source://rubocop//lib/rubocop/cop/offense.rb#203 + # source://rubocop//lib/rubocop/cop/offense.rb#202 def real_column; end # @api public @@ -29317,19 +29472,19 @@ class RuboCop::Cop::Offense # @api private # - # source://rubocop//lib/rubocop/cop/offense.rb#165 + # source://rubocop//lib/rubocop/cop/offense.rb#164 def source_line; end # @api private # - # source://rubocop//lib/rubocop/cop/offense.rb#54 + # source://rubocop//lib/rubocop/cop/offense.rb#53 def status; end # This is just for debugging purpose. # # @api private # - # source://rubocop//lib/rubocop/cop/offense.rb#148 + # source://rubocop//lib/rubocop/cop/offense.rb#147 def to_s; end end @@ -29338,10 +29493,10 @@ end # source://rubocop//lib/rubocop/cop/offense.rb#10 RuboCop::Cop::Offense::COMPARISON_ATTRIBUTES = T.let(T.unsafe(nil), Array) -# source://rubocop//lib/rubocop/cop/offense.rb#81 +# source://rubocop//lib/rubocop/cop/offense.rb#80 RuboCop::Cop::Offense::NO_LOCATION = T.let(T.unsafe(nil), RuboCop::Cop::Offense::PseudoSourceRange) -# source://rubocop//lib/rubocop/cop/offense.rb#64 +# source://rubocop//lib/rubocop/cop/offense.rb#63 class RuboCop::Cop::Offense::PseudoSourceRange < ::Struct # Returns the value of attribute begin_pos # @@ -29365,7 +29520,7 @@ class RuboCop::Cop::Offense::PseudoSourceRange < ::Struct # @return [Object] the newly set value def column=(_); end - # source://rubocop//lib/rubocop/cop/offense.rb#70 + # source://rubocop//lib/rubocop/cop/offense.rb#69 def column_range; end # Returns the value of attribute end_pos @@ -29394,7 +29549,7 @@ class RuboCop::Cop::Offense::PseudoSourceRange < ::Struct # @return [Object] the current value of line def last_line; end - # source://rubocop//lib/rubocop/cop/offense.rb#74 + # source://rubocop//lib/rubocop/cop/offense.rb#73 def length; end # Returns the value of attribute line @@ -29408,7 +29563,7 @@ class RuboCop::Cop::Offense::PseudoSourceRange < ::Struct # @return [Object] the newly set value def line=(_); end - # source://rubocop//lib/rubocop/cop/offense.rb#74 + # source://rubocop//lib/rubocop/cop/offense.rb#73 def size; end # Returns the value of attribute source_line @@ -29711,7 +29866,7 @@ class RuboCop::Cop::PercentLiteralCorrector # source://rubocop//lib/rubocop/cop/correctors/percent_literal_corrector.rb#34 def delimiters_for(type); end - # source://rubocop//lib/rubocop/cop/correctors/percent_literal_corrector.rb#100 + # source://rubocop//lib/rubocop/cop/correctors/percent_literal_corrector.rb#110 def end_content(source); end # @return [Boolean] @@ -29901,36 +30056,36 @@ end module RuboCop::Cop::RSpec; end class RuboCop::Cop::RSpec::MultipleExpectations < ::RuboCop::Cop::RSpec::Base - # source://rubocop-rspec/3.1.0/lib/rubocop/cop/rspec/multiple_expectations.rb#78 + # source://rubocop-rspec/3.2.0/lib/rubocop/cop/rspec/multiple_expectations.rb#78 def aggregate_failures?(param0 = T.unsafe(nil), param1); end - # source://rubocop-rspec/3.1.0/lib/rubocop/cop/rspec/multiple_expectations.rb#89 + # source://rubocop-rspec/3.2.0/lib/rubocop/cop/rspec/multiple_expectations.rb#89 def aggregate_failures_block?(param0 = T.unsafe(nil)); end - # source://rubocop-rspec/3.1.0/lib/rubocop/cop/rspec/multiple_expectations.rb#86 + # source://rubocop-rspec/3.2.0/lib/rubocop/cop/rspec/multiple_expectations.rb#86 def expect?(param0 = T.unsafe(nil)); end # source://rubocop//lib/rubocop/cop/exclude_limit.rb#11 def max=(value); end - # source://rubocop-rspec/3.1.0/lib/rubocop/cop/rspec/multiple_expectations.rb#93 + # source://rubocop-rspec/3.2.0/lib/rubocop/cop/rspec/multiple_expectations.rb#93 def on_block(node); end private - # source://rubocop-rspec/3.1.0/lib/rubocop/cop/rspec/multiple_expectations.rb#109 + # source://rubocop-rspec/3.2.0/lib/rubocop/cop/rspec/multiple_expectations.rb#109 def example_with_aggregate_failures?(example_node); end - # source://rubocop-rspec/3.1.0/lib/rubocop/cop/rspec/multiple_expectations.rb#116 + # source://rubocop-rspec/3.2.0/lib/rubocop/cop/rspec/multiple_expectations.rb#116 def find_aggregate_failures(example_node); end - # source://rubocop-rspec/3.1.0/lib/rubocop/cop/rspec/multiple_expectations.rb#121 + # source://rubocop-rspec/3.2.0/lib/rubocop/cop/rspec/multiple_expectations.rb#121 def find_expectation(node, &block); end - # source://rubocop-rspec/3.1.0/lib/rubocop/cop/rspec/multiple_expectations.rb#132 + # source://rubocop-rspec/3.2.0/lib/rubocop/cop/rspec/multiple_expectations.rb#132 def flag_example(node, expectation_count:); end - # source://rubocop-rspec/3.1.0/lib/rubocop/cop/rspec/multiple_expectations.rb#143 + # source://rubocop-rspec/3.2.0/lib/rubocop/cop/rspec/multiple_expectations.rb#143 def max_expectations; end end @@ -29938,30 +30093,30 @@ class RuboCop::Cop::RSpec::MultipleMemoizedHelpers < ::RuboCop::Cop::RSpec::Base # source://rubocop//lib/rubocop/cop/exclude_limit.rb#11 def max=(value); end - # source://rubocop-rspec/3.1.0/lib/rubocop/cop/rspec/multiple_memoized_helpers.rb#91 + # source://rubocop-rspec/3.2.0/lib/rubocop/cop/rspec/multiple_memoized_helpers.rb#91 def on_block(node); end - # source://rubocop-rspec/3.1.0/lib/rubocop/cop/rspec/multiple_memoized_helpers.rb#102 + # source://rubocop-rspec/3.2.0/lib/rubocop/cop/rspec/multiple_memoized_helpers.rb#102 def on_new_investigation; end private - # source://rubocop-rspec/3.1.0/lib/rubocop/cop/rspec/multiple_memoized_helpers.rb#111 + # source://rubocop-rspec/3.2.0/lib/rubocop/cop/rspec/multiple_memoized_helpers.rb#111 def all_helpers(node); end - # source://rubocop-rspec/3.1.0/lib/rubocop/cop/rspec/multiple_memoized_helpers.rb#141 + # source://rubocop-rspec/3.2.0/lib/rubocop/cop/rspec/multiple_memoized_helpers.rb#141 def allow_subject?; end - # source://rubocop-rspec/3.1.0/lib/rubocop/cop/rspec/multiple_memoized_helpers.rb#109 + # source://rubocop-rspec/3.2.0/lib/rubocop/cop/rspec/multiple_memoized_helpers.rb#109 def example_group_memoized_helpers; end - # source://rubocop-rspec/3.1.0/lib/rubocop/cop/rspec/multiple_memoized_helpers.rb#116 + # source://rubocop-rspec/3.2.0/lib/rubocop/cop/rspec/multiple_memoized_helpers.rb#116 def helpers(node); end - # source://rubocop-rspec/3.1.0/lib/rubocop/cop/rspec/multiple_memoized_helpers.rb#137 + # source://rubocop-rspec/3.2.0/lib/rubocop/cop/rspec/multiple_memoized_helpers.rb#137 def max; end - # source://rubocop-rspec/3.1.0/lib/rubocop/cop/rspec/multiple_memoized_helpers.rb#127 + # source://rubocop-rspec/3.2.0/lib/rubocop/cop/rspec/multiple_memoized_helpers.rb#127 def variable_nodes(node); end end @@ -29969,27 +30124,27 @@ class RuboCop::Cop::RSpec::NestedGroups < ::RuboCop::Cop::RSpec::Base # source://rubocop//lib/rubocop/cop/exclude_limit.rb#11 def max=(value); end - # source://rubocop-rspec/3.1.0/lib/rubocop/cop/rspec/nested_groups.rb#107 + # source://rubocop-rspec/3.2.0/lib/rubocop/cop/rspec/nested_groups.rb#107 def on_top_level_group(node); end private - # source://rubocop-rspec/3.1.0/lib/rubocop/cop/rspec/nested_groups.rb#157 + # source://rubocop-rspec/3.2.0/lib/rubocop/cop/rspec/nested_groups.rb#157 def allowed_groups; end - # source://rubocop-rspec/3.1.0/lib/rubocop/cop/rspec/nested_groups.rb#134 + # source://rubocop-rspec/3.2.0/lib/rubocop/cop/rspec/nested_groups.rb#134 def count_up_nesting?(node, example_group); end - # source://rubocop-rspec/3.1.0/lib/rubocop/cop/rspec/nested_groups.rb#119 + # source://rubocop-rspec/3.2.0/lib/rubocop/cop/rspec/nested_groups.rb#119 def find_nested_example_groups(node, nesting: T.unsafe(nil), &block); end - # source://rubocop-rspec/3.1.0/lib/rubocop/cop/rspec/nested_groups.rb#144 + # source://rubocop-rspec/3.2.0/lib/rubocop/cop/rspec/nested_groups.rb#144 def max_nesting; end - # source://rubocop-rspec/3.1.0/lib/rubocop/cop/rspec/nested_groups.rb#148 + # source://rubocop-rspec/3.2.0/lib/rubocop/cop/rspec/nested_groups.rb#148 def max_nesting_config; end - # source://rubocop-rspec/3.1.0/lib/rubocop/cop/rspec/nested_groups.rb#140 + # source://rubocop-rspec/3.2.0/lib/rubocop/cop/rspec/nested_groups.rb#140 def message(nesting); end end @@ -31344,6 +31499,57 @@ RuboCop::Cop::Style::Alias::MSG_SYMBOL_ARGS = T.let(T.unsafe(nil), String) # source://rubocop//lib/rubocop/cop/style/alias.rb#39 RuboCop::Cop::Style::Alias::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) +# Looks for endless methods inside operations of lower precedence (`and`, `or`, and +# modifier forms of `if`, `unless`, `while`, `until`) that are ambiguous due to +# lack of parentheses. This may lead to unexpected behavior as the code may appear +# to use these keywords as part of the method but in fact they modify +# the method definition itself. +# +# In these cases, using a normal method definition is more clear. +# +# @example +# +# # bad +# def foo = true if bar +# +# # good - using a non-endless method is more explicit +# def foo +# true +# end if bar +# +# # ok - method body is explicit +# def foo = (true if bar) +# +# # ok - method definition is explicit +# (def foo = true) if bar +# +# source://rubocop//lib/rubocop/cop/style/ambiguous_endless_method_definition.rb#29 +class RuboCop::Cop::Style::AmbiguousEndlessMethodDefinition < ::RuboCop::Cop::Base + include ::RuboCop::Cop::EndlessMethodRewriter + include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::TargetRubyVersion + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/ambiguous_endless_method_definition.rb#40 + def ambiguous_endless_method_body(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/style/ambiguous_endless_method_definition.rb#48 + def on_def(node); end + + private + + # source://rubocop//lib/rubocop/cop/style/ambiguous_endless_method_definition.rb#69 + def keyword(operation); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/ambiguous_endless_method_definition.rb#63 + def modifier_form?(operation); end +end + +# source://rubocop//lib/rubocop/cop/style/ambiguous_endless_method_definition.rb#37 +RuboCop::Cop::Style::AmbiguousEndlessMethodDefinition::MSG = T.let(T.unsafe(nil), String) + # Checks for uses of `and` and `or`, and suggests using `&&` and # `||` instead. It can be configured to check only in conditions or in # all contexts. @@ -32337,6 +32543,60 @@ class RuboCop::Cop::Style::BisectedAttrAccessor::Macro end end +# Prefer bitwise predicate methods over direct comparison operations. +# +# @example +# +# # bad - checks any set bits +# (variable & flags).positive? +# +# # good +# variable.anybits?(flags) +# +# # bad - checks all set bits +# (variable & flags) == flags +# +# # good +# variable.allbits?(flags) +# +# # bad - checks no set bits +# (variable & flags).zero? +# +# # good +# variable.nobits?(flags) +# +# source://rubocop//lib/rubocop/cop/style/bitwise_predicate.rb#32 +class RuboCop::Cop::Style::BitwisePredicate < ::RuboCop::Cop::Base + extend ::RuboCop::Cop::AutoCorrector + extend ::RuboCop::Cop::TargetRubyVersion + + # source://rubocop//lib/rubocop/cop/style/bitwise_predicate.rb#52 + def allbits?(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/style/bitwise_predicate.rb#42 + def anybits?(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/style/bitwise_predicate.rb#68 + def bit_operation?(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/style/bitwise_predicate.rb#60 + def nobits?(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/style/bitwise_predicate.rb#73 + def on_send(node); end + + private + + # source://rubocop//lib/rubocop/cop/style/bitwise_predicate.rb#88 + def preferred_method(node); end +end + +# source://rubocop//lib/rubocop/cop/style/bitwise_predicate.rb#36 +RuboCop::Cop::Style::BitwisePredicate::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/style/bitwise_predicate.rb#37 +RuboCop::Cop::Style::BitwisePredicate::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + # Looks for uses of block comments (=begin...=end). # # @example @@ -32551,7 +32811,7 @@ class RuboCop::Cop::Style::BlockDelimiters < ::RuboCop::Cop::Base # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/block_delimiters.rb#472 + # source://rubocop//lib/rubocop/cop/style/block_delimiters.rb#487 def array_or_range?(node); end # source://rubocop//lib/rubocop/cop/style/block_delimiters.rb#212 @@ -32559,7 +32819,7 @@ class RuboCop::Cop::Style::BlockDelimiters < ::RuboCop::Cop::Base # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/block_delimiters.rb#476 + # source://rubocop//lib/rubocop/cop/style/block_delimiters.rb#491 def begin_required?(block_node); end # source://rubocop//lib/rubocop/cop/style/block_delimiters.rb#240 @@ -32567,7 +32827,7 @@ class RuboCop::Cop::Style::BlockDelimiters < ::RuboCop::Cop::Base # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/block_delimiters.rb#413 + # source://rubocop//lib/rubocop/cop/style/block_delimiters.rb#428 def braces_for_chaining_style?(node); end # source://rubocop//lib/rubocop/cop/style/block_delimiters.rb#252 @@ -32575,46 +32835,46 @@ class RuboCop::Cop::Style::BlockDelimiters < ::RuboCop::Cop::Base # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/block_delimiters.rb#390 + # source://rubocop//lib/rubocop/cop/style/block_delimiters.rb#405 def braces_required_method?(method_name); end - # source://rubocop//lib/rubocop/cop/style/block_delimiters.rb#394 + # source://rubocop//lib/rubocop/cop/style/block_delimiters.rb#409 def braces_required_methods; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/block_delimiters.rb#423 + # source://rubocop//lib/rubocop/cop/style/block_delimiters.rb#438 def braces_style?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/block_delimiters.rb#468 + # source://rubocop//lib/rubocop/cop/style/block_delimiters.rb#483 def conditional?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/block_delimiters.rb#427 + # source://rubocop//lib/rubocop/cop/style/block_delimiters.rb#442 def correction_would_break_code?(node); end - # source://rubocop//lib/rubocop/cop/style/block_delimiters.rb#313 + # source://rubocop//lib/rubocop/cop/style/block_delimiters.rb#328 def end_of_chain(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/block_delimiters.rb#437 + # source://rubocop//lib/rubocop/cop/style/block_delimiters.rb#452 def functional_block?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/block_delimiters.rb#433 + # source://rubocop//lib/rubocop/cop/style/block_delimiters.rb#448 def functional_method?(method_name); end - # source://rubocop//lib/rubocop/cop/style/block_delimiters.rb#330 + # source://rubocop//lib/rubocop/cop/style/block_delimiters.rb#345 def get_blocks(node, &block); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/block_delimiters.rb#398 + # source://rubocop//lib/rubocop/cop/style/block_delimiters.rb#413 def line_count_based_block_style?(node); end # source://rubocop//lib/rubocop/cop/style/block_delimiters.rb#222 @@ -32628,20 +32888,20 @@ class RuboCop::Cop::Style::BlockDelimiters < ::RuboCop::Cop::Base # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/block_delimiters.rb#445 + # source://rubocop//lib/rubocop/cop/style/block_delimiters.rb#460 def procedural_method?(method_name); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/block_delimiters.rb#441 + # source://rubocop//lib/rubocop/cop/style/block_delimiters.rb#456 def procedural_oneliners_may_have_braces?; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/block_delimiters.rb#349 + # source://rubocop//lib/rubocop/cop/style/block_delimiters.rb#364 def proper_block_style?(node); end - # source://rubocop//lib/rubocop/cop/style/block_delimiters.rb#320 + # source://rubocop//lib/rubocop/cop/style/block_delimiters.rb#335 def remove_trailing_whitespace(corrector, range, comment); end # source://rubocop//lib/rubocop/cop/style/block_delimiters.rb#267 @@ -32652,40 +32912,43 @@ class RuboCop::Cop::Style::BlockDelimiters < ::RuboCop::Cop::Base # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/block_delimiters.rb#362 + # source://rubocop//lib/rubocop/cop/style/block_delimiters.rb#377 def require_braces?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/block_delimiters.rb#370 + # source://rubocop//lib/rubocop/cop/style/block_delimiters.rb#385 def require_do_end?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/block_delimiters.rb#461 + # source://rubocop//lib/rubocop/cop/style/block_delimiters.rb#476 def return_value_of_scope?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/block_delimiters.rb#449 + # source://rubocop//lib/rubocop/cop/style/block_delimiters.rb#464 def return_value_used?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/block_delimiters.rb#402 + # source://rubocop//lib/rubocop/cop/style/block_delimiters.rb#417 def semantic_block_style?(node); end # source://rubocop//lib/rubocop/cop/style/block_delimiters.rb#230 def semantic_message(node); end + # source://rubocop//lib/rubocop/cop/style/block_delimiters.rb#318 + def source_range_before_comment(range, comment); end + # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/block_delimiters.rb#377 + # source://rubocop//lib/rubocop/cop/style/block_delimiters.rb#392 def special_method?(method_name); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/block_delimiters.rb#383 + # source://rubocop//lib/rubocop/cop/style/block_delimiters.rb#398 def special_method_proper_block_style?(node); end # @return [Boolean] @@ -32700,7 +32963,7 @@ class RuboCop::Cop::Style::BlockDelimiters < ::RuboCop::Cop::Base # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/block_delimiters.rb#326 + # source://rubocop//lib/rubocop/cop/style/block_delimiters.rb#341 def with_block?(node); end class << self @@ -33612,6 +33875,66 @@ end # source://rubocop//lib/rubocop/cop/style/colon_method_definition.rb#25 RuboCop::Cop::Style::ColonMethodDefinition::MSG = T.let(T.unsafe(nil), String) +# Checks for multiple `defined?` calls joined by `&&` that can be combined +# into a single `defined?`. +# +# When checking that a nested constant or chained method is defined, it is +# not necessary to check each ancestor or component of the chain. +# +# @example +# # bad +# defined?(Foo) && defined?(Foo::Bar) && defined?(Foo::Bar::Baz) +# +# # good +# defined?(Foo::Bar::Baz) +# +# # bad +# defined?(foo) && defined?(foo.bar) && defined?(foo.bar.baz) +# +# # good +# defined?(foo.bar.baz) +# +# source://rubocop//lib/rubocop/cop/style/combinable_defined.rb#24 +class RuboCop::Cop::Style::CombinableDefined < ::RuboCop::Cop::Base + include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/combinable_defined.rb#31 + def on_and(node); end + + private + + # source://rubocop//lib/rubocop/cop/style/combinable_defined.rb#55 + def defined_calls(nodes); end + + # If the redundant `defined?` node is the LHS of an `and` node, + # the term as well as the subsequent `&&`/`and` operator will be removed. + # + # source://rubocop//lib/rubocop/cop/style/combinable_defined.rb#85 + def lhs_range_to_remove(term); end + + # source://rubocop//lib/rubocop/cop/style/combinable_defined.rb#62 + def namespaces(nodes); end + + # source://rubocop//lib/rubocop/cop/style/combinable_defined.rb#72 + def remove_term(corrector, term); end + + # If the redundant `defined?` node is the RHS of an `and` node, + # the term as well as the preceding `&&`/`and` operator will be removed. + # + # source://rubocop//lib/rubocop/cop/style/combinable_defined.rb#100 + def rhs_range_to_remove(term); end + + # source://rubocop//lib/rubocop/cop/style/combinable_defined.rb#49 + def terms(node); end +end + +# source://rubocop//lib/rubocop/cop/style/combinable_defined.rb#28 +RuboCop::Cop::Style::CombinableDefined::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/style/combinable_defined.rb#29 +RuboCop::Cop::Style::CombinableDefined::OPERATORS = T.let(T.unsafe(nil), Array) + # Checks for places where multiple consecutive loops over the same data # can be combined into a single loop. It is very likely that combining them # will make the code more efficient and more concise. @@ -36218,34 +36541,29 @@ RuboCop::Cop::Style::EndBlock::MSG = T.let(T.unsafe(nil), String) # source://rubocop//lib/rubocop/cop/style/endless_method.rb#49 class RuboCop::Cop::Style::EndlessMethod < ::RuboCop::Cop::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle + include ::RuboCop::Cop::EndlessMethodRewriter extend ::RuboCop::Cop::TargetRubyVersion extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/endless_method.rb#60 + # source://rubocop//lib/rubocop/cop/style/endless_method.rb#61 def on_def(node); end private - # source://rubocop//lib/rubocop/cop/style/endless_method.rb#95 - def arguments(node, missing = T.unsafe(nil)); end - - # source://rubocop//lib/rubocop/cop/style/endless_method.rb#85 - def correct_to_multiline(corrector, node); end - - # source://rubocop//lib/rubocop/cop/style/endless_method.rb#70 + # source://rubocop//lib/rubocop/cop/style/endless_method.rb#71 def handle_allow_style(node); end - # source://rubocop//lib/rubocop/cop/style/endless_method.rb#79 + # source://rubocop//lib/rubocop/cop/style/endless_method.rb#80 def handle_disallow_style(node); end end -# source://rubocop//lib/rubocop/cop/style/endless_method.rb#56 +# source://rubocop//lib/rubocop/cop/style/endless_method.rb#57 RuboCop::Cop::Style::EndlessMethod::CORRECTION_STYLES = T.let(T.unsafe(nil), Array) -# source://rubocop//lib/rubocop/cop/style/endless_method.rb#57 +# source://rubocop//lib/rubocop/cop/style/endless_method.rb#58 RuboCop::Cop::Style::EndlessMethod::MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/endless_method.rb#58 +# source://rubocop//lib/rubocop/cop/style/endless_method.rb#59 RuboCop::Cop::Style::EndlessMethod::MSG_MULTI_LINE = T.let(T.unsafe(nil), String) # Checks for consistent usage of `ENV['HOME']`. If `nil` is used as @@ -37850,7 +38168,7 @@ class RuboCop::Cop::Style::GuardClause < ::RuboCop::Cop::Base # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/guard_clause.rb#299 + # source://rubocop//lib/rubocop/cop/style/guard_clause.rb#312 def allowed_consecutive_conditionals?; end # @return [Boolean] @@ -37858,6 +38176,11 @@ class RuboCop::Cop::Style::GuardClause < ::RuboCop::Cop::Base # source://rubocop//lib/rubocop/cop/style/guard_clause.rb#265 def and_or_guard_clause?(guard_clause); end + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/guard_clause.rb#296 + def assigned_lvar_used_in_if_branch?(node); end + # source://rubocop//lib/rubocop/cop/style/guard_clause.rb#210 def autocorrect(corrector, node, condition, replacement, guard); end @@ -37889,7 +38212,7 @@ class RuboCop::Cop::Style::GuardClause < ::RuboCop::Cop::Base # source://rubocop//lib/rubocop/cop/style/guard_clause.rb#188 def register_offense(node, scope_exiting_keyword, conditional_keyword, guard = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/style/guard_clause.rb#295 + # source://rubocop//lib/rubocop/cop/style/guard_clause.rb#308 def remove_whole_lines(corrector, range); end # @return [Boolean] @@ -39701,6 +40024,40 @@ RuboCop::Cop::Style::IpAddresses::IPV6_MAX_SIZE = T.let(T.unsafe(nil), Integer) # source://rubocop//lib/rubocop/cop/style/ip_addresses.rb#25 RuboCop::Cop::Style::IpAddresses::MSG = T.let(T.unsafe(nil), String) +# When passing an existing hash as keyword arguments, provide additional arguments +# directly rather than using `merge`. +# +# Providing arguments directly is more performant, than using `merge`, and +# also leads to a shorter and simpler code. +# +# @example +# # bad +# some_method(**opts.merge(foo: true)) +# some_method(**opts.merge(other_opts)) +# +# # good +# some_method(**opts, foo: true) +# some_method(**opts, **other_opts) +# +# source://rubocop//lib/rubocop/cop/style/keyword_arguments_merging.rb#21 +class RuboCop::Cop::Style::KeywordArgumentsMerging < ::RuboCop::Cop::Base + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/keyword_arguments_merging.rb#27 + def merge_kwargs?(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/style/keyword_arguments_merging.rb#36 + def on_kwsplat(node); end + + private + + # source://rubocop//lib/rubocop/cop/style/keyword_arguments_merging.rb#48 + def autocorrect(corrector, kwsplat_node, hash_node, other_hash_node); end +end + +# source://rubocop//lib/rubocop/cop/style/keyword_arguments_merging.rb#24 +RuboCop::Cop::Style::KeywordArgumentsMerging::MSG = T.let(T.unsafe(nil), String) + # Enforces that optional keyword parameters are placed at the # end of the parameters list. # @@ -40158,10 +40515,10 @@ class RuboCop::Cop::Style::MagicCommentFormat::CommentRange # source://rubocop//lib/rubocop/cop/style/magic_comment_format.rb#125 def directives; end - # source://rubocop-ast/1.32.3/lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/1.34.0/lib/rubocop/ast/utilities/simple_forwardable.rb#9 def loc(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast/1.32.3/lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/1.34.0/lib/rubocop/ast/utilities/simple_forwardable.rb#9 def text(*_arg0, **_arg1, &_arg2); end # A magic comment can contain one value (normal style) or @@ -40334,70 +40691,73 @@ class RuboCop::Cop::Style::MapIntoArray < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/map_into_array.rb#104 + # source://rubocop//lib/rubocop/cop/style/map_into_array.rb#109 def after_leaving_scope(scope, _variable_table); end - # source://rubocop//lib/rubocop/cop/style/map_into_array.rb#67 + # source://rubocop//lib/rubocop/cop/style/map_into_array.rb#72 def each_block_with_push?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/style/map_into_array.rb#76 + # source://rubocop//lib/rubocop/cop/style/map_into_array.rb#81 def empty_array_asgn?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/style/map_into_array.rb#88 + # source://rubocop//lib/rubocop/cop/style/map_into_array.rb#93 def empty_array_tap(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/style/map_into_array.rb#98 + # source://rubocop//lib/rubocop/cop/style/map_into_array.rb#103 def lvar_ref?(param0 = T.unsafe(nil), param1); end - # source://rubocop//lib/rubocop/cop/style/map_into_array.rb#108 + # source://rubocop//lib/rubocop/cop/style/map_into_array.rb#113 def on_block(node); end - # source://rubocop//lib/rubocop/cop/style/map_into_array.rb#108 + # source://rubocop//lib/rubocop/cop/style/map_into_array.rb#113 def on_numblock(node); end + # source://rubocop//lib/rubocop/cop/style/map_into_array.rb#67 + def suitable_argument_node?(param0 = T.unsafe(nil)); end + private - # source://rubocop//lib/rubocop/cop/style/map_into_array.rb#208 + # source://rubocop//lib/rubocop/cop/style/map_into_array.rb#213 def correct_push_node(corrector, push_node); end - # source://rubocop//lib/rubocop/cop/style/map_into_array.rb#216 + # source://rubocop//lib/rubocop/cop/style/map_into_array.rb#221 def correct_return_value_handling(corrector, block, dest_var); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/map_into_array.rb#151 + # source://rubocop//lib/rubocop/cop/style/map_into_array.rb#156 def dest_used_only_for_mapping?(block, dest_var, asgn); end - # source://rubocop//lib/rubocop/cop/style/map_into_array.rb#145 + # source://rubocop//lib/rubocop/cop/style/map_into_array.rb#150 def find_closest_assignment(block, dest_var); end - # source://rubocop//lib/rubocop/cop/style/map_into_array.rb#128 + # source://rubocop//lib/rubocop/cop/style/map_into_array.rb#133 def find_dest_var(block); end - # source://rubocop//lib/rubocop/cop/style/map_into_array.rb#176 + # source://rubocop//lib/rubocop/cop/style/map_into_array.rb#181 def new_method_name; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/map_into_array.rb#136 + # source://rubocop//lib/rubocop/cop/style/map_into_array.rb#141 def offending_empty_array_tap?(node, dest_var); end - # source://rubocop//lib/rubocop/cop/style/map_into_array.rb#159 + # source://rubocop//lib/rubocop/cop/style/map_into_array.rb#164 def register_offense(block, dest_var, asgn); end - # source://rubocop//lib/rubocop/cop/style/map_into_array.rb#195 + # source://rubocop//lib/rubocop/cop/style/map_into_array.rb#200 def remove_assignment(corrector, asgn); end - # source://rubocop//lib/rubocop/cop/style/map_into_array.rb#202 + # source://rubocop//lib/rubocop/cop/style/map_into_array.rb#207 def remove_tap(corrector, node, block_node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/map_into_array.rb#182 + # source://rubocop//lib/rubocop/cop/style/map_into_array.rb#187 def return_value_used?(node); end class << self - # source://rubocop//lib/rubocop/cop/style/map_into_array.rb#100 + # source://rubocop//lib/rubocop/cop/style/map_into_array.rb#105 def joining_forces; end end end @@ -42193,59 +42553,50 @@ class RuboCop::Cop::Style::MultipleComparison < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector # source://rubocop//lib/rubocop/cop/style/multiple_comparison.rb#58 - def on_new_investigation; end - - # source://rubocop//lib/rubocop/cop/style/multiple_comparison.rb#62 def on_or(node); end - # source://rubocop//lib/rubocop/cop/style/multiple_comparison.rb#86 + # source://rubocop//lib/rubocop/cop/style/multiple_comparison.rb#80 def simple_comparison_lhs?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/style/multiple_comparison.rb#91 + # source://rubocop//lib/rubocop/cop/style/multiple_comparison.rb#85 def simple_comparison_rhs?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/style/multiple_comparison.rb#83 + # source://rubocop//lib/rubocop/cop/style/multiple_comparison.rb#77 def simple_double_comparison?(param0 = T.unsafe(nil)); end private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/multiple_comparison.rb#153 + # source://rubocop//lib/rubocop/cop/style/multiple_comparison.rb#142 def allow_method_comparison?; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/multiple_comparison.rb#134 + # source://rubocop//lib/rubocop/cop/style/multiple_comparison.rb#121 def comparison?(node); end - # source://rubocop//lib/rubocop/cop/style/multiple_comparison.rb#157 + # source://rubocop//lib/rubocop/cop/style/multiple_comparison.rb#146 def comparisons_threshold; end - # @return [Boolean] - # - # source://rubocop//lib/rubocop/cop/style/multiple_comparison.rb#126 - def nested_comparison?(node); end + # source://rubocop//lib/rubocop/cop/style/multiple_comparison.rb#90 + def find_offending_var(node, variables = T.unsafe(nil), values = T.unsafe(nil)); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/multiple_comparison.rb#95 - def nested_variable_comparison?(node); end - - # source://rubocop//lib/rubocop/cop/style/multiple_comparison.rb#148 - def reset_comparison; end + # source://rubocop//lib/rubocop/cop/style/multiple_comparison.rb#113 + def nested_comparison?(node); end - # source://rubocop//lib/rubocop/cop/style/multiple_comparison.rb#138 + # source://rubocop//lib/rubocop/cop/style/multiple_comparison.rb#132 def root_of_or_node(or_node); end - # source://rubocop//lib/rubocop/cop/style/multiple_comparison.rb#122 - def variable_name(node); end - - # source://rubocop//lib/rubocop/cop/style/multiple_comparison.rb#101 - def variables_in_node(node); end + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/multiple_comparison.rb#125 + def simple_comparison?(node); end # source://rubocop//lib/rubocop/cop/style/multiple_comparison.rb#109 - def variables_in_simple_node(node); end + def variable_name(node); end end # source://rubocop//lib/rubocop/cop/style/multiple_comparison.rb#55 @@ -42327,7 +42678,7 @@ class RuboCop::Cop::Style::MutableConstant < ::RuboCop::Cop::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-sorbet/0.8.6/lib/rubocop/cop/sorbet/mutable_constant_sorbet_aware_behaviour.rb#18 + # source://rubocop-sorbet/0.8.7/lib/rubocop/cop/sorbet/mutable_constant_sorbet_aware_behaviour.rb#18 def on_assignment(value); end # source://rubocop//lib/rubocop/cop/style/mutable_constant.rb#127 @@ -42345,7 +42696,7 @@ class RuboCop::Cop::Style::MutableConstant < ::RuboCop::Cop::Base # source://rubocop//lib/rubocop/cop/style/mutable_constant.rb#217 def splat_value(param0 = T.unsafe(nil)); end - # source://rubocop-sorbet/0.8.6/lib/rubocop/cop/sorbet/mutable_constant_sorbet_aware_behaviour.rb#12 + # source://rubocop-sorbet/0.8.7/lib/rubocop/cop/sorbet/mutable_constant_sorbet_aware_behaviour.rb#12 def t_let(param0 = T.unsafe(nil)); end private @@ -46449,47 +46800,50 @@ class RuboCop::Cop::Style::RedundantLineContinuation < ::RuboCop::Cop::Base include ::RuboCop::Cop::MatchRange extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#79 + # source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#81 def on_new_investigation; end private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#183 + # source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#201 def argument_is_method?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#147 + # source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#165 def argument_newline?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#102 + # source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#106 def ends_with_backslash_without_comment?(source_line); end - # source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#163 + # source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#181 def find_node_for_line(last_line); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#132 + # source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#150 def inside_string_literal?(range, token); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#110 + # source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#114 def inside_string_literal_or_method_with_argument?(range); end + # source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#139 + def inspect_eof_line_continuation; end + # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#118 + # source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#122 def leading_dot_method_chain_with_blank_line?(range); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#190 + # source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#208 def method_call_with_arguments?(node); end # A method call without parentheses such as the following cannot remove `\`: @@ -46499,44 +46853,50 @@ class RuboCop::Cop::Style::RedundantLineContinuation < ::RuboCop::Cop::Base # # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#140 + # source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#158 def method_with_argument?(current_token, next_token); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#124 + # source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#128 def redundant_line_continuation?(range); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#94 + # source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#98 def require_line_continuation?(range); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#169 + # source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#187 def same_line?(node, line); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#194 + # source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#212 def start_with_arithmetic_operator?(source_line); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#106 + # source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#110 def string_concatenation?(source_line); end end -# source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#72 +# source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#74 RuboCop::Cop::Style::RedundantLineContinuation::ALLOWED_STRING_TOKENS = T.let(T.unsafe(nil), Array) -# source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#77 +# source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#79 RuboCop::Cop::Style::RedundantLineContinuation::ARGUMENT_TAKING_FLOW_TOKEN_TYPES = T.let(T.unsafe(nil), Array) -# source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#73 +# source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#75 RuboCop::Cop::Style::RedundantLineContinuation::ARGUMENT_TYPES = T.let(T.unsafe(nil), Array) +# source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#72 +RuboCop::Cop::Style::RedundantLineContinuation::LINE_CONTINUATION = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#73 +RuboCop::Cop::Style::RedundantLineContinuation::LINE_CONTINUATION_PATTERN = T.let(T.unsafe(nil), Regexp) + # source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#71 RuboCop::Cop::Style::RedundantLineContinuation::MSG = T.let(T.unsafe(nil), String) @@ -46558,25 +46918,22 @@ class RuboCop::Cop::Style::RedundantParentheses < ::RuboCop::Cop::Base # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#32 def allowed_pin_operator?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#35 - def arg_in_call_with_block?(param0 = T.unsafe(nil)); end - - # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#269 + # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#261 def first_send_argument?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#274 + # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#266 def first_super_argument?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#279 + # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#271 def first_yield_argument?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#175 + # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#166 def interpolation?(param0 = T.unsafe(nil)); end # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#26 def method_node_and_args(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#37 + # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#34 def on_begin(node); end # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#29 @@ -46589,130 +46946,130 @@ class RuboCop::Cop::Style::RedundantParentheses < ::RuboCop::Cop::Base # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#177 + # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#168 def allow_in_multiline_conditions?; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#68 + # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#64 def allowed_ancestor?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#60 + # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#57 def allowed_expression?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#73 - def allowed_method_call?(node); end - - # @return [Boolean] - # - # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#78 + # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#69 def allowed_multiple_expression?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#87 + # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#78 def allowed_ternary?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#283 + # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#275 def call_chain_starts_with_int?(begin_node, send_node); end - # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#136 + # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#127 def check(begin_node); end - # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#184 + # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#175 def check_send(begin_node, node); end - # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#193 + # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#185 def check_unary(begin_node, node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#217 + # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#209 def disallowed_literal?(begin_node, node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#114 + # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#281 + def do_end_block_in_method_chain?(begin_node, node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#105 def empty_parentheses?(node); end - # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#147 + # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#138 def find_offense_message(begin_node, node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#119 + # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#110 def first_arg_begins_with_hash_literal?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#258 + # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#250 def first_argument?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#53 + # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#50 def ignore_syntax?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#213 + # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#205 def keyword_ancestor?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#232 + # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#224 def keyword_with_redundant_parentheses?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#100 + # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#91 def like_method_argument_parentheses?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#245 + # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#237 def method_call_with_redundant_parentheses?(node); end - # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#128 + # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#119 def method_chain_begins_with_hash_literal(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#107 + # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#98 def multiline_control_flow_statements?(node); end - # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#203 + # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#195 def offense(node, msg); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#254 + # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#246 def only_begin_arg?(args); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#45 + # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#42 def parens_allowed?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#221 + # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#213 def raised_to_power_negative_numeric?(begin_node, node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#209 + # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#201 def suspect_unary?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#93 + # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#84 def ternary_parentheses_required?; end end @@ -48386,6 +48743,11 @@ RuboCop::Cop::Style::ReturnNilInPredicateMethodDefinition::MSG = T.let(T.unsafe( # We have limited the cop to not register an offense for method chains # that exceed this option's value. # +# NOTE: This cop will recognize offenses but not autocorrect code when the +# right hand side (RHS) of the `&&` statement is an `||` statement +# (eg. `foo && (foo.bar? || foo.baz?)`). It can be corrected +# manually by removing the `foo &&` and adding `&.` to each `foo` on the RHS. +# # @example # # bad # foo.bar if foo @@ -48436,7 +48798,7 @@ RuboCop::Cop::Style::ReturnNilInPredicateMethodDefinition::MSG = T.let(T.unsafe( # foo.baz + bar if foo # foo.bar > 2 if foo # -# source://rubocop//lib/rubocop/cop/style/safe_navigation.rb#84 +# source://rubocop//lib/rubocop/cop/style/safe_navigation.rb#89 class RuboCop::Cop::Style::SafeNavigation < ::RuboCop::Cop::Base include ::RuboCop::Cop::AllowedMethods include ::RuboCop::Cop::NilMethods @@ -48444,125 +48806,165 @@ class RuboCop::Cop::Style::SafeNavigation < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector extend ::RuboCop::Cop::TargetRubyVersion - # source://rubocop//lib/rubocop/cop/style/safe_navigation.rb#128 + # source://rubocop//lib/rubocop/cop/style/safe_navigation.rb#136 def and_inside_begin?(param0 = T.unsafe(nil)); end + # source://rubocop//lib/rubocop/cop/style/safe_navigation.rb#130 + def and_with_rhs_or?(param0 = T.unsafe(nil)); end + # if format: (if checked_variable body nil) # unless format: (if checked_variable nil body) # - # source://rubocop//lib/rubocop/cop/style/safe_navigation.rb#99 + # source://rubocop//lib/rubocop/cop/style/safe_navigation.rb#104 def modifier_if_safe_navigation_candidate(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/style/safe_navigation.rb#125 + # source://rubocop//lib/rubocop/cop/style/safe_navigation.rb#133 def not_nil_check?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/style/safe_navigation.rb#149 + # source://rubocop//lib/rubocop/cop/style/safe_navigation.rb#157 def on_and(node); end - # source://rubocop//lib/rubocop/cop/style/safe_navigation.rb#133 + # source://rubocop//lib/rubocop/cop/style/safe_navigation.rb#141 def on_if(node); end - # source://rubocop//lib/rubocop/cop/style/safe_navigation.rb#173 + # source://rubocop//lib/rubocop/cop/style/safe_navigation.rb#181 def report_offense(node, rhs, rhs_receiver, *removal_ranges, offense_range: T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/style/safe_navigation.rb#131 + # source://rubocop//lib/rubocop/cop/style/safe_navigation.rb#139 def strip_begin(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/style/safe_navigation.rb#114 + # source://rubocop//lib/rubocop/cop/style/safe_navigation.rb#119 def ternary_safe_navigation_candidate(param0 = T.unsafe(nil)); end private - # source://rubocop//lib/rubocop/cop/style/safe_navigation.rb#348 + # source://rubocop//lib/rubocop/cop/style/safe_navigation.rb#360 def add_safe_nav_to_all_methods_in_chain(corrector, start_method, method_chain); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/safe_navigation.rb#265 + # source://rubocop//lib/rubocop/cop/style/safe_navigation.rb#277 def allowed_if_condition?(node); end - # source://rubocop//lib/rubocop/cop/style/safe_navigation.rb#210 + # source://rubocop//lib/rubocop/cop/style/safe_navigation.rb#222 def and_parts(node); end - # source://rubocop//lib/rubocop/cop/style/safe_navigation.rb#340 + # source://rubocop//lib/rubocop/cop/style/safe_navigation.rb#352 def begin_range(node, method_call); end - # source://rubocop//lib/rubocop/cop/style/safe_navigation.rb#302 + # source://rubocop//lib/rubocop/cop/style/safe_navigation.rb#314 def chain_length(method_chain, method); end - # source://rubocop//lib/rubocop/cop/style/safe_navigation.rb#192 + # source://rubocop//lib/rubocop/cop/style/safe_navigation.rb#204 def collect_and_clauses(node); end - # source://rubocop//lib/rubocop/cop/style/safe_navigation.rb#246 + # source://rubocop//lib/rubocop/cop/style/safe_navigation.rb#258 def comments(node); end - # source://rubocop//lib/rubocop/cop/style/safe_navigation.rb#204 + # source://rubocop//lib/rubocop/cop/style/safe_navigation.rb#216 def concat_nodes(nodes, and_node); end - # source://rubocop//lib/rubocop/cop/style/safe_navigation.rb#344 + # source://rubocop//lib/rubocop/cop/style/safe_navigation.rb#356 def end_range(node, method_call); end - # source://rubocop//lib/rubocop/cop/style/safe_navigation.rb#284 + # source://rubocop//lib/rubocop/cop/style/safe_navigation.rb#296 def extract_common_parts(method_chain, checked_variable); end - # source://rubocop//lib/rubocop/cop/style/safe_navigation.rb#231 + # source://rubocop//lib/rubocop/cop/style/safe_navigation.rb#243 def extract_if_body(node); end - # source://rubocop//lib/rubocop/cop/style/safe_navigation.rb#269 + # source://rubocop//lib/rubocop/cop/style/safe_navigation.rb#281 def extract_parts_from_if(node); end - # source://rubocop//lib/rubocop/cop/style/safe_navigation.rb#292 + # source://rubocop//lib/rubocop/cop/style/safe_navigation.rb#304 def find_matching_receiver_invocation(method_chain, checked_variable); end - # source://rubocop//lib/rubocop/cop/style/safe_navigation.rb#186 + # source://rubocop//lib/rubocop/cop/style/safe_navigation.rb#198 def find_method_chain(node); end - # source://rubocop//lib/rubocop/cop/style/safe_navigation.rb#239 + # source://rubocop//lib/rubocop/cop/style/safe_navigation.rb#251 def handle_comments(corrector, node, method_call); end - # source://rubocop//lib/rubocop/cop/style/safe_navigation.rb#362 + # source://rubocop//lib/rubocop/cop/style/safe_navigation.rb#374 def max_chain_length; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/safe_navigation.rb#336 + # source://rubocop//lib/rubocop/cop/style/safe_navigation.rb#348 def method_called?(send_node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/safe_navigation.rb#328 + # source://rubocop//lib/rubocop/cop/style/safe_navigation.rb#340 def negated?(send_node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/safe_navigation.rb#217 + # source://rubocop//lib/rubocop/cop/style/safe_navigation.rb#229 def offending_node?(node, lhs_receiver, rhs, rhs_receiver); end - # source://rubocop//lib/rubocop/cop/style/safe_navigation.rb#252 + # source://rubocop//lib/rubocop/cop/style/safe_navigation.rb#264 def relevant_comment_ranges(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/safe_navigation.rb#322 + # source://rubocop//lib/rubocop/cop/style/safe_navigation.rb#334 def unsafe_method?(send_node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/safe_navigation.rb#310 + # source://rubocop//lib/rubocop/cop/style/safe_navigation.rb#322 def unsafe_method_used?(method_chain, method); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/safe_navigation.rb#227 + # source://rubocop//lib/rubocop/cop/style/safe_navigation.rb#239 def use_var_only_in_unless_modifier?(node, variable); end end -# source://rubocop//lib/rubocop/cop/style/safe_navigation.rb#92 +# source://rubocop//lib/rubocop/cop/style/safe_navigation.rb#97 RuboCop::Cop::Style::SafeNavigation::LOGIC_JUMP_KEYWORDS = T.let(T.unsafe(nil), Array) -# source://rubocop//lib/rubocop/cop/style/safe_navigation.rb#90 +# source://rubocop//lib/rubocop/cop/style/safe_navigation.rb#95 RuboCop::Cop::Style::SafeNavigation::MSG = T.let(T.unsafe(nil), String) +# Enforces safe navigation chains length to not exceed the configured maximum. +# The longer the chain is, the harder it becomes to track what on it could be +# returning `nil`. +# +# There is a potential interplay with `Style/SafeNavigation` - if both are enabled +# and their settings are "incompatible", one of the cops will complain about what +# the other proposes. +# +# E.g. if `Style/SafeNavigation` is configured with `MaxChainLength: 2` (default) +# and this cop is configured with `Max: 1`, then for `foo.bar.baz if foo` the former +# will suggest `foo&.bar&.baz`, which is an offense for the latter. +# +# @example Max: 2 (default) +# # bad +# user&.address&.zip&.upcase +# +# # good +# user&.address&.zip +# user.address.zip if user +# +# source://rubocop//lib/rubocop/cop/style/safe_navigation_chain_length.rb#26 +class RuboCop::Cop::Style::SafeNavigationChainLength < ::RuboCop::Cop::Base + # source://rubocop//lib/rubocop/cop/style/safe_navigation_chain_length.rb#29 + def on_csend(node); end + + private + + # source://rubocop//lib/rubocop/cop/style/safe_navigation_chain_length.rb#46 + def max; end + + # source://rubocop//lib/rubocop/cop/style/safe_navigation_chain_length.rb#38 + def safe_navigation_chains(node); end +end + +# source://rubocop//lib/rubocop/cop/style/safe_navigation_chain_length.rb#27 +RuboCop::Cop::Style::SafeNavigationChainLength::MSG = T.let(T.unsafe(nil), String) + # Identifies usages of `shuffle.first`, # `shuffle.last`, and `shuffle[]` and change them to use # `sample` instead. @@ -50940,7 +51342,7 @@ class RuboCop::Cop::Style::TernaryParentheses < ::RuboCop::Cop::Base include ::RuboCop::Cop::SurroundingSpace extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/ternary_parentheses.rb#193 + # source://rubocop//lib/rubocop/cop/style/ternary_parentheses.rb#191 def method_name(param0 = T.unsafe(nil)); end # source://rubocop//lib/rubocop/cop/style/ternary_parentheses.rb#69 @@ -50953,7 +51355,7 @@ class RuboCop::Cop::Style::TernaryParentheses < ::RuboCop::Cop::Base # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/ternary_parentheses.rb#183 + # source://rubocop//lib/rubocop/cop/style/ternary_parentheses.rb#181 def below_ternary_precedence?(child); end # If the condition is parenthesized we recurse and check for any @@ -50969,15 +51371,25 @@ class RuboCop::Cop::Style::TernaryParentheses < ::RuboCop::Cop::Base # source://rubocop//lib/rubocop/cop/style/ternary_parentheses.rb#89 def condition_as_parenthesized_one_line_pattern_matching?(condition); end - # source://rubocop//lib/rubocop/cop/style/ternary_parentheses.rb#198 + # source://rubocop//lib/rubocop/cop/style/ternary_parentheses.rb#196 def correct_parenthesized(corrector, condition); end - # source://rubocop//lib/rubocop/cop/style/ternary_parentheses.rb#208 + # source://rubocop//lib/rubocop/cop/style/ternary_parentheses.rb#210 def correct_unparenthesized(corrector, condition); end # source://rubocop//lib/rubocop/cop/style/ternary_parentheses.rb#151 def message(node); end + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/ternary_parentheses.rb#227 + def node_args_need_parens?(send_node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/ternary_parentheses.rb#234 + def node_with_args?(node); end + # Anything that is not a variable, constant, or method/.method call # will be counted as a complex expression. # @@ -51001,6 +51413,9 @@ class RuboCop::Cop::Style::TernaryParentheses < ::RuboCop::Cop::Base # source://rubocop//lib/rubocop/cop/style/ternary_parentheses.rb#85 def only_closing_parenthesis_is_last_line?(condition); end + # source://rubocop//lib/rubocop/cop/style/ternary_parentheses.rb#214 + def parenthesize_condition_arguments(corrector, send_node); end + # @return [Boolean] # # source://rubocop//lib/rubocop/cop/style/ternary_parentheses.rb#169 @@ -51018,7 +51433,7 @@ class RuboCop::Cop::Style::TernaryParentheses < ::RuboCop::Cop::Base # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/ternary_parentheses.rb#179 + # source://rubocop//lib/rubocop/cop/style/ternary_parentheses.rb#177 def unparenthesized_method_call?(child); end # @return [Boolean] @@ -51028,7 +51443,7 @@ class RuboCop::Cop::Style::TernaryParentheses < ::RuboCop::Cop::Base # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/ternary_parentheses.rb#212 + # source://rubocop//lib/rubocop/cop/style/ternary_parentheses.rb#222 def whitespace_after?(node); end end @@ -53717,28 +54132,28 @@ class RuboCop::Cop::VariableForce::Assignment # @return [Assignment] a new instance of Assignment # - # source://rubocop//lib/rubocop/cop/variable_force/assignment.rb#16 + # source://rubocop//lib/rubocop/cop/variable_force/assignment.rb#17 def initialize(node, variable); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/variable_force/assignment.rb#50 + # source://rubocop//lib/rubocop/cop/variable_force/assignment.rb#58 def exception_assignment?; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/variable_force/assignment.rb#72 + # source://rubocop//lib/rubocop/cop/variable_force/assignment.rb#80 def for_assignment?; end - # source://rubocop//lib/rubocop/cop/variable_force/assignment.rb#83 + # source://rubocop//lib/rubocop/cop/variable_force/assignment.rb#91 def meta_assignment_node; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/variable_force/assignment.rb#60 + # source://rubocop//lib/rubocop/cop/variable_force/assignment.rb#68 def multiple_assignment?; end - # source://rubocop//lib/rubocop/cop/variable_force/assignment.rb#29 + # source://rubocop//lib/rubocop/cop/variable_force/assignment.rb#31 def name; end # Returns the value of attribute node. @@ -53746,15 +54161,28 @@ class RuboCop::Cop::VariableForce::Assignment # source://rubocop//lib/rubocop/cop/variable_force/assignment.rb#12 def node; end - # source://rubocop//lib/rubocop/cop/variable_force/assignment.rb#78 + # source://rubocop//lib/rubocop/cop/variable_force/assignment.rb#86 def operator; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/variable_force/assignment.rb#54 + # source://rubocop//lib/rubocop/cop/variable_force/assignment.rb#62 def operator_assignment?; end - # source://rubocop//lib/rubocop/cop/variable_force/assignment.rb#37 + # Returns the value of attribute reassigned. + # + # source://rubocop//lib/rubocop/cop/variable_force/assignment.rb#12 + def reassigned; end + + # source://rubocop//lib/rubocop/cop/variable_force/assignment.rb#44 + def reassigned!; end + + # Returns the value of attribute reassigned. + # + # source://rubocop//lib/rubocop/cop/variable_force/assignment.rb#12 + def reassigned?; end + + # source://rubocop//lib/rubocop/cop/variable_force/assignment.rb#39 def reference!(node); end # Returns the value of attribute referenced. @@ -53774,20 +54202,20 @@ class RuboCop::Cop::VariableForce::Assignment # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/variable_force/assignment.rb#46 + # source://rubocop//lib/rubocop/cop/variable_force/assignment.rb#54 def regexp_named_capture?; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/variable_force/assignment.rb#66 + # source://rubocop//lib/rubocop/cop/variable_force/assignment.rb#74 def rest_assignment?; end - # source://rubocop//lib/rubocop/cop/variable_force/assignment.rb#33 + # source://rubocop//lib/rubocop/cop/variable_force/assignment.rb#35 def scope; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/variable_force/assignment.rb#42 + # source://rubocop//lib/rubocop/cop/variable_force/assignment.rb#50 def used?; end # Returns the value of attribute variable. @@ -53797,19 +54225,19 @@ class RuboCop::Cop::VariableForce::Assignment private - # source://rubocop//lib/rubocop/cop/variable_force/assignment.rb#125 + # source://rubocop//lib/rubocop/cop/variable_force/assignment.rb#140 def find_multiple_assignment_node(grandparent_node); end - # source://rubocop//lib/rubocop/cop/variable_force/assignment.rb#121 + # source://rubocop//lib/rubocop/cop/variable_force/assignment.rb#130 def for_assignment_node; end - # source://rubocop//lib/rubocop/cop/variable_force/assignment.rb#104 + # source://rubocop//lib/rubocop/cop/variable_force/assignment.rb#112 def multiple_assignment_node; end - # source://rubocop//lib/rubocop/cop/variable_force/assignment.rb#96 + # source://rubocop//lib/rubocop/cop/variable_force/assignment.rb#104 def operator_assignment_node; end - # source://rubocop//lib/rubocop/cop/variable_force/assignment.rb#114 + # source://rubocop//lib/rubocop/cop/variable_force/assignment.rb#123 def rest_assignment_node; end end @@ -54472,7 +54900,7 @@ class RuboCop::Cop::VariableForce::Variable # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/variable_force/variable.rb#94 + # source://rubocop//lib/rubocop/cop/variable_force/variable.rb#98 def argument?; end # source://rubocop//lib/rubocop/cop/variable_force/variable.rb#31 @@ -54485,10 +54913,10 @@ class RuboCop::Cop::VariableForce::Variable # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/variable_force/variable.rb#102 + # source://rubocop//lib/rubocop/cop/variable_force/variable.rb#106 def block_argument?; end - # source://rubocop//lib/rubocop/cop/variable_force/variable.rb#74 + # source://rubocop//lib/rubocop/cop/variable_force/variable.rb#78 def capture_with_block!; end # Returns the value of attribute captured_by_block. @@ -54508,22 +54936,22 @@ class RuboCop::Cop::VariableForce::Variable # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/variable_force/variable.rb#110 + # source://rubocop//lib/rubocop/cop/variable_force/variable.rb#114 def explicit_block_local_variable?; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/variable_force/variable.rb#66 + # source://rubocop//lib/rubocop/cop/variable_force/variable.rb#70 def in_modifier_conditional?(assignment); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/variable_force/variable.rb#106 + # source://rubocop//lib/rubocop/cop/variable_force/variable.rb#110 def keyword_argument?; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/variable_force/variable.rb#98 + # source://rubocop//lib/rubocop/cop/variable_force/variable.rb#102 def method_argument?; end # Returns the value of attribute name. @@ -54531,12 +54959,12 @@ class RuboCop::Cop::VariableForce::Variable # source://rubocop//lib/rubocop/cop/variable_force/variable.rb#11 def name; end - # source://rubocop//lib/rubocop/cop/variable_force/variable.rb#40 + # source://rubocop//lib/rubocop/cop/variable_force/variable.rb#44 def reference!(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/variable_force/variable.rb#35 + # source://rubocop//lib/rubocop/cop/variable_force/variable.rb#39 def referenced?; end # Returns the value of attribute references. @@ -54551,7 +54979,7 @@ class RuboCop::Cop::VariableForce::Variable # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/variable_force/variable.rb#90 + # source://rubocop//lib/rubocop/cop/variable_force/variable.rb#94 def should_be_unused?; end # This is a convenient way to check whether the variable is used @@ -54565,7 +54993,7 @@ class RuboCop::Cop::VariableForce::Variable # # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/variable_force/variable.rb#86 + # source://rubocop//lib/rubocop/cop/variable_force/variable.rb#90 def used?; end end @@ -57790,10 +58218,10 @@ class RuboCop::Runner # @return [Boolean] # - # source://rubocop//lib/rubocop/runner.rb#430 + # source://rubocop//lib/rubocop/runner.rb#434 def considered_failure?(offense); end - # source://rubocop//lib/rubocop/runner.rb#463 + # source://rubocop//lib/rubocop/runner.rb#471 def default_config(cop_name); end # source://rubocop//lib/rubocop/runner.rb#276 @@ -57822,16 +58250,16 @@ class RuboCop::Runner # source://rubocop//lib/rubocop/runner.rb#244 def file_started(file); end - # source://rubocop//lib/rubocop/runner.rb#410 + # source://rubocop//lib/rubocop/runner.rb#414 def filter_cop_classes(cop_classes, config); end # source://rubocop//lib/rubocop/runner.rb#108 def find_target_files(paths); end - # source://rubocop//lib/rubocop/runner.rb#421 + # source://rubocop//lib/rubocop/runner.rb#425 def formatter_set; end - # source://rubocop//lib/rubocop/runner.rb#478 + # source://rubocop//lib/rubocop/runner.rb#486 def get_processed_source(file); end # source://rubocop//lib/rubocop/runner.rb#346 @@ -57848,25 +58276,30 @@ class RuboCop::Runner # @return [Boolean] # - # source://rubocop//lib/rubocop/runner.rb#459 + # source://rubocop//lib/rubocop/runner.rb#467 def mark_as_safe_by_config?(config); end - # source://rubocop//lib/rubocop/runner.rb#467 + # source://rubocop//lib/rubocop/runner.rb#475 def minimum_severity_to_fail; end - # source://rubocop//lib/rubocop/runner.rb#371 + # source://rubocop//lib/rubocop/runner.rb#375 def mobilize_team(processed_source); end - # source://rubocop//lib/rubocop/runner.rb#376 + # source://rubocop//lib/rubocop/runner.rb#380 def mobilized_cop_classes(config); end - # source://rubocop//lib/rubocop/runner.rb#439 + # @return [Boolean] + # + # source://rubocop//lib/rubocop/runner.rb#443 + def offense_displayed?(offense); end + + # source://rubocop//lib/rubocop/runner.rb#455 def offenses_to_report(offenses); end # source://rubocop//lib/rubocop/runner.rb#156 def process_file(file); end - # source://rubocop//lib/rubocop/runner.rb#400 + # source://rubocop//lib/rubocop/runner.rb#404 def qualify_option_cop_names; end # @yield [cop] @@ -57882,17 +58315,17 @@ class RuboCop::Runner # otherwise dormant team that can be used for config- and option- # level caching in ResultCache. # - # source://rubocop//lib/rubocop/runner.rb#506 + # source://rubocop//lib/rubocop/runner.rb#514 def standby_team(config); end # @return [Boolean] # - # source://rubocop//lib/rubocop/runner.rb#417 + # source://rubocop//lib/rubocop/runner.rb#421 def style_guide_cops_only?(config); end # @return [Boolean] # - # source://rubocop//lib/rubocop/runner.rb#451 + # source://rubocop//lib/rubocop/runner.rb#459 def supports_safe_autocorrect?(offense); end # @yield [team] @@ -58460,12 +58893,17 @@ module RuboCop::Version class << self # @api private # - # source://rubocop//lib/rubocop/version.rb#110 + # source://rubocop//lib/rubocop/version.rb#99 + def config_for_pwd(env); end + + # @api private + # + # source://rubocop//lib/rubocop/version.rb#129 def document_version; end # @api private # - # source://rubocop//lib/rubocop/version.rb#60 + # source://rubocop//lib/rubocop/version.rb#66 def extension_versions(env); end # Returns feature version in one of two ways: @@ -58475,22 +58913,34 @@ module RuboCop::Version # # @api private # - # source://rubocop//lib/rubocop/version.rb#94 + # source://rubocop//lib/rubocop/version.rb#113 def feature_version(feature); end # @api private # - # source://rubocop//lib/rubocop/version.rb#45 + # source://rubocop//lib/rubocop/version.rb#51 def parser_version; end # @api private # - # source://rubocop//lib/rubocop/version.rb#115 + # source://rubocop//lib/rubocop/version.rb#134 def server_mode; end # @api private # - # source://rubocop//lib/rubocop/version.rb#22 + # source://rubocop//lib/rubocop/version.rb#90 + def target_ruby_version(env); end + + # @api private + # + # source://rubocop//lib/rubocop/version.rb#46 + def verbose(env: T.unsafe(nil)); end + + # NOTE: Marked as private but used by gems like standard. + # + # @api private + # + # source://rubocop//lib/rubocop/version.rb#23 def version(debug: T.unsafe(nil), env: T.unsafe(nil)); end end end diff --git a/sorbet/rbi/gems/sidekiq@7.3.4.rbi b/sorbet/rbi/gems/sidekiq@7.3.5.rbi similarity index 93% rename from sorbet/rbi/gems/sidekiq@7.3.4.rbi rename to sorbet/rbi/gems/sidekiq@7.3.5.rbi index 6409accfc..f586d3c63 100644 --- a/sorbet/rbi/gems/sidekiq@7.3.4.rbi +++ b/sorbet/rbi/gems/sidekiq@7.3.5.rbi @@ -8,93 +8,93 @@ # source://sidekiq//lib/active_job/queue_adapters/sidekiq_adapter.rb#16 module ActiveJob class << self - # source://activejob/7.1.4.1/lib/active_job/queue_adapter.rb#7 + # source://activejob/7.1.4.2/lib/active_job/queue_adapter.rb#7 def adapter_name(adapter); end - # source://activejob/7.1.4.1/lib/active_job/deprecator.rb#4 + # source://activejob/7.1.4.2/lib/active_job/deprecator.rb#4 def deprecator; end - # source://activejob/7.1.4.1/lib/active_job/gem_version.rb#5 + # source://activejob/7.1.4.2/lib/active_job/gem_version.rb#5 def gem_version; end - # source://activejob/7.1.4.1/lib/active_job/enqueuing.rb#14 + # source://activejob/7.1.4.2/lib/active_job/enqueuing.rb#14 def perform_all_later(*jobs); end - # source://activejob/7.1.4.1/lib/active_job.rb#56 + # source://activejob/7.1.4.2/lib/active_job.rb#56 def use_big_decimal_serializer; end - # source://activejob/7.1.4.1/lib/active_job.rb#56 + # source://activejob/7.1.4.2/lib/active_job.rb#56 def use_big_decimal_serializer=(_arg0); end - # source://activejob/7.1.4.1/lib/active_job.rb#64 + # source://activejob/7.1.4.2/lib/active_job.rb#64 def verbose_enqueue_logs; end - # source://activejob/7.1.4.1/lib/active_job.rb#64 + # source://activejob/7.1.4.2/lib/active_job.rb#64 def verbose_enqueue_logs=(_arg0); end - # source://activejob/7.1.4.1/lib/active_job/version.rb#7 + # source://activejob/7.1.4.2/lib/active_job/version.rb#7 def version; end private - # source://activejob/7.1.4.1/lib/active_job/instrumentation.rb#6 + # source://activejob/7.1.4.2/lib/active_job/instrumentation.rb#6 def instrument_enqueue_all(queue_adapter, jobs); end end end class ActiveJob::Base - # source://activesupport/7.1.4.1/lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.4.2/lib/active_support/callbacks.rb#70 def __callbacks; end - # source://activesupport/7.1.4.1/lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.4.2/lib/active_support/callbacks.rb#70 def __callbacks?; end - # source://activesupport/7.1.4.1/lib/active_support/callbacks.rb#963 + # source://activesupport/7.1.4.2/lib/active_support/callbacks.rb#963 def _enqueue_callbacks; end - # source://activesupport/7.1.4.1/lib/active_support/callbacks.rb#963 + # source://activesupport/7.1.4.2/lib/active_support/callbacks.rb#963 def _perform_callbacks; end - # source://activesupport/7.1.4.1/lib/active_support/callbacks.rb#951 + # source://activesupport/7.1.4.2/lib/active_support/callbacks.rb#951 def _run_enqueue_callbacks(&block); end - # source://activesupport/7.1.4.1/lib/active_support/callbacks.rb#951 + # source://activesupport/7.1.4.2/lib/active_support/callbacks.rb#951 def _run_perform_callbacks(&block); end - # source://activejob/7.1.4.1/lib/active_job/exceptions.rb#12 + # source://activejob/7.1.4.2/lib/active_job/exceptions.rb#12 def after_discard_procs; end - # source://activejob/7.1.4.1/lib/active_job/exceptions.rb#12 + # source://activejob/7.1.4.2/lib/active_job/exceptions.rb#12 def after_discard_procs=(_arg0); end - # source://activejob/7.1.4.1/lib/active_job/exceptions.rb#12 + # source://activejob/7.1.4.2/lib/active_job/exceptions.rb#12 def after_discard_procs?; end - # source://activejob/7.1.4.1/lib/active_job/logging.rb#11 + # source://activejob/7.1.4.2/lib/active_job/logging.rb#11 def logger; end - # source://activejob/7.1.4.1/lib/active_job/logging.rb#11 + # source://activejob/7.1.4.2/lib/active_job/logging.rb#11 def logger=(val); end - # source://activejob/7.1.4.1/lib/active_job/queue_adapter.rb#26 + # source://activejob/7.1.4.2/lib/active_job/queue_adapter.rb#26 def queue_adapter(&block); end - # source://activejob/7.1.4.1/lib/active_job/queue_name.rb#57 + # source://activejob/7.1.4.2/lib/active_job/queue_name.rb#57 def queue_name_prefix; end - # source://activejob/7.1.4.1/lib/active_job/queue_name.rb#57 + # source://activejob/7.1.4.2/lib/active_job/queue_name.rb#57 def queue_name_prefix=(_arg0); end - # source://activejob/7.1.4.1/lib/active_job/queue_name.rb#57 + # source://activejob/7.1.4.2/lib/active_job/queue_name.rb#57 def queue_name_prefix?; end - # source://activesupport/7.1.4.1/lib/active_support/rescuable.rb#15 + # source://activesupport/7.1.4.2/lib/active_support/rescuable.rb#15 def rescue_handlers; end - # source://activesupport/7.1.4.1/lib/active_support/rescuable.rb#15 + # source://activesupport/7.1.4.2/lib/active_support/rescuable.rb#15 def rescue_handlers=(_arg0); end - # source://activesupport/7.1.4.1/lib/active_support/rescuable.rb#15 + # source://activesupport/7.1.4.2/lib/active_support/rescuable.rb#15 def rescue_handlers?; end # source://sidekiq//lib/sidekiq/job.rb#141 @@ -116,118 +116,118 @@ class ActiveJob::Base def sidekiq_retry_in_block=(_arg0); end class << self - # source://activesupport/7.1.4.1/lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.4.2/lib/active_support/callbacks.rb#70 def __callbacks; end - # source://activesupport/7.1.4.1/lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.4.2/lib/active_support/callbacks.rb#70 def __callbacks=(value); end - # source://activesupport/7.1.4.1/lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.4.2/lib/active_support/callbacks.rb#70 def __callbacks?; end - # source://activesupport/7.1.4.1/lib/active_support/callbacks.rb#955 + # source://activesupport/7.1.4.2/lib/active_support/callbacks.rb#955 def _enqueue_callbacks; end - # source://activesupport/7.1.4.1/lib/active_support/callbacks.rb#959 + # source://activesupport/7.1.4.2/lib/active_support/callbacks.rb#959 def _enqueue_callbacks=(value); end - # source://activesupport/7.1.4.1/lib/active_support/callbacks.rb#955 + # source://activesupport/7.1.4.2/lib/active_support/callbacks.rb#955 def _perform_callbacks; end - # source://activesupport/7.1.4.1/lib/active_support/callbacks.rb#959 + # source://activesupport/7.1.4.2/lib/active_support/callbacks.rb#959 def _perform_callbacks=(value); end - # source://activejob/7.1.4.1/lib/active_job/queue_adapter.rb#24 + # source://activejob/7.1.4.2/lib/active_job/queue_adapter.rb#24 def _queue_adapter; end - # source://activejob/7.1.4.1/lib/active_job/queue_adapter.rb#24 + # source://activejob/7.1.4.2/lib/active_job/queue_adapter.rb#24 def _queue_adapter=(value); end - # source://activejob/7.1.4.1/lib/active_job/queue_adapter.rb#23 + # source://activejob/7.1.4.2/lib/active_job/queue_adapter.rb#23 def _queue_adapter_name; end - # source://activejob/7.1.4.1/lib/active_job/queue_adapter.rb#23 + # source://activejob/7.1.4.2/lib/active_job/queue_adapter.rb#23 def _queue_adapter_name=(value); end - # source://activejob/7.1.4.1/lib/active_job/test_helper.rb#19 + # source://activejob/7.1.4.2/lib/active_job/test_helper.rb#19 def _test_adapter; end - # source://activejob/7.1.4.1/lib/active_job/test_helper.rb#19 + # source://activejob/7.1.4.2/lib/active_job/test_helper.rb#19 def _test_adapter=(value); end - # source://activejob/7.1.4.1/lib/active_job/exceptions.rb#12 + # source://activejob/7.1.4.2/lib/active_job/exceptions.rb#12 def after_discard_procs; end - # source://activejob/7.1.4.1/lib/active_job/exceptions.rb#12 + # source://activejob/7.1.4.2/lib/active_job/exceptions.rb#12 def after_discard_procs=(value); end - # source://activejob/7.1.4.1/lib/active_job/exceptions.rb#12 + # source://activejob/7.1.4.2/lib/active_job/exceptions.rb#12 def after_discard_procs?; end - # source://activejob/7.1.4.1/lib/active_job/logging.rb#12 + # source://activejob/7.1.4.2/lib/active_job/logging.rb#12 def log_arguments; end - # source://activejob/7.1.4.1/lib/active_job/logging.rb#12 + # source://activejob/7.1.4.2/lib/active_job/logging.rb#12 def log_arguments=(value); end - # source://activejob/7.1.4.1/lib/active_job/logging.rb#12 + # source://activejob/7.1.4.2/lib/active_job/logging.rb#12 def log_arguments?; end - # source://activejob/7.1.4.1/lib/active_job/logging.rb#11 + # source://activejob/7.1.4.2/lib/active_job/logging.rb#11 def logger; end - # source://activejob/7.1.4.1/lib/active_job/logging.rb#11 + # source://activejob/7.1.4.2/lib/active_job/logging.rb#11 def logger=(val); end - # source://activejob/7.1.4.1/lib/active_job/queue_priority.rb#49 + # source://activejob/7.1.4.2/lib/active_job/queue_priority.rb#49 def priority; end - # source://activejob/7.1.4.1/lib/active_job/queue_priority.rb#49 + # source://activejob/7.1.4.2/lib/active_job/queue_priority.rb#49 def priority=(value); end - # source://activejob/7.1.4.1/lib/active_job/queue_priority.rb#49 + # source://activejob/7.1.4.2/lib/active_job/queue_priority.rb#49 def priority?; end - # source://activejob/7.1.4.1/lib/active_job/queue_name.rb#55 + # source://activejob/7.1.4.2/lib/active_job/queue_name.rb#55 def queue_name; end - # source://activejob/7.1.4.1/lib/active_job/queue_name.rb#55 + # source://activejob/7.1.4.2/lib/active_job/queue_name.rb#55 def queue_name=(value); end - # source://activejob/7.1.4.1/lib/active_job/queue_name.rb#55 + # source://activejob/7.1.4.2/lib/active_job/queue_name.rb#55 def queue_name?; end - # source://activejob/7.1.4.1/lib/active_job/queue_name.rb#56 + # source://activejob/7.1.4.2/lib/active_job/queue_name.rb#56 def queue_name_delimiter; end - # source://activejob/7.1.4.1/lib/active_job/queue_name.rb#56 + # source://activejob/7.1.4.2/lib/active_job/queue_name.rb#56 def queue_name_delimiter=(value); end - # source://activejob/7.1.4.1/lib/active_job/queue_name.rb#56 + # source://activejob/7.1.4.2/lib/active_job/queue_name.rb#56 def queue_name_delimiter?; end - # source://activejob/7.1.4.1/lib/active_job/queue_name.rb#57 + # source://activejob/7.1.4.2/lib/active_job/queue_name.rb#57 def queue_name_prefix; end - # source://activejob/7.1.4.1/lib/active_job/queue_name.rb#57 + # source://activejob/7.1.4.2/lib/active_job/queue_name.rb#57 def queue_name_prefix=(value); end - # source://activejob/7.1.4.1/lib/active_job/queue_name.rb#57 + # source://activejob/7.1.4.2/lib/active_job/queue_name.rb#57 def queue_name_prefix?; end - # source://activesupport/7.1.4.1/lib/active_support/rescuable.rb#15 + # source://activesupport/7.1.4.2/lib/active_support/rescuable.rb#15 def rescue_handlers; end - # source://activesupport/7.1.4.1/lib/active_support/rescuable.rb#15 + # source://activesupport/7.1.4.2/lib/active_support/rescuable.rb#15 def rescue_handlers=(value); end - # source://activesupport/7.1.4.1/lib/active_support/rescuable.rb#15 + # source://activesupport/7.1.4.2/lib/active_support/rescuable.rb#15 def rescue_handlers?; end - # source://activejob/7.1.4.1/lib/active_job/exceptions.rb#11 + # source://activejob/7.1.4.2/lib/active_job/exceptions.rb#11 def retry_jitter; end - # source://activejob/7.1.4.1/lib/active_job/exceptions.rb#11 + # source://activejob/7.1.4.2/lib/active_job/exceptions.rb#11 def retry_jitter=(value); end # source://sidekiq//lib/sidekiq/job.rb#108 @@ -264,7 +264,7 @@ end # source://sidekiq//lib/active_job/queue_adapters/sidekiq_adapter.rb#17 module ActiveJob::QueueAdapters class << self - # source://activejob/7.1.4.1/lib/active_job/queue_adapters.rb#137 + # source://activejob/7.1.4.2/lib/active_job/queue_adapters.rb#137 def lookup(name); end end end @@ -1820,28 +1820,28 @@ end # source://sidekiq//lib/sidekiq.rb#42 Sidekiq::NAME = T.let(T.unsafe(nil), String) -# source://sidekiq//lib/sidekiq/rails.rb#13 +# source://sidekiq//lib/sidekiq/rails.rb#7 class Sidekiq::Rails < ::Rails::Engine class << self - # source://activesupport/7.1.4.1/lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.4.2/lib/active_support/callbacks.rb#70 def __callbacks; end end end -# source://sidekiq//lib/sidekiq/rails.rb#14 +# source://sidekiq//lib/sidekiq/rails.rb#8 class Sidekiq::Rails::Reloader # @return [Reloader] a new instance of Reloader # - # source://sidekiq//lib/sidekiq/rails.rb#15 + # source://sidekiq//lib/sidekiq/rails.rb#9 def initialize(app = T.unsafe(nil)); end - # source://sidekiq//lib/sidekiq/rails.rb#19 + # source://sidekiq//lib/sidekiq/rails.rb#13 def call; end - # source://sidekiq//lib/sidekiq/rails.rb#26 + # source://sidekiq//lib/sidekiq/rails.rb#20 def inspect; end - # source://sidekiq//lib/sidekiq/rails.rb#30 + # source://sidekiq//lib/sidekiq/rails.rb#24 def to_hash; end end