diff --git a/sorbet/rbi/gems/graphql@2.4.7.rbi b/sorbet/rbi/gems/graphql@2.4.8.rbi similarity index 97% rename from sorbet/rbi/gems/graphql@2.4.7.rbi rename to sorbet/rbi/gems/graphql@2.4.8.rbi index b6d7ef894..e63f98e21 100644 --- a/sorbet/rbi/gems/graphql@2.4.7.rbi +++ b/sorbet/rbi/gems/graphql@2.4.8.rbi @@ -1595,11 +1595,11 @@ class GraphQL::Execution::Interpreter::ExecutionErrors def add(err_or_msg); end end -# source://graphql/lib/graphql/execution/interpreter.rb#152 +# source://graphql/lib/graphql/execution/interpreter.rb#154 class GraphQL::Execution::Interpreter::ListResultFailedError < ::GraphQL::Error # @return [ListResultFailedError] a new instance of ListResultFailedError # - # source://graphql/lib/graphql/execution/interpreter.rb#153 + # source://graphql/lib/graphql/execution/interpreter.rb#155 def initialize(value:, path:, field:); end end @@ -12516,58 +12516,91 @@ class GraphQL::Schema::Subscription < ::GraphQL::Schema::Resolver extend ::GraphQL::Schema::Member::HasFields extend ::GraphQL::Schema::Member::HasFields::ObjectMethods + # @api private # @return [Subscription] a new instance of Subscription # - # source://graphql/lib/graphql/schema/subscription.rb#22 + # source://graphql/lib/graphql/schema/subscription.rb#23 def initialize(object:, context:, field:); end + # @return [Subscriptions::Event] This object is used as a representation of this subscription for the backend + # + # source://graphql/lib/graphql/schema/subscription.rb#191 + def event; end + # If an argument is flagged with `loads:` and no object is found for it, # remove this subscription (assuming that the object was deleted in the meantime, # or that it became inaccessible). # - # source://graphql/lib/graphql/schema/subscription.rb#94 + # source://graphql/lib/graphql/schema/subscription.rb#107 def load_application_object_failed(err); end - # Implement the {Resolve} API + # Implement the {Resolve} API. + # You can implement this if you want code to run for _both_ the initial subscription + # and for later updates. Or, implement {#subscribe} and {#update} # - # source://graphql/lib/graphql/schema/subscription.rb#50 + # source://graphql/lib/graphql/schema/subscription.rb#61 def resolve(**args); end # Wrap the user-defined `#subscribe` hook # - # source://graphql/lib/graphql/schema/subscription.rb#57 + # @api private + # + # source://graphql/lib/graphql/schema/subscription.rb#69 def resolve_subscribe(**args); end # Wrap the user-provided `#update` hook # - # source://graphql/lib/graphql/schema/subscription.rb#74 + # @api private + # + # source://graphql/lib/graphql/schema/subscription.rb#87 def resolve_update(**args); end - # source://graphql/lib/graphql/schema/subscription.rb#28 + # @api private + # + # source://graphql/lib/graphql/schema/subscription.rb#36 def resolve_with_support(**args); end # The default implementation returns nothing on subscribe. # Override it to return an object or # `:no_response` to (explicitly) return nothing. # - # source://graphql/lib/graphql/schema/subscription.rb#69 + # source://graphql/lib/graphql/schema/subscription.rb#81 def subscribe(args = T.unsafe(nil)); end + # @return [Boolean] `true` if {#write_subscription} was called already + # + # source://graphql/lib/graphql/schema/subscription.rb#186 + def subscription_written?; end + # Call this to halt execution and remove this subscription from the system # # @param update_value [Object] if present, deliver this update before unsubscribing # @return [void] # - # source://graphql/lib/graphql/schema/subscription.rb#104 + # source://graphql/lib/graphql/schema/subscription.rb#117 def unsubscribe(update_value = T.unsafe(nil)); end # The default implementation returns the root object. # Override it to return {NO_UPDATE} if you want to # skip updates sometimes. Or override it to return a different object. # - # source://graphql/lib/graphql/schema/subscription.rb#87 + # source://graphql/lib/graphql/schema/subscription.rb#100 def update(args = T.unsafe(nil)); end + # Calls through to `schema.subscriptions` to register this subscription with the backend. + # This is automatically called by GraphQL-Ruby after a query finishes successfully, + # but if you need to commit the subscription during `#subscribe`, you can call it there. + # (This method also sets a flag showing that this subscription was already written.) + # + # If you call this method yourself, you may also need to {#unsubscribe} + # or call `subscriptions.delete_subscription` to clean up the database if the query crashes with an error + # later in execution. + # + # @return [void] + # + # source://graphql/lib/graphql/schema/subscription.rb#175 + def write_subscription; end + class << self # Call this method to provide a new subscription_scope; OR # call it without an argument to get the subscription_scope @@ -12576,12 +12609,12 @@ class GraphQL::Schema::Subscription < ::GraphQL::Schema::Resolver # @param optional [Boolean] If true, then don't require `scope:` to be provided to updates to this subscription. # @return [Symbol] # - # source://graphql/lib/graphql/schema/subscription.rb#115 + # source://graphql/lib/graphql/schema/subscription.rb#127 def subscription_scope(new_scope = T.unsafe(nil), optional: T.unsafe(nil)); end # @return [Boolean] # - # source://graphql/lib/graphql/schema/subscription.rb#126 + # source://graphql/lib/graphql/schema/subscription.rb#138 def subscription_scope_optional?; end # This is called during initial subscription to get a "name" for this subscription. @@ -12601,7 +12634,7 @@ class GraphQL::Schema::Subscription < ::GraphQL::Schema::Resolver # @return [String] An identifier corresponding to a stream of updates # @see {#update} for how to skip updates when an event comes with a matching topic. # - # source://graphql/lib/graphql/schema/subscription.rb#150 + # source://graphql/lib/graphql/schema/subscription.rb#162 def topic_for(arguments:, field:, scope:); end end end @@ -12609,9 +12642,6 @@ end # source://graphql/lib/graphql/schema/subscription.rb#17 GraphQL::Schema::Subscription::NO_UPDATE = T.let(T.unsafe(nil), Symbol) -# source://graphql/lib/graphql/schema/subscription.rb#109 -GraphQL::Schema::Subscription::READING_SCOPE = T.let(T.unsafe(nil), Object) - # This plugin will stop resolving new fields after `max_seconds` have elapsed. # After the time has passed, any remaining fields will be `nil`, with errors added # to the `errors` key. Any already-resolved fields will be in the `data` key, so @@ -16575,11 +16605,6 @@ class GraphQL::Subscriptions::DefaultSubscriptionResolveExtension < ::GraphQL::S # source://graphql/lib/graphql/subscriptions/default_subscription_resolve_extension.rb#5 def resolve(context:, object:, arguments:); end - - private - - # source://graphql/lib/graphql/subscriptions/default_subscription_resolve_extension.rb#51 - def arguments_without_field_extras(arguments:); end end # This thing can be: @@ -16605,7 +16630,7 @@ class GraphQL::Subscriptions::Event # @return [String] a logical identifier for this event. (Stable when the query is broadcastable.) # - # source://graphql/lib/graphql/subscriptions/event.rb#47 + # source://graphql/lib/graphql/subscriptions/event.rb#48 def fingerprint; end # @return [String] Corresponds to the Subscription root field name @@ -16619,6 +16644,9 @@ class GraphQL::Subscriptions::Event def topic; end class << self + # source://graphql/lib/graphql/subscriptions/event.rb#64 + def arguments_without_field_extras(arguments:, field:); end + # @return [String] an identifier for this unit of subscription # # source://graphql/lib/graphql/subscriptions/event.rb#40 @@ -16628,7 +16656,7 @@ class GraphQL::Subscriptions::Event # @raise [ArgumentError] # - # source://graphql/lib/graphql/subscriptions/event.rb#81 + # source://graphql/lib/graphql/subscriptions/event.rb#92 def deep_sort_array_hashes(array_to_inspect); end # This method does not support cyclic references in the Hash, @@ -16637,13 +16665,13 @@ class GraphQL::Subscriptions::Event # # @raise [ArgumentError] # - # source://graphql/lib/graphql/subscriptions/event.rb#68 + # source://graphql/lib/graphql/subscriptions/event.rb#79 def deep_sort_hash_keys(hash_to_sort); end - # source://graphql/lib/graphql/subscriptions/event.rb#139 + # source://graphql/lib/graphql/subscriptions/event.rb#150 def get_arg_definition(arg_owner, arg_name, context); end - # source://graphql/lib/graphql/subscriptions/event.rb#94 + # source://graphql/lib/graphql/subscriptions/event.rb#105 def stringify_args(arg_owner, args, context); end end end @@ -16854,7 +16882,7 @@ class GraphQL::Testing::Helpers::TypeNotVisibleError < ::GraphQL::Testing::Helpe def initialize(type_name:); end end -# source://graphql/lib/graphql/tracing/trace.rb#3 +# source://graphql/lib/graphql/tracing.rb#5 module GraphQL::Tracing; end # This implementation forwards events to ActiveSupport::Notifications @@ -16902,94 +16930,94 @@ GraphQL::Tracing::ActiveSupportNotificationsTracing::NOTIFICATIONS_ENGINE = T.le # AppOpticsAPM::Config[:graphql][:sanitize_query] = true|false # AppOpticsAPM::Config[:graphql][:remove_comments] = true|false # -# source://graphql/lib/graphql/tracing/appoptics_trace.rb#17 +# source://graphql/lib/graphql/tracing/appoptics_trace.rb#19 module GraphQL::Tracing::AppOpticsTrace include ::GraphQL::Tracing::PlatformTrace - # source://graphql/lib/graphql/tracing/appoptics_trace.rb#41 + # source://graphql/lib/graphql/tracing/appoptics_trace.rb#43 def analyze_multiplex(**data); end - # source://graphql/lib/graphql/tracing/appoptics_trace.rb#41 + # source://graphql/lib/graphql/tracing/appoptics_trace.rb#43 def analyze_query(**data); end - # source://graphql/lib/graphql/tracing/appoptics_trace.rb#88 + # source://graphql/lib/graphql/tracing/appoptics_trace.rb#90 def authorized(**data); end - # source://graphql/lib/graphql/tracing/appoptics_trace.rb#99 + # source://graphql/lib/graphql/tracing/appoptics_trace.rb#101 def authorized_lazy(**data); end - # source://graphql/lib/graphql/tracing/appoptics_trace.rb#58 + # source://graphql/lib/graphql/tracing/appoptics_trace.rb#60 def execute_field(query:, field:, ast_node:, arguments:, object:); end - # source://graphql/lib/graphql/tracing/appoptics_trace.rb#84 + # source://graphql/lib/graphql/tracing/appoptics_trace.rb#86 def execute_field_lazy(query:, field:, ast_node:, arguments:, object:); end - # source://graphql/lib/graphql/tracing/appoptics_trace.rb#41 + # source://graphql/lib/graphql/tracing/appoptics_trace.rb#43 def execute_multiplex(**data); end - # source://graphql/lib/graphql/tracing/appoptics_trace.rb#41 + # source://graphql/lib/graphql/tracing/appoptics_trace.rb#43 def execute_query(**data); end - # source://graphql/lib/graphql/tracing/appoptics_trace.rb#41 + # source://graphql/lib/graphql/tracing/appoptics_trace.rb#43 def execute_query_lazy(**data); end - # source://graphql/lib/graphql/tracing/appoptics_trace.rb#41 + # source://graphql/lib/graphql/tracing/appoptics_trace.rb#43 def lex(**data); end - # source://graphql/lib/graphql/tracing/appoptics_trace.rb#41 + # source://graphql/lib/graphql/tracing/appoptics_trace.rb#43 def parse(**data); end - # source://graphql/lib/graphql/tracing/appoptics_trace.rb#139 + # source://graphql/lib/graphql/tracing/appoptics_trace.rb#141 def platform_authorized_key(type); end - # source://graphql/lib/graphql/tracing/appoptics_trace.rb#135 + # source://graphql/lib/graphql/tracing/appoptics_trace.rb#137 def platform_field_key(field); end - # source://graphql/lib/graphql/tracing/appoptics_trace.rb#143 + # source://graphql/lib/graphql/tracing/appoptics_trace.rb#145 def platform_resolve_type_key(type); end - # source://graphql/lib/graphql/tracing/appoptics_trace.rb#110 + # source://graphql/lib/graphql/tracing/appoptics_trace.rb#112 def resolve_type(**data); end - # source://graphql/lib/graphql/tracing/appoptics_trace.rb#122 + # source://graphql/lib/graphql/tracing/appoptics_trace.rb#124 def resolve_type_lazy(**data); end - # source://graphql/lib/graphql/tracing/appoptics_trace.rb#41 + # source://graphql/lib/graphql/tracing/appoptics_trace.rb#43 def validate(**data); end private - # source://graphql/lib/graphql/tracing/appoptics_trace.rb#149 + # source://graphql/lib/graphql/tracing/appoptics_trace.rb#151 def gql_config; end - # source://graphql/lib/graphql/tracing/appoptics_trace.rb#202 + # source://graphql/lib/graphql/tracing/appoptics_trace.rb#204 def graphql_context(context, layer); end - # source://graphql/lib/graphql/tracing/appoptics_trace.rb#228 + # source://graphql/lib/graphql/tracing/appoptics_trace.rb#230 def graphql_multiplex(data); end - # source://graphql/lib/graphql/tracing/appoptics_trace.rb#210 + # source://graphql/lib/graphql/tracing/appoptics_trace.rb#212 def graphql_query(query); end - # source://graphql/lib/graphql/tracing/appoptics_trace.rb#221 + # source://graphql/lib/graphql/tracing/appoptics_trace.rb#223 def graphql_query_string(query_string); end - # source://graphql/lib/graphql/tracing/appoptics_trace.rb#182 + # source://graphql/lib/graphql/tracing/appoptics_trace.rb#184 def metadata(data, layer); end - # source://graphql/lib/graphql/tracing/appoptics_trace.rb#164 + # source://graphql/lib/graphql/tracing/appoptics_trace.rb#166 def multiplex_transaction_name(names); end - # source://graphql/lib/graphql/tracing/appoptics_trace.rb#244 + # source://graphql/lib/graphql/tracing/appoptics_trace.rb#246 def remove_comments(query); end - # source://graphql/lib/graphql/tracing/appoptics_trace.rb#235 + # source://graphql/lib/graphql/tracing/appoptics_trace.rb#237 def sanitize(query); end - # source://graphql/lib/graphql/tracing/appoptics_trace.rb#174 + # source://graphql/lib/graphql/tracing/appoptics_trace.rb#176 def span_name(key); end - # source://graphql/lib/graphql/tracing/appoptics_trace.rb#153 + # source://graphql/lib/graphql/tracing/appoptics_trace.rb#155 def transaction_name(query); end class << self @@ -16997,14 +17025,14 @@ module GraphQL::Tracing::AppOpticsTrace # with the version provided in the appoptics_apm gem, so that the newer # version of the class can be used # - # source://graphql/lib/graphql/tracing/appoptics_trace.rb#27 + # source://graphql/lib/graphql/tracing/appoptics_trace.rb#29 def version; end end end # These GraphQL events will show up as 'graphql.execute' spans # -# source://graphql/lib/graphql/tracing/appoptics_trace.rb#21 +# source://graphql/lib/graphql/tracing/appoptics_trace.rb#23 GraphQL::Tracing::AppOpticsTrace::EXEC_KEYS = T.let(T.unsafe(nil), Array) # source://graphql/lib/graphql/tracing/appoptics_trace.rb#0 @@ -17016,7 +17044,7 @@ end # These GraphQL events will show up as 'graphql.prep' spans # -# source://graphql/lib/graphql/tracing/appoptics_trace.rb#19 +# source://graphql/lib/graphql/tracing/appoptics_trace.rb#21 GraphQL::Tracing::AppOpticsTrace::PREP_KEYS = T.let(T.unsafe(nil), Array) # This class uses the AppopticsAPM SDK from the appoptics_apm gem to create @@ -17031,53 +17059,53 @@ GraphQL::Tracing::AppOpticsTrace::PREP_KEYS = T.let(T.unsafe(nil), Array) # AppOpticsAPM::Config[:graphql][:sanitize_query] = true|false # AppOpticsAPM::Config[:graphql][:remove_comments] = true|false # -# source://graphql/lib/graphql/tracing/appoptics_tracing.rb#17 +# source://graphql/lib/graphql/tracing/appoptics_tracing.rb#19 class GraphQL::Tracing::AppOpticsTracing < ::GraphQL::Tracing::PlatformTracing - # source://graphql/lib/graphql/tracing/appoptics_tracing.rb#61 + # source://graphql/lib/graphql/tracing/appoptics_tracing.rb#63 def platform_authorized_key(type); end - # source://graphql/lib/graphql/tracing/appoptics_tracing.rb#57 + # source://graphql/lib/graphql/tracing/appoptics_tracing.rb#59 def platform_field_key(type, field); end - # source://graphql/lib/graphql/tracing/appoptics_tracing.rb#65 + # source://graphql/lib/graphql/tracing/appoptics_tracing.rb#67 def platform_resolve_type_key(type); end - # source://graphql/lib/graphql/tracing/appoptics_tracing.rb#42 + # source://graphql/lib/graphql/tracing/appoptics_tracing.rb#44 def platform_trace(platform_key, _key, data); end private - # source://graphql/lib/graphql/tracing/appoptics_tracing.rb#71 + # source://graphql/lib/graphql/tracing/appoptics_tracing.rb#73 def gql_config; end - # source://graphql/lib/graphql/tracing/appoptics_tracing.rb#124 + # source://graphql/lib/graphql/tracing/appoptics_tracing.rb#126 def graphql_context(context, layer); end - # source://graphql/lib/graphql/tracing/appoptics_tracing.rb#150 + # source://graphql/lib/graphql/tracing/appoptics_tracing.rb#152 def graphql_multiplex(data); end - # source://graphql/lib/graphql/tracing/appoptics_tracing.rb#132 + # source://graphql/lib/graphql/tracing/appoptics_tracing.rb#134 def graphql_query(query); end - # source://graphql/lib/graphql/tracing/appoptics_tracing.rb#143 + # source://graphql/lib/graphql/tracing/appoptics_tracing.rb#145 def graphql_query_string(query_string); end - # source://graphql/lib/graphql/tracing/appoptics_tracing.rb#104 + # source://graphql/lib/graphql/tracing/appoptics_tracing.rb#106 def metadata(data, layer); end - # source://graphql/lib/graphql/tracing/appoptics_tracing.rb#86 + # source://graphql/lib/graphql/tracing/appoptics_tracing.rb#88 def multiplex_transaction_name(names); end - # source://graphql/lib/graphql/tracing/appoptics_tracing.rb#166 + # source://graphql/lib/graphql/tracing/appoptics_tracing.rb#168 def remove_comments(query); end - # source://graphql/lib/graphql/tracing/appoptics_tracing.rb#157 + # source://graphql/lib/graphql/tracing/appoptics_tracing.rb#159 def sanitize(query); end - # source://graphql/lib/graphql/tracing/appoptics_tracing.rb#96 + # source://graphql/lib/graphql/tracing/appoptics_tracing.rb#98 def span_name(key); end - # source://graphql/lib/graphql/tracing/appoptics_tracing.rb#75 + # source://graphql/lib/graphql/tracing/appoptics_tracing.rb#77 def transaction_name(query); end class << self @@ -17085,22 +17113,22 @@ class GraphQL::Tracing::AppOpticsTracing < ::GraphQL::Tracing::PlatformTracing # with the version provided in the appoptics_apm gem, so that the newer # version of the class can be used # - # source://graphql/lib/graphql/tracing/appoptics_tracing.rb#27 + # source://graphql/lib/graphql/tracing/appoptics_tracing.rb#29 def version; end end end # These GraphQL events will show up as 'graphql.execute' spans # -# source://graphql/lib/graphql/tracing/appoptics_tracing.rb#21 +# source://graphql/lib/graphql/tracing/appoptics_tracing.rb#23 GraphQL::Tracing::AppOpticsTracing::EXEC_KEYS = T.let(T.unsafe(nil), Array) # These GraphQL events will show up as 'graphql.prep' spans # -# source://graphql/lib/graphql/tracing/appoptics_tracing.rb#19 +# source://graphql/lib/graphql/tracing/appoptics_tracing.rb#21 GraphQL::Tracing::AppOpticsTracing::PREP_KEYS = T.let(T.unsafe(nil), Array) -# source://graphql/lib/graphql/tracing/appsignal_trace.rb#5 +# source://graphql/lib/graphql/tracing/appsignal_trace.rb#7 module GraphQL::Tracing::AppsignalTrace include ::GraphQL::Tracing::PlatformTrace @@ -17108,13 +17136,13 @@ module GraphQL::Tracing::AppsignalTrace # This is not advised if you run more than one query per HTTP request, for example, with `graphql-client` or multiplexing. # It can also be specified per-query with `context[:set_appsignal_action_name]`. # - # source://graphql/lib/graphql/tracing/appsignal_trace.rb#11 + # source://graphql/lib/graphql/tracing/appsignal_trace.rb#13 def initialize(set_action_name: T.unsafe(nil), **rest); end - # source://graphql/lib/graphql/tracing/appsignal_trace.rb#26 + # source://graphql/lib/graphql/tracing/appsignal_trace.rb#28 def analyze_multiplex(**data); end - # source://graphql/lib/graphql/tracing/appsignal_trace.rb#26 + # source://graphql/lib/graphql/tracing/appsignal_trace.rb#28 def analyze_query(**data); end # source://graphql/lib/graphql/tracing/platform_trace.rb#72 @@ -17129,37 +17157,37 @@ module GraphQL::Tracing::AppsignalTrace # source://graphql/lib/graphql/tracing/platform_trace.rb#44 def execute_field_lazy(query:, field:, ast_node:, arguments:, object:); end - # source://graphql/lib/graphql/tracing/appsignal_trace.rb#26 + # source://graphql/lib/graphql/tracing/appsignal_trace.rb#28 def execute_multiplex(**data); end - # source://graphql/lib/graphql/tracing/appsignal_trace.rb#26 + # source://graphql/lib/graphql/tracing/appsignal_trace.rb#28 def execute_query(**data); end - # source://graphql/lib/graphql/tracing/appsignal_trace.rb#26 + # source://graphql/lib/graphql/tracing/appsignal_trace.rb#28 def execute_query_lazy(**data); end - # source://graphql/lib/graphql/tracing/appsignal_trace.rb#26 + # source://graphql/lib/graphql/tracing/appsignal_trace.rb#28 def lex(**data); end - # source://graphql/lib/graphql/tracing/appsignal_trace.rb#26 + # source://graphql/lib/graphql/tracing/appsignal_trace.rb#28 def parse(**data); end - # source://graphql/lib/graphql/tracing/appsignal_trace.rb#52 + # source://graphql/lib/graphql/tracing/appsignal_trace.rb#54 def platform_authorized(platform_key); end - # source://graphql/lib/graphql/tracing/appsignal_trace.rb#68 + # source://graphql/lib/graphql/tracing/appsignal_trace.rb#70 def platform_authorized_key(type); end - # source://graphql/lib/graphql/tracing/appsignal_trace.rb#46 + # source://graphql/lib/graphql/tracing/appsignal_trace.rb#48 def platform_execute_field(platform_key); end - # source://graphql/lib/graphql/tracing/appsignal_trace.rb#64 + # source://graphql/lib/graphql/tracing/appsignal_trace.rb#66 def platform_field_key(field); end - # source://graphql/lib/graphql/tracing/appsignal_trace.rb#58 + # source://graphql/lib/graphql/tracing/appsignal_trace.rb#60 def platform_resolve_type(platform_key); end - # source://graphql/lib/graphql/tracing/appsignal_trace.rb#72 + # source://graphql/lib/graphql/tracing/appsignal_trace.rb#74 def platform_resolve_type_key(type); end # source://graphql/lib/graphql/tracing/platform_trace.rb#85 @@ -17168,7 +17196,7 @@ module GraphQL::Tracing::AppsignalTrace # source://graphql/lib/graphql/tracing/platform_trace.rb#85 def resolve_type_lazy(query:, type:, object:); end - # source://graphql/lib/graphql/tracing/appsignal_trace.rb#26 + # source://graphql/lib/graphql/tracing/appsignal_trace.rb#28 def validate(**data); end end @@ -17179,26 +17207,26 @@ class GraphQL::Tracing::AppsignalTrace::KeyCache include ::GraphQL::Tracing::PlatformTrace::BaseKeyCache end -# source://graphql/lib/graphql/tracing/appsignal_tracing.rb#5 +# source://graphql/lib/graphql/tracing/appsignal_tracing.rb#7 class GraphQL::Tracing::AppsignalTracing < ::GraphQL::Tracing::PlatformTracing # @param set_action_name [Boolean] If true, the GraphQL operation name will be used as the transaction name. # This is not advised if you run more than one query per HTTP request, for example, with `graphql-client` or multiplexing. # It can also be specified per-query with `context[:set_appsignal_action_name]`. # @return [AppsignalTracing] a new instance of AppsignalTracing # - # source://graphql/lib/graphql/tracing/appsignal_tracing.rb#20 + # source://graphql/lib/graphql/tracing/appsignal_tracing.rb#22 def initialize(options = T.unsafe(nil)); end - # source://graphql/lib/graphql/tracing/appsignal_tracing.rb#42 + # source://graphql/lib/graphql/tracing/appsignal_tracing.rb#44 def platform_authorized_key(type); end - # source://graphql/lib/graphql/tracing/appsignal_tracing.rb#38 + # source://graphql/lib/graphql/tracing/appsignal_tracing.rb#40 def platform_field_key(type, field); end - # source://graphql/lib/graphql/tracing/appsignal_tracing.rb#46 + # source://graphql/lib/graphql/tracing/appsignal_tracing.rb#48 def platform_resolve_type_key(type); end - # source://graphql/lib/graphql/tracing/appsignal_tracing.rb#25 + # source://graphql/lib/graphql/tracing/appsignal_tracing.rb#27 def platform_trace(platform_key, key, data); end end @@ -17206,52 +17234,52 @@ end # New-style `trace_with` modules significantly reduce the overhead of tracing, # but that advantage is lost when legacy-style tracers are also used (since the payload hashes are still constructed). # -# source://graphql/lib/graphql/tracing/legacy_trace.rb#7 +# source://graphql/lib/graphql/tracing/call_legacy_tracers.rb#8 module GraphQL::Tracing::CallLegacyTracers - # source://graphql/lib/graphql/tracing/legacy_trace.rb#20 + # source://graphql/lib/graphql/tracing/call_legacy_tracers.rb#21 def analyze_multiplex(multiplex:); end - # source://graphql/lib/graphql/tracing/legacy_trace.rb#24 + # source://graphql/lib/graphql/tracing/call_legacy_tracers.rb#25 def analyze_query(query:); end - # source://graphql/lib/graphql/tracing/legacy_trace.rb#48 + # source://graphql/lib/graphql/tracing/call_legacy_tracers.rb#49 def authorized(query:, type:, object:); end - # source://graphql/lib/graphql/tracing/legacy_trace.rb#52 + # source://graphql/lib/graphql/tracing/call_legacy_tracers.rb#53 def authorized_lazy(query:, type:, object:); end - # source://graphql/lib/graphql/tracing/legacy_trace.rb#40 + # source://graphql/lib/graphql/tracing/call_legacy_tracers.rb#41 def execute_field(field:, query:, ast_node:, arguments:, object:); end - # source://graphql/lib/graphql/tracing/legacy_trace.rb#44 + # source://graphql/lib/graphql/tracing/call_legacy_tracers.rb#45 def execute_field_lazy(field:, query:, ast_node:, arguments:, object:); end - # source://graphql/lib/graphql/tracing/legacy_trace.rb#28 + # source://graphql/lib/graphql/tracing/call_legacy_tracers.rb#29 def execute_multiplex(multiplex:); end - # source://graphql/lib/graphql/tracing/legacy_trace.rb#32 + # source://graphql/lib/graphql/tracing/call_legacy_tracers.rb#33 def execute_query(query:); end - # source://graphql/lib/graphql/tracing/legacy_trace.rb#36 + # source://graphql/lib/graphql/tracing/call_legacy_tracers.rb#37 def execute_query_lazy(query:, multiplex:); end - # source://graphql/lib/graphql/tracing/legacy_trace.rb#8 + # source://graphql/lib/graphql/tracing/call_legacy_tracers.rb#9 def lex(query_string:); end - # source://graphql/lib/graphql/tracing/legacy_trace.rb#12 + # source://graphql/lib/graphql/tracing/call_legacy_tracers.rb#13 def parse(query_string:); end - # source://graphql/lib/graphql/tracing/legacy_trace.rb#56 + # source://graphql/lib/graphql/tracing/call_legacy_tracers.rb#57 def resolve_type(query:, type:, object:); end - # source://graphql/lib/graphql/tracing/legacy_trace.rb#60 + # source://graphql/lib/graphql/tracing/call_legacy_tracers.rb#61 def resolve_type_lazy(query:, type:, object:); end - # source://graphql/lib/graphql/tracing/legacy_trace.rb#16 + # source://graphql/lib/graphql/tracing/call_legacy_tracers.rb#17 def validate(query:, validate:); end end -# source://graphql/lib/graphql/tracing/data_dog_trace.rb#5 +# source://graphql/lib/graphql/tracing/data_dog_trace.rb#7 module GraphQL::Tracing::DataDogTrace include ::GraphQL::Tracing::PlatformTrace @@ -17259,49 +17287,49 @@ module GraphQL::Tracing::DataDogTrace # @param analytics_enabled [Boolean] Deprecated # @param analytics_sample_rate [Float] Deprecated # - # source://graphql/lib/graphql/tracing/data_dog_trace.rb#9 + # source://graphql/lib/graphql/tracing/data_dog_trace.rb#11 def initialize(tracer: T.unsafe(nil), analytics_enabled: T.unsafe(nil), analytics_sample_rate: T.unsafe(nil), service: T.unsafe(nil), **rest); end - # source://graphql/lib/graphql/tracing/data_dog_trace.rb#33 + # source://graphql/lib/graphql/tracing/data_dog_trace.rb#35 def analyze_multiplex(**data); end - # source://graphql/lib/graphql/tracing/data_dog_trace.rb#33 + # source://graphql/lib/graphql/tracing/data_dog_trace.rb#35 def analyze_query(**data); end - # source://graphql/lib/graphql/tracing/data_dog_trace.rb#111 + # source://graphql/lib/graphql/tracing/data_dog_trace.rb#113 def authorized(query:, type:, object:); end - # source://graphql/lib/graphql/tracing/data_dog_trace.rb#130 + # source://graphql/lib/graphql/tracing/data_dog_trace.rb#132 def authorized_lazy(object:, type:, query:); end - # source://graphql/lib/graphql/tracing/data_dog_trace.rb#117 + # source://graphql/lib/graphql/tracing/data_dog_trace.rb#119 def authorized_span(span_key, object, type, query); end - # source://graphql/lib/graphql/tracing/data_dog_trace.rb#99 + # source://graphql/lib/graphql/tracing/data_dog_trace.rb#101 def execute_field(query:, field:, ast_node:, arguments:, object:); end - # source://graphql/lib/graphql/tracing/data_dog_trace.rb#105 + # source://graphql/lib/graphql/tracing/data_dog_trace.rb#107 def execute_field_lazy(query:, field:, ast_node:, arguments:, object:); end - # source://graphql/lib/graphql/tracing/data_dog_trace.rb#72 + # source://graphql/lib/graphql/tracing/data_dog_trace.rb#74 def execute_field_span(span_key, query, field, ast_node, arguments, object); end - # source://graphql/lib/graphql/tracing/data_dog_trace.rb#33 + # source://graphql/lib/graphql/tracing/data_dog_trace.rb#35 def execute_multiplex(**data); end - # source://graphql/lib/graphql/tracing/data_dog_trace.rb#33 + # source://graphql/lib/graphql/tracing/data_dog_trace.rb#35 def execute_query(**data); end - # source://graphql/lib/graphql/tracing/data_dog_trace.rb#33 + # source://graphql/lib/graphql/tracing/data_dog_trace.rb#35 def execute_query_lazy(**data); end - # source://graphql/lib/graphql/tracing/data_dog_trace.rb#33 + # source://graphql/lib/graphql/tracing/data_dog_trace.rb#35 def lex(**data); end - # source://graphql/lib/graphql/tracing/data_dog_trace.rb#33 + # source://graphql/lib/graphql/tracing/data_dog_trace.rb#35 def parse(**data); end - # source://graphql/lib/graphql/tracing/data_dog_trace.rb#174 + # source://graphql/lib/graphql/tracing/data_dog_trace.rb#176 def platform_authorized_key(type); end # Implement this method in a subclass to apply custom tags to datadog spans @@ -17312,22 +17340,22 @@ module GraphQL::Tracing::DataDogTrace # @param data [Hash] The runtime data for this event (@see GraphQL::Tracing for keys for each event) # @param span [Datadog::Tracing::SpanOperation] The datadog span for this event # - # source://graphql/lib/graphql/tracing/data_dog_trace.rb#170 + # source://graphql/lib/graphql/tracing/data_dog_trace.rb#172 def platform_field_key(field); end - # source://graphql/lib/graphql/tracing/data_dog_trace.rb#178 + # source://graphql/lib/graphql/tracing/data_dog_trace.rb#180 def platform_resolve_type_key(type); end - # source://graphql/lib/graphql/tracing/data_dog_trace.rb#136 + # source://graphql/lib/graphql/tracing/data_dog_trace.rb#138 def resolve_type(object:, type:, query:); end - # source://graphql/lib/graphql/tracing/data_dog_trace.rb#142 + # source://graphql/lib/graphql/tracing/data_dog_trace.rb#144 def resolve_type_lazy(object:, type:, query:); end - # source://graphql/lib/graphql/tracing/data_dog_trace.rb#148 + # source://graphql/lib/graphql/tracing/data_dog_trace.rb#150 def resolve_type_span(span_key, object, type, query); end - # source://graphql/lib/graphql/tracing/data_dog_trace.rb#33 + # source://graphql/lib/graphql/tracing/data_dog_trace.rb#35 def validate(**data); end end @@ -17338,26 +17366,26 @@ class GraphQL::Tracing::DataDogTrace::KeyCache include ::GraphQL::Tracing::PlatformTrace::BaseKeyCache end -# source://graphql/lib/graphql/tracing/data_dog_tracing.rb#5 +# source://graphql/lib/graphql/tracing/data_dog_tracing.rb#7 class GraphQL::Tracing::DataDogTracing < ::GraphQL::Tracing::PlatformTracing # @return [Boolean] # - # source://graphql/lib/graphql/tracing/data_dog_tracing.rb#63 + # source://graphql/lib/graphql/tracing/data_dog_tracing.rb#65 def analytics_enabled?; end - # source://graphql/lib/graphql/tracing/data_dog_tracing.rb#68 + # source://graphql/lib/graphql/tracing/data_dog_tracing.rb#70 def analytics_sample_rate; end - # source://graphql/lib/graphql/tracing/data_dog_tracing.rb#77 + # source://graphql/lib/graphql/tracing/data_dog_tracing.rb#79 def platform_authorized_key(type); end - # source://graphql/lib/graphql/tracing/data_dog_tracing.rb#73 + # source://graphql/lib/graphql/tracing/data_dog_tracing.rb#75 def platform_field_key(type, field); end - # source://graphql/lib/graphql/tracing/data_dog_tracing.rb#81 + # source://graphql/lib/graphql/tracing/data_dog_tracing.rb#83 def platform_resolve_type_key(type); end - # source://graphql/lib/graphql/tracing/data_dog_tracing.rb#17 + # source://graphql/lib/graphql/tracing/data_dog_tracing.rb#19 def platform_trace(platform_key, key, data); end # Implement this method in a subclass to apply custom tags to datadog spans @@ -17366,64 +17394,64 @@ class GraphQL::Tracing::DataDogTracing < ::GraphQL::Tracing::PlatformTracing # @param data [Hash] The runtime data for this event (@see GraphQL::Tracing for keys for each event) # @param span [Datadog::Tracing::SpanOperation] The datadog span for this event # - # source://graphql/lib/graphql/tracing/data_dog_tracing.rb#53 + # source://graphql/lib/graphql/tracing/data_dog_tracing.rb#55 def prepare_span(key, data, span); end - # source://graphql/lib/graphql/tracing/data_dog_tracing.rb#56 + # source://graphql/lib/graphql/tracing/data_dog_tracing.rb#58 def tracer; end end -# source://graphql/lib/graphql/tracing/legacy_hooks_trace.rb#4 +# source://graphql/lib/graphql/tracing/legacy_hooks_trace.rb#5 module GraphQL::Tracing::LegacyHooksTrace - # source://graphql/lib/graphql/tracing/legacy_hooks_trace.rb#5 + # source://graphql/lib/graphql/tracing/legacy_hooks_trace.rb#6 def execute_multiplex(multiplex:); end end -# source://graphql/lib/graphql/tracing/legacy_hooks_trace.rb#16 +# source://graphql/lib/graphql/tracing/legacy_hooks_trace.rb#17 module GraphQL::Tracing::LegacyHooksTrace::RunHooks private - # source://graphql/lib/graphql/tracing/legacy_hooks_trace.rb#61 + # source://graphql/lib/graphql/tracing/legacy_hooks_trace.rb#62 def call_after_hooks(instrumenters, object, after_hook_name, ex); end # Call each before hook, and if they all succeed, yield. # If they don't all succeed, call after_ for each one that succeeded. # - # source://graphql/lib/graphql/tracing/legacy_hooks_trace.rb#36 + # source://graphql/lib/graphql/tracing/legacy_hooks_trace.rb#37 def call_hooks(instrumenters, object, before_hook_name, after_hook_name); end # Call the before_ hooks of each query, # Then yield if no errors. # `call_hooks` takes care of appropriate cleanup. # - # source://graphql/lib/graphql/tracing/legacy_hooks_trace.rb#21 + # source://graphql/lib/graphql/tracing/legacy_hooks_trace.rb#22 def each_query_call_hooks(instrumenters, queries, i = T.unsafe(nil)); end class << self - # source://graphql/lib/graphql/tracing/legacy_hooks_trace.rb#61 + # source://graphql/lib/graphql/tracing/legacy_hooks_trace.rb#62 def call_after_hooks(instrumenters, object, after_hook_name, ex); end # Call each before hook, and if they all succeed, yield. # If they don't all succeed, call after_ for each one that succeeded. # - # source://graphql/lib/graphql/tracing/legacy_hooks_trace.rb#36 + # source://graphql/lib/graphql/tracing/legacy_hooks_trace.rb#37 def call_hooks(instrumenters, object, before_hook_name, after_hook_name); end # Call the before_ hooks of each query, # Then yield if no errors. # `call_hooks` takes care of appropriate cleanup. # - # source://graphql/lib/graphql/tracing/legacy_hooks_trace.rb#21 + # source://graphql/lib/graphql/tracing/legacy_hooks_trace.rb#22 def each_query_call_hooks(instrumenters, queries, i = T.unsafe(nil)); end end end -# source://graphql/lib/graphql/tracing/legacy_trace.rb#65 +# source://graphql/lib/graphql/tracing/legacy_trace.rb#8 class GraphQL::Tracing::LegacyTrace < ::GraphQL::Tracing::Trace include ::GraphQL::Tracing::CallLegacyTracers end -# source://graphql/lib/graphql/tracing/new_relic_trace.rb#5 +# source://graphql/lib/graphql/tracing/new_relic_trace.rb#7 module GraphQL::Tracing::NewRelicTrace include ::GraphQL::Tracing::PlatformTrace @@ -17431,13 +17459,13 @@ module GraphQL::Tracing::NewRelicTrace # This is not advised if you run more than one query per HTTP request, for example, with `graphql-client` or multiplexing. # It can also be specified per-query with `context[:set_new_relic_transaction_name]`. # - # source://graphql/lib/graphql/tracing/new_relic_trace.rb#11 + # source://graphql/lib/graphql/tracing/new_relic_trace.rb#13 def initialize(set_transaction_name: T.unsafe(nil), **_rest); end - # source://graphql/lib/graphql/tracing/new_relic_trace.rb#35 + # source://graphql/lib/graphql/tracing/new_relic_trace.rb#37 def analyze_multiplex(**_keys); end - # source://graphql/lib/graphql/tracing/new_relic_trace.rb#35 + # source://graphql/lib/graphql/tracing/new_relic_trace.rb#37 def analyze_query(**_keys); end # source://graphql/lib/graphql/tracing/platform_trace.rb#72 @@ -17452,37 +17480,37 @@ module GraphQL::Tracing::NewRelicTrace # source://graphql/lib/graphql/tracing/platform_trace.rb#44 def execute_field_lazy(query:, field:, ast_node:, arguments:, object:); end - # source://graphql/lib/graphql/tracing/new_relic_trace.rb#35 + # source://graphql/lib/graphql/tracing/new_relic_trace.rb#37 def execute_multiplex(**_keys); end - # source://graphql/lib/graphql/tracing/new_relic_trace.rb#16 + # source://graphql/lib/graphql/tracing/new_relic_trace.rb#18 def execute_query(query:); end - # source://graphql/lib/graphql/tracing/new_relic_trace.rb#35 + # source://graphql/lib/graphql/tracing/new_relic_trace.rb#37 def execute_query_lazy(**_keys); end - # source://graphql/lib/graphql/tracing/new_relic_trace.rb#35 + # source://graphql/lib/graphql/tracing/new_relic_trace.rb#37 def lex(**_keys); end - # source://graphql/lib/graphql/tracing/new_relic_trace.rb#35 + # source://graphql/lib/graphql/tracing/new_relic_trace.rb#37 def parse(**_keys); end - # source://graphql/lib/graphql/tracing/new_relic_trace.rb#50 + # source://graphql/lib/graphql/tracing/new_relic_trace.rb#52 def platform_authorized(platform_key); end - # source://graphql/lib/graphql/tracing/new_relic_trace.rb#66 + # source://graphql/lib/graphql/tracing/new_relic_trace.rb#68 def platform_authorized_key(type); end - # source://graphql/lib/graphql/tracing/new_relic_trace.rb#44 + # source://graphql/lib/graphql/tracing/new_relic_trace.rb#46 def platform_execute_field(platform_key); end - # source://graphql/lib/graphql/tracing/new_relic_trace.rb#62 + # source://graphql/lib/graphql/tracing/new_relic_trace.rb#64 def platform_field_key(field); end - # source://graphql/lib/graphql/tracing/new_relic_trace.rb#56 + # source://graphql/lib/graphql/tracing/new_relic_trace.rb#58 def platform_resolve_type(platform_key); end - # source://graphql/lib/graphql/tracing/new_relic_trace.rb#70 + # source://graphql/lib/graphql/tracing/new_relic_trace.rb#72 def platform_resolve_type_key(type); end # source://graphql/lib/graphql/tracing/platform_trace.rb#85 @@ -17491,7 +17519,7 @@ module GraphQL::Tracing::NewRelicTrace # source://graphql/lib/graphql/tracing/platform_trace.rb#85 def resolve_type_lazy(query:, type:, object:); end - # source://graphql/lib/graphql/tracing/new_relic_trace.rb#35 + # source://graphql/lib/graphql/tracing/new_relic_trace.rb#37 def validate(**_keys); end end @@ -17502,26 +17530,26 @@ class GraphQL::Tracing::NewRelicTrace::KeyCache include ::GraphQL::Tracing::PlatformTrace::BaseKeyCache end -# source://graphql/lib/graphql/tracing/new_relic_tracing.rb#5 +# source://graphql/lib/graphql/tracing/new_relic_tracing.rb#7 class GraphQL::Tracing::NewRelicTracing < ::GraphQL::Tracing::PlatformTracing # @param set_transaction_name [Boolean] If true, the GraphQL operation name will be used as the transaction name. # This is not advised if you run more than one query per HTTP request, for example, with `graphql-client` or multiplexing. # It can also be specified per-query with `context[:set_new_relic_transaction_name]`. # @return [NewRelicTracing] a new instance of NewRelicTracing # - # source://graphql/lib/graphql/tracing/new_relic_tracing.rb#20 + # source://graphql/lib/graphql/tracing/new_relic_tracing.rb#22 def initialize(options = T.unsafe(nil)); end - # source://graphql/lib/graphql/tracing/new_relic_tracing.rb#42 + # source://graphql/lib/graphql/tracing/new_relic_tracing.rb#44 def platform_authorized_key(type); end - # source://graphql/lib/graphql/tracing/new_relic_tracing.rb#38 + # source://graphql/lib/graphql/tracing/new_relic_tracing.rb#40 def platform_field_key(type, field); end - # source://graphql/lib/graphql/tracing/new_relic_tracing.rb#46 + # source://graphql/lib/graphql/tracing/new_relic_tracing.rb#48 def platform_resolve_type_key(type); end - # source://graphql/lib/graphql/tracing/new_relic_tracing.rb#25 + # source://graphql/lib/graphql/tracing/new_relic_tracing.rb#27 def platform_trace(platform_key, key, data); end end @@ -17596,14 +17624,14 @@ end # # @see KEYS for event names # -# source://graphql/lib/graphql/tracing/notifications_tracing.rb#10 +# source://graphql/lib/graphql/tracing/notifications_tracing.rb#12 class GraphQL::Tracing::NotificationsTracing # Initialize a new NotificationsTracing instance # # @param notifications_engine [Object] The notifications engine to use # @return [NotificationsTracing] a new instance of NotificationsTracing # - # source://graphql/lib/graphql/tracing/notifications_tracing.rb#33 + # source://graphql/lib/graphql/tracing/notifications_tracing.rb#35 def initialize(notifications_engine); end # Sends a GraphQL tracing event to the notification handler @@ -17616,30 +17644,30 @@ class GraphQL::Tracing::NotificationsTracing # @param metadata [Hash] The metadata for the event # @yield The block to execute for the event # - # source://graphql/lib/graphql/tracing/notifications_tracing.rb#47 + # source://graphql/lib/graphql/tracing/notifications_tracing.rb#49 def trace(key, metadata, &blk); end end # A cache of frequently-used keys to avoid needless string allocations # -# source://graphql/lib/graphql/tracing/notifications_tracing.rb#12 +# source://graphql/lib/graphql/tracing/notifications_tracing.rb#14 GraphQL::Tracing::NotificationsTracing::KEYS = T.let(T.unsafe(nil), Hash) -# source://graphql/lib/graphql/tracing/notifications_tracing.rb#28 +# source://graphql/lib/graphql/tracing/notifications_tracing.rb#30 GraphQL::Tracing::NotificationsTracing::MAX_KEYS_SIZE = T.let(T.unsafe(nil), Integer) -# source://graphql/lib/graphql/tracing.rb#35 +# source://graphql/lib/graphql/tracing/null_trace.rb#7 GraphQL::Tracing::NullTrace = T.let(T.unsafe(nil), GraphQL::Tracing::Trace) -# source://graphql/lib/graphql/tracing.rb#67 +# source://graphql/lib/graphql/tracing.rb#65 module GraphQL::Tracing::NullTracer private - # source://graphql/lib/graphql/tracing.rb#69 + # source://graphql/lib/graphql/tracing.rb#67 def trace(k, v); end class << self - # source://graphql/lib/graphql/tracing.rb#69 + # source://graphql/lib/graphql/tracing.rb#67 def trace(k, v); end end end @@ -17781,17 +17809,17 @@ class GraphQL::Tracing::PlatformTracing end end -# source://graphql/lib/graphql/tracing/prometheus_trace.rb#5 +# source://graphql/lib/graphql/tracing/prometheus_trace.rb#7 module GraphQL::Tracing::PrometheusTrace include ::GraphQL::Tracing::PlatformTrace - # source://graphql/lib/graphql/tracing/prometheus_trace.rb#8 + # source://graphql/lib/graphql/tracing/prometheus_trace.rb#13 def initialize(client: T.unsafe(nil), keys_whitelist: T.unsafe(nil), collector_type: T.unsafe(nil), **rest); end - # source://graphql/lib/graphql/tracing/prometheus_trace.rb#26 + # source://graphql/lib/graphql/tracing/prometheus_trace.rb#31 def analyze_multiplex(**data); end - # source://graphql/lib/graphql/tracing/prometheus_trace.rb#26 + # source://graphql/lib/graphql/tracing/prometheus_trace.rb#31 def analyze_query(**data); end # source://graphql/lib/graphql/tracing/platform_trace.rb#72 @@ -17806,46 +17834,46 @@ module GraphQL::Tracing::PrometheusTrace # source://graphql/lib/graphql/tracing/platform_trace.rb#44 def execute_field_lazy(query:, field:, ast_node:, arguments:, object:); end - # source://graphql/lib/graphql/tracing/prometheus_trace.rb#26 + # source://graphql/lib/graphql/tracing/prometheus_trace.rb#31 def execute_multiplex(**data); end - # source://graphql/lib/graphql/tracing/prometheus_trace.rb#26 + # source://graphql/lib/graphql/tracing/prometheus_trace.rb#31 def execute_query(**data); end - # source://graphql/lib/graphql/tracing/prometheus_trace.rb#26 + # source://graphql/lib/graphql/tracing/prometheus_trace.rb#31 def execute_query_lazy(**data); end - # source://graphql/lib/graphql/tracing/prometheus_trace.rb#26 + # source://graphql/lib/graphql/tracing/prometheus_trace.rb#31 def lex(**data); end - # source://graphql/lib/graphql/tracing/prometheus_trace.rb#26 + # source://graphql/lib/graphql/tracing/prometheus_trace.rb#31 def parse(**data); end - # source://graphql/lib/graphql/tracing/prometheus_trace.rb#41 + # source://graphql/lib/graphql/tracing/prometheus_trace.rb#46 def platform_authorized(platform_key, &block); end - # source://graphql/lib/graphql/tracing/prometheus_trace.rb#61 + # source://graphql/lib/graphql/tracing/prometheus_trace.rb#66 def platform_authorized_key(type); end - # source://graphql/lib/graphql/tracing/prometheus_trace.rb#45 + # source://graphql/lib/graphql/tracing/prometheus_trace.rb#50 def platform_authorized_lazy(platform_key, &block); end - # source://graphql/lib/graphql/tracing/prometheus_trace.rb#33 + # source://graphql/lib/graphql/tracing/prometheus_trace.rb#38 def platform_execute_field(platform_key, &block); end - # source://graphql/lib/graphql/tracing/prometheus_trace.rb#37 + # source://graphql/lib/graphql/tracing/prometheus_trace.rb#42 def platform_execute_field_lazy(platform_key, &block); end - # source://graphql/lib/graphql/tracing/prometheus_trace.rb#57 + # source://graphql/lib/graphql/tracing/prometheus_trace.rb#62 def platform_field_key(field); end - # source://graphql/lib/graphql/tracing/prometheus_trace.rb#49 + # source://graphql/lib/graphql/tracing/prometheus_trace.rb#54 def platform_resolve_type(platform_key, &block); end - # source://graphql/lib/graphql/tracing/prometheus_trace.rb#65 + # source://graphql/lib/graphql/tracing/prometheus_trace.rb#70 def platform_resolve_type_key(type); end - # source://graphql/lib/graphql/tracing/prometheus_trace.rb#53 + # source://graphql/lib/graphql/tracing/prometheus_trace.rb#58 def platform_resolve_type_lazy(platform_key, &block); end # source://graphql/lib/graphql/tracing/platform_trace.rb#85 @@ -17854,12 +17882,12 @@ module GraphQL::Tracing::PrometheusTrace # source://graphql/lib/graphql/tracing/platform_trace.rb#85 def resolve_type_lazy(query:, type:, object:); end - # source://graphql/lib/graphql/tracing/prometheus_trace.rb#26 + # source://graphql/lib/graphql/tracing/prometheus_trace.rb#31 def validate(**data); end private - # source://graphql/lib/graphql/tracing/prometheus_trace.rb#71 + # source://graphql/lib/graphql/tracing/prometheus_trace.rb#76 def instrument_prometheus_execution(platform_key, key, &block); end end @@ -17870,41 +17898,41 @@ class GraphQL::Tracing::PrometheusTrace::KeyCache include ::GraphQL::Tracing::PlatformTrace::BaseKeyCache end -# source://graphql/lib/graphql/tracing/prometheus_tracing.rb#5 +# source://graphql/lib/graphql/tracing/prometheus_tracing.rb#7 class GraphQL::Tracing::PrometheusTracing < ::GraphQL::Tracing::PlatformTracing # @return [PrometheusTracing] a new instance of PrometheusTracing # - # source://graphql/lib/graphql/tracing/prometheus_tracing.rb#22 + # source://graphql/lib/graphql/tracing/prometheus_tracing.rb#24 def initialize(opts = T.unsafe(nil)); end - # source://graphql/lib/graphql/tracing/prometheus_tracing.rb#39 + # source://graphql/lib/graphql/tracing/prometheus_tracing.rb#41 def platform_authorized_key(type); end - # source://graphql/lib/graphql/tracing/prometheus_tracing.rb#35 + # source://graphql/lib/graphql/tracing/prometheus_tracing.rb#37 def platform_field_key(type, field); end - # source://graphql/lib/graphql/tracing/prometheus_tracing.rb#43 + # source://graphql/lib/graphql/tracing/prometheus_tracing.rb#45 def platform_resolve_type_key(type); end - # source://graphql/lib/graphql/tracing/prometheus_tracing.rb#30 + # source://graphql/lib/graphql/tracing/prometheus_tracing.rb#32 def platform_trace(platform_key, key, _data, &block); end private - # source://graphql/lib/graphql/tracing/prometheus_tracing.rb#49 + # source://graphql/lib/graphql/tracing/prometheus_tracing.rb#51 def instrument_execution(platform_key, key, &block); end - # source://graphql/lib/graphql/tracing/prometheus_tracing.rb#57 + # source://graphql/lib/graphql/tracing/prometheus_tracing.rb#59 def observe(platform_key, key, duration); end end -# source://graphql/lib/graphql/tracing/prometheus_tracing.rb#7 +# source://graphql/lib/graphql/tracing/prometheus_tracing.rb#9 GraphQL::Tracing::PrometheusTracing::DEFAULT_COLLECTOR_TYPE = T.let(T.unsafe(nil), String) -# source://graphql/lib/graphql/tracing/prometheus_tracing.rb#6 +# source://graphql/lib/graphql/tracing/prometheus_tracing.rb#8 GraphQL::Tracing::PrometheusTracing::DEFAULT_WHITELIST = T.let(T.unsafe(nil), Array) -# source://graphql/lib/graphql/tracing/scout_trace.rb#5 +# source://graphql/lib/graphql/tracing/scout_trace.rb#7 module GraphQL::Tracing::ScoutTrace include ::GraphQL::Tracing::PlatformTrace @@ -17912,13 +17940,13 @@ module GraphQL::Tracing::ScoutTrace # This is not advised if you run more than one query per HTTP request, for example, with `graphql-client` or multiplexing. # It can also be specified per-query with `context[:set_scout_transaction_name]`. # - # source://graphql/lib/graphql/tracing/scout_trace.rb#13 + # source://graphql/lib/graphql/tracing/scout_trace.rb#15 def initialize(set_transaction_name: T.unsafe(nil), **_rest); end - # source://graphql/lib/graphql/tracing/scout_trace.rb#29 + # source://graphql/lib/graphql/tracing/scout_trace.rb#31 def analyze_multiplex(**data); end - # source://graphql/lib/graphql/tracing/scout_trace.rb#29 + # source://graphql/lib/graphql/tracing/scout_trace.rb#31 def analyze_query(**data); end # source://graphql/lib/graphql/tracing/platform_trace.rb#72 @@ -17933,37 +17961,37 @@ module GraphQL::Tracing::ScoutTrace # source://graphql/lib/graphql/tracing/platform_trace.rb#44 def execute_field_lazy(query:, field:, ast_node:, arguments:, object:); end - # source://graphql/lib/graphql/tracing/scout_trace.rb#29 + # source://graphql/lib/graphql/tracing/scout_trace.rb#31 def execute_multiplex(**data); end - # source://graphql/lib/graphql/tracing/scout_trace.rb#29 + # source://graphql/lib/graphql/tracing/scout_trace.rb#31 def execute_query(**data); end - # source://graphql/lib/graphql/tracing/scout_trace.rb#29 + # source://graphql/lib/graphql/tracing/scout_trace.rb#31 def execute_query_lazy(**data); end - # source://graphql/lib/graphql/tracing/scout_trace.rb#29 + # source://graphql/lib/graphql/tracing/scout_trace.rb#31 def lex(**data); end - # source://graphql/lib/graphql/tracing/scout_trace.rb#29 + # source://graphql/lib/graphql/tracing/scout_trace.rb#31 def parse(**data); end - # source://graphql/lib/graphql/tracing/scout_trace.rb#53 + # source://graphql/lib/graphql/tracing/scout_trace.rb#55 def platform_authorized(platform_key, &block); end - # source://graphql/lib/graphql/tracing/scout_trace.rb#63 + # source://graphql/lib/graphql/tracing/scout_trace.rb#65 def platform_authorized_key(type); end - # source://graphql/lib/graphql/tracing/scout_trace.rb#49 + # source://graphql/lib/graphql/tracing/scout_trace.rb#51 def platform_execute_field(platform_key, &block); end - # source://graphql/lib/graphql/tracing/scout_trace.rb#59 + # source://graphql/lib/graphql/tracing/scout_trace.rb#61 def platform_field_key(field); end - # source://graphql/lib/graphql/tracing/scout_trace.rb#53 + # source://graphql/lib/graphql/tracing/scout_trace.rb#55 def platform_resolve_type(platform_key, &block); end - # source://graphql/lib/graphql/tracing/scout_trace.rb#67 + # source://graphql/lib/graphql/tracing/scout_trace.rb#69 def platform_resolve_type_key(type); end # source://graphql/lib/graphql/tracing/platform_trace.rb#85 @@ -17972,11 +18000,11 @@ module GraphQL::Tracing::ScoutTrace # source://graphql/lib/graphql/tracing/platform_trace.rb#85 def resolve_type_lazy(query:, type:, object:); end - # source://graphql/lib/graphql/tracing/scout_trace.rb#29 + # source://graphql/lib/graphql/tracing/scout_trace.rb#31 def validate(**data); end end -# source://graphql/lib/graphql/tracing/scout_trace.rb#8 +# source://graphql/lib/graphql/tracing/scout_trace.rb#10 GraphQL::Tracing::ScoutTrace::INSTRUMENT_OPTS = T.let(T.unsafe(nil), Hash) # source://graphql/lib/graphql/tracing/scout_trace.rb#0 @@ -17986,33 +18014,33 @@ class GraphQL::Tracing::ScoutTrace::KeyCache include ::GraphQL::Tracing::PlatformTrace::BaseKeyCache end -# source://graphql/lib/graphql/tracing/scout_tracing.rb#5 +# source://graphql/lib/graphql/tracing/scout_tracing.rb#7 class GraphQL::Tracing::ScoutTracing < ::GraphQL::Tracing::PlatformTracing # @param set_transaction_name [Boolean] If true, the GraphQL operation name will be used as the transaction name. # This is not advised if you run more than one query per HTTP request, for example, with `graphql-client` or multiplexing. # It can also be specified per-query with `context[:set_scout_transaction_name]`. # @return [ScoutTracing] a new instance of ScoutTracing # - # source://graphql/lib/graphql/tracing/scout_tracing.rb#22 + # source://graphql/lib/graphql/tracing/scout_tracing.rb#24 def initialize(options = T.unsafe(nil)); end - # source://graphql/lib/graphql/tracing/scout_tracing.rb#45 + # source://graphql/lib/graphql/tracing/scout_tracing.rb#47 def platform_authorized_key(type); end - # source://graphql/lib/graphql/tracing/scout_tracing.rb#41 + # source://graphql/lib/graphql/tracing/scout_tracing.rb#43 def platform_field_key(type, field); end - # source://graphql/lib/graphql/tracing/scout_tracing.rb#49 + # source://graphql/lib/graphql/tracing/scout_tracing.rb#51 def platform_resolve_type_key(type); end - # source://graphql/lib/graphql/tracing/scout_tracing.rb#28 + # source://graphql/lib/graphql/tracing/scout_tracing.rb#30 def platform_trace(platform_key, key, data); end end -# source://graphql/lib/graphql/tracing/scout_tracing.rb#6 +# source://graphql/lib/graphql/tracing/scout_tracing.rb#8 GraphQL::Tracing::ScoutTracing::INSTRUMENT_OPTS = T.let(T.unsafe(nil), Hash) -# source://graphql/lib/graphql/tracing/sentry_trace.rb#5 +# source://graphql/lib/graphql/tracing/sentry_trace.rb#7 module GraphQL::Tracing::SentryTrace include ::GraphQL::Tracing::PlatformTrace @@ -18020,13 +18048,13 @@ module GraphQL::Tracing::SentryTrace # This is not advised if you run more than one query per HTTP request, for example, with `graphql-client` or multiplexing. # It can also be specified per-query with `context[:set_sentry_transaction_name]`. # - # source://graphql/lib/graphql/tracing/sentry_trace.rb#11 + # source://graphql/lib/graphql/tracing/sentry_trace.rb#13 def initialize(set_transaction_name: T.unsafe(nil), **_rest); end - # source://graphql/lib/graphql/tracing/sentry_trace.rb#35 + # source://graphql/lib/graphql/tracing/sentry_trace.rb#37 def analyze_multiplex(**data); end - # source://graphql/lib/graphql/tracing/sentry_trace.rb#35 + # source://graphql/lib/graphql/tracing/sentry_trace.rb#37 def analyze_query(**data); end # source://graphql/lib/graphql/tracing/platform_trace.rb#72 @@ -18041,46 +18069,46 @@ module GraphQL::Tracing::SentryTrace # source://graphql/lib/graphql/tracing/platform_trace.rb#44 def execute_field_lazy(query:, field:, ast_node:, arguments:, object:); end - # source://graphql/lib/graphql/tracing/sentry_trace.rb#35 + # source://graphql/lib/graphql/tracing/sentry_trace.rb#37 def execute_multiplex(**data); end - # source://graphql/lib/graphql/tracing/sentry_trace.rb#16 + # source://graphql/lib/graphql/tracing/sentry_trace.rb#18 def execute_query(**data); end - # source://graphql/lib/graphql/tracing/sentry_trace.rb#35 + # source://graphql/lib/graphql/tracing/sentry_trace.rb#37 def execute_query_lazy(**data); end - # source://graphql/lib/graphql/tracing/sentry_trace.rb#35 + # source://graphql/lib/graphql/tracing/sentry_trace.rb#37 def lex(**data); end - # source://graphql/lib/graphql/tracing/sentry_trace.rb#35 + # source://graphql/lib/graphql/tracing/sentry_trace.rb#37 def parse(**data); end - # source://graphql/lib/graphql/tracing/sentry_trace.rb#50 + # source://graphql/lib/graphql/tracing/sentry_trace.rb#52 def platform_authorized(platform_key, &block); end - # source://graphql/lib/graphql/tracing/sentry_trace.rb#70 + # source://graphql/lib/graphql/tracing/sentry_trace.rb#72 def platform_authorized_key(type); end - # source://graphql/lib/graphql/tracing/sentry_trace.rb#54 + # source://graphql/lib/graphql/tracing/sentry_trace.rb#56 def platform_authorized_lazy(platform_key, &block); end - # source://graphql/lib/graphql/tracing/sentry_trace.rb#42 + # source://graphql/lib/graphql/tracing/sentry_trace.rb#44 def platform_execute_field(platform_key, &block); end - # source://graphql/lib/graphql/tracing/sentry_trace.rb#46 + # source://graphql/lib/graphql/tracing/sentry_trace.rb#48 def platform_execute_field_lazy(platform_key, &block); end - # source://graphql/lib/graphql/tracing/sentry_trace.rb#66 + # source://graphql/lib/graphql/tracing/sentry_trace.rb#68 def platform_field_key(field); end - # source://graphql/lib/graphql/tracing/sentry_trace.rb#58 + # source://graphql/lib/graphql/tracing/sentry_trace.rb#60 def platform_resolve_type(platform_key, &block); end - # source://graphql/lib/graphql/tracing/sentry_trace.rb#74 + # source://graphql/lib/graphql/tracing/sentry_trace.rb#76 def platform_resolve_type_key(type); end - # source://graphql/lib/graphql/tracing/sentry_trace.rb#62 + # source://graphql/lib/graphql/tracing/sentry_trace.rb#64 def platform_resolve_type_lazy(platform_key, &block); end # source://graphql/lib/graphql/tracing/platform_trace.rb#85 @@ -18089,15 +18117,15 @@ module GraphQL::Tracing::SentryTrace # source://graphql/lib/graphql/tracing/platform_trace.rb#85 def resolve_type_lazy(query:, type:, object:); end - # source://graphql/lib/graphql/tracing/sentry_trace.rb#35 + # source://graphql/lib/graphql/tracing/sentry_trace.rb#37 def validate(**data); end private - # source://graphql/lib/graphql/tracing/sentry_trace.rb#80 + # source://graphql/lib/graphql/tracing/sentry_trace.rb#82 def instrument_sentry_execution(platform_key, trace_method, data = T.unsafe(nil), &block); end - # source://graphql/lib/graphql/tracing/sentry_trace.rb#102 + # source://graphql/lib/graphql/tracing/sentry_trace.rb#104 def operation_name(query); end end @@ -18108,19 +18136,19 @@ class GraphQL::Tracing::SentryTrace::KeyCache include ::GraphQL::Tracing::PlatformTrace::BaseKeyCache end -# source://graphql/lib/graphql/tracing/statsd_trace.rb#5 +# source://graphql/lib/graphql/tracing/statsd_trace.rb#7 module GraphQL::Tracing::StatsdTrace include ::GraphQL::Tracing::PlatformTrace # @param statsd [Object] A statsd client # - # source://graphql/lib/graphql/tracing/statsd_trace.rb#9 + # source://graphql/lib/graphql/tracing/statsd_trace.rb#11 def initialize(statsd:, **rest); end - # source://graphql/lib/graphql/tracing/statsd_trace.rb#24 + # source://graphql/lib/graphql/tracing/statsd_trace.rb#26 def analyze_multiplex(**data); end - # source://graphql/lib/graphql/tracing/statsd_trace.rb#24 + # source://graphql/lib/graphql/tracing/statsd_trace.rb#26 def analyze_query(**data); end # source://graphql/lib/graphql/tracing/platform_trace.rb#72 @@ -18135,37 +18163,37 @@ module GraphQL::Tracing::StatsdTrace # source://graphql/lib/graphql/tracing/platform_trace.rb#44 def execute_field_lazy(query:, field:, ast_node:, arguments:, object:); end - # source://graphql/lib/graphql/tracing/statsd_trace.rb#24 + # source://graphql/lib/graphql/tracing/statsd_trace.rb#26 def execute_multiplex(**data); end - # source://graphql/lib/graphql/tracing/statsd_trace.rb#24 + # source://graphql/lib/graphql/tracing/statsd_trace.rb#26 def execute_query(**data); end - # source://graphql/lib/graphql/tracing/statsd_trace.rb#24 + # source://graphql/lib/graphql/tracing/statsd_trace.rb#26 def execute_query_lazy(**data); end - # source://graphql/lib/graphql/tracing/statsd_trace.rb#24 + # source://graphql/lib/graphql/tracing/statsd_trace.rb#26 def lex(**data); end - # source://graphql/lib/graphql/tracing/statsd_trace.rb#24 + # source://graphql/lib/graphql/tracing/statsd_trace.rb#26 def parse(**data); end - # source://graphql/lib/graphql/tracing/statsd_trace.rb#37 + # source://graphql/lib/graphql/tracing/statsd_trace.rb#39 def platform_authorized(key, &block); end - # source://graphql/lib/graphql/tracing/statsd_trace.rb#47 + # source://graphql/lib/graphql/tracing/statsd_trace.rb#49 def platform_authorized_key(type); end - # source://graphql/lib/graphql/tracing/statsd_trace.rb#33 + # source://graphql/lib/graphql/tracing/statsd_trace.rb#35 def platform_execute_field(platform_key, &block); end - # source://graphql/lib/graphql/tracing/statsd_trace.rb#43 + # source://graphql/lib/graphql/tracing/statsd_trace.rb#45 def platform_field_key(field); end - # source://graphql/lib/graphql/tracing/statsd_trace.rb#37 + # source://graphql/lib/graphql/tracing/statsd_trace.rb#39 def platform_resolve_type(key, &block); end - # source://graphql/lib/graphql/tracing/statsd_trace.rb#51 + # source://graphql/lib/graphql/tracing/statsd_trace.rb#53 def platform_resolve_type_key(type); end # source://graphql/lib/graphql/tracing/platform_trace.rb#85 @@ -18174,7 +18202,7 @@ module GraphQL::Tracing::StatsdTrace # source://graphql/lib/graphql/tracing/platform_trace.rb#85 def resolve_type_lazy(query:, type:, object:); end - # source://graphql/lib/graphql/tracing/statsd_trace.rb#24 + # source://graphql/lib/graphql/tracing/statsd_trace.rb#26 def validate(**data); end end @@ -18185,24 +18213,24 @@ class GraphQL::Tracing::StatsdTrace::KeyCache include ::GraphQL::Tracing::PlatformTrace::BaseKeyCache end -# source://graphql/lib/graphql/tracing/statsd_tracing.rb#5 +# source://graphql/lib/graphql/tracing/statsd_tracing.rb#7 class GraphQL::Tracing::StatsdTracing < ::GraphQL::Tracing::PlatformTracing # @param statsd [Object] A statsd client # @return [StatsdTracing] a new instance of StatsdTracing # - # source://graphql/lib/graphql/tracing/statsd_tracing.rb#18 + # source://graphql/lib/graphql/tracing/statsd_tracing.rb#20 def initialize(statsd:, **rest); end - # source://graphql/lib/graphql/tracing/statsd_tracing.rb#33 + # source://graphql/lib/graphql/tracing/statsd_tracing.rb#35 def platform_authorized_key(type); end - # source://graphql/lib/graphql/tracing/statsd_tracing.rb#29 + # source://graphql/lib/graphql/tracing/statsd_tracing.rb#31 def platform_field_key(type, field); end - # source://graphql/lib/graphql/tracing/statsd_tracing.rb#37 + # source://graphql/lib/graphql/tracing/statsd_tracing.rb#39 def platform_resolve_type_key(type); end - # source://graphql/lib/graphql/tracing/statsd_tracing.rb#23 + # source://graphql/lib/graphql/tracing/statsd_tracing.rb#25 def platform_trace(platform_key, key, data); end end @@ -18212,57 +18240,57 @@ end # A trace module may implement any of the methods on `Trace`, being sure to call `super` # to continue any tracing hooks and call the actual runtime behavior. See {GraphQL::Backtrace::Trace} for example. # -# source://graphql/lib/graphql/tracing/trace.rb#10 +# source://graphql/lib/graphql/tracing/trace.rb#13 class GraphQL::Tracing::Trace # @param multiplex [GraphQL::Execution::Multiplex, nil] # @param query [GraphQL::Query, nil] # @return [Trace] a new instance of Trace # - # source://graphql/lib/graphql/tracing/trace.rb#13 + # source://graphql/lib/graphql/tracing/trace.rb#16 def initialize(multiplex: T.unsafe(nil), query: T.unsafe(nil), **_options); end - # source://graphql/lib/graphql/tracing/trace.rb#31 + # source://graphql/lib/graphql/tracing/trace.rb#34 def analyze_multiplex(multiplex:); end - # source://graphql/lib/graphql/tracing/trace.rb#35 + # source://graphql/lib/graphql/tracing/trace.rb#38 def analyze_query(query:); end - # source://graphql/lib/graphql/tracing/trace.rb#59 + # source://graphql/lib/graphql/tracing/trace.rb#62 def authorized(query:, type:, object:); end - # source://graphql/lib/graphql/tracing/trace.rb#63 + # source://graphql/lib/graphql/tracing/trace.rb#66 def authorized_lazy(query:, type:, object:); end - # source://graphql/lib/graphql/tracing/trace.rb#51 + # source://graphql/lib/graphql/tracing/trace.rb#54 def execute_field(field:, query:, ast_node:, arguments:, object:); end - # source://graphql/lib/graphql/tracing/trace.rb#55 + # source://graphql/lib/graphql/tracing/trace.rb#58 def execute_field_lazy(field:, query:, ast_node:, arguments:, object:); end - # source://graphql/lib/graphql/tracing/trace.rb#39 + # source://graphql/lib/graphql/tracing/trace.rb#42 def execute_multiplex(multiplex:); end - # source://graphql/lib/graphql/tracing/trace.rb#43 + # source://graphql/lib/graphql/tracing/trace.rb#46 def execute_query(query:); end - # source://graphql/lib/graphql/tracing/trace.rb#47 + # source://graphql/lib/graphql/tracing/trace.rb#50 def execute_query_lazy(query:, multiplex:); end # The Ruby parser doesn't call this method (`graphql/c_parser` does.) # - # source://graphql/lib/graphql/tracing/trace.rb#19 + # source://graphql/lib/graphql/tracing/trace.rb#22 def lex(query_string:); end - # source://graphql/lib/graphql/tracing/trace.rb#23 + # source://graphql/lib/graphql/tracing/trace.rb#26 def parse(query_string:); end - # source://graphql/lib/graphql/tracing/trace.rb#67 + # source://graphql/lib/graphql/tracing/trace.rb#70 def resolve_type(query:, type:, object:); end - # source://graphql/lib/graphql/tracing/trace.rb#71 + # source://graphql/lib/graphql/tracing/trace.rb#74 def resolve_type_lazy(query:, type:, object:); end - # source://graphql/lib/graphql/tracing/trace.rb#27 + # source://graphql/lib/graphql/tracing/trace.rb#30 def validate(query:, validate:); end end @@ -18271,14 +18299,14 @@ end # # @api private # -# source://graphql/lib/graphql/tracing.rb#40 +# source://graphql/lib/graphql/tracing.rb#38 module GraphQL::Tracing::Traceable # @api private # @param key [String] The name of the event in GraphQL internals # @param metadata [Hash] Event-related metadata (can be anything) # @return [Object] Must return the value of the block # - # source://graphql/lib/graphql/tracing.rb#44 + # source://graphql/lib/graphql/tracing.rb#42 def trace(key, metadata, &block); end private @@ -18292,7 +18320,7 @@ module GraphQL::Tracing::Traceable # @param metadata [Object] The current event object # @return Whatever the block returns # - # source://graphql/lib/graphql/tracing.rb#58 + # source://graphql/lib/graphql/tracing.rb#56 def call_tracers(idx, key, metadata, &block); end end diff --git a/sorbet/rbi/gems/io-console@0.7.2.rbi b/sorbet/rbi/gems/io-console@0.8.0.rbi similarity index 100% rename from sorbet/rbi/gems/io-console@0.7.2.rbi rename to sorbet/rbi/gems/io-console@0.8.0.rbi diff --git a/sorbet/rbi/gems/json@2.7.6.rbi b/sorbet/rbi/gems/json@2.9.0.rbi similarity index 73% rename from sorbet/rbi/gems/json@2.7.6.rbi rename to sorbet/rbi/gems/json@2.9.0.rbi index d2f9dadcf..bb0058d17 100644 --- a/sorbet/rbi/gems/json@2.7.6.rbi +++ b/sorbet/rbi/gems/json@2.9.0.rbi @@ -7,7 +7,7 @@ # Extends any Class to include _json_creatable?_ method. # -# source://json//lib/json/common.rb#726 +# source://json/lib/json/common.rb#888 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#731 + # source://json/lib/json/common.rb#893 def json_creatable?; end end @@ -396,13 +396,13 @@ end # json1 = JSON.generate(ruby) # ruby1 = JSON.parse(json1, create_additions: true) # # Make a nice display. -# display = <" (String) # With custom addition: # (Foo) # -# source://json//lib/json/version.rb#3 +# source://json/lib/json/version.rb#3 module JSON private @@ -631,7 +631,7 @@ module JSON # Output: # {"foo":[0,1],"bar":{"baz":2,"bat":3},"bam":"bad"} # - # source://json//lib/json/common.rb#630 + # source://json/lib/json/common.rb#795 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#337 + # source://json/lib/json/common.rb#329 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#337 + # source://json/lib/json/common.rb#329 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#308 + # source://json/lib/json/common.rb#301 def generate(obj, opts = T.unsafe(nil)); end # :call-seq: @@ -701,6 +701,16 @@ module JSON # # Returns the Ruby objects created by parsing the given +source+. # + # BEWARE: This method is meant to serialise data from trusted user input, + # like from your own database server or clients under your control, it could + # be dangerous to allow untrusted users to pass JSON sources into it. + # If you must use it, use JSON.unsafe_load instead to make it clear. + # + # Since JSON version 2.8.0, `load` emits a deprecation warning when a + # non native type is deserialized, without `create_additions` being explicitly + # enabled, and in JSON version 3.0, `load` will have `create_additions` disabled + # by default. + # # - Argument +source+ must be, or be convertible to, a \String: # - If +source+ responds to instance method +to_str+, # source.to_str becomes the source. @@ -715,9 +725,6 @@ module JSON # - Argument +proc+, if given, must be a \Proc that accepts one argument. # It will be called recursively with each result (depth-first order). # See details below. - # BEWARE: This method is meant to serialise data from trusted user input, - # like from your own database server or clients under your control, it could - # be dangerous to allow untrusted users to pass JSON sources into it. # - Argument +opts+, if given, contains a \Hash of options for the parsing. # See {Parsing Options}[#module-JSON-label-Parsing+Options]. # The default options can be changed via method JSON.load_default_options=. @@ -728,17 +735,17 @@ module JSON # parse(source, opts); see #parse. # # Source for following examples: - # source = <<-EOT - # { - # "name": "Dave", - # "age" :40, - # "hats": [ - # "Cattleman's", - # "Panama", - # "Tophat" - # ] - # } - # EOT + # source = <<~JSON + # { + # "name": "Dave", + # "age" :40, + # "hats": [ + # "Cattleman's", + # "Panama", + # "Tophat" + # ] + # } + # JSON # # Load a \String: # ruby = JSON.load(source) @@ -824,7 +831,7 @@ module JSON # #"Admin", "password"=>"0wn3d"}>} # - # source://json//lib/json/common.rb#549 + # source://json/lib/json/common.rb#714 def load(source, proc = T.unsafe(nil), options = T.unsafe(nil)); end # :call-seq: @@ -835,7 +842,7 @@ module JSON # # See method #parse. # - # source://json//lib/json/common.rb#257 + # source://json/lib/json/common.rb#250 def load_file(filespec, opts = T.unsafe(nil)); end # :call-seq: @@ -846,10 +853,10 @@ module JSON # # See method #parse! # - # source://json//lib/json/common.rb#268 + # source://json/lib/json/common.rb#261 def load_file!(filespec, opts = T.unsafe(nil)); end - # source://json//lib/json/common.rb#674 + # source://json/lib/json/common.rb#836 def merge_dump_options(opts, strict: T.unsafe(nil)); end # :call-seq: @@ -880,17 +887,17 @@ module JSON # {Parsing \JSON}[#module-JSON-label-Parsing+JSON]. # # Parses nested JSON objects: - # source = <<-EOT - # { - # "name": "Dave", - # "age" :40, - # "hats": [ - # "Cattleman's", - # "Panama", - # "Tophat" - # ] - # } - # EOT + # source = <<~JSON + # { + # "name": "Dave", + # "age" :40, + # "hats": [ + # "Cattleman's", + # "Panama", + # "Tophat" + # ] + # } + # JSON # ruby = JSON.parse(source) # ruby # => {"name"=>"Dave", "age"=>40, "hats"=>["Cattleman's", "Panama", "Tophat"]} # @@ -900,7 +907,7 @@ module JSON # # Raises JSON::ParserError (783: unexpected token at ''): # JSON.parse('') # - # source://json//lib/json/common.rb#218 + # source://json/lib/json/common.rb#220 def parse(source, opts = T.unsafe(nil)); end # :call-seq: @@ -915,7 +922,7 @@ module JSON # which disables checking for nesting depth. # - Option +allow_nan+, if not provided, defaults to +true+. # - # source://json//lib/json/common.rb#242 + # source://json/lib/json/common.rb#235 def parse!(source, opts = T.unsafe(nil)); end # :call-seq: @@ -948,30 +955,162 @@ module JSON # } # } # - # source://json//lib/json/common.rb#382 + # source://json/lib/json/common.rb#374 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#382 + # source://json/lib/json/common.rb#374 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#575 + # source://json/lib/json/common.rb#740 def recurse_proc(result, &proc); end - # source://json//lib/json/common.rb#549 + # source://json/lib/json/common.rb#714 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#308 + # source://json/lib/json/common.rb#301 def unparse(obj, opts = T.unsafe(nil)); end + # :call-seq: + # JSON.unsafe_load(source, proc = nil, options = {}) -> object + # + # Returns the Ruby objects created by parsing the given +source+. + # + # BEWARE: This method is meant to serialise data from trusted user input, + # like from your own database server or clients under your control, it could + # be dangerous to allow untrusted users to pass JSON sources into it. + # + # - Argument +source+ must be, or be convertible to, a \String: + # - If +source+ responds to instance method +to_str+, + # source.to_str becomes the source. + # - If +source+ responds to instance method +to_io+, + # source.to_io.read becomes the source. + # - If +source+ responds to instance method +read+, + # source.read becomes the source. + # - If both of the following are true, source becomes the \String 'null': + # - Option +allow_blank+ specifies a truthy value. + # - The source, as defined above, is +nil+ or the empty \String ''. + # - Otherwise, +source+ remains the source. + # - Argument +proc+, if given, must be a \Proc that accepts one argument. + # It will be called recursively with each result (depth-first order). + # See details below. + # - Argument +opts+, if given, contains a \Hash of options for the parsing. + # See {Parsing Options}[#module-JSON-label-Parsing+Options]. + # The default options can be changed via method JSON.unsafe_load_default_options=. + # + # --- + # + # When no +proc+ is given, modifies +source+ as above and returns the result of + # parse(source, opts); see #parse. + # + # Source for following examples: + # source = <<~JSON + # { + # "name": "Dave", + # "age" :40, + # "hats": [ + # "Cattleman's", + # "Panama", + # "Tophat" + # ] + # } + # JSON + # + # Load a \String: + # ruby = JSON.unsafe_load(source) + # ruby # => {"name"=>"Dave", "age"=>40, "hats"=>["Cattleman's", "Panama", "Tophat"]} + # + # Load an \IO object: + # require 'stringio' + # object = JSON.unsafe_load(StringIO.new(source)) + # object # => {"name"=>"Dave", "age"=>40, "hats"=>["Cattleman's", "Panama", "Tophat"]} + # + # Load a \File object: + # path = 't.json' + # File.write(path, source) + # File.open(path) do |file| + # JSON.unsafe_load(file) + # end # => {"name"=>"Dave", "age"=>40, "hats"=>["Cattleman's", "Panama", "Tophat"]} + # + # --- + # + # When +proc+ is given: + # - Modifies +source+ as above. + # - Gets the +result+ from calling parse(source, opts). + # - Recursively calls proc(result). + # - Returns the final result. + # + # Example: + # require 'json' + # + # # Some classes for the example. + # class Base + # def initialize(attributes) + # @attributes = attributes + # end + # end + # class User < Base; end + # class Account < Base; end + # class Admin < Base; end + # # The JSON source. + # json = <<-EOF + # { + # "users": [ + # {"type": "User", "username": "jane", "email": "jane@example.com"}, + # {"type": "User", "username": "john", "email": "john@example.com"} + # ], + # "accounts": [ + # {"account": {"type": "Account", "paid": true, "account_id": "1234"}}, + # {"account": {"type": "Account", "paid": false, "account_id": "1235"}} + # ], + # "admins": {"type": "Admin", "password": "0wn3d"} + # } + # EOF + # # Deserializer method. + # def deserialize_obj(obj, safe_types = %w(User Account Admin)) + # type = obj.is_a?(Hash) && obj["type"] + # safe_types.include?(type) ? Object.const_get(type).new(obj) : obj + # end + # # Call to JSON.unsafe_load + # ruby = JSON.unsafe_load(json, proc {|obj| + # case obj + # when Hash + # obj.each {|k, v| obj[k] = deserialize_obj v } + # when Array + # obj.map! {|v| deserialize_obj v } + # end + # }) + # pp ruby + # Output: + # {"users"=> + # [#"User", "username"=>"jane", "email"=>"jane@example.com"}>, + # #"User", "username"=>"john", "email"=>"john@example.com"}>], + # "accounts"=> + # [{"account"=> + # #"Account", "paid"=>true, "account_id"=>"1234"}>}, + # {"account"=> + # #"Account", "paid"=>false, "account_id"=>"1235"}>}], + # "admins"=> + # #"Admin", "password"=>"0wn3d"}>} + # + # source://json/lib/json/common.rb#554 + def unsafe_load(source, proc = T.unsafe(nil), options = T.unsafe(nil)); end + class << self # :call-seq: # JSON[object] -> new_array or new_string @@ -985,26 +1124,26 @@ module JSON # ruby = [0, 1, nil] # JSON[ruby] # => '[0,1,null]' # - # source://json//lib/json/common.rb#22 + # source://json/lib/json/common.rb#23 def [](object, opts = T.unsafe(nil)); end - # source://json//lib/json/common.rb#90 + # source://json/lib/json/common.rb#80 def create_fast_state; end # Returns the current create identifier. # See also JSON.create_id=. # - # source://json//lib/json/common.rb#129 + # source://json/lib/json/common.rb#115 def create_id; end # Sets create identifier, which is used to decide if the _json_create_ # hook of a class should be called; initial value is +json_class+: # JSON.create_id # => 'json_class' # - # source://json//lib/json/common.rb#123 + # source://json/lib/json/common.rb#109 def create_id=(new_value); end - # source://json//lib/json/common.rb#100 + # source://json/lib/json/common.rb#90 def create_pretty_state; end # Return the constant located at _path_. The format of _path_ has to be @@ -1012,7 +1151,7 @@ module JSON # level (absolute namespace path?). If there doesn't exist a constant at # the given path, an ArgumentError is raised. # - # source://json//lib/json/common.rb#51 + # source://json/lib/json/common.rb#50 def deep_const_get(path); end # :call-seq: @@ -1043,7 +1182,7 @@ module JSON # Output: # {"foo":[0,1],"bar":{"baz":2,"bat":3},"bam":"bad"} # - # source://json//lib/json/common.rb#630 + # source://json/lib/json/common.rb#795 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 +1190,7 @@ module JSON # opts = JSON.dump_default_options # opts # => {:max_nesting=>false, :allow_nan=>true} # - # source://json//lib/json/common.rb#596 + # source://json/lib/json/common.rb#761 def dump_default_options; end # Sets or returns the default options for the JSON.dump method. @@ -1059,7 +1198,7 @@ module JSON # opts = JSON.dump_default_options # opts # => {:max_nesting=>false, :allow_nan=>true} # - # source://json//lib/json/common.rb#596 + # source://json/lib/json/common.rb#761 def dump_default_options=(_arg0); end # :call-seq: @@ -1076,13 +1215,13 @@ module JSON # # Raises SystemStackError (stack level too deep): # JSON.fast_generate(a) # - # source://json//lib/json/common.rb#337 + # source://json/lib/json/common.rb#329 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#337 + # source://json/lib/json/common.rb#329 def fast_unparse(obj, opts = T.unsafe(nil)); end # :call-seq: @@ -1121,24 +1260,22 @@ module JSON # # Raises JSON::NestingError (nesting of 100 is too deep): # JSON.generate(a) # - # source://json//lib/json/common.rb#308 + # source://json/lib/json/common.rb#301 def generate(obj, opts = T.unsafe(nil)); end - # Returns the JSON generator module that is used by JSON. This is - # either JSON::Ext::Generator or JSON::Pure::Generator: - # JSON.generator # => JSON::Ext::Generator + # Returns the JSON generator module that is used by JSON. # - # source://json//lib/json/common.rb#112 + # source://json/lib/json/common.rb#100 def generator; end # Set the module _generator_ to be used by JSON. # - # source://json//lib/json/common.rb#67 + # source://json/lib/json/common.rb#57 def generator=(generator); end # Encodes string using String.encode. # - # source://json//lib/json/common.rb#670 + # source://json/lib/json/common.rb#832 def iconv(to, from, string); end # :call-seq: @@ -1146,6 +1283,16 @@ module JSON # # Returns the Ruby objects created by parsing the given +source+. # + # BEWARE: This method is meant to serialise data from trusted user input, + # like from your own database server or clients under your control, it could + # be dangerous to allow untrusted users to pass JSON sources into it. + # If you must use it, use JSON.unsafe_load instead to make it clear. + # + # Since JSON version 2.8.0, `load` emits a deprecation warning when a + # non native type is deserialized, without `create_additions` being explicitly + # enabled, and in JSON version 3.0, `load` will have `create_additions` disabled + # by default. + # # - Argument +source+ must be, or be convertible to, a \String: # - If +source+ responds to instance method +to_str+, # source.to_str becomes the source. @@ -1160,9 +1307,6 @@ module JSON # - Argument +proc+, if given, must be a \Proc that accepts one argument. # It will be called recursively with each result (depth-first order). # See details below. - # BEWARE: This method is meant to serialise data from trusted user input, - # like from your own database server or clients under your control, it could - # be dangerous to allow untrusted users to pass JSON sources into it. # - Argument +opts+, if given, contains a \Hash of options for the parsing. # See {Parsing Options}[#module-JSON-label-Parsing+Options]. # The default options can be changed via method JSON.load_default_options=. @@ -1173,17 +1317,17 @@ module JSON # parse(source, opts); see #parse. # # Source for following examples: - # source = <<-EOT - # { - # "name": "Dave", - # "age" :40, - # "hats": [ - # "Cattleman's", - # "Panama", - # "Tophat" - # ] - # } - # EOT + # source = <<~JSON + # { + # "name": "Dave", + # "age" :40, + # "hats": [ + # "Cattleman's", + # "Panama", + # "Tophat" + # ] + # } + # JSON # # Load a \String: # ruby = JSON.load(source) @@ -1269,7 +1413,7 @@ module JSON # #"Admin", "password"=>"0wn3d"}>} # - # source://json//lib/json/common.rb#549 + # source://json/lib/json/common.rb#714 def load(source, proc = T.unsafe(nil), options = T.unsafe(nil)); end # Sets or returns default options for the JSON.load method. @@ -1277,7 +1421,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#412 + # source://json/lib/json/common.rb#418 def load_default_options; end # Sets or returns default options for the JSON.load method. @@ -1285,7 +1429,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#412 + # source://json/lib/json/common.rb#418 def load_default_options=(_arg0); end # :call-seq: @@ -1296,7 +1440,7 @@ module JSON # # See method #parse. # - # source://json//lib/json/common.rb#257 + # source://json/lib/json/common.rb#250 def load_file(filespec, opts = T.unsafe(nil)); end # :call-seq: @@ -1307,7 +1451,7 @@ module JSON # # See method #parse! # - # source://json//lib/json/common.rb#268 + # source://json/lib/json/common.rb#261 def load_file!(filespec, opts = T.unsafe(nil)); end # :call-seq: @@ -1338,17 +1482,17 @@ module JSON # {Parsing \JSON}[#module-JSON-label-Parsing+JSON]. # # Parses nested JSON objects: - # source = <<-EOT - # { - # "name": "Dave", - # "age" :40, - # "hats": [ - # "Cattleman's", - # "Panama", - # "Tophat" - # ] - # } - # EOT + # source = <<~JSON + # { + # "name": "Dave", + # "age" :40, + # "hats": [ + # "Cattleman's", + # "Panama", + # "Tophat" + # ] + # } + # JSON # ruby = JSON.parse(source) # ruby # => {"name"=>"Dave", "age"=>40, "hats"=>["Cattleman's", "Panama", "Tophat"]} # @@ -1358,7 +1502,7 @@ module JSON # # Raises JSON::ParserError (783: unexpected token at ''): # JSON.parse('') # - # source://json//lib/json/common.rb#218 + # source://json/lib/json/common.rb#220 def parse(source, opts = T.unsafe(nil)); end # :call-seq: @@ -1373,19 +1517,17 @@ module JSON # which disables checking for nesting depth. # - Option +allow_nan+, if not provided, defaults to +true+. # - # source://json//lib/json/common.rb#242 + # source://json/lib/json/common.rb#235 def parse!(source, opts = T.unsafe(nil)); end - # Returns the JSON parser class that is used by JSON. This is either - # JSON::Ext::Parser or JSON::Pure::Parser: - # JSON.parser # => JSON::Ext::Parser + # Returns the JSON parser class that is used by JSON. # - # source://json//lib/json/common.rb#38 + # source://json/lib/json/common.rb#37 def parser; end # Set the JSON parser class _parser_ to be used by JSON. # - # source://json//lib/json/common.rb#41 + # source://json/lib/json/common.rb#40 def parser=(parser); end # :call-seq: @@ -1418,52 +1560,196 @@ module JSON # } # } # - # source://json//lib/json/common.rb#382 + # source://json/lib/json/common.rb#374 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#382 + # source://json/lib/json/common.rb#374 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#575 + # source://json/lib/json/common.rb#740 def recurse_proc(result, &proc); end - # source://json//lib/json/common.rb#549 + # source://json/lib/json/common.rb#714 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 - # either JSON::Ext::Generator::State or JSON::Pure::Generator::State: - # JSON.state # => JSON::Ext::Generator::State + # Sets or Returns the JSON generator state class that is used by JSON. # - # source://json//lib/json/common.rb#117 + # source://json/lib/json/common.rb#103 def state; end - # Sets or Returns the JSON generator state class that is used by JSON. This is - # either JSON::Ext::Generator::State or JSON::Pure::Generator::State: - # JSON.state # => JSON::Ext::Generator::State + # Sets or Returns the JSON generator state class that is used by JSON. # - # source://json//lib/json/common.rb#117 + # source://json/lib/json/common.rb#103 def state=(_arg0); 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#308 + # source://json/lib/json/common.rb#301 def unparse(obj, opts = T.unsafe(nil)); end + # :call-seq: + # JSON.unsafe_load(source, proc = nil, options = {}) -> object + # + # Returns the Ruby objects created by parsing the given +source+. + # + # BEWARE: This method is meant to serialise data from trusted user input, + # like from your own database server or clients under your control, it could + # be dangerous to allow untrusted users to pass JSON sources into it. + # + # - Argument +source+ must be, or be convertible to, a \String: + # - If +source+ responds to instance method +to_str+, + # source.to_str becomes the source. + # - If +source+ responds to instance method +to_io+, + # source.to_io.read becomes the source. + # - If +source+ responds to instance method +read+, + # source.read becomes the source. + # - If both of the following are true, source becomes the \String 'null': + # - Option +allow_blank+ specifies a truthy value. + # - The source, as defined above, is +nil+ or the empty \String ''. + # - Otherwise, +source+ remains the source. + # - Argument +proc+, if given, must be a \Proc that accepts one argument. + # It will be called recursively with each result (depth-first order). + # See details below. + # - Argument +opts+, if given, contains a \Hash of options for the parsing. + # See {Parsing Options}[#module-JSON-label-Parsing+Options]. + # The default options can be changed via method JSON.unsafe_load_default_options=. + # + # --- + # + # When no +proc+ is given, modifies +source+ as above and returns the result of + # parse(source, opts); see #parse. + # + # Source for following examples: + # source = <<~JSON + # { + # "name": "Dave", + # "age" :40, + # "hats": [ + # "Cattleman's", + # "Panama", + # "Tophat" + # ] + # } + # JSON + # + # Load a \String: + # ruby = JSON.unsafe_load(source) + # ruby # => {"name"=>"Dave", "age"=>40, "hats"=>["Cattleman's", "Panama", "Tophat"]} + # + # Load an \IO object: + # require 'stringio' + # object = JSON.unsafe_load(StringIO.new(source)) + # object # => {"name"=>"Dave", "age"=>40, "hats"=>["Cattleman's", "Panama", "Tophat"]} + # + # Load a \File object: + # path = 't.json' + # File.write(path, source) + # File.open(path) do |file| + # JSON.unsafe_load(file) + # end # => {"name"=>"Dave", "age"=>40, "hats"=>["Cattleman's", "Panama", "Tophat"]} + # + # --- + # + # When +proc+ is given: + # - Modifies +source+ as above. + # - Gets the +result+ from calling parse(source, opts). + # - Recursively calls proc(result). + # - Returns the final result. + # + # Example: + # require 'json' + # + # # Some classes for the example. + # class Base + # def initialize(attributes) + # @attributes = attributes + # end + # end + # class User < Base; end + # class Account < Base; end + # class Admin < Base; end + # # The JSON source. + # json = <<-EOF + # { + # "users": [ + # {"type": "User", "username": "jane", "email": "jane@example.com"}, + # {"type": "User", "username": "john", "email": "john@example.com"} + # ], + # "accounts": [ + # {"account": {"type": "Account", "paid": true, "account_id": "1234"}}, + # {"account": {"type": "Account", "paid": false, "account_id": "1235"}} + # ], + # "admins": {"type": "Admin", "password": "0wn3d"} + # } + # EOF + # # Deserializer method. + # def deserialize_obj(obj, safe_types = %w(User Account Admin)) + # type = obj.is_a?(Hash) && obj["type"] + # safe_types.include?(type) ? Object.const_get(type).new(obj) : obj + # end + # # Call to JSON.unsafe_load + # ruby = JSON.unsafe_load(json, proc {|obj| + # case obj + # when Hash + # obj.each {|k, v| obj[k] = deserialize_obj v } + # when Array + # obj.map! {|v| deserialize_obj v } + # end + # }) + # pp ruby + # Output: + # {"users"=> + # [#"User", "username"=>"jane", "email"=>"jane@example.com"}>, + # #"User", "username"=>"john", "email"=>"john@example.com"}>], + # "accounts"=> + # [{"account"=> + # #"Account", "paid"=>true, "account_id"=>"1234"}>}, + # {"account"=> + # #"Account", "paid"=>false, "account_id"=>"1235"}>}], + # "admins"=> + # #"Admin", "password"=>"0wn3d"}>} + # + # source://json/lib/json/common.rb#554 + def unsafe_load(source, proc = T.unsafe(nil), options = T.unsafe(nil)); end + + # Sets or returns default options for the JSON.unsafe_load method. + # Initially: + # opts = JSON.load_default_options + # opts # => {:max_nesting=>false, :allow_nan=>true, :allow_blank=>true, :create_additions=>true} + # + # source://json/lib/json/common.rb#404 + def unsafe_load_default_options; end + + # Sets or returns default options for the JSON.unsafe_load method. + # Initially: + # opts = JSON.load_default_options + # opts # => {:max_nesting=>false, :allow_nan=>true, :allow_blank=>true, :create_additions=>true} + # + # source://json/lib/json/common.rb#404 + def unsafe_load_default_options=(_arg0); end + private - # source://json//lib/json/common.rb#674 + # source://json/lib/json/common.rb#836 def merge_dump_options(opts, strict: T.unsafe(nil)); end end end -# source://json//lib/json/ext/generator/state.rb#6 +# source://json/lib/json/ext/generator/state.rb#6 class JSON::Ext::Generator::State # call-seq: new(opts = {}) # @@ -1486,21 +1772,21 @@ class JSON::Ext::Generator::State # # @return [State] a new instance of State # - # source://json//lib/json/ext/generator/state.rb#25 + # source://json/lib/json/ext/generator/state.rb#25 def initialize(opts = T.unsafe(nil)); end # call-seq: [](name) # # Returns the value returned by method +name+. # - # source://json//lib/json/ext/generator/state.rb#113 + # source://json/lib/json/ext/generator/state.rb#94 def [](name); end # call-seq: []=(name, value) # # Sets the attribute name to value. # - # source://json//lib/json/ext/generator/state.rb#125 + # source://json/lib/json/ext/generator/state.rb#106 def []=(name, value); end # call-seq: configure(opts) @@ -1508,15 +1794,26 @@ class JSON::Ext::Generator::State # Configure this State instance with the Hash _opts_, and return # itself. # - # source://json//lib/json/ext/generator/state.rb#35 + # source://json/lib/json/ext/generator/state.rb#35 def configure(opts); end + # call-seq: + # generate(obj) -> String + # generate(obj, anIO) -> anIO + # + # Generates a valid JSON document from object +obj+ and returns the + # result. If no valid JSON document can be created this method raises a + # GeneratorError exception. + # + # source://json/lib/json/ext/generator/state.rb#57 + def generate(obj, io = T.unsafe(nil)); end + # call-seq: configure(opts) # # Configure this State instance with the Hash _opts_, and return # itself. # - # source://json//lib/json/ext/generator/state.rb#35 + # source://json/lib/json/ext/generator/state.rb#35 def merge(opts); end # call-seq: to_h @@ -1524,7 +1821,7 @@ class JSON::Ext::Generator::State # Returns the configuration instance variables as a hash, that can be # passed to the configure method. # - # source://json//lib/json/ext/generator/state.rb#84 + # source://json/lib/json/ext/generator/state.rb#65 def to_h; end # call-seq: to_h @@ -1532,76 +1829,94 @@ class JSON::Ext::Generator::State # Returns the configuration instance variables as a hash, that can be # passed to the configure method. # - # source://json//lib/json/ext/generator/state.rb#84 + # source://json/lib/json/ext/generator/state.rb#65 def to_hash; end end -# source://json//lib/json/generic_object.rb#9 +# This exception is raised if a generator or unparser error occurs. +# +# source://json/lib/json/common.rb#146 +class JSON::GeneratorError < ::JSON::JSONError + # @return [GeneratorError] a new instance of GeneratorError + # + # source://json/lib/json/common.rb#149 + def initialize(message, invalid_object = T.unsafe(nil)); end + + # source://json/lib/json/common.rb#154 + def detailed_message(*_arg0, **_arg1, &_arg2); end + + # Returns the value of attribute invalid_object. + # + # source://json/lib/json/common.rb#147 + def invalid_object; end +end + +# source://json/lib/json/generic_object.rb#9 class JSON::GenericObject < ::OpenStruct - # source://json//lib/json/generic_object.rb#67 + # source://json/lib/json/generic_object.rb#67 def as_json(*_arg0); end - # source://json//lib/json/generic_object.rb#51 + # source://json/lib/json/generic_object.rb#51 def to_hash; end - # source://json//lib/json/generic_object.rb#71 + # source://json/lib/json/generic_object.rb#71 def to_json(*a); end - # source://json//lib/json/generic_object.rb#63 + # source://json/lib/json/generic_object.rb#63 def |(other); end class << self - # source://json//lib/json/generic_object.rb#45 + # source://json/lib/json/generic_object.rb#45 def dump(obj, *args); end - # source://json//lib/json/generic_object.rb#25 + # source://json/lib/json/generic_object.rb#25 def from_hash(object); end # Sets the attribute json_creatable # # @param value the value to set the attribute json_creatable to. # - # source://json//lib/json/generic_object.rb#17 + # source://json/lib/json/generic_object.rb#17 def json_creatable=(_arg0); end # @return [Boolean] # - # source://json//lib/json/generic_object.rb#13 + # source://json/lib/json/generic_object.rb#13 def json_creatable?; end - # source://json//lib/json/generic_object.rb#19 + # source://json/lib/json/generic_object.rb#19 def json_create(data); end - # source://json//lib/json/generic_object.rb#40 + # source://json/lib/json/generic_object.rb#40 def load(source, proc = T.unsafe(nil), opts = T.unsafe(nil)); end end end # The base exception for JSON errors. # -# source://json//lib/json/common.rb#140 +# source://json/lib/json/common.rb#126 class JSON::JSONError < ::StandardError class << self - # source://json//lib/json/common.rb#141 + # source://json/lib/json/common.rb#127 def wrap(exception); end end end -# source://json//lib/json/common.rb#7 +# source://json/lib/json/common.rb#8 JSON::NOT_SET = T.let(T.unsafe(nil), Object) -# source://json//lib/json/common.rb#44 +# source://json/lib/json/common.rb#43 JSON::Parser = JSON::Ext::Parser -# source://json//lib/json/common.rb#82 +# source://json/lib/json/common.rb#72 JSON::State = JSON::Ext::Generator::State # For backwards compatibility # -# source://json//lib/json/common.rb#162 +# source://json/lib/json/common.rb#164 JSON::UnparserError = JSON::GeneratorError -# source://json//lib/json/common.rb#684 +# source://json/lib/json/common.rb#846 module Kernel private @@ -1612,18 +1927,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#711 + # source://json/lib/json/common.rb#873 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#689 + # source://json/lib/json/common.rb#851 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#698 + # source://json/lib/json/common.rb#860 def jj(*objs); end end diff --git a/sorbet/rbi/gems/nokogiri@1.17.0.rbi b/sorbet/rbi/gems/nokogiri@1.17.2.rbi similarity index 100% rename from sorbet/rbi/gems/nokogiri@1.17.0.rbi rename to sorbet/rbi/gems/nokogiri@1.17.2.rbi diff --git a/sorbet/rbi/gems/parser@3.3.5.1.rbi b/sorbet/rbi/gems/parser@3.3.6.0.rbi similarity index 63% rename from sorbet/rbi/gems/parser@3.3.5.1.rbi rename to sorbet/rbi/gems/parser@3.3.6.0.rbi index e5a2bb425..721a70a23 100644 --- a/sorbet/rbi/gems/parser@3.3.5.1.rbi +++ b/sorbet/rbi/gems/parser@3.3.6.0.rbi @@ -7,12 +7,12 @@ # @api public # -# source://parser//lib/parser.rb#19 +# source://parser/lib/parser.rb#19 module Parser; end # @api public # -# source://parser//lib/parser.rb#24 +# source://parser/lib/parser.rb#24 module Parser::AST; end # {Parser::AST::Node} contains information about a single AST node and its @@ -21,7 +21,7 @@ module Parser::AST; end # # @api public # -# source://parser//lib/parser/ast/node.rb#17 +# source://parser/lib/parser/ast/node.rb#17 class Parser::AST::Node < ::AST::Node # Assigns various properties to this AST node. Currently only the # location can be set. @@ -30,7 +30,7 @@ class Parser::AST::Node < ::AST::Node # @option properties # @param properties [Hash] # - # source://parser//lib/parser/ast/node.rb#30 + # source://parser/lib/parser/ast/node.rb#30 def assign_properties(properties); end # Source map for this Node. @@ -38,7 +38,7 @@ class Parser::AST::Node < ::AST::Node # @api public # @return [Parser::Source::Map] # - # source://parser//lib/parser/ast/node.rb#18 + # source://parser/lib/parser/ast/node.rb#18 def loc; end # Source map for this Node. @@ -46,612 +46,612 @@ class Parser::AST::Node < ::AST::Node # @api public # @return [Parser::Source::Map] # - # source://parser//lib/parser/ast/node.rb#18 + # source://parser/lib/parser/ast/node.rb#18 def location; end end # @api public # -# source://parser//lib/parser/ast/processor.rb#9 +# source://parser/lib/parser/ast/processor.rb#9 class Parser::AST::Processor include ::AST::Processor::Mixin # @api public # - # source://parser//lib/parser/ast/processor.rb#12 + # source://parser/lib/parser/ast/processor.rb#12 def on_alias(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#12 + # source://parser/lib/parser/ast/processor.rb#12 def on_and(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#12 + # source://parser/lib/parser/ast/processor.rb#12 def on_and_asgn(node); end # @api public # @private # - # source://parser//lib/parser/ast/processor.rb#118 + # source://parser/lib/parser/ast/processor.rb#118 def on_arg(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#12 + # source://parser/lib/parser/ast/processor.rb#12 def on_arg_expr(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#12 + # source://parser/lib/parser/ast/processor.rb#12 def on_args(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#105 + # source://parser/lib/parser/ast/processor.rb#105 def on_argument(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#12 + # source://parser/lib/parser/ast/processor.rb#12 def on_array(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#12 + # source://parser/lib/parser/ast/processor.rb#12 def on_array_pattern(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#12 + # source://parser/lib/parser/ast/processor.rb#12 def on_array_pattern_with_tail(node); end # @api public # @private # - # source://parser//lib/parser/ast/processor.rb#34 + # source://parser/lib/parser/ast/processor.rb#34 def on_back_ref(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#12 + # source://parser/lib/parser/ast/processor.rb#12 def on_begin(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#12 + # source://parser/lib/parser/ast/processor.rb#12 def on_block(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#12 + # source://parser/lib/parser/ast/processor.rb#12 def on_block_pass(node); end # @api public # @private # - # source://parser//lib/parser/ast/processor.rb#118 + # source://parser/lib/parser/ast/processor.rb#118 def on_blockarg(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#12 + # source://parser/lib/parser/ast/processor.rb#12 def on_blockarg_expr(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#12 + # source://parser/lib/parser/ast/processor.rb#12 def on_break(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#12 + # source://parser/lib/parser/ast/processor.rb#12 def on_case(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#12 + # source://parser/lib/parser/ast/processor.rb#12 def on_case_match(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#89 + # source://parser/lib/parser/ast/processor.rb#89 def on_casgn(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#12 + # source://parser/lib/parser/ast/processor.rb#12 def on_class(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#81 + # source://parser/lib/parser/ast/processor.rb#81 def on_const(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#12 + # source://parser/lib/parser/ast/processor.rb#12 def on_const_pattern(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#181 + # source://parser/lib/parser/ast/processor.rb#181 def on_csend(node); end # @api public # @private # - # source://parser//lib/parser/ast/processor.rb#34 + # source://parser/lib/parser/ast/processor.rb#34 def on_cvar(node); end # @api public # @private # - # source://parser//lib/parser/ast/processor.rb#58 + # source://parser/lib/parser/ast/processor.rb#58 def on_cvasgn(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#160 + # source://parser/lib/parser/ast/processor.rb#160 def on_def(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#12 + # source://parser/lib/parser/ast/processor.rb#12 def on_defined?(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#169 + # source://parser/lib/parser/ast/processor.rb#169 def on_defs(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#12 + # source://parser/lib/parser/ast/processor.rb#12 def on_dstr(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#12 + # source://parser/lib/parser/ast/processor.rb#12 def on_dsym(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#12 + # source://parser/lib/parser/ast/processor.rb#12 def on_eflipflop(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#288 + # source://parser/lib/parser/ast/processor.rb#288 def on_empty_else(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#12 + # source://parser/lib/parser/ast/processor.rb#12 def on_ensure(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#12 + # source://parser/lib/parser/ast/processor.rb#12 def on_erange(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#12 + # source://parser/lib/parser/ast/processor.rb#12 def on_find_pattern(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#12 + # source://parser/lib/parser/ast/processor.rb#12 def on_for(node); end # @api public # @private # - # source://parser//lib/parser/ast/processor.rb#118 + # source://parser/lib/parser/ast/processor.rb#118 def on_forward_arg(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#12 + # source://parser/lib/parser/ast/processor.rb#12 def on_forwarded_kwrestarg(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#12 + # source://parser/lib/parser/ast/processor.rb#12 def on_forwarded_restarg(node); end # @api public # @private # - # source://parser//lib/parser/ast/processor.rb#34 + # source://parser/lib/parser/ast/processor.rb#34 def on_gvar(node); end # @api public # @private # - # source://parser//lib/parser/ast/processor.rb#58 + # source://parser/lib/parser/ast/processor.rb#58 def on_gvasgn(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#12 + # source://parser/lib/parser/ast/processor.rb#12 def on_hash(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#12 + # source://parser/lib/parser/ast/processor.rb#12 def on_hash_pattern(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#12 + # source://parser/lib/parser/ast/processor.rb#12 def on_if(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#12 + # source://parser/lib/parser/ast/processor.rb#12 def on_if_guard(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#12 + # source://parser/lib/parser/ast/processor.rb#12 def on_iflipflop(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#12 + # source://parser/lib/parser/ast/processor.rb#12 def on_in_match(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#12 + # source://parser/lib/parser/ast/processor.rb#12 def on_in_pattern(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#12 + # source://parser/lib/parser/ast/processor.rb#12 def on_index(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#12 + # source://parser/lib/parser/ast/processor.rb#12 def on_indexasgn(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#12 + # source://parser/lib/parser/ast/processor.rb#12 def on_irange(node); end # @api public # @private # - # source://parser//lib/parser/ast/processor.rb#34 + # source://parser/lib/parser/ast/processor.rb#34 def on_ivar(node); end # @api public # @private # - # source://parser//lib/parser/ast/processor.rb#58 + # source://parser/lib/parser/ast/processor.rb#58 def on_ivasgn(node); end # @api public # @private # - # source://parser//lib/parser/ast/processor.rb#118 + # source://parser/lib/parser/ast/processor.rb#118 def on_kwarg(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#12 + # source://parser/lib/parser/ast/processor.rb#12 def on_kwargs(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#12 + # source://parser/lib/parser/ast/processor.rb#12 def on_kwbegin(node); end # @api public # @private # - # source://parser//lib/parser/ast/processor.rb#118 + # source://parser/lib/parser/ast/processor.rb#118 def on_kwoptarg(node); end # @api public # @private # - # source://parser//lib/parser/ast/processor.rb#118 + # source://parser/lib/parser/ast/processor.rb#118 def on_kwrestarg(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#12 + # source://parser/lib/parser/ast/processor.rb#12 def on_kwsplat(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#12 + # source://parser/lib/parser/ast/processor.rb#12 def on_lambda(node); end # @api public # @private # - # source://parser//lib/parser/ast/processor.rb#34 + # source://parser/lib/parser/ast/processor.rb#34 def on_lvar(node); end # @api public # @private # - # source://parser//lib/parser/ast/processor.rb#58 + # source://parser/lib/parser/ast/processor.rb#58 def on_lvasgn(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#12 + # source://parser/lib/parser/ast/processor.rb#12 def on_masgn(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#12 + # source://parser/lib/parser/ast/processor.rb#12 def on_match_alt(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#12 + # source://parser/lib/parser/ast/processor.rb#12 def on_match_as(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#12 + # source://parser/lib/parser/ast/processor.rb#12 def on_match_current_line(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#12 + # source://parser/lib/parser/ast/processor.rb#12 def on_match_pattern(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#12 + # source://parser/lib/parser/ast/processor.rb#12 def on_match_pattern_p(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#12 + # source://parser/lib/parser/ast/processor.rb#12 def on_match_rest(node); end # @api public # @private # - # source://parser//lib/parser/ast/processor.rb#34 + # source://parser/lib/parser/ast/processor.rb#34 def on_match_var(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#12 + # source://parser/lib/parser/ast/processor.rb#12 def on_match_with_lvasgn(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#12 + # source://parser/lib/parser/ast/processor.rb#12 def on_mlhs(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#12 + # source://parser/lib/parser/ast/processor.rb#12 def on_module(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#12 + # source://parser/lib/parser/ast/processor.rb#12 def on_next(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#12 + # source://parser/lib/parser/ast/processor.rb#12 def on_not(node); end # @api public # @private # - # source://parser//lib/parser/ast/processor.rb#34 + # source://parser/lib/parser/ast/processor.rb#34 def on_nth_ref(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#198 + # source://parser/lib/parser/ast/processor.rb#198 def on_numblock(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#70 + # source://parser/lib/parser/ast/processor.rb#70 def on_op_asgn(node); end # @api public # @private # - # source://parser//lib/parser/ast/processor.rb#118 + # source://parser/lib/parser/ast/processor.rb#118 def on_optarg(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#12 + # source://parser/lib/parser/ast/processor.rb#12 def on_or(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#12 + # source://parser/lib/parser/ast/processor.rb#12 def on_or_asgn(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#12 + # source://parser/lib/parser/ast/processor.rb#12 def on_pair(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#12 + # source://parser/lib/parser/ast/processor.rb#12 def on_pin(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#12 + # source://parser/lib/parser/ast/processor.rb#12 def on_postexe(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#12 + # source://parser/lib/parser/ast/processor.rb#12 def on_preexe(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#132 + # source://parser/lib/parser/ast/processor.rb#132 def on_procarg0(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#12 + # source://parser/lib/parser/ast/processor.rb#12 def on_redo(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#12 + # source://parser/lib/parser/ast/processor.rb#12 def on_regexp(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#12 + # source://parser/lib/parser/ast/processor.rb#12 def on_resbody(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#12 + # source://parser/lib/parser/ast/processor.rb#12 def on_rescue(node); end # @api public # @private # - # source://parser//lib/parser/ast/processor.rb#118 + # source://parser/lib/parser/ast/processor.rb#118 def on_restarg(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#12 + # source://parser/lib/parser/ast/processor.rb#12 def on_restarg_expr(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#12 + # source://parser/lib/parser/ast/processor.rb#12 def on_retry(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#12 + # source://parser/lib/parser/ast/processor.rb#12 def on_return(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#12 + # source://parser/lib/parser/ast/processor.rb#12 def on_sclass(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#181 + # source://parser/lib/parser/ast/processor.rb#181 def on_send(node); end # @api public # @private # - # source://parser//lib/parser/ast/processor.rb#118 + # source://parser/lib/parser/ast/processor.rb#118 def on_shadowarg(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#12 + # source://parser/lib/parser/ast/processor.rb#12 def on_splat(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#12 + # source://parser/lib/parser/ast/processor.rb#12 def on_super(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#12 + # source://parser/lib/parser/ast/processor.rb#12 def on_undef(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#12 + # source://parser/lib/parser/ast/processor.rb#12 def on_unless_guard(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#12 + # source://parser/lib/parser/ast/processor.rb#12 def on_until(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#12 + # source://parser/lib/parser/ast/processor.rb#12 def on_until_post(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#29 + # source://parser/lib/parser/ast/processor.rb#29 def on_var(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#45 + # source://parser/lib/parser/ast/processor.rb#45 def on_vasgn(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#12 + # source://parser/lib/parser/ast/processor.rb#12 def on_when(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#12 + # source://parser/lib/parser/ast/processor.rb#12 def on_while(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#12 + # source://parser/lib/parser/ast/processor.rb#12 def on_while_post(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#12 + # source://parser/lib/parser/ast/processor.rb#12 def on_xstr(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#12 + # source://parser/lib/parser/ast/processor.rb#12 def on_yield(node); end # @api public # @private # - # source://parser//lib/parser/ast/processor.rb#281 + # source://parser/lib/parser/ast/processor.rb#281 def process_argument_node(node); end # @api public # - # source://parser//lib/parser/ast/processor.rb#12 + # source://parser/lib/parser/ast/processor.rb#12 def process_regular_node(node); end # @api public # @private # - # source://parser//lib/parser/ast/processor.rb#273 + # source://parser/lib/parser/ast/processor.rb#273 def process_var_asgn_node(node); end # @api public # @private # - # source://parser//lib/parser/ast/processor.rb#265 + # source://parser/lib/parser/ast/processor.rb#265 def process_variable_node(node); end end @@ -659,44 +659,44 @@ end # # @api public # -# source://parser//lib/parser/base.rb#16 +# source://parser/lib/parser/base.rb#16 class Parser::Base < ::Racc::Parser # @api public # @param builder [Parser::Builders::Default] The AST builder to use. # @return [Base] a new instance of Base # - # source://parser//lib/parser/base.rb#126 + # source://parser/lib/parser/base.rb#126 def initialize(builder = T.unsafe(nil)); end # @api public # - # source://parser//lib/parser/base.rb#114 + # source://parser/lib/parser/base.rb#114 def builder; end # @api public # - # source://parser//lib/parser/base.rb#117 + # source://parser/lib/parser/base.rb#117 def context; end # @api public # - # source://parser//lib/parser/base.rb#119 + # source://parser/lib/parser/base.rb#119 def current_arg_stack; end # @api public # @return [Parser::Diagnostic::Engine] # - # source://parser//lib/parser/base.rb#113 + # source://parser/lib/parser/base.rb#113 def diagnostics; end # @api public # - # source://parser//lib/parser/base.rb#112 + # source://parser/lib/parser/base.rb#112 def lexer; end # @api public # - # source://parser//lib/parser/base.rb#118 + # source://parser/lib/parser/base.rb#118 def max_numparam_stack; end # Parses a source buffer and returns the AST, or `nil` in case of a non fatal error. @@ -705,7 +705,7 @@ class Parser::Base < ::Racc::Parser # @param source_buffer [Parser::Source::Buffer] The source buffer to parse. # @return [Parser::AST::Node, nil] # - # source://parser//lib/parser/base.rb#186 + # source://parser/lib/parser/base.rb#186 def parse(source_buffer); end # Parses a source buffer and returns the AST and the source code comments. @@ -715,35 +715,35 @@ class Parser::Base < ::Racc::Parser # @see #parse # @see Parser::Source::Comment#associate # - # source://parser//lib/parser/base.rb#204 + # source://parser/lib/parser/base.rb#204 def parse_with_comments(source_buffer); end # @api public # - # source://parser//lib/parser/base.rb#121 + # source://parser/lib/parser/base.rb#121 def pattern_hash_keys; end # @api public # - # source://parser//lib/parser/base.rb#120 + # source://parser/lib/parser/base.rb#120 def pattern_variables; end # Resets the state of the parser. # # @api public # - # source://parser//lib/parser/base.rb#167 + # source://parser/lib/parser/base.rb#167 def reset; end # @api public # - # source://parser//lib/parser/base.rb#116 + # source://parser/lib/parser/base.rb#116 def source_buffer; end # @api public # @return [Parser::StaticEnvironment] # - # source://parser//lib/parser/base.rb#115 + # source://parser/lib/parser/base.rb#115 def static_env; end # Parses a source buffer and returns the AST, the source code comments, @@ -767,36 +767,36 @@ class Parser::Base < ::Racc::Parser # @param recover [Boolean] If true, recover from syntax errors. False by default. # @return [Array] # - # source://parser//lib/parser/base.rb#233 + # source://parser/lib/parser/base.rb#233 def tokenize(source_buffer, recover = T.unsafe(nil)); end private # @api public # - # source://parser//lib/parser/base.rb#257 + # source://parser/lib/parser/base.rb#257 def check_kwarg_name(name_t); end # @api public # - # source://parser//lib/parser/base.rb#266 + # source://parser/lib/parser/base.rb#266 def diagnostic(level, reason, arguments, location_t, highlights_ts = T.unsafe(nil)); end # @api public # - # source://parser//lib/parser/base.rb#251 + # source://parser/lib/parser/base.rb#251 def next_token; end # @api public # - # source://parser//lib/parser/base.rb#282 + # source://parser/lib/parser/base.rb#282 def on_error(error_token_id, error_value, value_stack); end class << self # @api public # @return [Parser::Base] parser with the default options set. # - # source://parser//lib/parser/base.rb#84 + # source://parser/lib/parser/base.rb#84 def default_parser; end # Parses a string of Ruby code and returns the AST. If the source @@ -811,7 +811,7 @@ class Parser::Base < ::Racc::Parser # @param line [Numeric] The initial line number. # @return [Parser::AST::Node] # - # source://parser//lib/parser/base.rb#30 + # source://parser/lib/parser/base.rb#30 def parse(string, file = T.unsafe(nil), line = T.unsafe(nil)); end # Parses Ruby source code by reading it from a file. If the source @@ -823,7 +823,7 @@ class Parser::Base < ::Racc::Parser # @return [Parser::AST::Node] # @see #parse # - # source://parser//lib/parser/base.rb#64 + # source://parser/lib/parser/base.rb#64 def parse_file(filename); end # Parses Ruby source code by reading it from a file and returns the AST and @@ -835,7 +835,7 @@ class Parser::Base < ::Racc::Parser # @return [Array] # @see #parse # - # source://parser//lib/parser/base.rb#77 + # source://parser/lib/parser/base.rb#77 def parse_file_with_comments(filename); end # Parses a string of Ruby code and returns the AST and comments. If the @@ -850,680 +850,680 @@ class Parser::Base < ::Racc::Parser # @param line [Numeric] The initial line number. # @return [Array] # - # source://parser//lib/parser/base.rb#49 + # source://parser/lib/parser/base.rb#49 def parse_with_comments(string, file = T.unsafe(nil), line = T.unsafe(nil)); end private # @api public # - # source://parser//lib/parser/base.rb#97 + # source://parser/lib/parser/base.rb#97 def setup_source_buffer(file, line, string, encoding); end end end # @api public # -# source://parser//lib/parser.rb#78 +# source://parser/lib/parser.rb#78 module Parser::Builders; end -# source://parser//lib/parser/builders/default.rb#8 +# source://parser/lib/parser/builders/default.rb#8 class Parser::Builders::Default - # source://parser//lib/parser/builders/default.rb#243 + # source://parser/lib/parser/builders/default.rb#243 def initialize; end - # source://parser//lib/parser/builders/default.rb#703 + # source://parser/lib/parser/builders/default.rb#703 def __ENCODING__(__ENCODING__t); end - # source://parser//lib/parser/builders/default.rb#348 + # source://parser/lib/parser/builders/default.rb#348 def __FILE__(__FILE__t); end - # source://parser//lib/parser/builders/default.rb#312 + # source://parser/lib/parser/builders/default.rb#312 def __LINE__(__LINE__t); end - # source://parser//lib/parser/builders/default.rb#622 + # source://parser/lib/parser/builders/default.rb#622 def accessible(node); end - # source://parser//lib/parser/builders/default.rb#878 + # source://parser/lib/parser/builders/default.rb#878 def alias(alias_t, to, from); end - # source://parser//lib/parser/builders/default.rb#917 + # source://parser/lib/parser/builders/default.rb#917 def arg(name_t); end - # source://parser//lib/parser/builders/default.rb#1007 + # source://parser/lib/parser/builders/default.rb#1007 def arg_expr(expr); end - # source://parser//lib/parser/builders/default.rb#887 + # source://parser/lib/parser/builders/default.rb#887 def args(begin_t, args, end_t, check_args = T.unsafe(nil)); end - # source://parser//lib/parser/builders/default.rb#440 + # source://parser/lib/parser/builders/default.rb#440 def array(begin_t, elements, end_t); end - # source://parser//lib/parser/builders/default.rb#1590 + # source://parser/lib/parser/builders/default.rb#1590 def array_pattern(lbrack_t, elements, rbrack_t); end - # source://parser//lib/parser/builders/default.rb#767 + # source://parser/lib/parser/builders/default.rb#767 def assign(lhs, eql_t, rhs); end - # source://parser//lib/parser/builders/default.rb#712 + # source://parser/lib/parser/builders/default.rb#712 def assignable(node); end - # source://parser//lib/parser/builders/default.rb#540 + # source://parser/lib/parser/builders/default.rb#540 def associate(begin_t, pairs, end_t); end - # source://parser//lib/parser/builders/default.rb#1171 + # source://parser/lib/parser/builders/default.rb#1171 def attr_asgn(receiver, dot_t, selector_t); end - # source://parser//lib/parser/builders/default.rb#612 + # source://parser/lib/parser/builders/default.rb#612 def back_ref(token); end - # source://parser//lib/parser/builders/default.rb#1435 + # source://parser/lib/parser/builders/default.rb#1435 def begin(begin_t, body, end_t); end - # source://parser//lib/parser/builders/default.rb#1377 + # source://parser/lib/parser/builders/default.rb#1377 def begin_body(compound_stmt, rescue_bodies = T.unsafe(nil), else_t = T.unsafe(nil), else_ = T.unsafe(nil), ensure_t = T.unsafe(nil), ensure_ = T.unsafe(nil)); end - # source://parser//lib/parser/builders/default.rb#1453 + # source://parser/lib/parser/builders/default.rb#1453 def begin_keyword(begin_t, body, end_t); end - # source://parser//lib/parser/builders/default.rb#1205 + # source://parser/lib/parser/builders/default.rb#1205 def binary_op(receiver, operator_t, arg); end - # source://parser//lib/parser/builders/default.rb#1122 + # source://parser/lib/parser/builders/default.rb#1122 def block(method_call, begin_t, args, body, end_t); end - # source://parser//lib/parser/builders/default.rb#1157 + # source://parser/lib/parser/builders/default.rb#1157 def block_pass(amper_t, arg); end - # source://parser//lib/parser/builders/default.rb#982 + # source://parser/lib/parser/builders/default.rb#982 def blockarg(amper_t, name_t); end - # source://parser//lib/parser/builders/default.rb#1027 + # source://parser/lib/parser/builders/default.rb#1027 def blockarg_expr(amper_t, expr); end - # source://parser//lib/parser/builders/default.rb#1113 + # source://parser/lib/parser/builders/default.rb#1113 def call_lambda(lambda_t); end - # source://parser//lib/parser/builders/default.rb#1096 + # source://parser/lib/parser/builders/default.rb#1096 def call_method(receiver, dot_t, selector_t, lparen_t = T.unsafe(nil), args = T.unsafe(nil), rparen_t = T.unsafe(nil)); end - # source://parser//lib/parser/builders/default.rb#1068 + # source://parser/lib/parser/builders/default.rb#1068 def call_type_for_dot(dot_t); end - # source://parser//lib/parser/builders/default.rb#1310 + # source://parser/lib/parser/builders/default.rb#1310 def case(case_t, expr, when_bodies, else_t, else_body, end_t); end - # source://parser//lib/parser/builders/default.rb#1473 + # source://parser/lib/parser/builders/default.rb#1473 def case_match(case_t, expr, in_bodies, else_t, else_body, end_t); end - # source://parser//lib/parser/builders/default.rb#343 + # source://parser/lib/parser/builders/default.rb#343 def character(char_t); end - # source://parser//lib/parser/builders/default.rb#284 + # source://parser/lib/parser/builders/default.rb#284 def complex(complex_t); end - # source://parser//lib/parser/builders/default.rb#1423 + # source://parser/lib/parser/builders/default.rb#1423 def compstmt(statements); end - # source://parser//lib/parser/builders/default.rb#1286 + # source://parser/lib/parser/builders/default.rb#1286 def condition(cond_t, cond, then_t, if_true, else_t, if_false, end_t); end - # source://parser//lib/parser/builders/default.rb#1292 + # source://parser/lib/parser/builders/default.rb#1292 def condition_mod(if_true, if_false, cond_t, cond); end - # source://parser//lib/parser/builders/default.rb#686 + # source://parser/lib/parser/builders/default.rb#686 def const(name_t); end - # source://parser//lib/parser/builders/default.rb#698 + # source://parser/lib/parser/builders/default.rb#698 def const_fetch(scope, t_colon2, name_t); end - # source://parser//lib/parser/builders/default.rb#691 + # source://parser/lib/parser/builders/default.rb#691 def const_global(t_colon3, name_t); end - # source://parser//lib/parser/builders/default.rb#763 + # source://parser/lib/parser/builders/default.rb#763 def const_op_assignable(node); end - # source://parser//lib/parser/builders/default.rb#1620 + # source://parser/lib/parser/builders/default.rb#1620 def const_pattern(const, ldelim_t, pattern, rdelim_t); end - # source://parser//lib/parser/builders/default.rb#607 + # source://parser/lib/parser/builders/default.rb#607 def cvar(token); end - # source://parser//lib/parser/builders/default.rb#388 + # source://parser/lib/parser/builders/default.rb#388 def dedent_string(node, dedent_level); end - # source://parser//lib/parser/builders/default.rb#814 + # source://parser/lib/parser/builders/default.rb#814 def def_class(class_t, name, lt_t, superclass, body, end_t); end - # source://parser//lib/parser/builders/default.rb#845 + # source://parser/lib/parser/builders/default.rb#845 def def_endless_method(def_t, name_t, args, assignment_t, body); end - # source://parser//lib/parser/builders/default.rb#863 + # source://parser/lib/parser/builders/default.rb#863 def def_endless_singleton(def_t, definee, dot_t, name_t, args, assignment_t, body); end - # source://parser//lib/parser/builders/default.rb#837 + # source://parser/lib/parser/builders/default.rb#837 def def_method(def_t, name_t, args, body, end_t); end - # source://parser//lib/parser/builders/default.rb#827 + # source://parser/lib/parser/builders/default.rb#827 def def_module(module_t, name, body, end_t); end - # source://parser//lib/parser/builders/default.rb#821 + # source://parser/lib/parser/builders/default.rb#821 def def_sclass(class_t, lshft_t, expr, body, end_t); end - # source://parser//lib/parser/builders/default.rb#853 + # source://parser/lib/parser/builders/default.rb#853 def def_singleton(def_t, definee, dot_t, name_t, args, body, end_t); end - # source://parser//lib/parser/builders/default.rb#237 + # source://parser/lib/parser/builders/default.rb#237 def emit_file_line_as_literals; end - # source://parser//lib/parser/builders/default.rb#237 + # source://parser/lib/parser/builders/default.rb#237 def emit_file_line_as_literals=(_arg0); end - # source://parser//lib/parser/builders/default.rb#265 + # source://parser/lib/parser/builders/default.rb#265 def false(false_t); end - # source://parser//lib/parser/builders/default.rb#1611 + # source://parser/lib/parser/builders/default.rb#1611 def find_pattern(lbrack_t, elements, rbrack_t); end - # source://parser//lib/parser/builders/default.rb#276 + # source://parser/lib/parser/builders/default.rb#276 def float(float_t); end - # source://parser//lib/parser/builders/default.rb#1331 + # source://parser/lib/parser/builders/default.rb#1331 def for(for_t, iterator, in_t, iteratee, do_t, body, end_t); end - # source://parser//lib/parser/builders/default.rb#913 + # source://parser/lib/parser/builders/default.rb#913 def forward_arg(dots_t); end - # source://parser//lib/parser/builders/default.rb#903 + # source://parser/lib/parser/builders/default.rb#903 def forward_only_args(begin_t, dots_t, end_t); end - # source://parser//lib/parser/builders/default.rb#1084 + # source://parser/lib/parser/builders/default.rb#1084 def forwarded_args(dots_t); end - # source://parser//lib/parser/builders/default.rb#1092 + # source://parser/lib/parser/builders/default.rb#1092 def forwarded_kwrestarg(dstar_t); end - # source://parser//lib/parser/builders/default.rb#1088 + # source://parser/lib/parser/builders/default.rb#1088 def forwarded_restarg(star_t); end - # source://parser//lib/parser/builders/default.rb#596 + # source://parser/lib/parser/builders/default.rb#596 def gvar(token); end - # source://parser//lib/parser/builders/default.rb#1584 + # source://parser/lib/parser/builders/default.rb#1584 def hash_pattern(lbrace_t, kwargs, rbrace_t); end - # source://parser//lib/parser/builders/default.rb#586 + # source://parser/lib/parser/builders/default.rb#586 def ident(token); end - # source://parser//lib/parser/builders/default.rb#1500 + # source://parser/lib/parser/builders/default.rb#1500 def if_guard(if_t, if_body); end - # source://parser//lib/parser/builders/default.rb#1479 + # source://parser/lib/parser/builders/default.rb#1479 def in_match(lhs, in_t, rhs); end - # source://parser//lib/parser/builders/default.rb#1494 + # source://parser/lib/parser/builders/default.rb#1494 def in_pattern(in_t, pattern, guard, then_t, body); end - # source://parser//lib/parser/builders/default.rb#1180 + # source://parser/lib/parser/builders/default.rb#1180 def index(receiver, lbrack_t, indexes, rbrack_t); end - # source://parser//lib/parser/builders/default.rb#1194 + # source://parser/lib/parser/builders/default.rb#1194 def index_asgn(receiver, lbrack_t, indexes, rbrack_t); end - # source://parser//lib/parser/builders/default.rb#272 + # source://parser/lib/parser/builders/default.rb#272 def integer(integer_t); end - # source://parser//lib/parser/builders/default.rb#591 + # source://parser/lib/parser/builders/default.rb#591 def ivar(token); end - # source://parser//lib/parser/builders/default.rb#1339 + # source://parser/lib/parser/builders/default.rb#1339 def keyword_cmd(type, keyword_t, lparen_t = T.unsafe(nil), args = T.unsafe(nil), rparen_t = T.unsafe(nil)); end - # source://parser//lib/parser/builders/default.rb#944 + # source://parser/lib/parser/builders/default.rb#944 def kwarg(name_t); end - # source://parser//lib/parser/builders/default.rb#970 + # source://parser/lib/parser/builders/default.rb#970 def kwnilarg(dstar_t, nil_t); end - # source://parser//lib/parser/builders/default.rb#951 + # source://parser/lib/parser/builders/default.rb#951 def kwoptarg(name_t, value); end - # source://parser//lib/parser/builders/default.rb#958 + # source://parser/lib/parser/builders/default.rb#958 def kwrestarg(dstar_t, name_t = T.unsafe(nil)); end - # source://parser//lib/parser/builders/default.rb#535 + # source://parser/lib/parser/builders/default.rb#535 def kwsplat(dstar_t, arg); end - # source://parser//lib/parser/builders/default.rb#1279 + # source://parser/lib/parser/builders/default.rb#1279 def logical_op(type, lhs, op_t, rhs); end - # source://parser//lib/parser/builders/default.rb#1317 + # source://parser/lib/parser/builders/default.rb#1317 def loop(type, keyword_t, cond, do_t, body, end_t); end - # source://parser//lib/parser/builders/default.rb#1322 + # source://parser/lib/parser/builders/default.rb#1322 def loop_mod(type, body, keyword_t, cond); end - # source://parser//lib/parser/builders/default.rb#1634 + # source://parser/lib/parser/builders/default.rb#1634 def match_alt(left, pipe_t, right); end - # source://parser//lib/parser/builders/default.rb#1641 + # source://parser/lib/parser/builders/default.rb#1641 def match_as(value, assoc_t, as); end - # source://parser//lib/parser/builders/default.rb#1520 + # source://parser/lib/parser/builders/default.rb#1520 def match_hash_var(name_t); end - # source://parser//lib/parser/builders/default.rb#1534 + # source://parser/lib/parser/builders/default.rb#1534 def match_hash_var_from_str(begin_t, strings, end_t); end - # source://parser//lib/parser/builders/default.rb#1672 + # source://parser/lib/parser/builders/default.rb#1672 def match_label(label_type, label); end - # source://parser//lib/parser/builders/default.rb#1648 + # source://parser/lib/parser/builders/default.rb#1648 def match_nil_pattern(dstar_t, nil_t); end - # source://parser//lib/parser/builders/default.rb#1227 + # source://parser/lib/parser/builders/default.rb#1227 def match_op(receiver, match_t, arg); end - # source://parser//lib/parser/builders/default.rb#1653 + # source://parser/lib/parser/builders/default.rb#1653 def match_pair(label_type, label, value); end - # source://parser//lib/parser/builders/default.rb#1484 + # source://parser/lib/parser/builders/default.rb#1484 def match_pattern(lhs, match_t, rhs); end - # source://parser//lib/parser/builders/default.rb#1489 + # source://parser/lib/parser/builders/default.rb#1489 def match_pattern_p(lhs, match_t, rhs); end - # source://parser//lib/parser/builders/default.rb#1573 + # source://parser/lib/parser/builders/default.rb#1573 def match_rest(star_t, name_t = T.unsafe(nil)); end - # source://parser//lib/parser/builders/default.rb#1508 + # source://parser/lib/parser/builders/default.rb#1508 def match_var(name_t); end - # source://parser//lib/parser/builders/default.rb#1616 + # source://parser/lib/parser/builders/default.rb#1616 def match_with_trailing_comma(match, comma_t); end - # source://parser//lib/parser/builders/default.rb#805 + # source://parser/lib/parser/builders/default.rb#805 def multi_assign(lhs, eql_t, rhs); end - # source://parser//lib/parser/builders/default.rb#800 + # source://parser/lib/parser/builders/default.rb#800 def multi_lhs(begin_t, items, end_t); end - # source://parser//lib/parser/builders/default.rb#255 + # source://parser/lib/parser/builders/default.rb#255 def nil(nil_t); end - # source://parser//lib/parser/builders/default.rb#1255 + # source://parser/lib/parser/builders/default.rb#1255 def not_op(not_t, begin_t = T.unsafe(nil), receiver = T.unsafe(nil), end_t = T.unsafe(nil)); end - # source://parser//lib/parser/builders/default.rb#617 + # source://parser/lib/parser/builders/default.rb#617 def nth_ref(token); end - # source://parser//lib/parser/builders/default.rb#899 + # source://parser/lib/parser/builders/default.rb#899 def numargs(max_numparam); end - # source://parser//lib/parser/builders/default.rb#1038 + # source://parser/lib/parser/builders/default.rb#1038 def objc_kwarg(kwname_t, assoc_t, name_t); end - # source://parser//lib/parser/builders/default.rb#1052 + # source://parser/lib/parser/builders/default.rb#1052 def objc_restarg(star_t, name = T.unsafe(nil)); end - # source://parser//lib/parser/builders/default.rb#1162 + # source://parser/lib/parser/builders/default.rb#1162 def objc_varargs(pair, rest_of_varargs); end - # source://parser//lib/parser/builders/default.rb#774 + # source://parser/lib/parser/builders/default.rb#774 def op_assign(lhs, op_t, rhs); end - # source://parser//lib/parser/builders/default.rb#924 + # source://parser/lib/parser/builders/default.rb#924 def optarg(name_t, eql_t, value); end - # source://parser//lib/parser/builders/default.rb#488 + # source://parser/lib/parser/builders/default.rb#488 def pair(key, assoc_t, value); end - # source://parser//lib/parser/builders/default.rb#505 + # source://parser/lib/parser/builders/default.rb#505 def pair_keyword(key_t, value); end - # source://parser//lib/parser/builders/default.rb#521 + # source://parser/lib/parser/builders/default.rb#521 def pair_label(key_t); end - # source://parser//lib/parser/builders/default.rb#493 + # source://parser/lib/parser/builders/default.rb#493 def pair_list_18(list); end - # source://parser//lib/parser/builders/default.rb#513 + # source://parser/lib/parser/builders/default.rb#513 def pair_quoted(begin_t, parts, end_t, value); end - # source://parser//lib/parser/builders/default.rb#225 + # source://parser/lib/parser/builders/default.rb#225 def parser; end - # source://parser//lib/parser/builders/default.rb#225 + # source://parser/lib/parser/builders/default.rb#225 def parser=(_arg0); end - # source://parser//lib/parser/builders/default.rb#1629 + # source://parser/lib/parser/builders/default.rb#1629 def pin(pin_t, var); end - # source://parser//lib/parser/builders/default.rb#1362 + # source://parser/lib/parser/builders/default.rb#1362 def postexe(postexe_t, lbrace_t, compstmt, rbrace_t); end - # source://parser//lib/parser/builders/default.rb#1357 + # source://parser/lib/parser/builders/default.rb#1357 def preexe(preexe_t, lbrace_t, compstmt, rbrace_t); end - # source://parser//lib/parser/builders/default.rb#992 + # source://parser/lib/parser/builders/default.rb#992 def procarg0(arg); end - # source://parser//lib/parser/builders/default.rb#572 + # source://parser/lib/parser/builders/default.rb#572 def range_exclusive(lhs, dot3_t, rhs); end - # source://parser//lib/parser/builders/default.rb#567 + # source://parser/lib/parser/builders/default.rb#567 def range_inclusive(lhs, dot2_t, rhs); end - # source://parser//lib/parser/builders/default.rb#280 + # source://parser/lib/parser/builders/default.rb#280 def rational(rational_t); end - # source://parser//lib/parser/builders/default.rb#426 + # source://parser/lib/parser/builders/default.rb#426 def regexp_compose(begin_t, parts, end_t, options); end - # source://parser//lib/parser/builders/default.rb#417 + # source://parser/lib/parser/builders/default.rb#417 def regexp_options(regopt_t); end - # source://parser//lib/parser/builders/default.rb#1369 + # source://parser/lib/parser/builders/default.rb#1369 def rescue_body(rescue_t, exc_list, assoc_t, exc_var, then_t, compound_stmt); end - # source://parser//lib/parser/builders/default.rb#933 + # source://parser/lib/parser/builders/default.rb#933 def restarg(star_t, name_t = T.unsafe(nil)); end - # source://parser//lib/parser/builders/default.rb#1016 + # source://parser/lib/parser/builders/default.rb#1016 def restarg_expr(star_t, expr = T.unsafe(nil)); end - # source://parser//lib/parser/builders/default.rb#581 + # source://parser/lib/parser/builders/default.rb#581 def self(token); end - # source://parser//lib/parser/builders/default.rb#975 + # source://parser/lib/parser/builders/default.rb#975 def shadowarg(name_t); end - # source://parser//lib/parser/builders/default.rb#445 + # source://parser/lib/parser/builders/default.rb#445 def splat(star_t, arg = T.unsafe(nil)); end - # source://parser//lib/parser/builders/default.rb#319 + # source://parser/lib/parser/builders/default.rb#319 def string(string_t); end - # source://parser//lib/parser/builders/default.rb#329 + # source://parser/lib/parser/builders/default.rb#329 def string_compose(begin_t, parts, end_t); end - # source://parser//lib/parser/builders/default.rb#324 + # source://parser/lib/parser/builders/default.rb#324 def string_internal(string_t); end - # source://parser//lib/parser/builders/default.rb#355 + # source://parser/lib/parser/builders/default.rb#355 def symbol(symbol_t); end - # source://parser//lib/parser/builders/default.rb#365 + # source://parser/lib/parser/builders/default.rb#365 def symbol_compose(begin_t, parts, end_t); end - # source://parser//lib/parser/builders/default.rb#360 + # source://parser/lib/parser/builders/default.rb#360 def symbol_internal(symbol_t); end - # source://parser//lib/parser/builders/default.rb#469 + # source://parser/lib/parser/builders/default.rb#469 def symbols_compose(begin_t, parts, end_t); end - # source://parser//lib/parser/builders/default.rb#1297 + # source://parser/lib/parser/builders/default.rb#1297 def ternary(cond, question_t, if_true, colon_t, if_false); end - # source://parser//lib/parser/builders/default.rb#260 + # source://parser/lib/parser/builders/default.rb#260 def true(true_t); end - # source://parser//lib/parser/builders/default.rb#294 + # source://parser/lib/parser/builders/default.rb#294 def unary_num(unary_t, numeric); end - # source://parser//lib/parser/builders/default.rb#1243 + # source://parser/lib/parser/builders/default.rb#1243 def unary_op(op_t, receiver); end - # source://parser//lib/parser/builders/default.rb#873 + # source://parser/lib/parser/builders/default.rb#873 def undef_method(undef_t, names); end - # source://parser//lib/parser/builders/default.rb#1504 + # source://parser/lib/parser/builders/default.rb#1504 def unless_guard(unless_t, unless_body); end - # source://parser//lib/parser/builders/default.rb#1304 + # source://parser/lib/parser/builders/default.rb#1304 def when(when_t, patterns, then_t, body); end - # source://parser//lib/parser/builders/default.rb#455 + # source://parser/lib/parser/builders/default.rb#455 def word(parts); end - # source://parser//lib/parser/builders/default.rb#464 + # source://parser/lib/parser/builders/default.rb#464 def words_compose(begin_t, parts, end_t); end - # source://parser//lib/parser/builders/default.rb#381 + # source://parser/lib/parser/builders/default.rb#381 def xstring_compose(begin_t, parts, end_t); end private - # source://parser//lib/parser/builders/default.rb#1821 + # source://parser/lib/parser/builders/default.rb#1821 def arg_name_collides?(this_name, that_name); end - # source://parser//lib/parser/builders/default.rb#2017 + # source://parser/lib/parser/builders/default.rb#2017 def arg_prefix_map(op_t, name_t = T.unsafe(nil)); end - # source://parser//lib/parser/builders/default.rb#1991 + # source://parser/lib/parser/builders/default.rb#1991 def binary_op_map(left_e, op_t, right_e); end - # source://parser//lib/parser/builders/default.rb#2119 + # source://parser/lib/parser/builders/default.rb#2119 def block_map(receiver_l, begin_t, end_t); end - # source://parser//lib/parser/builders/default.rb#1796 + # source://parser/lib/parser/builders/default.rb#1796 def check_assignment_to_numparam(name, loc); end - # source://parser//lib/parser/builders/default.rb#1688 + # source://parser/lib/parser/builders/default.rb#1688 def check_condition(cond); end - # source://parser//lib/parser/builders/default.rb#1767 + # source://parser/lib/parser/builders/default.rb#1767 def check_duplicate_arg(this_arg, map = T.unsafe(nil)); end - # source://parser//lib/parser/builders/default.rb#1742 + # source://parser/lib/parser/builders/default.rb#1742 def check_duplicate_args(args, map = T.unsafe(nil)); end - # source://parser//lib/parser/builders/default.rb#1854 + # source://parser/lib/parser/builders/default.rb#1854 def check_duplicate_pattern_key(name, loc); end - # source://parser//lib/parser/builders/default.rb#1844 + # source://parser/lib/parser/builders/default.rb#1844 def check_duplicate_pattern_variable(name, loc); end - # source://parser//lib/parser/builders/default.rb#1836 + # source://parser/lib/parser/builders/default.rb#1836 def check_lvar_name(name, loc); end - # source://parser//lib/parser/builders/default.rb#1811 + # source://parser/lib/parser/builders/default.rb#1811 def check_reserved_for_numparam(name, loc); end - # source://parser//lib/parser/builders/default.rb#2280 + # source://parser/lib/parser/builders/default.rb#2280 def collapse_string_parts?(parts); end - # source://parser//lib/parser/builders/default.rb#1942 + # source://parser/lib/parser/builders/default.rb#1942 def collection_map(begin_t, parts, end_t); end - # source://parser//lib/parser/builders/default.rb#2146 + # source://parser/lib/parser/builders/default.rb#2146 def condition_map(keyword_t, cond_e, begin_t, body_e, else_t, else_e, end_t); end - # source://parser//lib/parser/builders/default.rb#1977 + # source://parser/lib/parser/builders/default.rb#1977 def constant_map(scope, colon2_t, name_t); end - # source://parser//lib/parser/builders/default.rb#2050 + # source://parser/lib/parser/builders/default.rb#2050 def definition_map(keyword_t, operator_t, name_t, end_t); end - # source://parser//lib/parser/builders/default.rb#1883 + # source://parser/lib/parser/builders/default.rb#1883 def delimited_string_map(string_t); end - # source://parser//lib/parser/builders/default.rb#2302 + # source://parser/lib/parser/builders/default.rb#2302 def diagnostic(type, reason, arguments, location, highlights = T.unsafe(nil)); end - # source://parser//lib/parser/builders/default.rb#2190 + # source://parser/lib/parser/builders/default.rb#2190 def eh_keyword_map(compstmt_e, keyword_t, body_es, else_t, else_e); end - # source://parser//lib/parser/builders/default.rb#2056 + # source://parser/lib/parser/builders/default.rb#2056 def endless_definition_map(keyword_t, operator_t, name_t, assignment_t, body_e); end - # source://parser//lib/parser/builders/default.rb#1938 + # source://parser/lib/parser/builders/default.rb#1938 def expr_map(loc); end - # source://parser//lib/parser/builders/default.rb#2171 + # source://parser/lib/parser/builders/default.rb#2171 def for_map(keyword_t, in_t, begin_t, end_t); end - # source://parser//lib/parser/builders/default.rb#2218 + # source://parser/lib/parser/builders/default.rb#2218 def guard_map(keyword_t, guard_body_e); end - # source://parser//lib/parser/builders/default.rb#2108 + # source://parser/lib/parser/builders/default.rb#2108 def index_map(receiver_e, lbrack_t, rbrack_t); end - # source://parser//lib/parser/builders/default.rb#1874 + # source://parser/lib/parser/builders/default.rb#1874 def join_exprs(left_expr, right_expr); end - # source://parser//lib/parser/builders/default.rb#2124 + # source://parser/lib/parser/builders/default.rb#2124 def keyword_map(keyword_t, begin_t, args, end_t); end - # source://parser//lib/parser/builders/default.rb#2141 + # source://parser/lib/parser/builders/default.rb#2141 def keyword_mod_map(pre_e, keyword_t, post_e); end - # source://parser//lib/parser/builders/default.rb#2027 + # source://parser/lib/parser/builders/default.rb#2027 def kwarg_map(name_t, value_e = T.unsafe(nil)); end - # source://parser//lib/parser/builders/default.rb#2333 + # source://parser/lib/parser/builders/default.rb#2333 def kwargs?(node); end - # source://parser//lib/parser/builders/default.rb#2297 + # source://parser/lib/parser/builders/default.rb#2297 def loc(token); end - # source://parser//lib/parser/builders/default.rb#2040 + # source://parser/lib/parser/builders/default.rb#2040 def module_definition_map(keyword_t, name_e, operator_t, end_t); end - # source://parser//lib/parser/builders/default.rb#1866 + # source://parser/lib/parser/builders/default.rb#1866 def n(type, children, source_map); end - # source://parser//lib/parser/builders/default.rb#1870 + # source://parser/lib/parser/builders/default.rb#1870 def n0(type, source_map); end - # source://parser//lib/parser/builders/default.rb#288 + # source://parser/lib/parser/builders/default.rb#288 def numeric(kind, token); end - # source://parser//lib/parser/builders/default.rb#1908 + # source://parser/lib/parser/builders/default.rb#1908 def pair_keyword_map(key_t, value_e); end - # source://parser//lib/parser/builders/default.rb#1923 + # source://parser/lib/parser/builders/default.rb#1923 def pair_quoted_map(begin_t, end_t, value_e); end - # source://parser//lib/parser/builders/default.rb#1894 + # source://parser/lib/parser/builders/default.rb#1894 def prefix_string_map(symbol); end - # source://parser//lib/parser/builders/default.rb#2005 + # source://parser/lib/parser/builders/default.rb#2005 def range_map(start_e, op_t, end_e); end - # source://parser//lib/parser/builders/default.rb#1972 + # source://parser/lib/parser/builders/default.rb#1972 def regexp_map(begin_t, end_t, options_e); end - # source://parser//lib/parser/builders/default.rb#2177 + # source://parser/lib/parser/builders/default.rb#2177 def rescue_body_map(keyword_t, exc_list_e, assoc_t, exc_var_e, then_t, compstmt_e); end - # source://parser//lib/parser/builders/default.rb#2323 + # source://parser/lib/parser/builders/default.rb#2323 def rewrite_hash_args_to_kwargs(args); end - # source://parser//lib/parser/builders/default.rb#2090 + # source://parser/lib/parser/builders/default.rb#2090 def send_binary_op_map(lhs_e, selector_t, rhs_e); end - # source://parser//lib/parser/builders/default.rb#2113 + # source://parser/lib/parser/builders/default.rb#2113 def send_index_map(receiver_e, lbrack_t, rbrack_t); end - # source://parser//lib/parser/builders/default.rb#2064 + # source://parser/lib/parser/builders/default.rb#2064 def send_map(receiver_e, dot_t, selector_t, begin_t = T.unsafe(nil), args = T.unsafe(nil), end_t = T.unsafe(nil)); end - # source://parser//lib/parser/builders/default.rb#2096 + # source://parser/lib/parser/builders/default.rb#2096 def send_unary_op_map(selector_t, arg_e); end - # source://parser//lib/parser/builders/default.rb#2249 + # source://parser/lib/parser/builders/default.rb#2249 def static_regexp(parts, options); end - # source://parser//lib/parser/builders/default.rb#2269 + # source://parser/lib/parser/builders/default.rb#2269 def static_regexp_node(node); end - # source://parser//lib/parser/builders/default.rb#2232 + # source://parser/lib/parser/builders/default.rb#2232 def static_string(nodes); end - # source://parser//lib/parser/builders/default.rb#1958 + # source://parser/lib/parser/builders/default.rb#1958 def string_map(begin_t, parts, end_t); end - # source://parser//lib/parser/builders/default.rb#2289 + # source://parser/lib/parser/builders/default.rb#2289 def string_value(token); end - # source://parser//lib/parser/builders/default.rb#2166 + # source://parser/lib/parser/builders/default.rb#2166 def ternary_map(begin_e, question_t, mid_e, colon_t, end_e); end - # source://parser//lib/parser/builders/default.rb#1879 + # source://parser/lib/parser/builders/default.rb#1879 def token_map(token); end - # source://parser//lib/parser/builders/default.rb#1995 + # source://parser/lib/parser/builders/default.rb#1995 def unary_op_map(op_t, arg_e = T.unsafe(nil)); end - # source://parser//lib/parser/builders/default.rb#1903 + # source://parser/lib/parser/builders/default.rb#1903 def unquoted_map(token); end - # source://parser//lib/parser/builders/default.rb#2311 + # source://parser/lib/parser/builders/default.rb#2311 def validate_definee(definee); end - # source://parser//lib/parser/builders/default.rb#1781 + # source://parser/lib/parser/builders/default.rb#1781 def validate_no_forward_arg_after_restarg(args); end - # source://parser//lib/parser/builders/default.rb#2285 + # source://parser/lib/parser/builders/default.rb#2285 def value(token); end - # source://parser//lib/parser/builders/default.rb#2084 + # source://parser/lib/parser/builders/default.rb#2084 def var_send_map(variable_e); end - # source://parser//lib/parser/builders/default.rb#1987 + # source://parser/lib/parser/builders/default.rb#1987 def variable_map(name_t); end class << self - # source://parser//lib/parser/builders/default.rb#97 + # source://parser/lib/parser/builders/default.rb#97 def emit_arg_inside_procarg0; end - # source://parser//lib/parser/builders/default.rb#97 + # source://parser/lib/parser/builders/default.rb#97 def emit_arg_inside_procarg0=(_arg0); end - # source://parser//lib/parser/builders/default.rb#58 + # source://parser/lib/parser/builders/default.rb#58 def emit_encoding; end - # source://parser//lib/parser/builders/default.rb#58 + # source://parser/lib/parser/builders/default.rb#58 def emit_encoding=(_arg0); end - # source://parser//lib/parser/builders/default.rb#126 + # source://parser/lib/parser/builders/default.rb#126 def emit_forward_arg; end - # source://parser//lib/parser/builders/default.rb#126 + # source://parser/lib/parser/builders/default.rb#126 def emit_forward_arg=(_arg0); end - # source://parser//lib/parser/builders/default.rb#80 + # source://parser/lib/parser/builders/default.rb#80 def emit_index; end - # source://parser//lib/parser/builders/default.rb#80 + # source://parser/lib/parser/builders/default.rb#80 def emit_index=(_arg0); end - # source://parser//lib/parser/builders/default.rb#174 + # source://parser/lib/parser/builders/default.rb#174 def emit_kwargs; end - # source://parser//lib/parser/builders/default.rb#174 + # source://parser/lib/parser/builders/default.rb#174 def emit_kwargs=(_arg0); end - # source://parser//lib/parser/builders/default.rb#22 + # source://parser/lib/parser/builders/default.rb#22 def emit_lambda; end - # source://parser//lib/parser/builders/default.rb#22 + # source://parser/lib/parser/builders/default.rb#22 def emit_lambda=(_arg0); end - # source://parser//lib/parser/builders/default.rb#203 + # source://parser/lib/parser/builders/default.rb#203 def emit_match_pattern; end - # source://parser//lib/parser/builders/default.rb#203 + # source://parser/lib/parser/builders/default.rb#203 def emit_match_pattern=(_arg0); end - # source://parser//lib/parser/builders/default.rb#40 + # source://parser/lib/parser/builders/default.rb#40 def emit_procarg0; end - # source://parser//lib/parser/builders/default.rb#40 + # source://parser/lib/parser/builders/default.rb#40 def emit_procarg0=(_arg0); end - # source://parser//lib/parser/builders/default.rb#211 + # source://parser/lib/parser/builders/default.rb#211 def modernize; end end end @@ -1534,7 +1534,7 @@ end # # @api public # -# source://parser//lib/parser/clobbering_error.rb#11 +# source://parser/lib/parser/clobbering_error.rb#11 class Parser::ClobberingError < ::RuntimeError; end # Context of parsing that is represented by a stack of scopes. @@ -1551,65 +1551,65 @@ class Parser::ClobberingError < ::RuntimeError; end # + :block - in the block body (tap {}) # + :lambda - in the lambda body (-> {}) # -# source://parser//lib/parser/context.rb#18 +# source://parser/lib/parser/context.rb#18 class Parser::Context # @return [Context] a new instance of Context # - # source://parser//lib/parser/context.rb#29 + # source://parser/lib/parser/context.rb#29 def initialize; end - # source://parser//lib/parser/context.rb#43 + # source://parser/lib/parser/context.rb#43 def in_argdef; end - # source://parser//lib/parser/context.rb#43 + # source://parser/lib/parser/context.rb#43 def in_argdef=(_arg0); end - # source://parser//lib/parser/context.rb#43 + # source://parser/lib/parser/context.rb#43 def in_block; end - # source://parser//lib/parser/context.rb#43 + # source://parser/lib/parser/context.rb#43 def in_block=(_arg0); end - # source://parser//lib/parser/context.rb#43 + # source://parser/lib/parser/context.rb#43 def in_class; end - # source://parser//lib/parser/context.rb#43 + # source://parser/lib/parser/context.rb#43 def in_class=(_arg0); end - # source://parser//lib/parser/context.rb#43 + # source://parser/lib/parser/context.rb#43 def in_def; end - # source://parser//lib/parser/context.rb#43 + # source://parser/lib/parser/context.rb#43 def in_def=(_arg0); end - # source://parser//lib/parser/context.rb#43 + # source://parser/lib/parser/context.rb#43 def in_defined; end - # source://parser//lib/parser/context.rb#43 + # source://parser/lib/parser/context.rb#43 def in_defined=(_arg0); end # @return [Boolean] # - # source://parser//lib/parser/context.rb#45 + # source://parser/lib/parser/context.rb#45 def in_dynamic_block?; end - # source://parser//lib/parser/context.rb#43 + # source://parser/lib/parser/context.rb#43 def in_kwarg; end - # source://parser//lib/parser/context.rb#43 + # source://parser/lib/parser/context.rb#43 def in_kwarg=(_arg0); end - # source://parser//lib/parser/context.rb#43 + # source://parser/lib/parser/context.rb#43 def in_lambda; end - # source://parser//lib/parser/context.rb#43 + # source://parser/lib/parser/context.rb#43 def in_lambda=(_arg0); end - # source://parser//lib/parser/context.rb#33 + # source://parser/lib/parser/context.rb#33 def reset; end end -# source://parser//lib/parser/context.rb#19 +# source://parser/lib/parser/context.rb#19 Parser::Context::FLAGS = T.let(T.unsafe(nil), Array) # Stack that holds names of current arguments, @@ -1622,69 +1622,69 @@ Parser::Context::FLAGS = T.let(T.unsafe(nil), Array) # # @api private # -# source://parser//lib/parser/current_arg_stack.rb#14 +# source://parser/lib/parser/current_arg_stack.rb#14 class Parser::CurrentArgStack # @api private # @return [CurrentArgStack] a new instance of CurrentArgStack # - # source://parser//lib/parser/current_arg_stack.rb#17 + # source://parser/lib/parser/current_arg_stack.rb#17 def initialize; end # @api private # @return [Boolean] # - # source://parser//lib/parser/current_arg_stack.rb#22 + # source://parser/lib/parser/current_arg_stack.rb#22 def empty?; end # @api private # - # source://parser//lib/parser/current_arg_stack.rb#34 + # source://parser/lib/parser/current_arg_stack.rb#34 def pop; end # @api private # - # source://parser//lib/parser/current_arg_stack.rb#26 + # source://parser/lib/parser/current_arg_stack.rb#26 def push(value); end # @api private # - # source://parser//lib/parser/current_arg_stack.rb#38 + # source://parser/lib/parser/current_arg_stack.rb#38 def reset; end # @api private # - # source://parser//lib/parser/current_arg_stack.rb#30 + # source://parser/lib/parser/current_arg_stack.rb#30 def set(value); end # @api private # - # source://parser//lib/parser/current_arg_stack.rb#15 + # source://parser/lib/parser/current_arg_stack.rb#15 def stack; end # @api private # - # source://parser//lib/parser/current_arg_stack.rb#42 + # source://parser/lib/parser/current_arg_stack.rb#42 def top; end end # @api private # -# source://parser//lib/parser/deprecation.rb#7 +# source://parser/lib/parser/deprecation.rb#7 module Parser::Deprecation # @api private # - # source://parser//lib/parser/deprecation.rb#9 + # source://parser/lib/parser/deprecation.rb#9 def warn_of_deprecation; end # @api private # - # source://parser//lib/parser/deprecation.rb#8 + # source://parser/lib/parser/deprecation.rb#8 def warned_of_deprecation=(_arg0); end end # @api public # -# source://parser//lib/parser/diagnostic.rb#31 +# source://parser/lib/parser/diagnostic.rb#31 class Parser::Diagnostic # @api public # @param level [Symbol] @@ -1694,14 +1694,14 @@ class Parser::Diagnostic # @param highlights [Array] # @return [Diagnostic] a new instance of Diagnostic # - # source://parser//lib/parser/diagnostic.rb#49 + # source://parser/lib/parser/diagnostic.rb#49 def initialize(level, reason, arguments, location, highlights = T.unsafe(nil)); end # @api public # @return [Symbol] extended arguments that describe the error # @see Parser::MESSAGES # - # source://parser//lib/parser/diagnostic.rb#39 + # source://parser/lib/parser/diagnostic.rb#39 def arguments; end # Supplementary error-related source ranges. @@ -1709,14 +1709,14 @@ class Parser::Diagnostic # @api public # @return [Array] # - # source://parser//lib/parser/diagnostic.rb#40 + # source://parser/lib/parser/diagnostic.rb#40 def highlights; end # @api public # @return [Symbol] diagnostic level # @see LEVELS # - # source://parser//lib/parser/diagnostic.rb#39 + # source://parser/lib/parser/diagnostic.rb#39 def level; end # Main error-related source range. @@ -1724,20 +1724,20 @@ class Parser::Diagnostic # @api public # @return [Parser::Source::Range] # - # source://parser//lib/parser/diagnostic.rb#40 + # source://parser/lib/parser/diagnostic.rb#40 def location; end # @api public # @return [String] the rendered message. # - # source://parser//lib/parser/diagnostic.rb#69 + # source://parser/lib/parser/diagnostic.rb#69 def message; end # @api public # @return [Symbol] reason for error # @see Parser::MESSAGES # - # source://parser//lib/parser/diagnostic.rb#39 + # source://parser/lib/parser/diagnostic.rb#39 def reason; end # Renders the diagnostic message as a clang-like diagnostic. @@ -1752,7 +1752,7 @@ class Parser::Diagnostic # # ] # @return [Array] # - # source://parser//lib/parser/diagnostic.rb#86 + # source://parser/lib/parser/diagnostic.rb#86 def render; end private @@ -1762,7 +1762,7 @@ class Parser::Diagnostic # @api public # @return [Parser::Source::Range] # - # source://parser//lib/parser/diagnostic.rb#142 + # source://parser/lib/parser/diagnostic.rb#142 def first_line_only(range); end # If necessary, shrink a `Range` so as to include only the last line. @@ -1770,7 +1770,7 @@ class Parser::Diagnostic # @api public # @return [Parser::Source::Range] # - # source://parser//lib/parser/diagnostic.rb#155 + # source://parser/lib/parser/diagnostic.rb#155 def last_line_only(range); end # Renders one source line in clang diagnostic style, with highlights. @@ -1778,42 +1778,42 @@ class Parser::Diagnostic # @api public # @return [Array] # - # source://parser//lib/parser/diagnostic.rb#110 + # source://parser/lib/parser/diagnostic.rb#110 def render_line(range, ellipsis = T.unsafe(nil), range_end = T.unsafe(nil)); end end -# source://parser//lib/parser/diagnostic/engine.rb#36 +# source://parser/lib/parser/diagnostic/engine.rb#36 class Parser::Diagnostic::Engine - # source://parser//lib/parser/diagnostic/engine.rb#45 + # source://parser/lib/parser/diagnostic/engine.rb#45 def initialize(consumer = T.unsafe(nil)); end - # source://parser//lib/parser/diagnostic/engine.rb#39 + # source://parser/lib/parser/diagnostic/engine.rb#39 def all_errors_are_fatal; end - # source://parser//lib/parser/diagnostic/engine.rb#39 + # source://parser/lib/parser/diagnostic/engine.rb#39 def all_errors_are_fatal=(_arg0); end - # source://parser//lib/parser/diagnostic/engine.rb#37 + # source://parser/lib/parser/diagnostic/engine.rb#37 def consumer; end - # source://parser//lib/parser/diagnostic/engine.rb#37 + # source://parser/lib/parser/diagnostic/engine.rb#37 def consumer=(_arg0); end - # source://parser//lib/parser/diagnostic/engine.rb#40 + # source://parser/lib/parser/diagnostic/engine.rb#40 def ignore_warnings; end - # source://parser//lib/parser/diagnostic/engine.rb#40 + # source://parser/lib/parser/diagnostic/engine.rb#40 def ignore_warnings=(_arg0); end - # source://parser//lib/parser/diagnostic/engine.rb#64 + # source://parser/lib/parser/diagnostic/engine.rb#64 def process(diagnostic); end protected - # source://parser//lib/parser/diagnostic/engine.rb#86 + # source://parser/lib/parser/diagnostic/engine.rb#86 def ignore?(diagnostic); end - # source://parser//lib/parser/diagnostic/engine.rb#97 + # source://parser/lib/parser/diagnostic/engine.rb#97 def raise?(diagnostic); end end @@ -1822,7 +1822,7 @@ end # @api public # @return [Array] # -# source://parser//lib/parser/diagnostic.rb#37 +# source://parser/lib/parser/diagnostic.rb#37 Parser::Diagnostic::LEVELS = T.let(T.unsafe(nil), Array) # line 3 "lib/parser/lexer.rl" @@ -1901,1219 +1901,1219 @@ Parser::Diagnostic::LEVELS = T.let(T.unsafe(nil), Array) # # NoMethodError: undefined method `ord' for nil:NilClass # -# source://parser//lib/parser/lexer-F1.rb#82 +# source://parser/lib/parser/lexer-F1.rb#82 class Parser::Lexer # @return [Lexer] a new instance of Lexer # - # source://parser//lib/parser/lexer-F1.rb#8250 + # source://parser/lib/parser/lexer-F1.rb#8250 def initialize(version); end # Return next token: [type, value]. # - # source://parser//lib/parser/lexer-F1.rb#8410 + # source://parser/lib/parser/lexer-F1.rb#8410 def advance; end # Returns the value of attribute cmdarg. # - # source://parser//lib/parser/lexer-F1.rb#8244 + # source://parser/lib/parser/lexer-F1.rb#8244 def cmdarg; end # Sets the attribute cmdarg # # @param value the value to set the attribute cmdarg to. # - # source://parser//lib/parser/lexer-F1.rb#8244 + # source://parser/lib/parser/lexer-F1.rb#8244 def cmdarg=(_arg0); end # Returns the value of attribute cmdarg_stack. # - # source://parser//lib/parser/lexer-F1.rb#8248 + # source://parser/lib/parser/lexer-F1.rb#8248 def cmdarg_stack; end # Returns the value of attribute command_start. # - # source://parser//lib/parser/lexer-F1.rb#8244 + # source://parser/lib/parser/lexer-F1.rb#8244 def command_start; end # Sets the attribute command_start # # @param value the value to set the attribute command_start to. # - # source://parser//lib/parser/lexer-F1.rb#8244 + # source://parser/lib/parser/lexer-F1.rb#8244 def command_start=(_arg0); end # Returns the value of attribute comments. # - # source://parser//lib/parser/lexer-F1.rb#8246 + # source://parser/lib/parser/lexer-F1.rb#8246 def comments; end # Sets the attribute comments # # @param value the value to set the attribute comments to. # - # source://parser//lib/parser/lexer-F1.rb#8246 + # source://parser/lib/parser/lexer-F1.rb#8246 def comments=(_arg0); end # Returns the value of attribute cond. # - # source://parser//lib/parser/lexer-F1.rb#8244 + # source://parser/lib/parser/lexer-F1.rb#8244 def cond; end # Sets the attribute cond # # @param value the value to set the attribute cond to. # - # source://parser//lib/parser/lexer-F1.rb#8244 + # source://parser/lib/parser/lexer-F1.rb#8244 def cond=(_arg0); end # Returns the value of attribute cond_stack. # - # source://parser//lib/parser/lexer-F1.rb#8248 + # source://parser/lib/parser/lexer-F1.rb#8248 def cond_stack; end # Returns the value of attribute context. # - # source://parser//lib/parser/lexer-F1.rb#8244 + # source://parser/lib/parser/lexer-F1.rb#8244 def context; end # Sets the attribute context # # @param value the value to set the attribute context to. # - # source://parser//lib/parser/lexer-F1.rb#8244 + # source://parser/lib/parser/lexer-F1.rb#8244 def context=(_arg0); end - # source://parser//lib/parser/lexer-F1.rb#8405 + # source://parser/lib/parser/lexer-F1.rb#8405 def dedent_level; end # Returns the value of attribute diagnostics. # - # source://parser//lib/parser/lexer-F1.rb#8240 + # source://parser/lib/parser/lexer-F1.rb#8240 def diagnostics; end # Sets the attribute diagnostics # # @param value the value to set the attribute diagnostics to. # - # source://parser//lib/parser/lexer-F1.rb#8240 + # source://parser/lib/parser/lexer-F1.rb#8240 def diagnostics=(_arg0); end - # source://parser//lib/parser/lexer-F1.rb#8358 + # source://parser/lib/parser/lexer-F1.rb#8358 def encoding; end # Returns the value of attribute force_utf32. # - # source://parser//lib/parser/lexer-F1.rb#8242 + # source://parser/lib/parser/lexer-F1.rb#8242 def force_utf32; end # Sets the attribute force_utf32 # # @param value the value to set the attribute force_utf32 to. # - # source://parser//lib/parser/lexer-F1.rb#8242 + # source://parser/lib/parser/lexer-F1.rb#8242 def force_utf32=(_arg0); end # Returns the value of attribute lambda_stack. # - # source://parser//lib/parser/lexer-F1.rb#8248 + # source://parser/lib/parser/lexer-F1.rb#8248 def lambda_stack; end # Returns the value of attribute paren_nest. # - # source://parser//lib/parser/lexer-F1.rb#8248 + # source://parser/lib/parser/lexer-F1.rb#8248 def paren_nest; end - # source://parser//lib/parser/lexer-F1.rb#8392 + # source://parser/lib/parser/lexer-F1.rb#8392 def pop_cmdarg; end - # source://parser//lib/parser/lexer-F1.rb#8401 + # source://parser/lib/parser/lexer-F1.rb#8401 def pop_cond; end - # source://parser//lib/parser/lexer-F1.rb#8387 + # source://parser/lib/parser/lexer-F1.rb#8387 def push_cmdarg; end - # source://parser//lib/parser/lexer-F1.rb#8396 + # source://parser/lib/parser/lexer-F1.rb#8396 def push_cond; end - # source://parser//lib/parser/lexer-F1.rb#8281 + # source://parser/lib/parser/lexer-F1.rb#8281 def reset(reset_state = T.unsafe(nil)); end # % # - # source://parser//lib/parser/lexer-F1.rb#8238 + # source://parser/lib/parser/lexer-F1.rb#8238 def source_buffer; end - # source://parser//lib/parser/lexer-F1.rb#8334 + # source://parser/lib/parser/lexer-F1.rb#8334 def source_buffer=(source_buffer); end - # source://parser//lib/parser/lexer-F1.rb#8379 + # source://parser/lib/parser/lexer-F1.rb#8379 def state; end - # source://parser//lib/parser/lexer-F1.rb#8383 + # source://parser/lib/parser/lexer-F1.rb#8383 def state=(state); end # Returns the value of attribute static_env. # - # source://parser//lib/parser/lexer-F1.rb#8241 + # source://parser/lib/parser/lexer-F1.rb#8241 def static_env; end # Sets the attribute static_env # # @param value the value to set the attribute static_env to. # - # source://parser//lib/parser/lexer-F1.rb#8241 + # source://parser/lib/parser/lexer-F1.rb#8241 def static_env=(_arg0); end # Returns the value of attribute tokens. # - # source://parser//lib/parser/lexer-F1.rb#8246 + # source://parser/lib/parser/lexer-F1.rb#8246 def tokens; end # Sets the attribute tokens # # @param value the value to set the attribute tokens to. # - # source://parser//lib/parser/lexer-F1.rb#8246 + # source://parser/lib/parser/lexer-F1.rb#8246 def tokens=(_arg0); end # Returns the value of attribute version. # - # source://parser//lib/parser/lexer-F1.rb#8248 + # source://parser/lib/parser/lexer-F1.rb#8248 def version; end protected - # source://parser//lib/parser/lexer-F1.rb#14692 + # source://parser/lib/parser/lexer-F1.rb#14692 def arg_or_cmdarg(cmd_state); end - # source://parser//lib/parser/lexer-F1.rb#14754 + # source://parser/lib/parser/lexer-F1.rb#14754 def check_ambiguous_slash(tm); end - # source://parser//lib/parser/lexer-F1.rb#14716 + # source://parser/lib/parser/lexer-F1.rb#14716 def diagnostic(type, reason, arguments = T.unsafe(nil), location = T.unsafe(nil), highlights = T.unsafe(nil)); end - # source://parser//lib/parser/lexer-F1.rb#14722 + # source://parser/lib/parser/lexer-F1.rb#14722 def e_lbrace; end - # source://parser//lib/parser/lexer-F1.rb#14666 + # source://parser/lib/parser/lexer-F1.rb#14666 def emit(type, value = T.unsafe(nil), s = T.unsafe(nil), e = T.unsafe(nil)); end - # source://parser//lib/parser/lexer-F1.rb#14775 + # source://parser/lib/parser/lexer-F1.rb#14775 def emit_class_var(ts = T.unsafe(nil), te = T.unsafe(nil)); end - # source://parser//lib/parser/lexer-F1.rb#14803 + # source://parser/lib/parser/lexer-F1.rb#14803 def emit_colon_with_digits(p, tm, diag_msg); end - # source://parser//lib/parser/lexer-F1.rb#14700 + # source://parser/lib/parser/lexer-F1.rb#14700 def emit_comment(s = T.unsafe(nil), e = T.unsafe(nil)); end - # source://parser//lib/parser/lexer-F1.rb#14712 + # source://parser/lib/parser/lexer-F1.rb#14712 def emit_comment_from_range(p, pe); end - # source://parser//lib/parser/lexer-F1.rb#14682 + # source://parser/lib/parser/lexer-F1.rb#14682 def emit_do(do_block = T.unsafe(nil)); end - # source://parser//lib/parser/lexer-F1.rb#14765 + # source://parser/lib/parser/lexer-F1.rb#14765 def emit_global_var(ts = T.unsafe(nil), te = T.unsafe(nil)); end - # source://parser//lib/parser/lexer-F1.rb#14783 + # source://parser/lib/parser/lexer-F1.rb#14783 def emit_instance_var(ts = T.unsafe(nil), te = T.unsafe(nil)); end - # source://parser//lib/parser/lexer-F1.rb#14791 + # source://parser/lib/parser/lexer-F1.rb#14791 def emit_rbrace_rparen_rbrack; end - # source://parser//lib/parser/lexer-F1.rb#14813 + # source://parser/lib/parser/lexer-F1.rb#14813 def emit_singleton_class; end - # source://parser//lib/parser/lexer-F1.rb#14676 + # source://parser/lib/parser/lexer-F1.rb#14676 def emit_table(table, s = T.unsafe(nil), e = T.unsafe(nil)); end - # source://parser//lib/parser/lexer-F1.rb#14731 + # source://parser/lib/parser/lexer-F1.rb#14731 def numeric_literal_int; end - # source://parser//lib/parser/lexer-F1.rb#14750 + # source://parser/lib/parser/lexer-F1.rb#14750 def on_newline(p); end - # source://parser//lib/parser/lexer-F1.rb#14662 + # source://parser/lib/parser/lexer-F1.rb#14662 def range(s = T.unsafe(nil), e = T.unsafe(nil)); end - # source://parser//lib/parser/lexer-F1.rb#14653 + # source://parser/lib/parser/lexer-F1.rb#14653 def stack_pop; end - # source://parser//lib/parser/lexer-F1.rb#14658 + # source://parser/lib/parser/lexer-F1.rb#14658 def tok(s = T.unsafe(nil), e = T.unsafe(nil)); end # @return [Boolean] # - # source://parser//lib/parser/lexer-F1.rb#14649 + # source://parser/lib/parser/lexer-F1.rb#14649 def version?(*versions); end class << self # Returns the value of attribute lex_en_expr_arg. # - # source://parser//lib/parser/lexer-F1.rb#8186 + # source://parser/lib/parser/lexer-F1.rb#8186 def lex_en_expr_arg; end # Sets the attribute lex_en_expr_arg # # @param value the value to set the attribute lex_en_expr_arg to. # - # source://parser//lib/parser/lexer-F1.rb#8186 + # source://parser/lib/parser/lexer-F1.rb#8186 def lex_en_expr_arg=(_arg0); end # Returns the value of attribute lex_en_expr_beg. # - # source://parser//lib/parser/lexer-F1.rb#8202 + # source://parser/lib/parser/lexer-F1.rb#8202 def lex_en_expr_beg; end # Sets the attribute lex_en_expr_beg # # @param value the value to set the attribute lex_en_expr_beg to. # - # source://parser//lib/parser/lexer-F1.rb#8202 + # source://parser/lib/parser/lexer-F1.rb#8202 def lex_en_expr_beg=(_arg0); end # Returns the value of attribute lex_en_expr_cmdarg. # - # source://parser//lib/parser/lexer-F1.rb#8190 + # source://parser/lib/parser/lexer-F1.rb#8190 def lex_en_expr_cmdarg; end # Sets the attribute lex_en_expr_cmdarg # # @param value the value to set the attribute lex_en_expr_cmdarg to. # - # source://parser//lib/parser/lexer-F1.rb#8190 + # source://parser/lib/parser/lexer-F1.rb#8190 def lex_en_expr_cmdarg=(_arg0); end # Returns the value of attribute lex_en_expr_dot. # - # source://parser//lib/parser/lexer-F1.rb#8182 + # source://parser/lib/parser/lexer-F1.rb#8182 def lex_en_expr_dot; end # Sets the attribute lex_en_expr_dot # # @param value the value to set the attribute lex_en_expr_dot to. # - # source://parser//lib/parser/lexer-F1.rb#8182 + # source://parser/lib/parser/lexer-F1.rb#8182 def lex_en_expr_dot=(_arg0); end # Returns the value of attribute lex_en_expr_end. # - # source://parser//lib/parser/lexer-F1.rb#8214 + # source://parser/lib/parser/lexer-F1.rb#8214 def lex_en_expr_end; end # Sets the attribute lex_en_expr_end # # @param value the value to set the attribute lex_en_expr_end to. # - # source://parser//lib/parser/lexer-F1.rb#8214 + # source://parser/lib/parser/lexer-F1.rb#8214 def lex_en_expr_end=(_arg0); end # Returns the value of attribute lex_en_expr_endarg. # - # source://parser//lib/parser/lexer-F1.rb#8194 + # source://parser/lib/parser/lexer-F1.rb#8194 def lex_en_expr_endarg; end # Sets the attribute lex_en_expr_endarg # # @param value the value to set the attribute lex_en_expr_endarg to. # - # source://parser//lib/parser/lexer-F1.rb#8194 + # source://parser/lib/parser/lexer-F1.rb#8194 def lex_en_expr_endarg=(_arg0); end # Returns the value of attribute lex_en_expr_endfn. # - # source://parser//lib/parser/lexer-F1.rb#8178 + # source://parser/lib/parser/lexer-F1.rb#8178 def lex_en_expr_endfn; end # Sets the attribute lex_en_expr_endfn # # @param value the value to set the attribute lex_en_expr_endfn to. # - # source://parser//lib/parser/lexer-F1.rb#8178 + # source://parser/lib/parser/lexer-F1.rb#8178 def lex_en_expr_endfn=(_arg0); end # Returns the value of attribute lex_en_expr_fname. # - # source://parser//lib/parser/lexer-F1.rb#8174 + # source://parser/lib/parser/lexer-F1.rb#8174 def lex_en_expr_fname; end # Sets the attribute lex_en_expr_fname # # @param value the value to set the attribute lex_en_expr_fname to. # - # source://parser//lib/parser/lexer-F1.rb#8174 + # source://parser/lib/parser/lexer-F1.rb#8174 def lex_en_expr_fname=(_arg0); end # Returns the value of attribute lex_en_expr_labelarg. # - # source://parser//lib/parser/lexer-F1.rb#8206 + # source://parser/lib/parser/lexer-F1.rb#8206 def lex_en_expr_labelarg; end # Sets the attribute lex_en_expr_labelarg # # @param value the value to set the attribute lex_en_expr_labelarg to. # - # source://parser//lib/parser/lexer-F1.rb#8206 + # source://parser/lib/parser/lexer-F1.rb#8206 def lex_en_expr_labelarg=(_arg0); end # Returns the value of attribute lex_en_expr_mid. # - # source://parser//lib/parser/lexer-F1.rb#8198 + # source://parser/lib/parser/lexer-F1.rb#8198 def lex_en_expr_mid; end # Sets the attribute lex_en_expr_mid # # @param value the value to set the attribute lex_en_expr_mid to. # - # source://parser//lib/parser/lexer-F1.rb#8198 + # source://parser/lib/parser/lexer-F1.rb#8198 def lex_en_expr_mid=(_arg0); end # Returns the value of attribute lex_en_expr_value. # - # source://parser//lib/parser/lexer-F1.rb#8210 + # source://parser/lib/parser/lexer-F1.rb#8210 def lex_en_expr_value; end # Sets the attribute lex_en_expr_value # # @param value the value to set the attribute lex_en_expr_value to. # - # source://parser//lib/parser/lexer-F1.rb#8210 + # source://parser/lib/parser/lexer-F1.rb#8210 def lex_en_expr_value=(_arg0); end # Returns the value of attribute lex_en_expr_variable. # - # source://parser//lib/parser/lexer-F1.rb#8170 + # source://parser/lib/parser/lexer-F1.rb#8170 def lex_en_expr_variable; end # Sets the attribute lex_en_expr_variable # # @param value the value to set the attribute lex_en_expr_variable to. # - # source://parser//lib/parser/lexer-F1.rb#8170 + # source://parser/lib/parser/lexer-F1.rb#8170 def lex_en_expr_variable=(_arg0); end # Returns the value of attribute lex_en_inside_string. # - # source://parser//lib/parser/lexer-F1.rb#8230 + # source://parser/lib/parser/lexer-F1.rb#8230 def lex_en_inside_string; end # Sets the attribute lex_en_inside_string # # @param value the value to set the attribute lex_en_inside_string to. # - # source://parser//lib/parser/lexer-F1.rb#8230 + # source://parser/lib/parser/lexer-F1.rb#8230 def lex_en_inside_string=(_arg0); end # Returns the value of attribute lex_en_leading_dot. # - # source://parser//lib/parser/lexer-F1.rb#8218 + # source://parser/lib/parser/lexer-F1.rb#8218 def lex_en_leading_dot; end # Sets the attribute lex_en_leading_dot # # @param value the value to set the attribute lex_en_leading_dot to. # - # source://parser//lib/parser/lexer-F1.rb#8218 + # source://parser/lib/parser/lexer-F1.rb#8218 def lex_en_leading_dot=(_arg0); end # Returns the value of attribute lex_en_line_begin. # - # source://parser//lib/parser/lexer-F1.rb#8226 + # source://parser/lib/parser/lexer-F1.rb#8226 def lex_en_line_begin; end # Sets the attribute lex_en_line_begin # # @param value the value to set the attribute lex_en_line_begin to. # - # source://parser//lib/parser/lexer-F1.rb#8226 + # source://parser/lib/parser/lexer-F1.rb#8226 def lex_en_line_begin=(_arg0); end # Returns the value of attribute lex_en_line_comment. # - # source://parser//lib/parser/lexer-F1.rb#8222 + # source://parser/lib/parser/lexer-F1.rb#8222 def lex_en_line_comment; end # Sets the attribute lex_en_line_comment # # @param value the value to set the attribute lex_en_line_comment to. # - # source://parser//lib/parser/lexer-F1.rb#8222 + # source://parser/lib/parser/lexer-F1.rb#8222 def lex_en_line_comment=(_arg0); end # Returns the value of attribute lex_error. # - # source://parser//lib/parser/lexer-F1.rb#8165 + # source://parser/lib/parser/lexer-F1.rb#8165 def lex_error; end # Sets the attribute lex_error # # @param value the value to set the attribute lex_error to. # - # source://parser//lib/parser/lexer-F1.rb#8165 + # source://parser/lib/parser/lexer-F1.rb#8165 def lex_error=(_arg0); end # Returns the value of attribute lex_start. # - # source://parser//lib/parser/lexer-F1.rb#8161 + # source://parser/lib/parser/lexer-F1.rb#8161 def lex_start; end # Sets the attribute lex_start # # @param value the value to set the attribute lex_start to. # - # source://parser//lib/parser/lexer-F1.rb#8161 + # source://parser/lib/parser/lexer-F1.rb#8161 def lex_start=(_arg0); end private # Returns the value of attribute _lex_eof_trans. # - # source://parser//lib/parser/lexer-F1.rb#8064 + # source://parser/lib/parser/lexer-F1.rb#8064 def _lex_eof_trans; end # Sets the attribute _lex_eof_trans # # @param value the value to set the attribute _lex_eof_trans to. # - # source://parser//lib/parser/lexer-F1.rb#8064 + # source://parser/lib/parser/lexer-F1.rb#8064 def _lex_eof_trans=(_arg0); end # Returns the value of attribute _lex_from_state_actions. # - # source://parser//lib/parser/lexer-F1.rb#7967 + # source://parser/lib/parser/lexer-F1.rb#7967 def _lex_from_state_actions; end # Sets the attribute _lex_from_state_actions # # @param value the value to set the attribute _lex_from_state_actions to. # - # source://parser//lib/parser/lexer-F1.rb#7967 + # source://parser/lib/parser/lexer-F1.rb#7967 def _lex_from_state_actions=(_arg0); end # Returns the value of attribute _lex_index_offsets. # - # source://parser//lib/parser/lexer-F1.rb#461 + # source://parser/lib/parser/lexer-F1.rb#461 def _lex_index_offsets; end # Sets the attribute _lex_index_offsets # # @param value the value to set the attribute _lex_index_offsets to. # - # source://parser//lib/parser/lexer-F1.rb#461 + # source://parser/lib/parser/lexer-F1.rb#461 def _lex_index_offsets=(_arg0); end # Returns the value of attribute _lex_indicies. # - # source://parser//lib/parser/lexer-F1.rb#558 + # source://parser/lib/parser/lexer-F1.rb#558 def _lex_indicies; end # Sets the attribute _lex_indicies # # @param value the value to set the attribute _lex_indicies to. # - # source://parser//lib/parser/lexer-F1.rb#558 + # source://parser/lib/parser/lexer-F1.rb#558 def _lex_indicies=(_arg0); end # Returns the value of attribute _lex_key_spans. # - # source://parser//lib/parser/lexer-F1.rb#364 + # source://parser/lib/parser/lexer-F1.rb#364 def _lex_key_spans; end # Sets the attribute _lex_key_spans # # @param value the value to set the attribute _lex_key_spans to. # - # source://parser//lib/parser/lexer-F1.rb#364 + # source://parser/lib/parser/lexer-F1.rb#364 def _lex_key_spans=(_arg0); end # Returns the value of attribute _lex_to_state_actions. # - # source://parser//lib/parser/lexer-F1.rb#7870 + # source://parser/lib/parser/lexer-F1.rb#7870 def _lex_to_state_actions; end # Sets the attribute _lex_to_state_actions # # @param value the value to set the attribute _lex_to_state_actions to. # - # source://parser//lib/parser/lexer-F1.rb#7870 + # source://parser/lib/parser/lexer-F1.rb#7870 def _lex_to_state_actions=(_arg0); end # Returns the value of attribute _lex_trans_actions. # - # source://parser//lib/parser/lexer-F1.rb#7722 + # source://parser/lib/parser/lexer-F1.rb#7722 def _lex_trans_actions; end # Sets the attribute _lex_trans_actions # # @param value the value to set the attribute _lex_trans_actions to. # - # source://parser//lib/parser/lexer-F1.rb#7722 + # source://parser/lib/parser/lexer-F1.rb#7722 def _lex_trans_actions=(_arg0); end # Returns the value of attribute _lex_trans_keys. # - # source://parser//lib/parser/lexer-F1.rb#87 + # source://parser/lib/parser/lexer-F1.rb#87 def _lex_trans_keys; end # Sets the attribute _lex_trans_keys # # @param value the value to set the attribute _lex_trans_keys to. # - # source://parser//lib/parser/lexer-F1.rb#87 + # source://parser/lib/parser/lexer-F1.rb#87 def _lex_trans_keys=(_arg0); end # Returns the value of attribute _lex_trans_targs. # - # source://parser//lib/parser/lexer-F1.rb#7574 + # source://parser/lib/parser/lexer-F1.rb#7574 def _lex_trans_targs; end # Sets the attribute _lex_trans_targs # # @param value the value to set the attribute _lex_trans_targs to. # - # source://parser//lib/parser/lexer-F1.rb#7574 + # source://parser/lib/parser/lexer-F1.rb#7574 def _lex_trans_targs=(_arg0); end end end -# source://parser//lib/parser/lexer/dedenter.rb#5 +# source://parser/lib/parser/lexer/dedenter.rb#5 class Parser::Lexer::Dedenter - # source://parser//lib/parser/lexer/dedenter.rb#9 + # source://parser/lib/parser/lexer/dedenter.rb#9 def initialize(dedent_level); end - # source://parser//lib/parser/lexer/dedenter.rb#36 + # source://parser/lib/parser/lexer/dedenter.rb#36 def dedent(string); end - # source://parser//lib/parser/lexer/dedenter.rb#83 + # source://parser/lib/parser/lexer/dedenter.rb#83 def interrupt; end end -# source://parser//lib/parser/lexer/dedenter.rb#7 +# source://parser/lib/parser/lexer/dedenter.rb#7 Parser::Lexer::Dedenter::TAB_WIDTH = T.let(T.unsafe(nil), Integer) -# source://parser//lib/parser/lexer-F1.rb#14860 +# source://parser/lib/parser/lexer-F1.rb#14860 Parser::Lexer::ESCAPE_WHITESPACE = T.let(T.unsafe(nil), Hash) -# source://parser//lib/parser/lexer-F1.rb#14846 +# source://parser/lib/parser/lexer-F1.rb#14846 Parser::Lexer::KEYWORDS = T.let(T.unsafe(nil), Hash) -# source://parser//lib/parser/lexer-F1.rb#14853 +# source://parser/lib/parser/lexer-F1.rb#14853 Parser::Lexer::KEYWORDS_BEGIN = T.let(T.unsafe(nil), Hash) -# source://parser//lib/parser/lexer-F1.rb#8362 +# source://parser/lib/parser/lexer-F1.rb#8362 Parser::Lexer::LEX_STATES = T.let(T.unsafe(nil), Hash) -# source://parser//lib/parser/lexer/literal.rb#6 +# source://parser/lib/parser/lexer/literal.rb#6 class Parser::Lexer::Literal - # source://parser//lib/parser/lexer/literal.rb#42 + # source://parser/lib/parser/lexer/literal.rb#42 def initialize(lexer, str_type, delimiter, str_s, heredoc_e = T.unsafe(nil), indent = T.unsafe(nil), dedent_body = T.unsafe(nil), label_allowed = T.unsafe(nil)); end - # source://parser//lib/parser/lexer/literal.rb#116 + # source://parser/lib/parser/lexer/literal.rb#116 def backslash_delimited?; end - # source://parser//lib/parser/lexer/literal.rb#39 + # source://parser/lib/parser/lexer/literal.rb#39 def dedent_level; end - # source://parser//lib/parser/lexer/literal.rb#191 + # source://parser/lib/parser/lexer/literal.rb#191 def end_interp_brace_and_try_closing; end - # source://parser//lib/parser/lexer/literal.rb#218 + # source://parser/lib/parser/lexer/literal.rb#218 def extend_content; end - # source://parser//lib/parser/lexer/literal.rb#222 + # source://parser/lib/parser/lexer/literal.rb#222 def extend_space(ts, te); end - # source://parser//lib/parser/lexer/literal.rb#197 + # source://parser/lib/parser/lexer/literal.rb#197 def extend_string(string, ts, te); end - # source://parser//lib/parser/lexer/literal.rb#204 + # source://parser/lib/parser/lexer/literal.rb#204 def flush_string; end - # source://parser//lib/parser/lexer/literal.rb#104 + # source://parser/lib/parser/lexer/literal.rb#104 def heredoc?; end - # source://parser//lib/parser/lexer/literal.rb#39 + # source://parser/lib/parser/lexer/literal.rb#39 def heredoc_e; end - # source://parser//lib/parser/lexer/literal.rb#168 + # source://parser/lib/parser/lexer/literal.rb#168 def infer_indent_level(line); end - # source://parser//lib/parser/lexer/literal.rb#91 + # source://parser/lib/parser/lexer/literal.rb#91 def interpolate?; end - # source://parser//lib/parser/lexer/literal.rb#124 + # source://parser/lib/parser/lexer/literal.rb#124 def munge_escape?(character); end - # source://parser//lib/parser/lexer/literal.rb#134 + # source://parser/lib/parser/lexer/literal.rb#134 def nest_and_try_closing(delimiter, ts, te, lookahead = T.unsafe(nil)); end - # source://parser//lib/parser/lexer/literal.rb#108 + # source://parser/lib/parser/lexer/literal.rb#108 def plain_heredoc?; end - # source://parser//lib/parser/lexer/literal.rb#100 + # source://parser/lib/parser/lexer/literal.rb#100 def regexp?; end - # source://parser//lib/parser/lexer/literal.rb#40 + # source://parser/lib/parser/lexer/literal.rb#40 def saved_herebody_s; end - # source://parser//lib/parser/lexer/literal.rb#40 + # source://parser/lib/parser/lexer/literal.rb#40 def saved_herebody_s=(_arg0); end - # source://parser//lib/parser/lexer/literal.rb#112 + # source://parser/lib/parser/lexer/literal.rb#112 def squiggly_heredoc?; end - # source://parser//lib/parser/lexer/literal.rb#187 + # source://parser/lib/parser/lexer/literal.rb#187 def start_interp_brace; end - # source://parser//lib/parser/lexer/literal.rb#39 + # source://parser/lib/parser/lexer/literal.rb#39 def str_s; end - # source://parser//lib/parser/lexer/literal.rb#232 + # source://parser/lib/parser/lexer/literal.rb#232 def supports_line_continuation_via_slash?; end - # source://parser//lib/parser/lexer/literal.rb#120 + # source://parser/lib/parser/lexer/literal.rb#120 def type; end - # source://parser//lib/parser/lexer/literal.rb#95 + # source://parser/lib/parser/lexer/literal.rb#95 def words?; end protected - # source://parser//lib/parser/lexer/literal.rb#263 + # source://parser/lib/parser/lexer/literal.rb#263 def clear_buffer; end - # source://parser//lib/parser/lexer/literal.rb#259 + # source://parser/lib/parser/lexer/literal.rb#259 def coerce_encoding(string); end - # source://parser//lib/parser/lexer/literal.rb#238 + # source://parser/lib/parser/lexer/literal.rb#238 def delimiter?(delimiter); end - # source://parser//lib/parser/lexer/literal.rb#279 + # source://parser/lib/parser/lexer/literal.rb#279 def emit(token, type, s, e); end - # source://parser//lib/parser/lexer/literal.rb#274 + # source://parser/lib/parser/lexer/literal.rb#274 def emit_start_tok; end end -# source://parser//lib/parser/lexer/literal.rb#7 +# source://parser/lib/parser/lexer/literal.rb#7 Parser::Lexer::Literal::DELIMITERS = T.let(T.unsafe(nil), Hash) -# source://parser//lib/parser/lexer/literal.rb#8 +# source://parser/lib/parser/lexer/literal.rb#8 Parser::Lexer::Literal::SPACE = T.let(T.unsafe(nil), Integer) -# source://parser//lib/parser/lexer/literal.rb#9 +# source://parser/lib/parser/lexer/literal.rb#9 Parser::Lexer::Literal::TAB = T.let(T.unsafe(nil), Integer) -# source://parser//lib/parser/lexer/literal.rb#11 +# source://parser/lib/parser/lexer/literal.rb#11 Parser::Lexer::Literal::TYPES = T.let(T.unsafe(nil), Hash) # Mapping of strings to parser tokens. # -# source://parser//lib/parser/lexer-F1.rb#14820 +# source://parser/lib/parser/lexer-F1.rb#14820 Parser::Lexer::PUNCTUATION = T.let(T.unsafe(nil), Hash) -# source://parser//lib/parser/lexer-F1.rb#14840 +# source://parser/lib/parser/lexer-F1.rb#14840 Parser::Lexer::PUNCTUATION_BEGIN = T.let(T.unsafe(nil), Hash) -# source://parser//lib/parser/lexer/stack_state.rb#5 +# source://parser/lib/parser/lexer/stack_state.rb#5 class Parser::Lexer::StackState - # source://parser//lib/parser/lexer/stack_state.rb#6 + # source://parser/lib/parser/lexer/stack_state.rb#6 def initialize(name); end - # source://parser//lib/parser/lexer/stack_state.rb#34 + # source://parser/lib/parser/lexer/stack_state.rb#34 def active?; end - # source://parser//lib/parser/lexer/stack_state.rb#11 + # source://parser/lib/parser/lexer/stack_state.rb#11 def clear; end - # source://parser//lib/parser/lexer/stack_state.rb#38 + # source://parser/lib/parser/lexer/stack_state.rb#38 def empty?; end - # source://parser//lib/parser/lexer/stack_state.rb#42 + # source://parser/lib/parser/lexer/stack_state.rb#42 def inspect; end - # source://parser//lib/parser/lexer/stack_state.rb#29 + # source://parser/lib/parser/lexer/stack_state.rb#29 def lexpop; end - # source://parser//lib/parser/lexer/stack_state.rb#22 + # source://parser/lib/parser/lexer/stack_state.rb#22 def pop; end - # source://parser//lib/parser/lexer/stack_state.rb#15 + # source://parser/lib/parser/lexer/stack_state.rb#15 def push(bit); end - # source://parser//lib/parser/lexer/stack_state.rb#42 + # source://parser/lib/parser/lexer/stack_state.rb#42 def to_s; end end # line 3 "lib/parser/lexer-strings.rl" # -# source://parser//lib/parser/lexer-strings.rb#6 +# source://parser/lib/parser/lexer-strings.rb#6 class Parser::LexerStrings # @return [LexerStrings] a new instance of LexerStrings # - # source://parser//lib/parser/lexer-strings.rb#3300 + # source://parser/lib/parser/lexer-strings.rb#3300 def initialize(lexer, version); end - # source://parser//lib/parser/lexer-strings.rb#3339 + # source://parser/lib/parser/lexer-strings.rb#3339 def advance(p); end - # source://parser//lib/parser/lexer-strings.rb#5069 + # source://parser/lib/parser/lexer-strings.rb#5069 def close_interp_on_current_literal(p); end - # source://parser//lib/parser/lexer-strings.rb#5043 + # source://parser/lib/parser/lexer-strings.rb#5043 def continue_lexing(current_literal); end - # source://parser//lib/parser/lexer-strings.rb#5092 + # source://parser/lib/parser/lexer-strings.rb#5092 def dedent_level; end # Returns the value of attribute herebody_s. # - # source://parser//lib/parser/lexer-strings.rb#3295 + # source://parser/lib/parser/lexer-strings.rb#3295 def herebody_s; end # Sets the attribute herebody_s # # @param value the value to set the attribute herebody_s to. # - # source://parser//lib/parser/lexer-strings.rb#3295 + # source://parser/lib/parser/lexer-strings.rb#3295 def herebody_s=(_arg0); end - # source://parser//lib/parser/lexer-strings.rb#5047 + # source://parser/lib/parser/lexer-strings.rb#5047 def literal; end - # source://parser//lib/parser/lexer-strings.rb#5015 + # source://parser/lib/parser/lexer-strings.rb#5015 def next_state_for_literal(literal); end # This hook is triggered by "main" lexer on every newline character # - # source://parser//lib/parser/lexer-strings.rb#5100 + # source://parser/lib/parser/lexer-strings.rb#5100 def on_newline(p); end - # source://parser//lib/parser/lexer-strings.rb#5051 + # source://parser/lib/parser/lexer-strings.rb#5051 def pop_literal; end # === LITERAL STACK === # - # source://parser//lib/parser/lexer-strings.rb#5009 + # source://parser/lib/parser/lexer-strings.rb#5009 def push_literal(*args); end - # source://parser//lib/parser/lexer-strings.rb#4999 + # source://parser/lib/parser/lexer-strings.rb#4999 def read_character_constant(p); end - # source://parser//lib/parser/lexer-strings.rb#3314 + # source://parser/lib/parser/lexer-strings.rb#3314 def reset; end # Set by "main" lexer # - # source://parser//lib/parser/lexer-strings.rb#3298 + # source://parser/lib/parser/lexer-strings.rb#3298 def source_buffer; end # Set by "main" lexer # - # source://parser//lib/parser/lexer-strings.rb#3298 + # source://parser/lib/parser/lexer-strings.rb#3298 def source_buffer=(_arg0); end # Set by "main" lexer # - # source://parser//lib/parser/lexer-strings.rb#3298 + # source://parser/lib/parser/lexer-strings.rb#3298 def source_pts; end # Set by "main" lexer # - # source://parser//lib/parser/lexer-strings.rb#3298 + # source://parser/lib/parser/lexer-strings.rb#3298 def source_pts=(_arg0); end protected - # source://parser//lib/parser/lexer-strings.rb#5397 + # source://parser/lib/parser/lexer-strings.rb#5397 def check_ambiguous_slash(tm); end - # source://parser//lib/parser/lexer-strings.rb#5408 + # source://parser/lib/parser/lexer-strings.rb#5408 def check_invalid_escapes(p); end - # source://parser//lib/parser/lexer-strings.rb#5136 + # source://parser/lib/parser/lexer-strings.rb#5136 def cond; end - # source://parser//lib/parser/lexer-strings.rb#5132 + # source://parser/lib/parser/lexer-strings.rb#5132 def diagnostic(type, reason, arguments = T.unsafe(nil), location = T.unsafe(nil), highlights = T.unsafe(nil)); end - # source://parser//lib/parser/lexer-strings.rb#5128 + # source://parser/lib/parser/lexer-strings.rb#5128 def emit(type, value = T.unsafe(nil), s = T.unsafe(nil), e = T.unsafe(nil)); end - # source://parser//lib/parser/lexer-strings.rb#5387 + # source://parser/lib/parser/lexer-strings.rb#5387 def emit_character_constant; end - # source://parser//lib/parser/lexer-strings.rb#5364 + # source://parser/lib/parser/lexer-strings.rb#5364 def emit_interp_var(interp_var_kind); end # @return [Boolean] # - # source://parser//lib/parser/lexer-strings.rb#5140 + # source://parser/lib/parser/lexer-strings.rb#5140 def emit_invalid_escapes?; end - # source://parser//lib/parser/lexer-strings.rb#5291 + # source://parser/lib/parser/lexer-strings.rb#5291 def encode_escape(ord); end - # source://parser//lib/parser/lexer-strings.rb#5375 + # source://parser/lib/parser/lexer-strings.rb#5375 def encode_escaped_char(p); end # @return [Boolean] # - # source://parser//lib/parser/lexer-strings.rb#5112 + # source://parser/lib/parser/lexer-strings.rb#5112 def eof_codepoint?(point); end - # source://parser//lib/parser/lexer-strings.rb#5210 + # source://parser/lib/parser/lexer-strings.rb#5210 def extend_interp_code(current_literal); end - # source://parser//lib/parser/lexer-strings.rb#5225 + # source://parser/lib/parser/lexer-strings.rb#5225 def extend_interp_digit_var; end - # source://parser//lib/parser/lexer-strings.rb#5355 + # source://parser/lib/parser/lexer-strings.rb#5355 def extend_interp_var(current_literal); end - # source://parser//lib/parser/lexer-strings.rb#5234 + # source://parser/lib/parser/lexer-strings.rb#5234 def extend_string_eol_check_eof(current_literal, pe); end - # source://parser//lib/parser/lexer-strings.rb#5251 + # source://parser/lib/parser/lexer-strings.rb#5251 def extend_string_eol_heredoc_intertwined(p); end - # source://parser//lib/parser/lexer-strings.rb#5241 + # source://parser/lib/parser/lexer-strings.rb#5241 def extend_string_eol_heredoc_line; end - # source://parser//lib/parser/lexer-strings.rb#5267 + # source://parser/lib/parser/lexer-strings.rb#5267 def extend_string_eol_words(current_literal, p); end # String escaping # - # source://parser//lib/parser/lexer-strings.rb#5154 + # source://parser/lib/parser/lexer-strings.rb#5154 def extend_string_escaped; end - # source://parser//lib/parser/lexer-strings.rb#5287 + # source://parser/lib/parser/lexer-strings.rb#5287 def extend_string_for_token_range(current_literal, string); end - # source://parser//lib/parser/lexer-strings.rb#5279 + # source://parser/lib/parser/lexer-strings.rb#5279 def extend_string_slice_end(lookahead); end - # source://parser//lib/parser/lexer-strings.rb#5124 + # source://parser/lib/parser/lexer-strings.rb#5124 def range(s = T.unsafe(nil), e = T.unsafe(nil)); end - # source://parser//lib/parser/lexer-strings.rb#5347 + # source://parser/lib/parser/lexer-strings.rb#5347 def read_post_meta_or_ctrl_char(p); end - # source://parser//lib/parser/lexer-strings.rb#5379 + # source://parser/lib/parser/lexer-strings.rb#5379 def slash_c_char; end - # source://parser//lib/parser/lexer-strings.rb#5383 + # source://parser/lib/parser/lexer-strings.rb#5383 def slash_m_char; end - # source://parser//lib/parser/lexer-strings.rb#5120 + # source://parser/lib/parser/lexer-strings.rb#5120 def tok(s = T.unsafe(nil), e = T.unsafe(nil)); end - # source://parser//lib/parser/lexer-strings.rb#5295 + # source://parser/lib/parser/lexer-strings.rb#5295 def unescape_char(p); end - # source://parser//lib/parser/lexer-strings.rb#5307 + # source://parser/lib/parser/lexer-strings.rb#5307 def unicode_points(p); end # @return [Boolean] # - # source://parser//lib/parser/lexer-strings.rb#5116 + # source://parser/lib/parser/lexer-strings.rb#5116 def version?(*versions); end class << self # Returns the value of attribute lex_en_character. # - # source://parser//lib/parser/lexer-strings.rb#3275 + # source://parser/lib/parser/lexer-strings.rb#3275 def lex_en_character; end # Sets the attribute lex_en_character # # @param value the value to set the attribute lex_en_character to. # - # source://parser//lib/parser/lexer-strings.rb#3275 + # source://parser/lib/parser/lexer-strings.rb#3275 def lex_en_character=(_arg0); end # Returns the value of attribute lex_en_interp_backslash_delimited. # - # source://parser//lib/parser/lexer-strings.rb#3255 + # source://parser/lib/parser/lexer-strings.rb#3255 def lex_en_interp_backslash_delimited; end # Sets the attribute lex_en_interp_backslash_delimited # # @param value the value to set the attribute lex_en_interp_backslash_delimited to. # - # source://parser//lib/parser/lexer-strings.rb#3255 + # source://parser/lib/parser/lexer-strings.rb#3255 def lex_en_interp_backslash_delimited=(_arg0); end # Returns the value of attribute lex_en_interp_backslash_delimited_words. # - # source://parser//lib/parser/lexer-strings.rb#3263 + # source://parser/lib/parser/lexer-strings.rb#3263 def lex_en_interp_backslash_delimited_words; end # Sets the attribute lex_en_interp_backslash_delimited_words # # @param value the value to set the attribute lex_en_interp_backslash_delimited_words to. # - # source://parser//lib/parser/lexer-strings.rb#3263 + # source://parser/lib/parser/lexer-strings.rb#3263 def lex_en_interp_backslash_delimited_words=(_arg0); end # Returns the value of attribute lex_en_interp_string. # - # source://parser//lib/parser/lexer-strings.rb#3243 + # source://parser/lib/parser/lexer-strings.rb#3243 def lex_en_interp_string; end # Sets the attribute lex_en_interp_string # # @param value the value to set the attribute lex_en_interp_string to. # - # source://parser//lib/parser/lexer-strings.rb#3243 + # source://parser/lib/parser/lexer-strings.rb#3243 def lex_en_interp_string=(_arg0); end # Returns the value of attribute lex_en_interp_words. # - # source://parser//lib/parser/lexer-strings.rb#3239 + # source://parser/lib/parser/lexer-strings.rb#3239 def lex_en_interp_words; end # Sets the attribute lex_en_interp_words # # @param value the value to set the attribute lex_en_interp_words to. # - # source://parser//lib/parser/lexer-strings.rb#3239 + # source://parser/lib/parser/lexer-strings.rb#3239 def lex_en_interp_words=(_arg0); end # Returns the value of attribute lex_en_plain_backslash_delimited. # - # source://parser//lib/parser/lexer-strings.rb#3259 + # source://parser/lib/parser/lexer-strings.rb#3259 def lex_en_plain_backslash_delimited; end # Sets the attribute lex_en_plain_backslash_delimited # # @param value the value to set the attribute lex_en_plain_backslash_delimited to. # - # source://parser//lib/parser/lexer-strings.rb#3259 + # source://parser/lib/parser/lexer-strings.rb#3259 def lex_en_plain_backslash_delimited=(_arg0); end # Returns the value of attribute lex_en_plain_backslash_delimited_words. # - # source://parser//lib/parser/lexer-strings.rb#3267 + # source://parser/lib/parser/lexer-strings.rb#3267 def lex_en_plain_backslash_delimited_words; end # Sets the attribute lex_en_plain_backslash_delimited_words # # @param value the value to set the attribute lex_en_plain_backslash_delimited_words to. # - # source://parser//lib/parser/lexer-strings.rb#3267 + # source://parser/lib/parser/lexer-strings.rb#3267 def lex_en_plain_backslash_delimited_words=(_arg0); end # Returns the value of attribute lex_en_plain_string. # - # source://parser//lib/parser/lexer-strings.rb#3251 + # source://parser/lib/parser/lexer-strings.rb#3251 def lex_en_plain_string; end # Sets the attribute lex_en_plain_string # # @param value the value to set the attribute lex_en_plain_string to. # - # source://parser//lib/parser/lexer-strings.rb#3251 + # source://parser/lib/parser/lexer-strings.rb#3251 def lex_en_plain_string=(_arg0); end # Returns the value of attribute lex_en_plain_words. # - # source://parser//lib/parser/lexer-strings.rb#3247 + # source://parser/lib/parser/lexer-strings.rb#3247 def lex_en_plain_words; end # Sets the attribute lex_en_plain_words # # @param value the value to set the attribute lex_en_plain_words to. # - # source://parser//lib/parser/lexer-strings.rb#3247 + # source://parser/lib/parser/lexer-strings.rb#3247 def lex_en_plain_words=(_arg0); end # Returns the value of attribute lex_en_regexp_modifiers. # - # source://parser//lib/parser/lexer-strings.rb#3271 + # source://parser/lib/parser/lexer-strings.rb#3271 def lex_en_regexp_modifiers; end # Sets the attribute lex_en_regexp_modifiers # # @param value the value to set the attribute lex_en_regexp_modifiers to. # - # source://parser//lib/parser/lexer-strings.rb#3271 + # source://parser/lib/parser/lexer-strings.rb#3271 def lex_en_regexp_modifiers=(_arg0); end # Returns the value of attribute lex_en_unknown. # - # source://parser//lib/parser/lexer-strings.rb#3279 + # source://parser/lib/parser/lexer-strings.rb#3279 def lex_en_unknown; end # Sets the attribute lex_en_unknown # # @param value the value to set the attribute lex_en_unknown to. # - # source://parser//lib/parser/lexer-strings.rb#3279 + # source://parser/lib/parser/lexer-strings.rb#3279 def lex_en_unknown=(_arg0); end # Returns the value of attribute lex_error. # - # source://parser//lib/parser/lexer-strings.rb#3234 + # source://parser/lib/parser/lexer-strings.rb#3234 def lex_error; end # Sets the attribute lex_error # # @param value the value to set the attribute lex_error to. # - # source://parser//lib/parser/lexer-strings.rb#3234 + # source://parser/lib/parser/lexer-strings.rb#3234 def lex_error=(_arg0); end # Returns the value of attribute lex_start. # - # source://parser//lib/parser/lexer-strings.rb#3230 + # source://parser/lib/parser/lexer-strings.rb#3230 def lex_start; end # Sets the attribute lex_start # # @param value the value to set the attribute lex_start to. # - # source://parser//lib/parser/lexer-strings.rb#3230 + # source://parser/lib/parser/lexer-strings.rb#3230 def lex_start=(_arg0); end private # Returns the value of attribute _lex_actions. # - # source://parser//lib/parser/lexer-strings.rb#11 + # source://parser/lib/parser/lexer-strings.rb#11 def _lex_actions; end # Sets the attribute _lex_actions # # @param value the value to set the attribute _lex_actions to. # - # source://parser//lib/parser/lexer-strings.rb#11 + # source://parser/lib/parser/lexer-strings.rb#11 def _lex_actions=(_arg0); end # Returns the value of attribute _lex_eof_trans. # - # source://parser//lib/parser/lexer-strings.rb#3184 + # source://parser/lib/parser/lexer-strings.rb#3184 def _lex_eof_trans; end # Sets the attribute _lex_eof_trans # # @param value the value to set the attribute _lex_eof_trans to. # - # source://parser//lib/parser/lexer-strings.rb#3184 + # source://parser/lib/parser/lexer-strings.rb#3184 def _lex_eof_trans=(_arg0); end # Returns the value of attribute _lex_from_state_actions. # - # source://parser//lib/parser/lexer-strings.rb#3138 + # source://parser/lib/parser/lexer-strings.rb#3138 def _lex_from_state_actions; end # Sets the attribute _lex_from_state_actions # # @param value the value to set the attribute _lex_from_state_actions to. # - # source://parser//lib/parser/lexer-strings.rb#3138 + # source://parser/lib/parser/lexer-strings.rb#3138 def _lex_from_state_actions=(_arg0); end # Returns the value of attribute _lex_index_offsets. # - # source://parser//lib/parser/lexer-strings.rb#244 + # source://parser/lib/parser/lexer-strings.rb#244 def _lex_index_offsets; end # Sets the attribute _lex_index_offsets # # @param value the value to set the attribute _lex_index_offsets to. # - # source://parser//lib/parser/lexer-strings.rb#244 + # source://parser/lib/parser/lexer-strings.rb#244 def _lex_index_offsets=(_arg0); end # Returns the value of attribute _lex_indicies. # - # source://parser//lib/parser/lexer-strings.rb#290 + # source://parser/lib/parser/lexer-strings.rb#290 def _lex_indicies; end # Sets the attribute _lex_indicies # # @param value the value to set the attribute _lex_indicies to. # - # source://parser//lib/parser/lexer-strings.rb#290 + # source://parser/lib/parser/lexer-strings.rb#290 def _lex_indicies=(_arg0); end # Returns the value of attribute _lex_key_spans. # - # source://parser//lib/parser/lexer-strings.rb#198 + # source://parser/lib/parser/lexer-strings.rb#198 def _lex_key_spans; end # Sets the attribute _lex_key_spans # # @param value the value to set the attribute _lex_key_spans to. # - # source://parser//lib/parser/lexer-strings.rb#198 + # source://parser/lib/parser/lexer-strings.rb#198 def _lex_key_spans=(_arg0); end # Returns the value of attribute _lex_to_state_actions. # - # source://parser//lib/parser/lexer-strings.rb#3092 + # source://parser/lib/parser/lexer-strings.rb#3092 def _lex_to_state_actions; end # Sets the attribute _lex_to_state_actions # # @param value the value to set the attribute _lex_to_state_actions to. # - # source://parser//lib/parser/lexer-strings.rb#3092 + # source://parser/lib/parser/lexer-strings.rb#3092 def _lex_to_state_actions=(_arg0); end # Returns the value of attribute _lex_trans_actions. # - # source://parser//lib/parser/lexer-strings.rb#3029 + # source://parser/lib/parser/lexer-strings.rb#3029 def _lex_trans_actions; end # Sets the attribute _lex_trans_actions # # @param value the value to set the attribute _lex_trans_actions to. # - # source://parser//lib/parser/lexer-strings.rb#3029 + # source://parser/lib/parser/lexer-strings.rb#3029 def _lex_trans_actions=(_arg0); end # Returns the value of attribute _lex_trans_keys. # - # source://parser//lib/parser/lexer-strings.rb#76 + # source://parser/lib/parser/lexer-strings.rb#76 def _lex_trans_keys; end # Sets the attribute _lex_trans_keys # # @param value the value to set the attribute _lex_trans_keys to. # - # source://parser//lib/parser/lexer-strings.rb#76 + # source://parser/lib/parser/lexer-strings.rb#76 def _lex_trans_keys=(_arg0); end # Returns the value of attribute _lex_trans_targs. # - # source://parser//lib/parser/lexer-strings.rb#2966 + # source://parser/lib/parser/lexer-strings.rb#2966 def _lex_trans_targs; end # Sets the attribute _lex_trans_targs # # @param value the value to set the attribute _lex_trans_targs to. # - # source://parser//lib/parser/lexer-strings.rb#2966 + # source://parser/lib/parser/lexer-strings.rb#2966 def _lex_trans_targs=(_arg0); end end end # % # -# source://parser//lib/parser/lexer-strings.rb#3287 +# source://parser/lib/parser/lexer-strings.rb#3287 Parser::LexerStrings::ESCAPES = T.let(T.unsafe(nil), Hash) -# source://parser//lib/parser/lexer-strings.rb#5414 +# source://parser/lib/parser/lexer-strings.rb#5414 Parser::LexerStrings::ESCAPE_WHITESPACE = T.let(T.unsafe(nil), Hash) -# source://parser//lib/parser/lexer-strings.rb#3332 +# source://parser/lib/parser/lexer-strings.rb#3332 Parser::LexerStrings::LEX_STATES = T.let(T.unsafe(nil), Hash) -# source://parser//lib/parser/lexer-strings.rb#3293 +# source://parser/lib/parser/lexer-strings.rb#3293 Parser::LexerStrings::REGEXP_META_CHARACTERS = T.let(T.unsafe(nil), Regexp) # Diagnostic messages (errors, warnings and notices) that can be generated. @@ -3121,85 +3121,85 @@ Parser::LexerStrings::REGEXP_META_CHARACTERS = T.let(T.unsafe(nil), Regexp) # @api public # @see Diagnostic # -# source://parser//lib/parser/messages.rb#11 +# source://parser/lib/parser/messages.rb#11 Parser::MESSAGES = T.let(T.unsafe(nil), Hash) # Holds p->max_numparam from parse.y # # @api private # -# source://parser//lib/parser/max_numparam_stack.rb#8 +# source://parser/lib/parser/max_numparam_stack.rb#8 class Parser::MaxNumparamStack # @api private # @return [MaxNumparamStack] a new instance of MaxNumparamStack # - # source://parser//lib/parser/max_numparam_stack.rb#13 + # source://parser/lib/parser/max_numparam_stack.rb#13 def initialize; end # @api private # @return [Boolean] # - # source://parser//lib/parser/max_numparam_stack.rb#17 + # source://parser/lib/parser/max_numparam_stack.rb#17 def empty?; end # @api private # @return [Boolean] # - # source://parser//lib/parser/max_numparam_stack.rb#29 + # source://parser/lib/parser/max_numparam_stack.rb#29 def has_numparams?; end # @api private # - # source://parser//lib/parser/max_numparam_stack.rb#21 + # source://parser/lib/parser/max_numparam_stack.rb#21 def has_ordinary_params!; end # @api private # @return [Boolean] # - # source://parser//lib/parser/max_numparam_stack.rb#25 + # source://parser/lib/parser/max_numparam_stack.rb#25 def has_ordinary_params?; end # @api private # - # source://parser//lib/parser/max_numparam_stack.rb#45 + # source://parser/lib/parser/max_numparam_stack.rb#45 def pop; end # @api private # - # source://parser//lib/parser/max_numparam_stack.rb#41 + # source://parser/lib/parser/max_numparam_stack.rb#41 def push(static:); end # @api private # - # source://parser//lib/parser/max_numparam_stack.rb#33 + # source://parser/lib/parser/max_numparam_stack.rb#33 def register(numparam); end # @api private # - # source://parser//lib/parser/max_numparam_stack.rb#9 + # source://parser/lib/parser/max_numparam_stack.rb#9 def stack; end # @api private # - # source://parser//lib/parser/max_numparam_stack.rb#37 + # source://parser/lib/parser/max_numparam_stack.rb#37 def top; end private # @api private # - # source://parser//lib/parser/max_numparam_stack.rb#51 + # source://parser/lib/parser/max_numparam_stack.rb#51 def set(value); end end # @api private # -# source://parser//lib/parser/max_numparam_stack.rb#11 +# source://parser/lib/parser/max_numparam_stack.rb#11 Parser::MaxNumparamStack::ORDINARY_PARAMS = T.let(T.unsafe(nil), Integer) # @api private # -# source://parser//lib/parser/messages.rb#112 +# source://parser/lib/parser/messages.rb#112 module Parser::Messages class << self # Formats the message, returns a raw template if there's nothing to interpolate @@ -3209,20 +3209,20 @@ module Parser::Messages # # @api private # - # source://parser//lib/parser/messages.rb#119 + # source://parser/lib/parser/messages.rb#119 def compile(reason, arguments); end end end # Parser metadata # -# source://parser//lib/parser/meta.rb#5 +# source://parser/lib/parser/meta.rb#5 module Parser::Meta; end # All node types that parser can produce. Not all parser versions # will be able to produce every possible node. # -# source://parser//lib/parser/meta.rb#9 +# source://parser/lib/parser/meta.rb#9 Parser::Meta::NODE_TYPES = T.let(T.unsafe(nil), Set) # {Parser::Rewriter} is deprecated. Use {Parser::TreeRewriter} instead. @@ -3233,14 +3233,14 @@ Parser::Meta::NODE_TYPES = T.let(T.unsafe(nil), Set) # @api public # @deprecated Use {Parser::TreeRewriter} # -# source://parser//lib/parser/rewriter.rb#14 +# source://parser/lib/parser/rewriter.rb#14 class Parser::Rewriter < ::Parser::AST::Processor extend ::Parser::Deprecation # @api public # @return [Rewriter] a new instance of Rewriter # - # source://parser//lib/parser/rewriter.rb#98 + # source://parser/lib/parser/rewriter.rb#98 def initialize(*_arg0); end # Returns `true` if the specified node is an assignment node, returns false @@ -3250,7 +3250,7 @@ class Parser::Rewriter < ::Parser::AST::Processor # @param node [Parser::AST::Node] # @return [Boolean] # - # source://parser//lib/parser/rewriter.rb#38 + # source://parser/lib/parser/rewriter.rb#38 def assignment?(node); end # Inserts new code after the given source range. @@ -3259,7 +3259,7 @@ class Parser::Rewriter < ::Parser::AST::Processor # @param range [Parser::Source::Range] # @param content [String] # - # source://parser//lib/parser/rewriter.rb#77 + # source://parser/lib/parser/rewriter.rb#77 def insert_after(range, content); end # Inserts new code before the given source range. @@ -3268,7 +3268,7 @@ class Parser::Rewriter < ::Parser::AST::Processor # @param range [Parser::Source::Range] # @param content [String] # - # source://parser//lib/parser/rewriter.rb#67 + # source://parser/lib/parser/rewriter.rb#67 def insert_before(range, content); end # Removes the source range. @@ -3276,7 +3276,7 @@ class Parser::Rewriter < ::Parser::AST::Processor # @api public # @param range [Parser::Source::Range] # - # source://parser//lib/parser/rewriter.rb#47 + # source://parser/lib/parser/rewriter.rb#47 def remove(range); end # Replaces the code of the source range `range` with `content`. @@ -3285,7 +3285,7 @@ class Parser::Rewriter < ::Parser::AST::Processor # @param range [Parser::Source::Range] # @param content [String] # - # source://parser//lib/parser/rewriter.rb#87 + # source://parser/lib/parser/rewriter.rb#87 def replace(range, content); end # Rewrites the AST/source buffer and returns a String containing the new @@ -3296,7 +3296,7 @@ class Parser::Rewriter < ::Parser::AST::Processor # @param ast [Parser::AST::Node] # @return [String] # - # source://parser//lib/parser/rewriter.rb#23 + # source://parser/lib/parser/rewriter.rb#23 def rewrite(source_buffer, ast); end # Wraps the given source range with the given values. @@ -3305,18 +3305,18 @@ class Parser::Rewriter < ::Parser::AST::Processor # @param range [Parser::Source::Range] # @param content [String] # - # source://parser//lib/parser/rewriter.rb#57 + # source://parser/lib/parser/rewriter.rb#57 def wrap(range, before, after); end end # @api public # -# source://parser//lib/parser/rewriter.rb#91 +# source://parser/lib/parser/rewriter.rb#91 Parser::Rewriter::DEPRECATION_WARNING = T.let(T.unsafe(nil), String) # @api public # -# source://parser//lib/parser.rb#30 +# source://parser/lib/parser.rb#30 module Parser::Source; end # A buffer with source code. {Buffer} contains the source code itself, @@ -3327,12 +3327,12 @@ module Parser::Source; end # # @api public # -# source://parser//lib/parser/source/buffer.rb#25 +# source://parser/lib/parser/source/buffer.rb#25 class Parser::Source::Buffer # @api public # @return [Buffer] a new instance of Buffer # - # source://parser//lib/parser/source/buffer.rb#110 + # source://parser/lib/parser/source/buffer.rb#110 def initialize(name, first_line = T.unsafe(nil), source: T.unsafe(nil)); end # Convert a character index into the source to a column number. @@ -3341,7 +3341,7 @@ class Parser::Source::Buffer # @param position [Integer] # @return [Integer] column # - # source://parser//lib/parser/source/buffer.rb#247 + # source://parser/lib/parser/source/buffer.rb#247 def column_for_position(position); end # Convert a character index into the source to a `[line, column]` tuple. @@ -3350,7 +3350,7 @@ class Parser::Source::Buffer # @param position [Integer] # @return [[Integer, Integer]] `[line, column]` # - # source://parser//lib/parser/source/buffer.rb#222 + # source://parser/lib/parser/source/buffer.rb#222 def decompose_position(position); end # First line of the buffer, 1 by default. @@ -3358,17 +3358,17 @@ class Parser::Source::Buffer # @api public # @return [Integer] first line # - # source://parser//lib/parser/source/buffer.rb#26 + # source://parser/lib/parser/source/buffer.rb#26 def first_line; end # @api public # - # source://parser//lib/parser/source/buffer.rb#317 + # source://parser/lib/parser/source/buffer.rb#317 def freeze; end # @api public # - # source://parser//lib/parser/source/buffer.rb#323 + # source://parser/lib/parser/source/buffer.rb#323 def inspect; end # Number of last line in the buffer @@ -3376,7 +3376,7 @@ class Parser::Source::Buffer # @api public # @return [Integer] # - # source://parser//lib/parser/source/buffer.rb#312 + # source://parser/lib/parser/source/buffer.rb#312 def last_line; end # Convert a character index into the source to a line number. @@ -3385,7 +3385,7 @@ class Parser::Source::Buffer # @param position [Integer] # @return [Integer] line # - # source://parser//lib/parser/source/buffer.rb#236 + # source://parser/lib/parser/source/buffer.rb#236 def line_for_position(position); end # Extract line `lineno` as a new `Range`, taking `first_line` into account. @@ -3395,7 +3395,7 @@ class Parser::Source::Buffer # @raise [IndexError] if `lineno` is out of bounds # @return [Range] # - # source://parser//lib/parser/source/buffer.rb#289 + # source://parser/lib/parser/source/buffer.rb#289 def line_range(lineno); end # Buffer name. If the buffer was created from a file, the name corresponds @@ -3404,7 +3404,7 @@ class Parser::Source::Buffer # @api public # @return [String] buffer name # - # source://parser//lib/parser/source/buffer.rb#26 + # source://parser/lib/parser/source/buffer.rb#26 def name; end # Populate this buffer from a string without encoding autodetection. @@ -3414,7 +3414,7 @@ class Parser::Source::Buffer # @raise [ArgumentError] if already populated # @return [String] # - # source://parser//lib/parser/source/buffer.rb#185 + # source://parser/lib/parser/source/buffer.rb#185 def raw_source=(input); end # Populate this buffer from correspondingly named file. @@ -3425,12 +3425,12 @@ class Parser::Source::Buffer # @raise [ArgumentError] if already populated # @return [Buffer] self # - # source://parser//lib/parser/source/buffer.rb#136 + # source://parser/lib/parser/source/buffer.rb#136 def read; end # @api public # - # source://parser//lib/parser/source/buffer.rb#199 + # source://parser/lib/parser/source/buffer.rb#199 def slice(start, length = T.unsafe(nil)); end # Source code contained in this buffer. @@ -3439,7 +3439,7 @@ class Parser::Source::Buffer # @raise [RuntimeError] if buffer is not populated yet # @return [String] source code # - # source://parser//lib/parser/source/buffer.rb#150 + # source://parser/lib/parser/source/buffer.rb#150 def source; end # Populate this buffer from a string with encoding autodetection. @@ -3451,7 +3451,7 @@ class Parser::Source::Buffer # @raise [EncodingError] if `input` includes invalid byte sequence for the encoding # @return [String] # - # source://parser//lib/parser/source/buffer.rb#167 + # source://parser/lib/parser/source/buffer.rb#167 def source=(input); end # Extract line `lineno` from source, taking `first_line` into account. @@ -3461,7 +3461,7 @@ class Parser::Source::Buffer # @raise [IndexError] if `lineno` is out of bounds # @return [String] # - # source://parser//lib/parser/source/buffer.rb#278 + # source://parser/lib/parser/source/buffer.rb#278 def source_line(lineno); end # Return an `Array` of source code lines. @@ -3469,30 +3469,30 @@ class Parser::Source::Buffer # @api public # @return [Array] # - # source://parser//lib/parser/source/buffer.rb#257 + # source://parser/lib/parser/source/buffer.rb#257 def source_lines; end # @api public # @return [Range] A range covering the whole source # - # source://parser//lib/parser/source/buffer.rb#303 + # source://parser/lib/parser/source/buffer.rb#303 def source_range; end private # @api public # - # source://parser//lib/parser/source/buffer.rb#353 + # source://parser/lib/parser/source/buffer.rb#353 def bsearch(line_begins, position); end # @api public # - # source://parser//lib/parser/source/buffer.rb#330 + # source://parser/lib/parser/source/buffer.rb#330 def line_begins; end # @api public # - # source://parser//lib/parser/source/buffer.rb#344 + # source://parser/lib/parser/source/buffer.rb#344 def line_index_for_position(position); end class << self @@ -3504,7 +3504,7 @@ class Parser::Source::Buffer # @raise [Parser::UnknownEncodingInMagicComment] if the encoding is not recognized # @return [String, nil] encoding name, if recognized # - # source://parser//lib/parser/source/buffer.rb#52 + # source://parser/lib/parser/source/buffer.rb#52 def recognize_encoding(string); end # Recognize encoding of `input` and process it so it could be lexed. @@ -3522,27 +3522,27 @@ class Parser::Source::Buffer # @raise [EncodingError] # @return [String] # - # source://parser//lib/parser/source/buffer.rb#95 + # source://parser/lib/parser/source/buffer.rb#95 def reencode_string(input); end end end # @api private # -# source://parser//lib/parser/source/buffer.rb#31 +# source://parser/lib/parser/source/buffer.rb#31 Parser::Source::Buffer::ENCODING_RE = T.let(T.unsafe(nil), Regexp) # A comment in the source code. # # @api public # -# source://parser//lib/parser/source/comment.rb#17 +# source://parser/lib/parser/source/comment.rb#17 class Parser::Source::Comment # @api public # @param range [Parser::Source::Range] # @return [Comment] a new instance of Comment # - # source://parser//lib/parser/source/comment.rb#67 + # source://parser/lib/parser/source/comment.rb#67 def initialize(range); end # Compares comments. Two comments are equal if they @@ -3552,45 +3552,45 @@ class Parser::Source::Comment # @param other [Object] # @return [Boolean] # - # source://parser//lib/parser/source/comment.rb#120 + # source://parser/lib/parser/source/comment.rb#120 def ==(other); end # @api public # @return [Boolean] true if this is a block comment. # @see #type # - # source://parser//lib/parser/source/comment.rb#109 + # source://parser/lib/parser/source/comment.rb#109 def document?; end # @api public # @return [Boolean] true if this is an inline comment. # @see #type # - # source://parser//lib/parser/source/comment.rb#101 + # source://parser/lib/parser/source/comment.rb#101 def inline?; end # @api public # @return [String] a human-readable representation of this comment # - # source://parser//lib/parser/source/comment.rb#128 + # source://parser/lib/parser/source/comment.rb#128 def inspect; end # @api public # @return [Parser::Source::Range] # - # source://parser//lib/parser/source/comment.rb#20 + # source://parser/lib/parser/source/comment.rb#20 def loc; end # @api public # @return [Parser::Source::Range] # - # source://parser//lib/parser/source/comment.rb#20 + # source://parser/lib/parser/source/comment.rb#20 def location; end # @api public # @return [String] # - # source://parser//lib/parser/source/comment.rb#18 + # source://parser/lib/parser/source/comment.rb#18 def text; end # Type of this comment. @@ -3608,7 +3608,7 @@ class Parser::Source::Comment # @api public # @return [Symbol] # - # source://parser//lib/parser/source/comment.rb#89 + # source://parser/lib/parser/source/comment.rb#89 def type; end class << self @@ -3621,7 +3621,7 @@ class Parser::Source::Comment # @return [Hash>] # @see Parser::Source::Comment::Associator#associate # - # source://parser//lib/parser/source/comment.rb#32 + # source://parser/lib/parser/source/comment.rb#32 def associate(ast, comments); end # Associate `comments` with `ast` nodes using identity. @@ -3632,7 +3632,7 @@ class Parser::Source::Comment # @return [Hash>] # @see Parser::Source::Comment::Associator#associate_by_identity # - # source://parser//lib/parser/source/comment.rb#59 + # source://parser/lib/parser/source/comment.rb#59 def associate_by_identity(ast, comments); end # Associate `comments` with `ast` nodes by their location in the @@ -3644,71 +3644,71 @@ class Parser::Source::Comment # @return [Hash>] # @see Parser::Source::Comment::Associator#associate_locations # - # source://parser//lib/parser/source/comment.rb#46 + # source://parser/lib/parser/source/comment.rb#46 def associate_locations(ast, comments); end end end -# source://parser//lib/parser/source/comment/associator.rb#45 +# source://parser/lib/parser/source/comment/associator.rb#45 class Parser::Source::Comment::Associator - # source://parser//lib/parser/source/comment/associator.rb#51 + # source://parser/lib/parser/source/comment/associator.rb#51 def initialize(ast, comments); end - # source://parser//lib/parser/source/comment/associator.rb#92 + # source://parser/lib/parser/source/comment/associator.rb#92 def associate; end - # source://parser//lib/parser/source/comment/associator.rb#115 + # source://parser/lib/parser/source/comment/associator.rb#115 def associate_by_identity; end - # source://parser//lib/parser/source/comment/associator.rb#104 + # source://parser/lib/parser/source/comment/associator.rb#104 def associate_locations; end - # source://parser//lib/parser/source/comment/associator.rb#46 + # source://parser/lib/parser/source/comment/associator.rb#46 def skip_directives; end - # source://parser//lib/parser/source/comment/associator.rb#46 + # source://parser/lib/parser/source/comment/associator.rb#46 def skip_directives=(_arg0); end private - # source://parser//lib/parser/source/comment/associator.rb#182 + # source://parser/lib/parser/source/comment/associator.rb#182 def advance_comment; end - # source://parser//lib/parser/source/comment/associator.rb#214 + # source://parser/lib/parser/source/comment/associator.rb#214 def advance_through_directives; end - # source://parser//lib/parser/source/comment/associator.rb#206 + # source://parser/lib/parser/source/comment/associator.rb#206 def associate_and_advance_comment(node); end - # source://parser//lib/parser/source/comment/associator.rb#123 + # source://parser/lib/parser/source/comment/associator.rb#123 def children_in_source_order(node); end - # source://parser//lib/parser/source/comment/associator.rb#187 + # source://parser/lib/parser/source/comment/associator.rb#187 def current_comment_before?(node); end - # source://parser//lib/parser/source/comment/associator.rb#194 + # source://parser/lib/parser/source/comment/associator.rb#194 def current_comment_before_end?(node); end - # source://parser//lib/parser/source/comment/associator.rb#201 + # source://parser/lib/parser/source/comment/associator.rb#201 def current_comment_decorates?(node); end - # source://parser//lib/parser/source/comment/associator.rb#135 + # source://parser/lib/parser/source/comment/associator.rb#135 def do_associate; end - # source://parser//lib/parser/source/comment/associator.rb#166 + # source://parser/lib/parser/source/comment/associator.rb#166 def process_leading_comments(node); end - # source://parser//lib/parser/source/comment/associator.rb#173 + # source://parser/lib/parser/source/comment/associator.rb#173 def process_trailing_comments(node); end - # source://parser//lib/parser/source/comment/associator.rb#148 + # source://parser/lib/parser/source/comment/associator.rb#148 def visit(node); end end -# source://parser//lib/parser/source/comment/associator.rb#212 +# source://parser/lib/parser/source/comment/associator.rb#212 Parser::Source::Comment::Associator::MAGIC_COMMENT_RE = T.let(T.unsafe(nil), Regexp) -# source://parser//lib/parser/source/comment/associator.rb#122 +# source://parser/lib/parser/source/comment/associator.rb#122 Parser::Source::Comment::Associator::POSTFIX_TYPES = T.let(T.unsafe(nil), Set) # {Map} relates AST nodes to the source code they were parsed from. @@ -3766,13 +3766,13 @@ Parser::Source::Comment::Associator::POSTFIX_TYPES = T.let(T.unsafe(nil), Set) # # @begin=#, # # @expression=#> # -# source://parser//lib/parser/source/map.rb#70 +# source://parser/lib/parser/source/map.rb#70 class Parser::Source::Map # @api public # @param expression [Range] # @return [Map] a new instance of Map # - # source://parser//lib/parser/source/map.rb#76 + # source://parser/lib/parser/source/map.rb#76 def initialize(expression); end # Compares source maps. @@ -3780,7 +3780,7 @@ class Parser::Source::Map # @api public # @return [Boolean] # - # source://parser//lib/parser/source/map.rb#140 + # source://parser/lib/parser/source/map.rb#140 def ==(other); end # A shortcut for `self.expression.column`. @@ -3788,13 +3788,13 @@ class Parser::Source::Map # @api public # @return [Integer] # - # source://parser//lib/parser/source/map.rb#109 + # source://parser/lib/parser/source/map.rb#109 def column; end # @api public # @return [Range] # - # source://parser//lib/parser/source/map.rb#72 + # source://parser/lib/parser/source/map.rb#72 def expression; end # A shortcut for `self.expression.line`. @@ -3802,7 +3802,7 @@ class Parser::Source::Map # @api public # @return [Integer] # - # source://parser//lib/parser/source/map.rb#99 + # source://parser/lib/parser/source/map.rb#99 def first_line; end # A shortcut for `self.expression.last_column`. @@ -3810,7 +3810,7 @@ class Parser::Source::Map # @api public # @return [Integer] # - # source://parser//lib/parser/source/map.rb#125 + # source://parser/lib/parser/source/map.rb#125 def last_column; end # A shortcut for `self.expression.last_line`. @@ -3818,7 +3818,7 @@ class Parser::Source::Map # @api public # @return [Integer] # - # source://parser//lib/parser/source/map.rb#117 + # source://parser/lib/parser/source/map.rb#117 def last_line; end # A shortcut for `self.expression.line`. @@ -3826,7 +3826,7 @@ class Parser::Source::Map # @api public # @return [Integer] # - # source://parser//lib/parser/source/map.rb#99 + # source://parser/lib/parser/source/map.rb#99 def line; end # The node that is described by this map. Nodes and maps have 1:1 correspondence. @@ -3834,12 +3834,12 @@ class Parser::Source::Map # @api public # @return [Parser::AST::Node] # - # source://parser//lib/parser/source/map.rb#71 + # source://parser/lib/parser/source/map.rb#71 def node; end # @api private # - # source://parser//lib/parser/source/map.rb#89 + # source://parser/lib/parser/source/map.rb#89 def node=(node); end # Converts this source map to a hash with keys corresponding to @@ -3859,291 +3859,291 @@ class Parser::Source::Map # # } # @return [Hash] # - # source://parser//lib/parser/source/map.rb#166 + # source://parser/lib/parser/source/map.rb#166 def to_hash; end # @api private # - # source://parser//lib/parser/source/map.rb#132 + # source://parser/lib/parser/source/map.rb#132 def with_expression(expression_l); end protected # @api public # - # source://parser//lib/parser/source/map.rb#180 + # source://parser/lib/parser/source/map.rb#180 def update_expression(expression_l); end # @api public # - # source://parser//lib/parser/source/map.rb#176 + # source://parser/lib/parser/source/map.rb#176 def with(&block); end private # @api private # - # source://parser//lib/parser/source/map.rb#82 + # source://parser/lib/parser/source/map.rb#82 def initialize_copy(other); end end -# source://parser//lib/parser/source/map/collection.rb#6 +# source://parser/lib/parser/source/map/collection.rb#6 class Parser::Source::Map::Collection < ::Parser::Source::Map - # source://parser//lib/parser/source/map/collection.rb#10 + # source://parser/lib/parser/source/map/collection.rb#10 def initialize(begin_l, end_l, expression_l); end - # source://parser//lib/parser/source/map/collection.rb#7 + # source://parser/lib/parser/source/map/collection.rb#7 def begin; end - # source://parser//lib/parser/source/map/collection.rb#8 + # source://parser/lib/parser/source/map/collection.rb#8 def end; end end -# source://parser//lib/parser/source/map/condition.rb#6 +# source://parser/lib/parser/source/map/condition.rb#6 class Parser::Source::Map::Condition < ::Parser::Source::Map - # source://parser//lib/parser/source/map/condition.rb#12 + # source://parser/lib/parser/source/map/condition.rb#12 def initialize(keyword_l, begin_l, else_l, end_l, expression_l); end - # source://parser//lib/parser/source/map/condition.rb#8 + # source://parser/lib/parser/source/map/condition.rb#8 def begin; end - # source://parser//lib/parser/source/map/condition.rb#9 + # source://parser/lib/parser/source/map/condition.rb#9 def else; end - # source://parser//lib/parser/source/map/condition.rb#10 + # source://parser/lib/parser/source/map/condition.rb#10 def end; end - # source://parser//lib/parser/source/map/condition.rb#7 + # source://parser/lib/parser/source/map/condition.rb#7 def keyword; end end -# source://parser//lib/parser/source/map/constant.rb#6 +# source://parser/lib/parser/source/map/constant.rb#6 class Parser::Source::Map::Constant < ::Parser::Source::Map - # source://parser//lib/parser/source/map/constant.rb#11 + # source://parser/lib/parser/source/map/constant.rb#11 def initialize(double_colon, name, expression); end - # source://parser//lib/parser/source/map/constant.rb#7 + # source://parser/lib/parser/source/map/constant.rb#7 def double_colon; end - # source://parser//lib/parser/source/map/constant.rb#8 + # source://parser/lib/parser/source/map/constant.rb#8 def name; end - # source://parser//lib/parser/source/map/constant.rb#9 + # source://parser/lib/parser/source/map/constant.rb#9 def operator; end - # source://parser//lib/parser/source/map/constant.rb#20 + # source://parser/lib/parser/source/map/constant.rb#20 def with_operator(operator_l); end protected - # source://parser//lib/parser/source/map/constant.rb#26 + # source://parser/lib/parser/source/map/constant.rb#26 def update_operator(operator_l); end end -# source://parser//lib/parser/source/map/definition.rb#6 +# source://parser/lib/parser/source/map/definition.rb#6 class Parser::Source::Map::Definition < ::Parser::Source::Map - # source://parser//lib/parser/source/map/definition.rb#12 + # source://parser/lib/parser/source/map/definition.rb#12 def initialize(keyword_l, operator_l, name_l, end_l); end - # source://parser//lib/parser/source/map/definition.rb#10 + # source://parser/lib/parser/source/map/definition.rb#10 def end; end - # source://parser//lib/parser/source/map/definition.rb#7 + # source://parser/lib/parser/source/map/definition.rb#7 def keyword; end - # source://parser//lib/parser/source/map/definition.rb#9 + # source://parser/lib/parser/source/map/definition.rb#9 def name; end - # source://parser//lib/parser/source/map/definition.rb#8 + # source://parser/lib/parser/source/map/definition.rb#8 def operator; end end -# source://parser//lib/parser/source/map/for.rb#6 +# source://parser/lib/parser/source/map/for.rb#6 class Parser::Source::Map::For < ::Parser::Source::Map - # source://parser//lib/parser/source/map/for.rb#10 + # source://parser/lib/parser/source/map/for.rb#10 def initialize(keyword_l, in_l, begin_l, end_l, expression_l); end - # source://parser//lib/parser/source/map/for.rb#8 + # source://parser/lib/parser/source/map/for.rb#8 def begin; end - # source://parser//lib/parser/source/map/for.rb#8 + # source://parser/lib/parser/source/map/for.rb#8 def end; end - # source://parser//lib/parser/source/map/for.rb#7 + # source://parser/lib/parser/source/map/for.rb#7 def in; end - # source://parser//lib/parser/source/map/for.rb#7 + # source://parser/lib/parser/source/map/for.rb#7 def keyword; end end -# source://parser//lib/parser/source/map/heredoc.rb#6 +# source://parser/lib/parser/source/map/heredoc.rb#6 class Parser::Source::Map::Heredoc < ::Parser::Source::Map - # source://parser//lib/parser/source/map/heredoc.rb#10 + # source://parser/lib/parser/source/map/heredoc.rb#10 def initialize(begin_l, body_l, end_l); end - # source://parser//lib/parser/source/map/heredoc.rb#7 + # source://parser/lib/parser/source/map/heredoc.rb#7 def heredoc_body; end - # source://parser//lib/parser/source/map/heredoc.rb#8 + # source://parser/lib/parser/source/map/heredoc.rb#8 def heredoc_end; end end -# source://parser//lib/parser/source/map/index.rb#6 +# source://parser/lib/parser/source/map/index.rb#6 class Parser::Source::Map::Index < ::Parser::Source::Map - # source://parser//lib/parser/source/map/index.rb#11 + # source://parser/lib/parser/source/map/index.rb#11 def initialize(begin_l, end_l, expression_l); end - # source://parser//lib/parser/source/map/index.rb#7 + # source://parser/lib/parser/source/map/index.rb#7 def begin; end - # source://parser//lib/parser/source/map/index.rb#8 + # source://parser/lib/parser/source/map/index.rb#8 def end; end - # source://parser//lib/parser/source/map/index.rb#9 + # source://parser/lib/parser/source/map/index.rb#9 def operator; end - # source://parser//lib/parser/source/map/index.rb#21 + # source://parser/lib/parser/source/map/index.rb#21 def with_operator(operator_l); end protected - # source://parser//lib/parser/source/map/index.rb#27 + # source://parser/lib/parser/source/map/index.rb#27 def update_operator(operator_l); end end -# source://parser//lib/parser/source/map/keyword.rb#6 +# source://parser/lib/parser/source/map/keyword.rb#6 class Parser::Source::Map::Keyword < ::Parser::Source::Map - # source://parser//lib/parser/source/map/keyword.rb#11 + # source://parser/lib/parser/source/map/keyword.rb#11 def initialize(keyword_l, begin_l, end_l, expression_l); end - # source://parser//lib/parser/source/map/keyword.rb#8 + # source://parser/lib/parser/source/map/keyword.rb#8 def begin; end - # source://parser//lib/parser/source/map/keyword.rb#9 + # source://parser/lib/parser/source/map/keyword.rb#9 def end; end - # source://parser//lib/parser/source/map/keyword.rb#7 + # source://parser/lib/parser/source/map/keyword.rb#7 def keyword; end end -# source://parser//lib/parser/source/map/method_definition.rb#6 +# source://parser/lib/parser/source/map/method_definition.rb#6 class Parser::Source::Map::MethodDefinition < ::Parser::Source::Map - # source://parser//lib/parser/source/map/method_definition.rb#13 + # source://parser/lib/parser/source/map/method_definition.rb#13 def initialize(keyword_l, operator_l, name_l, end_l, assignment_l, body_l); end - # source://parser//lib/parser/source/map/method_definition.rb#11 + # source://parser/lib/parser/source/map/method_definition.rb#11 def assignment; end - # source://parser//lib/parser/source/map/method_definition.rb#10 + # source://parser/lib/parser/source/map/method_definition.rb#10 def end; end - # source://parser//lib/parser/source/map/method_definition.rb#7 + # source://parser/lib/parser/source/map/method_definition.rb#7 def keyword; end - # source://parser//lib/parser/source/map/method_definition.rb#9 + # source://parser/lib/parser/source/map/method_definition.rb#9 def name; end - # source://parser//lib/parser/source/map/method_definition.rb#8 + # source://parser/lib/parser/source/map/method_definition.rb#8 def operator; end end -# source://parser//lib/parser/source/map/objc_kwarg.rb#6 +# source://parser/lib/parser/source/map/objc_kwarg.rb#6 class Parser::Source::Map::ObjcKwarg < ::Parser::Source::Map - # source://parser//lib/parser/source/map/objc_kwarg.rb#11 + # source://parser/lib/parser/source/map/objc_kwarg.rb#11 def initialize(keyword_l, operator_l, argument_l, expression_l); end - # source://parser//lib/parser/source/map/objc_kwarg.rb#9 + # source://parser/lib/parser/source/map/objc_kwarg.rb#9 def argument; end - # source://parser//lib/parser/source/map/objc_kwarg.rb#7 + # source://parser/lib/parser/source/map/objc_kwarg.rb#7 def keyword; end - # source://parser//lib/parser/source/map/objc_kwarg.rb#8 + # source://parser/lib/parser/source/map/objc_kwarg.rb#8 def operator; end end -# source://parser//lib/parser/source/map/operator.rb#6 +# source://parser/lib/parser/source/map/operator.rb#6 class Parser::Source::Map::Operator < ::Parser::Source::Map - # source://parser//lib/parser/source/map/operator.rb#9 + # source://parser/lib/parser/source/map/operator.rb#9 def initialize(operator, expression); end - # source://parser//lib/parser/source/map/operator.rb#7 + # source://parser/lib/parser/source/map/operator.rb#7 def operator; end end -# source://parser//lib/parser/source/map/rescue_body.rb#6 +# source://parser/lib/parser/source/map/rescue_body.rb#6 class Parser::Source::Map::RescueBody < ::Parser::Source::Map - # source://parser//lib/parser/source/map/rescue_body.rb#11 + # source://parser/lib/parser/source/map/rescue_body.rb#11 def initialize(keyword_l, assoc_l, begin_l, expression_l); end - # source://parser//lib/parser/source/map/rescue_body.rb#8 + # source://parser/lib/parser/source/map/rescue_body.rb#8 def assoc; end - # source://parser//lib/parser/source/map/rescue_body.rb#9 + # source://parser/lib/parser/source/map/rescue_body.rb#9 def begin; end - # source://parser//lib/parser/source/map/rescue_body.rb#7 + # source://parser/lib/parser/source/map/rescue_body.rb#7 def keyword; end end -# source://parser//lib/parser/source/map/send.rb#6 +# source://parser/lib/parser/source/map/send.rb#6 class Parser::Source::Map::Send < ::Parser::Source::Map - # source://parser//lib/parser/source/map/send.rb#13 + # source://parser/lib/parser/source/map/send.rb#13 def initialize(dot_l, selector_l, begin_l, end_l, expression_l); end - # source://parser//lib/parser/source/map/send.rb#10 + # source://parser/lib/parser/source/map/send.rb#10 def begin; end - # source://parser//lib/parser/source/map/send.rb#7 + # source://parser/lib/parser/source/map/send.rb#7 def dot; end - # source://parser//lib/parser/source/map/send.rb#11 + # source://parser/lib/parser/source/map/send.rb#11 def end; end - # source://parser//lib/parser/source/map/send.rb#9 + # source://parser/lib/parser/source/map/send.rb#9 def operator; end - # source://parser//lib/parser/source/map/send.rb#8 + # source://parser/lib/parser/source/map/send.rb#8 def selector; end - # source://parser//lib/parser/source/map/send.rb#24 + # source://parser/lib/parser/source/map/send.rb#24 def with_operator(operator_l); end protected - # source://parser//lib/parser/source/map/send.rb#30 + # source://parser/lib/parser/source/map/send.rb#30 def update_operator(operator_l); end end -# source://parser//lib/parser/source/map/ternary.rb#6 +# source://parser/lib/parser/source/map/ternary.rb#6 class Parser::Source::Map::Ternary < ::Parser::Source::Map - # source://parser//lib/parser/source/map/ternary.rb#10 + # source://parser/lib/parser/source/map/ternary.rb#10 def initialize(question_l, colon_l, expression_l); end - # source://parser//lib/parser/source/map/ternary.rb#8 + # source://parser/lib/parser/source/map/ternary.rb#8 def colon; end - # source://parser//lib/parser/source/map/ternary.rb#7 + # source://parser/lib/parser/source/map/ternary.rb#7 def question; end end -# source://parser//lib/parser/source/map/variable.rb#6 +# source://parser/lib/parser/source/map/variable.rb#6 class Parser::Source::Map::Variable < ::Parser::Source::Map - # source://parser//lib/parser/source/map/variable.rb#10 + # source://parser/lib/parser/source/map/variable.rb#10 def initialize(name_l, expression_l = T.unsafe(nil)); end - # source://parser//lib/parser/source/map/variable.rb#7 + # source://parser/lib/parser/source/map/variable.rb#7 def name; end - # source://parser//lib/parser/source/map/variable.rb#8 + # source://parser/lib/parser/source/map/variable.rb#8 def operator; end - # source://parser//lib/parser/source/map/variable.rb#19 + # source://parser/lib/parser/source/map/variable.rb#19 def with_operator(operator_l); end protected - # source://parser//lib/parser/source/map/variable.rb#25 + # source://parser/lib/parser/source/map/variable.rb#25 def update_operator(operator_l); end end @@ -4157,7 +4157,7 @@ end # # @api public # -# source://parser//lib/parser/source/range.rb#26 +# source://parser/lib/parser/source/range.rb#26 class Parser::Source::Range include ::Comparable @@ -4167,14 +4167,14 @@ class Parser::Source::Range # @param end_pos [Integer] # @return [Range] a new instance of Range # - # source://parser//lib/parser/source/range.rb#37 + # source://parser/lib/parser/source/range.rb#37 def initialize(source_buffer, begin_pos, end_pos); end # Compare ranges, first by begin_pos, then by end_pos. # # @api public # - # source://parser//lib/parser/source/range.rb#301 + # source://parser/lib/parser/source/range.rb#301 def <=>(other); end # by the given amount(s) @@ -4183,33 +4183,33 @@ class Parser::Source::Range # @param Endpoint(s) [Hash] to change, any combination of :begin_pos or :end_pos # @return [Range] the same range as this range but with the given end point(s) adjusted # - # source://parser//lib/parser/source/range.rb#193 + # source://parser/lib/parser/source/range.rb#193 def adjust(begin_pos: T.unsafe(nil), end_pos: T.unsafe(nil)); end # @api public # @return [Range] a zero-length range located just before the beginning # of this range. # - # source://parser//lib/parser/source/range.rb#55 + # source://parser/lib/parser/source/range.rb#55 def begin; end # @api public # @return [Integer] index of the first character in the range # - # source://parser//lib/parser/source/range.rb#30 + # source://parser/lib/parser/source/range.rb#30 def begin_pos; end # @api public # @return [Integer] zero-based column number of the beginning of this range. # - # source://parser//lib/parser/source/range.rb#92 + # source://parser/lib/parser/source/range.rb#92 def column; end # @api public # @raise RangeError # @return [::Range] a range of columns spanned by this range. # - # source://parser//lib/parser/source/range.rb#114 + # source://parser/lib/parser/source/range.rb#114 def column_range; end # Return `other.contains?(self)` @@ -4220,7 +4220,7 @@ class Parser::Source::Range # @param other [Range] # @return [Boolean] # - # source://parser//lib/parser/source/range.rb#274 + # source://parser/lib/parser/source/range.rb#274 def contained?(other); end # Returns true iff this range contains (strictly) `other`. @@ -4231,7 +4231,7 @@ class Parser::Source::Range # @param other [Range] # @return [Boolean] # - # source://parser//lib/parser/source/range.rb#262 + # source://parser/lib/parser/source/range.rb#262 def contains?(other); end # Returns true iff both ranges intersect and also have different elements from one another. @@ -4242,7 +4242,7 @@ class Parser::Source::Range # @param other [Range] # @return [Boolean] # - # source://parser//lib/parser/source/range.rb#286 + # source://parser/lib/parser/source/range.rb#286 def crossing?(other); end # Return `true` iff this range and `other` are disjoint. @@ -4253,7 +4253,7 @@ class Parser::Source::Range # @param other [Range] # @return [Boolean] # - # source://parser//lib/parser/source/range.rb#236 + # source://parser/lib/parser/source/range.rb#236 def disjoint?(other); end # Checks if a range is empty; if it contains no characters @@ -4261,20 +4261,20 @@ class Parser::Source::Range # @api public # @return [Boolean] # - # source://parser//lib/parser/source/range.rb#294 + # source://parser/lib/parser/source/range.rb#294 def empty?; end # @api public # @return [Range] a zero-length range located just after the end # of this range. # - # source://parser//lib/parser/source/range.rb#63 + # source://parser/lib/parser/source/range.rb#63 def end; end # @api public # @return [Integer] index of the character after the last character in the range # - # source://parser//lib/parser/source/range.rb#30 + # source://parser/lib/parser/source/range.rb#30 def end_pos; end # @api public @@ -4287,20 +4287,20 @@ class Parser::Source::Range # @return [Integer] line number of the beginning of this range. # @see Buffer # - # source://parser//lib/parser/source/range.rb#83 + # source://parser/lib/parser/source/range.rb#83 def first_line; end # Support for Ranges be used in as Hash indices and in Sets. # # @api public # - # source://parser//lib/parser/source/range.rb#313 + # source://parser/lib/parser/source/range.rb#313 def hash; end # @api public # @return [String] a human-readable representation of this range. # - # source://parser//lib/parser/source/range.rb#320 + # source://parser/lib/parser/source/range.rb#320 def inspect; end # @api public @@ -4308,7 +4308,7 @@ class Parser::Source::Range # @return [Range] overlapping region of this range and `other`, or `nil` # if they do not overlap # - # source://parser//lib/parser/source/range.rb#220 + # source://parser/lib/parser/source/range.rb#220 def intersect(other); end # `is?` provides a concise way to compare the source corresponding to this range. @@ -4318,32 +4318,32 @@ class Parser::Source::Range # @api public # @return [Boolean] # - # source://parser//lib/parser/source/range.rb#141 + # source://parser/lib/parser/source/range.rb#141 def is?(*what); end # @api public # @param other [Range] # @return [Range] smallest possible range spanning both this range and `other`. # - # source://parser//lib/parser/source/range.rb#209 + # source://parser/lib/parser/source/range.rb#209 def join(other); end # @api public # @return [Integer] zero-based column number of the end of this range. # - # source://parser//lib/parser/source/range.rb#106 + # source://parser/lib/parser/source/range.rb#106 def last_column; end # @api public # @return [Integer] line number of the end of this range. # - # source://parser//lib/parser/source/range.rb#99 + # source://parser/lib/parser/source/range.rb#99 def last_line; end # @api public # @return [Integer] amount of characters included in this range. # - # source://parser//lib/parser/source/range.rb#70 + # source://parser/lib/parser/source/range.rb#70 def length; end # Line number of the beginning of this range. By default, the first line @@ -4353,7 +4353,7 @@ class Parser::Source::Range # @return [Integer] line number of the beginning of this range. # @see Buffer # - # source://parser//lib/parser/source/range.rb#83 + # source://parser/lib/parser/source/range.rb#83 def line; end # Return `true` iff this range is not disjoint from `other`. @@ -4362,50 +4362,50 @@ class Parser::Source::Range # @param other [Range] # @return [Boolean] `true` if this range and `other` overlap # - # source://parser//lib/parser/source/range.rb#250 + # source://parser/lib/parser/source/range.rb#250 def overlaps?(other); end # @api public # @param new_size [Integer] # @return [Range] a range beginning at the same point as this range and length `new_size`. # - # source://parser//lib/parser/source/range.rb#201 + # source://parser/lib/parser/source/range.rb#201 def resize(new_size); end # @api public # @return [Integer] amount of characters included in this range. # - # source://parser//lib/parser/source/range.rb#70 + # source://parser/lib/parser/source/range.rb#70 def size; end # @api public # @return [String] all source code covered by this range. # - # source://parser//lib/parser/source/range.rb#132 + # source://parser/lib/parser/source/range.rb#132 def source; end # @api public # @return [Parser::Source::Buffer] # - # source://parser//lib/parser/source/range.rb#29 + # source://parser/lib/parser/source/range.rb#29 def source_buffer; end # @api public # @return [String] a line of source code containing the beginning of this range. # - # source://parser//lib/parser/source/range.rb#125 + # source://parser/lib/parser/source/range.rb#125 def source_line; end # @api public # @return [Array] a set of character indexes contained in this range. # - # source://parser//lib/parser/source/range.rb#148 + # source://parser/lib/parser/source/range.rb#148 def to_a; end # @api public # @return [Range] a Ruby range with the same `begin_pos` and `end_pos` # - # source://parser//lib/parser/source/range.rb#155 + # source://parser/lib/parser/source/range.rb#155 def to_range; end # Composes a GNU/Clang-style string representation of the beginning of this @@ -4422,7 +4422,7 @@ class Parser::Source::Range # @api public # @return [String] # - # source://parser//lib/parser/source/range.rb#173 + # source://parser/lib/parser/source/range.rb#173 def to_s; end # to the given value(s). @@ -4431,7 +4431,7 @@ class Parser::Source::Range # @param Endpoint(s) [Hash] to change, any combination of :begin_pos or :end_pos # @return [Range] the same range as this range but with the given end point(s) changed # - # source://parser//lib/parser/source/range.rb#184 + # source://parser/lib/parser/source/range.rb#184 def with(begin_pos: T.unsafe(nil), end_pos: T.unsafe(nil)); end end @@ -4453,7 +4453,7 @@ end # @api public # @deprecated Use {TreeRewriter} # -# source://parser//lib/parser/source/rewriter.rb#31 +# source://parser/lib/parser/source/rewriter.rb#31 class Parser::Source::Rewriter extend ::Parser::Deprecation @@ -4462,13 +4462,13 @@ class Parser::Source::Rewriter # @param source_buffer [Source::Buffer] # @return [Rewriter] a new instance of Rewriter # - # source://parser//lib/parser/source/rewriter.rb#39 + # source://parser/lib/parser/source/rewriter.rb#39 def initialize(source_buffer); end # @api public # @return [Diagnostic::Engine] # - # source://parser//lib/parser/source/rewriter.rb#33 + # source://parser/lib/parser/source/rewriter.rb#33 def diagnostics; end # Inserts new code after the given source range. @@ -4480,7 +4480,7 @@ class Parser::Source::Rewriter # @raise [ClobberingError] when clobbering is detected # @return [Rewriter] self # - # source://parser//lib/parser/source/rewriter.rb#131 + # source://parser/lib/parser/source/rewriter.rb#131 def insert_after(range, content); end # Inserts new code after the given source range by allowing other @@ -4500,7 +4500,7 @@ class Parser::Source::Rewriter # @raise [ClobberingError] when clobbering is detected # @return [Rewriter] self # - # source://parser//lib/parser/source/rewriter.rb#153 + # source://parser/lib/parser/source/rewriter.rb#153 def insert_after_multi(range, content); end # Inserts new code before the given source range. @@ -4512,7 +4512,7 @@ class Parser::Source::Rewriter # @raise [ClobberingError] when clobbering is detected # @return [Rewriter] self # - # source://parser//lib/parser/source/rewriter.rb#80 + # source://parser/lib/parser/source/rewriter.rb#80 def insert_before(range, content); end # Inserts new code before the given source range by allowing other @@ -4532,7 +4532,7 @@ class Parser::Source::Rewriter # @raise [ClobberingError] when clobbering is detected # @return [Rewriter] self # - # source://parser//lib/parser/source/rewriter.rb#117 + # source://parser/lib/parser/source/rewriter.rb#117 def insert_before_multi(range, content); end # Applies all scheduled changes to the `source_buffer` and returns @@ -4542,7 +4542,7 @@ class Parser::Source::Rewriter # @deprecated Use {TreeRewriter#process} # @return [String] # - # source://parser//lib/parser/source/rewriter.rb#178 + # source://parser/lib/parser/source/rewriter.rb#178 def process; end # Removes the source range. @@ -4553,7 +4553,7 @@ class Parser::Source::Rewriter # @raise [ClobberingError] when clobbering is detected # @return [Rewriter] self # - # source://parser//lib/parser/source/rewriter.rb#67 + # source://parser/lib/parser/source/rewriter.rb#67 def remove(range); end # Replaces the code of the source range `range` with `content`. @@ -4565,13 +4565,13 @@ class Parser::Source::Rewriter # @raise [ClobberingError] when clobbering is detected # @return [Rewriter] self # - # source://parser//lib/parser/source/rewriter.rb#167 + # source://parser/lib/parser/source/rewriter.rb#167 def replace(range, content); end # @api public # @return [Source::Buffer] # - # source://parser//lib/parser/source/rewriter.rb#32 + # source://parser/lib/parser/source/rewriter.rb#32 def source_buffer; end # Provides a protected block where a sequence of multiple rewrite actions @@ -4591,7 +4591,7 @@ class Parser::Source::Rewriter # @raise [RuntimeError] when no block is passed # @raise [RuntimeError] when already in a transaction # - # source://parser//lib/parser/source/rewriter.rb#216 + # source://parser/lib/parser/source/rewriter.rb#216 def transaction; end # Inserts new code before and after the given source range. @@ -4604,62 +4604,62 @@ class Parser::Source::Rewriter # @raise [ClobberingError] when clobbering is detected # @return [Rewriter] self # - # source://parser//lib/parser/source/rewriter.rb#94 + # source://parser/lib/parser/source/rewriter.rb#94 def wrap(range, before, after); end private # @api public # - # source://parser//lib/parser/source/rewriter.rb#476 + # source://parser/lib/parser/source/rewriter.rb#476 def active_clobber; end # @api public # - # source://parser//lib/parser/source/rewriter.rb#484 + # source://parser/lib/parser/source/rewriter.rb#484 def active_clobber=(value); end # @api public # - # source://parser//lib/parser/source/rewriter.rb#480 + # source://parser/lib/parser/source/rewriter.rb#480 def active_insertions; end # @api public # - # source://parser//lib/parser/source/rewriter.rb#492 + # source://parser/lib/parser/source/rewriter.rb#492 def active_insertions=(value); end # @api public # - # source://parser//lib/parser/source/rewriter.rb#472 + # source://parser/lib/parser/source/rewriter.rb#472 def active_queue; end # @api public # @return [Boolean] # - # source://parser//lib/parser/source/rewriter.rb#500 + # source://parser/lib/parser/source/rewriter.rb#500 def adjacent?(range1, range2); end # @api public # - # source://parser//lib/parser/source/rewriter.rb#351 + # source://parser/lib/parser/source/rewriter.rb#351 def adjacent_insertion_mask(range); end # @api public # @return [Boolean] # - # source://parser//lib/parser/source/rewriter.rb#366 + # source://parser/lib/parser/source/rewriter.rb#366 def adjacent_insertions?(range); end # @api public # - # source://parser//lib/parser/source/rewriter.rb#347 + # source://parser/lib/parser/source/rewriter.rb#347 def adjacent_position_mask(range); end # @api public # @return [Boolean] # - # source://parser//lib/parser/source/rewriter.rb#377 + # source://parser/lib/parser/source/rewriter.rb#377 def adjacent_updates?(range); end # Schedule a code update. If it overlaps with another update, check @@ -4700,107 +4700,107 @@ class Parser::Source::Rewriter # # @api public # - # source://parser//lib/parser/source/rewriter.rb#280 + # source://parser/lib/parser/source/rewriter.rb#280 def append(action); end # @api public # @return [Boolean] # - # source://parser//lib/parser/source/rewriter.rb#389 + # source://parser/lib/parser/source/rewriter.rb#389 def can_merge?(action, existing); end # @api public # @return [Boolean] # - # source://parser//lib/parser/source/rewriter.rb#355 + # source://parser/lib/parser/source/rewriter.rb#355 def clobbered_insertion?(insertion); end # @api public # - # source://parser//lib/parser/source/rewriter.rb#343 + # source://parser/lib/parser/source/rewriter.rb#343 def clobbered_position_mask(range); end # @api public # @return [Boolean] # - # source://parser//lib/parser/source/rewriter.rb#468 + # source://parser/lib/parser/source/rewriter.rb#468 def in_transaction?; end # @api public # - # source://parser//lib/parser/source/rewriter.rb#410 + # source://parser/lib/parser/source/rewriter.rb#410 def merge_actions(action, existing); end # @api public # - # source://parser//lib/parser/source/rewriter.rb#419 + # source://parser/lib/parser/source/rewriter.rb#419 def merge_actions!(action, existing); end # @api public # - # source://parser//lib/parser/source/rewriter.rb#425 + # source://parser/lib/parser/source/rewriter.rb#425 def merge_replacements(actions); end # @api public # @raise [ClobberingError] # - # source://parser//lib/parser/source/rewriter.rb#450 + # source://parser/lib/parser/source/rewriter.rb#450 def raise_clobber_error(action, existing); end # @api public # - # source://parser//lib/parser/source/rewriter.rb#335 + # source://parser/lib/parser/source/rewriter.rb#335 def record_insertion(range); end # @api public # - # source://parser//lib/parser/source/rewriter.rb#339 + # source://parser/lib/parser/source/rewriter.rb#339 def record_replace(range); end # @api public # - # source://parser//lib/parser/source/rewriter.rb#445 + # source://parser/lib/parser/source/rewriter.rb#445 def replace_actions(old, updated); end # @api public # @return [Boolean] # - # source://parser//lib/parser/source/rewriter.rb#383 + # source://parser/lib/parser/source/rewriter.rb#383 def replace_compatible_with_insertion?(replace, insertion); end end -# source://parser//lib/parser/source/rewriter/action.rb#9 +# source://parser/lib/parser/source/rewriter/action.rb#9 class Parser::Source::Rewriter::Action include ::Comparable - # source://parser//lib/parser/source/rewriter/action.rb#15 + # source://parser/lib/parser/source/rewriter/action.rb#15 def initialize(range, replacement = T.unsafe(nil), allow_multiple_insertions = T.unsafe(nil), order = T.unsafe(nil)); end - # source://parser//lib/parser/source/rewriter/action.rb#24 + # source://parser/lib/parser/source/rewriter/action.rb#24 def <=>(other); end - # source://parser//lib/parser/source/rewriter/action.rb#12 + # source://parser/lib/parser/source/rewriter/action.rb#12 def allow_multiple_insertions; end - # source://parser//lib/parser/source/rewriter/action.rb#12 + # source://parser/lib/parser/source/rewriter/action.rb#12 def allow_multiple_insertions?; end - # source://parser//lib/parser/source/rewriter/action.rb#12 + # source://parser/lib/parser/source/rewriter/action.rb#12 def order; end - # source://parser//lib/parser/source/rewriter/action.rb#12 + # source://parser/lib/parser/source/rewriter/action.rb#12 def range; end - # source://parser//lib/parser/source/rewriter/action.rb#12 + # source://parser/lib/parser/source/rewriter/action.rb#12 def replacement; end - # source://parser//lib/parser/source/rewriter/action.rb#30 + # source://parser/lib/parser/source/rewriter/action.rb#30 def to_s; end end # @api public # -# source://parser//lib/parser/source/rewriter.rb#504 +# source://parser/lib/parser/source/rewriter.rb#504 Parser::Source::Rewriter::DEPRECATION_WARNING = T.let(T.unsafe(nil), String) # {TreeRewriter} performs the heavy lifting in the source rewriting process. @@ -4881,7 +4881,7 @@ Parser::Source::Rewriter::DEPRECATION_WARNING = T.let(T.unsafe(nil), String) # # @api public # -# source://parser//lib/parser/source/tree_rewriter.rb#91 +# source://parser/lib/parser/source/tree_rewriter.rb#91 class Parser::Source::TreeRewriter extend ::Parser::Deprecation @@ -4889,7 +4889,7 @@ class Parser::Source::TreeRewriter # @param source_buffer [Source::Buffer] # @return [TreeRewriter] a new instance of TreeRewriter # - # source://parser//lib/parser/source/tree_rewriter.rb#98 + # source://parser/lib/parser/source/tree_rewriter.rb#98 def initialize(source_buffer, crossing_deletions: T.unsafe(nil), different_replacements: T.unsafe(nil), swallowed_insertions: T.unsafe(nil)); end # Returns a representation of the rewriter as nested insertions (:wrap) and replacements. @@ -4906,7 +4906,7 @@ class Parser::Source::TreeRewriter # @api public # @return [Array<(Symbol, Range, String{, String})>] # - # source://parser//lib/parser/source/tree_rewriter.rb#299 + # source://parser/lib/parser/source/tree_rewriter.rb#299 def as_nested_actions; end # Returns a representation of the rewriter as an ordered list of replacements. @@ -4925,13 +4925,13 @@ class Parser::Source::TreeRewriter # @api public # @return [Array] an ordered list of pairs of range & replacement # - # source://parser//lib/parser/source/tree_rewriter.rb#281 + # source://parser/lib/parser/source/tree_rewriter.rb#281 def as_replacements; end # @api public # @return [Diagnostic::Engine] # - # source://parser//lib/parser/source/tree_rewriter.rb#93 + # source://parser/lib/parser/source/tree_rewriter.rb#93 def diagnostics; end # Returns true iff no (non trivial) update has been recorded @@ -4939,7 +4939,7 @@ class Parser::Source::TreeRewriter # @api public # @return [Boolean] # - # source://parser//lib/parser/source/tree_rewriter.rb#125 + # source://parser/lib/parser/source/tree_rewriter.rb#125 def empty?; end # For special cases where one needs to merge a rewriter attached to a different source_buffer @@ -4951,13 +4951,13 @@ class Parser::Source::TreeRewriter # @raise [IndexError] if action ranges (once offset) don't fit the current buffer # @return [Rewriter] self # - # source://parser//lib/parser/source/tree_rewriter.rb#168 + # source://parser/lib/parser/source/tree_rewriter.rb#168 def import!(foreign_rewriter, offset: T.unsafe(nil)); end # @api public # @return [Boolean] # - # source://parser//lib/parser/source/tree_rewriter.rb#329 + # source://parser/lib/parser/source/tree_rewriter.rb#329 def in_transaction?; end # Shortcut for `wrap(range, nil, content)` @@ -4968,13 +4968,13 @@ class Parser::Source::TreeRewriter # @raise [ClobberingError] when clobbering is detected # @return [Rewriter] self # - # source://parser//lib/parser/source/tree_rewriter.rb#242 + # source://parser/lib/parser/source/tree_rewriter.rb#242 def insert_after(range, content); end # @api private # @deprecated Use insert_after or wrap # - # source://parser//lib/parser/source/tree_rewriter.rb#351 + # source://parser/lib/parser/source/tree_rewriter.rb#351 def insert_after_multi(range, text); end # Shortcut for `wrap(range, content, nil)` @@ -4985,18 +4985,18 @@ class Parser::Source::TreeRewriter # @raise [ClobberingError] when clobbering is detected # @return [Rewriter] self # - # source://parser//lib/parser/source/tree_rewriter.rb#230 + # source://parser/lib/parser/source/tree_rewriter.rb#230 def insert_before(range, content); end # @api private # @deprecated Use insert_after or wrap # - # source://parser//lib/parser/source/tree_rewriter.rb#342 + # source://parser/lib/parser/source/tree_rewriter.rb#342 def insert_before_multi(range, text); end # @api public # - # source://parser//lib/parser/source/tree_rewriter.rb#334 + # source://parser/lib/parser/source/tree_rewriter.rb#334 def inspect; end # Returns a new rewriter that consists of the updates of the received @@ -5007,7 +5007,7 @@ class Parser::Source::TreeRewriter # @raise [ClobberingError] when clobbering is detected # @return [Rewriter] merge of receiver and argument # - # source://parser//lib/parser/source/tree_rewriter.rb#155 + # source://parser/lib/parser/source/tree_rewriter.rb#155 def merge(with); end # Merges the updates of argument with the receiver. @@ -5020,7 +5020,7 @@ class Parser::Source::TreeRewriter # @raise [ClobberingError] when clobbering is detected # @return [Rewriter] self # - # source://parser//lib/parser/source/tree_rewriter.rb#139 + # source://parser/lib/parser/source/tree_rewriter.rb#139 def merge!(with); end # Applies all scheduled changes to the `source_buffer` and returns @@ -5029,7 +5029,7 @@ class Parser::Source::TreeRewriter # @api public # @return [String] # - # source://parser//lib/parser/source/tree_rewriter.rb#252 + # source://parser/lib/parser/source/tree_rewriter.rb#252 def process; end # Shortcut for `replace(range, '')` @@ -5039,7 +5039,7 @@ class Parser::Source::TreeRewriter # @raise [ClobberingError] when clobbering is detected # @return [Rewriter] self # - # source://parser//lib/parser/source/tree_rewriter.rb#217 + # source://parser/lib/parser/source/tree_rewriter.rb#217 def remove(range); end # Replaces the code of the source range `range` with `content`. @@ -5050,13 +5050,13 @@ class Parser::Source::TreeRewriter # @raise [ClobberingError] when clobbering is detected # @return [Rewriter] self # - # source://parser//lib/parser/source/tree_rewriter.rb#193 + # source://parser/lib/parser/source/tree_rewriter.rb#193 def replace(range, content); end # @api public # @return [Source::Buffer] # - # source://parser//lib/parser/source/tree_rewriter.rb#92 + # source://parser/lib/parser/source/tree_rewriter.rb#92 def source_buffer; end # Provides a protected block where a sequence of multiple rewrite actions @@ -5066,7 +5066,7 @@ class Parser::Source::TreeRewriter # @api public # @raise [RuntimeError] when no block is passed # - # source://parser//lib/parser/source/tree_rewriter.rb#310 + # source://parser/lib/parser/source/tree_rewriter.rb#310 def transaction; end # Inserts the given strings before and after the given range. @@ -5078,265 +5078,265 @@ class Parser::Source::TreeRewriter # @raise [ClobberingError] when clobbering is detected # @return [Rewriter] self # - # source://parser//lib/parser/source/tree_rewriter.rb#206 + # source://parser/lib/parser/source/tree_rewriter.rb#206 def wrap(range, insert_before, insert_after); end protected # @api public # - # source://parser//lib/parser/source/tree_rewriter.rb#365 + # source://parser/lib/parser/source/tree_rewriter.rb#365 def action_root; end private # @api public # - # source://parser//lib/parser/source/tree_rewriter.rb#369 + # source://parser/lib/parser/source/tree_rewriter.rb#369 def action_summary; end # @api public # @raise [ArgumentError] # - # source://parser//lib/parser/source/tree_rewriter.rb#392 + # source://parser/lib/parser/source/tree_rewriter.rb#392 def check_policy_validity; end # @api public # - # source://parser//lib/parser/source/tree_rewriter.rb#404 + # source://parser/lib/parser/source/tree_rewriter.rb#404 def check_range_validity(range); end # @api public # - # source://parser//lib/parser/source/tree_rewriter.rb#397 + # source://parser/lib/parser/source/tree_rewriter.rb#397 def combine(range, attributes); end # @api public # - # source://parser//lib/parser/source/tree_rewriter.rb#411 + # source://parser/lib/parser/source/tree_rewriter.rb#411 def enforce_policy(event); end # @api public # @raise [Parser::ClobberingError] # - # source://parser//lib/parser/source/tree_rewriter.rb#418 + # source://parser/lib/parser/source/tree_rewriter.rb#418 def trigger_policy(event, range: T.unsafe(nil), conflict: T.unsafe(nil), **arguments); end end # @api public # -# source://parser//lib/parser/source/tree_rewriter.rb#391 +# source://parser/lib/parser/source/tree_rewriter.rb#391 Parser::Source::TreeRewriter::ACTIONS = T.let(T.unsafe(nil), Array) -# source://parser//lib/parser/source/tree_rewriter/action.rb#14 +# source://parser/lib/parser/source/tree_rewriter/action.rb#14 class Parser::Source::TreeRewriter::Action - # source://parser//lib/parser/source/tree_rewriter/action.rb#17 + # source://parser/lib/parser/source/tree_rewriter/action.rb#17 def initialize(range, enforcer, insert_before: T.unsafe(nil), replacement: T.unsafe(nil), insert_after: T.unsafe(nil), children: T.unsafe(nil)); end - # source://parser//lib/parser/source/tree_rewriter/action.rb#29 + # source://parser/lib/parser/source/tree_rewriter/action.rb#29 def combine(action); end - # source://parser//lib/parser/source/tree_rewriter/action.rb#68 + # source://parser/lib/parser/source/tree_rewriter/action.rb#68 def contract; end - # source://parser//lib/parser/source/tree_rewriter/action.rb#34 + # source://parser/lib/parser/source/tree_rewriter/action.rb#34 def empty?; end - # source://parser//lib/parser/source/tree_rewriter/action.rb#15 + # source://parser/lib/parser/source/tree_rewriter/action.rb#15 def insert_after; end - # source://parser//lib/parser/source/tree_rewriter/action.rb#15 + # source://parser/lib/parser/source/tree_rewriter/action.rb#15 def insert_before; end - # source://parser//lib/parser/source/tree_rewriter/action.rb#58 + # source://parser/lib/parser/source/tree_rewriter/action.rb#58 def insertion?; end - # source://parser//lib/parser/source/tree_rewriter/action.rb#81 + # source://parser/lib/parser/source/tree_rewriter/action.rb#81 def moved(source_buffer, offset); end - # source://parser//lib/parser/source/tree_rewriter/action.rb#50 + # source://parser/lib/parser/source/tree_rewriter/action.rb#50 def nested_actions; end - # source://parser//lib/parser/source/tree_rewriter/action.rb#41 + # source://parser/lib/parser/source/tree_rewriter/action.rb#41 def ordered_replacements; end - # source://parser//lib/parser/source/tree_rewriter/action.rb#15 + # source://parser/lib/parser/source/tree_rewriter/action.rb#15 def range; end - # source://parser//lib/parser/source/tree_rewriter/action.rb#15 + # source://parser/lib/parser/source/tree_rewriter/action.rb#15 def replacement; end protected - # source://parser//lib/parser/source/tree_rewriter/action.rb#159 + # source://parser/lib/parser/source/tree_rewriter/action.rb#159 def analyse_hierarchy(action); end - # source://parser//lib/parser/source/tree_rewriter/action.rb#146 + # source://parser/lib/parser/source/tree_rewriter/action.rb#146 def bsearch_child_index(from = T.unsafe(nil)); end - # source://parser//lib/parser/source/tree_rewriter/action.rb#225 + # source://parser/lib/parser/source/tree_rewriter/action.rb#225 def call_enforcer_for_merge(action); end - # source://parser//lib/parser/source/tree_rewriter/action.rb#205 + # source://parser/lib/parser/source/tree_rewriter/action.rb#205 def check_fusible(action, *fusible); end - # source://parser//lib/parser/source/tree_rewriter/action.rb#95 + # source://parser/lib/parser/source/tree_rewriter/action.rb#95 def children; end - # source://parser//lib/parser/source/tree_rewriter/action.rb#130 + # source://parser/lib/parser/source/tree_rewriter/action.rb#130 def combine_children(more_children); end - # source://parser//lib/parser/source/tree_rewriter/action.rb#103 + # source://parser/lib/parser/source/tree_rewriter/action.rb#103 def do_combine(action); end - # source://parser//lib/parser/source/tree_rewriter/action.rb#136 + # source://parser/lib/parser/source/tree_rewriter/action.rb#136 def fuse_deletions(action, fusible, other_sibblings); end - # source://parser//lib/parser/source/tree_rewriter/action.rb#216 + # source://parser/lib/parser/source/tree_rewriter/action.rb#216 def merge(action); end - # source://parser//lib/parser/source/tree_rewriter/action.rb#111 + # source://parser/lib/parser/source/tree_rewriter/action.rb#111 def place_in_hierarchy(action); end - # source://parser//lib/parser/source/tree_rewriter/action.rb#233 + # source://parser/lib/parser/source/tree_rewriter/action.rb#233 def swallow(children); end - # source://parser//lib/parser/source/tree_rewriter/action.rb#97 + # source://parser/lib/parser/source/tree_rewriter/action.rb#97 def with(range: T.unsafe(nil), enforcer: T.unsafe(nil), children: T.unsafe(nil), insert_before: T.unsafe(nil), replacement: T.unsafe(nil), insert_after: T.unsafe(nil)); end end # @api public # -# source://parser//lib/parser/source/tree_rewriter.rb#356 +# source://parser/lib/parser/source/tree_rewriter.rb#356 Parser::Source::TreeRewriter::DEPRECATION_WARNING = T.let(T.unsafe(nil), String) # @api public # -# source://parser//lib/parser/source/tree_rewriter.rb#417 +# source://parser/lib/parser/source/tree_rewriter.rb#417 Parser::Source::TreeRewriter::POLICY_TO_LEVEL = T.let(T.unsafe(nil), Hash) -# source://parser//lib/parser/static_environment.rb#5 +# source://parser/lib/parser/static_environment.rb#5 class Parser::StaticEnvironment # @return [StaticEnvironment] a new instance of StaticEnvironment # - # source://parser//lib/parser/static_environment.rb#17 + # source://parser/lib/parser/static_environment.rb#17 def initialize; end - # source://parser//lib/parser/static_environment.rb#55 + # source://parser/lib/parser/static_environment.rb#55 def declare(name); end # Anonymous blockarg # - # source://parser//lib/parser/static_environment.rb#77 + # source://parser/lib/parser/static_environment.rb#77 def declare_anonymous_blockarg; end # Anonymous kwresarg # - # source://parser//lib/parser/static_environment.rb#113 + # source://parser/lib/parser/static_environment.rb#113 def declare_anonymous_kwrestarg; end # Anonymous restarg # - # source://parser//lib/parser/static_environment.rb#95 + # source://parser/lib/parser/static_environment.rb#95 def declare_anonymous_restarg; end # Forward args # - # source://parser//lib/parser/static_environment.rb#67 + # source://parser/lib/parser/static_environment.rb#67 def declare_forward_args; end # @return [Boolean] # - # source://parser//lib/parser/static_environment.rb#61 + # source://parser/lib/parser/static_environment.rb#61 def declared?(name); end # @return [Boolean] # - # source://parser//lib/parser/static_environment.rb#81 + # source://parser/lib/parser/static_environment.rb#81 def declared_anonymous_blockarg?; end # @return [Boolean] # - # source://parser//lib/parser/static_environment.rb#85 + # source://parser/lib/parser/static_environment.rb#85 def declared_anonymous_blockarg_in_current_scpe?; end # @return [Boolean] # - # source://parser//lib/parser/static_environment.rb#117 + # source://parser/lib/parser/static_environment.rb#117 def declared_anonymous_kwrestarg?; end # @return [Boolean] # - # source://parser//lib/parser/static_environment.rb#121 + # source://parser/lib/parser/static_environment.rb#121 def declared_anonymous_kwrestarg_in_current_scope?; end # @return [Boolean] # - # source://parser//lib/parser/static_environment.rb#99 + # source://parser/lib/parser/static_environment.rb#99 def declared_anonymous_restarg?; end # @return [Boolean] # - # source://parser//lib/parser/static_environment.rb#103 + # source://parser/lib/parser/static_environment.rb#103 def declared_anonymous_restarg_in_current_scope?; end # @return [Boolean] # - # source://parser//lib/parser/static_environment.rb#71 + # source://parser/lib/parser/static_environment.rb#71 def declared_forward_args?; end # @return [Boolean] # - # source://parser//lib/parser/static_environment.rb#129 + # source://parser/lib/parser/static_environment.rb#129 def empty?; end - # source://parser//lib/parser/static_environment.rb#33 + # source://parser/lib/parser/static_environment.rb#33 def extend_dynamic; end - # source://parser//lib/parser/static_environment.rb#26 + # source://parser/lib/parser/static_environment.rb#26 def extend_static; end # @return [Boolean] # - # source://parser//lib/parser/static_environment.rb#89 + # source://parser/lib/parser/static_environment.rb#89 def parent_has_anonymous_blockarg?; end # @return [Boolean] # - # source://parser//lib/parser/static_environment.rb#125 + # source://parser/lib/parser/static_environment.rb#125 def parent_has_anonymous_kwrestarg?; end # @return [Boolean] # - # source://parser//lib/parser/static_environment.rb#107 + # source://parser/lib/parser/static_environment.rb#107 def parent_has_anonymous_restarg?; end - # source://parser//lib/parser/static_environment.rb#21 + # source://parser/lib/parser/static_environment.rb#21 def reset; end - # source://parser//lib/parser/static_environment.rb#49 + # source://parser/lib/parser/static_environment.rb#49 def unextend; end end -# source://parser//lib/parser/static_environment.rb#15 +# source://parser/lib/parser/static_environment.rb#15 Parser::StaticEnvironment::ANONYMOUS_BLOCKARG_INHERITED = T.let(T.unsafe(nil), Symbol) -# source://parser//lib/parser/static_environment.rb#14 +# source://parser/lib/parser/static_environment.rb#14 Parser::StaticEnvironment::ANONYMOUS_BLOCKARG_IN_CURRENT_SCOPE = T.let(T.unsafe(nil), Symbol) -# source://parser//lib/parser/static_environment.rb#12 +# source://parser/lib/parser/static_environment.rb#12 Parser::StaticEnvironment::ANONYMOUS_KWRESTARG_INHERITED = T.let(T.unsafe(nil), Symbol) -# source://parser//lib/parser/static_environment.rb#11 +# source://parser/lib/parser/static_environment.rb#11 Parser::StaticEnvironment::ANONYMOUS_KWRESTARG_IN_CURRENT_SCOPE = T.let(T.unsafe(nil), Symbol) -# source://parser//lib/parser/static_environment.rb#9 +# source://parser/lib/parser/static_environment.rb#9 Parser::StaticEnvironment::ANONYMOUS_RESTARG_INHERITED = T.let(T.unsafe(nil), Symbol) -# source://parser//lib/parser/static_environment.rb#8 +# source://parser/lib/parser/static_environment.rb#8 Parser::StaticEnvironment::ANONYMOUS_RESTARG_IN_CURRENT_SCOPE = T.let(T.unsafe(nil), Symbol) -# source://parser//lib/parser/static_environment.rb#6 +# source://parser/lib/parser/static_environment.rb#6 Parser::StaticEnvironment::FORWARD_ARGS = T.let(T.unsafe(nil), Symbol) # {Parser::SyntaxError} is raised whenever parser detects a syntax error, @@ -5344,18 +5344,18 @@ Parser::StaticEnvironment::FORWARD_ARGS = T.let(T.unsafe(nil), Symbol) # # @api public # -# source://parser//lib/parser/syntax_error.rb#13 +# source://parser/lib/parser/syntax_error.rb#13 class Parser::SyntaxError < ::StandardError # @api public # @return [SyntaxError] a new instance of SyntaxError # - # source://parser//lib/parser/syntax_error.rb#16 + # source://parser/lib/parser/syntax_error.rb#16 def initialize(diagnostic); end # @api public # @return [Parser::Diagnostic] # - # source://parser//lib/parser/syntax_error.rb#14 + # source://parser/lib/parser/syntax_error.rb#14 def diagnostic; end end @@ -5404,7 +5404,7 @@ end # # @api public # -# source://parser//lib/parser/tree_rewriter.rb#51 +# source://parser/lib/parser/tree_rewriter.rb#51 class Parser::TreeRewriter < ::Parser::AST::Processor # Returns `true` if the specified node is an assignment node, returns false # otherwise. @@ -5413,7 +5413,7 @@ class Parser::TreeRewriter < ::Parser::AST::Processor # @param node [Parser::AST::Node] # @return [Boolean] # - # source://parser//lib/parser/tree_rewriter.rb#79 + # source://parser/lib/parser/tree_rewriter.rb#79 def assignment?(node); end # Inserts new code after the given source range. @@ -5422,7 +5422,7 @@ class Parser::TreeRewriter < ::Parser::AST::Processor # @param range [Parser::Source::Range] # @param content [String] # - # source://parser//lib/parser/tree_rewriter.rb#118 + # source://parser/lib/parser/tree_rewriter.rb#118 def insert_after(range, content); end # Inserts new code before the given source range. @@ -5431,7 +5431,7 @@ class Parser::TreeRewriter < ::Parser::AST::Processor # @param range [Parser::Source::Range] # @param content [String] # - # source://parser//lib/parser/tree_rewriter.rb#108 + # source://parser/lib/parser/tree_rewriter.rb#108 def insert_before(range, content); end # Removes the source range. @@ -5439,7 +5439,7 @@ class Parser::TreeRewriter < ::Parser::AST::Processor # @api public # @param range [Parser::Source::Range] # - # source://parser//lib/parser/tree_rewriter.rb#88 + # source://parser/lib/parser/tree_rewriter.rb#88 def remove(range); end # Replaces the code of the source range `range` with `content`. @@ -5448,7 +5448,7 @@ class Parser::TreeRewriter < ::Parser::AST::Processor # @param range [Parser::Source::Range] # @param content [String] # - # source://parser//lib/parser/tree_rewriter.rb#128 + # source://parser/lib/parser/tree_rewriter.rb#128 def replace(range, content); end # Rewrites the AST/source buffer and returns a String containing the new @@ -5461,7 +5461,7 @@ class Parser::TreeRewriter < ::Parser::AST::Processor # policy arguments for TreeRewriter (optional) # @return [String] # - # source://parser//lib/parser/tree_rewriter.rb#62 + # source://parser/lib/parser/tree_rewriter.rb#62 def rewrite(source_buffer, ast, **policy); end # Wraps the given source range with the given values. @@ -5470,7 +5470,7 @@ class Parser::TreeRewriter < ::Parser::AST::Processor # @param range [Parser::Source::Range] # @param content [String] # - # source://parser//lib/parser/tree_rewriter.rb#98 + # source://parser/lib/parser/tree_rewriter.rb#98 def wrap(range, before, after); end end @@ -5482,38 +5482,38 @@ end # # @api public # -# source://parser//lib/parser/unknown_encoding_in_magic_comment_error.rb#13 +# source://parser/lib/parser/unknown_encoding_in_magic_comment_error.rb#13 class Parser::UnknownEncodingInMagicComment < ::ArgumentError; end -# source://parser//lib/parser/version.rb#4 +# source://parser/lib/parser/version.rb#4 Parser::VERSION = T.let(T.unsafe(nil), String) -# source://parser//lib/parser/variables_stack.rb#5 +# source://parser/lib/parser/variables_stack.rb#5 class Parser::VariablesStack # @return [VariablesStack] a new instance of VariablesStack # - # source://parser//lib/parser/variables_stack.rb#6 + # source://parser/lib/parser/variables_stack.rb#6 def initialize; end - # source://parser//lib/parser/variables_stack.rb#27 + # source://parser/lib/parser/variables_stack.rb#27 def declare(name); end # @return [Boolean] # - # source://parser//lib/parser/variables_stack.rb#31 + # source://parser/lib/parser/variables_stack.rb#31 def declared?(name); end # @return [Boolean] # - # source://parser//lib/parser/variables_stack.rb#11 + # source://parser/lib/parser/variables_stack.rb#11 def empty?; end - # source://parser//lib/parser/variables_stack.rb#19 + # source://parser/lib/parser/variables_stack.rb#19 def pop; end - # source://parser//lib/parser/variables_stack.rb#15 + # source://parser/lib/parser/variables_stack.rb#15 def push; end - # source://parser//lib/parser/variables_stack.rb#23 + # source://parser/lib/parser/variables_stack.rb#23 def reset; end end diff --git a/sorbet/rbi/gems/psych@5.1.2.rbi b/sorbet/rbi/gems/psych@5.2.1.rbi similarity index 76% rename from sorbet/rbi/gems/psych@5.1.2.rbi rename to sorbet/rbi/gems/psych@5.2.1.rbi index f3d4c029a..fb9fb0dcf 100644 --- a/sorbet/rbi/gems/psych@5.1.2.rbi +++ b/sorbet/rbi/gems/psych@5.2.1.rbi @@ -5,6 +5,7 @@ # Please instead update this file by running `bin/tapioca gem psych`. +# source://psych/lib/psych/core_ext.rb#2 class Object < ::BasicObject include ::Kernel include ::PP::ObjectMixin @@ -14,11 +15,11 @@ class Object < ::BasicObject # Convert an object to YAML. See Psych.dump for more information on the # available +options+. # - # source://psych//psych/core_ext.rb#12 + # source://psych/lib/psych/core_ext.rb#12 def to_yaml(options = T.unsafe(nil)); end class << self - # source://psych//psych/core_ext.rb#3 + # source://psych/lib/psych/core_ext.rb#3 def yaml_tag(url); end end end @@ -224,26 +225,28 @@ end # # You can instantiate an Emitter manually # Psych::Visitors::ToRuby.new.accept(parser.handler.root.first) # # => "a" +# +# source://psych/lib/psych/versions.rb#3 module Psych class << self - # source://psych//psych.rb#682 + # source://psych/lib/psych.rb#700 def add_builtin_type(type_tag, &block); end # :stopdoc: # - # source://psych//psych.rb#676 + # source://psych/lib/psych.rb#694 def add_domain_type(domain, type_tag, &block); end - # source://psych//psych.rb#692 + # source://psych/lib/psych.rb#710 def add_tag(tag, klass); end - # source://psych//psych.rb#708 + # source://psych/lib/psych.rb#726 def config; end - # source://psych//psych.rb#720 + # source://psych/lib/psych.rb#738 def domain_types; end - # source://psych//psych.rb#732 + # source://psych/lib/psych.rb#750 def domain_types=(value); end # call-seq: @@ -264,6 +267,7 @@ module Psych # # Default: 2. # [:line_width] Max character to wrap line at. + # For unlimited line width use -1. # # Default: 0 (meaning "wrap at 81"). # [:canonical] Write "canonical" YAML form (very verbose, yet @@ -274,6 +278,10 @@ module Psych # # Default: false. # + # [:stringify_names] Dump symbol keys in Hash objects as string. + # + # Default: false. + # # Example: # # # Dump an array, get back a YAML string @@ -288,7 +296,10 @@ module Psych # # Dump an array to an IO with indentation set # Psych.dump(['a', ['b']], StringIO.new, indentation: 3) # - # source://psych//psych.rb#505 + # # Dump hash with symbol keys as string + # Psych.dump({a: "b"}, stringify_names: true) # => "---\na: b\n" + # + # source://psych/lib/psych.rb#515 def dump(o, io = T.unsafe(nil), options = T.unsafe(nil)); end # Dump a list of objects as separate documents to a document stream. @@ -297,20 +308,20 @@ module Psych # # Psych.dump_stream("foo\n ", {}) # => "--- ! \"foo\\n \"\n--- {}\n" # - # source://psych//psych.rb#595 + # source://psych/lib/psych.rb#613 def dump_stream(*objects); end - # source://psych//psych.rb#716 + # source://psych/lib/psych.rb#734 def dump_tags; end - # source://psych//psych.rb#728 + # source://psych/lib/psych.rb#746 def dump_tags=(value); end # Load +yaml+ in to a Ruby data structure. If multiple documents are # provided, the object contained in the first document will be returned. # +filename+ will be used in the exception message if any exception # is raised while parsing. If +yaml+ is empty, it returns - # the specified +fallback+ return value, which defaults to +false+. + # the specified +fallback+ return value, which defaults to +nil+. # # Raises a Psych::SyntaxError when a YAML syntax error is detected. # @@ -335,15 +346,15 @@ module Psych # Raises a TypeError when `yaml` parameter is NilClass. This method is # similar to `safe_load` except that `Symbol` objects are allowed by default. # - # source://psych//psych.rb#368 + # source://psych/lib/psych.rb#370 def load(yaml, permitted_classes: T.unsafe(nil), permitted_symbols: T.unsafe(nil), aliases: T.unsafe(nil), filename: T.unsafe(nil), fallback: T.unsafe(nil), symbolize_names: T.unsafe(nil), freeze: T.unsafe(nil), strict_integer: T.unsafe(nil)); end # Loads the document contained in +filename+. Returns the yaml contained in # +filename+ as a Ruby object, or if the file is empty, it returns - # the specified +fallback+ return value, which defaults to +false+. + # the specified +fallback+ return value, which defaults to +nil+. # See load for options. # - # source://psych//psych.rb#669 + # source://psych/lib/psych.rb#687 def load_file(filename, **kwargs); end # Load multiple documents given in +yaml+. Returns the parsed documents @@ -360,13 +371,13 @@ module Psych # end # list # => ['foo', 'bar'] # - # source://psych//psych.rb#626 + # source://psych/lib/psych.rb#644 def load_stream(yaml, filename: T.unsafe(nil), fallback: T.unsafe(nil), **kwargs); end - # source://psych//psych.rb#712 + # source://psych/lib/psych.rb#730 def load_tags; end - # source://psych//psych.rb#724 + # source://psych/lib/psych.rb#742 def load_tags=(value); end # Parse a YAML string in +yaml+. Returns the Psych::Nodes::Document. @@ -388,14 +399,14 @@ module Psych # # See Psych::Nodes for more information about YAML AST. # - # source://psych//psych.rb#398 + # source://psych/lib/psych.rb#400 def parse(yaml, filename: T.unsafe(nil)); end # Parse a file at +filename+. Returns the Psych::Nodes::Document. # # Raises a Psych::SyntaxError when a YAML syntax error is detected. # - # source://psych//psych.rb#410 + # source://psych/lib/psych.rb#412 def parse_file(filename, fallback: T.unsafe(nil)); end # Parse a YAML string in +yaml+. Returns the Psych::Nodes::Stream. @@ -427,15 +438,15 @@ module Psych # # See Psych::Nodes for more information about YAML AST. # - # source://psych//psych.rb#452 + # source://psych/lib/psych.rb#454 def parse_stream(yaml, filename: T.unsafe(nil), &block); end # Returns a default parser # - # source://psych//psych.rb#419 + # source://psych/lib/psych.rb#421 def parser; end - # source://psych//psych.rb#688 + # source://psych/lib/psych.rb#706 def remove_type(type_tag); end # call-seq: @@ -476,6 +487,7 @@ module Psych # # Default: 2. # [:line_width] Max character to wrap line at. + # For unlimited line width use -1. # # Default: 0 (meaning "wrap at 81"). # [:canonical] Write "canonical" YAML form (very verbose, yet @@ -486,6 +498,10 @@ module Psych # # Default: false. # + # [:stringify_names] Dump symbol keys in Hash objects as string. + # + # Default: false. + # # Example: # # # Dump an array, get back a YAML string @@ -500,7 +516,10 @@ module Psych # # Dump an array to an IO with indentation set # Psych.safe_dump(['a', ['b']], StringIO.new, indentation: 3) # - # source://psych//psych.rb#578 + # # Dump hash with symbol keys as string + # Psych.dump({a: "b"}, stringify_names: true) # => "---\na: b\n" + # + # source://psych/lib/psych.rb#596 def safe_dump(o, io = T.unsafe(nil), options = T.unsafe(nil)); end # Safely load the yaml string in +yaml+. By default, only the following @@ -547,20 +566,20 @@ module Psych # Psych.safe_load("---\n foo: bar") # => {"foo"=>"bar"} # Psych.safe_load("---\n foo: bar", symbolize_names: true) # => {:foo=>"bar"} # - # source://psych//psych.rb#322 + # source://psych/lib/psych.rb#324 def safe_load(yaml, permitted_classes: T.unsafe(nil), permitted_symbols: T.unsafe(nil), aliases: T.unsafe(nil), filename: T.unsafe(nil), fallback: T.unsafe(nil), symbolize_names: T.unsafe(nil), freeze: T.unsafe(nil), strict_integer: T.unsafe(nil)); end # Safely loads the document contained in +filename+. Returns the yaml contained in # +filename+ as a Ruby object, or if the file is empty, it returns - # the specified +fallback+ return value, which defaults to +false+. + # the specified +fallback+ return value, which defaults to +nil+. # See safe_load for options. # - # source://psych//psych.rb#658 + # source://psych/lib/psych.rb#676 def safe_load_file(filename, **kwargs); end # Dump Ruby +object+ to a JSON string. # - # source://psych//psych.rb#605 + # source://psych/lib/psych.rb#623 def to_json(object); end # Load +yaml+ in to a Ruby data structure. If multiple documents are @@ -595,7 +614,7 @@ module Psych # YAML documents that are supplied via user input. Instead, please use the # load method or the safe_load method. # - # source://psych//psych.rb#271 + # source://psych/lib/psych.rb#273 def unsafe_load(yaml, filename: T.unsafe(nil), fallback: T.unsafe(nil), symbolize_names: T.unsafe(nil), freeze: T.unsafe(nil), strict_integer: T.unsafe(nil)); end # Load the document contained in +filename+. Returns the yaml contained in @@ -606,99 +625,105 @@ module Psych # YAML documents that are supplied via user input. Instead, please use the # safe_load_file method. # - # source://psych//psych.rb#647 + # source://psych/lib/psych.rb#665 def unsafe_load_file(filename, **kwargs); end end end # Subclasses `BadAlias` for backwards compatibility +# +# source://psych/lib/psych/exception.rb#10 class Psych::AliasesNotEnabled < ::Psych::BadAlias # @return [AliasesNotEnabled] a new instance of AliasesNotEnabled # - # source://psych//psych/exception.rb#11 + # source://psych/lib/psych/exception.rb#11 def initialize; end end # Subclasses `BadAlias` for backwards compatibility +# +# source://psych/lib/psych/exception.rb#17 class Psych::AnchorNotDefined < ::Psych::BadAlias # @return [AnchorNotDefined] a new instance of AnchorNotDefined # - # source://psych//psych/exception.rb#18 + # source://psych/lib/psych/exception.rb#18 def initialize(anchor_name); end end +# source://psych/lib/psych/class_loader.rb#6 class Psych::ClassLoader # @return [ClassLoader] a new instance of ClassLoader # - # source://psych//psych/class_loader.rb#21 + # source://psych/lib/psych/class_loader.rb#21 def initialize; end - # source://psych//psych/class_loader.rb#39 + # source://psych/lib/psych/class_loader.rb#39 def big_decimal; end - # source://psych//psych/class_loader.rb#39 + # source://psych/lib/psych/class_loader.rb#39 def complex; end - # source://psych//psych/class_loader.rb#39 + # source://psych/lib/psych/class_loader.rb#39 def date; end - # source://psych//psych/class_loader.rb#39 + # source://psych/lib/psych/class_loader.rb#39 def date_time; end - # source://psych//psych/class_loader.rb#39 + # source://psych/lib/psych/class_loader.rb#39 def exception; end - # source://psych//psych/class_loader.rb#25 + # source://psych/lib/psych/class_loader.rb#25 def load(klassname); end - # source://psych//psych/class_loader.rb#39 + # source://psych/lib/psych/class_loader.rb#39 def object; end - # source://psych//psych/class_loader.rb#39 + # source://psych/lib/psych/class_loader.rb#39 def psych_omap; end - # source://psych//psych/class_loader.rb#39 + # source://psych/lib/psych/class_loader.rb#39 def psych_set; end - # source://psych//psych/class_loader.rb#39 + # source://psych/lib/psych/class_loader.rb#39 def range; end - # source://psych//psych/class_loader.rb#39 + # source://psych/lib/psych/class_loader.rb#39 def rational; end - # source://psych//psych/class_loader.rb#39 + # source://psych/lib/psych/class_loader.rb#39 def regexp; end - # source://psych//psych/class_loader.rb#39 + # source://psych/lib/psych/class_loader.rb#39 def struct; end - # source://psych//psych/class_loader.rb#39 + # source://psych/lib/psych/class_loader.rb#39 def symbol; end - # source://psych//psych/class_loader.rb#31 + # source://psych/lib/psych/class_loader.rb#31 def symbolize(sym); end private - # source://psych//psych/class_loader.rb#47 + # source://psych/lib/psych/class_loader.rb#47 def find(klassname); end - # source://psych//psych/class_loader.rb#51 + # source://psych/lib/psych/class_loader.rb#51 def resolve(klassname); end end +# source://psych/lib/psych/class_loader.rb#76 class Psych::ClassLoader::Restricted < ::Psych::ClassLoader # @return [Restricted] a new instance of Restricted # - # source://psych//psych/class_loader.rb#77 + # source://psych/lib/psych/class_loader.rb#77 def initialize(classes, symbols); end - # source://psych//psych/class_loader.rb#83 + # source://psych/lib/psych/class_loader.rb#83 def symbolize(sym); end private - # source://psych//psych/class_loader.rb#95 + # source://psych/lib/psych/class_loader.rb#95 def find(klassname); end end @@ -707,31 +732,33 @@ end # automatically assumes a Psych::Nodes::Mapping is being emitted. Other # objects like Sequence and Scalar may be emitted if +seq=+ or +scalar=+ are # called, respectively. +# +# source://psych/lib/psych/coder.rb#9 class Psych::Coder # @return [Coder] a new instance of Coder # - # source://psych//psych/coder.rb#13 + # source://psych/lib/psych/coder.rb#13 def initialize(tag); end - # source://psych//psych/coder.rb#84 + # source://psych/lib/psych/coder.rb#84 def [](k); end - # source://psych//psych/coder.rb#78 + # source://psych/lib/psych/coder.rb#78 def []=(k, v); end - # source://psych//psych/coder.rb#78 + # source://psych/lib/psych/coder.rb#78 def add(k, v); end # Returns the value of attribute implicit. # - # source://psych//psych/coder.rb#10 + # source://psych/lib/psych/coder.rb#10 def implicit; end # Sets the attribute implicit # # @param value the value to set the attribute implicit to. # - # source://psych//psych/coder.rb#10 + # source://psych/lib/psych/coder.rb#10 def implicit=(_arg0); end # Emit a map. The coder will be yielded to the block. @@ -739,98 +766,99 @@ class Psych::Coder # @yield [_self] # @yieldparam _self [Psych::Coder] the object that the method was called on # - # source://psych//psych/coder.rb#34 + # source://psych/lib/psych/coder.rb#34 def map(tag = T.unsafe(nil), style = T.unsafe(nil)); end # Emit a map with +value+ # - # source://psych//psych/coder.rb#73 + # source://psych/lib/psych/coder.rb#73 def map=(map); end # Returns the value of attribute object. # - # source://psych//psych/coder.rb#10 + # source://psych/lib/psych/coder.rb#10 def object; end # Sets the attribute object # # @param value the value to set the attribute object to. # - # source://psych//psych/coder.rb#10 + # source://psych/lib/psych/coder.rb#10 def object=(_arg0); end # Emit a sequence with +map+ and +tag+ # - # source://psych//psych/coder.rb#54 + # source://psych/lib/psych/coder.rb#54 def represent_map(tag, map); end # Emit an arbitrary object +obj+ and +tag+ # - # source://psych//psych/coder.rb#60 + # source://psych/lib/psych/coder.rb#60 def represent_object(tag, obj); end # Emit a scalar with +value+ and +tag+ # - # source://psych//psych/coder.rb#42 + # source://psych/lib/psych/coder.rb#42 def represent_scalar(tag, value); end # Emit a sequence with +list+ and +tag+ # - # source://psych//psych/coder.rb#48 + # source://psych/lib/psych/coder.rb#48 def represent_seq(tag, list); end - # source://psych//psych/coder.rb#24 + # source://psych/lib/psych/coder.rb#24 def scalar(*args); end # Emit a scalar with +value+ # - # source://psych//psych/coder.rb#67 + # source://psych/lib/psych/coder.rb#67 def scalar=(value); end # Returns the value of attribute seq. # - # source://psych//psych/coder.rb#11 + # source://psych/lib/psych/coder.rb#11 def seq; end # Emit a sequence of +list+ # - # source://psych//psych/coder.rb#90 + # source://psych/lib/psych/coder.rb#90 def seq=(list); end # Returns the value of attribute style. # - # source://psych//psych/coder.rb#10 + # source://psych/lib/psych/coder.rb#10 def style; end # Sets the attribute style # # @param value the value to set the attribute style to. # - # source://psych//psych/coder.rb#10 + # source://psych/lib/psych/coder.rb#10 def style=(_arg0); end # Returns the value of attribute tag. # - # source://psych//psych/coder.rb#10 + # source://psych/lib/psych/coder.rb#10 def tag; end # Sets the attribute tag # # @param value the value to set the attribute tag to. # - # source://psych//psych/coder.rb#10 + # source://psych/lib/psych/coder.rb#10 def tag=(_arg0); end # Returns the value of attribute type. # - # source://psych//psych/coder.rb#11 + # source://psych/lib/psych/coder.rb#11 def type; end end +# source://psych/lib/psych/exception.rb#23 class Psych::DisallowedClass < ::Psych::Exception # @return [DisallowedClass] a new instance of DisallowedClass # - # source://psych//psych/exception.rb#24 + # source://psych/lib/psych/exception.rb#24 def initialize(action, klass_name); end end @@ -843,6 +871,8 @@ end # event handlers. # # See Psych::Parser for more details +# +# source://psych/lib/psych/handler.rb#13 class Psych::Handler # Called when an alias is found to +anchor+. +anchor+ will be the name # of the anchor found. @@ -858,13 +888,13 @@ class Psych::Handler # &ponies is the anchor, *ponies is the alias. In this case, alias is # called with "ponies". # - # source://psych//psych/handler.rb#110 + # source://psych/lib/psych/handler.rb#110 def alias(anchor); end # Called when an empty event happens. (Which, as far as I can tell, is # never). # - # source://psych//psych/handler.rb#236 + # source://psych/lib/psych/handler.rb#236 def empty; end # Called with the document ends. +implicit+ is a boolean value indicating @@ -885,27 +915,27 @@ class Psych::Handler # # +implicit+ will be false. # - # source://psych//psych/handler.rb#93 + # source://psych/lib/psych/handler.rb#93 def end_document(implicit); end # Called when a map ends # - # source://psych//psych/handler.rb#230 + # source://psych/lib/psych/handler.rb#230 def end_mapping; end # Called when a sequence ends. # - # source://psych//psych/handler.rb#191 + # source://psych/lib/psych/handler.rb#191 def end_sequence; end # Called when the YAML stream ends # - # source://psych//psych/handler.rb#241 + # source://psych/lib/psych/handler.rb#241 def end_stream; end # Called before each event with line/column information. # - # source://psych//psych/handler.rb#246 + # source://psych/lib/psych/handler.rb#246 def event_location(start_line, start_column, end_line, end_column); end # Called when a scalar +value+ is found. The scalar may have an @@ -944,7 +974,7 @@ class Psych::Handler # ["many lines", nil, nil, true, false, 1 ] # ["many\nnewlines\n", nil, nil, false, true, 4 ] # - # source://psych//psych/handler.rb#150 + # source://psych/lib/psych/handler.rb#150 def scalar(value, anchor, tag, plain, quoted, style); end # Called when the document starts with the declared +version+, @@ -969,7 +999,7 @@ class Psych::Handler # tag_directives # => [["!", "tag:tenderlovemaking.com,2009:"]] # implicit # => false # - # source://psych//psych/handler.rb#72 + # source://psych/lib/psych/handler.rb#72 def start_document(version, tag_directives, implicit); end # Called when a map starts. @@ -1002,7 +1032,7 @@ class Psych::Handler # [nil, "tag:yaml.org,2002:map", false, 2 ] # ["pewpew", nil, true, 1 ] # - # source://psych//psych/handler.rb#225 + # source://psych/lib/psych/handler.rb#225 def start_mapping(anchor, tag, implicit, style); end # Called when a sequence is started. @@ -1037,7 +1067,7 @@ class Psych::Handler # [nil, "tag:yaml.org,2002:seq", false, 2 ] # ["pewpew", nil, true, 1 ] # - # source://psych//psych/handler.rb#186 + # source://psych/lib/psych/handler.rb#186 def start_sequence(anchor, tag, implicit, style); end # Called with +encoding+ when the YAML stream starts. This method is @@ -1045,61 +1075,64 @@ class Psych::Handler # # See the constants in Psych::Parser for the possible values of +encoding+. # - # source://psych//psych/handler.rb#47 + # source://psych/lib/psych/handler.rb#47 def start_stream(encoding); end # Is this handler a streaming handler? # # @return [Boolean] # - # source://psych//psych/handler.rb#251 + # source://psych/lib/psych/handler.rb#251 def streaming?; end end # Configuration options for dumping YAML. +# +# source://psych/lib/psych/handler.rb#16 class Psych::Handler::DumperOptions # @return [DumperOptions] a new instance of DumperOptions # - # source://psych//psych/handler.rb#19 + # source://psych/lib/psych/handler.rb#19 def initialize; end # Returns the value of attribute canonical. # - # source://psych//psych/handler.rb#17 + # source://psych/lib/psych/handler.rb#17 def canonical; end # Sets the attribute canonical # # @param value the value to set the attribute canonical to. # - # source://psych//psych/handler.rb#17 + # source://psych/lib/psych/handler.rb#17 def canonical=(_arg0); end # Returns the value of attribute indentation. # - # source://psych//psych/handler.rb#17 + # source://psych/lib/psych/handler.rb#17 def indentation; end # Sets the attribute indentation # # @param value the value to set the attribute indentation to. # - # source://psych//psych/handler.rb#17 + # source://psych/lib/psych/handler.rb#17 def indentation=(_arg0); end # Returns the value of attribute line_width. # - # source://psych//psych/handler.rb#17 + # source://psych/lib/psych/handler.rb#17 def line_width; end # Sets the attribute line_width # # @param value the value to set the attribute line_width to. # - # source://psych//psych/handler.rb#17 + # source://psych/lib/psych/handler.rb#17 def line_width=(_arg0); end end +# source://psych/lib/psych/json/stream.rb#7 class Psych::JSON::Stream < ::Psych::Visitors::JSONTree include ::Psych::Streaming extend ::Psych::Streaming::ClassMethods @@ -1133,28 +1166,30 @@ end # # Psych uses Psych::Parser in combination with Psych::TreeBuilder to # construct an AST of the parsed YAML document. +# +# source://psych/lib/psych/parser.rb#33 class Psych::Parser # Creates a new Psych::Parser instance with +handler+. YAML events will # be called on +handler+. See Psych::Parser for more details. # # @return [Parser] a new instance of Parser # - # source://psych//psych/parser.rb#47 + # source://psych/lib/psych/parser.rb#47 def initialize(handler = T.unsafe(nil)); end # Set the encoding for this parser to +encoding+ # - # source://psych//psych/parser.rb#41 + # source://psych/lib/psych/parser.rb#41 def external_encoding=(_arg0); end # The handler on which events will be called # - # source://psych//psych/parser.rb#38 + # source://psych/lib/psych/parser.rb#38 def handler; end # The handler on which events will be called # - # source://psych//psych/parser.rb#38 + # source://psych/lib/psych/parser.rb#38 def handler=(_arg0); end # call-seq: @@ -1165,49 +1200,51 @@ class Psych::Parser # # See Psych::Parser and Psych::Parser#handler # - # source://psych//psych/parser.rb#61 + # source://psych/lib/psych/parser.rb#61 def parse(yaml, path = T.unsafe(nil)); end end # Scan scalars for built in types +# +# source://psych/lib/psych/scalar_scanner.rb#6 class Psych::ScalarScanner # Create a new scanner # # @return [ScalarScanner] a new instance of ScalarScanner # - # source://psych//psych/scalar_scanner.rb#30 + # source://psych/lib/psych/scalar_scanner.rb#30 def initialize(class_loader, strict_integer: T.unsafe(nil)); end # Returns the value of attribute class_loader. # - # source://psych//psych/scalar_scanner.rb#27 + # source://psych/lib/psych/scalar_scanner.rb#27 def class_loader; end # Parse and return an int from +string+ # - # source://psych//psych/scalar_scanner.rb#109 + # source://psych/lib/psych/scalar_scanner.rb#108 def parse_int(string); end # Parse and return a Time from +string+ # - # source://psych//psych/scalar_scanner.rb#115 + # source://psych/lib/psych/scalar_scanner.rb#114 def parse_time(string); end # Tokenize +string+ returning the Ruby object # - # source://psych//psych/scalar_scanner.rb#37 + # source://psych/lib/psych/scalar_scanner.rb#37 def tokenize(string); end end # Same as above, but allows commas. # Not to YML spec, but kept for backwards compatibility # -# source://psych//psych/scalar_scanner.rb#22 +# source://psych/lib/psych/scalar_scanner.rb#22 Psych::ScalarScanner::INTEGER_LEGACY = T.let(T.unsafe(nil), Regexp) -# Taken from http://yaml.org/type/int.html +# Taken from http://yaml.org/type/int.html and modified to ensure at least one numerical symbol exists # -# source://psych//psych/scalar_scanner.rb#15 +# source://psych/lib/psych/scalar_scanner.rb#15 Psych::ScalarScanner::INTEGER_STRICT = T.let(T.unsafe(nil), Regexp) # Psych::Stream is a streaming YAML emitter. It will not buffer your YAML, @@ -1229,75 +1266,81 @@ Psych::ScalarScanner::INTEGER_STRICT = T.let(T.unsafe(nil), Regexp) # stream.start do |em| # em.push(:foo => 'bar') # end +# +# source://psych/lib/psych/stream.rb#24 class Psych::Stream < ::Psych::Visitors::YAMLTree include ::Psych::Streaming extend ::Psych::Streaming::ClassMethods end +# source://psych/lib/psych/stream.rb#25 class Psych::Stream::Emitter < ::Psych::Emitter - # source://psych//psych/stream.rb#26 + # source://psych/lib/psych/stream.rb#26 def end_document(implicit_end = T.unsafe(nil)); end # @return [Boolean] # - # source://psych//psych/stream.rb#30 + # source://psych/lib/psych/stream.rb#30 def streaming?; end end +# source://psych/lib/psych/streaming.rb#3 module Psych::Streaming # Start streaming using +encoding+ # - # source://psych//psych/streaming.rb#18 + # source://psych/lib/psych/streaming.rb#18 def start(encoding = T.unsafe(nil)); end private - # source://psych//psych/streaming.rb#25 + # source://psych/lib/psych/streaming.rb#25 def register(target, obj); end end +# source://psych/lib/psych/streaming.rb#4 module Psych::Streaming::ClassMethods # Create a new streaming emitter. Emitter will print to +io+. See # Psych::Stream for an example. # - # source://psych//psych/streaming.rb#8 + # source://psych/lib/psych/streaming.rb#8 def new(io); end end +# source://psych/lib/psych/syntax_error.rb#5 class Psych::SyntaxError < ::Psych::Exception # @return [SyntaxError] a new instance of SyntaxError # - # source://psych//psych/syntax_error.rb#8 + # source://psych/lib/psych/syntax_error.rb#8 def initialize(file, line, col, offset, problem, context); end # Returns the value of attribute column. # - # source://psych//psych/syntax_error.rb#6 + # source://psych/lib/psych/syntax_error.rb#6 def column; end # Returns the value of attribute context. # - # source://psych//psych/syntax_error.rb#6 + # source://psych/lib/psych/syntax_error.rb#6 def context; end # Returns the value of attribute file. # - # source://psych//psych/syntax_error.rb#6 + # source://psych/lib/psych/syntax_error.rb#6 def file; end # Returns the value of attribute line. # - # source://psych//psych/syntax_error.rb#6 + # source://psych/lib/psych/syntax_error.rb#6 def line; end # Returns the value of attribute offset. # - # source://psych//psych/syntax_error.rb#6 + # source://psych/lib/psych/syntax_error.rb#6 def offset; end # Returns the value of attribute problem. # - # source://psych//psych/syntax_error.rb#6 + # source://psych/lib/psych/syntax_error.rb#6 def problem; end end @@ -1312,15 +1355,17 @@ end # # See Psych::Handler for documentation on the event methods used in this # class. +# +# source://psych/lib/psych/tree_builder.rb#17 class Psych::TreeBuilder < ::Psych::Handler # Create a new TreeBuilder instance # # @return [TreeBuilder] a new instance of TreeBuilder # - # source://psych//psych/tree_builder.rb#22 + # source://psych/lib/psych/tree_builder.rb#22 def initialize; end - # source://psych//psych/tree_builder.rb#103 + # source://psych/lib/psych/tree_builder.rb#103 def alias(anchor); end # Handles end_document events with +version+, +tag_directives+, @@ -1328,27 +1373,27 @@ class Psych::TreeBuilder < ::Psych::Handler # # See Psych::Handler#start_document # - # source://psych//psych/tree_builder.rb#77 + # source://psych/lib/psych/tree_builder.rb#77 def end_document(implicit_end = T.unsafe(nil)); end - # source://psych//psych/tree_builder.rb#52 + # source://psych/lib/psych/tree_builder.rb#52 def end_mapping; end - # source://psych//psych/tree_builder.rb#52 + # source://psych/lib/psych/tree_builder.rb#52 def end_sequence; end - # source://psych//psych/tree_builder.rb#90 + # source://psych/lib/psych/tree_builder.rb#90 def end_stream; end - # source://psych//psych/tree_builder.rb#33 + # source://psych/lib/psych/tree_builder.rb#33 def event_location(start_line, start_column, end_line, end_column); end # Returns the root node for the built tree # - # source://psych//psych/tree_builder.rb#19 + # source://psych/lib/psych/tree_builder.rb#19 def root; end - # source://psych//psych/tree_builder.rb#96 + # source://psych/lib/psych/tree_builder.rb#96 def scalar(value, anchor, tag, plain, quoted, style); end # Handles start_document events with +version+, +tag_directives+, @@ -1356,176 +1401,181 @@ class Psych::TreeBuilder < ::Psych::Handler # # See Psych::Handler#start_document # - # source://psych//psych/tree_builder.rb#65 + # source://psych/lib/psych/tree_builder.rb#65 def start_document(version, tag_directives, implicit); end - # source://psych//psych/tree_builder.rb#45 + # source://psych/lib/psych/tree_builder.rb#45 def start_mapping(anchor, tag, implicit, style); end - # source://psych//psych/tree_builder.rb#45 + # source://psych/lib/psych/tree_builder.rb#45 def start_sequence(anchor, tag, implicit, style); end - # source://psych//psych/tree_builder.rb#84 + # source://psych/lib/psych/tree_builder.rb#84 def start_stream(encoding); end private - # source://psych//psych/tree_builder.rb#116 + # source://psych/lib/psych/tree_builder.rb#116 def pop; end - # source://psych//psych/tree_builder.rb#111 + # source://psych/lib/psych/tree_builder.rb#111 def push(value); end - # source://psych//psych/tree_builder.rb#132 + # source://psych/lib/psych/tree_builder.rb#132 def set_end_location(node); end - # source://psych//psych/tree_builder.rb#122 + # source://psych/lib/psych/tree_builder.rb#122 def set_location(node); end - # source://psych//psych/tree_builder.rb#127 + # source://psych/lib/psych/tree_builder.rb#127 def set_start_location(node); end end # The version of Psych you are using # -# source://psych//psych/versions.rb#5 +# source://psych/lib/psych/versions.rb#5 Psych::VERSION = T.let(T.unsafe(nil), String) +# source://psych/lib/psych/visitors/depth_first.rb#4 class Psych::Visitors::DepthFirst < ::Psych::Visitors::Visitor # @return [DepthFirst] a new instance of DepthFirst # - # source://psych//psych/visitors/depth_first.rb#5 + # source://psych/lib/psych/visitors/depth_first.rb#5 def initialize(block); end private - # source://psych//psych/visitors/depth_first.rb#11 + # source://psych/lib/psych/visitors/depth_first.rb#11 def nary(o); end - # source://psych//psych/visitors/depth_first.rb#20 + # source://psych/lib/psych/visitors/depth_first.rb#20 def terminal(o); end - # source://psych//psych/visitors/depth_first.rb#20 + # source://psych/lib/psych/visitors/depth_first.rb#20 def visit_Psych_Nodes_Alias(o); end - # source://psych//psych/visitors/depth_first.rb#11 + # source://psych/lib/psych/visitors/depth_first.rb#11 def visit_Psych_Nodes_Document(o); end - # source://psych//psych/visitors/depth_first.rb#11 + # source://psych/lib/psych/visitors/depth_first.rb#11 def visit_Psych_Nodes_Mapping(o); end - # source://psych//psych/visitors/depth_first.rb#20 + # source://psych/lib/psych/visitors/depth_first.rb#20 def visit_Psych_Nodes_Scalar(o); end - # source://psych//psych/visitors/depth_first.rb#11 + # source://psych/lib/psych/visitors/depth_first.rb#11 def visit_Psych_Nodes_Sequence(o); end - # source://psych//psych/visitors/depth_first.rb#11 + # source://psych/lib/psych/visitors/depth_first.rb#11 def visit_Psych_Nodes_Stream(o); end end +# source://psych/lib/psych/visitors/yaml_tree.rb#537 class Psych::Visitors::RestrictedYAMLTree < ::Psych::Visitors::YAMLTree # @return [RestrictedYAMLTree] a new instance of RestrictedYAMLTree # - # source://psych//psych/visitors/yaml_tree.rb#552 + # source://psych/lib/psych/visitors/yaml_tree.rb#549 def initialize(emitter, ss, options); end - # source://psych//psych/visitors/yaml_tree.rb#565 + # source://psych/lib/psych/visitors/yaml_tree.rb#562 def accept(target); end - # source://psych//psych/visitors/yaml_tree.rb#577 + # source://psych/lib/psych/visitors/yaml_tree.rb#574 def visit_Symbol(sym); end end -# source://psych//psych/visitors/yaml_tree.rb#541 +# source://psych/lib/psych/visitors/yaml_tree.rb#538 Psych::Visitors::RestrictedYAMLTree::DEFAULT_PERMITTED_CLASSES = T.let(T.unsafe(nil), Hash) # This class walks a YAML AST, converting each node to Ruby +# +# source://psych/lib/psych/visitors/to_ruby.rb#14 class Psych::Visitors::ToRuby < ::Psych::Visitors::Visitor # @return [ToRuby] a new instance of ToRuby # - # source://psych//psych/visitors/to_ruby.rb#23 + # source://psych/lib/psych/visitors/to_ruby.rb#23 def initialize(ss, class_loader, symbolize_names: T.unsafe(nil), freeze: T.unsafe(nil)); end - # source://psych//psych/visitors/to_ruby.rb#34 + # source://psych/lib/psych/visitors/to_ruby.rb#34 def accept(target); end # Returns the value of attribute class_loader. # - # source://psych//psych/visitors/to_ruby.rb#21 + # source://psych/lib/psych/visitors/to_ruby.rb#21 def class_loader; end - # source://psych//psych/visitors/to_ruby.rb#327 + # source://psych/lib/psych/visitors/to_ruby.rb#326 def visit_Psych_Nodes_Alias(o); end - # source://psych//psych/visitors/to_ruby.rb#319 + # source://psych/lib/psych/visitors/to_ruby.rb#318 def visit_Psych_Nodes_Document(o); end - # source://psych//psych/visitors/to_ruby.rb#165 + # source://psych/lib/psych/visitors/to_ruby.rb#164 def visit_Psych_Nodes_Mapping(o); end - # source://psych//psych/visitors/to_ruby.rb#129 + # source://psych/lib/psych/visitors/to_ruby.rb#128 def visit_Psych_Nodes_Scalar(o); end - # source://psych//psych/visitors/to_ruby.rb#133 + # source://psych/lib/psych/visitors/to_ruby.rb#132 def visit_Psych_Nodes_Sequence(o); end - # source://psych//psych/visitors/to_ruby.rb#323 + # source://psych/lib/psych/visitors/to_ruby.rb#322 def visit_Psych_Nodes_Stream(o); end private - # source://psych//psych/visitors/to_ruby.rb#395 + # source://psych/lib/psych/visitors/to_ruby.rb#394 def deduplicate(key); end - # source://psych//psych/visitors/to_ruby.rb#51 + # source://psych/lib/psych/visitors/to_ruby.rb#51 def deserialize(o); end - # source://psych//psych/visitors/to_ruby.rb#412 + # source://psych/lib/psych/visitors/to_ruby.rb#411 def init_with(o, h, node); end - # source://psych//psych/visitors/to_ruby.rb#404 + # source://psych/lib/psych/visitors/to_ruby.rb#403 def merge_key(hash, key, val); end - # source://psych//psych/visitors/to_ruby.rb#333 + # source://psych/lib/psych/visitors/to_ruby.rb#332 def register(node, object); end - # source://psych//psych/visitors/to_ruby.rb#338 + # source://psych/lib/psych/visitors/to_ruby.rb#337 def register_empty(object); end # Convert +klassname+ to a Class # - # source://psych//psych/visitors/to_ruby.rb#425 + # source://psych/lib/psych/visitors/to_ruby.rb#424 def resolve_class(klassname); end - # source://psych//psych/visitors/to_ruby.rb#407 + # source://psych/lib/psych/visitors/to_ruby.rb#406 def revive(klass, node); end - # source://psych//psych/visitors/to_ruby.rb#344 + # source://psych/lib/psych/visitors/to_ruby.rb#343 def revive_hash(hash, o, tagged = T.unsafe(nil)); end class << self - # source://psych//psych/visitors/to_ruby.rb#15 + # source://psych/lib/psych/visitors/to_ruby.rb#15 def create(symbolize_names: T.unsafe(nil), freeze: T.unsafe(nil), strict_integer: T.unsafe(nil)); end end end +# source://psych/lib/psych/visitors/visitor.rb#4 class Psych::Visitors::Visitor - # source://psych//psych/visitors/visitor.rb#5 + # source://psych/lib/psych/visitors/visitor.rb#5 def accept(target); end private - # source://psych//psych/visitors/visitor.rb#19 + # source://psych/lib/psych/visitors/visitor.rb#19 def dispatch; end - # source://psych//psych/visitors/visitor.rb#29 + # source://psych/lib/psych/visitors/visitor.rb#29 def visit(target); end class << self # @api private # - # source://psych//psych/visitors/visitor.rb#12 + # source://psych/lib/psych/visitors/visitor.rb#12 def dispatch_cache; end end end @@ -1535,198 +1585,201 @@ end # builder = Psych::Visitors::YAMLTree.new # builder << { :foo => 'bar' } # builder.tree # => #rdoc --help for command line usage. # # If you want to set the default markup format see -# RDoc::Markup@Supported+Formats +# RDoc::Markup@Markup+Formats # # If you want to store rdoc configuration in your gem (such as the default # markup format) see RDoc::Options@Saved+Options @@ -66,7 +66,7 @@ end # work of Keiju ISHITSUKA of Nippon Rational Inc, who produced the Ruby # parser for irb and the rtags package. # -# source://rdoc//lib/rdoc.rb#58 +# source://rdoc/lib/rdoc.rb#56 module RDoc class << self # Searches and returns the directory for settings. @@ -79,12 +79,12 @@ module RDoc # Other than the home directory, the containing directory will be # created automatically. # - # source://rdoc//lib/rdoc.rb#134 + # source://rdoc/lib/rdoc.rb#132 def home; end # Loads the best available YAML library. # - # source://rdoc//lib/rdoc.rb#107 + # source://rdoc/lib/rdoc.rb#105 def load_yaml; end end end @@ -95,96 +95,96 @@ end # TODO implement Alias as a proxy to a method/attribute, inheriting from # MethodAttr # -# source://rdoc//lib/rdoc/alias.rb#9 +# source://rdoc/lib/rdoc/code_object/alias.rb#9 class RDoc::Alias < ::RDoc::CodeObject # Creates a new Alias with a token stream of +text+ that aliases +old_name+ # to +new_name+, has +comment+ and is a +singleton+ context. # # @return [Alias] a new instance of Alias # - # source://rdoc//lib/rdoc/alias.rb#37 + # source://rdoc/lib/rdoc/code_object/alias.rb#37 def initialize(text, old_name, new_name, comment, singleton = T.unsafe(nil)); end # Order by #singleton then #new_name # - # source://rdoc//lib/rdoc/alias.rb#50 + # source://rdoc/lib/rdoc/code_object/alias.rb#50 def <=>(other); end # HTML fragment reference for this alias # - # source://rdoc//lib/rdoc/alias.rb#57 + # source://rdoc/lib/rdoc/code_object/alias.rb#57 def aref; end # Full old name including namespace # - # source://rdoc//lib/rdoc/alias.rb#65 + # source://rdoc/lib/rdoc/code_object/alias.rb#65 def full_old_name; end # HTML id-friendly version of +#new_name+. # - # source://rdoc//lib/rdoc/alias.rb#72 + # source://rdoc/lib/rdoc/code_object/alias.rb#72 def html_name; end - # source://rdoc//lib/rdoc/alias.rb#76 + # source://rdoc/lib/rdoc/code_object/alias.rb#76 def inspect; end # Aliased method's name # - # source://rdoc//lib/rdoc/alias.rb#14 + # source://rdoc/lib/rdoc/code_object/alias.rb#14 def name; end # '::' for the alias of a singleton method/attribute, '#' for instance-level. # - # source://rdoc//lib/rdoc/alias.rb#87 + # source://rdoc/lib/rdoc/code_object/alias.rb#87 def name_prefix; end # Aliased method's name # - # source://rdoc//lib/rdoc/alias.rb#14 + # source://rdoc/lib/rdoc/code_object/alias.rb#14 def new_name; end # Aliasee method's name # - # source://rdoc//lib/rdoc/alias.rb#21 + # source://rdoc/lib/rdoc/code_object/alias.rb#21 def old_name; end # New name with prefix '::' or '#'. # - # source://rdoc//lib/rdoc/alias.rb#101 + # source://rdoc/lib/rdoc/code_object/alias.rb#101 def pretty_name; end # New name with prefix '::' or '#'. # - # source://rdoc//lib/rdoc/alias.rb#101 + # source://rdoc/lib/rdoc/code_object/alias.rb#101 def pretty_new_name; end # Old name with prefix '::' or '#'. # - # source://rdoc//lib/rdoc/alias.rb#94 + # source://rdoc/lib/rdoc/code_object/alias.rb#94 def pretty_old_name; end # Is this an alias declared in a singleton context? # - # source://rdoc//lib/rdoc/alias.rb#26 + # source://rdoc/lib/rdoc/code_object/alias.rb#26 def singleton; end # Is this an alias declared in a singleton context? # - # source://rdoc//lib/rdoc/alias.rb#26 + # source://rdoc/lib/rdoc/code_object/alias.rb#26 def singleton=(_arg0); end # Source file token stream # - # source://rdoc//lib/rdoc/alias.rb#31 + # source://rdoc/lib/rdoc/code_object/alias.rb#31 def text; end - # source://rdoc//lib/rdoc/alias.rb#107 + # source://rdoc/lib/rdoc/code_object/alias.rb#107 def to_s; end end # AnyMethod is the base class for objects representing methods # -# source://rdoc//lib/rdoc/any_method.rb#5 +# source://rdoc/lib/rdoc/code_object/any_method.rb#5 class RDoc::AnyMethod < ::RDoc::MethodAttr include ::RDoc::TokenStream @@ -192,39 +192,39 @@ class RDoc::AnyMethod < ::RDoc::MethodAttr # # @return [AnyMethod] a new instance of AnyMethod # - # source://rdoc//lib/rdoc/any_method.rb#46 + # source://rdoc/lib/rdoc/code_object/any_method.rb#46 def initialize(text, name); end # Adds +an_alias+ as an alias for this method in +context+. # - # source://rdoc//lib/rdoc/any_method.rb#59 + # source://rdoc/lib/rdoc/code_object/any_method.rb#59 def add_alias(an_alias, context = T.unsafe(nil)); end # Prefix for +aref+ is 'method'. # - # source://rdoc//lib/rdoc/any_method.rb#76 + # source://rdoc/lib/rdoc/code_object/any_method.rb#76 def aref_prefix; end # The call_seq or the param_seq with method name, if there is no call_seq. # # Use this for displaying a method's argument lists. # - # source://rdoc//lib/rdoc/any_method.rb#85 + # source://rdoc/lib/rdoc/code_object/any_method.rb#85 def arglists; end # The C function that implements this method (if it was defined in a C file) # - # source://rdoc//lib/rdoc/any_method.rb#27 + # source://rdoc/lib/rdoc/code_object/any_method.rb#27 def c_function; end # The C function that implements this method (if it was defined in a C file) # - # source://rdoc//lib/rdoc/any_method.rb#27 + # source://rdoc/lib/rdoc/code_object/any_method.rb#27 def c_function=(_arg0); end # Different ways to call this method # - # source://rdoc//lib/rdoc/any_method.rb#96 + # source://rdoc/lib/rdoc/code_object/any_method.rb#96 def call_seq; end # Sets the different ways you can call this method. If an empty +call_seq+ @@ -232,45 +232,45 @@ class RDoc::AnyMethod < ::RDoc::MethodAttr # # See also #param_seq # - # source://rdoc//lib/rdoc/any_method.rb#112 + # source://rdoc/lib/rdoc/code_object/any_method.rb#112 def call_seq=(call_seq); end # If true this method uses +super+ to call a superclass version # - # source://rdoc//lib/rdoc/any_method.rb#39 + # source://rdoc/lib/rdoc/code_object/any_method.rb#39 def calls_super; end # If true this method uses +super+ to call a superclass version # - # source://rdoc//lib/rdoc/any_method.rb#39 + # source://rdoc/lib/rdoc/code_object/any_method.rb#39 def calls_super=(_arg0); end # Don't rename \#initialize to \::new # - # source://rdoc//lib/rdoc/any_method.rb#22 + # source://rdoc/lib/rdoc/code_object/any_method.rb#22 def dont_rename_initialize; end # Don't rename \#initialize to \::new # - # source://rdoc//lib/rdoc/any_method.rb#22 + # source://rdoc/lib/rdoc/code_object/any_method.rb#22 def dont_rename_initialize=(_arg0); end # Whether the method has a call-seq. # # @return [Boolean] # - # source://rdoc//lib/rdoc/any_method.rb#121 + # source://rdoc/lib/rdoc/code_object/any_method.rb#121 def has_call_seq?; end # Loads is_alias_for from the internal name. Returns nil if the alias # cannot be found. # - # source://rdoc//lib/rdoc/any_method.rb#129 + # source://rdoc/lib/rdoc/code_object/any_method.rb#129 def is_alias_for; end # Dumps this AnyMethod for use by ri. See also #marshal_load # - # source://rdoc//lib/rdoc/any_method.rb#147 + # source://rdoc/lib/rdoc/code_object/any_method.rb#147 def marshal_dump; end # Loads this AnyMethod from +array+. For a loaded AnyMethod the following @@ -279,46 +279,46 @@ class RDoc::AnyMethod < ::RDoc::MethodAttr # * #full_name # * #parent_name # - # source://rdoc//lib/rdoc/any_method.rb#184 + # source://rdoc/lib/rdoc/code_object/any_method.rb#184 def marshal_load(array); end # Method name # # If the method has no assigned name, it extracts it from #call_seq. # - # source://rdoc//lib/rdoc/any_method.rb#233 + # source://rdoc/lib/rdoc/code_object/any_method.rb#233 def name; end # A list of this method's method and yield parameters. +call-seq+ params # are preferred over parsed method and block params. # - # source://rdoc//lib/rdoc/any_method.rb#246 + # source://rdoc/lib/rdoc/code_object/any_method.rb#246 def param_list; end # Pretty parameter list for this method. If the method's parameters were # given by +call-seq+ it is preferred over the parsed values. # - # source://rdoc//lib/rdoc/any_method.rb#278 + # source://rdoc/lib/rdoc/code_object/any_method.rb#278 def param_seq; end # Parameters for this method # - # source://rdoc//lib/rdoc/any_method.rb#34 + # source://rdoc/lib/rdoc/code_object/any_method.rb#34 def params; end # Parameters for this method # - # source://rdoc//lib/rdoc/any_method.rb#34 + # source://rdoc/lib/rdoc/code_object/any_method.rb#34 def params=(_arg0); end # The section title of the method (if defined in a C file via +:category:+) # - # source://rdoc//lib/rdoc/any_method.rb#30 + # source://rdoc/lib/rdoc/code_object/any_method.rb#30 def section_title; end # The section title of the method (if defined in a C file via +:category:+) # - # source://rdoc//lib/rdoc/any_method.rb#30 + # source://rdoc/lib/rdoc/code_object/any_method.rb#30 def section_title=(_arg0); end # Whether to skip the method description, true for methods that have @@ -326,24 +326,24 @@ class RDoc::AnyMethod < ::RDoc::MethodAttr # # @return [Boolean] # - # source://rdoc//lib/rdoc/any_method.rb#310 + # source://rdoc/lib/rdoc/code_object/any_method.rb#310 def skip_description?; end # Sets the store for this method and its referenced code objects. # - # source://rdoc//lib/rdoc/any_method.rb#317 + # source://rdoc/lib/rdoc/code_object/any_method.rb#317 def store=(store); end # For methods that +super+, find the superclass method that would be called. # - # source://rdoc//lib/rdoc/any_method.rb#326 + # source://rdoc/lib/rdoc/code_object/any_method.rb#326 def superclass_method; end protected # call_seq without deduplication and alias lookup. # - # source://rdoc//lib/rdoc/any_method.rb#345 + # source://rdoc/lib/rdoc/code_object/any_method.rb#345 def _call_seq; end private @@ -351,36 +351,36 @@ class RDoc::AnyMethod < ::RDoc::MethodAttr # call_seq with alias examples information removed, if this # method is an alias method. # - # source://rdoc//lib/rdoc/any_method.rb#355 + # source://rdoc/lib/rdoc/code_object/any_method.rb#355 def deduplicate_call_seq(call_seq); end end # An attribute created by \#attr, \#attr_reader, \#attr_writer or # \#attr_accessor # -# source://rdoc//lib/rdoc/attr.rb#6 +# source://rdoc/lib/rdoc/code_object/attr.rb#6 class RDoc::Attr < ::RDoc::MethodAttr # Creates a new Attr with body +text+, +name+, read/write status +rw+ and # +comment+. +singleton+ marks this as a class attribute. # # @return [Attr] a new instance of Attr # - # source://rdoc//lib/rdoc/attr.rb#25 + # source://rdoc/lib/rdoc/code_object/attr.rb#25 def initialize(text, name, rw, comment, singleton = T.unsafe(nil)); end # Attributes are equal when their names, singleton and rw are identical # - # source://rdoc//lib/rdoc/attr.rb#36 + # source://rdoc/lib/rdoc/code_object/attr.rb#36 def ==(other); end # Add +an_alias+ as an attribute in +context+. # - # source://rdoc//lib/rdoc/attr.rb#46 + # source://rdoc/lib/rdoc/code_object/attr.rb#46 def add_alias(an_alias, context); end # The #aref prefix for attributes # - # source://rdoc//lib/rdoc/attr.rb#61 + # source://rdoc/lib/rdoc/code_object/attr.rb#61 def aref_prefix; end # Attributes never call super. See RDoc::AnyMethod#calls_super @@ -388,20 +388,20 @@ class RDoc::Attr < ::RDoc::MethodAttr # An RDoc::Attr can show up in the method list in some situations (see # Gem::ConfigFile) # - # source://rdoc//lib/rdoc/attr.rb#71 + # source://rdoc/lib/rdoc/code_object/attr.rb#71 def calls_super; end # Returns attr_reader, attr_writer or attr_accessor as appropriate. # - # source://rdoc//lib/rdoc/attr.rb#78 + # source://rdoc/lib/rdoc/code_object/attr.rb#78 def definition; end - # source://rdoc//lib/rdoc/attr.rb#86 + # source://rdoc/lib/rdoc/code_object/attr.rb#86 def inspect; end # Dumps this Attr for use by ri. See also #marshal_load # - # source://rdoc//lib/rdoc/attr.rb#102 + # source://rdoc/lib/rdoc/code_object/attr.rb#102 def marshal_dump; end # Loads this Attr from +array+. For a loaded Attr the following @@ -410,23 +410,23 @@ class RDoc::Attr < ::RDoc::MethodAttr # * #full_name # * #parent_name # - # source://rdoc//lib/rdoc/attr.rb#124 + # source://rdoc/lib/rdoc/code_object/attr.rb#124 def marshal_load(array); end - # source://rdoc//lib/rdoc/attr.rb#151 + # source://rdoc/lib/rdoc/code_object/attr.rb#151 def pretty_print(q); end # Is the attribute readable ('R'), writable ('W') or both ('RW')? # - # source://rdoc//lib/rdoc/attr.rb#19 + # source://rdoc/lib/rdoc/code_object/attr.rb#19 def rw; end # Is the attribute readable ('R'), writable ('W') or both ('RW')? # - # source://rdoc//lib/rdoc/attr.rb#19 + # source://rdoc/lib/rdoc/code_object/attr.rb#19 def rw=(_arg0); end - # source://rdoc//lib/rdoc/attr.rb#162 + # source://rdoc/lib/rdoc/code_object/attr.rb#162 def to_s; end # Attributes do not have token streams. @@ -434,14 +434,14 @@ class RDoc::Attr < ::RDoc::MethodAttr # An RDoc::Attr can show up in the method list in some situations (see # Gem::ConfigFile) # - # source://rdoc//lib/rdoc/attr.rb#172 + # source://rdoc/lib/rdoc/code_object/attr.rb#172 def token_stream; end end # ClassModule is the base class for objects representing either a class or a # module. # -# source://rdoc//lib/rdoc/class_module.rb#6 +# source://rdoc/lib/rdoc/code_object/class_module.rb#6 class RDoc::ClassModule < ::RDoc::Context # Creates a new ClassModule with +name+ with optional +superclass+ # @@ -449,17 +449,17 @@ class RDoc::ClassModule < ::RDoc::Context # # @return [ClassModule] a new instance of ClassModule # - # source://rdoc//lib/rdoc/class_module.rb#111 + # source://rdoc/lib/rdoc/code_object/class_module.rb#111 def initialize(name, superclass = T.unsafe(nil)); end # Adds +comment+ to this ClassModule's list of comments at +location+. This # method is preferred over #comment= since it allows ri data to be updated # across multiple runs. # - # source://rdoc//lib/rdoc/class_module.rb#127 + # source://rdoc/lib/rdoc/code_object/class_module.rb#127 def add_comment(comment, location); end - # source://rdoc//lib/rdoc/class_module.rb#148 + # source://rdoc/lib/rdoc/code_object/class_module.rb#148 def add_things(my_things, other_things); end # Ancestors list for this ClassModule: the list of included modules @@ -473,23 +473,23 @@ class RDoc::ClassModule < ::RDoc::Context # which is the order suitable for searching methods/attributes # in the ancestors. The superclass, if any, comes last. # - # source://rdoc//lib/rdoc/class_module.rb#171 + # source://rdoc/lib/rdoc/code_object/class_module.rb#171 def ancestors; end # HTML fragment reference for this module or class. See # RDoc::NormalClass#aref and RDoc::NormalModule#aref # - # source://rdoc//lib/rdoc/class_module.rb#183 + # source://rdoc/lib/rdoc/code_object/class_module.rb#183 def aref; end # @raise [NotImplementedError] # - # source://rdoc//lib/rdoc/class_module.rb#175 + # source://rdoc/lib/rdoc/code_object/class_module.rb#175 def aref_prefix; end # Clears the comment. Used by the Ruby parser. # - # source://rdoc//lib/rdoc/class_module.rb#195 + # source://rdoc/lib/rdoc/code_object/class_module.rb#195 def clear_comment; end # This method is deprecated, use #add_comment instead. @@ -497,45 +497,45 @@ class RDoc::ClassModule < ::RDoc::Context # Appends +comment+ to the current comment, but separated by a rule. Works # more like +=. # - # source://rdoc//lib/rdoc/class_module.rb#205 + # source://rdoc/lib/rdoc/code_object/class_module.rb#205 def comment=(comment); end # Comment and the location it came from. Use #add_comment to add comments # - # source://rdoc//lib/rdoc/class_module.rb#35 + # source://rdoc/lib/rdoc/code_object/class_module.rb#35 def comment_location; end # Comment and the location it came from. Use #add_comment to add comments # - # source://rdoc//lib/rdoc/class_module.rb#35 + # source://rdoc/lib/rdoc/code_object/class_module.rb#35 def comment_location=(_arg0); end # Prepares this ClassModule for use by a generator. # # See RDoc::Store#complete # - # source://rdoc//lib/rdoc/class_module.rb#223 + # source://rdoc/lib/rdoc/code_object/class_module.rb#223 def complete(min_visibility); end # Constants that are aliases for this class or module # - # source://rdoc//lib/rdoc/class_module.rb#30 + # source://rdoc/lib/rdoc/code_object/class_module.rb#30 def constant_aliases; end # Constants that are aliases for this class or module # - # source://rdoc//lib/rdoc/class_module.rb#30 + # source://rdoc/lib/rdoc/code_object/class_module.rb#30 def constant_aliases=(_arg0); end # Handy wrapper for marking up this class or module's comment # - # source://rdoc//lib/rdoc/generator/markup.rb#131 + # source://rdoc/lib/rdoc/generator/markup.rb#131 def description; end - # source://rdoc//lib/rdoc/class_module.rb#37 + # source://rdoc/lib/rdoc/code_object/class_module.rb#37 def diagram; end - # source://rdoc//lib/rdoc/class_module.rb#37 + # source://rdoc/lib/rdoc/code_object/class_module.rb#37 def diagram=(_arg0); end # Ancestors list for this ClassModule: the list of included modules @@ -551,12 +551,12 @@ class RDoc::ClassModule < ::RDoc::Context # # Ancestors of this class or module only # - # source://rdoc//lib/rdoc/class_module.rb#171 + # source://rdoc/lib/rdoc/code_object/class_module.rb#171 def direct_ancestors; end # Does this ClassModule or any of its methods have document_self set? # - # source://rdoc//lib/rdoc/class_module.rb#233 + # source://rdoc/lib/rdoc/code_object/class_module.rb#234 def document_self_or_methods; end # Does this class or module have a comment with content or is @@ -564,53 +564,56 @@ class RDoc::ClassModule < ::RDoc::Context # # @return [Boolean] # - # source://rdoc//lib/rdoc/class_module.rb#241 + # source://rdoc/lib/rdoc/code_object/class_module.rb#242 def documented?; end # Iterates the ancestors of this class or module for which an # RDoc::ClassModule exists. # - # source://rdoc//lib/rdoc/class_module.rb#251 + # source://rdoc/lib/rdoc/code_object/class_module.rb#252 def each_ancestor; end + # source://rdoc/lib/rdoc/code_object/class_module.rb#829 + def embed_mixins; end + # Looks for a symbol in the #ancestors. See Context#find_local_symbol. # - # source://rdoc//lib/rdoc/class_module.rb#264 + # source://rdoc/lib/rdoc/code_object/class_module.rb#265 def find_ancestor_local_symbol(symbol); end # Finds a class or module with +name+ in this namespace or its descendants # - # source://rdoc//lib/rdoc/class_module.rb#276 + # source://rdoc/lib/rdoc/code_object/class_module.rb#277 def find_class_named(name); end # Return the fully qualified name of this class or module # - # source://rdoc//lib/rdoc/class_module.rb#289 + # source://rdoc/lib/rdoc/code_object/class_module.rb#290 def full_name; end # Class or module this constant is an alias for # - # source://rdoc//lib/rdoc/class_module.rb#42 + # source://rdoc/lib/rdoc/code_object/class_module.rb#42 def is_alias_for; end # Class or module this constant is an alias for # - # source://rdoc//lib/rdoc/class_module.rb#42 + # source://rdoc/lib/rdoc/code_object/class_module.rb#42 def is_alias_for=(_arg0); end # TODO: filter included items by #display? # - # source://rdoc//lib/rdoc/class_module.rb#300 + # source://rdoc/lib/rdoc/code_object/class_module.rb#301 def marshal_dump; end - # source://rdoc//lib/rdoc/class_module.rb#346 + # source://rdoc/lib/rdoc/code_object/class_module.rb#347 def marshal_load(array); end # Merges +class_module+ into this ClassModule. # # The data in +class_module+ is preferred over the receiver. # - # source://rdoc//lib/rdoc/class_module.rb#435 + # source://rdoc/lib/rdoc/code_object/class_module.rb#436 def merge(class_module); end # Merges collection +mine+ with +other+ preferring other. +other_files+ is @@ -627,52 +630,52 @@ class RDoc::ClassModule < ::RDoc::Context # end # end # - # source://rdoc//lib/rdoc/class_module.rb#519 + # source://rdoc/lib/rdoc/code_object/class_module.rb#520 def merge_collections(mine, other, other_files, &block); end # Merges the comments in this ClassModule with the comments in the other # ClassModule +cm+. # - # source://rdoc//lib/rdoc/class_module.rb#531 + # source://rdoc/lib/rdoc/code_object/class_module.rb#532 def merge_sections(cm); end # Does this object represent a module? # # @return [Boolean] # - # source://rdoc//lib/rdoc/class_module.rb#570 + # source://rdoc/lib/rdoc/code_object/class_module.rb#571 def module?; end # Allows overriding the initial name. # # Used for modules and classes that are constant aliases. # - # source://rdoc//lib/rdoc/class_module.rb#579 + # source://rdoc/lib/rdoc/code_object/class_module.rb#580 def name=(new_name); end # Name to use to generate the url: # modules and classes that are aliases for another # module or class return the name of the latter. # - # source://rdoc//lib/rdoc/class_module.rb#622 + # source://rdoc/lib/rdoc/code_object/class_module.rb#623 def name_for_path; end # Returns the classes and modules that are not constants # aliasing another class or module. For use by formatters # only (caches its result). # - # source://rdoc//lib/rdoc/class_module.rb#631 + # source://rdoc/lib/rdoc/code_object/class_module.rb#632 def non_aliases; end # Parses +comment_location+ into an RDoc::Markup::Document composed of # multiple RDoc::Markup::Documents with their file set. # - # source://rdoc//lib/rdoc/class_module.rb#587 + # source://rdoc/lib/rdoc/code_object/class_module.rb#588 def parse(comment_location); end # Path to this class or module for use with HTML generator output. # - # source://rdoc//lib/rdoc/class_module.rb#613 + # source://rdoc/lib/rdoc/code_object/class_module.rb#614 def path; end # Updates the child modules or classes of class/module +parent+ by @@ -682,41 +685,53 @@ class RDoc::ClassModule < ::RDoc::Context # parent.classes_hash and +all_hash+ is ::all_modules_hash or # ::all_classes_hash. # - # source://rdoc//lib/rdoc/class_module.rb#643 + # source://rdoc/lib/rdoc/code_object/class_module.rb#644 def remove_nodoc_children; end - # source://rdoc//lib/rdoc/class_module.rb#657 + # source://rdoc/lib/rdoc/code_object/class_module.rb#658 def remove_things(my_things, other_files); end # Search record used by RDoc::Generator::JsonIndex # - # source://rdoc//lib/rdoc/class_module.rb#672 + # source://rdoc/lib/rdoc/code_object/class_module.rb#673 def search_record; end # Sets the store for this class or module and its contained code objects. # - # source://rdoc//lib/rdoc/class_module.rb#687 + # source://rdoc/lib/rdoc/code_object/class_module.rb#688 def store=(store); end + # Get all super classes of this class in an array. The last element might be + # a string if the name is unknown. + # + # source://rdoc/lib/rdoc/code_object/class_module.rb#731 + def super_classes; end + # Get the superclass of this class. Attempts to retrieve the superclass # object, returns the name if it is not known. # - # source://rdoc//lib/rdoc/class_module.rb#701 + # source://rdoc/lib/rdoc/code_object/class_module.rb#702 def superclass; end # Set the superclass of this class to +superclass+ # + # where +superclass+ is one of: + # + # - +nil+ + # - a String containing the full name of the superclass + # - the RDoc::ClassModule representing the superclass + # # @raise [NoMethodError] # - # source://rdoc//lib/rdoc/class_module.rb#708 + # source://rdoc/lib/rdoc/code_object/class_module.rb#715 def superclass=(superclass); end - # source://rdoc//lib/rdoc/class_module.rb#713 + # source://rdoc/lib/rdoc/code_object/class_module.rb#741 def to_s; end # 'module' or 'class' # - # source://rdoc//lib/rdoc/class_module.rb#724 + # source://rdoc/lib/rdoc/code_object/class_module.rb#752 def type; end # Updates the child modules & classes by replacing the ones that are @@ -733,7 +748,7 @@ class RDoc::ClassModule < ::RDoc::Context # the aliased modules are included in the constants of the class/module, # that are listed separately. # - # source://rdoc//lib/rdoc/class_module.rb#743 + # source://rdoc/lib/rdoc/code_object/class_module.rb#771 def update_aliases; end # Deletes from #extends those whose module has been removed from the @@ -741,7 +756,7 @@ class RDoc::ClassModule < ::RDoc::Context # -- # FIXME: like update_includes, extends are not reliably removed # - # source://rdoc//lib/rdoc/class_module.rb#791 + # source://rdoc/lib/rdoc/code_object/class_module.rb#819 def update_extends; end # Deletes from #includes those whose module has been removed from the @@ -749,16 +764,21 @@ class RDoc::ClassModule < ::RDoc::Context # -- # FIXME: includes are not reliably removed, see _possible_bug test case # - # source://rdoc//lib/rdoc/class_module.rb#776 + # source://rdoc/lib/rdoc/code_object/class_module.rb#804 def update_includes; end + private + + # source://rdoc/lib/rdoc/code_object/class_module.rb#858 + def prepare_to_embed(code_object, singleton = T.unsafe(nil)); end + class << self # Return a RDoc::ClassModule of class +class_type+ that is a copy # of module +module+. Used to promote modules to classes. # -- # TODO move to RDoc::NormalClass (I think) # - # source://rdoc//lib/rdoc/class_module.rb#50 + # source://rdoc/lib/rdoc/code_object/class_module.rb#50 def from_module(class_type, mod); end end end @@ -788,7 +808,7 @@ end # * RDoc::Require # * RDoc::Include # -# source://rdoc//lib/rdoc/code_object.rb#28 +# source://rdoc/lib/rdoc/code_object.rb#28 class RDoc::CodeObject include ::RDoc::Text include ::RDoc::Generator::Markup @@ -797,17 +817,17 @@ class RDoc::CodeObject # # @return [CodeObject] a new instance of CodeObject # - # source://rdoc//lib/rdoc/code_object.rb#102 + # source://rdoc/lib/rdoc/code_object.rb#107 def initialize; end # Our comment # - # source://rdoc//lib/rdoc/code_object.rb#35 + # source://rdoc/lib/rdoc/code_object.rb#35 def comment; end # Replaces our comment with +comment+, unless it is empty. # - # source://rdoc//lib/rdoc/code_object.rb#135 + # source://rdoc/lib/rdoc/code_object.rb#141 def comment=(comment); end # Should this CodeObject be displayed in output? @@ -820,41 +840,41 @@ class RDoc::CodeObject # # @return [Boolean] # - # source://rdoc//lib/rdoc/code_object.rb#163 + # source://rdoc/lib/rdoc/code_object.rb#169 def display?; end # Do we document our children? # - # source://rdoc//lib/rdoc/code_object.rb#40 + # source://rdoc/lib/rdoc/code_object.rb#40 def document_children; end # Enables or disables documentation of this CodeObject's children unless it # has been turned off by :enddoc: # - # source://rdoc//lib/rdoc/code_object.rb#172 + # source://rdoc/lib/rdoc/code_object.rb#178 def document_children=(document_children); end # Do we document ourselves? # - # source://rdoc//lib/rdoc/code_object.rb#45 + # source://rdoc/lib/rdoc/code_object.rb#45 def document_self; end # Enables or disables documentation of this CodeObject unless it has been # turned off by :enddoc:. If the argument is +nil+ it means the # - # source://rdoc//lib/rdoc/code_object.rb#183 + # source://rdoc/lib/rdoc/code_object.rb#189 def document_self=(document_self); end # Does this object have a comment with content or is #received_nodoc true? # # @return [Boolean] # - # source://rdoc//lib/rdoc/code_object.rb#194 + # source://rdoc/lib/rdoc/code_object.rb#200 def documented?; end # Are we done documenting (ie, did we come across a :enddoc:)? # - # source://rdoc//lib/rdoc/code_object.rb#50 + # source://rdoc/lib/rdoc/code_object.rb#50 def done_documenting; end # Turns documentation on/off, and turns on/off #document_self @@ -864,30 +884,30 @@ class RDoc::CodeObject # the object will refuse to turn #document_self or # will have no effect in the current file. # - # source://rdoc//lib/rdoc/code_object.rb#207 + # source://rdoc/lib/rdoc/code_object.rb#213 def done_documenting=(value); end # Yields each parent of this CodeObject. See also # RDoc::ClassModule#each_ancestor # - # source://rdoc//lib/rdoc/code_object.rb#218 + # source://rdoc/lib/rdoc/code_object.rb#224 def each_parent; end # Which file this code object was defined in # - # source://rdoc//lib/rdoc/code_object.rb#55 + # source://rdoc/lib/rdoc/code_object.rb#55 def file; end # File name where this CodeObject was found. # # See also RDoc::Context#in_files # - # source://rdoc//lib/rdoc/code_object.rb#233 + # source://rdoc/lib/rdoc/code_object.rb#239 def file_name; end # Force documentation of this CodeObject # - # source://rdoc//lib/rdoc/code_object.rb#60 + # source://rdoc/lib/rdoc/code_object.rb#60 def force_documentation; end # Force the documentation of this object unless documentation @@ -895,14 +915,14 @@ class RDoc::CodeObject # -- # HACK untested, was assigning to an ivar # - # source://rdoc//lib/rdoc/code_object.rb#245 + # source://rdoc/lib/rdoc/code_object.rb#251 def force_documentation=(value); end # Sets the full_name overriding any computed full name. # # Set to +nil+ to clear RDoc's cached value # - # source://rdoc//lib/rdoc/code_object.rb#254 + # source://rdoc/lib/rdoc/code_object.rb#260 def full_name=(full_name); end # Use this to ignore a CodeObject and all its children until found again @@ -920,7 +940,7 @@ class RDoc::CodeObject # reopened it should not be displayed. The ignore flag allows this to # occur. # - # source://rdoc//lib/rdoc/code_object.rb#274 + # source://rdoc/lib/rdoc/code_object.rb#280 def ignore; end # Has this class been ignored? @@ -929,96 +949,106 @@ class RDoc::CodeObject # # @return [Boolean] # - # source://rdoc//lib/rdoc/code_object.rb#287 + # source://rdoc/lib/rdoc/code_object.rb#293 def ignored?; end # Initializes state for visibility of this CodeObject and its children. # - # source://rdoc//lib/rdoc/code_object.rb#121 + # source://rdoc/lib/rdoc/code_object.rb#127 def initialize_visibility; end # Line in #file where this CodeObject was defined # - # source://rdoc//lib/rdoc/code_object.rb#65 + # source://rdoc/lib/rdoc/code_object.rb#65 def line; end # Line in #file where this CodeObject was defined # - # source://rdoc//lib/rdoc/code_object.rb#65 + # source://rdoc/lib/rdoc/code_object.rb#65 def line=(_arg0); end # Hash of arbitrary metadata for this CodeObject # - # source://rdoc//lib/rdoc/code_object.rb#70 + # source://rdoc/lib/rdoc/code_object.rb#70 def metadata; end + # When mixed-in to a class, this points to the Context in which it was originally defined. + # + # source://rdoc/lib/rdoc/code_object.rb#102 + def mixin_from; end + + # When mixed-in to a class, this points to the Context in which it was originally defined. + # + # source://rdoc/lib/rdoc/code_object.rb#102 + def mixin_from=(_arg0); end + # The options instance from the store this CodeObject is attached to, or a # default options instance if the CodeObject is not attached. # # This is used by Text#snippet # - # source://rdoc//lib/rdoc/code_object.rb#297 + # source://rdoc/lib/rdoc/code_object.rb#303 def options; end # Our parent CodeObject. The parent may be missing for classes loaded from # legacy RI data stores. # - # source://rdoc//lib/rdoc/code_object.rb#309 + # source://rdoc/lib/rdoc/code_object.rb#315 def parent; end # Sets the parent CodeObject # - # source://rdoc//lib/rdoc/code_object.rb#75 + # source://rdoc/lib/rdoc/code_object.rb#75 def parent=(_arg0); end # File name of our parent # - # source://rdoc//lib/rdoc/code_object.rb#331 + # source://rdoc/lib/rdoc/code_object.rb#337 def parent_file_name; end # Name of our parent # - # source://rdoc//lib/rdoc/code_object.rb#338 + # source://rdoc/lib/rdoc/code_object.rb#344 def parent_name; end - # source://rdoc//lib/rdoc/code_object.rb#80 + # source://rdoc/lib/rdoc/code_object.rb#80 def received_nodoc; end # Records the RDoc::TopLevel (file) where this code object was defined # - # source://rdoc//lib/rdoc/code_object.rb#345 + # source://rdoc/lib/rdoc/code_object.rb#351 def record_location(top_level); end # The section this CodeObject is in. Sections allow grouping of constants, # attributes and methods inside a class or module. # - # source://rdoc//lib/rdoc/code_object.rb#355 + # source://rdoc/lib/rdoc/code_object.rb#361 def section; end # Set the section this CodeObject is in # - # source://rdoc//lib/rdoc/code_object.rb#85 + # source://rdoc/lib/rdoc/code_object.rb#85 def section=(_arg0); end # Enable capture of documentation unless documentation has been # turned off by :enddoc: # - # source://rdoc//lib/rdoc/code_object.rb#365 + # source://rdoc/lib/rdoc/code_object.rb#371 def start_doc; end # Disable capture of documentation # - # source://rdoc//lib/rdoc/code_object.rb#377 + # source://rdoc/lib/rdoc/code_object.rb#383 def stop_doc; end # The RDoc::Store for this object. # - # source://rdoc//lib/rdoc/code_object.rb#90 + # source://rdoc/lib/rdoc/code_object.rb#90 def store; end # Sets the +store+ that contains this CodeObject # - # source://rdoc//lib/rdoc/code_object.rb#387 + # source://rdoc/lib/rdoc/code_object.rb#393 def store=(store); end # Use this to suppress a CodeObject and all its children until the next file @@ -1026,7 +1056,7 @@ class RDoc::CodeObject # documentation will be displayed while an ignored item with documentation # may not be displayed. # - # source://rdoc//lib/rdoc/code_object.rb#404 + # source://rdoc/lib/rdoc/code_object.rb#410 def suppress; end # Has this class been suppressed? @@ -1035,25 +1065,25 @@ class RDoc::CodeObject # # @return [Boolean] # - # source://rdoc//lib/rdoc/code_object.rb#417 + # source://rdoc/lib/rdoc/code_object.rb#423 def suppressed?; end # We are the model of the code, but we know that at some point we will be # worked on by viewers. By implementing the Viewable protocol, viewers can # associated themselves with these objects. # - # source://rdoc//lib/rdoc/code_object.rb#97 + # source://rdoc/lib/rdoc/code_object.rb#97 def viewer; end # We are the model of the code, but we know that at some point we will be # worked on by viewers. By implementing the Viewable protocol, viewers can # associated themselves with these objects. # - # source://rdoc//lib/rdoc/code_object.rb#97 + # source://rdoc/lib/rdoc/code_object.rb#97 def viewer=(_arg0); end end -# source://rdoc//lib/rdoc/comment.rb#12 +# source://rdoc/lib/rdoc/comment.rb#12 class RDoc::Comment include ::RDoc::Text @@ -1062,28 +1092,28 @@ class RDoc::Comment # # @return [Comment] a new instance of Comment # - # source://rdoc//lib/rdoc/comment.rb#56 + # source://rdoc/lib/rdoc/comment.rb#56 def initialize(text = T.unsafe(nil), location = T.unsafe(nil), language = T.unsafe(nil)); end - # source://rdoc//lib/rdoc/comment.rb#74 + # source://rdoc/lib/rdoc/comment.rb#74 def ==(other); end # Overrides the content returned by #parse. Use when there is no #text # source for this comment # - # source://rdoc//lib/rdoc/comment.rb#50 + # source://rdoc/lib/rdoc/comment.rb#50 def document=(_arg0); end # A comment is empty if its text String is empty. # # @return [Boolean] # - # source://rdoc//lib/rdoc/comment.rb#128 + # source://rdoc/lib/rdoc/comment.rb#128 def empty?; end # HACK dubious # - # source://rdoc//lib/rdoc/comment.rb#135 + # source://rdoc/lib/rdoc/comment.rb#135 def encode!(encoding); end # Look for a 'call-seq' in the comment to override the normal parameter @@ -1101,65 +1131,65 @@ class RDoc::Comment # # ARGF.to_a(limit) -> array # # ARGF.to_a(sep, limit) -> array # - # source://rdoc//lib/rdoc/comment.rb#95 + # source://rdoc/lib/rdoc/comment.rb#95 def extract_call_seq(method); end # The RDoc::TopLevel this comment was found in # # For duck-typing when merging classes at load time # - # source://rdoc//lib/rdoc/comment.rb#24 + # source://rdoc/lib/rdoc/comment.rb#24 def file; end # The format of this comment. Defaults to RDoc::Markup # - # source://rdoc//lib/rdoc/comment.rb#19 + # source://rdoc/lib/rdoc/comment.rb#19 def format; end # Sets the format of this comment and resets any parsed document # - # source://rdoc//lib/rdoc/comment.rb#143 + # source://rdoc/lib/rdoc/comment.rb#143 def format=(format); end - # source://rdoc//lib/rdoc/comment.rb#148 + # source://rdoc/lib/rdoc/comment.rb#148 def inspect; end # Line where this Comment was written # - # source://rdoc//lib/rdoc/comment.rb#29 + # source://rdoc/lib/rdoc/comment.rb#29 def line; end # Line where this Comment was written # - # source://rdoc//lib/rdoc/comment.rb#29 + # source://rdoc/lib/rdoc/comment.rb#29 def line=(_arg0); end # The RDoc::TopLevel this comment was found in # - # source://rdoc//lib/rdoc/comment.rb#24 + # source://rdoc/lib/rdoc/comment.rb#24 def location; end # The RDoc::TopLevel this comment was found in # - # source://rdoc//lib/rdoc/comment.rb#24 + # source://rdoc/lib/rdoc/comment.rb#24 def location=(_arg0); end # Normalizes the text. See RDoc::Text#normalize_comment for details # - # source://rdoc//lib/rdoc/comment.rb#157 + # source://rdoc/lib/rdoc/comment.rb#157 def normalize; end # Was this text normalized? # # @return [Boolean] # - # source://rdoc//lib/rdoc/comment.rb#171 + # source://rdoc/lib/rdoc/comment.rb#171 def normalized?; end # Parses the comment into an RDoc::Markup::Document. The parsed document is # cached until the text is changed. # - # source://rdoc//lib/rdoc/comment.rb#179 + # source://rdoc/lib/rdoc/comment.rb#179 def parse; end # Removes private sections from this comment. Private sections are flush to @@ -1174,12 +1204,12 @@ class RDoc::Comment # * public # */ # - # source://rdoc//lib/rdoc/comment.rb#200 + # source://rdoc/lib/rdoc/comment.rb#200 def remove_private; end # The text for this comment # - # source://rdoc//lib/rdoc/comment.rb#39 + # source://rdoc/lib/rdoc/comment.rb#39 def text; end # Replaces this comment's text with +text+ and resets the parsed document. @@ -1188,21 +1218,21 @@ class RDoc::Comment # # @raise [RDoc::Error] # - # source://rdoc//lib/rdoc/comment.rb#214 + # source://rdoc/lib/rdoc/comment.rb#214 def text=(text); end # The text for this comment # # Alias for text # - # source://rdoc//lib/rdoc/comment.rb#39 + # source://rdoc/lib/rdoc/comment.rb#39 def to_s; end # Returns true if this comment is in TomDoc format. # # @return [Boolean] # - # source://rdoc//lib/rdoc/comment.rb#225 + # source://rdoc/lib/rdoc/comment.rb#225 def tomdoc?; end private @@ -1210,29 +1240,29 @@ class RDoc::Comment # -- # TODO deep copy @document # - # source://rdoc//lib/rdoc/comment.rb#70 + # source://rdoc/lib/rdoc/comment.rb#70 def initialize_copy(copy); end end # A constant # -# source://rdoc//lib/rdoc/constant.rb#5 +# source://rdoc/lib/rdoc/code_object/constant.rb#5 class RDoc::Constant < ::RDoc::CodeObject # Creates a new constant with +name+, +value+ and +comment+ # # @return [Constant] a new instance of Constant # - # source://rdoc//lib/rdoc/constant.rb#32 + # source://rdoc/lib/rdoc/code_object/constant.rb#32 def initialize(name, value, comment); end # Constants are ordered by name # - # source://rdoc//lib/rdoc/constant.rb#47 + # source://rdoc/lib/rdoc/code_object/constant.rb#47 def <=>(other); end # Constants are equal when their #parent and #name is the same # - # source://rdoc//lib/rdoc/constant.rb#56 + # source://rdoc/lib/rdoc/code_object/constant.rb#56 def ==(other); end # A constant is documented if it has a comment, or is an alias @@ -1240,30 +1270,30 @@ class RDoc::Constant < ::RDoc::CodeObject # # @return [Boolean] # - # source://rdoc//lib/rdoc/constant.rb#66 + # source://rdoc/lib/rdoc/code_object/constant.rb#66 def documented?; end # Full constant name including namespace # - # source://rdoc//lib/rdoc/constant.rb#81 + # source://rdoc/lib/rdoc/code_object/constant.rb#81 def full_name; end - # source://rdoc//lib/rdoc/constant.rb#99 + # source://rdoc/lib/rdoc/code_object/constant.rb#99 def inspect; end # The module or class this constant is an alias for # - # source://rdoc//lib/rdoc/constant.rb#88 + # source://rdoc/lib/rdoc/code_object/constant.rb#88 def is_alias_for; end # Sets the module or class this is constant is an alias for. # - # source://rdoc//lib/rdoc/constant.rb#12 + # source://rdoc/lib/rdoc/code_object/constant.rb#12 def is_alias_for=(_arg0); end # Dumps this Constant for use by ri. See also #marshal_load # - # source://rdoc//lib/rdoc/constant.rb#109 + # source://rdoc/lib/rdoc/code_object/constant.rb#109 def marshal_dump; end # Loads this Constant from +array+. For a loaded Constant the following @@ -1272,53 +1302,53 @@ class RDoc::Constant < ::RDoc::CodeObject # * #full_name # * #parent_name # - # source://rdoc//lib/rdoc/constant.rb#135 + # source://rdoc/lib/rdoc/code_object/constant.rb#135 def marshal_load(array); end # The constant's name # - # source://rdoc//lib/rdoc/constant.rb#17 + # source://rdoc/lib/rdoc/code_object/constant.rb#17 def name; end # The constant's name # - # source://rdoc//lib/rdoc/constant.rb#17 + # source://rdoc/lib/rdoc/code_object/constant.rb#17 def name=(_arg0); end # Path to this constant for use with HTML generator output. # - # source://rdoc//lib/rdoc/constant.rb#153 + # source://rdoc/lib/rdoc/code_object/constant.rb#153 def path; end - # source://rdoc//lib/rdoc/constant.rb#157 + # source://rdoc/lib/rdoc/code_object/constant.rb#157 def pretty_print(q); end # Sets the store for this class or module and its contained code objects. # - # source://rdoc//lib/rdoc/constant.rb#171 + # source://rdoc/lib/rdoc/code_object/constant.rb#171 def store=(store); end - # source://rdoc//lib/rdoc/constant.rb#177 + # source://rdoc/lib/rdoc/code_object/constant.rb#177 def to_s; end # The constant's value # - # source://rdoc//lib/rdoc/constant.rb#22 + # source://rdoc/lib/rdoc/code_object/constant.rb#22 def value; end # The constant's value # - # source://rdoc//lib/rdoc/constant.rb#22 + # source://rdoc/lib/rdoc/code_object/constant.rb#22 def value=(_arg0); end # The constant's visibility # - # source://rdoc//lib/rdoc/constant.rb#27 + # source://rdoc/lib/rdoc/code_object/constant.rb#27 def visibility; end # The constant's visibility # - # source://rdoc//lib/rdoc/constant.rb#27 + # source://rdoc/lib/rdoc/code_object/constant.rb#27 def visibility=(_arg0); end end @@ -1326,7 +1356,7 @@ end # aliases, requires, and includes. Classes, modules, and files are all # Contexts. # -# source://rdoc//lib/rdoc/context.rb#7 +# source://rdoc/lib/rdoc/code_object/context.rb#7 class RDoc::Context < ::RDoc::CodeObject include ::Comparable @@ -1334,12 +1364,12 @@ class RDoc::Context < ::RDoc::CodeObject # # @return [Context] a new instance of Context # - # source://rdoc//lib/rdoc/context.rb#123 + # source://rdoc/lib/rdoc/code_object/context.rb#123 def initialize; end # Contexts are sorted by full_name # - # source://rdoc//lib/rdoc/context.rb#171 + # source://rdoc/lib/rdoc/code_object/context.rb#171 def <=>(other); end # Adds an item of type +klass+ with the given +name+ and +comment+ to the @@ -1347,12 +1377,12 @@ class RDoc::Context < ::RDoc::CodeObject # # Currently only RDoc::Extend and RDoc::Include are supported. # - # source://rdoc//lib/rdoc/context.rb#183 + # source://rdoc/lib/rdoc/code_object/context.rb#183 def add(klass, name, comment); end # Adds +an_alias+ that is automatically resolved # - # source://rdoc//lib/rdoc/context.rb#198 + # source://rdoc/lib/rdoc/code_object/context.rb#198 def add_alias(an_alias); end # Adds +attribute+ if not already there. If it is (as method(s) or attribute), @@ -1363,7 +1393,7 @@ class RDoc::Context < ::RDoc::CodeObject # if method +foo+ exists, but attr_accessor :foo will be registered # if method +foo+ exists, but foo= does not. # - # source://rdoc//lib/rdoc/context.rb#225 + # source://rdoc/lib/rdoc/code_object/context.rb#225 def add_attribute(attribute); end # Adds a class named +given_name+ with +superclass+. @@ -1380,7 +1410,7 @@ class RDoc::Context < ::RDoc::CodeObject # unless it later sees class Container. +add_class+ automatically # upgrades +given_name+ to a class in this case. # - # source://rdoc//lib/rdoc/context.rb#288 + # source://rdoc/lib/rdoc/code_object/context.rb#288 def add_class(class_type, given_name, superclass = T.unsafe(nil)); end # Adds the class or module +mod+ to the modules or @@ -1389,51 +1419,51 @@ class RDoc::Context < ::RDoc::CodeObject # unless #done_documenting is +true+. Sets the #parent of +mod+ # to +self+, and its #section to #current_section. Returns +mod+. # - # source://rdoc//lib/rdoc/context.rb#404 + # source://rdoc/lib/rdoc/code_object/context.rb#404 def add_class_or_module(mod, self_hash, all_hash); end # Adds +constant+ if not already there. If it is, updates the comment, # value and/or is_alias_for of the known constant if they were empty/nil. # - # source://rdoc//lib/rdoc/context.rb#429 + # source://rdoc/lib/rdoc/code_object/context.rb#429 def add_constant(constant); end # Adds extension module +ext+ which should be an RDoc::Extend # - # source://rdoc//lib/rdoc/context.rb#463 + # source://rdoc/lib/rdoc/code_object/context.rb#463 def add_extend(ext); end # Adds included module +include+ which should be an RDoc::Include # - # source://rdoc//lib/rdoc/context.rb#454 + # source://rdoc/lib/rdoc/code_object/context.rb#454 def add_include(include); end # Adds +method+ if not already there. If it is (as method or attribute), # updates the comment if it was empty. # - # source://rdoc//lib/rdoc/context.rb#473 + # source://rdoc/lib/rdoc/code_object/context.rb#473 def add_method(method); end # Adds a module named +name+. If RDoc already knows +name+ is a class then # that class is returned instead. See also #add_class. # - # source://rdoc//lib/rdoc/context.rb#506 + # source://rdoc/lib/rdoc/code_object/context.rb#506 def add_module(class_type, name); end # Adds an alias from +from+ (a class or module) to +name+ which was defined # in +file+. # - # source://rdoc//lib/rdoc/context.rb#527 + # source://rdoc/lib/rdoc/code_object/context.rb#527 def add_module_alias(from, from_name, to, file); end # Adds a module by +RDoc::NormalModule+ instance. See also #add_module. # - # source://rdoc//lib/rdoc/context.rb#519 + # source://rdoc/lib/rdoc/code_object/context.rb#519 def add_module_by_normal_module(mod); end # Adds +require+ to this context's top level # - # source://rdoc//lib/rdoc/context.rb#568 + # source://rdoc/lib/rdoc/code_object/context.rb#568 def add_require(require); end # Returns a section with +title+, creating it if it doesn't already exist. @@ -1443,17 +1473,17 @@ class RDoc::Context < ::RDoc::CodeObject # # See also RDoc::Context::Section # - # source://rdoc//lib/rdoc/context.rb#586 + # source://rdoc/lib/rdoc/code_object/context.rb#586 def add_section(title, comment = T.unsafe(nil)); end # Adds +thing+ to the collection +array+ # - # source://rdoc//lib/rdoc/context.rb#600 + # source://rdoc/lib/rdoc/code_object/context.rb#600 def add_to(array, thing); end # Class/module aliases # - # source://rdoc//lib/rdoc/context.rb#25 + # source://rdoc/lib/rdoc/code_object/context.rb#25 def aliases; end # Is there any content? @@ -1463,88 +1493,88 @@ class RDoc::Context < ::RDoc::CodeObject # # Includes and extends are also checked unless includes == false. # - # source://rdoc//lib/rdoc/context.rb#616 + # source://rdoc/lib/rdoc/code_object/context.rb#616 def any_content(includes = T.unsafe(nil)); end # All attr* methods # - # source://rdoc//lib/rdoc/context.rb#30 + # source://rdoc/lib/rdoc/code_object/context.rb#30 def attributes; end # Block params to be used in the next MethodAttr parsed under this context # - # source://rdoc//lib/rdoc/context.rb#35 + # source://rdoc/lib/rdoc/code_object/context.rb#35 def block_params; end # Block params to be used in the next MethodAttr parsed under this context # - # source://rdoc//lib/rdoc/context.rb#35 + # source://rdoc/lib/rdoc/code_object/context.rb#35 def block_params=(_arg0); end # Creates the full name for a child with +name+ # - # source://rdoc//lib/rdoc/context.rb#632 + # source://rdoc/lib/rdoc/code_object/context.rb#632 def child_name(name); end # Class attributes # - # source://rdoc//lib/rdoc/context.rb#645 + # source://rdoc/lib/rdoc/code_object/context.rb#645 def class_attributes; end # Class methods # - # source://rdoc//lib/rdoc/context.rb#652 + # source://rdoc/lib/rdoc/code_object/context.rb#652 def class_method_list; end # Array of classes in this context # - # source://rdoc//lib/rdoc/context.rb#659 + # source://rdoc/lib/rdoc/code_object/context.rb#659 def classes; end # All classes and modules in this namespace # - # source://rdoc//lib/rdoc/context.rb#666 + # source://rdoc/lib/rdoc/code_object/context.rb#666 def classes_and_modules; end # Hash of classes keyed by class name # - # source://rdoc//lib/rdoc/context.rb#673 + # source://rdoc/lib/rdoc/code_object/context.rb#673 def classes_hash; end # Constants defined # - # source://rdoc//lib/rdoc/context.rb#40 + # source://rdoc/lib/rdoc/code_object/context.rb#40 def constants; end # Hash of registered constants. # - # source://rdoc//lib/rdoc/context.rb#118 + # source://rdoc/lib/rdoc/code_object/context.rb#118 def constants_hash; end # Current visibility of this line # - # source://rdoc//lib/rdoc/context.rb#102 + # source://rdoc/lib/rdoc/code_object/context.rb#102 def current_line_visibility=(_arg0); end # The current documentation section that new items will be added to. If # temporary_section is available it will be used. # - # source://rdoc//lib/rdoc/context.rb#681 + # source://rdoc/lib/rdoc/code_object/context.rb#681 def current_section; end # Sets the current documentation section of documentation # - # source://rdoc//lib/rdoc/context.rb#45 + # source://rdoc/lib/rdoc/code_object/context.rb#45 def current_section=(_arg0); end # Is part of this thing was defined in +file+? # # @return [Boolean] # - # source://rdoc//lib/rdoc/context.rb#694 + # source://rdoc/lib/rdoc/code_object/context.rb#694 def defined_in?(file); end - # source://rdoc//lib/rdoc/context.rb#698 + # source://rdoc/lib/rdoc/code_object/context.rb#698 def display(method_attr); end # Iterator for ancestors for duck-typing. Does nothing. See @@ -1553,37 +1583,37 @@ class RDoc::Context < ::RDoc::CodeObject # This method exists to make it easy to work with Context subclasses that # aren't part of RDoc. # - # source://rdoc//lib/rdoc/context.rb#713 + # source://rdoc/lib/rdoc/code_object/context.rb#713 def each_ancestor(&_); end # Iterator for attributes # - # source://rdoc//lib/rdoc/context.rb#719 + # source://rdoc/lib/rdoc/code_object/context.rb#719 def each_attribute; end # Iterator for classes and modules # - # source://rdoc//lib/rdoc/context.rb#726 + # source://rdoc/lib/rdoc/code_object/context.rb#726 def each_classmodule(&block); end # Iterator for constants # - # source://rdoc//lib/rdoc/context.rb#733 + # source://rdoc/lib/rdoc/code_object/context.rb#733 def each_constant; end # Iterator for extension modules # - # source://rdoc//lib/rdoc/context.rb#747 + # source://rdoc/lib/rdoc/code_object/context.rb#747 def each_extend; end # Iterator for included modules # - # source://rdoc//lib/rdoc/context.rb#740 + # source://rdoc/lib/rdoc/code_object/context.rb#740 def each_include; end # Iterator for methods # - # source://rdoc//lib/rdoc/context.rb#754 + # source://rdoc/lib/rdoc/code_object/context.rb#754 def each_method; end # Iterator for each section's contents sorted by title. The +section+, the @@ -1595,98 +1625,98 @@ class RDoc::Context < ::RDoc::CodeObject # # NOTE: Do not edit collections yielded by this method # - # source://rdoc//lib/rdoc/context.rb#770 + # source://rdoc/lib/rdoc/code_object/context.rb#770 def each_section; end # Modules this context is extended with # - # source://rdoc//lib/rdoc/context.rb#60 + # source://rdoc/lib/rdoc/code_object/context.rb#60 def extends; end # Aliases that could not be resolved. # - # source://rdoc//lib/rdoc/context.rb#92 + # source://rdoc/lib/rdoc/code_object/context.rb#92 def external_aliases; end # Finds an attribute +name+ with singleton value +singleton+. # - # source://rdoc//lib/rdoc/context.rb#787 + # source://rdoc/lib/rdoc/code_object/context.rb#787 def find_attribute(name, singleton); end # Finds an attribute with +name+ in this context # - # source://rdoc//lib/rdoc/context.rb#795 + # source://rdoc/lib/rdoc/code_object/context.rb#795 def find_attribute_named(name); end # Finds a class method with +name+ in this context # - # source://rdoc//lib/rdoc/context.rb#809 + # source://rdoc/lib/rdoc/code_object/context.rb#809 def find_class_method_named(name); end # Finds a constant with +name+ in this context # - # source://rdoc//lib/rdoc/context.rb#816 + # source://rdoc/lib/rdoc/code_object/context.rb#816 def find_constant_named(name); end # Find a module at a higher scope # - # source://rdoc//lib/rdoc/context.rb#825 + # source://rdoc/lib/rdoc/code_object/context.rb#825 def find_enclosing_module_named(name); end # Finds an external alias +name+ with singleton value +singleton+. # - # source://rdoc//lib/rdoc/context.rb#832 + # source://rdoc/lib/rdoc/code_object/context.rb#832 def find_external_alias(name, singleton); end # Finds an external alias with +name+ in this context # - # source://rdoc//lib/rdoc/context.rb#839 + # source://rdoc/lib/rdoc/code_object/context.rb#839 def find_external_alias_named(name); end # Finds a file with +name+ in this context # - # source://rdoc//lib/rdoc/context.rb#853 + # source://rdoc/lib/rdoc/code_object/context.rb#853 def find_file_named(name); end # Finds an instance method with +name+ in this context # - # source://rdoc//lib/rdoc/context.rb#860 + # source://rdoc/lib/rdoc/code_object/context.rb#860 def find_instance_method_named(name); end # Finds a method, constant, attribute, external alias, module or file # named +symbol+ in this context. # - # source://rdoc//lib/rdoc/context.rb#868 + # source://rdoc/lib/rdoc/code_object/context.rb#868 def find_local_symbol(symbol); end # Finds a method named +name+ with singleton value +singleton+. # - # source://rdoc//lib/rdoc/context.rb#880 + # source://rdoc/lib/rdoc/code_object/context.rb#880 def find_method(name, singleton); end # Finds a instance or module method with +name+ in this context # - # source://rdoc//lib/rdoc/context.rb#893 + # source://rdoc/lib/rdoc/code_object/context.rb#893 def find_method_named(name); end # Find a module with +name+ using ruby's scoping rules # - # source://rdoc//lib/rdoc/context.rb#907 + # source://rdoc/lib/rdoc/code_object/context.rb#907 def find_module_named(name); end # Look up +symbol+, first as a module, then as a local symbol. # - # source://rdoc//lib/rdoc/context.rb#917 + # source://rdoc/lib/rdoc/code_object/context.rb#917 def find_symbol(symbol); end # Look up a module named +symbol+. # - # source://rdoc//lib/rdoc/context.rb#924 + # source://rdoc/lib/rdoc/code_object/context.rb#924 def find_symbol_module(symbol); end # The full name for this context. This method is overridden by subclasses. # - # source://rdoc//lib/rdoc/context.rb#957 + # source://rdoc/lib/rdoc/code_object/context.rb#957 def full_name; end # Does this context and its methods and constants all have documentation? @@ -1695,49 +1725,49 @@ class RDoc::Context < ::RDoc::CodeObject # # @return [Boolean] # - # source://rdoc//lib/rdoc/context.rb#966 + # source://rdoc/lib/rdoc/code_object/context.rb#966 def fully_documented?; end # URL for this with a +prefix+ # - # source://rdoc//lib/rdoc/context.rb#976 + # source://rdoc/lib/rdoc/code_object/context.rb#976 def http_url(prefix); end # Files this context is found in # - # source://rdoc//lib/rdoc/context.rb#50 + # source://rdoc/lib/rdoc/code_object/context.rb#50 def in_files; end # Modules this context includes # - # source://rdoc//lib/rdoc/context.rb#55 + # source://rdoc/lib/rdoc/code_object/context.rb#55 def includes; end # Sets the defaults for methods and so-forth # - # source://rdoc//lib/rdoc/context.rb#145 + # source://rdoc/lib/rdoc/code_object/context.rb#145 def initialize_methods_etc; end # Instance attributes # - # source://rdoc//lib/rdoc/context.rb#987 + # source://rdoc/lib/rdoc/code_object/context.rb#987 def instance_attributes; end # Instance methods # -- # TODO remove this later # - # source://rdoc//lib/rdoc/context.rb#1003 + # source://rdoc/lib/rdoc/code_object/context.rb#1003 def instance_method_list; end # Instance methods # - # source://rdoc//lib/rdoc/context.rb#994 + # source://rdoc/lib/rdoc/code_object/context.rb#994 def instance_methods; end # Methods defined in this context # - # source://rdoc//lib/rdoc/context.rb#65 + # source://rdoc/lib/rdoc/code_object/context.rb#65 def method_list; end # Breaks method_list into a nested hash by type ('class' or @@ -1746,59 +1776,59 @@ class RDoc::Context < ::RDoc::CodeObject # If +section+ is provided only methods in that RDoc::Context::Section will # be returned. # - # source://rdoc//lib/rdoc/context.rb#1015 + # source://rdoc/lib/rdoc/code_object/context.rb#1015 def methods_by_type(section = T.unsafe(nil)); end # Hash of registered methods. Attributes are also registered here, # twice if they are RW. # - # source://rdoc//lib/rdoc/context.rb#108 + # source://rdoc/lib/rdoc/code_object/context.rb#108 def methods_hash; end # Yields AnyMethod and Attr entries matching the list of names in +methods+. # - # source://rdoc//lib/rdoc/context.rb#1038 + # source://rdoc/lib/rdoc/code_object/context.rb#1038 def methods_matching(methods, singleton = T.unsafe(nil), &block); end # Array of modules in this context # - # source://rdoc//lib/rdoc/context.rb#1051 + # source://rdoc/lib/rdoc/code_object/context.rb#1051 def modules; end # Hash of modules keyed by module name # - # source://rdoc//lib/rdoc/context.rb#1058 + # source://rdoc/lib/rdoc/code_object/context.rb#1058 def modules_hash; end # Name of this class excluding namespace. See also full_name # - # source://rdoc//lib/rdoc/context.rb#70 + # source://rdoc/lib/rdoc/code_object/context.rb#70 def name; end # Name to use to generate the url. # #full_name by default. # - # source://rdoc//lib/rdoc/context.rb#1066 + # source://rdoc/lib/rdoc/code_object/context.rb#1066 def name_for_path; end # Changes the visibility for new methods to +visibility+ # - # source://rdoc//lib/rdoc/context.rb#1073 + # source://rdoc/lib/rdoc/code_object/context.rb#1073 def ongoing_visibility=(visibility); end # Params to be used in the next MethodAttr parsed under this context # - # source://rdoc//lib/rdoc/context.rb#113 + # source://rdoc/lib/rdoc/code_object/context.rb#113 def params; end # Params to be used in the next MethodAttr parsed under this context # - # source://rdoc//lib/rdoc/context.rb#113 + # source://rdoc/lib/rdoc/code_object/context.rb#113 def params=(_arg0); end # Record +top_level+ as a file +self+ is in. # - # source://rdoc//lib/rdoc/context.rb#1080 + # source://rdoc/lib/rdoc/code_object/context.rb#1080 def record_location(top_level); end # Should we remove this context from the documentation? @@ -1812,80 +1842,80 @@ class RDoc::Context < ::RDoc::CodeObject # # @return [Boolean] # - # source://rdoc//lib/rdoc/context.rb#1094 + # source://rdoc/lib/rdoc/code_object/context.rb#1094 def remove_from_documentation?; end # Removes methods and attributes with a visibility less than +min_visibility+. # -- # TODO mark the visibility of attributes in the template (if not public?) # - # source://rdoc//lib/rdoc/context.rb#1107 + # source://rdoc/lib/rdoc/code_object/context.rb#1107 def remove_invisible(min_visibility); end # Only called when min_visibility == :public or :private # - # source://rdoc//lib/rdoc/context.rb#1117 + # source://rdoc/lib/rdoc/code_object/context.rb#1117 def remove_invisible_in(array, min_visibility); end # Files this context requires # - # source://rdoc//lib/rdoc/context.rb#75 + # source://rdoc/lib/rdoc/code_object/context.rb#75 def requires; end # Tries to resolve unmatched aliases when a method or attribute has just # been added. # - # source://rdoc//lib/rdoc/context.rb#1133 + # source://rdoc/lib/rdoc/code_object/context.rb#1133 def resolve_aliases(added); end # Returns RDoc::Context::Section objects referenced in this context for use # in a table of contents. # - # source://rdoc//lib/rdoc/context.rb#1149 + # source://rdoc/lib/rdoc/code_object/context.rb#1149 def section_contents; end # Sections in this context # - # source://rdoc//lib/rdoc/context.rb#1173 + # source://rdoc/lib/rdoc/code_object/context.rb#1173 def sections; end - # source://rdoc//lib/rdoc/context.rb#1177 + # source://rdoc/lib/rdoc/code_object/context.rb#1177 def sections_hash; end # Given an array +names+ of constants, set the visibility of each constant to # +visibility+ # - # source://rdoc//lib/rdoc/context.rb#1202 + # source://rdoc/lib/rdoc/code_object/context.rb#1202 def set_constant_visibility_for(names, visibility); end # Sets the current section to a section with +title+. See also #add_section # - # source://rdoc//lib/rdoc/context.rb#1184 + # source://rdoc/lib/rdoc/code_object/context.rb#1184 def set_current_section(title, comment); end # Given an array +methods+ of method names, set the visibility of each to # +visibility+ # - # source://rdoc//lib/rdoc/context.rb#1192 + # source://rdoc/lib/rdoc/code_object/context.rb#1192 def set_visibility_for(methods, visibility, singleton = T.unsafe(nil)); end # Sorts sections alphabetically (default) or in TomDoc fashion (none, # Public, Internal, Deprecated) # - # source://rdoc//lib/rdoc/context.rb#1213 + # source://rdoc/lib/rdoc/code_object/context.rb#1213 def sort_sections; end # Use this section for the next method, attribute or constant added. # - # source://rdoc//lib/rdoc/context.rb#80 + # source://rdoc/lib/rdoc/code_object/context.rb#80 def temporary_section; end # Use this section for the next method, attribute or constant added. # - # source://rdoc//lib/rdoc/context.rb#80 + # source://rdoc/lib/rdoc/code_object/context.rb#80 def temporary_section=(_arg0); end - # source://rdoc//lib/rdoc/context.rb#1229 + # source://rdoc/lib/rdoc/code_object/context.rb#1229 def to_s; end # Return the TopLevel that owns us @@ -1893,36 +1923,36 @@ class RDoc::Context < ::RDoc::CodeObject # FIXME we can be 'owned' by several TopLevel (see #record_location & # #in_files) # - # source://rdoc//lib/rdoc/context.rb#1239 + # source://rdoc/lib/rdoc/code_object/context.rb#1239 def top_level; end # Hash old_name => [aliases], for aliases # that haven't (yet) been resolved to a method/attribute. # (Not to be confused with the aliases of the context.) # - # source://rdoc//lib/rdoc/context.rb#87 + # source://rdoc/lib/rdoc/code_object/context.rb#87 def unmatched_alias_lists; end # Hash old_name => [aliases], for aliases # that haven't (yet) been resolved to a method/attribute. # (Not to be confused with the aliases of the context.) # - # source://rdoc//lib/rdoc/context.rb#87 + # source://rdoc/lib/rdoc/code_object/context.rb#87 def unmatched_alias_lists=(_arg0); end # Upgrades NormalModule +mod+ in +enclosing+ to a +class_type+ # - # source://rdoc//lib/rdoc/context.rb#1249 + # source://rdoc/lib/rdoc/code_object/context.rb#1249 def upgrade_to_class(mod, class_type, enclosing); end # Current visibility of this context # - # source://rdoc//lib/rdoc/context.rb#97 + # source://rdoc/lib/rdoc/code_object/context.rb#97 def visibility; end # Current visibility of this context # - # source://rdoc//lib/rdoc/context.rb#97 + # source://rdoc/lib/rdoc/code_object/context.rb#97 def visibility=(_arg0); end end @@ -1934,7 +1964,7 @@ end # Sections can be referenced multiple times and will be collapsed into a # single section. # -# source://rdoc//lib/rdoc/context/section.rb#13 +# source://rdoc/lib/rdoc/code_object/context/section.rb#13 class RDoc::Context::Section include ::RDoc::Text include ::RDoc::Generator::Markup @@ -1943,37 +1973,37 @@ class RDoc::Context::Section # # @return [Section] a new instance of Section # - # source://rdoc//lib/rdoc/context/section.rb#42 + # source://rdoc/lib/rdoc/code_object/context/section.rb#42 def initialize(parent, title, comment); end # Sections are equal when they have the same #title # - # source://rdoc//lib/rdoc/context/section.rb#54 + # source://rdoc/lib/rdoc/code_object/context/section.rb#54 def ==(other); end # Adds +comment+ to this section # - # source://rdoc//lib/rdoc/context/section.rb#63 + # source://rdoc/lib/rdoc/code_object/context/section.rb#63 def add_comment(comment); end # Anchor reference for linking to this section # - # source://rdoc//lib/rdoc/context/section.rb#83 + # source://rdoc/lib/rdoc/code_object/context/section.rb#83 def aref; end # Section comment # - # source://rdoc//lib/rdoc/context/section.rb#22 + # source://rdoc/lib/rdoc/code_object/context/section.rb#22 def comment; end # Section comments # - # source://rdoc//lib/rdoc/context/section.rb#27 + # source://rdoc/lib/rdoc/code_object/context/section.rb#27 def comments; end # Sections are equal when they have the same #title # - # source://rdoc//lib/rdoc/context/section.rb#54 + # source://rdoc/lib/rdoc/code_object/context/section.rb#54 def eql?(other); end # Extracts the comment for this section from the original comment block. @@ -1984,71 +2014,71 @@ class RDoc::Context::Section # # :section: The title # # The body # - # source://rdoc//lib/rdoc/context/section.rb#98 + # source://rdoc/lib/rdoc/code_object/context/section.rb#98 def extract_comment(comment); end - # source://rdoc//lib/rdoc/context/section.rb#130 + # source://rdoc/lib/rdoc/code_object/context/section.rb#130 def hash; end # The files comments in this section come from # - # source://rdoc//lib/rdoc/context/section.rb#137 + # source://rdoc/lib/rdoc/code_object/context/section.rb#137 def in_files; end - # source://rdoc//lib/rdoc/context/section.rb#126 + # source://rdoc/lib/rdoc/code_object/context/section.rb#126 def inspect; end # Serializes this Section. The title and parsed comment are saved, but not # the section parent which must be restored manually. # - # source://rdoc//lib/rdoc/context/section.rb#158 + # source://rdoc/lib/rdoc/code_object/context/section.rb#158 def marshal_dump; end # De-serializes this Section. The section parent must be restored manually. # - # source://rdoc//lib/rdoc/context/section.rb#169 + # source://rdoc/lib/rdoc/code_object/context/section.rb#169 def marshal_load(array); end # Context this Section lives in # - # source://rdoc//lib/rdoc/context/section.rb#32 + # source://rdoc/lib/rdoc/code_object/context/section.rb#32 def parent; end # Parses +comment_location+ into an RDoc::Markup::Document composed of # multiple RDoc::Markup::Documents with their file set. # - # source://rdoc//lib/rdoc/context/section.rb#180 + # source://rdoc/lib/rdoc/code_object/context/section.rb#180 def parse; end # The section's title, or 'Top Section' if the title is nil. # # This is used by the table of contents template so the name is silly. # - # source://rdoc//lib/rdoc/context/section.rb#208 + # source://rdoc/lib/rdoc/code_object/context/section.rb#208 def plain_html; end # Removes a comment from this section if it is from the same file as # +comment+ # - # source://rdoc//lib/rdoc/context/section.rb#216 + # source://rdoc/lib/rdoc/code_object/context/section.rb#216 def remove_comment(comment); end # Section title # - # source://rdoc//lib/rdoc/context/section.rb#37 + # source://rdoc/lib/rdoc/code_object/context/section.rb#37 def title; end end # RDoc::CrossReference is a reusable way to create cross references for names. # -# source://rdoc//lib/rdoc/cross_reference.rb#8 +# source://rdoc/lib/rdoc/cross_reference.rb#8 class RDoc::CrossReference # Allows cross-references to be created based on the given +context+ # (RDoc::Context). # # @return [CrossReference] a new instance of CrossReference # - # source://rdoc//lib/rdoc/cross_reference.rb#127 + # source://rdoc/lib/rdoc/cross_reference.rb#127 def initialize(context); end # Returns a reference to +name+. @@ -2057,33 +2087,33 @@ class RDoc::CrossReference # returned. If +name+ is escaped +name+ is returned. If +name+ is not # found +text+ is returned. # - # source://rdoc//lib/rdoc/cross_reference.rb#190 + # source://rdoc/lib/rdoc/cross_reference.rb#190 def resolve(name, text); end # Returns a method reference to +name+. # - # source://rdoc//lib/rdoc/cross_reference.rb#137 + # source://rdoc/lib/rdoc/cross_reference.rb#137 def resolve_method(name); end # Hash of references that have been looked-up to their replacements # - # source://rdoc//lib/rdoc/cross_reference.rb#121 + # source://rdoc/lib/rdoc/cross_reference.rb#121 def seen; end # Hash of references that have been looked-up to their replacements # - # source://rdoc//lib/rdoc/cross_reference.rb#121 + # source://rdoc/lib/rdoc/cross_reference.rb#121 def seen=(_arg0); end end # Regular expression to match method arguments. # -# source://rdoc//lib/rdoc/cross_reference.rb#28 +# source://rdoc/lib/rdoc/cross_reference.rb#28 RDoc::CrossReference::METHOD_ARGS_REGEXP_STR = T.let(T.unsafe(nil), String) # Regular expression to match a single method argument. # -# source://rdoc//lib/rdoc/cross_reference.rb#23 +# source://rdoc/lib/rdoc/cross_reference.rb#23 RDoc::CrossReference::METHOD_ARG_REGEXP_STR = T.let(T.unsafe(nil), String) # A subclass of ERB that writes directly to an IO. Credit to Aaron Patterson @@ -2099,48 +2129,48 @@ RDoc::CrossReference::METHOD_ARG_REGEXP_STR = T.let(T.unsafe(nil), String) # # Note that binding must enclose the io you wish to output on. # -# source://rdoc//lib/rdoc/erbio.rb#18 +# source://rdoc/lib/rdoc/erbio.rb#18 class RDoc::ERBIO < ::ERB # Defaults +eoutvar+ to 'io', otherwise is identical to ERB's initialize # # @return [ERBIO] a new instance of ERBIO # - # source://rdoc//lib/rdoc/erbio.rb#23 + # source://rdoc/lib/rdoc/erbio.rb#23 def initialize(str, trim_mode: T.unsafe(nil), eoutvar: T.unsafe(nil)); end # Instructs +compiler+ how to write to +io_variable+ # - # source://rdoc//lib/rdoc/erbio.rb#30 + # source://rdoc/lib/rdoc/erbio.rb#30 def set_eoutvar(compiler, io_variable); end end # Allows an ERB template to be rendered in the context (binding) of an # existing ERB template evaluation. # -# source://rdoc//lib/rdoc/erb_partial.rb#6 +# source://rdoc/lib/rdoc/erb_partial.rb#6 class RDoc::ERBPartial < ::ERB # Overrides +compiler+ startup to set the +eoutvar+ to an empty string only # if it isn't already set. # - # source://rdoc//lib/rdoc/erb_partial.rb#12 + # source://rdoc/lib/rdoc/erb_partial.rb#12 def set_eoutvar(compiler, eoutvar = T.unsafe(nil)); end end # This class is a wrapper around File IO and Encoding that helps RDoc load # files and convert them to the correct encoding. # -# source://rdoc//lib/rdoc/encoding.rb#8 +# source://rdoc/lib/rdoc/encoding.rb#8 module RDoc::Encoding class << self # Changes encoding based on +encoding+ without converting and returns new # string # - # source://rdoc//lib/rdoc/encoding.rb#112 + # source://rdoc/lib/rdoc/encoding.rb#112 def change_encoding(text, encoding); end # Detects the encoding of +string+ based on the magic comment # - # source://rdoc//lib/rdoc/encoding.rb#92 + # source://rdoc/lib/rdoc/encoding.rb#92 def detect_encoding(string); end # Reads the contents of +filename+ and handles any encoding directives in @@ -2152,20 +2182,20 @@ module RDoc::Encoding # If +force_transcode+ is true the document will be transcoded and any # unknown character in the target encoding will be replaced with '?' # - # source://rdoc//lib/rdoc/encoding.rb#32 + # source://rdoc/lib/rdoc/encoding.rb#32 def read_file(filename, encoding, force_transcode = T.unsafe(nil)); end # Removes magic comments and shebang # - # source://rdoc//lib/rdoc/encoding.rb#102 + # source://rdoc/lib/rdoc/encoding.rb#102 def remove_magic_comment(string); end end end -# source://rdoc//lib/rdoc/encoding.rb#10 +# source://rdoc/lib/rdoc/encoding.rb#10 RDoc::Encoding::HEADER_REGEXP = T.let(T.unsafe(nil), Regexp) -# source://rdoc//lib/rdoc/generator/darkfish.rb#55 +# source://rdoc/lib/rdoc/generator/darkfish.rb#55 class RDoc::Generator::Darkfish include ::ERB::Escape include ::ERB::Util @@ -2176,7 +2206,7 @@ class RDoc::Generator::Darkfish # # @return [Darkfish] a new instance of Darkfish # - # source://rdoc//lib/rdoc/generator/darkfish.rb#159 + # source://rdoc/lib/rdoc/generator/darkfish.rb#159 def initialize(store, options); end # Creates a template from its components and the +body_file+. @@ -2184,174 +2214,182 @@ class RDoc::Generator::Darkfish # For backwards compatibility, if +body_file+ contains "--op from the # options for a full path. # - # source://rdoc//lib/rdoc/generator/darkfish.rb#102 + # source://rdoc/lib/rdoc/generator/darkfish.rb#102 def base_dir; end # Directory where generated class HTML files live relative to the output # dir. # - # source://rdoc//lib/rdoc/generator/darkfish.rb#191 + # source://rdoc/lib/rdoc/generator/darkfish.rb#191 def class_dir; end # Classes and modules to be used by this generator, not necessarily # displayed. See also #modsort # - # source://rdoc//lib/rdoc/generator/darkfish.rb#108 + # source://rdoc/lib/rdoc/generator/darkfish.rb#108 def classes; end # Copies static files from the static_path into the output directory # - # source://rdoc//lib/rdoc/generator/darkfish.rb#265 + # source://rdoc/lib/rdoc/generator/darkfish.rb#265 def copy_static; end # Output progress information if debugging is enabled # - # source://rdoc//lib/rdoc/generator/darkfish.rb#182 + # source://rdoc/lib/rdoc/generator/darkfish.rb#182 def debug_msg(*msg); end # No files will be written when dry_run is true. # - # source://rdoc//lib/rdoc/generator/darkfish.rb#113 + # source://rdoc/lib/rdoc/generator/darkfish.rb#113 def dry_run; end # No files will be written when dry_run is true. # - # source://rdoc//lib/rdoc/generator/darkfish.rb#113 + # source://rdoc/lib/rdoc/generator/darkfish.rb#113 def dry_run=(_arg0); end + # Returns an excerpt of the content for usage in meta description tags + # + # source://rdoc/lib/rdoc/generator/darkfish.rb#784 + def excerpt(content); end + # Directory where generated class HTML files live relative to the output # dir. # - # source://rdoc//lib/rdoc/generator/darkfish.rb#199 + # source://rdoc/lib/rdoc/generator/darkfish.rb#199 def file_dir; end # When false the generate methods return a String instead of writing to a # file. The default is true. # - # source://rdoc//lib/rdoc/generator/darkfish.rb#119 + # source://rdoc/lib/rdoc/generator/darkfish.rb#119 def file_output; end # When false the generate methods return a String instead of writing to a # file. The default is true. # - # source://rdoc//lib/rdoc/generator/darkfish.rb#119 + # source://rdoc/lib/rdoc/generator/darkfish.rb#119 def file_output=(_arg0); end # Files to be displayed by this generator # - # source://rdoc//lib/rdoc/generator/darkfish.rb#124 + # source://rdoc/lib/rdoc/generator/darkfish.rb#124 def files; end # Create the directories the generated docs will live in if they don't # already exist. # - # source://rdoc//lib/rdoc/generator/darkfish.rb#207 + # source://rdoc/lib/rdoc/generator/darkfish.rb#207 def gen_sub_directories; end # Build the initial indices and output objects based on an array of TopLevel # objects containing the extracted information. # - # source://rdoc//lib/rdoc/generator/darkfish.rb#241 + # source://rdoc/lib/rdoc/generator/darkfish.rb#241 def generate; end + # source://rdoc/lib/rdoc/generator/darkfish.rb#811 + def generate_ancestor_list(ancestors, klass); end + # Generates a class file for +klass+ # - # source://rdoc//lib/rdoc/generator/darkfish.rb#337 + # source://rdoc/lib/rdoc/generator/darkfish.rb#337 def generate_class(klass, template_file = T.unsafe(nil)); end # Generate a documentation file for each class and module # - # source://rdoc//lib/rdoc/generator/darkfish.rb#368 + # source://rdoc/lib/rdoc/generator/darkfish.rb#368 def generate_class_files; end # Generate a documentation file for each file # - # source://rdoc//lib/rdoc/generator/darkfish.rb#395 + # source://rdoc/lib/rdoc/generator/darkfish.rb#395 def generate_file_files; end # Generate an index page which lists all the classes which are documented. # - # source://rdoc//lib/rdoc/generator/darkfish.rb#303 + # source://rdoc/lib/rdoc/generator/darkfish.rb#303 def generate_index; end # Generate a page file for +file+ # - # source://rdoc//lib/rdoc/generator/darkfish.rb#464 + # source://rdoc/lib/rdoc/generator/darkfish.rb#464 def generate_page(file); end # Generates the 404 page for the RDoc servlet # - # source://rdoc//lib/rdoc/generator/darkfish.rb#493 + # source://rdoc/lib/rdoc/generator/darkfish.rb#493 def generate_servlet_not_found(message); end # Generates the servlet root page for the RDoc servlet # - # source://rdoc//lib/rdoc/generator/darkfish.rb#526 + # source://rdoc/lib/rdoc/generator/darkfish.rb#526 def generate_servlet_root(installed); end # Generate an index page which lists all the classes which are documented. # - # source://rdoc//lib/rdoc/generator/darkfish.rb#553 + # source://rdoc/lib/rdoc/generator/darkfish.rb#553 def generate_table_of_contents; end # Return a list of the documented modules sorted by salience first, then # by name. # - # source://rdoc//lib/rdoc/generator/darkfish.rb#294 + # source://rdoc/lib/rdoc/generator/darkfish.rb#294 def get_sorted_module_list(classes); end # Try to extract Subversion information out of the first constant whose # value looks like a subversion Id tag. If no matching constant is found, # and empty hash is returned. # - # source://rdoc//lib/rdoc/generator/darkfish.rb#652 + # source://rdoc/lib/rdoc/generator/darkfish.rb#652 def get_svninfo(klass); end - # source://rdoc//lib/rdoc/generator/darkfish.rb#584 + # source://rdoc/lib/rdoc/generator/darkfish.rb#584 def install_rdoc_static_file(source, destination, options); end # The JSON index generator for this Darkfish generator # - # source://rdoc//lib/rdoc/generator/darkfish.rb#129 + # source://rdoc/lib/rdoc/generator/darkfish.rb#129 def json_index; end # Methods to be displayed by this generator # - # source://rdoc//lib/rdoc/generator/darkfish.rb#134 + # source://rdoc/lib/rdoc/generator/darkfish.rb#134 def methods; end # Sorted list of classes and modules to be displayed by this generator # - # source://rdoc//lib/rdoc/generator/darkfish.rb#139 + # source://rdoc/lib/rdoc/generator/darkfish.rb#139 def modsort; end # The output directory # - # source://rdoc//lib/rdoc/generator/darkfish.rb#154 + # source://rdoc/lib/rdoc/generator/darkfish.rb#154 def outputdir; end # Renders the ERb contained in +file_name+ relative to the template # directory and returns the result based on the current context. # - # source://rdoc//lib/rdoc/generator/darkfish.rb#699 + # source://rdoc/lib/rdoc/generator/darkfish.rb#696 def render(file_name); end # Load and render the erb template in the given +template_file+ and write @@ -2361,49 +2399,49 @@ class RDoc::Generator::Darkfish # # An io will be yielded which must be captured by binding in the caller. # - # source://rdoc//lib/rdoc/generator/darkfish.rb#717 + # source://rdoc/lib/rdoc/generator/darkfish.rb#714 def render_template(template_file, out_file = T.unsafe(nil)); end # Prepares for generation of output from the current directory # - # source://rdoc//lib/rdoc/generator/darkfish.rb#604 + # source://rdoc/lib/rdoc/generator/darkfish.rb#604 def setup; end # The RDoc::Store that is the source of the generated content # - # source://rdoc//lib/rdoc/generator/darkfish.rb#144 + # source://rdoc/lib/rdoc/generator/darkfish.rb#144 def store; end # The directory where the template files live # - # source://rdoc//lib/rdoc/generator/darkfish.rb#149 + # source://rdoc/lib/rdoc/generator/darkfish.rb#149 def template_dir; end # Retrieves a cache template for +file+, if present, or fills the cache. # - # source://rdoc//lib/rdoc/generator/darkfish.rb#764 + # source://rdoc/lib/rdoc/generator/darkfish.rb#761 def template_for(file, page = T.unsafe(nil), klass = T.unsafe(nil)); end # Creates the result for +template+ with +context+. If an error is raised a # Pathname +template_file+ will indicate the file where the error occurred. # - # source://rdoc//lib/rdoc/generator/darkfish.rb#751 + # source://rdoc/lib/rdoc/generator/darkfish.rb#748 def template_result(template, context, template_file); end # Return a string describing the amount of time in the given number of # seconds in terms a human can understand easily. # - # source://rdoc//lib/rdoc/generator/darkfish.rb#621 + # source://rdoc/lib/rdoc/generator/darkfish.rb#621 def time_delta_string(seconds); end # Copy over the stylesheet into the appropriate place in the output # directory. # - # source://rdoc//lib/rdoc/generator/darkfish.rb#215 + # source://rdoc/lib/rdoc/generator/darkfish.rb#215 def write_style_sheet; end end -# source://rdoc//lib/rdoc/generator/json_index.rb#77 +# source://rdoc/lib/rdoc/generator/json_index.rb#77 class RDoc::Generator::JsonIndex include ::RDoc::Text @@ -2414,63 +2452,63 @@ class RDoc::Generator::JsonIndex # # @return [JsonIndex] a new instance of JsonIndex # - # source://rdoc//lib/rdoc/generator/json_index.rb#94 + # source://rdoc/lib/rdoc/generator/json_index.rb#94 def initialize(parent_generator, options); end # Builds the JSON index as a Hash. # - # source://rdoc//lib/rdoc/generator/json_index.rb#110 + # source://rdoc/lib/rdoc/generator/json_index.rb#110 def build_index; end # The directory classes are written to # - # source://rdoc//lib/rdoc/generator/json_index.rb#271 + # source://rdoc/lib/rdoc/generator/json_index.rb#271 def class_dir; end # Output progress information if debugging is enabled # - # source://rdoc//lib/rdoc/generator/json_index.rb#123 + # source://rdoc/lib/rdoc/generator/json_index.rb#123 def debug_msg(*msg); end # The directory files are written to # - # source://rdoc//lib/rdoc/generator/json_index.rb#278 + # source://rdoc/lib/rdoc/generator/json_index.rb#278 def file_dir; end # Writes the JSON index to disk # - # source://rdoc//lib/rdoc/generator/json_index.rb#131 + # source://rdoc/lib/rdoc/generator/json_index.rb#131 def generate; end # Compress the search_index.js file using gzip # - # source://rdoc//lib/rdoc/generator/json_index.rb#166 + # source://rdoc/lib/rdoc/generator/json_index.rb#166 def generate_gzipped; end - # source://rdoc//lib/rdoc/generator/json_index.rb#86 + # source://rdoc/lib/rdoc/generator/json_index.rb#86 def index; end # Adds classes and modules to the index # - # source://rdoc//lib/rdoc/generator/json_index.rb#211 + # source://rdoc/lib/rdoc/generator/json_index.rb#211 def index_classes; end # Adds methods to the index # - # source://rdoc//lib/rdoc/generator/json_index.rb#230 + # source://rdoc/lib/rdoc/generator/json_index.rb#230 def index_methods; end # Adds pages to the index # - # source://rdoc//lib/rdoc/generator/json_index.rb#251 + # source://rdoc/lib/rdoc/generator/json_index.rb#251 def index_pages; end - # source://rdoc//lib/rdoc/generator/json_index.rb#282 + # source://rdoc/lib/rdoc/generator/json_index.rb#282 def reset(files, classes); end # Removes whitespace and downcases +string+ # - # source://rdoc//lib/rdoc/generator/json_index.rb#296 + # source://rdoc/lib/rdoc/generator/json_index.rb#296 def search_string(string); end end @@ -2527,187 +2565,187 @@ end # # You edit locale/ja/rdoc.po to translate new messages. # -# source://rdoc//lib/rdoc/generator/pot.rb#56 +# source://rdoc/lib/rdoc/generator/pot.rb#56 class RDoc::Generator::POT # Set up a new .pot generator # # @return [POT] a new instance of POT # - # source://rdoc//lib/rdoc/generator/pot.rb#68 + # source://rdoc/lib/rdoc/generator/pot.rb#68 def initialize(store, options); end - # source://rdoc//lib/rdoc/generator/pot.rb#85 + # source://rdoc/lib/rdoc/generator/pot.rb#85 def class_dir; end # Writes .pot to disk. # - # source://rdoc//lib/rdoc/generator/pot.rb#76 + # source://rdoc/lib/rdoc/generator/pot.rb#76 def generate; end private - # source://rdoc//lib/rdoc/generator/pot.rb#90 + # source://rdoc/lib/rdoc/generator/pot.rb#90 def extract_messages; end end # Extracts message from RDoc::Store # -# source://rdoc//lib/rdoc/generator/pot/message_extractor.rb#5 +# source://rdoc/lib/rdoc/generator/pot/message_extractor.rb#5 class RDoc::Generator::POT::MessageExtractor # Creates a message extractor for +store+. # # @return [MessageExtractor] a new instance of MessageExtractor # - # source://rdoc//lib/rdoc/generator/pot/message_extractor.rb#10 + # source://rdoc/lib/rdoc/generator/pot/message_extractor.rb#10 def initialize(store); end # Extracts messages from +store+, stores them into # RDoc::Generator::POT::PO and returns it. # - # source://rdoc//lib/rdoc/generator/pot/message_extractor.rb#19 + # source://rdoc/lib/rdoc/generator/pot/message_extractor.rb#19 def extract; end private - # source://rdoc//lib/rdoc/generator/pot/message_extractor.rb#64 + # source://rdoc/lib/rdoc/generator/pot/message_extractor.rb#64 def entry(msgid, options); end - # source://rdoc//lib/rdoc/generator/pot/message_extractor.rb#28 + # source://rdoc/lib/rdoc/generator/pot/message_extractor.rb#28 def extract_from_klass(klass); end - # source://rdoc//lib/rdoc/generator/pot/message_extractor.rb#51 + # source://rdoc/lib/rdoc/generator/pot/message_extractor.rb#51 def extract_text(text, comment, location = T.unsafe(nil)); end end # Generates a PO format text # -# source://rdoc//lib/rdoc/generator/pot/po.rb#5 +# source://rdoc/lib/rdoc/generator/pot/po.rb#5 class RDoc::Generator::POT::PO # Creates an object that represents PO format. # # @return [PO] a new instance of PO # - # source://rdoc//lib/rdoc/generator/pot/po.rb#10 + # source://rdoc/lib/rdoc/generator/pot/po.rb#10 def initialize; end # Adds a PO entry to the PO. # - # source://rdoc//lib/rdoc/generator/pot/po.rb#18 + # source://rdoc/lib/rdoc/generator/pot/po.rb#18 def add(entry); end # Returns PO format text for the PO. # - # source://rdoc//lib/rdoc/generator/pot/po.rb#29 + # source://rdoc/lib/rdoc/generator/pot/po.rb#29 def to_s; end private - # source://rdoc//lib/rdoc/generator/pot/po.rb#40 + # source://rdoc/lib/rdoc/generator/pot/po.rb#40 def add_header; end - # source://rdoc//lib/rdoc/generator/pot/po.rb#44 + # source://rdoc/lib/rdoc/generator/pot/po.rb#44 def header_entry; end - # source://rdoc//lib/rdoc/generator/pot/po.rb#73 + # source://rdoc/lib/rdoc/generator/pot/po.rb#73 def sort_entries; end end # A PO entry in PO # -# source://rdoc//lib/rdoc/generator/pot/po_entry.rb#5 +# source://rdoc/lib/rdoc/generator/pot/po_entry.rb#5 class RDoc::Generator::POT::POEntry - # Creates a PO entry for +msgid+. Other valus can be specified by + # Creates a PO entry for +msgid+. Other values can be specified by # +options+. # # @return [POEntry] a new instance of POEntry # - # source://rdoc//lib/rdoc/generator/pot/po_entry.rb#29 + # source://rdoc/lib/rdoc/generator/pot/po_entry.rb#29 def initialize(msgid, options = T.unsafe(nil)); end # The comment content extracted from source file # - # source://rdoc//lib/rdoc/generator/pot/po_entry.rb#17 + # source://rdoc/lib/rdoc/generator/pot/po_entry.rb#17 def extracted_comment; end # The flags of the PO entry # - # source://rdoc//lib/rdoc/generator/pot/po_entry.rb#23 + # source://rdoc/lib/rdoc/generator/pot/po_entry.rb#23 def flags; end # Merges the PO entry with +other_entry+. # - # source://rdoc//lib/rdoc/generator/pot/po_entry.rb#56 + # source://rdoc/lib/rdoc/generator/pot/po_entry.rb#56 def merge(other_entry); end # The msgid content # - # source://rdoc//lib/rdoc/generator/pot/po_entry.rb#8 + # source://rdoc/lib/rdoc/generator/pot/po_entry.rb#8 def msgid; end # The msgstr content # - # source://rdoc//lib/rdoc/generator/pot/po_entry.rb#11 + # source://rdoc/lib/rdoc/generator/pot/po_entry.rb#11 def msgstr; end # The locations where the PO entry is extracted # - # source://rdoc//lib/rdoc/generator/pot/po_entry.rb#20 + # source://rdoc/lib/rdoc/generator/pot/po_entry.rb#20 def references; end # Returns the PO entry in PO format. # - # source://rdoc//lib/rdoc/generator/pot/po_entry.rb#41 + # source://rdoc/lib/rdoc/generator/pot/po_entry.rb#41 def to_s; end # The comment content created by translator (PO editor) # - # source://rdoc//lib/rdoc/generator/pot/po_entry.rb#14 + # source://rdoc/lib/rdoc/generator/pot/po_entry.rb#14 def translator_comment; end private - # source://rdoc//lib/rdoc/generator/pot/po_entry.rb#120 + # source://rdoc/lib/rdoc/generator/pot/po_entry.rb#120 def escape(string); end - # source://rdoc//lib/rdoc/generator/pot/po_entry.rb#72 + # source://rdoc/lib/rdoc/generator/pot/po_entry.rb#72 def format_comment(mark, comment); end - # source://rdoc//lib/rdoc/generator/pot/po_entry.rb#88 + # source://rdoc/lib/rdoc/generator/pot/po_entry.rb#88 def format_extracted_comment; end - # source://rdoc//lib/rdoc/generator/pot/po_entry.rb#102 + # source://rdoc/lib/rdoc/generator/pot/po_entry.rb#102 def format_flags; end - # source://rdoc//lib/rdoc/generator/pot/po_entry.rb#109 + # source://rdoc/lib/rdoc/generator/pot/po_entry.rb#109 def format_message(message); end - # source://rdoc//lib/rdoc/generator/pot/po_entry.rb#92 + # source://rdoc/lib/rdoc/generator/pot/po_entry.rb#92 def format_references; end - # source://rdoc//lib/rdoc/generator/pot/po_entry.rb#84 + # source://rdoc/lib/rdoc/generator/pot/po_entry.rb#84 def format_translator_comment; end - # source://rdoc//lib/rdoc/generator/pot/po_entry.rb#137 + # source://rdoc/lib/rdoc/generator/pot/po_entry.rb#137 def merge_array(array1, array2); end - # source://rdoc//lib/rdoc/generator/pot/po_entry.rb#133 + # source://rdoc/lib/rdoc/generator/pot/po_entry.rb#133 def merge_string(string1, string2); end end # Generates ri data files # -# source://rdoc//lib/rdoc/generator/ri.rb#5 +# source://rdoc/lib/rdoc/generator/ri.rb#5 class RDoc::Generator::RI # Set up a new ri generator # # @return [RI] a new instance of RI # - # source://rdoc//lib/rdoc/generator/ri.rb#17 + # source://rdoc/lib/rdoc/generator/ri.rb#17 def initialize(store, options); end # Writes the parsed data store to disk for use by ri. # - # source://rdoc//lib/rdoc/generator/ri.rb#26 + # source://rdoc/lib/rdoc/generator/ri.rb#26 def generate; end end @@ -2718,14 +2756,14 @@ end # * Loads translated messages from .po file. # * Translates a message into the locale. # -# source://rdoc//lib/rdoc/i18n/locale.rb#10 +# source://rdoc/lib/rdoc/i18n/locale.rb#10 class RDoc::I18n::Locale # Creates a new locale object for +name+ locale. +name+ must # follow IETF language tag format. # # @return [Locale] a new instance of Locale # - # source://rdoc//lib/rdoc/i18n/locale.rb#48 + # source://rdoc/lib/rdoc/i18n/locale.rb#48 def initialize(name); end # Loads translation messages from +locale_directory+/+@name+/rdoc.po @@ -2737,7 +2775,7 @@ class RDoc::I18n::Locale # # Returns +true+ if succeeded, +false+ otherwise. # - # source://rdoc//lib/rdoc/i18n/locale.rb#63 + # source://rdoc/lib/rdoc/i18n/locale.rb#63 def load(locale_directory); end # The name of the locale. It uses IETF language tag format @@ -2746,19 +2784,19 @@ class RDoc::I18n::Locale # See also {BCP 47 - Tags for Identifying # Languages}[http://tools.ietf.org/rfc/bcp/bcp47.txt]. # - # source://rdoc//lib/rdoc/i18n/locale.rb#42 + # source://rdoc/lib/rdoc/i18n/locale.rb#42 def name; end # Translates the +message+ into locale. If there is no translation # messages for +message+ in locale, +message+ itself is returned. # - # source://rdoc//lib/rdoc/i18n/locale.rb#98 + # source://rdoc/lib/rdoc/i18n/locale.rb#98 def translate(message); end class << self # Returns the locale object for +locale_name+. # - # source://rdoc//lib/rdoc/i18n/locale.rb#19 + # source://rdoc/lib/rdoc/i18n/locale.rb#19 def [](locale_name); end # Sets the locale object for +locale_name+. @@ -2766,7 +2804,7 @@ class RDoc::I18n::Locale # Normally, this method is not used. This method is useful for # testing. # - # source://rdoc//lib/rdoc/i18n/locale.rb#29 + # source://rdoc/lib/rdoc/i18n/locale.rb#29 def []=(locale_name, locale); end end end @@ -2780,13 +2818,13 @@ end # # Wrapped raw text is one of String, RDoc::Comment or Array of them. # -# source://rdoc//lib/rdoc/i18n/text.rb#12 +# source://rdoc/lib/rdoc/i18n/text.rb#12 class RDoc::I18n::Text # Creates a new i18n supported text for +raw+ text. # # @return [Text] a new instance of Text # - # source://rdoc//lib/rdoc/i18n/text.rb#17 + # source://rdoc/lib/rdoc/i18n/text.rb#17 def initialize(raw); end # Extracts translation target messages and yields each message. @@ -2799,1321 +2837,1321 @@ class RDoc::I18n::Text # # The above content may be added in the future. # - # source://rdoc//lib/rdoc/i18n/text.rb#32 + # source://rdoc/lib/rdoc/i18n/text.rb#32 def extract_messages; end # Translates raw text into +locale+. # - # source://rdoc//lib/rdoc/i18n/text.rb#44 + # source://rdoc/lib/rdoc/i18n/text.rb#44 def translate(locale); end private - # source://rdoc//lib/rdoc/i18n/text.rb#88 + # source://rdoc/lib/rdoc/i18n/text.rb#88 def each_line(raw, &block); end # @yield [part] # - # source://rdoc//lib/rdoc/i18n/text.rb#101 + # source://rdoc/lib/rdoc/i18n/text.rb#101 def emit_empty_line_event(line, line_no); end - # source://rdoc//lib/rdoc/i18n/text.rb#110 + # source://rdoc/lib/rdoc/i18n/text.rb#110 def emit_paragraph_event(paragraph, paragraph_start_line, line_no, &block); end - # source://rdoc//lib/rdoc/i18n/text.rb#60 + # source://rdoc/lib/rdoc/i18n/text.rb#60 def parse(&block); end end -# source://rdoc//lib/rdoc/markdown.rb#182 +# source://rdoc/lib/rdoc/markdown.rb#182 class RDoc::Markdown # Creates a new markdown parser that enables the given +extensions+. # # @return [Markdown] a new instance of Markdown # - # source://rdoc//lib/rdoc/markdown.rb#668 + # source://rdoc/lib/rdoc/markdown.rb#668 def initialize(extensions = T.unsafe(nil), debug = T.unsafe(nil)); end # Alphanumeric = %literals.Alphanumeric # - # source://rdoc//lib/rdoc/markdown.rb#14705 + # source://rdoc/lib/rdoc/markdown.rb#14715 def _Alphanumeric; end # AlphanumericAscii = %literals.AlphanumericAscii # - # source://rdoc//lib/rdoc/markdown.rb#14712 + # source://rdoc/lib/rdoc/markdown.rb#14722 def _AlphanumericAscii; end - # AtxHeading = AtxStart:s @Sp AtxInline+:a (@Sp /#*/ @Sp)? @Newline { RDoc::Markup::Heading.new(s, a.join) } + # AtxHeading = AtxStart:s @Spacechar+ AtxInline+:a (@Sp /#*/ @Sp)? @Newline { RDoc::Markup::Heading.new(s, a.join) } # - # source://rdoc//lib/rdoc/markdown.rb#1162 + # source://rdoc/lib/rdoc/markdown.rb#1162 def _AtxHeading; end # AtxInline = !@Newline !(@Sp /#*/ @Sp @Newline) Inline # - # source://rdoc//lib/rdoc/markdown.rb#1080 + # source://rdoc/lib/rdoc/markdown.rb#1080 def _AtxInline; end # AtxStart = < /\#{1,6}/ > { text.length } # - # source://rdoc//lib/rdoc/markdown.rb#1136 + # source://rdoc/lib/rdoc/markdown.rb#1136 def _AtxStart; end # AutoLink = (AutoLinkUrl | AutoLinkEmail) # - # source://rdoc//lib/rdoc/markdown.rb#11574 + # source://rdoc/lib/rdoc/markdown.rb#11584 def _AutoLink; end # AutoLinkEmail = "<" "mailto:"? < /[\w+.\/!%~$-]+/i "@" (!@Newline !">" .)+ > ">" { "mailto:#{text}" } # - # source://rdoc//lib/rdoc/markdown.rb#11707 + # source://rdoc/lib/rdoc/markdown.rb#11717 def _AutoLinkEmail; end # AutoLinkUrl = "<" < /[A-Za-z]+/ "://" (!@Newline !">" .)+ > ">" { text } # - # source://rdoc//lib/rdoc/markdown.rb#11592 + # source://rdoc/lib/rdoc/markdown.rb#11602 def _AutoLinkUrl; end # BOM = %literals.BOM # - # source://rdoc//lib/rdoc/markdown.rb#14719 + # source://rdoc/lib/rdoc/markdown.rb#14729 def _BOM; end # BlankLine = @Sp @Newline { "\n" } # - # source://rdoc//lib/rdoc/markdown.rb#14148 + # source://rdoc/lib/rdoc/markdown.rb#14158 def _BlankLine; end # Block = @BlankLine* (BlockQuote | Verbatim | CodeFence | Table | Note | Reference | HorizontalRule | Heading | OrderedList | BulletList | DefinitionList | HtmlBlock | StyleBlock | Para | Plain) # - # source://rdoc//lib/rdoc/markdown.rb#939 + # source://rdoc/lib/rdoc/markdown.rb#939 def _Block; end # BlockQuote = BlockQuoteRaw:a { RDoc::Markup::BlockQuote.new(*a) } # - # source://rdoc//lib/rdoc/markdown.rb#1566 + # source://rdoc/lib/rdoc/markdown.rb#1576 def _BlockQuote; end # BlockQuoteRaw = @StartList:a (">" " "? Line:l { a << l } (!">" !@BlankLine Line:c { a << c })* (@BlankLine:n { a << n })*)+ { inner_parse a.join } # - # source://rdoc//lib/rdoc/markdown.rb#1589 + # source://rdoc/lib/rdoc/markdown.rb#1599 def _BlockQuoteRaw; end # Bullet = !HorizontalRule @NonindentSpace /[+*-]/ @Spacechar+ # - # source://rdoc//lib/rdoc/markdown.rb#2154 + # source://rdoc/lib/rdoc/markdown.rb#2164 def _Bullet; end # BulletList = &Bullet (ListTight | ListLoose):a { RDoc::Markup::List.new(:BULLET, *a) } # - # source://rdoc//lib/rdoc/markdown.rb#2198 + # source://rdoc/lib/rdoc/markdown.rb#2208 def _BulletList; end # CharEntity = "&" < /[A-Za-z0-9]+/ > ";" { if entity = HTML_ENTITIES[text] then entity.pack 'U*' else "&#{text};" end } # - # source://rdoc//lib/rdoc/markdown.rb#14812 + # source://rdoc/lib/rdoc/markdown.rb#14822 def _CharEntity; end # Code = (Ticks1 @Sp < ((!"`" Nonspacechar)+ | !Ticks1 /`+/ | !(@Sp Ticks1) (@Spacechar | @Newline !@BlankLine))+ > @Sp Ticks1 | Ticks2 @Sp < ((!"`" Nonspacechar)+ | !Ticks2 /`+/ | !(@Sp Ticks2) (@Spacechar | @Newline !@BlankLine))+ > @Sp Ticks2 | Ticks3 @Sp < ((!"`" Nonspacechar)+ | !Ticks3 /`+/ | !(@Sp Ticks3) (@Spacechar | @Newline !@BlankLine))+ > @Sp Ticks3 | Ticks4 @Sp < ((!"`" Nonspacechar)+ | !Ticks4 /`+/ | !(@Sp Ticks4) (@Spacechar | @Newline !@BlankLine))+ > @Sp Ticks4 | Ticks5 @Sp < ((!"`" Nonspacechar)+ | !Ticks5 /`+/ | !(@Sp Ticks5) (@Spacechar | @Newline !@BlankLine))+ > @Sp Ticks5) { "#{text}" } # - # source://rdoc//lib/rdoc/markdown.rb#12511 + # source://rdoc/lib/rdoc/markdown.rb#12521 def _Code; end # CodeFence = &{ github? } Ticks3 (@Sp StrChunk:format)? Spnl < ((!"`" Nonspacechar)+ | !Ticks3 /`+/ | Spacechar | @Newline)+ > Ticks3 @Sp @Newline* { verbatim = RDoc::Markup::Verbatim.new text verbatim.format = format.intern if format.instance_of?(String) verbatim } # - # source://rdoc//lib/rdoc/markdown.rb#15681 + # source://rdoc/lib/rdoc/markdown.rb#15691 def _CodeFence; end # DecEntity = "&#" < /[0-9]+/ > ";" { [text.to_i].pack 'U' } # - # source://rdoc//lib/rdoc/markdown.rb#14776 + # source://rdoc/lib/rdoc/markdown.rb#14786 def _DecEntity; end # DefinitionList = &{ definition_lists? } DefinitionListItem+:list { RDoc::Markup::List.new :NOTE, *list.flatten } # - # source://rdoc//lib/rdoc/markdown.rb#16339 + # source://rdoc/lib/rdoc/markdown.rb#16349 def _DefinitionList; end # DefinitionListDefinition = @NonindentSpace ":" @Space Inlines:a @BlankLine+ { paragraph a } # - # source://rdoc//lib/rdoc/markdown.rb#16482 + # source://rdoc/lib/rdoc/markdown.rb#16492 def _DefinitionListDefinition; end # DefinitionListItem = DefinitionListLabel+:label DefinitionListDefinition+:defns { list_items = [] list_items << RDoc::Markup::ListItem.new(label, defns.shift) list_items.concat defns.map { |defn| RDoc::Markup::ListItem.new nil, defn } unless list_items.empty? list_items } # - # source://rdoc//lib/rdoc/markdown.rb#16383 + # source://rdoc/lib/rdoc/markdown.rb#16393 def _DefinitionListItem; end # DefinitionListLabel = Inline:label @Sp @Newline { label } # - # source://rdoc//lib/rdoc/markdown.rb#16449 + # source://rdoc/lib/rdoc/markdown.rb#16459 def _DefinitionListLabel; end # Digit = [0-9] # - # source://rdoc//lib/rdoc/markdown.rb#14691 + # source://rdoc/lib/rdoc/markdown.rb#14701 def _Digit; end # Doc = BOM? Block*:a { RDoc::Markup::Document.new(*a.compact) } # - # source://rdoc//lib/rdoc/markdown.rb#899 + # source://rdoc/lib/rdoc/markdown.rb#899 def _Doc; end # Emph = (EmphStar | EmphUl) # - # source://rdoc//lib/rdoc/markdown.rb#10283 + # source://rdoc/lib/rdoc/markdown.rb#10293 def _Emph; end # EmphStar = "*" !@Whitespace @StartList:a (!"*" Inline:b { a << b } | StrongStar:b { a << b })+ "*" { emphasis a.join } # - # source://rdoc//lib/rdoc/markdown.rb#10319 + # source://rdoc/lib/rdoc/markdown.rb#10329 def _EmphStar; end # EmphUl = "_" !@Whitespace @StartList:a (!"_" Inline:b { a << b } | StrongUl:b { a << b })+ "_" { emphasis a.join } # - # source://rdoc//lib/rdoc/markdown.rb#10477 + # source://rdoc/lib/rdoc/markdown.rb#10487 def _EmphUl; end # EmptyTitle = "" # - # source://rdoc//lib/rdoc/markdown.rb#12086 + # source://rdoc/lib/rdoc/markdown.rb#12096 def _EmptyTitle; end # Endline = (@LineBreak | @TerminalEndline | @NormalEndline) # - # source://rdoc//lib/rdoc/markdown.rb#9917 + # source://rdoc/lib/rdoc/markdown.rb#9927 def _Endline; end # Entity = (HexEntity | DecEntity | CharEntity):a { a } # - # source://rdoc//lib/rdoc/markdown.rb#9880 + # source://rdoc/lib/rdoc/markdown.rb#9890 def _Entity; end # Enumerator = @NonindentSpace [0-9]+ "." @Spacechar+ # - # source://rdoc//lib/rdoc/markdown.rb#2687 + # source://rdoc/lib/rdoc/markdown.rb#2697 def _Enumerator; end # Eof = !. # - # source://rdoc//lib/rdoc/markdown.rb#14542 + # source://rdoc/lib/rdoc/markdown.rb#14552 def _Eof; end # EscapedChar = "\\" !@Newline < /[:\\`|*_{}\[\]()#+.!><-]/ > { text } # - # source://rdoc//lib/rdoc/markdown.rb#9841 + # source://rdoc/lib/rdoc/markdown.rb#9851 def _EscapedChar; end # ExplicitLink = Label:l "(" @Sp Source:s Spnl Title @Sp ")" { "{#{l}}[#{s}]" } # - # source://rdoc//lib/rdoc/markdown.rb#11147 + # source://rdoc/lib/rdoc/markdown.rb#11157 def _ExplicitLink; end # ExtendedSpecialChar = &{ notes? } "^" # - # source://rdoc//lib/rdoc/markdown.rb#15184 + # source://rdoc/lib/rdoc/markdown.rb#15194 def _ExtendedSpecialChar; end # Heading = (SetextHeading | AtxHeading) # - # source://rdoc//lib/rdoc/markdown.rb#1548 + # source://rdoc/lib/rdoc/markdown.rb#1558 def _Heading; end # HexEntity = /&#x/i < /[0-9a-fA-F]+/ > ";" { [text.to_i(16)].pack 'U' } # - # source://rdoc//lib/rdoc/markdown.rb#14740 + # source://rdoc/lib/rdoc/markdown.rb#14750 def _HexEntity; end # HorizontalRule = @NonindentSpace ("*" @Sp "*" @Sp "*" (@Sp "*")* | "-" @Sp "-" @Sp "-" (@Sp "-")* | "_" @Sp "_" @Sp "_" (@Sp "_")*) @Sp @Newline @BlankLine+ { RDoc::Markup::Rule.new 1 } # - # source://rdoc//lib/rdoc/markdown.rb#1932 + # source://rdoc/lib/rdoc/markdown.rb#1942 def _HorizontalRule; end # HtmlAnchor = HtmlOpenAnchor (HtmlAnchor | !HtmlCloseAnchor .)* HtmlCloseAnchor # - # source://rdoc//lib/rdoc/markdown.rb#2971 + # source://rdoc/lib/rdoc/markdown.rb#2981 def _HtmlAnchor; end # HtmlAttribute = (AlphanumericAscii | "-")+ Spnl ("=" Spnl (Quoted | (!">" Nonspacechar)+))? Spnl # - # source://rdoc//lib/rdoc/markdown.rb#14273 + # source://rdoc/lib/rdoc/markdown.rb#14283 def _HtmlAttribute; end # HtmlBlock = < (HtmlBlockInTags | HtmlComment | HtmlBlockSelfClosing | HtmlUnclosed) > @BlankLine+ { if html? then RDoc::Markup::Raw.new text end } # - # source://rdoc//lib/rdoc/markdown.rb#8768 + # source://rdoc/lib/rdoc/markdown.rb#8778 def _HtmlBlock; end # HtmlBlockAddress = HtmlBlockOpenAddress (HtmlBlockAddress | !HtmlBlockCloseAddress .)* HtmlBlockCloseAddress # - # source://rdoc//lib/rdoc/markdown.rb#3137 + # source://rdoc/lib/rdoc/markdown.rb#3147 def _HtmlBlockAddress; end # HtmlBlockBlockquote = HtmlBlockOpenBlockquote (HtmlBlockBlockquote | !HtmlBlockCloseBlockquote .)* HtmlBlockCloseBlockquote # - # source://rdoc//lib/rdoc/markdown.rb#3303 + # source://rdoc/lib/rdoc/markdown.rb#3313 def _HtmlBlockBlockquote; end # HtmlBlockCenter = HtmlBlockOpenCenter (HtmlBlockCenter | !HtmlBlockCloseCenter .)* HtmlBlockCloseCenter # - # source://rdoc//lib/rdoc/markdown.rb#3469 + # source://rdoc/lib/rdoc/markdown.rb#3479 def _HtmlBlockCenter; end # HtmlBlockCloseAddress = "<" Spnl "/" ("address" | "ADDRESS") Spnl ">" # - # source://rdoc//lib/rdoc/markdown.rb#3085 + # source://rdoc/lib/rdoc/markdown.rb#3095 def _HtmlBlockCloseAddress; end # HtmlBlockCloseBlockquote = "<" Spnl "/" ("blockquote" | "BLOCKQUOTE") Spnl ">" # - # source://rdoc//lib/rdoc/markdown.rb#3251 + # source://rdoc/lib/rdoc/markdown.rb#3261 def _HtmlBlockCloseBlockquote; end # HtmlBlockCloseCenter = "<" Spnl "/" ("center" | "CENTER") Spnl ">" # - # source://rdoc//lib/rdoc/markdown.rb#3417 + # source://rdoc/lib/rdoc/markdown.rb#3427 def _HtmlBlockCloseCenter; end # HtmlBlockCloseDd = "<" Spnl "/" ("dd" | "DD") Spnl ">" # - # source://rdoc//lib/rdoc/markdown.rb#6737 + # source://rdoc/lib/rdoc/markdown.rb#6747 def _HtmlBlockCloseDd; end # HtmlBlockCloseDir = "<" Spnl "/" ("dir" | "DIR") Spnl ">" # - # source://rdoc//lib/rdoc/markdown.rb#3583 + # source://rdoc/lib/rdoc/markdown.rb#3593 def _HtmlBlockCloseDir; end # HtmlBlockCloseDiv = "<" Spnl "/" ("div" | "DIV") Spnl ">" # - # source://rdoc//lib/rdoc/markdown.rb#3749 + # source://rdoc/lib/rdoc/markdown.rb#3759 def _HtmlBlockCloseDiv; end # HtmlBlockCloseDl = "<" Spnl "/" ("dl" | "DL") Spnl ">" # - # source://rdoc//lib/rdoc/markdown.rb#3915 + # source://rdoc/lib/rdoc/markdown.rb#3925 def _HtmlBlockCloseDl; end # HtmlBlockCloseDt = "<" Spnl "/" ("dt" | "DT") Spnl ">" # - # source://rdoc//lib/rdoc/markdown.rb#6903 + # source://rdoc/lib/rdoc/markdown.rb#6913 def _HtmlBlockCloseDt; end # HtmlBlockCloseFieldset = "<" Spnl "/" ("fieldset" | "FIELDSET") Spnl ">" # - # source://rdoc//lib/rdoc/markdown.rb#4081 + # source://rdoc/lib/rdoc/markdown.rb#4091 def _HtmlBlockCloseFieldset; end # HtmlBlockCloseForm = "<" Spnl "/" ("form" | "FORM") Spnl ">" # - # source://rdoc//lib/rdoc/markdown.rb#4247 + # source://rdoc/lib/rdoc/markdown.rb#4257 def _HtmlBlockCloseForm; end # HtmlBlockCloseFrameset = "<" Spnl "/" ("frameset" | "FRAMESET") Spnl ">" # - # source://rdoc//lib/rdoc/markdown.rb#7069 + # source://rdoc/lib/rdoc/markdown.rb#7079 def _HtmlBlockCloseFrameset; end # HtmlBlockCloseH1 = "<" Spnl "/" ("h1" | "H1") Spnl ">" # - # source://rdoc//lib/rdoc/markdown.rb#4413 + # source://rdoc/lib/rdoc/markdown.rb#4423 def _HtmlBlockCloseH1; end # HtmlBlockCloseH2 = "<" Spnl "/" ("h2" | "H2") Spnl ">" # - # source://rdoc//lib/rdoc/markdown.rb#4579 + # source://rdoc/lib/rdoc/markdown.rb#4589 def _HtmlBlockCloseH2; end # HtmlBlockCloseH3 = "<" Spnl "/" ("h3" | "H3") Spnl ">" # - # source://rdoc//lib/rdoc/markdown.rb#4745 + # source://rdoc/lib/rdoc/markdown.rb#4755 def _HtmlBlockCloseH3; end # HtmlBlockCloseH4 = "<" Spnl "/" ("h4" | "H4") Spnl ">" # - # source://rdoc//lib/rdoc/markdown.rb#4911 + # source://rdoc/lib/rdoc/markdown.rb#4921 def _HtmlBlockCloseH4; end # HtmlBlockCloseH5 = "<" Spnl "/" ("h5" | "H5") Spnl ">" # - # source://rdoc//lib/rdoc/markdown.rb#5077 + # source://rdoc/lib/rdoc/markdown.rb#5087 def _HtmlBlockCloseH5; end # HtmlBlockCloseH6 = "<" Spnl "/" ("h6" | "H6") Spnl ">" # - # source://rdoc//lib/rdoc/markdown.rb#5243 + # source://rdoc/lib/rdoc/markdown.rb#5253 def _HtmlBlockCloseH6; end # HtmlBlockCloseHead = "<" Spnl "/" ("head" | "HEAD") Spnl ">" # - # source://rdoc//lib/rdoc/markdown.rb#8552 + # source://rdoc/lib/rdoc/markdown.rb#8562 def _HtmlBlockCloseHead; end # HtmlBlockCloseLi = "<" Spnl "/" ("li" | "LI") Spnl ">" # - # source://rdoc//lib/rdoc/markdown.rb#7235 + # source://rdoc/lib/rdoc/markdown.rb#7245 def _HtmlBlockCloseLi; end # HtmlBlockCloseMenu = "<" Spnl "/" ("menu" | "MENU") Spnl ">" # - # source://rdoc//lib/rdoc/markdown.rb#5409 + # source://rdoc/lib/rdoc/markdown.rb#5419 def _HtmlBlockCloseMenu; end # HtmlBlockCloseNoframes = "<" Spnl "/" ("noframes" | "NOFRAMES") Spnl ">" # - # source://rdoc//lib/rdoc/markdown.rb#5575 + # source://rdoc/lib/rdoc/markdown.rb#5585 def _HtmlBlockCloseNoframes; end # HtmlBlockCloseNoscript = "<" Spnl "/" ("noscript" | "NOSCRIPT") Spnl ">" # - # source://rdoc//lib/rdoc/markdown.rb#5741 + # source://rdoc/lib/rdoc/markdown.rb#5751 def _HtmlBlockCloseNoscript; end # HtmlBlockCloseOl = "<" Spnl "/" ("ol" | "OL") Spnl ">" # - # source://rdoc//lib/rdoc/markdown.rb#5907 + # source://rdoc/lib/rdoc/markdown.rb#5917 def _HtmlBlockCloseOl; end # HtmlBlockCloseP = "<" Spnl "/" ("p" | "P") Spnl ">" # - # source://rdoc//lib/rdoc/markdown.rb#6073 + # source://rdoc/lib/rdoc/markdown.rb#6083 def _HtmlBlockCloseP; end # HtmlBlockClosePre = "<" Spnl "/" ("pre" | "PRE") Spnl ">" # - # source://rdoc//lib/rdoc/markdown.rb#6239 + # source://rdoc/lib/rdoc/markdown.rb#6249 def _HtmlBlockClosePre; end # HtmlBlockCloseScript = "<" Spnl "/" ("script" | "SCRIPT") Spnl ">" # - # source://rdoc//lib/rdoc/markdown.rb#8397 + # source://rdoc/lib/rdoc/markdown.rb#8407 def _HtmlBlockCloseScript; end # HtmlBlockCloseTable = "<" Spnl "/" ("table" | "TABLE") Spnl ">" # - # source://rdoc//lib/rdoc/markdown.rb#6405 + # source://rdoc/lib/rdoc/markdown.rb#6415 def _HtmlBlockCloseTable; end # HtmlBlockCloseTbody = "<" Spnl "/" ("tbody" | "TBODY") Spnl ">" # - # source://rdoc//lib/rdoc/markdown.rb#7401 + # source://rdoc/lib/rdoc/markdown.rb#7411 def _HtmlBlockCloseTbody; end # HtmlBlockCloseTd = "<" Spnl "/" ("td" | "TD") Spnl ">" # - # source://rdoc//lib/rdoc/markdown.rb#7567 + # source://rdoc/lib/rdoc/markdown.rb#7577 def _HtmlBlockCloseTd; end # HtmlBlockCloseTfoot = "<" Spnl "/" ("tfoot" | "TFOOT") Spnl ">" # - # source://rdoc//lib/rdoc/markdown.rb#7733 + # source://rdoc/lib/rdoc/markdown.rb#7743 def _HtmlBlockCloseTfoot; end # HtmlBlockCloseTh = "<" Spnl "/" ("th" | "TH") Spnl ">" # - # source://rdoc//lib/rdoc/markdown.rb#7899 + # source://rdoc/lib/rdoc/markdown.rb#7909 def _HtmlBlockCloseTh; end # HtmlBlockCloseThead = "<" Spnl "/" ("thead" | "THEAD") Spnl ">" # - # source://rdoc//lib/rdoc/markdown.rb#8065 + # source://rdoc/lib/rdoc/markdown.rb#8075 def _HtmlBlockCloseThead; end # HtmlBlockCloseTr = "<" Spnl "/" ("tr" | "TR") Spnl ">" # - # source://rdoc//lib/rdoc/markdown.rb#8231 + # source://rdoc/lib/rdoc/markdown.rb#8241 def _HtmlBlockCloseTr; end # HtmlBlockCloseUl = "<" Spnl "/" ("ul" | "UL") Spnl ">" # - # source://rdoc//lib/rdoc/markdown.rb#6571 + # source://rdoc/lib/rdoc/markdown.rb#6581 def _HtmlBlockCloseUl; end # HtmlBlockDd = HtmlBlockOpenDd (HtmlBlockDd | !HtmlBlockCloseDd .)* HtmlBlockCloseDd # - # source://rdoc//lib/rdoc/markdown.rb#6789 + # source://rdoc/lib/rdoc/markdown.rb#6799 def _HtmlBlockDd; end # HtmlBlockDir = HtmlBlockOpenDir (HtmlBlockDir | !HtmlBlockCloseDir .)* HtmlBlockCloseDir # - # source://rdoc//lib/rdoc/markdown.rb#3635 + # source://rdoc/lib/rdoc/markdown.rb#3645 def _HtmlBlockDir; end # HtmlBlockDiv = HtmlBlockOpenDiv (HtmlBlockDiv | !HtmlBlockCloseDiv .)* HtmlBlockCloseDiv # - # source://rdoc//lib/rdoc/markdown.rb#3801 + # source://rdoc/lib/rdoc/markdown.rb#3811 def _HtmlBlockDiv; end # HtmlBlockDl = HtmlBlockOpenDl (HtmlBlockDl | !HtmlBlockCloseDl .)* HtmlBlockCloseDl # - # source://rdoc//lib/rdoc/markdown.rb#3967 + # source://rdoc/lib/rdoc/markdown.rb#3977 def _HtmlBlockDl; end # HtmlBlockDt = HtmlBlockOpenDt (HtmlBlockDt | !HtmlBlockCloseDt .)* HtmlBlockCloseDt # - # source://rdoc//lib/rdoc/markdown.rb#6955 + # source://rdoc/lib/rdoc/markdown.rb#6965 def _HtmlBlockDt; end # HtmlBlockFieldset = HtmlBlockOpenFieldset (HtmlBlockFieldset | !HtmlBlockCloseFieldset .)* HtmlBlockCloseFieldset # - # source://rdoc//lib/rdoc/markdown.rb#4133 + # source://rdoc/lib/rdoc/markdown.rb#4143 def _HtmlBlockFieldset; end # HtmlBlockForm = HtmlBlockOpenForm (HtmlBlockForm | !HtmlBlockCloseForm .)* HtmlBlockCloseForm # - # source://rdoc//lib/rdoc/markdown.rb#4299 + # source://rdoc/lib/rdoc/markdown.rb#4309 def _HtmlBlockForm; end # HtmlBlockFrameset = HtmlBlockOpenFrameset (HtmlBlockFrameset | !HtmlBlockCloseFrameset .)* HtmlBlockCloseFrameset # - # source://rdoc//lib/rdoc/markdown.rb#7121 + # source://rdoc/lib/rdoc/markdown.rb#7131 def _HtmlBlockFrameset; end # HtmlBlockH1 = HtmlBlockOpenH1 (HtmlBlockH1 | !HtmlBlockCloseH1 .)* HtmlBlockCloseH1 # - # source://rdoc//lib/rdoc/markdown.rb#4465 + # source://rdoc/lib/rdoc/markdown.rb#4475 def _HtmlBlockH1; end # HtmlBlockH2 = HtmlBlockOpenH2 (HtmlBlockH2 | !HtmlBlockCloseH2 .)* HtmlBlockCloseH2 # - # source://rdoc//lib/rdoc/markdown.rb#4631 + # source://rdoc/lib/rdoc/markdown.rb#4641 def _HtmlBlockH2; end # HtmlBlockH3 = HtmlBlockOpenH3 (HtmlBlockH3 | !HtmlBlockCloseH3 .)* HtmlBlockCloseH3 # - # source://rdoc//lib/rdoc/markdown.rb#4797 + # source://rdoc/lib/rdoc/markdown.rb#4807 def _HtmlBlockH3; end # HtmlBlockH4 = HtmlBlockOpenH4 (HtmlBlockH4 | !HtmlBlockCloseH4 .)* HtmlBlockCloseH4 # - # source://rdoc//lib/rdoc/markdown.rb#4963 + # source://rdoc/lib/rdoc/markdown.rb#4973 def _HtmlBlockH4; end # HtmlBlockH5 = HtmlBlockOpenH5 (HtmlBlockH5 | !HtmlBlockCloseH5 .)* HtmlBlockCloseH5 # - # source://rdoc//lib/rdoc/markdown.rb#5129 + # source://rdoc/lib/rdoc/markdown.rb#5139 def _HtmlBlockH5; end # HtmlBlockH6 = HtmlBlockOpenH6 (HtmlBlockH6 | !HtmlBlockCloseH6 .)* HtmlBlockCloseH6 # - # source://rdoc//lib/rdoc/markdown.rb#5295 + # source://rdoc/lib/rdoc/markdown.rb#5305 def _HtmlBlockH6; end # HtmlBlockHead = HtmlBlockOpenHead (!HtmlBlockCloseHead .)* HtmlBlockCloseHead # - # source://rdoc//lib/rdoc/markdown.rb#8604 + # source://rdoc/lib/rdoc/markdown.rb#8614 def _HtmlBlockHead; end # HtmlBlockInTags = (HtmlAnchor | HtmlBlockAddress | HtmlBlockBlockquote | HtmlBlockCenter | HtmlBlockDir | HtmlBlockDiv | HtmlBlockDl | HtmlBlockFieldset | HtmlBlockForm | HtmlBlockH1 | HtmlBlockH2 | HtmlBlockH3 | HtmlBlockH4 | HtmlBlockH5 | HtmlBlockH6 | HtmlBlockMenu | HtmlBlockNoframes | HtmlBlockNoscript | HtmlBlockOl | HtmlBlockP | HtmlBlockPre | HtmlBlockTable | HtmlBlockUl | HtmlBlockDd | HtmlBlockDt | HtmlBlockFrameset | HtmlBlockLi | HtmlBlockTbody | HtmlBlockTd | HtmlBlockTfoot | HtmlBlockTh | HtmlBlockThead | HtmlBlockTr | HtmlBlockScript | HtmlBlockHead) # - # source://rdoc//lib/rdoc/markdown.rb#8651 + # source://rdoc/lib/rdoc/markdown.rb#8661 def _HtmlBlockInTags; end # HtmlBlockLi = HtmlBlockOpenLi (HtmlBlockLi | !HtmlBlockCloseLi .)* HtmlBlockCloseLi # - # source://rdoc//lib/rdoc/markdown.rb#7287 + # source://rdoc/lib/rdoc/markdown.rb#7297 def _HtmlBlockLi; end # HtmlBlockMenu = HtmlBlockOpenMenu (HtmlBlockMenu | !HtmlBlockCloseMenu .)* HtmlBlockCloseMenu # - # source://rdoc//lib/rdoc/markdown.rb#5461 + # source://rdoc/lib/rdoc/markdown.rb#5471 def _HtmlBlockMenu; end # HtmlBlockNoframes = HtmlBlockOpenNoframes (HtmlBlockNoframes | !HtmlBlockCloseNoframes .)* HtmlBlockCloseNoframes # - # source://rdoc//lib/rdoc/markdown.rb#5627 + # source://rdoc/lib/rdoc/markdown.rb#5637 def _HtmlBlockNoframes; end # HtmlBlockNoscript = HtmlBlockOpenNoscript (HtmlBlockNoscript | !HtmlBlockCloseNoscript .)* HtmlBlockCloseNoscript # - # source://rdoc//lib/rdoc/markdown.rb#5793 + # source://rdoc/lib/rdoc/markdown.rb#5803 def _HtmlBlockNoscript; end # HtmlBlockOl = HtmlBlockOpenOl (HtmlBlockOl | !HtmlBlockCloseOl .)* HtmlBlockCloseOl # - # source://rdoc//lib/rdoc/markdown.rb#5959 + # source://rdoc/lib/rdoc/markdown.rb#5969 def _HtmlBlockOl; end # HtmlBlockOpenAddress = "<" Spnl ("address" | "ADDRESS") Spnl HtmlAttribute* ">" # - # source://rdoc//lib/rdoc/markdown.rb#3029 + # source://rdoc/lib/rdoc/markdown.rb#3039 def _HtmlBlockOpenAddress; end # HtmlBlockOpenBlockquote = "<" Spnl ("blockquote" | "BLOCKQUOTE") Spnl HtmlAttribute* ">" # - # source://rdoc//lib/rdoc/markdown.rb#3195 + # source://rdoc/lib/rdoc/markdown.rb#3205 def _HtmlBlockOpenBlockquote; end # HtmlBlockOpenCenter = "<" Spnl ("center" | "CENTER") Spnl HtmlAttribute* ">" # - # source://rdoc//lib/rdoc/markdown.rb#3361 + # source://rdoc/lib/rdoc/markdown.rb#3371 def _HtmlBlockOpenCenter; end # HtmlBlockOpenDd = "<" Spnl ("dd" | "DD") Spnl HtmlAttribute* ">" # - # source://rdoc//lib/rdoc/markdown.rb#6681 + # source://rdoc/lib/rdoc/markdown.rb#6691 def _HtmlBlockOpenDd; end # HtmlBlockOpenDir = "<" Spnl ("dir" | "DIR") Spnl HtmlAttribute* ">" # - # source://rdoc//lib/rdoc/markdown.rb#3527 + # source://rdoc/lib/rdoc/markdown.rb#3537 def _HtmlBlockOpenDir; end # HtmlBlockOpenDiv = "<" Spnl ("div" | "DIV") Spnl HtmlAttribute* ">" # - # source://rdoc//lib/rdoc/markdown.rb#3693 + # source://rdoc/lib/rdoc/markdown.rb#3703 def _HtmlBlockOpenDiv; end # HtmlBlockOpenDl = "<" Spnl ("dl" | "DL") Spnl HtmlAttribute* ">" # - # source://rdoc//lib/rdoc/markdown.rb#3859 + # source://rdoc/lib/rdoc/markdown.rb#3869 def _HtmlBlockOpenDl; end # HtmlBlockOpenDt = "<" Spnl ("dt" | "DT") Spnl HtmlAttribute* ">" # - # source://rdoc//lib/rdoc/markdown.rb#6847 + # source://rdoc/lib/rdoc/markdown.rb#6857 def _HtmlBlockOpenDt; end # HtmlBlockOpenFieldset = "<" Spnl ("fieldset" | "FIELDSET") Spnl HtmlAttribute* ">" # - # source://rdoc//lib/rdoc/markdown.rb#4025 + # source://rdoc/lib/rdoc/markdown.rb#4035 def _HtmlBlockOpenFieldset; end # HtmlBlockOpenForm = "<" Spnl ("form" | "FORM") Spnl HtmlAttribute* ">" # - # source://rdoc//lib/rdoc/markdown.rb#4191 + # source://rdoc/lib/rdoc/markdown.rb#4201 def _HtmlBlockOpenForm; end # HtmlBlockOpenFrameset = "<" Spnl ("frameset" | "FRAMESET") Spnl HtmlAttribute* ">" # - # source://rdoc//lib/rdoc/markdown.rb#7013 + # source://rdoc/lib/rdoc/markdown.rb#7023 def _HtmlBlockOpenFrameset; end # HtmlBlockOpenH1 = "<" Spnl ("h1" | "H1") Spnl HtmlAttribute* ">" # - # source://rdoc//lib/rdoc/markdown.rb#4357 + # source://rdoc/lib/rdoc/markdown.rb#4367 def _HtmlBlockOpenH1; end # HtmlBlockOpenH2 = "<" Spnl ("h2" | "H2") Spnl HtmlAttribute* ">" # - # source://rdoc//lib/rdoc/markdown.rb#4523 + # source://rdoc/lib/rdoc/markdown.rb#4533 def _HtmlBlockOpenH2; end # HtmlBlockOpenH3 = "<" Spnl ("h3" | "H3") Spnl HtmlAttribute* ">" # - # source://rdoc//lib/rdoc/markdown.rb#4689 + # source://rdoc/lib/rdoc/markdown.rb#4699 def _HtmlBlockOpenH3; end # HtmlBlockOpenH4 = "<" Spnl ("h4" | "H4") Spnl HtmlAttribute* ">" # - # source://rdoc//lib/rdoc/markdown.rb#4855 + # source://rdoc/lib/rdoc/markdown.rb#4865 def _HtmlBlockOpenH4; end # HtmlBlockOpenH5 = "<" Spnl ("h5" | "H5") Spnl HtmlAttribute* ">" # - # source://rdoc//lib/rdoc/markdown.rb#5021 + # source://rdoc/lib/rdoc/markdown.rb#5031 def _HtmlBlockOpenH5; end # HtmlBlockOpenH6 = "<" Spnl ("h6" | "H6") Spnl HtmlAttribute* ">" # - # source://rdoc//lib/rdoc/markdown.rb#5187 + # source://rdoc/lib/rdoc/markdown.rb#5197 def _HtmlBlockOpenH6; end # HtmlBlockOpenHead = "<" Spnl ("head" | "HEAD") Spnl HtmlAttribute* ">" # - # source://rdoc//lib/rdoc/markdown.rb#8496 + # source://rdoc/lib/rdoc/markdown.rb#8506 def _HtmlBlockOpenHead; end # HtmlBlockOpenLi = "<" Spnl ("li" | "LI") Spnl HtmlAttribute* ">" # - # source://rdoc//lib/rdoc/markdown.rb#7179 + # source://rdoc/lib/rdoc/markdown.rb#7189 def _HtmlBlockOpenLi; end # HtmlBlockOpenMenu = "<" Spnl ("menu" | "MENU") Spnl HtmlAttribute* ">" # - # source://rdoc//lib/rdoc/markdown.rb#5353 + # source://rdoc/lib/rdoc/markdown.rb#5363 def _HtmlBlockOpenMenu; end # HtmlBlockOpenNoframes = "<" Spnl ("noframes" | "NOFRAMES") Spnl HtmlAttribute* ">" # - # source://rdoc//lib/rdoc/markdown.rb#5519 + # source://rdoc/lib/rdoc/markdown.rb#5529 def _HtmlBlockOpenNoframes; end # HtmlBlockOpenNoscript = "<" Spnl ("noscript" | "NOSCRIPT") Spnl HtmlAttribute* ">" # - # source://rdoc//lib/rdoc/markdown.rb#5685 + # source://rdoc/lib/rdoc/markdown.rb#5695 def _HtmlBlockOpenNoscript; end # HtmlBlockOpenOl = "<" Spnl ("ol" | "OL") Spnl HtmlAttribute* ">" # - # source://rdoc//lib/rdoc/markdown.rb#5851 + # source://rdoc/lib/rdoc/markdown.rb#5861 def _HtmlBlockOpenOl; end # HtmlBlockOpenP = "<" Spnl ("p" | "P") Spnl HtmlAttribute* ">" # - # source://rdoc//lib/rdoc/markdown.rb#6017 + # source://rdoc/lib/rdoc/markdown.rb#6027 def _HtmlBlockOpenP; end # HtmlBlockOpenPre = "<" Spnl ("pre" | "PRE") Spnl HtmlAttribute* ">" # - # source://rdoc//lib/rdoc/markdown.rb#6183 + # source://rdoc/lib/rdoc/markdown.rb#6193 def _HtmlBlockOpenPre; end # HtmlBlockOpenScript = "<" Spnl ("script" | "SCRIPT") Spnl HtmlAttribute* ">" # - # source://rdoc//lib/rdoc/markdown.rb#8341 + # source://rdoc/lib/rdoc/markdown.rb#8351 def _HtmlBlockOpenScript; end # HtmlBlockOpenTable = "<" Spnl ("table" | "TABLE") Spnl HtmlAttribute* ">" # - # source://rdoc//lib/rdoc/markdown.rb#6349 + # source://rdoc/lib/rdoc/markdown.rb#6359 def _HtmlBlockOpenTable; end # HtmlBlockOpenTbody = "<" Spnl ("tbody" | "TBODY") Spnl HtmlAttribute* ">" # - # source://rdoc//lib/rdoc/markdown.rb#7345 + # source://rdoc/lib/rdoc/markdown.rb#7355 def _HtmlBlockOpenTbody; end # HtmlBlockOpenTd = "<" Spnl ("td" | "TD") Spnl HtmlAttribute* ">" # - # source://rdoc//lib/rdoc/markdown.rb#7511 + # source://rdoc/lib/rdoc/markdown.rb#7521 def _HtmlBlockOpenTd; end # HtmlBlockOpenTfoot = "<" Spnl ("tfoot" | "TFOOT") Spnl HtmlAttribute* ">" # - # source://rdoc//lib/rdoc/markdown.rb#7677 + # source://rdoc/lib/rdoc/markdown.rb#7687 def _HtmlBlockOpenTfoot; end # HtmlBlockOpenTh = "<" Spnl ("th" | "TH") Spnl HtmlAttribute* ">" # - # source://rdoc//lib/rdoc/markdown.rb#7843 + # source://rdoc/lib/rdoc/markdown.rb#7853 def _HtmlBlockOpenTh; end # HtmlBlockOpenThead = "<" Spnl ("thead" | "THEAD") Spnl HtmlAttribute* ">" # - # source://rdoc//lib/rdoc/markdown.rb#8009 + # source://rdoc/lib/rdoc/markdown.rb#8019 def _HtmlBlockOpenThead; end # HtmlBlockOpenTr = "<" Spnl ("tr" | "TR") Spnl HtmlAttribute* ">" # - # source://rdoc//lib/rdoc/markdown.rb#8175 + # source://rdoc/lib/rdoc/markdown.rb#8185 def _HtmlBlockOpenTr; end # HtmlBlockOpenUl = "<" Spnl ("ul" | "UL") Spnl HtmlAttribute* ">" # - # source://rdoc//lib/rdoc/markdown.rb#6515 + # source://rdoc/lib/rdoc/markdown.rb#6525 def _HtmlBlockOpenUl; end # HtmlBlockP = HtmlBlockOpenP (HtmlBlockP | !HtmlBlockCloseP .)* HtmlBlockCloseP # - # source://rdoc//lib/rdoc/markdown.rb#6125 + # source://rdoc/lib/rdoc/markdown.rb#6135 def _HtmlBlockP; end # HtmlBlockPre = HtmlBlockOpenPre (HtmlBlockPre | !HtmlBlockClosePre .)* HtmlBlockClosePre # - # source://rdoc//lib/rdoc/markdown.rb#6291 + # source://rdoc/lib/rdoc/markdown.rb#6301 def _HtmlBlockPre; end # HtmlBlockScript = HtmlBlockOpenScript (!HtmlBlockCloseScript .)* HtmlBlockCloseScript # - # source://rdoc//lib/rdoc/markdown.rb#8449 + # source://rdoc/lib/rdoc/markdown.rb#8459 def _HtmlBlockScript; end # HtmlBlockSelfClosing = "<" Spnl HtmlBlockType Spnl HtmlAttribute* "/" Spnl ">" # - # source://rdoc//lib/rdoc/markdown.rb#8896 + # source://rdoc/lib/rdoc/markdown.rb#8906 def _HtmlBlockSelfClosing; end # HtmlBlockTable = HtmlBlockOpenTable (HtmlBlockTable | !HtmlBlockCloseTable .)* HtmlBlockCloseTable # - # source://rdoc//lib/rdoc/markdown.rb#6457 + # source://rdoc/lib/rdoc/markdown.rb#6467 def _HtmlBlockTable; end # HtmlBlockTbody = HtmlBlockOpenTbody (HtmlBlockTbody | !HtmlBlockCloseTbody .)* HtmlBlockCloseTbody # - # source://rdoc//lib/rdoc/markdown.rb#7453 + # source://rdoc/lib/rdoc/markdown.rb#7463 def _HtmlBlockTbody; end # HtmlBlockTd = HtmlBlockOpenTd (HtmlBlockTd | !HtmlBlockCloseTd .)* HtmlBlockCloseTd # - # source://rdoc//lib/rdoc/markdown.rb#7619 + # source://rdoc/lib/rdoc/markdown.rb#7629 def _HtmlBlockTd; end # HtmlBlockTfoot = HtmlBlockOpenTfoot (HtmlBlockTfoot | !HtmlBlockCloseTfoot .)* HtmlBlockCloseTfoot # - # source://rdoc//lib/rdoc/markdown.rb#7785 + # source://rdoc/lib/rdoc/markdown.rb#7795 def _HtmlBlockTfoot; end # HtmlBlockTh = HtmlBlockOpenTh (HtmlBlockTh | !HtmlBlockCloseTh .)* HtmlBlockCloseTh # - # source://rdoc//lib/rdoc/markdown.rb#7951 + # source://rdoc/lib/rdoc/markdown.rb#7961 def _HtmlBlockTh; end # HtmlBlockThead = HtmlBlockOpenThead (HtmlBlockThead | !HtmlBlockCloseThead .)* HtmlBlockCloseThead # - # source://rdoc//lib/rdoc/markdown.rb#8117 + # source://rdoc/lib/rdoc/markdown.rb#8127 def _HtmlBlockThead; end # HtmlBlockTr = HtmlBlockOpenTr (HtmlBlockTr | !HtmlBlockCloseTr .)* HtmlBlockCloseTr # - # source://rdoc//lib/rdoc/markdown.rb#8283 + # source://rdoc/lib/rdoc/markdown.rb#8293 def _HtmlBlockTr; end # HtmlBlockType = ("ADDRESS" | "BLOCKQUOTE" | "CENTER" | "DD" | "DIR" | "DIV" | "DL" | "DT" | "FIELDSET" | "FORM" | "FRAMESET" | "H1" | "H2" | "H3" | "H4" | "H5" | "H6" | "HR" | "ISINDEX" | "LI" | "MENU" | "NOFRAMES" | "NOSCRIPT" | "OL" | "P" | "PRE" | "SCRIPT" | "TABLE" | "TBODY" | "TD" | "TFOOT" | "TH" | "THEAD" | "TR" | "UL" | "address" | "blockquote" | "center" | "dd" | "dir" | "div" | "dl" | "dt" | "fieldset" | "form" | "frameset" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "hr" | "isindex" | "li" | "menu" | "noframes" | "noscript" | "ol" | "p" | "pre" | "script" | "table" | "tbody" | "td" | "tfoot" | "th" | "thead" | "tr" | "ul") # - # source://rdoc//lib/rdoc/markdown.rb#8951 + # source://rdoc/lib/rdoc/markdown.rb#8961 def _HtmlBlockType; end # HtmlBlockUl = HtmlBlockOpenUl (HtmlBlockUl | !HtmlBlockCloseUl .)* HtmlBlockCloseUl # - # source://rdoc//lib/rdoc/markdown.rb#6623 + # source://rdoc/lib/rdoc/markdown.rb#6633 def _HtmlBlockUl; end # HtmlCloseAnchor = "<" Spnl "/" ("a" | "A") Spnl ">" # - # source://rdoc//lib/rdoc/markdown.rb#2919 + # source://rdoc/lib/rdoc/markdown.rb#2929 def _HtmlCloseAnchor; end # HtmlComment = "" .)* "-->" # - # source://rdoc//lib/rdoc/markdown.rb#14415 + # source://rdoc/lib/rdoc/markdown.rb#14425 def _HtmlComment; end # HtmlOpenAnchor = "<" Spnl ("a" | "A") Spnl HtmlAttribute* ">" # - # source://rdoc//lib/rdoc/markdown.rb#2863 + # source://rdoc/lib/rdoc/markdown.rb#2873 def _HtmlOpenAnchor; end # HtmlTag = "<" Spnl "/"? AlphanumericAscii+ Spnl HtmlAttribute* "/"? Spnl ">" # - # source://rdoc//lib/rdoc/markdown.rb#14462 + # source://rdoc/lib/rdoc/markdown.rb#14472 def _HtmlTag; end # HtmlUnclosed = "<" Spnl HtmlUnclosedType Spnl HtmlAttribute* Spnl ">" # - # source://rdoc//lib/rdoc/markdown.rb#8828 + # source://rdoc/lib/rdoc/markdown.rb#8838 def _HtmlUnclosed; end # HtmlUnclosedType = ("HR" | "hr") # - # source://rdoc//lib/rdoc/markdown.rb#8878 + # source://rdoc/lib/rdoc/markdown.rb#8888 def _HtmlUnclosedType; end # Image = "!" (ExplicitLink | ReferenceLink):a { "rdoc-image:#{a[/\[(.*)\]/, 1]}" } # - # source://rdoc//lib/rdoc/markdown.rb#10972 + # source://rdoc/lib/rdoc/markdown.rb#10982 def _Image; end # InStyleTags = StyleOpen (!StyleClose .)* StyleClose # - # source://rdoc//lib/rdoc/markdown.rb#9281 + # source://rdoc/lib/rdoc/markdown.rb#9291 def _InStyleTags; end # Indent = /\t| / # - # source://rdoc//lib/rdoc/markdown.rb#14860 + # source://rdoc/lib/rdoc/markdown.rb#14870 def _Indent; end # IndentedLine = Indent Line # - # source://rdoc//lib/rdoc/markdown.rb#14867 + # source://rdoc/lib/rdoc/markdown.rb#14877 def _IndentedLine; end # Inline = (Str | @Endline | UlOrStarLine | @Space | Strong | Emph | Strike | Image | Link | NoteReference | InlineNote | Code | RawHtml | Entity | EscapedChar | Symbol) # - # source://rdoc//lib/rdoc/markdown.rb#9586 + # source://rdoc/lib/rdoc/markdown.rb#9596 def _Inline; end # InlineNote = &{ notes? } "^[" @StartList:a (!"]" Inline:l { a << l })+ "]" { ref = [:inline, @note_order.length] @footnotes[ref] = paragraph a note_for ref } # - # source://rdoc//lib/rdoc/markdown.rb#15431 + # source://rdoc/lib/rdoc/markdown.rb#15441 def _InlineNote; end # Inlines = (!@Endline Inline:i { i } | @Endline:c !(&{ github? } Ticks3 /[^`\n]*$/) &Inline { c })+:chunks @Endline? { chunks } # - # source://rdoc//lib/rdoc/markdown.rb#9365 + # source://rdoc/lib/rdoc/markdown.rb#9375 def _Inlines; end # Label = "[" (!"^" &{ notes? } | &. &{ !notes? }) @StartList:a (!"]" Inline:l { a << l })* "]" { a.join.gsub(/\s+/, ' ') } # - # source://rdoc//lib/rdoc/markdown.rb#11907 + # source://rdoc/lib/rdoc/markdown.rb#11917 def _Label; end # Line = @RawLine:a { a } # - # source://rdoc//lib/rdoc/markdown.rb#14938 + # source://rdoc/lib/rdoc/markdown.rb#14948 def _Line; end # LineBreak = " " @NormalEndline { RDoc::Markup::HardBreak.new } # - # source://rdoc//lib/rdoc/markdown.rb#10042 + # source://rdoc/lib/rdoc/markdown.rb#10052 def _LineBreak; end # Link = (ExplicitLink | ReferenceLink | AutoLink) # - # source://rdoc//lib/rdoc/markdown.rb#11011 + # source://rdoc/lib/rdoc/markdown.rb#11021 def _Link; end # ListBlock = !@BlankLine Line:a ListBlockLine*:c { [a, *c] } # - # source://rdoc//lib/rdoc/markdown.rb#2548 + # source://rdoc/lib/rdoc/markdown.rb#2558 def _ListBlock; end # ListBlockLine = !@BlankLine !(Indent? (Bullet | Enumerator)) !HorizontalRule OptionallyIndentedLine # - # source://rdoc//lib/rdoc/markdown.rb#2793 + # source://rdoc/lib/rdoc/markdown.rb#2803 def _ListBlockLine; end # ListContinuationBlock = @StartList:a @BlankLine* { a << "\n" } (Indent ListBlock:b { a.concat b })+ { a } # - # source://rdoc//lib/rdoc/markdown.rb#2592 + # source://rdoc/lib/rdoc/markdown.rb#2602 def _ListContinuationBlock; end # ListItem = (Bullet | Enumerator) @StartList:a ListBlock:b { a << b } (ListContinuationBlock:c { a.push(*c) })* { list_item_from a } # - # source://rdoc//lib/rdoc/markdown.rb#2392 + # source://rdoc/lib/rdoc/markdown.rb#2402 def _ListItem; end # ListItemTight = (Bullet | Enumerator) ListBlock:a (!@BlankLine ListContinuationBlock:b { a.push(*b) })* !ListContinuationBlock { list_item_from a } # - # source://rdoc//lib/rdoc/markdown.rb#2468 + # source://rdoc/lib/rdoc/markdown.rb#2478 def _ListItemTight; end # ListLoose = @StartList:a (ListItem:b @BlankLine* { a << b })+ { a } # - # source://rdoc//lib/rdoc/markdown.rb#2304 + # source://rdoc/lib/rdoc/markdown.rb#2314 def _ListLoose; end # ListTight = ListItemTight+:a @BlankLine* !(Bullet | Enumerator) { a } # - # source://rdoc//lib/rdoc/markdown.rb#2239 + # source://rdoc/lib/rdoc/markdown.rb#2249 def _ListTight; end # Newline = %literals.Newline # - # source://rdoc//lib/rdoc/markdown.rb#14726 + # source://rdoc/lib/rdoc/markdown.rb#14736 def _Newline; end # NonblankIndentedLine = !@BlankLine IndentedLine # - # source://rdoc//lib/rdoc/markdown.rb#1821 + # source://rdoc/lib/rdoc/markdown.rb#1831 def _NonblankIndentedLine; end # NonindentSpace = / {0,3}/ # - # source://rdoc//lib/rdoc/markdown.rb#14853 + # source://rdoc/lib/rdoc/markdown.rb#14863 def _NonindentSpace; end # Nonspacechar = !@Spacechar !@Newline . # - # source://rdoc//lib/rdoc/markdown.rb#14552 + # source://rdoc/lib/rdoc/markdown.rb#14562 def _Nonspacechar; end # NormalChar = !(@SpecialChar | @Spacechar | @Newline) . # - # source://rdoc//lib/rdoc/markdown.rb#14653 + # source://rdoc/lib/rdoc/markdown.rb#14663 def _NormalChar; end # NormalEndline = @Sp @Newline !@BlankLine !">" !AtxStart !(Line /={1,}|-{1,}/ @Newline) { "\n" } # - # source://rdoc//lib/rdoc/markdown.rb#9938 + # source://rdoc/lib/rdoc/markdown.rb#9948 def _NormalEndline; end # Note = &{ notes? } @NonindentSpace RawNoteReference:ref ":" @Sp @StartList:a RawNoteBlock:i { a.concat i } (&Indent RawNoteBlock:i { a.concat i })* { @footnotes[ref] = paragraph a nil } # - # source://rdoc//lib/rdoc/markdown.rb#15333 + # source://rdoc/lib/rdoc/markdown.rb#15343 def _Note; end # NoteReference = &{ notes? } RawNoteReference:ref { note_for ref } # - # source://rdoc//lib/rdoc/markdown.rb#15207 + # source://rdoc/lib/rdoc/markdown.rb#15217 def _NoteReference; end # Notes = (Note | SkipBlock)* # - # source://rdoc//lib/rdoc/markdown.rb#15538 + # source://rdoc/lib/rdoc/markdown.rb#15548 def _Notes; end # OptionallyIndentedLine = Indent? Line # - # source://rdoc//lib/rdoc/markdown.rb#14888 + # source://rdoc/lib/rdoc/markdown.rb#14898 def _OptionallyIndentedLine; end # OrderedList = &Enumerator (ListTight | ListLoose):a { RDoc::Markup::List.new(:NUMBER, *a) } # - # source://rdoc//lib/rdoc/markdown.rb#2752 + # source://rdoc/lib/rdoc/markdown.rb#2762 def _OrderedList; end # Para = @NonindentSpace Inlines:a @BlankLine+ { paragraph a } # - # source://rdoc//lib/rdoc/markdown.rb#1014 + # source://rdoc/lib/rdoc/markdown.rb#1014 def _Para; end # Plain = Inlines:a { paragraph a } # - # source://rdoc//lib/rdoc/markdown.rb#1057 + # source://rdoc/lib/rdoc/markdown.rb#1057 def _Plain; end # Quoted = ("\"" (!"\"" .)* "\"" | "'" (!"'" .)* "'") # - # source://rdoc//lib/rdoc/markdown.rb#14175 + # source://rdoc/lib/rdoc/markdown.rb#14185 def _Quoted; end # RawHtml = < (HtmlComment | HtmlBlockScript | HtmlTag) > { if html? then text else '' end } # - # source://rdoc//lib/rdoc/markdown.rb#14108 + # source://rdoc/lib/rdoc/markdown.rb#14118 def _RawHtml; end # RawLine = (< /[^\r\n]*/ @Newline > | < .+ > @Eof) { text } # - # source://rdoc//lib/rdoc/markdown.rb#14961 + # source://rdoc/lib/rdoc/markdown.rb#14971 def _RawLine; end # RawNoteBlock = @StartList:a (!@BlankLine !RawNoteReference OptionallyIndentedLine:l { a << l })+ < @BlankLine* > { a << text } { a } # - # source://rdoc//lib/rdoc/markdown.rb#15560 + # source://rdoc/lib/rdoc/markdown.rb#15570 def _RawNoteBlock; end # RawNoteReference = "[^" < (!@Newline !"]" .)+ > "]" { text } # - # source://rdoc//lib/rdoc/markdown.rb#15237 + # source://rdoc/lib/rdoc/markdown.rb#15247 def _RawNoteReference; end # RefSrc = < Nonspacechar+ > { text } # - # source://rdoc//lib/rdoc/markdown.rb#12026 + # source://rdoc/lib/rdoc/markdown.rb#12036 def _RefSrc; end # RefTitle = (RefTitleSingle | RefTitleDouble | RefTitleParens | EmptyTitle) # - # source://rdoc//lib/rdoc/markdown.rb#12062 + # source://rdoc/lib/rdoc/markdown.rb#12072 def _RefTitle; end # RefTitleDouble = Spnl "\"" < (!("\"" @Sp @Newline | @Newline) .)* > "\"" { text } # - # source://rdoc//lib/rdoc/markdown.rb#12185 + # source://rdoc/lib/rdoc/markdown.rb#12195 def _RefTitleDouble; end # RefTitleParens = Spnl "(" < (!(")" @Sp @Newline | @Newline) .)* > ")" { text } # - # source://rdoc//lib/rdoc/markdown.rb#12277 + # source://rdoc/lib/rdoc/markdown.rb#12287 def _RefTitleParens; end # RefTitleSingle = Spnl "'" < (!("'" @Sp @Newline | @Newline) .)* > "'" { text } # - # source://rdoc//lib/rdoc/markdown.rb#12093 + # source://rdoc/lib/rdoc/markdown.rb#12103 def _RefTitleSingle; end # Reference = @NonindentSpace !"[]" Label:label ":" Spnl RefSrc:link RefTitle @BlankLine+ { # TODO use title reference label, link nil } # - # source://rdoc//lib/rdoc/markdown.rb#11832 + # source://rdoc/lib/rdoc/markdown.rb#11842 def _Reference; end # ReferenceLink = (ReferenceLinkDouble | ReferenceLinkSingle) # - # source://rdoc//lib/rdoc/markdown.rb#11032 + # source://rdoc/lib/rdoc/markdown.rb#11042 def _ReferenceLink; end # ReferenceLinkDouble = Label:content < Spnl > !"[]" Label:label { link_to content, label, text } # - # source://rdoc//lib/rdoc/markdown.rb#11050 + # source://rdoc/lib/rdoc/markdown.rb#11060 def _ReferenceLinkDouble; end # ReferenceLinkSingle = Label:content < (Spnl "[]")? > { link_to content, content, text } # - # source://rdoc//lib/rdoc/markdown.rb#11096 + # source://rdoc/lib/rdoc/markdown.rb#11106 def _ReferenceLinkSingle; end # References = (Reference | SkipBlock)* # - # source://rdoc//lib/rdoc/markdown.rb#12369 + # source://rdoc/lib/rdoc/markdown.rb#12379 def _References; end # SetextBottom1 = /={1,}/ @Newline # - # source://rdoc//lib/rdoc/markdown.rb#1262 + # source://rdoc/lib/rdoc/markdown.rb#1272 def _SetextBottom1; end # SetextBottom2 = /-{1,}/ @Newline # - # source://rdoc//lib/rdoc/markdown.rb#1283 + # source://rdoc/lib/rdoc/markdown.rb#1293 def _SetextBottom2; end # SetextHeading = (SetextHeading1 | SetextHeading2) # - # source://rdoc//lib/rdoc/markdown.rb#1244 + # source://rdoc/lib/rdoc/markdown.rb#1254 def _SetextHeading; end # SetextHeading1 = &(@RawLine SetextBottom1) @StartList:a (!@Endline Inline:b { a << b })+ @Sp @Newline SetextBottom1 { RDoc::Markup::Heading.new(1, a.join) } # - # source://rdoc//lib/rdoc/markdown.rb#1304 + # source://rdoc/lib/rdoc/markdown.rb#1314 def _SetextHeading1; end # SetextHeading2 = &(@RawLine SetextBottom2) @StartList:a (!@Endline Inline:b { a << b })+ @Sp @Newline SetextBottom2 { RDoc::Markup::Heading.new(2, a.join) } # - # source://rdoc//lib/rdoc/markdown.rb#1426 + # source://rdoc/lib/rdoc/markdown.rb#1436 def _SetextHeading2; end # SkipBlock = (HtmlBlock | (!"#" !SetextBottom1 !SetextBottom2 !@BlankLine @RawLine)+ @BlankLine* | @BlankLine+ | @RawLine) # - # source://rdoc//lib/rdoc/markdown.rb#15040 + # source://rdoc/lib/rdoc/markdown.rb#15050 def _SkipBlock; end # Source = ("<" < SourceContents > ">" | < SourceContents >) { text } # - # source://rdoc//lib/rdoc/markdown.rb#11206 + # source://rdoc/lib/rdoc/markdown.rb#11216 def _Source; end # SourceContents = ((!"(" !")" !">" Nonspacechar)+ | "(" SourceContents ")")* # - # source://rdoc//lib/rdoc/markdown.rb#11266 + # source://rdoc/lib/rdoc/markdown.rb#11276 def _SourceContents; end # Sp = @Spacechar* # - # source://rdoc//lib/rdoc/markdown.rb#14584 + # source://rdoc/lib/rdoc/markdown.rb#14594 def _Sp; end # Space = @Spacechar+ { " " } # - # source://rdoc//lib/rdoc/markdown.rb#9646 + # source://rdoc/lib/rdoc/markdown.rb#9656 def _Space; end # Spacechar = %literals.Spacechar # - # source://rdoc//lib/rdoc/markdown.rb#14733 + # source://rdoc/lib/rdoc/markdown.rb#14743 def _Spacechar; end # SpecialChar = (/[~*_`&\[\]() { text } | < @Spacechar /\*+/ &@Spacechar > { text }) # - # source://rdoc//lib/rdoc/markdown.rb#10129 + # source://rdoc/lib/rdoc/markdown.rb#10139 def _StarLine; end # StartList = &. { [] } # - # source://rdoc//lib/rdoc/markdown.rb#14914 + # source://rdoc/lib/rdoc/markdown.rb#14924 def _StartList; end # Str = @StartList:a < @NormalChar+ > { a = text } (StrChunk:c { a << c })* { a } # - # source://rdoc//lib/rdoc/markdown.rb#9678 + # source://rdoc/lib/rdoc/markdown.rb#9688 def _Str; end # StrChunk = < (@NormalChar | /_+/ &Alphanumeric)+ > { text } # - # source://rdoc//lib/rdoc/markdown.rb#9751 + # source://rdoc/lib/rdoc/markdown.rb#9761 def _StrChunk; end # Strike = &{ strike? } "~~" !@Whitespace @StartList:a (!"~~" Inline:b { a << b })+ "~~" { strike a.join } # - # source://rdoc//lib/rdoc/markdown.rb#10861 + # source://rdoc/lib/rdoc/markdown.rb#10871 def _Strike; end # Strong = (StrongStar | StrongUl) # - # source://rdoc//lib/rdoc/markdown.rb#10635 + # source://rdoc/lib/rdoc/markdown.rb#10645 def _Strong; end # StrongStar = "**" !@Whitespace @StartList:a (!"**" Inline:b { a << b })+ "**" { strong a.join } # - # source://rdoc//lib/rdoc/markdown.rb#10653 + # source://rdoc/lib/rdoc/markdown.rb#10663 def _StrongStar; end # StrongUl = "__" !@Whitespace @StartList:a (!"__" Inline:b { a << b })+ "__" { strong a.join } # - # source://rdoc//lib/rdoc/markdown.rb#10757 + # source://rdoc/lib/rdoc/markdown.rb#10767 def _StrongUl; end # StyleBlock = < InStyleTags > @BlankLine* { if css? then RDoc::Markup::Raw.new text end } # - # source://rdoc//lib/rdoc/markdown.rb#9328 + # source://rdoc/lib/rdoc/markdown.rb#9338 def _StyleBlock; end # StyleClose = "<" Spnl "/" ("style" | "STYLE") Spnl ">" # - # source://rdoc//lib/rdoc/markdown.rb#9229 + # source://rdoc/lib/rdoc/markdown.rb#9239 def _StyleClose; end # StyleOpen = "<" Spnl ("style" | "STYLE") Spnl HtmlAttribute* ">" # - # source://rdoc//lib/rdoc/markdown.rb#9173 + # source://rdoc/lib/rdoc/markdown.rb#9183 def _StyleOpen; end # Symbol = < @SpecialChar > { text } # - # source://rdoc//lib/rdoc/markdown.rb#10069 + # source://rdoc/lib/rdoc/markdown.rb#10079 def _Symbol; end # Table = &{ github? } TableHead:header TableLine:line TableRow+:body { table = RDoc::Markup::Table.new(header, line, body) } # - # source://rdoc//lib/rdoc/markdown.rb#15937 + # source://rdoc/lib/rdoc/markdown.rb#15947 def _Table; end # TableAlign = < /:?-+:?/ > @Sp { text.start_with?(":") ? (text.end_with?(":") ? :center : :left) : (text.end_with?(":") ? :right : nil) } # - # source://rdoc//lib/rdoc/markdown.rb#16304 + # source://rdoc/lib/rdoc/markdown.rb#16314 def _TableAlign; end # TableAlign2 = "|" @Sp TableAlign # - # source://rdoc//lib/rdoc/markdown.rb#16278 + # source://rdoc/lib/rdoc/markdown.rb#16288 def _TableAlign2; end # TableHead = TableItem2+:items "|"? @Newline { items } # - # source://rdoc//lib/rdoc/markdown.rb#15993 + # source://rdoc/lib/rdoc/markdown.rb#16003 def _TableHead; end # TableItem = < /(?:\\.|[^|\n])+/ > { text.strip.gsub(/\\(.)/, '\1') } # - # source://rdoc//lib/rdoc/markdown.rb#16159 + # source://rdoc/lib/rdoc/markdown.rb#16169 def _TableItem; end # TableItem2 = "|" TableItem # - # source://rdoc//lib/rdoc/markdown.rb#16138 + # source://rdoc/lib/rdoc/markdown.rb#16148 def _TableItem2; end # TableLine = ((TableAlign:align1 TableAlign2*:aligns {[align1, *aligns] }):line | TableAlign2+:line) "|"? @Newline { line } # - # source://rdoc//lib/rdoc/markdown.rb#16185 + # source://rdoc/lib/rdoc/markdown.rb#16195 def _TableLine; end # TableRow = ((TableItem:item1 TableItem2*:items { [item1, *items] }):row | TableItem2+:row) "|"? @Newline { row } # - # source://rdoc//lib/rdoc/markdown.rb#16045 + # source://rdoc/lib/rdoc/markdown.rb#16055 def _TableRow; end # TerminalEndline = @Sp @Newline @Eof # - # source://rdoc//lib/rdoc/markdown.rb#10016 + # source://rdoc/lib/rdoc/markdown.rb#10026 def _TerminalEndline; end # Ticks1 = "`" !"`" # - # source://rdoc//lib/rdoc/markdown.rb#12391 + # source://rdoc/lib/rdoc/markdown.rb#12401 def _Ticks1; end # Ticks2 = "``" !"`" # - # source://rdoc//lib/rdoc/markdown.rb#12415 + # source://rdoc/lib/rdoc/markdown.rb#12425 def _Ticks2; end # Ticks3 = "```" !"`" # - # source://rdoc//lib/rdoc/markdown.rb#12439 + # source://rdoc/lib/rdoc/markdown.rb#12449 def _Ticks3; end # Ticks4 = "````" !"`" # - # source://rdoc//lib/rdoc/markdown.rb#12463 + # source://rdoc/lib/rdoc/markdown.rb#12473 def _Ticks4; end # Ticks5 = "`````" !"`" # - # source://rdoc//lib/rdoc/markdown.rb#12487 + # source://rdoc/lib/rdoc/markdown.rb#12497 def _Ticks5; end # Title = (TitleSingle | TitleDouble | ""):a { a } # - # source://rdoc//lib/rdoc/markdown.rb#11383 + # source://rdoc/lib/rdoc/markdown.rb#11393 def _Title; end # TitleDouble = "\"" (!("\"" @Sp (")" | @Newline)) .)* "\"" # - # source://rdoc//lib/rdoc/markdown.rb#11497 + # source://rdoc/lib/rdoc/markdown.rb#11507 def _TitleDouble; end # TitleSingle = "'" (!("'" @Sp (")" | @Newline)) .)* "'" # - # source://rdoc//lib/rdoc/markdown.rb#11420 + # source://rdoc/lib/rdoc/markdown.rb#11430 def _TitleSingle; end # UlLine = (< /_{4,}/ > { text } | < @Spacechar /_+/ &@Spacechar > { text }) # - # source://rdoc//lib/rdoc/markdown.rb#10206 + # source://rdoc/lib/rdoc/markdown.rb#10216 def _UlLine; end # UlOrStarLine = (UlLine | StarLine):a { a } # - # source://rdoc//lib/rdoc/markdown.rb#10095 + # source://rdoc/lib/rdoc/markdown.rb#10105 def _UlOrStarLine; end # Verbatim = VerbatimChunk+:a { RDoc::Markup::Verbatim.new(*a.flatten) } # - # source://rdoc//lib/rdoc/markdown.rb#1895 + # source://rdoc/lib/rdoc/markdown.rb#1905 def _Verbatim; end # VerbatimChunk = @BlankLine*:a NonblankIndentedLine+:b { a.concat b } # - # source://rdoc//lib/rdoc/markdown.rb#1845 + # source://rdoc/lib/rdoc/markdown.rb#1855 def _VerbatimChunk; end # Whitespace = (@Spacechar | @Newline) # - # source://rdoc//lib/rdoc/markdown.rb#10301 + # source://rdoc/lib/rdoc/markdown.rb#10311 def _Whitespace; end # root = Doc # - # source://rdoc//lib/rdoc/markdown.rb#892 + # source://rdoc/lib/rdoc/markdown.rb#892 def _root; end - # source://rdoc//lib/rdoc/markdown.rb#502 + # source://rdoc/lib/rdoc/markdown.rb#502 def apply(rule); end - # source://rdoc//lib/rdoc/markdown.rb#468 + # source://rdoc/lib/rdoc/markdown.rb#468 def apply_with_args(rule, *args); end - # source://rdoc//lib/rdoc/markdown.rb#610 + # source://rdoc/lib/rdoc/markdown.rb#610 def break_on_newline=(enable); end - # source://rdoc//lib/rdoc/markdown.rb#606 + # source://rdoc/lib/rdoc/markdown.rb#606 def break_on_newline?; end - # source://rdoc//lib/rdoc/markdown.rb#610 + # source://rdoc/lib/rdoc/markdown.rb#610 def css=(enable); end - # source://rdoc//lib/rdoc/markdown.rb#606 + # source://rdoc/lib/rdoc/markdown.rb#606 def css?; end - # source://rdoc//lib/rdoc/markdown.rb#250 + # source://rdoc/lib/rdoc/markdown.rb#250 def current_character(target = T.unsafe(nil)); end - # source://rdoc//lib/rdoc/markdown.rb#211 + # source://rdoc/lib/rdoc/markdown.rb#211 def current_column(target = T.unsafe(nil)); end - # source://rdoc//lib/rdoc/markdown.rb#234 + # source://rdoc/lib/rdoc/markdown.rb#234 def current_line(target = T.unsafe(nil)); end - # source://rdoc//lib/rdoc/markdown.rb#259 + # source://rdoc/lib/rdoc/markdown.rb#259 def current_pos_info(target = T.unsafe(nil)); end - # source://rdoc//lib/rdoc/markdown.rb#610 + # source://rdoc/lib/rdoc/markdown.rb#610 def definition_lists=(enable); end - # source://rdoc//lib/rdoc/markdown.rb#606 + # source://rdoc/lib/rdoc/markdown.rb#606 def definition_lists?; end # Wraps `text` in emphasis for rdoc inline formatting # - # source://rdoc//lib/rdoc/markdown.rb#683 + # source://rdoc/lib/rdoc/markdown.rb#683 def emphasis(text); end # :category: Extensions # # Enables or disables the extension with `name` # - # source://rdoc//lib/rdoc/markdown.rb#705 + # source://rdoc/lib/rdoc/markdown.rb#705 def extension(name, enable); end # :category: Extensions @@ -4122,65 +4160,65 @@ class RDoc::Markdown # # @return [Boolean] # - # source://rdoc//lib/rdoc/markdown.rb#696 + # source://rdoc/lib/rdoc/markdown.rb#696 def extension?(name); end - # source://rdoc//lib/rdoc/markdown.rb#449 + # source://rdoc/lib/rdoc/markdown.rb#449 def external_invoke(other, rule, *args); end # Returns the value of attribute failed_rule. # - # source://rdoc//lib/rdoc/markdown.rb#371 + # source://rdoc/lib/rdoc/markdown.rb#371 def failed_rule; end # Returns the value of attribute failing_rule_offset. # - # source://rdoc//lib/rdoc/markdown.rb#208 + # source://rdoc/lib/rdoc/markdown.rb#208 def failing_rule_offset; end - # source://rdoc//lib/rdoc/markdown.rb#318 + # source://rdoc/lib/rdoc/markdown.rb#318 def failure_caret; end - # source://rdoc//lib/rdoc/markdown.rb#323 + # source://rdoc/lib/rdoc/markdown.rb#323 def failure_character; end - # source://rdoc//lib/rdoc/markdown.rb#306 + # source://rdoc/lib/rdoc/markdown.rb#306 def failure_info; end - # source://rdoc//lib/rdoc/markdown.rb#327 + # source://rdoc/lib/rdoc/markdown.rb#327 def failure_oneline; end - # source://rdoc//lib/rdoc/markdown.rb#393 + # source://rdoc/lib/rdoc/markdown.rb#393 def get_byte; end - # source://rdoc//lib/rdoc/markdown.rb#271 + # source://rdoc/lib/rdoc/markdown.rb#271 def get_line(no); end - # source://rdoc//lib/rdoc/markdown.rb#285 + # source://rdoc/lib/rdoc/markdown.rb#285 def get_text(start); end - # source://rdoc//lib/rdoc/markdown.rb#610 + # source://rdoc/lib/rdoc/markdown.rb#610 def github=(enable); end - # source://rdoc//lib/rdoc/markdown.rb#606 + # source://rdoc/lib/rdoc/markdown.rb#606 def github?; end - # source://rdoc//lib/rdoc/markdown.rb#535 + # source://rdoc/lib/rdoc/markdown.rb#535 def grow_lr(rule, args, start_pos, m); end - # source://rdoc//lib/rdoc/markdown.rb#610 + # source://rdoc/lib/rdoc/markdown.rb#610 def html=(enable); end - # source://rdoc//lib/rdoc/markdown.rb#606 + # source://rdoc/lib/rdoc/markdown.rb#606 def html?; end # Parses `text` in a clone of this parser. This is used for handling nested # lists the same way as markdown_parser. # - # source://rdoc//lib/rdoc/markdown.rb#717 + # source://rdoc/lib/rdoc/markdown.rb#717 def inner_parse(text); end - # source://rdoc//lib/rdoc/markdown.rb#267 + # source://rdoc/lib/rdoc/markdown.rb#267 def lines; end # Finds a link reference for `label` and creates a new link to it with @@ -4190,136 +4228,136 @@ class RDoc::Markdown # # @raise [ParseError] # - # source://rdoc//lib/rdoc/markdown.rb#737 + # source://rdoc/lib/rdoc/markdown.rb#737 def link_to(content, label = T.unsafe(nil), text = T.unsafe(nil)); end # Creates an RDoc::Markup::ListItem by parsing the `unparsed` content from # the first parsing pass. # - # source://rdoc//lib/rdoc/markdown.rb#754 + # source://rdoc/lib/rdoc/markdown.rb#754 def list_item_from(unparsed); end - # source://rdoc//lib/rdoc/markdown.rb#373 + # source://rdoc/lib/rdoc/markdown.rb#373 def match_string(str); end # Stores `label` as a note and fills in previously unknown note references. # - # source://rdoc//lib/rdoc/markdown.rb#762 + # source://rdoc/lib/rdoc/markdown.rb#762 def note(label); end # Creates a new link for the footnote `reference` and adds the reference to # the note order list for proper display at the end of the document. # - # source://rdoc//lib/rdoc/markdown.rb#776 + # source://rdoc/lib/rdoc/markdown.rb#776 def note_for(ref); end - # source://rdoc//lib/rdoc/markdown.rb#610 + # source://rdoc/lib/rdoc/markdown.rb#610 def notes=(enable); end - # source://rdoc//lib/rdoc/markdown.rb#606 + # source://rdoc/lib/rdoc/markdown.rb#606 def notes?; end # Creates an RDoc::Markup::Paragraph from `parts` and including # extension-specific behavior # - # source://rdoc//lib/rdoc/markdown.rb#793 + # source://rdoc/lib/rdoc/markdown.rb#793 def paragraph(parts); end # Parses `markdown` into an RDoc::Document # - # source://rdoc//lib/rdoc/markdown.rb#808 + # source://rdoc/lib/rdoc/markdown.rb#808 def parse(markdown); end # The internal kpeg parse method # - # source://rdoc//lib/rdoc/markdown.rb#414 + # source://rdoc/lib/rdoc/markdown.rb#414 def peg_parse(rule = T.unsafe(nil)); end # Returns the value of attribute pos. # - # source://rdoc//lib/rdoc/markdown.rb#209 + # source://rdoc/lib/rdoc/markdown.rb#209 def pos; end # Sets the attribute pos # # @param value the value to set the attribute pos to. # - # source://rdoc//lib/rdoc/markdown.rb#209 + # source://rdoc/lib/rdoc/markdown.rb#209 def pos=(_arg0); end - # source://rdoc//lib/rdoc/markdown.rb#221 + # source://rdoc/lib/rdoc/markdown.rb#221 def position_line_offsets; end # @raise [ParseError] # - # source://rdoc//lib/rdoc/markdown.rb#341 + # source://rdoc/lib/rdoc/markdown.rb#341 def raise_error; end # Stores `label` as a reference to `link` and fills in previously unknown # link references. # - # source://rdoc//lib/rdoc/markdown.rb#855 + # source://rdoc/lib/rdoc/markdown.rb#855 def reference(label, link); end # Returns the value of attribute result. # - # source://rdoc//lib/rdoc/markdown.rb#209 + # source://rdoc/lib/rdoc/markdown.rb#209 def result; end # Sets the attribute result # # @param value the value to set the attribute result to. # - # source://rdoc//lib/rdoc/markdown.rb#209 + # source://rdoc/lib/rdoc/markdown.rb#209 def result=(_arg0); end - # source://rdoc//lib/rdoc/markdown.rb#383 + # source://rdoc/lib/rdoc/markdown.rb#383 def scan(reg); end - # source://rdoc//lib/rdoc/markdown.rb#364 + # source://rdoc/lib/rdoc/markdown.rb#364 def set_failed_rule(name); end # Sets the string and current parsing position for the parser. # - # source://rdoc//lib/rdoc/markdown.rb#290 + # source://rdoc/lib/rdoc/markdown.rb#290 def set_string(string, pos); end # :stopdoc: # - # source://rdoc//lib/rdoc/markdown.rb#887 + # source://rdoc/lib/rdoc/markdown.rb#887 def setup_foreign_grammar; end # Prepares for parsing +str+. If you define a custom initialize you must # call this method before #parse # - # source://rdoc//lib/rdoc/markdown.rb#196 + # source://rdoc/lib/rdoc/markdown.rb#196 def setup_parser(str, debug = T.unsafe(nil)); end - # source://rdoc//lib/rdoc/markdown.rb#345 + # source://rdoc/lib/rdoc/markdown.rb#345 def show_error(io = T.unsafe(nil)); end - # source://rdoc//lib/rdoc/markdown.rb#297 + # source://rdoc/lib/rdoc/markdown.rb#297 def show_pos; end # Wraps `text` in strike markup for rdoc inline formatting # - # source://rdoc//lib/rdoc/markdown.rb#877 + # source://rdoc/lib/rdoc/markdown.rb#877 def strike(text); end - # source://rdoc//lib/rdoc/markdown.rb#610 + # source://rdoc/lib/rdoc/markdown.rb#610 def strike=(enable); end - # source://rdoc//lib/rdoc/markdown.rb#606 + # source://rdoc/lib/rdoc/markdown.rb#606 def strike?; end # Returns the value of attribute string. # - # source://rdoc//lib/rdoc/markdown.rb#207 + # source://rdoc/lib/rdoc/markdown.rb#207 def string; end # Wraps `text` in strong markup for rdoc inline formatting # - # source://rdoc//lib/rdoc/markdown.rb#866 + # source://rdoc/lib/rdoc/markdown.rb#866 def strong(text); end private @@ -4331,28 +4369,28 @@ class RDoc::Markdown # # @return [Markdown] a new instance of Markdown # - # source://rdoc//lib/rdoc/markdown.rb#188 + # source://rdoc/lib/rdoc/markdown.rb#188 def orig_initialize(str, debug = T.unsafe(nil)); end class << self # Creates extension methods for the `name` extension to enable and disable # the extension and to query if they are active. # - # source://rdoc//lib/rdoc/markdown.rb#603 + # source://rdoc/lib/rdoc/markdown.rb#603 def extension(name); end # Parses the `markdown` document into an RDoc::Document using the default # extensions. # - # source://rdoc//lib/rdoc/markdown.rb#656 + # source://rdoc/lib/rdoc/markdown.rb#656 def parse(markdown); end - # source://rdoc//lib/rdoc/markdown.rb#566 + # source://rdoc/lib/rdoc/markdown.rb#566 def rule_info(name, rendered); end end end -# source://rdoc//lib/rdoc/markdown.rb#257 +# source://rdoc/lib/rdoc/markdown.rb#257 class RDoc::Markdown::KpegPosInfo < ::Struct # Returns the value of attribute char # @@ -4424,7 +4462,7 @@ end # Unlike peg-markdown, this set of literals recognizes Unicode alphanumeric # characters, newlines and spaces. # -# source://rdoc//lib/rdoc/markdown/literals.rb#11 +# source://rdoc/lib/rdoc/markdown/literals.rb#11 class RDoc::Markdown::Literals # This is distinct from setup_parser so that a standalone parser # can redefine #initialize and still have access to the proper @@ -4432,176 +4470,176 @@ class RDoc::Markdown::Literals # # @return [Literals] a new instance of Literals # - # source://rdoc//lib/rdoc/markdown/literals.rb#17 + # source://rdoc/lib/rdoc/markdown/literals.rb#17 def initialize(str, debug = T.unsafe(nil)); end # Alphanumeric = /\p{Word}/ # - # source://rdoc//lib/rdoc/markdown/literals.rb#405 + # source://rdoc/lib/rdoc/markdown/literals.rb#405 def _Alphanumeric; end # AlphanumericAscii = /[A-Za-z0-9]/ # - # source://rdoc//lib/rdoc/markdown/literals.rb#412 + # source://rdoc/lib/rdoc/markdown/literals.rb#412 def _AlphanumericAscii; end # BOM = "uFEFF" # - # source://rdoc//lib/rdoc/markdown/literals.rb#419 + # source://rdoc/lib/rdoc/markdown/literals.rb#419 def _BOM; end # Newline = /\n|\r\n?|\p{Zl}|\p{Zp}/ # - # source://rdoc//lib/rdoc/markdown/literals.rb#426 + # source://rdoc/lib/rdoc/markdown/literals.rb#426 def _Newline; end # NonAlphanumeric = /\p{^Word}/ # - # source://rdoc//lib/rdoc/markdown/literals.rb#433 + # source://rdoc/lib/rdoc/markdown/literals.rb#433 def _NonAlphanumeric; end # Spacechar = /\t|\p{Zs}/ # - # source://rdoc//lib/rdoc/markdown/literals.rb#440 + # source://rdoc/lib/rdoc/markdown/literals.rb#440 def _Spacechar; end - # source://rdoc//lib/rdoc/markdown/literals.rb#331 + # source://rdoc/lib/rdoc/markdown/literals.rb#331 def apply(rule); end - # source://rdoc//lib/rdoc/markdown/literals.rb#297 + # source://rdoc/lib/rdoc/markdown/literals.rb#297 def apply_with_args(rule, *args); end - # source://rdoc//lib/rdoc/markdown/literals.rb#79 + # source://rdoc/lib/rdoc/markdown/literals.rb#79 def current_character(target = T.unsafe(nil)); end - # source://rdoc//lib/rdoc/markdown/literals.rb#40 + # source://rdoc/lib/rdoc/markdown/literals.rb#40 def current_column(target = T.unsafe(nil)); end - # source://rdoc//lib/rdoc/markdown/literals.rb#63 + # source://rdoc/lib/rdoc/markdown/literals.rb#63 def current_line(target = T.unsafe(nil)); end - # source://rdoc//lib/rdoc/markdown/literals.rb#88 + # source://rdoc/lib/rdoc/markdown/literals.rb#88 def current_pos_info(target = T.unsafe(nil)); end - # source://rdoc//lib/rdoc/markdown/literals.rb#278 + # source://rdoc/lib/rdoc/markdown/literals.rb#278 def external_invoke(other, rule, *args); end # Returns the value of attribute failed_rule. # - # source://rdoc//lib/rdoc/markdown/literals.rb#200 + # source://rdoc/lib/rdoc/markdown/literals.rb#200 def failed_rule; end # Returns the value of attribute failing_rule_offset. # - # source://rdoc//lib/rdoc/markdown/literals.rb#37 + # source://rdoc/lib/rdoc/markdown/literals.rb#37 def failing_rule_offset; end - # source://rdoc//lib/rdoc/markdown/literals.rb#147 + # source://rdoc/lib/rdoc/markdown/literals.rb#147 def failure_caret; end - # source://rdoc//lib/rdoc/markdown/literals.rb#152 + # source://rdoc/lib/rdoc/markdown/literals.rb#152 def failure_character; end - # source://rdoc//lib/rdoc/markdown/literals.rb#135 + # source://rdoc/lib/rdoc/markdown/literals.rb#135 def failure_info; end - # source://rdoc//lib/rdoc/markdown/literals.rb#156 + # source://rdoc/lib/rdoc/markdown/literals.rb#156 def failure_oneline; end - # source://rdoc//lib/rdoc/markdown/literals.rb#222 + # source://rdoc/lib/rdoc/markdown/literals.rb#222 def get_byte; end - # source://rdoc//lib/rdoc/markdown/literals.rb#100 + # source://rdoc/lib/rdoc/markdown/literals.rb#100 def get_line(no); end - # source://rdoc//lib/rdoc/markdown/literals.rb#114 + # source://rdoc/lib/rdoc/markdown/literals.rb#114 def get_text(start); end - # source://rdoc//lib/rdoc/markdown/literals.rb#364 + # source://rdoc/lib/rdoc/markdown/literals.rb#364 def grow_lr(rule, args, start_pos, m); end - # source://rdoc//lib/rdoc/markdown/literals.rb#96 + # source://rdoc/lib/rdoc/markdown/literals.rb#96 def lines; end - # source://rdoc//lib/rdoc/markdown/literals.rb#202 + # source://rdoc/lib/rdoc/markdown/literals.rb#202 def match_string(str); end - # source://rdoc//lib/rdoc/markdown/literals.rb#243 + # source://rdoc/lib/rdoc/markdown/literals.rb#243 def parse(rule = T.unsafe(nil)); end # Returns the value of attribute pos. # - # source://rdoc//lib/rdoc/markdown/literals.rb#38 + # source://rdoc/lib/rdoc/markdown/literals.rb#38 def pos; end # Sets the attribute pos # # @param value the value to set the attribute pos to. # - # source://rdoc//lib/rdoc/markdown/literals.rb#38 + # source://rdoc/lib/rdoc/markdown/literals.rb#38 def pos=(_arg0); end - # source://rdoc//lib/rdoc/markdown/literals.rb#50 + # source://rdoc/lib/rdoc/markdown/literals.rb#50 def position_line_offsets; end # @raise [ParseError] # - # source://rdoc//lib/rdoc/markdown/literals.rb#170 + # source://rdoc/lib/rdoc/markdown/literals.rb#170 def raise_error; end # Returns the value of attribute result. # - # source://rdoc//lib/rdoc/markdown/literals.rb#38 + # source://rdoc/lib/rdoc/markdown/literals.rb#38 def result; end # Sets the attribute result # # @param value the value to set the attribute result to. # - # source://rdoc//lib/rdoc/markdown/literals.rb#38 + # source://rdoc/lib/rdoc/markdown/literals.rb#38 def result=(_arg0); end - # source://rdoc//lib/rdoc/markdown/literals.rb#212 + # source://rdoc/lib/rdoc/markdown/literals.rb#212 def scan(reg); end - # source://rdoc//lib/rdoc/markdown/literals.rb#193 + # source://rdoc/lib/rdoc/markdown/literals.rb#193 def set_failed_rule(name); end # Sets the string and current parsing position for the parser. # - # source://rdoc//lib/rdoc/markdown/literals.rb#119 + # source://rdoc/lib/rdoc/markdown/literals.rb#119 def set_string(string, pos); end # :startdoc: # :stopdoc: # - # source://rdoc//lib/rdoc/markdown/literals.rb#402 + # source://rdoc/lib/rdoc/markdown/literals.rb#402 def setup_foreign_grammar; end # Prepares for parsing +str+. If you define a custom initialize you must # call this method before #parse # - # source://rdoc//lib/rdoc/markdown/literals.rb#25 + # source://rdoc/lib/rdoc/markdown/literals.rb#25 def setup_parser(str, debug = T.unsafe(nil)); end - # source://rdoc//lib/rdoc/markdown/literals.rb#174 + # source://rdoc/lib/rdoc/markdown/literals.rb#174 def show_error(io = T.unsafe(nil)); end - # source://rdoc//lib/rdoc/markdown/literals.rb#126 + # source://rdoc/lib/rdoc/markdown/literals.rb#126 def show_pos; end # Returns the value of attribute string. # - # source://rdoc//lib/rdoc/markdown/literals.rb#36 + # source://rdoc/lib/rdoc/markdown/literals.rb#36 def string; end class << self - # source://rdoc//lib/rdoc/markdown/literals.rb#395 + # source://rdoc/lib/rdoc/markdown/literals.rb#395 def rule_info(name, rendered); end end end -# source://rdoc//lib/rdoc/markdown/literals.rb#86 +# source://rdoc/lib/rdoc/markdown/literals.rb#86 class RDoc::Markdown::Literals::KpegPosInfo < ::Struct # Returns the value of attribute char # @@ -4667,129 +4705,129 @@ class RDoc::Markdown::Literals::KpegPosInfo < ::Struct end end -# source://rdoc//lib/rdoc/markdown/literals.rb#257 +# source://rdoc/lib/rdoc/markdown/literals.rb#257 class RDoc::Markdown::Literals::MemoEntry # @return [MemoEntry] a new instance of MemoEntry # - # source://rdoc//lib/rdoc/markdown/literals.rb#258 + # source://rdoc/lib/rdoc/markdown/literals.rb#258 def initialize(ans, pos); end # Returns the value of attribute ans. # - # source://rdoc//lib/rdoc/markdown/literals.rb#266 + # source://rdoc/lib/rdoc/markdown/literals.rb#266 def ans; end # Returns the value of attribute left_rec. # - # source://rdoc//lib/rdoc/markdown/literals.rb#267 + # source://rdoc/lib/rdoc/markdown/literals.rb#267 def left_rec; end # Sets the attribute left_rec # # @param value the value to set the attribute left_rec to. # - # source://rdoc//lib/rdoc/markdown/literals.rb#267 + # source://rdoc/lib/rdoc/markdown/literals.rb#267 def left_rec=(_arg0); end - # source://rdoc//lib/rdoc/markdown/literals.rb#269 + # source://rdoc/lib/rdoc/markdown/literals.rb#269 def move!(ans, pos, result); end # Returns the value of attribute pos. # - # source://rdoc//lib/rdoc/markdown/literals.rb#266 + # source://rdoc/lib/rdoc/markdown/literals.rb#266 def pos; end # Returns the value of attribute result. # - # source://rdoc//lib/rdoc/markdown/literals.rb#266 + # source://rdoc/lib/rdoc/markdown/literals.rb#266 def result; end # Returns the value of attribute set. # - # source://rdoc//lib/rdoc/markdown/literals.rb#266 + # source://rdoc/lib/rdoc/markdown/literals.rb#266 def set; end end -# source://rdoc//lib/rdoc/markdown/literals.rb#386 +# source://rdoc/lib/rdoc/markdown/literals.rb#386 class RDoc::Markdown::Literals::RuleInfo # @return [RuleInfo] a new instance of RuleInfo # - # source://rdoc//lib/rdoc/markdown/literals.rb#387 + # source://rdoc/lib/rdoc/markdown/literals.rb#387 def initialize(name, rendered); end # Returns the value of attribute name. # - # source://rdoc//lib/rdoc/markdown/literals.rb#392 + # source://rdoc/lib/rdoc/markdown/literals.rb#392 def name; end # Returns the value of attribute rendered. # - # source://rdoc//lib/rdoc/markdown/literals.rb#392 + # source://rdoc/lib/rdoc/markdown/literals.rb#392 def rendered; end end -# source://rdoc//lib/rdoc/markdown.rb#428 +# source://rdoc/lib/rdoc/markdown.rb#428 class RDoc::Markdown::MemoEntry # @return [MemoEntry] a new instance of MemoEntry # - # source://rdoc//lib/rdoc/markdown.rb#429 + # source://rdoc/lib/rdoc/markdown.rb#429 def initialize(ans, pos); end # Returns the value of attribute ans. # - # source://rdoc//lib/rdoc/markdown.rb#437 + # source://rdoc/lib/rdoc/markdown.rb#437 def ans; end # Returns the value of attribute left_rec. # - # source://rdoc//lib/rdoc/markdown.rb#438 + # source://rdoc/lib/rdoc/markdown.rb#438 def left_rec; end # Sets the attribute left_rec # # @param value the value to set the attribute left_rec to. # - # source://rdoc//lib/rdoc/markdown.rb#438 + # source://rdoc/lib/rdoc/markdown.rb#438 def left_rec=(_arg0); end - # source://rdoc//lib/rdoc/markdown.rb#440 + # source://rdoc/lib/rdoc/markdown.rb#440 def move!(ans, pos, result); end # Returns the value of attribute pos. # - # source://rdoc//lib/rdoc/markdown.rb#437 + # source://rdoc/lib/rdoc/markdown.rb#437 def pos; end # Returns the value of attribute result. # - # source://rdoc//lib/rdoc/markdown.rb#437 + # source://rdoc/lib/rdoc/markdown.rb#437 def result; end # Returns the value of attribute set. # - # source://rdoc//lib/rdoc/markdown.rb#437 + # source://rdoc/lib/rdoc/markdown.rb#437 def set; end end -# source://rdoc//lib/rdoc/markdown.rb#557 +# source://rdoc/lib/rdoc/markdown.rb#557 class RDoc::Markdown::RuleInfo # @return [RuleInfo] a new instance of RuleInfo # - # source://rdoc//lib/rdoc/markdown.rb#558 + # source://rdoc/lib/rdoc/markdown.rb#558 def initialize(name, rendered); end # Returns the value of attribute name. # - # source://rdoc//lib/rdoc/markdown.rb#563 + # source://rdoc/lib/rdoc/markdown.rb#563 def name; end # Returns the value of attribute rendered. # - # source://rdoc//lib/rdoc/markdown.rb#563 + # source://rdoc/lib/rdoc/markdown.rb#563 def rendered; end end -# source://rdoc//lib/rdoc/markup.rb#106 +# source://rdoc/lib/rdoc/markup.rb#111 class RDoc::Markup # Take a block of text and use various heuristics to determine its # structure (paragraphs, lists, and so on). Invoke an event handler as we @@ -4797,12 +4835,12 @@ class RDoc::Markup # # @return [Markup] a new instance of Markup # - # source://rdoc//lib/rdoc/markup.rb#146 + # source://rdoc/lib/rdoc/markup.rb#151 def initialize(attribute_manager = T.unsafe(nil)); end # Add to the sequences recognized as general markup. # - # source://rdoc//lib/rdoc/markup.rb#163 + # source://rdoc/lib/rdoc/markup.rb#168 def add_html(tag, name); end # Add to other inline sequences. For example, we could add WikiWords using @@ -4812,31 +4850,31 @@ class RDoc::Markup # # Each wiki word will be presented to the output formatter. # - # source://rdoc//lib/rdoc/markup.rb#175 + # source://rdoc/lib/rdoc/markup.rb#180 def add_regexp_handling(pattern, name); end # Add to the sequences used to add formatting to an individual word (such # as *bold*). Matching entries will generate attributes that the output # formatters can recognize by their +name+. # - # source://rdoc//lib/rdoc/markup.rb#156 + # source://rdoc/lib/rdoc/markup.rb#161 def add_word_pair(start, stop, name); end # An AttributeManager which handles inline markup. # - # source://rdoc//lib/rdoc/markup.rb#111 + # source://rdoc/lib/rdoc/markup.rb#116 def attribute_manager; end # We take +input+, parse it if necessary, then invoke the output +formatter+ # using a Visitor to render the result. # - # source://rdoc//lib/rdoc/markup.rb#183 + # source://rdoc/lib/rdoc/markup.rb#188 def convert(input, formatter); end class << self # Parses +str+ into an RDoc::Markup::Document. # - # source://rdoc//lib/rdoc/markup.rb#116 + # source://rdoc/lib/rdoc/markup.rb#121 def parse(str); end end end @@ -4844,47 +4882,47 @@ end # An AttrChanger records a change in attributes. It contains a bitmap of the # attributes to turn on, and a bitmap of those to turn off. # -# source://rdoc//lib/rdoc/markup/attr_changer.rb#4 +# source://rdoc/lib/rdoc/markup/attr_changer.rb#4 class RDoc::Markup::AttrChanger < ::Struct - # source://rdoc//lib/rdoc/markup/attr_changer.rb#18 + # source://rdoc/lib/rdoc/markup/attr_changer.rb#18 def inspect; end - # source://rdoc//lib/rdoc/markup/attr_changer.rb#14 + # source://rdoc/lib/rdoc/markup/attr_changer.rb#14 def to_s; end end # An array of attributes which parallels the characters in a string. # -# source://rdoc//lib/rdoc/markup/attr_span.rb#5 +# source://rdoc/lib/rdoc/markup/attr_span.rb#5 class RDoc::Markup::AttrSpan # Creates a new AttrSpan for +length+ characters # # @return [AttrSpan] a new instance of AttrSpan # - # source://rdoc//lib/rdoc/markup/attr_span.rb#10 + # source://rdoc/lib/rdoc/markup/attr_span.rb#10 def initialize(length, exclusive); end # Accesses flags for character +n+ # - # source://rdoc//lib/rdoc/markup/attr_span.rb#31 + # source://rdoc/lib/rdoc/markup/attr_span.rb#31 def [](n); end # Toggles +bits+ from +start+ to +length+ # - # source://rdoc//lib/rdoc/markup/attr_span.rb#17 + # source://rdoc/lib/rdoc/markup/attr_span.rb#17 def set_attrs(start, length, bits); end end # Manages changes of attributes in a block of text # -# source://rdoc//lib/rdoc/markup/attribute_manager.rb#6 +# source://rdoc/lib/rdoc/markup/attribute_manager.rb#6 class RDoc::Markup::AttributeManager # Creates a new attribute manager that understands bold, emphasized and # teletype text. # # @return [AttributeManager] a new instance of AttributeManager # - # source://rdoc//lib/rdoc/markup/attribute_manager.rb#80 + # source://rdoc/lib/rdoc/markup/attribute_manager.rb#80 def initialize; end # Adds a markup class with +name+ for words surrounded by HTML tag +tag+. @@ -4892,7 +4930,7 @@ class RDoc::Markup::AttributeManager # # am.add_html 'em', :EM # - # source://rdoc//lib/rdoc/markup/attribute_manager.rb#286 + # source://rdoc/lib/rdoc/markup/attribute_manager.rb#286 def add_html(tag, name, exclusive = T.unsafe(nil)); end # Adds a regexp handling for +pattern+ with +name+. A simple URL handler @@ -4900,7 +4938,7 @@ class RDoc::Markup::AttributeManager # # @am.add_regexp_handling(/((https?:)\S+\w)/, :HYPERLINK) # - # source://rdoc//lib/rdoc/markup/attribute_manager.rb#298 + # source://rdoc/lib/rdoc/markup/attribute_manager.rb#298 def add_regexp_handling(pattern, name, exclusive = T.unsafe(nil)); end # Adds a markup class with +name+ for words wrapped in the +start+ and @@ -4910,196 +4948,196 @@ class RDoc::Markup::AttributeManager # # @raise [ArgumentError] # - # source://rdoc//lib/rdoc/markup/attribute_manager.rb#261 + # source://rdoc/lib/rdoc/markup/attribute_manager.rb#261 def add_word_pair(start, stop, name, exclusive = T.unsafe(nil)); end # Return an attribute object with the given turn_on and turn_off bits set # - # source://rdoc//lib/rdoc/markup/attribute_manager.rb#103 + # source://rdoc/lib/rdoc/markup/attribute_manager.rb#103 def attribute(turn_on, turn_off); end # The attributes enabled for this markup object. # - # source://rdoc//lib/rdoc/markup/attribute_manager.rb#40 + # source://rdoc/lib/rdoc/markup/attribute_manager.rb#40 def attributes; end # Changes the current attribute from +current+ to +new+ # - # source://rdoc//lib/rdoc/markup/attribute_manager.rb#110 + # source://rdoc/lib/rdoc/markup/attribute_manager.rb#110 def change_attribute(current, new); end # Used by the tests to change attributes by name from +current_set+ to # +new_set+ # - # source://rdoc//lib/rdoc/markup/attribute_manager.rb#119 + # source://rdoc/lib/rdoc/markup/attribute_manager.rb#119 def changed_attribute_by_name(current_set, new_set); end # Map attributes like textto the sequence # \001\002\001\003, where is a per-attribute specific # character # - # source://rdoc//lib/rdoc/markup/attribute_manager.rb#154 + # source://rdoc/lib/rdoc/markup/attribute_manager.rb#154 def convert_attrs(str, attrs, exclusive = T.unsafe(nil)); end - # source://rdoc//lib/rdoc/markup/attribute_manager.rb#160 + # source://rdoc/lib/rdoc/markup/attribute_manager.rb#160 def convert_attrs_matching_word_pairs(str, attrs, exclusive); end - # source://rdoc//lib/rdoc/markup/attribute_manager.rb#185 + # source://rdoc/lib/rdoc/markup/attribute_manager.rb#185 def convert_attrs_word_pair_map(str, attrs, exclusive); end # Converts HTML tags to RDoc attributes # - # source://rdoc//lib/rdoc/markup/attribute_manager.rb#206 + # source://rdoc/lib/rdoc/markup/attribute_manager.rb#206 def convert_html(str, attrs, exclusive = T.unsafe(nil)); end # Converts regexp handling sequences to RDoc attributes # - # source://rdoc//lib/rdoc/markup/attribute_manager.rb#223 + # source://rdoc/lib/rdoc/markup/attribute_manager.rb#223 def convert_regexp_handlings(str, attrs, exclusive = T.unsafe(nil)); end # Copies +start_pos+ to +end_pos+ from the current string # - # source://rdoc//lib/rdoc/markup/attribute_manager.rb#135 + # source://rdoc/lib/rdoc/markup/attribute_manager.rb#135 def copy_string(start_pos, end_pos); end # Debug method that prints a string along with its attributes # - # source://rdoc//lib/rdoc/markup/attribute_manager.rb#329 + # source://rdoc/lib/rdoc/markup/attribute_manager.rb#329 def display_attributes; end # @return [Boolean] # - # source://rdoc//lib/rdoc/markup/attribute_manager.rb#142 + # source://rdoc/lib/rdoc/markup/attribute_manager.rb#142 def exclusive?(attr); end # A bits of exclusive maps # - # source://rdoc//lib/rdoc/markup/attribute_manager.rb#74 + # source://rdoc/lib/rdoc/markup/attribute_manager.rb#74 def exclusive_bitmap; end # Processes +str+ converting attributes, HTML and regexp handlings # - # source://rdoc//lib/rdoc/markup/attribute_manager.rb#307 + # source://rdoc/lib/rdoc/markup/attribute_manager.rb#307 def flow(str); end # This maps HTML tags to the corresponding attribute char # - # source://rdoc//lib/rdoc/markup/attribute_manager.rb#58 + # source://rdoc/lib/rdoc/markup/attribute_manager.rb#58 def html_tags; end # Escapes regexp handling sequences of text to prevent conversion to RDoc # - # source://rdoc//lib/rdoc/markup/attribute_manager.rb#239 + # source://rdoc/lib/rdoc/markup/attribute_manager.rb#239 def mask_protected_sequences; end # This maps delimiters that occur around words (such as *bold* or +tt+) # where the start and end delimiters and the same. This lets us optimize # the regexp # - # source://rdoc//lib/rdoc/markup/attribute_manager.rb#47 + # source://rdoc/lib/rdoc/markup/attribute_manager.rb#47 def matching_word_pairs; end # A \ in front of a character that would normally be processed turns off # processing. We do this by turning \< into <#{PROTECT} # - # source://rdoc//lib/rdoc/markup/attribute_manager.rb#64 + # source://rdoc/lib/rdoc/markup/attribute_manager.rb#64 def protectable; end # And this maps _regexp handling_ sequences to a name. A regexp handling # sequence is something like a WikiWord # - # source://rdoc//lib/rdoc/markup/attribute_manager.rb#70 + # source://rdoc/lib/rdoc/markup/attribute_manager.rb#70 def regexp_handlings; end # Splits the string into chunks by attribute change # - # source://rdoc//lib/rdoc/markup/attribute_manager.rb#354 + # source://rdoc/lib/rdoc/markup/attribute_manager.rb#354 def split_into_flow; end # Unescapes regexp handling sequences of text # - # source://rdoc//lib/rdoc/markup/attribute_manager.rb#251 + # source://rdoc/lib/rdoc/markup/attribute_manager.rb#251 def unmask_protected_sequences; end # And this is used when the delimiters aren't the same. In this case the # hash maps a pattern to the attribute character # - # source://rdoc//lib/rdoc/markup/attribute_manager.rb#53 + # source://rdoc/lib/rdoc/markup/attribute_manager.rb#53 def word_pair_map; end end -# source://rdoc//lib/rdoc/markup/attribute_manager.rb#147 +# source://rdoc/lib/rdoc/markup/attribute_manager.rb#147 RDoc::Markup::AttributeManager::NON_PRINTING_END = T.let(T.unsafe(nil), String) -# source://rdoc//lib/rdoc/markup/attribute_manager.rb#146 +# source://rdoc/lib/rdoc/markup/attribute_manager.rb#146 RDoc::Markup::AttributeManager::NON_PRINTING_START = T.let(T.unsafe(nil), String) # We manage a set of attributes. Each attribute has a symbol name and a bit # value. # -# source://rdoc//lib/rdoc/markup/attributes.rb#6 +# source://rdoc/lib/rdoc/markup/attributes.rb#6 class RDoc::Markup::Attributes # Creates a new attributes set. # # @return [Attributes] a new instance of Attributes # - # source://rdoc//lib/rdoc/markup/attributes.rb#16 + # source://rdoc/lib/rdoc/markup/attributes.rb#16 def initialize; end # Returns a string representation of +bitmap+ # - # source://rdoc//lib/rdoc/markup/attributes.rb#46 + # source://rdoc/lib/rdoc/markup/attributes.rb#46 def as_string(bitmap); end # Returns a unique bit for +name+ # - # source://rdoc//lib/rdoc/markup/attributes.rb#29 + # source://rdoc/lib/rdoc/markup/attributes.rb#29 def bitmap_for(name); end # yields each attribute name in +bitmap+ # - # source://rdoc//lib/rdoc/markup/attributes.rb#60 + # source://rdoc/lib/rdoc/markup/attributes.rb#60 def each_name_of(bitmap); end # The regexp handling attribute type. See RDoc::Markup#add_regexp_handling # - # source://rdoc//lib/rdoc/markup/attributes.rb#11 + # source://rdoc/lib/rdoc/markup/attributes.rb#11 def regexp_handling; end end # An empty line. This class is a singleton. # -# source://rdoc//lib/rdoc/markup/blank_line.rb#5 +# source://rdoc/lib/rdoc/markup/blank_line.rb#5 class RDoc::Markup::BlankLine # Calls #accept_blank_line on +visitor+ # - # source://rdoc//lib/rdoc/markup/blank_line.rb#19 + # source://rdoc/lib/rdoc/markup/blank_line.rb#19 def accept(visitor); end - # source://rdoc//lib/rdoc/markup/blank_line.rb#23 + # source://rdoc/lib/rdoc/markup/blank_line.rb#23 def pretty_print(q); end class << self # RDoc::Markup::BlankLine is a singleton # - # source://rdoc//lib/rdoc/markup/blank_line.rb#12 + # source://rdoc/lib/rdoc/markup/blank_line.rb#12 def new; end end end # A quoted section which contains markup items. # -# source://rdoc//lib/rdoc/markup/block_quote.rb#5 +# source://rdoc/lib/rdoc/markup/block_quote.rb#5 class RDoc::Markup::BlockQuote < ::RDoc::Markup::Raw # Calls #accept_block_quote on +visitor+ # - # source://rdoc//lib/rdoc/markup/block_quote.rb#10 + # source://rdoc/lib/rdoc/markup/block_quote.rb#10 def accept(visitor); end end # A Document containing lists, headings, paragraphs, etc. # -# source://rdoc//lib/rdoc/markup/document.rb#5 +# source://rdoc/lib/rdoc/markup/document.rb#5 class RDoc::Markup::Document include ::Enumerable @@ -5107,48 +5145,48 @@ class RDoc::Markup::Document # # @return [Document] a new instance of Document # - # source://rdoc//lib/rdoc/markup/document.rb#29 + # source://rdoc/lib/rdoc/markup/document.rb#29 def initialize(*parts); end # Appends +part+ to the document # - # source://rdoc//lib/rdoc/markup/document.rb#40 + # source://rdoc/lib/rdoc/markup/document.rb#40 def <<(part); end - # source://rdoc//lib/rdoc/markup/document.rb#56 + # source://rdoc/lib/rdoc/markup/document.rb#56 def ==(other); end # Runs this document and all its #items through +visitor+ # - # source://rdoc//lib/rdoc/markup/document.rb#65 + # source://rdoc/lib/rdoc/markup/document.rb#65 def accept(visitor); end # Concatenates the given +parts+ onto the document # - # source://rdoc//lib/rdoc/markup/document.rb#76 + # source://rdoc/lib/rdoc/markup/document.rb#76 def concat(parts); end # Enumerator for the parts of this document # - # source://rdoc//lib/rdoc/markup/document.rb#83 + # source://rdoc/lib/rdoc/markup/document.rb#83 def each(&block); end # Does this document have no parts? # # @return [Boolean] # - # source://rdoc//lib/rdoc/markup/document.rb#90 + # source://rdoc/lib/rdoc/markup/document.rb#90 def empty?; end # The file this document was created from. See also # RDoc::ClassModule#add_comment # - # source://rdoc//lib/rdoc/markup/document.rb#13 + # source://rdoc/lib/rdoc/markup/document.rb#13 def file; end # The file this Document was created from. # - # source://rdoc//lib/rdoc/markup/document.rb#97 + # source://rdoc/lib/rdoc/markup/document.rb#97 def file=(location); end # When this is a collection of documents (#file is not set and this document @@ -5158,46 +5196,46 @@ class RDoc::Markup::Document # # The information in +other+ is preferred over the receiver # - # source://rdoc//lib/rdoc/markup/document.rb#114 + # source://rdoc/lib/rdoc/markup/document.rb#114 def merge(other); end # Does this Document contain other Documents? # # @return [Boolean] # - # source://rdoc//lib/rdoc/markup/document.rb#134 + # source://rdoc/lib/rdoc/markup/document.rb#134 def merged?; end # If a heading is below the given level it will be omitted from the # table_of_contents # - # source://rdoc//lib/rdoc/markup/document.rb#19 + # source://rdoc/lib/rdoc/markup/document.rb#19 def omit_headings_below; end # If a heading is below the given level it will be omitted from the # table_of_contents # - # source://rdoc//lib/rdoc/markup/document.rb#19 + # source://rdoc/lib/rdoc/markup/document.rb#19 def omit_headings_below=(_arg0); end # The parts of the Document # - # source://rdoc//lib/rdoc/markup/document.rb#24 + # source://rdoc/lib/rdoc/markup/document.rb#24 def parts; end - # source://rdoc//lib/rdoc/markup/document.rb#138 + # source://rdoc/lib/rdoc/markup/document.rb#138 def pretty_print(q); end # Appends +parts+ to the document # - # source://rdoc//lib/rdoc/markup/document.rb#151 + # source://rdoc/lib/rdoc/markup/document.rb#151 def push(*parts); end # Returns an Array of headings in the document. # # Require 'rdoc/markup/formatter' before calling this method. # - # source://rdoc//lib/rdoc/markup/document.rb#160 + # source://rdoc/lib/rdoc/markup/document.rb#160 def table_of_contents; end end @@ -5211,60 +5249,60 @@ end # RDoc::Markup::FormatterTestCase. If you're writing a text-output formatter # use RDoc::Markup::TextFormatterTestCase which provides extra test cases. # -# source://rdoc//lib/rdoc/markup/formatter.rb#13 +# source://rdoc/lib/rdoc/markup/formatter.rb#13 class RDoc::Markup::Formatter # Creates a new Formatter # # @return [Formatter] a new instance of Formatter # - # source://rdoc//lib/rdoc/markup/formatter.rb#48 + # source://rdoc/lib/rdoc/markup/formatter.rb#48 def initialize(options, markup = T.unsafe(nil)); end # Adds +document+ to the output # - # source://rdoc//lib/rdoc/markup/formatter.rb#69 + # source://rdoc/lib/rdoc/markup/formatter.rb#69 def accept_document(document); end # Adds a regexp handling for links of the form rdoc-...: # - # source://rdoc//lib/rdoc/markup/formatter.rb#83 + # source://rdoc/lib/rdoc/markup/formatter.rb#83 def add_regexp_handling_RDOCLINK; end # Adds a regexp handling for links of the form {}[] and # [] # - # source://rdoc//lib/rdoc/markup/formatter.rb#91 + # source://rdoc/lib/rdoc/markup/formatter.rb#91 def add_regexp_handling_TIDYLINK; end # Add a new set of tags for an attribute. We allow separate start and end # tags for flexibility # - # source://rdoc//lib/rdoc/markup/formatter.rb#105 + # source://rdoc/lib/rdoc/markup/formatter.rb#105 def add_tag(name, start, stop); end # Allows +tag+ to be decorated with additional information. # - # source://rdoc//lib/rdoc/markup/formatter.rb#113 + # source://rdoc/lib/rdoc/markup/formatter.rb#113 def annotate(tag); end # Marks up +content+ # - # source://rdoc//lib/rdoc/markup/formatter.rb#120 + # source://rdoc/lib/rdoc/markup/formatter.rb#120 def convert(content); end # Converts flow items +flow+ # - # source://rdoc//lib/rdoc/markup/formatter.rb#127 + # source://rdoc/lib/rdoc/markup/formatter.rb#127 def convert_flow(flow); end # Converts added regexp handlings. See RDoc::Markup#add_regexp_handling # - # source://rdoc//lib/rdoc/markup/formatter.rb#150 + # source://rdoc/lib/rdoc/markup/formatter.rb#150 def convert_regexp_handling(target); end # Converts a string to be fancier if desired # - # source://rdoc//lib/rdoc/markup/formatter.rb#176 + # source://rdoc/lib/rdoc/markup/formatter.rb#176 def convert_string(string); end # Use ignore in your subclass to ignore the content of a node. @@ -5274,91 +5312,91 @@ class RDoc::Markup::Formatter # # alias accept_raw ignore # - # source://rdoc//lib/rdoc/markup/formatter.rb#188 + # source://rdoc/lib/rdoc/markup/formatter.rb#188 def ignore(*node); end # Are we currently inside tt tags? # # @return [Boolean] # - # source://rdoc//lib/rdoc/markup/formatter.rb#194 + # source://rdoc/lib/rdoc/markup/formatter.rb#194 def in_tt?; end # Turns off tags for +item+ on +res+ # - # source://rdoc//lib/rdoc/markup/formatter.rb#216 + # source://rdoc/lib/rdoc/markup/formatter.rb#216 def off_tags(res, item); end # Turns on tags for +item+ on +res+ # - # source://rdoc//lib/rdoc/markup/formatter.rb#201 + # source://rdoc/lib/rdoc/markup/formatter.rb#201 def on_tags(res, item); end # Extracts and a scheme, url and an anchor id from +url+ and returns them. # - # source://rdoc//lib/rdoc/markup/formatter.rb#231 + # source://rdoc/lib/rdoc/markup/formatter.rb#231 def parse_url(url); end # Is +tag+ a tt tag? # # @return [Boolean] # - # source://rdoc//lib/rdoc/markup/formatter.rb#261 + # source://rdoc/lib/rdoc/markup/formatter.rb#261 def tt?(tag); end class << self # Converts a target url to one that is relative to a given path # - # source://rdoc//lib/rdoc/markup/formatter.rb#24 + # source://rdoc/lib/rdoc/markup/formatter.rb#24 def gen_relative_url(path, target); end end end # A hard-break in the middle of a paragraph. # -# source://rdoc//lib/rdoc/markup/hard_break.rb#5 +# source://rdoc/lib/rdoc/markup/hard_break.rb#5 class RDoc::Markup::HardBreak - # source://rdoc//lib/rdoc/markup/hard_break.rb#23 + # source://rdoc/lib/rdoc/markup/hard_break.rb#23 def ==(other); end # Calls #accept_hard_break on +visitor+ # - # source://rdoc//lib/rdoc/markup/hard_break.rb#19 + # source://rdoc/lib/rdoc/markup/hard_break.rb#19 def accept(visitor); end - # source://rdoc//lib/rdoc/markup/hard_break.rb#27 + # source://rdoc/lib/rdoc/markup/hard_break.rb#27 def pretty_print(q); end class << self # RDoc::Markup::HardBreak is a singleton # - # source://rdoc//lib/rdoc/markup/hard_break.rb#12 + # source://rdoc/lib/rdoc/markup/hard_break.rb#12 def new; end end end -# source://rdoc//lib/rdoc/markup/heading.rb#6 +# source://rdoc/lib/rdoc/markup/heading.rb#6 class RDoc::Markup::Heading < ::Struct - # source://rdoc//lib/rdoc/markup/heading.rb#40 + # source://rdoc/lib/rdoc/markup/heading.rb#40 def accept(visitor); end - # source://rdoc//lib/rdoc/markup/heading.rb#47 + # source://rdoc/lib/rdoc/markup/heading.rb#47 def aref; end - # source://rdoc//lib/rdoc/markup/heading.rb#55 + # source://rdoc/lib/rdoc/markup/heading.rb#55 def label(context = T.unsafe(nil)); end - # source://rdoc//lib/rdoc/markup/heading.rb#68 + # source://rdoc/lib/rdoc/markup/heading.rb#68 def plain_html; end - # source://rdoc//lib/rdoc/markup/heading.rb#72 + # source://rdoc/lib/rdoc/markup/heading.rb#72 def pretty_print(q); end class << self - # source://rdoc//lib/rdoc/markup/heading.rb#22 + # source://rdoc/lib/rdoc/markup/heading.rb#22 def to_html; end - # source://rdoc//lib/rdoc/markup/heading.rb#14 + # source://rdoc/lib/rdoc/markup/heading.rb#14 def to_label; end end end @@ -5368,61 +5406,61 @@ end # # This implementation in incomplete. # -# source://rdoc//lib/rdoc/markup/include.rb#8 +# source://rdoc/lib/rdoc/markup/include.rb#8 class RDoc::Markup::Include # Creates a new include that will import +file+ from +include_path+ # # @return [Include] a new instance of Include # - # source://rdoc//lib/rdoc/markup/include.rb#23 + # source://rdoc/lib/rdoc/markup/include.rb#23 def initialize(file, include_path); end - # source://rdoc//lib/rdoc/markup/include.rb#28 + # source://rdoc/lib/rdoc/markup/include.rb#28 def ==(other); end # The filename to be included, without extension # - # source://rdoc//lib/rdoc/markup/include.rb#13 + # source://rdoc/lib/rdoc/markup/include.rb#13 def file; end # Directories to search for #file # - # source://rdoc//lib/rdoc/markup/include.rb#18 + # source://rdoc/lib/rdoc/markup/include.rb#18 def include_path; end - # source://rdoc//lib/rdoc/markup/include.rb#33 + # source://rdoc/lib/rdoc/markup/include.rb#33 def pretty_print(q); end end # An Indented Paragraph of text # -# source://rdoc//lib/rdoc/markup/indented_paragraph.rb#5 +# source://rdoc/lib/rdoc/markup/indented_paragraph.rb#5 class RDoc::Markup::IndentedParagraph < ::RDoc::Markup::Raw # Creates a new IndentedParagraph containing +parts+ indented with +indent+ # spaces # # @return [IndentedParagraph] a new instance of IndentedParagraph # - # source://rdoc//lib/rdoc/markup/indented_paragraph.rb#16 + # source://rdoc/lib/rdoc/markup/indented_paragraph.rb#16 def initialize(indent, *parts); end - # source://rdoc//lib/rdoc/markup/indented_paragraph.rb#22 + # source://rdoc/lib/rdoc/markup/indented_paragraph.rb#22 def ==(other); end # Calls #accept_indented_paragraph on +visitor+ # - # source://rdoc//lib/rdoc/markup/indented_paragraph.rb#29 + # source://rdoc/lib/rdoc/markup/indented_paragraph.rb#29 def accept(visitor); end # The indent in number of spaces # - # source://rdoc//lib/rdoc/markup/indented_paragraph.rb#10 + # source://rdoc/lib/rdoc/markup/indented_paragraph.rb#10 def indent; end # Joins the raw paragraph text and converts inline HardBreaks to the # +hard_break+ text followed by the indent. # - # source://rdoc//lib/rdoc/markup/indented_paragraph.rb#37 + # source://rdoc/lib/rdoc/markup/indented_paragraph.rb#37 def text(hard_break = T.unsafe(nil)); end end @@ -5447,62 +5485,62 @@ end # describe multiple terms. See RDoc::Markup::ListItem for how labels and # definition are stored as list items. # -# source://rdoc//lib/rdoc/markup/list.rb#24 +# source://rdoc/lib/rdoc/markup/list.rb#24 class RDoc::Markup::List # Creates a new list of +type+ with +items+. Valid list types are: # +:BULLET+, +:LABEL+, +:LALPHA+, +:NOTE+, +:NUMBER+, +:UALPHA+ # # @return [List] a new instance of List # - # source://rdoc//lib/rdoc/markup/list.rb#40 + # source://rdoc/lib/rdoc/markup/list.rb#40 def initialize(type = T.unsafe(nil), *items); end # Appends +item+ to the list # - # source://rdoc//lib/rdoc/markup/list.rb#49 + # source://rdoc/lib/rdoc/markup/list.rb#49 def <<(item); end - # source://rdoc//lib/rdoc/markup/list.rb#53 + # source://rdoc/lib/rdoc/markup/list.rb#53 def ==(other); end # Runs this list and all its #items through +visitor+ # - # source://rdoc//lib/rdoc/markup/list.rb#62 + # source://rdoc/lib/rdoc/markup/list.rb#62 def accept(visitor); end # Is the list empty? # # @return [Boolean] # - # source://rdoc//lib/rdoc/markup/list.rb#75 + # source://rdoc/lib/rdoc/markup/list.rb#75 def empty?; end # Items in the list # - # source://rdoc//lib/rdoc/markup/list.rb#34 + # source://rdoc/lib/rdoc/markup/list.rb#34 def items; end # Returns the last item in the list # - # source://rdoc//lib/rdoc/markup/list.rb#82 + # source://rdoc/lib/rdoc/markup/list.rb#82 def last; end - # source://rdoc//lib/rdoc/markup/list.rb#86 + # source://rdoc/lib/rdoc/markup/list.rb#86 def pretty_print(q); end # Appends +items+ to the list # - # source://rdoc//lib/rdoc/markup/list.rb#97 + # source://rdoc/lib/rdoc/markup/list.rb#97 def push(*items); end # The list's type # - # source://rdoc//lib/rdoc/markup/list.rb#29 + # source://rdoc/lib/rdoc/markup/list.rb#29 def type; end # The list's type # - # source://rdoc//lib/rdoc/markup/list.rb#29 + # source://rdoc/lib/rdoc/markup/list.rb#29 def type=(_arg0); end end @@ -5515,77 +5553,77 @@ end # * an Array of Strings for a list item with multiple terms # * nil for an extra description attached to a previously labeled list item # -# source://rdoc//lib/rdoc/markup/list_item.rb#12 +# source://rdoc/lib/rdoc/markup/list_item.rb#12 class RDoc::Markup::ListItem # Creates a new ListItem with an optional +label+ containing +parts+ # # @return [ListItem] a new instance of ListItem # - # source://rdoc//lib/rdoc/markup/list_item.rb#27 + # source://rdoc/lib/rdoc/markup/list_item.rb#27 def initialize(label = T.unsafe(nil), *parts); end # Appends +part+ to the ListItem # - # source://rdoc//lib/rdoc/markup/list_item.rb#36 + # source://rdoc/lib/rdoc/markup/list_item.rb#36 def <<(part); end - # source://rdoc//lib/rdoc/markup/list_item.rb#40 + # source://rdoc/lib/rdoc/markup/list_item.rb#40 def ==(other); end # Runs this list item and all its #parts through +visitor+ # - # source://rdoc//lib/rdoc/markup/list_item.rb#49 + # source://rdoc/lib/rdoc/markup/list_item.rb#49 def accept(visitor); end # Is the ListItem empty? # # @return [Boolean] # - # source://rdoc//lib/rdoc/markup/list_item.rb#62 + # source://rdoc/lib/rdoc/markup/list_item.rb#62 def empty?; end # The label for the ListItem # - # source://rdoc//lib/rdoc/markup/list_item.rb#17 + # source://rdoc/lib/rdoc/markup/list_item.rb#17 def label; end # The label for the ListItem # - # source://rdoc//lib/rdoc/markup/list_item.rb#17 + # source://rdoc/lib/rdoc/markup/list_item.rb#17 def label=(_arg0); end # Length of parts in the ListItem # - # source://rdoc//lib/rdoc/markup/list_item.rb#69 + # source://rdoc/lib/rdoc/markup/list_item.rb#69 def length; end # Parts of the ListItem # - # source://rdoc//lib/rdoc/markup/list_item.rb#22 + # source://rdoc/lib/rdoc/markup/list_item.rb#22 def parts; end - # source://rdoc//lib/rdoc/markup/list_item.rb#73 + # source://rdoc/lib/rdoc/markup/list_item.rb#73 def pretty_print(q); end # Adds +parts+ to the ListItem # - # source://rdoc//lib/rdoc/markup/list_item.rb#95 + # source://rdoc/lib/rdoc/markup/list_item.rb#95 def push(*parts); end end # A Paragraph of text # -# source://rdoc//lib/rdoc/markup/paragraph.rb#5 +# source://rdoc/lib/rdoc/markup/paragraph.rb#5 class RDoc::Markup::Paragraph < ::RDoc::Markup::Raw # Calls #accept_paragraph on +visitor+ # - # source://rdoc//lib/rdoc/markup/paragraph.rb#10 + # source://rdoc/lib/rdoc/markup/paragraph.rb#10 def accept(visitor); end # Joins the raw paragraph text and converts inline HardBreaks to the # +hard_break+ text. # - # source://rdoc//lib/rdoc/markup/paragraph.rb#18 + # source://rdoc/lib/rdoc/markup/paragraph.rb#18 def text(hard_break = T.unsafe(nil)); end end @@ -5603,7 +5641,7 @@ end # To see what markup the Parser implements read RDoc. To see how to use # RDoc markup to format text in your program read RDoc::Markup. # -# source://rdoc//lib/rdoc/markup/parser.rb#19 +# source://rdoc/lib/rdoc/markup/parser.rb#19 class RDoc::Markup::Parser include ::RDoc::Text @@ -5611,22 +5649,22 @@ class RDoc::Markup::Parser # # @return [Parser] a new instance of Parser # - # source://rdoc//lib/rdoc/markup/parser.rb#79 + # source://rdoc/lib/rdoc/markup/parser.rb#79 def initialize; end # Builds a Heading of +level+ # - # source://rdoc//lib/rdoc/markup/parser.rb#90 + # source://rdoc/lib/rdoc/markup/parser.rb#90 def build_heading(level); end # Builds a List flush to +margin+ # - # source://rdoc//lib/rdoc/markup/parser.rb#108 + # source://rdoc/lib/rdoc/markup/parser.rb#108 def build_list(margin); end # Builds a Paragraph that is flush to +margin+ # - # source://rdoc//lib/rdoc/markup/parser.rb#208 + # source://rdoc/lib/rdoc/markup/parser.rb#208 def build_paragraph(margin); end # Builds a Verbatim that is indented from +margin+. @@ -5636,22 +5674,22 @@ class RDoc::Markup::Parser # terminated by a newline. Blank lines always consist of a single newline # character, and there is never a single newline at the end of the verbatim. # - # source://rdoc//lib/rdoc/markup/parser.rb#243 + # source://rdoc/lib/rdoc/markup/parser.rb#243 def build_verbatim(margin); end # Enables display of debugging information # - # source://rdoc//lib/rdoc/markup/parser.rb#48 + # source://rdoc/lib/rdoc/markup/parser.rb#48 def debug; end # Enables display of debugging information # - # source://rdoc//lib/rdoc/markup/parser.rb#48 + # source://rdoc/lib/rdoc/markup/parser.rb#48 def debug=(_arg0); end # Pulls the next token from the stream. # - # source://rdoc//lib/rdoc/markup/parser.rb#327 + # source://rdoc/lib/rdoc/markup/parser.rb#327 def get; end # Parses the tokens into an array of RDoc::Markup::XXX objects, @@ -5662,22 +5700,22 @@ class RDoc::Markup::Parser # # Returns +parent+. # - # source://rdoc//lib/rdoc/markup/parser.rb#342 + # source://rdoc/lib/rdoc/markup/parser.rb#342 def parse(parent, indent = T.unsafe(nil)); end # Small hook that is overridden by RDoc::TomDoc # - # source://rdoc//lib/rdoc/markup/parser.rb#406 + # source://rdoc/lib/rdoc/markup/parser.rb#406 def parse_text(parent, indent); end # Returns the next token on the stream without modifying the stream # - # source://rdoc//lib/rdoc/markup/parser.rb#413 + # source://rdoc/lib/rdoc/markup/parser.rb#413 def peek_token; end # Creates the StringScanner # - # source://rdoc//lib/rdoc/markup/parser.rb#468 + # source://rdoc/lib/rdoc/markup/parser.rb#468 def setup_scanner(input); end # Skips the next token if its type is +token_type+. @@ -5686,24 +5724,24 @@ class RDoc::Markup::Parser # # @raise [ParseError] # - # source://rdoc//lib/rdoc/markup/parser.rb#477 + # source://rdoc/lib/rdoc/markup/parser.rb#477 def skip(token_type, error = T.unsafe(nil)); end # Turns text +input+ into a stream of tokens # - # source://rdoc//lib/rdoc/markup/parser.rb#488 + # source://rdoc/lib/rdoc/markup/parser.rb#488 def tokenize(input); end # Token accessor # - # source://rdoc//lib/rdoc/markup/parser.rb#53 + # source://rdoc/lib/rdoc/markup/parser.rb#53 def tokens; end # Returns the current token to the token stream # # @raise [Error] # - # source://rdoc//lib/rdoc/markup/parser.rb#578 + # source://rdoc/lib/rdoc/markup/parser.rb#578 def unget; end class << self @@ -5711,48 +5749,48 @@ class RDoc::Markup::Parser # # Use RDoc::Markup#parse instead of this method. # - # source://rdoc//lib/rdoc/markup/parser.rb#60 + # source://rdoc/lib/rdoc/markup/parser.rb#60 def parse(str); end # Returns a token stream for +str+, for testing # - # source://rdoc//lib/rdoc/markup/parser.rb#70 + # source://rdoc/lib/rdoc/markup/parser.rb#70 def tokenize(str); end end end # A simple wrapper of StringScanner that is aware of the current column and lineno # -# source://rdoc//lib/rdoc/markup/parser.rb#422 +# source://rdoc/lib/rdoc/markup/parser.rb#422 class RDoc::Markup::Parser::MyStringScanner # :stopdoc: # # @return [MyStringScanner] a new instance of MyStringScanner # - # source://rdoc//lib/rdoc/markup/parser.rb#425 + # source://rdoc/lib/rdoc/markup/parser.rb#425 def initialize(input); end - # source://rdoc//lib/rdoc/markup/parser.rb#458 + # source://rdoc/lib/rdoc/markup/parser.rb#458 def [](i); end # @return [Boolean] # - # source://rdoc//lib/rdoc/markup/parser.rb#450 + # source://rdoc/lib/rdoc/markup/parser.rb#450 def eos?; end - # source://rdoc//lib/rdoc/markup/parser.rb#454 + # source://rdoc/lib/rdoc/markup/parser.rb#454 def matched; end - # source://rdoc//lib/rdoc/markup/parser.rb#445 + # source://rdoc/lib/rdoc/markup/parser.rb#445 def newline!; end - # source://rdoc//lib/rdoc/markup/parser.rb#441 + # source://rdoc/lib/rdoc/markup/parser.rb#441 def pos; end - # source://rdoc//lib/rdoc/markup/parser.rb#430 + # source://rdoc/lib/rdoc/markup/parser.rb#430 def scan(re); end - # source://rdoc//lib/rdoc/markup/parser.rb#436 + # source://rdoc/lib/rdoc/markup/parser.rb#436 def unscan(s); end end @@ -5770,20 +5808,20 @@ end # is attached to. See RDoc::Markup@Directives for the list of built-in # directives. # -# source://rdoc//lib/rdoc/markup/pre_process.rb#17 +# source://rdoc/lib/rdoc/markup/pre_process.rb#17 class RDoc::Markup::PreProcess # Creates a new pre-processor for +input_file_name+ that will look for # included files in +include_path+ # # @return [PreProcess] a new instance of PreProcess # - # source://rdoc//lib/rdoc/markup/pre_process.rb#78 + # source://rdoc/lib/rdoc/markup/pre_process.rb#78 def initialize(input_file_name, include_path); end # Look for the given file in the directory containing the current file, # and then in each of the directories specified in the RDOC_INCLUDE path # - # source://rdoc//lib/rdoc/markup/pre_process.rb#288 + # source://rdoc/lib/rdoc/markup/pre_process.rb#308 def find_include_file(name); end # Look for directives in the given +text+. @@ -5800,7 +5838,7 @@ class RDoc::Markup::PreProcess # directive's parameter is set as metadata on the +code_object+. See # RDoc::CodeObject#metadata for details. # - # source://rdoc//lib/rdoc/markup/pre_process.rb#99 + # source://rdoc/lib/rdoc/markup/pre_process.rb#99 def handle(text, code_object = T.unsafe(nil), &block); end # Performs the actions described by +directive+ and its parameter +param+. @@ -5813,8 +5851,8 @@ class RDoc::Markup::PreProcess # -- # When 1.8.7 support is ditched prefix can be defaulted to '' # - # source://rdoc//lib/rdoc/markup/pre_process.rb#150 - def handle_directive(prefix, directive, param, code_object = T.unsafe(nil), encoding = T.unsafe(nil)); end + # source://rdoc/lib/rdoc/markup/pre_process.rb#153 + def handle_directive(prefix, directive, param, code_object = T.unsafe(nil), encoding = T.unsafe(nil), line = T.unsafe(nil)); end # Handles the :include: _filename_ directive. # @@ -5830,19 +5868,19 @@ class RDoc::Markup::PreProcess # TODO shift left the whole file content in that case # TODO comment stop/start #-- and #++ in included file must be processed here # - # source://rdoc//lib/rdoc/markup/pre_process.rb#262 + # source://rdoc/lib/rdoc/markup/pre_process.rb#282 def include_file(name, indent, encoding); end # An RDoc::Options instance that will be filled in with overrides from # directives # - # source://rdoc//lib/rdoc/markup/pre_process.rb#23 + # source://rdoc/lib/rdoc/markup/pre_process.rb#23 def options; end # An RDoc::Options instance that will be filled in with overrides from # directives # - # source://rdoc//lib/rdoc/markup/pre_process.rb#23 + # source://rdoc/lib/rdoc/markup/pre_process.rb#23 def options=(_arg0); end class << self @@ -5850,12 +5888,12 @@ class RDoc::Markup::PreProcess # with the result RDoc::Comment (or text String) and the code object for the # comment (if any). # - # source://rdoc//lib/rdoc/markup/pre_process.rb#30 + # source://rdoc/lib/rdoc/markup/pre_process.rb#30 def post_process(&block); end # Registered post-processors # - # source://rdoc//lib/rdoc/markup/pre_process.rb#37 + # source://rdoc/lib/rdoc/markup/pre_process.rb#37 def post_processors; end # Registers +directive+ as one handled by RDoc. If a block is given the @@ -5869,202 +5907,202 @@ class RDoc::Markup::PreProcess # # replace text, etc. # end # - # source://rdoc//lib/rdoc/markup/pre_process.rb#53 + # source://rdoc/lib/rdoc/markup/pre_process.rb#53 def register(directive, &block); end # Registered directives # - # source://rdoc//lib/rdoc/markup/pre_process.rb#60 + # source://rdoc/lib/rdoc/markup/pre_process.rb#60 def registered; end # Clears all registered directives and post-processors # - # source://rdoc//lib/rdoc/markup/pre_process.rb#67 + # source://rdoc/lib/rdoc/markup/pre_process.rb#67 def reset; end end end # A section of text that is added to the output document as-is # -# source://rdoc//lib/rdoc/markup/raw.rb#5 +# source://rdoc/lib/rdoc/markup/raw.rb#5 class RDoc::Markup::Raw # Creates a new Raw containing +parts+ # # @return [Raw] a new instance of Raw # - # source://rdoc//lib/rdoc/markup/raw.rb#15 + # source://rdoc/lib/rdoc/markup/raw.rb#15 def initialize(*parts); end # Appends +text+ # - # source://rdoc//lib/rdoc/markup/raw.rb#23 + # source://rdoc/lib/rdoc/markup/raw.rb#23 def <<(text); end - # source://rdoc//lib/rdoc/markup/raw.rb#27 + # source://rdoc/lib/rdoc/markup/raw.rb#27 def ==(other); end # Calls #accept_raw+ on +visitor+ # - # source://rdoc//lib/rdoc/markup/raw.rb#34 + # source://rdoc/lib/rdoc/markup/raw.rb#34 def accept(visitor); end # Appends +other+'s parts # - # source://rdoc//lib/rdoc/markup/raw.rb#41 + # source://rdoc/lib/rdoc/markup/raw.rb#41 def merge(other); end # The component parts of the list # - # source://rdoc//lib/rdoc/markup/raw.rb#10 + # source://rdoc/lib/rdoc/markup/raw.rb#10 def parts; end - # source://rdoc//lib/rdoc/markup/raw.rb#45 + # source://rdoc/lib/rdoc/markup/raw.rb#45 def pretty_print(q); end # Appends +texts+ onto this Paragraph # - # source://rdoc//lib/rdoc/markup/raw.rb#58 + # source://rdoc/lib/rdoc/markup/raw.rb#58 def push(*texts); end # The raw text # - # source://rdoc//lib/rdoc/markup/raw.rb#65 + # source://rdoc/lib/rdoc/markup/raw.rb#65 def text; end end # Hold details of a regexp handling sequence # -# source://rdoc//lib/rdoc/markup/regexp_handling.rb#5 +# source://rdoc/lib/rdoc/markup/regexp_handling.rb#5 class RDoc::Markup::RegexpHandling # Creates a new regexp handling sequence of +type+ with +text+ # # @return [RegexpHandling] a new instance of RegexpHandling # - # source://rdoc//lib/rdoc/markup/regexp_handling.rb#20 + # source://rdoc/lib/rdoc/markup/regexp_handling.rb#20 def initialize(type, text); end # Regexp handlings are equal when the have the same text and type # - # source://rdoc//lib/rdoc/markup/regexp_handling.rb#27 + # source://rdoc/lib/rdoc/markup/regexp_handling.rb#27 def ==(o); end - # source://rdoc//lib/rdoc/markup/regexp_handling.rb#31 + # source://rdoc/lib/rdoc/markup/regexp_handling.rb#31 def inspect; end # Regexp handling text # - # source://rdoc//lib/rdoc/markup/regexp_handling.rb#15 + # source://rdoc/lib/rdoc/markup/regexp_handling.rb#15 def text; end # Regexp handling text # - # source://rdoc//lib/rdoc/markup/regexp_handling.rb#15 + # source://rdoc/lib/rdoc/markup/regexp_handling.rb#15 def text=(_arg0); end - # source://rdoc//lib/rdoc/markup/regexp_handling.rb#36 + # source://rdoc/lib/rdoc/markup/regexp_handling.rb#36 def to_s; end # Regexp handling type # - # source://rdoc//lib/rdoc/markup/regexp_handling.rb#10 + # source://rdoc/lib/rdoc/markup/regexp_handling.rb#10 def type; end end # A horizontal rule with a weight # -# source://rdoc//lib/rdoc/markup/rule.rb#5 +# source://rdoc/lib/rdoc/markup/rule.rb#5 class RDoc::Markup::Rule < ::Struct # Calls #accept_rule on +visitor+ # - # source://rdoc//lib/rdoc/markup/rule.rb#10 + # source://rdoc/lib/rdoc/markup/rule.rb#10 def accept(visitor); end - # source://rdoc//lib/rdoc/markup/rule.rb#14 + # source://rdoc/lib/rdoc/markup/rule.rb#14 def pretty_print(q); end end # A section of table # -# source://rdoc//lib/rdoc/markup/table.rb#5 +# source://rdoc/lib/rdoc/markup/table.rb#5 class RDoc::Markup::Table # Creates new instance # # @return [Table] a new instance of Table # - # source://rdoc//lib/rdoc/markup/table.rb#16 + # source://rdoc/lib/rdoc/markup/table.rb#16 def initialize(header, align, body); end # :stopdoc: # - # source://rdoc//lib/rdoc/markup/table.rb#21 + # source://rdoc/lib/rdoc/markup/table.rb#21 def ==(other); end - # source://rdoc//lib/rdoc/markup/table.rb#28 + # source://rdoc/lib/rdoc/markup/table.rb#28 def accept(visitor); end # alignments of each column # - # source://rdoc//lib/rdoc/markup/table.rb#10 + # source://rdoc/lib/rdoc/markup/table.rb#10 def align; end # alignments of each column # - # source://rdoc//lib/rdoc/markup/table.rb#10 + # source://rdoc/lib/rdoc/markup/table.rb#10 def align=(_arg0); end # body texts of each column # - # source://rdoc//lib/rdoc/markup/table.rb#13 + # source://rdoc/lib/rdoc/markup/table.rb#13 def body; end # body texts of each column # - # source://rdoc//lib/rdoc/markup/table.rb#13 + # source://rdoc/lib/rdoc/markup/table.rb#13 def body=(_arg0); end # headers of each column # - # source://rdoc//lib/rdoc/markup/table.rb#7 + # source://rdoc/lib/rdoc/markup/table.rb#7 def header; end # headers of each column # - # source://rdoc//lib/rdoc/markup/table.rb#7 + # source://rdoc/lib/rdoc/markup/table.rb#7 def header=(_arg0); end - # source://rdoc//lib/rdoc/markup/table.rb#32 + # source://rdoc/lib/rdoc/markup/table.rb#32 def pretty_print(q); end end # Outputs RDoc markup with vibrant ANSI color! # -# source://rdoc//lib/rdoc/markup/to_ansi.rb#5 +# source://rdoc/lib/rdoc/markup/to_ansi.rb#5 class RDoc::Markup::ToAnsi < ::RDoc::Markup::ToRdoc # Creates a new ToAnsi visitor that is ready to output vibrant ANSI color! # # @return [ToAnsi] a new instance of ToAnsi # - # source://rdoc//lib/rdoc/markup/to_ansi.rb#10 + # source://rdoc/lib/rdoc/markup/to_ansi.rb#10 def initialize(markup = T.unsafe(nil)); end # Overrides indent width to ensure output lines up correctly. # - # source://rdoc//lib/rdoc/markup/to_ansi.rb#31 + # source://rdoc/lib/rdoc/markup/to_ansi.rb#31 def accept_list_item_end(list_item); end # Adds coloring to note and label list items # - # source://rdoc//lib/rdoc/markup/to_ansi.rb#55 + # source://rdoc/lib/rdoc/markup/to_ansi.rb#55 def accept_list_item_start(list_item); end # Maps attributes to ANSI sequences # - # source://rdoc//lib/rdoc/markup/to_ansi.rb#22 + # source://rdoc/lib/rdoc/markup/to_ansi.rb#22 def init_tags; end # Starts accepting with a reset screen # - # source://rdoc//lib/rdoc/markup/to_ansi.rb#87 + # source://rdoc/lib/rdoc/markup/to_ansi.rb#87 def start_accepting; end end @@ -6073,50 +6111,50 @@ end # # This formatter won't work on 1.8.6 because it lacks String#chars. # -# source://rdoc//lib/rdoc/markup/to_bs.rb#8 +# source://rdoc/lib/rdoc/markup/to_bs.rb#8 class RDoc::Markup::ToBs < ::RDoc::Markup::ToRdoc # Returns a new ToBs that is ready for hot backspace action! # # @return [ToBs] a new instance of ToBs # - # source://rdoc//lib/rdoc/markup/to_bs.rb#13 + # source://rdoc/lib/rdoc/markup/to_bs.rb#13 def initialize(markup = T.unsafe(nil)); end # Makes heading text bold. # - # source://rdoc//lib/rdoc/markup/to_bs.rb#33 + # source://rdoc/lib/rdoc/markup/to_bs.rb#33 def accept_heading(heading); end # Prepares the visitor for consuming +list_item+ # - # source://rdoc//lib/rdoc/markup/to_bs.rb#46 + # source://rdoc/lib/rdoc/markup/to_bs.rb#46 def accept_list_item_start(list_item); end # Turns on or off regexp handling for +convert_string+ # - # source://rdoc//lib/rdoc/markup/to_bs.rb#71 + # source://rdoc/lib/rdoc/markup/to_bs.rb#71 def annotate(tag); end # Calls convert_string on the result of convert_regexp_handling # - # source://rdoc//lib/rdoc/markup/to_bs.rb#84 + # source://rdoc/lib/rdoc/markup/to_bs.rb#84 def convert_regexp_handling(target); end # Adds bold or underline mixed with backspaces # - # source://rdoc//lib/rdoc/markup/to_bs.rb#91 + # source://rdoc/lib/rdoc/markup/to_bs.rb#91 def convert_string(string); end # Sets a flag that is picked up by #annotate to do the right thing in # #convert_string # - # source://rdoc//lib/rdoc/markup/to_bs.rb#24 + # source://rdoc/lib/rdoc/markup/to_bs.rb#24 def init_tags; end end # Outputs RDoc markup as HTML. # -# source://rdoc//lib/rdoc/markup/to_html.rb#7 +# source://rdoc/lib/rdoc/markup/to_html.rb#7 class RDoc::Markup::ToHtml < ::RDoc::Markup::Formatter include ::RDoc::Text @@ -6124,114 +6162,114 @@ class RDoc::Markup::ToHtml < ::RDoc::Markup::Formatter # # @return [ToHtml] a new instance of ToHtml # - # source://rdoc//lib/rdoc/markup/to_html.rb#45 + # source://rdoc/lib/rdoc/markup/to_html.rb#45 def initialize(options, markup = T.unsafe(nil)); end # Adds +blank_line+ to the output # - # source://rdoc//lib/rdoc/markup/to_html.rb#291 + # source://rdoc/lib/rdoc/markup/to_html.rb#291 def accept_blank_line(blank_line); end # Adds +block_quote+ to the output # - # source://rdoc//lib/rdoc/markup/to_html.rb#190 + # source://rdoc/lib/rdoc/markup/to_html.rb#190 def accept_block_quote(block_quote); end # Adds +heading+ to the output. The headings greater than 6 are trimmed to # level 6. # - # source://rdoc//lib/rdoc/markup/to_html.rb#299 + # source://rdoc/lib/rdoc/markup/to_html.rb#299 def accept_heading(heading); end # Finishes consumption of +list+ # - # source://rdoc//lib/rdoc/markup/to_html.rb#262 + # source://rdoc/lib/rdoc/markup/to_html.rb#262 def accept_list_end(list); end # Finishes consumption of +list_item+ # - # source://rdoc//lib/rdoc/markup/to_html.rb#284 + # source://rdoc/lib/rdoc/markup/to_html.rb#284 def accept_list_item_end(list_item); end # Prepares the visitor for consuming +list_item+ # - # source://rdoc//lib/rdoc/markup/to_html.rb#273 + # source://rdoc/lib/rdoc/markup/to_html.rb#273 def accept_list_item_start(list_item); end # Prepares the visitor for consuming +list+ # - # source://rdoc//lib/rdoc/markup/to_html.rb#253 + # source://rdoc/lib/rdoc/markup/to_html.rb#253 def accept_list_start(list); end # Adds +paragraph+ to the output # - # source://rdoc//lib/rdoc/markup/to_html.rb#203 + # source://rdoc/lib/rdoc/markup/to_html.rb#203 def accept_paragraph(paragraph); end # Adds +raw+ to the output # - # source://rdoc//lib/rdoc/markup/to_html.rb#320 + # source://rdoc/lib/rdoc/markup/to_html.rb#320 def accept_raw(raw); end # Adds +rule+ to the output # - # source://rdoc//lib/rdoc/markup/to_html.rb#246 + # source://rdoc/lib/rdoc/markup/to_html.rb#246 def accept_rule(rule); end # Adds +table+ to the output # - # source://rdoc//lib/rdoc/markup/to_html.rb#327 + # source://rdoc/lib/rdoc/markup/to_html.rb#327 def accept_table(header, body, aligns); end # Adds +verbatim+ to the output # - # source://rdoc//lib/rdoc/markup/to_html.rb#216 + # source://rdoc/lib/rdoc/markup/to_html.rb#216 def accept_verbatim(verbatim); end # The RDoc::CodeObject HTML is being generated for. This is used to # generate namespaced URI fragments # - # source://rdoc//lib/rdoc/markup/to_html.rb#33 + # source://rdoc/lib/rdoc/markup/to_html.rb#33 def code_object; end # The RDoc::CodeObject HTML is being generated for. This is used to # generate namespaced URI fragments # - # source://rdoc//lib/rdoc/markup/to_html.rb#33 + # source://rdoc/lib/rdoc/markup/to_html.rb#33 def code_object=(_arg0); end # CGI-escapes +text+ # - # source://rdoc//lib/rdoc/markup/to_html.rb#352 + # source://rdoc/lib/rdoc/markup/to_html.rb#352 def convert_string(text); end # Returns the generated output # - # source://rdoc//lib/rdoc/markup/to_html.rb#183 + # source://rdoc/lib/rdoc/markup/to_html.rb#183 def end_accepting; end # Path to this document for relative links # - # source://rdoc//lib/rdoc/markup/to_html.rb#38 + # source://rdoc/lib/rdoc/markup/to_html.rb#38 def from_path; end # Path to this document for relative links # - # source://rdoc//lib/rdoc/markup/to_html.rb#38 + # source://rdoc/lib/rdoc/markup/to_html.rb#38 def from_path=(_arg0); end # Generate a link to +url+ with content +text+. Handles the special cases # for img: and link: described under handle_regexp_HYPERLINK # - # source://rdoc//lib/rdoc/markup/to_html.rb#360 + # source://rdoc/lib/rdoc/markup/to_html.rb#360 def gen_url(url, text); end - # source://rdoc//lib/rdoc/markup/to_html.rb#85 + # source://rdoc/lib/rdoc/markup/to_html.rb#85 def handle_RDOCLINK(url); end # +target+ is a
# - # source://rdoc//lib/rdoc/markup/to_html.rb#110 + # source://rdoc/lib/rdoc/markup/to_html.rb#110 def handle_regexp_HARD_BREAK(target); end # +target+ is a potential link. The following schemes are handled: @@ -6245,7 +6283,7 @@ class RDoc::Markup::ToHtml < ::RDoc::Markup::Formatter # link::: # Reference to a local file relative to the output directory. # - # source://rdoc//lib/rdoc/markup/to_html.rb#126 + # source://rdoc/lib/rdoc/markup/to_html.rb#126 def handle_regexp_HYPERLINK(target); end # +target+ is an rdoc-schemed link that will be converted into a hyperlink. @@ -6256,83 +6294,83 @@ class RDoc::Markup::ToHtml < ::RDoc::Markup::Formatter # For the +rdoc-label+ scheme the footnote and label prefixes are stripped # when creating a link. All other contents will be linked verbatim. # - # source://rdoc//lib/rdoc/markup/to_html.rb#141 + # source://rdoc/lib/rdoc/markup/to_html.rb#141 def handle_regexp_RDOCLINK(target); end # This +target+ is a link where the label is different from the URL # label[url] or {long label}[url] # - # source://rdoc//lib/rdoc/markup/to_html.rb#149 + # source://rdoc/lib/rdoc/markup/to_html.rb#149 def handle_regexp_TIDYLINK(target); end # Determines the HTML list element for +list_type+ and +open_tag+ # # @raise [RDoc::Error] # - # source://rdoc//lib/rdoc/markup/to_html.rb#385 + # source://rdoc/lib/rdoc/markup/to_html.rb#385 def html_list_name(list_type, open_tag); end - # source://rdoc//lib/rdoc/markup/to_html.rb#26 + # source://rdoc/lib/rdoc/markup/to_html.rb#26 def in_list_entry; end # Adds regexp handlings about link notations. # - # source://rdoc//lib/rdoc/markup/to_html.rb#80 + # source://rdoc/lib/rdoc/markup/to_html.rb#80 def init_link_notation_regexp_handlings; end # Adds regexp handlings. # - # source://rdoc//lib/rdoc/markup/to_html.rb#70 + # source://rdoc/lib/rdoc/markup/to_html.rb#70 def init_regexp_handlings; end # Maps attributes to HTML tags # - # source://rdoc//lib/rdoc/markup/to_html.rb#394 + # source://rdoc/lib/rdoc/markup/to_html.rb#394 def init_tags; end - # source://rdoc//lib/rdoc/markup/to_html.rb#27 + # source://rdoc/lib/rdoc/markup/to_html.rb#27 def list; end # Returns the HTML end-tag for +list_type+ # - # source://rdoc//lib/rdoc/markup/to_html.rb#420 + # source://rdoc/lib/rdoc/markup/to_html.rb#420 def list_end_for(list_type); end # Returns the HTML tag for +list_type+, possible using a label from # +list_item+ # - # source://rdoc//lib/rdoc/markup/to_html.rb#404 + # source://rdoc/lib/rdoc/markup/to_html.rb#404 def list_item_start(list_item, list_type); end # Returns true if text is valid ruby syntax # # @return [Boolean] # - # source://rdoc//lib/rdoc/markup/to_html.rb#434 + # source://rdoc/lib/rdoc/markup/to_html.rb#434 def parseable?(text); end - # source://rdoc//lib/rdoc/markup/to_html.rb#25 + # source://rdoc/lib/rdoc/markup/to_html.rb#25 def res; end # Prepares the visitor for HTML generation # - # source://rdoc//lib/rdoc/markup/to_html.rb#174 + # source://rdoc/lib/rdoc/markup/to_html.rb#174 def start_accepting; end # Converts +item+ to HTML using RDoc::Text#to_html # - # source://rdoc//lib/rdoc/markup/to_html.rb#448 + # source://rdoc/lib/rdoc/markup/to_html.rb#448 def to_html(item); end end -# source://rdoc//lib/rdoc/markup/to_html.rb#65 +# source://rdoc/lib/rdoc/markup/to_html.rb#65 RDoc::Markup::ToHtml::URL_CHARACTERS_REGEXP_STR = T.let(T.unsafe(nil), String) # Subclass of the RDoc::Markup::ToHtml class that supports looking up method # names, classes, etc to create links. RDoc::CrossReference is used to # generate those links based on the current context. # -# source://rdoc//lib/rdoc/markup/to_html_crossref.rb#7 +# source://rdoc/lib/rdoc/markup/to_html_crossref.rb#7 class RDoc::Markup::ToHtmlCrossref < ::RDoc::Markup::ToHtml # Creates a new crossref resolver that generates links relative to +context+ # which lives at +from_path+ in the generated files. '#' characters on @@ -6342,29 +6380,29 @@ class RDoc::Markup::ToHtmlCrossref < ::RDoc::Markup::ToHtml # @raise [ArgumentError] # @return [ToHtmlCrossref] a new instance of ToHtmlCrossref # - # source://rdoc//lib/rdoc/markup/to_html_crossref.rb#32 + # source://rdoc/lib/rdoc/markup/to_html_crossref.rb#32 def initialize(options, from_path, context, markup = T.unsafe(nil)); end # RDoc::CodeObject for generating references # - # source://rdoc//lib/rdoc/markup/to_html_crossref.rb#19 + # source://rdoc/lib/rdoc/markup/to_html_crossref.rb#19 def context; end # RDoc::CodeObject for generating references # - # source://rdoc//lib/rdoc/markup/to_html_crossref.rb#19 + # source://rdoc/lib/rdoc/markup/to_html_crossref.rb#19 def context=(_arg0); end # Creates a link to the reference +name+ if the name exists. If +text+ is # given it is used as the link text, otherwise +name+ is used. # - # source://rdoc//lib/rdoc/markup/to_html_crossref.rb#61 + # source://rdoc/lib/rdoc/markup/to_html_crossref.rb#61 def cross_reference(name, text = T.unsafe(nil), code = T.unsafe(nil)); end # Generates links for rdoc-ref: scheme URLs and allows # RDoc::Markup::ToHtml to handle other schemes. # - # source://rdoc//lib/rdoc/markup/to_html_crossref.rb#131 + # source://rdoc/lib/rdoc/markup/to_html_crossref.rb#131 def gen_url(url, text); end # We're invoked when any text matches the CROSSREF pattern. If we find the @@ -6373,13 +6411,13 @@ class RDoc::Markup::ToHtmlCrossref < ::RDoc::Markup::ToHtml # example, ToHtml is found, even without the RDoc::Markup:: prefix, # because we look for it in module Markup first. # - # source://rdoc//lib/rdoc/markup/to_html_crossref.rb#83 + # source://rdoc/lib/rdoc/markup/to_html_crossref.rb#83 def handle_regexp_CROSSREF(target); end # Handles rdoc-ref: scheme links and allows RDoc::Markup::ToHtml to # handle other schemes. # - # source://rdoc//lib/rdoc/markup/to_html_crossref.rb#102 + # source://rdoc/lib/rdoc/markup/to_html_crossref.rb#102 def handle_regexp_HYPERLINK(target); end # +target+ is an rdoc-schemed link that will be converted into a hyperlink. @@ -6389,31 +6427,31 @@ class RDoc::Markup::ToHtmlCrossref < ::RDoc::Markup::ToHtml # All other contents are handled by # {the superclass}[rdoc-ref:RDoc::Markup::ToHtml#handle_regexp_RDOCLINK] # - # source://rdoc//lib/rdoc/markup/to_html_crossref.rb#116 + # source://rdoc/lib/rdoc/markup/to_html_crossref.rb#116 def handle_regexp_RDOCLINK(target); end - # source://rdoc//lib/rdoc/markup/to_html_crossref.rb#46 + # source://rdoc/lib/rdoc/markup/to_html_crossref.rb#46 def init_link_notation_regexp_handlings; end # Creates an HTML link to +name+ with the given +text+. # - # source://rdoc//lib/rdoc/markup/to_html_crossref.rb#141 + # source://rdoc/lib/rdoc/markup/to_html_crossref.rb#141 def link(name, text, code = T.unsafe(nil)); end # Should we show '#' characters on method references? # - # source://rdoc//lib/rdoc/markup/to_html_crossref.rb#24 + # source://rdoc/lib/rdoc/markup/to_html_crossref.rb#24 def show_hash; end # Should we show '#' characters on method references? # - # source://rdoc//lib/rdoc/markup/to_html_crossref.rb#24 + # source://rdoc/lib/rdoc/markup/to_html_crossref.rb#24 def show_hash=(_arg0); end end # Outputs RDoc markup as paragraphs with inline markup only. # -# source://rdoc//lib/rdoc/markup/to_html_snippet.rb#5 +# source://rdoc/lib/rdoc/markup/to_html_snippet.rb#5 class RDoc::Markup::ToHtmlSnippet < ::RDoc::Markup::ToHtml # Creates a new ToHtmlSnippet formatter that will cut off the input on the # next word boundary after the given number of +characters+ or +paragraphs+ @@ -6421,135 +6459,135 @@ class RDoc::Markup::ToHtmlSnippet < ::RDoc::Markup::ToHtml # # @return [ToHtmlSnippet] a new instance of ToHtmlSnippet # - # source://rdoc//lib/rdoc/markup/to_html_snippet.rb#37 + # source://rdoc/lib/rdoc/markup/to_html_snippet.rb#37 def initialize(options, characters = T.unsafe(nil), paragraphs = T.unsafe(nil), markup = T.unsafe(nil)); end # Adds +heading+ to the output as a paragraph # - # source://rdoc//lib/rdoc/markup/to_html_snippet.rb#53 + # source://rdoc/lib/rdoc/markup/to_html_snippet.rb#53 def accept_heading(heading); end # Finishes consumption of +list_item+ # - # source://rdoc//lib/rdoc/markup/to_html_snippet.rb#85 + # source://rdoc/lib/rdoc/markup/to_html_snippet.rb#85 def accept_list_item_end(list_item); end # Prepares the visitor for consuming +list_item+ # - # source://rdoc//lib/rdoc/markup/to_html_snippet.rb#91 + # source://rdoc/lib/rdoc/markup/to_html_snippet.rb#91 def accept_list_item_start(list_item); end # Prepares the visitor for consuming +list+ # - # source://rdoc//lib/rdoc/markup/to_html_snippet.rb#98 + # source://rdoc/lib/rdoc/markup/to_html_snippet.rb#98 def accept_list_start(list); end # Adds +paragraph+ to the output # - # source://rdoc//lib/rdoc/markup/to_html_snippet.rb#72 + # source://rdoc/lib/rdoc/markup/to_html_snippet.rb#72 def accept_paragraph(paragraph); end # Raw sections are untrusted and ignored # - # source://rdoc//lib/rdoc/markup/formatter.rb#188 + # source://rdoc/lib/rdoc/markup/formatter.rb#188 def accept_raw(*node); end # Rules are ignored # - # source://rdoc//lib/rdoc/markup/formatter.rb#188 + # source://rdoc/lib/rdoc/markup/formatter.rb#188 def accept_rule(*node); end # Adds +verbatim+ to the output # - # source://rdoc//lib/rdoc/markup/to_html_snippet.rb#107 + # source://rdoc/lib/rdoc/markup/to_html_snippet.rb#107 def accept_verbatim(verbatim); end # Throws +:done+ when paragraph_limit paragraphs have been encountered # - # source://rdoc//lib/rdoc/markup/to_html_snippet.rb#198 + # source://rdoc/lib/rdoc/markup/to_html_snippet.rb#198 def add_paragraph; end # After this many characters the input will be cut off. # - # source://rdoc//lib/rdoc/markup/to_html_snippet.rb#10 + # source://rdoc/lib/rdoc/markup/to_html_snippet.rb#10 def character_limit; end # The number of characters seen so far. # - # source://rdoc//lib/rdoc/markup/to_html_snippet.rb#15 + # source://rdoc/lib/rdoc/markup/to_html_snippet.rb#15 def characters; end # Marks up +content+ # - # source://rdoc//lib/rdoc/markup/to_html_snippet.rb#207 + # source://rdoc/lib/rdoc/markup/to_html_snippet.rb#207 def convert(content); end # Converts flow items +flow+ # - # source://rdoc//lib/rdoc/markup/to_html_snippet.rb#218 + # source://rdoc/lib/rdoc/markup/to_html_snippet.rb#218 def convert_flow(flow); end # Returns just the text of +link+, +url+ is only used to determine the link # type. # - # source://rdoc//lib/rdoc/markup/to_html_snippet.rb#171 + # source://rdoc/lib/rdoc/markup/to_html_snippet.rb#171 def gen_url(url, text); end # Removes escaping from the cross-references in +target+ # - # source://rdoc//lib/rdoc/markup/to_html_snippet.rb#131 + # source://rdoc/lib/rdoc/markup/to_html_snippet.rb#131 def handle_regexp_CROSSREF(target); end # +target+ is a
# - # source://rdoc//lib/rdoc/markup/to_html_snippet.rb#138 + # source://rdoc/lib/rdoc/markup/to_html_snippet.rb#138 def handle_regexp_HARD_BREAK(target); end # In snippets, there are no lists # - # source://rdoc//lib/rdoc/markup/to_html_snippet.rb#191 + # source://rdoc/lib/rdoc/markup/to_html_snippet.rb#191 def html_list_name(list_type, open_tag); end # Lists are paragraphs, but notes and labels have a separator # - # source://rdoc//lib/rdoc/markup/to_html_snippet.rb#146 + # source://rdoc/lib/rdoc/markup/to_html_snippet.rb#146 def list_item_start(list_item, list_type); end # The attribute bitmask # - # source://rdoc//lib/rdoc/markup/to_html_snippet.rb#20 + # source://rdoc/lib/rdoc/markup/to_html_snippet.rb#20 def mask; end # Maintains a bitmask to allow HTML elements to be closed properly. See # RDoc::Markup::Formatter. # - # source://rdoc//lib/rdoc/markup/to_html_snippet.rb#264 + # source://rdoc/lib/rdoc/markup/to_html_snippet.rb#264 def off_tags(res, item); end # Maintains a bitmask to allow HTML elements to be closed properly. See # RDoc::Markup::Formatter. # - # source://rdoc//lib/rdoc/markup/to_html_snippet.rb#254 + # source://rdoc/lib/rdoc/markup/to_html_snippet.rb#254 def on_tags(res, item); end # After this many paragraphs the input will be cut off. # - # source://rdoc//lib/rdoc/markup/to_html_snippet.rb#25 + # source://rdoc/lib/rdoc/markup/to_html_snippet.rb#25 def paragraph_limit; end # Count of paragraphs found # - # source://rdoc//lib/rdoc/markup/to_html_snippet.rb#30 + # source://rdoc/lib/rdoc/markup/to_html_snippet.rb#30 def paragraphs; end # Prepares the visitor for HTML snippet generation # - # source://rdoc//lib/rdoc/markup/to_html_snippet.rb#122 + # source://rdoc/lib/rdoc/markup/to_html_snippet.rb#122 def start_accepting; end # Truncates +text+ at the end of the first word after the character_limit. # - # source://rdoc//lib/rdoc/markup/to_html_snippet.rb#273 + # source://rdoc/lib/rdoc/markup/to_html_snippet.rb#273 def truncate(text); end end @@ -6560,52 +6598,52 @@ end # This formatter only works on Paragraph instances. Attempting to process # other markup syntax items will not work. # -# source://rdoc//lib/rdoc/markup/to_joined_paragraph.rb#10 +# source://rdoc/lib/rdoc/markup/to_joined_paragraph.rb#10 class RDoc::Markup::ToJoinedParagraph < ::RDoc::Markup::Formatter # @return [ToJoinedParagraph] a new instance of ToJoinedParagraph # - # source://rdoc//lib/rdoc/markup/to_joined_paragraph.rb#12 + # source://rdoc/lib/rdoc/markup/to_joined_paragraph.rb#12 def initialize; end - # source://rdoc//lib/rdoc/markup/formatter.rb#188 + # source://rdoc/lib/rdoc/markup/formatter.rb#188 def accept_block_quote(*node); end - # source://rdoc//lib/rdoc/markup/formatter.rb#188 + # source://rdoc/lib/rdoc/markup/formatter.rb#188 def accept_heading(*node); end - # source://rdoc//lib/rdoc/markup/formatter.rb#188 + # source://rdoc/lib/rdoc/markup/formatter.rb#188 def accept_list_end(*node); end - # source://rdoc//lib/rdoc/markup/formatter.rb#188 + # source://rdoc/lib/rdoc/markup/formatter.rb#188 def accept_list_item_end(*node); end - # source://rdoc//lib/rdoc/markup/formatter.rb#188 + # source://rdoc/lib/rdoc/markup/formatter.rb#188 def accept_list_item_start(*node); end - # source://rdoc//lib/rdoc/markup/formatter.rb#188 + # source://rdoc/lib/rdoc/markup/formatter.rb#188 def accept_list_start(*node); end # Converts the parts of +paragraph+ to a single entry. # - # source://rdoc//lib/rdoc/markup/to_joined_paragraph.rb#25 + # source://rdoc/lib/rdoc/markup/to_joined_paragraph.rb#25 def accept_paragraph(paragraph); end - # source://rdoc//lib/rdoc/markup/formatter.rb#188 + # source://rdoc/lib/rdoc/markup/formatter.rb#188 def accept_raw(*node); end - # source://rdoc//lib/rdoc/markup/formatter.rb#188 + # source://rdoc/lib/rdoc/markup/formatter.rb#188 def accept_rule(*node); end - # source://rdoc//lib/rdoc/markup/formatter.rb#188 + # source://rdoc/lib/rdoc/markup/formatter.rb#188 def accept_table(*node); end - # source://rdoc//lib/rdoc/markup/formatter.rb#188 + # source://rdoc/lib/rdoc/markup/formatter.rb#188 def accept_verbatim(*node); end - # source://rdoc//lib/rdoc/markup/to_joined_paragraph.rb#19 + # source://rdoc/lib/rdoc/markup/to_joined_paragraph.rb#19 def end_accepting; end - # source://rdoc//lib/rdoc/markup/to_joined_paragraph.rb#16 + # source://rdoc/lib/rdoc/markup/to_joined_paragraph.rb#16 def start_accepting; end end @@ -6613,609 +6651,609 @@ end # converted to their link part and cross-reference links have the suppression # marks removed (\\SomeClass is converted to SomeClass). # -# source://rdoc//lib/rdoc/markup/to_label.rb#9 +# source://rdoc/lib/rdoc/markup/to_label.rb#9 class RDoc::Markup::ToLabel < ::RDoc::Markup::Formatter # Creates a new formatter that will output HTML-safe labels # # @return [ToLabel] a new instance of ToLabel # - # source://rdoc//lib/rdoc/markup/to_label.rb#16 + # source://rdoc/lib/rdoc/markup/to_label.rb#16 def initialize(markup = T.unsafe(nil)); end - # source://rdoc//lib/rdoc/markup/formatter.rb#188 + # source://rdoc/lib/rdoc/markup/formatter.rb#188 def accept_blank_line(*node); end - # source://rdoc//lib/rdoc/markup/formatter.rb#188 + # source://rdoc/lib/rdoc/markup/formatter.rb#188 def accept_block_quote(*node); end - # source://rdoc//lib/rdoc/markup/formatter.rb#188 + # source://rdoc/lib/rdoc/markup/formatter.rb#188 def accept_heading(*node); end - # source://rdoc//lib/rdoc/markup/formatter.rb#188 + # source://rdoc/lib/rdoc/markup/formatter.rb#188 def accept_list_end(*node); end - # source://rdoc//lib/rdoc/markup/formatter.rb#188 + # source://rdoc/lib/rdoc/markup/formatter.rb#188 def accept_list_item_end(*node); end - # source://rdoc//lib/rdoc/markup/formatter.rb#188 + # source://rdoc/lib/rdoc/markup/formatter.rb#188 def accept_list_item_start(*node); end - # source://rdoc//lib/rdoc/markup/formatter.rb#188 + # source://rdoc/lib/rdoc/markup/formatter.rb#188 def accept_list_start(*node); end - # source://rdoc//lib/rdoc/markup/formatter.rb#188 + # source://rdoc/lib/rdoc/markup/formatter.rb#188 def accept_paragraph(*node); end - # source://rdoc//lib/rdoc/markup/formatter.rb#188 + # source://rdoc/lib/rdoc/markup/formatter.rb#188 def accept_raw(*node); end - # source://rdoc//lib/rdoc/markup/formatter.rb#188 + # source://rdoc/lib/rdoc/markup/formatter.rb#188 def accept_rule(*node); end - # source://rdoc//lib/rdoc/markup/formatter.rb#188 + # source://rdoc/lib/rdoc/markup/formatter.rb#188 def accept_verbatim(*node); end # Converts +text+ to an HTML-safe label # - # source://rdoc//lib/rdoc/markup/to_label.rb#32 + # source://rdoc/lib/rdoc/markup/to_label.rb#32 def convert(text); end - # source://rdoc//lib/rdoc/markup/formatter.rb#188 + # source://rdoc/lib/rdoc/markup/formatter.rb#188 def end_accepting(*node); end # Converts the CROSSREF +target+ to plain text, removing the suppression # marker, if any # - # source://rdoc//lib/rdoc/markup/to_label.rb#42 + # source://rdoc/lib/rdoc/markup/to_label.rb#42 def handle_regexp_CROSSREF(target); end - # source://rdoc//lib/rdoc/markup/formatter.rb#188 + # source://rdoc/lib/rdoc/markup/formatter.rb#188 def handle_regexp_HARD_BREAK(*node); end # Converts the TIDYLINK +target+ to just the text part # - # source://rdoc//lib/rdoc/markup/to_label.rb#51 + # source://rdoc/lib/rdoc/markup/to_label.rb#51 def handle_regexp_TIDYLINK(target); end - # source://rdoc//lib/rdoc/markup/to_label.rb#11 + # source://rdoc/lib/rdoc/markup/to_label.rb#11 def res; end - # source://rdoc//lib/rdoc/markup/formatter.rb#188 + # source://rdoc/lib/rdoc/markup/formatter.rb#188 def start_accepting(*node); end end # Outputs parsed markup as Markdown # -# source://rdoc//lib/rdoc/markup/to_markdown.rb#7 +# source://rdoc/lib/rdoc/markup/to_markdown.rb#7 class RDoc::Markup::ToMarkdown < ::RDoc::Markup::ToRdoc # Creates a new formatter that will output Markdown format text # # @return [ToMarkdown] a new instance of ToMarkdown # - # source://rdoc//lib/rdoc/markup/to_markdown.rb#12 + # source://rdoc/lib/rdoc/markup/to_markdown.rb#12 def initialize(markup = T.unsafe(nil)); end # Finishes consumption of `list` # - # source://rdoc//lib/rdoc/markup/to_markdown.rb#47 + # source://rdoc/lib/rdoc/markup/to_markdown.rb#47 def accept_list_end(list); end # Finishes consumption of `list_item` # - # source://rdoc//lib/rdoc/markup/to_markdown.rb#54 + # source://rdoc/lib/rdoc/markup/to_markdown.rb#54 def accept_list_item_end(list_item); end # Prepares the visitor for consuming `list_item` # - # source://rdoc//lib/rdoc/markup/to_markdown.rb#75 + # source://rdoc/lib/rdoc/markup/to_markdown.rb#75 def accept_list_item_start(list_item); end # Prepares the visitor for consuming `list` # - # source://rdoc//lib/rdoc/markup/to_markdown.rb#100 + # source://rdoc/lib/rdoc/markup/to_markdown.rb#100 def accept_list_start(list); end # Adds `rule` to the output # - # source://rdoc//lib/rdoc/markup/to_markdown.rb#117 + # source://rdoc/lib/rdoc/markup/to_markdown.rb#117 def accept_rule(rule); end # Outputs `verbatim` indented 4 columns # - # source://rdoc//lib/rdoc/markup/to_markdown.rb#126 + # source://rdoc/lib/rdoc/markup/to_markdown.rb#126 def accept_verbatim(verbatim); end # Creates a Markdown-style URL from +url+ with +text+. # - # source://rdoc//lib/rdoc/markup/to_markdown.rb#140 + # source://rdoc/lib/rdoc/markup/to_markdown.rb#140 def gen_url(url, text); end # Handles rdoc- type links for footnotes. # - # source://rdoc//lib/rdoc/markup/to_markdown.rb#149 + # source://rdoc/lib/rdoc/markup/to_markdown.rb#149 def handle_rdoc_link(url); end # Adds a newline to the output # - # source://rdoc//lib/rdoc/markup/to_markdown.rb#40 + # source://rdoc/lib/rdoc/markup/to_markdown.rb#40 def handle_regexp_HARD_BREAK(target); end # Converts the rdoc-...: links into a Markdown.style links. # - # source://rdoc//lib/rdoc/markup/to_markdown.rb#187 + # source://rdoc/lib/rdoc/markup/to_markdown.rb#187 def handle_regexp_RDOCLINK(target); end # Converts the RDoc markup tidylink into a Markdown.style link. # - # source://rdoc//lib/rdoc/markup/to_markdown.rb#169 + # source://rdoc/lib/rdoc/markup/to_markdown.rb#169 def handle_regexp_TIDYLINK(target); end # Maps attributes to HTML sequences # - # source://rdoc//lib/rdoc/markup/to_markdown.rb#31 + # source://rdoc/lib/rdoc/markup/to_markdown.rb#31 def init_tags; end end # Outputs RDoc markup as RDoc markup! (mostly) # -# source://rdoc//lib/rdoc/markup/to_rdoc.rb#5 +# source://rdoc/lib/rdoc/markup/to_rdoc.rb#5 class RDoc::Markup::ToRdoc < ::RDoc::Markup::Formatter # Creates a new formatter that will output (mostly) \RDoc markup # # @return [ToRdoc] a new instance of ToRdoc # - # source://rdoc//lib/rdoc/markup/to_rdoc.rb#45 + # source://rdoc/lib/rdoc/markup/to_rdoc.rb#45 def initialize(markup = T.unsafe(nil)); end # Adds +blank_line+ to the output # - # source://rdoc//lib/rdoc/markup/to_rdoc.rb#77 + # source://rdoc/lib/rdoc/markup/to_rdoc.rb#77 def accept_blank_line(blank_line); end # Adds +paragraph+ to the output # - # source://rdoc//lib/rdoc/markup/to_rdoc.rb#84 + # source://rdoc/lib/rdoc/markup/to_rdoc.rb#84 def accept_block_quote(block_quote); end # Adds +heading+ to the output # - # source://rdoc//lib/rdoc/markup/to_rdoc.rb#99 + # source://rdoc/lib/rdoc/markup/to_rdoc.rb#99 def accept_heading(heading); end # Adds +paragraph+ to the output # - # source://rdoc//lib/rdoc/markup/to_rdoc.rb#211 + # source://rdoc/lib/rdoc/markup/to_rdoc.rb#211 def accept_indented_paragraph(paragraph); end # Finishes consumption of +list+ # - # source://rdoc//lib/rdoc/markup/to_rdoc.rb#110 + # source://rdoc/lib/rdoc/markup/to_rdoc.rb#110 def accept_list_end(list); end # Finishes consumption of +list_item+ # - # source://rdoc//lib/rdoc/markup/to_rdoc.rb#119 + # source://rdoc/lib/rdoc/markup/to_rdoc.rb#119 def accept_list_item_end(list_item); end # Prepares the visitor for consuming +list_item+ # - # source://rdoc//lib/rdoc/markup/to_rdoc.rb#143 + # source://rdoc/lib/rdoc/markup/to_rdoc.rb#143 def accept_list_item_start(list_item); end # Prepares the visitor for consuming +list+ # - # source://rdoc//lib/rdoc/markup/to_rdoc.rb#176 + # source://rdoc/lib/rdoc/markup/to_rdoc.rb#176 def accept_list_start(list); end # Adds +paragraph+ to the output # - # source://rdoc//lib/rdoc/markup/to_rdoc.rb#203 + # source://rdoc/lib/rdoc/markup/to_rdoc.rb#203 def accept_paragraph(paragraph); end # Adds +raw+ to the output # - # source://rdoc//lib/rdoc/markup/to_rdoc.rb#221 + # source://rdoc/lib/rdoc/markup/to_rdoc.rb#221 def accept_raw(raw); end # Adds +rule+ to the output # - # source://rdoc//lib/rdoc/markup/to_rdoc.rb#228 + # source://rdoc/lib/rdoc/markup/to_rdoc.rb#228 def accept_rule(rule); end # Adds +table+ to the output # - # source://rdoc//lib/rdoc/markup/to_rdoc.rb#251 + # source://rdoc/lib/rdoc/markup/to_rdoc.rb#251 def accept_table(header, body, aligns); end # Outputs +verbatim+ indented 2 columns # - # source://rdoc//lib/rdoc/markup/to_rdoc.rb#237 + # source://rdoc/lib/rdoc/markup/to_rdoc.rb#237 def accept_verbatim(verbatim); end # Applies attribute-specific markup to +text+ using RDoc::AttributeManager # - # source://rdoc//lib/rdoc/markup/to_rdoc.rb#279 + # source://rdoc/lib/rdoc/markup/to_rdoc.rb#279 def attributes(text); end # Returns the generated output # - # source://rdoc//lib/rdoc/markup/to_rdoc.rb#287 + # source://rdoc/lib/rdoc/markup/to_rdoc.rb#287 def end_accepting; end # Adds a newline to the output # - # source://rdoc//lib/rdoc/markup/to_rdoc.rb#303 + # source://rdoc/lib/rdoc/markup/to_rdoc.rb#303 def handle_regexp_HARD_BREAK(target); end # Removes preceding \\ from the suppressed crossref +target+ # - # source://rdoc//lib/rdoc/markup/to_rdoc.rb#294 + # source://rdoc/lib/rdoc/markup/to_rdoc.rb#294 def handle_regexp_SUPPRESSED_CROSSREF(target); end # Current indent amount for output in characters # - # source://rdoc//lib/rdoc/markup/to_rdoc.rb#10 + # source://rdoc/lib/rdoc/markup/to_rdoc.rb#10 def indent; end # Current indent amount for output in characters # - # source://rdoc//lib/rdoc/markup/to_rdoc.rb#10 + # source://rdoc/lib/rdoc/markup/to_rdoc.rb#10 def indent=(_arg0); end # Maps attributes to HTML sequences # - # source://rdoc//lib/rdoc/markup/to_rdoc.rb#68 + # source://rdoc/lib/rdoc/markup/to_rdoc.rb#68 def init_tags; end # Stack of current list indexes for alphabetic and numeric lists # - # source://rdoc//lib/rdoc/markup/to_rdoc.rb#20 + # source://rdoc/lib/rdoc/markup/to_rdoc.rb#20 def list_index; end # Stack of list types # - # source://rdoc//lib/rdoc/markup/to_rdoc.rb#25 + # source://rdoc/lib/rdoc/markup/to_rdoc.rb#25 def list_type; end # Stack of list widths for indentation # - # source://rdoc//lib/rdoc/markup/to_rdoc.rb#30 + # source://rdoc/lib/rdoc/markup/to_rdoc.rb#30 def list_width; end # Prefix for the next list item. See #use_prefix # - # source://rdoc//lib/rdoc/markup/to_rdoc.rb#35 + # source://rdoc/lib/rdoc/markup/to_rdoc.rb#35 def prefix; end # Output accumulator # - # source://rdoc//lib/rdoc/markup/to_rdoc.rb#40 + # source://rdoc/lib/rdoc/markup/to_rdoc.rb#40 def res; end # Prepares the visitor for text generation # - # source://rdoc//lib/rdoc/markup/to_rdoc.rb#310 + # source://rdoc/lib/rdoc/markup/to_rdoc.rb#310 def start_accepting; end # Adds the stored #prefix to the output and clears it. Lists generate a # prefix for later consumption. # - # source://rdoc//lib/rdoc/markup/to_rdoc.rb#324 + # source://rdoc/lib/rdoc/markup/to_rdoc.rb#324 def use_prefix; end # Output width in characters # - # source://rdoc//lib/rdoc/markup/to_rdoc.rb#15 + # source://rdoc/lib/rdoc/markup/to_rdoc.rb#15 def width; end # Output width in characters # - # source://rdoc//lib/rdoc/markup/to_rdoc.rb#15 + # source://rdoc/lib/rdoc/markup/to_rdoc.rb#15 def width=(_arg0); end # Wraps +text+ to #width # - # source://rdoc//lib/rdoc/markup/to_rdoc.rb#334 + # source://rdoc/lib/rdoc/markup/to_rdoc.rb#334 def wrap(text); end end # Extracts just the RDoc::Markup::Heading elements from a # RDoc::Markup::Document to help build a table of contents # -# source://rdoc//lib/rdoc/markup/to_table_of_contents.rb#6 +# source://rdoc/lib/rdoc/markup/to_table_of_contents.rb#6 class RDoc::Markup::ToTableOfContents < ::RDoc::Markup::Formatter # @return [ToTableOfContents] a new instance of ToTableOfContents # - # source://rdoc//lib/rdoc/markup/to_table_of_contents.rb#27 + # source://rdoc/lib/rdoc/markup/to_table_of_contents.rb#27 def initialize; end - # source://rdoc//lib/rdoc/markup/formatter.rb#188 + # source://rdoc/lib/rdoc/markup/formatter.rb#188 def accept_blank_line(*node); end # :stopdoc: # - # source://rdoc//lib/rdoc/markup/formatter.rb#188 + # source://rdoc/lib/rdoc/markup/formatter.rb#188 def accept_block_quote(*node); end # Adds +document+ to the output, using its heading cutoff if present # - # source://rdoc//lib/rdoc/markup/to_table_of_contents.rb#36 + # source://rdoc/lib/rdoc/markup/to_table_of_contents.rb#36 def accept_document(document); end # Adds +heading+ to the table of contents # - # source://rdoc//lib/rdoc/markup/to_table_of_contents.rb#45 + # source://rdoc/lib/rdoc/markup/to_table_of_contents.rb#45 def accept_heading(heading); end - # source://rdoc//lib/rdoc/markup/formatter.rb#188 + # source://rdoc/lib/rdoc/markup/formatter.rb#188 def accept_list_end(*node); end - # source://rdoc//lib/rdoc/markup/formatter.rb#188 + # source://rdoc/lib/rdoc/markup/formatter.rb#188 def accept_list_end_bullet(*node); end - # source://rdoc//lib/rdoc/markup/formatter.rb#188 + # source://rdoc/lib/rdoc/markup/formatter.rb#188 def accept_list_item_end(*node); end - # source://rdoc//lib/rdoc/markup/formatter.rb#188 + # source://rdoc/lib/rdoc/markup/formatter.rb#188 def accept_list_item_start(*node); end - # source://rdoc//lib/rdoc/markup/formatter.rb#188 + # source://rdoc/lib/rdoc/markup/formatter.rb#188 def accept_list_start(*node); end - # source://rdoc//lib/rdoc/markup/formatter.rb#188 + # source://rdoc/lib/rdoc/markup/formatter.rb#188 def accept_paragraph(*node); end - # source://rdoc//lib/rdoc/markup/formatter.rb#188 + # source://rdoc/lib/rdoc/markup/formatter.rb#188 def accept_raw(*node); end - # source://rdoc//lib/rdoc/markup/formatter.rb#188 + # source://rdoc/lib/rdoc/markup/formatter.rb#188 def accept_rule(*node); end - # source://rdoc//lib/rdoc/markup/formatter.rb#188 + # source://rdoc/lib/rdoc/markup/formatter.rb#188 def accept_table(*node); end - # source://rdoc//lib/rdoc/markup/formatter.rb#188 + # source://rdoc/lib/rdoc/markup/formatter.rb#188 def accept_verbatim(*node); end # Returns the table of contents # - # source://rdoc//lib/rdoc/markup/to_table_of_contents.rb#52 + # source://rdoc/lib/rdoc/markup/to_table_of_contents.rb#52 def end_accepting; end # Omits headings with a level less than the given level. # - # source://rdoc//lib/rdoc/markup/to_table_of_contents.rb#25 + # source://rdoc/lib/rdoc/markup/to_table_of_contents.rb#25 def omit_headings_below; end # Omits headings with a level less than the given level. # - # source://rdoc//lib/rdoc/markup/to_table_of_contents.rb#25 + # source://rdoc/lib/rdoc/markup/to_table_of_contents.rb#25 def omit_headings_below=(_arg0); end # Output accumulator # - # source://rdoc//lib/rdoc/markup/to_table_of_contents.rb#20 + # source://rdoc/lib/rdoc/markup/to_table_of_contents.rb#20 def res; end # Prepares the visitor for text generation # - # source://rdoc//lib/rdoc/markup/to_table_of_contents.rb#59 + # source://rdoc/lib/rdoc/markup/to_table_of_contents.rb#59 def start_accepting; end # Returns true if +heading+ is below the display threshold # # @return [Boolean] # - # source://rdoc//lib/rdoc/markup/to_table_of_contents.rb#67 + # source://rdoc/lib/rdoc/markup/to_table_of_contents.rb#67 def suppressed?(heading); end class << self # Singleton for table-of-contents generation # - # source://rdoc//lib/rdoc/markup/to_table_of_contents.rb#13 + # source://rdoc/lib/rdoc/markup/to_table_of_contents.rb#13 def to_toc; end end end # This Markup outputter is used for testing purposes. # -# source://rdoc//lib/rdoc/markup/to_test.rb#5 +# source://rdoc/lib/rdoc/markup/to_test.rb#5 class RDoc::Markup::ToTest < ::RDoc::Markup::Formatter - # source://rdoc//lib/rdoc/markup/to_test.rb#55 + # source://rdoc/lib/rdoc/markup/to_test.rb#55 def accept_blank_line(blank_line); end - # source://rdoc//lib/rdoc/markup/to_test.rb#59 + # source://rdoc/lib/rdoc/markup/to_test.rb#59 def accept_heading(heading); end - # source://rdoc//lib/rdoc/markup/to_test.rb#44 + # source://rdoc/lib/rdoc/markup/to_test.rb#44 def accept_list_end(list); end - # source://rdoc//lib/rdoc/markup/to_test.rb#52 + # source://rdoc/lib/rdoc/markup/to_test.rb#52 def accept_list_item_end(list_item); end - # source://rdoc//lib/rdoc/markup/to_test.rb#48 + # source://rdoc/lib/rdoc/markup/to_test.rb#48 def accept_list_item_start(list_item); end - # source://rdoc//lib/rdoc/markup/to_test.rb#33 + # source://rdoc/lib/rdoc/markup/to_test.rb#33 def accept_list_start(list); end - # source://rdoc//lib/rdoc/markup/to_test.rb#21 + # source://rdoc/lib/rdoc/markup/to_test.rb#21 def accept_paragraph(paragraph); end - # source://rdoc//lib/rdoc/markup/to_test.rb#25 + # source://rdoc/lib/rdoc/markup/to_test.rb#25 def accept_raw(raw); end - # source://rdoc//lib/rdoc/markup/to_test.rb#63 + # source://rdoc/lib/rdoc/markup/to_test.rb#63 def accept_rule(rule); end - # source://rdoc//lib/rdoc/markup/to_test.rb#29 + # source://rdoc/lib/rdoc/markup/to_test.rb#29 def accept_verbatim(verbatim); end - # source://rdoc//lib/rdoc/markup/to_test.rb#17 + # source://rdoc/lib/rdoc/markup/to_test.rb#17 def end_accepting; end # :section: Visitor # - # source://rdoc//lib/rdoc/markup/to_test.rb#12 + # source://rdoc/lib/rdoc/markup/to_test.rb#12 def start_accepting; end end # Extracts sections of text enclosed in plus, tt or code. Used to discover # undocumented parameters. # -# source://rdoc//lib/rdoc/markup/to_tt_only.rb#6 +# source://rdoc/lib/rdoc/markup/to_tt_only.rb#6 class RDoc::Markup::ToTtOnly < ::RDoc::Markup::Formatter # Creates a new tt-only formatter. # # @return [ToTtOnly] a new instance of ToTtOnly # - # source://rdoc//lib/rdoc/markup/to_tt_only.rb#21 + # source://rdoc/lib/rdoc/markup/to_tt_only.rb#21 def initialize(markup = T.unsafe(nil)); end # Does nothing to +markup_item+ because it doesn't have any user-built # content # - # source://rdoc//lib/rdoc/markup/to_tt_only.rb#71 + # source://rdoc/lib/rdoc/markup/to_tt_only.rb#71 def accept_blank_line(markup_item); end # Adds tts from +block_quote+ to the output # - # source://rdoc//lib/rdoc/markup/to_tt_only.rb#30 + # source://rdoc/lib/rdoc/markup/to_tt_only.rb#30 def accept_block_quote(block_quote); end # Does nothing to +markup_item+ because it doesn't have any user-built # content # - # source://rdoc//lib/rdoc/markup/to_tt_only.rb#71 + # source://rdoc/lib/rdoc/markup/to_tt_only.rb#71 def accept_heading(markup_item); end # Pops the list type for +list+ from #list_type # - # source://rdoc//lib/rdoc/markup/to_tt_only.rb#37 + # source://rdoc/lib/rdoc/markup/to_tt_only.rb#37 def accept_list_end(list); end # Does nothing to +markup_item+ because it doesn't have any user-built # content # - # source://rdoc//lib/rdoc/markup/to_tt_only.rb#71 + # source://rdoc/lib/rdoc/markup/to_tt_only.rb#71 def accept_list_item_end(markup_item); end # Prepares the visitor for consuming +list_item+ # - # source://rdoc//lib/rdoc/markup/to_tt_only.rb#51 + # source://rdoc/lib/rdoc/markup/to_tt_only.rb#51 def accept_list_item_start(list_item); end # Pushes the list type for +list+ onto #list_type # - # source://rdoc//lib/rdoc/markup/to_tt_only.rb#44 + # source://rdoc/lib/rdoc/markup/to_tt_only.rb#44 def accept_list_start(list); end # Adds +paragraph+ to the output # - # source://rdoc//lib/rdoc/markup/to_tt_only.rb#63 + # source://rdoc/lib/rdoc/markup/to_tt_only.rb#63 def accept_paragraph(paragraph); end # Does nothing to +markup_item+ because it doesn't have any user-built # content # - # source://rdoc//lib/rdoc/markup/to_tt_only.rb#71 + # source://rdoc/lib/rdoc/markup/to_tt_only.rb#71 def accept_raw(markup_item); end # Does nothing to +markup_item+ because it doesn't have any user-built # content # - # source://rdoc//lib/rdoc/markup/to_tt_only.rb#71 + # source://rdoc/lib/rdoc/markup/to_tt_only.rb#71 def accept_rule(markup_item); end # Does nothing to +markup_item+ because it doesn't have any user-built # content # - # source://rdoc//lib/rdoc/markup/to_tt_only.rb#71 + # source://rdoc/lib/rdoc/markup/to_tt_only.rb#71 def accept_verbatim(markup_item); end # Does nothing to +markup_item+ because it doesn't have any user-built # content # - # source://rdoc//lib/rdoc/markup/to_tt_only.rb#71 + # source://rdoc/lib/rdoc/markup/to_tt_only.rb#71 def do_nothing(markup_item); end # Returns an Array of items that were wrapped in plus, tt or code. # - # source://rdoc//lib/rdoc/markup/to_tt_only.rb#107 + # source://rdoc/lib/rdoc/markup/to_tt_only.rb#107 def end_accepting; end # Stack of list types # - # source://rdoc//lib/rdoc/markup/to_tt_only.rb#11 + # source://rdoc/lib/rdoc/markup/to_tt_only.rb#11 def list_type; end # Output accumulator # - # source://rdoc//lib/rdoc/markup/to_tt_only.rb#16 + # source://rdoc/lib/rdoc/markup/to_tt_only.rb#16 def res; end # Prepares the visitor for gathering tt sections # - # source://rdoc//lib/rdoc/markup/to_tt_only.rb#114 + # source://rdoc/lib/rdoc/markup/to_tt_only.rb#114 def start_accepting; end # Extracts tt sections from +text+ # - # source://rdoc//lib/rdoc/markup/to_tt_only.rb#84 + # source://rdoc/lib/rdoc/markup/to_tt_only.rb#84 def tt_sections(text); end end # A section of verbatim text # -# source://rdoc//lib/rdoc/markup/verbatim.rb#5 +# source://rdoc/lib/rdoc/markup/verbatim.rb#5 class RDoc::Markup::Verbatim < ::RDoc::Markup::Raw # @return [Verbatim] a new instance of Verbatim # - # source://rdoc//lib/rdoc/markup/verbatim.rb#12 + # source://rdoc/lib/rdoc/markup/verbatim.rb#12 def initialize(*parts); end - # source://rdoc//lib/rdoc/markup/verbatim.rb#18 + # source://rdoc/lib/rdoc/markup/verbatim.rb#18 def ==(other); end # Calls #accept_verbatim on +visitor+ # - # source://rdoc//lib/rdoc/markup/verbatim.rb#25 + # source://rdoc/lib/rdoc/markup/verbatim.rb#25 def accept(visitor); end # Format of this verbatim section # - # source://rdoc//lib/rdoc/markup/verbatim.rb#10 + # source://rdoc/lib/rdoc/markup/verbatim.rb#10 def format; end # Format of this verbatim section # - # source://rdoc//lib/rdoc/markup/verbatim.rb#10 + # source://rdoc/lib/rdoc/markup/verbatim.rb#10 def format=(_arg0); end # Collapses 3+ newlines into two newlines # - # source://rdoc//lib/rdoc/markup/verbatim.rb#32 + # source://rdoc/lib/rdoc/markup/verbatim.rb#32 def normalize; end - # source://rdoc//lib/rdoc/markup/verbatim.rb#53 + # source://rdoc/lib/rdoc/markup/verbatim.rb#53 def pretty_print(q); end # Is this verbatim section Ruby code? # # @return [Boolean] # - # source://rdoc//lib/rdoc/markup/verbatim.rb#71 + # source://rdoc/lib/rdoc/markup/verbatim.rb#71 def ruby?; end # The text of the section # - # source://rdoc//lib/rdoc/markup/verbatim.rb#79 + # source://rdoc/lib/rdoc/markup/verbatim.rb#79 def text; end end # Abstract class representing either a method or an attribute. # -# source://rdoc//lib/rdoc/method_attr.rb#5 +# source://rdoc/lib/rdoc/code_object/method_attr.rb#5 class RDoc::MethodAttr < ::RDoc::CodeObject include ::Comparable @@ -7226,15 +7264,15 @@ class RDoc::MethodAttr < ::RDoc::CodeObject # # @return [MethodAttr] a new instance of MethodAttr # - # source://rdoc//lib/rdoc/method_attr.rb#78 + # source://rdoc/lib/rdoc/code_object/method_attr.rb#78 def initialize(text, name); end # Order by #singleton then #name # - # source://rdoc//lib/rdoc/method_attr.rb#113 + # source://rdoc/lib/rdoc/code_object/method_attr.rb#113 def <=>(other); end - # source://rdoc//lib/rdoc/method_attr.rb#121 + # source://rdoc/lib/rdoc/code_object/method_attr.rb#121 def ==(other); end # Abstract method. Contexts in their building phase call this @@ -7247,7 +7285,7 @@ class RDoc::MethodAttr < ::RDoc::CodeObject # # @raise [NotImplementedError] # - # source://rdoc//lib/rdoc/method_attr.rb#209 + # source://rdoc/lib/rdoc/code_object/method_attr.rb#209 def add_alias(an_alias, context); end # Prepend +src+ with line numbers. Relies on the first line of a source @@ -7258,50 +7296,50 @@ class RDoc::MethodAttr < ::RDoc::CodeObject # If it has this comment then line numbers are added to +src+ and the , # line dddd portion of the comment is removed. # - # source://rdoc//lib/rdoc/generator/markup.rb#77 + # source://rdoc/lib/rdoc/generator/markup.rb#77 def add_line_numbers(src); end # Array of other names for this method/attribute # - # source://rdoc//lib/rdoc/method_attr.rb#32 + # source://rdoc/lib/rdoc/code_object/method_attr.rb#32 def aliases; end # HTML fragment reference for this method # - # source://rdoc//lib/rdoc/method_attr.rb#216 + # source://rdoc/lib/rdoc/code_object/method_attr.rb#216 def aref; end # Prefix for +aref+, defined by subclasses. # # @raise [NotImplementedError] # - # source://rdoc//lib/rdoc/method_attr.rb#225 + # source://rdoc/lib/rdoc/code_object/method_attr.rb#225 def aref_prefix; end # The call_seq or the param_seq with method name, if there is no call_seq. # - # source://rdoc//lib/rdoc/method_attr.rb#64 + # source://rdoc/lib/rdoc/code_object/method_attr.rb#64 def arglists; end # Parameters yielded by the called block # - # source://rdoc//lib/rdoc/method_attr.rb#49 + # source://rdoc/lib/rdoc/code_object/method_attr.rb#49 def block_params; end # Attempts to sanitize the content passed by the Ruby parser: # remove outer parentheses, etc. # - # source://rdoc//lib/rdoc/method_attr.rb#233 + # source://rdoc/lib/rdoc/code_object/method_attr.rb#233 def block_params=(value); end # Different ways to call this method # - # source://rdoc//lib/rdoc/method_attr.rb#59 + # source://rdoc/lib/rdoc/code_object/method_attr.rb#59 def call_seq; end # Different ways to call this method # - # source://rdoc//lib/rdoc/method_attr.rb#59 + # source://rdoc/lib/rdoc/code_object/method_attr.rb#59 def call_seq=(_arg0); end # A method/attribute is documented if any of the following is true: @@ -7311,61 +7349,64 @@ class RDoc::MethodAttr < ::RDoc::CodeObject # # @return [Boolean] # - # source://rdoc//lib/rdoc/method_attr.rb#132 + # source://rdoc/lib/rdoc/code_object/method_attr.rb#132 def documented?; end - # source://rdoc//lib/rdoc/method_attr.rb#178 + # source://rdoc/lib/rdoc/code_object/method_attr.rb#178 def find_method_or_attribute(name); end - # source://rdoc//lib/rdoc/method_attr.rb#166 + # source://rdoc/lib/rdoc/code_object/method_attr.rb#166 def find_see; end # Full method/attribute name including namespace # - # source://rdoc//lib/rdoc/method_attr.rb#300 + # source://rdoc/lib/rdoc/code_object/method_attr.rb#300 def full_name; end # HTML id-friendly method/attribute name # - # source://rdoc//lib/rdoc/method_attr.rb#291 + # source://rdoc/lib/rdoc/code_object/method_attr.rb#291 def html_name; end - # source://rdoc//lib/rdoc/method_attr.rb#105 + # source://rdoc/lib/rdoc/code_object/method_attr.rb#105 def initialize_visibility; end - # source://rdoc//lib/rdoc/method_attr.rb#304 + # source://rdoc/lib/rdoc/code_object/method_attr.rb#304 def inspect; end # The method/attribute we're aliasing # - # source://rdoc//lib/rdoc/method_attr.rb#37 + # source://rdoc/lib/rdoc/code_object/method_attr.rb#37 def is_alias_for; end # The method/attribute we're aliasing # - # source://rdoc//lib/rdoc/method_attr.rb#37 + # source://rdoc/lib/rdoc/code_object/method_attr.rb#37 def is_alias_for=(_arg0); end # Turns the method's token stream into HTML. # # Prepends line numbers if +options.line_numbers+ is true. # - # source://rdoc//lib/rdoc/generator/markup.rb#101 + # source://rdoc/lib/rdoc/generator/markup.rb#101 def markup_code; end # Name of this method/attribute. # - # source://rdoc//lib/rdoc/method_attr.rb#12 + # source://rdoc/lib/rdoc/code_object/method_attr.rb#12 def name; end # Name of this method/attribute. # - # source://rdoc//lib/rdoc/method_attr.rb#12 + # source://rdoc/lib/rdoc/code_object/method_attr.rb#12 def name=(_arg0); end + # source://rdoc/lib/rdoc/code_object/method_attr.rb#418 + def name_ord_range; end + # '::' for a class method/attribute, '#' for an instance method. # - # source://rdoc//lib/rdoc/method_attr.rb#319 + # source://rdoc/lib/rdoc/code_object/method_attr.rb#319 def name_prefix; end # Name for output to HTML. For class methods the full name with a "." is @@ -7374,46 +7415,46 @@ class RDoc::MethodAttr < ::RDoc::CodeObject # # This is to help prevent people from using :: to call class methods. # - # source://rdoc//lib/rdoc/method_attr.rb#330 + # source://rdoc/lib/rdoc/code_object/method_attr.rb#330 def output_name(context); end # Pretty parameter list for this method # - # source://rdoc//lib/rdoc/method_attr.rb#69 + # source://rdoc/lib/rdoc/code_object/method_attr.rb#69 def param_seq; end # Parameters for this method # - # source://rdoc//lib/rdoc/method_attr.rb#54 + # source://rdoc/lib/rdoc/code_object/method_attr.rb#54 def params; end # Parameters for this method # - # source://rdoc//lib/rdoc/method_attr.rb#54 + # source://rdoc/lib/rdoc/code_object/method_attr.rb#54 def params=(_arg0); end # Name of our parent with special handling for un-marshaled methods # - # source://rdoc//lib/rdoc/method_attr.rb#360 + # source://rdoc/lib/rdoc/code_object/method_attr.rb#360 def parent_name; end # Path to this method for use with HTML generator output. # - # source://rdoc//lib/rdoc/method_attr.rb#353 + # source://rdoc/lib/rdoc/code_object/method_attr.rb#353 def path; end # Method/attribute name with class/instance indicator # - # source://rdoc//lib/rdoc/method_attr.rb#339 + # source://rdoc/lib/rdoc/code_object/method_attr.rb#339 def pretty_name; end - # source://rdoc//lib/rdoc/method_attr.rb#364 + # source://rdoc/lib/rdoc/code_object/method_attr.rb#364 def pretty_print(q); end # Used by RDoc::Generator::JsonIndex to create a record for the search # engine. # - # source://rdoc//lib/rdoc/method_attr.rb#398 + # source://rdoc/lib/rdoc/code_object/method_attr.rb#398 def search_record; end # A method/attribute to look at, @@ -7429,87 +7470,87 @@ class RDoc::MethodAttr < ::RDoc::CodeObject # Templates may generate a "see also ..." if this method/attribute # has documentation, and "see ..." if it does not. # - # source://rdoc//lib/rdoc/method_attr.rb#152 + # source://rdoc/lib/rdoc/code_object/method_attr.rb#152 def see; end # Is this a singleton method/attribute? # - # source://rdoc//lib/rdoc/method_attr.rb#22 + # source://rdoc/lib/rdoc/code_object/method_attr.rb#22 def singleton; end # Is this a singleton method/attribute? # - # source://rdoc//lib/rdoc/method_attr.rb#22 + # source://rdoc/lib/rdoc/code_object/method_attr.rb#22 def singleton=(_arg0); end # Sets the store for this class or module and its contained code objects. # - # source://rdoc//lib/rdoc/method_attr.rb#160 + # source://rdoc/lib/rdoc/code_object/method_attr.rb#160 def store=(store); end # Source file token stream # - # source://rdoc//lib/rdoc/method_attr.rb#27 + # source://rdoc/lib/rdoc/code_object/method_attr.rb#27 def text; end - # source://rdoc//lib/rdoc/method_attr.rb#410 + # source://rdoc/lib/rdoc/code_object/method_attr.rb#410 def to_s; end # Type of method/attribute (class or instance) # - # source://rdoc//lib/rdoc/method_attr.rb#346 + # source://rdoc/lib/rdoc/code_object/method_attr.rb#346 def type; end # public, protected, private # - # source://rdoc//lib/rdoc/method_attr.rb#17 + # source://rdoc/lib/rdoc/code_object/method_attr.rb#17 def visibility; end # public, protected, private # - # source://rdoc//lib/rdoc/method_attr.rb#17 + # source://rdoc/lib/rdoc/code_object/method_attr.rb#17 def visibility=(_arg0); end private # Resets cached data for the object so it can be rebuilt by accessor methods # - # source://rdoc//lib/rdoc/method_attr.rb#101 + # source://rdoc/lib/rdoc/code_object/method_attr.rb#101 def initialize_copy(other); end end # A Mixin adds features from a module into another context. RDoc::Include and # RDoc::Extend are both mixins. # -# source://rdoc//lib/rdoc/mixin.rb#6 +# source://rdoc/lib/rdoc/code_object/mixin.rb#6 class RDoc::Mixin < ::RDoc::CodeObject # Creates a new Mixin for +name+ with +comment+ # # @return [Mixin] a new instance of Mixin # - # source://rdoc//lib/rdoc/mixin.rb#16 + # source://rdoc/lib/rdoc/code_object/mixin.rb#16 def initialize(name, comment); end # Mixins are sorted by name # - # source://rdoc//lib/rdoc/mixin.rb#26 + # source://rdoc/lib/rdoc/code_object/mixin.rb#26 def <=>(other); end - # source://rdoc//lib/rdoc/mixin.rb#32 + # source://rdoc/lib/rdoc/code_object/mixin.rb#32 def ==(other); end - # source://rdoc//lib/rdoc/mixin.rb#32 + # source://rdoc/lib/rdoc/code_object/mixin.rb#32 def eql?(other); end # Full name based on #module # - # source://rdoc//lib/rdoc/mixin.rb#41 + # source://rdoc/lib/rdoc/code_object/mixin.rb#41 def full_name; end - # source://rdoc//lib/rdoc/mixin.rb#46 + # source://rdoc/lib/rdoc/code_object/mixin.rb#46 def hash; end - # source://rdoc//lib/rdoc/mixin.rb#50 + # source://rdoc/lib/rdoc/code_object/mixin.rb#50 def inspect; end # Attempts to locate the included module object. Returns the name if not @@ -7528,90 +7569,90 @@ class RDoc::Mixin < ::RDoc::CodeObject # # As of the beginning of October, 2011, no gem includes nonexistent modules. # - # source://rdoc//lib/rdoc/mixin.rb#75 + # source://rdoc/lib/rdoc/code_object/mixin.rb#75 def module; end # Name of included module # - # source://rdoc//lib/rdoc/mixin.rb#11 + # source://rdoc/lib/rdoc/code_object/mixin.rb#11 def name; end # Name of included module # - # source://rdoc//lib/rdoc/mixin.rb#11 + # source://rdoc/lib/rdoc/code_object/mixin.rb#11 def name=(_arg0); end # Sets the store for this class or module and its contained code objects. # - # source://rdoc//lib/rdoc/mixin.rb#110 + # source://rdoc/lib/rdoc/code_object/mixin.rb#110 def store=(store); end - # source://rdoc//lib/rdoc/mixin.rb#116 + # source://rdoc/lib/rdoc/code_object/mixin.rb#116 def to_s; end end # A normal class, neither singleton nor anonymous # -# source://rdoc//lib/rdoc/normal_class.rb#5 +# source://rdoc/lib/rdoc/code_object/normal_class.rb#5 class RDoc::NormalClass < ::RDoc::ClassModule # The ancestors of this class including modules. Unlike Module#ancestors, # this class is not included in the result. The result will contain both # RDoc::ClassModules and Strings. # - # source://rdoc//lib/rdoc/normal_class.rb#12 + # source://rdoc/lib/rdoc/code_object/normal_class.rb#12 def ancestors; end - # source://rdoc//lib/rdoc/normal_class.rb#24 + # source://rdoc/lib/rdoc/code_object/normal_class.rb#24 def aref_prefix; end # The definition of this class, class MyClassName # - # source://rdoc//lib/rdoc/normal_class.rb#31 + # source://rdoc/lib/rdoc/code_object/normal_class.rb#31 def definition; end - # source://rdoc//lib/rdoc/normal_class.rb#35 + # source://rdoc/lib/rdoc/code_object/normal_class.rb#35 def direct_ancestors; end - # source://rdoc//lib/rdoc/normal_class.rb#39 + # source://rdoc/lib/rdoc/code_object/normal_class.rb#39 def inspect; end - # source://rdoc//lib/rdoc/normal_class.rb#56 + # source://rdoc/lib/rdoc/code_object/normal_class.rb#56 def pretty_print(q); end - # source://rdoc//lib/rdoc/normal_class.rb#47 + # source://rdoc/lib/rdoc/code_object/normal_class.rb#47 def to_s; end end # A normal module, like NormalClass # -# source://rdoc//lib/rdoc/normal_module.rb#5 +# source://rdoc/lib/rdoc/code_object/normal_module.rb#5 class RDoc::NormalModule < ::RDoc::ClassModule - # source://rdoc//lib/rdoc/normal_module.rb#7 + # source://rdoc/lib/rdoc/code_object/normal_module.rb#7 def aref_prefix; end # The definition of this module, module MyModuleName # - # source://rdoc//lib/rdoc/normal_module.rb#21 + # source://rdoc/lib/rdoc/code_object/normal_module.rb#21 def definition; end - # source://rdoc//lib/rdoc/normal_module.rb#11 + # source://rdoc/lib/rdoc/code_object/normal_module.rb#11 def inspect; end # This is a module, returns true # # @return [Boolean] # - # source://rdoc//lib/rdoc/normal_module.rb#28 + # source://rdoc/lib/rdoc/code_object/normal_module.rb#28 def module?; end - # source://rdoc//lib/rdoc/normal_module.rb#32 + # source://rdoc/lib/rdoc/code_object/normal_module.rb#32 def pretty_print(q); end # Modules don't have one, raises NoMethodError # # @raise [NoMethodError] # - # source://rdoc//lib/rdoc/normal_module.rb#69 + # source://rdoc/lib/rdoc/code_object/normal_module.rb#69 def superclass; end end @@ -7684,343 +7725,357 @@ end # Float, TrueClass, FalseClass, Array, Regexp, Date, Time, URI, etc.), # RDoc::Options adds Path, PathArray and Template. # -# source://rdoc//lib/rdoc/options.rb#75 +# source://rdoc/lib/rdoc/options.rb#75 class RDoc::Options # @return [Options] a new instance of Options # - # source://rdoc//lib/rdoc/options.rb#347 + # source://rdoc/lib/rdoc/options.rb#352 def initialize(loaded_options = T.unsafe(nil)); end - # source://rdoc//lib/rdoc/options.rb#460 + # source://rdoc/lib/rdoc/options.rb#468 def ==(other); end # Character-set for HTML output. #encoding is preferred over #charset # - # source://rdoc//lib/rdoc/options.rb#152 + # source://rdoc/lib/rdoc/options.rb#152 def charset; end # Character-set for HTML output. #encoding is preferred over #charset # - # source://rdoc//lib/rdoc/options.rb#152 + # source://rdoc/lib/rdoc/options.rb#152 def charset=(_arg0); end # Check that the files on the command line exist # - # source://rdoc//lib/rdoc/options.rb#484 + # source://rdoc/lib/rdoc/options.rb#493 def check_files; end # Ensure only one generator is loaded # - # source://rdoc//lib/rdoc/options.rb#505 + # source://rdoc/lib/rdoc/options.rb#514 def check_generator; end # If true, only report on undocumented files # - # source://rdoc//lib/rdoc/options.rb#244 + # source://rdoc/lib/rdoc/options.rb#244 def coverage_report; end # If true, only report on undocumented files # - # source://rdoc//lib/rdoc/options.rb#244 + # source://rdoc/lib/rdoc/options.rb#244 def coverage_report=(_arg0); end # Set the title, but only if not already set. Used to set the title # from a source file, so that a title set from the command line # will have the priority. # - # source://rdoc//lib/rdoc/options.rb#517 + # source://rdoc/lib/rdoc/options.rb#526 def default_title=(string); end # If true, RDoc will not write any files. # - # source://rdoc//lib/rdoc/options.rb#157 + # source://rdoc/lib/rdoc/options.rb#157 def dry_run; end # If true, RDoc will not write any files. # - # source://rdoc//lib/rdoc/options.rb#157 + # source://rdoc/lib/rdoc/options.rb#157 def dry_run=(_arg0); end + # Embed mixin methods, attributes, and constants into class documentation. Set via + # +--[no-]embed-mixins+ (Default is +false+.) + # + # source://rdoc/lib/rdoc/options.rb#350 + def embed_mixins; end + + # Embed mixin methods, attributes, and constants into class documentation. Set via + # +--[no-]embed-mixins+ (Default is +false+.) + # + # source://rdoc/lib/rdoc/options.rb#350 + def embed_mixins=(_arg0); end + # The output encoding. All input files will be transcoded to this encoding. # # The default encoding is UTF-8. This is set via --encoding. # - # source://rdoc//lib/rdoc/options.rb#164 + # source://rdoc/lib/rdoc/options.rb#164 def encoding; end # The output encoding. All input files will be transcoded to this encoding. # # The default encoding is UTF-8. This is set via --encoding. # - # source://rdoc//lib/rdoc/options.rb#164 + # source://rdoc/lib/rdoc/options.rb#164 def encoding=(_arg0); end # Create a regexp for #exclude # - # source://rdoc//lib/rdoc/options.rb#545 + # source://rdoc/lib/rdoc/options.rb#554 def exclude; end # Files matching this pattern will be excluded # - # source://rdoc//lib/rdoc/options.rb#169 + # source://rdoc/lib/rdoc/options.rb#169 def exclude=(_arg0); end # The list of files to be processed # - # source://rdoc//lib/rdoc/options.rb#174 + # source://rdoc/lib/rdoc/options.rb#174 def files; end # The list of files to be processed # - # source://rdoc//lib/rdoc/options.rb#174 + # source://rdoc/lib/rdoc/options.rb#174 def files=(_arg0); end # Completes any unfinished option setup business such as filtering for # existent files, creating a regexp for #exclude and setting a default # #template. # - # source://rdoc//lib/rdoc/options.rb#561 + # source://rdoc/lib/rdoc/options.rb#570 def finish; end # Fixes the page_dir to be relative to the root_dir and adds the page_dir to # the files list. # - # source://rdoc//lib/rdoc/options.rb#602 + # source://rdoc/lib/rdoc/options.rb#611 def finish_page_dir; end # Create the output even if the output directory does not look # like an rdoc output directory # - # source://rdoc//lib/rdoc/options.rb#180 + # source://rdoc/lib/rdoc/options.rb#180 def force_output; end # Create the output even if the output directory does not look # like an rdoc output directory # - # source://rdoc//lib/rdoc/options.rb#180 + # source://rdoc/lib/rdoc/options.rb#180 def force_output=(_arg0); end # Scan newer sources than the flag file if true. # - # source://rdoc//lib/rdoc/options.rb#185 + # source://rdoc/lib/rdoc/options.rb#185 def force_update; end # Scan newer sources than the flag file if true. # - # source://rdoc//lib/rdoc/options.rb#185 + # source://rdoc/lib/rdoc/options.rb#185 def force_update=(_arg0); end # Formatter to mark up text with # - # source://rdoc//lib/rdoc/options.rb#190 + # source://rdoc/lib/rdoc/options.rb#190 def formatter; end # Formatter to mark up text with # - # source://rdoc//lib/rdoc/options.rb#190 + # source://rdoc/lib/rdoc/options.rb#190 def formatter=(_arg0); end # Description of the output generator (set with the --format option) # - # source://rdoc//lib/rdoc/options.rb#195 + # source://rdoc/lib/rdoc/options.rb#195 def generator; end # Description of the output generator (set with the --format option) # - # source://rdoc//lib/rdoc/options.rb#195 + # source://rdoc/lib/rdoc/options.rb#195 def generator=(_arg0); end # Returns a properly-space list of generators and their descriptions. # - # source://rdoc//lib/rdoc/options.rb#621 + # source://rdoc/lib/rdoc/options.rb#630 def generator_descriptions; end # For #== # - # source://rdoc//lib/rdoc/options.rb#200 + # source://rdoc/lib/rdoc/options.rb#200 def generator_name; end # Loaded generator options. Used to prevent --help from loading the same # options multiple times. # - # source://rdoc//lib/rdoc/options.rb#206 + # source://rdoc/lib/rdoc/options.rb#206 def generator_options; end # Loaded generator options. Used to prevent --help from loading the same # options multiple times. # - # source://rdoc//lib/rdoc/options.rb#206 + # source://rdoc/lib/rdoc/options.rb#206 def generator_options=(_arg0); end # Old rdoc behavior: hyperlink all words that match a method name, # even if not preceded by '#' or '::' # - # source://rdoc//lib/rdoc/options.rb#212 + # source://rdoc/lib/rdoc/options.rb#212 def hyperlink_all; end # Old rdoc behavior: hyperlink all words that match a method name, # even if not preceded by '#' or '::' # - # source://rdoc//lib/rdoc/options.rb#212 + # source://rdoc/lib/rdoc/options.rb#212 def hyperlink_all=(_arg0); end - # source://rdoc//lib/rdoc/options.rb#352 + # source://rdoc/lib/rdoc/options.rb#357 def init_ivars; end - # source://rdoc//lib/rdoc/options.rb#397 + # source://rdoc/lib/rdoc/options.rb#403 def init_with(map); end # Include line numbers in the source code # - # source://rdoc//lib/rdoc/options.rb#217 + # source://rdoc/lib/rdoc/options.rb#217 def line_numbers; end # Include line numbers in the source code # - # source://rdoc//lib/rdoc/options.rb#217 + # source://rdoc/lib/rdoc/options.rb#217 def line_numbers=(_arg0); end # The output locale. # - # source://rdoc//lib/rdoc/options.rb#222 + # source://rdoc/lib/rdoc/options.rb#222 def locale; end # The output locale. # - # source://rdoc//lib/rdoc/options.rb#222 + # source://rdoc/lib/rdoc/options.rb#222 def locale=(_arg0); end # The directory where locale data live. # - # source://rdoc//lib/rdoc/options.rb#227 + # source://rdoc/lib/rdoc/options.rb#227 def locale_dir; end # The directory where locale data live. # - # source://rdoc//lib/rdoc/options.rb#227 + # source://rdoc/lib/rdoc/options.rb#227 def locale_dir=(_arg0); end # Name of the file, class or module to display in the initial index page (if # not specified the first file we encounter is used) # - # source://rdoc//lib/rdoc/options.rb#233 + # source://rdoc/lib/rdoc/options.rb#233 def main_page; end # Name of the file, class or module to display in the initial index page (if # not specified the first file we encounter is used) # - # source://rdoc//lib/rdoc/options.rb#233 + # source://rdoc/lib/rdoc/options.rb#233 def main_page=(_arg0); end - # The default markup format. The default is 'rdoc'. 'markdown', 'tomdoc' - # and 'rd' are also built-in. + # The markup format. + # One of: +rdoc+ (the default), +markdown+, +rd+, +tomdoc+. + # See {Markup Formats}[rdoc-ref:RDoc::Markup@Markup+Formats]. # - # source://rdoc//lib/rdoc/options.rb#239 + # source://rdoc/lib/rdoc/options.rb#239 def markup; end - # The default markup format. The default is 'rdoc'. 'markdown', 'tomdoc' - # and 'rd' are also built-in. + # The markup format. + # One of: +rdoc+ (the default), +markdown+, +rd+, +tomdoc+. + # See {Markup Formats}[rdoc-ref:RDoc::Markup@Markup+Formats]. # - # source://rdoc//lib/rdoc/options.rb#239 + # source://rdoc/lib/rdoc/options.rb#239 def markup=(_arg0); end # The name of the output directory # - # source://rdoc//lib/rdoc/options.rb#249 + # source://rdoc/lib/rdoc/options.rb#249 def op_dir; end # The name of the output directory # - # source://rdoc//lib/rdoc/options.rb#249 + # source://rdoc/lib/rdoc/options.rb#249 def op_dir=(_arg0); end # The OptionParser for this instance # - # source://rdoc//lib/rdoc/options.rb#254 + # source://rdoc/lib/rdoc/options.rb#254 def option_parser; end # The OptionParser for this instance # - # source://rdoc//lib/rdoc/options.rb#254 + # source://rdoc/lib/rdoc/options.rb#254 def option_parser=(_arg0); end # Output heading decorations? # - # source://rdoc//lib/rdoc/options.rb#258 + # source://rdoc/lib/rdoc/options.rb#258 def output_decoration; end # Output heading decorations? # - # source://rdoc//lib/rdoc/options.rb#258 + # source://rdoc/lib/rdoc/options.rb#258 def output_decoration=(_arg0); end - # source://rdoc//lib/rdoc/options.rb#428 + # source://rdoc/lib/rdoc/options.rb#435 def override(map); end # Directory where guides, FAQ, and other pages not associated with a class # live. You may leave this unset if these are at the root of your project. # - # source://rdoc//lib/rdoc/options.rb#264 + # source://rdoc/lib/rdoc/options.rb#264 def page_dir; end # Directory where guides, FAQ, and other pages not associated with a class # live. You may leave this unset if these are at the root of your project. # - # source://rdoc//lib/rdoc/options.rb#264 + # source://rdoc/lib/rdoc/options.rb#264 def page_dir=(_arg0); end # Parses command line options. # - # source://rdoc//lib/rdoc/options.rb#647 + # source://rdoc/lib/rdoc/options.rb#656 def parse(argv); end # Is RDoc in pipe mode? # - # source://rdoc//lib/rdoc/options.rb#269 + # source://rdoc/lib/rdoc/options.rb#269 def pipe; end # Is RDoc in pipe mode? # - # source://rdoc//lib/rdoc/options.rb#269 + # source://rdoc/lib/rdoc/options.rb#269 def pipe=(_arg0); end # Don't display progress as we process the files # - # source://rdoc//lib/rdoc/options.rb#1192 + # source://rdoc/lib/rdoc/options.rb#1209 def quiet; end # Set quietness to +bool+ # - # source://rdoc//lib/rdoc/options.rb#1199 + # source://rdoc/lib/rdoc/options.rb#1216 def quiet=(bool); end # Array of directories to search for files to satisfy an :include: # - # source://rdoc//lib/rdoc/options.rb#274 + # source://rdoc/lib/rdoc/options.rb#274 def rdoc_include; end # Array of directories to search for files to satisfy an :include: # - # source://rdoc//lib/rdoc/options.rb#274 + # source://rdoc/lib/rdoc/options.rb#274 def rdoc_include=(_arg0); end # Root of the source documentation will be generated for. Set this when # building documentation outside the source directory. Defaults to the # current directory. # - # source://rdoc//lib/rdoc/options.rb#281 + # source://rdoc/lib/rdoc/options.rb#281 def root; end # Root of the source documentation will be generated for. Set this when # building documentation outside the source directory. Defaults to the # current directory. # - # source://rdoc//lib/rdoc/options.rb#281 + # source://rdoc/lib/rdoc/options.rb#281 def root=(_arg0); end # Removes directories from +path+ that are outside the current directory # - # source://rdoc//lib/rdoc/options.rb#1206 + # source://rdoc/lib/rdoc/options.rb#1223 def sanitize_path(path); end # Set up an output generator for the named +generator_name+. @@ -8029,117 +8084,117 @@ class RDoc::Options # the options instance. This allows generators to add custom options or set # default options. # - # source://rdoc//lib/rdoc/options.rb#1233 + # source://rdoc/lib/rdoc/options.rb#1250 def setup_generator(generator_name = T.unsafe(nil)); end # Include the '#' at the front of hyperlinked instance method names # - # source://rdoc//lib/rdoc/options.rb#286 + # source://rdoc/lib/rdoc/options.rb#286 def show_hash; end # Include the '#' at the front of hyperlinked instance method names # - # source://rdoc//lib/rdoc/options.rb#286 + # source://rdoc/lib/rdoc/options.rb#286 def show_hash=(_arg0); end # Indicates if files of test suites should be skipped # - # source://rdoc//lib/rdoc/options.rb#345 + # source://rdoc/lib/rdoc/options.rb#345 def skip_tests; end # Indicates if files of test suites should be skipped # - # source://rdoc//lib/rdoc/options.rb#345 + # source://rdoc/lib/rdoc/options.rb#345 def skip_tests=(_arg0); end # Directory to copy static files from # - # source://rdoc//lib/rdoc/options.rb#291 + # source://rdoc/lib/rdoc/options.rb#291 def static_path; end # Directory to copy static files from # - # source://rdoc//lib/rdoc/options.rb#291 + # source://rdoc/lib/rdoc/options.rb#291 def static_path=(_arg0); end # The number of columns in a tab # - # source://rdoc//lib/rdoc/options.rb#296 + # source://rdoc/lib/rdoc/options.rb#296 def tab_width; end # The number of columns in a tab # - # source://rdoc//lib/rdoc/options.rb#296 + # source://rdoc/lib/rdoc/options.rb#296 def tab_width=(_arg0); end # Template to be used when generating output # - # source://rdoc//lib/rdoc/options.rb#301 + # source://rdoc/lib/rdoc/options.rb#301 def template; end # Template to be used when generating output # - # source://rdoc//lib/rdoc/options.rb#301 + # source://rdoc/lib/rdoc/options.rb#301 def template=(_arg0); end # Directory the template lives in # - # source://rdoc//lib/rdoc/options.rb#306 + # source://rdoc/lib/rdoc/options.rb#306 def template_dir; end # Directory the template lives in # - # source://rdoc//lib/rdoc/options.rb#306 + # source://rdoc/lib/rdoc/options.rb#306 def template_dir=(_arg0); end # Finds the template dir for +template+ # - # source://rdoc//lib/rdoc/options.rb#1255 + # source://rdoc/lib/rdoc/options.rb#1272 def template_dir_for(template); end # Additional template stylesheets # - # source://rdoc//lib/rdoc/options.rb#311 + # source://rdoc/lib/rdoc/options.rb#311 def template_stylesheets; end # Additional template stylesheets # - # source://rdoc//lib/rdoc/options.rb#311 + # source://rdoc/lib/rdoc/options.rb#311 def template_stylesheets=(_arg0); end # Documentation title # - # source://rdoc//lib/rdoc/options.rb#316 + # source://rdoc/lib/rdoc/options.rb#316 def title; end # Documentation title # - # source://rdoc//lib/rdoc/options.rb#316 + # source://rdoc/lib/rdoc/options.rb#316 def title=(_arg0); end # For dumping YAML # - # source://rdoc//lib/rdoc/options.rb#524 + # source://rdoc/lib/rdoc/options.rb#533 def to_yaml(*options); end # Should RDoc update the timestamps in the output dir? # - # source://rdoc//lib/rdoc/options.rb#321 + # source://rdoc/lib/rdoc/options.rb#321 def update_output_dir; end # Should RDoc update the timestamps in the output dir? # - # source://rdoc//lib/rdoc/options.rb#321 + # source://rdoc/lib/rdoc/options.rb#321 def update_output_dir=(_arg0); end # Verbosity, zero means quiet # - # source://rdoc//lib/rdoc/options.rb#326 + # source://rdoc/lib/rdoc/options.rb#326 def verbosity; end # Verbosity, zero means quiet # - # source://rdoc//lib/rdoc/options.rb#326 + # source://rdoc/lib/rdoc/options.rb#326 def verbosity=(_arg0); end # Minimum visibility of a documented method. One of +:public+, +:protected+, @@ -8148,7 +8203,7 @@ class RDoc::Options # The +:nodoc+ visibility ignores all directives related to visibility. The # directive. # - # source://rdoc//lib/rdoc/options.rb#341 + # source://rdoc/lib/rdoc/options.rb#341 def visibility; end # Sets the minimum visibility of a documented method. @@ -8158,31 +8213,31 @@ class RDoc::Options # When +:all+ is passed, visibility is set to +:private+, similarly to # RDOCOPT="--all", see #visibility for more information. # - # source://rdoc//lib/rdoc/options.rb#1272 + # source://rdoc/lib/rdoc/options.rb#1289 def visibility=(visibility); end # Displays a warning using Kernel#warn if we're being verbose # - # source://rdoc//lib/rdoc/options.rb#1284 + # source://rdoc/lib/rdoc/options.rb#1301 def warn(message); end # URL of web cvs frontend # - # source://rdoc//lib/rdoc/options.rb#331 + # source://rdoc/lib/rdoc/options.rb#331 def webcvs; end # URL of web cvs frontend # - # source://rdoc//lib/rdoc/options.rb#331 + # source://rdoc/lib/rdoc/options.rb#331 def webcvs=(_arg0); end # Writes the YAML file .rdoc_options to the current directory containing the # parsed options. # - # source://rdoc//lib/rdoc/options.rb#1292 + # source://rdoc/lib/rdoc/options.rb#1309 def write_options; end - # source://rdoc//lib/rdoc/options.rb#424 + # source://rdoc/lib/rdoc/options.rb#431 def yaml_initialize(tag, map); end class << self @@ -8191,7 +8246,7 @@ class RDoc::Options # # @raise [RDoc::Error] # - # source://rdoc//lib/rdoc/options.rb#1306 + # source://rdoc/lib/rdoc/options.rb#1323 def load_options; end end end @@ -8224,7 +8279,7 @@ end # end # end # -# source://rdoc//lib/rdoc/parser.rb#33 +# source://rdoc/lib/rdoc/parser.rb#33 class RDoc::Parser # Creates a new Parser storing +top_level+, +file_name+, +content+, # +options+ and +stats+ in instance variables. In +@preprocess+ an @@ -8233,24 +8288,24 @@ class RDoc::Parser # # @return [Parser] a new instance of Parser # - # source://rdoc//lib/rdoc/parser.rb#254 + # source://rdoc/lib/rdoc/parser.rb#255 def initialize(top_level, file_name, content, options, stats); end # The name of the file being parsed # - # source://rdoc//lib/rdoc/parser.rb#52 + # source://rdoc/lib/rdoc/parser.rb#52 def file_name; end # Normalizes tabs in +body+ # - # source://rdoc//lib/rdoc/parser.rb#274 + # source://rdoc/lib/rdoc/parser.rb#275 def handle_tab_width(body); end class << self # Alias an extension to another extension. After this call, files ending # "new_ext" will be parsed using the same parser as "old_ext" # - # source://rdoc//lib/rdoc/parser.rb#58 + # source://rdoc/lib/rdoc/parser.rb#58 def alias_extension(old_ext, new_ext); end # Determines if the file is a "binary" file which basically means it has @@ -8258,36 +8313,36 @@ class RDoc::Parser # # @return [Boolean] # - # source://rdoc//lib/rdoc/parser.rb#74 + # source://rdoc/lib/rdoc/parser.rb#74 def binary?(file); end # Return a parser that can handle a particular extension # - # source://rdoc//lib/rdoc/parser.rb#107 + # source://rdoc/lib/rdoc/parser.rb#107 def can_parse(file_name); end # Returns a parser that can handle the extension for +file_name+. This does # not depend upon the file being readable. # - # source://rdoc//lib/rdoc/parser.rb#120 + # source://rdoc/lib/rdoc/parser.rb#120 def can_parse_by_name(file_name); end # Returns the file type from the modeline in +file_name+ # - # source://rdoc//lib/rdoc/parser.rb#143 + # source://rdoc/lib/rdoc/parser.rb#143 def check_modeline(file_name); end # Finds and instantiates the correct parser for the given +file_name+ and # +content+. # - # source://rdoc//lib/rdoc/parser.rb#169 - def for(top_level, file_name, content, options, stats); end + # source://rdoc/lib/rdoc/parser.rb#169 + def for(top_level, content, options, stats); end # Record which file types this parser can understand. # # It is ok to call this multiple times. # - # source://rdoc//lib/rdoc/parser.rb#203 + # source://rdoc/lib/rdoc/parser.rb#204 def parse_files_matching(regexp); end # An Array of arrays that maps file extension (or name) regular @@ -8295,12 +8350,12 @@ class RDoc::Parser # # Use parse_files_matching to register a parser's file extensions. # - # source://rdoc//lib/rdoc/parser.rb#45 + # source://rdoc/lib/rdoc/parser.rb#45 def parsers; end # Removes an emacs-style modeline from the first line of the document # - # source://rdoc//lib/rdoc/parser.rb#210 + # source://rdoc/lib/rdoc/parser.rb#211 def remove_modeline(content); end # If there is a markup: parser_name comment at the front of the @@ -8319,7 +8374,7 @@ class RDoc::Parser # # Any comment style may be used to hide the markup comment. # - # source://rdoc//lib/rdoc/parser.rb#231 + # source://rdoc/lib/rdoc/parser.rb#232 def use_markup(content); end # Checks if +file+ is a zip file in disguise. Signatures from @@ -8327,7 +8382,7 @@ class RDoc::Parser # # @return [Boolean] # - # source://rdoc//lib/rdoc/parser.rb#94 + # source://rdoc/lib/rdoc/parser.rb#94 def zip?(file); end end end @@ -8446,7 +8501,7 @@ end # * block and return its value. # */ # -# source://rdoc//lib/rdoc/parser/c.rb#119 +# source://rdoc/lib/rdoc/parser/c.rb#119 class RDoc::Parser::C < ::RDoc::Parser include ::RDoc::Text @@ -8455,85 +8510,85 @@ class RDoc::Parser::C < ::RDoc::Parser # # @return [C] a new instance of C # - # source://rdoc//lib/rdoc/parser/c.rb#171 + # source://rdoc/lib/rdoc/parser/c.rb#171 def initialize(top_level, file_name, content, options, stats); end # Add alias, either from a direct alias definition, or from two # method that reference the same function. # - # source://rdoc//lib/rdoc/parser/c.rb#250 + # source://rdoc/lib/rdoc/parser/c.rb#250 def add_alias(var_name, class_obj, old_name, new_name, comment); end # Maps C variable names to names of Ruby classes or modules # - # source://rdoc//lib/rdoc/parser/c.rb#133 + # source://rdoc/lib/rdoc/parser/c.rb#133 def classes; end # C file the parser is parsing # - # source://rdoc//lib/rdoc/parser/c.rb#138 + # source://rdoc/lib/rdoc/parser/c.rb#138 def content; end # C file the parser is parsing # - # source://rdoc//lib/rdoc/parser/c.rb#138 + # source://rdoc/lib/rdoc/parser/c.rb#138 def content=(_arg0); end # Scans #content for rb_define_alias # - # source://rdoc//lib/rdoc/parser/c.rb#222 + # source://rdoc/lib/rdoc/parser/c.rb#222 def do_aliases; end # Scans #content for rb_attr and rb_define_attr # - # source://rdoc//lib/rdoc/parser/c.rb#263 + # source://rdoc/lib/rdoc/parser/c.rb#263 def do_attrs; end # Scans #content for boot_defclass # - # source://rdoc//lib/rdoc/parser/c.rb#286 + # source://rdoc/lib/rdoc/parser/c.rb#286 def do_boot_defclass; end # Scans #content for rb_define_class, boot_defclass, rb_define_class_under # and rb_singleton_class # - # source://rdoc//lib/rdoc/parser/c.rb#298 + # source://rdoc/lib/rdoc/parser/c.rb#298 def do_classes_and_modules; end # Scans #content for rb_define_variable, rb_define_readonly_variable, # rb_define_const and rb_define_global_const # - # source://rdoc//lib/rdoc/parser/c.rb#396 + # source://rdoc/lib/rdoc/parser/c.rb#396 def do_constants; end # Scans #content for rb_include_module # - # source://rdoc//lib/rdoc/parser/c.rb#442 + # source://rdoc/lib/rdoc/parser/c.rb#442 def do_includes; end # Scans #content for rb_define_method, rb_define_singleton_method, # rb_define_module_function, rb_define_private_method, # rb_define_global_function and define_filetest_function # - # source://rdoc//lib/rdoc/parser/c.rb#458 + # source://rdoc/lib/rdoc/parser/c.rb#458 def do_methods; end # Creates classes and module that were missing were defined due to the file # order being different than the declaration order. # - # source://rdoc//lib/rdoc/parser/c.rb#507 + # source://rdoc/lib/rdoc/parser/c.rb#507 def do_missing; end # Dependencies from a missing enclosing class to the classes in # missing_dependencies that depend upon it. # - # source://rdoc//lib/rdoc/parser/c.rb#144 + # source://rdoc/lib/rdoc/parser/c.rb#144 def enclosure_dependencies; end # Finds the comment for an alias on +class_name+ from +new_name+ to # +old_name+ # - # source://rdoc//lib/rdoc/parser/c.rb#523 + # source://rdoc/lib/rdoc/parser/c.rb#523 def find_alias_comment(class_name, new_name, old_name); end # Finds a comment for rb_define_attr, rb_attr or Document-attr. @@ -8544,17 +8599,17 @@ class RDoc::Parser::C < ::RDoc::Parser # +read+ and +write+ are the read/write flags ('1' or '0'). Either both or # neither must be provided. # - # source://rdoc//lib/rdoc/parser/c.rb#541 + # source://rdoc/lib/rdoc/parser/c.rb#541 def find_attr_comment(var_name, attr_name, read = T.unsafe(nil), write = T.unsafe(nil)); end # Find the C code corresponding to a Ruby method # - # source://rdoc//lib/rdoc/parser/c.rb#598 + # source://rdoc/lib/rdoc/parser/c.rb#598 def find_body(class_name, meth_name, meth_obj, file_content, quiet = T.unsafe(nil)); end # Finds a RDoc::NormalClass or RDoc::NormalModule for +raw_name+ # - # source://rdoc//lib/rdoc/parser/c.rb#682 + # source://rdoc/lib/rdoc/parser/c.rb#682 def find_class(raw_name, name, base_name = T.unsafe(nil)); end # Look for class or module documentation above Init_+class_name+(void), @@ -8582,45 +8637,45 @@ class RDoc::Parser::C < ::RDoc::Parser # */ # VALUE cFoo = rb_define_class("Foo", rb_cObject); # - # source://rdoc//lib/rdoc/parser/c.rb#723 + # source://rdoc/lib/rdoc/parser/c.rb#723 def find_class_comment(class_name, class_mod); end # Finds a comment matching +type+ and +const_name+ either above the # comment or in the matching Document- section. # - # source://rdoc//lib/rdoc/parser/c.rb#789 + # source://rdoc/lib/rdoc/parser/c.rb#789 def find_const_comment(type, const_name, class_name = T.unsafe(nil)); end # Handles modifiers in +comment+ and updates +meth_obj+ as appropriate. # - # source://rdoc//lib/rdoc/parser/c.rb#806 + # source://rdoc/lib/rdoc/parser/c.rb#806 def find_modifiers(comment, meth_obj); end # Finds a Document-method override for +meth_obj+ on +class_name+ # - # source://rdoc//lib/rdoc/parser/c.rb#816 + # source://rdoc/lib/rdoc/parser/c.rb#816 def find_override_comment(class_name, meth_obj); end # Generate a Ruby-method table # - # source://rdoc//lib/rdoc/parser/c.rb#574 + # source://rdoc/lib/rdoc/parser/c.rb#574 def gen_body_table(file_content); end # Generate a const table # - # source://rdoc//lib/rdoc/parser/c.rb#756 + # source://rdoc/lib/rdoc/parser/c.rb#756 def gen_const_table(file_content); end # Creates a new RDoc::Attr +attr_name+ on class +var_name+ that is either # +read+, +write+ or both # - # source://rdoc//lib/rdoc/parser/c.rb#838 + # source://rdoc/lib/rdoc/parser/c.rb#838 def handle_attr(var_name, attr_name, read, write); end # Creates a new RDoc::NormalClass or RDoc::NormalModule based on +type+ # named +class_name+ in +parent+ which was assigned to the C +var_name+. # - # source://rdoc//lib/rdoc/parser/c.rb#867 + # source://rdoc/lib/rdoc/parser/c.rb#867 def handle_class_module(var_name, type, class_name, parent, in_module); end # Adds constants. By providing some_value: at the start of the comment you @@ -8632,35 +8687,35 @@ class RDoc::Parser::C < ::RDoc::Parser # Will override INT2FIX(300) with the value +300+ in the output # RDoc. Values may include quotes and escaped colons (\:). # - # source://rdoc//lib/rdoc/parser/c.rb#932 + # source://rdoc/lib/rdoc/parser/c.rb#932 def handle_constants(type, var_name, const_name, definition); end # Removes #ifdefs that would otherwise confuse us # - # source://rdoc//lib/rdoc/parser/c.rb#982 + # source://rdoc/lib/rdoc/parser/c.rb#982 def handle_ifdefs_in(body); end # Adds an RDoc::AnyMethod +meth_name+ defined on a class or module assigned # to +var_name+. +type+ is the type of method definition function used. # +singleton_method+ and +module_function+ create a singleton method. # - # source://rdoc//lib/rdoc/parser/c.rb#991 + # source://rdoc/lib/rdoc/parser/c.rb#991 def handle_method(type, var_name, meth_name, function, param_count, source_file = T.unsafe(nil)); end # Registers a singleton class +sclass_var+ as a singleton of +class_var+ # - # source://rdoc//lib/rdoc/parser/c.rb#1061 + # source://rdoc/lib/rdoc/parser/c.rb#1061 def handle_singleton(sclass_var, class_var); end # Maps C variable names to names of Ruby classes (and singleton classes) # - # source://rdoc//lib/rdoc/parser/c.rb#149 + # source://rdoc/lib/rdoc/parser/c.rb#149 def known_classes; end # Loads the variable map with the given +name+ from the RDoc::Store, if # present. # - # source://rdoc//lib/rdoc/parser/c.rb#1072 + # source://rdoc/lib/rdoc/parser/c.rb#1072 def load_variable_map(map_name); end # Look for directives in a normal comment block: @@ -8670,56 +8725,57 @@ class RDoc::Parser::C < ::RDoc::Parser # */ # # This method modifies the +comment+ + # Both :main: and :title: directives are deprecated and will be removed in RDoc 7. # - # source://rdoc//lib/rdoc/parser/c.rb#1101 + # source://rdoc/lib/rdoc/parser/c.rb#1102 def look_for_directives_in(context, comment); end # Classes found while parsing the C file that were not yet registered due to # a missing enclosing class. These are processed by do_missing # - # source://rdoc//lib/rdoc/parser/c.rb#155 + # source://rdoc/lib/rdoc/parser/c.rb#155 def missing_dependencies; end # Creates a RDoc::Comment instance. # - # source://rdoc//lib/rdoc/parser/c.rb#1231 + # source://rdoc/lib/rdoc/parser/c.rb#1250 def new_comment(text = T.unsafe(nil), location = T.unsafe(nil), language = T.unsafe(nil)); end # Extracts parameters from the +method_body+ and returns a method # parameter string. Follows 1.9.3dev's scan-arg-spec, see README.EXT # - # source://rdoc//lib/rdoc/parser/c.rb#1120 + # source://rdoc/lib/rdoc/parser/c.rb#1139 def rb_scan_args(method_body); end # Removes lines that are commented out that might otherwise get picked up # when scanning for classes and methods # - # source://rdoc//lib/rdoc/parser/c.rb#1203 + # source://rdoc/lib/rdoc/parser/c.rb#1222 def remove_commented_out_lines; end # Extracts the classes, modules, methods, attributes, constants and aliases # from a C file and returns an RDoc::TopLevel for this file # - # source://rdoc//lib/rdoc/parser/c.rb#1211 + # source://rdoc/lib/rdoc/parser/c.rb#1230 def scan; end # Maps C variable names to names of Ruby singleton classes # - # source://rdoc//lib/rdoc/parser/c.rb#160 + # source://rdoc/lib/rdoc/parser/c.rb#160 def singleton_classes; end # The TopLevel items in the parsed file belong to # - # source://rdoc//lib/rdoc/parser/c.rb#165 + # source://rdoc/lib/rdoc/parser/c.rb#165 def top_level; end end # :stopdoc: # -# source://rdoc//lib/rdoc/parser/c.rb#126 +# source://rdoc/lib/rdoc/parser/c.rb#126 RDoc::Parser::C::BOOL_ARG_PATTERN = T.let(T.unsafe(nil), Regexp) -# source://rdoc//lib/rdoc/parser/c.rb#127 +# source://rdoc/lib/rdoc/parser/c.rb#127 RDoc::Parser::C::TRUE_VALUES = T.let(T.unsafe(nil), Array) # A ChangeLog file parser. @@ -8732,7 +8788,7 @@ RDoc::Parser::C::TRUE_VALUES = T.let(T.unsafe(nil), Array) # {GNU style Change # Log}[http://www.gnu.org/prep/standards/html_node/Style-of-Change-Logs.html]. # -# source://rdoc//lib/rdoc/parser/changelog.rb#14 +# source://rdoc/lib/rdoc/parser/changelog.rb#14 class RDoc::Parser::ChangeLog < ::RDoc::Parser include ::RDoc::Parser::Text @@ -8741,34 +8797,34 @@ class RDoc::Parser::ChangeLog < ::RDoc::Parser # Continued function listings are joined together as a single entry. # Continued descriptions are joined to make a single paragraph. # - # source://rdoc//lib/rdoc/parser/changelog.rb#26 + # source://rdoc/lib/rdoc/parser/changelog.rb#26 def continue_entry_body(entry_body, continuation); end # Creates an RDoc::Markup::Document given the +groups+ of ChangeLog entries. # - # source://rdoc//lib/rdoc/parser/changelog.rb#44 + # source://rdoc/lib/rdoc/parser/changelog.rb#44 def create_document(groups); end # Returns a list of ChangeLog entries an RDoc::Markup nodes for the given # +entries+. # - # source://rdoc//lib/rdoc/parser/changelog.rb#66 + # source://rdoc/lib/rdoc/parser/changelog.rb#66 def create_entries(entries); end # Returns an RDoc::Markup::List containing the given +items+ in the # ChangeLog # - # source://rdoc//lib/rdoc/parser/changelog.rb#83 + # source://rdoc/lib/rdoc/parser/changelog.rb#83 def create_items(items); end # Groups +entries+ by date. # - # source://rdoc//lib/rdoc/parser/changelog.rb#103 + # source://rdoc/lib/rdoc/parser/changelog.rb#103 def group_entries(entries); end # Parse date in ISO-8601, RFC-2822, or default of Git # - # source://rdoc//lib/rdoc/parser/changelog.rb#119 + # source://rdoc/lib/rdoc/parser/changelog.rb#119 def parse_date(date); end # Parses the entries in the ChangeLog. @@ -8785,52 +8841,52 @@ class RDoc::Parser::ChangeLog < ::RDoc::Parser # [ 'README.EXT: Converted to RDoc format', # 'README.EXT.ja: ditto']] # - # source://rdoc//lib/rdoc/parser/changelog.rb#149 + # source://rdoc/lib/rdoc/parser/changelog.rb#149 def parse_entries; end # Converts the ChangeLog into an RDoc::Markup::Document # - # source://rdoc//lib/rdoc/parser/changelog.rb#206 + # source://rdoc/lib/rdoc/parser/changelog.rb#206 def scan; end end # The extension for Git commit log # -# source://rdoc//lib/rdoc/parser/changelog.rb#222 +# source://rdoc/lib/rdoc/parser/changelog.rb#222 module RDoc::Parser::ChangeLog::Git # Returns a list of ChangeLog entries as # RDoc::Parser::ChangeLog::Git::LogEntry list for the given # +entries+. # - # source://rdoc//lib/rdoc/parser/changelog.rb#262 + # source://rdoc/lib/rdoc/parser/changelog.rb#262 def create_entries(entries); end # Parses the entries in the Git commit logs # - # source://rdoc//lib/rdoc/parser/changelog.rb#235 + # source://rdoc/lib/rdoc/parser/changelog.rb#235 def parse_entries; end - # Parses auxiliary info. Currentry `base-url` to expand + # Parses auxiliary info. Currently `base-url` to expand # references is effective. # - # source://rdoc//lib/rdoc/parser/changelog.rb#227 + # source://rdoc/lib/rdoc/parser/changelog.rb#227 def parse_info(info); end end -# source://rdoc//lib/rdoc/parser/changelog.rb#271 +# source://rdoc/lib/rdoc/parser/changelog.rb#271 RDoc::Parser::ChangeLog::Git::HEADING_LEVEL = T.let(T.unsafe(nil), Integer) -# source://rdoc//lib/rdoc/parser/changelog.rb#270 +# source://rdoc/lib/rdoc/parser/changelog.rb#270 class RDoc::Parser::ChangeLog::Git::LogEntry < ::Struct # @return [LogEntry] a new instance of LogEntry # - # source://rdoc//lib/rdoc/parser/changelog.rb#273 + # source://rdoc/lib/rdoc/parser/changelog.rb#273 def initialize(base, commit, author, email, date, contents); end - # source://rdoc//lib/rdoc/parser/changelog.rb#313 + # source://rdoc/lib/rdoc/parser/changelog.rb#313 def accept(visitor); end - # source://rdoc//lib/rdoc/parser/changelog.rb#294 + # source://rdoc/lib/rdoc/parser/changelog.rb#294 def aref; end # Returns the value of attribute author @@ -8899,16 +8955,16 @@ class RDoc::Parser::ChangeLog::Git::LogEntry < ::Struct # @return [Object] the newly set value def email=(_); end - # source://rdoc//lib/rdoc/parser/changelog.rb#298 + # source://rdoc/lib/rdoc/parser/changelog.rb#298 def label(context = T.unsafe(nil)); end - # source://rdoc//lib/rdoc/parser/changelog.rb#290 + # source://rdoc/lib/rdoc/parser/changelog.rb#290 def level; end - # source://rdoc//lib/rdoc/parser/changelog.rb#330 + # source://rdoc/lib/rdoc/parser/changelog.rb#330 def pretty_print(q); end - # source://rdoc//lib/rdoc/parser/changelog.rb#302 + # source://rdoc/lib/rdoc/parser/changelog.rb#302 def text; end class << self @@ -8923,72 +8979,72 @@ end # Parse a Markdown format file. The parsed RDoc::Markup::Document is attached # as a file comment. # -# source://rdoc//lib/rdoc/parser/markdown.rb#6 +# source://rdoc/lib/rdoc/parser/markdown.rb#6 class RDoc::Parser::Markdown < ::RDoc::Parser include ::RDoc::Parser::Text # Creates an Markdown-format TopLevel for the given file. # - # source://rdoc//lib/rdoc/parser/markdown.rb#15 + # source://rdoc/lib/rdoc/parser/markdown.rb#15 def scan; end end # Parse a RD format file. The parsed RDoc::Markup::Document is attached as a # file comment. # -# source://rdoc//lib/rdoc/parser/rd.rb#6 +# source://rdoc/lib/rdoc/parser/rd.rb#6 class RDoc::Parser::RD < ::RDoc::Parser include ::RDoc::Parser::Text # Creates an rd-format TopLevel for the given file. # - # source://rdoc//lib/rdoc/parser/rd.rb#15 + # source://rdoc/lib/rdoc/parser/rd.rb#15 def scan; end end # Wrapper for Ripper lex states # -# source://rdoc//lib/rdoc/parser/ripper_state_lex.rb#7 +# source://rdoc/lib/rdoc/parser/ripper_state_lex.rb#7 class RDoc::Parser::RipperStateLex # New lexer for +code+. # # @return [RipperStateLex] a new instance of RipperStateLex # - # source://rdoc//lib/rdoc/parser/ripper_state_lex.rb#576 + # source://rdoc/lib/rdoc/parser/ripper_state_lex.rb#278 def initialize(code); end - # source://rdoc//lib/rdoc/parser/ripper_state_lex.rb#322 + # source://rdoc/lib/rdoc/parser/ripper_state_lex.rb#27 def get_squashed_tk; end private - # source://rdoc//lib/rdoc/parser/ripper_state_lex.rb#465 + # source://rdoc/lib/rdoc/parser/ripper_state_lex.rb#168 def get_embdoc_tk(tk); end - # source://rdoc//lib/rdoc/parser/ripper_state_lex.rb#474 + # source://rdoc/lib/rdoc/parser/ripper_state_lex.rb#177 def get_heredoc_tk(heredoc_name, indent); end - # source://rdoc//lib/rdoc/parser/ripper_state_lex.rb#549 + # source://rdoc/lib/rdoc/parser/ripper_state_lex.rb#252 def get_op_tk(tk); end - # source://rdoc//lib/rdoc/parser/ripper_state_lex.rb#447 + # source://rdoc/lib/rdoc/parser/ripper_state_lex.rb#150 def get_regexp_tk(tk); end - # source://rdoc//lib/rdoc/parser/ripper_state_lex.rb#420 + # source://rdoc/lib/rdoc/parser/ripper_state_lex.rb#123 def get_string_tk(tk); end - # source://rdoc//lib/rdoc/parser/ripper_state_lex.rb#373 + # source://rdoc/lib/rdoc/parser/ripper_state_lex.rb#76 def get_symbol_tk(tk); end - # source://rdoc//lib/rdoc/parser/ripper_state_lex.rb#511 + # source://rdoc/lib/rdoc/parser/ripper_state_lex.rb#214 def get_words_tk(tk); end # @return [Boolean] # - # source://rdoc//lib/rdoc/parser/ripper_state_lex.rb#499 + # source://rdoc/lib/rdoc/parser/ripper_state_lex.rb#202 def heredoc_end?(name, indent, tk); end - # source://rdoc//lib/rdoc/parser/ripper_state_lex.rb#493 + # source://rdoc/lib/rdoc/parser/ripper_state_lex.rb#196 def retrieve_heredoc_info(tk); end class << self @@ -8996,87 +9052,42 @@ class RDoc::Parser::RipperStateLex # # @return [Boolean] # - # source://rdoc//lib/rdoc/parser/ripper_state_lex.rb#597 + # source://rdoc/lib/rdoc/parser/ripper_state_lex.rb#299 def end?(token); end # Returns tokens parsed from +code+. # - # source://rdoc//lib/rdoc/parser/ripper_state_lex.rb#584 + # source://rdoc/lib/rdoc/parser/ripper_state_lex.rb#286 def parse(code); end end end -# source://rdoc//lib/rdoc/parser/ripper_state_lex.rb#20 +# source://rdoc/lib/rdoc/parser/ripper_state_lex.rb#14 RDoc::Parser::RipperStateLex::EXPR_ARG = T.let(T.unsafe(nil), Integer) -# source://rdoc//lib/rdoc/parser/ripper_state_lex.rb#31 -RDoc::Parser::RipperStateLex::EXPR_ARG_ANY = T.let(T.unsafe(nil), Integer) - -# source://rdoc//lib/rdoc/parser/ripper_state_lex.rb#16 -RDoc::Parser::RipperStateLex::EXPR_BEG = T.let(T.unsafe(nil), Integer) - -# source://rdoc//lib/rdoc/parser/ripper_state_lex.rb#30 -RDoc::Parser::RipperStateLex::EXPR_BEG_ANY = T.let(T.unsafe(nil), Integer) - -# source://rdoc//lib/rdoc/parser/ripper_state_lex.rb#25 -RDoc::Parser::RipperStateLex::EXPR_CLASS = T.let(T.unsafe(nil), Integer) - -# source://rdoc//lib/rdoc/parser/ripper_state_lex.rb#21 -RDoc::Parser::RipperStateLex::EXPR_CMDARG = T.let(T.unsafe(nil), Integer) - -# source://rdoc//lib/rdoc/parser/ripper_state_lex.rb#24 -RDoc::Parser::RipperStateLex::EXPR_DOT = T.let(T.unsafe(nil), Integer) - -# source://rdoc//lib/rdoc/parser/ripper_state_lex.rb#17 +# source://rdoc/lib/rdoc/parser/ripper_state_lex.rb#12 RDoc::Parser::RipperStateLex::EXPR_END = T.let(T.unsafe(nil), Integer) -# source://rdoc//lib/rdoc/parser/ripper_state_lex.rb#18 -RDoc::Parser::RipperStateLex::EXPR_ENDARG = T.let(T.unsafe(nil), Integer) - -# source://rdoc//lib/rdoc/parser/ripper_state_lex.rb#19 +# source://rdoc/lib/rdoc/parser/ripper_state_lex.rb#13 RDoc::Parser::RipperStateLex::EXPR_ENDFN = T.let(T.unsafe(nil), Integer) -# source://rdoc//lib/rdoc/parser/ripper_state_lex.rb#32 -RDoc::Parser::RipperStateLex::EXPR_END_ANY = T.let(T.unsafe(nil), Integer) - -# source://rdoc//lib/rdoc/parser/ripper_state_lex.rb#28 -RDoc::Parser::RipperStateLex::EXPR_FITEM = T.let(T.unsafe(nil), Integer) - -# source://rdoc//lib/rdoc/parser/ripper_state_lex.rb#23 +# source://rdoc/lib/rdoc/parser/ripper_state_lex.rb#15 RDoc::Parser::RipperStateLex::EXPR_FNAME = T.let(T.unsafe(nil), Integer) -# source://rdoc//lib/rdoc/parser/ripper_state_lex.rb#26 -RDoc::Parser::RipperStateLex::EXPR_LABEL = T.let(T.unsafe(nil), Integer) - -# source://rdoc//lib/rdoc/parser/ripper_state_lex.rb#27 -RDoc::Parser::RipperStateLex::EXPR_LABELED = T.let(T.unsafe(nil), Integer) - -# source://rdoc//lib/rdoc/parser/ripper_state_lex.rb#22 -RDoc::Parser::RipperStateLex::EXPR_MID = T.let(T.unsafe(nil), Integer) - -# source://rdoc//lib/rdoc/parser/ripper_state_lex.rb#15 -RDoc::Parser::RipperStateLex::EXPR_NONE = T.let(T.unsafe(nil), Integer) - -# source://rdoc//lib/rdoc/parser/ripper_state_lex.rb#29 -RDoc::Parser::RipperStateLex::EXPR_VALUE = T.let(T.unsafe(nil), Integer) - -# source://rdoc//lib/rdoc/parser/ripper_state_lex.rb#312 +# source://rdoc/lib/rdoc/parser/ripper_state_lex.rb#17 class RDoc::Parser::RipperStateLex::InnerStateLex < ::Ripper::Filter # @return [InnerStateLex] a new instance of InnerStateLex # - # source://rdoc//lib/rdoc/parser/ripper_state_lex.rb#313 + # source://rdoc/lib/rdoc/parser/ripper_state_lex.rb#18 def initialize(code); end - # source://rdoc//lib/rdoc/parser/ripper_state_lex.rb#317 + # source://rdoc/lib/rdoc/parser/ripper_state_lex.rb#22 def on_default(event, tok, data); end end -# TODO: Remove this constants after Ruby 2.4 EOL +# :stopdoc: # -# source://rdoc//lib/rdoc/parser/ripper_state_lex.rb#11 -RDoc::Parser::RipperStateLex::RIPPER_HAS_LEX_STATE = T.let(T.unsafe(nil), TrueClass) - -# source://rdoc//lib/rdoc/parser/ripper_state_lex.rb#13 +# source://rdoc/lib/rdoc/parser/ripper_state_lex.rb#10 class RDoc::Parser::RipperStateLex::Token < ::Struct # Returns the value of attribute char_no # @@ -9271,7 +9282,7 @@ end # Note that by default, the :method: directive will be ignored if there is a # standard rdocable item following it. # -# source://rdoc//lib/rdoc/parser/ruby.rb#144 +# source://rdoc/lib/rdoc/parser/ruby.rb#153 class RDoc::Parser::Ruby < ::RDoc::Parser include ::RDoc::TokenStream include ::RDoc::Parser::RubyTools @@ -9280,56 +9291,56 @@ class RDoc::Parser::Ruby < ::RDoc::Parser # # @return [Ruby] a new instance of Ruby # - # source://rdoc//lib/rdoc/parser/ruby.rb#164 + # source://rdoc/lib/rdoc/parser/ruby.rb#173 def initialize(top_level, file_name, content, options, stats); end # Look for the first comment in a file that isn't a shebang line. # - # source://rdoc//lib/rdoc/parser/ruby.rb#236 + # source://rdoc/lib/rdoc/parser/ruby.rb#245 def collect_first_comment; end # Consumes trailing whitespace from the token stream # - # source://rdoc//lib/rdoc/parser/ruby.rb#279 + # source://rdoc/lib/rdoc/parser/ruby.rb#288 def consume_trailing_spaces; end # Creates a new attribute in +container+ with +name+. # - # source://rdoc//lib/rdoc/parser/ruby.rb#286 + # source://rdoc/lib/rdoc/parser/ruby.rb#295 def create_attr(container, single, name, rw, comment); end # Creates a module alias in +container+ at +rhs_name+ (or at the top-level # for "::") with the name from +constant+. # - # source://rdoc//lib/rdoc/parser/ruby.rb#300 + # source://rdoc/lib/rdoc/parser/ruby.rb#309 def create_module_alias(container, constant, rhs_name); end # Aborts with +msg+ # - # source://rdoc//lib/rdoc/parser/ruby.rb#313 + # source://rdoc/lib/rdoc/parser/ruby.rb#322 def error(msg); end # Looks for a true or false token. # - # source://rdoc//lib/rdoc/parser/ruby.rb#322 + # source://rdoc/lib/rdoc/parser/ruby.rb#331 def get_bool; end # Look for the name of a class of module (optionally with a leading :: or # with :: separated named) and return the ultimate name, the associated # container, and the given name (with the ::). # - # source://rdoc//lib/rdoc/parser/ruby.rb#340 + # source://rdoc/lib/rdoc/parser/ruby.rb#349 def get_class_or_module(container, ignore_constants = T.unsafe(nil)); end # Return a superclass, which can be either a constant of an expression # - # source://rdoc//lib/rdoc/parser/ruby.rb#423 + # source://rdoc/lib/rdoc/parser/ruby.rb#432 def get_class_specification; end # Parse a constant, which might be qualified by one or more class or module # names # - # source://rdoc//lib/rdoc/parser/ruby.rb#456 + # source://rdoc/lib/rdoc/parser/ruby.rb#465 def get_constant; end # Little hack going on here. In the statement: @@ -9339,28 +9350,28 @@ class RDoc::Parser::Ruby < ::RDoc::Parser # We see the RPAREN as the next token, so we need to exit early. This still # won't catch all cases (such as "a = yield + 1" # - # source://rdoc//lib/rdoc/parser/ruby.rb#558 + # source://rdoc/lib/rdoc/parser/ruby.rb#567 def get_end_token(tk); end # Get an included module that may be surrounded by parens # - # source://rdoc//lib/rdoc/parser/ruby.rb#473 + # source://rdoc/lib/rdoc/parser/ruby.rb#482 def get_included_module_with_optional_parens; end # Retrieves the method container for a singleton method. # - # source://rdoc//lib/rdoc/parser/ruby.rb#578 + # source://rdoc/lib/rdoc/parser/ruby.rb#587 def get_method_container(container, name_t); end # Extracts a name or symbol from the token stream. # - # source://rdoc//lib/rdoc/parser/ruby.rb#621 + # source://rdoc/lib/rdoc/parser/ruby.rb#630 def get_symbol_or_name; end # Retrieves the read token stream and replaces +pattern+ with +replacement+ # using gsub. If the result is only a ";" returns an empty string. # - # source://rdoc//lib/rdoc/parser/ruby.rb#194 + # source://rdoc/lib/rdoc/parser/ruby.rb#203 def get_tkread_clean(pattern, replacement); end # Extracts the visibility information for the visibility token +tk+ @@ -9370,7 +9381,7 @@ class RDoc::Parser::Ruby < ::RDoc::Parser # +singleton+ if the methods following should be converted to singleton # methods. # - # source://rdoc//lib/rdoc/parser/ruby.rb#208 + # source://rdoc/lib/rdoc/parser/ruby.rb#217 def get_visibility_information(tk, single); end # Look for directives in a normal comment block: @@ -9380,108 +9391,108 @@ class RDoc::Parser::Ruby < ::RDoc::Parser # # This routine modifies its +comment+ parameter. # - # source://rdoc//lib/rdoc/parser/ruby.rb#661 + # source://rdoc/lib/rdoc/parser/ruby.rb#670 def look_for_directives_in(container, comment); end # Adds useful info about the parser to +message+ # - # source://rdoc//lib/rdoc/parser/ruby.rb#681 + # source://rdoc/lib/rdoc/parser/ruby.rb#690 def make_message(message); end # Creates a comment with the correct format # - # source://rdoc//lib/rdoc/parser/ruby.rb#693 + # source://rdoc/lib/rdoc/parser/ruby.rb#702 def new_comment(comment, line_no = T.unsafe(nil)); end # Parses an +alias+ in +context+ with +comment+ # - # source://rdoc//lib/rdoc/parser/ruby.rb#762 + # source://rdoc/lib/rdoc/parser/ruby.rb#771 def parse_alias(context, single, tk, comment); end # Creates an RDoc::Attr for the name following +tk+, setting the comment to # +comment+. # - # source://rdoc//lib/rdoc/parser/ruby.rb#704 + # source://rdoc/lib/rdoc/parser/ruby.rb#713 def parse_attr(context, single, tk, comment); end # Creates an RDoc::Attr for each attribute listed after +tk+, setting the # comment for each to +comment+. # - # source://rdoc//lib/rdoc/parser/ruby.rb#733 + # source://rdoc/lib/rdoc/parser/ruby.rb#742 def parse_attr_accessor(context, single, tk, comment); end # Extracts call parameters from the token stream. # - # source://rdoc//lib/rdoc/parser/ruby.rb#803 + # source://rdoc/lib/rdoc/parser/ruby.rb#812 def parse_call_parameters(tk); end # Parses a class in +context+ with +comment+ # - # source://rdoc//lib/rdoc/parser/ruby.rb#846 + # source://rdoc/lib/rdoc/parser/ruby.rb#855 def parse_class(container, single, tk, comment); end # Parses and creates a regular class # - # source://rdoc//lib/rdoc/parser/ruby.rb#880 + # source://rdoc/lib/rdoc/parser/ruby.rb#889 def parse_class_regular(container, declaration_context, single, name_t, given_name, comment); end # Parses a singleton class in +container+ with the given +name+ and # +comment+. # - # source://rdoc//lib/rdoc/parser/ruby.rb#920 + # source://rdoc/lib/rdoc/parser/ruby.rb#929 def parse_class_singleton(container, name, comment); end # Generates an RDoc::Method or RDoc::Attr from +comment+ by looking for # :method: or :attr: directives in +comment+. # - # source://rdoc//lib/rdoc/parser/ruby.rb#1085 + # source://rdoc/lib/rdoc/parser/ruby.rb#1094 def parse_comment(container, tk, comment); end # Parse a comment that is describing an attribute in +container+ with the # given +name+ and +comment+. # - # source://rdoc//lib/rdoc/parser/ruby.rb#1113 + # source://rdoc/lib/rdoc/parser/ruby.rb#1122 def parse_comment_attr(container, type, name, comment); end - # source://rdoc//lib/rdoc/parser/ruby.rb#1125 + # source://rdoc/lib/rdoc/parser/ruby.rb#1134 def parse_comment_ghost(container, text, name, column, line_no, comment); end # Creates an RDoc::Method on +container+ from +comment+ if there is a # Signature section in the comment # - # source://rdoc//lib/rdoc/parser/ruby.rb#1164 + # source://rdoc/lib/rdoc/parser/ruby.rb#1173 def parse_comment_tomdoc(container, tk, comment); end # Parses a constant in +context+ with +comment+. If +ignore_constants+ is # true, no found constants will be added to RDoc. # - # source://rdoc//lib/rdoc/parser/ruby.rb#959 + # source://rdoc/lib/rdoc/parser/ruby.rb#968 def parse_constant(container, tk, comment, ignore_constants = T.unsafe(nil)); end - # source://rdoc//lib/rdoc/parser/ruby.rb#1026 + # source://rdoc/lib/rdoc/parser/ruby.rb#1035 def parse_constant_body(container, constant, is_array_or_hash); end # Parses a Module#private_constant or Module#public_constant call from +tk+. # - # source://rdoc//lib/rdoc/parser/ruby.rb#2103 + # source://rdoc/lib/rdoc/parser/ruby.rb#2112 def parse_constant_visibility(container, single, tk); end # Parses an +include+ or +extend+, indicated by the +klass+ and adds it to # +container+ # with +comment+ # - # source://rdoc//lib/rdoc/parser/ruby.rb#1199 + # source://rdoc/lib/rdoc/parser/ruby.rb#1208 def parse_extend_or_include(klass, container, comment); end # Parses identifiers that can create new methods or change visibility. # # Returns true if the comment was not consumed. # - # source://rdoc//lib/rdoc/parser/ruby.rb#1237 + # source://rdoc/lib/rdoc/parser/ruby.rb#1246 def parse_identifier(container, single, tk, comment); end # Parses an +included+ with a block feature of ActiveSupport::Concern. # - # source://rdoc//lib/rdoc/parser/ruby.rb#1219 + # source://rdoc/lib/rdoc/parser/ruby.rb#1228 def parse_included_with_activesupport_concern(container, comment); end # Parses a meta-programmed attribute and creates an RDoc::Attr. @@ -9512,34 +9523,34 @@ class RDoc::Parser::Ruby < ::RDoc::Parser # # end # - # source://rdoc//lib/rdoc/parser/ruby.rb#1301 + # source://rdoc/lib/rdoc/parser/ruby.rb#1310 def parse_meta_attr(context, single, tk, comment); end # Parses a meta-programmed method # - # source://rdoc//lib/rdoc/parser/ruby.rb#1335 + # source://rdoc/lib/rdoc/parser/ruby.rb#1344 def parse_meta_method(container, single, tk, comment); end # Parses the name of a metaprogrammed method. +comment+ is used to # determine the name while +tk+ is used in an error message if the name # cannot be determined. # - # source://rdoc//lib/rdoc/parser/ruby.rb#1381 + # source://rdoc/lib/rdoc/parser/ruby.rb#1390 def parse_meta_method_name(comment, tk); end # Parses the parameters and block for a meta-programmed method. # - # source://rdoc//lib/rdoc/parser/ruby.rb#1405 + # source://rdoc/lib/rdoc/parser/ruby.rb#1414 def parse_meta_method_params(container, single, meth, tk, comment); end # Parses a normal method defined by +def+ # - # source://rdoc//lib/rdoc/parser/ruby.rb#1437 + # source://rdoc/lib/rdoc/parser/ruby.rb#1446 def parse_method(container, single, tk, comment); end # Parses a method that needs to be ignored. # - # source://rdoc//lib/rdoc/parser/ruby.rb#1522 + # source://rdoc/lib/rdoc/parser/ruby.rb#1531 def parse_method_dummy(container); end # Parses the name of a method in +container+. @@ -9547,25 +9558,25 @@ class RDoc::Parser::Ruby < ::RDoc::Parser # Returns the method name, the container it is in (for def Foo.name) and if # it is a singleton or regular method. # - # source://rdoc//lib/rdoc/parser/ruby.rb#1535 + # source://rdoc/lib/rdoc/parser/ruby.rb#1544 def parse_method_name(container); end # For the given +container+ and initial name token +name_t+ the method name # is parsed from the token stream for a regular method. # - # source://rdoc//lib/rdoc/parser/ruby.rb#1562 + # source://rdoc/lib/rdoc/parser/ruby.rb#1571 def parse_method_name_regular(container, name_t); end # For the given +container+ and initial name token +name_t+ the method name # and the new +container+ (if necessary) are parsed from the token stream # for a singleton method. # - # source://rdoc//lib/rdoc/parser/ruby.rb#1580 + # source://rdoc/lib/rdoc/parser/ruby.rb#1589 def parse_method_name_singleton(container, name_t); end # Extracts +yield+ parameters from +method+ # - # source://rdoc//lib/rdoc/parser/ruby.rb#1624 + # source://rdoc/lib/rdoc/parser/ruby.rb#1633 def parse_method_or_yield_parameters(method = T.unsafe(nil), modifiers = T.unsafe(nil)); end # Capture the method's parameters. Along the way, look for a comment @@ -9575,69 +9586,69 @@ class RDoc::Parser::Ruby < ::RDoc::Parser # # and add this as the block_params for the method # - # source://rdoc//lib/rdoc/parser/ruby.rb#1691 + # source://rdoc/lib/rdoc/parser/ruby.rb#1700 def parse_method_parameters(method); end # Parses the parameters and body of +meth+ # - # source://rdoc//lib/rdoc/parser/ruby.rb#1492 + # source://rdoc/lib/rdoc/parser/ruby.rb#1501 def parse_method_params_and_body(container, single, meth, added_container); end # Parses an RDoc::NormalModule in +container+ with +comment+ # - # source://rdoc//lib/rdoc/parser/ruby.rb#1706 + # source://rdoc/lib/rdoc/parser/ruby.rb#1715 def parse_module(container, single, tk, comment); end # Parses an RDoc::Require in +context+ containing +comment+ # - # source://rdoc//lib/rdoc/parser/ruby.rb#1728 + # source://rdoc/lib/rdoc/parser/ruby.rb#1737 def parse_require(context, comment); end # Parses a rescue # - # source://rdoc//lib/rdoc/parser/ruby.rb#1749 + # source://rdoc/lib/rdoc/parser/ruby.rb#1758 def parse_rescue; end # The core of the Ruby parser. # - # source://rdoc//lib/rdoc/parser/ruby.rb#1780 + # source://rdoc/lib/rdoc/parser/ruby.rb#1789 def parse_statements(container, single = T.unsafe(nil), current_method = T.unsafe(nil), comment = T.unsafe(nil)); end # Parse up to +no+ symbol arguments # - # source://rdoc//lib/rdoc/parser/ruby.rb#1971 + # source://rdoc/lib/rdoc/parser/ruby.rb#1980 def parse_symbol_arg(no = T.unsafe(nil)); end # Parses up to +no+ symbol arguments surrounded by () and places them in # +args+. # - # source://rdoc//lib/rdoc/parser/ruby.rb#1986 + # source://rdoc/lib/rdoc/parser/ruby.rb#1995 def parse_symbol_arg_paren(no); end # Parses up to +no+ symbol arguments separated by spaces and places them in # +args+. # - # source://rdoc//lib/rdoc/parser/ruby.rb#2014 + # source://rdoc/lib/rdoc/parser/ruby.rb#2023 def parse_symbol_arg_space(no, tk); end # Returns symbol text from the next token # - # source://rdoc//lib/rdoc/parser/ruby.rb#2045 + # source://rdoc/lib/rdoc/parser/ruby.rb#2054 def parse_symbol_in_arg; end # Parses statements in the top-level +container+ # - # source://rdoc//lib/rdoc/parser/ruby.rb#2062 + # source://rdoc/lib/rdoc/parser/ruby.rb#2071 def parse_top_level_statements(container); end # Determines the visibility in +container+ from +tk+ # - # source://rdoc//lib/rdoc/parser/ruby.rb#2080 + # source://rdoc/lib/rdoc/parser/ruby.rb#2089 def parse_visibility(container, single, tk); end # Determines the block parameter for +context+ # - # source://rdoc//lib/rdoc/parser/ruby.rb#2119 + # source://rdoc/lib/rdoc/parser/ruby.rb#2128 def parse_yield(context, single, tk, method); end # Directives are modifier comments that can appear after class, module, or @@ -9652,7 +9663,7 @@ class RDoc::Parser::Ruby < ::RDoc::Parser # the name is in +allowed+. A directive can be found anywhere up to the end # of the current line. # - # source://rdoc//lib/rdoc/parser/ruby.rb#2140 + # source://rdoc/lib/rdoc/parser/ruby.rb#2149 def read_directive(allowed); end # Handles directives following the definition for +context+ (any @@ -9660,144 +9671,144 @@ class RDoc::Parser::Ruby < ::RDoc::Parser # # See also RDoc::Markup::PreProcess#handle_directive # - # source://rdoc//lib/rdoc/parser/ruby.rb#2172 + # source://rdoc/lib/rdoc/parser/ruby.rb#2181 def read_documentation_modifiers(context, allowed); end # Records the location of this +container+ in the file for this parser and # adds it to the list of classes and modules in the file. # - # source://rdoc//lib/rdoc/parser/ruby.rb#2191 + # source://rdoc/lib/rdoc/parser/ruby.rb#2200 def record_location(container); end # Retrieve comment body without =begin/=end # - # source://rdoc//lib/rdoc/parser/ruby.rb#1769 + # source://rdoc/lib/rdoc/parser/ruby.rb#1778 def retrieve_comment_body(tk); end # Scans this Ruby file for Ruby constructs # - # source://rdoc//lib/rdoc/parser/ruby.rb#2203 + # source://rdoc/lib/rdoc/parser/ruby.rb#2212 def scan; end # skip the var [in] part of a 'for' statement # - # source://rdoc//lib/rdoc/parser/ruby.rb#2291 + # source://rdoc/lib/rdoc/parser/ruby.rb#2300 def skip_for_variable; end # Skips the next method in +container+ # - # source://rdoc//lib/rdoc/parser/ruby.rb#2302 + # source://rdoc/lib/rdoc/parser/ruby.rb#2311 def skip_method(container); end # while, until, and for have an optional do # - # source://rdoc//lib/rdoc/parser/ruby.rb#2250 + # source://rdoc/lib/rdoc/parser/ruby.rb#2259 def skip_optional_do_after_expression; end # Skip opening parentheses and yield the block. # Skip closing parentheses too when exists. # - # source://rdoc//lib/rdoc/parser/ruby.rb#401 + # source://rdoc/lib/rdoc/parser/ruby.rb#410 def skip_parentheses(&block); end # Skip spaces until a comment is found # - # source://rdoc//lib/rdoc/parser/ruby.rb#2311 + # source://rdoc/lib/rdoc/parser/ruby.rb#2320 def skip_tkspace_comment(skip_nl = T.unsafe(nil)); end # Marks containers between +container+ and +ancestor+ as ignored # - # source://rdoc//lib/rdoc/parser/ruby.rb#646 + # source://rdoc/lib/rdoc/parser/ruby.rb#655 def suppress_parents(container, ancestor); end # Return +true+ if +tk+ is a newline. # # @return [Boolean] # - # source://rdoc//lib/rdoc/parser/ruby.rb#186 + # source://rdoc/lib/rdoc/parser/ruby.rb#195 def tk_nl?(tk); end # Updates visibility in +container+ from +vis_type+ and +vis+. # - # source://rdoc//lib/rdoc/parser/ruby.rb#2323 + # source://rdoc/lib/rdoc/parser/ruby.rb#2332 def update_visibility(container, vis_type, vis, singleton); end # Prints +message+ to +$stderr+ unless we're being quiet # - # source://rdoc//lib/rdoc/parser/ruby.rb#2368 + # source://rdoc/lib/rdoc/parser/ruby.rb#2377 def warn(message); end end # Collection of methods for writing parsers # -# source://rdoc//lib/rdoc/parser/ruby_tools.rb#5 +# source://rdoc/lib/rdoc/parser/ruby_tools.rb#5 module RDoc::Parser::RubyTools # Adds a token listener +obj+, but you should probably use token_listener # - # source://rdoc//lib/rdoc/parser/ruby_tools.rb#10 + # source://rdoc/lib/rdoc/parser/ruby_tools.rb#10 def add_token_listener(obj); end # Fetches the next token from the scanner # - # source://rdoc//lib/rdoc/parser/ruby_tools.rb#18 + # source://rdoc/lib/rdoc/parser/ruby_tools.rb#18 def get_tk; end # Reads and returns all tokens up to one of +tokens+. Leaves the matched # token in the token list. # - # source://rdoc//lib/rdoc/parser/ruby_tools.rb#52 + # source://rdoc/lib/rdoc/parser/ruby_tools.rb#52 def get_tk_until(*tokens); end # Retrieves a String representation of the read tokens # - # source://rdoc//lib/rdoc/parser/ruby_tools.rb#73 + # source://rdoc/lib/rdoc/parser/ruby_tools.rb#73 def get_tkread; end # Peek equivalent for get_tkread # - # source://rdoc//lib/rdoc/parser/ruby_tools.rb#82 + # source://rdoc/lib/rdoc/parser/ruby_tools.rb#82 def peek_read; end # Peek at the next token, but don't remove it from the stream # - # source://rdoc//lib/rdoc/parser/ruby_tools.rb#89 + # source://rdoc/lib/rdoc/parser/ruby_tools.rb#89 def peek_tk; end # Removes the token listener +obj+ # - # source://rdoc//lib/rdoc/parser/ruby_tools.rb#97 + # source://rdoc/lib/rdoc/parser/ruby_tools.rb#97 def remove_token_listener(obj); end # Resets the tools # - # source://rdoc//lib/rdoc/parser/ruby_tools.rb#104 + # source://rdoc/lib/rdoc/parser/ruby_tools.rb#104 def reset; end # Skips whitespace tokens including newlines # - # source://rdoc//lib/rdoc/parser/ruby_tools.rb#115 + # source://rdoc/lib/rdoc/parser/ruby_tools.rb#115 def skip_tkspace; end # Skips whitespace tokens excluding newlines # - # source://rdoc//lib/rdoc/parser/ruby_tools.rb#129 + # source://rdoc/lib/rdoc/parser/ruby_tools.rb#129 def skip_tkspace_without_nl; end # Has +obj+ listen to tokens # - # source://rdoc//lib/rdoc/parser/ruby_tools.rb#143 + # source://rdoc/lib/rdoc/parser/ruby_tools.rb#143 def token_listener(obj); end # Returns +tk+ to the scanner # - # source://rdoc//lib/rdoc/parser/ruby_tools.rb#153 + # source://rdoc/lib/rdoc/parser/ruby_tools.rb#153 def unget_tk(tk); end end # Parse a non-source file. We basically take the whole thing as one big # comment. # -# source://rdoc//lib/rdoc/parser/simple.rb#6 +# source://rdoc/lib/rdoc/parser/simple.rb#6 class RDoc::Parser::Simple < ::RDoc::Parser include ::RDoc::Parser::Text @@ -9805,15 +9816,15 @@ class RDoc::Parser::Simple < ::RDoc::Parser # # @return [Simple] a new instance of Simple # - # source://rdoc//lib/rdoc/parser/simple.rb#17 + # source://rdoc/lib/rdoc/parser/simple.rb#17 def initialize(top_level, file_name, content, options, stats); end - # source://rdoc//lib/rdoc/parser/simple.rb#12 + # source://rdoc/lib/rdoc/parser/simple.rb#12 def content; end # Removes the encoding magic comment from +text+ # - # source://rdoc//lib/rdoc/parser/simple.rb#41 + # source://rdoc/lib/rdoc/parser/simple.rb#41 def remove_coding_comment(text); end # Removes private comments. @@ -9822,22 +9833,22 @@ class RDoc::Parser::Simple < ::RDoc::Parser # dashes at the beginning of the line. Three or more dashes are considered # to be a rule and ignored. # - # source://rdoc//lib/rdoc/parser/simple.rb#52 + # source://rdoc/lib/rdoc/parser/simple.rb#52 def remove_private_comment(comment); end # Extract the file contents and attach them to the TopLevel as a comment # - # source://rdoc//lib/rdoc/parser/simple.rb#28 + # source://rdoc/lib/rdoc/parser/simple.rb#28 def scan; end end -# source://rdoc//lib/rdoc/rd.rb#72 +# source://rdoc/lib/rdoc/rd.rb#72 class RDoc::RD class << self # Parses +rd+ source and returns an RDoc::Markup::Document. If the # =begin or =end lines are missing they will be added. # - # source://rdoc//lib/rdoc/rd.rb#78 + # source://rdoc/lib/rdoc/rd.rb#78 def parse(rd); end end end @@ -9845,347 +9856,347 @@ end # RD format parser for headings, paragraphs, lists, verbatim sections that # exist as blocks. # -# source://rdoc//lib/rdoc/rd/block_parser.rb#660 +# source://rdoc/lib/rdoc/rd/block_parser.rb#660 class RDoc::RD::BlockParser < ::Racc::Parser # Creates a new RDoc::RD::BlockParser. Use #parse to parse an rd-format # document. # # @return [BlockParser] a new instance of BlockParser # - # source://rdoc//lib/rdoc/rd/block_parser.rb#695 + # source://rdoc/lib/rdoc/rd/block_parser.rb#695 def initialize; end # reduce 0 omitted # - # source://rdoc//lib/rdoc/rd/block_parser.rb#1330 + # source://rdoc/lib/rdoc/rd/block_parser.rb#1330 def _reduce_1(val, _values, result); end - # source://rdoc//lib/rdoc/rd/block_parser.rb#1372 + # source://rdoc/lib/rdoc/rd/block_parser.rb#1372 def _reduce_10(val, _values, result); end - # source://rdoc//lib/rdoc/rd/block_parser.rb#1377 + # source://rdoc/lib/rdoc/rd/block_parser.rb#1377 def _reduce_11(val, _values, result); end - # source://rdoc//lib/rdoc/rd/block_parser.rb#1382 + # source://rdoc/lib/rdoc/rd/block_parser.rb#1382 def _reduce_12(val, _values, result); end - # source://rdoc//lib/rdoc/rd/block_parser.rb#1390 + # source://rdoc/lib/rdoc/rd/block_parser.rb#1390 def _reduce_13(val, _values, result); end - # source://rdoc//lib/rdoc/rd/block_parser.rb#1396 + # source://rdoc/lib/rdoc/rd/block_parser.rb#1396 def _reduce_14(val, _values, result); end - # source://rdoc//lib/rdoc/rd/block_parser.rb#1403 + # source://rdoc/lib/rdoc/rd/block_parser.rb#1403 def _reduce_15(val, _values, result); end - # source://rdoc//lib/rdoc/rd/block_parser.rb#1408 + # source://rdoc/lib/rdoc/rd/block_parser.rb#1408 def _reduce_16(val, _values, result); end - # source://rdoc//lib/rdoc/rd/block_parser.rb#1413 + # source://rdoc/lib/rdoc/rd/block_parser.rb#1413 def _reduce_17(val, _values, result); end - # source://rdoc//lib/rdoc/rd/block_parser.rb#1424 + # source://rdoc/lib/rdoc/rd/block_parser.rb#1424 def _reduce_18(val, _values, result); end - # source://rdoc//lib/rdoc/rd/block_parser.rb#1435 + # source://rdoc/lib/rdoc/rd/block_parser.rb#1435 def _reduce_19(val, _values, result); end # @raise [ParseError] # - # source://rdoc//lib/rdoc/rd/block_parser.rb#1335 + # source://rdoc/lib/rdoc/rd/block_parser.rb#1335 def _reduce_2(val, _values, result); end - # source://rdoc//lib/rdoc/rd/block_parser.rb#1441 + # source://rdoc/lib/rdoc/rd/block_parser.rb#1441 def _reduce_20(val, _values, result); end - # source://rdoc//lib/rdoc/rd/block_parser.rb#1447 + # source://rdoc/lib/rdoc/rd/block_parser.rb#1447 def _reduce_21(val, _values, result); end - # source://rdoc//lib/rdoc/rd/block_parser.rb#1453 + # source://rdoc/lib/rdoc/rd/block_parser.rb#1453 def _reduce_22(val, _values, result); end # reduce 26 omitted # - # source://rdoc//lib/rdoc/rd/block_parser.rb#1469 + # source://rdoc/lib/rdoc/rd/block_parser.rb#1469 def _reduce_27(val, _values, result); end - # source://rdoc//lib/rdoc/rd/block_parser.rb#1475 + # source://rdoc/lib/rdoc/rd/block_parser.rb#1475 def _reduce_28(val, _values, result); end - # source://rdoc//lib/rdoc/rd/block_parser.rb#1481 + # source://rdoc/lib/rdoc/rd/block_parser.rb#1481 def _reduce_29(val, _values, result); end - # source://rdoc//lib/rdoc/rd/block_parser.rb#1340 + # source://rdoc/lib/rdoc/rd/block_parser.rb#1340 def _reduce_3(val, _values, result); end - # source://rdoc//lib/rdoc/rd/block_parser.rb#1487 + # source://rdoc/lib/rdoc/rd/block_parser.rb#1487 def _reduce_30(val, _values, result); end - # source://rdoc//lib/rdoc/rd/block_parser.rb#1492 + # source://rdoc/lib/rdoc/rd/block_parser.rb#1492 def _reduce_31(val, _values, result); end - # source://rdoc//lib/rdoc/rd/block_parser.rb#1497 + # source://rdoc/lib/rdoc/rd/block_parser.rb#1497 def _reduce_32(val, _values, result); end - # source://rdoc//lib/rdoc/rd/block_parser.rb#1503 + # source://rdoc/lib/rdoc/rd/block_parser.rb#1503 def _reduce_33(val, _values, result); end - # source://rdoc//lib/rdoc/rd/block_parser.rb#1508 + # source://rdoc/lib/rdoc/rd/block_parser.rb#1508 def _reduce_34(val, _values, result); end - # source://rdoc//lib/rdoc/rd/block_parser.rb#1513 + # source://rdoc/lib/rdoc/rd/block_parser.rb#1513 def _reduce_35(val, _values, result); end - # source://rdoc//lib/rdoc/rd/block_parser.rb#1519 + # source://rdoc/lib/rdoc/rd/block_parser.rb#1519 def _reduce_36(val, _values, result); end - # source://rdoc//lib/rdoc/rd/block_parser.rb#1525 + # source://rdoc/lib/rdoc/rd/block_parser.rb#1525 def _reduce_37(val, _values, result); end - # source://rdoc//lib/rdoc/rd/block_parser.rb#1530 + # source://rdoc/lib/rdoc/rd/block_parser.rb#1530 def _reduce_38(val, _values, result); end - # source://rdoc//lib/rdoc/rd/block_parser.rb#1535 + # source://rdoc/lib/rdoc/rd/block_parser.rb#1535 def _reduce_39(val, _values, result); end - # source://rdoc//lib/rdoc/rd/block_parser.rb#1345 + # source://rdoc/lib/rdoc/rd/block_parser.rb#1345 def _reduce_4(val, _values, result); end - # source://rdoc//lib/rdoc/rd/block_parser.rb#1541 + # source://rdoc/lib/rdoc/rd/block_parser.rb#1541 def _reduce_40(val, _values, result); end - # source://rdoc//lib/rdoc/rd/block_parser.rb#1547 + # source://rdoc/lib/rdoc/rd/block_parser.rb#1547 def _reduce_41(val, _values, result); end - # source://rdoc//lib/rdoc/rd/block_parser.rb#1552 + # source://rdoc/lib/rdoc/rd/block_parser.rb#1552 def _reduce_42(val, _values, result); end - # source://rdoc//lib/rdoc/rd/block_parser.rb#1557 + # source://rdoc/lib/rdoc/rd/block_parser.rb#1557 def _reduce_43(val, _values, result); end - # source://rdoc//lib/rdoc/rd/block_parser.rb#1565 + # source://rdoc/lib/rdoc/rd/block_parser.rb#1565 def _reduce_44(val, _values, result); end - # source://rdoc//lib/rdoc/rd/block_parser.rb#1571 + # source://rdoc/lib/rdoc/rd/block_parser.rb#1571 def _reduce_45(val, _values, result); end - # source://rdoc//lib/rdoc/rd/block_parser.rb#1576 + # source://rdoc/lib/rdoc/rd/block_parser.rb#1576 def _reduce_46(val, _values, result); end - # source://rdoc//lib/rdoc/rd/block_parser.rb#1581 + # source://rdoc/lib/rdoc/rd/block_parser.rb#1581 def _reduce_47(val, _values, result); end - # source://rdoc//lib/rdoc/rd/block_parser.rb#1587 + # source://rdoc/lib/rdoc/rd/block_parser.rb#1587 def _reduce_48(val, _values, result); end - # source://rdoc//lib/rdoc/rd/block_parser.rb#1593 + # source://rdoc/lib/rdoc/rd/block_parser.rb#1593 def _reduce_49(val, _values, result); end - # source://rdoc//lib/rdoc/rd/block_parser.rb#1350 + # source://rdoc/lib/rdoc/rd/block_parser.rb#1350 def _reduce_5(val, _values, result); end - # source://rdoc//lib/rdoc/rd/block_parser.rb#1599 + # source://rdoc/lib/rdoc/rd/block_parser.rb#1599 def _reduce_50(val, _values, result); end - # source://rdoc//lib/rdoc/rd/block_parser.rb#1605 + # source://rdoc/lib/rdoc/rd/block_parser.rb#1605 def _reduce_51(val, _values, result); end - # source://rdoc//lib/rdoc/rd/block_parser.rb#1611 + # source://rdoc/lib/rdoc/rd/block_parser.rb#1611 def _reduce_52(val, _values, result); end # reduce 53 omitted # - # source://rdoc//lib/rdoc/rd/block_parser.rb#1618 + # source://rdoc/lib/rdoc/rd/block_parser.rb#1618 def _reduce_54(val, _values, result); end - # source://rdoc//lib/rdoc/rd/block_parser.rb#1623 + # source://rdoc/lib/rdoc/rd/block_parser.rb#1623 def _reduce_55(val, _values, result); end # reduce 56 omitted # - # source://rdoc//lib/rdoc/rd/block_parser.rb#1630 + # source://rdoc/lib/rdoc/rd/block_parser.rb#1630 def _reduce_57(val, _values, result); end - # source://rdoc//lib/rdoc/rd/block_parser.rb#1355 + # source://rdoc/lib/rdoc/rd/block_parser.rb#1355 def _reduce_6(val, _values, result); end # reduce 61 omitted # - # source://rdoc//lib/rdoc/rd/block_parser.rb#1643 + # source://rdoc/lib/rdoc/rd/block_parser.rb#1643 def _reduce_62(val, _values, result); end - # source://rdoc//lib/rdoc/rd/block_parser.rb#1649 + # source://rdoc/lib/rdoc/rd/block_parser.rb#1649 def _reduce_63(val, _values, result); end - # source://rdoc//lib/rdoc/rd/block_parser.rb#1655 + # source://rdoc/lib/rdoc/rd/block_parser.rb#1655 def _reduce_64(val, _values, result); end - # source://rdoc//lib/rdoc/rd/block_parser.rb#1661 + # source://rdoc/lib/rdoc/rd/block_parser.rb#1661 def _reduce_65(val, _values, result); end - # source://rdoc//lib/rdoc/rd/block_parser.rb#1667 + # source://rdoc/lib/rdoc/rd/block_parser.rb#1667 def _reduce_66(val, _values, result); end - # source://rdoc//lib/rdoc/rd/block_parser.rb#1673 + # source://rdoc/lib/rdoc/rd/block_parser.rb#1673 def _reduce_67(val, _values, result); end - # source://rdoc//lib/rdoc/rd/block_parser.rb#1678 + # source://rdoc/lib/rdoc/rd/block_parser.rb#1678 def _reduce_68(val, _values, result); end - # source://rdoc//lib/rdoc/rd/block_parser.rb#1683 + # source://rdoc/lib/rdoc/rd/block_parser.rb#1683 def _reduce_69(val, _values, result); end # reduce 70 omitted # - # source://rdoc//lib/rdoc/rd/block_parser.rb#1690 + # source://rdoc/lib/rdoc/rd/block_parser.rb#1690 def _reduce_71(val, _values, result); end - # source://rdoc//lib/rdoc/rd/block_parser.rb#1695 + # source://rdoc/lib/rdoc/rd/block_parser.rb#1695 def _reduce_72(val, _values, result); end # reduce 7 omitted # - # source://rdoc//lib/rdoc/rd/block_parser.rb#1362 + # source://rdoc/lib/rdoc/rd/block_parser.rb#1362 def _reduce_8(val, _values, result); end - # source://rdoc//lib/rdoc/rd/block_parser.rb#1367 + # source://rdoc/lib/rdoc/rd/block_parser.rb#1367 def _reduce_9(val, _values, result); end - # source://rdoc//lib/rdoc/rd/block_parser.rb#1700 + # source://rdoc/lib/rdoc/rd/block_parser.rb#1700 def _reduce_none(val, _values, result); end # Adds footnote +content+ to the document # - # source://rdoc//lib/rdoc/rd/block_parser.rb#1045 + # source://rdoc/lib/rdoc/rd/block_parser.rb#1045 def add_footnote(content); end # Adds label +label+ to the document # - # source://rdoc//lib/rdoc/rd/block_parser.rb#1059 + # source://rdoc/lib/rdoc/rd/block_parser.rb#1059 def add_label(label); end # Retrieves the content of +values+ as a single String # - # source://rdoc//lib/rdoc/rd/block_parser.rb#1028 + # source://rdoc/lib/rdoc/rd/block_parser.rb#1028 def content(values); end # Footnotes for this document # - # source://rdoc//lib/rdoc/rd/block_parser.rb#679 + # source://rdoc/lib/rdoc/rd/block_parser.rb#679 def footnotes; end # Path to find included files in # - # source://rdoc//lib/rdoc/rd/block_parser.rb#689 + # source://rdoc/lib/rdoc/rd/block_parser.rb#689 def include_path; end # Path to find included files in # - # source://rdoc//lib/rdoc/rd/block_parser.rb#689 + # source://rdoc/lib/rdoc/rd/block_parser.rb#689 def include_path=(_arg0); end # Labels for items in this document # - # source://rdoc//lib/rdoc/rd/block_parser.rb#684 + # source://rdoc/lib/rdoc/rd/block_parser.rb#684 def labels; end # Current line number # - # source://rdoc//lib/rdoc/rd/block_parser.rb#983 + # source://rdoc/lib/rdoc/rd/block_parser.rb#983 def line_index; end # Returns the next token from the document # - # source://rdoc//lib/rdoc/rd/block_parser.rb#751 + # source://rdoc/lib/rdoc/rd/block_parser.rb#751 def next_token; end # Raises a ParseError when invalid formatting is found # # @raise [ParseError] # - # source://rdoc//lib/rdoc/rd/block_parser.rb#967 + # source://rdoc/lib/rdoc/rd/block_parser.rb#967 def on_error(et, ev, _values); end # Creates a paragraph for +value+ # - # source://rdoc//lib/rdoc/rd/block_parser.rb#1035 + # source://rdoc/lib/rdoc/rd/block_parser.rb#1035 def paragraph(value); end # Parses +src+ and returns an RDoc::Markup::Document. # - # source://rdoc//lib/rdoc/rd/block_parser.rb#707 + # source://rdoc/lib/rdoc/rd/block_parser.rb#707 def parse(src); end private # Cuts off excess whitespace in +src+ # - # source://rdoc//lib/rdoc/rd/block_parser.rb#931 + # source://rdoc/lib/rdoc/rd/block_parser.rb#931 def cut_off(src); end # Formats line numbers +line_numbers+ prettily # - # source://rdoc//lib/rdoc/rd/block_parser.rb#1019 + # source://rdoc/lib/rdoc/rd/block_parser.rb#1019 def format_line_num(*line_numbers); end # Retrieves the content for +file+ from the include_path # - # source://rdoc//lib/rdoc/rd/block_parser.rb#1000 + # source://rdoc/lib/rdoc/rd/block_parser.rb#1000 def get_included(file); end # Yields to the given block if +indent+ matches the current indent, otherwise # an indentation token is processed. # - # source://rdoc//lib/rdoc/rd/block_parser.rb#913 + # source://rdoc/lib/rdoc/rd/block_parser.rb#913 def if_current_indent_equal(indent); end # Parses subtree +src+ # - # source://rdoc//lib/rdoc/rd/block_parser.rb#990 + # source://rdoc/lib/rdoc/rd/block_parser.rb#990 def parse_subtree(src); end - # source://rdoc//lib/rdoc/rd/block_parser.rb#958 + # source://rdoc/lib/rdoc/rd/block_parser.rb#958 def set_term_to_element(parent, term); end end -# source://rdoc//lib/rdoc/rd/block_parser.rb#1324 +# source://rdoc/lib/rdoc/rd/block_parser.rb#1324 RDoc::RD::BlockParser::Racc_debug_parser = T.let(T.unsafe(nil), FalseClass) # Inline keeps track of markup and labels to create proper links. # -# source://rdoc//lib/rdoc/rd/inline.rb#5 +# source://rdoc/lib/rdoc/rd/inline.rb#5 class RDoc::RD::Inline # Initializes the Inline with +rdoc+ and +inline+ # # @return [Inline] a new instance of Inline # - # source://rdoc//lib/rdoc/rd/inline.rb#34 + # source://rdoc/lib/rdoc/rd/inline.rb#34 def initialize(rdoc, reference); end - # source://rdoc//lib/rdoc/rd/inline.rb#42 + # source://rdoc/lib/rdoc/rd/inline.rb#42 def ==(other); end # Appends +more+ to this inline. +more+ may be a String or another Inline. # - # source://rdoc//lib/rdoc/rd/inline.rb#50 + # source://rdoc/lib/rdoc/rd/inline.rb#50 def append(more); end - # source://rdoc//lib/rdoc/rd/inline.rb#65 + # source://rdoc/lib/rdoc/rd/inline.rb#65 def inspect; end # The markup of this reference in RDoc format # - # source://rdoc//lib/rdoc/rd/inline.rb#15 + # source://rdoc/lib/rdoc/rd/inline.rb#15 def rdoc; end # The text of the reference # - # source://rdoc//lib/rdoc/rd/inline.rb#10 + # source://rdoc/lib/rdoc/rd/inline.rb#10 def reference; end # The markup of this reference in RDoc format # - # source://rdoc//lib/rdoc/rd/inline.rb#15 + # source://rdoc/lib/rdoc/rd/inline.rb#15 def to_s; end class << self @@ -10194,241 +10205,241 @@ class RDoc::RD::Inline # +rdoc+ may be another Inline or a String. If +reference+ is not given it # will use the text from +rdoc+. # - # source://rdoc//lib/rdoc/rd/inline.rb#23 + # source://rdoc/lib/rdoc/rd/inline.rb#23 def new(rdoc, reference = T.unsafe(nil)); end end end # RD format parser for inline markup such as emphasis, links, footnotes, etc. # -# source://rdoc//lib/rdoc/rd/inline_parser.rb#661 +# source://rdoc/lib/rdoc/rd/inline_parser.rb#661 class RDoc::RD::InlineParser < ::Racc::Parser # Creates a new parser for inline markup in the rd format. The +block_parser+ # is used to for footnotes and labels in the inline text. # # @return [InlineParser] a new instance of InlineParser # - # source://rdoc//lib/rdoc/rd/inline_parser.rb#734 + # source://rdoc/lib/rdoc/rd/inline_parser.rb#734 def initialize(block_parser); end # reduce 100 omitted # - # source://rdoc//lib/rdoc/rd/inline_parser.rb#1746 + # source://rdoc/lib/rdoc/rd/inline_parser.rb#1746 def _reduce_101(val, _values, result); end - # source://rdoc//lib/rdoc/rd/inline_parser.rb#1753 + # source://rdoc/lib/rdoc/rd/inline_parser.rb#1753 def _reduce_102(val, _values, result); end # reduce 108 omitted # - # source://rdoc//lib/rdoc/rd/inline_parser.rb#1771 + # source://rdoc/lib/rdoc/rd/inline_parser.rb#1771 def _reduce_109(val, _values, result); end # reduce 110 omitted # - # source://rdoc//lib/rdoc/rd/inline_parser.rb#1778 + # source://rdoc/lib/rdoc/rd/inline_parser.rb#1778 def _reduce_111(val, _values, result); end # reduce 112 omitted # - # source://rdoc//lib/rdoc/rd/inline_parser.rb#1786 + # source://rdoc/lib/rdoc/rd/inline_parser.rb#1786 def _reduce_113(val, _values, result); end - # source://rdoc//lib/rdoc/rd/inline_parser.rb#1791 + # source://rdoc/lib/rdoc/rd/inline_parser.rb#1791 def _reduce_114(val, _values, result); end - # source://rdoc//lib/rdoc/rd/inline_parser.rb#1796 + # source://rdoc/lib/rdoc/rd/inline_parser.rb#1796 def _reduce_115(val, _values, result); end # reduce 12 omitted # - # source://rdoc//lib/rdoc/rd/inline_parser.rb#1409 + # source://rdoc/lib/rdoc/rd/inline_parser.rb#1409 def _reduce_13(val, _values, result); end # reduce 135 omitted # - # source://rdoc//lib/rdoc/rd/inline_parser.rb#1841 + # source://rdoc/lib/rdoc/rd/inline_parser.rb#1841 def _reduce_136(val, _values, result); end - # source://rdoc//lib/rdoc/rd/inline_parser.rb#1416 + # source://rdoc/lib/rdoc/rd/inline_parser.rb#1416 def _reduce_14(val, _values, result); end - # source://rdoc//lib/rdoc/rd/inline_parser.rb#1423 + # source://rdoc/lib/rdoc/rd/inline_parser.rb#1423 def _reduce_15(val, _values, result); end - # source://rdoc//lib/rdoc/rd/inline_parser.rb#1430 + # source://rdoc/lib/rdoc/rd/inline_parser.rb#1430 def _reduce_16(val, _values, result); end - # source://rdoc//lib/rdoc/rd/inline_parser.rb#1437 + # source://rdoc/lib/rdoc/rd/inline_parser.rb#1437 def _reduce_17(val, _values, result); end - # source://rdoc//lib/rdoc/rd/inline_parser.rb#1445 + # source://rdoc/lib/rdoc/rd/inline_parser.rb#1445 def _reduce_18(val, _values, result); end - # source://rdoc//lib/rdoc/rd/inline_parser.rb#1451 + # source://rdoc/lib/rdoc/rd/inline_parser.rb#1451 def _reduce_19(val, _values, result); end # reduce 1 omitted # - # source://rdoc//lib/rdoc/rd/inline_parser.rb#1381 + # source://rdoc/lib/rdoc/rd/inline_parser.rb#1381 def _reduce_2(val, _values, result); end - # source://rdoc//lib/rdoc/rd/inline_parser.rb#1459 + # source://rdoc/lib/rdoc/rd/inline_parser.rb#1459 def _reduce_20(val, _values, result); end - # source://rdoc//lib/rdoc/rd/inline_parser.rb#1465 + # source://rdoc/lib/rdoc/rd/inline_parser.rb#1465 def _reduce_21(val, _values, result); end - # source://rdoc//lib/rdoc/rd/inline_parser.rb#1474 + # source://rdoc/lib/rdoc/rd/inline_parser.rb#1474 def _reduce_22(val, _values, result); end - # source://rdoc//lib/rdoc/rd/inline_parser.rb#1480 + # source://rdoc/lib/rdoc/rd/inline_parser.rb#1480 def _reduce_23(val, _values, result); end - # source://rdoc//lib/rdoc/rd/inline_parser.rb#1486 + # source://rdoc/lib/rdoc/rd/inline_parser.rb#1486 def _reduce_24(val, _values, result); end - # source://rdoc//lib/rdoc/rd/inline_parser.rb#1492 + # source://rdoc/lib/rdoc/rd/inline_parser.rb#1492 def _reduce_25(val, _values, result); end - # source://rdoc//lib/rdoc/rd/inline_parser.rb#1501 + # source://rdoc/lib/rdoc/rd/inline_parser.rb#1501 def _reduce_26(val, _values, result); end - # source://rdoc//lib/rdoc/rd/inline_parser.rb#1507 + # source://rdoc/lib/rdoc/rd/inline_parser.rb#1507 def _reduce_27(val, _values, result); end # reduce 28 omitted # - # source://rdoc//lib/rdoc/rd/inline_parser.rb#1516 + # source://rdoc/lib/rdoc/rd/inline_parser.rb#1516 def _reduce_29(val, _values, result); end - # source://rdoc//lib/rdoc/rd/inline_parser.rb#1386 + # source://rdoc/lib/rdoc/rd/inline_parser.rb#1386 def _reduce_3(val, _values, result); end - # source://rdoc//lib/rdoc/rd/inline_parser.rb#1521 + # source://rdoc/lib/rdoc/rd/inline_parser.rb#1521 def _reduce_30(val, _values, result); end - # source://rdoc//lib/rdoc/rd/inline_parser.rb#1526 + # source://rdoc/lib/rdoc/rd/inline_parser.rb#1526 def _reduce_31(val, _values, result); end - # source://rdoc//lib/rdoc/rd/inline_parser.rb#1532 + # source://rdoc/lib/rdoc/rd/inline_parser.rb#1532 def _reduce_32(val, _values, result); end - # source://rdoc//lib/rdoc/rd/inline_parser.rb#1538 + # source://rdoc/lib/rdoc/rd/inline_parser.rb#1538 def _reduce_33(val, _values, result); end - # source://rdoc//lib/rdoc/rd/inline_parser.rb#1544 + # source://rdoc/lib/rdoc/rd/inline_parser.rb#1544 def _reduce_34(val, _values, result); end # reduce 35 omitted # - # source://rdoc//lib/rdoc/rd/inline_parser.rb#1552 + # source://rdoc/lib/rdoc/rd/inline_parser.rb#1552 def _reduce_36(val, _values, result); end - # source://rdoc//lib/rdoc/rd/inline_parser.rb#1557 + # source://rdoc/lib/rdoc/rd/inline_parser.rb#1557 def _reduce_37(val, _values, result); end - # source://rdoc//lib/rdoc/rd/inline_parser.rb#1562 + # source://rdoc/lib/rdoc/rd/inline_parser.rb#1562 def _reduce_38(val, _values, result); end - # source://rdoc//lib/rdoc/rd/inline_parser.rb#1568 + # source://rdoc/lib/rdoc/rd/inline_parser.rb#1568 def _reduce_39(val, _values, result); end - # source://rdoc//lib/rdoc/rd/inline_parser.rb#1574 + # source://rdoc/lib/rdoc/rd/inline_parser.rb#1574 def _reduce_40(val, _values, result); end - # source://rdoc//lib/rdoc/rd/inline_parser.rb#1580 + # source://rdoc/lib/rdoc/rd/inline_parser.rb#1580 def _reduce_41(val, _values, result); end # reduce 42 omitted # - # source://rdoc//lib/rdoc/rd/inline_parser.rb#1588 + # source://rdoc/lib/rdoc/rd/inline_parser.rb#1588 def _reduce_43(val, _values, result); end - # source://rdoc//lib/rdoc/rd/inline_parser.rb#1594 + # source://rdoc/lib/rdoc/rd/inline_parser.rb#1594 def _reduce_44(val, _values, result); end - # source://rdoc//lib/rdoc/rd/inline_parser.rb#1600 + # source://rdoc/lib/rdoc/rd/inline_parser.rb#1600 def _reduce_45(val, _values, result); end - # source://rdoc//lib/rdoc/rd/inline_parser.rb#1606 + # source://rdoc/lib/rdoc/rd/inline_parser.rb#1606 def _reduce_46(val, _values, result); end # reduce 56 omitted # - # source://rdoc//lib/rdoc/rd/inline_parser.rb#1632 + # source://rdoc/lib/rdoc/rd/inline_parser.rb#1632 def _reduce_57(val, _values, result); end - # source://rdoc//lib/rdoc/rd/inline_parser.rb#1638 + # source://rdoc/lib/rdoc/rd/inline_parser.rb#1638 def _reduce_58(val, _values, result); end - # source://rdoc//lib/rdoc/rd/inline_parser.rb#1644 + # source://rdoc/lib/rdoc/rd/inline_parser.rb#1644 def _reduce_59(val, _values, result); end - # source://rdoc//lib/rdoc/rd/inline_parser.rb#1650 + # source://rdoc/lib/rdoc/rd/inline_parser.rb#1650 def _reduce_60(val, _values, result); end # reduce 61 omitted # - # source://rdoc//lib/rdoc/rd/inline_parser.rb#1657 + # source://rdoc/lib/rdoc/rd/inline_parser.rb#1657 def _reduce_62(val, _values, result); end # reduce 63 omitted # - # source://rdoc//lib/rdoc/rd/inline_parser.rb#1665 + # source://rdoc/lib/rdoc/rd/inline_parser.rb#1665 def _reduce_64(val, _values, result); end # reduce 77 omitted # - # source://rdoc//lib/rdoc/rd/inline_parser.rb#1697 + # source://rdoc/lib/rdoc/rd/inline_parser.rb#1697 def _reduce_78(val, _values, result); end # reduce 137 omitted # - # source://rdoc//lib/rdoc/rd/inline_parser.rb#1848 + # source://rdoc/lib/rdoc/rd/inline_parser.rb#1848 def _reduce_none(val, _values, result); end # Creates a new RDoc::RD::Inline for the +rdoc+ markup and the raw +reference+ # - # source://rdoc//lib/rdoc/rd/inline_parser.rb#883 + # source://rdoc/lib/rdoc/rd/inline_parser.rb#883 def inline(rdoc, reference = T.unsafe(nil)); end # Returns the next token from the inline text # - # source://rdoc//lib/rdoc/rd/inline_parser.rb#752 + # source://rdoc/lib/rdoc/rd/inline_parser.rb#752 def next_token; end # Returns words following an error # - # source://rdoc//lib/rdoc/rd/inline_parser.rb#872 + # source://rdoc/lib/rdoc/rd/inline_parser.rb#872 def next_words_on_error; end # Raises a ParseError when invalid formatting is found # # @raise [ParseError] # - # source://rdoc//lib/rdoc/rd/inline_parser.rb#832 + # source://rdoc/lib/rdoc/rd/inline_parser.rb#832 def on_error(et, ev, values); end # Parses the +inline+ text from RD format into RDoc format. # - # source://rdoc//lib/rdoc/rd/inline_parser.rb#741 + # source://rdoc/lib/rdoc/rd/inline_parser.rb#741 def parse(inline); end # Returns words before the error # - # source://rdoc//lib/rdoc/rd/inline_parser.rb#849 + # source://rdoc/lib/rdoc/rd/inline_parser.rb#849 def prev_words_on_error(ev); end private # Returns the last line of +src+ # - # source://rdoc//lib/rdoc/rd/inline_parser.rb#860 + # source://rdoc/lib/rdoc/rd/inline_parser.rb#860 def last_line(src); end end -# source://rdoc//lib/rdoc/rd/inline_parser.rb#1373 +# source://rdoc/lib/rdoc/rd/inline_parser.rb#1373 RDoc::RD::InlineParser::Racc_debug_parser = T.let(T.unsafe(nil), FalseClass) # This is the driver for generating RDoc output. It handles file parsing and @@ -10450,14 +10461,14 @@ RDoc::RD::InlineParser::Racc_debug_parser = T.let(T.unsafe(nil), FalseClass) # Where +argv+ is an array of strings, each corresponding to an argument you'd # give rdoc on the command line. See rdoc --help for details. # -# source://rdoc//lib/rdoc/rdoc.rb#29 +# source://rdoc/lib/rdoc/rdoc.rb#29 class RDoc::RDoc # Creates a new RDoc::RDoc instance. Call #document to parse files and # generate documentation. # # @return [RDoc] a new instance of RDoc # - # source://rdoc//lib/rdoc/rdoc.rb#100 + # source://rdoc/lib/rdoc/rdoc.rb#100 def initialize; end # Generates documentation or a coverage report depending upon the settings @@ -10473,52 +10484,52 @@ class RDoc::RDoc # By default, output will be stored in a directory called "doc" below the # current directory, so make sure you're somewhere writable before invoking. # - # source://rdoc//lib/rdoc/rdoc.rb#450 + # source://rdoc/lib/rdoc/rdoc.rb#452 def document(options); end # Report an error message and exit # # @raise [RDoc::Error] # - # source://rdoc//lib/rdoc/rdoc.rb#113 + # source://rdoc/lib/rdoc/rdoc.rb#113 def error(msg); end # Gathers a set of parseable files from the files and directories listed in # +files+. # - # source://rdoc//lib/rdoc/rdoc.rb#121 + # source://rdoc/lib/rdoc/rdoc.rb#121 def gather_files(files); end # Generates documentation for +file_info+ (from #parse_files) into the # output dir using the generator selected # by the RDoc options # - # source://rdoc//lib/rdoc/rdoc.rb#515 + # source://rdoc/lib/rdoc/rdoc.rb#517 def generate; end # Generator instance used for creating output # - # source://rdoc//lib/rdoc/rdoc.rb#52 + # source://rdoc/lib/rdoc/rdoc.rb#52 def generator; end # Generator instance used for creating output # - # source://rdoc//lib/rdoc/rdoc.rb#52 + # source://rdoc/lib/rdoc/rdoc.rb#52 def generator=(_arg0); end # Turns RDoc from stdin into HTML # - # source://rdoc//lib/rdoc/rdoc.rb#142 + # source://rdoc/lib/rdoc/rdoc.rb#142 def handle_pipe; end # Installs a siginfo handler that prints the current filename. # - # source://rdoc//lib/rdoc/rdoc.rb#157 + # source://rdoc/lib/rdoc/rdoc.rb#157 def install_siginfo_handler; end # Hash of files and their last modified times. # - # source://rdoc//lib/rdoc/rdoc.rb#57 + # source://rdoc/lib/rdoc/rdoc.rb#57 def last_modified; end # Return a list of the files to be processed in a directory. We know that @@ -10526,7 +10537,7 @@ class RDoc::RDoc # files. However we may well contain subdirectories which must be tested # for .document files. # - # source://rdoc//lib/rdoc/rdoc.rb#323 + # source://rdoc/lib/rdoc/rdoc.rb#323 def list_files_in_directory(dir); end # Given a list of files and directories, create a list of all the Ruby @@ -10540,106 +10551,106 @@ class RDoc::RDoc # The effect of this is that if you want a file with a non-standard # extension parsed, you must name it explicitly. # - # source://rdoc//lib/rdoc/rdoc.rb#275 + # source://rdoc/lib/rdoc/rdoc.rb#275 def normalized_file_list(relative_files, force_doc = T.unsafe(nil), exclude_pattern = T.unsafe(nil)); end # RDoc options # - # source://rdoc//lib/rdoc/rdoc.rb#62 + # source://rdoc/lib/rdoc/rdoc.rb#62 def options; end # RDoc options # - # source://rdoc//lib/rdoc/rdoc.rb#62 + # source://rdoc/lib/rdoc/rdoc.rb#62 def options=(_arg0); end # Return the path name of the flag file in an output directory. # - # source://rdoc//lib/rdoc/rdoc.rb#240 + # source://rdoc/lib/rdoc/rdoc.rb#240 def output_flag_file(op_dir); end # The .document file contains a list of file and directory name patterns, # representing candidates for documentation. It may also contain comments # (starting with '#') # - # source://rdoc//lib/rdoc/rdoc.rb#249 + # source://rdoc/lib/rdoc/rdoc.rb#249 def parse_dot_doc_file(in_dir, filename); end # Parses +filename+ and returns an RDoc::TopLevel # - # source://rdoc//lib/rdoc/rdoc.rb#332 + # source://rdoc/lib/rdoc/rdoc.rb#332 def parse_file(filename); end # Parse each file on the command line, recursively entering directories. # - # source://rdoc//lib/rdoc/rdoc.rb#404 + # source://rdoc/lib/rdoc/rdoc.rb#403 def parse_files(files); end # Removes a siginfo handler and replaces the previous # - # source://rdoc//lib/rdoc/rdoc.rb#534 + # source://rdoc/lib/rdoc/rdoc.rb#537 def remove_siginfo_handler; end # Removes file extensions known to be unparseable from +files+ and TAGS # files for emacs and vim. # - # source://rdoc//lib/rdoc/rdoc.rb#428 + # source://rdoc/lib/rdoc/rdoc.rb#430 def remove_unparseable(files); end # Create an output dir if it doesn't exist. If it does exist, but doesn't # contain the flag file created.rid then we refuse to use it, as # we may clobber some manually generated documentation # - # source://rdoc//lib/rdoc/rdoc.rb#170 + # source://rdoc/lib/rdoc/rdoc.rb#170 def setup_output_dir(dir, force); end # Accessor for statistics. Available after each call to parse_files # - # source://rdoc//lib/rdoc/rdoc.rb#67 + # source://rdoc/lib/rdoc/rdoc.rb#67 def stats; end # The current documentation store # - # source://rdoc//lib/rdoc/rdoc.rb#72 + # source://rdoc/lib/rdoc/rdoc.rb#72 def store; end # Sets the current documentation tree to +store+ and sets the store's rdoc # driver to this instance. # - # source://rdoc//lib/rdoc/rdoc.rb#215 + # source://rdoc/lib/rdoc/rdoc.rb#215 def store=(store); end # Update the flag file in an output directory. # - # source://rdoc//lib/rdoc/rdoc.rb#223 + # source://rdoc/lib/rdoc/rdoc.rb#223 def update_output_dir(op_dir, time, last = T.unsafe(nil)); end class << self # Add +klass+ that can generate output after parsing # - # source://rdoc//lib/rdoc/rdoc.rb#77 + # source://rdoc/lib/rdoc/rdoc.rb#77 def add_generator(klass); end # Active RDoc::RDoc instance # - # source://rdoc//lib/rdoc/rdoc.rb#85 + # source://rdoc/lib/rdoc/rdoc.rb#85 def current; end # Sets the active RDoc::RDoc instance # - # source://rdoc//lib/rdoc/rdoc.rb#92 + # source://rdoc/lib/rdoc/rdoc.rb#92 def current=(rdoc); end end end # List of directory names skipped if test suites should be skipped # -# source://rdoc//lib/rdoc/rdoc.rb#46 +# source://rdoc/lib/rdoc/rdoc.rb#46 RDoc::RDoc::TEST_SUITE_DIRECTORY_NAMES = T.let(T.unsafe(nil), Array) # List of directory names always skipped # -# source://rdoc//lib/rdoc/rdoc.rb#41 +# source://rdoc/lib/rdoc/rdoc.rb#41 RDoc::RDoc::UNCONDITIONALLY_SKIPPED_DIRECTORIES = T.let(T.unsafe(nil), Array) # The RI driver implements the command-line ri tool. @@ -10657,135 +10668,135 @@ RDoc::RDoc::UNCONDITIONALLY_SKIPPED_DIRECTORIES = T.let(T.unsafe(nil), Array) # * Colorized output # * Merging output from multiple RI data sources # -# source://rdoc//lib/rdoc/ri/driver.rb#25 +# source://rdoc/lib/rdoc/ri/driver.rb#25 class RDoc::RI::Driver # Creates a new driver using +initial_options+ from ::process_args # # @return [Driver] a new instance of Driver # - # source://rdoc//lib/rdoc/ri/driver.rb#391 + # source://rdoc/lib/rdoc/ri/driver.rb#402 def initialize(initial_options = T.unsafe(nil)); end # Adds paths for undocumented classes +also_in+ to +out+ # - # source://rdoc//lib/rdoc/ri/driver.rb#429 + # source://rdoc/lib/rdoc/ri/driver.rb#441 def add_also_in(out, also_in); end # Adds a class header to +out+ for class +name+ which is described in # +classes+. # - # source://rdoc//lib/rdoc/ri/driver.rb#446 + # source://rdoc/lib/rdoc/ri/driver.rb#458 def add_class(out, name, classes); end # Adds +extends+ to +out+ # - # source://rdoc//lib/rdoc/ri/driver.rb#473 + # source://rdoc/lib/rdoc/ri/driver.rb#485 def add_extends(out, extends); end # Adds a list of +extensions+ to this module of the given +type+ to +out+. # add_includes and add_extends call this, so you should use those directly. # - # source://rdoc//lib/rdoc/ri/driver.rb#481 + # source://rdoc/lib/rdoc/ri/driver.rb#493 def add_extension_modules(out, type, extensions); end # Renders multiple included +modules+ from +store+ to +out+. # - # source://rdoc//lib/rdoc/ri/driver.rb#499 + # source://rdoc/lib/rdoc/ri/driver.rb#511 def add_extension_modules_multiple(out, store, modules); end # Adds a single extension module +include+ from +store+ to +out+ # - # source://rdoc//lib/rdoc/ri/driver.rb#526 + # source://rdoc/lib/rdoc/ri/driver.rb#538 def add_extension_modules_single(out, store, include); end # Adds "(from ...)" to +out+ for +store+ # - # source://rdoc//lib/rdoc/ri/driver.rb#466 + # source://rdoc/lib/rdoc/ri/driver.rb#478 def add_from(out, store); end # Adds +includes+ to +out+ # - # source://rdoc//lib/rdoc/ri/driver.rb#540 + # source://rdoc/lib/rdoc/ri/driver.rb#552 def add_includes(out, includes); end # Looks up the method +name+ and adds it to +out+ # - # source://rdoc//lib/rdoc/ri/driver.rb#547 + # source://rdoc/lib/rdoc/ri/driver.rb#559 def add_method(out, name); end # Adds documentation for all methods in +klass+ to +out+ # - # source://rdoc//lib/rdoc/ri/driver.rb#558 + # source://rdoc/lib/rdoc/ri/driver.rb#567 def add_method_documentation(out, klass); end # Adds a list of +methods+ to +out+ with a heading of +name+ # - # source://rdoc//lib/rdoc/ri/driver.rb#571 + # source://rdoc/lib/rdoc/ri/driver.rb#580 def add_method_list(out, methods, name); end # Returns ancestor classes of +klass+ # - # source://rdoc//lib/rdoc/ri/driver.rb#591 + # source://rdoc/lib/rdoc/ri/driver.rb#600 def ancestors_of(klass); end - # source://rdoc//lib/rdoc/ri/driver.rb#926 + # source://rdoc/lib/rdoc/ri/driver.rb#938 def check_did_you_mean; end # For RubyGems backwards compatibility # - # source://rdoc//lib/rdoc/ri/driver.rb#622 + # source://rdoc/lib/rdoc/ri/driver.rb#631 def class_cache; end # Builds a RDoc::Markup::Document from +found+, +klasess+ and +includes+ # - # source://rdoc//lib/rdoc/ri/driver.rb#628 + # source://rdoc/lib/rdoc/ri/driver.rb#637 def class_document(name, found, klasses, includes, extends); end # Adds the class +comment+ to +out+. # - # source://rdoc//lib/rdoc/ri/driver.rb#650 + # source://rdoc/lib/rdoc/ri/driver.rb#660 def class_document_comment(out, comment); end # Adds the constants from +klass+ to the Document +out+. # - # source://rdoc//lib/rdoc/ri/driver.rb#670 + # source://rdoc/lib/rdoc/ri/driver.rb#680 def class_document_constants(out, klass); end # Hash mapping a known class or module to the stores it can be loaded from # - # source://rdoc//lib/rdoc/ri/driver.rb#694 + # source://rdoc/lib/rdoc/ri/driver.rb#704 def classes; end # Returns the stores wherein +name+ is found along with the classes, # extends and includes that match it # - # source://rdoc//lib/rdoc/ri/driver.rb#714 + # source://rdoc/lib/rdoc/ri/driver.rb#724 def classes_and_includes_and_extends_for(name); end # Completes +name+ based on the caches. For Readline # - # source://rdoc//lib/rdoc/ri/driver.rb#739 + # source://rdoc/lib/rdoc/ri/driver.rb#749 def complete(name); end - # source://rdoc//lib/rdoc/ri/driver.rb#750 + # source://rdoc/lib/rdoc/ri/driver.rb#760 def complete_klass(name, klass, selector, method, completions); end - # source://rdoc//lib/rdoc/ri/driver.rb#769 + # source://rdoc/lib/rdoc/ri/driver.rb#779 def complete_method(name, klass, selector, completions); end # Converts +document+ to text and writes it to the pager # - # source://rdoc//lib/rdoc/ri/driver.rb#789 + # source://rdoc/lib/rdoc/ri/driver.rb#799 def display(document); end # Outputs formatted RI data for class +name+. Groups undocumented classes # - # source://rdoc//lib/rdoc/ri/driver.rb#802 + # source://rdoc/lib/rdoc/ri/driver.rb#812 def display_class(name); end # Outputs formatted RI data for method +name+ # - # source://rdoc//lib/rdoc/ri/driver.rb#818 + # source://rdoc/lib/rdoc/ri/driver.rb#828 def display_method(name); end # Outputs formatted RI data for the class or method +name+. @@ -10793,39 +10804,42 @@ class RDoc::RI::Driver # Returns true if +name+ was found, false if it was not an alternative could # be guessed, raises an error if +name+ couldn't be guessed. # - # source://rdoc//lib/rdoc/ri/driver.rb#832 + # source://rdoc/lib/rdoc/ri/driver.rb#844 def display_name(name); end # Displays each name in +name+ # - # source://rdoc//lib/rdoc/ri/driver.rb#861 + # source://rdoc/lib/rdoc/ri/driver.rb#873 def display_names(names); end # Outputs formatted RI data for page +name+. # - # source://rdoc//lib/rdoc/ri/driver.rb#872 + # source://rdoc/lib/rdoc/ri/driver.rb#884 def display_page(name); end # Outputs a formatted RI page list for the pages in +store+. # - # source://rdoc//lib/rdoc/ri/driver.rb#903 + # source://rdoc/lib/rdoc/ri/driver.rb#915 def display_page_list(store, pages = T.unsafe(nil), search = T.unsafe(nil)); end # Expands abbreviated klass +klass+ into a fully-qualified class. "Zl::Da" # will be expanded to Zlib::DataError. # - # source://rdoc//lib/rdoc/ri/driver.rb#947 + # source://rdoc/lib/rdoc/ri/driver.rb#959 def expand_class(klass); end # Expands the class portion of +name+ into a fully-qualified class. See # #expand_class. # - # source://rdoc//lib/rdoc/ri/driver.rb#965 + # source://rdoc/lib/rdoc/ri/driver.rb#977 def expand_name(name); end + # source://rdoc/lib/rdoc/ri/driver.rb#1525 + def expand_rdoc_refs_at_the_bottom(out); end + # Filters the methods in +found+ trying to find a match for +name+. # - # source://rdoc//lib/rdoc/ri/driver.rb#981 + # source://rdoc/lib/rdoc/ri/driver.rb#993 def filter_methods(found, name); end # Yields items matching +name+ including the store they were found in, the @@ -10833,7 +10847,7 @@ class RDoc::RI::Driver # types of methods to look up (from #method_type), and the method name being # searched for # - # source://rdoc//lib/rdoc/ri/driver.rb#999 + # source://rdoc/lib/rdoc/ri/driver.rb#1011 def find_methods(name); end # Finds a store that matches +name+ which can be the name of a gem, "ruby", @@ -10843,73 +10857,73 @@ class RDoc::RI::Driver # # @raise [RDoc::RI::Driver::NotFoundError] # - # source://rdoc//lib/rdoc/ri/driver.rb#1045 + # source://rdoc/lib/rdoc/ri/driver.rb#1057 def find_store(name); end # Creates a new RDoc::Markup::Formatter. If a formatter is given with -f, # use it. If we're outputting to a pager, use bs, otherwise ansi. # - # source://rdoc//lib/rdoc/ri/driver.rb#1062 + # source://rdoc/lib/rdoc/ri/driver.rb#1074 def formatter(io); end # Runs ri interactively using Readline if it is available. # - # source://rdoc//lib/rdoc/ri/driver.rb#1075 + # source://rdoc/lib/rdoc/ri/driver.rb#1087 def interactive; end # Lists classes known to ri starting with +names+. If +names+ is empty all # known classes are shown. # - # source://rdoc//lib/rdoc/ri/driver.rb#1114 + # source://rdoc/lib/rdoc/ri/driver.rb#1126 def list_known_classes(names = T.unsafe(nil)); end # Returns an Array of methods matching +name+ # - # source://rdoc//lib/rdoc/ri/driver.rb#1146 + # source://rdoc/lib/rdoc/ri/driver.rb#1158 def list_methods_matching(name); end # Loads RI data for method +name+ on +klass+ from +store+. +type+ and # +cache+ indicate if it is a class or instance method. # - # source://rdoc//lib/rdoc/ri/driver.rb#1185 + # source://rdoc/lib/rdoc/ri/driver.rb#1197 def load_method(store, cache, klass, type, name); end # Returns an Array of RI data for methods matching +name+ # - # source://rdoc//lib/rdoc/ri/driver.rb#1208 + # source://rdoc/lib/rdoc/ri/driver.rb#1220 def load_methods_matching(name); end # Returns a filtered list of methods matching +name+ # - # source://rdoc//lib/rdoc/ri/driver.rb#1229 + # source://rdoc/lib/rdoc/ri/driver.rb#1241 def lookup_method(name); end # Builds a RDoc::Markup::Document from +found+, +klasses+ and +includes+ # - # source://rdoc//lib/rdoc/ri/driver.rb#1254 - def method_document(name, filtered); end + # source://rdoc/lib/rdoc/ri/driver.rb#1266 + def method_document(out, name, filtered); end # Returns the type of method (:both, :instance, :class) for +selector+ # - # source://rdoc//lib/rdoc/ri/driver.rb#1272 + # source://rdoc/lib/rdoc/ri/driver.rb#1282 def method_type(selector); end # Returns a regular expression for +name+ that will match an # RDoc::AnyMethod's name. # - # source://rdoc//lib/rdoc/ri/driver.rb#1284 + # source://rdoc/lib/rdoc/ri/driver.rb#1294 def name_regexp(name); end # Paginates output through a pager program. # - # source://rdoc//lib/rdoc/ri/driver.rb#1298 + # source://rdoc/lib/rdoc/ri/driver.rb#1308 def page; end # Are we using a pager? # # @return [Boolean] # - # source://rdoc//lib/rdoc/ri/driver.rb#1316 + # source://rdoc/lib/rdoc/ri/driver.rb#1326 def paging?; end # Extracts the class, selector and method name parts from +name+ like @@ -10918,324 +10932,183 @@ class RDoc::RI::Driver # NOTE: Given Foo::Bar, Bar is considered a class even though it may be a # method # - # source://rdoc//lib/rdoc/ri/driver.rb#1327 + # source://rdoc/lib/rdoc/ri/driver.rb#1337 def parse_name(name); end # Renders the +klass+ from +store+ to +out+. If the klass has no # documentable items the class is added to +also_in+ instead. # - # source://rdoc//lib/rdoc/ri/driver.rb#1359 + # source://rdoc/lib/rdoc/ri/driver.rb#1369 def render_class(out, store, klass, also_in); end - # source://rdoc//lib/rdoc/ri/driver.rb#1389 + # source://rdoc/lib/rdoc/ri/driver.rb#1399 def render_method(out, store, method, name); end - # source://rdoc//lib/rdoc/ri/driver.rb#1409 + # source://rdoc/lib/rdoc/ri/driver.rb#1419 def render_method_arguments(out, arglists); end - # source://rdoc//lib/rdoc/ri/driver.rb#1418 + # source://rdoc/lib/rdoc/ri/driver.rb#1428 def render_method_comment(out, method, alias_for = T.unsafe(nil)); end - # source://rdoc//lib/rdoc/ri/driver.rb#1436 + # source://rdoc/lib/rdoc/ri/driver.rb#1446 def render_method_superclass(out, method); end # Looks up and displays ri data according to the options given. # - # source://rdoc//lib/rdoc/ri/driver.rb#1448 + # source://rdoc/lib/rdoc/ri/driver.rb#1458 def run; end # Sets up a pager program to pass output through. Tries the RI_PAGER and # PAGER environment variables followed by pager, less then more. # - # source://rdoc//lib/rdoc/ri/driver.rb#1468 + # source://rdoc/lib/rdoc/ri/driver.rb#1478 def setup_pager; end # Show all method documentation following a class or module # - # source://rdoc//lib/rdoc/ri/driver.rb#62 + # source://rdoc/lib/rdoc/ri/driver.rb#62 def show_all; end # Show all method documentation following a class or module # - # source://rdoc//lib/rdoc/ri/driver.rb#62 + # source://rdoc/lib/rdoc/ri/driver.rb#62 def show_all=(_arg0); end # Starts a WEBrick server for ri. # - # source://rdoc//lib/rdoc/ri/driver.rb#1494 + # source://rdoc/lib/rdoc/ri/driver.rb#1504 def start_server; end # An RDoc::RI::Store for each entry in the RI path # - # source://rdoc//lib/rdoc/ri/driver.rb#67 + # source://rdoc/lib/rdoc/ri/driver.rb#67 def stores; end # An RDoc::RI::Store for each entry in the RI path # - # source://rdoc//lib/rdoc/ri/driver.rb#67 + # source://rdoc/lib/rdoc/ri/driver.rb#67 def stores=(_arg0); end # Controls the user of the pager vs $stdout # - # source://rdoc//lib/rdoc/ri/driver.rb#72 + # source://rdoc/lib/rdoc/ri/driver.rb#72 def use_stdout; end # Controls the user of the pager vs $stdout # - # source://rdoc//lib/rdoc/ri/driver.rb#72 + # source://rdoc/lib/rdoc/ri/driver.rb#72 def use_stdout=(_arg0); end class << self # Default options for ri # - # source://rdoc//lib/rdoc/ri/driver.rb#77 + # source://rdoc/lib/rdoc/ri/driver.rb#77 def default_options; end # Dump +data_path+ using pp # - # source://rdoc//lib/rdoc/ri/driver.rb#98 + # source://rdoc/lib/rdoc/ri/driver.rb#99 def dump(data_path); end # Parses +argv+ and returns a Hash of options # - # source://rdoc//lib/rdoc/ri/driver.rb#109 + # source://rdoc/lib/rdoc/ri/driver.rb#110 def process_args(argv); end # Runs the ri command line executable using +argv+ # - # source://rdoc//lib/rdoc/ri/driver.rb#376 + # source://rdoc/lib/rdoc/ri/driver.rb#387 def run(argv = T.unsafe(nil)); end end end # Raised when a name isn't found in the ri data stores # -# source://rdoc//lib/rdoc/ri/driver.rb#35 +# source://rdoc/lib/rdoc/ri/driver.rb#35 class RDoc::RI::Driver::NotFoundError < ::RDoc::RI::Driver::Error # @return [NotFoundError] a new instance of NotFoundError # - # source://rdoc//lib/rdoc/ri/driver.rb#37 + # source://rdoc/lib/rdoc/ri/driver.rb#37 def initialize(klass, suggestion_proc = T.unsafe(nil)); end - # source://rdoc//lib/rdoc/ri/driver.rb#49 + # source://rdoc/lib/rdoc/ri/driver.rb#49 def message; end # Name that wasn't found # - # source://rdoc//lib/rdoc/ri/driver.rb#45 + # source://rdoc/lib/rdoc/ri/driver.rb#45 def name; end end +# source://rdoc/lib/rdoc/ri/driver.rb#1523 +RDoc::RI::Driver::RDOC_REFS_REGEXP = T.let(T.unsafe(nil), Regexp) + # For RubyGems backwards compatibility # -# source://rdoc//lib/rdoc/ri/formatter.rb#5 +# source://rdoc/lib/rdoc/ri/formatter.rb#5 module RDoc::RI::Formatter; end -# source://rdoc//lib/rdoc/ri/store.rb#4 +# source://rdoc/lib/rdoc/ri/store.rb#4 RDoc::RI::Store = RDoc::Store # A file loaded by \#require # -# source://rdoc//lib/rdoc/require.rb#5 +# source://rdoc/lib/rdoc/code_object/require.rb#5 class RDoc::Require < ::RDoc::CodeObject # Creates a new Require that loads +name+ with +comment+ # # @return [Require] a new instance of Require # - # source://rdoc//lib/rdoc/require.rb#15 + # source://rdoc/lib/rdoc/code_object/require.rb#15 def initialize(name, comment); end - # source://rdoc//lib/rdoc/require.rb#22 + # source://rdoc/lib/rdoc/code_object/require.rb#22 def inspect; end # Name of the required file # - # source://rdoc//lib/rdoc/require.rb#10 + # source://rdoc/lib/rdoc/code_object/require.rb#10 def name; end # Name of the required file # - # source://rdoc//lib/rdoc/require.rb#10 + # source://rdoc/lib/rdoc/code_object/require.rb#10 def name=(_arg0); end - # source://rdoc//lib/rdoc/require.rb#31 + # source://rdoc/lib/rdoc/code_object/require.rb#31 def to_s; end # The RDoc::TopLevel corresponding to this require, or +nil+ if not found. # - # source://rdoc//lib/rdoc/require.rb#38 + # source://rdoc/lib/rdoc/code_object/require.rb#38 def top_level; end end -# This is a WEBrick servlet that allows you to browse ri documentation. -# -# You can show documentation through either `ri --server` or, with RubyGems -# 2.0 or newer, `gem server`. For ri, the server runs on port 8214 by -# default. For RubyGems the server runs on port 8808 by default. -# -# You can use this servlet in your own project by mounting it on a WEBrick -# server: -# -# require 'webrick' -# -# server = WEBrick::HTTPServer.new Port: 8000 -# -# server.mount '/', RDoc::Servlet -# -# If you want to mount the servlet some other place than the root, provide the -# base path when mounting: -# -# server.mount '/rdoc', RDoc::Servlet, '/rdoc' -# -# source://rdoc//lib/rdoc/servlet.rb#34 -class RDoc::Servlet < ::WEBrick::HTTPServlet::AbstractServlet - # Creates a new WEBrick servlet. - # - # Use +mount_path+ when mounting the servlet somewhere other than /. - # - # Use +extra_doc_dirs+ for additional documentation directories. - # - # +server+ is provided automatically by WEBrick when mounting. +stores+ and - # +cache+ are provided automatically by the servlet. - # - # @return [Servlet] a new instance of Servlet - # - # source://rdoc//lib/rdoc/servlet.rb#69 - def initialize(server, stores, cache, mount_path = T.unsafe(nil), extra_doc_dirs = T.unsafe(nil)); end - - # Serves the asset at the path in +req+ for +generator_name+ via +res+. - # - # source://rdoc//lib/rdoc/servlet.rb#100 - def asset(generator_name, req, res); end - - # Maps an asset type to its path on the filesystem - # - # source://rdoc//lib/rdoc/servlet.rb#42 - def asset_dirs; end - - # GET request entry point. Fills in +res+ for the path, etc. in +req+. - # - # source://rdoc//lib/rdoc/servlet.rb#119 - def do_GET(req, res); end - - # Fills in +res+ with the class, module or page for +req+ from +store+. - # - # +path+ is relative to the mount_path and is used to determine the class, - # module or page name (/RDoc/Servlet.html becomes RDoc::Servlet). - # +generator+ is used to create the page. - # - # source://rdoc//lib/rdoc/servlet.rb#152 - def documentation_page(store, generator, path, req, res); end - - # Creates the JSON search index on +res+ for the given +store+. +generator+ - # must respond to \#json_index to build. +req+ is ignored. - # - # source://rdoc//lib/rdoc/servlet.rb#171 - def documentation_search(store, generator, req, res); end - - # Returns the RDoc::Store and path relative to +mount_path+ for - # documentation at +path+. - # - # source://rdoc//lib/rdoc/servlet.rb#185 - def documentation_source(path); end - - # Generates an error page for the +exception+ while handling +req+ on +res+. - # - # source://rdoc//lib/rdoc/servlet.rb#203 - def error(exception, req, res); end - - # Instantiates a Darkfish generator for +store+ - # - # source://rdoc//lib/rdoc/servlet.rb#246 - def generator_for(store); end - - # Handles the If-Modified-Since HTTP header on +req+ for +path+. If the - # file has not been modified a Not Modified response is returned. If the - # file has been modified a Last-Modified header is added to +res+. - # - # source://rdoc//lib/rdoc/servlet.rb#267 - def if_modified_since(req, res, path = T.unsafe(nil)); end - - # Returns an Array of installed documentation. - # - # Each entry contains the documentation name (gem name, 'Ruby - # Documentation', etc.), the path relative to the mount point, whether the - # documentation exists, the type of documentation (See RDoc::RI::Paths#each) - # and the filesystem to the RDoc::Store for the documentation. - # - # source://rdoc//lib/rdoc/servlet.rb#290 - def installed_docs; end - - # Returns a 404 page built by +generator+ for +req+ on +res+. - # - # source://rdoc//lib/rdoc/servlet.rb#318 - def not_found(generator, req, res, message = T.unsafe(nil)); end - - # An RDoc::Options instance used for rendering options - # - # source://rdoc//lib/rdoc/servlet.rb#47 - def options; end - - # Enumerates the ri paths. See RDoc::RI::Paths#each - # - # source://rdoc//lib/rdoc/servlet.rb#327 - def ri_paths(&block); end - - # Generates the root page on +res+. +req+ is ignored. - # - # source://rdoc//lib/rdoc/servlet.rb#334 - def root(req, res); end - - # Generates a search index for the root page on +res+. +req+ is ignored. - # - # source://rdoc//lib/rdoc/servlet.rb#345 - def root_search(req, res); end - - # Displays documentation for +req+ on +res+, whether that be HTML or some - # asset. - # - # source://rdoc//lib/rdoc/servlet.rb#395 - def show_documentation(req, res); end - - # Returns an RDoc::Store for the given +source_name+ ('ruby' or a gem name). - # - # source://rdoc//lib/rdoc/servlet.rb#419 - def store_for(source_name); end - - class << self - # Creates an instance of this servlet that shares cached data between - # requests. - # - # source://rdoc//lib/rdoc/servlet.rb#53 - def get_instance(server, *options); end - end -end - # A singleton class # -# source://rdoc//lib/rdoc/single_class.rb#5 +# source://rdoc/lib/rdoc/code_object/single_class.rb#5 class RDoc::SingleClass < ::RDoc::ClassModule # Adds the superclass to the included modules. # - # source://rdoc//lib/rdoc/single_class.rb#10 + # source://rdoc/lib/rdoc/code_object/single_class.rb#10 def ancestors; end - # source://rdoc//lib/rdoc/single_class.rb#14 + # source://rdoc/lib/rdoc/code_object/single_class.rb#14 def aref_prefix; end # The definition of this singleton class, class << MyClassName # - # source://rdoc//lib/rdoc/single_class.rb#21 + # source://rdoc/lib/rdoc/code_object/single_class.rb#21 def definition; end - # source://rdoc//lib/rdoc/single_class.rb#25 + # source://rdoc/lib/rdoc/code_object/single_class.rb#25 def pretty_print(q); end end # RDoc statistics collector which prints a summary and report of a project's # documentation totals. # -# source://rdoc//lib/rdoc/stats.rb#6 +# source://rdoc/lib/rdoc/stats.rb#6 class RDoc::Stats include ::RDoc::Text @@ -11244,58 +11117,58 @@ class RDoc::Stats # # @return [Stats] a new instance of Stats # - # source://rdoc//lib/rdoc/stats.rb#29 + # source://rdoc/lib/rdoc/stats.rb#29 def initialize(store, num_files, verbosity = T.unsafe(nil)); end # Records the parsing of an alias +as+. # - # source://rdoc//lib/rdoc/stats.rb#52 + # source://rdoc/lib/rdoc/stats.rb#52 def add_alias(as); end # Records the parsing of an attribute +attribute+ # - # source://rdoc//lib/rdoc/stats.rb#59 + # source://rdoc/lib/rdoc/stats.rb#59 def add_attribute(attribute); end # Records the parsing of a class +klass+ # - # source://rdoc//lib/rdoc/stats.rb#66 + # source://rdoc/lib/rdoc/stats.rb#66 def add_class(klass); end # Records the parsing of +constant+ # - # source://rdoc//lib/rdoc/stats.rb#73 + # source://rdoc/lib/rdoc/stats.rb#73 def add_constant(constant); end # Records the parsing of +file+ # - # source://rdoc//lib/rdoc/stats.rb#80 + # source://rdoc/lib/rdoc/stats.rb#80 def add_file(file); end # Records the parsing of +method+ # - # source://rdoc//lib/rdoc/stats.rb#88 + # source://rdoc/lib/rdoc/stats.rb#88 def add_method(method); end # Records the parsing of a module +mod+ # - # source://rdoc//lib/rdoc/stats.rb#95 + # source://rdoc/lib/rdoc/stats.rb#95 def add_module(mod); end # Call this to mark the beginning of parsing for display purposes # - # source://rdoc//lib/rdoc/stats.rb#102 + # source://rdoc/lib/rdoc/stats.rb#102 def begin_adding; end # Calculates documentation totals and percentages for classes, modules, # constants, attributes and methods. # - # source://rdoc//lib/rdoc/stats.rb#110 + # source://rdoc/lib/rdoc/stats.rb#110 def calculate; end # Output level for the coverage report # - # source://rdoc//lib/rdoc/stats.rb#13 + # source://rdoc/lib/rdoc/stats.rb#13 def coverage_level; end # Sets coverage report level. Accepted values are: @@ -11304,22 +11177,22 @@ class RDoc::Stats # 0:: Classes, modules, constants, attributes, methods # 1:: Level 0 + method parameters # - # source://rdoc//lib/rdoc/stats.rb#158 + # source://rdoc/lib/rdoc/stats.rb#158 def coverage_level=(level); end # Returns the length and number of undocumented items in +collection+. # - # source://rdoc//lib/rdoc/stats.rb#167 + # source://rdoc/lib/rdoc/stats.rb#167 def doc_stats(collection); end # Call this to mark the end of parsing for display purposes # - # source://rdoc//lib/rdoc/stats.rb#175 + # source://rdoc/lib/rdoc/stats.rb#175 def done_adding; end # Count of files parsed during parsing # - # source://rdoc//lib/rdoc/stats.rb#18 + # source://rdoc/lib/rdoc/stats.rb#18 def files_so_far; end # The documentation status of this project. +true+ when 100%, +false+ when @@ -11329,164 +11202,164 @@ class RDoc::Stats # # @return [Boolean] # - # source://rdoc//lib/rdoc/stats.rb#185 + # source://rdoc/lib/rdoc/stats.rb#185 def fully_documented?; end # A report that says you did a great job! # - # source://rdoc//lib/rdoc/stats.rb#192 + # source://rdoc/lib/rdoc/stats.rb#192 def great_job; end # Total number of files found # - # source://rdoc//lib/rdoc/stats.rb#23 + # source://rdoc/lib/rdoc/stats.rb#23 def num_files; end # Calculates the percentage of items documented. # - # source://rdoc//lib/rdoc/stats.rb#204 + # source://rdoc/lib/rdoc/stats.rb#204 def percent_doc; end # Returns a report on which items are not documented # - # source://rdoc//lib/rdoc/stats.rb#218 + # source://rdoc/lib/rdoc/stats.rb#218 def report; end # Returns a report on undocumented attributes in ClassModule +cm+ # - # source://rdoc//lib/rdoc/stats.rb#259 + # source://rdoc/lib/rdoc/stats.rb#259 def report_attributes(cm); end # Returns a report on undocumented items in ClassModule +cm+ # - # source://rdoc//lib/rdoc/stats.rb#277 + # source://rdoc/lib/rdoc/stats.rb#277 def report_class_module(cm); end # Returns a report on undocumented constants in ClassModule +cm+ # - # source://rdoc//lib/rdoc/stats.rb#329 + # source://rdoc/lib/rdoc/stats.rb#329 def report_constants(cm); end # Returns a report on undocumented methods in ClassModule +cm+ # - # source://rdoc//lib/rdoc/stats.rb#351 + # source://rdoc/lib/rdoc/stats.rb#351 def report_methods(cm); end # Returns a summary of the collected statistics. # - # source://rdoc//lib/rdoc/stats.rb#389 + # source://rdoc/lib/rdoc/stats.rb#389 def summary; end # Determines which parameters in +method+ were not documented. Returns a # total parameter count and an Array of undocumented methods. # - # source://rdoc//lib/rdoc/stats.rb#439 + # source://rdoc/lib/rdoc/stats.rb#439 def undoc_params(method); end end # Stats printer that prints just the files being documented with a progress # bar # -# source://rdoc//lib/rdoc/stats/normal.rb#13 +# source://rdoc/lib/rdoc/stats/normal.rb#13 class RDoc::Stats::Normal < ::RDoc::Stats::Quiet - # source://rdoc//lib/rdoc/stats/normal.rb#15 + # source://rdoc/lib/rdoc/stats/normal.rb#15 def begin_adding; end - # source://rdoc//lib/rdoc/stats/normal.rb#54 + # source://rdoc/lib/rdoc/stats/normal.rb#54 def done_adding; end # Prints a file with a progress bar # - # source://rdoc//lib/rdoc/stats/normal.rb#23 + # source://rdoc/lib/rdoc/stats/normal.rb#23 def print_file(files_so_far, filename); end end # Stats printer that prints nothing # -# source://rdoc//lib/rdoc/stats/quiet.rb#5 +# source://rdoc/lib/rdoc/stats/quiet.rb#5 class RDoc::Stats::Quiet # Creates a new Quiet that will print nothing # # @return [Quiet] a new instance of Quiet # - # source://rdoc//lib/rdoc/stats/quiet.rb#10 + # source://rdoc/lib/rdoc/stats/quiet.rb#10 def initialize(num_files); end # Prints a message at the beginning of parsing # - # source://rdoc//lib/rdoc/stats/quiet.rb#17 + # source://rdoc/lib/rdoc/stats/quiet.rb#17 def begin_adding(*_arg0); end # Prints when RDoc is done # - # source://rdoc//lib/rdoc/stats/quiet.rb#57 + # source://rdoc/lib/rdoc/stats/quiet.rb#57 def done_adding(*_arg0); end # Prints when an alias is added # - # source://rdoc//lib/rdoc/stats/quiet.rb#22 + # source://rdoc/lib/rdoc/stats/quiet.rb#22 def print_alias(*_arg0); end # Prints when an attribute is added # - # source://rdoc//lib/rdoc/stats/quiet.rb#27 + # source://rdoc/lib/rdoc/stats/quiet.rb#27 def print_attribute(*_arg0); end # Prints when a class is added # - # source://rdoc//lib/rdoc/stats/quiet.rb#32 + # source://rdoc/lib/rdoc/stats/quiet.rb#32 def print_class(*_arg0); end # Prints when a constant is added # - # source://rdoc//lib/rdoc/stats/quiet.rb#37 + # source://rdoc/lib/rdoc/stats/quiet.rb#37 def print_constant(*_arg0); end # Prints when a file is added # - # source://rdoc//lib/rdoc/stats/quiet.rb#42 + # source://rdoc/lib/rdoc/stats/quiet.rb#42 def print_file(*_arg0); end # Prints when a method is added # - # source://rdoc//lib/rdoc/stats/quiet.rb#47 + # source://rdoc/lib/rdoc/stats/quiet.rb#47 def print_method(*_arg0); end # Prints when a module is added # - # source://rdoc//lib/rdoc/stats/quiet.rb#52 + # source://rdoc/lib/rdoc/stats/quiet.rb#52 def print_module(*_arg0); end end # Stats printer that prints everything documented, including the documented # status # -# source://rdoc//lib/rdoc/stats/verbose.rb#6 +# source://rdoc/lib/rdoc/stats/verbose.rb#6 class RDoc::Stats::Verbose < ::RDoc::Stats::Normal # Returns a marker for RDoc::CodeObject +co+ being undocumented # - # source://rdoc//lib/rdoc/stats/verbose.rb#11 + # source://rdoc/lib/rdoc/stats/verbose.rb#11 def nodoc(co); end - # source://rdoc//lib/rdoc/stats/verbose.rb#15 + # source://rdoc/lib/rdoc/stats/verbose.rb#15 def print_alias(as); end - # source://rdoc//lib/rdoc/stats/verbose.rb#19 + # source://rdoc/lib/rdoc/stats/verbose.rb#19 def print_attribute(attribute); end - # source://rdoc//lib/rdoc/stats/verbose.rb#23 + # source://rdoc/lib/rdoc/stats/verbose.rb#23 def print_class(klass); end - # source://rdoc//lib/rdoc/stats/verbose.rb#27 + # source://rdoc/lib/rdoc/stats/verbose.rb#27 def print_constant(constant); end - # source://rdoc//lib/rdoc/stats/verbose.rb#31 + # source://rdoc/lib/rdoc/stats/verbose.rb#31 def print_file(files_so_far, file); end - # source://rdoc//lib/rdoc/stats/verbose.rb#36 + # source://rdoc/lib/rdoc/stats/verbose.rb#36 def print_method(method); end - # source://rdoc//lib/rdoc/stats/verbose.rb#40 + # source://rdoc/lib/rdoc/stats/verbose.rb#40 def print_module(mod); end end @@ -11510,118 +11383,118 @@ end # -- # TODO need to prune classes # -# source://rdoc//lib/rdoc/store.rb#25 +# source://rdoc/lib/rdoc/store.rb#25 class RDoc::Store # Creates a new Store of +type+ that will load or save to +path+ # # @return [Store] a new instance of Store # - # source://rdoc//lib/rdoc/store.rb#127 + # source://rdoc/lib/rdoc/store.rb#127 def initialize(path = T.unsafe(nil), type = T.unsafe(nil)); end # Adds +module+ as an enclosure (namespace) for the given +variable+ for C # files. # - # source://rdoc//lib/rdoc/store.rb#169 + # source://rdoc/lib/rdoc/store.rb#169 def add_c_enclosure(variable, namespace); end # Adds C variables from an RDoc::Parser::C # - # source://rdoc//lib/rdoc/store.rb#176 + # source://rdoc/lib/rdoc/store.rb#176 def add_c_variables(c_parser); end # Adds the file with +name+ as an RDoc::TopLevel to the store. Returns the # created RDoc::TopLevel. # - # source://rdoc//lib/rdoc/store.rb#188 + # source://rdoc/lib/rdoc/store.rb#188 def add_file(absolute_name, relative_name: T.unsafe(nil), parser: T.unsafe(nil)); end # Returns all classes discovered by RDoc # - # source://rdoc//lib/rdoc/store.rb#212 + # source://rdoc/lib/rdoc/store.rb#224 def all_classes; end # Returns all classes and modules discovered by RDoc # - # source://rdoc//lib/rdoc/store.rb#219 + # source://rdoc/lib/rdoc/store.rb#231 def all_classes_and_modules; end # All TopLevels known to RDoc # - # source://rdoc//lib/rdoc/store.rb#226 + # source://rdoc/lib/rdoc/store.rb#238 def all_files; end # Returns all modules discovered by RDoc # - # source://rdoc//lib/rdoc/store.rb#233 + # source://rdoc/lib/rdoc/store.rb#245 def all_modules; end # Ancestors cache accessor. Maps a klass name to an Array of its ancestors # in this store. If Foo in this store inherits from Object, Kernel won't be # listed (it will be included from ruby's ri store). # - # source://rdoc//lib/rdoc/store.rb#242 + # source://rdoc/lib/rdoc/store.rb#254 def ancestors; end # Attributes cache accessor. Maps a class to an Array of its attributes. # - # source://rdoc//lib/rdoc/store.rb#249 + # source://rdoc/lib/rdoc/store.rb#261 def attributes; end # Maps C variables to class or module names for each parsed C file. # - # source://rdoc//lib/rdoc/store.rb#80 + # source://rdoc/lib/rdoc/store.rb#80 def c_class_variables; end # Stores the name of the C variable a class belongs to. This helps wire up # classes defined from C across files. # - # source://rdoc//lib/rdoc/store.rb#73 + # source://rdoc/lib/rdoc/store.rb#73 def c_enclosure_classes; end - # source://rdoc//lib/rdoc/store.rb#75 + # source://rdoc/lib/rdoc/store.rb#75 def c_enclosure_names; end # Maps C variables to singleton class names for each parsed C file. # - # source://rdoc//lib/rdoc/store.rb#85 + # source://rdoc/lib/rdoc/store.rb#85 def c_singleton_class_variables; end # The contents of the Store # - # source://rdoc//lib/rdoc/store.rb#112 + # source://rdoc/lib/rdoc/store.rb#112 def cache; end # Path to the cache file # - # source://rdoc//lib/rdoc/store.rb#256 + # source://rdoc/lib/rdoc/store.rb#268 def cache_path; end # Path to the ri data for +klass_name+ # - # source://rdoc//lib/rdoc/store.rb#263 + # source://rdoc/lib/rdoc/store.rb#275 def class_file(klass_name); end # Class methods cache accessor. Maps a class to an Array of its class # methods (not full name). # - # source://rdoc//lib/rdoc/store.rb#272 + # source://rdoc/lib/rdoc/store.rb#284 def class_methods; end # Path where data for +klass_name+ will be stored (methods or class data) # - # source://rdoc//lib/rdoc/store.rb#279 + # source://rdoc/lib/rdoc/store.rb#291 def class_path(klass_name); end # Hash of all classes known to RDoc # - # source://rdoc//lib/rdoc/store.rb#286 + # source://rdoc/lib/rdoc/store.rb#298 def classes_hash; end # Removes empty items and ensures item in each collection are unique and # sorted # - # source://rdoc//lib/rdoc/store.rb#294 + # source://rdoc/lib/rdoc/store.rb#306 def clean_cache_collection(collection); end # Prepares the RDoc code object tree for use by a generator. @@ -11639,68 +11512,68 @@ class RDoc::Store # # See also RDoc::Context#remove_from_documentation? # - # source://rdoc//lib/rdoc/store.rb#322 + # source://rdoc/lib/rdoc/store.rb#334 def complete(min_visibility); end # If true this Store will not write any files # - # source://rdoc//lib/rdoc/store.rb#90 + # source://rdoc/lib/rdoc/store.rb#90 def dry_run; end # If true this Store will not write any files # - # source://rdoc//lib/rdoc/store.rb#90 + # source://rdoc/lib/rdoc/store.rb#90 def dry_run=(_arg0); end # The encoding of the contents in the Store # - # source://rdoc//lib/rdoc/store.rb#117 + # source://rdoc/lib/rdoc/store.rb#117 def encoding; end # The encoding of the contents in the Store # - # source://rdoc//lib/rdoc/store.rb#117 + # source://rdoc/lib/rdoc/store.rb#117 def encoding=(_arg0); end # Hash of all files known to RDoc # - # source://rdoc//lib/rdoc/store.rb#362 + # source://rdoc/lib/rdoc/store.rb#374 def files_hash; end # Finds the enclosure (namespace) for the given C +variable+. # - # source://rdoc//lib/rdoc/store.rb#369 + # source://rdoc/lib/rdoc/store.rb#381 def find_c_enclosure(variable); end # Finds the class with +name+ in all discovered classes # - # source://rdoc//lib/rdoc/store.rb#394 + # source://rdoc/lib/rdoc/store.rb#406 def find_class_named(name); end # Finds the class with +name+ starting in namespace +from+ # - # source://rdoc//lib/rdoc/store.rb#401 + # source://rdoc/lib/rdoc/store.rb#413 def find_class_named_from(name, from); end # Finds the class or module with +name+ # - # source://rdoc//lib/rdoc/store.rb#419 + # source://rdoc/lib/rdoc/store.rb#431 def find_class_or_module(name); end # Finds the file with +name+ in all discovered files # - # source://rdoc//lib/rdoc/store.rb#427 + # source://rdoc/lib/rdoc/store.rb#439 def find_file_named(name); end # Finds the module with +name+ in all discovered modules # - # source://rdoc//lib/rdoc/store.rb#434 + # source://rdoc/lib/rdoc/store.rb#446 def find_module_named(name); end # Returns the RDoc::TopLevel that is a text file and has the given # +file_name+ # - # source://rdoc//lib/rdoc/store.rb#442 + # source://rdoc/lib/rdoc/store.rb#454 def find_text_page(file_name); end # Finds unique classes/modules defined in +all_hash+, @@ -11709,7 +11582,7 @@ class RDoc::Store # -- # TODO aliases should be registered by Context#add_module_alias # - # source://rdoc//lib/rdoc/store.rb#455 + # source://rdoc/lib/rdoc/store.rb#467 def find_unique(all_hash); end # Fixes the erroneous BasicObject < Object in 1.9. @@ -11720,149 +11593,154 @@ class RDoc::Store # We fix BasicObject right away if we are running in a Ruby # version >= 1.9. # - # source://rdoc//lib/rdoc/store.rb#474 + # source://rdoc/lib/rdoc/store.rb#486 def fix_basic_object_inheritance; end # Friendly rendition of #path # - # source://rdoc//lib/rdoc/store.rb#483 + # source://rdoc/lib/rdoc/store.rb#495 def friendly_path; end - # source://rdoc//lib/rdoc/store.rb#495 + # source://rdoc/lib/rdoc/store.rb#507 def inspect; end # Instance methods cache accessor. Maps a class to an Array of its # instance methods (not full name). # - # source://rdoc//lib/rdoc/store.rb#503 + # source://rdoc/lib/rdoc/store.rb#515 def instance_methods; end # Loads all items from this store into memory. This recreates a # documentation tree for use by a generator # - # source://rdoc//lib/rdoc/store.rb#511 + # source://rdoc/lib/rdoc/store.rb#523 def load_all; end # Loads cache file for this store # - # source://rdoc//lib/rdoc/store.rb#559 + # source://rdoc/lib/rdoc/store.rb#571 def load_cache; end # Loads ri data for +klass_name+ and hooks it up to this store. # - # source://rdoc//lib/rdoc/store.rb#598 + # source://rdoc/lib/rdoc/store.rb#610 def load_class(klass_name); end # Loads ri data for +klass_name+ # - # source://rdoc//lib/rdoc/store.rb#616 + # source://rdoc/lib/rdoc/store.rb#628 def load_class_data(klass_name); end # Loads ri data for +method_name+ in +klass_name+ # - # source://rdoc//lib/rdoc/store.rb#629 + # source://rdoc/lib/rdoc/store.rb#641 def load_method(klass_name, method_name); end # Loads ri data for +page_name+ # - # source://rdoc//lib/rdoc/store.rb#645 + # source://rdoc/lib/rdoc/store.rb#657 def load_page(page_name); end # Gets the main page for this RDoc store. This page is used as the root of # the RDoc server. # - # source://rdoc//lib/rdoc/store.rb#661 + # source://rdoc/lib/rdoc/store.rb#673 def main; end # Sets the main page for this RDoc store. # - # source://rdoc//lib/rdoc/store.rb#668 + # source://rdoc/lib/rdoc/store.rb#680 def main=(page); end # Converts the variable => ClassModule map +variables+ from a C parser into # a variable => class name map. # - # source://rdoc//lib/rdoc/store.rb#676 + # source://rdoc/lib/rdoc/store.rb#688 def make_variable_map(variables); end # Path to the ri data for +method_name+ in +klass_name+ # - # source://rdoc//lib/rdoc/store.rb#689 + # source://rdoc/lib/rdoc/store.rb#701 def method_file(klass_name, method_name); end # Modules cache accessor. An Array of all the module (and class) names in # the store. # - # source://rdoc//lib/rdoc/store.rb#703 + # source://rdoc/lib/rdoc/store.rb#715 def module_names; end # Hash of all modules known to RDoc # - # source://rdoc//lib/rdoc/store.rb#710 + # source://rdoc/lib/rdoc/store.rb#722 def modules_hash; end # Returns the RDoc::TopLevel that is a text file and has the given +name+ # - # source://rdoc//lib/rdoc/store.rb#717 + # source://rdoc/lib/rdoc/store.rb#729 def page(name); end # Path to the ri data for +page_name+ # - # source://rdoc//lib/rdoc/store.rb#726 + # source://rdoc/lib/rdoc/store.rb#738 def page_file(page_name); end # Path this store reads or writes # - # source://rdoc//lib/rdoc/store.rb#95 + # source://rdoc/lib/rdoc/store.rb#95 def path; end # Path this store reads or writes # - # source://rdoc//lib/rdoc/store.rb#95 + # source://rdoc/lib/rdoc/store.rb#95 def path=(_arg0); end # The RDoc::RDoc driver for this parse tree. This allows classes consulting # the documentation tree to access user-set options, for example. # - # source://rdoc//lib/rdoc/store.rb#101 + # source://rdoc/lib/rdoc/store.rb#101 def rdoc; end # The RDoc::RDoc driver for this parse tree. This allows classes consulting # the documentation tree to access user-set options, for example. # - # source://rdoc//lib/rdoc/store.rb#101 + # source://rdoc/lib/rdoc/store.rb#101 def rdoc=(_arg0); end # Removes from +all_hash+ the contexts that are nodoc or have no content. # # See RDoc::Context#remove_from_documentation? # - # source://rdoc//lib/rdoc/store.rb#737 + # source://rdoc/lib/rdoc/store.rb#749 def remove_nodoc(all_hash); end + # Make sure any references to C variable names are resolved to the corresponding class. + # + # source://rdoc/lib/rdoc/store.rb#204 + def resolve_c_superclasses; end + # Saves all entries in the store # - # source://rdoc//lib/rdoc/store.rb#747 + # source://rdoc/lib/rdoc/store.rb#759 def save; end # Writes the cache file for this store # - # source://rdoc//lib/rdoc/store.rb#772 + # source://rdoc/lib/rdoc/store.rb#784 def save_cache; end # Writes the ri data for +klass+ (or module) # - # source://rdoc//lib/rdoc/store.rb#799 + # source://rdoc/lib/rdoc/store.rb#811 def save_class(klass); end # Writes the ri data for +method+ on +klass+ # - # source://rdoc//lib/rdoc/store.rb#873 + # source://rdoc/lib/rdoc/store.rb#885 def save_method(klass, method); end # Writes the ri data for +page+ # - # source://rdoc//lib/rdoc/store.rb#896 + # source://rdoc/lib/rdoc/store.rb#908 def save_page(page); end # Source of the contents of this store. @@ -11873,98 +11751,98 @@ class RDoc::Store # ri directory the store is "site". For other stores the source is the # #path. # - # source://rdoc//lib/rdoc/store.rb#922 + # source://rdoc/lib/rdoc/store.rb#934 def source; end # Gets the title for this RDoc store. This is used as the title in each # page on the RDoc server # - # source://rdoc//lib/rdoc/store.rb#936 + # source://rdoc/lib/rdoc/store.rb#948 def title; end # Sets the title page for this RDoc store. # - # source://rdoc//lib/rdoc/store.rb#943 + # source://rdoc/lib/rdoc/store.rb#955 def title=(title); end # Type of ri datastore this was loaded from. See RDoc::RI::Driver, # RDoc::RI::Paths. # - # source://rdoc//lib/rdoc/store.rb#107 + # source://rdoc/lib/rdoc/store.rb#107 def type; end # Type of ri datastore this was loaded from. See RDoc::RI::Driver, # RDoc::RI::Paths. # - # source://rdoc//lib/rdoc/store.rb#107 + # source://rdoc/lib/rdoc/store.rb#107 def type=(_arg0); end # Returns the unique classes discovered by RDoc. # # ::complete must have been called prior to using this method. # - # source://rdoc//lib/rdoc/store.rb#952 + # source://rdoc/lib/rdoc/store.rb#964 def unique_classes; end # Returns the unique classes and modules discovered by RDoc. # ::complete must have been called prior to using this method. # - # source://rdoc//lib/rdoc/store.rb#960 + # source://rdoc/lib/rdoc/store.rb#972 def unique_classes_and_modules; end # Returns the unique modules discovered by RDoc. # ::complete must have been called prior to using this method. # - # source://rdoc//lib/rdoc/store.rb#968 + # source://rdoc/lib/rdoc/store.rb#980 def unique_modules; end # The lazy constants alias will be discovered in passing # - # source://rdoc//lib/rdoc/store.rb#122 + # source://rdoc/lib/rdoc/store.rb#122 def unmatched_constant_alias; end # Sets the parser of +absolute_name+, unless it from a source code file. # - # source://rdoc//lib/rdoc/store.rb#203 + # source://rdoc/lib/rdoc/store.rb#215 def update_parser_of_file(absolute_name, parser); end private - # source://rdoc//lib/rdoc/store.rb#973 + # source://rdoc/lib/rdoc/store.rb#985 def marshal_load(file); end end -# source://rdoc//lib/rdoc/store.rb#977 +# source://rdoc/lib/rdoc/store.rb#989 RDoc::Store::MarshalFilter = T.let(T.unsafe(nil), Proc) # Raised when a stored file for a class, module, page or method is missing. # -# source://rdoc//lib/rdoc/store.rb#36 +# source://rdoc/lib/rdoc/store.rb#36 class RDoc::Store::MissingFileError < ::RDoc::Store::Error # Creates a new MissingFileError for the missing +file+ for the given # +name+ that should have been in the +store+. # # @return [MissingFileError] a new instance of MissingFileError # - # source://rdoc//lib/rdoc/store.rb#57 + # source://rdoc/lib/rdoc/store.rb#57 def initialize(store, file, name); end # The file the #name should be saved as # - # source://rdoc//lib/rdoc/store.rb#46 + # source://rdoc/lib/rdoc/store.rb#46 def file; end - # source://rdoc//lib/rdoc/store.rb#63 + # source://rdoc/lib/rdoc/store.rb#63 def message; end # The name of the object the #file would be loaded from # - # source://rdoc//lib/rdoc/store.rb#51 + # source://rdoc/lib/rdoc/store.rb#51 def name; end # The store the file should exist in # - # source://rdoc//lib/rdoc/store.rb#41 + # source://rdoc/lib/rdoc/store.rb#41 def store; end end @@ -12027,7 +11905,7 @@ end # This will create the tasks :rdoc, :rdoc:clean, # :rdoc:force, and :rdoc:coverage. # -# source://rdoc//lib/rdoc/task.rb#99 +# source://rdoc/lib/rdoc/task.rb#99 class RDoc::Task < ::Rake::TaskLib # Create an RDoc task with the given name. See the RDoc::Task class overview # for documentation. @@ -12036,266 +11914,266 @@ class RDoc::Task < ::Rake::TaskLib # @yield [_self] # @yieldparam _self [RDoc::Task] the object that the method was called on # - # source://rdoc//lib/rdoc/task.rb#158 + # source://rdoc/lib/rdoc/task.rb#157 def initialize(name = T.unsafe(nil)); end # The block passed to this method will be called just before running the # RDoc generator. It is allowed to modify RDoc::Task attributes inside the # block. # - # source://rdoc//lib/rdoc/task.rb#288 + # source://rdoc/lib/rdoc/task.rb#287 def before_running_rdoc(&block); end # Ensures that +names+ only includes names for the :rdoc, :clobber_rdoc and # :rerdoc. If other names are given an ArgumentError is raised. # - # source://rdoc//lib/rdoc/task.rb#174 + # source://rdoc/lib/rdoc/task.rb#173 def check_names(names); end # Task description for the clobber rdoc task or its renamed equivalent # - # source://rdoc//lib/rdoc/task.rb#188 + # source://rdoc/lib/rdoc/task.rb#187 def clobber_task_description; end # Task description for the coverage task or its renamed description # - # source://rdoc//lib/rdoc/task.rb#309 + # source://rdoc/lib/rdoc/task.rb#308 def coverage_task_description; end # Sets default task values # - # source://rdoc//lib/rdoc/task.rb#195 + # source://rdoc/lib/rdoc/task.rb#194 def defaults; end # Create the tasks defined by this task lib. # - # source://rdoc//lib/rdoc/task.rb#224 + # source://rdoc/lib/rdoc/task.rb#223 def define; end # Whether to run the rdoc process as an external shell (default is false) # - # source://rdoc//lib/rdoc/task.rb#152 + # source://rdoc/lib/rdoc/task.rb#151 def external; end # Whether to run the rdoc process as an external shell (default is false) # - # source://rdoc//lib/rdoc/task.rb#152 + # source://rdoc/lib/rdoc/task.rb#151 def external=(_arg0); end # Name of format generator (--format) used by rdoc. (defaults to # rdoc's default) # - # source://rdoc//lib/rdoc/task.rb#137 + # source://rdoc/lib/rdoc/task.rb#136 def generator; end # Name of format generator (--format) used by rdoc. (defaults to # rdoc's default) # - # source://rdoc//lib/rdoc/task.rb#137 + # source://rdoc/lib/rdoc/task.rb#136 def generator=(_arg0); end # All source is inline now. This method is deprecated # - # source://rdoc//lib/rdoc/task.rb#209 + # source://rdoc/lib/rdoc/task.rb#208 def inline_source; end # All source is inline now. This method is deprecated # - # source://rdoc//lib/rdoc/task.rb#217 + # source://rdoc/lib/rdoc/task.rb#216 def inline_source=(value); end # Name of file to be used as the main, top level file of the RDoc. (default # is none) # - # source://rdoc//lib/rdoc/task.rb#126 + # source://rdoc/lib/rdoc/task.rb#125 def main; end # Name of file to be used as the main, top level file of the RDoc. (default # is none) # - # source://rdoc//lib/rdoc/task.rb#126 + # source://rdoc/lib/rdoc/task.rb#125 def main=(_arg0); end - # Comment markup format. rdoc, rd and tomdoc are supported. (default is - # 'rdoc') + # The markup format; one of: +rdoc+ (the default), +markdown+, +rd+, +tomdoc+. + # See {Markup Formats}[rdoc-ref:RDoc::Markup@Markup+Formats]. # - # source://rdoc//lib/rdoc/task.rb#110 + # source://rdoc/lib/rdoc/task.rb#109 def markup; end - # Comment markup format. rdoc, rd and tomdoc are supported. (default is - # 'rdoc') + # The markup format; one of: +rdoc+ (the default), +markdown+, +rd+, +tomdoc+. + # See {Markup Formats}[rdoc-ref:RDoc::Markup@Markup+Formats]. # - # source://rdoc//lib/rdoc/task.rb#110 + # source://rdoc/lib/rdoc/task.rb#109 def markup=(_arg0); end # Name of the main, top level task. (default is :rdoc) # - # source://rdoc//lib/rdoc/task.rb#104 + # source://rdoc/lib/rdoc/task.rb#104 def name; end # Name of the main, top level task. (default is :rdoc) # - # source://rdoc//lib/rdoc/task.rb#104 + # source://rdoc/lib/rdoc/task.rb#104 def name=(_arg0); end # List of options that will be supplied to RDoc # - # source://rdoc//lib/rdoc/task.rb#272 + # source://rdoc/lib/rdoc/task.rb#271 def option_list; end # Additional list of options to be passed rdoc. (default is []) # - # source://rdoc//lib/rdoc/task.rb#147 + # source://rdoc/lib/rdoc/task.rb#146 def options; end # Additional list of options to be passed rdoc. (default is []) # - # source://rdoc//lib/rdoc/task.rb#147 + # source://rdoc/lib/rdoc/task.rb#146 def options=(_arg0); end # Name of directory to receive the html output files. (default is "html") # - # source://rdoc//lib/rdoc/task.rb#115 + # source://rdoc/lib/rdoc/task.rb#114 def rdoc_dir; end # Name of directory to receive the html output files. (default is "html") # - # source://rdoc//lib/rdoc/task.rb#115 + # source://rdoc/lib/rdoc/task.rb#114 def rdoc_dir=(_arg0); end # List of files to be included in the rdoc generation. (default is []) # - # source://rdoc//lib/rdoc/task.rb#142 + # source://rdoc/lib/rdoc/task.rb#141 def rdoc_files; end # List of files to be included in the rdoc generation. (default is []) # - # source://rdoc//lib/rdoc/task.rb#142 + # source://rdoc/lib/rdoc/task.rb#141 def rdoc_files=(_arg0); end # Task description for the rdoc task or its renamed equivalent # - # source://rdoc//lib/rdoc/task.rb#295 + # source://rdoc/lib/rdoc/task.rb#294 def rdoc_task_description; end # Task description for the rerdoc task or its renamed description # - # source://rdoc//lib/rdoc/task.rb#302 + # source://rdoc/lib/rdoc/task.rb#301 def rerdoc_task_description; end # Name of template to be used by rdoc. (defaults to rdoc's default) # - # source://rdoc//lib/rdoc/task.rb#131 + # source://rdoc/lib/rdoc/task.rb#130 def template; end # Name of template to be used by rdoc. (defaults to rdoc's default) # - # source://rdoc//lib/rdoc/task.rb#131 + # source://rdoc/lib/rdoc/task.rb#130 def template=(_arg0); end # Title of RDoc documentation. (defaults to rdoc's default) # - # source://rdoc//lib/rdoc/task.rb#120 + # source://rdoc/lib/rdoc/task.rb#119 def title; end # Title of RDoc documentation. (defaults to rdoc's default) # - # source://rdoc//lib/rdoc/task.rb#120 + # source://rdoc/lib/rdoc/task.rb#119 def title=(_arg0); end private - # source://rdoc//lib/rdoc/task.rb#326 + # source://rdoc/lib/rdoc/task.rb#325 def clobber_task_name; end - # source://rdoc//lib/rdoc/task.rb#340 + # source://rdoc/lib/rdoc/task.rb#339 def coverage_task_name; end - # source://rdoc//lib/rdoc/task.rb#315 + # source://rdoc/lib/rdoc/task.rb#314 def rdoc_target; end - # source://rdoc//lib/rdoc/task.rb#319 + # source://rdoc/lib/rdoc/task.rb#318 def rdoc_task_name; end - # source://rdoc//lib/rdoc/task.rb#333 + # source://rdoc/lib/rdoc/task.rb#332 def rerdoc_task_name; end end # Methods for manipulating comment text # -# source://rdoc//lib/rdoc/text.rb#11 +# source://rdoc/lib/rdoc/text.rb#11 module RDoc::Text # Expands tab characters in +text+ to eight spaces # - # source://rdoc//lib/rdoc/text.rb#63 + # source://rdoc/lib/rdoc/text.rb#63 def expand_tabs(text); end # Flush +text+ left based on the shortest line # - # source://rdoc//lib/rdoc/text.rb#82 + # source://rdoc/lib/rdoc/text.rb#82 def flush_left(text); end # The language for this text. This affects stripping comments # markers. # - # source://rdoc//lib/rdoc/text.rb#17 + # source://rdoc/lib/rdoc/text.rb#17 def language; end # The language for this text. This affects stripping comments # markers. # - # source://rdoc//lib/rdoc/text.rb#17 + # source://rdoc/lib/rdoc/text.rb#17 def language=(_arg0); end # Convert a string in markup format into HTML. # # Requires the including class to implement #formatter # - # source://rdoc//lib/rdoc/text.rb#101 + # source://rdoc/lib/rdoc/text.rb#101 def markup(text); end # Strips hashes, expands tabs then flushes +text+ to the left # - # source://rdoc//lib/rdoc/text.rb#117 + # source://rdoc/lib/rdoc/text.rb#117 def normalize_comment(text); end # Normalizes +text+ then builds a RDoc::Markup::Document from it # - # source://rdoc//lib/rdoc/text.rb#135 + # source://rdoc/lib/rdoc/text.rb#135 def parse(text, format = T.unsafe(nil)); end # The first +limit+ characters of +text+ as HTML # - # source://rdoc//lib/rdoc/text.rb#149 + # source://rdoc/lib/rdoc/text.rb#149 def snippet(text, limit = T.unsafe(nil)); end # Strips leading # characters from +text+ # - # source://rdoc//lib/rdoc/text.rb#158 + # source://rdoc/lib/rdoc/text.rb#158 def strip_hashes(text); end # Strips leading and trailing \n characters from +text+ # - # source://rdoc//lib/rdoc/text.rb#170 + # source://rdoc/lib/rdoc/text.rb#170 def strip_newlines(text); end # Strips /* */ style comments # - # source://rdoc//lib/rdoc/text.rb#177 + # source://rdoc/lib/rdoc/text.rb#177 def strip_stars(text); end - # source://rdoc//lib/rdoc/text.rb#200 + # source://rdoc/lib/rdoc/text.rb#200 def to_html(text); end # Wraps +txt+ to +line_len+ # - # source://rdoc//lib/rdoc/text.rb#287 + # source://rdoc/lib/rdoc/text.rb#287 def wrap(txt, line_len = T.unsafe(nil)); end class << self # Transcodes +character+ to +encoding+ with a +fallback+ character. # - # source://rdoc//lib/rdoc/text.rb#55 + # source://rdoc/lib/rdoc/text.rb#55 def encode_fallback(character, encoding, fallback); end end end @@ -12303,7 +12181,7 @@ end # Character class to be separated by a space when concatenating # lines. # -# source://rdoc//lib/rdoc/text.rb#320 +# source://rdoc/lib/rdoc/text.rb#320 RDoc::Text::SPACE_SEPARATED_LETTER_CLASS = T.let(T.unsafe(nil), Regexp) # A TokenStream is a list of tokens, gathered during the parse of some entity @@ -12312,41 +12190,41 @@ RDoc::Text::SPACE_SEPARATED_LETTER_CLASS = T.let(T.unsafe(nil), Regexp) # outside, you use such an object by calling the start_collecting_tokens # method, followed by calls to add_token and pop_token. # -# source://rdoc//lib/rdoc/token_stream.rb#9 +# source://rdoc/lib/rdoc/token_stream.rb#9 module RDoc::TokenStream # Adds one +token+ to the collected tokens # - # source://rdoc//lib/rdoc/token_stream.rb#84 + # source://rdoc/lib/rdoc/token_stream.rb#84 def add_token(token); end # Adds +tokens+ to the collected tokens # - # source://rdoc//lib/rdoc/token_stream.rb#77 + # source://rdoc/lib/rdoc/token_stream.rb#77 def add_tokens(tokens); end # Starts collecting tokens # - # source://rdoc//lib/rdoc/token_stream.rb#91 + # source://rdoc/lib/rdoc/token_stream.rb#91 def collect_tokens; end # Remove the last token from the collected tokens # - # source://rdoc//lib/rdoc/token_stream.rb#100 + # source://rdoc/lib/rdoc/token_stream.rb#100 def pop_token; end # Starts collecting tokens # - # source://rdoc//lib/rdoc/token_stream.rb#91 + # source://rdoc/lib/rdoc/token_stream.rb#91 def start_collecting_tokens; end # Current token stream # - # source://rdoc//lib/rdoc/token_stream.rb#107 + # source://rdoc/lib/rdoc/token_stream.rb#107 def token_stream; end # Returns a string representation of the token stream # - # source://rdoc//lib/rdoc/token_stream.rb#114 + # source://rdoc/lib/rdoc/token_stream.rb#114 def tokens_to_s; end class << self @@ -12354,20 +12232,14 @@ module RDoc::TokenStream # elements. Some tokens types are wrapped in spans # with the given class names. Other token types are not wrapped in spans. # - # source://rdoc//lib/rdoc/token_stream.rb#16 + # source://rdoc/lib/rdoc/token_stream.rb#16 def to_html(token_stream); end end end # A parser for TomDoc based on TomDoc 1.0.0-rc1 (02adef9b5a) # -# The TomDoc specification can be found at: -# -# http://tomdoc.org -# -# The latest version of the TomDoc specification can be found at: -# -# https://github.com/mojombo/tomdoc/blob/master/tomdoc.md +# The TomDoc specification can be found at http://tomdoc.org. # # To choose TomDoc as your only default format see RDoc::Options@Saved+Options # for instructions on setting up a .rdoc_options file to store @@ -12397,13 +12269,13 @@ end # This class is documented in TomDoc format. Since this is a subclass of the # RDoc markup parser there isn't much to see here, unfortunately. # -# source://rdoc//lib/rdoc/tom_doc.rb#42 +# source://rdoc/lib/rdoc/tom_doc.rb#36 class RDoc::TomDoc < ::RDoc::Markup::Parser # Public: Creates a new TomDoc parser. See also RDoc::Markup::parse # # @return [TomDoc] a new instance of TomDoc # - # source://rdoc//lib/rdoc/tom_doc.rb#130 + # source://rdoc/lib/rdoc/tom_doc.rb#124 def initialize; end # Internal: Builds a heading from the token stream @@ -12412,7 +12284,7 @@ class RDoc::TomDoc < ::RDoc::Markup::Parser # # Returns an RDoc::Markup::Heading # - # source://rdoc//lib/rdoc/tom_doc.rb#143 + # source://rdoc/lib/rdoc/tom_doc.rb#137 def build_heading(level); end # Internal: Builds a paragraph from the token stream @@ -12421,7 +12293,7 @@ class RDoc::TomDoc < ::RDoc::Markup::Parser # # Returns an RDoc::Markup::Paragraph. # - # source://rdoc//lib/rdoc/tom_doc.rb#173 + # source://rdoc/lib/rdoc/tom_doc.rb#167 def build_paragraph(margin); end # Internal: Builds a verbatim from the token stream. A verbatim in the @@ -12432,12 +12304,12 @@ class RDoc::TomDoc < ::RDoc::Markup::Parser # # Returns an RDoc::Markup::Verbatim # - # source://rdoc//lib/rdoc/tom_doc.rb#159 + # source://rdoc/lib/rdoc/tom_doc.rb#153 def build_verbatim(margin); end # Detects a section change to "Returns" and adds a heading # - # source://rdoc//lib/rdoc/tom_doc.rb#213 + # source://rdoc/lib/rdoc/tom_doc.rb#207 def parse_text(parent, indent); end # Internal: Turns text into an Array of tokens @@ -12446,12 +12318,12 @@ class RDoc::TomDoc < ::RDoc::Markup::Parser # # Returns self. # - # source://rdoc//lib/rdoc/tom_doc.rb#231 + # source://rdoc/lib/rdoc/tom_doc.rb#225 def tokenize(text); end # Internal: Token accessor # - # source://rdoc//lib/rdoc/tom_doc.rb#46 + # source://rdoc/lib/rdoc/tom_doc.rb#40 def tokens; end class << self @@ -12460,7 +12332,7 @@ class RDoc::TomDoc < ::RDoc::Markup::Parser # # Returns nothing. # - # source://rdoc//lib/rdoc/tom_doc.rb#53 + # source://rdoc/lib/rdoc/tom_doc.rb#47 def add_post_processor; end # Public: Parses TomDoc from text @@ -12478,7 +12350,7 @@ class RDoc::TomDoc < ::RDoc::Markup::Parser # # Returns an RDoc::Markup::Document representing the TomDoc format. # - # source://rdoc//lib/rdoc/tom_doc.rb#84 + # source://rdoc/lib/rdoc/tom_doc.rb#78 def parse(text); end # Internal: Extracts the Signature section's method signature @@ -12488,14 +12360,14 @@ class RDoc::TomDoc < ::RDoc::Markup::Parser # # Returns a String containing the signature and nil if not # - # source://rdoc//lib/rdoc/tom_doc.rb#100 + # source://rdoc/lib/rdoc/tom_doc.rb#94 def signature(comment); end end end # A TopLevel context is a representation of the contents of a single file # -# source://rdoc//lib/rdoc/top_level.rb#5 +# source://rdoc/lib/rdoc/code_object/top_level.rb#5 class RDoc::TopLevel < ::RDoc::Context # Creates a new TopLevel for the file at +absolute_name+. If documentation # is being generated outside the source dir +relative_name+ is relative to @@ -12503,72 +12375,72 @@ class RDoc::TopLevel < ::RDoc::Context # # @return [TopLevel] a new instance of TopLevel # - # source://rdoc//lib/rdoc/top_level.rb#43 + # source://rdoc/lib/rdoc/code_object/top_level.rb#43 def initialize(absolute_name, relative_name = T.unsafe(nil)); end # An RDoc::TopLevel is equal to another with the same relative_name # - # source://rdoc//lib/rdoc/top_level.rb#67 + # source://rdoc/lib/rdoc/code_object/top_level.rb#67 def ==(other); end # Absolute name of this file # - # source://rdoc//lib/rdoc/top_level.rb#22 + # source://rdoc/lib/rdoc/code_object/top_level.rb#22 def absolute_name; end # Absolute name of this file # - # source://rdoc//lib/rdoc/top_level.rb#22 + # source://rdoc/lib/rdoc/code_object/top_level.rb#22 def absolute_name=(_arg0); end # Adds +an_alias+ to +Object+ instead of +self+. # - # source://rdoc//lib/rdoc/top_level.rb#76 + # source://rdoc/lib/rdoc/code_object/top_level.rb#76 def add_alias(an_alias); end # Adds +constant+ to +Object+ instead of +self+. # - # source://rdoc//lib/rdoc/top_level.rb#85 + # source://rdoc/lib/rdoc/code_object/top_level.rb#85 def add_constant(constant); end # Adds +include+ to +Object+ instead of +self+. # - # source://rdoc//lib/rdoc/top_level.rb#94 + # source://rdoc/lib/rdoc/code_object/top_level.rb#94 def add_include(include); end # Adds +method+ to +Object+ instead of +self+. # - # source://rdoc//lib/rdoc/top_level.rb#103 + # source://rdoc/lib/rdoc/code_object/top_level.rb#103 def add_method(method); end # Adds class or module +mod+. Used in the building phase # by the Ruby parser. # - # source://rdoc//lib/rdoc/top_level.rb#113 + # source://rdoc/lib/rdoc/code_object/top_level.rb#113 def add_to_classes_or_modules(mod); end # Base name of this file # - # source://rdoc//lib/rdoc/top_level.rb#120 + # source://rdoc/lib/rdoc/code_object/top_level.rb#120 def base_name; end # All the classes or modules that were declared in # this file. These are assigned to either +#classes_hash+ # or +#modules_hash+ once we know what they really are. # - # source://rdoc//lib/rdoc/top_level.rb#29 + # source://rdoc/lib/rdoc/code_object/top_level.rb#29 def classes_or_modules; end # Returns a URL for this source file on some web repository. Use the -W # command line option to set. # - # source://rdoc//lib/rdoc/generator/markup.rb#149 + # source://rdoc/lib/rdoc/generator/markup.rb#149 def cvs_url; end - # source://rdoc//lib/rdoc/top_level.rb#31 + # source://rdoc/lib/rdoc/code_object/top_level.rb#31 def diagram; end - # source://rdoc//lib/rdoc/top_level.rb#31 + # source://rdoc/lib/rdoc/code_object/top_level.rb#31 def diagram=(_arg0); end # Only a TopLevel that contains text file) will be displayed. See also @@ -12576,22 +12448,22 @@ class RDoc::TopLevel < ::RDoc::Context # # @return [Boolean] # - # source://rdoc//lib/rdoc/top_level.rb#130 + # source://rdoc/lib/rdoc/code_object/top_level.rb#130 def display?; end # An RDoc::TopLevel is equal to another with the same relative_name # - # source://rdoc//lib/rdoc/top_level.rb#67 + # source://rdoc/lib/rdoc/code_object/top_level.rb#67 def eql?(other); end # This TopLevel's File::Stat struct # - # source://rdoc//lib/rdoc/top_level.rb#12 + # source://rdoc/lib/rdoc/code_object/top_level.rb#12 def file_stat; end # This TopLevel's File::Stat struct # - # source://rdoc//lib/rdoc/top_level.rb#12 + # source://rdoc/lib/rdoc/code_object/top_level.rb#12 def file_stat=(_arg0); end # See RDoc::TopLevel::find_class_or_module @@ -12599,117 +12471,117 @@ class RDoc::TopLevel < ::RDoc::Context # TODO Why do we search through all classes/modules found, not just the # ones of this instance? # - # source://rdoc//lib/rdoc/top_level.rb#140 + # source://rdoc/lib/rdoc/code_object/top_level.rb#140 def find_class_or_module(name); end # Finds a class or module named +symbol+ # - # source://rdoc//lib/rdoc/top_level.rb#147 + # source://rdoc/lib/rdoc/code_object/top_level.rb#147 def find_local_symbol(symbol); end # Finds a module or class with +name+ # - # source://rdoc//lib/rdoc/top_level.rb#154 + # source://rdoc/lib/rdoc/code_object/top_level.rb#154 def find_module_named(name); end # Returns the relative name of this file # - # source://rdoc//lib/rdoc/top_level.rb#161 + # source://rdoc/lib/rdoc/code_object/top_level.rb#161 def full_name; end # An RDoc::TopLevel has the same hash as another with the same # relative_name # - # source://rdoc//lib/rdoc/top_level.rb#169 + # source://rdoc/lib/rdoc/code_object/top_level.rb#169 def hash; end # URL for this with a +prefix+ # - # source://rdoc//lib/rdoc/top_level.rb#176 + # source://rdoc/lib/rdoc/code_object/top_level.rb#176 def http_url(prefix); end - # source://rdoc//lib/rdoc/top_level.rb#182 + # source://rdoc/lib/rdoc/code_object/top_level.rb#182 def inspect; end # Time this file was last modified, if known # - # source://rdoc//lib/rdoc/top_level.rb#194 + # source://rdoc/lib/rdoc/code_object/top_level.rb#194 def last_modified; end # Dumps this TopLevel for use by ri. See also #marshal_load # - # source://rdoc//lib/rdoc/top_level.rb#201 + # source://rdoc/lib/rdoc/code_object/top_level.rb#201 def marshal_dump; end # Loads this TopLevel from +array+. # - # source://rdoc//lib/rdoc/top_level.rb#213 + # source://rdoc/lib/rdoc/code_object/top_level.rb#213 def marshal_load(array); end # Base name of this file # - # source://rdoc//lib/rdoc/top_level.rb#120 + # source://rdoc/lib/rdoc/code_object/top_level.rb#120 def name; end # Returns the NormalClass "Object", creating it if not found. # # Records +self+ as a location in "Object". # - # source://rdoc//lib/rdoc/top_level.rb#227 + # source://rdoc/lib/rdoc/code_object/top_level.rb#227 def object_class; end # Base name of this file without the extension # - # source://rdoc//lib/rdoc/top_level.rb#238 + # source://rdoc/lib/rdoc/code_object/top_level.rb#238 def page_name; end # The parser class that processed this file # - # source://rdoc//lib/rdoc/top_level.rb#36 + # source://rdoc/lib/rdoc/code_object/top_level.rb#36 def parser; end # Sets the parser for this toplevel context, also the store. # - # source://rdoc//lib/rdoc/top_level.rb#58 + # source://rdoc/lib/rdoc/code_object/top_level.rb#58 def parser=(val); end # Path to this file for use with HTML generator output. # - # source://rdoc//lib/rdoc/top_level.rb#248 + # source://rdoc/lib/rdoc/code_object/top_level.rb#248 def path; end - # source://rdoc//lib/rdoc/top_level.rb#252 + # source://rdoc/lib/rdoc/code_object/top_level.rb#252 def pretty_print(q); end # Relative name of this file # - # source://rdoc//lib/rdoc/top_level.rb#17 + # source://rdoc/lib/rdoc/code_object/top_level.rb#17 def relative_name; end # Relative name of this file # - # source://rdoc//lib/rdoc/top_level.rb#17 + # source://rdoc/lib/rdoc/code_object/top_level.rb#17 def relative_name=(_arg0); end # Search record used by RDoc::Generator::JsonIndex # - # source://rdoc//lib/rdoc/top_level.rb#266 + # source://rdoc/lib/rdoc/code_object/top_level.rb#266 def search_record; end # Is this TopLevel from a text file instead of a source code file? # # @return [Boolean] # - # source://rdoc//lib/rdoc/top_level.rb#283 + # source://rdoc/lib/rdoc/code_object/top_level.rb#283 def text?; end - # source://rdoc//lib/rdoc/top_level.rb#287 + # source://rdoc/lib/rdoc/code_object/top_level.rb#287 def to_s; end end # :stopdoc: # -# source://rdoc//lib/rdoc/task.rb#347 +# source://rdoc/lib/rdoc/task.rb#346 module Rake extend ::FileUtils::StreamUtils_ extend ::FileUtils @@ -12717,5 +12589,5 @@ end # For backwards compatibility # -# source://rdoc//lib/rdoc/task.rb#352 +# source://rdoc/lib/rdoc/task.rb#351 Rake::RDocTask = RDoc::Task diff --git a/sorbet/rbi/gems/regexp_parser@2.9.2.rbi b/sorbet/rbi/gems/regexp_parser@2.9.3.rbi similarity index 51% rename from sorbet/rbi/gems/regexp_parser@2.9.2.rbi rename to sorbet/rbi/gems/regexp_parser@2.9.3.rbi index 584c4553e..075a1c42f 100644 --- a/sorbet/rbi/gems/regexp_parser@2.9.2.rbi +++ b/sorbet/rbi/gems/regexp_parser@2.9.3.rbi @@ -5,452 +5,452 @@ # Please instead update this file by running `bin/tapioca gem regexp_parser`. -# source://regexp_parser//lib/regexp_parser/expression/shared.rb#1 +# source://regexp_parser/lib/regexp_parser/expression/shared.rb#1 module Regexp::Expression; end -# source://regexp_parser//lib/regexp_parser/expression/classes/alternation.rb#5 +# source://regexp_parser/lib/regexp_parser/expression/classes/alternation.rb#5 class Regexp::Expression::Alternation < ::Regexp::Expression::SequenceOperation - # source://regexp_parser//lib/regexp_parser/expression/subexpression.rb#5 + # source://regexp_parser/lib/regexp_parser/expression/subexpression.rb#5 def alternatives; end - # source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#9 + # source://regexp_parser/lib/regexp_parser/expression/methods/human_name.rb#9 def human_name; end - # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#131 + # source://regexp_parser/lib/regexp_parser/expression/methods/match_length.rb#131 def match_length; end end -# source://regexp_parser//lib/regexp_parser/expression/classes/alternation.rb#6 +# source://regexp_parser/lib/regexp_parser/expression/classes/alternation.rb#6 Regexp::Expression::Alternation::OPERAND = Regexp::Expression::Alternative # A sequence of expressions, used by Alternation as one of its alternatives. # -# source://regexp_parser//lib/regexp_parser/expression/classes/alternation.rb#3 +# source://regexp_parser/lib/regexp_parser/expression/classes/alternation.rb#3 class Regexp::Expression::Alternative < ::Regexp::Expression::Sequence - # source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#10 + # source://regexp_parser/lib/regexp_parser/expression/methods/human_name.rb#10 def human_name; end end -# source://regexp_parser//lib/regexp_parser/expression/classes/anchor.rb#2 +# source://regexp_parser/lib/regexp_parser/expression/classes/anchor.rb#2 module Regexp::Expression::Anchor; end -# source://regexp_parser//lib/regexp_parser/expression/classes/anchor.rb#18 +# source://regexp_parser/lib/regexp_parser/expression/classes/anchor.rb#18 Regexp::Expression::Anchor::BOL = Regexp::Expression::Anchor::BeginningOfLine -# source://regexp_parser//lib/regexp_parser/expression/classes/anchor.rb#20 +# source://regexp_parser/lib/regexp_parser/expression/classes/anchor.rb#20 Regexp::Expression::Anchor::BOS = Regexp::Expression::Anchor::BeginningOfString -# source://regexp_parser//lib/regexp_parser/expression/classes/anchor.rb#3 +# source://regexp_parser/lib/regexp_parser/expression/classes/anchor.rb#3 class Regexp::Expression::Anchor::Base < ::Regexp::Expression::Base - # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#148 + # source://regexp_parser/lib/regexp_parser/expression/methods/match_length.rb#148 def match_length; end end -# source://regexp_parser//lib/regexp_parser/expression/classes/anchor.rb#5 +# source://regexp_parser/lib/regexp_parser/expression/classes/anchor.rb#5 class Regexp::Expression::Anchor::BeginningOfLine < ::Regexp::Expression::Anchor::Base - # source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#11 + # source://regexp_parser/lib/regexp_parser/expression/methods/human_name.rb#11 def human_name; end end -# source://regexp_parser//lib/regexp_parser/expression/classes/anchor.rb#8 +# source://regexp_parser/lib/regexp_parser/expression/classes/anchor.rb#8 class Regexp::Expression::Anchor::BeginningOfString < ::Regexp::Expression::Anchor::Base - # source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#12 + # source://regexp_parser/lib/regexp_parser/expression/methods/human_name.rb#12 def human_name; end end -# source://regexp_parser//lib/regexp_parser/expression/classes/anchor.rb#19 +# source://regexp_parser/lib/regexp_parser/expression/classes/anchor.rb#19 Regexp::Expression::Anchor::EOL = Regexp::Expression::Anchor::EndOfLine -# source://regexp_parser//lib/regexp_parser/expression/classes/anchor.rb#21 +# source://regexp_parser/lib/regexp_parser/expression/classes/anchor.rb#21 Regexp::Expression::Anchor::EOS = Regexp::Expression::Anchor::EndOfString -# source://regexp_parser//lib/regexp_parser/expression/classes/anchor.rb#22 +# source://regexp_parser/lib/regexp_parser/expression/classes/anchor.rb#22 Regexp::Expression::Anchor::EOSobEOL = Regexp::Expression::Anchor::EndOfStringOrBeforeEndOfLine -# source://regexp_parser//lib/regexp_parser/expression/classes/anchor.rb#6 +# source://regexp_parser/lib/regexp_parser/expression/classes/anchor.rb#6 class Regexp::Expression::Anchor::EndOfLine < ::Regexp::Expression::Anchor::Base - # source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#13 + # source://regexp_parser/lib/regexp_parser/expression/methods/human_name.rb#13 def human_name; end end -# source://regexp_parser//lib/regexp_parser/expression/classes/anchor.rb#9 +# source://regexp_parser/lib/regexp_parser/expression/classes/anchor.rb#9 class Regexp::Expression::Anchor::EndOfString < ::Regexp::Expression::Anchor::Base - # source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#14 + # source://regexp_parser/lib/regexp_parser/expression/methods/human_name.rb#14 def human_name; end end -# source://regexp_parser//lib/regexp_parser/expression/classes/anchor.rb#11 +# source://regexp_parser/lib/regexp_parser/expression/classes/anchor.rb#11 class Regexp::Expression::Anchor::EndOfStringOrBeforeEndOfLine < ::Regexp::Expression::Anchor::Base - # source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#15 + # source://regexp_parser/lib/regexp_parser/expression/methods/human_name.rb#15 def human_name; end end -# source://regexp_parser//lib/regexp_parser/expression/classes/anchor.rb#16 +# source://regexp_parser/lib/regexp_parser/expression/classes/anchor.rb#16 class Regexp::Expression::Anchor::MatchStart < ::Regexp::Expression::Anchor::Base - # source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#16 + # source://regexp_parser/lib/regexp_parser/expression/methods/human_name.rb#16 def human_name; end end -# source://regexp_parser//lib/regexp_parser/expression/classes/anchor.rb#14 +# source://regexp_parser/lib/regexp_parser/expression/classes/anchor.rb#14 class Regexp::Expression::Anchor::NonWordBoundary < ::Regexp::Expression::Anchor::Base - # source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#17 + # source://regexp_parser/lib/regexp_parser/expression/methods/human_name.rb#17 def human_name; end - # source://regexp_parser//lib/regexp_parser/expression/methods/negative.rb#13 + # source://regexp_parser/lib/regexp_parser/expression/methods/negative.rb#13 def negative?; end end -# source://regexp_parser//lib/regexp_parser/expression/classes/anchor.rb#13 +# source://regexp_parser/lib/regexp_parser/expression/classes/anchor.rb#13 class Regexp::Expression::Anchor::WordBoundary < ::Regexp::Expression::Anchor::Base - # source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#18 + # source://regexp_parser/lib/regexp_parser/expression/methods/human_name.rb#18 def human_name; end end -# source://regexp_parser//lib/regexp_parser/expression/classes/group.rb#64 +# source://regexp_parser/lib/regexp_parser/expression/classes/group.rb#64 module Regexp::Expression::Assertion; end -# source://regexp_parser//lib/regexp_parser/expression/classes/group.rb#65 +# source://regexp_parser/lib/regexp_parser/expression/classes/group.rb#65 class Regexp::Expression::Assertion::Base < ::Regexp::Expression::Group::Base - # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#148 + # source://regexp_parser/lib/regexp_parser/expression/methods/match_length.rb#148 def match_length; end end -# source://regexp_parser//lib/regexp_parser/expression/classes/group.rb#67 +# source://regexp_parser/lib/regexp_parser/expression/classes/group.rb#67 class Regexp::Expression::Assertion::Lookahead < ::Regexp::Expression::Assertion::Base - # source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#19 + # source://regexp_parser/lib/regexp_parser/expression/methods/human_name.rb#19 def human_name; end end -# source://regexp_parser//lib/regexp_parser/expression/classes/group.rb#70 +# source://regexp_parser/lib/regexp_parser/expression/classes/group.rb#70 class Regexp::Expression::Assertion::Lookbehind < ::Regexp::Expression::Assertion::Base - # source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#20 + # source://regexp_parser/lib/regexp_parser/expression/methods/human_name.rb#20 def human_name; end end -# source://regexp_parser//lib/regexp_parser/expression/classes/group.rb#68 +# source://regexp_parser/lib/regexp_parser/expression/classes/group.rb#68 class Regexp::Expression::Assertion::NegativeLookahead < ::Regexp::Expression::Assertion::Base - # source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#21 + # source://regexp_parser/lib/regexp_parser/expression/methods/human_name.rb#21 def human_name; end - # source://regexp_parser//lib/regexp_parser/expression/methods/negative.rb#14 + # source://regexp_parser/lib/regexp_parser/expression/methods/negative.rb#14 def negative?; end end -# source://regexp_parser//lib/regexp_parser/expression/classes/group.rb#71 +# source://regexp_parser/lib/regexp_parser/expression/classes/group.rb#71 class Regexp::Expression::Assertion::NegativeLookbehind < ::Regexp::Expression::Assertion::Base - # source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#22 + # source://regexp_parser/lib/regexp_parser/expression/methods/human_name.rb#22 def human_name; end - # source://regexp_parser//lib/regexp_parser/expression/methods/negative.rb#15 + # source://regexp_parser/lib/regexp_parser/expression/methods/negative.rb#15 def negative?; end end # alias for symmetry between token symbol and Expression class name # -# source://regexp_parser//lib/regexp_parser/expression/classes/backreference.rb#74 +# source://regexp_parser/lib/regexp_parser/expression/classes/backreference.rb#74 Regexp::Expression::Backref = Regexp::Expression::Backreference -# source://regexp_parser//lib/regexp_parser/expression/classes/backreference.rb#2 +# source://regexp_parser/lib/regexp_parser/expression/classes/backreference.rb#2 module Regexp::Expression::Backreference; end -# source://regexp_parser//lib/regexp_parser/expression/classes/backreference.rb#3 +# source://regexp_parser/lib/regexp_parser/expression/classes/backreference.rb#3 class Regexp::Expression::Backreference::Base < ::Regexp::Expression::Base - # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#155 + # source://regexp_parser/lib/regexp_parser/expression/methods/match_length.rb#155 def match_length; end # Returns the value of attribute referenced_expression. # - # source://regexp_parser//lib/regexp_parser/expression/classes/backreference.rb#4 + # source://regexp_parser/lib/regexp_parser/expression/classes/backreference.rb#4 def referenced_expression; end # Sets the attribute referenced_expression # # @param value the value to set the attribute referenced_expression to. # - # source://regexp_parser//lib/regexp_parser/expression/classes/backreference.rb#4 + # source://regexp_parser/lib/regexp_parser/expression/classes/backreference.rb#4 def referenced_expression=(_arg0); end private - # source://regexp_parser//lib/regexp_parser/expression/classes/backreference.rb#6 + # source://regexp_parser/lib/regexp_parser/expression/classes/backreference.rb#6 def initialize_copy(orig); end class << self - # source://regexp_parser//lib/regexp_parser/expression/methods/tests.rb#140 + # source://regexp_parser/lib/regexp_parser/expression/methods/tests.rb#140 def referential?; end end end -# source://regexp_parser//lib/regexp_parser/expression/classes/backreference.rb#34 +# source://regexp_parser/lib/regexp_parser/expression/classes/backreference.rb#34 class Regexp::Expression::Backreference::Name < ::Regexp::Expression::Backreference::Base # @return [Name] a new instance of Name # - # source://regexp_parser//lib/regexp_parser/expression/classes/backreference.rb#38 + # source://regexp_parser/lib/regexp_parser/expression/classes/backreference.rb#38 def initialize(token, options = T.unsafe(nil)); end - # source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#23 + # source://regexp_parser/lib/regexp_parser/expression/methods/human_name.rb#23 def human_name; end # Returns the value of attribute name. # - # source://regexp_parser//lib/regexp_parser/expression/classes/backreference.rb#35 + # source://regexp_parser/lib/regexp_parser/expression/classes/backreference.rb#35 def name; end # Returns the value of attribute name. # - # source://regexp_parser//lib/regexp_parser/expression/classes/backreference.rb#35 + # source://regexp_parser/lib/regexp_parser/expression/classes/backreference.rb#35 def reference; end end -# source://regexp_parser//lib/regexp_parser/expression/classes/backreference.rb#50 +# source://regexp_parser/lib/regexp_parser/expression/classes/backreference.rb#50 class Regexp::Expression::Backreference::NameCall < ::Regexp::Expression::Backreference::Name - # source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#24 + # source://regexp_parser/lib/regexp_parser/expression/methods/human_name.rb#24 def human_name; end end -# source://regexp_parser//lib/regexp_parser/expression/classes/backreference.rb#62 +# source://regexp_parser/lib/regexp_parser/expression/classes/backreference.rb#62 class Regexp::Expression::Backreference::NameRecursionLevel < ::Regexp::Expression::Backreference::Name # @return [NameRecursionLevel] a new instance of NameRecursionLevel # - # source://regexp_parser//lib/regexp_parser/expression/classes/backreference.rb#65 + # source://regexp_parser/lib/regexp_parser/expression/classes/backreference.rb#65 def initialize(token, options = T.unsafe(nil)); end # Returns the value of attribute recursion_level. # - # source://regexp_parser//lib/regexp_parser/expression/classes/backreference.rb#63 + # source://regexp_parser/lib/regexp_parser/expression/classes/backreference.rb#63 def recursion_level; end end -# source://regexp_parser//lib/regexp_parser/expression/classes/backreference.rb#24 +# source://regexp_parser/lib/regexp_parser/expression/classes/backreference.rb#24 class Regexp::Expression::Backreference::Number < ::Regexp::Expression::Backreference::Base # @return [Number] a new instance of Number # - # source://regexp_parser//lib/regexp_parser/expression/classes/backreference.rb#28 + # source://regexp_parser/lib/regexp_parser/expression/classes/backreference.rb#28 def initialize(token, options = T.unsafe(nil)); end - # source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#25 + # source://regexp_parser/lib/regexp_parser/expression/methods/human_name.rb#25 def human_name; end # Returns the value of attribute number. # - # source://regexp_parser//lib/regexp_parser/expression/classes/backreference.rb#25 + # source://regexp_parser/lib/regexp_parser/expression/classes/backreference.rb#25 def number; end # Returns the value of attribute number. # - # source://regexp_parser//lib/regexp_parser/expression/classes/backreference.rb#25 + # source://regexp_parser/lib/regexp_parser/expression/classes/backreference.rb#25 def reference; end end -# source://regexp_parser//lib/regexp_parser/expression/classes/backreference.rb#49 +# source://regexp_parser/lib/regexp_parser/expression/classes/backreference.rb#49 class Regexp::Expression::Backreference::NumberCall < ::Regexp::Expression::Backreference::Number - # source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#27 + # source://regexp_parser/lib/regexp_parser/expression/methods/human_name.rb#27 def human_name; end end -# source://regexp_parser//lib/regexp_parser/expression/classes/backreference.rb#51 +# source://regexp_parser/lib/regexp_parser/expression/classes/backreference.rb#51 class Regexp::Expression::Backreference::NumberCallRelative < ::Regexp::Expression::Backreference::NumberRelative - # source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#28 + # source://regexp_parser/lib/regexp_parser/expression/methods/human_name.rb#28 def human_name; end end -# source://regexp_parser//lib/regexp_parser/expression/classes/backreference.rb#53 +# source://regexp_parser/lib/regexp_parser/expression/classes/backreference.rb#53 class Regexp::Expression::Backreference::NumberRecursionLevel < ::Regexp::Expression::Backreference::NumberRelative # @return [NumberRecursionLevel] a new instance of NumberRecursionLevel # - # source://regexp_parser//lib/regexp_parser/expression/classes/backreference.rb#56 + # source://regexp_parser/lib/regexp_parser/expression/classes/backreference.rb#56 def initialize(token, options = T.unsafe(nil)); end # Returns the value of attribute recursion_level. # - # source://regexp_parser//lib/regexp_parser/expression/classes/backreference.rb#54 + # source://regexp_parser/lib/regexp_parser/expression/classes/backreference.rb#54 def recursion_level; end end -# source://regexp_parser//lib/regexp_parser/expression/classes/backreference.rb#44 +# source://regexp_parser/lib/regexp_parser/expression/classes/backreference.rb#44 class Regexp::Expression::Backreference::NumberRelative < ::Regexp::Expression::Backreference::Number # Returns the value of attribute effective_number. # - # source://regexp_parser//lib/regexp_parser/expression/classes/backreference.rb#45 + # source://regexp_parser/lib/regexp_parser/expression/classes/backreference.rb#45 def effective_number; end # Sets the attribute effective_number # # @param value the value to set the attribute effective_number to. # - # source://regexp_parser//lib/regexp_parser/expression/classes/backreference.rb#45 + # source://regexp_parser/lib/regexp_parser/expression/classes/backreference.rb#45 def effective_number=(_arg0); end - # source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#26 + # source://regexp_parser/lib/regexp_parser/expression/methods/human_name.rb#26 def human_name; end # Returns the value of attribute effective_number. # - # source://regexp_parser//lib/regexp_parser/expression/classes/backreference.rb#45 + # source://regexp_parser/lib/regexp_parser/expression/classes/backreference.rb#45 def reference; end end -# source://regexp_parser//lib/regexp_parser/expression/base.rb#2 +# source://regexp_parser/lib/regexp_parser/expression/base.rb#2 class Regexp::Expression::Base include ::Regexp::Expression::Shared extend ::Regexp::Expression::Shared::ClassMethods # @return [Base] a new instance of Base # - # source://regexp_parser//lib/regexp_parser/expression/base.rb#5 + # source://regexp_parser/lib/regexp_parser/expression/base.rb#5 def initialize(token, options = T.unsafe(nil)); end - # source://regexp_parser//lib/regexp_parser/expression/methods/match.rb#8 + # source://regexp_parser/lib/regexp_parser/expression/methods/match.rb#8 def =~(string, offset = T.unsafe(nil)); end # @return [Boolean] # - # source://regexp_parser//lib/regexp_parser/expression/methods/options.rb#25 + # source://regexp_parser/lib/regexp_parser/expression/methods/options.rb#25 def a?; end # @return [Boolean] # - # source://regexp_parser//lib/regexp_parser/expression/methods/options.rb#25 + # source://regexp_parser/lib/regexp_parser/expression/methods/options.rb#25 def ascii_classes?; end - # source://regexp_parser//lib/regexp_parser/expression/base.rb#60 + # source://regexp_parser/lib/regexp_parser/expression/base.rb#60 def attributes; end # @return [Boolean] # - # source://regexp_parser//lib/regexp_parser/expression/methods/options.rb#8 + # source://regexp_parser/lib/regexp_parser/expression/methods/options.rb#8 def case_insensitive?; end - # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9 + # source://regexp_parser/lib/regexp_parser/expression/shared.rb#9 def conditional_level; end - # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9 + # source://regexp_parser/lib/regexp_parser/expression/shared.rb#9 def conditional_level=(_arg0); end - # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9 + # source://regexp_parser/lib/regexp_parser/expression/shared.rb#9 def custom_to_s_handling; end - # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9 + # source://regexp_parser/lib/regexp_parser/expression/shared.rb#9 def custom_to_s_handling=(_arg0); end # @return [Boolean] # - # source://regexp_parser//lib/regexp_parser/expression/methods/options.rb#20 + # source://regexp_parser/lib/regexp_parser/expression/methods/options.rb#20 def d?; end # @return [Boolean] # - # source://regexp_parser//lib/regexp_parser/expression/methods/options.rb#20 + # source://regexp_parser/lib/regexp_parser/expression/methods/options.rb#20 def default_classes?; end # @return [Boolean] # - # source://regexp_parser//lib/regexp_parser/expression/methods/options.rb#14 + # source://regexp_parser/lib/regexp_parser/expression/methods/options.rb#14 def extended?; end # @return [Boolean] # - # source://regexp_parser//lib/regexp_parser/expression/methods/options.rb#14 + # source://regexp_parser/lib/regexp_parser/expression/methods/options.rb#14 def free_spacing?; end # @return [Boolean] # - # source://regexp_parser//lib/regexp_parser/expression/base.rb#47 + # source://regexp_parser/lib/regexp_parser/expression/base.rb#47 def greedy?; end # @return [Boolean] # - # source://regexp_parser//lib/regexp_parser/expression/methods/options.rb#8 + # source://regexp_parser/lib/regexp_parser/expression/methods/options.rb#8 def i?; end # @return [Boolean] # - # source://regexp_parser//lib/regexp_parser/expression/methods/options.rb#8 + # source://regexp_parser/lib/regexp_parser/expression/methods/options.rb#8 def ignore_case?; end # @return [Boolean] # - # source://regexp_parser//lib/regexp_parser/expression/base.rb#51 + # source://regexp_parser/lib/regexp_parser/expression/base.rb#51 def lazy?; end - # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9 + # source://regexp_parser/lib/regexp_parser/expression/shared.rb#9 def level; end - # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9 + # source://regexp_parser/lib/regexp_parser/expression/shared.rb#9 def level=(_arg0); end # @return [Boolean] # - # source://regexp_parser//lib/regexp_parser/expression/methods/options.rb#3 + # source://regexp_parser/lib/regexp_parser/expression/methods/options.rb#3 def m?; end - # source://regexp_parser//lib/regexp_parser/expression/methods/match.rb#8 + # source://regexp_parser/lib/regexp_parser/expression/methods/match.rb#8 def match(string, offset = T.unsafe(nil)); end # @return [Boolean] # - # source://regexp_parser//lib/regexp_parser/expression/methods/match.rb#3 + # source://regexp_parser/lib/regexp_parser/expression/methods/match.rb#3 def match?(string); end # @return [Boolean] # - # source://regexp_parser//lib/regexp_parser/expression/methods/match.rb#3 + # source://regexp_parser/lib/regexp_parser/expression/methods/match.rb#3 def matches?(string); end # @return [Boolean] # - # source://regexp_parser//lib/regexp_parser/expression/methods/options.rb#3 + # source://regexp_parser/lib/regexp_parser/expression/methods/options.rb#3 def multiline?; end - # source://regexp_parser//lib/regexp_parser/expression/shared.rb#14 + # source://regexp_parser/lib/regexp_parser/expression/shared.rb#14 def nesting_level; end - # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9 + # source://regexp_parser/lib/regexp_parser/expression/shared.rb#9 def options; end - # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9 + # source://regexp_parser/lib/regexp_parser/expression/shared.rb#9 def options=(_arg0); end - # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9 + # source://regexp_parser/lib/regexp_parser/expression/shared.rb#9 def parent; end - # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9 + # source://regexp_parser/lib/regexp_parser/expression/shared.rb#9 def parent=(_arg0); end # @return [Boolean] # - # source://regexp_parser//lib/regexp_parser/expression/base.rb#56 + # source://regexp_parser/lib/regexp_parser/expression/base.rb#56 def possessive?; end - # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9 + # source://regexp_parser/lib/regexp_parser/expression/shared.rb#9 def pre_quantifier_decorations; end - # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9 + # source://regexp_parser/lib/regexp_parser/expression/shared.rb#9 def pre_quantifier_decorations=(_arg0); end - # source://regexp_parser//lib/regexp_parser/expression/shared.rb#14 + # source://regexp_parser/lib/regexp_parser/expression/shared.rb#14 def quantifier; end - # source://regexp_parser//lib/regexp_parser/expression/base.rb#17 + # source://regexp_parser/lib/regexp_parser/expression/base.rb#17 def quantify(*args); end # Deprecated. Prefer `#repetitions` which has a more uniform interface. # - # source://regexp_parser//lib/regexp_parser/expression/base.rb#26 + # source://regexp_parser/lib/regexp_parser/expression/base.rb#26 def quantity; end # @return [Boolean] # - # source://regexp_parser//lib/regexp_parser/expression/base.rb#51 + # source://regexp_parser/lib/regexp_parser/expression/base.rb#51 def reluctant?; end - # source://regexp_parser//lib/regexp_parser/expression/base.rb#31 + # source://regexp_parser/lib/regexp_parser/expression/base.rb#31 def repetitions; end - # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9 + # source://regexp_parser/lib/regexp_parser/expression/shared.rb#9 def set_level; end - # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9 + # source://regexp_parser/lib/regexp_parser/expression/shared.rb#9 def set_level=(_arg0); end # %l Level (depth) of the expression. Returns 'root' for the root @@ -486,7 +486,7 @@ class Regexp::Expression::Base # %m Most info, same as '%b %q' # %a All info, same as '%m %t' # - # source://regexp_parser//lib/regexp_parser/expression/methods/strfregexp.rb#37 + # source://regexp_parser/lib/regexp_parser/expression/methods/strfregexp.rb#37 def strfre(format = T.unsafe(nil), indent_offset = T.unsafe(nil), index = T.unsafe(nil)); end # %l Level (depth) of the expression. Returns 'root' for the root @@ -522,667 +522,667 @@ class Regexp::Expression::Base # %m Most info, same as '%b %q' # %a All info, same as '%m %t' # - # source://regexp_parser//lib/regexp_parser/expression/methods/strfregexp.rb#37 + # source://regexp_parser/lib/regexp_parser/expression/methods/strfregexp.rb#37 def strfregexp(format = T.unsafe(nil), indent_offset = T.unsafe(nil), index = T.unsafe(nil)); end - # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9 + # source://regexp_parser/lib/regexp_parser/expression/shared.rb#9 def te; end - # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9 + # source://regexp_parser/lib/regexp_parser/expression/shared.rb#9 def te=(_arg0); end - # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9 + # source://regexp_parser/lib/regexp_parser/expression/shared.rb#9 def text; end - # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9 + # source://regexp_parser/lib/regexp_parser/expression/shared.rb#9 def text=(_arg0); end - # source://regexp_parser//lib/regexp_parser/expression/base.rb#60 + # source://regexp_parser/lib/regexp_parser/expression/base.rb#60 def to_h; end - # source://regexp_parser//lib/regexp_parser/expression/base.rb#9 + # source://regexp_parser/lib/regexp_parser/expression/base.rb#9 def to_re(format = T.unsafe(nil)); end - # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9 + # source://regexp_parser/lib/regexp_parser/expression/shared.rb#9 def token; end - # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9 + # source://regexp_parser/lib/regexp_parser/expression/shared.rb#9 def token=(_arg0); end - # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9 + # source://regexp_parser/lib/regexp_parser/expression/shared.rb#9 def ts; end - # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9 + # source://regexp_parser/lib/regexp_parser/expression/shared.rb#9 def ts=(_arg0); end - # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9 + # source://regexp_parser/lib/regexp_parser/expression/shared.rb#9 def type; end - # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9 + # source://regexp_parser/lib/regexp_parser/expression/shared.rb#9 def type=(_arg0); end # @return [Boolean] # - # source://regexp_parser//lib/regexp_parser/expression/methods/options.rb#30 + # source://regexp_parser/lib/regexp_parser/expression/methods/options.rb#30 def u?; end # @return [Boolean] # - # source://regexp_parser//lib/regexp_parser/expression/methods/options.rb#30 + # source://regexp_parser/lib/regexp_parser/expression/methods/options.rb#30 def unicode_classes?; end - # source://regexp_parser//lib/regexp_parser/expression/base.rb#21 + # source://regexp_parser/lib/regexp_parser/expression/base.rb#21 def unquantified_clone; end # @return [Boolean] # - # source://regexp_parser//lib/regexp_parser/expression/methods/options.rb#14 + # source://regexp_parser/lib/regexp_parser/expression/methods/options.rb#14 def x?; end end -# source://regexp_parser//lib/regexp_parser/expression/classes/character_set.rb#2 +# source://regexp_parser/lib/regexp_parser/expression/classes/character_set.rb#2 class Regexp::Expression::CharacterSet < ::Regexp::Expression::Subexpression # @return [CharacterSet] a new instance of CharacterSet # - # source://regexp_parser//lib/regexp_parser/expression/classes/character_set.rb#6 + # source://regexp_parser/lib/regexp_parser/expression/classes/character_set.rb#6 def initialize(token, options = T.unsafe(nil)); end - # source://regexp_parser//lib/regexp_parser/expression/classes/character_set.rb#16 + # source://regexp_parser/lib/regexp_parser/expression/classes/character_set.rb#16 def close; end # Returns the value of attribute closed. # - # source://regexp_parser//lib/regexp_parser/expression/classes/character_set.rb#3 + # source://regexp_parser/lib/regexp_parser/expression/classes/character_set.rb#3 def closed; end # Sets the attribute closed # # @param value the value to set the attribute closed to. # - # source://regexp_parser//lib/regexp_parser/expression/classes/character_set.rb#3 + # source://regexp_parser/lib/regexp_parser/expression/classes/character_set.rb#3 def closed=(_arg0); end # Returns the value of attribute closed. # - # source://regexp_parser//lib/regexp_parser/expression/classes/character_set.rb#3 + # source://regexp_parser/lib/regexp_parser/expression/classes/character_set.rb#3 def closed?; end - # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#98 + # source://regexp_parser/lib/regexp_parser/expression/methods/match_length.rb#98 def match_length; end - # source://regexp_parser//lib/regexp_parser/expression/classes/character_set.rb#12 + # source://regexp_parser/lib/regexp_parser/expression/classes/character_set.rb#12 def negate; end # Returns the value of attribute negative. # - # source://regexp_parser//lib/regexp_parser/expression/classes/character_set.rb#3 + # source://regexp_parser/lib/regexp_parser/expression/classes/character_set.rb#3 def negative; end # Sets the attribute negative # # @param value the value to set the attribute negative to. # - # source://regexp_parser//lib/regexp_parser/expression/classes/character_set.rb#3 + # source://regexp_parser/lib/regexp_parser/expression/classes/character_set.rb#3 def negative=(_arg0); end - # source://regexp_parser//lib/regexp_parser/expression/methods/negative.rb#16 + # source://regexp_parser/lib/regexp_parser/expression/methods/negative.rb#16 def negative?; end - # source://regexp_parser//lib/regexp_parser/expression/methods/parts.rb#15 + # source://regexp_parser/lib/regexp_parser/expression/methods/parts.rb#15 def parts; end end -# source://regexp_parser//lib/regexp_parser/expression/classes/character_set/intersection.rb#3 +# source://regexp_parser/lib/regexp_parser/expression/classes/character_set/intersection.rb#3 class Regexp::Expression::CharacterSet::IntersectedSequence < ::Regexp::Expression::Sequence - # source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#29 + # source://regexp_parser/lib/regexp_parser/expression/methods/human_name.rb#29 def human_name; end - # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#98 + # source://regexp_parser/lib/regexp_parser/expression/methods/match_length.rb#98 def match_length; end end -# source://regexp_parser//lib/regexp_parser/expression/classes/character_set/intersection.rb#5 +# source://regexp_parser/lib/regexp_parser/expression/classes/character_set/intersection.rb#5 class Regexp::Expression::CharacterSet::Intersection < ::Regexp::Expression::SequenceOperation - # source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#30 + # source://regexp_parser/lib/regexp_parser/expression/methods/human_name.rb#30 def human_name; end - # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#98 + # source://regexp_parser/lib/regexp_parser/expression/methods/match_length.rb#98 def match_length; end end -# source://regexp_parser//lib/regexp_parser/expression/classes/character_set/intersection.rb#6 +# source://regexp_parser/lib/regexp_parser/expression/classes/character_set/intersection.rb#6 Regexp::Expression::CharacterSet::Intersection::OPERAND = Regexp::Expression::CharacterSet::IntersectedSequence -# source://regexp_parser//lib/regexp_parser/expression/classes/character_set/range.rb#3 +# source://regexp_parser/lib/regexp_parser/expression/classes/character_set/range.rb#3 class Regexp::Expression::CharacterSet::Range < ::Regexp::Expression::Subexpression - # source://regexp_parser//lib/regexp_parser/expression/classes/character_set/range.rb#8 + # source://regexp_parser/lib/regexp_parser/expression/classes/character_set/range.rb#8 def <<(exp); end # @return [Boolean] # - # source://regexp_parser//lib/regexp_parser/expression/classes/character_set/range.rb#14 + # source://regexp_parser/lib/regexp_parser/expression/classes/character_set/range.rb#14 def complete?; end - # source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#31 + # source://regexp_parser/lib/regexp_parser/expression/methods/human_name.rb#31 def human_name; end - # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#98 + # source://regexp_parser/lib/regexp_parser/expression/methods/match_length.rb#98 def match_length; end - # source://regexp_parser//lib/regexp_parser/expression/methods/parts.rb#16 + # source://regexp_parser/lib/regexp_parser/expression/methods/parts.rb#16 def parts; end - # source://regexp_parser//lib/regexp_parser/expression/classes/character_set/range.rb#4 + # source://regexp_parser/lib/regexp_parser/expression/classes/character_set/range.rb#4 def ts; end end -# source://regexp_parser//lib/regexp_parser/expression/classes/character_type.rb#2 +# source://regexp_parser/lib/regexp_parser/expression/classes/character_type.rb#2 module Regexp::Expression::CharacterType; end -# source://regexp_parser//lib/regexp_parser/expression/classes/character_type.rb#5 +# source://regexp_parser/lib/regexp_parser/expression/classes/character_type.rb#5 class Regexp::Expression::CharacterType::Any < ::Regexp::Expression::CharacterType::Base - # source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#32 + # source://regexp_parser/lib/regexp_parser/expression/methods/human_name.rb#32 def human_name; end end -# source://regexp_parser//lib/regexp_parser/expression/classes/character_type.rb#3 +# source://regexp_parser/lib/regexp_parser/expression/classes/character_type.rb#3 class Regexp::Expression::CharacterType::Base < ::Regexp::Expression::Base - # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#98 + # source://regexp_parser/lib/regexp_parser/expression/methods/match_length.rb#98 def match_length; end - # source://regexp_parser//lib/regexp_parser/expression/methods/negative.rb#17 + # source://regexp_parser/lib/regexp_parser/expression/methods/negative.rb#17 def negative?; end end -# source://regexp_parser//lib/regexp_parser/expression/classes/character_type.rb#6 +# source://regexp_parser/lib/regexp_parser/expression/classes/character_type.rb#6 class Regexp::Expression::CharacterType::Digit < ::Regexp::Expression::CharacterType::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/character_type.rb#15 +# source://regexp_parser/lib/regexp_parser/expression/classes/character_type.rb#15 class Regexp::Expression::CharacterType::ExtendedGrapheme < ::Regexp::Expression::CharacterType::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/character_type.rb#8 +# source://regexp_parser/lib/regexp_parser/expression/classes/character_type.rb#8 class Regexp::Expression::CharacterType::Hex < ::Regexp::Expression::CharacterType::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/character_type.rb#14 +# source://regexp_parser/lib/regexp_parser/expression/classes/character_type.rb#14 class Regexp::Expression::CharacterType::Linebreak < ::Regexp::Expression::CharacterType::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/character_type.rb#7 +# source://regexp_parser/lib/regexp_parser/expression/classes/character_type.rb#7 class Regexp::Expression::CharacterType::NonDigit < ::Regexp::Expression::CharacterType::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/character_type.rb#9 +# source://regexp_parser/lib/regexp_parser/expression/classes/character_type.rb#9 class Regexp::Expression::CharacterType::NonHex < ::Regexp::Expression::CharacterType::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/character_type.rb#13 +# source://regexp_parser/lib/regexp_parser/expression/classes/character_type.rb#13 class Regexp::Expression::CharacterType::NonSpace < ::Regexp::Expression::CharacterType::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/character_type.rb#11 +# source://regexp_parser/lib/regexp_parser/expression/classes/character_type.rb#11 class Regexp::Expression::CharacterType::NonWord < ::Regexp::Expression::CharacterType::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/character_type.rb#12 +# source://regexp_parser/lib/regexp_parser/expression/classes/character_type.rb#12 class Regexp::Expression::CharacterType::Space < ::Regexp::Expression::CharacterType::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/character_type.rb#10 +# source://regexp_parser/lib/regexp_parser/expression/classes/character_type.rb#10 class Regexp::Expression::CharacterType::Word < ::Regexp::Expression::CharacterType::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/free_space.rb#8 +# source://regexp_parser/lib/regexp_parser/expression/classes/free_space.rb#8 class Regexp::Expression::Comment < ::Regexp::Expression::FreeSpace - # source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#33 + # source://regexp_parser/lib/regexp_parser/expression/methods/human_name.rb#33 def human_name; end class << self - # source://regexp_parser//lib/regexp_parser/expression/methods/tests.rb#130 + # source://regexp_parser/lib/regexp_parser/expression/methods/tests.rb#130 def comment?; end end end -# source://regexp_parser//lib/regexp_parser/expression/classes/conditional.rb#2 +# source://regexp_parser/lib/regexp_parser/expression/classes/conditional.rb#2 module Regexp::Expression::Conditional; end -# source://regexp_parser//lib/regexp_parser/expression/classes/conditional.rb#25 +# source://regexp_parser/lib/regexp_parser/expression/classes/conditional.rb#25 class Regexp::Expression::Conditional::Branch < ::Regexp::Expression::Sequence - # source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#34 + # source://regexp_parser/lib/regexp_parser/expression/methods/human_name.rb#34 def human_name; end end -# source://regexp_parser//lib/regexp_parser/expression/classes/conditional.rb#9 +# source://regexp_parser/lib/regexp_parser/expression/classes/conditional.rb#9 class Regexp::Expression::Conditional::Condition < ::Regexp::Expression::Base - # source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#35 + # source://regexp_parser/lib/regexp_parser/expression/methods/human_name.rb#35 def human_name; end - # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#148 + # source://regexp_parser/lib/regexp_parser/expression/methods/match_length.rb#148 def match_length; end # Name or number of the referenced capturing group that determines state. # Returns a String if reference is by name, Integer if by number. # - # source://regexp_parser//lib/regexp_parser/expression/classes/conditional.rb#14 + # source://regexp_parser/lib/regexp_parser/expression/classes/conditional.rb#14 def reference; end # Returns the value of attribute referenced_expression. # - # source://regexp_parser//lib/regexp_parser/expression/classes/conditional.rb#10 + # source://regexp_parser/lib/regexp_parser/expression/classes/conditional.rb#10 def referenced_expression; end # Sets the attribute referenced_expression # # @param value the value to set the attribute referenced_expression to. # - # source://regexp_parser//lib/regexp_parser/expression/classes/conditional.rb#10 + # source://regexp_parser/lib/regexp_parser/expression/classes/conditional.rb#10 def referenced_expression=(_arg0); end private - # source://regexp_parser//lib/regexp_parser/expression/classes/conditional.rb#19 + # source://regexp_parser/lib/regexp_parser/expression/classes/conditional.rb#19 def initialize_copy(orig); end class << self - # source://regexp_parser//lib/regexp_parser/expression/methods/tests.rb#141 + # source://regexp_parser/lib/regexp_parser/expression/methods/tests.rb#141 def referential?; end end end -# source://regexp_parser//lib/regexp_parser/expression/classes/conditional.rb#27 +# source://regexp_parser/lib/regexp_parser/expression/classes/conditional.rb#27 class Regexp::Expression::Conditional::Expression < ::Regexp::Expression::Subexpression - # source://regexp_parser//lib/regexp_parser/expression/classes/conditional.rb#30 + # source://regexp_parser/lib/regexp_parser/expression/classes/conditional.rb#30 def <<(exp); end # @raise [TooManyBranches] # - # source://regexp_parser//lib/regexp_parser/expression/classes/conditional.rb#34 + # source://regexp_parser/lib/regexp_parser/expression/classes/conditional.rb#34 def add_sequence(active_opts = T.unsafe(nil), params = T.unsafe(nil)); end # @raise [TooManyBranches] # - # source://regexp_parser//lib/regexp_parser/expression/classes/conditional.rb#34 + # source://regexp_parser/lib/regexp_parser/expression/classes/conditional.rb#34 def branch(active_opts = T.unsafe(nil), params = T.unsafe(nil)); end - # source://regexp_parser//lib/regexp_parser/expression/classes/conditional.rb#50 + # source://regexp_parser/lib/regexp_parser/expression/classes/conditional.rb#50 def branches; end - # source://regexp_parser//lib/regexp_parser/expression/classes/conditional.rb#46 + # source://regexp_parser/lib/regexp_parser/expression/classes/conditional.rb#46 def condition; end - # source://regexp_parser//lib/regexp_parser/expression/classes/conditional.rb#41 + # source://regexp_parser/lib/regexp_parser/expression/classes/conditional.rb#41 def condition=(exp); end - # source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#36 + # source://regexp_parser/lib/regexp_parser/expression/methods/human_name.rb#36 def human_name; end - # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#131 + # source://regexp_parser/lib/regexp_parser/expression/methods/match_length.rb#131 def match_length; end - # source://regexp_parser//lib/regexp_parser/expression/methods/parts.rb#17 + # source://regexp_parser/lib/regexp_parser/expression/methods/parts.rb#17 def parts; end - # source://regexp_parser//lib/regexp_parser/expression/classes/conditional.rb#54 + # source://regexp_parser/lib/regexp_parser/expression/classes/conditional.rb#54 def reference; end # Returns the value of attribute referenced_expression. # - # source://regexp_parser//lib/regexp_parser/expression/classes/conditional.rb#28 + # source://regexp_parser/lib/regexp_parser/expression/classes/conditional.rb#28 def referenced_expression; end # Sets the attribute referenced_expression # # @param value the value to set the attribute referenced_expression to. # - # source://regexp_parser//lib/regexp_parser/expression/classes/conditional.rb#28 + # source://regexp_parser/lib/regexp_parser/expression/classes/conditional.rb#28 def referenced_expression=(_arg0); end private - # source://regexp_parser//lib/regexp_parser/expression/classes/conditional.rb#58 + # source://regexp_parser/lib/regexp_parser/expression/classes/conditional.rb#58 def initialize_copy(orig); end class << self - # source://regexp_parser//lib/regexp_parser/expression/methods/tests.rb#142 + # source://regexp_parser/lib/regexp_parser/expression/methods/tests.rb#142 def referential?; end end end -# source://regexp_parser//lib/regexp_parser/expression/classes/conditional.rb#3 +# source://regexp_parser/lib/regexp_parser/expression/classes/conditional.rb#3 class Regexp::Expression::Conditional::TooManyBranches < ::Regexp::Parser::Error # @return [TooManyBranches] a new instance of TooManyBranches # - # source://regexp_parser//lib/regexp_parser/expression/classes/conditional.rb#4 + # source://regexp_parser/lib/regexp_parser/expression/classes/conditional.rb#4 def initialize; end end # alias for symmetry between Token::* and Expression::* # -# source://regexp_parser//lib/regexp_parser/expression/classes/escape_sequence.rb#101 +# source://regexp_parser/lib/regexp_parser/expression/classes/escape_sequence.rb#101 Regexp::Expression::Escape = Regexp::Expression::EscapeSequence -# source://regexp_parser//lib/regexp_parser/expression/classes/escape_sequence.rb#2 +# source://regexp_parser/lib/regexp_parser/expression/classes/escape_sequence.rb#2 module Regexp::Expression::EscapeSequence; end -# source://regexp_parser//lib/regexp_parser/expression/classes/escape_sequence.rb#63 +# source://regexp_parser/lib/regexp_parser/expression/classes/escape_sequence.rb#63 class Regexp::Expression::EscapeSequence::AbstractMetaControlSequence < ::Regexp::Expression::EscapeSequence::Base - # source://regexp_parser//lib/regexp_parser/expression/classes/escape_sequence.rb#64 + # source://regexp_parser/lib/regexp_parser/expression/classes/escape_sequence.rb#64 def char; end private - # source://regexp_parser//lib/regexp_parser/expression/classes/escape_sequence.rb#70 + # source://regexp_parser/lib/regexp_parser/expression/classes/escape_sequence.rb#70 def control_sequence_to_s(control_sequence); end - # source://regexp_parser//lib/regexp_parser/expression/classes/escape_sequence.rb#75 + # source://regexp_parser/lib/regexp_parser/expression/classes/escape_sequence.rb#75 def meta_char_to_codepoint(meta_char); end end -# source://regexp_parser//lib/regexp_parser/expression/classes/escape_sequence.rb#27 +# source://regexp_parser/lib/regexp_parser/expression/classes/escape_sequence.rb#27 class Regexp::Expression::EscapeSequence::AsciiEscape < ::Regexp::Expression::EscapeSequence::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/escape_sequence.rb#28 +# source://regexp_parser/lib/regexp_parser/expression/classes/escape_sequence.rb#28 class Regexp::Expression::EscapeSequence::Backspace < ::Regexp::Expression::EscapeSequence::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/escape_sequence.rb#3 +# source://regexp_parser/lib/regexp_parser/expression/classes/escape_sequence.rb#3 class Regexp::Expression::EscapeSequence::Base < ::Regexp::Expression::Base - # source://regexp_parser//lib/regexp_parser/expression/classes/escape_sequence.rb#9 + # source://regexp_parser/lib/regexp_parser/expression/classes/escape_sequence.rb#9 def char; end - # source://regexp_parser//lib/regexp_parser/expression/classes/escape_sequence.rb#4 + # source://regexp_parser/lib/regexp_parser/expression/classes/escape_sequence.rb#4 def codepoint; end - # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#98 + # source://regexp_parser/lib/regexp_parser/expression/methods/match_length.rb#98 def match_length; end end -# source://regexp_parser//lib/regexp_parser/expression/classes/escape_sequence.rb#29 +# source://regexp_parser/lib/regexp_parser/expression/classes/escape_sequence.rb#29 class Regexp::Expression::EscapeSequence::Bell < ::Regexp::Expression::EscapeSequence::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/escape_sequence.rb#37 +# source://regexp_parser/lib/regexp_parser/expression/classes/escape_sequence.rb#37 class Regexp::Expression::EscapeSequence::Codepoint < ::Regexp::Expression::EscapeSequence::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/escape_sequence.rb#39 +# source://regexp_parser/lib/regexp_parser/expression/classes/escape_sequence.rb#39 class Regexp::Expression::EscapeSequence::CodepointList < ::Regexp::Expression::EscapeSequence::Base # @raise [NoMethodError] # - # source://regexp_parser//lib/regexp_parser/expression/classes/escape_sequence.rb#40 + # source://regexp_parser/lib/regexp_parser/expression/classes/escape_sequence.rb#40 def char; end - # source://regexp_parser//lib/regexp_parser/expression/classes/escape_sequence.rb#48 + # source://regexp_parser/lib/regexp_parser/expression/classes/escape_sequence.rb#48 def chars; end # @raise [NoMethodError] # - # source://regexp_parser//lib/regexp_parser/expression/classes/escape_sequence.rb#44 + # source://regexp_parser/lib/regexp_parser/expression/classes/escape_sequence.rb#44 def codepoint; end - # source://regexp_parser//lib/regexp_parser/expression/classes/escape_sequence.rb#52 + # source://regexp_parser/lib/regexp_parser/expression/classes/escape_sequence.rb#52 def codepoints; end - # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#164 + # source://regexp_parser/lib/regexp_parser/expression/methods/match_length.rb#164 def match_length; end end -# source://regexp_parser//lib/regexp_parser/expression/classes/escape_sequence.rb#81 +# source://regexp_parser/lib/regexp_parser/expression/classes/escape_sequence.rb#81 class Regexp::Expression::EscapeSequence::Control < ::Regexp::Expression::EscapeSequence::AbstractMetaControlSequence - # source://regexp_parser//lib/regexp_parser/expression/classes/escape_sequence.rb#82 + # source://regexp_parser/lib/regexp_parser/expression/classes/escape_sequence.rb#82 def codepoint; end end -# source://regexp_parser//lib/regexp_parser/expression/classes/escape_sequence.rb#30 +# source://regexp_parser/lib/regexp_parser/expression/classes/escape_sequence.rb#30 class Regexp::Expression::EscapeSequence::FormFeed < ::Regexp::Expression::EscapeSequence::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/escape_sequence.rb#36 +# source://regexp_parser/lib/regexp_parser/expression/classes/escape_sequence.rb#36 class Regexp::Expression::EscapeSequence::Hex < ::Regexp::Expression::EscapeSequence::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/escape_sequence.rb#21 +# source://regexp_parser/lib/regexp_parser/expression/classes/escape_sequence.rb#21 class Regexp::Expression::EscapeSequence::Literal < ::Regexp::Expression::EscapeSequence::Base - # source://regexp_parser//lib/regexp_parser/expression/classes/escape_sequence.rb#22 + # source://regexp_parser/lib/regexp_parser/expression/classes/escape_sequence.rb#22 def char; end end -# source://regexp_parser//lib/regexp_parser/expression/classes/escape_sequence.rb#87 +# source://regexp_parser/lib/regexp_parser/expression/classes/escape_sequence.rb#87 class Regexp::Expression::EscapeSequence::Meta < ::Regexp::Expression::EscapeSequence::AbstractMetaControlSequence - # source://regexp_parser//lib/regexp_parser/expression/classes/escape_sequence.rb#88 + # source://regexp_parser/lib/regexp_parser/expression/classes/escape_sequence.rb#88 def codepoint; end end -# source://regexp_parser//lib/regexp_parser/expression/classes/escape_sequence.rb#93 +# source://regexp_parser/lib/regexp_parser/expression/classes/escape_sequence.rb#93 class Regexp::Expression::EscapeSequence::MetaControl < ::Regexp::Expression::EscapeSequence::AbstractMetaControlSequence - # source://regexp_parser//lib/regexp_parser/expression/classes/escape_sequence.rb#94 + # source://regexp_parser/lib/regexp_parser/expression/classes/escape_sequence.rb#94 def codepoint; end end -# source://regexp_parser//lib/regexp_parser/expression/classes/escape_sequence.rb#31 +# source://regexp_parser/lib/regexp_parser/expression/classes/escape_sequence.rb#31 class Regexp::Expression::EscapeSequence::Newline < ::Regexp::Expression::EscapeSequence::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/escape_sequence.rb#57 +# source://regexp_parser/lib/regexp_parser/expression/classes/escape_sequence.rb#57 class Regexp::Expression::EscapeSequence::Octal < ::Regexp::Expression::EscapeSequence::Base - # source://regexp_parser//lib/regexp_parser/expression/classes/escape_sequence.rb#58 + # source://regexp_parser/lib/regexp_parser/expression/classes/escape_sequence.rb#58 def char; end end -# source://regexp_parser//lib/regexp_parser/expression/classes/escape_sequence.rb#32 +# source://regexp_parser/lib/regexp_parser/expression/classes/escape_sequence.rb#32 class Regexp::Expression::EscapeSequence::Return < ::Regexp::Expression::EscapeSequence::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/escape_sequence.rb#33 +# source://regexp_parser/lib/regexp_parser/expression/classes/escape_sequence.rb#33 class Regexp::Expression::EscapeSequence::Tab < ::Regexp::Expression::EscapeSequence::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/escape_sequence.rb#34 +# source://regexp_parser/lib/regexp_parser/expression/classes/escape_sequence.rb#34 class Regexp::Expression::EscapeSequence::VerticalTab < ::Regexp::Expression::EscapeSequence::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/free_space.rb#2 +# source://regexp_parser/lib/regexp_parser/expression/classes/free_space.rb#2 class Regexp::Expression::FreeSpace < ::Regexp::Expression::Base - # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#148 + # source://regexp_parser/lib/regexp_parser/expression/methods/match_length.rb#148 def match_length; end # @raise [Regexp::Parser::Error] # - # source://regexp_parser//lib/regexp_parser/expression/classes/free_space.rb#3 + # source://regexp_parser/lib/regexp_parser/expression/classes/free_space.rb#3 def quantify(*_args); end class << self - # source://regexp_parser//lib/regexp_parser/expression/methods/tests.rb#135 + # source://regexp_parser/lib/regexp_parser/expression/methods/tests.rb#135 def decorative?; end end end -# source://regexp_parser//lib/regexp_parser/expression/classes/group.rb#2 +# source://regexp_parser/lib/regexp_parser/expression/classes/group.rb#2 module Regexp::Expression::Group; end # Special case. Absence group can match 0.. chars, irrespective of content. # TODO: in theory, they *can* exclude match lengths with `.`: `(?~.{3})` # -# source://regexp_parser//lib/regexp_parser/expression/classes/group.rb#19 +# source://regexp_parser/lib/regexp_parser/expression/classes/group.rb#19 class Regexp::Expression::Group::Absence < ::Regexp::Expression::Group::Base - # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#172 + # source://regexp_parser/lib/regexp_parser/expression/methods/match_length.rb#172 def match_length; end end -# source://regexp_parser//lib/regexp_parser/expression/classes/group.rb#20 +# source://regexp_parser/lib/regexp_parser/expression/classes/group.rb#20 class Regexp::Expression::Group::Atomic < ::Regexp::Expression::Group::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/group.rb#3 +# source://regexp_parser/lib/regexp_parser/expression/classes/group.rb#3 class Regexp::Expression::Group::Base < ::Regexp::Expression::Subexpression - # source://regexp_parser//lib/regexp_parser/expression/methods/parts.rb#18 + # source://regexp_parser/lib/regexp_parser/expression/methods/parts.rb#18 def parts; end end -# source://regexp_parser//lib/regexp_parser/expression/classes/group.rb#40 +# source://regexp_parser/lib/regexp_parser/expression/classes/group.rb#40 class Regexp::Expression::Group::Capture < ::Regexp::Expression::Group::Base - # source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#37 + # source://regexp_parser/lib/regexp_parser/expression/methods/human_name.rb#37 def human_name; end # Returns the value of attribute number. # - # source://regexp_parser//lib/regexp_parser/expression/classes/group.rb#41 + # source://regexp_parser/lib/regexp_parser/expression/classes/group.rb#41 def identifier; end # Returns the value of attribute number. # - # source://regexp_parser//lib/regexp_parser/expression/classes/group.rb#41 + # source://regexp_parser/lib/regexp_parser/expression/classes/group.rb#41 def number; end # Sets the attribute number # # @param value the value to set the attribute number to. # - # source://regexp_parser//lib/regexp_parser/expression/classes/group.rb#41 + # source://regexp_parser/lib/regexp_parser/expression/classes/group.rb#41 def number=(_arg0); end # Returns the value of attribute number_at_level. # - # source://regexp_parser//lib/regexp_parser/expression/classes/group.rb#41 + # source://regexp_parser/lib/regexp_parser/expression/classes/group.rb#41 def number_at_level; end # Sets the attribute number_at_level # # @param value the value to set the attribute number_at_level to. # - # source://regexp_parser//lib/regexp_parser/expression/classes/group.rb#41 + # source://regexp_parser/lib/regexp_parser/expression/classes/group.rb#41 def number_at_level=(_arg0); end class << self - # source://regexp_parser//lib/regexp_parser/expression/methods/tests.rb#126 + # source://regexp_parser/lib/regexp_parser/expression/methods/tests.rb#126 def capturing?; end end end -# source://regexp_parser//lib/regexp_parser/expression/classes/group.rb#60 +# source://regexp_parser/lib/regexp_parser/expression/classes/group.rb#60 class Regexp::Expression::Group::Comment < ::Regexp::Expression::Group::Base - # source://regexp_parser//lib/regexp_parser/expression/methods/parts.rb#20 + # source://regexp_parser/lib/regexp_parser/expression/methods/parts.rb#20 def parts; end class << self - # source://regexp_parser//lib/regexp_parser/expression/methods/tests.rb#131 + # source://regexp_parser/lib/regexp_parser/expression/methods/tests.rb#131 def comment?; end - # source://regexp_parser//lib/regexp_parser/expression/methods/tests.rb#136 + # source://regexp_parser/lib/regexp_parser/expression/methods/tests.rb#136 def decorative?; end end end -# source://regexp_parser//lib/regexp_parser/expression/classes/group.rb#45 +# source://regexp_parser/lib/regexp_parser/expression/classes/group.rb#45 class Regexp::Expression::Group::Named < ::Regexp::Expression::Group::Capture # @return [Named] a new instance of Named # - # source://regexp_parser//lib/regexp_parser/expression/classes/group.rb#49 + # source://regexp_parser/lib/regexp_parser/expression/classes/group.rb#49 def initialize(token, options = T.unsafe(nil)); end - # source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#38 + # source://regexp_parser/lib/regexp_parser/expression/methods/human_name.rb#38 def human_name; end # Returns the value of attribute name. # - # source://regexp_parser//lib/regexp_parser/expression/classes/group.rb#46 + # source://regexp_parser/lib/regexp_parser/expression/classes/group.rb#46 def identifier; end # Returns the value of attribute name. # - # source://regexp_parser//lib/regexp_parser/expression/classes/group.rb#46 + # source://regexp_parser/lib/regexp_parser/expression/classes/group.rb#46 def name; end private - # source://regexp_parser//lib/regexp_parser/expression/classes/group.rb#54 + # source://regexp_parser/lib/regexp_parser/expression/classes/group.rb#54 def initialize_copy(orig); end end # TODO: should split off OptionsSwitch in v3.0.0. Maybe even make it no # longer inherit from Group because it is effectively a terminal expression. # -# source://regexp_parser//lib/regexp_parser/expression/classes/group.rb#23 +# source://regexp_parser/lib/regexp_parser/expression/classes/group.rb#23 class Regexp::Expression::Group::Options < ::Regexp::Expression::Group::Base # Returns the value of attribute option_changes. # - # source://regexp_parser//lib/regexp_parser/expression/classes/group.rb#24 + # source://regexp_parser/lib/regexp_parser/expression/classes/group.rb#24 def option_changes; end # Sets the attribute option_changes # # @param value the value to set the attribute option_changes to. # - # source://regexp_parser//lib/regexp_parser/expression/classes/group.rb#24 + # source://regexp_parser/lib/regexp_parser/expression/classes/group.rb#24 def option_changes=(_arg0); end - # source://regexp_parser//lib/regexp_parser/expression/classes/group.rb#31 + # source://regexp_parser/lib/regexp_parser/expression/classes/group.rb#31 def quantify(*args); end private - # source://regexp_parser//lib/regexp_parser/expression/classes/group.rb#26 + # source://regexp_parser/lib/regexp_parser/expression/classes/group.rb#26 def initialize_copy(orig); end end -# source://regexp_parser//lib/regexp_parser/expression/classes/group.rb#6 +# source://regexp_parser/lib/regexp_parser/expression/classes/group.rb#6 class Regexp::Expression::Group::Passive < ::Regexp::Expression::Group::Base # @return [Passive] a new instance of Passive # - # source://regexp_parser//lib/regexp_parser/expression/classes/group.rb#9 + # source://regexp_parser/lib/regexp_parser/expression/classes/group.rb#9 def initialize(*_arg0); end # Sets the attribute implicit # # @param value the value to set the attribute implicit to. # - # source://regexp_parser//lib/regexp_parser/expression/classes/group.rb#7 + # source://regexp_parser/lib/regexp_parser/expression/classes/group.rb#7 def implicit=(_arg0); end # @return [Boolean] # - # source://regexp_parser//lib/regexp_parser/expression/classes/group.rb#14 + # source://regexp_parser/lib/regexp_parser/expression/classes/group.rb#14 def implicit?; end - # source://regexp_parser//lib/regexp_parser/expression/methods/parts.rb#19 + # source://regexp_parser/lib/regexp_parser/expression/methods/parts.rb#19 def parts; end end -# source://regexp_parser//lib/regexp_parser/expression/classes/keep.rb#2 +# source://regexp_parser/lib/regexp_parser/expression/classes/keep.rb#2 module Regexp::Expression::Keep; end # TODO: in regexp_parser v3.0.0 this should possibly be a Subexpression # that contains all expressions to its left. # -# source://regexp_parser//lib/regexp_parser/expression/classes/keep.rb#5 +# source://regexp_parser/lib/regexp_parser/expression/classes/keep.rb#5 class Regexp::Expression::Keep::Mark < ::Regexp::Expression::Base - # source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#39 + # source://regexp_parser/lib/regexp_parser/expression/methods/human_name.rb#39 def human_name; end - # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#148 + # source://regexp_parser/lib/regexp_parser/expression/methods/match_length.rb#148 def match_length; end end -# source://regexp_parser//lib/regexp_parser/expression/classes/literal.rb#2 +# source://regexp_parser/lib/regexp_parser/expression/classes/literal.rb#2 class Regexp::Expression::Literal < ::Regexp::Expression::Base - # source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#40 + # source://regexp_parser/lib/regexp_parser/expression/methods/human_name.rb#40 def human_name; end - # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#105 + # source://regexp_parser/lib/regexp_parser/expression/methods/match_length.rb#105 def match_length; end end -# source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#85 +# source://regexp_parser/lib/regexp_parser/expression/methods/match_length.rb#85 Regexp::Expression::MatchLength = Regexp::MatchLength -# source://regexp_parser//lib/regexp_parser/expression/classes/posix_class.rb#10 +# source://regexp_parser/lib/regexp_parser/expression/classes/posix_class.rb#10 Regexp::Expression::Nonposixclass = Regexp::Expression::PosixClass -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#118 +# source://regexp_parser/lib/regexp_parser/expression/classes/unicode_property.rb#118 Regexp::Expression::Nonproperty = Regexp::Expression::UnicodeProperty -# source://regexp_parser//lib/regexp_parser/expression/classes/posix_class.rb#2 +# source://regexp_parser/lib/regexp_parser/expression/classes/posix_class.rb#2 class Regexp::Expression::PosixClass < ::Regexp::Expression::Base - # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#98 + # source://regexp_parser/lib/regexp_parser/expression/methods/match_length.rb#98 def match_length; end - # source://regexp_parser//lib/regexp_parser/expression/classes/posix_class.rb#3 + # source://regexp_parser/lib/regexp_parser/expression/classes/posix_class.rb#3 def name; end - # source://regexp_parser//lib/regexp_parser/expression/methods/negative.rb#18 + # source://regexp_parser/lib/regexp_parser/expression/methods/negative.rb#18 def negative?; end end # alias for symmetry between token symbol and Expression class name # -# source://regexp_parser//lib/regexp_parser/expression/classes/posix_class.rb#9 +# source://regexp_parser/lib/regexp_parser/expression/classes/posix_class.rb#9 Regexp::Expression::Posixclass = Regexp::Expression::PosixClass # alias for symmetry between token symbol and Expression class name # -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#117 +# source://regexp_parser/lib/regexp_parser/expression/classes/unicode_property.rb#117 Regexp::Expression::Property = Regexp::Expression::UnicodeProperty # TODO: in v3.0.0, maybe put Shared back into Base, and inherit from Base and @@ -1190,137 +1190,137 @@ Regexp::Expression::Property = Regexp::Expression::UnicodeProperty # or introduce an Expression::Quantifiable intermediate class. # Or actually allow chaining as a more concise but tricky solution than PR#69. # -# source://regexp_parser//lib/regexp_parser/expression/quantifier.rb#6 +# source://regexp_parser/lib/regexp_parser/expression/quantifier.rb#6 class Regexp::Expression::Quantifier include ::Regexp::Expression::Shared extend ::Regexp::Expression::Shared::ClassMethods # @return [Quantifier] a new instance of Quantifier # - # source://regexp_parser//lib/regexp_parser/expression/quantifier.rb#11 + # source://regexp_parser/lib/regexp_parser/expression/quantifier.rb#11 def initialize(*args); end - # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9 + # source://regexp_parser/lib/regexp_parser/expression/shared.rb#9 def conditional_level; end - # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9 + # source://regexp_parser/lib/regexp_parser/expression/shared.rb#9 def conditional_level=(_arg0); end - # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9 + # source://regexp_parser/lib/regexp_parser/expression/shared.rb#9 def custom_to_s_handling; end - # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9 + # source://regexp_parser/lib/regexp_parser/expression/shared.rb#9 def custom_to_s_handling=(_arg0); end - # source://regexp_parser//lib/regexp_parser/expression/quantifier.rb#31 + # source://regexp_parser/lib/regexp_parser/expression/quantifier.rb#31 def greedy?; end - # source://regexp_parser//lib/regexp_parser/expression/quantifier.rb#31 + # source://regexp_parser/lib/regexp_parser/expression/quantifier.rb#31 def lazy?; end - # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9 + # source://regexp_parser/lib/regexp_parser/expression/shared.rb#9 def level; end - # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9 + # source://regexp_parser/lib/regexp_parser/expression/shared.rb#9 def level=(_arg0); end - # source://regexp_parser//lib/regexp_parser/expression/quantifier.rb#42 + # source://regexp_parser/lib/regexp_parser/expression/quantifier.rb#42 def max; end - # source://regexp_parser//lib/regexp_parser/expression/quantifier.rb#38 + # source://regexp_parser/lib/regexp_parser/expression/quantifier.rb#38 def min; end - # source://regexp_parser//lib/regexp_parser/expression/quantifier.rb#46 + # source://regexp_parser/lib/regexp_parser/expression/quantifier.rb#46 def mode; end - # source://regexp_parser//lib/regexp_parser/expression/shared.rb#14 + # source://regexp_parser/lib/regexp_parser/expression/shared.rb#14 def nesting_level; end - # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9 + # source://regexp_parser/lib/regexp_parser/expression/shared.rb#9 def options; end - # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9 + # source://regexp_parser/lib/regexp_parser/expression/shared.rb#9 def options=(_arg0); end - # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9 + # source://regexp_parser/lib/regexp_parser/expression/shared.rb#9 def parent; end - # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9 + # source://regexp_parser/lib/regexp_parser/expression/shared.rb#9 def parent=(_arg0); end - # source://regexp_parser//lib/regexp_parser/expression/quantifier.rb#31 + # source://regexp_parser/lib/regexp_parser/expression/quantifier.rb#31 def possessive?; end - # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9 + # source://regexp_parser/lib/regexp_parser/expression/shared.rb#9 def pre_quantifier_decorations; end - # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9 + # source://regexp_parser/lib/regexp_parser/expression/shared.rb#9 def pre_quantifier_decorations=(_arg0); end - # source://regexp_parser//lib/regexp_parser/expression/shared.rb#14 + # source://regexp_parser/lib/regexp_parser/expression/shared.rb#14 def quantifier; end - # source://regexp_parser//lib/regexp_parser/expression/quantifier.rb#31 + # source://regexp_parser/lib/regexp_parser/expression/quantifier.rb#31 def reluctant?; end - # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9 + # source://regexp_parser/lib/regexp_parser/expression/shared.rb#9 def set_level; end - # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9 + # source://regexp_parser/lib/regexp_parser/expression/shared.rb#9 def set_level=(_arg0); end - # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9 + # source://regexp_parser/lib/regexp_parser/expression/shared.rb#9 def te; end - # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9 + # source://regexp_parser/lib/regexp_parser/expression/shared.rb#9 def te=(_arg0); end - # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9 + # source://regexp_parser/lib/regexp_parser/expression/shared.rb#9 def text; end - # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9 + # source://regexp_parser/lib/regexp_parser/expression/shared.rb#9 def text=(_arg0); end - # source://regexp_parser//lib/regexp_parser/expression/quantifier.rb#19 + # source://regexp_parser/lib/regexp_parser/expression/quantifier.rb#19 def to_h; end - # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9 + # source://regexp_parser/lib/regexp_parser/expression/shared.rb#9 def token; end - # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9 + # source://regexp_parser/lib/regexp_parser/expression/shared.rb#9 def token=(_arg0); end - # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9 + # source://regexp_parser/lib/regexp_parser/expression/shared.rb#9 def ts; end - # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9 + # source://regexp_parser/lib/regexp_parser/expression/shared.rb#9 def ts=(_arg0); end - # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9 + # source://regexp_parser/lib/regexp_parser/expression/shared.rb#9 def type; end - # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9 + # source://regexp_parser/lib/regexp_parser/expression/shared.rb#9 def type=(_arg0); end private - # source://regexp_parser//lib/regexp_parser/expression/quantifier.rb#52 + # source://regexp_parser/lib/regexp_parser/expression/quantifier.rb#52 def deprecated_old_init(token, text, _min, _max, _mode = T.unsafe(nil)); end - # source://regexp_parser//lib/regexp_parser/expression/quantifier.rb#64 + # source://regexp_parser/lib/regexp_parser/expression/quantifier.rb#64 def derived_data; end end -# source://regexp_parser//lib/regexp_parser/expression/quantifier.rb#9 +# source://regexp_parser/lib/regexp_parser/expression/quantifier.rb#9 Regexp::Expression::Quantifier::MODES = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/expression/classes/root.rb#2 +# source://regexp_parser/lib/regexp_parser/expression/classes/root.rb#2 class Regexp::Expression::Root < ::Regexp::Expression::Subexpression - # source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#41 + # source://regexp_parser/lib/regexp_parser/expression/methods/human_name.rb#41 def human_name; end class << self - # source://regexp_parser//lib/regexp_parser/expression/classes/root.rb#3 + # source://regexp_parser/lib/regexp_parser/expression/classes/root.rb#3 def build(options = T.unsafe(nil)); end end end @@ -1332,52 +1332,52 @@ end # Used as the base class for the Alternation alternatives, Conditional # branches, and CharacterSet::Intersection intersected sequences. # -# source://regexp_parser//lib/regexp_parser/expression/sequence.rb#8 +# source://regexp_parser/lib/regexp_parser/expression/sequence.rb#8 class Regexp::Expression::Sequence < ::Regexp::Expression::Subexpression - # source://regexp_parser//lib/regexp_parser/expression/sequence.rb#27 + # source://regexp_parser/lib/regexp_parser/expression/sequence.rb#27 def quantify(token, *args); end - # source://regexp_parser//lib/regexp_parser/expression/sequence.rb#23 + # source://regexp_parser/lib/regexp_parser/expression/sequence.rb#23 def ts; end class << self - # source://regexp_parser//lib/regexp_parser/expression/sequence.rb#10 + # source://regexp_parser/lib/regexp_parser/expression/sequence.rb#10 def add_to(exp, params = T.unsafe(nil), active_opts = T.unsafe(nil)); end end end # abstract class # -# source://regexp_parser//lib/regexp_parser/expression/sequence_operation.rb#3 +# source://regexp_parser/lib/regexp_parser/expression/sequence_operation.rb#3 class Regexp::Expression::SequenceOperation < ::Regexp::Expression::Subexpression - # source://regexp_parser//lib/regexp_parser/expression/sequence_operation.rb#12 + # source://regexp_parser/lib/regexp_parser/expression/sequence_operation.rb#12 def <<(exp); end - # source://regexp_parser//lib/regexp_parser/expression/sequence_operation.rb#16 + # source://regexp_parser/lib/regexp_parser/expression/sequence_operation.rb#16 def add_sequence(active_opts = T.unsafe(nil), params = T.unsafe(nil)); end - # source://regexp_parser//lib/regexp_parser/expression/subexpression.rb#5 + # source://regexp_parser/lib/regexp_parser/expression/subexpression.rb#5 def operands; end - # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9 + # source://regexp_parser/lib/regexp_parser/expression/shared.rb#9 def operator; end - # source://regexp_parser//lib/regexp_parser/expression/methods/parts.rb#22 + # source://regexp_parser/lib/regexp_parser/expression/methods/parts.rb#22 def parts; end - # source://regexp_parser//lib/regexp_parser/expression/subexpression.rb#5 + # source://regexp_parser/lib/regexp_parser/expression/subexpression.rb#5 def sequences; end - # source://regexp_parser//lib/regexp_parser/expression/sequence_operation.rb#8 + # source://regexp_parser/lib/regexp_parser/expression/sequence_operation.rb#8 def ts; end end # alias for symmetry between token symbol and Expression class name # -# source://regexp_parser//lib/regexp_parser/expression/classes/character_set.rb#22 +# source://regexp_parser/lib/regexp_parser/expression/classes/character_set.rb#22 Regexp::Expression::Set = Regexp::Expression::CharacterSet -# source://regexp_parser//lib/regexp_parser/expression/shared.rb#2 +# source://regexp_parser/lib/regexp_parser/expression/shared.rb#2 module Regexp::Expression::Shared mixes_in_class_methods ::Regexp::Expression::Shared::ClassMethods @@ -1386,7 +1386,7 @@ module Regexp::Expression::Shared # When changing the conditions, please make sure to update # #pretty_print_instance_variables so that it includes all relevant values. # - # source://regexp_parser//lib/regexp_parser/expression/methods/tests.rb#101 + # source://regexp_parser/lib/regexp_parser/expression/methods/tests.rb#101 def ==(other); end # Deep-compare two expressions for equality. @@ -1394,25 +1394,25 @@ module Regexp::Expression::Shared # When changing the conditions, please make sure to update # #pretty_print_instance_variables so that it includes all relevant values. # - # source://regexp_parser//lib/regexp_parser/expression/methods/tests.rb#101 + # source://regexp_parser/lib/regexp_parser/expression/methods/tests.rb#101 def ===(other); end - # source://regexp_parser//lib/regexp_parser/expression/shared.rb#51 + # source://regexp_parser/lib/regexp_parser/expression/shared.rb#51 def base_length; end - # source://regexp_parser//lib/regexp_parser/expression/methods/tests.rb#124 + # source://regexp_parser/lib/regexp_parser/expression/methods/tests.rb#124 def capturing?; end - # source://regexp_parser//lib/regexp_parser/expression/shared.rb#96 + # source://regexp_parser/lib/regexp_parser/expression/shared.rb#96 def coded_offset; end - # source://regexp_parser//lib/regexp_parser/expression/methods/tests.rb#128 + # source://regexp_parser/lib/regexp_parser/expression/methods/tests.rb#128 def comment?; end - # source://regexp_parser//lib/regexp_parser/expression/methods/tests.rb#133 + # source://regexp_parser/lib/regexp_parser/expression/methods/tests.rb#133 def decorative?; end - # source://regexp_parser//lib/regexp_parser/expression/shared.rb#47 + # source://regexp_parser/lib/regexp_parser/expression/shared.rb#47 def ends_at(include_quantifier = T.unsafe(nil)); end # Deep-compare two expressions for equality. @@ -1420,18 +1420,18 @@ module Regexp::Expression::Shared # When changing the conditions, please make sure to update # #pretty_print_instance_variables so that it includes all relevant values. # - # source://regexp_parser//lib/regexp_parser/expression/methods/tests.rb#101 + # source://regexp_parser/lib/regexp_parser/expression/methods/tests.rb#101 def eql?(other); end - # source://regexp_parser//lib/regexp_parser/expression/shared.rb#55 + # source://regexp_parser/lib/regexp_parser/expression/shared.rb#55 def full_length; end # default implementation, e.g. "atomic group", "hex escape", "word type", .. # - # source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#4 + # source://regexp_parser/lib/regexp_parser/expression/methods/human_name.rb#4 def human_name; end - # source://regexp_parser//lib/regexp_parser/expression/methods/printing.rb#3 + # source://regexp_parser/lib/regexp_parser/expression/methods/printing.rb#3 def inspect; end # Test if this expression has the given test_token, and optionally a given @@ -1454,25 +1454,25 @@ module Regexp::Expression::Shared # # @return [Boolean] # - # source://regexp_parser//lib/regexp_parser/expression/methods/tests.rb#36 + # source://regexp_parser/lib/regexp_parser/expression/methods/tests.rb#36 def is?(test_token, test_type = T.unsafe(nil)); end # not an alias so as to respect overrides of #negative? # # @return [Boolean] # - # source://regexp_parser//lib/regexp_parser/expression/methods/negative.rb#8 + # source://regexp_parser/lib/regexp_parser/expression/methods/negative.rb#8 def negated?; end # @return [Boolean] # - # source://regexp_parser//lib/regexp_parser/expression/methods/negative.rb#3 + # source://regexp_parser/lib/regexp_parser/expression/methods/negative.rb#3 def negative?; end - # source://regexp_parser//lib/regexp_parser/expression/shared.rb#100 + # source://regexp_parser/lib/regexp_parser/expression/shared.rb#100 def nesting_level=(lvl); end - # source://regexp_parser//lib/regexp_parser/expression/shared.rb#92 + # source://regexp_parser/lib/regexp_parser/expression/shared.rb#92 def offset; end # Test if this expression matches an entry in the given scope spec. @@ -1511,50 +1511,50 @@ module Regexp::Expression::Shared # # @return [Boolean] # - # source://regexp_parser//lib/regexp_parser/expression/methods/tests.rb#75 + # source://regexp_parser/lib/regexp_parser/expression/methods/tests.rb#75 def one_of?(scope, top = T.unsafe(nil)); end # @return [Boolean] # - # source://regexp_parser//lib/regexp_parser/expression/methods/tests.rb#111 + # source://regexp_parser/lib/regexp_parser/expression/methods/tests.rb#111 def optional?; end # default implementation # - # source://regexp_parser//lib/regexp_parser/expression/methods/parts.rb#4 + # source://regexp_parser/lib/regexp_parser/expression/methods/parts.rb#4 def parts; end - # source://regexp_parser//lib/regexp_parser/expression/shared.rb#84 + # source://regexp_parser/lib/regexp_parser/expression/shared.rb#84 def pre_quantifier_decoration(expression_format = T.unsafe(nil)); end # Make pretty-print work despite #inspect implementation. # - # source://regexp_parser//lib/regexp_parser/expression/methods/printing.rb#12 + # source://regexp_parser/lib/regexp_parser/expression/methods/printing.rb#12 def pretty_print(q); end # Called by pretty_print (ruby/pp) and #inspect. # - # source://regexp_parser//lib/regexp_parser/expression/methods/printing.rb#17 + # source://regexp_parser/lib/regexp_parser/expression/methods/printing.rb#17 def pretty_print_instance_variables; end # @return [Boolean] # - # source://regexp_parser//lib/regexp_parser/expression/methods/tests.rb#115 + # source://regexp_parser/lib/regexp_parser/expression/methods/tests.rb#115 def quantified?; end - # source://regexp_parser//lib/regexp_parser/expression/shared.rb#106 + # source://regexp_parser/lib/regexp_parser/expression/shared.rb#106 def quantifier=(qtf); end - # source://regexp_parser//lib/regexp_parser/expression/shared.rb#88 + # source://regexp_parser/lib/regexp_parser/expression/shared.rb#88 def quantifier_affix(expression_format = T.unsafe(nil)); end - # source://regexp_parser//lib/regexp_parser/expression/methods/tests.rb#138 + # source://regexp_parser/lib/regexp_parser/expression/methods/tests.rb#138 def referential?; end - # source://regexp_parser//lib/regexp_parser/expression/shared.rb#43 + # source://regexp_parser/lib/regexp_parser/expression/shared.rb#43 def starts_at; end - # source://regexp_parser//lib/regexp_parser/expression/methods/tests.rb#120 + # source://regexp_parser/lib/regexp_parser/expression/methods/tests.rb#120 def terminal?; end # #to_s reproduces the original source, as an unparser would. @@ -1570,7 +1570,7 @@ module Regexp::Expression::Shared # lit.to_s(:base) # => 'a' # without quantifier # lit.to_s(:original) # => 'a +' # with quantifier AND intermittent decorations # - # source://regexp_parser//lib/regexp_parser/expression/shared.rb#72 + # source://regexp_parser/lib/regexp_parser/expression/shared.rb#72 def to_s(format = T.unsafe(nil)); end # #to_s reproduces the original source, as an unparser would. @@ -1586,10 +1586,10 @@ module Regexp::Expression::Shared # lit.to_s(:base) # => 'a' # without quantifier # lit.to_s(:original) # => 'a +' # with quantifier AND intermittent decorations # - # source://regexp_parser//lib/regexp_parser/expression/shared.rb#72 + # source://regexp_parser/lib/regexp_parser/expression/shared.rb#72 def to_str(format = T.unsafe(nil)); end - # source://regexp_parser//lib/regexp_parser/expression/methods/construct.rb#37 + # source://regexp_parser/lib/regexp_parser/expression/methods/construct.rb#37 def token_class; end # Test if this expression has the given test_type, which can be either @@ -1603,83 +1603,83 @@ module Regexp::Expression::Shared # # @return [Boolean] # - # source://regexp_parser//lib/regexp_parser/expression/methods/tests.rb#13 + # source://regexp_parser/lib/regexp_parser/expression/methods/tests.rb#13 def type?(test_type); end private - # source://regexp_parser//lib/regexp_parser/expression/shared.rb#18 + # source://regexp_parser/lib/regexp_parser/expression/shared.rb#18 def init_from_token_and_options(token, options = T.unsafe(nil)); end - # source://regexp_parser//lib/regexp_parser/expression/shared.rb#32 + # source://regexp_parser/lib/regexp_parser/expression/shared.rb#32 def initialize_copy(orig); end - # source://regexp_parser//lib/regexp_parser/expression/methods/parts.rb#10 + # source://regexp_parser/lib/regexp_parser/expression/methods/parts.rb#10 def intersperse(expressions, separator); end class << self # @private # - # source://regexp_parser//lib/regexp_parser/expression/shared.rb#5 + # source://regexp_parser/lib/regexp_parser/expression/shared.rb#5 def included(mod); end end end # filled in ./methods/*.rb # -# source://regexp_parser//lib/regexp_parser/expression/shared.rb#3 +# source://regexp_parser/lib/regexp_parser/expression/shared.rb#3 module Regexp::Expression::Shared::ClassMethods - # source://regexp_parser//lib/regexp_parser/expression/methods/tests.rb#125 + # source://regexp_parser/lib/regexp_parser/expression/methods/tests.rb#125 def capturing?; end - # source://regexp_parser//lib/regexp_parser/expression/methods/tests.rb#129 + # source://regexp_parser/lib/regexp_parser/expression/methods/tests.rb#129 def comment?; end # Convenience method to init a valid Expression without a Regexp::Token # # @raise [ArgumentError] # - # source://regexp_parser//lib/regexp_parser/expression/methods/construct.rb#5 + # source://regexp_parser/lib/regexp_parser/expression/methods/construct.rb#5 def construct(params = T.unsafe(nil)); end - # source://regexp_parser//lib/regexp_parser/expression/methods/construct.rb#15 + # source://regexp_parser/lib/regexp_parser/expression/methods/construct.rb#15 def construct_defaults; end - # source://regexp_parser//lib/regexp_parser/expression/methods/tests.rb#134 + # source://regexp_parser/lib/regexp_parser/expression/methods/tests.rb#134 def decorative?; end - # source://regexp_parser//lib/regexp_parser/expression/methods/tests.rb#139 + # source://regexp_parser/lib/regexp_parser/expression/methods/tests.rb#139 def referential?; end - # source://regexp_parser//lib/regexp_parser/expression/methods/tests.rb#121 + # source://regexp_parser/lib/regexp_parser/expression/methods/tests.rb#121 def terminal?; end - # source://regexp_parser//lib/regexp_parser/expression/methods/construct.rb#25 + # source://regexp_parser/lib/regexp_parser/expression/methods/construct.rb#25 def token_class; end end -# source://regexp_parser//lib/regexp_parser/expression/subexpression.rb#2 +# source://regexp_parser/lib/regexp_parser/expression/subexpression.rb#2 class Regexp::Expression::Subexpression < ::Regexp::Expression::Base include ::Enumerable # @return [Subexpression] a new instance of Subexpression # - # source://regexp_parser//lib/regexp_parser/expression/subexpression.rb#7 + # source://regexp_parser/lib/regexp_parser/expression/subexpression.rb#7 def initialize(token, options = T.unsafe(nil)); end - # source://regexp_parser//lib/regexp_parser/expression/subexpression.rb#20 + # source://regexp_parser/lib/regexp_parser/expression/subexpression.rb#20 def <<(exp); end - # source://regexp_parser//lib/regexp_parser/expression/subexpression.rb#27 + # source://regexp_parser/lib/regexp_parser/expression/subexpression.rb#27 def [](*args, &block); end - # source://regexp_parser//lib/regexp_parser/expression/subexpression.rb#27 + # source://regexp_parser/lib/regexp_parser/expression/subexpression.rb#27 def at(*args, &block); end - # source://regexp_parser//lib/regexp_parser/expression/subexpression.rb#33 + # source://regexp_parser/lib/regexp_parser/expression/subexpression.rb#33 def dig(*indices); end - # source://regexp_parser//lib/regexp_parser/expression/subexpression.rb#27 + # source://regexp_parser/lib/regexp_parser/expression/subexpression.rb#27 def each(*args, &block); end # Traverses the expression, passing each recursive child to the @@ -1687,68 +1687,68 @@ class Regexp::Expression::Subexpression < ::Regexp::Expression::Base # If the block takes two arguments, the indices of the children within # their parents are also passed to it. # - # source://regexp_parser//lib/regexp_parser/expression/methods/traverse.rb#8 + # source://regexp_parser/lib/regexp_parser/expression/methods/traverse.rb#8 def each_expression(include_self = T.unsafe(nil), &block); end - # source://regexp_parser//lib/regexp_parser/expression/subexpression.rb#27 + # source://regexp_parser/lib/regexp_parser/expression/subexpression.rb#27 def empty?(*args, &block); end # Returns the value of attribute expressions. # - # source://regexp_parser//lib/regexp_parser/expression/subexpression.rb#5 + # source://regexp_parser/lib/regexp_parser/expression/subexpression.rb#5 def expressions; end # Sets the attribute expressions # # @param value the value to set the attribute expressions to. # - # source://regexp_parser//lib/regexp_parser/expression/subexpression.rb#5 + # source://regexp_parser/lib/regexp_parser/expression/subexpression.rb#5 def expressions=(_arg0); end - # source://regexp_parser//lib/regexp_parser/expression/subexpression.rb#50 + # source://regexp_parser/lib/regexp_parser/expression/subexpression.rb#50 def extract_quantifier_target(quantifier_description); end - # source://regexp_parser//lib/regexp_parser/expression/subexpression.rb#27 + # source://regexp_parser/lib/regexp_parser/expression/subexpression.rb#27 def fetch(*args, &block); end # Returns a new array with the results of calling the given block once # for every expression. If a block is not given, returns an array with # each expression and its level index as an array. # - # source://regexp_parser//lib/regexp_parser/expression/methods/traverse.rb#56 + # source://regexp_parser/lib/regexp_parser/expression/methods/traverse.rb#56 def flat_map(include_self = T.unsafe(nil), &block); end - # source://regexp_parser//lib/regexp_parser/expression/subexpression.rb#27 + # source://regexp_parser/lib/regexp_parser/expression/subexpression.rb#27 def index(*args, &block); end - # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#118 + # source://regexp_parser/lib/regexp_parser/expression/methods/match_length.rb#118 def inner_match_length; end - # source://regexp_parser//lib/regexp_parser/expression/subexpression.rb#27 + # source://regexp_parser/lib/regexp_parser/expression/subexpression.rb#27 def join(*args, &block); end - # source://regexp_parser//lib/regexp_parser/expression/subexpression.rb#27 + # source://regexp_parser/lib/regexp_parser/expression/subexpression.rb#27 def last(*args, &block); end - # source://regexp_parser//lib/regexp_parser/expression/subexpression.rb#27 + # source://regexp_parser/lib/regexp_parser/expression/subexpression.rb#27 def length(*args, &block); end - # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#111 + # source://regexp_parser/lib/regexp_parser/expression/methods/match_length.rb#111 def match_length; end - # source://regexp_parser//lib/regexp_parser/expression/methods/parts.rb#21 + # source://regexp_parser/lib/regexp_parser/expression/methods/parts.rb#21 def parts; end - # source://regexp_parser//lib/regexp_parser/expression/methods/strfregexp.rb#102 + # source://regexp_parser/lib/regexp_parser/expression/methods/strfregexp.rb#102 def strfre_tree(format = T.unsafe(nil), include_self = T.unsafe(nil), separator = T.unsafe(nil)); end - # source://regexp_parser//lib/regexp_parser/expression/methods/strfregexp.rb#102 + # source://regexp_parser/lib/regexp_parser/expression/methods/strfregexp.rb#102 def strfregexp_tree(format = T.unsafe(nil), include_self = T.unsafe(nil), separator = T.unsafe(nil)); end - # source://regexp_parser//lib/regexp_parser/expression/subexpression.rb#39 + # source://regexp_parser/lib/regexp_parser/expression/subexpression.rb#39 def te; end - # source://regexp_parser//lib/regexp_parser/expression/subexpression.rb#43 + # source://regexp_parser/lib/regexp_parser/expression/subexpression.rb#43 def to_h; end # Traverses the subexpression (depth-first, pre-order) and calls the given @@ -1764,10 +1764,10 @@ class Regexp::Expression::Subexpression < ::Regexp::Expression::Base # # Returns self. # - # source://regexp_parser//lib/regexp_parser/expression/methods/traverse.rb#32 + # source://regexp_parser/lib/regexp_parser/expression/methods/traverse.rb#32 def traverse(include_self = T.unsafe(nil), &block); end - # source://regexp_parser//lib/regexp_parser/expression/subexpression.rb#27 + # source://regexp_parser/lib/regexp_parser/expression/subexpression.rb#27 def values_at(*args, &block); end # Traverses the subexpression (depth-first, pre-order) and calls the given @@ -1783,285 +1783,285 @@ class Regexp::Expression::Subexpression < ::Regexp::Expression::Base # # Returns self. # - # source://regexp_parser//lib/regexp_parser/expression/methods/traverse.rb#32 + # source://regexp_parser/lib/regexp_parser/expression/methods/traverse.rb#32 def walk(include_self = T.unsafe(nil), &block); end protected - # source://regexp_parser//lib/regexp_parser/expression/methods/traverse.rb#66 + # source://regexp_parser/lib/regexp_parser/expression/methods/traverse.rb#66 def each_expression_with_index(&block); end - # source://regexp_parser//lib/regexp_parser/expression/methods/traverse.rb#73 + # source://regexp_parser/lib/regexp_parser/expression/methods/traverse.rb#73 def each_expression_without_index(&block); end private # Override base method to clone the expressions as well. # - # source://regexp_parser//lib/regexp_parser/expression/subexpression.rb#13 + # source://regexp_parser/lib/regexp_parser/expression/subexpression.rb#13 def initialize_copy(orig); end class << self - # source://regexp_parser//lib/regexp_parser/expression/methods/tests.rb#122 + # source://regexp_parser/lib/regexp_parser/expression/methods/tests.rb#122 def terminal?; end end end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#2 +# source://regexp_parser/lib/regexp_parser/expression/classes/unicode_property.rb#2 module Regexp::Expression::UnicodeProperty; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#108 +# source://regexp_parser/lib/regexp_parser/expression/classes/unicode_property.rb#108 class Regexp::Expression::UnicodeProperty::Age < ::Regexp::Expression::UnicodeProperty::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#13 +# source://regexp_parser/lib/regexp_parser/expression/classes/unicode_property.rb#13 class Regexp::Expression::UnicodeProperty::Alnum < ::Regexp::Expression::UnicodeProperty::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#14 +# source://regexp_parser/lib/regexp_parser/expression/classes/unicode_property.rb#14 class Regexp::Expression::UnicodeProperty::Alpha < ::Regexp::Expression::UnicodeProperty::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#31 +# source://regexp_parser/lib/regexp_parser/expression/classes/unicode_property.rb#31 class Regexp::Expression::UnicodeProperty::Any < ::Regexp::Expression::UnicodeProperty::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#15 +# source://regexp_parser/lib/regexp_parser/expression/classes/unicode_property.rb#15 class Regexp::Expression::UnicodeProperty::Ascii < ::Regexp::Expression::UnicodeProperty::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#32 +# source://regexp_parser/lib/regexp_parser/expression/classes/unicode_property.rb#32 class Regexp::Expression::UnicodeProperty::Assigned < ::Regexp::Expression::UnicodeProperty::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#3 +# source://regexp_parser/lib/regexp_parser/expression/classes/unicode_property.rb#3 class Regexp::Expression::UnicodeProperty::Base < ::Regexp::Expression::Base - # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#98 + # source://regexp_parser/lib/regexp_parser/expression/methods/match_length.rb#98 def match_length; end - # source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#4 + # source://regexp_parser/lib/regexp_parser/expression/classes/unicode_property.rb#4 def name; end - # source://regexp_parser//lib/regexp_parser/expression/methods/negative.rb#19 + # source://regexp_parser/lib/regexp_parser/expression/methods/negative.rb#19 def negative?; end - # source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#8 + # source://regexp_parser/lib/regexp_parser/expression/classes/unicode_property.rb#8 def shortcut; end end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#16 +# source://regexp_parser/lib/regexp_parser/expression/classes/unicode_property.rb#16 class Regexp::Expression::UnicodeProperty::Blank < ::Regexp::Expression::UnicodeProperty::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#109 +# source://regexp_parser/lib/regexp_parser/expression/classes/unicode_property.rb#109 class Regexp::Expression::UnicodeProperty::Block < ::Regexp::Expression::UnicodeProperty::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#17 +# source://regexp_parser/lib/regexp_parser/expression/classes/unicode_property.rb#17 class Regexp::Expression::UnicodeProperty::Cntrl < ::Regexp::Expression::UnicodeProperty::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#97 +# source://regexp_parser/lib/regexp_parser/expression/classes/unicode_property.rb#97 module Regexp::Expression::UnicodeProperty::Codepoint; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#100 +# source://regexp_parser/lib/regexp_parser/expression/classes/unicode_property.rb#100 class Regexp::Expression::UnicodeProperty::Codepoint::Any < ::Regexp::Expression::UnicodeProperty::Codepoint::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#98 +# source://regexp_parser/lib/regexp_parser/expression/classes/unicode_property.rb#98 class Regexp::Expression::UnicodeProperty::Codepoint::Base < ::Regexp::Expression::UnicodeProperty::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#101 +# source://regexp_parser/lib/regexp_parser/expression/classes/unicode_property.rb#101 class Regexp::Expression::UnicodeProperty::Codepoint::Control < ::Regexp::Expression::UnicodeProperty::Codepoint::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#102 +# source://regexp_parser/lib/regexp_parser/expression/classes/unicode_property.rb#102 class Regexp::Expression::UnicodeProperty::Codepoint::Format < ::Regexp::Expression::UnicodeProperty::Codepoint::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#104 +# source://regexp_parser/lib/regexp_parser/expression/classes/unicode_property.rb#104 class Regexp::Expression::UnicodeProperty::Codepoint::PrivateUse < ::Regexp::Expression::UnicodeProperty::Codepoint::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#103 +# source://regexp_parser/lib/regexp_parser/expression/classes/unicode_property.rb#103 class Regexp::Expression::UnicodeProperty::Codepoint::Surrogate < ::Regexp::Expression::UnicodeProperty::Codepoint::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#105 +# source://regexp_parser/lib/regexp_parser/expression/classes/unicode_property.rb#105 class Regexp::Expression::UnicodeProperty::Codepoint::Unassigned < ::Regexp::Expression::UnicodeProperty::Codepoint::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#110 +# source://regexp_parser/lib/regexp_parser/expression/classes/unicode_property.rb#110 class Regexp::Expression::UnicodeProperty::Derived < ::Regexp::Expression::UnicodeProperty::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#18 +# source://regexp_parser/lib/regexp_parser/expression/classes/unicode_property.rb#18 class Regexp::Expression::UnicodeProperty::Digit < ::Regexp::Expression::UnicodeProperty::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#111 +# source://regexp_parser/lib/regexp_parser/expression/classes/unicode_property.rb#111 class Regexp::Expression::UnicodeProperty::Emoji < ::Regexp::Expression::UnicodeProperty::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#112 +# source://regexp_parser/lib/regexp_parser/expression/classes/unicode_property.rb#112 class Regexp::Expression::UnicodeProperty::Enumerated < ::Regexp::Expression::UnicodeProperty::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#19 +# source://regexp_parser/lib/regexp_parser/expression/classes/unicode_property.rb#19 class Regexp::Expression::UnicodeProperty::Graph < ::Regexp::Expression::UnicodeProperty::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#34 +# source://regexp_parser/lib/regexp_parser/expression/classes/unicode_property.rb#34 module Regexp::Expression::UnicodeProperty::Letter; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#37 +# source://regexp_parser/lib/regexp_parser/expression/classes/unicode_property.rb#37 class Regexp::Expression::UnicodeProperty::Letter::Any < ::Regexp::Expression::UnicodeProperty::Letter::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#35 +# source://regexp_parser/lib/regexp_parser/expression/classes/unicode_property.rb#35 class Regexp::Expression::UnicodeProperty::Letter::Base < ::Regexp::Expression::UnicodeProperty::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#38 +# source://regexp_parser/lib/regexp_parser/expression/classes/unicode_property.rb#38 class Regexp::Expression::UnicodeProperty::Letter::Cased < ::Regexp::Expression::UnicodeProperty::Letter::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#40 +# source://regexp_parser/lib/regexp_parser/expression/classes/unicode_property.rb#40 class Regexp::Expression::UnicodeProperty::Letter::Lowercase < ::Regexp::Expression::UnicodeProperty::Letter::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#42 +# source://regexp_parser/lib/regexp_parser/expression/classes/unicode_property.rb#42 class Regexp::Expression::UnicodeProperty::Letter::Modifier < ::Regexp::Expression::UnicodeProperty::Letter::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#43 +# source://regexp_parser/lib/regexp_parser/expression/classes/unicode_property.rb#43 class Regexp::Expression::UnicodeProperty::Letter::Other < ::Regexp::Expression::UnicodeProperty::Letter::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#41 +# source://regexp_parser/lib/regexp_parser/expression/classes/unicode_property.rb#41 class Regexp::Expression::UnicodeProperty::Letter::Titlecase < ::Regexp::Expression::UnicodeProperty::Letter::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#39 +# source://regexp_parser/lib/regexp_parser/expression/classes/unicode_property.rb#39 class Regexp::Expression::UnicodeProperty::Letter::Uppercase < ::Regexp::Expression::UnicodeProperty::Letter::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#20 +# source://regexp_parser/lib/regexp_parser/expression/classes/unicode_property.rb#20 class Regexp::Expression::UnicodeProperty::Lower < ::Regexp::Expression::UnicodeProperty::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#46 +# source://regexp_parser/lib/regexp_parser/expression/classes/unicode_property.rb#46 module Regexp::Expression::UnicodeProperty::Mark; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#49 +# source://regexp_parser/lib/regexp_parser/expression/classes/unicode_property.rb#49 class Regexp::Expression::UnicodeProperty::Mark::Any < ::Regexp::Expression::UnicodeProperty::Mark::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#47 +# source://regexp_parser/lib/regexp_parser/expression/classes/unicode_property.rb#47 class Regexp::Expression::UnicodeProperty::Mark::Base < ::Regexp::Expression::UnicodeProperty::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#50 +# source://regexp_parser/lib/regexp_parser/expression/classes/unicode_property.rb#50 class Regexp::Expression::UnicodeProperty::Mark::Combining < ::Regexp::Expression::UnicodeProperty::Mark::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#53 +# source://regexp_parser/lib/regexp_parser/expression/classes/unicode_property.rb#53 class Regexp::Expression::UnicodeProperty::Mark::Enclosing < ::Regexp::Expression::UnicodeProperty::Mark::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#51 +# source://regexp_parser/lib/regexp_parser/expression/classes/unicode_property.rb#51 class Regexp::Expression::UnicodeProperty::Mark::Nonspacing < ::Regexp::Expression::UnicodeProperty::Mark::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#52 +# source://regexp_parser/lib/regexp_parser/expression/classes/unicode_property.rb#52 class Regexp::Expression::UnicodeProperty::Mark::Spacing < ::Regexp::Expression::UnicodeProperty::Mark::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#29 +# source://regexp_parser/lib/regexp_parser/expression/classes/unicode_property.rb#29 class Regexp::Expression::UnicodeProperty::Newline < ::Regexp::Expression::UnicodeProperty::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#56 +# source://regexp_parser/lib/regexp_parser/expression/classes/unicode_property.rb#56 module Regexp::Expression::UnicodeProperty::Number; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#59 +# source://regexp_parser/lib/regexp_parser/expression/classes/unicode_property.rb#59 class Regexp::Expression::UnicodeProperty::Number::Any < ::Regexp::Expression::UnicodeProperty::Number::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#57 +# source://regexp_parser/lib/regexp_parser/expression/classes/unicode_property.rb#57 class Regexp::Expression::UnicodeProperty::Number::Base < ::Regexp::Expression::UnicodeProperty::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#60 +# source://regexp_parser/lib/regexp_parser/expression/classes/unicode_property.rb#60 class Regexp::Expression::UnicodeProperty::Number::Decimal < ::Regexp::Expression::UnicodeProperty::Number::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#61 +# source://regexp_parser/lib/regexp_parser/expression/classes/unicode_property.rb#61 class Regexp::Expression::UnicodeProperty::Number::Letter < ::Regexp::Expression::UnicodeProperty::Number::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#62 +# source://regexp_parser/lib/regexp_parser/expression/classes/unicode_property.rb#62 class Regexp::Expression::UnicodeProperty::Number::Other < ::Regexp::Expression::UnicodeProperty::Number::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#21 +# source://regexp_parser/lib/regexp_parser/expression/classes/unicode_property.rb#21 class Regexp::Expression::UnicodeProperty::Print < ::Regexp::Expression::UnicodeProperty::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#22 +# source://regexp_parser/lib/regexp_parser/expression/classes/unicode_property.rb#22 class Regexp::Expression::UnicodeProperty::Punct < ::Regexp::Expression::UnicodeProperty::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#65 +# source://regexp_parser/lib/regexp_parser/expression/classes/unicode_property.rb#65 module Regexp::Expression::UnicodeProperty::Punctuation; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#68 +# source://regexp_parser/lib/regexp_parser/expression/classes/unicode_property.rb#68 class Regexp::Expression::UnicodeProperty::Punctuation::Any < ::Regexp::Expression::UnicodeProperty::Punctuation::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#66 +# source://regexp_parser/lib/regexp_parser/expression/classes/unicode_property.rb#66 class Regexp::Expression::UnicodeProperty::Punctuation::Base < ::Regexp::Expression::UnicodeProperty::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#72 +# source://regexp_parser/lib/regexp_parser/expression/classes/unicode_property.rb#72 class Regexp::Expression::UnicodeProperty::Punctuation::Close < ::Regexp::Expression::UnicodeProperty::Punctuation::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#69 +# source://regexp_parser/lib/regexp_parser/expression/classes/unicode_property.rb#69 class Regexp::Expression::UnicodeProperty::Punctuation::Connector < ::Regexp::Expression::UnicodeProperty::Punctuation::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#70 +# source://regexp_parser/lib/regexp_parser/expression/classes/unicode_property.rb#70 class Regexp::Expression::UnicodeProperty::Punctuation::Dash < ::Regexp::Expression::UnicodeProperty::Punctuation::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#74 +# source://regexp_parser/lib/regexp_parser/expression/classes/unicode_property.rb#74 class Regexp::Expression::UnicodeProperty::Punctuation::Final < ::Regexp::Expression::UnicodeProperty::Punctuation::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#73 +# source://regexp_parser/lib/regexp_parser/expression/classes/unicode_property.rb#73 class Regexp::Expression::UnicodeProperty::Punctuation::Initial < ::Regexp::Expression::UnicodeProperty::Punctuation::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#71 +# source://regexp_parser/lib/regexp_parser/expression/classes/unicode_property.rb#71 class Regexp::Expression::UnicodeProperty::Punctuation::Open < ::Regexp::Expression::UnicodeProperty::Punctuation::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#75 +# source://regexp_parser/lib/regexp_parser/expression/classes/unicode_property.rb#75 class Regexp::Expression::UnicodeProperty::Punctuation::Other < ::Regexp::Expression::UnicodeProperty::Punctuation::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#113 +# source://regexp_parser/lib/regexp_parser/expression/classes/unicode_property.rb#113 class Regexp::Expression::UnicodeProperty::Script < ::Regexp::Expression::UnicodeProperty::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#78 +# source://regexp_parser/lib/regexp_parser/expression/classes/unicode_property.rb#78 module Regexp::Expression::UnicodeProperty::Separator; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#81 +# source://regexp_parser/lib/regexp_parser/expression/classes/unicode_property.rb#81 class Regexp::Expression::UnicodeProperty::Separator::Any < ::Regexp::Expression::UnicodeProperty::Separator::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#79 +# source://regexp_parser/lib/regexp_parser/expression/classes/unicode_property.rb#79 class Regexp::Expression::UnicodeProperty::Separator::Base < ::Regexp::Expression::UnicodeProperty::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#83 +# source://regexp_parser/lib/regexp_parser/expression/classes/unicode_property.rb#83 class Regexp::Expression::UnicodeProperty::Separator::Line < ::Regexp::Expression::UnicodeProperty::Separator::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#84 +# source://regexp_parser/lib/regexp_parser/expression/classes/unicode_property.rb#84 class Regexp::Expression::UnicodeProperty::Separator::Paragraph < ::Regexp::Expression::UnicodeProperty::Separator::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#82 +# source://regexp_parser/lib/regexp_parser/expression/classes/unicode_property.rb#82 class Regexp::Expression::UnicodeProperty::Separator::Space < ::Regexp::Expression::UnicodeProperty::Separator::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#23 +# source://regexp_parser/lib/regexp_parser/expression/classes/unicode_property.rb#23 class Regexp::Expression::UnicodeProperty::Space < ::Regexp::Expression::UnicodeProperty::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#87 +# source://regexp_parser/lib/regexp_parser/expression/classes/unicode_property.rb#87 module Regexp::Expression::UnicodeProperty::Symbol; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#90 +# source://regexp_parser/lib/regexp_parser/expression/classes/unicode_property.rb#90 class Regexp::Expression::UnicodeProperty::Symbol::Any < ::Regexp::Expression::UnicodeProperty::Symbol::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#88 +# source://regexp_parser/lib/regexp_parser/expression/classes/unicode_property.rb#88 class Regexp::Expression::UnicodeProperty::Symbol::Base < ::Regexp::Expression::UnicodeProperty::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#92 +# source://regexp_parser/lib/regexp_parser/expression/classes/unicode_property.rb#92 class Regexp::Expression::UnicodeProperty::Symbol::Currency < ::Regexp::Expression::UnicodeProperty::Symbol::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#91 +# source://regexp_parser/lib/regexp_parser/expression/classes/unicode_property.rb#91 class Regexp::Expression::UnicodeProperty::Symbol::Math < ::Regexp::Expression::UnicodeProperty::Symbol::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#93 +# source://regexp_parser/lib/regexp_parser/expression/classes/unicode_property.rb#93 class Regexp::Expression::UnicodeProperty::Symbol::Modifier < ::Regexp::Expression::UnicodeProperty::Symbol::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#94 +# source://regexp_parser/lib/regexp_parser/expression/classes/unicode_property.rb#94 class Regexp::Expression::UnicodeProperty::Symbol::Other < ::Regexp::Expression::UnicodeProperty::Symbol::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#24 +# source://regexp_parser/lib/regexp_parser/expression/classes/unicode_property.rb#24 class Regexp::Expression::UnicodeProperty::Upper < ::Regexp::Expression::UnicodeProperty::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#25 +# source://regexp_parser/lib/regexp_parser/expression/classes/unicode_property.rb#25 class Regexp::Expression::UnicodeProperty::Word < ::Regexp::Expression::UnicodeProperty::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#27 +# source://regexp_parser/lib/regexp_parser/expression/classes/unicode_property.rb#27 class Regexp::Expression::UnicodeProperty::XPosixPunct < ::Regexp::Expression::UnicodeProperty::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#26 +# source://regexp_parser/lib/regexp_parser/expression/classes/unicode_property.rb#26 class Regexp::Expression::UnicodeProperty::Xdigit < ::Regexp::Expression::UnicodeProperty::Base; end -# source://regexp_parser//lib/regexp_parser/expression/classes/free_space.rb#11 +# source://regexp_parser/lib/regexp_parser/expression/classes/free_space.rb#11 class Regexp::Expression::WhiteSpace < ::Regexp::Expression::FreeSpace - # source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#42 + # source://regexp_parser/lib/regexp_parser/expression/methods/human_name.rb#42 def human_name; end - # source://regexp_parser//lib/regexp_parser/expression/classes/free_space.rb#12 + # source://regexp_parser/lib/regexp_parser/expression/classes/free_space.rb#12 def merge(exp); end end @@ -2070,559 +2070,559 @@ end # normalizes tokens for the parser, and checks if they are implemented by the # given syntax flavor. # -# source://regexp_parser//lib/regexp_parser/lexer.rb#5 +# source://regexp_parser/lib/regexp_parser/lexer.rb#5 class Regexp::Lexer - # source://regexp_parser//lib/regexp_parser/lexer.rb#71 + # source://regexp_parser/lib/regexp_parser/lexer.rb#71 def emit(token); end - # source://regexp_parser//lib/regexp_parser/lexer.rb#20 + # source://regexp_parser/lib/regexp_parser/lexer.rb#20 def lex(input, syntax = T.unsafe(nil), options: T.unsafe(nil), collect_tokens: T.unsafe(nil), &block); end private - # source://regexp_parser//lib/regexp_parser/lexer.rb#91 + # source://regexp_parser/lib/regexp_parser/lexer.rb#91 def ascend(type, token); end # Returns the value of attribute block. # - # source://regexp_parser//lib/regexp_parser/lexer.rb#87 + # source://regexp_parser/lib/regexp_parser/lexer.rb#87 def block; end # Sets the attribute block # # @param value the value to set the attribute block to. # - # source://regexp_parser//lib/regexp_parser/lexer.rb#87 + # source://regexp_parser/lib/regexp_parser/lexer.rb#87 def block=(_arg0); end # if a codepoint list is followed by a quantifier, that quantifier applies # to the last codepoint, e.g. /\u{61 62 63}{3}/ =~ 'abccc' # c.f. #break_literal. # - # source://regexp_parser//lib/regexp_parser/lexer.rb#143 + # source://regexp_parser/lib/regexp_parser/lexer.rb#143 def break_codepoint_list(token); end # called by scan to break a literal run that is longer than one character # into two separate tokens when it is followed by a quantifier # - # source://regexp_parser//lib/regexp_parser/lexer.rb#123 + # source://regexp_parser/lib/regexp_parser/lexer.rb#123 def break_literal(token); end # Returns the value of attribute collect_tokens. # - # source://regexp_parser//lib/regexp_parser/lexer.rb#87 + # source://regexp_parser/lib/regexp_parser/lexer.rb#87 def collect_tokens; end # Sets the attribute collect_tokens # # @param value the value to set the attribute collect_tokens to. # - # source://regexp_parser//lib/regexp_parser/lexer.rb#87 + # source://regexp_parser/lib/regexp_parser/lexer.rb#87 def collect_tokens=(_arg0); end # Returns the value of attribute conditional_nesting. # - # source://regexp_parser//lib/regexp_parser/lexer.rb#87 + # source://regexp_parser/lib/regexp_parser/lexer.rb#87 def conditional_nesting; end # Sets the attribute conditional_nesting # # @param value the value to set the attribute conditional_nesting to. # - # source://regexp_parser//lib/regexp_parser/lexer.rb#87 + # source://regexp_parser/lib/regexp_parser/lexer.rb#87 def conditional_nesting=(_arg0); end - # source://regexp_parser//lib/regexp_parser/lexer.rb#106 + # source://regexp_parser/lib/regexp_parser/lexer.rb#106 def descend(type, token); end - # source://regexp_parser//lib/regexp_parser/lexer.rb#162 + # source://regexp_parser/lib/regexp_parser/lexer.rb#162 def merge_condition(current, last); end # Returns the value of attribute nesting. # - # source://regexp_parser//lib/regexp_parser/lexer.rb#87 + # source://regexp_parser/lib/regexp_parser/lexer.rb#87 def nesting; end # Sets the attribute nesting # # @param value the value to set the attribute nesting to. # - # source://regexp_parser//lib/regexp_parser/lexer.rb#87 + # source://regexp_parser/lib/regexp_parser/lexer.rb#87 def nesting=(_arg0); end # Returns the value of attribute preprev_token. # - # source://regexp_parser//lib/regexp_parser/lexer.rb#87 + # source://regexp_parser/lib/regexp_parser/lexer.rb#87 def preprev_token; end # Sets the attribute preprev_token # # @param value the value to set the attribute preprev_token to. # - # source://regexp_parser//lib/regexp_parser/lexer.rb#87 + # source://regexp_parser/lib/regexp_parser/lexer.rb#87 def preprev_token=(_arg0); end # Returns the value of attribute prev_token. # - # source://regexp_parser//lib/regexp_parser/lexer.rb#87 + # source://regexp_parser/lib/regexp_parser/lexer.rb#87 def prev_token; end # Sets the attribute prev_token # # @param value the value to set the attribute prev_token to. # - # source://regexp_parser//lib/regexp_parser/lexer.rb#87 + # source://regexp_parser/lib/regexp_parser/lexer.rb#87 def prev_token=(_arg0); end # Returns the value of attribute set_nesting. # - # source://regexp_parser//lib/regexp_parser/lexer.rb#87 + # source://regexp_parser/lib/regexp_parser/lexer.rb#87 def set_nesting; end # Sets the attribute set_nesting # # @param value the value to set the attribute set_nesting to. # - # source://regexp_parser//lib/regexp_parser/lexer.rb#87 + # source://regexp_parser/lib/regexp_parser/lexer.rb#87 def set_nesting=(_arg0); end # Returns the value of attribute shift. # - # source://regexp_parser//lib/regexp_parser/lexer.rb#87 + # source://regexp_parser/lib/regexp_parser/lexer.rb#87 def shift; end # Sets the attribute shift # # @param value the value to set the attribute shift to. # - # source://regexp_parser//lib/regexp_parser/lexer.rb#87 + # source://regexp_parser/lib/regexp_parser/lexer.rb#87 def shift=(_arg0); end # Returns the value of attribute tokens. # - # source://regexp_parser//lib/regexp_parser/lexer.rb#87 + # source://regexp_parser/lib/regexp_parser/lexer.rb#87 def tokens; end # Sets the attribute tokens # # @param value the value to set the attribute tokens to. # - # source://regexp_parser//lib/regexp_parser/lexer.rb#87 + # source://regexp_parser/lib/regexp_parser/lexer.rb#87 def tokens=(_arg0); end class << self - # source://regexp_parser//lib/regexp_parser/lexer.rb#16 + # source://regexp_parser/lib/regexp_parser/lexer.rb#16 def lex(input, syntax = T.unsafe(nil), options: T.unsafe(nil), collect_tokens: T.unsafe(nil), &block); end - # source://regexp_parser//lib/regexp_parser/lexer.rb#16 + # source://regexp_parser/lib/regexp_parser/lexer.rb#16 def scan(input, syntax = T.unsafe(nil), options: T.unsafe(nil), collect_tokens: T.unsafe(nil), &block); end end end -# source://regexp_parser//lib/regexp_parser/lexer.rb#12 +# source://regexp_parser/lib/regexp_parser/lexer.rb#12 Regexp::Lexer::CLOSING_TOKENS = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/lexer.rb#14 +# source://regexp_parser/lib/regexp_parser/lexer.rb#14 Regexp::Lexer::CONDITION_TOKENS = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/lexer.rb#7 +# source://regexp_parser/lib/regexp_parser/lexer.rb#7 Regexp::Lexer::OPENING_TOKENS = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#1 +# source://regexp_parser/lib/regexp_parser/expression/methods/match_length.rb#1 class Regexp::MatchLength include ::Enumerable # @return [MatchLength] a new instance of MatchLength # - # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#9 + # source://regexp_parser/lib/regexp_parser/expression/methods/match_length.rb#9 def initialize(exp, opts = T.unsafe(nil)); end - # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#24 + # source://regexp_parser/lib/regexp_parser/expression/methods/match_length.rb#24 def each(opts = T.unsafe(nil)); end - # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#35 + # source://regexp_parser/lib/regexp_parser/expression/methods/match_length.rb#35 def endless_each; end # @return [Boolean] # - # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#44 + # source://regexp_parser/lib/regexp_parser/expression/methods/match_length.rb#44 def fixed?; end # @return [Boolean] # - # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#40 + # source://regexp_parser/lib/regexp_parser/expression/methods/match_length.rb#40 def include?(length); end - # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#60 + # source://regexp_parser/lib/regexp_parser/expression/methods/match_length.rb#60 def inspect; end - # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#52 + # source://regexp_parser/lib/regexp_parser/expression/methods/match_length.rb#52 def max; end - # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#48 + # source://regexp_parser/lib/regexp_parser/expression/methods/match_length.rb#48 def min; end - # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#56 + # source://regexp_parser/lib/regexp_parser/expression/methods/match_length.rb#56 def minmax; end - # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#65 + # source://regexp_parser/lib/regexp_parser/expression/methods/match_length.rb#65 def to_re; end private # Returns the value of attribute base_max. # - # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#71 + # source://regexp_parser/lib/regexp_parser/expression/methods/match_length.rb#71 def base_max; end # Sets the attribute base_max # # @param value the value to set the attribute base_max to. # - # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#71 + # source://regexp_parser/lib/regexp_parser/expression/methods/match_length.rb#71 def base_max=(_arg0); end # Returns the value of attribute base_min. # - # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#71 + # source://regexp_parser/lib/regexp_parser/expression/methods/match_length.rb#71 def base_min; end # Sets the attribute base_min # # @param value the value to set the attribute base_min to. # - # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#71 + # source://regexp_parser/lib/regexp_parser/expression/methods/match_length.rb#71 def base_min=(_arg0); end # Returns the value of attribute exp_class. # - # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#71 + # source://regexp_parser/lib/regexp_parser/expression/methods/match_length.rb#71 def exp_class; end # Sets the attribute exp_class # # @param value the value to set the attribute exp_class to. # - # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#71 + # source://regexp_parser/lib/regexp_parser/expression/methods/match_length.rb#71 def exp_class=(_arg0); end # Returns the value of attribute max_rep. # - # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#71 + # source://regexp_parser/lib/regexp_parser/expression/methods/match_length.rb#71 def max_rep; end # Sets the attribute max_rep # # @param value the value to set the attribute max_rep to. # - # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#71 + # source://regexp_parser/lib/regexp_parser/expression/methods/match_length.rb#71 def max_rep=(_arg0); end # Returns the value of attribute min_rep. # - # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#71 + # source://regexp_parser/lib/regexp_parser/expression/methods/match_length.rb#71 def min_rep; end # Sets the attribute min_rep # # @param value the value to set the attribute min_rep to. # - # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#71 + # source://regexp_parser/lib/regexp_parser/expression/methods/match_length.rb#71 def min_rep=(_arg0); end # Returns the value of attribute reify. # - # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#71 + # source://regexp_parser/lib/regexp_parser/expression/methods/match_length.rb#71 def reify; end # Sets the attribute reify # # @param value the value to set the attribute reify to. # - # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#71 + # source://regexp_parser/lib/regexp_parser/expression/methods/match_length.rb#71 def reify=(_arg0); end - # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#74 + # source://regexp_parser/lib/regexp_parser/expression/methods/match_length.rb#74 def test_regexp; end class << self - # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#4 + # source://regexp_parser/lib/regexp_parser/expression/methods/match_length.rb#4 def of(obj); end end end -# source://regexp_parser//lib/regexp_parser/version.rb#2 +# source://regexp_parser/lib/regexp_parser/version.rb#2 class Regexp::Parser include ::Regexp::Expression - # source://regexp_parser//lib/regexp_parser/parser.rb#25 + # source://regexp_parser/lib/regexp_parser/parser.rb#25 def parse(input, syntax = T.unsafe(nil), options: T.unsafe(nil), &block); end private - # source://regexp_parser//lib/regexp_parser/parser.rb#574 + # source://regexp_parser/lib/regexp_parser/parser.rb#574 def active_opts; end - # source://regexp_parser//lib/regexp_parser/parser.rb#99 + # source://regexp_parser/lib/regexp_parser/parser.rb#99 def anchor(token); end - # source://regexp_parser//lib/regexp_parser/parser.rb#262 + # source://regexp_parser/lib/regexp_parser/parser.rb#262 def assign_effective_number(exp); end # Assigns referenced expressions to referring expressions, e.g. if there is # an instance of Backreference::Number, its #referenced_expression is set to # the instance of Group::Capture that it refers to via its number. # - # source://regexp_parser//lib/regexp_parser/parser.rb#581 + # source://regexp_parser/lib/regexp_parser/parser.rb#581 def assign_referenced_expressions; end - # source://regexp_parser//lib/regexp_parser/parser.rb#227 + # source://regexp_parser/lib/regexp_parser/parser.rb#227 def backref(token); end - # source://regexp_parser//lib/regexp_parser/parser.rb#202 + # source://regexp_parser/lib/regexp_parser/parser.rb#202 def captured_group_count_at_level; end # Returns the value of attribute captured_group_counts. # - # source://regexp_parser//lib/regexp_parser/parser.rb#56 + # source://regexp_parser/lib/regexp_parser/parser.rb#56 def captured_group_counts; end # Sets the attribute captured_group_counts # # @param value the value to set the attribute captured_group_counts to. # - # source://regexp_parser//lib/regexp_parser/parser.rb#56 + # source://regexp_parser/lib/regexp_parser/parser.rb#56 def captured_group_counts=(_arg0); end - # source://regexp_parser//lib/regexp_parser/parser.rb#570 + # source://regexp_parser/lib/regexp_parser/parser.rb#570 def close_completed_character_set_range; end - # source://regexp_parser//lib/regexp_parser/parser.rb#210 + # source://regexp_parser/lib/regexp_parser/parser.rb#210 def close_group; end - # source://regexp_parser//lib/regexp_parser/parser.rb#538 + # source://regexp_parser/lib/regexp_parser/parser.rb#538 def close_set; end - # source://regexp_parser//lib/regexp_parser/parser.rb#269 + # source://regexp_parser/lib/regexp_parser/parser.rb#269 def conditional(token); end # Returns the value of attribute conditional_nesting. # - # source://regexp_parser//lib/regexp_parser/parser.rb#56 + # source://regexp_parser/lib/regexp_parser/parser.rb#56 def conditional_nesting; end # Sets the attribute conditional_nesting # # @param value the value to set the attribute conditional_nesting to. # - # source://regexp_parser//lib/regexp_parser/parser.rb#56 + # source://regexp_parser/lib/regexp_parser/parser.rb#56 def conditional_nesting=(_arg0); end - # source://regexp_parser//lib/regexp_parser/parser.rb#206 + # source://regexp_parser/lib/regexp_parser/parser.rb#206 def count_captured_group; end # @yield [node] # - # source://regexp_parser//lib/regexp_parser/parser.rb#216 + # source://regexp_parser/lib/regexp_parser/parser.rb#216 def decrease_nesting; end - # source://regexp_parser//lib/regexp_parser/parser.rb#305 + # source://regexp_parser/lib/regexp_parser/parser.rb#305 def escape(token); end - # source://regexp_parser//lib/regexp_parser/parser.rb#60 + # source://regexp_parser/lib/regexp_parser/parser.rb#60 def extract_options(input, options); end - # source://regexp_parser//lib/regexp_parser/parser.rb#349 + # source://regexp_parser/lib/regexp_parser/parser.rb#349 def free_space(token); end - # source://regexp_parser//lib/regexp_parser/parser.rb#114 + # source://regexp_parser/lib/regexp_parser/parser.rb#114 def group(token); end - # source://regexp_parser//lib/regexp_parser/parser.rb#509 + # source://regexp_parser/lib/regexp_parser/parser.rb#509 def increase_group_level(exp); end - # source://regexp_parser//lib/regexp_parser/parser.rb#549 + # source://regexp_parser/lib/regexp_parser/parser.rb#549 def intersection(token); end - # source://regexp_parser//lib/regexp_parser/parser.rb#360 + # source://regexp_parser/lib/regexp_parser/parser.rb#360 def keep(token); end - # source://regexp_parser//lib/regexp_parser/parser.rb#364 + # source://regexp_parser/lib/regexp_parser/parser.rb#364 def literal(token); end - # source://regexp_parser//lib/regexp_parser/parser.rb#368 + # source://regexp_parser/lib/regexp_parser/parser.rb#368 def meta(token); end - # source://regexp_parser//lib/regexp_parser/parser.rb#534 + # source://regexp_parser/lib/regexp_parser/parser.rb#534 def negate_set; end - # source://regexp_parser//lib/regexp_parser/parser.rb#299 + # source://regexp_parser/lib/regexp_parser/parser.rb#299 def nest(exp); end - # source://regexp_parser//lib/regexp_parser/parser.rb#294 + # source://regexp_parser/lib/regexp_parser/parser.rb#294 def nest_conditional(exp); end # Returns the value of attribute nesting. # - # source://regexp_parser//lib/regexp_parser/parser.rb#56 + # source://regexp_parser/lib/regexp_parser/parser.rb#56 def nesting; end # Sets the attribute nesting # # @param value the value to set the attribute nesting to. # - # source://regexp_parser//lib/regexp_parser/parser.rb#56 + # source://regexp_parser/lib/regexp_parser/parser.rb#56 def nesting=(_arg0); end # Returns the value of attribute node. # - # source://regexp_parser//lib/regexp_parser/parser.rb#56 + # source://regexp_parser/lib/regexp_parser/parser.rb#56 def node; end # Sets the attribute node # # @param value the value to set the attribute node to. # - # source://regexp_parser//lib/regexp_parser/parser.rb#56 + # source://regexp_parser/lib/regexp_parser/parser.rb#56 def node=(_arg0); end - # source://regexp_parser//lib/regexp_parser/parser.rb#165 + # source://regexp_parser/lib/regexp_parser/parser.rb#165 def open_group(token); end - # source://regexp_parser//lib/regexp_parser/parser.rb#527 + # source://regexp_parser/lib/regexp_parser/parser.rb#527 def open_set(token); end - # source://regexp_parser//lib/regexp_parser/parser.rb#130 + # source://regexp_parser/lib/regexp_parser/parser.rb#130 def options_group(token); end # Returns the value of attribute options_stack. # - # source://regexp_parser//lib/regexp_parser/parser.rb#56 + # source://regexp_parser/lib/regexp_parser/parser.rb#56 def options_stack; end # Sets the attribute options_stack # # @param value the value to set the attribute options_stack to. # - # source://regexp_parser//lib/regexp_parser/parser.rb#56 + # source://regexp_parser/lib/regexp_parser/parser.rb#56 def options_stack=(_arg0); end - # source://regexp_parser//lib/regexp_parser/parser.rb#76 + # source://regexp_parser/lib/regexp_parser/parser.rb#76 def parse_token(token); end - # source://regexp_parser//lib/regexp_parser/parser.rb#390 + # source://regexp_parser/lib/regexp_parser/parser.rb#390 def posixclass(token); end - # source://regexp_parser//lib/regexp_parser/parser.rb#397 + # source://regexp_parser/lib/regexp_parser/parser.rb#397 def property(token); end - # source://regexp_parser//lib/regexp_parser/parser.rb#479 + # source://regexp_parser/lib/regexp_parser/parser.rb#479 def quantifier(token); end - # source://regexp_parser//lib/regexp_parser/parser.rb#542 + # source://regexp_parser/lib/regexp_parser/parser.rb#542 def range(token); end # Returns the value of attribute root. # - # source://regexp_parser//lib/regexp_parser/parser.rb#56 + # source://regexp_parser/lib/regexp_parser/parser.rb#56 def root; end # Sets the attribute root # # @param value the value to set the attribute root to. # - # source://regexp_parser//lib/regexp_parser/parser.rb#56 + # source://regexp_parser/lib/regexp_parser/parser.rb#56 def root=(_arg0); end - # source://regexp_parser//lib/regexp_parser/parser.rb#379 + # source://regexp_parser/lib/regexp_parser/parser.rb#379 def sequence_operation(klass, token); end - # source://regexp_parser//lib/regexp_parser/parser.rb#515 + # source://regexp_parser/lib/regexp_parser/parser.rb#515 def set(token); end # Returns the value of attribute switching_options. # - # source://regexp_parser//lib/regexp_parser/parser.rb#56 + # source://regexp_parser/lib/regexp_parser/parser.rb#56 def switching_options; end # Sets the attribute switching_options # # @param value the value to set the attribute switching_options to. # - # source://regexp_parser//lib/regexp_parser/parser.rb#56 + # source://regexp_parser/lib/regexp_parser/parser.rb#56 def switching_options=(_arg0); end - # source://regexp_parser//lib/regexp_parser/parser.rb#198 + # source://regexp_parser/lib/regexp_parser/parser.rb#198 def total_captured_group_count; end - # source://regexp_parser//lib/regexp_parser/parser.rb#553 + # source://regexp_parser/lib/regexp_parser/parser.rb#553 def type(token); end class << self - # source://regexp_parser//lib/regexp_parser/parser.rb#21 + # source://regexp_parser/lib/regexp_parser/parser.rb#21 def parse(input, syntax = T.unsafe(nil), options: T.unsafe(nil), &block); end end end -# source://regexp_parser//lib/regexp_parser/parser.rb#128 +# source://regexp_parser/lib/regexp_parser/parser.rb#128 Regexp::Parser::ENC_FLAGS = T.let(T.unsafe(nil), Array) # base class for all gem-specific errors # -# source://regexp_parser//lib/regexp_parser/error.rb#3 +# source://regexp_parser/lib/regexp_parser/error.rb#3 class Regexp::Parser::Error < ::StandardError; end -# source://regexp_parser//lib/regexp_parser/parser.rb#127 +# source://regexp_parser/lib/regexp_parser/parser.rb#127 Regexp::Parser::MOD_FLAGS = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/parser.rb#7 +# source://regexp_parser/lib/regexp_parser/parser.rb#7 class Regexp::Parser::ParserError < ::Regexp::Parser::Error; end -# source://regexp_parser//lib/regexp_parser/parser.rb#394 +# source://regexp_parser/lib/regexp_parser/parser.rb#394 Regexp::Parser::UP = Regexp::Expression::UnicodeProperty -# source://regexp_parser//lib/regexp_parser/parser.rb#395 +# source://regexp_parser/lib/regexp_parser/parser.rb#395 Regexp::Parser::UPTokens = Regexp::Syntax::Token::UnicodeProperty -# source://regexp_parser//lib/regexp_parser/parser.rb#15 +# source://regexp_parser/lib/regexp_parser/parser.rb#15 class Regexp::Parser::UnknownTokenError < ::Regexp::Parser::ParserError # @return [UnknownTokenError] a new instance of UnknownTokenError # - # source://regexp_parser//lib/regexp_parser/parser.rb#16 + # source://regexp_parser/lib/regexp_parser/parser.rb#16 def initialize(type, token); end end -# source://regexp_parser//lib/regexp_parser/parser.rb#9 +# source://regexp_parser/lib/regexp_parser/parser.rb#9 class Regexp::Parser::UnknownTokenTypeError < ::Regexp::Parser::ParserError # @return [UnknownTokenTypeError] a new instance of UnknownTokenTypeError # - # source://regexp_parser//lib/regexp_parser/parser.rb#10 + # source://regexp_parser/lib/regexp_parser/parser.rb#10 def initialize(type, token); end end -# source://regexp_parser//lib/regexp_parser/version.rb#3 +# source://regexp_parser/lib/regexp_parser/version.rb#3 Regexp::Parser::VERSION = T.let(T.unsafe(nil), String) -# source://regexp_parser//lib/regexp_parser/scanner/errors/scanner_error.rb#3 +# source://regexp_parser/lib/regexp_parser/scanner/errors/scanner_error.rb#3 class Regexp::Scanner # Emits an array with the details of the scanned pattern # - # source://regexp_parser//lib/regexp_parser/scanner.rb#2406 + # source://regexp_parser/lib/regexp_parser/scanner.rb#2363 def emit(type, token, text); end # only public for #||= to work on ruby <= 2.5 # - # source://regexp_parser//lib/regexp_parser/scanner.rb#2431 + # source://regexp_parser/lib/regexp_parser/scanner.rb#2388 def literal_run; end # only public for #||= to work on ruby <= 2.5 # - # source://regexp_parser//lib/regexp_parser/scanner.rb#2431 + # source://regexp_parser/lib/regexp_parser/scanner.rb#2388 def literal_run=(_arg0); end # @raise [PrematureEndError] # - # source://regexp_parser//lib/regexp_parser/scanner.rb#24 + # source://regexp_parser/lib/regexp_parser/scanner.rb#24 def scan(input_object, options: T.unsafe(nil), collect_tokens: T.unsafe(nil), &block); end private @@ -2630,168 +2630,168 @@ class Regexp::Scanner # Appends one or more characters to the literal buffer, to be emitted later # by a call to emit_literal. # - # source://regexp_parser//lib/regexp_parser/scanner.rb#2468 + # source://regexp_parser/lib/regexp_parser/scanner.rb#2425 def append_literal(data, ts, te); end # Returns the value of attribute block. # - # source://regexp_parser//lib/regexp_parser/scanner.rb#2435 + # source://regexp_parser/lib/regexp_parser/scanner.rb#2392 def block; end # Sets the attribute block # # @param value the value to set the attribute block to. # - # source://regexp_parser//lib/regexp_parser/scanner.rb#2435 + # source://regexp_parser/lib/regexp_parser/scanner.rb#2392 def block=(_arg0); end # Returns the value of attribute char_pos. # - # source://regexp_parser//lib/regexp_parser/scanner.rb#2435 + # source://regexp_parser/lib/regexp_parser/scanner.rb#2392 def char_pos; end # Sets the attribute char_pos # # @param value the value to set the attribute char_pos to. # - # source://regexp_parser//lib/regexp_parser/scanner.rb#2435 + # source://regexp_parser/lib/regexp_parser/scanner.rb#2392 def char_pos=(_arg0); end # Returns the value of attribute collect_tokens. # - # source://regexp_parser//lib/regexp_parser/scanner.rb#2435 + # source://regexp_parser/lib/regexp_parser/scanner.rb#2392 def collect_tokens; end # Sets the attribute collect_tokens # # @param value the value to set the attribute collect_tokens to. # - # source://regexp_parser//lib/regexp_parser/scanner.rb#2435 + # source://regexp_parser/lib/regexp_parser/scanner.rb#2392 def collect_tokens=(_arg0); end # Returns the value of attribute conditional_stack. # - # source://regexp_parser//lib/regexp_parser/scanner.rb#2435 + # source://regexp_parser/lib/regexp_parser/scanner.rb#2392 def conditional_stack; end # Sets the attribute conditional_stack # # @param value the value to set the attribute conditional_stack to. # - # source://regexp_parser//lib/regexp_parser/scanner.rb#2435 + # source://regexp_parser/lib/regexp_parser/scanner.rb#2392 def conditional_stack=(_arg0); end # Copy from ts to te from data as text # - # source://regexp_parser//lib/regexp_parser/scanner.rb#2462 + # source://regexp_parser/lib/regexp_parser/scanner.rb#2419 def copy(data, ts, te); end # Emits the literal run collected by calls to the append_literal method. # - # source://regexp_parser//lib/regexp_parser/scanner.rb#2473 + # source://regexp_parser/lib/regexp_parser/scanner.rb#2430 def emit_literal; end - # source://regexp_parser//lib/regexp_parser/scanner.rb#2508 + # source://regexp_parser/lib/regexp_parser/scanner.rb#2465 def emit_meta_control_sequence(data, ts, te, token); end - # source://regexp_parser//lib/regexp_parser/scanner.rb#2479 + # source://regexp_parser/lib/regexp_parser/scanner.rb#2436 def emit_options(text); end # Returns the value of attribute free_spacing. # - # source://regexp_parser//lib/regexp_parser/scanner.rb#2435 + # source://regexp_parser/lib/regexp_parser/scanner.rb#2392 def free_spacing; end # Sets the attribute free_spacing # # @param value the value to set the attribute free_spacing to. # - # source://regexp_parser//lib/regexp_parser/scanner.rb#2435 + # source://regexp_parser/lib/regexp_parser/scanner.rb#2392 def free_spacing=(_arg0); end # @return [Boolean] # - # source://regexp_parser//lib/regexp_parser/scanner.rb#2441 + # source://regexp_parser/lib/regexp_parser/scanner.rb#2398 def free_spacing?(input_object, options); end # Returns the value of attribute group_depth. # - # source://regexp_parser//lib/regexp_parser/scanner.rb#2435 + # source://regexp_parser/lib/regexp_parser/scanner.rb#2392 def group_depth; end # Sets the attribute group_depth # # @param value the value to set the attribute group_depth to. # - # source://regexp_parser//lib/regexp_parser/scanner.rb#2435 + # source://regexp_parser/lib/regexp_parser/scanner.rb#2392 def group_depth=(_arg0); end # @return [Boolean] # - # source://regexp_parser//lib/regexp_parser/scanner.rb#2453 + # source://regexp_parser/lib/regexp_parser/scanner.rb#2410 def in_group?; end # @return [Boolean] # - # source://regexp_parser//lib/regexp_parser/scanner.rb#2457 + # source://regexp_parser/lib/regexp_parser/scanner.rb#2414 def in_set?; end # Returns the value of attribute prev_token. # - # source://regexp_parser//lib/regexp_parser/scanner.rb#2435 + # source://regexp_parser/lib/regexp_parser/scanner.rb#2392 def prev_token; end # Sets the attribute prev_token # # @param value the value to set the attribute prev_token to. # - # source://regexp_parser//lib/regexp_parser/scanner.rb#2435 + # source://regexp_parser/lib/regexp_parser/scanner.rb#2392 def prev_token=(_arg0); end # Returns the value of attribute set_depth. # - # source://regexp_parser//lib/regexp_parser/scanner.rb#2435 + # source://regexp_parser/lib/regexp_parser/scanner.rb#2392 def set_depth; end # Sets the attribute set_depth # # @param value the value to set the attribute set_depth to. # - # source://regexp_parser//lib/regexp_parser/scanner.rb#2435 + # source://regexp_parser/lib/regexp_parser/scanner.rb#2392 def set_depth=(_arg0); end # Returns the value of attribute spacing_stack. # - # source://regexp_parser//lib/regexp_parser/scanner.rb#2435 + # source://regexp_parser/lib/regexp_parser/scanner.rb#2392 def spacing_stack; end # Sets the attribute spacing_stack # # @param value the value to set the attribute spacing_stack to. # - # source://regexp_parser//lib/regexp_parser/scanner.rb#2435 + # source://regexp_parser/lib/regexp_parser/scanner.rb#2392 def spacing_stack=(_arg0); end # Returns the value of attribute tokens. # - # source://regexp_parser//lib/regexp_parser/scanner.rb#2435 + # source://regexp_parser/lib/regexp_parser/scanner.rb#2392 def tokens; end # Sets the attribute tokens # # @param value the value to set the attribute tokens to. # - # source://regexp_parser//lib/regexp_parser/scanner.rb#2435 + # source://regexp_parser/lib/regexp_parser/scanner.rb#2392 def tokens=(_arg0); end class << self - # source://regexp_parser//lib/regexp_parser/scanner.rb#2392 + # source://regexp_parser/lib/regexp_parser/scanner.rb#2349 def long_prop_map; end - # source://regexp_parser//lib/regexp_parser/scanner.rb#2396 + # source://regexp_parser/lib/regexp_parser/scanner.rb#2353 def parse_prop_map(name); end - # source://regexp_parser//lib/regexp_parser/scanner.rb#2400 + # source://regexp_parser/lib/regexp_parser/scanner.rb#2357 def posix_classes; end # Scans the given regular expression text, or Regexp object and collects the @@ -2801,103 +2801,103 @@ class Regexp::Scanner # This method may raise errors if a syntax error is encountered. # -------------------------------------------------------------------------- # - # source://regexp_parser//lib/regexp_parser/scanner.rb#20 + # source://regexp_parser/lib/regexp_parser/scanner.rb#20 def scan(input_object, options: T.unsafe(nil), collect_tokens: T.unsafe(nil), &block); end # lazy-load property maps when first needed # - # source://regexp_parser//lib/regexp_parser/scanner.rb#2388 + # source://regexp_parser/lib/regexp_parser/scanner.rb#2345 def short_prop_map; end end end # Invalid back reference. Used for name a number refs/calls. # -# source://regexp_parser//lib/regexp_parser/scanner/errors/validation_error.rb#44 +# source://regexp_parser/lib/regexp_parser/scanner/errors/validation_error.rb#44 class Regexp::Scanner::InvalidBackrefError < ::Regexp::Scanner::ValidationError # @return [InvalidBackrefError] a new instance of InvalidBackrefError # - # source://regexp_parser//lib/regexp_parser/scanner/errors/validation_error.rb#45 + # source://regexp_parser/lib/regexp_parser/scanner/errors/validation_error.rb#45 def initialize(what, reason); end end # Invalid group. Used for named groups. # -# source://regexp_parser//lib/regexp_parser/scanner/errors/validation_error.rb#29 +# source://regexp_parser/lib/regexp_parser/scanner/errors/validation_error.rb#29 class Regexp::Scanner::InvalidGroupError < ::Regexp::Scanner::ValidationError # @return [InvalidGroupError] a new instance of InvalidGroupError # - # source://regexp_parser//lib/regexp_parser/scanner/errors/validation_error.rb#30 + # source://regexp_parser/lib/regexp_parser/scanner/errors/validation_error.rb#30 def initialize(what, reason); end end # Invalid groupOption. Used for inline options. # TODO: should become InvalidGroupOptionError in v3.0.0 for consistency # -# source://regexp_parser//lib/regexp_parser/scanner/errors/validation_error.rb#37 +# source://regexp_parser/lib/regexp_parser/scanner/errors/validation_error.rb#37 class Regexp::Scanner::InvalidGroupOption < ::Regexp::Scanner::ValidationError # @return [InvalidGroupOption] a new instance of InvalidGroupOption # - # source://regexp_parser//lib/regexp_parser/scanner/errors/validation_error.rb#38 + # source://regexp_parser/lib/regexp_parser/scanner/errors/validation_error.rb#38 def initialize(option, text); end end # Invalid sequence format. Used for escape sequences, mainly. # -# source://regexp_parser//lib/regexp_parser/scanner/errors/validation_error.rb#22 +# source://regexp_parser/lib/regexp_parser/scanner/errors/validation_error.rb#22 class Regexp::Scanner::InvalidSequenceError < ::Regexp::Scanner::ValidationError # @return [InvalidSequenceError] a new instance of InvalidSequenceError # - # source://regexp_parser//lib/regexp_parser/scanner/errors/validation_error.rb#23 + # source://regexp_parser/lib/regexp_parser/scanner/errors/validation_error.rb#23 def initialize(what = T.unsafe(nil), where = T.unsafe(nil)); end end # Unexpected end of pattern # -# source://regexp_parser//lib/regexp_parser/scanner/errors/premature_end_error.rb#3 +# source://regexp_parser/lib/regexp_parser/scanner/errors/premature_end_error.rb#3 class Regexp::Scanner::PrematureEndError < ::Regexp::Scanner::ScannerError # @return [PrematureEndError] a new instance of PrematureEndError # - # source://regexp_parser//lib/regexp_parser/scanner/errors/premature_end_error.rb#4 + # source://regexp_parser/lib/regexp_parser/scanner/errors/premature_end_error.rb#4 def initialize(where = T.unsafe(nil)); end end # General scanner error (catch all) # -# source://regexp_parser//lib/regexp_parser/scanner/errors/scanner_error.rb#5 +# source://regexp_parser/lib/regexp_parser/scanner/errors/scanner_error.rb#5 class Regexp::Scanner::ScannerError < ::Regexp::Parser::Error; end # The POSIX class name was not recognized by the scanner. # -# source://regexp_parser//lib/regexp_parser/scanner/errors/validation_error.rb#58 +# source://regexp_parser/lib/regexp_parser/scanner/errors/validation_error.rb#58 class Regexp::Scanner::UnknownPosixClassError < ::Regexp::Scanner::ValidationError # @return [UnknownPosixClassError] a new instance of UnknownPosixClassError # - # source://regexp_parser//lib/regexp_parser/scanner/errors/validation_error.rb#59 + # source://regexp_parser/lib/regexp_parser/scanner/errors/validation_error.rb#59 def initialize(text, _); end end # The property name was not recognized by the scanner. # -# source://regexp_parser//lib/regexp_parser/scanner/errors/validation_error.rb#51 +# source://regexp_parser/lib/regexp_parser/scanner/errors/validation_error.rb#51 class Regexp::Scanner::UnknownUnicodePropertyError < ::Regexp::Scanner::ValidationError # @return [UnknownUnicodePropertyError] a new instance of UnknownUnicodePropertyError # - # source://regexp_parser//lib/regexp_parser/scanner/errors/validation_error.rb#52 + # source://regexp_parser/lib/regexp_parser/scanner/errors/validation_error.rb#52 def initialize(name, _); end end # Base for all scanner validation errors # -# source://regexp_parser//lib/regexp_parser/scanner/errors/validation_error.rb#3 +# source://regexp_parser/lib/regexp_parser/scanner/errors/validation_error.rb#3 class Regexp::Scanner::ValidationError < ::Regexp::Scanner::ScannerError class << self # Centralizes and unifies the handling of validation related errors. # - # source://regexp_parser//lib/regexp_parser/scanner/errors/validation_error.rb#5 + # source://regexp_parser/lib/regexp_parser/scanner/errors/validation_error.rb#5 def for(type, problem, reason = T.unsafe(nil)); end - # source://regexp_parser//lib/regexp_parser/scanner/errors/validation_error.rb#9 + # source://regexp_parser/lib/regexp_parser/scanner/errors/validation_error.rb#9 def types; end end end @@ -2905,65 +2905,65 @@ end # After loading all the tokens the map is full. Extract all tokens and types # into the All and Types constants. # -# source://regexp_parser//lib/regexp_parser/syntax.rb#3 +# source://regexp_parser/lib/regexp_parser/syntax.rb#3 module Regexp::Syntax private - # source://regexp_parser//lib/regexp_parser/syntax/version_lookup.rb#61 + # source://regexp_parser/lib/regexp_parser/syntax/version_lookup.rb#61 def comparable(name); end - # source://regexp_parser//lib/regexp_parser/syntax/version_lookup.rb#44 + # source://regexp_parser/lib/regexp_parser/syntax/version_lookup.rb#44 def const_missing(const_name); end - # source://regexp_parser//lib/regexp_parser/syntax/version_lookup.rb#51 + # source://regexp_parser/lib/regexp_parser/syntax/version_lookup.rb#51 def fallback_version_class(version); end # Returns the syntax specification class for the given syntax # version name. The special names 'any' and '*' return Syntax::Any. # - # source://regexp_parser//lib/regexp_parser/syntax/version_lookup.rb#22 + # source://regexp_parser/lib/regexp_parser/syntax/version_lookup.rb#22 def for(name); end - # source://regexp_parser//lib/regexp_parser/syntax/version_lookup.rb#26 + # source://regexp_parser/lib/regexp_parser/syntax/version_lookup.rb#26 def new(name); end - # source://regexp_parser//lib/regexp_parser/syntax/version_lookup.rb#57 + # source://regexp_parser/lib/regexp_parser/syntax/version_lookup.rb#57 def specified_versions; end - # source://regexp_parser//lib/regexp_parser/syntax/version_lookup.rb#32 + # source://regexp_parser/lib/regexp_parser/syntax/version_lookup.rb#32 def supported?(name); end - # source://regexp_parser//lib/regexp_parser/syntax/version_lookup.rb#36 + # source://regexp_parser/lib/regexp_parser/syntax/version_lookup.rb#36 def version_class(version); end class << self - # source://regexp_parser//lib/regexp_parser/syntax/version_lookup.rb#61 + # source://regexp_parser/lib/regexp_parser/syntax/version_lookup.rb#61 def comparable(name); end - # source://regexp_parser//lib/regexp_parser/syntax/version_lookup.rb#44 + # source://regexp_parser/lib/regexp_parser/syntax/version_lookup.rb#44 def const_missing(const_name); end - # source://regexp_parser//lib/regexp_parser/syntax/version_lookup.rb#51 + # source://regexp_parser/lib/regexp_parser/syntax/version_lookup.rb#51 def fallback_version_class(version); end # Returns the syntax specification class for the given syntax # version name. The special names 'any' and '*' return Syntax::Any. # - # source://regexp_parser//lib/regexp_parser/syntax/version_lookup.rb#22 + # source://regexp_parser/lib/regexp_parser/syntax/version_lookup.rb#22 def for(name); end - # source://regexp_parser//lib/regexp_parser/syntax/version_lookup.rb#26 + # source://regexp_parser/lib/regexp_parser/syntax/version_lookup.rb#26 def new(name); end - # source://regexp_parser//lib/regexp_parser/syntax/version_lookup.rb#57 + # source://regexp_parser/lib/regexp_parser/syntax/version_lookup.rb#57 def specified_versions; end # @return [Boolean] # - # source://regexp_parser//lib/regexp_parser/syntax/version_lookup.rb#32 + # source://regexp_parser/lib/regexp_parser/syntax/version_lookup.rb#32 def supported?(name); end - # source://regexp_parser//lib/regexp_parser/syntax/version_lookup.rb#36 + # source://regexp_parser/lib/regexp_parser/syntax/version_lookup.rb#36 def version_class(version); end end end @@ -2972,19 +2972,19 @@ end # is useful during development, testing, and should be useful for some types # of transformations as well. # -# source://regexp_parser//lib/regexp_parser/syntax/any.rb#5 +# source://regexp_parser/lib/regexp_parser/syntax/any.rb#5 class Regexp::Syntax::Any < ::Regexp::Syntax::Base class << self # @return [Boolean] # - # source://regexp_parser//lib/regexp_parser/syntax/any.rb#8 + # source://regexp_parser/lib/regexp_parser/syntax/any.rb#8 def implements?(_type, _token); end end end # A lookup map of supported types and tokens in a given syntax # -# source://regexp_parser//lib/regexp_parser/syntax/base.rb#9 +# source://regexp_parser/lib/regexp_parser/syntax/base.rb#9 class Regexp::Syntax::Base include ::Regexp::Syntax::Token @@ -2992,731 +2992,731 @@ class Regexp::Syntax::Base # # @return [Base] a new instance of Base # - # source://regexp_parser//lib/regexp_parser/syntax/base.rb#99 + # source://regexp_parser/lib/regexp_parser/syntax/base.rb#99 def initialize; end - # source://regexp_parser//lib/regexp_parser/syntax/base.rb#104 + # source://regexp_parser/lib/regexp_parser/syntax/base.rb#104 def method_missing(name, *args); end private # @return [Boolean] # - # source://regexp_parser//lib/regexp_parser/syntax/base.rb#115 + # source://regexp_parser/lib/regexp_parser/syntax/base.rb#115 def respond_to_missing?(name, include_private = T.unsafe(nil)); end class << self - # source://regexp_parser//lib/regexp_parser/syntax/base.rb#46 + # source://regexp_parser/lib/regexp_parser/syntax/base.rb#46 def added_features; end # @raise [NotImplementedError] # - # source://regexp_parser//lib/regexp_parser/syntax/base.rb#40 + # source://regexp_parser/lib/regexp_parser/syntax/base.rb#40 def check!(type, token); end # @return [Boolean] # - # source://regexp_parser//lib/regexp_parser/syntax/base.rb#31 + # source://regexp_parser/lib/regexp_parser/syntax/base.rb#31 def check?(type, token); end - # source://regexp_parser//lib/regexp_parser/syntax/base.rb#26 + # source://regexp_parser/lib/regexp_parser/syntax/base.rb#26 def excludes(type, tokens); end # Returns the value of attribute features. # - # source://regexp_parser//lib/regexp_parser/syntax/base.rb#13 + # source://regexp_parser/lib/regexp_parser/syntax/base.rb#13 def features; end # Sets the attribute features # # @param value the value to set the attribute features to. # - # source://regexp_parser//lib/regexp_parser/syntax/base.rb#13 + # source://regexp_parser/lib/regexp_parser/syntax/base.rb#13 def features=(_arg0); end - # source://regexp_parser//lib/regexp_parser/syntax/base.rb#36 + # source://regexp_parser/lib/regexp_parser/syntax/base.rb#36 def implementations(type); end - # source://regexp_parser//lib/regexp_parser/syntax/base.rb#21 + # source://regexp_parser/lib/regexp_parser/syntax/base.rb#21 def implements(type, tokens); end # @raise [NotImplementedError] # - # source://regexp_parser//lib/regexp_parser/syntax/base.rb#40 + # source://regexp_parser/lib/regexp_parser/syntax/base.rb#40 def implements!(type, token); end # @return [Boolean] # - # source://regexp_parser//lib/regexp_parser/syntax/base.rb#31 + # source://regexp_parser/lib/regexp_parser/syntax/base.rb#31 def implements?(type, token); end # automatically inherit features through the syntax class hierarchy # - # source://regexp_parser//lib/regexp_parser/syntax/base.rb#16 + # source://regexp_parser/lib/regexp_parser/syntax/base.rb#16 def inherited(subclass); end - # source://regexp_parser//lib/regexp_parser/syntax/base.rb#54 + # source://regexp_parser/lib/regexp_parser/syntax/base.rb#54 def normalize(type, token); end - # source://regexp_parser//lib/regexp_parser/syntax/base.rb#74 + # source://regexp_parser/lib/regexp_parser/syntax/base.rb#74 def normalize_backref(type, token); end - # source://regexp_parser//lib/regexp_parser/syntax/base.rb#65 + # source://regexp_parser/lib/regexp_parser/syntax/base.rb#65 def normalize_group(type, token); end - # source://regexp_parser//lib/regexp_parser/syntax/base.rb#50 + # source://regexp_parser/lib/regexp_parser/syntax/base.rb#50 def removed_features; end end end -# source://regexp_parser//lib/regexp_parser/syntax/versions.rb#8 +# source://regexp_parser/lib/regexp_parser/syntax/versions.rb#8 Regexp::Syntax::CURRENT = Regexp::Syntax::V3_2_0 -# source://regexp_parser//lib/regexp_parser/syntax/version_lookup.rb#6 +# source://regexp_parser/lib/regexp_parser/syntax/version_lookup.rb#6 class Regexp::Syntax::InvalidVersionNameError < ::Regexp::Syntax::SyntaxError # @return [InvalidVersionNameError] a new instance of InvalidVersionNameError # - # source://regexp_parser//lib/regexp_parser/syntax/version_lookup.rb#7 + # source://regexp_parser/lib/regexp_parser/syntax/version_lookup.rb#7 def initialize(name); end end -# source://regexp_parser//lib/regexp_parser/syntax/base.rb#2 +# source://regexp_parser/lib/regexp_parser/syntax/base.rb#2 class Regexp::Syntax::NotImplementedError < ::Regexp::Syntax::SyntaxError # @return [NotImplementedError] a new instance of NotImplementedError # - # source://regexp_parser//lib/regexp_parser/syntax/base.rb#3 + # source://regexp_parser/lib/regexp_parser/syntax/base.rb#3 def initialize(syntax, type, token); end end -# source://regexp_parser//lib/regexp_parser/syntax.rb#4 +# source://regexp_parser/lib/regexp_parser/syntax.rb#4 class Regexp::Syntax::SyntaxError < ::Regexp::Parser::Error; end -# source://regexp_parser//lib/regexp_parser/syntax/token.rb#3 +# source://regexp_parser/lib/regexp_parser/syntax/token.rb#3 module Regexp::Syntax::Token; end -# source://regexp_parser//lib/regexp_parser/syntax/token.rb#42 +# source://regexp_parser/lib/regexp_parser/syntax/token.rb#42 Regexp::Syntax::Token::All = T.let(T.unsafe(nil), Array) # alias for symmetry between Token::* and Expression::* # -# source://regexp_parser//lib/regexp_parser/syntax/token/meta.rb#15 +# source://regexp_parser/lib/regexp_parser/syntax/token/meta.rb#15 module Regexp::Syntax::Token::Alternation; end -# source://regexp_parser//lib/regexp_parser/syntax/token/meta.rb#16 +# source://regexp_parser/lib/regexp_parser/syntax/token/meta.rb#16 Regexp::Syntax::Token::Alternation::All = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/meta.rb#17 +# source://regexp_parser/lib/regexp_parser/syntax/token/meta.rb#17 Regexp::Syntax::Token::Alternation::Type = T.let(T.unsafe(nil), Symbol) -# source://regexp_parser//lib/regexp_parser/syntax/token/anchor.rb#3 +# source://regexp_parser/lib/regexp_parser/syntax/token/anchor.rb#3 module Regexp::Syntax::Token::Anchor; end -# source://regexp_parser//lib/regexp_parser/syntax/token/anchor.rb#9 +# source://regexp_parser/lib/regexp_parser/syntax/token/anchor.rb#9 Regexp::Syntax::Token::Anchor::All = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/anchor.rb#4 +# source://regexp_parser/lib/regexp_parser/syntax/token/anchor.rb#4 Regexp::Syntax::Token::Anchor::Basic = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/anchor.rb#5 +# source://regexp_parser/lib/regexp_parser/syntax/token/anchor.rb#5 Regexp::Syntax::Token::Anchor::Extended = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/anchor.rb#7 +# source://regexp_parser/lib/regexp_parser/syntax/token/anchor.rb#7 Regexp::Syntax::Token::Anchor::MatchStart = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/anchor.rb#6 +# source://regexp_parser/lib/regexp_parser/syntax/token/anchor.rb#6 Regexp::Syntax::Token::Anchor::String = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/anchor.rb#10 +# source://regexp_parser/lib/regexp_parser/syntax/token/anchor.rb#10 Regexp::Syntax::Token::Anchor::Type = T.let(T.unsafe(nil), Symbol) -# source://regexp_parser//lib/regexp_parser/syntax/token/assertion.rb#3 +# source://regexp_parser/lib/regexp_parser/syntax/token/assertion.rb#3 module Regexp::Syntax::Token::Assertion; end -# source://regexp_parser//lib/regexp_parser/syntax/token/assertion.rb#7 +# source://regexp_parser/lib/regexp_parser/syntax/token/assertion.rb#7 Regexp::Syntax::Token::Assertion::All = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/assertion.rb#4 +# source://regexp_parser/lib/regexp_parser/syntax/token/assertion.rb#4 Regexp::Syntax::Token::Assertion::Lookahead = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/assertion.rb#5 +# source://regexp_parser/lib/regexp_parser/syntax/token/assertion.rb#5 Regexp::Syntax::Token::Assertion::Lookbehind = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/assertion.rb#8 +# source://regexp_parser/lib/regexp_parser/syntax/token/assertion.rb#8 Regexp::Syntax::Token::Assertion::Type = T.let(T.unsafe(nil), Symbol) # alias for symmetry between token symbol and Expression class name # -# source://regexp_parser//lib/regexp_parser/syntax/token/backreference.rb#31 +# source://regexp_parser/lib/regexp_parser/syntax/token/backreference.rb#31 Regexp::Syntax::Token::Backref = Regexp::Syntax::Token::Backreference -# source://regexp_parser//lib/regexp_parser/syntax/token/backreference.rb#3 +# source://regexp_parser/lib/regexp_parser/syntax/token/backreference.rb#3 module Regexp::Syntax::Token::Backreference; end -# source://regexp_parser//lib/regexp_parser/syntax/token/backreference.rb#15 +# source://regexp_parser/lib/regexp_parser/syntax/token/backreference.rb#15 Regexp::Syntax::Token::Backreference::All = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/backreference.rb#7 +# source://regexp_parser/lib/regexp_parser/syntax/token/backreference.rb#7 Regexp::Syntax::Token::Backreference::Name = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/backreference.rb#6 +# source://regexp_parser/lib/regexp_parser/syntax/token/backreference.rb#6 Regexp::Syntax::Token::Backreference::Number = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/backreference.rb#5 +# source://regexp_parser/lib/regexp_parser/syntax/token/backreference.rb#5 Regexp::Syntax::Token::Backreference::NumberRef = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/backreference.rb#4 +# source://regexp_parser/lib/regexp_parser/syntax/token/backreference.rb#4 Regexp::Syntax::Token::Backreference::Plain = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/backreference.rb#9 +# source://regexp_parser/lib/regexp_parser/syntax/token/backreference.rb#9 Regexp::Syntax::Token::Backreference::RecursionLevel = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/backreference.rb#16 +# source://regexp_parser/lib/regexp_parser/syntax/token/backreference.rb#16 Regexp::Syntax::Token::Backreference::Type = T.let(T.unsafe(nil), Symbol) -# source://regexp_parser//lib/regexp_parser/syntax/token/backreference.rb#11 +# source://regexp_parser/lib/regexp_parser/syntax/token/backreference.rb#11 Regexp::Syntax::Token::Backreference::V1_8_6 = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/backreference.rb#13 +# source://regexp_parser/lib/regexp_parser/syntax/token/backreference.rb#13 Regexp::Syntax::Token::Backreference::V1_9_1 = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/character_set.rb#3 +# source://regexp_parser/lib/regexp_parser/syntax/token/character_set.rb#3 module Regexp::Syntax::Token::CharacterSet; end -# source://regexp_parser//lib/regexp_parser/syntax/token/character_set.rb#7 +# source://regexp_parser/lib/regexp_parser/syntax/token/character_set.rb#7 Regexp::Syntax::Token::CharacterSet::All = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/character_set.rb#4 +# source://regexp_parser/lib/regexp_parser/syntax/token/character_set.rb#4 Regexp::Syntax::Token::CharacterSet::Basic = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/character_set.rb#5 +# source://regexp_parser/lib/regexp_parser/syntax/token/character_set.rb#5 Regexp::Syntax::Token::CharacterSet::Extended = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/character_set.rb#8 +# source://regexp_parser/lib/regexp_parser/syntax/token/character_set.rb#8 Regexp::Syntax::Token::CharacterSet::Type = T.let(T.unsafe(nil), Symbol) -# source://regexp_parser//lib/regexp_parser/syntax/token/character_type.rb#3 +# source://regexp_parser/lib/regexp_parser/syntax/token/character_type.rb#3 module Regexp::Syntax::Token::CharacterType; end -# source://regexp_parser//lib/regexp_parser/syntax/token/character_type.rb#10 +# source://regexp_parser/lib/regexp_parser/syntax/token/character_type.rb#10 Regexp::Syntax::Token::CharacterType::All = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/character_type.rb#4 +# source://regexp_parser/lib/regexp_parser/syntax/token/character_type.rb#4 Regexp::Syntax::Token::CharacterType::Basic = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/character_type.rb#8 +# source://regexp_parser/lib/regexp_parser/syntax/token/character_type.rb#8 Regexp::Syntax::Token::CharacterType::Clustered = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/character_type.rb#5 +# source://regexp_parser/lib/regexp_parser/syntax/token/character_type.rb#5 Regexp::Syntax::Token::CharacterType::Extended = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/character_type.rb#6 +# source://regexp_parser/lib/regexp_parser/syntax/token/character_type.rb#6 Regexp::Syntax::Token::CharacterType::Hex = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/character_type.rb#11 +# source://regexp_parser/lib/regexp_parser/syntax/token/character_type.rb#11 Regexp::Syntax::Token::CharacterType::Type = T.let(T.unsafe(nil), Symbol) -# source://regexp_parser//lib/regexp_parser/syntax/token/conditional.rb#3 +# source://regexp_parser/lib/regexp_parser/syntax/token/conditional.rb#3 module Regexp::Syntax::Token::Conditional; end -# source://regexp_parser//lib/regexp_parser/syntax/token/conditional.rb#9 +# source://regexp_parser/lib/regexp_parser/syntax/token/conditional.rb#9 Regexp::Syntax::Token::Conditional::All = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/conditional.rb#6 +# source://regexp_parser/lib/regexp_parser/syntax/token/conditional.rb#6 Regexp::Syntax::Token::Conditional::Condition = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/conditional.rb#4 +# source://regexp_parser/lib/regexp_parser/syntax/token/conditional.rb#4 Regexp::Syntax::Token::Conditional::Delimiters = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/conditional.rb#7 +# source://regexp_parser/lib/regexp_parser/syntax/token/conditional.rb#7 Regexp::Syntax::Token::Conditional::Separator = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/conditional.rb#11 +# source://regexp_parser/lib/regexp_parser/syntax/token/conditional.rb#11 Regexp::Syntax::Token::Conditional::Type = T.let(T.unsafe(nil), Symbol) -# source://regexp_parser//lib/regexp_parser/syntax/token/escape.rb#3 +# source://regexp_parser/lib/regexp_parser/syntax/token/escape.rb#3 module Regexp::Syntax::Token::Escape; end -# source://regexp_parser//lib/regexp_parser/syntax/token/escape.rb#8 +# source://regexp_parser/lib/regexp_parser/syntax/token/escape.rb#8 Regexp::Syntax::Token::Escape::ASCII = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/escape.rb#24 +# source://regexp_parser/lib/regexp_parser/syntax/token/escape.rb#24 Regexp::Syntax::Token::Escape::All = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/escape.rb#4 +# source://regexp_parser/lib/regexp_parser/syntax/token/escape.rb#4 Regexp::Syntax::Token::Escape::Basic = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/escape.rb#6 +# source://regexp_parser/lib/regexp_parser/syntax/token/escape.rb#6 Regexp::Syntax::Token::Escape::Control = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/escape.rb#20 +# source://regexp_parser/lib/regexp_parser/syntax/token/escape.rb#20 Regexp::Syntax::Token::Escape::Hex = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/escape.rb#13 +# source://regexp_parser/lib/regexp_parser/syntax/token/escape.rb#13 Regexp::Syntax::Token::Escape::Meta = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/escape.rb#22 +# source://regexp_parser/lib/regexp_parser/syntax/token/escape.rb#22 Regexp::Syntax::Token::Escape::Octal = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/escape.rb#25 +# source://regexp_parser/lib/regexp_parser/syntax/token/escape.rb#25 Regexp::Syntax::Token::Escape::Type = T.let(T.unsafe(nil), Symbol) -# source://regexp_parser//lib/regexp_parser/syntax/token/escape.rb#11 +# source://regexp_parser/lib/regexp_parser/syntax/token/escape.rb#11 Regexp::Syntax::Token::Escape::Unicode = T.let(T.unsafe(nil), Array) # alias for symmetry between Token::* and Expression::* # -# source://regexp_parser//lib/regexp_parser/syntax/token/escape.rb#31 +# source://regexp_parser/lib/regexp_parser/syntax/token/escape.rb#31 Regexp::Syntax::Token::EscapeSequence = Regexp::Syntax::Token::Escape -# source://regexp_parser//lib/regexp_parser/syntax/token.rb#11 +# source://regexp_parser/lib/regexp_parser/syntax/token.rb#11 module Regexp::Syntax::Token::FreeSpace; end -# source://regexp_parser//lib/regexp_parser/syntax/token.rb#12 +# source://regexp_parser/lib/regexp_parser/syntax/token.rb#12 Regexp::Syntax::Token::FreeSpace::All = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token.rb#13 +# source://regexp_parser/lib/regexp_parser/syntax/token.rb#13 Regexp::Syntax::Token::FreeSpace::Type = T.let(T.unsafe(nil), Symbol) -# source://regexp_parser//lib/regexp_parser/syntax/token/group.rb#3 +# source://regexp_parser/lib/regexp_parser/syntax/token/group.rb#3 module Regexp::Syntax::Token::Group; end -# source://regexp_parser//lib/regexp_parser/syntax/token/group.rb#17 +# source://regexp_parser/lib/regexp_parser/syntax/token/group.rb#17 Regexp::Syntax::Token::Group::All = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/group.rb#8 +# source://regexp_parser/lib/regexp_parser/syntax/token/group.rb#8 Regexp::Syntax::Token::Group::Atomic = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/group.rb#4 +# source://regexp_parser/lib/regexp_parser/syntax/token/group.rb#4 Regexp::Syntax::Token::Group::Basic = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/group.rb#10 +# source://regexp_parser/lib/regexp_parser/syntax/token/group.rb#10 Regexp::Syntax::Token::Group::Comment = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/group.rb#5 +# source://regexp_parser/lib/regexp_parser/syntax/token/group.rb#5 Regexp::Syntax::Token::Group::Extended = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/group.rb#7 +# source://regexp_parser/lib/regexp_parser/syntax/token/group.rb#7 Regexp::Syntax::Token::Group::Named = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/group.rb#9 +# source://regexp_parser/lib/regexp_parser/syntax/token/group.rb#9 Regexp::Syntax::Token::Group::Passive = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/group.rb#18 +# source://regexp_parser/lib/regexp_parser/syntax/token/group.rb#18 Regexp::Syntax::Token::Group::Type = T.let(T.unsafe(nil), Symbol) -# source://regexp_parser//lib/regexp_parser/syntax/token/group.rb#12 +# source://regexp_parser/lib/regexp_parser/syntax/token/group.rb#12 Regexp::Syntax::Token::Group::V1_8_6 = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/group.rb#15 +# source://regexp_parser/lib/regexp_parser/syntax/token/group.rb#15 Regexp::Syntax::Token::Group::V2_4_1 = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/keep.rb#3 +# source://regexp_parser/lib/regexp_parser/syntax/token/keep.rb#3 module Regexp::Syntax::Token::Keep; end -# source://regexp_parser//lib/regexp_parser/syntax/token/keep.rb#6 +# source://regexp_parser/lib/regexp_parser/syntax/token/keep.rb#6 Regexp::Syntax::Token::Keep::All = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/keep.rb#4 +# source://regexp_parser/lib/regexp_parser/syntax/token/keep.rb#4 Regexp::Syntax::Token::Keep::Mark = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/keep.rb#7 +# source://regexp_parser/lib/regexp_parser/syntax/token/keep.rb#7 Regexp::Syntax::Token::Keep::Type = T.let(T.unsafe(nil), Symbol) -# source://regexp_parser//lib/regexp_parser/syntax/token.rb#6 +# source://regexp_parser/lib/regexp_parser/syntax/token.rb#6 module Regexp::Syntax::Token::Literal; end -# source://regexp_parser//lib/regexp_parser/syntax/token.rb#7 +# source://regexp_parser/lib/regexp_parser/syntax/token.rb#7 Regexp::Syntax::Token::Literal::All = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token.rb#8 +# source://regexp_parser/lib/regexp_parser/syntax/token.rb#8 Regexp::Syntax::Token::Literal::Type = T.let(T.unsafe(nil), Symbol) -# source://regexp_parser//lib/regexp_parser/syntax/token.rb#4 +# source://regexp_parser/lib/regexp_parser/syntax/token.rb#4 Regexp::Syntax::Token::Map = T.let(T.unsafe(nil), Hash) -# source://regexp_parser//lib/regexp_parser/syntax/token/meta.rb#3 +# source://regexp_parser/lib/regexp_parser/syntax/token/meta.rb#3 module Regexp::Syntax::Token::Meta; end -# source://regexp_parser//lib/regexp_parser/syntax/token/meta.rb#8 +# source://regexp_parser/lib/regexp_parser/syntax/token/meta.rb#8 Regexp::Syntax::Token::Meta::All = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/meta.rb#5 +# source://regexp_parser/lib/regexp_parser/syntax/token/meta.rb#5 Regexp::Syntax::Token::Meta::Alternation = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/meta.rb#4 +# source://regexp_parser/lib/regexp_parser/syntax/token/meta.rb#4 Regexp::Syntax::Token::Meta::Basic = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/meta.rb#6 +# source://regexp_parser/lib/regexp_parser/syntax/token/meta.rb#6 Regexp::Syntax::Token::Meta::Extended = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/meta.rb#9 +# source://regexp_parser/lib/regexp_parser/syntax/token/meta.rb#9 Regexp::Syntax::Token::Meta::Type = T.let(T.unsafe(nil), Symbol) -# source://regexp_parser//lib/regexp_parser/syntax/token/posix_class.rb#3 +# source://regexp_parser/lib/regexp_parser/syntax/token/posix_class.rb#3 module Regexp::Syntax::Token::PosixClass; end -# source://regexp_parser//lib/regexp_parser/syntax/token/posix_class.rb#9 +# source://regexp_parser/lib/regexp_parser/syntax/token/posix_class.rb#9 Regexp::Syntax::Token::PosixClass::All = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/posix_class.rb#7 +# source://regexp_parser/lib/regexp_parser/syntax/token/posix_class.rb#7 Regexp::Syntax::Token::PosixClass::Extensions = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/posix_class.rb#11 +# source://regexp_parser/lib/regexp_parser/syntax/token/posix_class.rb#11 Regexp::Syntax::Token::PosixClass::NonType = T.let(T.unsafe(nil), Symbol) -# source://regexp_parser//lib/regexp_parser/syntax/token/posix_class.rb#4 +# source://regexp_parser/lib/regexp_parser/syntax/token/posix_class.rb#4 Regexp::Syntax::Token::PosixClass::Standard = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/posix_class.rb#10 +# source://regexp_parser/lib/regexp_parser/syntax/token/posix_class.rb#10 Regexp::Syntax::Token::PosixClass::Type = T.let(T.unsafe(nil), Symbol) # alias for symmetry between token symbol and Token module name # -# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#749 +# source://regexp_parser/lib/regexp_parser/syntax/token/unicode_property.rb#749 Regexp::Syntax::Token::Property = Regexp::Syntax::Token::UnicodeProperty -# source://regexp_parser//lib/regexp_parser/syntax/token/quantifier.rb#3 +# source://regexp_parser/lib/regexp_parser/syntax/token/quantifier.rb#3 module Regexp::Syntax::Token::Quantifier; end -# source://regexp_parser//lib/regexp_parser/syntax/token/quantifier.rb#29 +# source://regexp_parser/lib/regexp_parser/syntax/token/quantifier.rb#29 Regexp::Syntax::Token::Quantifier::All = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/quantifier.rb#4 +# source://regexp_parser/lib/regexp_parser/syntax/token/quantifier.rb#4 Regexp::Syntax::Token::Quantifier::Greedy = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/quantifier.rb#22 +# source://regexp_parser/lib/regexp_parser/syntax/token/quantifier.rb#22 Regexp::Syntax::Token::Quantifier::Interval = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/quantifier.rb#26 +# source://regexp_parser/lib/regexp_parser/syntax/token/quantifier.rb#26 Regexp::Syntax::Token::Quantifier::IntervalAll = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/quantifier.rb#24 +# source://regexp_parser/lib/regexp_parser/syntax/token/quantifier.rb#24 Regexp::Syntax::Token::Quantifier::IntervalPossessive = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/quantifier.rb#23 +# source://regexp_parser/lib/regexp_parser/syntax/token/quantifier.rb#23 Regexp::Syntax::Token::Quantifier::IntervalReluctant = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/quantifier.rb#16 +# source://regexp_parser/lib/regexp_parser/syntax/token/quantifier.rb#16 Regexp::Syntax::Token::Quantifier::Possessive = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/quantifier.rb#10 +# source://regexp_parser/lib/regexp_parser/syntax/token/quantifier.rb#10 Regexp::Syntax::Token::Quantifier::Reluctant = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/quantifier.rb#30 +# source://regexp_parser/lib/regexp_parser/syntax/token/quantifier.rb#30 Regexp::Syntax::Token::Quantifier::Type = T.let(T.unsafe(nil), Symbol) -# source://regexp_parser//lib/regexp_parser/syntax/token/quantifier.rb#28 +# source://regexp_parser/lib/regexp_parser/syntax/token/quantifier.rb#28 Regexp::Syntax::Token::Quantifier::V1_8_6 = T.let(T.unsafe(nil), Array) # alias for symmetry between token symbol and Token module name # -# source://regexp_parser//lib/regexp_parser/syntax/token/character_set.rb#14 +# source://regexp_parser/lib/regexp_parser/syntax/token/character_set.rb#14 Regexp::Syntax::Token::Set = Regexp::Syntax::Token::CharacterSet # Type is the same as Backreference so keeping it here, for now. # -# source://regexp_parser//lib/regexp_parser/syntax/token/backreference.rb#20 +# source://regexp_parser/lib/regexp_parser/syntax/token/backreference.rb#20 module Regexp::Syntax::Token::SubexpressionCall; end -# source://regexp_parser//lib/regexp_parser/syntax/token/backreference.rb#24 +# source://regexp_parser/lib/regexp_parser/syntax/token/backreference.rb#24 Regexp::Syntax::Token::SubexpressionCall::All = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/backreference.rb#21 +# source://regexp_parser/lib/regexp_parser/syntax/token/backreference.rb#21 Regexp::Syntax::Token::SubexpressionCall::Name = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/backreference.rb#22 +# source://regexp_parser/lib/regexp_parser/syntax/token/backreference.rb#22 Regexp::Syntax::Token::SubexpressionCall::Number = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token.rb#43 +# source://regexp_parser/lib/regexp_parser/syntax/token.rb#43 Regexp::Syntax::Token::Types = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#3 +# source://regexp_parser/lib/regexp_parser/syntax/token/unicode_property.rb#3 module Regexp::Syntax::Token::UnicodeProperty; end -# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#64 +# source://regexp_parser/lib/regexp_parser/syntax/token/unicode_property.rb#64 Regexp::Syntax::Token::UnicodeProperty::Age = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#40 +# source://regexp_parser/lib/regexp_parser/syntax/token/unicode_property.rb#40 Regexp::Syntax::Token::UnicodeProperty::Age_V1_9_3 = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#44 +# source://regexp_parser/lib/regexp_parser/syntax/token/unicode_property.rb#44 Regexp::Syntax::Token::UnicodeProperty::Age_V2_0_0 = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#46 +# source://regexp_parser/lib/regexp_parser/syntax/token/unicode_property.rb#46 Regexp::Syntax::Token::UnicodeProperty::Age_V2_2_0 = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#48 +# source://regexp_parser/lib/regexp_parser/syntax/token/unicode_property.rb#48 Regexp::Syntax::Token::UnicodeProperty::Age_V2_3_0 = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#50 +# source://regexp_parser/lib/regexp_parser/syntax/token/unicode_property.rb#50 Regexp::Syntax::Token::UnicodeProperty::Age_V2_4_0 = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#52 +# source://regexp_parser/lib/regexp_parser/syntax/token/unicode_property.rb#52 Regexp::Syntax::Token::UnicodeProperty::Age_V2_5_0 = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#54 +# source://regexp_parser/lib/regexp_parser/syntax/token/unicode_property.rb#54 Regexp::Syntax::Token::UnicodeProperty::Age_V2_6_0 = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#56 +# source://regexp_parser/lib/regexp_parser/syntax/token/unicode_property.rb#56 Regexp::Syntax::Token::UnicodeProperty::Age_V2_6_2 = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#58 +# source://regexp_parser/lib/regexp_parser/syntax/token/unicode_property.rb#58 Regexp::Syntax::Token::UnicodeProperty::Age_V2_6_3 = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#60 +# source://regexp_parser/lib/regexp_parser/syntax/token/unicode_property.rb#60 Regexp::Syntax::Token::UnicodeProperty::Age_V3_1_0 = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#62 +# source://regexp_parser/lib/regexp_parser/syntax/token/unicode_property.rb#62 Regexp::Syntax::Token::UnicodeProperty::Age_V3_2_0 = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#739 +# source://regexp_parser/lib/regexp_parser/syntax/token/unicode_property.rb#739 Regexp::Syntax::Token::UnicodeProperty::All = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#13 +# source://regexp_parser/lib/regexp_parser/syntax/token/unicode_property.rb#13 module Regexp::Syntax::Token::UnicodeProperty::Category; end -# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#36 +# source://regexp_parser/lib/regexp_parser/syntax/token/unicode_property.rb#36 Regexp::Syntax::Token::UnicodeProperty::Category::All = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#33 +# source://regexp_parser/lib/regexp_parser/syntax/token/unicode_property.rb#33 Regexp::Syntax::Token::UnicodeProperty::Category::Codepoint = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#14 +# source://regexp_parser/lib/regexp_parser/syntax/token/unicode_property.rb#14 Regexp::Syntax::Token::UnicodeProperty::Category::Letter = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#17 +# source://regexp_parser/lib/regexp_parser/syntax/token/unicode_property.rb#17 Regexp::Syntax::Token::UnicodeProperty::Category::Mark = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#20 +# source://regexp_parser/lib/regexp_parser/syntax/token/unicode_property.rb#20 Regexp::Syntax::Token::UnicodeProperty::Category::Number = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#23 +# source://regexp_parser/lib/regexp_parser/syntax/token/unicode_property.rb#23 Regexp::Syntax::Token::UnicodeProperty::Category::Punctuation = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#30 +# source://regexp_parser/lib/regexp_parser/syntax/token/unicode_property.rb#30 Regexp::Syntax::Token::UnicodeProperty::Category::Separator = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#27 +# source://regexp_parser/lib/regexp_parser/syntax/token/unicode_property.rb#27 Regexp::Syntax::Token::UnicodeProperty::Category::Symbol = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#6 +# source://regexp_parser/lib/regexp_parser/syntax/token/unicode_property.rb#6 Regexp::Syntax::Token::UnicodeProperty::CharType_V1_9_0 = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#9 +# source://regexp_parser/lib/regexp_parser/syntax/token/unicode_property.rb#9 Regexp::Syntax::Token::UnicodeProperty::CharType_V2_5_0 = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#133 +# source://regexp_parser/lib/regexp_parser/syntax/token/unicode_property.rb#133 Regexp::Syntax::Token::UnicodeProperty::Derived = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#66 +# source://regexp_parser/lib/regexp_parser/syntax/token/unicode_property.rb#66 Regexp::Syntax::Token::UnicodeProperty::Derived_V1_9_0 = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#120 +# source://regexp_parser/lib/regexp_parser/syntax/token/unicode_property.rb#120 Regexp::Syntax::Token::UnicodeProperty::Derived_V2_0_0 = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#125 +# source://regexp_parser/lib/regexp_parser/syntax/token/unicode_property.rb#125 Regexp::Syntax::Token::UnicodeProperty::Derived_V2_4_0 = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#129 +# source://regexp_parser/lib/regexp_parser/syntax/token/unicode_property.rb#129 Regexp::Syntax::Token::UnicodeProperty::Derived_V2_5_0 = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#724 +# source://regexp_parser/lib/regexp_parser/syntax/token/unicode_property.rb#724 Regexp::Syntax::Token::UnicodeProperty::Emoji = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#694 +# source://regexp_parser/lib/regexp_parser/syntax/token/unicode_property.rb#694 Regexp::Syntax::Token::UnicodeProperty::Emoji_V2_5_0 = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#702 +# source://regexp_parser/lib/regexp_parser/syntax/token/unicode_property.rb#702 Regexp::Syntax::Token::UnicodeProperty::Emoji_V2_6_0 = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#722 +# source://regexp_parser/lib/regexp_parser/syntax/token/unicode_property.rb#722 Regexp::Syntax::Token::UnicodeProperty::Enumerated = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#706 +# source://regexp_parser/lib/regexp_parser/syntax/token/unicode_property.rb#706 Regexp::Syntax::Token::UnicodeProperty::Enumerated_V2_4_0 = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#742 +# source://regexp_parser/lib/regexp_parser/syntax/token/unicode_property.rb#742 Regexp::Syntax::Token::UnicodeProperty::NonType = T.let(T.unsafe(nil), Symbol) -# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#11 +# source://regexp_parser/lib/regexp_parser/syntax/token/unicode_property.rb#11 Regexp::Syntax::Token::UnicodeProperty::POSIX = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#332 +# source://regexp_parser/lib/regexp_parser/syntax/token/unicode_property.rb#332 Regexp::Syntax::Token::UnicodeProperty::Script = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#135 +# source://regexp_parser/lib/regexp_parser/syntax/token/unicode_property.rb#135 Regexp::Syntax::Token::UnicodeProperty::Script_V1_9_0 = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#231 +# source://regexp_parser/lib/regexp_parser/syntax/token/unicode_property.rb#231 Regexp::Syntax::Token::UnicodeProperty::Script_V1_9_3 = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#237 +# source://regexp_parser/lib/regexp_parser/syntax/token/unicode_property.rb#237 Regexp::Syntax::Token::UnicodeProperty::Script_V2_0_0 = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#247 +# source://regexp_parser/lib/regexp_parser/syntax/token/unicode_property.rb#247 Regexp::Syntax::Token::UnicodeProperty::Script_V2_2_0 = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#273 +# source://regexp_parser/lib/regexp_parser/syntax/token/unicode_property.rb#273 Regexp::Syntax::Token::UnicodeProperty::Script_V2_3_0 = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#282 +# source://regexp_parser/lib/regexp_parser/syntax/token/unicode_property.rb#282 Regexp::Syntax::Token::UnicodeProperty::Script_V2_4_0 = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#291 +# source://regexp_parser/lib/regexp_parser/syntax/token/unicode_property.rb#291 Regexp::Syntax::Token::UnicodeProperty::Script_V2_5_0 = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#298 +# source://regexp_parser/lib/regexp_parser/syntax/token/unicode_property.rb#298 Regexp::Syntax::Token::UnicodeProperty::Script_V2_6_0 = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#308 +# source://regexp_parser/lib/regexp_parser/syntax/token/unicode_property.rb#308 Regexp::Syntax::Token::UnicodeProperty::Script_V2_6_2 = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#315 +# source://regexp_parser/lib/regexp_parser/syntax/token/unicode_property.rb#315 Regexp::Syntax::Token::UnicodeProperty::Script_V3_1_0 = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#322 +# source://regexp_parser/lib/regexp_parser/syntax/token/unicode_property.rb#322 Regexp::Syntax::Token::UnicodeProperty::Script_V3_2_0 = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#741 +# source://regexp_parser/lib/regexp_parser/syntax/token/unicode_property.rb#741 Regexp::Syntax::Token::UnicodeProperty::Type = T.let(T.unsafe(nil), Symbol) -# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#692 +# source://regexp_parser/lib/regexp_parser/syntax/token/unicode_property.rb#692 Regexp::Syntax::Token::UnicodeProperty::UnicodeBlock = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#334 +# source://regexp_parser/lib/regexp_parser/syntax/token/unicode_property.rb#334 Regexp::Syntax::Token::UnicodeProperty::UnicodeBlock_V1_9_0 = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#433 +# source://regexp_parser/lib/regexp_parser/syntax/token/unicode_property.rb#433 Regexp::Syntax::Token::UnicodeProperty::UnicodeBlock_V2_0_0 = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#561 +# source://regexp_parser/lib/regexp_parser/syntax/token/unicode_property.rb#561 Regexp::Syntax::Token::UnicodeProperty::UnicodeBlock_V2_2_0 = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#596 +# source://regexp_parser/lib/regexp_parser/syntax/token/unicode_property.rb#596 Regexp::Syntax::Token::UnicodeProperty::UnicodeBlock_V2_3_0 = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#609 +# source://regexp_parser/lib/regexp_parser/syntax/token/unicode_property.rb#609 Regexp::Syntax::Token::UnicodeProperty::UnicodeBlock_V2_4_0 = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#623 +# source://regexp_parser/lib/regexp_parser/syntax/token/unicode_property.rb#623 Regexp::Syntax::Token::UnicodeProperty::UnicodeBlock_V2_5_0 = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#633 +# source://regexp_parser/lib/regexp_parser/syntax/token/unicode_property.rb#633 Regexp::Syntax::Token::UnicodeProperty::UnicodeBlock_V2_6_0 = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#647 +# source://regexp_parser/lib/regexp_parser/syntax/token/unicode_property.rb#647 Regexp::Syntax::Token::UnicodeProperty::UnicodeBlock_V2_6_2 = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#659 +# source://regexp_parser/lib/regexp_parser/syntax/token/unicode_property.rb#659 Regexp::Syntax::Token::UnicodeProperty::UnicodeBlock_V3_1_0 = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#670 +# source://regexp_parser/lib/regexp_parser/syntax/token/unicode_property.rb#670 Regexp::Syntax::Token::UnicodeProperty::UnicodeBlock_V3_2_0 = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#726 +# source://regexp_parser/lib/regexp_parser/syntax/token/unicode_property.rb#726 Regexp::Syntax::Token::UnicodeProperty::V1_9_0 = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#727 +# source://regexp_parser/lib/regexp_parser/syntax/token/unicode_property.rb#727 Regexp::Syntax::Token::UnicodeProperty::V1_9_3 = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#728 +# source://regexp_parser/lib/regexp_parser/syntax/token/unicode_property.rb#728 Regexp::Syntax::Token::UnicodeProperty::V2_0_0 = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#729 +# source://regexp_parser/lib/regexp_parser/syntax/token/unicode_property.rb#729 Regexp::Syntax::Token::UnicodeProperty::V2_2_0 = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#730 +# source://regexp_parser/lib/regexp_parser/syntax/token/unicode_property.rb#730 Regexp::Syntax::Token::UnicodeProperty::V2_3_0 = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#731 +# source://regexp_parser/lib/regexp_parser/syntax/token/unicode_property.rb#731 Regexp::Syntax::Token::UnicodeProperty::V2_4_0 = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#732 +# source://regexp_parser/lib/regexp_parser/syntax/token/unicode_property.rb#732 Regexp::Syntax::Token::UnicodeProperty::V2_5_0 = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#733 +# source://regexp_parser/lib/regexp_parser/syntax/token/unicode_property.rb#733 Regexp::Syntax::Token::UnicodeProperty::V2_6_0 = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#734 +# source://regexp_parser/lib/regexp_parser/syntax/token/unicode_property.rb#734 Regexp::Syntax::Token::UnicodeProperty::V2_6_2 = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#735 +# source://regexp_parser/lib/regexp_parser/syntax/token/unicode_property.rb#735 Regexp::Syntax::Token::UnicodeProperty::V2_6_3 = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#736 +# source://regexp_parser/lib/regexp_parser/syntax/token/unicode_property.rb#736 Regexp::Syntax::Token::UnicodeProperty::V3_1_0 = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#737 +# source://regexp_parser/lib/regexp_parser/syntax/token/unicode_property.rb#737 Regexp::Syntax::Token::UnicodeProperty::V3_2_0 = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/syntax/version_lookup.rb#12 +# source://regexp_parser/lib/regexp_parser/syntax/version_lookup.rb#12 class Regexp::Syntax::UnknownSyntaxNameError < ::Regexp::Syntax::SyntaxError # @return [UnknownSyntaxNameError] a new instance of UnknownSyntaxNameError # - # source://regexp_parser//lib/regexp_parser/syntax/version_lookup.rb#13 + # source://regexp_parser/lib/regexp_parser/syntax/version_lookup.rb#13 def initialize(name); end end -# source://regexp_parser//lib/regexp_parser/syntax/versions/1.8.6.rb#1 +# source://regexp_parser/lib/regexp_parser/syntax/versions/1.8.6.rb#1 class Regexp::Syntax::V1_8_6 < ::Regexp::Syntax::Base; end -# source://regexp_parser//lib/regexp_parser/syntax/versions/1.9.1.rb#1 +# source://regexp_parser/lib/regexp_parser/syntax/versions/1.9.1.rb#1 class Regexp::Syntax::V1_9_1 < ::Regexp::Syntax::V1_8_6; end -# source://regexp_parser//lib/regexp_parser/syntax/versions/1.9.3.rb#1 +# source://regexp_parser/lib/regexp_parser/syntax/versions/1.9.3.rb#1 class Regexp::Syntax::V1_9_3 < ::Regexp::Syntax::V1_9_1; end -# source://regexp_parser//lib/regexp_parser/syntax/versions/2.0.0.rb#1 +# source://regexp_parser/lib/regexp_parser/syntax/versions/2.0.0.rb#1 class Regexp::Syntax::V2_0_0 < ::Regexp::Syntax::V1_9_3; end -# source://regexp_parser//lib/regexp_parser/syntax/versions/2.2.0.rb#1 +# source://regexp_parser/lib/regexp_parser/syntax/versions/2.2.0.rb#1 class Regexp::Syntax::V2_2_0 < ::Regexp::Syntax::V2_0_0; end -# source://regexp_parser//lib/regexp_parser/syntax/versions/2.3.0.rb#1 +# source://regexp_parser/lib/regexp_parser/syntax/versions/2.3.0.rb#1 class Regexp::Syntax::V2_3_0 < ::Regexp::Syntax::V2_2_0; end -# source://regexp_parser//lib/regexp_parser/syntax/versions/2.4.0.rb#1 +# source://regexp_parser/lib/regexp_parser/syntax/versions/2.4.0.rb#1 class Regexp::Syntax::V2_4_0 < ::Regexp::Syntax::V2_3_0; end -# source://regexp_parser//lib/regexp_parser/syntax/versions/2.4.1.rb#1 +# source://regexp_parser/lib/regexp_parser/syntax/versions/2.4.1.rb#1 class Regexp::Syntax::V2_4_1 < ::Regexp::Syntax::V2_4_0; end -# source://regexp_parser//lib/regexp_parser/syntax/versions/2.5.0.rb#1 +# source://regexp_parser/lib/regexp_parser/syntax/versions/2.5.0.rb#1 class Regexp::Syntax::V2_5_0 < ::Regexp::Syntax::V2_4_1; end -# source://regexp_parser//lib/regexp_parser/syntax/versions/2.6.0.rb#1 +# source://regexp_parser/lib/regexp_parser/syntax/versions/2.6.0.rb#1 class Regexp::Syntax::V2_6_0 < ::Regexp::Syntax::V2_5_0; end -# source://regexp_parser//lib/regexp_parser/syntax/versions/2.6.2.rb#1 +# source://regexp_parser/lib/regexp_parser/syntax/versions/2.6.2.rb#1 class Regexp::Syntax::V2_6_2 < ::Regexp::Syntax::V2_6_0; end -# source://regexp_parser//lib/regexp_parser/syntax/versions/2.6.3.rb#1 +# source://regexp_parser/lib/regexp_parser/syntax/versions/2.6.3.rb#1 class Regexp::Syntax::V2_6_3 < ::Regexp::Syntax::V2_6_2; end -# source://regexp_parser//lib/regexp_parser/syntax/versions/3.1.0.rb#1 +# source://regexp_parser/lib/regexp_parser/syntax/versions/3.1.0.rb#1 class Regexp::Syntax::V3_1_0 < ::Regexp::Syntax::V2_6_3; end -# source://regexp_parser//lib/regexp_parser/syntax/versions/3.2.0.rb#1 +# source://regexp_parser/lib/regexp_parser/syntax/versions/3.2.0.rb#1 class Regexp::Syntax::V3_2_0 < ::Regexp::Syntax::V3_1_0; end -# source://regexp_parser//lib/regexp_parser/syntax/version_lookup.rb#4 +# source://regexp_parser/lib/regexp_parser/syntax/version_lookup.rb#4 Regexp::Syntax::VERSION_CONST_REGEXP = T.let(T.unsafe(nil), Regexp) -# source://regexp_parser//lib/regexp_parser/syntax/version_lookup.rb#2 +# source://regexp_parser/lib/regexp_parser/syntax/version_lookup.rb#2 Regexp::Syntax::VERSION_FORMAT = T.let(T.unsafe(nil), String) -# source://regexp_parser//lib/regexp_parser/syntax/version_lookup.rb#3 +# source://regexp_parser/lib/regexp_parser/syntax/version_lookup.rb#3 Regexp::Syntax::VERSION_REGEXP = T.let(T.unsafe(nil), Regexp) -# source://regexp_parser//lib/regexp_parser/token.rb#2 +# source://regexp_parser/lib/regexp_parser/token.rb#2 Regexp::TOKEN_KEYS = T.let(T.unsafe(nil), Array) -# source://regexp_parser//lib/regexp_parser/token.rb#13 +# source://regexp_parser/lib/regexp_parser/token.rb#13 class Regexp::Token < ::Struct def conditional_level; end def conditional_level=(_); end - # source://regexp_parser//lib/regexp_parser/token.rb#20 + # source://regexp_parser/lib/regexp_parser/token.rb#20 def length; end def level; end @@ -3724,29 +3724,29 @@ class Regexp::Token < ::Struct # Returns the value of attribute next. # - # source://regexp_parser//lib/regexp_parser/token.rb#14 + # source://regexp_parser/lib/regexp_parser/token.rb#14 def next; end # Sets the attribute next # # @param value the value to set the attribute next to. # - # source://regexp_parser//lib/regexp_parser/token.rb#14 + # source://regexp_parser/lib/regexp_parser/token.rb#14 def next=(_arg0); end - # source://regexp_parser//lib/regexp_parser/token.rb#16 + # source://regexp_parser/lib/regexp_parser/token.rb#16 def offset; end # Returns the value of attribute previous. # - # source://regexp_parser//lib/regexp_parser/token.rb#14 + # source://regexp_parser/lib/regexp_parser/token.rb#14 def previous; end # Sets the attribute previous # # @param value the value to set the attribute previous to. # - # source://regexp_parser//lib/regexp_parser/token.rb#14 + # source://regexp_parser/lib/regexp_parser/token.rb#14 def previous=(_arg0); end def set_level; end diff --git a/sorbet/rbi/gems/reline@0.5.10.rbi b/sorbet/rbi/gems/reline@0.6.0.rbi similarity index 55% rename from sorbet/rbi/gems/reline@0.5.10.rbi rename to sorbet/rbi/gems/reline@0.6.0.rbi index 676e49980..1c43cbecc 100644 --- a/sorbet/rbi/gems/reline@0.5.10.rbi +++ b/sorbet/rbi/gems/reline@0.6.0.rbi @@ -5,367 +5,386 @@ # Please instead update this file by running `bin/tapioca gem reline`. -# source://reline//lib/reline/version.rb#1 +# source://reline/lib/reline/version.rb#1 module Reline extend ::Forwardable extend ::SingleForwardable class << self - # source://reline//lib/reline.rb#486 + # source://reline/lib/reline.rb#486 def core; end - # source://reline//lib/reline.rb#482 + # source://reline/lib/reline.rb#482 def encoding_system_needs; end - # source://reline//lib/reline.rb#463 + # source://reline/lib/reline.rb#463 def insert_text(text); end - # source://reline//lib/reline.rb#506 + # source://reline/lib/reline.rb#506 def line_editor; end - # source://reline//lib/reline.rb#502 + # source://reline/lib/reline.rb#502 def ungetc(c); end end end -# source://reline//lib/reline/io/ansi.rb#4 +# source://reline/lib/reline/io/ansi.rb#4 class Reline::ANSI < ::Reline::IO # @return [ANSI] a new instance of ANSI # - # source://reline//lib/reline/io/ansi.rb#36 + # source://reline/lib/reline/io/ansi.rb#34 def initialize; end # @return [Boolean] # - # source://reline//lib/reline/io/ansi.rb#283 + # source://reline/lib/reline/io/ansi.rb#232 def both_tty?; end - # source://reline//lib/reline/io/ansi.rb#343 + # source://reline/lib/reline/io/ansi.rb#244 + def buffered_output; end + + # source://reline/lib/reline/io/ansi.rb#292 def clear_screen; end - # source://reline//lib/reline/io/ansi.rb#248 + # source://reline/lib/reline/io/ansi.rb#227 def cursor_pos; end - # source://reline//lib/reline/io/ansi.rb#366 + # source://reline/lib/reline/io/ansi.rb#319 def deprep(otio); end # @return [Boolean] # - # source://reline//lib/reline/io/ansi.rb#209 + # source://reline/lib/reline/io/ansi.rb#167 def empty_buffer?; end - # source://reline//lib/reline/io/ansi.rb#43 + # source://reline/lib/reline/io/ansi.rb#42 def encoding; end - # source://reline//lib/reline/io/ansi.rb#331 + # source://reline/lib/reline/io/ansi.rb#280 def erase_after_cursor; end - # source://reline//lib/reline/io/ansi.rb#231 + # source://reline/lib/reline/io/ansi.rb#189 def get_screen_size; end # if the usage expects to wait indefinitely, use Float::INFINITY for timeout_second # - # source://reline//lib/reline/io/ansi.rb#201 + # source://reline/lib/reline/io/ansi.rb#159 def getc(timeout_second); end - # source://reline//lib/reline/io/ansi.rb#307 + # source://reline/lib/reline/io/ansi.rb#272 def hide_cursor; end # @return [Boolean] # - # source://reline//lib/reline/io/ansi.rb#205 + # source://reline/lib/reline/io/ansi.rb#163 def in_pasting?; end - # source://reline//lib/reline/io/ansi.rb#170 + # source://reline/lib/reline/io/ansi.rb#128 def inner_getc(timeout_second); end - # source://reline//lib/reline/io/ansi.rb#154 - def input=(val); end + # Sets the attribute input + # + # @param value the value to set the attribute input to. + # + # source://reline/lib/reline/io/ansi.rb#32 + def input=(_arg0); end - # source://reline//lib/reline/io/ansi.rb#287 + # source://reline/lib/reline/io/ansi.rb#252 def move_cursor_column(x); end - # source://reline//lib/reline/io/ansi.rb#299 + # source://reline/lib/reline/io/ansi.rb#264 def move_cursor_down(x); end - # source://reline//lib/reline/io/ansi.rb#291 + # source://reline/lib/reline/io/ansi.rb#256 def move_cursor_up(x); end - # source://reline//lib/reline/io/ansi.rb#158 - def output=(val); end + # Sets the attribute output + # + # @param value the value to set the attribute output to. + # + # source://reline/lib/reline/io/ansi.rb#32 + def output=(_arg0); end - # source://reline//lib/reline/io/ansi.rb#359 + # source://reline/lib/reline/io/ansi.rb#312 def prep; end - # source://reline//lib/reline/io/ansi.rb#189 + # source://reline/lib/reline/io/ansi.rb#147 def read_bracketed_paste; end - # source://reline//lib/reline/io/ansi.rb#220 + # source://reline/lib/reline/io/ansi.rb#178 def retrieve_keybuffer; end # This only works when the cursor is at the bottom of the scroll range # For more details, see https://github.com/ruby/reline/pull/577#issuecomment-1646679623 # - # source://reline//lib/reline/io/ansi.rb#337 + # source://reline/lib/reline/io/ansi.rb#286 def scroll_down(x); end - # source://reline//lib/reline/io/ansi.rb#70 + # source://reline/lib/reline/io/ansi.rb#68 def set_bracketed_paste_key_bindings(config); end - # source://reline//lib/reline/io/ansi.rb#47 - def set_default_key_bindings(config, allow_terminfo: T.unsafe(nil)); end + # source://reline/lib/reline/io/ansi.rb#49 + def set_default_key_bindings(config); end - # source://reline//lib/reline/io/ansi.rb#76 + # source://reline/lib/reline/io/ansi.rb#74 def set_default_key_bindings_ansi_cursor(config); end - # source://reline//lib/reline/io/ansi.rb#115 + # source://reline/lib/reline/io/ansi.rb#99 def set_default_key_bindings_comprehensive_list(config); end - # source://reline//lib/reline/io/ansi.rb#98 - def set_default_key_bindings_terminfo(config); end - - # source://reline//lib/reline/io/ansi.rb#241 + # source://reline/lib/reline/io/ansi.rb#199 def set_screen_size(rows, columns); end - # source://reline//lib/reline/io/ansi.rb#348 + # source://reline/lib/reline/io/ansi.rb#297 def set_winch_handler(&handler); end - # source://reline//lib/reline/io/ansi.rb#319 + # source://reline/lib/reline/io/ansi.rb#276 def show_cursor; end - # source://reline//lib/reline/io/ansi.rb#216 + # source://reline/lib/reline/io/ansi.rb#174 def ungetc(c); end - # source://reline//lib/reline/io/ansi.rb#162 + # source://reline/lib/reline/io/ansi.rb#120 def with_raw_input; end + + # source://reline/lib/reline/io/ansi.rb#236 + def write(string); end + + private + + # source://reline/lib/reline/io/ansi.rb#206 + def cursor_pos_internal(timeout:); end end -# source://reline//lib/reline/io/ansi.rb#17 +# source://reline/lib/reline/io/ansi.rb#17 Reline::ANSI::ANSI_CURSOR_KEY_BINDINGS = T.let(T.unsafe(nil), Hash) -# source://reline//lib/reline/io/ansi.rb#5 +# source://reline/lib/reline/io/ansi.rb#5 Reline::ANSI::CAPNAME_KEY_BINDINGS = T.let(T.unsafe(nil), Hash) -# source://reline//lib/reline/io/ansi.rb#188 +# source://reline/lib/reline/io/ansi.rb#146 Reline::ANSI::END_BRACKETED_PASTE = T.let(T.unsafe(nil), String) -# source://reline//lib/reline/io/ansi.rb#187 +# source://reline/lib/reline/io/ansi.rb#145 Reline::ANSI::START_BRACKETED_PASTE = T.let(T.unsafe(nil), String) -# source://reline//lib/reline/config.rb#1 +# source://reline/lib/reline/config.rb#1 class Reline::Config # @return [Config] a new instance of Config # - # source://reline//lib/reline/config.rb#31 + # source://reline/lib/reline/config.rb#31 def initialize; end - # source://reline//lib/reline/config.rb#162 + # source://reline/lib/reline/config.rb#162 def add_default_key_binding(keystroke, target); end - # source://reline//lib/reline/config.rb#158 + # source://reline/lib/reline/config.rb#158 def add_default_key_binding_by_keymap(keymap, keystroke, target); end - # source://reline//lib/reline/config.rb#147 + # source://reline/lib/reline/config.rb#147 def add_oneshot_key_binding(keystroke, target); end # Returns the value of attribute autocompletion. # - # source://reline//lib/reline/config.rb#29 + # source://reline/lib/reline/config.rb#29 def autocompletion; end # Sets the attribute autocompletion # # @param value the value to set the attribute autocompletion to. # - # source://reline//lib/reline/config.rb#29 + # source://reline/lib/reline/config.rb#29 def autocompletion=(_arg0); end - # source://reline//lib/reline/config.rb#313 - def bind_key(key, func_name); end + # source://reline/lib/reline/config.rb#314 + def bind_key(key, value); end - # source://reline//lib/reline/config.rb#246 + # source://reline/lib/reline/config.rb#247 def bind_variable(name, value, raw_value); end - # source://reline//lib/reline/config.rb#26 + # source://reline/lib/reline/config.rb#26 def completion_ignore_case; end - # source://reline//lib/reline/config.rb#26 + # source://reline/lib/reline/config.rb#26 def completion_ignore_case=(_arg0); end - # source://reline//lib/reline/config.rb#26 + # source://reline/lib/reline/config.rb#26 def convert_meta; end - # source://reline//lib/reline/config.rb#26 + # source://reline/lib/reline/config.rb#26 def convert_meta=(_arg0); end - # source://reline//lib/reline/config.rb#26 + # source://reline/lib/reline/config.rb#26 def disable_completion; end - # source://reline//lib/reline/config.rb#26 + # source://reline/lib/reline/config.rb#26 def disable_completion=(_arg0); end - # source://reline//lib/reline/config.rb#72 + # source://reline/lib/reline/config.rb#72 def editing_mode; end - # source://reline//lib/reline/config.rb#76 + # source://reline/lib/reline/config.rb#76 def editing_mode=(val); end # @return [Boolean] # - # source://reline//lib/reline/config.rb#80 + # source://reline/lib/reline/config.rb#80 def editing_mode_is?(*val); end - # source://reline//lib/reline/config.rb#26 + # source://reline/lib/reline/config.rb#26 def emacs_mode_string; end - # source://reline//lib/reline/config.rb#26 + # source://reline/lib/reline/config.rb#26 def emacs_mode_string=(_arg0); end - # source://reline//lib/reline/config.rb#26 + # source://reline/lib/reline/config.rb#26 def enable_bracketed_paste; end - # source://reline//lib/reline/config.rb#26 + # source://reline/lib/reline/config.rb#26 def enable_bracketed_paste=(_arg0); end - # source://reline//lib/reline/config.rb#211 + # source://reline/lib/reline/config.rb#212 def handle_directive(directive, file, no, if_stack); end - # source://reline//lib/reline/config.rb#26 + # source://reline/lib/reline/config.rb#26 def history_size; end - # source://reline//lib/reline/config.rb#26 + # source://reline/lib/reline/config.rb#26 def history_size=(_arg0); end - # source://reline//lib/reline/config.rb#92 + # source://reline/lib/reline/config.rb#92 def inputrc_path; end - # source://reline//lib/reline/config.rb#26 + # source://reline/lib/reline/config.rb#26 def isearch_terminators; end - # source://reline//lib/reline/config.rb#26 + # source://reline/lib/reline/config.rb#26 def isearch_terminators=(_arg0); end - # source://reline//lib/reline/config.rb#142 + # source://reline/lib/reline/config.rb#142 def key_bindings; end - # source://reline//lib/reline/config.rb#327 + # source://reline/lib/reline/config.rb#333 def key_notation_to_code(notation); end - # source://reline//lib/reline/config.rb#84 + # source://reline/lib/reline/config.rb#84 def keymap; end - # source://reline//lib/reline/config.rb#26 + # source://reline/lib/reline/config.rb#26 def keyseq_timeout; end - # source://reline//lib/reline/config.rb#26 + # source://reline/lib/reline/config.rb#26 def keyseq_timeout=(_arg0); end # @return [Boolean] # - # source://reline//lib/reline/config.rb#88 + # source://reline/lib/reline/config.rb#88 def loaded?; end - # source://reline//lib/reline/config.rb#361 + # source://reline/lib/reline/config.rb#319 + def parse_key_binding(key, func_name); end + + # source://reline/lib/reline/config.rb#359 def parse_keyseq(str); end - # source://reline//lib/reline/config.rb#122 + # source://reline/lib/reline/config.rb#122 def read(file = T.unsafe(nil)); end - # source://reline//lib/reline/config.rb#166 + # source://reline/lib/reline/config.rb#166 def read_lines(lines, file = T.unsafe(nil)); end - # source://reline//lib/reline/config.rb#369 + # source://reline/lib/reline/config.rb#365 def reload; end - # source://reline//lib/reline/config.rb#35 + # source://reline/lib/reline/config.rb#35 def reset; end - # source://reline//lib/reline/config.rb#154 + # source://reline/lib/reline/config.rb#154 def reset_oneshot_key_bindings; end - # source://reline//lib/reline/config.rb#42 + # source://reline/lib/reline/config.rb#42 def reset_variables; end - # source://reline//lib/reline/config.rb#308 + # source://reline/lib/reline/config.rb#309 def retrieve_string(str); end - # source://reline//lib/reline/config.rb#26 + # source://reline/lib/reline/config.rb#26 def show_all_if_ambiguous; end - # source://reline//lib/reline/config.rb#26 + # source://reline/lib/reline/config.rb#26 def show_all_if_ambiguous=(_arg0); end - # source://reline//lib/reline/config.rb#26 + # source://reline/lib/reline/config.rb#26 def show_mode_in_prompt; end - # source://reline//lib/reline/config.rb#26 + # source://reline/lib/reline/config.rb#26 def show_mode_in_prompt=(_arg0); end # Returns the value of attribute test_mode. # - # source://reline//lib/reline/config.rb#2 + # source://reline/lib/reline/config.rb#2 def test_mode; end - # source://reline//lib/reline/config.rb#26 + # source://reline/lib/reline/config.rb#26 def vi_cmd_mode_string; end - # source://reline//lib/reline/config.rb#26 + # source://reline/lib/reline/config.rb#26 def vi_cmd_mode_string=(_arg0); end - # source://reline//lib/reline/config.rb#26 + # source://reline/lib/reline/config.rb#26 def vi_ins_mode_string; end - # source://reline//lib/reline/config.rb#26 + # source://reline/lib/reline/config.rb#26 def vi_ins_mode_string=(_arg0); end private - # source://reline//lib/reline/config.rb#118 + # source://reline/lib/reline/config.rb#118 def default_inputrc_path; end # @return [Boolean] # - # source://reline//lib/reline/config.rb#374 + # source://reline/lib/reline/config.rb#370 def seven_bit_encoding?(encoding); end end -# source://reline//lib/reline/config.rb#6 +# source://reline/lib/reline/config.rb#6 class Reline::Config::InvalidInputrc < ::RuntimeError # Returns the value of attribute file. # - # source://reline//lib/reline/config.rb#7 + # source://reline/lib/reline/config.rb#7 def file; end # Sets the attribute file # # @param value the value to set the attribute file to. # - # source://reline//lib/reline/config.rb#7 + # source://reline/lib/reline/config.rb#7 def file=(_arg0); end # Returns the value of attribute lineno. # - # source://reline//lib/reline/config.rb#7 + # source://reline/lib/reline/config.rb#7 def lineno; end # Sets the attribute lineno # # @param value the value to set the attribute lineno to. # - # source://reline//lib/reline/config.rb#7 + # source://reline/lib/reline/config.rb#7 def lineno=(_arg0); end end -# source://reline//lib/reline/config.rb#4 +# source://reline/lib/reline/config.rb#4 Reline::Config::KEYSEQ_PATTERN = T.let(T.unsafe(nil), Regexp) -# source://reline//lib/reline/config.rb#10 +# source://reline/lib/reline/config.rb#10 Reline::Config::VARIABLE_NAMES = T.let(T.unsafe(nil), Array) -# source://reline//lib/reline/config.rb#24 +# source://reline/lib/reline/config.rb#24 Reline::Config::VARIABLE_NAME_SYMBOLS = T.let(T.unsafe(nil), Array) -# source://reline//lib/reline.rb#39 +# source://reline/lib/reline.rb#40 class Reline::Core extend ::Forwardable @@ -373,217 +392,217 @@ class Reline::Core # @yield [_self] # @yieldparam _self [Reline::Core] the object that the method was called on # - # source://reline//lib/reline.rb#67 + # source://reline/lib/reline.rb#68 def initialize; end # @raise [ArgumentError] # - # source://reline//lib/reline.rb#161 + # source://reline/lib/reline.rb#162 def add_dialog_proc(name_sym, p, context = T.unsafe(nil)); end - # source://reline//lib/reline.rb#409 + # source://reline/lib/reline.rb#409 def ambiguous_width; end - # source://reline//lib/reline.rb#54 + # source://reline/lib/reline.rb#55 def auto_indent_proc; end # @raise [ArgumentError] # - # source://reline//lib/reline.rb#146 + # source://reline/lib/reline.rb#147 def auto_indent_proc=(p); end - # source://reline//lib/reline.rb#54 + # source://reline/lib/reline.rb#55 def basic_quote_characters; end - # source://reline//lib/reline.rb#103 + # source://reline/lib/reline.rb#104 def basic_quote_characters=(v); end - # source://reline//lib/reline.rb#54 + # source://reline/lib/reline.rb#55 def basic_word_break_characters; end - # source://reline//lib/reline.rb#95 + # source://reline/lib/reline.rb#96 def basic_word_break_characters=(v); end - # source://reline//lib/reline.rb#54 + # source://reline/lib/reline.rb#55 def completer_quote_characters; end - # source://reline//lib/reline.rb#107 + # source://reline/lib/reline.rb#108 def completer_quote_characters=(v); end - # source://reline//lib/reline.rb#54 + # source://reline/lib/reline.rb#55 def completer_word_break_characters; end - # source://reline//lib/reline.rb#99 + # source://reline/lib/reline.rb#100 def completer_word_break_characters=(v); end - # source://reline//lib/reline.rb#54 + # source://reline/lib/reline.rb#55 def completion_append_character; end - # source://reline//lib/reline.rb#83 + # source://reline/lib/reline.rb#84 def completion_append_character=(val); end - # source://reline//lib/reline.rb#123 + # source://reline/lib/reline.rb#124 def completion_case_fold; end - # source://reline//lib/reline.rb#119 + # source://reline/lib/reline.rb#120 def completion_case_fold=(v); end - # source://reline//lib/reline.rb#54 + # source://reline/lib/reline.rb#55 def completion_proc; end # @raise [ArgumentError] # - # source://reline//lib/reline.rb#131 + # source://reline/lib/reline.rb#132 def completion_proc=(p); end - # source://reline//lib/reline.rb#127 + # source://reline/lib/reline.rb#128 def completion_quote_character; end # Returns the value of attribute config. # - # source://reline//lib/reline.rb#56 + # source://reline/lib/reline.rb#57 def config; end # Sets the attribute config # # @param value the value to set the attribute config to. # - # source://reline//lib/reline.rb#56 + # source://reline/lib/reline.rb#57 def config=(_arg0); end - # source://reline//lib/reline.rb#171 + # source://reline/lib/reline.rb#172 def dialog_proc(name_sym); end - # source://reline//lib/reline.rb#54 + # source://reline/lib/reline.rb#55 def dig_perfect_match_proc; end # @raise [ArgumentError] # - # source://reline//lib/reline.rb#155 + # source://reline/lib/reline.rb#156 def dig_perfect_match_proc=(p); end - # source://reline//lib/reline.rb#195 + # source://reline/lib/reline.rb#194 def emacs_editing_mode; end # @return [Boolean] # - # source://reline//lib/reline.rb#204 + # source://reline/lib/reline.rb#203 def emacs_editing_mode?; end - # source://reline//lib/reline.rb#79 + # source://reline/lib/reline.rb#80 def encoding; end - # source://reline//lib/reline.rb#54 + # source://reline/lib/reline.rb#55 def filename_quote_characters; end - # source://reline//lib/reline.rb#111 + # source://reline/lib/reline.rb#112 def filename_quote_characters=(v); end - # source://reline//lib/reline.rb#208 + # source://reline/lib/reline.rb#207 def get_screen_size; end # @raise [TypeError] # - # source://reline//lib/reline.rb#175 + # source://reline/lib/reline.rb#176 def input=(val); end - # source://reline//lib/reline.rb#75 + # source://reline/lib/reline.rb#76 def io_gate; end # Returns the value of attribute key_stroke. # - # source://reline//lib/reline.rb#57 + # source://reline/lib/reline.rb#58 def key_stroke; end # Sets the attribute key_stroke # # @param value the value to set the attribute key_stroke to. # - # source://reline//lib/reline.rb#57 + # source://reline/lib/reline.rb#58 def key_stroke=(_arg0); end # Returns the value of attribute last_incremental_search. # - # source://reline//lib/reline.rb#59 + # source://reline/lib/reline.rb#60 def last_incremental_search; end # Sets the attribute last_incremental_search # # @param value the value to set the attribute last_incremental_search to. # - # source://reline//lib/reline.rb#59 + # source://reline/lib/reline.rb#60 def last_incremental_search=(_arg0); end # Returns the value of attribute line_editor. # - # source://reline//lib/reline.rb#58 + # source://reline/lib/reline.rb#59 def line_editor; end # Sets the attribute line_editor # # @param value the value to set the attribute line_editor to. # - # source://reline//lib/reline.rb#58 + # source://reline/lib/reline.rb#59 def line_editor=(_arg0); end # Returns the value of attribute output. # - # source://reline//lib/reline.rb#60 + # source://reline/lib/reline.rb#61 def output; end # @raise [TypeError] # - # source://reline//lib/reline.rb#182 + # source://reline/lib/reline.rb#183 def output=(val); end - # source://reline//lib/reline.rb#54 + # source://reline/lib/reline.rb#55 def output_modifier_proc; end # @raise [ArgumentError] # - # source://reline//lib/reline.rb#136 + # source://reline/lib/reline.rb#137 def output_modifier_proc=(p); end - # source://reline//lib/reline.rb#54 + # source://reline/lib/reline.rb#55 def pre_input_hook; end - # source://reline//lib/reline.rb#151 + # source://reline/lib/reline.rb#152 def pre_input_hook=(p); end - # source://reline//lib/reline.rb#54 + # source://reline/lib/reline.rb#55 def prompt_proc; end # @raise [ArgumentError] # - # source://reline//lib/reline.rb#141 + # source://reline/lib/reline.rb#142 def prompt_proc=(p); end - # source://reline//lib/reline.rb#277 + # source://reline/lib/reline.rb#276 def readline(prompt = T.unsafe(nil), add_hist = T.unsafe(nil)); end - # source://reline//lib/reline.rb#251 + # source://reline/lib/reline.rb#250 def readmultiline(prompt = T.unsafe(nil), add_hist = T.unsafe(nil), &confirm_multiline_termination); end - # source://reline//lib/reline.rb#54 + # source://reline/lib/reline.rb#55 def special_prefixes; end - # source://reline//lib/reline.rb#115 + # source://reline/lib/reline.rb#116 def special_prefixes=(v); end - # source://reline//lib/reline.rb#190 + # source://reline/lib/reline.rb#189 def vi_editing_mode; end # @return [Boolean] # - # source://reline//lib/reline.rb#200 + # source://reline/lib/reline.rb#199 def vi_editing_mode?; end private - # source://reline//lib/reline.rb#294 + # source://reline/lib/reline.rb#293 def inner_readline(prompt, add_hist, multiline, &confirm_multiline_termination); end - # source://reline//lib/reline.rb#414 + # source://reline/lib/reline.rb#414 def may_req_ambiguous_char_width; end # GNU Readline watis for "keyseq-timeout" milliseconds when the input is @@ -593,252 +612,273 @@ class Reline::Core # `ESC` is ambiguous because it can be a standalone ESC (matched) or part of # `ESC char` or part of CSI sequence (matching). # - # source://reline//lib/reline.rb#379 + # source://reline/lib/reline.rb#379 def read_io(keyseq_timeout, &block); end end -# source://reline//lib/reline.rb#40 +# source://reline/lib/reline.rb#41 Reline::Core::ATTR_READER_NAMES = T.let(T.unsafe(nil), Array) -# source://reline//lib/reline.rb#249 +# source://reline/lib/reline.rb#248 Reline::DEFAULT_DIALOG_CONTEXT = T.let(T.unsafe(nil), Array) -# source://reline//lib/reline.rb#212 +# source://reline/lib/reline.rb#211 Reline::DEFAULT_DIALOG_PROC_AUTOCOMPLETE = T.let(T.unsafe(nil), Proc) -# source://reline//lib/reline/io/dumb.rb#3 +# source://reline/lib/reline/io/dumb.rb#3 class Reline::Dumb < ::Reline::IO # @return [Dumb] a new instance of Dumb # - # source://reline//lib/reline/io/dumb.rb#6 + # source://reline/lib/reline/io/dumb.rb#8 def initialize(encoding: T.unsafe(nil)); end - # source://reline//lib/reline/io/dumb.rb#87 + # source://reline/lib/reline/io/dumb.rb#49 + def buffered_output; end + + # source://reline/lib/reline/io/dumb.rb#101 def clear_screen; end - # source://reline//lib/reline/io/dumb.rb#62 + # source://reline/lib/reline/io/dumb.rb#76 def cursor_pos; end - # source://reline//lib/reline/io/dumb.rb#104 + # source://reline/lib/reline/io/dumb.rb#118 def deprep(otio); end # @return [Boolean] # - # source://reline//lib/reline/io/dumb.rb#14 + # source://reline/lib/reline/io/dumb.rb#17 def dumb?; end - # source://reline//lib/reline/io/dumb.rb#18 + # source://reline/lib/reline/io/dumb.rb#21 def encoding; end - # source://reline//lib/reline/io/dumb.rb#81 + # source://reline/lib/reline/io/dumb.rb#95 def erase_after_cursor; end - # source://reline//lib/reline/io/dumb.rb#58 + # source://reline/lib/reline/io/dumb.rb#72 def get_screen_size; end - # source://reline//lib/reline/io/dumb.rb#39 + # source://reline/lib/reline/io/dumb.rb#53 def getc(_timeout_second); end - # source://reline//lib/reline/io/dumb.rb#66 + # source://reline/lib/reline/io/dumb.rb#80 def hide_cursor; end # @return [Boolean] # - # source://reline//lib/reline/io/dumb.rb#97 + # source://reline/lib/reline/io/dumb.rb#111 def in_pasting?; end - # source://reline//lib/reline/io/dumb.rb#31 + # source://reline/lib/reline/io/dumb.rb#37 def input=(val); end - # source://reline//lib/reline/io/dumb.rb#72 + # source://reline/lib/reline/io/dumb.rb#86 def move_cursor_column(val); end - # source://reline//lib/reline/io/dumb.rb#78 + # source://reline/lib/reline/io/dumb.rb#92 def move_cursor_down(val); end - # source://reline//lib/reline/io/dumb.rb#75 + # source://reline/lib/reline/io/dumb.rb#89 def move_cursor_up(val); end - # source://reline//lib/reline/io/dumb.rb#101 + # Sets the attribute output + # + # @param value the value to set the attribute output to. + # + # source://reline/lib/reline/io/dumb.rb#6 + def output=(_arg0); end + + # source://reline/lib/reline/io/dumb.rb#115 def prep; end - # source://reline//lib/reline/io/dumb.rb#84 + # source://reline/lib/reline/io/dumb.rb#98 def scroll_down(val); end - # source://reline//lib/reline/io/dumb.rb#28 + # source://reline/lib/reline/io/dumb.rb#34 def set_default_key_bindings(_); end - # source://reline//lib/reline/io/dumb.rb#90 + # source://reline/lib/reline/io/dumb.rb#104 def set_screen_size(rows, columns); end - # source://reline//lib/reline/io/dumb.rb#94 + # source://reline/lib/reline/io/dumb.rb#108 def set_winch_handler(&handler); end - # source://reline//lib/reline/io/dumb.rb#69 + # source://reline/lib/reline/io/dumb.rb#83 def show_cursor; end - # source://reline//lib/reline/io/dumb.rb#54 + # source://reline/lib/reline/io/dumb.rb#68 def ungetc(c); end - # source://reline//lib/reline/io/dumb.rb#35 + # source://reline/lib/reline/io/dumb.rb#41 def with_raw_input; end + + # source://reline/lib/reline/io/dumb.rb#45 + def write(string); end end # Do not send color reset sequence # -# source://reline//lib/reline/io/dumb.rb#4 +# source://reline/lib/reline/io/dumb.rb#4 Reline::Dumb::RESET_COLOR = T.let(T.unsafe(nil), String) # NOTE: For making compatible with the rb-readline gem # -# source://reline//lib/reline.rb#16 +# source://reline/lib/reline.rb#15 Reline::FILENAME_COMPLETION_PROC = T.let(T.unsafe(nil), T.untyped) -# source://reline//lib/reline/face.rb#3 +# source://reline/lib/reline/face.rb#3 class Reline::Face class << self - # source://reline//lib/reline/face.rb#169 + # source://reline/lib/reline/face.rb#169 def [](name); end - # source://reline//lib/reline/face.rb#173 + # source://reline/lib/reline/face.rb#173 def config(name, &block); end - # source://reline//lib/reline/face.rb#178 + # source://reline/lib/reline/face.rb#178 def configs; end - # source://reline//lib/reline/face.rb#164 + # source://reline/lib/reline/face.rb#164 def force_truecolor; end - # source://reline//lib/reline/face.rb#182 + # source://reline/lib/reline/face.rb#182 def load_initial_configs; end - # source://reline//lib/reline/face.rb#195 + # source://reline/lib/reline/face.rb#195 def reset_to_initial_configs; end # @return [Boolean] # - # source://reline//lib/reline/face.rb#160 + # source://reline/lib/reline/face.rb#160 def truecolor?; end end end -# source://reline//lib/reline/face.rb#58 +# source://reline/lib/reline/face.rb#58 class Reline::Face::Config # @return [Config] a new instance of Config # - # source://reline//lib/reline/face.rb#62 + # source://reline/lib/reline/face.rb#62 def initialize(name, &block); end - # source://reline//lib/reline/face.rb#84 + # source://reline/lib/reline/face.rb#84 def [](name); end - # source://reline//lib/reline/face.rb#72 + # source://reline/lib/reline/face.rb#72 def define(name, **values); end # Returns the value of attribute definition. # - # source://reline//lib/reline/face.rb#70 + # source://reline/lib/reline/face.rb#70 def definition; end - # source://reline//lib/reline/face.rb#77 + # source://reline/lib/reline/face.rb#77 def reconfigure; end private - # source://reline//lib/reline/face.rb#126 + # source://reline/lib/reline/face.rb#126 def format_to_sgr(ordered_values); end # @return [Boolean] # - # source://reline//lib/reline/face.rb#153 + # source://reline/lib/reline/face.rb#153 def rgb_expression?(color); end - # source://reline//lib/reline/face.rb#90 + # source://reline/lib/reline/face.rb#90 def sgr_rgb(key, value); end - # source://reline//lib/reline/face.rb#108 + # source://reline/lib/reline/face.rb#108 def sgr_rgb_256color(key, value); end - # source://reline//lib/reline/face.rb#99 + # source://reline/lib/reline/face.rb#99 def sgr_rgb_truecolor(key, value); end end -# source://reline//lib/reline/face.rb#59 +# source://reline/lib/reline/face.rb#59 Reline::Face::Config::ESSENTIAL_DEFINE_NAMES = T.let(T.unsafe(nil), Array) -# source://reline//lib/reline/face.rb#60 +# source://reline/lib/reline/face.rb#60 Reline::Face::Config::RESET_SGR = T.let(T.unsafe(nil), String) -# source://reline//lib/reline/face.rb#4 +# source://reline/lib/reline/face.rb#4 Reline::Face::SGR_PARAMETERS = T.let(T.unsafe(nil), Hash) -# source://reline//lib/reline.rb#519 +# source://reline/lib/reline.rb#519 Reline::HISTORY = T.let(T.unsafe(nil), Reline::History) -# source://reline//lib/reline/history.rb#1 +# source://reline/lib/reline/history.rb#1 class Reline::History < ::Array # @return [History] a new instance of History # - # source://reline//lib/reline/history.rb#2 + # source://reline/lib/reline/history.rb#2 def initialize(config); end - # source://reline//lib/reline/history.rb#52 + # source://reline/lib/reline/history.rb#52 def <<(val); end - # source://reline//lib/reline/history.rb#15 + # source://reline/lib/reline/history.rb#15 def [](index); end - # source://reline//lib/reline/history.rb#20 + # source://reline/lib/reline/history.rb#20 def []=(index, val); end - # source://reline//lib/reline/history.rb#25 + # source://reline/lib/reline/history.rb#25 def concat(*val); end - # source://reline//lib/reline/history.rb#10 + # source://reline/lib/reline/history.rb#10 def delete_at(index); end - # source://reline//lib/reline/history.rb#31 + # source://reline/lib/reline/history.rb#31 def push(*val); end - # source://reline//lib/reline/history.rb#6 + # source://reline/lib/reline/history.rb#6 def to_s; end private # @raise [IndexError] # - # source://reline//lib/reline/history.rb#62 + # source://reline/lib/reline/history.rb#62 def check_index(index); end end -# source://reline//lib/reline/io.rb#3 +# source://reline/lib/reline/io.rb#3 class Reline::IO # @return [Boolean] # - # source://reline//lib/reline/io.rb#27 + # source://reline/lib/reline/io.rb#27 def dumb?; end - # source://reline//lib/reline/io.rb#35 + # Read a single encoding valid character from the input. + # + # source://reline/lib/reline/io.rb#40 + def read_single_char(keyseq_timeout); end + + # source://reline/lib/reline/io.rb#35 def reset_color_sequence; end # @return [Boolean] # - # source://reline//lib/reline/io.rb#31 + # source://reline/lib/reline/io.rb#31 def win?; end class << self - # source://reline//lib/reline/io.rb#6 + # source://reline/lib/reline/io.rb#6 def decide_io_gate; end end end -# source://reline//lib/reline/io.rb#4 +# source://reline/lib/reline/io.rb#4 Reline::IO::RESET_COLOR = T.let(T.unsafe(nil), String) -# source://reline//lib/reline.rb#512 +# source://reline/lib/reline.rb#512 Reline::IOGate = T.let(T.unsafe(nil), Reline::ANSI) -# source://reline//lib/reline.rb#21 +# EOF key: { char: nil, method_symbol: nil } +# Other key: { char: String, method_symbol: Symbol } +# +# source://reline/lib/reline.rb#22 class Reline::Key < ::Struct # Returns the value of attribute char # @@ -851,34 +891,34 @@ class Reline::Key < ::Struct # @return [Object] the newly set value def char=(_); end - # Returns the value of attribute combined_char - # - # @return [Object] the current value of combined_char - def combined_char; end - - # Sets the attribute combined_char - # - # @param value [Object] the value to set the attribute combined_char to. - # @return [Object] the newly set value - def combined_char=(_); end - # For dialog_proc `key.match?(dialog.name)` # # @return [Boolean] # - # source://reline//lib/reline.rb#23 + # source://reline/lib/reline.rb#24 def match?(sym); end - # Returns the value of attribute with_meta + # Returns the value of attribute method_symbol # - # @return [Object] the current value of with_meta - def with_meta; end + # @return [Object] the current value of method_symbol + def method_symbol; end - # Sets the attribute with_meta + # Sets the attribute method_symbol # - # @param value [Object] the value to set the attribute with_meta to. + # @param value [Object] the value to set the attribute method_symbol to. # @return [Object] the newly set value - def with_meta=(_); end + def method_symbol=(_); end + + # Returns the value of attribute unused_boolean + # + # @return [Object] the current value of unused_boolean + def unused_boolean; end + + # Sets the attribute unused_boolean + # + # @param value [Object] the value to set the attribute unused_boolean to. + # @return [Object] the newly set value + def unused_boolean=(_); end class << self def [](*_arg0); end @@ -889,557 +929,559 @@ class Reline::Key < ::Struct end end -# source://reline//lib/reline/key_actor/base.rb#1 +# source://reline/lib/reline/key_actor/base.rb#1 class Reline::KeyActor::Base # @return [Base] a new instance of Base # - # source://reline//lib/reline/key_actor/base.rb#2 - def initialize(mapping = T.unsafe(nil)); end + # source://reline/lib/reline/key_actor/base.rb#2 + def initialize(mappings = T.unsafe(nil)); end - # source://reline//lib/reline/key_actor/base.rb#12 + # source://reline/lib/reline/key_actor/base.rb#18 def add(key, func); end - # source://reline//lib/reline/key_actor/base.rb#27 + # source://reline/lib/reline/key_actor/base.rb#8 + def add_mappings(mappings); end + + # source://reline/lib/reline/key_actor/base.rb#33 def clear; end - # source://reline//lib/reline/key_actor/base.rb#23 + # source://reline/lib/reline/key_actor/base.rb#29 def get(key); end - # source://reline//lib/reline/key_actor/base.rb#8 - def get_method(key); end - # @return [Boolean] # - # source://reline//lib/reline/key_actor/base.rb#19 + # source://reline/lib/reline/key_actor/base.rb#25 def matching?(key); end end -# source://reline//lib/reline/key_actor/composite.rb#1 +# source://reline/lib/reline/key_actor/composite.rb#1 class Reline::KeyActor::Composite # @return [Composite] a new instance of Composite # - # source://reline//lib/reline/key_actor/composite.rb#2 + # source://reline/lib/reline/key_actor/composite.rb#2 def initialize(key_actors); end - # source://reline//lib/reline/key_actor/composite.rb#10 + # source://reline/lib/reline/key_actor/composite.rb#10 def get(key); end # @return [Boolean] # - # source://reline//lib/reline/key_actor/composite.rb#6 + # source://reline/lib/reline/key_actor/composite.rb#6 def matching?(key); end end -# source://reline//lib/reline/key_actor/emacs.rb#2 +# source://reline/lib/reline/key_actor/emacs.rb#2 Reline::KeyActor::EMACS_MAPPING = T.let(T.unsafe(nil), Array) -# source://reline//lib/reline/key_actor/vi_command.rb#2 +# source://reline/lib/reline/key_actor/vi_command.rb#2 Reline::KeyActor::VI_COMMAND_MAPPING = T.let(T.unsafe(nil), Array) -# source://reline//lib/reline/key_actor/vi_insert.rb#2 +# source://reline/lib/reline/key_actor/vi_insert.rb#2 Reline::KeyActor::VI_INSERT_MAPPING = T.let(T.unsafe(nil), Array) -# source://reline//lib/reline/key_stroke.rb#1 +# source://reline/lib/reline/key_stroke.rb#1 class Reline::KeyStroke # @return [KeyStroke] a new instance of KeyStroke # - # source://reline//lib/reline/key_stroke.rb#6 - def initialize(config); end + # source://reline/lib/reline/key_stroke.rb#8 + def initialize(config, encoding); end + + # Returns the value of attribute encoding. + # + # source://reline/lib/reline/key_stroke.rb#6 + def encoding; end + + # Sets the attribute encoding + # + # @param value the value to set the attribute encoding to. + # + # source://reline/lib/reline/key_stroke.rb#6 + def encoding=(_arg0); end - # source://reline//lib/reline/key_stroke.rb#42 + # source://reline/lib/reline/key_stroke.rb#44 def expand(input); end - # source://reline//lib/reline/key_stroke.rb#19 + # source://reline/lib/reline/key_stroke.rb#22 def match_status(input); end private - # source://reline//lib/reline/key_stroke.rb#106 + # source://reline/lib/reline/key_stroke.rb#116 def key_mapping; end # returns match status of CSI/SS3 sequence and matched length # - # source://reline//lib/reline/key_stroke.rb#70 + # source://reline/lib/reline/key_stroke.rb#80 def match_unknown_escape_sequence(input, vi_mode: T.unsafe(nil)); end end -# source://reline//lib/reline/key_stroke.rb#4 +# source://reline/lib/reline/key_stroke.rb#4 Reline::KeyStroke::CSI_INTERMEDIATE_BYTES_RANGE = T.let(T.unsafe(nil), Range) -# source://reline//lib/reline/key_stroke.rb#3 +# source://reline/lib/reline/key_stroke.rb#3 Reline::KeyStroke::CSI_PARAMETER_BYTES_RANGE = T.let(T.unsafe(nil), Range) -# source://reline//lib/reline/key_stroke.rb#2 +# source://reline/lib/reline/key_stroke.rb#2 Reline::KeyStroke::ESC_BYTE = T.let(T.unsafe(nil), Integer) # Input partially matches to a key sequence # -# source://reline//lib/reline/key_stroke.rb#13 +# source://reline/lib/reline/key_stroke.rb#16 Reline::KeyStroke::MATCHED = T.let(T.unsafe(nil), Symbol) # Input exactly matches to a key sequence # -# source://reline//lib/reline/key_stroke.rb#11 +# source://reline/lib/reline/key_stroke.rb#14 Reline::KeyStroke::MATCHING = T.let(T.unsafe(nil), Symbol) # Input matches to a key sequence and the key sequence is a prefix of another key sequence # -# source://reline//lib/reline/key_stroke.rb#15 +# source://reline/lib/reline/key_stroke.rb#18 Reline::KeyStroke::MATCHING_MATCHED = T.let(T.unsafe(nil), Symbol) # Input does not match to any key sequence # -# source://reline//lib/reline/key_stroke.rb#17 +# source://reline/lib/reline/key_stroke.rb#20 Reline::KeyStroke::UNMATCHED = T.let(T.unsafe(nil), Symbol) -# source://reline//lib/reline/kill_ring.rb#1 +# source://reline/lib/reline/kill_ring.rb#1 class Reline::KillRing include ::Enumerable # @return [KillRing] a new instance of KillRing # - # source://reline//lib/reline/kill_ring.rb#61 + # source://reline/lib/reline/kill_ring.rb#61 def initialize(max = T.unsafe(nil)); end - # source://reline//lib/reline/kill_ring.rb#68 + # source://reline/lib/reline/kill_ring.rb#68 def append(string, before_p = T.unsafe(nil)); end - # source://reline//lib/reline/kill_ring.rb#116 + # source://reline/lib/reline/kill_ring.rb#116 def each; end - # source://reline//lib/reline/kill_ring.rb#83 + # source://reline/lib/reline/kill_ring.rb#83 def process; end - # source://reline//lib/reline/kill_ring.rb#96 + # source://reline/lib/reline/kill_ring.rb#96 def yank; end - # source://reline//lib/reline/kill_ring.rb#106 + # source://reline/lib/reline/kill_ring.rb#106 def yank_pop; end end -# source://reline//lib/reline/kill_ring.rb#21 +# source://reline/lib/reline/kill_ring.rb#21 class Reline::KillRing::RingBuffer # @return [RingBuffer] a new instance of RingBuffer # - # source://reline//lib/reline/kill_ring.rb#25 + # source://reline/lib/reline/kill_ring.rb#25 def initialize(max = T.unsafe(nil)); end - # source://reline//lib/reline/kill_ring.rb#31 + # source://reline/lib/reline/kill_ring.rb#31 def <<(point); end # @return [Boolean] # - # source://reline//lib/reline/kill_ring.rb#56 + # source://reline/lib/reline/kill_ring.rb#56 def empty?; end # Returns the value of attribute head. # - # source://reline//lib/reline/kill_ring.rb#23 + # source://reline/lib/reline/kill_ring.rb#23 def head; end # Returns the value of attribute size. # - # source://reline//lib/reline/kill_ring.rb#22 + # source://reline/lib/reline/kill_ring.rb#22 def size; end end -# source://reline//lib/reline/kill_ring.rb#11 +# source://reline/lib/reline/kill_ring.rb#11 class Reline::KillRing::RingPoint < ::Struct # @return [RingPoint] a new instance of RingPoint # - # source://reline//lib/reline/kill_ring.rb#12 + # source://reline/lib/reline/kill_ring.rb#12 def initialize(str); end - # source://reline//lib/reline/kill_ring.rb#16 + # source://reline/lib/reline/kill_ring.rb#16 def ==(other); end end -# source://reline//lib/reline/kill_ring.rb#6 +# source://reline/lib/reline/kill_ring.rb#6 Reline::KillRing::State::CONTINUED = T.let(T.unsafe(nil), Symbol) -# source://reline//lib/reline/kill_ring.rb#5 +# source://reline/lib/reline/kill_ring.rb#5 Reline::KillRing::State::FRESH = T.let(T.unsafe(nil), Symbol) -# source://reline//lib/reline/kill_ring.rb#7 +# source://reline/lib/reline/kill_ring.rb#7 Reline::KillRing::State::PROCESSED = T.let(T.unsafe(nil), Symbol) -# source://reline//lib/reline/kill_ring.rb#8 +# source://reline/lib/reline/kill_ring.rb#8 Reline::KillRing::State::YANK = T.let(T.unsafe(nil), Symbol) -# source://reline//lib/reline/line_editor.rb#6 +# source://reline/lib/reline/line_editor.rb#6 class Reline::LineEditor # @return [LineEditor] a new instance of LineEditor # - # source://reline//lib/reline/line_editor.rb#75 - def initialize(config, encoding); end + # source://reline/lib/reline/line_editor.rb#73 + def initialize(config); end - # source://reline//lib/reline/line_editor.rb#681 + # source://reline/lib/reline/line_editor.rb#692 def add_dialog_proc(name, p, context = T.unsafe(nil)); end # Returns the value of attribute auto_indent_proc. # - # source://reline//lib/reline/line_editor.rb#14 + # source://reline/lib/reline/line_editor.rb#14 def auto_indent_proc; end # Sets the attribute auto_indent_proc # # @param value the value to set the attribute auto_indent_proc to. # - # source://reline//lib/reline/line_editor.rb#14 + # source://reline/lib/reline/line_editor.rb#14 def auto_indent_proc=(_arg0); end # TODO: Use "private alias_method" idiom after drop Ruby 2.5. # - # source://reline//lib/reline/line_editor.rb#8 + # source://reline/lib/reline/line_editor.rb#8 def byte_pointer; end - # source://reline//lib/reline/line_editor.rb#1380 + # source://reline/lib/reline/line_editor.rb#1282 def byte_pointer=(val); end - # source://reline//lib/reline/line_editor.rb#398 + # source://reline/lib/reline/line_editor.rb#398 def calculate_overlay_levels(overlay_levels); end - # source://reline//lib/reline/line_editor.rb#1165 - def call_completion_proc; end + # source://reline/lib/reline/line_editor.rb#1122 + def call_completion_proc(pre, target, post, quote); end - # source://reline//lib/reline/line_editor.rb#1173 + # source://reline/lib/reline/line_editor.rb#1129 def call_completion_proc_with_checking_args(pre, target, post); end - # source://reline//lib/reline/line_editor.rb#446 + # source://reline/lib/reline/line_editor.rb#446 def clear_dialogs; end # Returns the value of attribute completion_append_character. # - # source://reline//lib/reline/line_editor.rb#11 + # source://reline/lib/reline/line_editor.rb#11 def completion_append_character; end # Sets the attribute completion_append_character # # @param value the value to set the attribute completion_append_character to. # - # source://reline//lib/reline/line_editor.rb#11 + # source://reline/lib/reline/line_editor.rb#11 def completion_append_character=(_arg0); end # Returns the value of attribute completion_proc. # - # source://reline//lib/reline/line_editor.rb#10 + # source://reline/lib/reline/line_editor.rb#10 def completion_proc; end # Sets the attribute completion_proc # # @param value the value to set the attribute completion_proc to. # - # source://reline//lib/reline/line_editor.rb#10 + # source://reline/lib/reline/line_editor.rb#10 def completion_proc=(_arg0); end - # source://reline//lib/reline/line_editor.rb#1319 + # source://reline/lib/reline/line_editor.rb#1223 def confirm_multiline_termination; end # Returns the value of attribute confirm_multiline_termination_proc. # - # source://reline//lib/reline/line_editor.rb#9 + # source://reline/lib/reline/line_editor.rb#9 def confirm_multiline_termination_proc; end # Sets the attribute confirm_multiline_termination_proc # # @param value the value to set the attribute confirm_multiline_termination_proc to. # - # source://reline//lib/reline/line_editor.rb#9 + # source://reline/lib/reline/line_editor.rb#9 def confirm_multiline_termination_proc=(_arg0); end - # source://reline//lib/reline/line_editor.rb#304 + # source://reline/lib/reline/line_editor.rb#304 def current_byte_pointer_cursor; end - # source://reline//lib/reline/line_editor.rb#1216 + # source://reline/lib/reline/line_editor.rb#1172 def current_line; end - # source://reline//lib/reline/line_editor.rb#1346 + # source://reline/lib/reline/line_editor.rb#1248 def delete_text(start = T.unsafe(nil), length = T.unsafe(nil)); end - # source://reline//lib/reline/line_editor.rb#888 + # source://reline/lib/reline/line_editor.rb#874 def dialog_proc_scope_completion_journey_data; end # Returns the value of attribute dig_perfect_match_proc. # - # source://reline//lib/reline/line_editor.rb#15 + # source://reline/lib/reline/line_editor.rb#15 def dig_perfect_match_proc; end # Sets the attribute dig_perfect_match_proc # # @param value the value to set the attribute dig_perfect_match_proc to. # - # source://reline//lib/reline/line_editor.rb#15 + # source://reline/lib/reline/line_editor.rb#15 def dig_perfect_match_proc=(_arg0); end - # source://reline//lib/reline/line_editor.rb#790 + # source://reline/lib/reline/line_editor.rb#801 def editing_mode; end + # source://reline/lib/reline/line_editor.rb#84 + def encoding; end + # @return [Boolean] # - # source://reline//lib/reline/line_editor.rb#218 + # source://reline/lib/reline/line_editor.rb#220 def eof?; end - # source://reline//lib/reline/line_editor.rb#214 + # source://reline/lib/reline/line_editor.rb#216 def finalize; end - # source://reline//lib/reline/line_editor.rb#1400 + # source://reline/lib/reline/line_editor.rb#1302 def finish; end # @return [Boolean] # - # source://reline//lib/reline/line_editor.rb#1396 + # source://reline/lib/reline/line_editor.rb#1298 def finished?; end - # source://reline//lib/reline/line_editor.rb#166 + # source://reline/lib/reline/line_editor.rb#168 def handle_signal; end - # source://reline//lib/reline/line_editor.rb#1086 + # source://reline/lib/reline/line_editor.rb#1043 def input_key(key); end - # source://reline//lib/reline/line_editor.rb#1324 + # source://reline/lib/reline/line_editor.rb#1228 def insert_multiline_text(text); end - # source://reline//lib/reline/line_editor.rb#1336 + # source://reline/lib/reline/line_editor.rb#1238 def insert_text(text); end - # source://reline//lib/reline/line_editor.rb#82 + # source://reline/lib/reline/line_editor.rb#80 def io_gate; end - # source://reline//lib/reline/line_editor.rb#1212 + # source://reline/lib/reline/line_editor.rb#1168 def line; end - # source://reline//lib/reline/line_editor.rb#351 + # source://reline/lib/reline/line_editor.rb#351 def modified_lines; end - # source://reline//lib/reline/line_editor.rb#273 + # source://reline/lib/reline/line_editor.rb#273 def multiline_off; end - # source://reline//lib/reline/line_editor.rb#269 + # source://reline/lib/reline/line_editor.rb#269 def multiline_on; end - # Sets the attribute output - # - # @param value the value to set the attribute output to. - # - # source://reline//lib/reline/line_editor.rb#16 - def output=(_arg0); end - # Returns the value of attribute output_modifier_proc. # - # source://reline//lib/reline/line_editor.rb#12 + # source://reline/lib/reline/line_editor.rb#12 def output_modifier_proc; end # Sets the attribute output_modifier_proc # # @param value the value to set the attribute output_modifier_proc to. # - # source://reline//lib/reline/line_editor.rb#12 + # source://reline/lib/reline/line_editor.rb#12 def output_modifier_proc=(_arg0); end - # source://reline//lib/reline/line_editor.rb#471 + # source://reline/lib/reline/line_editor.rb#473 def print_nomultiline_prompt; end - # source://reline//lib/reline/line_editor.rb#357 + # source://reline/lib/reline/line_editor.rb#357 def prompt_list; end # Returns the value of attribute prompt_proc. # - # source://reline//lib/reline/line_editor.rb#13 + # source://reline/lib/reline/line_editor.rb#13 def prompt_proc; end # Sets the attribute prompt_proc # # @param value the value to set the attribute prompt_proc to. # - # source://reline//lib/reline/line_editor.rb#13 + # source://reline/lib/reline/line_editor.rb#13 def prompt_proc=(_arg0); end - # source://reline//lib/reline/line_editor.rb#1136 + # source://reline/lib/reline/line_editor.rb#1093 def push_input_lines; end - # source://reline//lib/reline/line_editor.rb#476 + # source://reline/lib/reline/line_editor.rb#481 def render; end - # source://reline//lib/reline/line_editor.rb#461 + # source://reline/lib/reline/line_editor.rb#461 def render_finished; end - # source://reline//lib/reline/line_editor.rb#406 + # source://reline/lib/reline/line_editor.rb#406 def render_line_differential(old_items, new_items); end - # source://reline//lib/reline/line_editor.rb#554 + # source://reline/lib/reline/line_editor.rb#564 def rerender; end - # source://reline//lib/reline/line_editor.rb#139 - def reset(prompt = T.unsafe(nil), encoding:); end + # source://reline/lib/reline/line_editor.rb#141 + def reset(prompt = T.unsafe(nil)); end - # source://reline//lib/reline/line_editor.rb#260 + # source://reline/lib/reline/line_editor.rb#261 def reset_line; end - # source://reline//lib/reline/line_editor.rb#222 - def reset_variables(prompt = T.unsafe(nil), encoding:); end + # source://reline/lib/reline/line_editor.rb#224 + def reset_variables(prompt = T.unsafe(nil)); end - # source://reline//lib/reline/line_editor.rb#550 + # source://reline/lib/reline/line_editor.rb#560 def rest_height(wrapped_cursor_y); end - # source://reline//lib/reline/line_editor.rb#1243 - def retrieve_completion_block(set_completion_quote_character = T.unsafe(nil)); end + # source://reline/lib/reline/line_editor.rb#1187 + def retrieve_completion_block; end - # source://reline//lib/reline/line_editor.rb#1132 + # source://reline/lib/reline/line_editor.rb#1089 def save_old_buffer; end - # source://reline//lib/reline/line_editor.rb#363 + # source://reline/lib/reline/line_editor.rb#363 def screen_height; end - # source://reline//lib/reline/line_editor.rb#371 + # source://reline/lib/reline/line_editor.rb#371 def screen_scroll_top; end - # source://reline//lib/reline/line_editor.rb#367 + # source://reline/lib/reline/line_editor.rb#367 def screen_width; end - # source://reline//lib/reline/line_editor.rb#1155 + # source://reline/lib/reline/line_editor.rb#1112 def scroll_into_view; end - # source://reline//lib/reline/line_editor.rb#1220 + # source://reline/lib/reline/line_editor.rb#1176 def set_current_line(line, byte_pointer = T.unsafe(nil)); end - # source://reline//lib/reline/line_editor.rb#1231 - def set_current_lines(lines, byte_pointer = T.unsafe(nil), line_index = T.unsafe(nil)); end - - # source://reline//lib/reline/line_editor.rb#86 + # source://reline/lib/reline/line_editor.rb#88 def set_pasting_state(in_pasting); end - # source://reline//lib/reline/line_editor.rb#205 + # source://reline/lib/reline/line_editor.rb#207 def set_signal_handlers; end - # source://reline//lib/reline/line_editor.rb#1148 + # source://reline/lib/reline/line_editor.rb#1105 def trim_input_lines; end - # source://reline//lib/reline/line_editor.rb#1076 + # source://reline/lib/reline/line_editor.rb#1033 def update(key); end - # source://reline//lib/reline/line_editor.rb#453 + # source://reline/lib/reline/line_editor.rb#453 def update_dialogs(key = T.unsafe(nil)); end - # source://reline//lib/reline/line_editor.rb#546 + # source://reline/lib/reline/line_editor.rb#556 def upper_space_height(wrapped_cursor_y); end - # source://reline//lib/reline/line_editor.rb#1388 + # source://reline/lib/reline/line_editor.rb#1290 def whole_buffer; end - # source://reline//lib/reline/line_editor.rb#1384 + # source://reline/lib/reline/line_editor.rb#1286 def whole_lines; end - # source://reline//lib/reline/line_editor.rb#343 + # source://reline/lib/reline/line_editor.rb#343 def with_cache(key, *deps); end - # source://reline//lib/reline/line_editor.rb#962 + # source://reline/lib/reline/line_editor.rb#948 def wrap_method_call(method_symbol, method_obj, key, with_operator = T.unsafe(nil)); end # Calculate cursor position in word wrapped content. # - # source://reline//lib/reline/line_editor.rb#437 + # source://reline/lib/reline/line_editor.rb#437 def wrapped_cursor_position; end - # source://reline//lib/reline/line_editor.rb#375 + # source://reline/lib/reline/line_editor.rb#375 def wrapped_prompt_and_input_lines; end private # @return [Boolean] # - # source://reline//lib/reline/line_editor.rb#952 + # source://reline/lib/reline/line_editor.rb#938 def argumentable?(method_obj); end - # source://reline//lib/reline/line_editor.rb#1555 + # source://reline/lib/reline/line_editor.rb#1443 def backward_char(key, arg: T.unsafe(nil)); end - # source://reline//lib/reline/line_editor.rb#1858 + # source://reline/lib/reline/line_editor.rb#1712 def backward_delete_char(key, arg: T.unsafe(nil)); end - # source://reline//lib/reline/line_editor.rb#2000 + # source://reline/lib/reline/line_editor.rb#1856 def backward_kill_word(key); end - # source://reline//lib/reline/line_editor.rb#1982 + # source://reline/lib/reline/line_editor.rb#1838 def backward_word(key); end - # source://reline//lib/reline/line_editor.rb#1572 + # source://reline/lib/reline/line_editor.rb#1460 def beginning_of_line(key); end # @return [Boolean] # - # source://reline//lib/reline/line_editor.rb#1392 + # source://reline/lib/reline/line_editor.rb#1294 def buffer_empty?; end - # source://reline//lib/reline/line_editor.rb#1411 + # source://reline/lib/reline/line_editor.rb#1313 def byteinsert(str, byte_pointer, other); end - # source://reline//lib/reline/line_editor.rb#1405 + # source://reline/lib/reline/line_editor.rb#1307 def byteslice!(str, byte_pointer, size); end - # source://reline//lib/reline/line_editor.rb#308 + # source://reline/lib/reline/line_editor.rb#308 def calculate_nearest_cursor(cursor); end - # source://reline//lib/reline/line_editor.rb#1418 + # source://reline/lib/reline/line_editor.rb#1320 def calculate_width(str, allow_escape_code = T.unsafe(nil)); end - # source://reline//lib/reline/line_editor.rb#2040 + # source://reline/lib/reline/line_editor.rb#1896 def capitalize_word(key); end - # source://reline//lib/reline/line_editor.rb#93 + # source://reline/lib/reline/line_editor.rb#95 def check_mode_string; end - # source://reline//lib/reline/line_editor.rb#107 + # source://reline/lib/reline/line_editor.rb#109 def check_multiline_prompt(buffer, mode_string); end - # source://reline//lib/reline/line_editor.rb#982 + # source://reline/lib/reline/line_editor.rb#968 def cleanup_waiting; end - # source://reline//lib/reline/line_editor.rb#541 + # source://reline/lib/reline/line_editor.rb#551 def clear_rendered_screen_cache; end - # source://reline//lib/reline/line_editor.rb#1966 + # source://reline/lib/reline/line_editor.rb#1822 def clear_screen(key); end - # source://reline//lib/reline/line_editor.rb#1438 + # source://reline/lib/reline/line_editor.rb#1340 def complete(_key); end - # source://reline//lib/reline/line_editor.rb#798 - def complete_internal_proc(list, is_menu); end - - # source://reline//lib/reline/line_editor.rb#1455 + # source://reline/lib/reline/line_editor.rb#1358 def completion_journey_move(direction); end - # source://reline//lib/reline/line_editor.rb#1471 + # source://reline/lib/reline/line_editor.rb#1374 def completion_journey_up(_key); end - # source://reline//lib/reline/line_editor.rb#2086 + # source://reline/lib/reline/line_editor.rb#1942 def copy_for_vi(text); end - # source://reline//lib/reline/line_editor.rb#1923 + # source://reline/lib/reline/line_editor.rb#1777 def delete_char(key); end - # source://reline//lib/reline/line_editor.rb#1938 + # source://reline/lib/reline/line_editor.rb#1792 def delete_char_or_list(key); end - # source://reline//lib/reline/line_editor.rb#692 + # source://reline/lib/reline/line_editor.rb#703 def dialog_range(dialog, dialog_y); end - # source://reline//lib/reline/line_editor.rb#2050 + # source://reline/lib/reline/line_editor.rb#1906 def downcase_word(key); end - # source://reline//lib/reline/line_editor.rb#2339 + # source://reline/lib/reline/line_editor.rb#2195 def ed_argument_digit(key); end - # source://reline//lib/reline/line_editor.rb#1966 + # source://reline/lib/reline/line_editor.rb#1822 def ed_clear_screen(key); end - # source://reline//lib/reline/line_editor.rb#2285 + # source://reline/lib/reline/line_editor.rb#2141 def ed_delete_next_char(key, arg: T.unsafe(nil)); end - # source://reline//lib/reline/line_editor.rb#2197 + # source://reline/lib/reline/line_editor.rb#2053 def ed_delete_prev_char(key, arg: T.unsafe(nil)); end - # source://reline//lib/reline/line_editor.rb#2000 + # source://reline/lib/reline/line_editor.rb#1856 def ed_delete_prev_word(key); end # Editline:: +ed-insert+ (vi input: almost all; emacs: printable characters) @@ -1456,8 +1498,8 @@ class Reline::LineEditor # million. # GNU Readline:: +self-insert+ (a, b, A, 1, !, …) Insert yourself. # - # source://reline//lib/reline/line_editor.rb#1498 - def ed_digit(key); end + # source://reline/lib/reline/line_editor.rb#1401 + def ed_digit(str); end # Editline:: +ed-insert+ (vi input: almost all; emacs: printable characters) # In insert mode, insert the input character left of the cursor @@ -1473,8 +1515,8 @@ class Reline::LineEditor # million. # GNU Readline:: +self-insert+ (a, b, A, 1, !, …) Insert yourself. # - # source://reline//lib/reline/line_editor.rb#1498 - def ed_insert(key); end + # source://reline/lib/reline/line_editor.rb#1401 + def ed_insert(str); end # Editline:: +ed-kill-line+ (vi command: +D+, +Ctrl-K+; emacs: +Ctrl-K+, # +Ctrl-U+) + Kill from the cursor to the end of the line. @@ -1482,69 +1524,66 @@ class Reline::LineEditor # the line. With a negative numeric argument, kill backward # from the cursor to the beginning of the current line. # - # source://reline//lib/reline/line_editor.rb#1879 + # source://reline/lib/reline/line_editor.rb#1733 def ed_kill_line(key); end - # source://reline//lib/reline/line_editor.rb#1572 + # source://reline/lib/reline/line_editor.rb#1460 def ed_move_to_beg(key); end - # source://reline//lib/reline/line_editor.rb#1578 + # source://reline/lib/reline/line_editor.rb#1466 def ed_move_to_end(key); end - # source://reline//lib/reline/line_editor.rb#1829 + # source://reline/lib/reline/line_editor.rb#1683 def ed_newline(key); end - # source://reline//lib/reline/line_editor.rb#1542 + # source://reline/lib/reline/line_editor.rb#1430 def ed_next_char(key, arg: T.unsafe(nil)); end - # source://reline//lib/reline/line_editor.rb#1812 + # source://reline/lib/reline/line_editor.rb#1666 def ed_next_history(key, arg: T.unsafe(nil)); end - # source://reline//lib/reline/line_editor.rb#1555 + # source://reline/lib/reline/line_editor.rb#1443 def ed_prev_char(key, arg: T.unsafe(nil)); end - # source://reline//lib/reline/line_editor.rb#1795 + # source://reline/lib/reline/line_editor.rb#1649 def ed_prev_history(key, arg: T.unsafe(nil)); end - # source://reline//lib/reline/line_editor.rb#1982 + # source://reline/lib/reline/line_editor.rb#1838 def ed_prev_word(key); end - # source://reline//lib/reline/line_editor.rb#1526 - def ed_quoted_insert(str, arg: T.unsafe(nil)); end - - # source://reline//lib/reline/line_editor.rb#1758 + # source://reline/lib/reline/line_editor.rb#1612 def ed_search_next_history(key, arg: T.unsafe(nil)); end - # source://reline//lib/reline/line_editor.rb#1743 + # source://reline/lib/reline/line_editor.rb#1597 def ed_search_prev_history(key, arg: T.unsafe(nil)); end - # source://reline//lib/reline/line_editor.rb#2010 + # source://reline/lib/reline/line_editor.rb#1866 def ed_transpose_chars(key); end - # source://reline//lib/reline/line_editor.rb#2027 + # source://reline/lib/reline/line_editor.rb#1883 def ed_transpose_words(key); end # do nothing # - # source://reline//lib/reline/line_editor.rb#1477 + # source://reline/lib/reline/line_editor.rb#1380 def ed_unassigned(key); end - # source://reline//lib/reline/line_editor.rb#2040 + # source://reline/lib/reline/line_editor.rb#1896 def em_capitol_case(key); end - # source://reline//lib/reline/line_editor.rb#1923 + # source://reline/lib/reline/line_editor.rb#1777 def em_delete(key); end - # source://reline//lib/reline/line_editor.rb#1990 + # source://reline/lib/reline/line_editor.rb#1846 def em_delete_next_word(key); end - # source://reline//lib/reline/line_editor.rb#1938 + # source://reline/lib/reline/line_editor.rb#1792 def em_delete_or_list(key); end - # source://reline//lib/reline/line_editor.rb#1858 + # source://reline/lib/reline/line_editor.rb#1712 def em_delete_prev_char(key, arg: T.unsafe(nil)); end - # source://reline//lib/reline/line_editor.rb#2501 + # source://reline/lib/reline/line_editor.rb#2336 def em_exchange_mark(key); end # Editline:: +em-kill-line+ (not bound) Delete the entire contents of the @@ -1552,78 +1591,84 @@ class Reline::LineEditor # GNU Readline:: +kill-whole-line+ (not bound) Kill all characters on the # current line, no matter where point is. # - # source://reline//lib/reline/line_editor.rb#1915 + # source://reline/lib/reline/line_editor.rb#1769 def em_kill_line(key); end - # source://reline//lib/reline/line_editor.rb#2076 + # source://reline/lib/reline/line_editor.rb#1932 def em_kill_region(key); end - # source://reline//lib/reline/line_editor.rb#2050 + # source://reline/lib/reline/line_editor.rb#1906 def em_lower_case(key); end - # source://reline//lib/reline/line_editor.rb#1974 + # source://reline/lib/reline/line_editor.rb#1830 def em_next_word(key); end - # source://reline//lib/reline/line_editor.rb#2496 + # source://reline/lib/reline/line_editor.rb#2331 def em_set_mark(key); end - # source://reline//lib/reline/line_editor.rb#2063 + # source://reline/lib/reline/line_editor.rb#1919 def em_upper_case(key); end - # source://reline//lib/reline/line_editor.rb#1950 + # source://reline/lib/reline/line_editor.rb#1806 def em_yank(key); end - # source://reline//lib/reline/line_editor.rb#1956 + # source://reline/lib/reline/line_editor.rb#1812 def em_yank_pop(key); end - # source://reline//lib/reline/line_editor.rb#2509 + # source://reline/lib/reline/line_editor.rb#2344 def emacs_editing_mode(key); end - # source://reline//lib/reline/line_editor.rb#1578 + # source://reline/lib/reline/line_editor.rb#1466 def end_of_line(key); end - # source://reline//lib/reline/line_editor.rb#2501 + # source://reline/lib/reline/line_editor.rb#2336 def exchange_point_and_mark(key); end - # source://reline//lib/reline/line_editor.rb#1542 + # source://reline/lib/reline/line_editor.rb#809 + def filter_normalize_candidates(target, list); end + + # source://reline/lib/reline/line_editor.rb#1430 def forward_char(key, arg: T.unsafe(nil)); end - # source://reline//lib/reline/line_editor.rb#1728 + # source://reline/lib/reline/line_editor.rb#1582 def forward_search_history(key); end - # source://reline//lib/reline/line_editor.rb#1974 + # source://reline/lib/reline/line_editor.rb#1830 def forward_word(key); end - # source://reline//lib/reline/line_editor.rb#1583 + # source://reline/lib/reline/line_editor.rb#1471 def generate_searcher(search_key); end - # source://reline//lib/reline/line_editor.rb#183 + # source://reline/lib/reline/line_editor.rb#185 def handle_interrupted; end - # source://reline//lib/reline/line_editor.rb#171 + # source://reline/lib/reline/line_editor.rb#173 def handle_resized; end - # source://reline//lib/reline/line_editor.rb#1743 + # source://reline/lib/reline/line_editor.rb#1597 def history_search_backward(key, arg: T.unsafe(nil)); end - # source://reline//lib/reline/line_editor.rb#1758 + # source://reline/lib/reline/line_editor.rb#1612 def history_search_forward(key, arg: T.unsafe(nil)); end # @return [Boolean] # - # source://reline//lib/reline/line_editor.rb#956 + # source://reline/lib/reline/line_editor.rb#942 def inclusive?(method_obj); end - # source://reline//lib/reline/line_editor.rb#1667 + # source://reline/lib/reline/line_editor.rb#1550 def incremental_search_history(key); end - # source://reline//lib/reline/line_editor.rb#277 + # source://reline/lib/reline/line_editor.rb#277 def insert_new_line(cursor_line, next_line); end - # source://reline//lib/reline/line_editor.rb#1422 + # source://reline/lib/reline/line_editor.rb#1419 + def insert_raw_char(str, arg: T.unsafe(nil)); end + + # source://reline/lib/reline/line_editor.rb#1324 def key_delete(key); end - # source://reline//lib/reline/line_editor.rb#1430 + # source://reline/lib/reline/line_editor.rb#1332 def key_newline(key); end # Editline:: +ed-kill-line+ (vi command: +D+, +Ctrl-K+; emacs: +Ctrl-K+, @@ -1632,7 +1677,7 @@ class Reline::LineEditor # the line. With a negative numeric argument, kill backward # from the cursor to the beginning of the current line. # - # source://reline//lib/reline/line_editor.rb#1879 + # source://reline/lib/reline/line_editor.rb#1733 def kill_line(key); end # Editline:: +em-kill-line+ (not bound) Delete the entire contents of the @@ -1640,85 +1685,82 @@ class Reline::LineEditor # GNU Readline:: +kill-whole-line+ (not bound) Kill all characters on the # current line, no matter where point is. # - # source://reline//lib/reline/line_editor.rb#1915 + # source://reline/lib/reline/line_editor.rb#1769 def kill_whole_line(key); end - # source://reline//lib/reline/line_editor.rb#1990 + # source://reline/lib/reline/line_editor.rb#1846 def kill_word(key); end - # source://reline//lib/reline/line_editor.rb#794 - def menu(_target, list); end + # source://reline/lib/reline/line_editor.rb#805 + def menu(list); end - # source://reline//lib/reline/line_editor.rb#1463 + # source://reline/lib/reline/line_editor.rb#1366 def menu_complete(_key); end - # source://reline//lib/reline/line_editor.rb#1467 + # source://reline/lib/reline/line_editor.rb#1370 def menu_complete_backward(_key); end - # source://reline//lib/reline/line_editor.rb#782 + # source://reline/lib/reline/line_editor.rb#793 def modify_lines(before, complete); end - # source://reline//lib/reline/line_editor.rb#901 + # source://reline/lib/reline/line_editor.rb#887 def move_completed_list(direction); end - # source://reline//lib/reline/line_editor.rb#1773 - def move_history(history_pointer, line:, cursor:, save_buffer: T.unsafe(nil)); end + # source://reline/lib/reline/line_editor.rb#1627 + def move_history(history_pointer, line:, cursor:); end - # source://reline//lib/reline/line_editor.rb#1812 - def next_history(key, arg: T.unsafe(nil)); end + # source://reline/lib/reline/line_editor.rb#2352 + def move_undo_redo(direction); end - # source://reline//lib/reline/line_editor.rb#1054 - def normal_char(key); end + # source://reline/lib/reline/line_editor.rb#1666 + def next_history(key, arg: T.unsafe(nil)); end - # source://reline//lib/reline/line_editor.rb#844 - def perform_completion(list, just_show_list); end + # source://reline/lib/reline/line_editor.rb#832 + def perform_completion(preposing, target, postposing, quote, list); end - # source://reline//lib/reline/line_editor.rb#2537 + # source://reline/lib/reline/line_editor.rb#2371 def prev_action_state_value(type); end - # source://reline//lib/reline/line_editor.rb#1795 + # source://reline/lib/reline/line_editor.rb#1649 def previous_history(key, arg: T.unsafe(nil)); end - # source://reline//lib/reline/line_editor.rb#1195 + # source://reline/lib/reline/line_editor.rb#1151 def process_auto_indent(line_index = T.unsafe(nil), cursor_dependent: T.unsafe(nil), add_newline: T.unsafe(nil)); end - # source://reline//lib/reline/line_editor.rb#1479 + # source://reline/lib/reline/line_editor.rb#1382 def process_insert(force: T.unsafe(nil)); end - # source://reline//lib/reline/line_editor.rb#990 + # source://reline/lib/reline/line_editor.rb#979 def process_key(key, method_symbol); end - # source://reline//lib/reline/line_editor.rb#1526 - def quoted_insert(str, arg: T.unsafe(nil)); end - - # source://reline//lib/reline/line_editor.rb#2545 + # source://reline/lib/reline/line_editor.rb#2379 def re_read_init_file(_key); end - # source://reline//lib/reline/line_editor.rb#2527 + # source://reline/lib/reline/line_editor.rb#2367 def redo(_key); end # Reflects lines to be rendered and new cursor position to the screen # by calculating the difference from the previous render. # - # source://reline//lib/reline/line_editor.rb#508 + # source://reline/lib/reline/line_editor.rb#515 def render_differential(new_lines, new_cursor_x, new_cursor_y); end - # source://reline//lib/reline/line_editor.rb#913 + # source://reline/lib/reline/line_editor.rb#899 def retrieve_completion_journey_state; end - # source://reline//lib/reline/line_editor.rb#1723 + # source://reline/lib/reline/line_editor.rb#1577 def reverse_search_history(key); end - # source://reline//lib/reline/line_editor.rb#928 + # source://reline/lib/reline/line_editor.rb#914 def run_for_operators(key, method_symbol, &block); end - # source://reline//lib/reline/line_editor.rb#1733 + # source://reline/lib/reline/line_editor.rb#1587 def search_history(prefix, pointer_range); end - # source://reline//lib/reline/line_editor.rb#2397 + # source://reline/lib/reline/line_editor.rb#2242 def search_next_char(key, arg, need_prev_char: T.unsafe(nil), inclusive: T.unsafe(nil)); end - # source://reline//lib/reline/line_editor.rb#2449 + # source://reline/lib/reline/line_editor.rb#2289 def search_prev_char(key, arg, need_next_char = T.unsafe(nil)); end # Editline:: +ed-insert+ (vi input: almost all; emacs: printable characters) @@ -1735,25 +1777,25 @@ class Reline::LineEditor # million. # GNU Readline:: +self-insert+ (a, b, A, 1, !, …) Insert yourself. # - # source://reline//lib/reline/line_editor.rb#1498 - def self_insert(key); end + # source://reline/lib/reline/line_editor.rb#1401 + def self_insert(str); end - # source://reline//lib/reline/line_editor.rb#2496 + # source://reline/lib/reline/line_editor.rb#2331 def set_mark(key); end - # source://reline//lib/reline/line_editor.rb#2541 + # source://reline/lib/reline/line_editor.rb#2375 def set_next_action_state(type, value); end - # source://reline//lib/reline/line_editor.rb#300 - def split_by_width(str, max_width, offset: T.unsafe(nil)); end + # source://reline/lib/reline/line_editor.rb#300 + def split_line_by_width(str, max_width, offset: T.unsafe(nil)); end - # source://reline//lib/reline/line_editor.rb#2010 + # source://reline/lib/reline/line_editor.rb#1866 def transpose_chars(key); end - # source://reline//lib/reline/line_editor.rb#2027 + # source://reline/lib/reline/line_editor.rb#1883 def transpose_words(key); end - # source://reline//lib/reline/line_editor.rb#2517 + # source://reline/lib/reline/line_editor.rb#2363 def undo(_key); end # Editline:: +vi-kill-line-prev+ (vi: +Ctrl-U+) Delete the string from the @@ -1762,75 +1804,75 @@ class Reline::LineEditor # GNU Readline:: +unix-line-discard+ (+C-u+) Kill backward from the cursor # to the beginning of the current line. # - # source://reline//lib/reline/line_editor.rb#1902 + # source://reline/lib/reline/line_editor.rb#1756 def unix_line_discard(key); end - # source://reline//lib/reline/line_editor.rb#2076 + # source://reline/lib/reline/line_editor.rb#1932 def unix_word_rubout(key); end - # source://reline//lib/reline/line_editor.rb#2063 + # source://reline/lib/reline/line_editor.rb#1919 def upcase_word(key); end - # source://reline//lib/reline/line_editor.rb#698 + # source://reline/lib/reline/line_editor.rb#709 def update_each_dialog(dialog, cursor_column, cursor_row, key = T.unsafe(nil)); end - # source://reline//lib/reline/line_editor.rb#2096 + # source://reline/lib/reline/line_editor.rb#1952 def vi_add(key); end - # source://reline//lib/reline/line_editor.rb#2192 + # source://reline/lib/reline/line_editor.rb#2048 def vi_add_at_eol(key); end - # source://reline//lib/reline/line_editor.rb#2211 + # source://reline/lib/reline/line_editor.rb#2067 def vi_change_meta(key, arg: T.unsafe(nil)); end - # source://reline//lib/reline/line_editor.rb#2223 + # source://reline/lib/reline/line_editor.rb#2079 def vi_change_meta_confirm(byte_pointer_diff); end # Editline:: +vi_change_to_eol+ (vi command: +C+) + Kill and change from the cursor to the end of the line. # - # source://reline//lib/reline/line_editor.rb#1891 + # source://reline/lib/reline/line_editor.rb#1745 def vi_change_to_eol(key); end - # source://reline//lib/reline/line_editor.rb#2101 + # source://reline/lib/reline/line_editor.rb#1957 def vi_command_mode(key); end - # source://reline//lib/reline/line_editor.rb#2229 + # source://reline/lib/reline/line_editor.rb#2085 def vi_delete_meta(key, arg: T.unsafe(nil)); end - # source://reline//lib/reline/line_editor.rb#2240 + # source://reline/lib/reline/line_editor.rb#2096 def vi_delete_meta_confirm(byte_pointer_diff); end - # source://reline//lib/reline/line_editor.rb#2173 + # source://reline/lib/reline/line_editor.rb#2029 def vi_delete_prev_char(key); end - # source://reline//lib/reline/line_editor.rb#2513 + # source://reline/lib/reline/line_editor.rb#2348 def vi_editing_mode(key); end - # source://reline//lib/reline/line_editor.rb#2158 + # source://reline/lib/reline/line_editor.rb#2014 def vi_end_big_word(key, arg: T.unsafe(nil), inclusive: T.unsafe(nil)); end - # source://reline//lib/reline/line_editor.rb#2274 + # source://reline/lib/reline/line_editor.rb#2130 def vi_end_of_transmission(key); end - # source://reline//lib/reline/line_editor.rb#2125 + # source://reline/lib/reline/line_editor.rb#1981 def vi_end_word(key, arg: T.unsafe(nil), inclusive: T.unsafe(nil)); end - # source://reline//lib/reline/line_editor.rb#2274 + # source://reline/lib/reline/line_editor.rb#2130 def vi_eof_maybe(key); end - # source://reline//lib/reline/line_editor.rb#1568 + # source://reline/lib/reline/line_editor.rb#1456 def vi_first_print(key); end - # source://reline//lib/reline/line_editor.rb#2308 + # source://reline/lib/reline/line_editor.rb#2164 def vi_histedit(key); end - # source://reline//lib/reline/line_editor.rb#2092 + # source://reline/lib/reline/line_editor.rb#1948 def vi_insert(key); end - # source://reline//lib/reline/line_editor.rb#2187 + # source://reline/lib/reline/line_editor.rb#2043 def vi_insert_at_bol(key); end - # source://reline//lib/reline/line_editor.rb#2487 + # source://reline/lib/reline/line_editor.rb#2322 def vi_join_lines(key, arg: T.unsafe(nil)); end # Editline:: +vi-kill-line-prev+ (vi: +Ctrl-U+) Delete the string from the @@ -1839,77 +1881,80 @@ class Reline::LineEditor # GNU Readline:: +unix-line-discard+ (+C-u+) Kill backward from the cursor # to the beginning of the current line. # - # source://reline//lib/reline/line_editor.rb#1902 + # source://reline/lib/reline/line_editor.rb#1756 def vi_kill_line_prev(key); end - # source://reline//lib/reline/line_editor.rb#2274 + # source://reline/lib/reline/line_editor.rb#2130 def vi_list_or_eof(key); end - # source://reline//lib/reline/line_editor.rb#2101 + # source://reline/lib/reline/line_editor.rb#1957 def vi_movement_mode(key); end - # source://reline//lib/reline/line_editor.rb#2140 + # source://reline/lib/reline/line_editor.rb#1996 def vi_next_big_word(key, arg: T.unsafe(nil)); end - # source://reline//lib/reline/line_editor.rb#2389 + # source://reline/lib/reline/line_editor.rb#2234 def vi_next_char(key, arg: T.unsafe(nil), inclusive: T.unsafe(nil)); end - # source://reline//lib/reline/line_editor.rb#2107 + # source://reline/lib/reline/line_editor.rb#1963 def vi_next_word(key, arg: T.unsafe(nil)); end - # source://reline//lib/reline/line_editor.rb#2329 + # source://reline/lib/reline/line_editor.rb#2185 def vi_paste_next(key, arg: T.unsafe(nil)); end - # source://reline//lib/reline/line_editor.rb#2320 + # source://reline/lib/reline/line_editor.rb#2176 def vi_paste_prev(key, arg: T.unsafe(nil)); end - # source://reline//lib/reline/line_editor.rb#2149 + # source://reline/lib/reline/line_editor.rb#2005 def vi_prev_big_word(key, arg: T.unsafe(nil)); end - # source://reline//lib/reline/line_editor.rb#2441 + # source://reline/lib/reline/line_editor.rb#2281 def vi_prev_char(key, arg: T.unsafe(nil)); end - # source://reline//lib/reline/line_editor.rb#2116 + # source://reline/lib/reline/line_editor.rb#1972 def vi_prev_word(key, arg: T.unsafe(nil)); end - # source://reline//lib/reline/line_editor.rb#2365 + # source://reline/lib/reline/line_editor.rb#2210 def vi_replace_char(key, arg: T.unsafe(nil)); end - # source://reline//lib/reline/line_editor.rb#1728 + # source://reline/lib/reline/line_editor.rb#1582 def vi_search_next(key); end - # source://reline//lib/reline/line_editor.rb#1723 + # source://reline/lib/reline/line_editor.rb#1577 def vi_search_prev(key); end - # source://reline//lib/reline/line_editor.rb#2356 + # source://reline/lib/reline/line_editor.rb#2201 def vi_to_column(key, arg: T.unsafe(nil)); end - # source://reline//lib/reline/line_editor.rb#2301 + # source://reline/lib/reline/line_editor.rb#2157 def vi_to_history_line(key); end - # source://reline//lib/reline/line_editor.rb#2393 + # source://reline/lib/reline/line_editor.rb#2238 def vi_to_next_char(key, arg: T.unsafe(nil), inclusive: T.unsafe(nil)); end - # source://reline//lib/reline/line_editor.rb#2445 + # source://reline/lib/reline/line_editor.rb#2285 def vi_to_prev_char(key, arg: T.unsafe(nil)); end - # source://reline//lib/reline/line_editor.rb#2252 + # source://reline/lib/reline/line_editor.rb#2108 def vi_yank(key, arg: T.unsafe(nil)); end - # source://reline//lib/reline/line_editor.rb#2263 + # source://reline/lib/reline/line_editor.rb#2119 def vi_yank_confirm(byte_pointer_diff); end - # source://reline//lib/reline/line_editor.rb#1572 + # source://reline/lib/reline/line_editor.rb#1460 def vi_zero(key); end - # source://reline//lib/reline/line_editor.rb#1950 + # source://reline/lib/reline/line_editor.rb#1806 def yank(key); end - # source://reline//lib/reline/line_editor.rb#1956 + # source://reline/lib/reline/line_editor.rb#1812 def yank_pop(key); end end -# source://reline//lib/reline/line_editor.rb#47 +# source://reline/lib/reline/line_editor.rb#976 +Reline::LineEditor::ARGUMENT_DIGIT_METHODS = T.let(T.unsafe(nil), Array) + +# source://reline/lib/reline/line_editor.rb#45 class Reline::LineEditor::CompletionJourneyState < ::Struct # Returns the value of attribute line_index # @@ -1986,176 +2031,173 @@ class Reline::LineEditor::CompletionJourneyState < ::Struct end end -# source://reline//lib/reline/line_editor.rb#39 -Reline::LineEditor::CompletionState::COMPLETION = T.let(T.unsafe(nil), Symbol) - -# source://reline//lib/reline/line_editor.rb#40 +# source://reline/lib/reline/line_editor.rb#38 Reline::LineEditor::CompletionState::MENU = T.let(T.unsafe(nil), Symbol) -# source://reline//lib/reline/line_editor.rb#41 +# source://reline/lib/reline/line_editor.rb#39 Reline::LineEditor::CompletionState::MENU_WITH_PERFECT_MATCH = T.let(T.unsafe(nil), Symbol) -# source://reline//lib/reline/line_editor.rb#38 +# source://reline/lib/reline/line_editor.rb#37 Reline::LineEditor::CompletionState::NORMAL = T.let(T.unsafe(nil), Symbol) -# source://reline//lib/reline/line_editor.rb#42 +# source://reline/lib/reline/line_editor.rb#40 Reline::LineEditor::CompletionState::PERFECT_MATCH = T.let(T.unsafe(nil), Symbol) -# source://reline//lib/reline/line_editor.rb#690 +# source://reline/lib/reline/line_editor.rb#701 Reline::LineEditor::DIALOG_DEFAULT_HEIGHT = T.let(T.unsafe(nil), Integer) -# source://reline//lib/reline/line_editor.rb#636 +# source://reline/lib/reline/line_editor.rb#647 class Reline::LineEditor::Dialog # @return [Dialog] a new instance of Dialog # - # source://reline//lib/reline/line_editor.rb#640 + # source://reline/lib/reline/line_editor.rb#651 def initialize(name, config, proc_scope); end - # source://reline//lib/reline/line_editor.rb#664 + # source://reline/lib/reline/line_editor.rb#675 def call(key); end # Returns the value of attribute column. # - # source://reline//lib/reline/line_editor.rb#638 + # source://reline/lib/reline/line_editor.rb#649 def column; end # Sets the attribute column # # @param value the value to set the attribute column to. # - # source://reline//lib/reline/line_editor.rb#638 + # source://reline/lib/reline/line_editor.rb#649 def column=(_arg0); end # Returns the value of attribute contents. # - # source://reline//lib/reline/line_editor.rb#637 + # source://reline/lib/reline/line_editor.rb#648 def contents; end - # source://reline//lib/reline/line_editor.rb#657 + # source://reline/lib/reline/line_editor.rb#668 def contents=(contents); end # Returns the value of attribute name. # - # source://reline//lib/reline/line_editor.rb#637 + # source://reline/lib/reline/line_editor.rb#648 def name; end # Returns the value of attribute pointer. # - # source://reline//lib/reline/line_editor.rb#638 + # source://reline/lib/reline/line_editor.rb#649 def pointer; end # Sets the attribute pointer # # @param value the value to set the attribute pointer to. # - # source://reline//lib/reline/line_editor.rb#638 + # source://reline/lib/reline/line_editor.rb#649 def pointer=(_arg0); end # Returns the value of attribute scroll_top. # - # source://reline//lib/reline/line_editor.rb#638 + # source://reline/lib/reline/line_editor.rb#649 def scroll_top; end # Sets the attribute scroll_top # # @param value the value to set the attribute scroll_top to. # - # source://reline//lib/reline/line_editor.rb#638 + # source://reline/lib/reline/line_editor.rb#649 def scroll_top=(_arg0); end - # source://reline//lib/reline/line_editor.rb#649 + # source://reline/lib/reline/line_editor.rb#660 def set_cursor_pos(col, row); end # Returns the value of attribute trap_key. # - # source://reline//lib/reline/line_editor.rb#638 + # source://reline/lib/reline/line_editor.rb#649 def trap_key; end # Sets the attribute trap_key # # @param value the value to set the attribute trap_key to. # - # source://reline//lib/reline/line_editor.rb#638 + # source://reline/lib/reline/line_editor.rb#649 def trap_key=(_arg0); end # Returns the value of attribute vertical_offset. # - # source://reline//lib/reline/line_editor.rb#638 + # source://reline/lib/reline/line_editor.rb#649 def vertical_offset; end # Sets the attribute vertical_offset # # @param value the value to set the attribute vertical_offset to. # - # source://reline//lib/reline/line_editor.rb#638 + # source://reline/lib/reline/line_editor.rb#649 def vertical_offset=(_arg0); end # Returns the value of attribute width. # - # source://reline//lib/reline/line_editor.rb#637 + # source://reline/lib/reline/line_editor.rb#648 def width; end - # source://reline//lib/reline/line_editor.rb#653 + # source://reline/lib/reline/line_editor.rb#664 def width=(v); end end -# source://reline//lib/reline/line_editor.rb#558 +# source://reline/lib/reline/line_editor.rb#568 class Reline::LineEditor::DialogProcScope # @return [DialogProcScope] a new instance of DialogProcScope # - # source://reline//lib/reline/line_editor.rb#561 + # source://reline/lib/reline/line_editor.rb#571 def initialize(line_editor, config, proc_to_exec, context); end - # source://reline//lib/reline/line_editor.rb#631 + # source://reline/lib/reline/line_editor.rb#642 def call; end - # source://reline//lib/reline/line_editor.rb#577 + # source://reline/lib/reline/line_editor.rb#588 def call_completion_proc_with_checking_args(pre, target, post); end - # source://reline//lib/reline/line_editor.rb#623 + # source://reline/lib/reline/line_editor.rb#634 def completion_journey_data; end - # source://reline//lib/reline/line_editor.rb#627 + # source://reline/lib/reline/line_editor.rb#638 def config; end - # source://reline//lib/reline/line_editor.rb#569 + # source://reline/lib/reline/line_editor.rb#579 def context; end - # source://reline//lib/reline/line_editor.rb#602 + # source://reline/lib/reline/line_editor.rb#613 def cursor_pos; end - # source://reline//lib/reline/line_editor.rb#585 + # source://reline/lib/reline/line_editor.rb#596 def dialog; end - # source://reline//lib/reline/line_editor.rb#606 + # source://reline/lib/reline/line_editor.rb#617 def just_cursor_moving; end - # source://reline//lib/reline/line_editor.rb#598 + # source://reline/lib/reline/line_editor.rb#609 def key; end - # source://reline//lib/reline/line_editor.rb#618 + # source://reline/lib/reline/line_editor.rb#629 def preferred_dialog_height; end - # source://reline//lib/reline/line_editor.rb#573 - def retrieve_completion_block(set_completion_quote_character = T.unsafe(nil)); end + # source://reline/lib/reline/line_editor.rb#583 + def retrieve_completion_block(_unused = T.unsafe(nil)); end - # source://reline//lib/reline/line_editor.rb#614 + # source://reline/lib/reline/line_editor.rb#625 def screen_height; end - # source://reline//lib/reline/line_editor.rb#610 + # source://reline/lib/reline/line_editor.rb#621 def screen_width; end - # source://reline//lib/reline/line_editor.rb#589 + # source://reline/lib/reline/line_editor.rb#600 def set_cursor_pos(col, row); end - # source://reline//lib/reline/line_editor.rb#581 + # source://reline/lib/reline/line_editor.rb#592 def set_dialog(dialog); end - # source://reline//lib/reline/line_editor.rb#594 + # source://reline/lib/reline/line_editor.rb#605 def set_key(key); end end -# source://reline//lib/reline/line_editor.rb#559 +# source://reline/lib/reline/line_editor.rb#569 class Reline::LineEditor::DialogProcScope::CompletionJourneyData < ::Struct # Returns the value of attribute list # @@ -2210,32 +2252,32 @@ class Reline::LineEditor::DialogProcScope::CompletionJourneyData < ::Struct end end -# source://reline//lib/reline/line_editor.rb#1147 +# source://reline/lib/reline/line_editor.rb#1104 Reline::LineEditor::MAX_INPUT_LINES = T.let(T.unsafe(nil), Integer) -# source://reline//lib/reline/line_editor.rb#73 +# source://reline/lib/reline/line_editor.rb#71 Reline::LineEditor::MINIMUM_SCROLLBAR_HEIGHT = T.let(T.unsafe(nil), Integer) -# source://reline//lib/reline/line_editor.rb#50 +# source://reline/lib/reline/line_editor.rb#48 class Reline::LineEditor::MenuInfo # @return [MenuInfo] a new instance of MenuInfo # - # source://reline//lib/reline/line_editor.rb#53 + # source://reline/lib/reline/line_editor.rb#51 def initialize(list); end - # source://reline//lib/reline/line_editor.rb#57 + # source://reline/lib/reline/line_editor.rb#55 def lines(screen_width); end # Returns the value of attribute list. # - # source://reline//lib/reline/line_editor.rb#51 + # source://reline/lib/reline/line_editor.rb#49 def list; end end -# source://reline//lib/reline/line_editor.rb#48 +# source://reline/lib/reline/line_editor.rb#46 Reline::LineEditor::NullActionState = T.let(T.unsafe(nil), Array) -# source://reline//lib/reline/line_editor.rb#45 +# source://reline/lib/reline/line_editor.rb#43 class Reline::LineEditor::RenderedScreen < ::Struct # Returns the value of attribute base_y # @@ -2279,163 +2321,134 @@ class Reline::LineEditor::RenderedScreen < ::Struct end end -# source://reline//lib/reline/line_editor.rb#18 +# source://reline/lib/reline/line_editor.rb#17 Reline::LineEditor::VI_MOTIONS = T.let(T.unsafe(nil), Array) -# source://reline//lib/reline/terminfo.rb#17 -module Reline::Terminfo - extend ::Fiddle - extend ::Fiddle::CParser - extend ::Fiddle::Importer - - class << self - # source://reline//lib/reline/terminfo.rb#37 - def curses_dl; end - - # source://reline//lib/reline/terminfo.rb#22 - def curses_dl_files; end - - # NOTE: This means Fiddle and curses are enabled. - # - # @return [Boolean] - # - # source://reline//lib/reline/terminfo.rb#145 - def enabled?; end - - # source://reline//lib/reline/terminfo.rb#85 - def setupterm(term, fildes); end - - # @return [Boolean] - # - # source://reline//lib/reline/terminfo.rb#149 - def term_supported?; end - - # @raise [TerminfoError] - # - # source://reline//lib/reline/terminfo.rb#120 - def tigetflag(capname); end +# source://reline/lib/reline/line_editor.rb#977 +Reline::LineEditor::VI_WAITING_ACCEPT_METHODS = T.let(T.unsafe(nil), Array) - # @raise [TerminfoError] - # - # source://reline//lib/reline/terminfo.rb#132 - def tigetnum(capname); end - - # @raise [TerminfoError] - # - # source://reline//lib/reline/terminfo.rb#102 - def tigetstr(capname); end - - # source://reline//lib/reline/terminfo.rb#112 - def tiparm(str, *args); end - end -end - -# source://reline//lib/reline/terminfo.rb#96 -class Reline::Terminfo::StringWithTiparm < ::String - # for method chain - # - # source://reline//lib/reline/terminfo.rb#97 - def tiparm(*args); end -end - -# source://reline//lib/reline.rb#17 +# source://reline/lib/reline.rb#16 Reline::USERNAME_COMPLETION_PROC = T.let(T.unsafe(nil), T.untyped) -# source://reline//lib/reline/unicode.rb#1 +# source://reline/lib/reline/unicode.rb#1 class Reline::Unicode class << self - # source://reline//lib/reline/unicode.rb#82 + # source://reline/lib/reline/unicode.rb#98 def calculate_width(str, allow_escape_code = T.unsafe(nil)); end - # source://reline//lib/reline/unicode.rb#336 + # source://reline/lib/reline/unicode.rb#387 + def common_prefix(list, ignore_case: T.unsafe(nil)); end + + # source://reline/lib/reline/unicode.rb#292 def ed_transpose_words(line, byte_pointer); end - # source://reline//lib/reline/unicode.rb#296 + # source://reline/lib/reline/unicode.rb#278 def em_backward_word(line, byte_pointer); end - # source://reline//lib/reline/unicode.rb#316 + # source://reline/lib/reline/unicode.rb#285 def em_big_backward_word(line, byte_pointer); end - # source://reline//lib/reline/unicode.rb#247 + # source://reline/lib/reline/unicode.rb#264 def em_forward_word(line, byte_pointer); end - # source://reline//lib/reline/unicode.rb#267 + # source://reline/lib/reline/unicode.rb#271 def em_forward_word_with_capitalization(line, byte_pointer); end - # source://reline//lib/reline/unicode.rb#44 + # source://reline/lib/reline/unicode.rb#44 def escape_for_print(str); end - # source://reline//lib/reline/unicode.rb#59 + # source://reline/lib/reline/unicode.rb#75 def get_mbchar_width(mbchar); end - # source://reline//lib/reline/unicode.rb#233 + # source://reline/lib/reline/unicode.rb#250 def get_next_mbchar_size(line, byte_pointer); end - # source://reline//lib/reline/unicode.rb#238 + # source://reline/lib/reline/unicode.rb#255 def get_prev_mbchar_size(line, byte_pointer); end - # source://reline//lib/reline/unicode.rb#108 - def split_by_width(str, max_width, encoding = T.unsafe(nil), offset: T.unsafe(nil)); end + # source://reline/lib/reline/unicode.rb#57 + def safe_encode(str, encoding); end + + # @return [Boolean] + # + # source://reline/lib/reline/unicode.rb#412 + def space_character?(s); end + + # This method is used by IRB + # + # source://reline/lib/reline/unicode.rb#125 + def split_by_width(str, max_width); end + + # source://reline/lib/reline/unicode.rb#130 + def split_line_by_width(str, max_width, encoding = T.unsafe(nil), offset: T.unsafe(nil)); end + + # source://reline/lib/reline/unicode.rb#172 + def strip_non_printing_start_end(prompt); end - # source://reline//lib/reline/unicode.rb#162 + # source://reline/lib/reline/unicode.rb#181 def take_mbchar_range(str, start_col, width, cover_begin: T.unsafe(nil), cover_end: T.unsafe(nil), padding: T.unsafe(nil)); end # Take a chunk of a String cut by width with escape sequences. # - # source://reline//lib/reline/unicode.rb#158 + # source://reline/lib/reline/unicode.rb#177 def take_range(str, start_col, max_width); end - # source://reline//lib/reline/unicode.rb#625 + # source://reline/lib/reline/unicode.rb#378 def vi_backward_word(line, byte_pointer); end - # source://reline//lib/reline/unicode.rb#487 + # source://reline/lib/reline/unicode.rb#333 def vi_big_backward_word(line, byte_pointer); end - # source://reline//lib/reline/unicode.rb#457 + # source://reline/lib/reline/unicode.rb#323 def vi_big_forward_end_word(line, byte_pointer); end - # source://reline//lib/reline/unicode.rb#437 + # source://reline/lib/reline/unicode.rb#316 def vi_big_forward_word(line, byte_pointer); end - # source://reline//lib/reline/unicode.rb#657 + # source://reline/lib/reline/unicode.rb#400 def vi_first_print(line); end - # source://reline//lib/reline/unicode.rb#548 + # source://reline/lib/reline/unicode.rb#360 def vi_forward_end_word(line, byte_pointer); end - # source://reline//lib/reline/unicode.rb#507 + # source://reline/lib/reline/unicode.rb#340 def vi_forward_word(line, byte_pointer, drop_terminate_spaces = T.unsafe(nil)); end + + # @return [Boolean] + # + # source://reline/lib/reline/unicode.rb#406 + def word_character?(s); end end end -# source://reline//lib/reline/unicode.rb#40 +# source://reline/lib/reline/unicode.rb#40 Reline::Unicode::CSI_REGEXP = T.let(T.unsafe(nil), Regexp) -# source://reline//lib/reline/unicode/east_asian_width.rb#5 +# source://reline/lib/reline/unicode/east_asian_width.rb#5 Reline::Unicode::EastAsianWidth::CHUNK_LAST = T.let(T.unsafe(nil), Array) -# source://reline//lib/reline/unicode/east_asian_width.rb#5 +# source://reline/lib/reline/unicode/east_asian_width.rb#5 Reline::Unicode::EastAsianWidth::CHUNK_WIDTH = T.let(T.unsafe(nil), Array) # C-? C-8 # -# source://reline//lib/reline/unicode.rb#36 +# source://reline/lib/reline/unicode.rb#36 Reline::Unicode::EscapedChars = T.let(T.unsafe(nil), Array) -# source://reline//lib/reline/unicode.rb#2 +# source://reline/lib/reline/unicode.rb#2 Reline::Unicode::EscapedPairs = T.let(T.unsafe(nil), Hash) -# source://reline//lib/reline/unicode.rb#39 +# source://reline/lib/reline/unicode.rb#39 Reline::Unicode::NON_PRINTING_END = T.let(T.unsafe(nil), String) -# source://reline//lib/reline/unicode.rb#38 +# source://reline/lib/reline/unicode.rb#38 Reline::Unicode::NON_PRINTING_START = T.let(T.unsafe(nil), String) -# source://reline//lib/reline/unicode.rb#41 +# source://reline/lib/reline/unicode.rb#41 Reline::Unicode::OSC_REGEXP = T.let(T.unsafe(nil), Regexp) -# source://reline//lib/reline/unicode.rb#42 +# source://reline/lib/reline/unicode.rb#42 Reline::Unicode::WIDTH_SCANNER = T.let(T.unsafe(nil), Regexp) -# source://reline//lib/reline/version.rb#2 +# source://reline/lib/reline/version.rb#2 Reline::VERSION = T.let(T.unsafe(nil), String) diff --git a/sorbet/rbi/gems/rubocop-ast@1.34.0.rbi b/sorbet/rbi/gems/rubocop-ast@1.37.0.rbi similarity index 58% rename from sorbet/rbi/gems/rubocop-ast@1.34.0.rbi rename to sorbet/rbi/gems/rubocop-ast@1.37.0.rbi index 682f09125..5bcf98fc8 100644 --- a/sorbet/rbi/gems/rubocop-ast@1.34.0.rbi +++ b/sorbet/rbi/gems/rubocop-ast@1.37.0.rbi @@ -9,12 +9,12 @@ class Parser::Source::Range include ::RuboCop::AST::Ext::Range end -# source://rubocop-ast//lib/rubocop/ast/ext/range.rb#3 +# source://rubocop-ast/lib/rubocop/ast/ext/range.rb#3 module RuboCop; end # ... # -# source://rubocop-ast//lib/rubocop/ast/ext/range.rb#4 +# source://rubocop-ast/lib/rubocop/ast/ext/range.rb#4 module RuboCop::AST extend ::RuboCop::AST::RuboCopCompatibility end @@ -23,20 +23,20 @@ end # node when the builder constructs the AST, making its methods available # to all `alias` nodes within RuboCop. # -# source://rubocop-ast//lib/rubocop/ast/node/alias_node.rb#8 +# source://rubocop-ast/lib/rubocop/ast/node/alias_node.rb#8 class RuboCop::AST::AliasNode < ::RuboCop::AST::Node # Returns the new identifier as specified by the `alias`. # # @return [SymbolNode] the new identifier # - # source://rubocop-ast//lib/rubocop/ast/node/alias_node.rb#19 + # source://rubocop-ast/lib/rubocop/ast/node/alias_node.rb#19 def new_identifier; end # Returns the old identifier as specified by the `alias`. # # @return [SymbolNode] the old identifier # - # source://rubocop-ast//lib/rubocop/ast/node/alias_node.rb#12 + # source://rubocop-ast/lib/rubocop/ast/node/alias_node.rb#12 def old_identifier; end end @@ -44,13 +44,13 @@ end # 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/and_asgn_node.rb#8 +# source://rubocop-ast/lib/rubocop/ast/node/and_asgn_node.rb#8 class RuboCop::AST::AndAsgnNode < ::RuboCop::AST::OpAsgnNode # The operator being used for assignment as a symbol. # # @return [Symbol] the assignment operator # - # source://rubocop-ast//lib/rubocop/ast/node/and_asgn_node.rb#12 + # source://rubocop-ast/lib/rubocop/ast/node/and_asgn_node.rb#12 def operator; end end @@ -58,7 +58,7 @@ end # node when the builder constructs the AST, making its methods available # to all `until` nodes within RuboCop. # -# source://rubocop-ast//lib/rubocop/ast/node/and_node.rb#8 +# source://rubocop-ast/lib/rubocop/ast/node/and_node.rb#8 class RuboCop::AST::AndNode < ::RuboCop::AST::Node include ::RuboCop::AST::BinaryOperatorNode include ::RuboCop::AST::PredicateOperatorNode @@ -68,7 +68,7 @@ class RuboCop::AST::AndNode < ::RuboCop::AST::Node # # @return [String] the alternate of the `and` operator # - # source://rubocop-ast//lib/rubocop/ast/node/and_node.rb#16 + # source://rubocop-ast/lib/rubocop/ast/node/and_node.rb#16 def alternate_operator; end # Returns the inverse keyword of the `and` node as a string. @@ -76,7 +76,7 @@ class RuboCop::AST::AndNode < ::RuboCop::AST::Node # # @return [String] the inverse of the `and` operator # - # source://rubocop-ast//lib/rubocop/ast/node/and_node.rb#24 + # source://rubocop-ast/lib/rubocop/ast/node/and_node.rb#24 def inverse_operator; end end @@ -85,27 +85,27 @@ end # This will be used in place of a plain node when the builder constructs # the AST, making its methods available to all `arg` nodes within RuboCop. # -# source://rubocop-ast//lib/rubocop/ast/node/arg_node.rb#9 +# source://rubocop-ast/lib/rubocop/ast/node/arg_node.rb#9 class RuboCop::AST::ArgNode < ::RuboCop::AST::Node # Checks whether the argument has a default value # # @return [Boolean] whether the argument has a default value # - # source://rubocop-ast//lib/rubocop/ast/node/arg_node.rb#29 + # source://rubocop-ast/lib/rubocop/ast/node/arg_node.rb#29 def default?; end # Returns the default value of the argument, if any. # # @return [Node, nil] the default value of the argument # - # source://rubocop-ast//lib/rubocop/ast/node/arg_node.rb#20 + # source://rubocop-ast/lib/rubocop/ast/node/arg_node.rb#20 def default_value; end # Returns the name of an argument. # # @return [Symbol, nil] the name of the argument # - # source://rubocop-ast//lib/rubocop/ast/node/arg_node.rb#13 + # source://rubocop-ast/lib/rubocop/ast/node/arg_node.rb#13 def name; end end @@ -113,7 +113,7 @@ end # node when the builder constructs the AST, making its methods available # to all `args` nodes within RuboCop. # -# source://rubocop-ast//lib/rubocop/ast/node/args_node.rb#8 +# source://rubocop-ast/lib/rubocop/ast/node/args_node.rb#8 class RuboCop::AST::ArgsNode < ::RuboCop::AST::Node include ::RuboCop::AST::CollectionNode @@ -124,7 +124,7 @@ class RuboCop::AST::ArgsNode < ::RuboCop::AST::Node # # @return [Array] array of argument nodes. # - # source://rubocop-ast//lib/rubocop/ast/node/args_node.rb#34 + # source://rubocop-ast/lib/rubocop/ast/node/args_node.rb#34 def argument_list; end # It returns true if arguments are empty and delimiters do not exist. @@ -143,7 +143,7 @@ class RuboCop::AST::ArgsNode < ::RuboCop::AST::Node # # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/node/args_node.rb#24 + # source://rubocop-ast/lib/rubocop/ast/node/args_node.rb#24 def empty_and_without_delimiters?; end end @@ -151,7 +151,7 @@ end # node when the builder constructs the AST, making its methods available # to all `array` nodes within RuboCop. # -# source://rubocop-ast//lib/rubocop/ast/node/array_node.rb#8 +# source://rubocop-ast/lib/rubocop/ast/node/array_node.rb#8 class RuboCop::AST::ArrayNode < ::RuboCop::AST::Node # Checks whether the `array` literal is delimited by either percent or # square brackets @@ -160,7 +160,7 @@ class RuboCop::AST::ArrayNode < ::RuboCop::AST::Node # # @return [Boolean] whether the array is enclosed in percent or square # - # source://rubocop-ast//lib/rubocop/ast/node/array_node.rb#64 + # source://rubocop-ast/lib/rubocop/ast/node/array_node.rb#64 def bracketed?; end # Calls the given block for each `value` node in the `array` literal. @@ -169,7 +169,7 @@ class RuboCop::AST::ArrayNode < ::RuboCop::AST::Node # @return [self] if a block is given # @return [Enumerator] if no block is given # - # source://rubocop-ast//lib/rubocop/ast/node/array_node.rb#25 + # source://rubocop-ast/lib/rubocop/ast/node/array_node.rb#25 def each_value(&block); end # Checks whether the `array` literal is delimited by percent brackets. @@ -178,79 +178,79 @@ class RuboCop::AST::ArrayNode < ::RuboCop::AST::Node # @overload percent_literal? # @return [Boolean] whether the array is enclosed in percent brackets # - # source://rubocop-ast//lib/rubocop/ast/node/array_node.rb#51 + # source://rubocop-ast/lib/rubocop/ast/node/array_node.rb#51 def percent_literal?(type = T.unsafe(nil)); end # Checks whether the `array` literal is delimited by square brackets. # # @return [Boolean] whether the array is enclosed in square brackets # - # source://rubocop-ast//lib/rubocop/ast/node/array_node.rb#36 + # source://rubocop-ast/lib/rubocop/ast/node/array_node.rb#36 def square_brackets?; end # Returns an array of all value nodes in the `array` literal. # # @return [Array] an array of value nodes # - # source://ast/2.4.2/lib/ast/node.rb#56 + # source://ast/2.4.2lib/ast/node.rb#56 def values; end end -# source://rubocop-ast//lib/rubocop/ast/node/array_node.rb#9 +# source://rubocop-ast/lib/rubocop/ast/node/array_node.rb#9 RuboCop::AST::ArrayNode::PERCENT_LITERAL_TYPES = T.let(T.unsafe(nil), Hash) # A node extension for `lvasgn`, `ivasgn`, `cvasgn`, and `gvasgn` 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/asgn_node.rb#8 +# source://rubocop-ast/lib/rubocop/ast/node/asgn_node.rb#8 class RuboCop::AST::AsgnNode < ::RuboCop::AST::Node # The expression being assigned to the variable. # # @return [Node] the expression being assigned. # - # source://rubocop-ast//lib/rubocop/ast/node/asgn_node.rb#20 + # 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 + # 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 + # 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 + # source://rubocop-ast/lib/rubocop/ast/node/asgn_node.rb#20 def rhs; end end # Common functionality for primitive literal nodes: `sym`, `str`, # `int`, `float`, `rational`... # -# source://rubocop-ast//lib/rubocop/ast/node/mixin/basic_literal_node.rb#7 +# source://rubocop-ast/lib/rubocop/ast/node/mixin/basic_literal_node.rb#7 module RuboCop::AST::BasicLiteralNode # Returns the value of the literal. # # @return [mixed] the value of the literal # - # source://rubocop-ast//lib/rubocop/ast/node/mixin/basic_literal_node.rb#11 + # source://rubocop-ast/lib/rubocop/ast/node/mixin/basic_literal_node.rb#11 def value; end end # Common functionality for nodes that are binary operations: # `or`, `and` ... # -# source://rubocop-ast//lib/rubocop/ast/node/mixin/binary_operator_node.rb#7 +# source://rubocop-ast/lib/rubocop/ast/node/mixin/binary_operator_node.rb#7 module RuboCop::AST::BinaryOperatorNode # Returns all of the conditions, including nested conditions, # of the binary operation. @@ -260,21 +260,21 @@ module RuboCop::AST::BinaryOperatorNode # # @return [Array] the left and right hand side of the binary # - # source://rubocop-ast//lib/rubocop/ast/node/mixin/binary_operator_node.rb#28 + # source://rubocop-ast/lib/rubocop/ast/node/mixin/binary_operator_node.rb#28 def conditions; end # Returns the left hand side node of the binary operation. # # @return [Node] the left hand side of the binary operation # - # source://rubocop-ast//lib/rubocop/ast/node/mixin/binary_operator_node.rb#11 + # source://rubocop-ast/lib/rubocop/ast/node/mixin/binary_operator_node.rb#11 def lhs; end # Returns the right hand side node of the binary operation. # # @return [Node] the right hand side of the binary operation # - # source://rubocop-ast//lib/rubocop/ast/node/mixin/binary_operator_node.rb#18 + # source://rubocop-ast/lib/rubocop/ast/node/mixin/binary_operator_node.rb#18 def rhs; end end @@ -285,7 +285,7 @@ end # A `block` node is essentially a method send with a block. Parser nests # the `send` node inside the `block` node. # -# source://rubocop-ast//lib/rubocop/ast/node/block_node.rb#11 +# source://rubocop-ast/lib/rubocop/ast/node/block_node.rb#11 class RuboCop::AST::BlockNode < ::RuboCop::AST::Node include ::RuboCop::AST::MethodIdentifierPredicates @@ -294,7 +294,7 @@ class RuboCop::AST::BlockNode < ::RuboCop::AST::Node # # @return [Array] # - # source://rubocop-ast//lib/rubocop/ast/node/block_node.rb#60 + # source://rubocop-ast/lib/rubocop/ast/node/block_node.rb#60 def argument_list; end # The arguments of this block. @@ -304,42 +304,42 @@ class RuboCop::AST::BlockNode < ::RuboCop::AST::Node # # @return [Array] # - # source://rubocop-ast//lib/rubocop/ast/node/block_node.rb#48 + # source://rubocop-ast/lib/rubocop/ast/node/block_node.rb#48 def arguments; end # Checks whether this block takes any arguments. # # @return [Boolean] whether this `block` node takes any arguments # - # source://rubocop-ast//lib/rubocop/ast/node/block_node.rb#85 + # source://rubocop-ast/lib/rubocop/ast/node/block_node.rb#85 def arguments?; end # The body of this block. # # @return [Node, nil] the body of the `block` node or `nil` # - # source://rubocop-ast//lib/rubocop/ast/node/block_node.rb#71 + # source://rubocop-ast/lib/rubocop/ast/node/block_node.rb#71 def body; end # Checks whether the `block` literal is delimited by curly braces. # # @return [Boolean] whether the `block` literal is enclosed in braces # - # source://rubocop-ast//lib/rubocop/ast/node/block_node.rb#92 + # source://rubocop-ast/lib/rubocop/ast/node/block_node.rb#92 def braces?; end # The closing delimiter for this `block` literal. # # @return [String] the closing delimiter for the `block` literal # - # source://rubocop-ast//lib/rubocop/ast/node/block_node.rb#120 + # source://rubocop-ast/lib/rubocop/ast/node/block_node.rb#120 def closing_delimiter; end # The delimiters for this `block` literal. # # @return [Array] the delimiters for the `block` literal # - # source://rubocop-ast//lib/rubocop/ast/node/block_node.rb#106 + # source://rubocop-ast/lib/rubocop/ast/node/block_node.rb#106 def delimiters; end # A shorthand for getting the first argument of this block. @@ -348,21 +348,21 @@ class RuboCop::AST::BlockNode < ::RuboCop::AST::Node # @return [Node, nil] the first argument of this block, # or `nil` if there are no arguments # - # source://rubocop-ast//lib/rubocop/ast/node/block_node.rb#29 + # source://rubocop-ast/lib/rubocop/ast/node/block_node.rb#29 def first_argument; end # Checks whether the `block` literal is delimited by `do`-`end` keywords. # # @return [Boolean] whether the `block` literal is enclosed in `do`-`end` # - # source://rubocop-ast//lib/rubocop/ast/node/block_node.rb#99 + # source://rubocop-ast/lib/rubocop/ast/node/block_node.rb#99 def keywords?; end # Checks whether this `block` literal belongs to a lambda. # # @return [Boolean] whether the `block` literal belongs to a lambda # - # source://rubocop-ast//lib/rubocop/ast/node/block_node.rb#143 + # source://rubocop-ast/lib/rubocop/ast/node/block_node.rb#143 def lambda?; end # A shorthand for getting the last argument of this block. @@ -371,14 +371,14 @@ class RuboCop::AST::BlockNode < ::RuboCop::AST::Node # @return [Node, nil] the last argument of this block, # or `nil` if there are no arguments # - # source://rubocop-ast//lib/rubocop/ast/node/block_node.rb#38 + # source://rubocop-ast/lib/rubocop/ast/node/block_node.rb#38 def last_argument; end # The name of the dispatched method as a symbol. # # @return [Symbol] the name of the dispatched method # - # source://rubocop-ast//lib/rubocop/ast/node/block_node.rb#78 + # source://rubocop-ast/lib/rubocop/ast/node/block_node.rb#78 def method_name; end # Checks whether this is a multiline block. This is overridden here @@ -386,21 +386,21 @@ class RuboCop::AST::BlockNode < ::RuboCop::AST::Node # # @return [Boolean] whether the `block` literal is on a several lines # - # source://rubocop-ast//lib/rubocop/ast/node/block_node.rb#136 + # source://rubocop-ast/lib/rubocop/ast/node/block_node.rb#136 def multiline?; end # The opening delimiter for this `block` literal. # # @return [String] the opening delimiter for the `block` literal # - # source://rubocop-ast//lib/rubocop/ast/node/block_node.rb#113 + # source://rubocop-ast/lib/rubocop/ast/node/block_node.rb#113 def opening_delimiter; end # The `send` node associated with this block. # # @return [SendNode] the `send` node associated with the `block` node # - # source://rubocop-ast//lib/rubocop/ast/node/block_node.rb#20 + # source://rubocop-ast/lib/rubocop/ast/node/block_node.rb#20 def send_node; end # Checks whether this is a single line block. This is overridden here @@ -408,32 +408,32 @@ class RuboCop::AST::BlockNode < ::RuboCop::AST::Node # # @return [Boolean] whether the `block` literal is on a single line # - # source://rubocop-ast//lib/rubocop/ast/node/block_node.rb#128 + # source://rubocop-ast/lib/rubocop/ast/node/block_node.rb#128 def single_line?; end # Checks whether this node body is a void context. # # @return [Boolean] whether the `block` node body is a void context # - # source://rubocop-ast//lib/rubocop/ast/node/block_node.rb#150 + # source://rubocop-ast/lib/rubocop/ast/node/block_node.rb#150 def void_context?; end private # Numbered arguments of this `numblock`. # - # source://rubocop-ast//lib/rubocop/ast/node/block_node.rb#157 + # source://rubocop-ast/lib/rubocop/ast/node/block_node.rb#157 def numbered_arguments; end end -# source://rubocop-ast//lib/rubocop/ast/node/block_node.rb#14 +# source://rubocop-ast/lib/rubocop/ast/node/block_node.rb#14 RuboCop::AST::BlockNode::VOID_CONTEXT_METHODS = T.let(T.unsafe(nil), Array) # A node extension for `break` nodes. This will be used in place of a # plain node when the builder constructs the AST, making its methods # available to all `break` nodes within RuboCop. # -# source://rubocop-ast//lib/rubocop/ast/node/break_node.rb#8 +# source://rubocop-ast/lib/rubocop/ast/node/break_node.rb#8 class RuboCop::AST::BreakNode < ::RuboCop::AST::Node include ::RuboCop::AST::ParameterizedNode include ::RuboCop::AST::ParameterizedNode::WrappedArguments @@ -451,37 +451,37 @@ end # parser = Parser::Ruby25.new(builder) # root_node = parser.parse(buffer) # -# source://rubocop-ast//lib/rubocop/ast/builder.rb#16 +# source://rubocop-ast/lib/rubocop/ast/builder.rb#16 class RuboCop::AST::Builder < ::Parser::Builders::Default # Generates {Node} from the given information. # # @return [Node] the generated node # - # source://rubocop-ast//lib/rubocop/ast/builder.rb#105 + # source://rubocop-ast/lib/rubocop/ast/builder.rb#106 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#111 + # source://rubocop-ast/lib/rubocop/ast/builder.rb#112 def string_value(token); end private - # source://rubocop-ast//lib/rubocop/ast/builder.rb#117 + # source://rubocop-ast/lib/rubocop/ast/builder.rb#118 def node_klass(type); end end # @api private # -# source://rubocop-ast//lib/rubocop/ast/builder.rb#21 +# source://rubocop-ast/lib/rubocop/ast/builder.rb#21 RuboCop::AST::Builder::NODE_MAP = T.let(T.unsafe(nil), Hash) # A node extension for `case_match` nodes. This will be used in place of # a plain node when the builder constructs the AST, making its methods # available to all `case_match` nodes within RuboCop. # -# source://rubocop-ast//lib/rubocop/ast/node/case_match_node.rb#8 +# source://rubocop-ast/lib/rubocop/ast/node/case_match_node.rb#8 class RuboCop::AST::CaseMatchNode < ::RuboCop::AST::Node include ::RuboCop::AST::ConditionalNode @@ -491,19 +491,19 @@ class RuboCop::AST::CaseMatchNode < ::RuboCop::AST::Node # # @return [Array] an array of the bodies of the `in` branches # - # source://rubocop-ast//lib/rubocop/ast/node/case_match_node.rb#38 + # source://rubocop-ast/lib/rubocop/ast/node/case_match_node.rb#38 def branches; end # @deprecated Use `in_pattern_branches.each` # - # source://rubocop-ast//lib/rubocop/ast/node/case_match_node.rb#19 + # source://rubocop-ast/lib/rubocop/ast/node/case_match_node.rb#19 def each_in_pattern(&block); end # Checks whether this case statement has an `else` branch. # # @return [Boolean] whether the `case` statement has an `else` branch # - # source://rubocop-ast//lib/rubocop/ast/node/case_match_node.rb#59 + # source://rubocop-ast/lib/rubocop/ast/node/case_match_node.rb#59 def else?; end # Returns the else branch of the `case` statement, if any. @@ -512,21 +512,21 @@ class RuboCop::AST::CaseMatchNode < ::RuboCop::AST::Node # @return [EmptyElse] the empty else branch node of the `case` statement # @return [nil] if the case statement does not have an else branch. # - # source://rubocop-ast//lib/rubocop/ast/node/case_match_node.rb#52 + # source://rubocop-ast/lib/rubocop/ast/node/case_match_node.rb#52 def else_branch; end # Returns an array of all the `in` pattern branches in the `case` statement. # # @return [Array] an array of `in_pattern` nodes # - # source://rubocop-ast//lib/rubocop/ast/node/case_match_node.rb#30 + # source://rubocop-ast/lib/rubocop/ast/node/case_match_node.rb#30 def in_pattern_branches; end # Returns the keyword of the `case` statement as a string. # # @return [String] the keyword of the `case` statement # - # source://rubocop-ast//lib/rubocop/ast/node/case_match_node.rb#14 + # source://rubocop-ast/lib/rubocop/ast/node/case_match_node.rb#14 def keyword; end end @@ -534,7 +534,7 @@ end # node when the builder constructs the AST, making its methods available # to all `case` nodes within RuboCop. # -# source://rubocop-ast//lib/rubocop/ast/node/case_node.rb#8 +# source://rubocop-ast/lib/rubocop/ast/node/case_node.rb#8 class RuboCop::AST::CaseNode < ::RuboCop::AST::Node include ::RuboCop::AST::ConditionalNode @@ -544,19 +544,19 @@ class RuboCop::AST::CaseNode < ::RuboCop::AST::Node # # @return [Array] an array of the bodies of the when branches # - # source://rubocop-ast//lib/rubocop/ast/node/case_node.rb#38 + # source://rubocop-ast/lib/rubocop/ast/node/case_node.rb#38 def branches; end # @deprecated Use `when_branches.each` # - # source://rubocop-ast//lib/rubocop/ast/node/case_node.rb#19 + # source://rubocop-ast/lib/rubocop/ast/node/case_node.rb#19 def each_when(&block); end # Checks whether this case statement has an `else` branch. # # @return [Boolean] whether the `case` statement has an `else` branch # - # source://rubocop-ast//lib/rubocop/ast/node/case_node.rb#55 + # source://rubocop-ast/lib/rubocop/ast/node/case_node.rb#55 def else?; end # Returns the else branch of the `case` statement, if any. @@ -564,21 +564,21 @@ class RuboCop::AST::CaseNode < ::RuboCop::AST::Node # @return [Node] the else branch node of the `case` statement # @return [nil] if the case statement does not have an else branch. # - # source://rubocop-ast//lib/rubocop/ast/node/case_node.rb#48 + # source://rubocop-ast/lib/rubocop/ast/node/case_node.rb#48 def else_branch; end # Returns the keyword of the `case` statement as a string. # # @return [String] the keyword of the `case` statement # - # source://rubocop-ast//lib/rubocop/ast/node/case_node.rb#14 + # source://rubocop-ast/lib/rubocop/ast/node/case_node.rb#14 def keyword; end # Returns an array of all the when branches in the `case` statement. # # @return [Array] an array of `when` nodes # - # source://rubocop-ast//lib/rubocop/ast/node/case_node.rb#30 + # source://rubocop-ast/lib/rubocop/ast/node/case_node.rb#30 def when_branches; end end @@ -586,7 +586,7 @@ end # 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/casgn_node.rb#8 +# source://rubocop-ast/lib/rubocop/ast/node/casgn_node.rb#8 class RuboCop::AST::CasgnNode < ::RuboCop::AST::Node include ::RuboCop::AST::ConstantNode @@ -594,20 +594,20 @@ class RuboCop::AST::CasgnNode < ::RuboCop::AST::Node # # @return [Node] the expression being assigned. # - # source://rubocop-ast//lib/rubocop/ast/node/casgn_node.rb#17 + # source://rubocop-ast/lib/rubocop/ast/node/casgn_node.rb#17 def expression; end - # source://rubocop-ast//lib/rubocop/ast/node/mixin/constant_node.rb#14 + # 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 + # source://rubocop-ast/lib/rubocop/ast/node/mixin/constant_node.rb#14 def name; end # The expression being assigned to the variable. # # @return [Node] the expression being assigned. # - # source://rubocop-ast//lib/rubocop/ast/node/casgn_node.rb#17 + # source://rubocop-ast/lib/rubocop/ast/node/casgn_node.rb#17 def rhs; end end @@ -615,443 +615,443 @@ end # node when the builder constructs the AST, making its methods available # to all `class` nodes within RuboCop. # -# source://rubocop-ast//lib/rubocop/ast/node/class_node.rb#8 +# source://rubocop-ast/lib/rubocop/ast/node/class_node.rb#8 class RuboCop::AST::ClassNode < ::RuboCop::AST::Node # The body of this `class` node. # # @return [Node, nil] the body of the class # - # source://rubocop-ast//lib/rubocop/ast/node/class_node.rb#26 + # source://rubocop-ast/lib/rubocop/ast/node/class_node.rb#26 def body; end # The identifier for this `class` node. # # @return [Node] the identifier of the class # - # source://rubocop-ast//lib/rubocop/ast/node/class_node.rb#12 + # source://rubocop-ast/lib/rubocop/ast/node/class_node.rb#12 def identifier; end # The parent class for this `class` node. # # @return [Node, nil] the parent class of the class # - # source://rubocop-ast//lib/rubocop/ast/node/class_node.rb#19 + # source://rubocop-ast/lib/rubocop/ast/node/class_node.rb#19 def parent_class; end end # A mixin that helps give collection nodes array polymorphism. # -# source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#6 +# source://rubocop-ast/lib/rubocop/ast/node/mixin/collection_node.rb#6 module RuboCop::AST::CollectionNode extend ::RuboCop::SimpleForwardable - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/lib/rubocop/ast/utilities/simple_forwardable.rb#9 def &(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/lib/rubocop/ast/utilities/simple_forwardable.rb#9 def *(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/lib/rubocop/ast/utilities/simple_forwardable.rb#9 def +(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/lib/rubocop/ast/utilities/simple_forwardable.rb#9 def -(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/lib/rubocop/ast/utilities/simple_forwardable.rb#9 def <<(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/lib/rubocop/ast/utilities/simple_forwardable.rb#9 def [](*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/lib/rubocop/ast/utilities/simple_forwardable.rb#9 def []=(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/lib/rubocop/ast/utilities/simple_forwardable.rb#9 def all?(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/lib/rubocop/ast/utilities/simple_forwardable.rb#9 def any?(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/lib/rubocop/ast/utilities/simple_forwardable.rb#9 def append(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/lib/rubocop/ast/utilities/simple_forwardable.rb#9 def assoc(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/lib/rubocop/ast/utilities/simple_forwardable.rb#9 def at(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/lib/rubocop/ast/utilities/simple_forwardable.rb#9 def bsearch(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/lib/rubocop/ast/utilities/simple_forwardable.rb#9 def bsearch_index(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/lib/rubocop/ast/utilities/simple_forwardable.rb#9 def chain(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/lib/rubocop/ast/utilities/simple_forwardable.rb#9 def chunk(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/lib/rubocop/ast/utilities/simple_forwardable.rb#9 def chunk_while(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/lib/rubocop/ast/utilities/simple_forwardable.rb#9 def clear(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/lib/rubocop/ast/utilities/simple_forwardable.rb#9 def collect(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/lib/rubocop/ast/utilities/simple_forwardable.rb#9 def collect!(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/lib/rubocop/ast/utilities/simple_forwardable.rb#9 def collect_concat(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/lib/rubocop/ast/utilities/simple_forwardable.rb#9 def combination(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/lib/rubocop/ast/utilities/simple_forwardable.rb#9 def compact(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/lib/rubocop/ast/utilities/simple_forwardable.rb#9 def compact!(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/lib/rubocop/ast/utilities/simple_forwardable.rb#9 def concat(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/lib/rubocop/ast/utilities/simple_forwardable.rb#9 def count(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/lib/rubocop/ast/utilities/simple_forwardable.rb#9 def cycle(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/lib/rubocop/ast/utilities/simple_forwardable.rb#9 def deconstruct(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/lib/rubocop/ast/utilities/simple_forwardable.rb#9 def delete(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/lib/rubocop/ast/utilities/simple_forwardable.rb#9 def delete_at(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/lib/rubocop/ast/utilities/simple_forwardable.rb#9 def delete_if(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/lib/rubocop/ast/utilities/simple_forwardable.rb#9 def detect(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/lib/rubocop/ast/utilities/simple_forwardable.rb#9 def difference(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/lib/rubocop/ast/utilities/simple_forwardable.rb#9 def dig(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/lib/rubocop/ast/utilities/simple_forwardable.rb#9 def drop(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/lib/rubocop/ast/utilities/simple_forwardable.rb#9 def drop_while(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/lib/rubocop/ast/utilities/simple_forwardable.rb#9 def each(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/lib/rubocop/ast/utilities/simple_forwardable.rb#9 def each_cons(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/lib/rubocop/ast/utilities/simple_forwardable.rb#9 def each_entry(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/lib/rubocop/ast/utilities/simple_forwardable.rb#9 def each_index(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/lib/rubocop/ast/utilities/simple_forwardable.rb#9 def each_slice(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/lib/rubocop/ast/utilities/simple_forwardable.rb#9 def each_with_index(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/lib/rubocop/ast/utilities/simple_forwardable.rb#9 def each_with_object(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/lib/rubocop/ast/utilities/simple_forwardable.rb#9 def empty?(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/lib/rubocop/ast/utilities/simple_forwardable.rb#9 def entries(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/lib/rubocop/ast/utilities/simple_forwardable.rb#9 def fetch(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/lib/rubocop/ast/utilities/simple_forwardable.rb#9 def fill(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/lib/rubocop/ast/utilities/simple_forwardable.rb#9 def filter(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/lib/rubocop/ast/utilities/simple_forwardable.rb#9 def filter!(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/lib/rubocop/ast/utilities/simple_forwardable.rb#9 def filter_map(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/lib/rubocop/ast/utilities/simple_forwardable.rb#9 def find(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/lib/rubocop/ast/utilities/simple_forwardable.rb#9 def find_all(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/lib/rubocop/ast/utilities/simple_forwardable.rb#9 def find_index(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/lib/rubocop/ast/utilities/simple_forwardable.rb#9 def first(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/lib/rubocop/ast/utilities/simple_forwardable.rb#9 def flat_map(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/lib/rubocop/ast/utilities/simple_forwardable.rb#9 def flatten(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/lib/rubocop/ast/utilities/simple_forwardable.rb#9 def flatten!(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/lib/rubocop/ast/utilities/simple_forwardable.rb#9 def grep(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/lib/rubocop/ast/utilities/simple_forwardable.rb#9 def grep_v(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/lib/rubocop/ast/utilities/simple_forwardable.rb#9 def group_by(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/lib/rubocop/ast/utilities/simple_forwardable.rb#9 def include?(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/lib/rubocop/ast/utilities/simple_forwardable.rb#9 def index(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/lib/rubocop/ast/utilities/simple_forwardable.rb#9 def inject(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/lib/rubocop/ast/utilities/simple_forwardable.rb#9 def insert(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/lib/rubocop/ast/utilities/simple_forwardable.rb#9 def intersect?(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/lib/rubocop/ast/utilities/simple_forwardable.rb#9 def intersection(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/lib/rubocop/ast/utilities/simple_forwardable.rb#9 def join(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/lib/rubocop/ast/utilities/simple_forwardable.rb#9 def keep_if(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/lib/rubocop/ast/utilities/simple_forwardable.rb#9 def last(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/lib/rubocop/ast/utilities/simple_forwardable.rb#9 def lazy(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/lib/rubocop/ast/utilities/simple_forwardable.rb#9 def length(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/lib/rubocop/ast/utilities/simple_forwardable.rb#9 def map(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/lib/rubocop/ast/utilities/simple_forwardable.rb#9 def map!(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/lib/rubocop/ast/utilities/simple_forwardable.rb#9 def max(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/lib/rubocop/ast/utilities/simple_forwardable.rb#9 def max_by(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/lib/rubocop/ast/utilities/simple_forwardable.rb#9 def member?(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/lib/rubocop/ast/utilities/simple_forwardable.rb#9 def min(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/lib/rubocop/ast/utilities/simple_forwardable.rb#9 def min_by(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/lib/rubocop/ast/utilities/simple_forwardable.rb#9 def minmax(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/lib/rubocop/ast/utilities/simple_forwardable.rb#9 def minmax_by(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/lib/rubocop/ast/utilities/simple_forwardable.rb#9 def none?(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/lib/rubocop/ast/utilities/simple_forwardable.rb#9 def one?(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/lib/rubocop/ast/utilities/simple_forwardable.rb#9 def pack(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/lib/rubocop/ast/utilities/simple_forwardable.rb#9 def partition(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/lib/rubocop/ast/utilities/simple_forwardable.rb#9 def permutation(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/lib/rubocop/ast/utilities/simple_forwardable.rb#9 def place(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/lib/rubocop/ast/utilities/simple_forwardable.rb#9 def pop(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/lib/rubocop/ast/utilities/simple_forwardable.rb#9 def prepend(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/lib/rubocop/ast/utilities/simple_forwardable.rb#9 def product(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/lib/rubocop/ast/utilities/simple_forwardable.rb#9 def push(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/lib/rubocop/ast/utilities/simple_forwardable.rb#9 def rassoc(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/lib/rubocop/ast/utilities/simple_forwardable.rb#9 def reduce(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/lib/rubocop/ast/utilities/simple_forwardable.rb#9 def reject(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/lib/rubocop/ast/utilities/simple_forwardable.rb#9 def reject!(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/lib/rubocop/ast/utilities/simple_forwardable.rb#9 def repeated_combination(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/lib/rubocop/ast/utilities/simple_forwardable.rb#9 def repeated_permutation(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/lib/rubocop/ast/utilities/simple_forwardable.rb#9 def replace(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/lib/rubocop/ast/utilities/simple_forwardable.rb#9 def reverse(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/lib/rubocop/ast/utilities/simple_forwardable.rb#9 def reverse!(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/lib/rubocop/ast/utilities/simple_forwardable.rb#9 def reverse_each(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/lib/rubocop/ast/utilities/simple_forwardable.rb#9 def rindex(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/lib/rubocop/ast/utilities/simple_forwardable.rb#9 def rotate(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/lib/rubocop/ast/utilities/simple_forwardable.rb#9 def rotate!(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/lib/rubocop/ast/utilities/simple_forwardable.rb#9 def sample(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/lib/rubocop/ast/utilities/simple_forwardable.rb#9 def select(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/lib/rubocop/ast/utilities/simple_forwardable.rb#9 def select!(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/lib/rubocop/ast/utilities/simple_forwardable.rb#9 def shelljoin(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/lib/rubocop/ast/utilities/simple_forwardable.rb#9 def shift(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/lib/rubocop/ast/utilities/simple_forwardable.rb#9 def shuffle(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/lib/rubocop/ast/utilities/simple_forwardable.rb#9 def shuffle!(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/lib/rubocop/ast/utilities/simple_forwardable.rb#9 def size(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/lib/rubocop/ast/utilities/simple_forwardable.rb#9 def slice(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/lib/rubocop/ast/utilities/simple_forwardable.rb#9 def slice!(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/lib/rubocop/ast/utilities/simple_forwardable.rb#9 def slice_after(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/lib/rubocop/ast/utilities/simple_forwardable.rb#9 def slice_before(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/lib/rubocop/ast/utilities/simple_forwardable.rb#9 def slice_when(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/lib/rubocop/ast/utilities/simple_forwardable.rb#9 def sort(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/lib/rubocop/ast/utilities/simple_forwardable.rb#9 def sort!(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/lib/rubocop/ast/utilities/simple_forwardable.rb#9 def sort_by(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/lib/rubocop/ast/utilities/simple_forwardable.rb#9 def sort_by!(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/lib/rubocop/ast/utilities/simple_forwardable.rb#9 def sum(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/lib/rubocop/ast/utilities/simple_forwardable.rb#9 def take(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/lib/rubocop/ast/utilities/simple_forwardable.rb#9 def take_while(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/lib/rubocop/ast/utilities/simple_forwardable.rb#9 def tally(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/lib/rubocop/ast/utilities/simple_forwardable.rb#9 def to_ary(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/lib/rubocop/ast/utilities/simple_forwardable.rb#9 def to_h(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/lib/rubocop/ast/utilities/simple_forwardable.rb#9 def to_set(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/lib/rubocop/ast/utilities/simple_forwardable.rb#9 def transpose(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/lib/rubocop/ast/utilities/simple_forwardable.rb#9 def union(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/lib/rubocop/ast/utilities/simple_forwardable.rb#9 def uniq(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/lib/rubocop/ast/utilities/simple_forwardable.rb#9 def uniq!(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/lib/rubocop/ast/utilities/simple_forwardable.rb#9 def unshift(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/lib/rubocop/ast/utilities/simple_forwardable.rb#9 def values_at(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/lib/rubocop/ast/utilities/simple_forwardable.rb#9 def zip(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/lib/rubocop/ast/utilities/simple_forwardable.rb#9 def |(*_arg0, **_arg1, &_arg2); end end -# source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#9 +# source://rubocop-ast/lib/rubocop/ast/node/mixin/collection_node.rb#9 RuboCop::AST::CollectionNode::ARRAY_METHODS = T.let(T.unsafe(nil), Array) # Common functionality for nodes that have conditions: @@ -1059,7 +1059,7 @@ RuboCop::AST::CollectionNode::ARRAY_METHODS = T.let(T.unsafe(nil), Array) # This currently doesn't include `when` nodes, because they have multiple # conditions, and need to be checked for that. # -# source://rubocop-ast//lib/rubocop/ast/node/mixin/conditional_node.rb#9 +# source://rubocop-ast/lib/rubocop/ast/node/mixin/conditional_node.rb#9 module RuboCop::AST::ConditionalNode # Returns the body associated with the condition. This works together with # each node's custom destructuring method to select the correct part of @@ -1068,7 +1068,7 @@ module RuboCop::AST::ConditionalNode # @note For `if` nodes, this is the truthy branch. # @return [Node, nil] the body of the node # - # source://rubocop-ast//lib/rubocop/ast/node/mixin/conditional_node.rb#40 + # source://rubocop-ast/lib/rubocop/ast/node/mixin/conditional_node.rb#40 def body; end # Returns the condition of the node. This works together with each node's @@ -1076,7 +1076,7 @@ module RuboCop::AST::ConditionalNode # # @return [Node, nil] the condition of the node # - # source://rubocop-ast//lib/rubocop/ast/node/mixin/conditional_node.rb#29 + # source://rubocop-ast/lib/rubocop/ast/node/mixin/conditional_node.rb#29 def condition; end # Checks whether the condition of the node is written on more than @@ -1084,20 +1084,20 @@ module RuboCop::AST::ConditionalNode # # @return [Boolean] whether the condition is on more than one line # - # source://rubocop-ast//lib/rubocop/ast/node/mixin/conditional_node.rb#21 + # source://rubocop-ast/lib/rubocop/ast/node/mixin/conditional_node.rb#21 def multiline_condition?; end # Checks whether the condition of the node is written on a single line. # # @return [Boolean] whether the condition is on a single line # - # source://rubocop-ast//lib/rubocop/ast/node/mixin/conditional_node.rb#13 + # source://rubocop-ast/lib/rubocop/ast/node/mixin/conditional_node.rb#13 def single_line_condition?; end end # A node extension for `const` nodes. # -# source://rubocop-ast//lib/rubocop/ast/node/const_node.rb#6 +# source://rubocop-ast/lib/rubocop/ast/node/const_node.rb#6 class RuboCop::AST::ConstNode < ::RuboCop::AST::Node include ::RuboCop::AST::ConstantNode end @@ -1105,18 +1105,18 @@ end # Common functionality for nodes that deal with constants: # `const`, `casgn`. # -# source://rubocop-ast//lib/rubocop/ast/node/mixin/constant_node.rb#7 +# 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/mixin/constant_node.rb#27 + # 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/mixin/constant_node.rb#21 + # source://rubocop-ast/lib/rubocop/ast/node/mixin/constant_node.rb#21 def class_name?; end # Yield nodes for the namespace @@ -1126,29 +1126,29 @@ module RuboCop::AST::ConstantNode # s(:const, :Foo), then # s(:const, s(:const, :Foo), :Bar) # - # source://rubocop-ast//lib/rubocop/ast/node/mixin/constant_node.rb#44 + # 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/mixin/constant_node.rb#21 + # 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/mixin/constant_node.rb#9 + # 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/mixin/constant_node.rb#34 + # 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/mixin/constant_node.rb#14 + # source://rubocop-ast/lib/rubocop/ast/node/mixin/constant_node.rb#14 def short_name; end end @@ -1156,11 +1156,11 @@ end # node when the builder constructs the AST, making its methods available # to all `csend` nodes within RuboCop. # -# source://rubocop-ast//lib/rubocop/ast/node/csend_node.rb#8 +# source://rubocop-ast/lib/rubocop/ast/node/csend_node.rb#8 class RuboCop::AST::CsendNode < ::RuboCop::AST::SendNode # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/node/csend_node.rb#9 + # source://rubocop-ast/lib/rubocop/ast/node/csend_node.rb#9 def send_type?; end end @@ -1168,7 +1168,7 @@ end # node when the builder constructs the AST, making its methods available # to all `def` nodes within RuboCop. # -# source://rubocop-ast//lib/rubocop/ast/node/def_node.rb#8 +# source://rubocop-ast/lib/rubocop/ast/node/def_node.rb#8 class RuboCop::AST::DefNode < ::RuboCop::AST::Node include ::RuboCop::AST::ParameterizedNode include ::RuboCop::AST::MethodIdentifierPredicates @@ -1180,14 +1180,14 @@ class RuboCop::AST::DefNode < ::RuboCop::AST::Node # which are rumored to be added in a later version of Ruby. # @return [Boolean] whether the `def` node uses argument forwarding # - # source://rubocop-ast//lib/rubocop/ast/node/def_node.rb#26 + # source://rubocop-ast/lib/rubocop/ast/node/def_node.rb#26 def argument_forwarding?; end # An array containing the arguments of the method definition. # # @return [Array] the arguments of the method definition # - # source://rubocop-ast//lib/rubocop/ast/node/def_node.rb#40 + # source://rubocop-ast/lib/rubocop/ast/node/def_node.rb#40 def arguments; end # The body of the method definition. @@ -1197,33 +1197,33 @@ class RuboCop::AST::DefNode < ::RuboCop::AST::Node # expression. # @return [Node] the body of the method definition # - # source://rubocop-ast//lib/rubocop/ast/node/def_node.rb#51 + # source://rubocop-ast/lib/rubocop/ast/node/def_node.rb#51 def body; end # @return [Boolean] if the definition is without an `end` or not. # - # source://rubocop-ast//lib/rubocop/ast/node/def_node.rb#63 + # source://rubocop-ast/lib/rubocop/ast/node/def_node.rb#63 def endless?; end # The name of the defined method as a symbol. # # @return [Symbol] the name of the defined method # - # source://rubocop-ast//lib/rubocop/ast/node/def_node.rb#33 + # source://rubocop-ast/lib/rubocop/ast/node/def_node.rb#33 def method_name; end # The receiver of the method definition, if any. # # @return [Node, nil] the receiver of the method definition, or `nil`. # - # source://rubocop-ast//lib/rubocop/ast/node/def_node.rb#58 + # source://rubocop-ast/lib/rubocop/ast/node/def_node.rb#58 def receiver; end # Checks whether this node body is a void context. # # @return [Boolean] whether the `def` node body is a void context # - # source://rubocop-ast//lib/rubocop/ast/node/def_node.rb#15 + # source://rubocop-ast/lib/rubocop/ast/node/def_node.rb#15 def void_context?; end end @@ -1231,30 +1231,30 @@ end # plain node when the builder constructs the AST, making its methods # available to all `send` nodes within RuboCop. # -# source://rubocop-ast//lib/rubocop/ast/node/defined_node.rb#8 +# source://rubocop-ast/lib/rubocop/ast/node/defined_node.rb#8 class RuboCop::AST::DefinedNode < ::RuboCop::AST::Node include ::RuboCop::AST::ParameterizedNode include ::RuboCop::AST::MethodIdentifierPredicates include ::RuboCop::AST::MethodDispatchNode - # source://ast/2.4.2/lib/ast/node.rb#56 + # source://ast/2.4.2lib/ast/node.rb#56 def arguments; end - # source://rubocop-ast//lib/rubocop/ast/node/defined_node.rb#12 + # source://rubocop-ast/lib/rubocop/ast/node/defined_node.rb#12 def node_parts; end end # Common functionality for primitive literal nodes: `sym`, `str`, # `int`, `float`, ... # -# source://rubocop-ast//lib/rubocop/ast/node/mixin/descendence.rb#7 +# source://rubocop-ast/lib/rubocop/ast/node/mixin/descendence.rb#7 module RuboCop::AST::Descendence # Returns an array of child nodes. # This is a shorthand for `node.each_child_node.to_a`. # # @return [Array] an array of child nodes # - # source://rubocop-ast//lib/rubocop/ast/node/mixin/descendence.rb#38 + # source://rubocop-ast/lib/rubocop/ast/node/mixin/descendence.rb#38 def child_nodes; end # Returns an array of descendant nodes. @@ -1262,7 +1262,7 @@ module RuboCop::AST::Descendence # # @return [Array] an array of descendant nodes # - # source://rubocop-ast//lib/rubocop/ast/node/mixin/descendence.rb#72 + # source://rubocop-ast/lib/rubocop/ast/node/mixin/descendence.rb#72 def descendants; end # Calls the given block for each child node. @@ -1277,7 +1277,7 @@ module RuboCop::AST::Descendence # @return [Enumerator] if no block is given # @yieldparam node [Node] each child node # - # source://rubocop-ast//lib/rubocop/ast/node/mixin/descendence.rb#22 + # source://rubocop-ast/lib/rubocop/ast/node/mixin/descendence.rb#22 def each_child_node(*types); end # Calls the given block for each descendant node with depth first order. @@ -1290,7 +1290,7 @@ module RuboCop::AST::Descendence # @return [Enumerator] if no block is given # @yieldparam node [Node] each descendant node # - # source://rubocop-ast//lib/rubocop/ast/node/mixin/descendence.rb#60 + # source://rubocop-ast/lib/rubocop/ast/node/mixin/descendence.rb#60 def each_descendant(*types, &block); end # Calls the given block for the receiver and each descendant node in @@ -1307,12 +1307,12 @@ module RuboCop::AST::Descendence # @return [Enumerator] if no block is given # @yieldparam node [Node] each node # - # source://rubocop-ast//lib/rubocop/ast/node/mixin/descendence.rb#95 + # source://rubocop-ast/lib/rubocop/ast/node/mixin/descendence.rb#95 def each_node(*types, &block); end protected - # source://rubocop-ast//lib/rubocop/ast/node/mixin/descendence.rb#107 + # source://rubocop-ast/lib/rubocop/ast/node/mixin/descendence.rb#107 def visit_descendants(types, &block); end end @@ -1320,9 +1320,9 @@ end # in place of a plain node when the builder constructs the AST, making # its methods available to all `dstr` nodes within RuboCop. # -# source://rubocop-ast//lib/rubocop/ast/node/dstr_node.rb#8 +# source://rubocop-ast/lib/rubocop/ast/node/dstr_node.rb#8 class RuboCop::AST::DstrNode < ::RuboCop::AST::StrNode - # source://rubocop-ast//lib/rubocop/ast/node/dstr_node.rb#9 + # source://rubocop-ast/lib/rubocop/ast/node/dstr_node.rb#9 def value; end end @@ -1330,30 +1330,45 @@ end # node when the builder constructs the AST, making its methods available # to all `ensure` nodes within RuboCop. # -# source://rubocop-ast//lib/rubocop/ast/node/ensure_node.rb#8 +# source://rubocop-ast/lib/rubocop/ast/node/ensure_node.rb#8 class RuboCop::AST::EnsureNode < ::RuboCop::AST::Node # Returns the body of the `ensure` clause. # + # @deprecated Use `EnsureNode#branch` # @return [Node, nil] The body of the `ensure`. # - # source://rubocop-ast//lib/rubocop/ast/node/ensure_node.rb#12 + # source://rubocop-ast/lib/rubocop/ast/node/ensure_node.rb#13 def body; end + # Returns an the ensure branch in the exception handling statement. + # + # @return [Node, nil] the body of the ensure branch. + # + # source://rubocop-ast/lib/rubocop/ast/node/ensure_node.rb#20 + def branch; end + + # Returns the `rescue` node of the `ensure`, if present. + # + # @return [Node, nil] The `rescue` node. + # + # source://rubocop-ast/lib/rubocop/ast/node/ensure_node.rb#27 + def rescue_node; end + # Checks whether this node body is a void context. # Always `true` for `ensure`. # # @return [true] whether the `ensure` node body is a void context # - # source://rubocop-ast//lib/rubocop/ast/node/ensure_node.rb#20 + # source://rubocop-ast/lib/rubocop/ast/node/ensure_node.rb#35 def void_context?; end end -# source://rubocop-ast//lib/rubocop/ast/ext/range.rb#5 +# source://rubocop-ast/lib/rubocop/ast/ext/range.rb#5 module RuboCop::AST::Ext; end # Extensions to Parser::AST::Range # -# source://rubocop-ast//lib/rubocop/ast/ext/range.rb#7 +# source://rubocop-ast/lib/rubocop/ast/ext/range.rb#7 module RuboCop::AST::Ext::Range # If `exclude_end` is `true`, then the range will be exclusive. # @@ -1369,7 +1384,7 @@ module RuboCop::AST::Ext::Range # # @return [Range] the range of line numbers for the node # - # source://rubocop-ast//lib/rubocop/ast/ext/range.rb#20 + # source://rubocop-ast/lib/rubocop/ast/ext/range.rb#20 def line_span(exclude_end: T.unsafe(nil)); end end @@ -1377,7 +1392,7 @@ end # node when the builder constructs the AST, making its methods available to # all `float` nodes within RuboCop. # -# source://rubocop-ast//lib/rubocop/ast/node/float_node.rb#8 +# source://rubocop-ast/lib/rubocop/ast/node/float_node.rb#8 class RuboCop::AST::FloatNode < ::RuboCop::AST::Node include ::RuboCop::AST::BasicLiteralNode include ::RuboCop::AST::NumericNode @@ -1387,41 +1402,41 @@ end # node when the builder constructs the AST, making its methods available # to all `for` nodes within RuboCop. # -# source://rubocop-ast//lib/rubocop/ast/node/for_node.rb#8 +# source://rubocop-ast/lib/rubocop/ast/node/for_node.rb#8 class RuboCop::AST::ForNode < ::RuboCop::AST::Node # Returns the body of the `for` loop. # # @return [Node, nil] The body of the `for` loop. # - # source://rubocop-ast//lib/rubocop/ast/node/for_node.rb#48 + # source://rubocop-ast/lib/rubocop/ast/node/for_node.rb#48 def body; end # Returns the collection the `for` loop is iterating over. # # @return [Node] The collection the `for` loop is iterating over # - # source://rubocop-ast//lib/rubocop/ast/node/for_node.rb#41 + # source://rubocop-ast/lib/rubocop/ast/node/for_node.rb#41 def collection; end # Checks whether the `for` node has a `do` keyword. # # @return [Boolean] whether the `for` node has a `do` keyword # - # source://rubocop-ast//lib/rubocop/ast/node/for_node.rb#19 + # source://rubocop-ast/lib/rubocop/ast/node/for_node.rb#19 def do?; end # Returns the keyword of the `for` statement as a string. # # @return [String] the keyword of the `until` statement # - # source://rubocop-ast//lib/rubocop/ast/node/for_node.rb#12 + # source://rubocop-ast/lib/rubocop/ast/node/for_node.rb#12 def keyword; end # Returns the iteration variable of the `for` loop. # # @return [Node] The iteration variable of the `for` loop # - # source://rubocop-ast//lib/rubocop/ast/node/for_node.rb#34 + # source://rubocop-ast/lib/rubocop/ast/node/for_node.rb#34 def variable; end # Checks whether this node body is a void context. @@ -1429,7 +1444,7 @@ class RuboCop::AST::ForNode < ::RuboCop::AST::Node # # @return [true] whether the `for` node body is a void context # - # source://rubocop-ast//lib/rubocop/ast/node/for_node.rb#27 + # source://rubocop-ast/lib/rubocop/ast/node/for_node.rb#27 def void_context?; end end @@ -1452,28 +1467,28 @@ end # The main RuboCop runs in legacy mode; this node is only used # if user `AST::Builder.modernize` or `AST::Builder.emit_lambda=true` # -# source://rubocop-ast//lib/rubocop/ast/node/forward_args_node.rb#23 +# source://rubocop-ast/lib/rubocop/ast/node/forward_args_node.rb#23 class RuboCop::AST::ForwardArgsNode < ::RuboCop::AST::Node include ::RuboCop::AST::CollectionNode # Node wraps itself in an array to be compatible with other # enumerable argument types. # - # source://rubocop-ast//lib/rubocop/ast/node/forward_args_node.rb#28 + # source://rubocop-ast/lib/rubocop/ast/node/forward_args_node.rb#28 def to_a; end end # Common functionality for nodes that can be used as hash elements: # `pair`, `kwsplat` # -# source://rubocop-ast//lib/rubocop/ast/node/mixin/hash_element_node.rb#7 +# source://rubocop-ast/lib/rubocop/ast/node/mixin/hash_element_node.rb#7 module RuboCop::AST::HashElementNode # Returns the delta between this element's delimiter and the argument's. # # @note Pairs with different delimiter styles return a delta of 0 # @return [Integer] the delta between the two delimiters # - # source://rubocop-ast//lib/rubocop/ast/node/mixin/hash_element_node.rb#61 + # source://rubocop-ast/lib/rubocop/ast/node/mixin/hash_element_node.rb#61 def delimiter_delta(other); end # Returns the key of this `hash` element. @@ -1481,7 +1496,7 @@ module RuboCop::AST::HashElementNode # @note For keyword splats, this returns the whole node # @return [Node] the key of the hash element # - # source://rubocop-ast//lib/rubocop/ast/node/mixin/hash_element_node.rb#13 + # source://rubocop-ast/lib/rubocop/ast/node/mixin/hash_element_node.rb#13 def key; end # Returns the delta between this pair's key and the argument pair's. @@ -1491,7 +1506,7 @@ module RuboCop::AST::HashElementNode # @param alignment [Symbol] whether to check the left or right side # @return [Integer] the delta between the two keys # - # source://rubocop-ast//lib/rubocop/ast/node/mixin/hash_element_node.rb#43 + # source://rubocop-ast/lib/rubocop/ast/node/mixin/hash_element_node.rb#43 def key_delta(other, alignment = T.unsafe(nil)); end # Checks whether this `hash` element is on the same line as `other`. @@ -1500,7 +1515,7 @@ module RuboCop::AST::HashElementNode # shares any of its lines with `other` # @return [Boolean] whether this element is on the same line as `other` # - # source://rubocop-ast//lib/rubocop/ast/node/mixin/hash_element_node.rb#32 + # source://rubocop-ast/lib/rubocop/ast/node/mixin/hash_element_node.rb#32 def same_line?(other); end # Returns the value of this `hash` element. @@ -1508,7 +1523,7 @@ module RuboCop::AST::HashElementNode # @note For keyword splats, this returns the whole node # @return [Node] the value of the hash element # - # source://rubocop-ast//lib/rubocop/ast/node/mixin/hash_element_node.rb#22 + # source://rubocop-ast/lib/rubocop/ast/node/mixin/hash_element_node.rb#22 def value; end # Returns the delta between this element's value and the argument's. @@ -1516,53 +1531,53 @@ module RuboCop::AST::HashElementNode # @note Keyword splats always return a delta of 0 # @return [Integer] the delta between the two values # - # source://rubocop-ast//lib/rubocop/ast/node/mixin/hash_element_node.rb#52 + # source://rubocop-ast/lib/rubocop/ast/node/mixin/hash_element_node.rb#52 def value_delta(other); end end # A helper class for comparing the positions of different parts of a # `pair` node. # -# source://rubocop-ast//lib/rubocop/ast/node/mixin/hash_element_node.rb#67 +# source://rubocop-ast/lib/rubocop/ast/node/mixin/hash_element_node.rb#67 class RuboCop::AST::HashElementNode::HashElementDelta # @raise [ArgumentError] # @return [HashElementDelta] a new instance of HashElementDelta # - # source://rubocop-ast//lib/rubocop/ast/node/mixin/hash_element_node.rb#68 + # source://rubocop-ast/lib/rubocop/ast/node/mixin/hash_element_node.rb#68 def initialize(first, second); end - # source://rubocop-ast//lib/rubocop/ast/node/mixin/hash_element_node.rb#89 + # source://rubocop-ast/lib/rubocop/ast/node/mixin/hash_element_node.rb#89 def delimiter_delta; end - # source://rubocop-ast//lib/rubocop/ast/node/mixin/hash_element_node.rb#75 + # source://rubocop-ast/lib/rubocop/ast/node/mixin/hash_element_node.rb#75 def key_delta(alignment = T.unsafe(nil)); end - # source://rubocop-ast//lib/rubocop/ast/node/mixin/hash_element_node.rb#82 + # source://rubocop-ast/lib/rubocop/ast/node/mixin/hash_element_node.rb#82 def value_delta; end private - # source://rubocop-ast//lib/rubocop/ast/node/mixin/hash_element_node.rb#106 + # source://rubocop-ast/lib/rubocop/ast/node/mixin/hash_element_node.rb#106 def delta(first, second, alignment = T.unsafe(nil)); end # Returns the value of attribute first. # - # source://rubocop-ast//lib/rubocop/ast/node/mixin/hash_element_node.rb#98 + # source://rubocop-ast/lib/rubocop/ast/node/mixin/hash_element_node.rb#98 def first; end # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/node/mixin/hash_element_node.rb#117 + # source://rubocop-ast/lib/rubocop/ast/node/mixin/hash_element_node.rb#117 def keyword_splat?; end # Returns the value of attribute second. # - # source://rubocop-ast//lib/rubocop/ast/node/mixin/hash_element_node.rb#98 + # source://rubocop-ast/lib/rubocop/ast/node/mixin/hash_element_node.rb#98 def second; end # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/node/mixin/hash_element_node.rb#100 + # source://rubocop-ast/lib/rubocop/ast/node/mixin/hash_element_node.rb#100 def valid_argument_types?; end end @@ -1570,13 +1585,13 @@ end # node when the builder constructs the AST, making its methods available # to all `hash` nodes within RuboCop. # -# source://rubocop-ast//lib/rubocop/ast/node/hash_node.rb#8 +# source://rubocop-ast/lib/rubocop/ast/node/hash_node.rb#8 class RuboCop::AST::HashNode < ::RuboCop::AST::Node # Checks whether the `hash` literal is delimited by curly braces. # # @return [Boolean] whether the `hash` literal is enclosed in braces # - # source://rubocop-ast//lib/rubocop/ast/node/hash_node.rb#117 + # source://rubocop-ast/lib/rubocop/ast/node/hash_node.rb#117 def braces?; end # Calls the given block for each `key` node in the `hash` literal. @@ -1586,7 +1601,7 @@ class RuboCop::AST::HashNode < ::RuboCop::AST::Node # @return [self] if a block is given # @return [Enumerator] if no block is given # - # source://rubocop-ast//lib/rubocop/ast/node/hash_node.rb#59 + # source://rubocop-ast/lib/rubocop/ast/node/hash_node.rb#59 def each_key(&block); end # Calls the given block for each `pair` node in the `hash` literal. @@ -1596,7 +1611,7 @@ class RuboCop::AST::HashNode < ::RuboCop::AST::Node # @return [self] if a block is given # @return [Enumerator] if no block is given # - # source://rubocop-ast//lib/rubocop/ast/node/hash_node.rb#33 + # source://rubocop-ast/lib/rubocop/ast/node/hash_node.rb#33 def each_pair; end # Calls the given block for each `value` node in the `hash` literal. @@ -1606,7 +1621,7 @@ class RuboCop::AST::HashNode < ::RuboCop::AST::Node # @return [self] if a block is given # @return [Enumerator] if no block is given # - # source://rubocop-ast//lib/rubocop/ast/node/hash_node.rb#83 + # source://rubocop-ast/lib/rubocop/ast/node/hash_node.rb#83 def each_value(&block); end # Checks whether the `hash` node contains any `pair`- or `kwsplat` nodes. @@ -1615,7 +1630,7 @@ class RuboCop::AST::HashNode < ::RuboCop::AST::Node # # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/node/hash_node.rb#22 + # source://rubocop-ast/lib/rubocop/ast/node/hash_node.rb#22 def empty?; end # Returns an array of all the keys in the `hash` literal. @@ -1623,7 +1638,7 @@ class RuboCop::AST::HashNode < ::RuboCop::AST::Node # @note `kwsplat` nodes are ignored. # @return [Array] an array of keys in the `hash` literal # - # source://rubocop-ast//lib/rubocop/ast/node/hash_node.rb#48 + # source://rubocop-ast/lib/rubocop/ast/node/hash_node.rb#48 def keys; end # Checks whether this `hash` uses a mix of hash rocket and colon @@ -1632,7 +1647,7 @@ class RuboCop::AST::HashNode < ::RuboCop::AST::Node # @note `kwsplat` nodes are ignored. # @return [Boolean] whether the `hash` uses mixed delimiters # - # source://rubocop-ast//lib/rubocop/ast/node/hash_node.rb#110 + # source://rubocop-ast/lib/rubocop/ast/node/hash_node.rb#110 def mixed_delimiters?; end # Returns an array of all the key value pairs in the `hash` literal. @@ -1642,7 +1657,7 @@ class RuboCop::AST::HashNode < ::RuboCop::AST::Node # @note this may be different from children as `kwsplat` nodes are # @return [Array] an array of `pair` nodes # - # source://rubocop-ast//lib/rubocop/ast/node/hash_node.rb#15 + # source://rubocop-ast/lib/rubocop/ast/node/hash_node.rb#15 def pairs; end # Checks whether any of the key value pairs in the `hash` literal are on @@ -1653,7 +1668,7 @@ class RuboCop::AST::HashNode < ::RuboCop::AST::Node # @note `kwsplat` nodes are ignored. # @return [Boolean] whether any `pair` nodes are on the same line # - # source://rubocop-ast//lib/rubocop/ast/node/hash_node.rb#100 + # source://rubocop-ast/lib/rubocop/ast/node/hash_node.rb#100 def pairs_on_same_line?; end # Returns an array of all the values in the `hash` literal. @@ -1661,7 +1676,7 @@ class RuboCop::AST::HashNode < ::RuboCop::AST::Node # @note `kwsplat` nodes are ignored. # @return [Array] an array of values in the `hash` literal # - # source://rubocop-ast//lib/rubocop/ast/node/hash_node.rb#72 + # source://rubocop-ast/lib/rubocop/ast/node/hash_node.rb#72 def values; end end @@ -1669,7 +1684,7 @@ end # node when the builder constructs the AST, making its methods available # to all `if` nodes within RuboCop. # -# source://rubocop-ast//lib/rubocop/ast/node/if_node.rb#8 +# source://rubocop-ast/lib/rubocop/ast/node/if_node.rb#8 class RuboCop::AST::IfNode < ::RuboCop::AST::Node include ::RuboCop::AST::ConditionalNode include ::RuboCop::AST::ModifierNode @@ -1678,12 +1693,12 @@ class RuboCop::AST::IfNode < ::RuboCop::AST::Node # # @return [Array] an array of branch nodes # - # source://rubocop-ast//lib/rubocop/ast/node/if_node.rb#147 + # source://rubocop-ast/lib/rubocop/ast/node/if_node.rb#154 def branches; end # @deprecated Use `branches.each` # - # source://rubocop-ast//lib/rubocop/ast/node/if_node.rb#164 + # source://rubocop-ast/lib/rubocop/ast/node/if_node.rb#171 def each_branch(&block); end # Checks whether the `if` node has an `else` clause. @@ -1692,7 +1707,7 @@ class RuboCop::AST::IfNode < ::RuboCop::AST::Node # This is legacy behavior, and many cops rely on it. # @return [Boolean] whether the node has an `else` clause # - # source://rubocop-ast//lib/rubocop/ast/node/if_node.rb#42 + # source://rubocop-ast/lib/rubocop/ast/node/if_node.rb#49 def else?; end # Returns the branch of the `if` node that gets evaluated when its @@ -1702,7 +1717,7 @@ class RuboCop::AST::IfNode < ::RuboCop::AST::Node # @return [Node] the falsey branch node of the `if` node # @return [nil] when there is no else branch # - # source://rubocop-ast//lib/rubocop/ast/node/if_node.rb#126 + # source://rubocop-ast/lib/rubocop/ast/node/if_node.rb#133 def else_branch; end # Checks whether the `if` is an `elsif`. Parser handles these by nesting @@ -1710,7 +1725,7 @@ class RuboCop::AST::IfNode < ::RuboCop::AST::Node # # @return [Boolean] whether the node is an `elsif` # - # source://rubocop-ast//lib/rubocop/ast/node/if_node.rb#32 + # source://rubocop-ast/lib/rubocop/ast/node/if_node.rb#39 def elsif?; end # Checks whether the `if` node has at least one `elsif` branch. Returns @@ -1718,7 +1733,7 @@ class RuboCop::AST::IfNode < ::RuboCop::AST::Node # # @return [Boolean] whether the `if` node has at least one `elsif` branch # - # source://rubocop-ast//lib/rubocop/ast/node/if_node.rb#104 + # source://rubocop-ast/lib/rubocop/ast/node/if_node.rb#111 def elsif_conditional?; end # Checks whether this node is an `if` statement. (This is not true of @@ -1726,7 +1741,7 @@ class RuboCop::AST::IfNode < ::RuboCop::AST::Node # # @return [Boolean] whether the node is an `if` statement # - # source://rubocop-ast//lib/rubocop/ast/node/if_node.rb#16 + # source://rubocop-ast/lib/rubocop/ast/node/if_node.rb#16 def if?; end # Returns the branch of the `if` node that gets evaluated when its @@ -1736,7 +1751,7 @@ class RuboCop::AST::IfNode < ::RuboCop::AST::Node # @return [Node] the truthy branch node of the `if` node # @return [nil] if the truthy branch is empty # - # source://rubocop-ast//lib/rubocop/ast/node/if_node.rb#115 + # source://rubocop-ast/lib/rubocop/ast/node/if_node.rb#122 def if_branch; end # Returns the inverse keyword of the `if` node as a string. Returns `if` @@ -1745,7 +1760,7 @@ class RuboCop::AST::IfNode < ::RuboCop::AST::Node # # @return [String] the inverse keyword of the `if` statement # - # source://rubocop-ast//lib/rubocop/ast/node/if_node.rb#66 + # source://rubocop-ast/lib/rubocop/ast/node/if_node.rb#73 def inverse_keyword; end # Returns the keyword of the `if` statement as a string. Returns an empty @@ -1753,7 +1768,7 @@ class RuboCop::AST::IfNode < ::RuboCop::AST::Node # # @return [String] the keyword of the `if` statement # - # source://rubocop-ast//lib/rubocop/ast/node/if_node.rb#57 + # source://rubocop-ast/lib/rubocop/ast/node/if_node.rb#64 def keyword; end # Checks whether the `if` node is in a modifier form, i.e. a condition @@ -1762,7 +1777,7 @@ class RuboCop::AST::IfNode < ::RuboCop::AST::Node # # @return [Boolean] whether the `if` node is a modifier # - # source://rubocop-ast//lib/rubocop/ast/node/if_node.rb#80 + # source://rubocop-ast/lib/rubocop/ast/node/if_node.rb#87 def modifier_form?; end # Checks whether the `if` node has nested `if` nodes in any of its @@ -1771,7 +1786,7 @@ class RuboCop::AST::IfNode < ::RuboCop::AST::Node # @note This performs a shallow search. # @return [Boolean] whether the `if` node contains nested conditionals # - # source://rubocop-ast//lib/rubocop/ast/node/if_node.rb#90 + # source://rubocop-ast/lib/rubocop/ast/node/if_node.rb#97 def nested_conditional?; end # Custom destructuring method. This is used to normalize the branches @@ -1779,22 +1794,29 @@ class RuboCop::AST::IfNode < ::RuboCop::AST::Node # # @return [Array] the different parts of the `if` statement # - # source://rubocop-ast//lib/rubocop/ast/node/if_node.rb#134 + # source://rubocop-ast/lib/rubocop/ast/node/if_node.rb#141 def node_parts; end # Checks whether the `if` node is a ternary operator. # # @return [Boolean] whether the `if` node is a ternary operator # - # source://rubocop-ast//lib/rubocop/ast/node/if_node.rb#49 + # source://rubocop-ast/lib/rubocop/ast/node/if_node.rb#56 def ternary?; end + # Checks whether the `if` node has an `then` clause. + # + # @return [Boolean] whether the node has an `then` clause + # + # source://rubocop-ast/lib/rubocop/ast/node/if_node.rb#31 + def then?; end + # Checks whether this node is an `unless` statement. (This is not true # of ternary operators and `if` statements.) # # @return [Boolean] whether the node is an `unless` statement # - # source://rubocop-ast//lib/rubocop/ast/node/if_node.rb#24 + # source://rubocop-ast/lib/rubocop/ast/node/if_node.rb#24 def unless?; end end @@ -1802,34 +1824,34 @@ end # node when the builder constructs the AST, making its methods available # to all `in` nodes within RuboCop. # -# source://rubocop-ast//lib/rubocop/ast/node/in_pattern_node.rb#8 +# source://rubocop-ast/lib/rubocop/ast/node/in_pattern_node.rb#8 class RuboCop::AST::InPatternNode < ::RuboCop::AST::Node # Returns the body of the `in` node. # # @return [Node, nil] the body of the `in` node # - # source://rubocop-ast//lib/rubocop/ast/node/in_pattern_node.rb#33 + # source://rubocop-ast/lib/rubocop/ast/node/in_pattern_node.rb#33 def body; end # Returns the index of the `in` branch within the `case` statement. # # @return [Integer] the index of the `in` branch # - # source://rubocop-ast//lib/rubocop/ast/node/in_pattern_node.rb#19 + # source://rubocop-ast/lib/rubocop/ast/node/in_pattern_node.rb#19 def branch_index; end # Returns a node of the pattern in the `in` branch. # # @return [Node] a pattern node # - # source://rubocop-ast//lib/rubocop/ast/node/in_pattern_node.rb#12 + # source://rubocop-ast/lib/rubocop/ast/node/in_pattern_node.rb#12 def pattern; end # Checks whether the `in` node has a `then` keyword. # # @return [Boolean] whether the `in` node has a `then` keyword # - # source://rubocop-ast//lib/rubocop/ast/node/in_pattern_node.rb#26 + # source://rubocop-ast/lib/rubocop/ast/node/in_pattern_node.rb#26 def then?; end end @@ -1848,7 +1870,7 @@ end # The main RuboCop runs in legacy mode; this node is only used # if user `AST::Builder.modernize` or `AST::Builder.emit_index=true` # -# source://rubocop-ast//lib/rubocop/ast/node/index_node.rb#19 +# source://rubocop-ast/lib/rubocop/ast/node/index_node.rb#19 class RuboCop::AST::IndexNode < ::RuboCop::AST::Node include ::RuboCop::AST::ParameterizedNode include ::RuboCop::AST::ParameterizedNode::RestArguments @@ -1859,19 +1881,19 @@ class RuboCop::AST::IndexNode < ::RuboCop::AST::Node # # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/node/index_node.rb#29 + # source://rubocop-ast/lib/rubocop/ast/node/index_node.rb#29 def assignment_method?; end # For similarity with legacy mode # # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/node/index_node.rb#24 + # source://rubocop-ast/lib/rubocop/ast/node/index_node.rb#24 def attribute_accessor?; end # For similarity with legacy mode # - # source://rubocop-ast//lib/rubocop/ast/node/index_node.rb#34 + # source://rubocop-ast/lib/rubocop/ast/node/index_node.rb#34 def method_name; end private @@ -1880,7 +1902,7 @@ class RuboCop::AST::IndexNode < ::RuboCop::AST::Node # # @return [Array] the arguments of the dispatched method # - # source://rubocop-ast//lib/rubocop/ast/node/index_node.rb#43 + # source://rubocop-ast/lib/rubocop/ast/node/index_node.rb#43 def first_argument_index; end end @@ -1901,7 +1923,7 @@ end # The main RuboCop runs in legacy mode; this node is only used # if user `AST::Builder.modernize` or `AST::Builder.emit_index=true` # -# source://rubocop-ast//lib/rubocop/ast/node/indexasgn_node.rb#21 +# source://rubocop-ast/lib/rubocop/ast/node/indexasgn_node.rb#21 class RuboCop::AST::IndexasgnNode < ::RuboCop::AST::Node include ::RuboCop::AST::ParameterizedNode include ::RuboCop::AST::ParameterizedNode::RestArguments @@ -1912,19 +1934,19 @@ class RuboCop::AST::IndexasgnNode < ::RuboCop::AST::Node # # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/node/indexasgn_node.rb#31 + # source://rubocop-ast/lib/rubocop/ast/node/indexasgn_node.rb#31 def assignment_method?; end # For similarity with legacy mode # # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/node/indexasgn_node.rb#26 + # source://rubocop-ast/lib/rubocop/ast/node/indexasgn_node.rb#26 def attribute_accessor?; end # For similarity with legacy mode # - # source://rubocop-ast//lib/rubocop/ast/node/indexasgn_node.rb#36 + # source://rubocop-ast/lib/rubocop/ast/node/indexasgn_node.rb#36 def method_name; end private @@ -1933,7 +1955,7 @@ class RuboCop::AST::IndexasgnNode < ::RuboCop::AST::Node # # @return [Array] the arguments of the dispatched method # - # source://rubocop-ast//lib/rubocop/ast/node/indexasgn_node.rb#45 + # source://rubocop-ast/lib/rubocop/ast/node/indexasgn_node.rb#45 def first_argument_index; end end @@ -1941,17 +1963,46 @@ end # node when the builder constructs the AST, making its methods available to # all `int` nodes within RuboCop. # -# source://rubocop-ast//lib/rubocop/ast/node/int_node.rb#8 +# source://rubocop-ast/lib/rubocop/ast/node/int_node.rb#8 class RuboCop::AST::IntNode < ::RuboCop::AST::Node include ::RuboCop::AST::BasicLiteralNode include ::RuboCop::AST::NumericNode end +# A node extension for `kwbegin` nodes. This will be used in place of a plain +# node when the builder constructs the AST, making its methods available +# to all `kwbegin` nodes within RuboCop. +# +# source://rubocop-ast/lib/rubocop/ast/node/keyword_begin_node.rb#8 +class RuboCop::AST::KeywordBeginNode < ::RuboCop::AST::Node + # Returns the body of the `kwbegin` block. Returns `self` if the `kwbegin` contains + # multiple nodes. + # + # @return [Node, nil] The body of the `kwbegin`. + # + # source://rubocop-ast/lib/rubocop/ast/node/keyword_begin_node.rb#13 + def body; end + + # Returns the `rescue` node of the `kwbegin` block, if one is present. + # + # @return [Node, nil] The `rescue` node within `kwbegin`. + # + # source://rubocop-ast/lib/rubocop/ast/node/keyword_begin_node.rb#30 + def ensure_node; end + + # Returns the `rescue` node of the `kwbegin` block, if one is present. + # + # @return [Node, nil] The `rescue` node within `kwbegin`. + # + # source://rubocop-ast/lib/rubocop/ast/node/keyword_begin_node.rb#37 + def rescue_node; end +end + # A node extension for `kwsplat` and `forwarded_kwrestarg` nodes. This will be used in # place of a plain node when the builder constructs the AST, making its methods available to # all `kwsplat` and `forwarded_kwrestarg` nodes within RuboCop. # -# source://rubocop-ast//lib/rubocop/ast/node/keyword_splat_node.rb#8 +# source://rubocop-ast/lib/rubocop/ast/node/keyword_splat_node.rb#8 class RuboCop::AST::KeywordSplatNode < ::RuboCop::AST::Node include ::RuboCop::AST::HashElementNode @@ -1960,7 +2011,7 @@ class RuboCop::AST::KeywordSplatNode < ::RuboCop::AST::Node # # @return [false] # - # source://rubocop-ast//lib/rubocop/ast/node/keyword_splat_node.rb#26 + # source://rubocop-ast/lib/rubocop/ast/node/keyword_splat_node.rb#26 def colon?; end # This is used for duck typing with `pair` nodes which also appear as @@ -1968,14 +2019,14 @@ class RuboCop::AST::KeywordSplatNode < ::RuboCop::AST::Node # # @return [false] # - # source://rubocop-ast//lib/rubocop/ast/node/keyword_splat_node.rb#18 + # source://rubocop-ast/lib/rubocop/ast/node/keyword_splat_node.rb#18 def hash_rocket?; end # This provides `forwarded_kwrestarg` node to return true to be compatible with `kwsplat` node. # # @return [true] # - # source://rubocop-ast//lib/rubocop/ast/node/keyword_splat_node.rb#48 + # source://rubocop-ast/lib/rubocop/ast/node/keyword_splat_node.rb#48 def kwsplat_type?; end # Custom destructuring method. This is used to normalize the branches @@ -1983,18 +2034,18 @@ class RuboCop::AST::KeywordSplatNode < ::RuboCop::AST::Node # # @return [Array] the different parts of the `kwsplat` # - # source://rubocop-ast//lib/rubocop/ast/node/keyword_splat_node.rb#41 + # source://rubocop-ast/lib/rubocop/ast/node/keyword_splat_node.rb#41 def node_parts; end # Returns the operator for the `kwsplat` as a string. # # @return [String] the double splat operator # - # source://rubocop-ast//lib/rubocop/ast/node/keyword_splat_node.rb#33 + # source://rubocop-ast/lib/rubocop/ast/node/keyword_splat_node.rb#33 def operator; end end -# source://rubocop-ast//lib/rubocop/ast/node/keyword_splat_node.rb#11 +# source://rubocop-ast/lib/rubocop/ast/node/keyword_splat_node.rb#11 RuboCop::AST::KeywordSplatNode::DOUBLE_SPLAT = T.let(T.unsafe(nil), String) # Used for modern support only: @@ -2016,7 +2067,7 @@ RuboCop::AST::KeywordSplatNode::DOUBLE_SPLAT = T.let(T.unsafe(nil), String) # The main RuboCop runs in legacy mode; this node is only used # if user `AST::Builder.modernize` or `AST::Builder.emit_lambda=true` # -# source://rubocop-ast//lib/rubocop/ast/node/lambda_node.rb#23 +# source://rubocop-ast/lib/rubocop/ast/node/lambda_node.rb#23 class RuboCop::AST::LambdaNode < ::RuboCop::AST::Node include ::RuboCop::AST::ParameterizedNode include ::RuboCop::AST::ParameterizedNode::RestArguments @@ -2027,45 +2078,45 @@ class RuboCop::AST::LambdaNode < ::RuboCop::AST::Node # # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/node/lambda_node.rb#43 + # source://rubocop-ast/lib/rubocop/ast/node/lambda_node.rb#43 def assignment_method?; end # For similarity with legacy mode # # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/node/lambda_node.rb#38 + # source://rubocop-ast/lib/rubocop/ast/node/lambda_node.rb#38 def attribute_accessor?; end # For similarity with legacy mode # # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/node/lambda_node.rb#28 + # source://rubocop-ast/lib/rubocop/ast/node/lambda_node.rb#28 def lambda?; end # For similarity with legacy mode # # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/node/lambda_node.rb#33 + # source://rubocop-ast/lib/rubocop/ast/node/lambda_node.rb#33 def lambda_literal?; end # For similarity with legacy mode # - # source://rubocop-ast//lib/rubocop/ast/node/lambda_node.rb#53 + # source://rubocop-ast/lib/rubocop/ast/node/lambda_node.rb#53 def method_name; end # For similarity with legacy mode # - # source://rubocop-ast//lib/rubocop/ast/node/lambda_node.rb#48 + # source://rubocop-ast/lib/rubocop/ast/node/lambda_node.rb#48 def receiver; end private # For similarity with legacy mode # - # source://rubocop-ast//lib/rubocop/ast/node/lambda_node.rb#60 + # source://rubocop-ast/lib/rubocop/ast/node/lambda_node.rb#60 def first_argument_index; end end @@ -2073,11 +2124,11 @@ end # 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 +# 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 + # 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 @@ -2089,17 +2140,17 @@ class RuboCop::AST::MasgnNode < ::RuboCop::AST::Node # # @return [Node] the right hand side of a multiple assignment. # - # source://rubocop-ast//lib/rubocop/ast/node/masgn_node.rb#39 + # 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 + # 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 + # 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 @@ -2111,7 +2162,7 @@ class RuboCop::AST::MasgnNode < ::RuboCop::AST::Node # # @return [Node] the right hand side of a multiple assignment. # - # source://rubocop-ast//lib/rubocop/ast/node/masgn_node.rb#39 + # source://rubocop-ast/lib/rubocop/ast/node/masgn_node.rb#39 def rhs; end # In contrast to `expression`, `values` always returns a Ruby array @@ -2123,14 +2174,14 @@ class RuboCop::AST::MasgnNode < ::RuboCop::AST::Node # # @return [Array] individual values being assigned on the RHS of the multiple assignment # - # source://rubocop-ast//lib/rubocop/ast/node/masgn_node.rb#52 + # 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 + # source://rubocop-ast/lib/rubocop/ast/node/masgn_node.rb#58 def multiple_rhs?; end end @@ -2138,7 +2189,7 @@ end # `send`, `csend`, `super`, `zsuper`, `yield`, `defined?`, # and (modern only): `index`, `indexasgn`, `lambda` # -# source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#8 +# source://rubocop-ast/lib/rubocop/ast/node/mixin/method_dispatch_node.rb#8 module RuboCop::AST::MethodDispatchNode include ::RuboCop::AST::MethodIdentifierPredicates extend ::RuboCop::AST::NodePattern::Macros @@ -2147,10 +2198,10 @@ module RuboCop::AST::MethodDispatchNode # # @return [Boolean] whether the dispatched method is an access modifier # - # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#64 + # source://rubocop-ast/lib/rubocop/ast/node/mixin/method_dispatch_node.rb#64 def access_modifier?; end - # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#273 + # source://rubocop-ast/lib/rubocop/ast/node/mixin/method_dispatch_node.rb#273 def adjacent_def_modifier?(param0 = T.unsafe(nil)); end # Checks whether this node is an arithmetic operation @@ -2158,14 +2209,14 @@ module RuboCop::AST::MethodDispatchNode # @return [Boolean] whether the dispatched method is an arithmetic # operation # - # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#175 + # source://rubocop-ast/lib/rubocop/ast/node/mixin/method_dispatch_node.rb#175 def arithmetic_operation?; end # Checks whether the dispatched method is a setter method. # # @return [Boolean] whether the dispatched method is a setter # - # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#107 + # source://rubocop-ast/lib/rubocop/ast/node/mixin/method_dispatch_node.rb#107 def assignment?; end # Checks whether the dispatched method is a bare access modifier that @@ -2174,10 +2225,10 @@ module RuboCop::AST::MethodDispatchNode # @return [Boolean] whether the dispatched method is a bare # access modifier # - # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#73 + # source://rubocop-ast/lib/rubocop/ast/node/mixin/method_dispatch_node.rb#73 def bare_access_modifier?; end - # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#278 + # source://rubocop-ast/lib/rubocop/ast/node/mixin/method_dispatch_node.rb#278 def bare_access_modifier_declaration?(param0 = T.unsafe(nil)); end # Checks whether this is a binary operation. @@ -2187,14 +2238,14 @@ module RuboCop::AST::MethodDispatchNode # foo + bar # @return [Boolean] whether this method is a binary operation # - # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#248 + # source://rubocop-ast/lib/rubocop/ast/node/mixin/method_dispatch_node.rb#248 def binary_operation?; end # Whether this method dispatch has an explicit block. # # @return [Boolean] whether the dispatched method has a block # - # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#167 + # source://rubocop-ast/lib/rubocop/ast/node/mixin/method_dispatch_node.rb#167 def block_literal?; end # The `block` or `numblock` node associated with this method dispatch, if any. @@ -2202,7 +2253,7 @@ module RuboCop::AST::MethodDispatchNode # @return [BlockNode, nil] the `block` or `numblock` node associated with this method # call or `nil` # - # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#46 + # source://rubocop-ast/lib/rubocop/ast/node/mixin/method_dispatch_node.rb#46 def block_node; end # Checks whether the name of the dispatched method matches the argument @@ -2211,7 +2262,7 @@ module RuboCop::AST::MethodDispatchNode # @param name [Symbol, String] the method name to check for # @return [Boolean] whether the method name matches the argument # - # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#100 + # source://rubocop-ast/lib/rubocop/ast/node/mixin/method_dispatch_node.rb#100 def command?(name); end # Checks whether the *explicit* receiver of this method dispatch is a @@ -2220,7 +2271,7 @@ module RuboCop::AST::MethodDispatchNode # @return [Boolean] whether the receiver of this method dispatch # is a `const` node # - # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#152 + # source://rubocop-ast/lib/rubocop/ast/node/mixin/method_dispatch_node.rb#152 def const_receiver?; end # Checks if this node is part of a chain of `def` or `defs` modifiers. @@ -2232,7 +2283,7 @@ module RuboCop::AST::MethodDispatchNode # private def foo; end # @return [Node | nil] returns the `def|defs` node this is a modifier for, # - # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#199 + # source://rubocop-ast/lib/rubocop/ast/node/mixin/method_dispatch_node.rb#199 def def_modifier(node = T.unsafe(nil)); end # Checks if this node is part of a chain of `def` or `defs` modifiers. @@ -2244,7 +2295,7 @@ module RuboCop::AST::MethodDispatchNode # private def foo; end # @return [Boolean] whether the `def|defs` node is a modifier or not. # - # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#187 + # source://rubocop-ast/lib/rubocop/ast/node/mixin/method_dispatch_node.rb#187 def def_modifier?(node = T.unsafe(nil)); end # Checks whether the dispatched method uses a dot to connect the @@ -2255,7 +2306,7 @@ module RuboCop::AST::MethodDispatchNode # # @return [Boolean] whether the method was called with a connecting dot # - # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#119 + # source://rubocop-ast/lib/rubocop/ast/node/mixin/method_dispatch_node.rb#119 def dot?; end # Checks whether the dispatched method uses a double colon to connect the @@ -2263,7 +2314,7 @@ module RuboCop::AST::MethodDispatchNode # # @return [Boolean] whether the method was called with a connecting dot # - # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#127 + # source://rubocop-ast/lib/rubocop/ast/node/mixin/method_dispatch_node.rb#127 def double_colon?; end # Checks whether the method dispatch is the implicit form of `#call`, @@ -2271,10 +2322,10 @@ module RuboCop::AST::MethodDispatchNode # # @return [Boolean] whether the method is the implicit form of `#call` # - # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#160 + # source://rubocop-ast/lib/rubocop/ast/node/mixin/method_dispatch_node.rb#160 def implicit_call?; end - # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#257 + # source://rubocop-ast/lib/rubocop/ast/node/mixin/method_dispatch_node.rb#257 def in_macro_scope?(param0 = T.unsafe(nil)); end # Checks whether this is a lambda. Some versions of parser parses @@ -2282,7 +2333,7 @@ module RuboCop::AST::MethodDispatchNode # # @return [Boolean] whether this method is a lambda # - # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#213 + # source://rubocop-ast/lib/rubocop/ast/node/mixin/method_dispatch_node.rb#213 def lambda?; end # Checks whether this is a lambda literal (stabby lambda.) @@ -2292,7 +2343,7 @@ module RuboCop::AST::MethodDispatchNode # -> (foo) { bar } # @return [Boolean] whether this method is a lambda literal # - # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#224 + # source://rubocop-ast/lib/rubocop/ast/node/mixin/method_dispatch_node.rb#224 def lambda_literal?; end # Checks whether the dispatched method is a macro method. A macro method @@ -2302,14 +2353,14 @@ module RuboCop::AST::MethodDispatchNode # @note This does not include DSLs that use nested blocks, like RSpec # @return [Boolean] whether the dispatched method is a macro method # - # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#57 + # source://rubocop-ast/lib/rubocop/ast/node/mixin/method_dispatch_node.rb#57 def macro?; end # The name of the dispatched method as a symbol. # # @return [Symbol] the name of the dispatched method # - # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#27 + # source://rubocop-ast/lib/rubocop/ast/node/mixin/method_dispatch_node.rb#27 def method_name; end # Checks whether the dispatched method is a non-bare access modifier that @@ -2318,17 +2369,17 @@ module RuboCop::AST::MethodDispatchNode # @return [Boolean] whether the dispatched method is a non-bare # access modifier # - # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#82 + # source://rubocop-ast/lib/rubocop/ast/node/mixin/method_dispatch_node.rb#82 def non_bare_access_modifier?; end - # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#283 + # source://rubocop-ast/lib/rubocop/ast/node/mixin/method_dispatch_node.rb#283 def non_bare_access_modifier_declaration?(param0 = T.unsafe(nil)); end # The receiving node of the method dispatch. # # @return [Node, nil] the receiver of the dispatched method or `nil` # - # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#20 + # source://rubocop-ast/lib/rubocop/ast/node/mixin/method_dispatch_node.rb#20 def receiver; end # Checks whether the dispatched method uses a safe navigation operator to @@ -2336,14 +2387,14 @@ module RuboCop::AST::MethodDispatchNode # # @return [Boolean] whether the method was called with a connecting dot # - # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#135 + # source://rubocop-ast/lib/rubocop/ast/node/mixin/method_dispatch_node.rb#135 def safe_navigation?; end # The source range for the method name or keyword that dispatches this call. # # @return [Parser::Source::Range] the source range for the method name or keyword # - # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#34 + # source://rubocop-ast/lib/rubocop/ast/node/mixin/method_dispatch_node.rb#34 def selector; end # Checks whether the *explicit* receiver of this method dispatch is @@ -2351,14 +2402,14 @@ module RuboCop::AST::MethodDispatchNode # # @return [Boolean] whether the receiver of this method dispatch is `self` # - # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#143 + # source://rubocop-ast/lib/rubocop/ast/node/mixin/method_dispatch_node.rb#143 def self_receiver?; end # Checks whether the dispatched method is a setter method. # # @return [Boolean] whether the dispatched method is a setter # - # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#107 + # source://rubocop-ast/lib/rubocop/ast/node/mixin/method_dispatch_node.rb#107 def setter_method?; end # Checks whether the dispatched method is a bare `private` or `protected` @@ -2367,7 +2418,7 @@ module RuboCop::AST::MethodDispatchNode # @return [Boolean] whether the dispatched method is a bare # `private` or `protected` access modifier # - # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#91 + # source://rubocop-ast/lib/rubocop/ast/node/mixin/method_dispatch_node.rb#91 def special_modifier?; end # Checks whether this is a unary operation. @@ -2377,14 +2428,14 @@ module RuboCop::AST::MethodDispatchNode # -foo # @return [Boolean] whether this method is a unary operation # - # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#235 + # source://rubocop-ast/lib/rubocop/ast/node/mixin/method_dispatch_node.rb#235 def unary_operation?; end end -# source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#12 +# source://rubocop-ast/lib/rubocop/ast/node/mixin/method_dispatch_node.rb#12 RuboCop::AST::MethodDispatchNode::ARITHMETIC_OPERATORS = T.let(T.unsafe(nil), Array) -# source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#14 +# source://rubocop-ast/lib/rubocop/ast/node/mixin/method_dispatch_node.rb#14 RuboCop::AST::MethodDispatchNode::SPECIAL_MODIFIERS = T.let(T.unsafe(nil), Array) # Common predicates for nodes that reference method identifiers: @@ -2392,20 +2443,20 @@ RuboCop::AST::MethodDispatchNode::SPECIAL_MODIFIERS = T.let(T.unsafe(nil), Array # # @note this mixin expects `#method_name` and `#receiver` to be implemented # -# source://rubocop-ast//lib/rubocop/ast/node/mixin/method_identifier_predicates.rb#9 +# source://rubocop-ast/lib/rubocop/ast/node/mixin/method_identifier_predicates.rb#9 module RuboCop::AST::MethodIdentifierPredicates # Checks whether the method is an assignment method. # # @return [Boolean] whether the method is an assignment # - # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_identifier_predicates.rb#142 + # source://rubocop-ast/lib/rubocop/ast/node/mixin/method_identifier_predicates.rb#142 def assignment_method?; end # Checks whether the method is a bang method. # # @return [Boolean] whether the method is a bang method # - # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_identifier_predicates.rb#171 + # source://rubocop-ast/lib/rubocop/ast/node/mixin/method_identifier_predicates.rb#171 def bang_method?; end # Checks whether the method is a camel case method, @@ -2413,35 +2464,35 @@ module RuboCop::AST::MethodIdentifierPredicates # # @return [Boolean] whether the method is a camel case method # - # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_identifier_predicates.rb#179 + # source://rubocop-ast/lib/rubocop/ast/node/mixin/method_identifier_predicates.rb#179 def camel_case_method?; end # Checks whether the method is a comparison method. # # @return [Boolean] whether the method is a comparison # - # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_identifier_predicates.rb#135 + # source://rubocop-ast/lib/rubocop/ast/node/mixin/method_identifier_predicates.rb#135 def comparison_method?; end # Checks whether the *explicit* receiver of node is a `const` node. # # @return [Boolean] whether the receiver of this node is a `const` node # - # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_identifier_predicates.rb#193 + # source://rubocop-ast/lib/rubocop/ast/node/mixin/method_identifier_predicates.rb#193 def const_receiver?; end # Checks whether the method is an Enumerable method. # # @return [Boolean] whether the method is an Enumerable method # - # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_identifier_predicates.rb#157 + # source://rubocop-ast/lib/rubocop/ast/node/mixin/method_identifier_predicates.rb#157 def enumerable_method?; end # Checks whether the method is an enumerator method. # # @return [Boolean] whether the method is an enumerator # - # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_identifier_predicates.rb#149 + # source://rubocop-ast/lib/rubocop/ast/node/mixin/method_identifier_predicates.rb#149 def enumerator_method?; end # Checks whether the method name matches the argument. @@ -2449,150 +2500,151 @@ module RuboCop::AST::MethodIdentifierPredicates # @param name [Symbol, String] the method name to check for # @return [Boolean] whether the method name matches the argument # - # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_identifier_predicates.rb#79 + # source://rubocop-ast/lib/rubocop/ast/node/mixin/method_identifier_predicates.rb#79 def method?(name); end # Checks whether this is a negation method, i.e. `!` or keyword `not`. # # @return [Boolean] whether this method is a negation method # - # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_identifier_predicates.rb#200 + # source://rubocop-ast/lib/rubocop/ast/node/mixin/method_identifier_predicates.rb#200 def negation_method?; end # Checks whether the method is a nonmutating Array method. # # @return [Boolean] whether the method is a nonmutating Array method # - # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_identifier_predicates.rb#114 + # source://rubocop-ast/lib/rubocop/ast/node/mixin/method_identifier_predicates.rb#114 def nonmutating_array_method?; end # Checks whether the method is a nonmutating binary operator method. # # @return [Boolean] whether the method is a nonmutating binary operator method # - # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_identifier_predicates.rb#93 + # source://rubocop-ast/lib/rubocop/ast/node/mixin/method_identifier_predicates.rb#93 def nonmutating_binary_operator_method?; end # Checks whether the method is a nonmutating Hash method. # # @return [Boolean] whether the method is a nonmutating Hash method # - # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_identifier_predicates.rb#121 + # source://rubocop-ast/lib/rubocop/ast/node/mixin/method_identifier_predicates.rb#121 def nonmutating_hash_method?; end # Checks whether the method is a nonmutating operator method. # # @return [Boolean] whether the method is a nonmutating operator method # - # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_identifier_predicates.rb#107 + # source://rubocop-ast/lib/rubocop/ast/node/mixin/method_identifier_predicates.rb#107 def nonmutating_operator_method?; end # Checks whether the method is a nonmutating String method. # # @return [Boolean] whether the method is a nonmutating String method # - # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_identifier_predicates.rb#128 + # source://rubocop-ast/lib/rubocop/ast/node/mixin/method_identifier_predicates.rb#128 def nonmutating_string_method?; end # Checks whether the method is a nonmutating unary operator method. # # @return [Boolean] whether the method is a nonmutating unary operator method # - # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_identifier_predicates.rb#100 + # source://rubocop-ast/lib/rubocop/ast/node/mixin/method_identifier_predicates.rb#100 def nonmutating_unary_operator_method?; end # Checks whether the method is an operator method. # # @return [Boolean] whether the method is an operator # - # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_identifier_predicates.rb#86 + # source://rubocop-ast/lib/rubocop/ast/node/mixin/method_identifier_predicates.rb#86 def operator_method?; end # Checks whether the method is a predicate method. # # @return [Boolean] whether the method is a predicate method # - # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_identifier_predicates.rb#164 + # source://rubocop-ast/lib/rubocop/ast/node/mixin/method_identifier_predicates.rb#164 def predicate_method?; end # Checks whether this is a prefix bang method, e.g. `!foo`. # # @return [Boolean] whether this method is a prefix bang # - # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_identifier_predicates.rb#214 + # source://rubocop-ast/lib/rubocop/ast/node/mixin/method_identifier_predicates.rb#214 def prefix_bang?; end # Checks whether this is a prefix not method, e.g. `not foo`. # # @return [Boolean] whether this method is a prefix not # - # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_identifier_predicates.rb#207 + # source://rubocop-ast/lib/rubocop/ast/node/mixin/method_identifier_predicates.rb#207 def prefix_not?; end # Checks whether the *explicit* receiver of this node is `self`. # # @return [Boolean] whether the receiver of this node is `self` # - # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_identifier_predicates.rb#186 + # source://rubocop-ast/lib/rubocop/ast/node/mixin/method_identifier_predicates.rb#186 def self_receiver?; end end -# source://rubocop-ast//lib/rubocop/ast/node/mixin/method_identifier_predicates.rb#16 +# source://rubocop-ast/lib/rubocop/ast/node/mixin/method_identifier_predicates.rb#16 RuboCop::AST::MethodIdentifierPredicates::ENUMERABLE_METHODS = T.let(T.unsafe(nil), Set) -# source://rubocop-ast//lib/rubocop/ast/node/mixin/method_identifier_predicates.rb#10 +# source://rubocop-ast/lib/rubocop/ast/node/mixin/method_identifier_predicates.rb#10 RuboCop::AST::MethodIdentifierPredicates::ENUMERATOR_METHODS = T.let(T.unsafe(nil), Set) -# source://rubocop-ast//lib/rubocop/ast/node/mixin/method_identifier_predicates.rb#32 +# source://rubocop-ast/lib/rubocop/ast/node/mixin/method_identifier_predicates.rb#32 RuboCop::AST::MethodIdentifierPredicates::NONMUTATING_ARRAY_METHODS = T.let(T.unsafe(nil), Set) -# source://rubocop-ast//lib/rubocop/ast/node/mixin/method_identifier_predicates.rb#24 +# source://rubocop-ast/lib/rubocop/ast/node/mixin/method_identifier_predicates.rb#24 RuboCop::AST::MethodIdentifierPredicates::NONMUTATING_BINARY_OPERATOR_METHODS = T.let(T.unsafe(nil), Set) -# source://rubocop-ast//lib/rubocop/ast/node/mixin/method_identifier_predicates.rb#48 +# source://rubocop-ast/lib/rubocop/ast/node/mixin/method_identifier_predicates.rb#48 RuboCop::AST::MethodIdentifierPredicates::NONMUTATING_HASH_METHODS = T.let(T.unsafe(nil), Set) -# source://rubocop-ast//lib/rubocop/ast/node/mixin/method_identifier_predicates.rb#28 +# source://rubocop-ast/lib/rubocop/ast/node/mixin/method_identifier_predicates.rb#28 RuboCop::AST::MethodIdentifierPredicates::NONMUTATING_OPERATOR_METHODS = T.let(T.unsafe(nil), Set) -# source://rubocop-ast//lib/rubocop/ast/node/mixin/method_identifier_predicates.rb#59 +# source://rubocop-ast/lib/rubocop/ast/node/mixin/method_identifier_predicates.rb#59 RuboCop::AST::MethodIdentifierPredicates::NONMUTATING_STRING_METHODS = T.let(T.unsafe(nil), Set) -# source://rubocop-ast//lib/rubocop/ast/node/mixin/method_identifier_predicates.rb#26 +# source://rubocop-ast/lib/rubocop/ast/node/mixin/method_identifier_predicates.rb#26 RuboCop::AST::MethodIdentifierPredicates::NONMUTATING_UNARY_OPERATOR_METHODS = T.let(T.unsafe(nil), Set) # http://phrogz.net/programmingruby/language.html#table_18.4 # -# source://rubocop-ast//lib/rubocop/ast/node/mixin/method_identifier_predicates.rb#20 +# 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 +# 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], ... =`. + # but can also be `send` nodes in case of `foo.bar, ... =` or `foo[:bar], ... =`, + # or a `splat` node for `*, ... =`. # # @return [Array] the assignment nodes of the multiple assignment LHS # - # source://rubocop-ast//lib/rubocop/ast/node/mlhs_node.rb#14 + # source://rubocop-ast/lib/rubocop/ast/node/mlhs_node.rb#15 def assignments; end end # Common functionality for nodes that can be used as modifiers: # `if`, `while`, `until` # -# source://rubocop-ast//lib/rubocop/ast/node/mixin/modifier_node.rb#7 +# source://rubocop-ast/lib/rubocop/ast/node/mixin/modifier_node.rb#7 module RuboCop::AST::ModifierNode # Checks whether the node is in a modifier form, i.e. a condition # trailing behind an expression. # # @return [Boolean] whether the node is a modifier # - # source://rubocop-ast//lib/rubocop/ast/node/mixin/modifier_node.rb#12 + # source://rubocop-ast/lib/rubocop/ast/node/mixin/modifier_node.rb#12 def modifier_form?; end end @@ -2600,20 +2652,20 @@ end # plain node when the builder constructs the AST, making its methods # available to all `module` nodes within RuboCop. # -# source://rubocop-ast//lib/rubocop/ast/node/module_node.rb#8 +# source://rubocop-ast/lib/rubocop/ast/node/module_node.rb#8 class RuboCop::AST::ModuleNode < ::RuboCop::AST::Node # The body of this `module` node. # # @return [Node, nil] the body of the module # - # source://rubocop-ast//lib/rubocop/ast/node/module_node.rb#19 + # source://rubocop-ast/lib/rubocop/ast/node/module_node.rb#19 def body; end # The identifier for this `module` node. # # @return [Node] the identifier of the module # - # source://rubocop-ast//lib/rubocop/ast/node/module_node.rb#12 + # source://rubocop-ast/lib/rubocop/ast/node/module_node.rb#12 def identifier; end end @@ -2621,7 +2673,7 @@ end # plain node when the builder constructs the AST, making its methods # available to all `next` nodes within RuboCop. # -# source://rubocop-ast//lib/rubocop/ast/node/next_node.rb#8 +# source://rubocop-ast/lib/rubocop/ast/node/next_node.rb#8 class RuboCop::AST::NextNode < ::RuboCop::AST::Node include ::RuboCop::AST::ParameterizedNode include ::RuboCop::AST::ParameterizedNode::WrappedArguments @@ -2643,7 +2695,7 @@ end # # Find the first lvar node under the receiver node. # lvar_node = node.each_descendant.find(&:lvar_type?) # -# source://rubocop-ast//lib/rubocop/ast/node.rb#21 +# source://rubocop-ast/lib/rubocop/ast/node.rb#21 class RuboCop::AST::Node < ::Parser::AST::Node include ::RuboCop::AST::Sexp include ::RuboCop::AST::Descendence @@ -2652,19 +2704,19 @@ class RuboCop::AST::Node < ::Parser::AST::Node # @return [Node] a new instance of Node # @see https://www.rubydoc.info/gems/ast/AST/Node:initialize # - # source://rubocop-ast//lib/rubocop/ast/node.rb#113 + # source://rubocop-ast/lib/rubocop/ast/node.rb#141 def initialize(type, children = T.unsafe(nil), properties = T.unsafe(nil)); end - # source://rubocop-ast//lib/rubocop/ast/node.rb#132 + # source://rubocop-ast/lib/rubocop/ast/node.rb#170 def __ENCODING___type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#132 + # source://rubocop-ast/lib/rubocop/ast/node.rb#170 def __FILE___type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#132 + # source://rubocop-ast/lib/rubocop/ast/node.rb#170 def __LINE___type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#132 + # source://rubocop-ast/lib/rubocop/ast/node.rb#170 def alias_type?; end # Returns an array of ancestor nodes. @@ -2672,173 +2724,173 @@ class RuboCop::AST::Node < ::Parser::AST::Node # # @return [Array] an array of ancestor nodes # - # source://rubocop-ast//lib/rubocop/ast/node.rb#268 + # source://rubocop-ast/lib/rubocop/ast/node.rb#306 def ancestors; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#132 + # source://rubocop-ast/lib/rubocop/ast/node.rb#170 def and_asgn_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#132 + # source://rubocop-ast/lib/rubocop/ast/node.rb#170 def and_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#132 + # source://rubocop-ast/lib/rubocop/ast/node.rb#170 def arg_expr_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#132 + # source://rubocop-ast/lib/rubocop/ast/node.rb#170 def arg_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#132 + # source://rubocop-ast/lib/rubocop/ast/node.rb#170 def args_type?; end # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/node.rb#474 + # source://rubocop-ast/lib/rubocop/ast/node.rb#511 def argument?; end # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/node.rb#478 + # source://rubocop-ast/lib/rubocop/ast/node.rb#515 def argument_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#132 + # source://rubocop-ast/lib/rubocop/ast/node.rb#170 def array_pattern_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#132 + # source://rubocop-ast/lib/rubocop/ast/node.rb#170 def array_pattern_with_tail_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#132 + # source://rubocop-ast/lib/rubocop/ast/node.rb#170 def array_type?; end # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/node.rb#426 + # source://rubocop-ast/lib/rubocop/ast/node.rb#463 def assignment?; end # Some cops treat the shovel operator as a kind of assignment. # - # source://rubocop-ast//lib/rubocop/ast/node.rb#376 + # source://rubocop-ast/lib/rubocop/ast/node.rb#413 def assignment_or_similar?(param0 = T.unsafe(nil)); end - # source://rubocop-ast//lib/rubocop/ast/node.rb#132 + # source://rubocop-ast/lib/rubocop/ast/node.rb#170 def back_ref_type?; end # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/node.rb#430 + # source://rubocop-ast/lib/rubocop/ast/node.rb#467 def basic_conditional?; end # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/node.rb#384 + # source://rubocop-ast/lib/rubocop/ast/node.rb#421 def basic_literal?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#132 + # source://rubocop-ast/lib/rubocop/ast/node.rb#170 def begin_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#132 + # source://rubocop-ast/lib/rubocop/ast/node.rb#170 def block_pass_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#132 + # source://rubocop-ast/lib/rubocop/ast/node.rb#170 def block_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#132 + # source://rubocop-ast/lib/rubocop/ast/node.rb#170 def blockarg_expr_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#132 + # source://rubocop-ast/lib/rubocop/ast/node.rb#170 def blockarg_type?; end # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/node.rb#482 + # source://rubocop-ast/lib/rubocop/ast/node.rb#519 def boolean_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#132 + # source://rubocop-ast/lib/rubocop/ast/node.rb#170 def break_type?; end # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/node.rb#466 + # source://rubocop-ast/lib/rubocop/ast/node.rb#503 def call_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#132 + # source://rubocop-ast/lib/rubocop/ast/node.rb#170 def case_match_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#132 + # source://rubocop-ast/lib/rubocop/ast/node.rb#170 def case_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#132 + # source://rubocop-ast/lib/rubocop/ast/node.rb#170 def casgn_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#132 + # source://rubocop-ast/lib/rubocop/ast/node.rb#170 def cbase_type?; end # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/node.rb#470 + # source://rubocop-ast/lib/rubocop/ast/node.rb#507 def chained?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#522 + # source://rubocop-ast/lib/rubocop/ast/node.rb#570 def class_constructor?(param0 = T.unsafe(nil)); end - # source://rubocop-ast//lib/rubocop/ast/node.rb#540 + # source://rubocop-ast/lib/rubocop/ast/node.rb#588 def class_definition?(param0 = T.unsafe(nil)); end - # source://rubocop-ast//lib/rubocop/ast/node.rb#132 + # source://rubocop-ast/lib/rubocop/ast/node.rb#170 def class_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#165 + # source://rubocop-ast/lib/rubocop/ast/node.rb#203 def complete!; end # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/node.rb#170 + # source://rubocop-ast/lib/rubocop/ast/node.rb#208 def complete?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#132 + # source://rubocop-ast/lib/rubocop/ast/node.rb#170 def complex_type?; end # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/node.rb#434 + # source://rubocop-ast/lib/rubocop/ast/node.rb#471 def conditional?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#314 + # source://rubocop-ast/lib/rubocop/ast/node.rb#352 def const_name; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#132 + # source://rubocop-ast/lib/rubocop/ast/node.rb#170 def const_pattern_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#132 + # source://rubocop-ast/lib/rubocop/ast/node.rb#170 def const_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#132 + # source://rubocop-ast/lib/rubocop/ast/node.rb#170 def csend_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#132 + # source://rubocop-ast/lib/rubocop/ast/node.rb#170 def cvar_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#132 + # source://rubocop-ast/lib/rubocop/ast/node.rb#170 def cvasgn_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#132 + # source://rubocop-ast/lib/rubocop/ast/node.rb#170 def def_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#335 + # source://rubocop-ast/lib/rubocop/ast/node.rb#372 def defined_module; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#340 + # source://rubocop-ast/lib/rubocop/ast/node.rb#377 def defined_module_name; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#132 + # source://rubocop-ast/lib/rubocop/ast/node.rb#170 def defined_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#132 + # source://rubocop-ast/lib/rubocop/ast/node.rb#170 def defs_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#132 + # source://rubocop-ast/lib/rubocop/ast/node.rb#170 def dstr_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#132 + # source://rubocop-ast/lib/rubocop/ast/node.rb#170 def dsym_type?; end # Calls the given block for each ancestor node from parent to root. @@ -2851,163 +2903,163 @@ class RuboCop::AST::Node < ::Parser::AST::Node # @return [Enumerator] if no block is given # @yieldparam node [Node] each ancestor node # - # source://rubocop-ast//lib/rubocop/ast/node.rb#256 + # source://rubocop-ast/lib/rubocop/ast/node.rb#294 def each_ancestor(*types, &block); end - # source://rubocop-ast//lib/rubocop/ast/node.rb#132 + # source://rubocop-ast/lib/rubocop/ast/node.rb#170 def eflipflop_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#132 + # source://rubocop-ast/lib/rubocop/ast/node.rb#170 def empty_else_type?; end # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/node.rb#370 + # source://rubocop-ast/lib/rubocop/ast/node.rb#407 def empty_source?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#132 + # source://rubocop-ast/lib/rubocop/ast/node.rb#170 def ensure_type?; end # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/node.rb#418 + # source://rubocop-ast/lib/rubocop/ast/node.rb#455 def equals_asgn?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#132 + # source://rubocop-ast/lib/rubocop/ast/node.rb#170 def erange_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#132 + # source://rubocop-ast/lib/rubocop/ast/node.rb#170 def false_type?; end # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/node.rb#392 + # source://rubocop-ast/lib/rubocop/ast/node.rb#429 def falsey_literal?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#132 + # source://rubocop-ast/lib/rubocop/ast/node.rb#170 def find_pattern_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#282 + # source://rubocop-ast/lib/rubocop/ast/node.rb#320 def first_line; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#132 + # source://rubocop-ast/lib/rubocop/ast/node.rb#170 def float_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#132 + # source://rubocop-ast/lib/rubocop/ast/node.rb#170 def for_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#132 + # source://rubocop-ast/lib/rubocop/ast/node.rb#170 def forward_arg_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#132 + # source://rubocop-ast/lib/rubocop/ast/node.rb#170 def forward_args_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#132 + # source://rubocop-ast/lib/rubocop/ast/node.rb#170 def forwarded_args_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#132 + # source://rubocop-ast/lib/rubocop/ast/node.rb#170 def forwarded_kwrestarg_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#132 + # source://rubocop-ast/lib/rubocop/ast/node.rb#170 def forwarded_restarg_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#519 + # source://rubocop-ast/lib/rubocop/ast/node.rb#567 def global_const?(param0 = T.unsafe(nil), param1); end # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/node.rb#494 + # source://rubocop-ast/lib/rubocop/ast/node.rb#531 def guard_clause?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#132 + # source://rubocop-ast/lib/rubocop/ast/node.rb#170 def gvar_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#132 + # source://rubocop-ast/lib/rubocop/ast/node.rb#170 def gvasgn_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#132 + # source://rubocop-ast/lib/rubocop/ast/node.rb#170 def hash_pattern_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#132 + # source://rubocop-ast/lib/rubocop/ast/node.rb#170 def hash_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#132 + # source://rubocop-ast/lib/rubocop/ast/node.rb#170 def ident_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#132 + # source://rubocop-ast/lib/rubocop/ast/node.rb#170 def if_guard_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#132 + # source://rubocop-ast/lib/rubocop/ast/node.rb#170 def if_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#132 + # source://rubocop-ast/lib/rubocop/ast/node.rb#170 def iflipflop_type?; end # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/node.rb#400 + # source://rubocop-ast/lib/rubocop/ast/node.rb#437 def immutable_literal?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#132 + # source://rubocop-ast/lib/rubocop/ast/node.rb#170 def in_match_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#132 + # source://rubocop-ast/lib/rubocop/ast/node.rb#170 def in_pattern_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#132 + # source://rubocop-ast/lib/rubocop/ast/node.rb#170 def index_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#132 + # source://rubocop-ast/lib/rubocop/ast/node.rb#170 def indexasgn_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#132 + # source://rubocop-ast/lib/rubocop/ast/node.rb#170 def int_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#132 + # source://rubocop-ast/lib/rubocop/ast/node.rb#170 def irange_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#132 + # source://rubocop-ast/lib/rubocop/ast/node.rb#170 def ivar_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#132 + # source://rubocop-ast/lib/rubocop/ast/node.rb#170 def ivasgn_type?; end # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/node.rb#447 + # source://rubocop-ast/lib/rubocop/ast/node.rb#484 def keyword?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#132 + # source://rubocop-ast/lib/rubocop/ast/node.rb#170 def kwarg_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#132 + # source://rubocop-ast/lib/rubocop/ast/node.rb#170 def kwargs_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#132 + # source://rubocop-ast/lib/rubocop/ast/node.rb#170 def kwbegin_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#132 + # source://rubocop-ast/lib/rubocop/ast/node.rb#170 def kwnilarg_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#132 + # source://rubocop-ast/lib/rubocop/ast/node.rb#170 def kwoptarg_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#132 + # source://rubocop-ast/lib/rubocop/ast/node.rb#170 def kwrestarg_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#132 + # source://rubocop-ast/lib/rubocop/ast/node.rb#170 def kwsplat_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#513 + # source://rubocop-ast/lib/rubocop/ast/node.rb#561 def lambda?(param0 = T.unsafe(nil)); end - # source://rubocop-ast//lib/rubocop/ast/node.rb#516 + # source://rubocop-ast/lib/rubocop/ast/node.rb#564 def lambda_or_proc?(param0 = T.unsafe(nil)); end - # source://rubocop-ast//lib/rubocop/ast/node.rb#132 + # source://rubocop-ast/lib/rubocop/ast/node.rb#170 def lambda_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#286 + # source://rubocop-ast/lib/rubocop/ast/node.rb#324 def last_line; end # Use is discouraged, this is a potentially slow method and can lead @@ -3015,7 +3067,7 @@ class RuboCop::AST::Node < ::Parser::AST::Node # # @return [Node, nil] the left (aka previous) sibling # - # source://rubocop-ast//lib/rubocop/ast/node.rb#208 + # source://rubocop-ast/lib/rubocop/ast/node.rb#246 def left_sibling; end # Use is discouraged, this is a potentially slow method and can lead @@ -3023,94 +3075,102 @@ class RuboCop::AST::Node < ::Parser::AST::Node # # @return [Array] the left (aka previous) siblings # - # source://rubocop-ast//lib/rubocop/ast/node.rb#218 + # source://rubocop-ast/lib/rubocop/ast/node.rb#256 def left_siblings; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#290 + # source://rubocop-ast/lib/rubocop/ast/node.rb#328 def line_count; end # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/node.rb#380 + # source://rubocop-ast/lib/rubocop/ast/node.rb#417 def literal?; end + # Shortcut to safely test a particular location, even if + # this location does not exist or is `nil` + # + # @return [Boolean] + # + # source://rubocop-ast/lib/rubocop/ast/node.rb#539 + def loc_is?(which_loc, str); end + # NOTE: `loop { }` is a normal method call and thus not a loop keyword. # # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/node.rb#443 + # source://rubocop-ast/lib/rubocop/ast/node.rb#480 def loop_keyword?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#132 + # source://rubocop-ast/lib/rubocop/ast/node.rb#170 def lvar_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#132 + # source://rubocop-ast/lib/rubocop/ast/node.rb#170 def lvasgn_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#132 + # source://rubocop-ast/lib/rubocop/ast/node.rb#170 def masgn_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#132 + # source://rubocop-ast/lib/rubocop/ast/node.rb#170 def match_alt_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#132 + # source://rubocop-ast/lib/rubocop/ast/node.rb#170 def match_as_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#132 + # source://rubocop-ast/lib/rubocop/ast/node.rb#170 def match_current_line_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#501 + # source://rubocop-ast/lib/rubocop/ast/node.rb#549 def match_guard_clause?(param0 = T.unsafe(nil)); end - # source://rubocop-ast//lib/rubocop/ast/node.rb#132 + # source://rubocop-ast/lib/rubocop/ast/node.rb#170 def match_nil_pattern_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#132 + # source://rubocop-ast/lib/rubocop/ast/node.rb#170 def match_pattern_p_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#132 + # source://rubocop-ast/lib/rubocop/ast/node.rb#170 def match_pattern_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#132 + # source://rubocop-ast/lib/rubocop/ast/node.rb#170 def match_rest_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#132 + # source://rubocop-ast/lib/rubocop/ast/node.rb#170 def match_var_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#132 + # source://rubocop-ast/lib/rubocop/ast/node.rb#170 def match_with_lvasgn_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#132 + # source://rubocop-ast/lib/rubocop/ast/node.rb#170 def match_with_trailing_comma_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#132 + # source://rubocop-ast/lib/rubocop/ast/node.rb#170 def mlhs_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#547 + # source://rubocop-ast/lib/rubocop/ast/node.rb#595 def module_definition?(param0 = T.unsafe(nil)); end - # source://rubocop-ast//lib/rubocop/ast/node.rb#132 + # source://rubocop-ast/lib/rubocop/ast/node.rb#170 def module_type?; end # Predicates # # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/node.rb#362 + # source://rubocop-ast/lib/rubocop/ast/node.rb#399 def multiline?; end # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/node.rb#396 + # source://rubocop-ast/lib/rubocop/ast/node.rb#433 def mutable_literal?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#679 + # source://rubocop-ast/lib/rubocop/ast/node.rb#727 def new_class_or_module_block?(param0 = T.unsafe(nil)); end - # source://rubocop-ast//lib/rubocop/ast/node.rb#132 + # source://rubocop-ast/lib/rubocop/ast/node.rb#170 def next_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#132 + # source://rubocop-ast/lib/rubocop/ast/node.rb#170 def nil_type?; end # Common destructuring method. This can be used to normalize @@ -3120,98 +3180,98 @@ class RuboCop::AST::Node < ::Parser::AST::Node # # @return [Array] the different parts of the ndde # - # source://ast/2.4.2/lib/ast/node.rb#56 + # source://ast/2.4.2lib/ast/node.rb#56 def node_parts; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#296 + # source://rubocop-ast/lib/rubocop/ast/node.rb#334 def nonempty_line_count; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#132 + # source://rubocop-ast/lib/rubocop/ast/node.rb#170 def not_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#132 + # source://rubocop-ast/lib/rubocop/ast/node.rb#170 def nth_ref_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#132 + # source://rubocop-ast/lib/rubocop/ast/node.rb#170 def numargs_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#132 + # source://rubocop-ast/lib/rubocop/ast/node.rb#170 def numblock_type?; end # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/node.rb#486 + # source://rubocop-ast/lib/rubocop/ast/node.rb#523 def numeric_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#132 + # source://rubocop-ast/lib/rubocop/ast/node.rb#170 def objc_kwarg_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#132 + # source://rubocop-ast/lib/rubocop/ast/node.rb#170 def objc_restarg_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#132 + # source://rubocop-ast/lib/rubocop/ast/node.rb#170 def objc_varargs_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#132 + # source://rubocop-ast/lib/rubocop/ast/node.rb#170 def op_asgn_type?; end # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/node.rb#458 + # source://rubocop-ast/lib/rubocop/ast/node.rb#495 def operator_keyword?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#132 + # source://rubocop-ast/lib/rubocop/ast/node.rb#170 def optarg_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#132 + # source://rubocop-ast/lib/rubocop/ast/node.rb#170 def or_asgn_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#132 + # source://rubocop-ast/lib/rubocop/ast/node.rb#170 def or_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#132 + # source://rubocop-ast/lib/rubocop/ast/node.rb#170 def pair_type?; end # Returns the parent node, or `nil` if the receiver is a root node. # # @return [Node, nil] the parent node or `nil` # - # source://rubocop-ast//lib/rubocop/ast/node.rb#147 + # source://rubocop-ast/lib/rubocop/ast/node.rb#185 def parent; end # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/node.rb#156 + # source://rubocop-ast/lib/rubocop/ast/node.rb#194 def parent?; end # Searching the AST # - # source://rubocop-ast//lib/rubocop/ast/node.rb#346 + # source://rubocop-ast/lib/rubocop/ast/node.rb#383 def parent_module_name; end # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/node.rb#462 + # source://rubocop-ast/lib/rubocop/ast/node.rb#499 def parenthesized_call?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#132 + # source://rubocop-ast/lib/rubocop/ast/node.rb#170 def pin_type?; end # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/node.rb#438 + # source://rubocop-ast/lib/rubocop/ast/node.rb#475 def post_condition_loop?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#132 + # source://rubocop-ast/lib/rubocop/ast/node.rb#170 def postexe_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#132 + # source://rubocop-ast/lib/rubocop/ast/node.rb#170 def preexe_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#506 + # source://rubocop-ast/lib/rubocop/ast/node.rb#554 def proc?(param0 = T.unsafe(nil)); end - # source://rubocop-ast//lib/rubocop/ast/node.rb#132 + # source://rubocop-ast/lib/rubocop/ast/node.rb#170 def procarg0_type?; end # Some expressions are evaluated for their value, some for their side @@ -3224,60 +3284,60 @@ class RuboCop::AST::Node < ::Parser::AST::Node # # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/node.rb#590 + # source://rubocop-ast/lib/rubocop/ast/node.rb#638 def pure?; end # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/node.rb#490 + # source://rubocop-ast/lib/rubocop/ast/node.rb#527 def range_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#132 + # source://rubocop-ast/lib/rubocop/ast/node.rb#170 def rational_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#307 + # source://rubocop-ast/lib/rubocop/ast/node.rb#345 def receiver(param0 = T.unsafe(nil)); end # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/node.rb#97 + # source://rubocop-ast/lib/rubocop/ast/node.rb#125 def recursive_basic_literal?; end # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/node.rb#97 + # source://rubocop-ast/lib/rubocop/ast/node.rb#125 def recursive_literal?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#132 + # source://rubocop-ast/lib/rubocop/ast/node.rb#170 def redo_type?; end # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/node.rb#414 + # source://rubocop-ast/lib/rubocop/ast/node.rb#451 def reference?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#132 + # source://rubocop-ast/lib/rubocop/ast/node.rb#170 def regexp_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#132 + # source://rubocop-ast/lib/rubocop/ast/node.rb#170 def regopt_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#132 + # source://rubocop-ast/lib/rubocop/ast/node.rb#170 def resbody_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#132 + # source://rubocop-ast/lib/rubocop/ast/node.rb#170 def rescue_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#132 + # source://rubocop-ast/lib/rubocop/ast/node.rb#170 def restarg_expr_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#132 + # source://rubocop-ast/lib/rubocop/ast/node.rb#170 def restarg_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#132 + # source://rubocop-ast/lib/rubocop/ast/node.rb#170 def retry_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#132 + # source://rubocop-ast/lib/rubocop/ast/node.rb#170 def return_type?; end # Use is discouraged, this is a potentially slow method and can lead @@ -3285,7 +3345,7 @@ class RuboCop::AST::Node < ::Parser::AST::Node # # @return [Node, nil] the right (aka next) sibling # - # source://rubocop-ast//lib/rubocop/ast/node.rb#199 + # source://rubocop-ast/lib/rubocop/ast/node.rb#237 def right_sibling; end # Use is discouraged, this is a potentially slow method and can lead @@ -3293,18 +3353,18 @@ class RuboCop::AST::Node < ::Parser::AST::Node # # @return [Array] the right (aka next) siblings # - # source://rubocop-ast//lib/rubocop/ast/node.rb#227 + # source://rubocop-ast/lib/rubocop/ast/node.rb#265 def right_siblings; end # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/node.rb#161 + # source://rubocop-ast/lib/rubocop/ast/node.rb#199 def root?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#132 + # source://rubocop-ast/lib/rubocop/ast/node.rb#170 def sclass_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#132 + # source://rubocop-ast/lib/rubocop/ast/node.rb#170 def self_type?; end # Most nodes are of 'send' type, so this method is defined @@ -3312,15 +3372,15 @@ class RuboCop::AST::Node < ::Parser::AST::Node # # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/node.rb#140 + # source://rubocop-ast/lib/rubocop/ast/node.rb#178 def send_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#132 + # source://rubocop-ast/lib/rubocop/ast/node.rb#170 def shadowarg_type?; end # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/node.rb#422 + # source://rubocop-ast/lib/rubocop/ast/node.rb#459 def shorthand_asgn?; end # Returns the index of the receiver node in its siblings. (Sibling index @@ -3329,70 +3389,79 @@ class RuboCop::AST::Node < ::Parser::AST::Node # # @return [Integer, nil] the index of the receiver node in its siblings # - # source://rubocop-ast//lib/rubocop/ast/node.rb#192 + # source://rubocop-ast/lib/rubocop/ast/node.rb#230 def sibling_index; end # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/node.rb#366 + # source://rubocop-ast/lib/rubocop/ast/node.rb#403 def single_line?; end # NOTE: Some rare nodes may have no source, like `s(:args)` in `foo {}` # # @return [String, nil] # - # source://rubocop-ast//lib/rubocop/ast/node.rb#274 + # source://rubocop-ast/lib/rubocop/ast/node.rb#312 def source; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#300 + # source://rubocop-ast/lib/rubocop/ast/node.rb#338 def source_length; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#278 + # source://rubocop-ast/lib/rubocop/ast/node.rb#316 def source_range; end # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/node.rb#454 + # source://rubocop-ast/lib/rubocop/ast/node.rb#491 def special_keyword?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#132 + # source://rubocop-ast/lib/rubocop/ast/node.rb#170 def splat_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#312 + # source://rubocop-ast/lib/rubocop/ast/node.rb#350 def str_content(param0 = T.unsafe(nil)); end - # source://rubocop-ast//lib/rubocop/ast/node.rb#132 + # source://rubocop-ast/lib/rubocop/ast/node.rb#170 def str_type?; end # @deprecated Use `:class_constructor?` # - # source://rubocop-ast//lib/rubocop/ast/node.rb#535 + # source://rubocop-ast/lib/rubocop/ast/node.rb#583 def struct_constructor?(param0 = T.unsafe(nil)); end - # source://rubocop-ast//lib/rubocop/ast/node.rb#132 + # source://rubocop-ast/lib/rubocop/ast/node.rb#170 def super_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#132 + # source://rubocop-ast/lib/rubocop/ast/node.rb#170 def sym_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#132 + # source://rubocop-ast/lib/rubocop/ast/node.rb#170 def true_type?; end # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/node.rb#388 + # source://rubocop-ast/lib/rubocop/ast/node.rb#425 def truthy_literal?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#132 + # Determine if the node is one of several node types in a single query + # Allows specific single node types, as well as "grouped" types + # (e.g. `:boolean` for `:true` or `:false`) + # + # @return [Boolean] + # + # source://rubocop-ast/lib/rubocop/ast/node.rb#160 + def type?(*types); end + + # source://rubocop-ast/lib/rubocop/ast/node.rb#170 def undef_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#132 + # source://rubocop-ast/lib/rubocop/ast/node.rb#170 def unless_guard_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#132 + # source://rubocop-ast/lib/rubocop/ast/node.rb#170 def until_post_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#132 + # source://rubocop-ast/lib/rubocop/ast/node.rb#170 def until_type?; end # Override `AST::Node#updated` so that `AST::Processor` does not try to @@ -3401,7 +3470,7 @@ class RuboCop::AST::Node < ::Parser::AST::Node # identical subtrees. Rather, the entire AST must be copied any time any # part of it is changed. # - # source://rubocop-ast//lib/rubocop/ast/node.rb#181 + # source://rubocop-ast/lib/rubocop/ast/node.rb#219 def updated(type = T.unsafe(nil), children = T.unsafe(nil), properties = T.unsafe(nil)); end # Some expressions are evaluated for their value, some for their side @@ -3414,199 +3483,204 @@ class RuboCop::AST::Node < ::Parser::AST::Node # # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/node.rb#560 + # source://rubocop-ast/lib/rubocop/ast/node.rb#608 def value_used?; end # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/node.rb#410 + # source://rubocop-ast/lib/rubocop/ast/node.rb#447 def variable?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#132 + # source://rubocop-ast/lib/rubocop/ast/node.rb#170 def when_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#132 + # source://rubocop-ast/lib/rubocop/ast/node.rb#170 def while_post_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#132 + # source://rubocop-ast/lib/rubocop/ast/node.rb#170 def while_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#132 + # source://rubocop-ast/lib/rubocop/ast/node.rb#170 def xstr_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#132 + # source://rubocop-ast/lib/rubocop/ast/node.rb#170 def yield_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#132 + # source://rubocop-ast/lib/rubocop/ast/node.rb#170 def zsuper_type?; end protected - # source://rubocop-ast//lib/rubocop/ast/node.rb#151 + # source://rubocop-ast/lib/rubocop/ast/node.rb#189 def parent=(node); end private # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/node.rb#618 + # source://rubocop-ast/lib/rubocop/ast/node.rb#666 def begin_value_used?; end # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/node.rb#629 + # source://rubocop-ast/lib/rubocop/ast/node.rb#677 def case_if_value_used?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#326 + # source://rubocop-ast/lib/rubocop/ast/node.rb#363 def defined_module0(param0 = T.unsafe(nil)); end # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/node.rb#623 + # source://rubocop-ast/lib/rubocop/ast/node.rb#671 def for_value_used?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#665 + # source://rubocop-ast/lib/rubocop/ast/node.rb#713 def parent_module_name_for_block(ancestor); end - # source://rubocop-ast//lib/rubocop/ast/node.rb#653 + # source://rubocop-ast/lib/rubocop/ast/node.rb#701 def parent_module_name_for_sclass(sclass_node); end - # source://rubocop-ast//lib/rubocop/ast/node.rb#640 + # source://rubocop-ast/lib/rubocop/ast/node.rb#688 def parent_module_name_part(node); end - # source://rubocop-ast//lib/rubocop/ast/node.rb#608 + # source://rubocop-ast/lib/rubocop/ast/node.rb#656 def visit_ancestors(types); end # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/node.rb#635 + # source://rubocop-ast/lib/rubocop/ast/node.rb#683 def while_until_value_used?; end class << self private - # source://rubocop-ast//lib/rubocop/ast/node.rb#92 + # source://rubocop-ast/lib/rubocop/ast/node.rb#120 def def_recursive_literal_predicate(kind); end end end # @api private # -# source://rubocop-ast//lib/rubocop/ast/node.rb#80 +# source://rubocop-ast/lib/rubocop/ast/node.rb#80 RuboCop::AST::Node::ARGUMENT_TYPES = T.let(T.unsafe(nil), Set) # @api private # -# source://rubocop-ast//lib/rubocop/ast/node.rb#55 +# source://rubocop-ast/lib/rubocop/ast/node.rb#55 RuboCop::AST::Node::ASSIGNMENTS = T.let(T.unsafe(nil), Set) # @api private # -# source://rubocop-ast//lib/rubocop/ast/node.rb#58 +# source://rubocop-ast/lib/rubocop/ast/node.rb#58 RuboCop::AST::Node::BASIC_CONDITIONALS = T.let(T.unsafe(nil), Set) # @api private # -# source://rubocop-ast//lib/rubocop/ast/node.rb#42 +# source://rubocop-ast/lib/rubocop/ast/node.rb#42 RuboCop::AST::Node::BASIC_LITERALS = T.let(T.unsafe(nil), Set) # <=> isn't included here, because it doesn't return a boolean. # # @api private # -# source://rubocop-ast//lib/rubocop/ast/node.rb#28 +# source://rubocop-ast/lib/rubocop/ast/node.rb#28 RuboCop::AST::Node::COMPARISON_OPERATORS = T.let(T.unsafe(nil), Set) # @api private # -# source://rubocop-ast//lib/rubocop/ast/node.rb#39 +# source://rubocop-ast/lib/rubocop/ast/node.rb#39 RuboCop::AST::Node::COMPOSITE_LITERALS = T.let(T.unsafe(nil), Set) # @api private # -# source://rubocop-ast//lib/rubocop/ast/node.rb#60 +# source://rubocop-ast/lib/rubocop/ast/node.rb#60 RuboCop::AST::Node::CONDITIONALS = T.let(T.unsafe(nil), Set) -# source://rubocop-ast//lib/rubocop/ast/node.rb#87 +# source://rubocop-ast/lib/rubocop/ast/node.rb#87 RuboCop::AST::Node::EMPTY_CHILDREN = T.let(T.unsafe(nil), Array) -# source://rubocop-ast//lib/rubocop/ast/node.rb#88 +# source://rubocop-ast/lib/rubocop/ast/node.rb#88 RuboCop::AST::Node::EMPTY_PROPERTIES = T.let(T.unsafe(nil), Hash) # @api private # -# source://rubocop-ast//lib/rubocop/ast/node.rb#50 +# source://rubocop-ast/lib/rubocop/ast/node.rb#50 RuboCop::AST::Node::EQUALS_ASSIGNMENTS = T.let(T.unsafe(nil), Set) # @api private # -# source://rubocop-ast//lib/rubocop/ast/node.rb#35 +# source://rubocop-ast/lib/rubocop/ast/node.rb#35 RuboCop::AST::Node::FALSEY_LITERALS = T.let(T.unsafe(nil), Set) # @api private # -# source://rubocop-ast//lib/rubocop/ast/node.rb#47 +# source://rubocop-ast/lib/rubocop/ast/node.rb#92 +RuboCop::AST::Node::GROUP_FOR_TYPE = T.let(T.unsafe(nil), Hash) + +# @api private +# +# source://rubocop-ast/lib/rubocop/ast/node.rb#47 RuboCop::AST::Node::IMMUTABLE_LITERALS = T.let(T.unsafe(nil), Set) # @api private # -# source://rubocop-ast//lib/rubocop/ast/node.rb#70 +# source://rubocop-ast/lib/rubocop/ast/node.rb#70 RuboCop::AST::Node::KEYWORDS = T.let(T.unsafe(nil), Set) # @api private # -# source://rubocop-ast//lib/rubocop/ast/node.rb#37 +# source://rubocop-ast/lib/rubocop/ast/node.rb#37 RuboCop::AST::Node::LITERALS = T.let(T.unsafe(nil), Set) -# source://rubocop-ast//lib/rubocop/ast/node.rb#83 +# source://rubocop-ast/lib/rubocop/ast/node.rb#83 RuboCop::AST::Node::LITERAL_RECURSIVE_METHODS = T.let(T.unsafe(nil), Set) -# source://rubocop-ast//lib/rubocop/ast/node.rb#84 +# source://rubocop-ast/lib/rubocop/ast/node.rb#84 RuboCop::AST::Node::LITERAL_RECURSIVE_TYPES = T.let(T.unsafe(nil), Set) # @api private # -# source://rubocop-ast//lib/rubocop/ast/node.rb#64 +# source://rubocop-ast/lib/rubocop/ast/node.rb#64 RuboCop::AST::Node::LOOP_TYPES = T.let(T.unsafe(nil), Set) # @api private # -# source://rubocop-ast//lib/rubocop/ast/node.rb#44 +# source://rubocop-ast/lib/rubocop/ast/node.rb#44 RuboCop::AST::Node::MUTABLE_LITERALS = T.let(T.unsafe(nil), Set) # @api private # -# source://rubocop-ast//lib/rubocop/ast/node.rb#76 +# source://rubocop-ast/lib/rubocop/ast/node.rb#76 RuboCop::AST::Node::OPERATOR_KEYWORDS = T.let(T.unsafe(nil), Set) # @api private # -# source://rubocop-ast//lib/rubocop/ast/node.rb#62 +# source://rubocop-ast/lib/rubocop/ast/node.rb#62 RuboCop::AST::Node::POST_CONDITION_LOOP_TYPES = T.let(T.unsafe(nil), Set) # @api private # -# source://rubocop-ast//lib/rubocop/ast/node.rb#68 +# source://rubocop-ast/lib/rubocop/ast/node.rb#68 RuboCop::AST::Node::REFERENCES = T.let(T.unsafe(nil), Set) # @api private # -# source://rubocop-ast//lib/rubocop/ast/node.rb#53 +# source://rubocop-ast/lib/rubocop/ast/node.rb#53 RuboCop::AST::Node::SHORTHAND_ASSIGNMENTS = T.let(T.unsafe(nil), Set) # @api private # -# source://rubocop-ast//lib/rubocop/ast/node.rb#78 +# source://rubocop-ast/lib/rubocop/ast/node.rb#78 RuboCop::AST::Node::SPECIAL_KEYWORDS = T.let(T.unsafe(nil), Set) # @api private # -# source://rubocop-ast//lib/rubocop/ast/node.rb#31 +# source://rubocop-ast/lib/rubocop/ast/node.rb#31 RuboCop::AST::Node::TRUTHY_LITERALS = T.let(T.unsafe(nil), Set) # @api private # -# source://rubocop-ast//lib/rubocop/ast/node.rb#66 +# source://rubocop-ast/lib/rubocop/ast/node.rb#66 RuboCop::AST::Node::VARIABLES = T.let(T.unsafe(nil), Set) # This class performs a pattern-matching operation on an AST node. @@ -3628,68 +3702,68 @@ RuboCop::AST::Node::VARIABLES = T.let(T.unsafe(nil), Set) # - With no block, but multiple captures: captures are returned as an array. # - With no block and no captures: #match returns `true`. # -# source://rubocop-ast//lib/rubocop/ast/node_pattern/method_definer.rb#5 +# source://rubocop-ast/lib/rubocop/ast/node_pattern/method_definer.rb#5 class RuboCop::AST::NodePattern include ::RuboCop::AST::NodePattern::MethodDefiner extend ::RuboCop::SimpleForwardable # @return [NodePattern] a new instance of NodePattern # - # source://rubocop-ast//lib/rubocop/ast/node_pattern.rb#77 + # source://rubocop-ast/lib/rubocop/ast/node_pattern.rb#77 def initialize(str, compiler: T.unsafe(nil)); end - # source://rubocop-ast//lib/rubocop/ast/node_pattern.rb#90 + # source://rubocop-ast/lib/rubocop/ast/node_pattern.rb#90 def ==(other); end - # source://rubocop-ast//lib/rubocop/ast/node_pattern.rb#107 + # source://rubocop-ast/lib/rubocop/ast/node_pattern.rb#107 def as_json(_options = T.unsafe(nil)); end # Returns the value of attribute ast. # - # source://rubocop-ast//lib/rubocop/ast/node_pattern.rb#73 + # source://rubocop-ast/lib/rubocop/ast/node_pattern.rb#73 def ast; end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/lib/rubocop/ast/utilities/simple_forwardable.rb#9 def captures(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/node_pattern.rb#111 + # source://rubocop-ast/lib/rubocop/ast/node_pattern.rb#111 def encode_with(coder); end - # source://rubocop-ast//lib/rubocop/ast/node_pattern.rb#90 + # source://rubocop-ast/lib/rubocop/ast/node_pattern.rb#90 def eql?(other); end - # source://rubocop-ast//lib/rubocop/ast/node_pattern.rb#119 + # source://rubocop-ast/lib/rubocop/ast/node_pattern.rb#119 def freeze; end - # source://rubocop-ast//lib/rubocop/ast/node_pattern.rb#115 + # source://rubocop-ast/lib/rubocop/ast/node_pattern.rb#115 def init_with(coder); end - # source://rubocop-ast//lib/rubocop/ast/node_pattern.rb#103 + # source://rubocop-ast/lib/rubocop/ast/node_pattern.rb#103 def marshal_dump; end - # source://rubocop-ast//lib/rubocop/ast/node_pattern.rb#99 + # source://rubocop-ast/lib/rubocop/ast/node_pattern.rb#99 def marshal_load(pattern); end - # source://rubocop-ast//lib/rubocop/ast/node_pattern.rb#85 + # source://rubocop-ast/lib/rubocop/ast/node_pattern.rb#85 def match(*args, **rest, &block); end # Returns the value of attribute match_code. # - # source://rubocop-ast//lib/rubocop/ast/node_pattern.rb#73 + # source://rubocop-ast/lib/rubocop/ast/node_pattern.rb#73 def match_code; end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/lib/rubocop/ast/utilities/simple_forwardable.rb#9 def named_parameters(*_arg0, **_arg1, &_arg2); end # Returns the value of attribute pattern. # - # source://rubocop-ast//lib/rubocop/ast/node_pattern.rb#73 + # source://rubocop-ast/lib/rubocop/ast/node_pattern.rb#73 def pattern; end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/lib/rubocop/ast/utilities/simple_forwardable.rb#9 def positional_parameters(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/node_pattern.rb#95 + # source://rubocop-ast/lib/rubocop/ast/node_pattern.rb#95 def to_s; end class << self @@ -3697,7 +3771,7 @@ class RuboCop::AST::NodePattern # # @yield [element] # - # source://rubocop-ast//lib/rubocop/ast/node_pattern.rb#59 + # source://rubocop-ast/lib/rubocop/ast/node_pattern.rb#59 def descend(element, &block); end end end @@ -3707,51 +3781,51 @@ end # Doc on how this fits in the compiling process: # /docs/modules/ROOT/pages/node_pattern.adoc # -# source://rubocop-ast//lib/rubocop/ast/node_pattern/builder.rb#10 +# source://rubocop-ast/lib/rubocop/ast/node_pattern/builder.rb#10 class RuboCop::AST::NodePattern::Builder - # source://rubocop-ast//lib/rubocop/ast/node_pattern/builder.rb#17 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/builder.rb#17 def emit_atom(type, value); end - # source://rubocop-ast//lib/rubocop/ast/node_pattern/builder.rb#29 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/builder.rb#29 def emit_call(type, selector, args = T.unsafe(nil)); end - # source://rubocop-ast//lib/rubocop/ast/node_pattern/builder.rb#11 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/builder.rb#11 def emit_capture(capture_token, node); end - # source://rubocop-ast//lib/rubocop/ast/node_pattern/builder.rb#25 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/builder.rb#25 def emit_list(type, _begin, children, _end); end - # source://rubocop-ast//lib/rubocop/ast/node_pattern/builder.rb#41 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/builder.rb#41 def emit_subsequence(node_list); end - # source://rubocop-ast//lib/rubocop/ast/node_pattern/builder.rb#21 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/builder.rb#21 def emit_unary_op(type, _operator = T.unsafe(nil), *children); end - # source://rubocop-ast//lib/rubocop/ast/node_pattern/builder.rb#34 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/builder.rb#34 def emit_union(begin_t, pattern_lists, end_t); end private - # source://rubocop-ast//lib/rubocop/ast/node_pattern/builder.rb#53 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/builder.rb#53 def n(type, *args); end # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/node_pattern/builder.rb#49 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/builder.rb#49 def optimizable_as_set?(children); end - # source://rubocop-ast//lib/rubocop/ast/node_pattern/builder.rb#57 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/builder.rb#57 def union_children(pattern_lists); end end # A NodePattern comment, simplified version of ::Parser::Source::Comment # -# source://rubocop-ast//lib/rubocop/ast/node_pattern/comment.rb#7 +# source://rubocop-ast/lib/rubocop/ast/node_pattern/comment.rb#7 class RuboCop::AST::NodePattern::Comment # @param range [Parser::Source::Range] # @return [Comment] a new instance of Comment # - # source://rubocop-ast//lib/rubocop/ast/node_pattern/comment.rb#14 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/comment.rb#14 def initialize(range); end # Compares comments. Two comments are equal if they @@ -3760,27 +3834,27 @@ class RuboCop::AST::NodePattern::Comment # @param other [Object] # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/node_pattern/comment.rb#31 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/comment.rb#31 def ==(other); end # @return [String] a human-readable representation of this comment # - # source://rubocop-ast//lib/rubocop/ast/node_pattern/comment.rb#39 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/comment.rb#39 def inspect; end # Returns the value of attribute location. # - # source://rubocop-ast//lib/rubocop/ast/node_pattern/comment.rb#8 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/comment.rb#8 def loc; end # Returns the value of attribute location. # - # source://rubocop-ast//lib/rubocop/ast/node_pattern/comment.rb#8 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/comment.rb#8 def location; end # @return [String] # - # source://rubocop-ast//lib/rubocop/ast/node_pattern/comment.rb#20 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/comment.rb#20 def text; end end @@ -3790,79 +3864,79 @@ end # Doc on how this fits in the compiling process: # /docs/modules/ROOT/pages/node_pattern.adoc # -# source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler.rb#11 +# source://rubocop-ast/lib/rubocop/ast/node_pattern/compiler.rb#11 class RuboCop::AST::NodePattern::Compiler extend ::RuboCop::SimpleForwardable # @return [Compiler] a new instance of Compiler # - # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler.rb#15 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/compiler.rb#15 def initialize; end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/lib/rubocop/ast/utilities/simple_forwardable.rb#9 def bind(*_arg0, **_arg1, &_arg2); end # Returns the value of attribute binding. # - # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler.rb#13 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/compiler.rb#13 def binding; end # Returns the value of attribute captures. # - # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler.rb#13 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/compiler.rb#13 def captures; end - # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler.rb#42 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/compiler.rb#42 def compile_as_atom(node); end - # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler.rb#46 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/compiler.rb#46 def compile_as_node_pattern(node, **options); end - # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler.rb#50 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/compiler.rb#50 def compile_sequence(sequence, var:); end # Enumerates `enum` while keeping track of state across # union branches (captures and unification). # - # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler.rb#38 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/compiler.rb#38 def each_union(enum, &block); end - # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler.rb#74 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/compiler.rb#74 def freeze; end - # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler.rb#31 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/compiler.rb#31 def named_parameter(name); end # Returns the value of attribute named_parameters. # - # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler.rb#13 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/compiler.rb#13 def named_parameters; end - # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler.rb#70 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/compiler.rb#70 def next_capture; end - # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler.rb#54 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/compiler.rb#54 def parser; end - # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler.rb#26 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/compiler.rb#26 def positional_parameter(number); end # Returns the value of attribute positional_parameters. # - # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler.rb#13 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/compiler.rb#13 def positional_parameters; end # Utilities # - # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler.rb#60 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/compiler.rb#60 def with_temp_variables(*names, &block); end private - # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler.rb#81 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/compiler.rb#81 def enforce_same_captures(enum); end - # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler.rb#96 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/compiler.rb#96 def new_capture; end end @@ -3872,150 +3946,150 @@ end # Doc on how this fits in the compiling process: # /docs/modules/ROOT/pages/node_pattern.adoc # -# source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/atom_subcompiler.rb#12 +# source://rubocop-ast/lib/rubocop/ast/node_pattern/compiler/atom_subcompiler.rb#12 class RuboCop::AST::NodePattern::Compiler::AtomSubcompiler < ::RuboCop::AST::NodePattern::Compiler::Subcompiler private - # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/atom_subcompiler.rb#28 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/compiler/atom_subcompiler.rb#28 def visit_const; end - # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/atom_subcompiler.rb#32 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/compiler/atom_subcompiler.rb#32 def visit_named_parameter; end - # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/atom_subcompiler.rb#21 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/compiler/atom_subcompiler.rb#21 def visit_number; end # Assumes other types are node patterns. # - # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/atom_subcompiler.rb#46 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/compiler/atom_subcompiler.rb#46 def visit_other_type; end - # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/atom_subcompiler.rb#36 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/compiler/atom_subcompiler.rb#36 def visit_positional_parameter; end - # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/atom_subcompiler.rb#21 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/compiler/atom_subcompiler.rb#21 def visit_regexp; end - # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/atom_subcompiler.rb#40 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/compiler/atom_subcompiler.rb#40 def visit_set; end - # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/atom_subcompiler.rb#21 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/compiler/atom_subcompiler.rb#21 def visit_string; end - # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/atom_subcompiler.rb#21 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/compiler/atom_subcompiler.rb#21 def visit_symbol; end - # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/atom_subcompiler.rb#15 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/compiler/atom_subcompiler.rb#15 def visit_unify; end end # Holds the list of bound variable names # -# source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/binding.rb#8 +# source://rubocop-ast/lib/rubocop/ast/node_pattern/compiler/binding.rb#8 class RuboCop::AST::NodePattern::Compiler::Binding # @return [Binding] a new instance of Binding # - # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/binding.rb#9 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/compiler/binding.rb#9 def initialize; end # Yields the first time a given name is bound # # @return [String] bound variable name # - # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/binding.rb#16 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/compiler/binding.rb#16 def bind(name); end # Yields for each branch of the given union, forbidding unification of # bindings which only appear in a subset of the union. # - # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/binding.rb#31 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/compiler/binding.rb#31 def union_bind(enum); end private - # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/binding.rb#69 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/compiler/binding.rb#69 def forbid(names); end end # Variant of the Compiler with tracing information for nodes # -# source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#10 +# source://rubocop-ast/lib/rubocop/ast/node_pattern/compiler/debug.rb#10 class RuboCop::AST::NodePattern::Compiler::Debug < ::RuboCop::AST::NodePattern::Compiler # @return [Debug] a new instance of Debug # - # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#123 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/compiler/debug.rb#123 def initialize; end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/lib/rubocop/ast/utilities/simple_forwardable.rb#9 def comments(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#128 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/compiler/debug.rb#128 def named_parameters; end # Returns the value of attribute node_ids. # - # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#33 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/compiler/debug.rb#33 def node_ids; end - # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#132 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/compiler/debug.rb#132 def parser; end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/lib/rubocop/ast/utilities/simple_forwardable.rb#9 def tokens(*_arg0, **_arg1, &_arg2); end end # @api private # -# source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#36 +# source://rubocop-ast/lib/rubocop/ast/node_pattern/compiler/debug.rb#36 class RuboCop::AST::NodePattern::Compiler::Debug::Colorizer # @api private # @return [Colorizer] a new instance of Colorizer # - # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#96 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/compiler/debug.rb#96 def initialize(pattern, compiler: T.unsafe(nil)); end # @api private # - # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#94 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/compiler/debug.rb#94 def compiler; end # @api private # - # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#94 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/compiler/debug.rb#94 def node_pattern; end # @api private # - # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#94 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/compiler/debug.rb#94 def pattern; end # @api private # @return [Node] the Ruby AST # - # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#103 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/compiler/debug.rb#103 def test(ruby, trace: T.unsafe(nil)); end private # @api private # - # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#111 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/compiler/debug.rb#111 def ruby_ast(ruby); end # @api private # - # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#116 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/compiler/debug.rb#116 def ruby_parser; end end # @api private # -# source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#37 +# source://rubocop-ast/lib/rubocop/ast/node_pattern/compiler/debug.rb#37 RuboCop::AST::NodePattern::Compiler::Debug::Colorizer::COLOR_SCHEME = T.let(T.unsafe(nil), Hash) # @api private # -# source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#92 +# source://rubocop-ast/lib/rubocop/ast/node_pattern/compiler/debug.rb#92 RuboCop::AST::NodePattern::Compiler::Debug::Colorizer::Compiler = RuboCop::AST::NodePattern::Compiler::Debug # Result of a NodePattern run against a particular AST @@ -4023,18 +4097,18 @@ RuboCop::AST::NodePattern::Compiler::Debug::Colorizer::Compiler = RuboCop::AST:: # # @api private # -# source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#46 +# source://rubocop-ast/lib/rubocop/ast/node_pattern/compiler/debug.rb#46 class RuboCop::AST::NodePattern::Compiler::Debug::Colorizer::Result < ::Struct # @api private # @return [Hash] a map for {character_position => color} # - # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#56 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/compiler/debug.rb#56 def color_map(color_scheme = T.unsafe(nil)); end # @api private # @return [String] a Rainbow colorized version of ruby # - # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#48 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/compiler/debug.rb#48 def colorize(color_scheme = T.unsafe(nil)); end # Returns the value of attribute colorizer @@ -4051,13 +4125,13 @@ class RuboCop::AST::NodePattern::Compiler::Debug::Colorizer::Result < ::Struct # @api private # @return [Hash] a map for {node => matched?}, depth-first # - # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#66 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/compiler/debug.rb#66 def match_map; end # @api private # @return [Boolean] a value of `Trace#matched?` or `:not_visitable` # - # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#74 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/compiler/debug.rb#74 def matched?(node); end # Returns the value of attribute returned @@ -4097,12 +4171,12 @@ class RuboCop::AST::NodePattern::Compiler::Debug::Colorizer::Result < ::Struct # @api private # - # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#87 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/compiler/debug.rb#87 def ast; end # @api private # - # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#81 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/compiler/debug.rb#81 def color_map_for(node, color); end class << self @@ -4116,36 +4190,36 @@ end # @api private # -# source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#139 +# source://rubocop-ast/lib/rubocop/ast/node_pattern/compiler/debug.rb#139 module RuboCop::AST::NodePattern::Compiler::Debug::InstrumentationSubcompiler # @api private # - # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#140 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/compiler/debug.rb#140 def do_compile; end private # @api private # - # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#150 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/compiler/debug.rb#150 def node_id; end # @api private # - # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#146 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/compiler/debug.rb#146 def tracer(kind); end end # @api private # -# source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#156 +# source://rubocop-ast/lib/rubocop/ast/node_pattern/compiler/debug.rb#156 class RuboCop::AST::NodePattern::Compiler::Debug::NodePatternSubcompiler < ::RuboCop::AST::NodePattern::Compiler::NodePatternSubcompiler include ::RuboCop::AST::NodePattern::Compiler::Debug::InstrumentationSubcompiler end # @api private # -# source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#161 +# source://rubocop-ast/lib/rubocop/ast/node_pattern/compiler/debug.rb#161 class RuboCop::AST::NodePattern::Compiler::Debug::SequenceSubcompiler < ::RuboCop::AST::NodePattern::Compiler::SequenceSubcompiler include ::RuboCop::AST::NodePattern::Compiler::Debug::InstrumentationSubcompiler end @@ -4153,24 +4227,24 @@ end # Compiled node pattern requires a named parameter `trace`, # which should be an instance of this class # -# source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#13 +# source://rubocop-ast/lib/rubocop/ast/node_pattern/compiler/debug.rb#13 class RuboCop::AST::NodePattern::Compiler::Debug::Trace # @return [Trace] a new instance of Trace # - # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#14 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/compiler/debug.rb#14 def initialize; end - # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#18 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/compiler/debug.rb#18 def enter(node_id); end # return nil (not visited), false (not matched) or true (matched) # # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#28 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/compiler/debug.rb#28 def matched?(node_id); end - # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#23 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/compiler/debug.rb#23 def success(node_id); end end @@ -4181,89 +4255,89 @@ end # Doc on how this fits in the compiling process: # /docs/modules/ROOT/pages/node_pattern.adoc # -# source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/node_pattern_subcompiler.rb#13 +# source://rubocop-ast/lib/rubocop/ast/node_pattern/compiler/node_pattern_subcompiler.rb#13 class RuboCop::AST::NodePattern::Compiler::NodePatternSubcompiler < ::RuboCop::AST::NodePattern::Compiler::Subcompiler # @return [NodePatternSubcompiler] a new instance of NodePatternSubcompiler # - # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/node_pattern_subcompiler.rb#16 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/compiler/node_pattern_subcompiler.rb#16 def initialize(compiler, var: T.unsafe(nil), access: T.unsafe(nil), seq_head: T.unsafe(nil)); end # Returns the value of attribute access. # - # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/node_pattern_subcompiler.rb#14 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/compiler/node_pattern_subcompiler.rb#14 def access; end # Returns the value of attribute seq_head. # - # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/node_pattern_subcompiler.rb#14 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/compiler/node_pattern_subcompiler.rb#14 def seq_head; end private - # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/node_pattern_subcompiler.rb#119 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/compiler/node_pattern_subcompiler.rb#119 def access_element; end - # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/node_pattern_subcompiler.rb#123 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/compiler/node_pattern_subcompiler.rb#123 def access_node; end # @param [Array, nil] # @return [String, nil] # - # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/node_pattern_subcompiler.rb#113 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/compiler/node_pattern_subcompiler.rb#113 def compile_args(arg_list, first: T.unsafe(nil)); end - # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/node_pattern_subcompiler.rb#129 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/compiler/node_pattern_subcompiler.rb#129 def compile_guard_clause; end # Compiling helpers # - # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/node_pattern_subcompiler.rb#107 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/compiler/node_pattern_subcompiler.rb#107 def compile_value_match(value); end - # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/node_pattern_subcompiler.rb#133 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/compiler/node_pattern_subcompiler.rb#133 def multiple_access(kind); end - # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/node_pattern_subcompiler.rb#30 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/compiler/node_pattern_subcompiler.rb#30 def visit_ascend; end - # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/node_pattern_subcompiler.rb#58 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/compiler/node_pattern_subcompiler.rb#58 def visit_capture; end - # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/node_pattern_subcompiler.rb#37 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/compiler/node_pattern_subcompiler.rb#37 def visit_descend; end - # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/node_pattern_subcompiler.rb#84 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/compiler/node_pattern_subcompiler.rb#84 def visit_function_call; end - # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/node_pattern_subcompiler.rb#73 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/compiler/node_pattern_subcompiler.rb#73 def visit_intersection; end - # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/node_pattern_subcompiler.rb#25 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/compiler/node_pattern_subcompiler.rb#25 def visit_negation; end - # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/node_pattern_subcompiler.rb#88 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/compiler/node_pattern_subcompiler.rb#88 def visit_node_type; end # Assumes other types are atoms. # - # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/node_pattern_subcompiler.rb#100 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/compiler/node_pattern_subcompiler.rb#100 def visit_other_type; end - # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/node_pattern_subcompiler.rb#80 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/compiler/node_pattern_subcompiler.rb#80 def visit_predicate; end - # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/node_pattern_subcompiler.rb#92 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/compiler/node_pattern_subcompiler.rb#92 def visit_sequence; end - # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/node_pattern_subcompiler.rb#49 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/compiler/node_pattern_subcompiler.rb#49 def visit_unify; end # Lists # - # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/node_pattern_subcompiler.rb#64 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/compiler/node_pattern_subcompiler.rb#64 def visit_union; end - # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/node_pattern_subcompiler.rb#45 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/compiler/node_pattern_subcompiler.rb#45 def visit_wildcard; end end @@ -4276,7 +4350,7 @@ end # Doc on how this fits in the compiling process: # /docs/modules/ROOT/pages/node_pattern.adoc # -# source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/sequence_subcompiler.rb#17 +# source://rubocop-ast/lib/rubocop/ast/node_pattern/compiler/sequence_subcompiler.rb#17 class RuboCop::AST::NodePattern::Compiler::SequenceSubcompiler < ::RuboCop::AST::NodePattern::Compiler::Subcompiler # Calls `compile_sequence`; the actual `compile` method # will be used for the different terms of the sequence. @@ -4284,109 +4358,109 @@ class RuboCop::AST::NodePattern::Compiler::SequenceSubcompiler < ::RuboCop::AST: # # @return [SequenceSubcompiler] a new instance of SequenceSubcompiler # - # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/sequence_subcompiler.rb#25 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/compiler/sequence_subcompiler.rb#25 def initialize(compiler, sequence:, var:); end - # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/sequence_subcompiler.rb#31 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/compiler/sequence_subcompiler.rb#31 def compile_sequence; end # @api private # - # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/sequence_subcompiler.rb#251 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/compiler/sequence_subcompiler.rb#251 def in_sync; end protected - # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/sequence_subcompiler.rb#226 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/compiler/sequence_subcompiler.rb#226 def compile_terms(children = T.unsafe(nil), last_arity = T.unsafe(nil)); end # @api private # - # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/sequence_subcompiler.rb#251 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/compiler/sequence_subcompiler.rb#251 def cur_index; end # yield `sync_code` iff not already in sync # # @yield [code] # - # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/sequence_subcompiler.rb#242 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/compiler/sequence_subcompiler.rb#242 def sync; end private - # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/subcompiler.rb#20 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/compiler/subcompiler.rb#20 def compile(node); end # Compilation helpers # - # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/sequence_subcompiler.rb#165 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/compiler/sequence_subcompiler.rb#165 def compile_and_advance(term); end - # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/sequence_subcompiler.rb#128 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/compiler/sequence_subcompiler.rb#128 def compile_any_order_branches(matched_var); end # @return [Array] Else code, and init code (if any) # - # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/sequence_subcompiler.rb#137 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/compiler/sequence_subcompiler.rb#137 def compile_any_order_else; end - # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/sequence_subcompiler.rb#180 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/compiler/sequence_subcompiler.rb#180 def compile_captured_repetition(child_code, child_captures); end - # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/sequence_subcompiler.rb#119 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/compiler/sequence_subcompiler.rb#119 def compile_case(when_branches, else_code); end - # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/sequence_subcompiler.rb#361 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/compiler/sequence_subcompiler.rb#361 def compile_child_nb_guard(arity_range); end - # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/sequence_subcompiler.rb#319 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/compiler/sequence_subcompiler.rb#319 def compile_cur_index; end - # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/sequence_subcompiler.rb#325 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/compiler/sequence_subcompiler.rb#325 def compile_index(cur = T.unsafe(nil)); end - # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/sequence_subcompiler.rb#353 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/compiler/sequence_subcompiler.rb#353 def compile_loop(term); end - # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/sequence_subcompiler.rb#347 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/compiler/sequence_subcompiler.rb#347 def compile_loop_advance(to = T.unsafe(nil)); end # Assumes `@cur_index` is already updated # - # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/sequence_subcompiler.rb#198 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/compiler/sequence_subcompiler.rb#198 def compile_matched(kind); end - # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/sequence_subcompiler.rb#304 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/compiler/sequence_subcompiler.rb#304 def compile_max_matched; end # @return [String] code that evaluates to `false` if the matched arity is too small # - # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/sequence_subcompiler.rb#270 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/compiler/sequence_subcompiler.rb#270 def compile_min_check; end - # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/sequence_subcompiler.rb#285 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/compiler/sequence_subcompiler.rb#285 def compile_remaining; end # @return [Hash] of {subcompiler => code} # - # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/sequence_subcompiler.rb#373 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/compiler/sequence_subcompiler.rb#373 def compile_union_forks; end - # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/sequence_subcompiler.rb#313 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/compiler/sequence_subcompiler.rb#313 def empty_loop; end - # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/sequence_subcompiler.rb#214 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/compiler/sequence_subcompiler.rb#214 def handle_prev; end # Modifies in place `forks` # Syncs our state # - # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/sequence_subcompiler.rb#400 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/compiler/sequence_subcompiler.rb#400 def merge_forks!(forks); end # Modifies in place `forks` to insure that `cur_{child|index}_var` are ok # - # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/sequence_subcompiler.rb#384 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/compiler/sequence_subcompiler.rb#384 def preserve_union_start(forks); end # E.g. For sequence `(_ _? <_ _>)`, arities are: 1, 0..1, 2 @@ -4394,47 +4468,47 @@ class RuboCop::AST::NodePattern::Compiler::SequenceSubcompiler < ::RuboCop::AST: # # @return [Array] total arities (as Ranges) of remaining children nodes # - # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/sequence_subcompiler.rb#259 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/compiler/sequence_subcompiler.rb#259 def remaining_arities(children, last_arity); end # returns truthy iff `@cur_index` switched to relative from end mode (i.e. < 0) # - # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/sequence_subcompiler.rb#341 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/compiler/sequence_subcompiler.rb#341 def use_index_from_end; end - # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/sequence_subcompiler.rb#88 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/compiler/sequence_subcompiler.rb#88 def visit_any_order; end - # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/sequence_subcompiler.rb#150 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/compiler/sequence_subcompiler.rb#150 def visit_capture; end # Single node patterns are all handled here # - # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/sequence_subcompiler.rb#62 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/compiler/sequence_subcompiler.rb#62 def visit_other_type; end - # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/sequence_subcompiler.rb#78 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/compiler/sequence_subcompiler.rb#78 def visit_repetition; end - # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/sequence_subcompiler.rb#159 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/compiler/sequence_subcompiler.rb#159 def visit_rest; end - # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/sequence_subcompiler.rb#104 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/compiler/sequence_subcompiler.rb#104 def visit_union; end # NOTE: assumes `@cur_index != :seq_head`. Node types using `within_loop` must # have `def in_sequence_head; :raise; end` # - # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/sequence_subcompiler.rb#333 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/compiler/sequence_subcompiler.rb#333 def within_loop; end end # Shift of 1 from standard Ruby indices # -# source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/sequence_subcompiler.rb#18 +# source://rubocop-ast/lib/rubocop/ast/node_pattern/compiler/sequence_subcompiler.rb#18 RuboCop::AST::NodePattern::Compiler::SequenceSubcompiler::DELTA = T.let(T.unsafe(nil), Integer) -# source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/sequence_subcompiler.rb#19 +# source://rubocop-ast/lib/rubocop/ast/node_pattern/compiler/sequence_subcompiler.rb#19 RuboCop::AST::NodePattern::Compiler::SequenceSubcompiler::POSITIVE = T.let(T.unsafe(nil), Proc) # Base class for subcompilers @@ -4443,50 +4517,50 @@ RuboCop::AST::NodePattern::Compiler::SequenceSubcompiler::POSITIVE = T.let(T.uns # Doc on how this fits in the compiling process: # /docs/modules/ROOT/pages/node_pattern.adoc # -# source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/subcompiler.rb#12 +# source://rubocop-ast/lib/rubocop/ast/node_pattern/compiler/subcompiler.rb#12 class RuboCop::AST::NodePattern::Compiler::Subcompiler # @return [Subcompiler] a new instance of Subcompiler # - # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/subcompiler.rb#15 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/compiler/subcompiler.rb#15 def initialize(compiler); end - # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/subcompiler.rb#20 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/compiler/subcompiler.rb#20 def compile(node); end # Returns the value of attribute compiler. # - # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/subcompiler.rb#13 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/compiler/subcompiler.rb#13 def compiler; end private - # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/subcompiler.rb#34 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/compiler/subcompiler.rb#34 def do_compile; end # Returns the value of attribute node. # - # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/subcompiler.rb#32 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/compiler/subcompiler.rb#32 def node; end class << self # @private # - # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/subcompiler.rb#47 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/compiler/subcompiler.rb#47 def inherited(base); end # @private # - # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/subcompiler.rb#42 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/compiler/subcompiler.rb#42 def method_added(method); end # Returns the value of attribute registry. # - # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/subcompiler.rb#40 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/compiler/subcompiler.rb#40 def registry; end end end -# source://rubocop-ast//lib/rubocop/ast/node_pattern.rb#53 +# source://rubocop-ast/lib/rubocop/ast/node_pattern.rb#53 class RuboCop::AST::NodePattern::Invalid < ::StandardError; end # Lexer class for `NodePattern` @@ -4494,164 +4568,164 @@ class RuboCop::AST::NodePattern::Invalid < ::StandardError; end # Doc on how this fits in the compiling process: # /docs/modules/ROOT/pages/node_pattern.adoc # -# source://rubocop-ast//lib/rubocop/ast/node_pattern/lexer.rb#18 +# source://rubocop-ast/lib/rubocop/ast/node_pattern/lexer.rb#18 class RuboCop::AST::NodePattern::Lexer < ::RuboCop::AST::NodePattern::LexerRex # @return [Lexer] a new instance of Lexer # - # source://rubocop-ast//lib/rubocop/ast/node_pattern/lexer.rb#31 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/lexer.rb#31 def initialize(source); end # Returns the value of attribute comments. # - # source://rubocop-ast//lib/rubocop/ast/node_pattern/lexer.rb#29 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/lexer.rb#29 def comments; end # Returns the value of attribute source_buffer. # - # source://rubocop-ast//lib/rubocop/ast/node_pattern/lexer.rb#29 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/lexer.rb#29 def source_buffer; end # Returns the value of attribute tokens. # - # source://rubocop-ast//lib/rubocop/ast/node_pattern/lexer.rb#29 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/lexer.rb#29 def tokens; end private - # source://rubocop-ast//lib/rubocop/ast/node_pattern/lexer.rb#60 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/lexer.rb#60 def do_parse; end # @return [token] # - # source://rubocop-ast//lib/rubocop/ast/node_pattern/lexer.rb#40 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/lexer.rb#40 def emit(type); end - # source://rubocop-ast//lib/rubocop/ast/node_pattern/lexer.rb#48 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/lexer.rb#48 def emit_comment; end - # source://rubocop-ast//lib/rubocop/ast/node_pattern/lexer.rb#52 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/lexer.rb#52 def emit_regexp; end - # source://rubocop-ast//lib/rubocop/ast/node_pattern/lexer.rb#64 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/lexer.rb#64 def token(type, value); end end -# source://rubocop-ast//lib/rubocop/ast/node_pattern/lexer.rb#19 +# source://rubocop-ast/lib/rubocop/ast/node_pattern/lexer.rb#19 RuboCop::AST::NodePattern::Lexer::Error = RuboCop::AST::NodePattern::LexerRex::ScanError -# source://rubocop-ast//lib/rubocop/ast/node_pattern/lexer.rb#21 +# source://rubocop-ast/lib/rubocop/ast/node_pattern/lexer.rb#21 RuboCop::AST::NodePattern::Lexer::REGEXP_OPTIONS = T.let(T.unsafe(nil), Hash) # The generated lexer RuboCop::AST::NodePattern::LexerRex # -# source://rubocop-ast//lib/rubocop/ast/node_pattern/lexer.rex.rb#23 +# source://rubocop-ast/lib/rubocop/ast/node_pattern/lexer.rex.rb#23 class RuboCop::AST::NodePattern::LexerRex # Yields on the current action. # - # source://rubocop-ast//lib/rubocop/ast/node_pattern/lexer.rex.rb#69 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/lexer.rex.rb#69 def action; end # The file name / path # - # source://rubocop-ast//lib/rubocop/ast/node_pattern/lexer.rex.rb#43 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/lexer.rex.rb#43 def filename; end # The file name / path # - # source://rubocop-ast//lib/rubocop/ast/node_pattern/lexer.rex.rb#43 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/lexer.rex.rb#43 def filename=(_arg0); end # The current location in the parse. # - # source://rubocop-ast//lib/rubocop/ast/node_pattern/lexer.rex.rb#103 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/lexer.rex.rb#103 def location; end # The StringScanner for this lexer. # - # source://rubocop-ast//lib/rubocop/ast/node_pattern/lexer.rex.rb#48 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/lexer.rex.rb#48 def match; end # The match groups for the current scan. # - # source://rubocop-ast//lib/rubocop/ast/node_pattern/lexer.rex.rb#60 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/lexer.rex.rb#60 def matches; end # Lex the next token. # - # source://rubocop-ast//lib/rubocop/ast/node_pattern/lexer.rex.rb#112 + # 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#83 + # 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#93 + # 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#76 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/lexer.rex.rb#76 def scanner_class; end # The StringScanner for this lexer. # - # source://rubocop-ast//lib/rubocop/ast/node_pattern/lexer.rex.rb#48 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/lexer.rex.rb#48 def ss; end # The StringScanner for this lexer. # - # source://rubocop-ast//lib/rubocop/ast/node_pattern/lexer.rex.rb#48 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/lexer.rex.rb#48 def ss=(_arg0); end # The current lexical state. # - # source://rubocop-ast//lib/rubocop/ast/node_pattern/lexer.rex.rb#53 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/lexer.rex.rb#53 def state; end # The current lexical state. # - # source://rubocop-ast//lib/rubocop/ast/node_pattern/lexer.rex.rb#53 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/lexer.rex.rb#53 def state=(_arg0); end end -# source://rubocop-ast//lib/rubocop/ast/node_pattern/lexer.rex.rb#31 +# source://rubocop-ast/lib/rubocop/ast/node_pattern/lexer.rex.rb#31 RuboCop::AST::NodePattern::LexerRex::CALL = T.let(T.unsafe(nil), Regexp) # :stopdoc: # -# source://rubocop-ast//lib/rubocop/ast/node_pattern/lexer.rex.rb#27 +# source://rubocop-ast/lib/rubocop/ast/node_pattern/lexer.rex.rb#27 RuboCop::AST::NodePattern::LexerRex::CONST_NAME = T.let(T.unsafe(nil), Regexp) -# source://rubocop-ast//lib/rubocop/ast/node_pattern/lexer.rex.rb#29 +# source://rubocop-ast/lib/rubocop/ast/node_pattern/lexer.rex.rb#29 RuboCop::AST::NodePattern::LexerRex::IDENTIFIER = T.let(T.unsafe(nil), Regexp) # :startdoc: # :stopdoc: # -# source://rubocop-ast//lib/rubocop/ast/node_pattern/lexer.rex.rb#36 +# source://rubocop-ast/lib/rubocop/ast/node_pattern/lexer.rex.rb#36 class RuboCop::AST::NodePattern::LexerRex::LexerError < ::StandardError; end -# source://rubocop-ast//lib/rubocop/ast/node_pattern/lexer.rex.rb#30 +# source://rubocop-ast/lib/rubocop/ast/node_pattern/lexer.rex.rb#30 RuboCop::AST::NodePattern::LexerRex::NODE_TYPE = T.let(T.unsafe(nil), Regexp) -# source://rubocop-ast//lib/rubocop/ast/node_pattern/lexer.rex.rb#33 +# source://rubocop-ast/lib/rubocop/ast/node_pattern/lexer.rex.rb#33 RuboCop::AST::NodePattern::LexerRex::REGEXP = T.let(T.unsafe(nil), Regexp) -# source://rubocop-ast//lib/rubocop/ast/node_pattern/lexer.rex.rb#32 +# source://rubocop-ast/lib/rubocop/ast/node_pattern/lexer.rex.rb#32 RuboCop::AST::NodePattern::LexerRex::REGEXP_BODY = T.let(T.unsafe(nil), Regexp) -# source://rubocop-ast//lib/rubocop/ast/node_pattern/lexer.rex.rb#28 +# source://rubocop-ast/lib/rubocop/ast/node_pattern/lexer.rex.rb#28 RuboCop::AST::NodePattern::LexerRex::SYMBOL_NAME = T.let(T.unsafe(nil), Regexp) -# source://rubocop-ast//lib/rubocop/ast/node_pattern/lexer.rex.rb#37 +# source://rubocop-ast/lib/rubocop/ast/node_pattern/lexer.rex.rb#37 class RuboCop::AST::NodePattern::LexerRex::ScanError < ::RuboCop::AST::NodePattern::LexerRex::LexerError; end # Helpers for defining methods based on a pattern string # -# source://rubocop-ast//lib/rubocop/ast/node_pattern.rb#28 +# source://rubocop-ast/lib/rubocop/ast/node_pattern.rb#28 module RuboCop::AST::NodePattern::Macros # Define a method which applies a pattern to an AST node # @@ -4661,7 +4735,7 @@ module RuboCop::AST::NodePattern::Macros # If the node matches, and no block is provided, the new method will # return the captures, or `true` if there were none. # - # source://rubocop-ast//lib/rubocop/ast/node_pattern.rb#36 + # source://rubocop-ast/lib/rubocop/ast/node_pattern.rb#36 def def_node_matcher(method_name, pattern_str, **keyword_defaults); end # Define a method which recurses over the descendants of an AST node, @@ -4671,70 +4745,70 @@ module RuboCop::AST::NodePattern::Macros # as soon as it finds a descendant which matches. Otherwise, it will # yield all descendants which match. # - # source://rubocop-ast//lib/rubocop/ast/node_pattern.rb#46 + # source://rubocop-ast/lib/rubocop/ast/node_pattern.rb#46 def def_node_search(method_name, pattern_str, **keyword_defaults); end end # Functionality to turn `match_code` into methods/lambda # -# source://rubocop-ast//lib/rubocop/ast/node_pattern/method_definer.rb#7 +# source://rubocop-ast/lib/rubocop/ast/node_pattern/method_definer.rb#7 module RuboCop::AST::NodePattern::MethodDefiner - # source://rubocop-ast//lib/rubocop/ast/node_pattern/method_definer.rb#37 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/method_definer.rb#37 def as_lambda; end - # source://rubocop-ast//lib/rubocop/ast/node_pattern/method_definer.rb#27 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/method_definer.rb#27 def compile_as_lambda; end - # source://rubocop-ast//lib/rubocop/ast/node_pattern/method_definer.rb#8 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/method_definer.rb#8 def def_node_matcher(base, method_name, **defaults); end - # source://rubocop-ast//lib/rubocop/ast/node_pattern/method_definer.rb#21 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/method_definer.rb#21 def def_node_search(base, method_name, **defaults); end private - # source://rubocop-ast//lib/rubocop/ast/node_pattern/method_definer.rb#139 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/method_definer.rb#139 def compile_init; end - # source://rubocop-ast//lib/rubocop/ast/node_pattern/method_definer.rb#50 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/method_definer.rb#50 def def_helper(base, method_name, **defaults); end - # source://rubocop-ast//lib/rubocop/ast/node_pattern/method_definer.rb#114 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/method_definer.rb#114 def emit_keyword_list(forwarding: T.unsafe(nil)); end - # source://rubocop-ast//lib/rubocop/ast/node_pattern/method_definer.rb#132 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/method_definer.rb#132 def emit_lambda_code; end - # source://rubocop-ast//lib/rubocop/ast/node_pattern/method_definer.rb#125 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/method_definer.rb#125 def emit_method_code; end - # source://rubocop-ast//lib/rubocop/ast/node_pattern/method_definer.rb#63 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/method_definer.rb#63 def emit_node_search(method_name); end - # source://rubocop-ast//lib/rubocop/ast/node_pattern/method_definer.rb#74 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/method_definer.rb#74 def emit_node_search_body(method_name, prelude:, on_match:); end - # source://rubocop-ast//lib/rubocop/ast/node_pattern/method_definer.rb#110 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/method_definer.rb#110 def emit_param_list; end - # source://rubocop-ast//lib/rubocop/ast/node_pattern/method_definer.rb#119 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/method_definer.rb#119 def emit_params(*first, forwarding: T.unsafe(nil)); end - # source://rubocop-ast//lib/rubocop/ast/node_pattern/method_definer.rb#100 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/method_definer.rb#100 def emit_retval; end - # source://rubocop-ast//lib/rubocop/ast/node_pattern/method_definer.rb#89 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/method_definer.rb#89 def emit_yield_capture(when_no_capture = T.unsafe(nil), yield_with: T.unsafe(nil)); end # This method minimizes the closure for our method # - # source://rubocop-ast//lib/rubocop/ast/node_pattern/method_definer.rb#44 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/method_definer.rb#44 def wrapping_block(method_name, **defaults); end end # Base class for AST Nodes of a `NodePattern` # -# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#7 +# source://rubocop-ast/lib/rubocop/ast/node_pattern/node.rb#7 class RuboCop::AST::NodePattern::Node < ::Parser::AST::Node include ::RuboCop::AST::Descendence extend ::RuboCop::SimpleForwardable @@ -4743,212 +4817,212 @@ class RuboCop::AST::NodePattern::Node < ::Parser::AST::Node # # @return [Integer, Range] An Integer for fixed length terms, otherwise a Range. # - # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#28 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/node.rb#28 def arity; end # @return [Range] arity as a Range # - # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#68 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/node.rb#68 def arity_range; end # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#22 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/node.rb#22 def capture?; end # @return [Node] most nodes have only one child # - # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#47 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/node.rb#47 def child; end # @return [Array] # - # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#42 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/node.rb#42 def children_nodes; end # @return [Array, nil] replace node with result, or `nil` if no change requested. # - # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#33 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/node.rb#33 def in_sequence_head; end # that matches within a Set (e.g. `42`, `:sym` but not `/regexp/`) # # @return [Boolean] returns true for nodes having a Ruby literal equivalent # - # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#63 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/node.rb#63 def matches_within_set?; end # @return [Integer] nb of captures of that node and its descendants # - # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#52 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/node.rb#52 def nb_captures; end # To be overridden by subclasses # # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#18 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/node.rb#18 def rest?; end - # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#77 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/node.rb#77 def source_range; end # @return [Boolean] returns whether it matches a variable number of elements # - # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#57 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/node.rb#57 def variadic?; end - # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#73 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/node.rb#73 def with(type: T.unsafe(nil), children: T.unsafe(nil), location: T.unsafe(nil)); end end # Node class for `` # -# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#179 +# source://rubocop-ast/lib/rubocop/ast/node_pattern/node.rb#179 class RuboCop::AST::NodePattern::Node::AnyOrder < ::RuboCop::AST::NodePattern::Node include ::RuboCop::AST::NodePattern::Node::ForbidInSeqHead - # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#197 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/node.rb#197 def arity; end # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#189 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/node.rb#189 def ends_with_rest?; end - # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#193 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/node.rb#193 def rest_node; end - # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#185 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/node.rb#185 def term_nodes; end end -# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#182 +# source://rubocop-ast/lib/rubocop/ast/node_pattern/node.rb#182 RuboCop::AST::NodePattern::Node::AnyOrder::ARITIES = T.let(T.unsafe(nil), Hash) # Node class for `$something` # -# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#96 +# source://rubocop-ast/lib/rubocop/ast/node_pattern/node.rb#96 class RuboCop::AST::NodePattern::Node::Capture < ::RuboCop::AST::NodePattern::Node - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/lib/rubocop/ast/utilities/simple_forwardable.rb#9 def arity(*_arg0, **_arg1, &_arg2); end # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#100 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/node.rb#100 def capture?; end - # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#108 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/node.rb#108 def in_sequence_head; end - # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#104 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/node.rb#104 def nb_captures; end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/lib/rubocop/ast/utilities/simple_forwardable.rb#9 def rest?(*_arg0, **_arg1, &_arg2); end end -# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#85 +# source://rubocop-ast/lib/rubocop/ast/node_pattern/node.rb#85 module RuboCop::AST::NodePattern::Node::ForbidInSeqHead # @raise [NodePattern::Invalid] # - # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#86 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/node.rb#86 def in_sequence_head; end end -# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#139 +# source://rubocop-ast/lib/rubocop/ast/node_pattern/node.rb#139 RuboCop::AST::NodePattern::Node::FunctionCall = RuboCop::AST::NodePattern::Node::Predicate -# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#81 +# source://rubocop-ast/lib/rubocop/ast/node_pattern/node.rb#81 RuboCop::AST::NodePattern::Node::INT_TO_RANGE = T.let(T.unsafe(nil), Hash) # Registry # -# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#249 +# source://rubocop-ast/lib/rubocop/ast/node_pattern/node.rb#249 RuboCop::AST::NodePattern::Node::MAP = T.let(T.unsafe(nil), Hash) -# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#11 +# source://rubocop-ast/lib/rubocop/ast/node_pattern/node.rb#11 RuboCop::AST::NodePattern::Node::MATCHES_WITHIN_SET = T.let(T.unsafe(nil), Set) # Node class for `predicate?(:arg, :list)` # -# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#130 +# source://rubocop-ast/lib/rubocop/ast/node_pattern/node.rb#130 class RuboCop::AST::NodePattern::Node::Predicate < ::RuboCop::AST::NodePattern::Node - # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#135 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/node.rb#135 def arg_list; end - # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#131 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/node.rb#131 def method_name; end end # Node class for `int+` # -# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#142 +# source://rubocop-ast/lib/rubocop/ast/node_pattern/node.rb#142 class RuboCop::AST::NodePattern::Node::Repetition < ::RuboCop::AST::NodePattern::Node include ::RuboCop::AST::NodePattern::Node::ForbidInSeqHead - # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#155 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/node.rb#155 def arity; end - # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#145 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/node.rb#145 def operator; end end -# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#149 +# source://rubocop-ast/lib/rubocop/ast/node_pattern/node.rb#149 RuboCop::AST::NodePattern::Node::Repetition::ARITIES = T.let(T.unsafe(nil), Hash) # Node class for `...` # -# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#161 +# source://rubocop-ast/lib/rubocop/ast/node_pattern/node.rb#161 class RuboCop::AST::NodePattern::Node::Rest < ::RuboCop::AST::NodePattern::Node - # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#169 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/node.rb#169 def arity; end - # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#173 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/node.rb#173 def in_sequence_head; end # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#165 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/node.rb#165 def rest?; end end -# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#162 +# source://rubocop-ast/lib/rubocop/ast/node_pattern/node.rb#162 RuboCop::AST::NodePattern::Node::Rest::ARITY = T.let(T.unsafe(nil), Range) # Node class for `(type first second ...)` # -# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#117 +# source://rubocop-ast/lib/rubocop/ast/node_pattern/node.rb#117 class RuboCop::AST::NodePattern::Node::Sequence < ::RuboCop::AST::NodePattern::Node include ::RuboCop::AST::NodePattern::Node::ForbidInSeqHead # @return [Sequence] a new instance of Sequence # - # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#120 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/node.rb#120 def initialize(type, children = T.unsafe(nil), properties = T.unsafe(nil)); end end # A list (potentially empty) of nodes; part of a Union # -# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#205 +# source://rubocop-ast/lib/rubocop/ast/node_pattern/node.rb#205 class RuboCop::AST::NodePattern::Node::Subsequence < ::RuboCop::AST::NodePattern::Node include ::RuboCop::AST::NodePattern::Node::ForbidInSeqHead - # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#208 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/node.rb#208 def arity; end - # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#213 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/node.rb#213 def in_sequence_head; end end # Node class for `{ ... }` # -# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#223 +# source://rubocop-ast/lib/rubocop/ast/node_pattern/node.rb#223 class RuboCop::AST::NodePattern::Node::Union < ::RuboCop::AST::NodePattern::Node - # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#224 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/node.rb#224 def arity; end - # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#231 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/node.rb#231 def in_sequence_head; end end @@ -4958,149 +5032,149 @@ end # Doc on how this fits in the compiling process: # /docs/modules/ROOT/pages/node_pattern.adoc # -# source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#12 +# source://rubocop-ast/lib/rubocop/ast/node_pattern/parser.racc.rb#12 class RuboCop::AST::NodePattern::Parser < ::Racc::Parser extend ::RuboCop::SimpleForwardable # @return [Parser] a new instance of Parser # - # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.rb#19 + # 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#335 + # 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#339 + # 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#345 + # 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#349 + # 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#353 + # 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#357 + # 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#361 + # 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#365 + # 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#369 + # 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#303 + # 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#373 + # 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#377 + # 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#381 + # 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#389 + # 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#395 + # 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#307 + # 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#415 + # 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#425 + # 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#429 + # 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#433 + # 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#311 + # 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#437 + # 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#441 + # 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#445 + # 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#449 + # 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#453 + # 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#457 + # 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#461 + # 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#315 + # 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#319 + # 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#323 + # 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#327 + # 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#331 + # 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#465 + # 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 + # source://rubocop-ast/lib/rubocop/ast/utilities/simple_forwardable.rb#9 def emit_atom(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/lib/rubocop/ast/utilities/simple_forwardable.rb#9 def emit_call(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/lib/rubocop/ast/utilities/simple_forwardable.rb#9 def emit_capture(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/lib/rubocop/ast/utilities/simple_forwardable.rb#9 def emit_list(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/lib/rubocop/ast/utilities/simple_forwardable.rb#9 def emit_unary_op(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/lib/rubocop/ast/utilities/simple_forwardable.rb#9 def emit_union(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.rb#40 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/parser.rb#40 def inspect; end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/lib/rubocop/ast/utilities/simple_forwardable.rb#9 def next_token(*_arg0, **_arg1, &_arg2); end # (Similar API to `parser` gem) @@ -5109,520 +5183,520 @@ class RuboCop::AST::NodePattern::Parser < ::Racc::Parser # @param source_buffer [Parser::Source::Buffer, String] The source buffer to parse. # @return [NodePattern::Node] # - # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.rb#31 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/parser.rb#31 def parse(source); end private # @raise [NodePattern::Invalid] # - # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.rb#50 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/parser.rb#50 def enforce_unary(node); end # Overrides Racc::Parser's method: # # @raise [NodePattern::Invalid] # - # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.rb#59 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/parser.rb#59 def on_error(token, val, _vstack); end end -# source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.rb#16 +# source://rubocop-ast/lib/rubocop/ast/node_pattern/parser.rb#16 RuboCop::AST::NodePattern::Parser::Builder = RuboCop::AST::NodePattern::Builder -# source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.rb#17 +# source://rubocop-ast/lib/rubocop/ast/node_pattern/parser.rb#17 RuboCop::AST::NodePattern::Parser::Lexer = RuboCop::AST::NodePattern::Lexer -# source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#227 +# 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#295 +# 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#244 +# 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 # -# source://rubocop-ast//lib/rubocop/ast/node_pattern/with_meta.rb#8 +# source://rubocop-ast/lib/rubocop/ast/node_pattern/with_meta.rb#8 class RuboCop::AST::NodePattern::Parser::WithMeta < ::RuboCop::AST::NodePattern::Parser # Returns the value of attribute comments. # - # source://rubocop-ast//lib/rubocop/ast/node_pattern/with_meta.rb#98 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/with_meta.rb#98 def comments; end - # source://rubocop-ast//lib/rubocop/ast/node_pattern/with_meta.rb#100 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/with_meta.rb#100 def do_parse; end # Returns the value of attribute tokens. # - # source://rubocop-ast//lib/rubocop/ast/node_pattern/with_meta.rb#98 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/with_meta.rb#98 def tokens; end end # Overrides Builder to emit nodes with locations # -# source://rubocop-ast//lib/rubocop/ast/node_pattern/with_meta.rb#39 +# source://rubocop-ast/lib/rubocop/ast/node_pattern/with_meta.rb#39 class RuboCop::AST::NodePattern::Parser::WithMeta::Builder < ::RuboCop::AST::NodePattern::Builder - # source://rubocop-ast//lib/rubocop/ast/node_pattern/with_meta.rb#40 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/with_meta.rb#40 def emit_atom(type, token); end - # source://rubocop-ast//lib/rubocop/ast/node_pattern/with_meta.rb#61 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/with_meta.rb#61 def emit_call(type, selector_t, args = T.unsafe(nil)); end - # source://rubocop-ast//lib/rubocop/ast/node_pattern/with_meta.rb#55 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/with_meta.rb#55 def emit_list(type, begin_t, children, end_t); end - # source://rubocop-ast//lib/rubocop/ast/node_pattern/with_meta.rb#49 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/with_meta.rb#49 def emit_unary_op(type, operator_t = T.unsafe(nil), *children); end private - # source://rubocop-ast//lib/rubocop/ast/node_pattern/with_meta.rb#81 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/with_meta.rb#81 def join_exprs(left_expr, right_expr); end - # source://rubocop-ast//lib/rubocop/ast/node_pattern/with_meta.rb#75 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/with_meta.rb#75 def loc(token_or_range); end - # source://rubocop-ast//lib/rubocop/ast/node_pattern/with_meta.rb#71 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/with_meta.rb#71 def n(type, children, source_map); end - # source://rubocop-ast//lib/rubocop/ast/node_pattern/with_meta.rb#85 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/with_meta.rb#85 def source_map(token_or_range, begin_t: T.unsafe(nil), end_t: T.unsafe(nil), operator_t: T.unsafe(nil), selector_t: T.unsafe(nil)); end end # Overrides Lexer to token locations and comments # -# source://rubocop-ast//lib/rubocop/ast/node_pattern/with_meta.rb#10 +# source://rubocop-ast/lib/rubocop/ast/node_pattern/with_meta.rb#10 class RuboCop::AST::NodePattern::Parser::WithMeta::Lexer < ::RuboCop::AST::NodePattern::Lexer # @return [Lexer] a new instance of Lexer # - # source://rubocop-ast//lib/rubocop/ast/node_pattern/with_meta.rb#13 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/with_meta.rb#13 def initialize(str_or_buffer); end - # source://rubocop-ast//lib/rubocop/ast/node_pattern/with_meta.rb#27 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/with_meta.rb#27 def emit_comment; end # @return [::Parser::Source::Range] last match's position # - # source://rubocop-ast//lib/rubocop/ast/node_pattern/with_meta.rb#33 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/with_meta.rb#33 def pos; end # Returns the value of attribute source_buffer. # - # source://rubocop-ast//lib/rubocop/ast/node_pattern/with_meta.rb#11 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/with_meta.rb#11 def source_buffer; end - # source://rubocop-ast//lib/rubocop/ast/node_pattern/with_meta.rb#23 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/with_meta.rb#23 def token(type, value); end end # Utility to assign a set of values to a constant # -# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#7 +# source://rubocop-ast/lib/rubocop/ast/node_pattern/sets.rb#7 module RuboCop::AST::NodePattern::Sets class << self - # source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#31 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/sets.rb#31 def [](set); end - # source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#15 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/sets.rb#15 def name(set); end - # source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#22 + # source://rubocop-ast/lib/rubocop/ast/node_pattern/sets.rb#22 def uniq(name); end end end -# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#14 +# source://rubocop-ast/lib/rubocop/ast/node_pattern/sets.rb#14 RuboCop::AST::NodePattern::Sets::MAX = T.let(T.unsafe(nil), Integer) -# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#8 +# source://rubocop-ast/lib/rubocop/ast/node_pattern/sets.rb#8 RuboCop::AST::NodePattern::Sets::REGISTRY = T.let(T.unsafe(nil), Hash) -# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +# source://rubocop-ast/lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_0_1 = T.let(T.unsafe(nil), Set) -# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +# source://rubocop-ast/lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_10_10 = T.let(T.unsafe(nil), Set) -# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +# source://rubocop-ast/lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_1_1 = T.let(T.unsafe(nil), Set) -# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +# source://rubocop-ast/lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_1_2 = T.let(T.unsafe(nil), Set) -# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +# source://rubocop-ast/lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_ADD_DEPENDENCY_ADD_RUNTIME_DEPENDENCY_ADD_DEVELOPMENT_DEPENDENCY = T.let(T.unsafe(nil), Set) -# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +# source://rubocop-ast/lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_ALL_ANY_CLASS_OF_ETC = T.let(T.unsafe(nil), Set) -# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +# source://rubocop-ast/lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_ALL_CONTEXT = T.let(T.unsafe(nil), Set) -# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +# source://rubocop-ast/lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_AND_RETURN_AND_RAISE_AND_THROW_ETC = T.let(T.unsafe(nil), Set) -# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 -RuboCop::AST::NodePattern::Sets::SET_ANY_EMPTY = T.let(T.unsafe(nil), Set) +# source://rubocop-ast/lib/rubocop/ast/node_pattern/sets.rb#10 +RuboCop::AST::NodePattern::Sets::SET_ANY_EMPTY_NONE = T.let(T.unsafe(nil), Set) -# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +# source://rubocop-ast/lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_ANY_EMPTY_NONE_ETC = T.let(T.unsafe(nil), Set) -# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +# source://rubocop-ast/lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_ATTR_READER_ATTR_WRITER_ATTR_ACCESSOR = T.let(T.unsafe(nil), Set) -# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +# source://rubocop-ast/lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_ATTR_READER_ATTR_WRITER_ATTR_ACCESSOR_ATTR = T.let(T.unsafe(nil), Set) -# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +# source://rubocop-ast/lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_BE_EQ_EQL_EQUAL = T.let(T.unsafe(nil), Set) -# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +# source://rubocop-ast/lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_BE_TRUTHY_BE_FALSEY_BE_FALSY_ETC = T.let(T.unsafe(nil), Set) -# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +# source://rubocop-ast/lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_BRANCH_REF_TAG = T.let(T.unsafe(nil), Set) -# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +# source://rubocop-ast/lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_CALL_RUN = T.let(T.unsafe(nil), Set) -# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +# source://rubocop-ast/lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_CAPTURE2_CAPTURE2E_CAPTURE3_ETC = T.let(T.unsafe(nil), Set) -# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +# source://rubocop-ast/lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_CIPHER_DIGEST = T.let(T.unsafe(nil), Set) -# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +# source://rubocop-ast/lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_CLASS_EVAL_INSTANCE_EVAL = T.let(T.unsafe(nil), Set) -# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +# source://rubocop-ast/lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_CLASS_EVAL_MODULE_EVAL = T.let(T.unsafe(nil), Set) -# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +# source://rubocop-ast/lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_CLASS_MODULE = T.let(T.unsafe(nil), Set) -# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +# source://rubocop-ast/lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_CLASS_MODULE_STRUCT = T.let(T.unsafe(nil), Set) -# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +# source://rubocop-ast/lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_CLONE_DUP_FREEZE = T.let(T.unsafe(nil), Set) -# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +# source://rubocop-ast/lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_CONTEXT_SHARED_CONTEXT = T.let(T.unsafe(nil), Set) -# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +# source://rubocop-ast/lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_COUNT_LENGTH_SIZE = T.let(T.unsafe(nil), Set) -# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +# source://rubocop-ast/lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_DEFINE_METHOD_DEFINE_SINGLETON_METHOD = T.let(T.unsafe(nil), Set) -# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +# source://rubocop-ast/lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_DOUBLE_SPY = T.let(T.unsafe(nil), Set) -# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +# source://rubocop-ast/lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_EACH_EXAMPLE = T.let(T.unsafe(nil), Set) -# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +# source://rubocop-ast/lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_EACH_WITH_INDEX_WITH_INDEX = T.let(T.unsafe(nil), Set) -# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +# source://rubocop-ast/lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_EACH_WITH_OBJECT_WITH_OBJECT = T.let(T.unsafe(nil), Set) -# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +# source://rubocop-ast/lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_EQL_EQ_BE = T.let(T.unsafe(nil), Set) -# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +# source://rubocop-ast/lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_ESCAPE_ENCODE_UNESCAPE_DECODE = T.let(T.unsafe(nil), Set) -# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +# source://rubocop-ast/lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_EXACTLY_AT_LEAST_AT_MOST = T.let(T.unsafe(nil), Set) -# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +# source://rubocop-ast/lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_EXIST_EXISTS = T.let(T.unsafe(nil), Set) -# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +# source://rubocop-ast/lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_EXPECT_ALLOW = T.let(T.unsafe(nil), Set) -# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +# source://rubocop-ast/lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_FILETEST_FILE_DIR_SHELL = T.let(T.unsafe(nil), Set) -# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +# source://rubocop-ast/lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_FILE_DIR = T.let(T.unsafe(nil), Set) -# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +# source://rubocop-ast/lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_FILE_FILETEST = T.let(T.unsafe(nil), Set) -# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +# source://rubocop-ast/lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_FILE_TEMPFILE = T.let(T.unsafe(nil), Set) -# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +# source://rubocop-ast/lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_FILE_TEMPFILE_STRINGIO = T.let(T.unsafe(nil), Set) -# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +# source://rubocop-ast/lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_FIRST_LAST__ETC = T.let(T.unsafe(nil), Set) -# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +# source://rubocop-ast/lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_FIXNUM_BIGNUM = T.let(T.unsafe(nil), Set) -# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +# source://rubocop-ast/lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_FORMAT_SPRINTF_PRINTF = T.let(T.unsafe(nil), Set) -# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +# source://rubocop-ast/lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_GETHOSTBYADDR_GETHOSTBYNAME = T.let(T.unsafe(nil), Set) -# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +# source://rubocop-ast/lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_GSUB_GSUB = T.let(T.unsafe(nil), Set) -# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +# source://rubocop-ast/lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_IF_UNLESS = T.let(T.unsafe(nil), Set) -# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +# source://rubocop-ast/lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_INCLUDE_EXTEND_PREPEND = T.let(T.unsafe(nil), Set) -# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +# source://rubocop-ast/lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_INCLUDE_PREPEND = T.let(T.unsafe(nil), Set) -# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +# source://rubocop-ast/lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_INSTANCE_EVAL_CLASS_EVAL_MODULE_EVAL = T.let(T.unsafe(nil), Set) -# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +# source://rubocop-ast/lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_INSTANCE_EXEC_CLASS_EXEC_MODULE_EXEC = T.let(T.unsafe(nil), Set) -# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +# source://rubocop-ast/lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_IS_EXPECTED_SHOULD_SHOULD_NOT = T.let(T.unsafe(nil), Set) -# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +# source://rubocop-ast/lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_KEYS_VALUES = T.let(T.unsafe(nil), Set) -# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +# source://rubocop-ast/lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_KEY_HAS_KEY_FETCH_ETC = T.let(T.unsafe(nil), Set) -# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +# source://rubocop-ast/lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_LAMBDA_PROC = T.let(T.unsafe(nil), Set) -# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +# source://rubocop-ast/lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_LAST_FIRST = T.let(T.unsafe(nil), Set) -# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +# source://rubocop-ast/lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_LENGTH_SIZE = T.let(T.unsafe(nil), Set) -# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +# source://rubocop-ast/lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_LOAD_RESTORE = T.let(T.unsafe(nil), Set) -# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +# source://rubocop-ast/lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_MAP_COLLECT = T.let(T.unsafe(nil), Set) -# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +# source://rubocop-ast/lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_MAP_FILTER_MAP = T.let(T.unsafe(nil), Set) -# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +# source://rubocop-ast/lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_MODULE_FUNCTION_RUBY2_KEYWORDS = T.let(T.unsafe(nil), Set) -# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +# source://rubocop-ast/lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_NEW_ = T.let(T.unsafe(nil), Set) -# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +# source://rubocop-ast/lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_NEW_COMPILE = T.let(T.unsafe(nil), Set) -# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +# source://rubocop-ast/lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_NEW_FROM_AMOUNT_FROM_CENTS = T.let(T.unsafe(nil), Set) -# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +# source://rubocop-ast/lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_NEW_OPEN = T.let(T.unsafe(nil), Set) -# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +# source://rubocop-ast/lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_NIL_ = T.let(T.unsafe(nil), Set) -# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +# source://rubocop-ast/lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_PIPELINE_PIPELINE_R_PIPELINE_RW_ETC = T.let(T.unsafe(nil), Set) -# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 -RuboCop::AST::NodePattern::Sets::SET_PRESENT_ANY_BLANK_EMPTY = T.let(T.unsafe(nil), Set) +# source://rubocop-ast/lib/rubocop/ast/node_pattern/sets.rb#10 +RuboCop::AST::NodePattern::Sets::SET_PRESENT_ANY_BLANK_ETC = T.let(T.unsafe(nil), Set) -# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +# source://rubocop-ast/lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_PRIVATE_PROTECTED_PRIVATE_CLASS_METHOD = T.let(T.unsafe(nil), Set) -# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +# source://rubocop-ast/lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_PRIVATE_PROTECTED_PUBLIC = T.let(T.unsafe(nil), Set) -# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +# source://rubocop-ast/lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_PROP_CONST = T.let(T.unsafe(nil), Set) -# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +# source://rubocop-ast/lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_PUBLIC_CONSTANT_PRIVATE_CONSTANT = T.let(T.unsafe(nil), Set) -# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +# source://rubocop-ast/lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_PUBLIC_PROTECTED_PRIVATE_MODULE_FUNCTION = T.let(T.unsafe(nil), Set) -# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +# source://rubocop-ast/lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_RAISE_FAIL = T.let(T.unsafe(nil), Set) -# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +# source://rubocop-ast/lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_RAISE_FAIL_THROW_ETC = T.let(T.unsafe(nil), Set) -# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +# source://rubocop-ast/lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_READ_BINREAD = T.let(T.unsafe(nil), Set) -# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +# source://rubocop-ast/lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_RECEIVE_HAVE_RECEIVED = T.let(T.unsafe(nil), Set) -# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +# source://rubocop-ast/lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_RECEIVE_MESSAGE_CHAIN_STUB_CHAIN = T.let(T.unsafe(nil), Set) -# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +# source://rubocop-ast/lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_RECEIVE_RECEIVE_MESSAGES_RECEIVE_MESSAGE_CHAIN_HAVE_RECEIVED = T.let(T.unsafe(nil), Set) -# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +# source://rubocop-ast/lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_RECEIVE_RECEIVE_MESSAGE_CHAIN = T.let(T.unsafe(nil), Set) -# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +# source://rubocop-ast/lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_REDUCE_INJECT = T.let(T.unsafe(nil), Set) -# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +# source://rubocop-ast/lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_REJECT_REJECT = T.let(T.unsafe(nil), Set) -# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +# 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) -# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +# source://rubocop-ast/lib/rubocop/ast/node_pattern/sets.rb#10 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 +# source://rubocop-ast/lib/rubocop/ast/node_pattern/sets.rb#10 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 +# 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) -# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +# source://rubocop-ast/lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_SEND___SEND__ = T.let(T.unsafe(nil), Set) -# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +# source://rubocop-ast/lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_SHOULD_SHOULD_NOT = T.let(T.unsafe(nil), Set) -# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +# source://rubocop-ast/lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_SIG_HELPERS = T.let(T.unsafe(nil), Set) -# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +# source://rubocop-ast/lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_SKIP_PENDING = T.let(T.unsafe(nil), Set) -# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +# source://rubocop-ast/lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_SORT_BY_SORT = T.let(T.unsafe(nil), Set) -# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +# source://rubocop-ast/lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_SPAWN_SYSTEM = T.let(T.unsafe(nil), Set) -# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +# source://rubocop-ast/lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_SPRINTF_FORMAT = T.let(T.unsafe(nil), Set) -# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +# source://rubocop-ast/lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_STRUCT_CLASS = T.let(T.unsafe(nil), Set) -# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +# source://rubocop-ast/lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_STRUCT_IMMUTABLESTRUCT = T.let(T.unsafe(nil), Set) -# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +# source://rubocop-ast/lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_STRUCT_IMMUTABLESTRUCT_INEXACTSTRUCT = T.let(T.unsafe(nil), Set) -# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +# source://rubocop-ast/lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_SUCC_PRED_NEXT = T.let(T.unsafe(nil), Set) -# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +# source://rubocop-ast/lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_TO_ENUM_ENUM_FOR = T.let(T.unsafe(nil), Set) -# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +# source://rubocop-ast/lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_TO_H_TO_HASH = T.let(T.unsafe(nil), Set) -# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +# source://rubocop-ast/lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_TO_I_TO_F_TO_C_TO_R = T.let(T.unsafe(nil), Set) -# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +# source://rubocop-ast/lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_TRUE_FALSE = T.let(T.unsafe(nil), Set) -# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +# source://rubocop-ast/lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_ZERO_EMPTY = T.let(T.unsafe(nil), Set) -# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +# source://rubocop-ast/lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_ZERO_POSITIVE_NEGATIVE = T.let(T.unsafe(nil), Set) -# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +# source://rubocop-ast/lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET__ = T.let(T.unsafe(nil), Set) -# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +# source://rubocop-ast/lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET__AT_SLICE = T.let(T.unsafe(nil), Set) -# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +# source://rubocop-ast/lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET__EQUAL_EQL = T.let(T.unsafe(nil), Set) -# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +# source://rubocop-ast/lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET__FETCH = T.let(T.unsafe(nil), Set) -# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +# source://rubocop-ast/lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET__GLOB = T.let(T.unsafe(nil), Set) -# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +# source://rubocop-ast/lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET__PUSH_APPEND = T.let(T.unsafe(nil), Set) -# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +# source://rubocop-ast/lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET___ = T.let(T.unsafe(nil), Set) -# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +# source://rubocop-ast/lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET___2 = T.let(T.unsafe(nil), Set) -# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +# source://rubocop-ast/lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET___3 = T.let(T.unsafe(nil), Set) -# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +# source://rubocop-ast/lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET___4 = T.let(T.unsafe(nil), Set) -# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +# source://rubocop-ast/lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET___5 = T.let(T.unsafe(nil), Set) -# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +# source://rubocop-ast/lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET___6 = T.let(T.unsafe(nil), Set) -# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +# source://rubocop-ast/lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET___7 = T.let(T.unsafe(nil), Set) -# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +# source://rubocop-ast/lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET___8 = T.let(T.unsafe(nil), Set) -# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +# source://rubocop-ast/lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET___EQL_ETC = T.let(T.unsafe(nil), Set) -# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +# source://rubocop-ast/lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET___EQL_INCLUDE = T.let(T.unsafe(nil), Set) -# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +# source://rubocop-ast/lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET___METHOD_____CALLEE__ = T.let(T.unsafe(nil), Set) -# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +# source://rubocop-ast/lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET____ = T.let(T.unsafe(nil), Set) -# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +# source://rubocop-ast/lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET____2 = T.let(T.unsafe(nil), Set) -# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +# source://rubocop-ast/lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET____ETC = T.let(T.unsafe(nil), Set) -# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +# source://rubocop-ast/lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET____ETC_2 = T.let(T.unsafe(nil), Set) -# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +# source://rubocop-ast/lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET____ETC_3 = T.let(T.unsafe(nil), Set) -# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +# source://rubocop-ast/lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET____ETC_4 = T.let(T.unsafe(nil), Set) -# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +# source://rubocop-ast/lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_____2 = T.let(T.unsafe(nil), Set) -# source://rubocop-ast//lib/rubocop/ast/node_pattern.rb#55 +# source://rubocop-ast/lib/rubocop/ast/node_pattern.rb#55 RuboCop::AST::NodePattern::VAR = T.let(T.unsafe(nil), String) # Common functionality for primitive numeric nodes: `int`, `float`, `rational`... # -# source://rubocop-ast//lib/rubocop/ast/node/mixin/numeric_node.rb#6 +# source://rubocop-ast/lib/rubocop/ast/node/mixin/numeric_node.rb#6 module RuboCop::AST::NumericNode # Checks whether this is literal has a sign. # @@ -5631,55 +5705,55 @@ module RuboCop::AST::NumericNode # +42 # @return [Boolean] whether this literal has a sign. # - # source://rubocop-ast//lib/rubocop/ast/node/mixin/numeric_node.rb#17 + # source://rubocop-ast/lib/rubocop/ast/node/mixin/numeric_node.rb#17 def sign?; end end -# source://rubocop-ast//lib/rubocop/ast/node/mixin/numeric_node.rb#7 +# source://rubocop-ast/lib/rubocop/ast/node/mixin/numeric_node.rb#7 RuboCop::AST::NumericNode::SIGN_REGEX = T.let(T.unsafe(nil), Regexp) # A node extension for `op_asgn` 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/op_asgn_node.rb#8 +# source://rubocop-ast/lib/rubocop/ast/node/op_asgn_node.rb#8 class RuboCop::AST::OpAsgnNode < ::RuboCop::AST::Node # @return [AsgnNode] the assignment node # - # source://rubocop-ast//lib/rubocop/ast/node/op_asgn_node.rb#10 + # source://rubocop-ast/lib/rubocop/ast/node/op_asgn_node.rb#10 def assignment_node; 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 + # 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 + # 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#18 + # 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#25 + # 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 + # source://rubocop-ast/lib/rubocop/ast/node/op_asgn_node.rb#32 def rhs; end end @@ -5687,13 +5761,13 @@ end # 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/or_asgn_node.rb#8 +# source://rubocop-ast/lib/rubocop/ast/node/or_asgn_node.rb#8 class RuboCop::AST::OrAsgnNode < ::RuboCop::AST::OpAsgnNode # The operator being used for assignment as a symbol. # # @return [Symbol] the assignment operator # - # source://rubocop-ast//lib/rubocop/ast/node/or_asgn_node.rb#12 + # source://rubocop-ast/lib/rubocop/ast/node/or_asgn_node.rb#12 def operator; end end @@ -5701,7 +5775,7 @@ end # node when the builder constructs the AST, making its methods available # to all `or` nodes within RuboCop. # -# source://rubocop-ast//lib/rubocop/ast/node/or_node.rb#8 +# source://rubocop-ast/lib/rubocop/ast/node/or_node.rb#8 class RuboCop::AST::OrNode < ::RuboCop::AST::Node include ::RuboCop::AST::BinaryOperatorNode include ::RuboCop::AST::PredicateOperatorNode @@ -5711,7 +5785,7 @@ class RuboCop::AST::OrNode < ::RuboCop::AST::Node # # @return [String] the alternate of the `or` operator # - # source://rubocop-ast//lib/rubocop/ast/node/or_node.rb#16 + # source://rubocop-ast/lib/rubocop/ast/node/or_node.rb#16 def alternate_operator; end # Returns the inverse keyword of the `or` node as a string. @@ -5719,7 +5793,7 @@ class RuboCop::AST::OrNode < ::RuboCop::AST::Node # # @return [String] the inverse of the `or` operator # - # source://rubocop-ast//lib/rubocop/ast/node/or_node.rb#24 + # source://rubocop-ast/lib/rubocop/ast/node/or_node.rb#24 def inverse_operator; end end @@ -5727,7 +5801,7 @@ end # node when the builder constructs the AST, making its methods available # to all `pair` nodes within RuboCop. # -# source://rubocop-ast//lib/rubocop/ast/node/pair_node.rb#8 +# source://rubocop-ast/lib/rubocop/ast/node/pair_node.rb#8 class RuboCop::AST::PairNode < ::RuboCop::AST::Node include ::RuboCop::AST::HashElementNode @@ -5735,7 +5809,7 @@ class RuboCop::AST::PairNode < ::RuboCop::AST::Node # # @return [Boolean] whether this `pair` uses a colon delimiter # - # source://rubocop-ast//lib/rubocop/ast/node/pair_node.rb#30 + # source://rubocop-ast/lib/rubocop/ast/node/pair_node.rb#30 def colon?; end # Returns the delimiter of the `pair` as a string. Returns `=>` for a @@ -5744,14 +5818,14 @@ class RuboCop::AST::PairNode < ::RuboCop::AST::Node # @param with_spacing [Boolean] whether to include spacing # @return [String] the delimiter of the `pair` # - # source://rubocop-ast//lib/rubocop/ast/node/pair_node.rb#39 + # source://rubocop-ast/lib/rubocop/ast/node/pair_node.rb#39 def delimiter(*deprecated, with_spacing: T.unsafe(nil)); end # Checks whether the `pair` uses a hash rocket delimiter. # # @return [Boolean] whether this `pair` uses a hash rocket delimiter # - # source://rubocop-ast//lib/rubocop/ast/node/pair_node.rb#23 + # source://rubocop-ast/lib/rubocop/ast/node/pair_node.rb#23 def hash_rocket?; end # Returns the inverse delimiter of the `pair` as a string. @@ -5759,34 +5833,34 @@ class RuboCop::AST::PairNode < ::RuboCop::AST::Node # @param with_spacing [Boolean] whether to include spacing # @return [String] the inverse delimiter of the `pair` # - # source://rubocop-ast//lib/rubocop/ast/node/pair_node.rb#51 + # source://rubocop-ast/lib/rubocop/ast/node/pair_node.rb#51 def inverse_delimiter(*deprecated, with_spacing: T.unsafe(nil)); end # Checks whether the `pair` uses hash value omission. # # @return [Boolean] whether this `pair` uses hash value omission # - # source://rubocop-ast//lib/rubocop/ast/node/pair_node.rb#69 + # source://rubocop-ast/lib/rubocop/ast/node/pair_node.rb#69 def value_omission?; end # Checks whether the value starts on its own line. # # @return [Boolean] whether the value in the `pair` starts its own line # - # source://rubocop-ast//lib/rubocop/ast/node/pair_node.rb#62 + # source://rubocop-ast/lib/rubocop/ast/node/pair_node.rb#62 def value_on_new_line?; end end -# source://rubocop-ast//lib/rubocop/ast/node/pair_node.rb#15 +# source://rubocop-ast/lib/rubocop/ast/node/pair_node.rb#15 RuboCop::AST::PairNode::COLON = T.let(T.unsafe(nil), String) -# source://rubocop-ast//lib/rubocop/ast/node/pair_node.rb#11 +# source://rubocop-ast/lib/rubocop/ast/node/pair_node.rb#11 RuboCop::AST::PairNode::HASH_ROCKET = T.let(T.unsafe(nil), String) -# source://rubocop-ast//lib/rubocop/ast/node/pair_node.rb#17 +# source://rubocop-ast/lib/rubocop/ast/node/pair_node.rb#17 RuboCop::AST::PairNode::SPACED_COLON = T.let(T.unsafe(nil), String) -# source://rubocop-ast//lib/rubocop/ast/node/pair_node.rb#13 +# source://rubocop-ast/lib/rubocop/ast/node/pair_node.rb#13 RuboCop::AST::PairNode::SPACED_HASH_ROCKET = T.let(T.unsafe(nil), String) # Requires implementing `arguments`. @@ -5795,13 +5869,13 @@ RuboCop::AST::PairNode::SPACED_HASH_ROCKET = T.let(T.unsafe(nil), String) # `send`, `super`, `zsuper`, `def`, `defs` # and (modern only): `index`, `indexasgn`, `lambda` # -# source://rubocop-ast//lib/rubocop/ast/node/mixin/parameterized_node.rb#10 +# source://rubocop-ast/lib/rubocop/ast/node/mixin/parameterized_node.rb#10 module RuboCop::AST::ParameterizedNode # Checks whether this node has any arguments. # # @return [Boolean] whether this node has any arguments # - # source://rubocop-ast//lib/rubocop/ast/node/mixin/parameterized_node.rb#40 + # source://rubocop-ast/lib/rubocop/ast/node/mixin/parameterized_node.rb#40 def arguments?; end # Whether the last argument of the node is a block pass, @@ -5809,7 +5883,7 @@ module RuboCop::AST::ParameterizedNode # # @return [Boolean] whether the last argument of the node is a block pass # - # source://rubocop-ast//lib/rubocop/ast/node/mixin/parameterized_node.rb#58 + # source://rubocop-ast/lib/rubocop/ast/node/mixin/parameterized_node.rb#58 def block_argument?; end # A shorthand for getting the first argument of the node. @@ -5818,7 +5892,7 @@ module RuboCop::AST::ParameterizedNode # @return [Node, nil] the first argument of the node, # or `nil` if there are no arguments # - # source://rubocop-ast//lib/rubocop/ast/node/mixin/parameterized_node.rb#24 + # source://rubocop-ast/lib/rubocop/ast/node/mixin/parameterized_node.rb#24 def first_argument; end # A shorthand for getting the last argument of the node. @@ -5827,7 +5901,7 @@ module RuboCop::AST::ParameterizedNode # @return [Node, nil] the last argument of the node, # or `nil` if there are no arguments # - # source://rubocop-ast//lib/rubocop/ast/node/mixin/parameterized_node.rb#33 + # source://rubocop-ast/lib/rubocop/ast/node/mixin/parameterized_node.rb#33 def last_argument; end # Checks whether this node's arguments are wrapped in parentheses. @@ -5835,7 +5909,7 @@ module RuboCop::AST::ParameterizedNode # @return [Boolean] whether this node's arguments are # wrapped in parentheses # - # source://rubocop-ast//lib/rubocop/ast/node/mixin/parameterized_node.rb#15 + # source://rubocop-ast/lib/rubocop/ast/node/mixin/parameterized_node.rb#15 def parenthesized?; end # Checks whether any argument of the node is a splat @@ -5843,7 +5917,7 @@ module RuboCop::AST::ParameterizedNode # # @return [Boolean] whether the node is a splat argument # - # source://rubocop-ast//lib/rubocop/ast/node/mixin/parameterized_node.rb#48 + # source://rubocop-ast/lib/rubocop/ast/node/mixin/parameterized_node.rb#48 def rest_argument?; end # Checks whether any argument of the node is a splat @@ -5851,7 +5925,7 @@ module RuboCop::AST::ParameterizedNode # # @return [Boolean] whether the node is a splat argument # - # source://rubocop-ast//lib/rubocop/ast/node/mixin/parameterized_node.rb#48 + # source://rubocop-ast/lib/rubocop/ast/node/mixin/parameterized_node.rb#48 def splat_argument?; end end @@ -5860,20 +5934,20 @@ end # Implements `arguments` as `children[first_argument_index..-1]` # and optimizes other calls # -# source://rubocop-ast//lib/rubocop/ast/node/mixin/parameterized_node.rb#83 +# source://rubocop-ast/lib/rubocop/ast/node/mixin/parameterized_node.rb#83 module RuboCop::AST::ParameterizedNode::RestArguments include ::RuboCop::AST::ParameterizedNode # @return [Array] arguments, if any # - # source://rubocop-ast//lib/rubocop/ast/node/mixin/parameterized_node.rb#89 + # source://rubocop-ast/lib/rubocop/ast/node/mixin/parameterized_node.rb#89 def arguments; end # Checks whether this node has any arguments. # # @return [Boolean] whether this node has any arguments # - # source://rubocop-ast//lib/rubocop/ast/node/mixin/parameterized_node.rb#119 + # source://rubocop-ast/lib/rubocop/ast/node/mixin/parameterized_node.rb#119 def arguments?; end # A shorthand for getting the first argument of the node. @@ -5882,7 +5956,7 @@ module RuboCop::AST::ParameterizedNode::RestArguments # @return [Node, nil] the first argument of the node, # or `nil` if there are no arguments # - # source://rubocop-ast//lib/rubocop/ast/node/mixin/parameterized_node.rb#103 + # source://rubocop-ast/lib/rubocop/ast/node/mixin/parameterized_node.rb#103 def first_argument; end # A shorthand for getting the last argument of the node. @@ -5891,77 +5965,77 @@ module RuboCop::AST::ParameterizedNode::RestArguments # @return [Node, nil] the last argument of the node, # or `nil` if there are no arguments # - # source://rubocop-ast//lib/rubocop/ast/node/mixin/parameterized_node.rb#112 + # source://rubocop-ast/lib/rubocop/ast/node/mixin/parameterized_node.rb#112 def last_argument; end end -# source://rubocop-ast//lib/rubocop/ast/node/mixin/parameterized_node.rb#86 +# source://rubocop-ast/lib/rubocop/ast/node/mixin/parameterized_node.rb#86 RuboCop::AST::ParameterizedNode::RestArguments::EMPTY_ARGUMENTS = T.let(T.unsafe(nil), Array) # A specialized `ParameterizedNode` for node that have a single child # containing either `nil`, an argument, or a `begin` node with all the # arguments # -# source://rubocop-ast//lib/rubocop/ast/node/mixin/parameterized_node.rb#66 +# source://rubocop-ast/lib/rubocop/ast/node/mixin/parameterized_node.rb#66 module RuboCop::AST::ParameterizedNode::WrappedArguments include ::RuboCop::AST::ParameterizedNode # @return [Array] The arguments of the node. # - # source://rubocop-ast//lib/rubocop/ast/node/mixin/parameterized_node.rb#69 + # source://rubocop-ast/lib/rubocop/ast/node/mixin/parameterized_node.rb#69 def arguments; end end # Common functionality for nodes that are predicates: # `or`, `and` ... # -# source://rubocop-ast//lib/rubocop/ast/node/mixin/predicate_operator_node.rb#7 +# source://rubocop-ast/lib/rubocop/ast/node/mixin/predicate_operator_node.rb#7 module RuboCop::AST::PredicateOperatorNode # Checks whether this is a logical operator. # # @return [Boolean] whether this is a logical operator # - # source://rubocop-ast//lib/rubocop/ast/node/mixin/predicate_operator_node.rb#27 + # source://rubocop-ast/lib/rubocop/ast/node/mixin/predicate_operator_node.rb#27 def logical_operator?; end # Returns the operator as a string. # # @return [String] the operator # - # source://rubocop-ast//lib/rubocop/ast/node/mixin/predicate_operator_node.rb#20 + # source://rubocop-ast/lib/rubocop/ast/node/mixin/predicate_operator_node.rb#20 def operator; end # Checks whether this is a semantic operator. # # @return [Boolean] whether this is a semantic operator # - # source://rubocop-ast//lib/rubocop/ast/node/mixin/predicate_operator_node.rb#34 + # source://rubocop-ast/lib/rubocop/ast/node/mixin/predicate_operator_node.rb#34 def semantic_operator?; end end -# source://rubocop-ast//lib/rubocop/ast/node/mixin/predicate_operator_node.rb#8 +# source://rubocop-ast/lib/rubocop/ast/node/mixin/predicate_operator_node.rb#8 RuboCop::AST::PredicateOperatorNode::LOGICAL_AND = T.let(T.unsafe(nil), String) -# source://rubocop-ast//lib/rubocop/ast/node/mixin/predicate_operator_node.rb#12 +# source://rubocop-ast/lib/rubocop/ast/node/mixin/predicate_operator_node.rb#12 RuboCop::AST::PredicateOperatorNode::LOGICAL_OR = T.let(T.unsafe(nil), String) -# source://rubocop-ast//lib/rubocop/ast/node/mixin/predicate_operator_node.rb#10 +# source://rubocop-ast/lib/rubocop/ast/node/mixin/predicate_operator_node.rb#10 RuboCop::AST::PredicateOperatorNode::SEMANTIC_AND = T.let(T.unsafe(nil), String) -# source://rubocop-ast//lib/rubocop/ast/node/mixin/predicate_operator_node.rb#14 +# source://rubocop-ast/lib/rubocop/ast/node/mixin/predicate_operator_node.rb#14 RuboCop::AST::PredicateOperatorNode::SEMANTIC_OR = T.let(T.unsafe(nil), String) # A node extension for `procarg0` nodes. # This will be used in place of a plain node when the builder constructs # the AST, making its methods available to all `arg` nodes within RuboCop. # -# source://rubocop-ast//lib/rubocop/ast/node/procarg0_node.rb#8 +# source://rubocop-ast/lib/rubocop/ast/node/procarg0_node.rb#8 class RuboCop::AST::Procarg0Node < ::RuboCop::AST::ArgNode # Returns the name of an argument. # # @return [Symbol, nil] the name of the argument # - # source://rubocop-ast//lib/rubocop/ast/node/procarg0_node.rb#12 + # source://rubocop-ast/lib/rubocop/ast/node/procarg0_node.rb#12 def name; end end @@ -5969,42 +6043,42 @@ end # and other information such as disabled lines for cops. # It also provides a convenient way to access source lines. # -# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#10 +# source://rubocop-ast/lib/rubocop/ast/processed_source.rb#10 class RuboCop::AST::ProcessedSource # @return [ProcessedSource] a new instance of ProcessedSource # - # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#28 + # source://rubocop-ast/lib/rubocop/ast/processed_source.rb#28 def initialize(source, ruby_version, path = T.unsafe(nil), parser_engine: T.unsafe(nil)); end - # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#72 + # source://rubocop-ast/lib/rubocop/ast/processed_source.rb#72 def [](*args); end # Returns the value of attribute ast. # - # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#20 + # source://rubocop-ast/lib/rubocop/ast/processed_source.rb#20 def ast; end - # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#50 + # source://rubocop-ast/lib/rubocop/ast/processed_source.rb#50 def ast_with_comments; end # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#111 + # source://rubocop-ast/lib/rubocop/ast/processed_source.rb#111 def blank?; end # Returns the value of attribute buffer. # - # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#20 + # source://rubocop-ast/lib/rubocop/ast/processed_source.rb#20 def buffer; end # Raw source checksum for tracking infinite loops. # - # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#83 + # source://rubocop-ast/lib/rubocop/ast/processed_source.rb#83 def checksum; end # @return [Comment, nil] the comment at that line, if any. # - # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#116 + # source://rubocop-ast/lib/rubocop/ast/processed_source.rb#116 def comment_at_line(line); end # Consider using `each_comment_in_lines` instead @@ -6012,193 +6086,193 @@ class RuboCop::AST::ProcessedSource # @deprecated use contains_comment? # @return [Boolean] if any of the lines in the given `source_range` has a comment. # - # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#138 + # source://rubocop-ast/lib/rubocop/ast/processed_source.rb#138 def commented?(source_range); end # Returns the value of attribute comments. # - # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#20 + # source://rubocop-ast/lib/rubocop/ast/processed_source.rb#20 def comments; end # Should have been called `comments_before_or_at_line`. Doubtful it has of any valid use. # # @deprecated Use `each_comment_in_lines` # - # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#146 + # source://rubocop-ast/lib/rubocop/ast/processed_source.rb#146 def comments_before_line(line); end # Consider using `each_comment_in_lines` instead # # @return [Boolean] if any of the lines in the given `source_range` has a comment. # - # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#138 + # source://rubocop-ast/lib/rubocop/ast/processed_source.rb#138 def contains_comment?(source_range); end - # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#160 + # source://rubocop-ast/lib/rubocop/ast/processed_source.rb#160 def current_line(token); end # Returns the value of attribute diagnostics. # - # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#20 + # source://rubocop-ast/lib/rubocop/ast/processed_source.rb#20 def diagnostics; end # @deprecated Use `comments.each` # - # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#88 + # source://rubocop-ast/lib/rubocop/ast/processed_source.rb#88 def each_comment(&block); end # Enumerates on the comments contained with the given `line_range` # - # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#126 + # source://rubocop-ast/lib/rubocop/ast/processed_source.rb#126 def each_comment_in_lines(line_range); end # @deprecated Use `tokens.each` # - # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#98 + # source://rubocop-ast/lib/rubocop/ast/processed_source.rb#98 def each_token(&block); end - # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#107 + # source://rubocop-ast/lib/rubocop/ast/processed_source.rb#107 def file_path; end # @deprecated Use `comment_at_line`, `each_comment_in_lines`, or `comments.find` # - # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#93 + # source://rubocop-ast/lib/rubocop/ast/processed_source.rb#93 def find_comment(&block); end # @deprecated Use `tokens.find` # - # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#103 + # source://rubocop-ast/lib/rubocop/ast/processed_source.rb#103 def find_token(&block); end - # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#181 + # source://rubocop-ast/lib/rubocop/ast/processed_source.rb#181 def first_token_of(range_or_node); end - # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#164 + # source://rubocop-ast/lib/rubocop/ast/processed_source.rb#164 def following_line(token); end - # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#185 + # source://rubocop-ast/lib/rubocop/ast/processed_source.rb#185 def last_token_of(range_or_node); end - # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#168 + # source://rubocop-ast/lib/rubocop/ast/processed_source.rb#168 def line_indentation(line_number); end # @return [Boolean] if the given line number has a comment. # - # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#121 + # source://rubocop-ast/lib/rubocop/ast/processed_source.rb#121 def line_with_comment?(line); end # Returns the source lines, line break characters removed, excluding a # possible __END__ and everything that comes after. # - # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#58 + # source://rubocop-ast/lib/rubocop/ast/processed_source.rb#58 def lines; end # Returns the value of attribute parser_engine. # - # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#20 + # source://rubocop-ast/lib/rubocop/ast/processed_source.rb#20 def parser_engine; end # Returns the value of attribute parser_error. # - # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#20 + # source://rubocop-ast/lib/rubocop/ast/processed_source.rb#20 def parser_error; end # Returns the value of attribute path. # - # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#20 + # source://rubocop-ast/lib/rubocop/ast/processed_source.rb#20 def path; end - # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#156 + # source://rubocop-ast/lib/rubocop/ast/processed_source.rb#156 def preceding_line(token); end # Returns the value of attribute raw_source. # - # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#20 + # source://rubocop-ast/lib/rubocop/ast/processed_source.rb#20 def raw_source; end # Returns the value of attribute ruby_version. # - # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#20 + # source://rubocop-ast/lib/rubocop/ast/processed_source.rb#20 def ruby_version; end # The tokens list is always sorted by token position, except for cases when heredoc # is passed as a method argument. In this case tokens are interleaved by # heredoc contents' tokens. # - # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#192 + # source://rubocop-ast/lib/rubocop/ast/processed_source.rb#192 def sorted_tokens; end # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#150 + # source://rubocop-ast/lib/rubocop/ast/processed_source.rb#150 def start_with?(string); end # Returns the value of attribute tokens. # - # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#20 + # source://rubocop-ast/lib/rubocop/ast/processed_source.rb#20 def tokens; end - # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#175 + # source://rubocop-ast/lib/rubocop/ast/processed_source.rb#175 def tokens_within(range_or_node); end # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#76 + # source://rubocop-ast/lib/rubocop/ast/processed_source.rb#76 def valid_syntax?; end private - # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#199 + # source://rubocop-ast/lib/rubocop/ast/processed_source.rb#199 def comment_index; end - # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#309 + # source://rubocop-ast/lib/rubocop/ast/processed_source.rb#309 def create_parser(ruby_version, parser_engine); end - # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#325 + # source://rubocop-ast/lib/rubocop/ast/processed_source.rb#325 def first_token_index(range_or_node); end - # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#330 + # source://rubocop-ast/lib/rubocop/ast/processed_source.rb#330 def last_token_index(range_or_node); end - # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#205 + # source://rubocop-ast/lib/rubocop/ast/processed_source.rb#205 def parse(source, ruby_version, parser_engine); end - # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#238 + # source://rubocop-ast/lib/rubocop/ast/processed_source.rb#238 def parser_class(ruby_version, parser_engine); end - # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#335 + # source://rubocop-ast/lib/rubocop/ast/processed_source.rb#335 def source_range(range_or_node); end - # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#222 + # source://rubocop-ast/lib/rubocop/ast/processed_source.rb#222 def tokenize(parser); end class << self - # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#23 + # source://rubocop-ast/lib/rubocop/ast/processed_source.rb#23 def from_file(path, ruby_version, parser_engine: T.unsafe(nil)); end end end -# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#14 +# source://rubocop-ast/lib/rubocop/ast/processed_source.rb#14 RuboCop::AST::ProcessedSource::INVALID_LEVELS = T.let(T.unsafe(nil), Array) -# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#17 +# source://rubocop-ast/lib/rubocop/ast/processed_source.rb#17 RuboCop::AST::ProcessedSource::PARSER_ENGINES = T.let(T.unsafe(nil), Array) # @api private # -# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#12 +# source://rubocop-ast/lib/rubocop/ast/processed_source.rb#12 RuboCop::AST::ProcessedSource::STRING_SOURCE_NAME = T.let(T.unsafe(nil), String) # A node extension for `irange` and `erange` nodes. This will be used in # place of a plain node when the builder constructs the AST, making its # methods available to all `irange` and `erange` nodes within RuboCop. # -# source://rubocop-ast//lib/rubocop/ast/node/range_node.rb#8 +# source://rubocop-ast/lib/rubocop/ast/node/range_node.rb#8 class RuboCop::AST::RangeNode < ::RuboCop::AST::Node - # source://rubocop-ast//lib/rubocop/ast/node/range_node.rb#9 + # source://rubocop-ast/lib/rubocop/ast/node/range_node.rb#9 def begin; end - # source://rubocop-ast//lib/rubocop/ast/node/range_node.rb#13 + # source://rubocop-ast/lib/rubocop/ast/node/range_node.rb#13 def end; end end @@ -6206,7 +6280,7 @@ end # node when the builder constructs the AST, making its methods available to # all `rational` nodes within RuboCop. # -# source://rubocop-ast//lib/rubocop/ast/node/rational_node.rb#8 +# source://rubocop-ast/lib/rubocop/ast/node/rational_node.rb#8 class RuboCop::AST::RationalNode < ::RuboCop::AST::Node include ::RuboCop::AST::BasicLiteralNode include ::RuboCop::AST::NumericNode @@ -6216,128 +6290,128 @@ end # node when the builder constructs the AST, making its methods available # to all `regexp` nodes within RuboCop. # -# source://rubocop-ast//lib/rubocop/ast/node/regexp_node.rb#8 +# source://rubocop-ast/lib/rubocop/ast/node/regexp_node.rb#8 class RuboCop::AST::RegexpNode < ::RuboCop::AST::Node # @return [String] a string of regexp content # - # source://rubocop-ast//lib/rubocop/ast/node/regexp_node.rb#37 + # source://rubocop-ast/lib/rubocop/ast/node/regexp_node.rb#37 def content; end # @return [Bool] if char is one of the delimiters # - # source://rubocop-ast//lib/rubocop/ast/node/regexp_node.rb#57 + # source://rubocop-ast/lib/rubocop/ast/node/regexp_node.rb#57 def delimiter?(char); end # @return [String] the regexp delimiters (without %r) # - # source://rubocop-ast//lib/rubocop/ast/node/regexp_node.rb#52 + # source://rubocop-ast/lib/rubocop/ast/node/regexp_node.rb#52 def delimiters; end # @return [Bool] if regexp uses the extended regopt # - # source://rubocop-ast//lib/rubocop/ast/node/regexp_node.rb#72 + # source://rubocop-ast/lib/rubocop/ast/node/regexp_node.rb#72 def extended?; end # @return [Bool] if regexp uses the fixed-encoding regopt # - # source://rubocop-ast//lib/rubocop/ast/node/regexp_node.rb#92 + # source://rubocop-ast/lib/rubocop/ast/node/regexp_node.rb#92 def fixed_encoding?; end # @return [Bool] if regexp uses the ignore-case regopt # - # source://rubocop-ast//lib/rubocop/ast/node/regexp_node.rb#77 + # source://rubocop-ast/lib/rubocop/ast/node/regexp_node.rb#77 def ignore_case?; end # @return [Bool] if regexp contains interpolation # - # source://rubocop-ast//lib/rubocop/ast/node/regexp_node.rb#62 + # source://rubocop-ast/lib/rubocop/ast/node/regexp_node.rb#62 def interpolation?; end # @return [Bool] if regexp uses the multiline regopt # - # source://rubocop-ast//lib/rubocop/ast/node/regexp_node.rb#67 + # source://rubocop-ast/lib/rubocop/ast/node/regexp_node.rb#67 def multiline_mode?; end # @return [Bool] if regexp uses the no-encoding regopt # - # source://rubocop-ast//lib/rubocop/ast/node/regexp_node.rb#87 + # source://rubocop-ast/lib/rubocop/ast/node/regexp_node.rb#87 def no_encoding?; end # NOTE: The 'o' option is ignored. # # @return [Integer] the Regexp option bits as returned by Regexp#options # - # source://rubocop-ast//lib/rubocop/ast/node/regexp_node.rb#32 + # source://rubocop-ast/lib/rubocop/ast/node/regexp_node.rb#32 def options; end # @return [Bool] if the regexp is a %r{...} literal (using any delimiters) # - # source://rubocop-ast//lib/rubocop/ast/node/regexp_node.rb#47 + # source://rubocop-ast/lib/rubocop/ast/node/regexp_node.rb#47 def percent_r_literal?; end # @return [RuboCop::AST::Node] a regopt node # - # source://rubocop-ast//lib/rubocop/ast/node/regexp_node.rb#25 + # source://rubocop-ast/lib/rubocop/ast/node/regexp_node.rb#25 def regopt; end # @return [Bool] if regexp uses the single-interpolation regopt # - # source://rubocop-ast//lib/rubocop/ast/node/regexp_node.rb#82 + # source://rubocop-ast/lib/rubocop/ast/node/regexp_node.rb#82 def single_interpolation?; end # @return [Bool] if the regexp is a /.../ literal # - # source://rubocop-ast//lib/rubocop/ast/node/regexp_node.rb#42 + # source://rubocop-ast/lib/rubocop/ast/node/regexp_node.rb#42 def slash_literal?; end # @return [Regexp] a regexp of this node # - # source://rubocop-ast//lib/rubocop/ast/node/regexp_node.rb#20 + # source://rubocop-ast/lib/rubocop/ast/node/regexp_node.rb#20 def to_regexp; end private # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/node/regexp_node.rb#98 + # source://rubocop-ast/lib/rubocop/ast/node/regexp_node.rb#98 def regopt_include?(option); end end -# source://rubocop-ast//lib/rubocop/ast/node/regexp_node.rb#9 +# source://rubocop-ast/lib/rubocop/ast/node/regexp_node.rb#9 RuboCop::AST::RegexpNode::OPTIONS = T.let(T.unsafe(nil), Hash) # A node extension for `resbody` nodes. This will be used in place of a # plain node when the builder constructs the AST, making its methods # available to all `resbody` nodes within RuboCop. # -# source://rubocop-ast//lib/rubocop/ast/node/resbody_node.rb#8 +# source://rubocop-ast/lib/rubocop/ast/node/resbody_node.rb#8 class RuboCop::AST::ResbodyNode < ::RuboCop::AST::Node # Returns the body of the `rescue` clause. # # @return [Node, nil] The body of the `resbody`. # - # source://rubocop-ast//lib/rubocop/ast/node/resbody_node.rb#12 + # source://rubocop-ast/lib/rubocop/ast/node/resbody_node.rb#12 def body; end # Returns the index of the `resbody` branch within the exception handling statement. # # @return [Integer] the index of the `resbody` branch # - # source://rubocop-ast//lib/rubocop/ast/node/resbody_node.rb#40 + # source://rubocop-ast/lib/rubocop/ast/node/resbody_node.rb#40 def branch_index; end # Returns the exception variable of the `rescue` clause. # # @return [Node, nil] The exception variable of the `resbody`. # - # source://rubocop-ast//lib/rubocop/ast/node/resbody_node.rb#33 + # source://rubocop-ast/lib/rubocop/ast/node/resbody_node.rb#33 def exception_variable; end # Returns an array of all the exceptions in the `rescue` clause. # # @return [Array] an array of exception nodes # - # source://rubocop-ast//lib/rubocop/ast/node/resbody_node.rb#19 + # source://rubocop-ast/lib/rubocop/ast/node/resbody_node.rb#19 def exceptions; end end @@ -6345,13 +6419,13 @@ end # plain node when the builder constructs the AST, making its methods # available to all `rescue` nodes within RuboCop. # -# source://rubocop-ast//lib/rubocop/ast/node/rescue_node.rb#8 +# source://rubocop-ast/lib/rubocop/ast/node/rescue_node.rb#8 class RuboCop::AST::RescueNode < ::RuboCop::AST::Node # Returns the body of the rescue node. # # @return [Node, nil] The body of the rescue node. # - # source://rubocop-ast//lib/rubocop/ast/node/rescue_node.rb#12 + # source://rubocop-ast/lib/rubocop/ast/node/rescue_node.rb#12 def body; end # Returns an array of all the rescue branches in the exception handling statement. @@ -6360,14 +6434,14 @@ class RuboCop::AST::RescueNode < ::RuboCop::AST::Node # # @return [Array] an array of the bodies of the rescue branches # - # source://rubocop-ast//lib/rubocop/ast/node/rescue_node.rb#27 + # source://rubocop-ast/lib/rubocop/ast/node/rescue_node.rb#27 def branches; end # Checks whether this exception handling statement has an `else` branch. # # @return [Boolean] whether the exception handling statement has an `else` branch # - # source://rubocop-ast//lib/rubocop/ast/node/rescue_node.rb#44 + # source://rubocop-ast/lib/rubocop/ast/node/rescue_node.rb#44 def else?; end # Returns the else branch of the exception handling statement, if any. @@ -6375,14 +6449,14 @@ class RuboCop::AST::RescueNode < ::RuboCop::AST::Node # @return [Node] the else branch node of the exception handling statement # @return [nil] if the exception handling statement does not have an else branch. # - # source://rubocop-ast//lib/rubocop/ast/node/rescue_node.rb#37 + # source://rubocop-ast/lib/rubocop/ast/node/rescue_node.rb#37 def else_branch; end # Returns an array of all the rescue branches in the exception handling statement. # # @return [Array] an array of `resbody` nodes # - # source://rubocop-ast//lib/rubocop/ast/node/rescue_node.rb#19 + # source://rubocop-ast/lib/rubocop/ast/node/rescue_node.rb#19 def resbody_branches; end end @@ -6390,7 +6464,7 @@ end # plain node when the builder constructs the AST, making its methods # available to all `return` nodes within RuboCop. # -# source://rubocop-ast//lib/rubocop/ast/node/return_node.rb#8 +# source://rubocop-ast/lib/rubocop/ast/node/return_node.rb#8 class RuboCop::AST::ReturnNode < ::RuboCop::AST::Node include ::RuboCop::AST::ParameterizedNode include ::RuboCop::AST::ParameterizedNode::WrappedArguments @@ -6400,37 +6474,37 @@ end # # @api private # -# source://rubocop-ast//lib/rubocop/ast/rubocop_compatibility.rb#8 +# source://rubocop-ast/lib/rubocop/ast/rubocop_compatibility.rb#8 module RuboCop::AST::RuboCopCompatibility # @api private # - # source://rubocop-ast//lib/rubocop/ast/rubocop_compatibility.rb#13 + # source://rubocop-ast/lib/rubocop/ast/rubocop_compatibility.rb#13 def rubocop_loaded; end end # @api private # -# source://rubocop-ast//lib/rubocop/ast/rubocop_compatibility.rb#9 +# source://rubocop-ast/lib/rubocop/ast/rubocop_compatibility.rb#9 RuboCop::AST::RuboCopCompatibility::INCOMPATIBLE_COPS = T.let(T.unsafe(nil), Hash) # A node extension for `sclass` nodes. This will be used in place of a # plain node when the builder constructs the AST, making its methods # available to all `sclass` nodes within RuboCop. # -# source://rubocop-ast//lib/rubocop/ast/node/self_class_node.rb#8 +# source://rubocop-ast/lib/rubocop/ast/node/self_class_node.rb#8 class RuboCop::AST::SelfClassNode < ::RuboCop::AST::Node # The body of this `sclass` node. # # @return [Node, nil] the body of the class # - # source://rubocop-ast//lib/rubocop/ast/node/self_class_node.rb#19 + # source://rubocop-ast/lib/rubocop/ast/node/self_class_node.rb#19 def body; end # The identifier for this `sclass` node. (Always `self`.) # # @return [Node] the identifier of the class # - # source://rubocop-ast//lib/rubocop/ast/node/self_class_node.rb#12 + # source://rubocop-ast/lib/rubocop/ast/node/self_class_node.rb#12 def identifier; end end @@ -6438,24 +6512,24 @@ end # node when the builder constructs the AST, making its methods available # to all `send` nodes within RuboCop. # -# source://rubocop-ast//lib/rubocop/ast/node/send_node.rb#8 +# source://rubocop-ast/lib/rubocop/ast/node/send_node.rb#8 class RuboCop::AST::SendNode < ::RuboCop::AST::Node include ::RuboCop::AST::ParameterizedNode include ::RuboCop::AST::ParameterizedNode::RestArguments include ::RuboCop::AST::MethodIdentifierPredicates include ::RuboCop::AST::MethodDispatchNode - # source://rubocop-ast//lib/rubocop/ast/node/send_node.rb#13 + # source://rubocop-ast/lib/rubocop/ast/node/send_node.rb#13 def attribute_accessor?(param0 = T.unsafe(nil)); end # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/node/send_node.rb#18 + # source://rubocop-ast/lib/rubocop/ast/node/send_node.rb#18 def send_type?; end private - # source://rubocop-ast//lib/rubocop/ast/node/send_node.rb#24 + # source://rubocop-ast/lib/rubocop/ast/node/send_node.rb#24 def first_argument_index; end end @@ -6464,11 +6538,11 @@ end # # @see https://www.rubydoc.info/gems/ast/AST/Sexp # -# source://rubocop-ast//lib/rubocop/ast/sexp.rb#9 +# source://rubocop-ast/lib/rubocop/ast/sexp.rb#9 module RuboCop::AST::Sexp # Creates a {Node} with type `type` and children `children`. # - # source://rubocop-ast//lib/rubocop/ast/sexp.rb#11 + # source://rubocop-ast/lib/rubocop/ast/sexp.rb#11 def s(type, *children); end end @@ -6476,32 +6550,55 @@ end # in place of a plain node when the builder constructs the AST, making # its methods available to all `str` nodes within RuboCop. # -# source://rubocop-ast//lib/rubocop/ast/node/str_node.rb#8 +# source://rubocop-ast/lib/rubocop/ast/node/str_node.rb#8 class RuboCop::AST::StrNode < ::RuboCop::AST::Node include ::RuboCop::AST::BasicLiteralNode # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/node/str_node.rb#11 + # source://rubocop-ast/lib/rubocop/ast/node/str_node.rb#25 def character_literal?; end # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/node/str_node.rb#15 + # source://rubocop-ast/lib/rubocop/ast/node/str_node.rb#21 + def double_quoted?; end + + # @return [Boolean] + # + # source://rubocop-ast/lib/rubocop/ast/node/str_node.rb#29 def heredoc?; end + + # Checks whether the string literal is delimited by percent brackets. + # + # @overload percent_literal? + # @overload percent_literal? + # @param type [Symbol] an optional percent literal type + # @return [Boolean] whether the string is enclosed in percent brackets + # + # source://rubocop-ast/lib/rubocop/ast/node/str_node.rb#44 + def percent_literal?(type = T.unsafe(nil)); end + + # @return [Boolean] + # + # source://rubocop-ast/lib/rubocop/ast/node/str_node.rb#17 + def single_quoted?; end end +# source://rubocop-ast/lib/rubocop/ast/node/str_node.rb#11 +RuboCop::AST::StrNode::PERCENT_LITERAL_TYPES = T.let(T.unsafe(nil), Hash) + # A node extension for `super`- and `zsuper` nodes. This will be used in # place of a plain node when the builder constructs the AST, making its # methods available to all `super`- and `zsuper` nodes within RuboCop. # -# source://rubocop-ast//lib/rubocop/ast/node/super_node.rb#8 +# source://rubocop-ast/lib/rubocop/ast/node/super_node.rb#8 class RuboCop::AST::SuperNode < ::RuboCop::AST::Node include ::RuboCop::AST::ParameterizedNode include ::RuboCop::AST::MethodIdentifierPredicates include ::RuboCop::AST::MethodDispatchNode - # source://ast/2.4.2/lib/ast/node.rb#56 + # source://ast/2.4.2lib/ast/node.rb#56 def arguments; end # Custom destructuring method. This can be used to normalize @@ -6509,7 +6606,7 @@ class RuboCop::AST::SuperNode < ::RuboCop::AST::Node # # @return [Array] the different parts of the `super` node # - # source://rubocop-ast//lib/rubocop/ast/node/super_node.rb#16 + # source://rubocop-ast/lib/rubocop/ast/node/super_node.rb#16 def node_parts; end end @@ -6517,163 +6614,163 @@ end # plain node when the builder constructs the AST, making its methods # available to all `sym` nodes within RuboCop. # -# source://rubocop-ast//lib/rubocop/ast/node/symbol_node.rb#8 +# source://rubocop-ast/lib/rubocop/ast/node/symbol_node.rb#8 class RuboCop::AST::SymbolNode < ::RuboCop::AST::Node include ::RuboCop::AST::BasicLiteralNode end # A basic wrapper around Parser's tokens. # -# source://rubocop-ast//lib/rubocop/ast/token.rb#6 +# source://rubocop-ast/lib/rubocop/ast/token.rb#6 class RuboCop::AST::Token # @return [Token] a new instance of Token # - # source://rubocop-ast//lib/rubocop/ast/token.rb#17 + # source://rubocop-ast/lib/rubocop/ast/token.rb#17 def initialize(pos, type, text); end - # source://rubocop-ast//lib/rubocop/ast/token.rb#32 + # source://rubocop-ast/lib/rubocop/ast/token.rb#32 def begin_pos; end - # source://rubocop-ast//lib/rubocop/ast/token.rb#28 + # source://rubocop-ast/lib/rubocop/ast/token.rb#28 def column; end # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/token.rb#101 + # source://rubocop-ast/lib/rubocop/ast/token.rb#101 def comma?; end # Type Predicates # # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/token.rb#57 + # source://rubocop-ast/lib/rubocop/ast/token.rb#57 def comment?; end # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/token.rb#105 + # source://rubocop-ast/lib/rubocop/ast/token.rb#105 def dot?; end # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/token.rb#117 + # source://rubocop-ast/lib/rubocop/ast/token.rb#117 def end?; end - # source://rubocop-ast//lib/rubocop/ast/token.rb#36 + # source://rubocop-ast/lib/rubocop/ast/token.rb#36 def end_pos; end # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/token.rb#121 + # source://rubocop-ast/lib/rubocop/ast/token.rb#121 def equal_sign?; end # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/token.rb#65 + # source://rubocop-ast/lib/rubocop/ast/token.rb#65 def left_array_bracket?; end # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/token.rb#81 + # source://rubocop-ast/lib/rubocop/ast/token.rb#81 def left_brace?; end # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/token.rb#73 + # source://rubocop-ast/lib/rubocop/ast/token.rb#73 def left_bracket?; end # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/token.rb#85 + # source://rubocop-ast/lib/rubocop/ast/token.rb#85 def left_curly_brace?; end # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/token.rb#93 + # source://rubocop-ast/lib/rubocop/ast/token.rb#93 def left_parens?; end # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/token.rb#69 + # source://rubocop-ast/lib/rubocop/ast/token.rb#69 def left_ref_bracket?; end - # source://rubocop-ast//lib/rubocop/ast/token.rb#24 + # source://rubocop-ast/lib/rubocop/ast/token.rb#24 def line; end # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/token.rb#125 + # source://rubocop-ast/lib/rubocop/ast/token.rb#125 def new_line?; end # Returns the value of attribute pos. # - # source://rubocop-ast//lib/rubocop/ast/token.rb#9 + # source://rubocop-ast/lib/rubocop/ast/token.rb#9 def pos; end # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/token.rb#109 + # source://rubocop-ast/lib/rubocop/ast/token.rb#109 def regexp_dots?; end # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/token.rb#113 + # source://rubocop-ast/lib/rubocop/ast/token.rb#113 def rescue_modifier?; end # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/token.rb#77 + # source://rubocop-ast/lib/rubocop/ast/token.rb#77 def right_bracket?; end # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/token.rb#89 + # source://rubocop-ast/lib/rubocop/ast/token.rb#89 def right_curly_brace?; end # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/token.rb#97 + # source://rubocop-ast/lib/rubocop/ast/token.rb#97 def right_parens?; end # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/token.rb#61 + # source://rubocop-ast/lib/rubocop/ast/token.rb#61 def semicolon?; end # Checks if there is whitespace after token # # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/token.rb#45 + # source://rubocop-ast/lib/rubocop/ast/token.rb#45 def space_after?; end # Checks if there is whitespace before token # # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/token.rb#50 + # source://rubocop-ast/lib/rubocop/ast/token.rb#50 def space_before?; end # Returns the value of attribute text. # - # source://rubocop-ast//lib/rubocop/ast/token.rb#9 + # source://rubocop-ast/lib/rubocop/ast/token.rb#9 def text; end - # source://rubocop-ast//lib/rubocop/ast/token.rb#40 + # source://rubocop-ast/lib/rubocop/ast/token.rb#40 def to_s; end # Returns the value of attribute type. # - # source://rubocop-ast//lib/rubocop/ast/token.rb#9 + # source://rubocop-ast/lib/rubocop/ast/token.rb#9 def type; end class << self - # source://rubocop-ast//lib/rubocop/ast/token.rb#11 + # source://rubocop-ast/lib/rubocop/ast/token.rb#11 def from_parser_token(parser_token); end end end -# source://rubocop-ast//lib/rubocop/ast/token.rb#7 +# source://rubocop-ast/lib/rubocop/ast/token.rb#7 RuboCop::AST::Token::LEFT_PAREN_TYPES = T.let(T.unsafe(nil), Array) # Provides methods for traversing an AST. @@ -6681,452 +6778,452 @@ RuboCop::AST::Token::LEFT_PAREN_TYPES = T.let(T.unsafe(nil), Array) # Override methods to perform custom processing. Remember to call `super` # if you want to recursively process descendant nodes. # -# source://rubocop-ast//lib/rubocop/ast/traversal.rb#9 +# source://rubocop-ast/lib/rubocop/ast/traversal.rb#9 module RuboCop::AST::Traversal extend ::RuboCop::AST::Traversal::CallbackCompiler - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#173 + # source://rubocop-ast/lib/rubocop/ast/traversal.rb#173 def on_(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#123 + # source://rubocop-ast/lib/rubocop/ast/traversal.rb#123 def on___ENCODING__(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#123 + # source://rubocop-ast/lib/rubocop/ast/traversal.rb#123 def on___FILE__(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#123 + # source://rubocop-ast/lib/rubocop/ast/traversal.rb#123 def on___LINE__(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#136 + # source://rubocop-ast/lib/rubocop/ast/traversal.rb#136 def on_alias(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#136 + # source://rubocop-ast/lib/rubocop/ast/traversal.rb#136 def on_and(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#136 + # source://rubocop-ast/lib/rubocop/ast/traversal.rb#136 def on_and_asgn(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#127 + # source://rubocop-ast/lib/rubocop/ast/traversal.rb#127 def on_arg(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#128 + # source://rubocop-ast/lib/rubocop/ast/traversal.rb#128 def on_arg_expr(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#136 + # source://rubocop-ast/lib/rubocop/ast/traversal.rb#136 def on_args(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#136 + # source://rubocop-ast/lib/rubocop/ast/traversal.rb#136 def on_array(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#136 + # source://rubocop-ast/lib/rubocop/ast/traversal.rb#136 def on_array_pattern(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#136 + # source://rubocop-ast/lib/rubocop/ast/traversal.rb#136 def on_array_pattern_with_tail(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#127 + # source://rubocop-ast/lib/rubocop/ast/traversal.rb#127 def on_back_ref(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#136 + # source://rubocop-ast/lib/rubocop/ast/traversal.rb#136 def on_begin(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#151 + # source://rubocop-ast/lib/rubocop/ast/traversal.rb#151 def on_block(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#129 + # source://rubocop-ast/lib/rubocop/ast/traversal.rb#129 def on_block_pass(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#127 + # source://rubocop-ast/lib/rubocop/ast/traversal.rb#127 def on_blockarg(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#136 + # source://rubocop-ast/lib/rubocop/ast/traversal.rb#136 def on_break(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#139 + # source://rubocop-ast/lib/rubocop/ast/traversal.rb#139 def on_case(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#139 + # source://rubocop-ast/lib/rubocop/ast/traversal.rb#139 def on_case_match(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#146 + # source://rubocop-ast/lib/rubocop/ast/traversal.rb#146 def on_casgn(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#123 + # source://rubocop-ast/lib/rubocop/ast/traversal.rb#123 def on_cbase(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#147 + # source://rubocop-ast/lib/rubocop/ast/traversal.rb#147 def on_class(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#127 + # source://rubocop-ast/lib/rubocop/ast/traversal.rb#127 def on_complex(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#145 + # source://rubocop-ast/lib/rubocop/ast/traversal.rb#145 def on_const(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#136 + # source://rubocop-ast/lib/rubocop/ast/traversal.rb#136 def on_const_pattern(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#155 + # source://rubocop-ast/lib/rubocop/ast/traversal.rb#155 def on_csend(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#127 + # source://rubocop-ast/lib/rubocop/ast/traversal.rb#127 def on_cvar(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#131 + # source://rubocop-ast/lib/rubocop/ast/traversal.rb#131 def on_cvasgn(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#148 + # source://rubocop-ast/lib/rubocop/ast/traversal.rb#148 def on_def(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#128 + # source://rubocop-ast/lib/rubocop/ast/traversal.rb#128 def on_defined?(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#153 + # source://rubocop-ast/lib/rubocop/ast/traversal.rb#153 def on_defs(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#136 + # source://rubocop-ast/lib/rubocop/ast/traversal.rb#136 def on_dstr(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#136 + # source://rubocop-ast/lib/rubocop/ast/traversal.rb#136 def on_dsym(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#136 + # source://rubocop-ast/lib/rubocop/ast/traversal.rb#136 def on_eflipflop(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#123 + # source://rubocop-ast/lib/rubocop/ast/traversal.rb#123 def on_empty_else(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#139 + # source://rubocop-ast/lib/rubocop/ast/traversal.rb#139 def on_ensure(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#139 + # source://rubocop-ast/lib/rubocop/ast/traversal.rb#139 def on_erange(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#123 + # source://rubocop-ast/lib/rubocop/ast/traversal.rb#123 def on_false(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#136 + # source://rubocop-ast/lib/rubocop/ast/traversal.rb#136 def on_find_pattern(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#127 + # source://rubocop-ast/lib/rubocop/ast/traversal.rb#127 def on_float(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#139 + # source://rubocop-ast/lib/rubocop/ast/traversal.rb#139 def on_for(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#123 + # source://rubocop-ast/lib/rubocop/ast/traversal.rb#123 def on_forward_arg(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#123 + # source://rubocop-ast/lib/rubocop/ast/traversal.rb#123 def on_forward_args(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#123 + # source://rubocop-ast/lib/rubocop/ast/traversal.rb#123 def on_forwarded_args(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#123 + # source://rubocop-ast/lib/rubocop/ast/traversal.rb#123 def on_forwarded_kwrestarg(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#123 + # source://rubocop-ast/lib/rubocop/ast/traversal.rb#123 def on_forwarded_restarg(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#127 + # source://rubocop-ast/lib/rubocop/ast/traversal.rb#127 def on_gvar(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#131 + # source://rubocop-ast/lib/rubocop/ast/traversal.rb#131 def on_gvasgn(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#136 + # source://rubocop-ast/lib/rubocop/ast/traversal.rb#136 def on_hash(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#136 + # source://rubocop-ast/lib/rubocop/ast/traversal.rb#136 def on_hash_pattern(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#150 + # source://rubocop-ast/lib/rubocop/ast/traversal.rb#150 def on_if(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#128 + # source://rubocop-ast/lib/rubocop/ast/traversal.rb#128 def on_if_guard(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#136 + # source://rubocop-ast/lib/rubocop/ast/traversal.rb#136 def on_iflipflop(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#136 + # source://rubocop-ast/lib/rubocop/ast/traversal.rb#136 def on_in_match(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#139 + # source://rubocop-ast/lib/rubocop/ast/traversal.rb#139 def on_in_pattern(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#136 + # source://rubocop-ast/lib/rubocop/ast/traversal.rb#136 def on_index(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#136 + # source://rubocop-ast/lib/rubocop/ast/traversal.rb#136 def on_indexasgn(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#127 + # source://rubocop-ast/lib/rubocop/ast/traversal.rb#127 def on_int(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#139 + # source://rubocop-ast/lib/rubocop/ast/traversal.rb#139 def on_irange(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#127 + # source://rubocop-ast/lib/rubocop/ast/traversal.rb#127 def on_ivar(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#131 + # source://rubocop-ast/lib/rubocop/ast/traversal.rb#131 def on_ivasgn(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#127 + # source://rubocop-ast/lib/rubocop/ast/traversal.rb#127 def on_kwarg(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#136 + # source://rubocop-ast/lib/rubocop/ast/traversal.rb#136 def on_kwargs(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#136 + # source://rubocop-ast/lib/rubocop/ast/traversal.rb#136 def on_kwbegin(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#123 + # source://rubocop-ast/lib/rubocop/ast/traversal.rb#123 def on_kwnilarg(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#132 + # source://rubocop-ast/lib/rubocop/ast/traversal.rb#132 def on_kwoptarg(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#124 + # source://rubocop-ast/lib/rubocop/ast/traversal.rb#124 def on_kwrestarg(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#125 + # source://rubocop-ast/lib/rubocop/ast/traversal.rb#125 def on_kwsplat(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#123 + # source://rubocop-ast/lib/rubocop/ast/traversal.rb#123 def on_lambda(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#127 + # source://rubocop-ast/lib/rubocop/ast/traversal.rb#127 def on_lvar(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#131 + # source://rubocop-ast/lib/rubocop/ast/traversal.rb#131 def on_lvasgn(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#136 + # source://rubocop-ast/lib/rubocop/ast/traversal.rb#136 def on_masgn(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#136 + # source://rubocop-ast/lib/rubocop/ast/traversal.rb#136 def on_match_alt(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#136 + # source://rubocop-ast/lib/rubocop/ast/traversal.rb#136 def on_match_as(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#128 + # source://rubocop-ast/lib/rubocop/ast/traversal.rb#128 def on_match_current_line(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#123 + # source://rubocop-ast/lib/rubocop/ast/traversal.rb#123 def on_match_nil_pattern(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#139 + # source://rubocop-ast/lib/rubocop/ast/traversal.rb#139 def on_match_pattern(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#139 + # source://rubocop-ast/lib/rubocop/ast/traversal.rb#139 def on_match_pattern_p(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#125 + # source://rubocop-ast/lib/rubocop/ast/traversal.rb#125 def on_match_rest(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#127 + # source://rubocop-ast/lib/rubocop/ast/traversal.rb#127 def on_match_var(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#136 + # source://rubocop-ast/lib/rubocop/ast/traversal.rb#136 def on_match_with_lvasgn(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#128 + # source://rubocop-ast/lib/rubocop/ast/traversal.rb#128 def on_match_with_trailing_comma(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#136 + # source://rubocop-ast/lib/rubocop/ast/traversal.rb#136 def on_mlhs(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#133 + # source://rubocop-ast/lib/rubocop/ast/traversal.rb#133 def on_module(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#136 + # source://rubocop-ast/lib/rubocop/ast/traversal.rb#136 def on_mrasgn(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#136 + # source://rubocop-ast/lib/rubocop/ast/traversal.rb#136 def on_next(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#123 + # source://rubocop-ast/lib/rubocop/ast/traversal.rb#123 def on_nil(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#128 + # source://rubocop-ast/lib/rubocop/ast/traversal.rb#128 def on_not(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#127 + # source://rubocop-ast/lib/rubocop/ast/traversal.rb#127 def on_nth_ref(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#152 + # source://rubocop-ast/lib/rubocop/ast/traversal.rb#152 def on_numblock(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#149 + # source://rubocop-ast/lib/rubocop/ast/traversal.rb#149 def on_op_asgn(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#132 + # source://rubocop-ast/lib/rubocop/ast/traversal.rb#132 def on_optarg(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#136 + # source://rubocop-ast/lib/rubocop/ast/traversal.rb#136 def on_or(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#136 + # source://rubocop-ast/lib/rubocop/ast/traversal.rb#136 def on_or_asgn(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#136 + # source://rubocop-ast/lib/rubocop/ast/traversal.rb#136 def on_pair(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#128 + # source://rubocop-ast/lib/rubocop/ast/traversal.rb#128 def on_pin(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#129 + # source://rubocop-ast/lib/rubocop/ast/traversal.rb#129 def on_postexe(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#129 + # source://rubocop-ast/lib/rubocop/ast/traversal.rb#129 def on_preexe(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#136 + # source://rubocop-ast/lib/rubocop/ast/traversal.rb#136 def on_procarg0(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#136 + # source://rubocop-ast/lib/rubocop/ast/traversal.rb#136 def on_rasgn(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#127 + # source://rubocop-ast/lib/rubocop/ast/traversal.rb#127 def on_rational(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#123 + # source://rubocop-ast/lib/rubocop/ast/traversal.rb#123 def on_redo(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#136 + # source://rubocop-ast/lib/rubocop/ast/traversal.rb#136 def on_regexp(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#135 + # source://rubocop-ast/lib/rubocop/ast/traversal.rb#135 def on_regopt(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#139 + # source://rubocop-ast/lib/rubocop/ast/traversal.rb#139 def on_resbody(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#139 + # source://rubocop-ast/lib/rubocop/ast/traversal.rb#139 def on_rescue(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#124 + # source://rubocop-ast/lib/rubocop/ast/traversal.rb#124 def on_restarg(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#123 + # source://rubocop-ast/lib/rubocop/ast/traversal.rb#123 def on_retry(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#136 + # source://rubocop-ast/lib/rubocop/ast/traversal.rb#136 def on_return(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#133 + # source://rubocop-ast/lib/rubocop/ast/traversal.rb#133 def on_sclass(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#123 + # source://rubocop-ast/lib/rubocop/ast/traversal.rb#123 def on_self(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#155 + # source://rubocop-ast/lib/rubocop/ast/traversal.rb#155 def on_send(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#127 + # source://rubocop-ast/lib/rubocop/ast/traversal.rb#127 def on_shadowarg(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#125 + # source://rubocop-ast/lib/rubocop/ast/traversal.rb#125 def on_splat(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#127 + # source://rubocop-ast/lib/rubocop/ast/traversal.rb#127 def on_str(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#136 + # source://rubocop-ast/lib/rubocop/ast/traversal.rb#136 def on_super(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#127 + # source://rubocop-ast/lib/rubocop/ast/traversal.rb#127 def on_sym(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#123 + # source://rubocop-ast/lib/rubocop/ast/traversal.rb#123 def on_true(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#136 + # source://rubocop-ast/lib/rubocop/ast/traversal.rb#136 def on_undef(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#128 + # source://rubocop-ast/lib/rubocop/ast/traversal.rb#128 def on_unless_guard(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#133 + # source://rubocop-ast/lib/rubocop/ast/traversal.rb#133 def on_until(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#136 + # source://rubocop-ast/lib/rubocop/ast/traversal.rb#136 def on_until_post(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#139 + # source://rubocop-ast/lib/rubocop/ast/traversal.rb#139 def on_when(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#133 + # source://rubocop-ast/lib/rubocop/ast/traversal.rb#133 def on_while(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#136 + # source://rubocop-ast/lib/rubocop/ast/traversal.rb#136 def on_while_post(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#136 + # source://rubocop-ast/lib/rubocop/ast/traversal.rb#136 def on_xstr(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#136 + # source://rubocop-ast/lib/rubocop/ast/traversal.rb#136 def on_yield(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#123 + # source://rubocop-ast/lib/rubocop/ast/traversal.rb#123 def on_zsuper(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#17 + # source://rubocop-ast/lib/rubocop/ast/traversal.rb#17 def walk(node); end end # @api private # -# source://rubocop-ast//lib/rubocop/ast/traversal.rb#25 +# source://rubocop-ast/lib/rubocop/ast/traversal.rb#25 module RuboCop::AST::Traversal::CallbackCompiler # @api private # - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#61 + # source://rubocop-ast/lib/rubocop/ast/traversal.rb#61 def arity_check(range); end # @api private # - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#52 + # source://rubocop-ast/lib/rubocop/ast/traversal.rb#52 def body(signature, prelude); end # @api private # - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#35 + # source://rubocop-ast/lib/rubocop/ast/traversal.rb#35 def def_callback(type, *signature, arity: T.unsafe(nil), arity_check: T.unsafe(nil), body: T.unsafe(nil)); end end # @api private # -# source://rubocop-ast//lib/rubocop/ast/traversal.rb#26 +# source://rubocop-ast/lib/rubocop/ast/traversal.rb#26 RuboCop::AST::Traversal::CallbackCompiler::SEND = T.let(T.unsafe(nil), String) # @api private # -# source://rubocop-ast//lib/rubocop/ast/traversal.rb#29 +# source://rubocop-ast/lib/rubocop/ast/traversal.rb#29 RuboCop::AST::Traversal::CallbackCompiler::TEMPLATE = T.let(T.unsafe(nil), Hash) # Only for debugging. # # @api private # -# source://rubocop-ast//lib/rubocop/ast/traversal.rb#12 +# source://rubocop-ast/lib/rubocop/ast/traversal.rb#12 class RuboCop::AST::Traversal::DebugError < ::RuntimeError; end -# source://rubocop-ast//lib/rubocop/ast/traversal.rb#100 +# source://rubocop-ast/lib/rubocop/ast/traversal.rb#100 RuboCop::AST::Traversal::NO_CHILD_NODES = T.let(T.unsafe(nil), Set) -# source://rubocop-ast//lib/rubocop/ast/traversal.rb#15 +# source://rubocop-ast/lib/rubocop/ast/traversal.rb#15 RuboCop::AST::Traversal::TYPE_TO_METHOD = T.let(T.unsafe(nil), Hash) # A node extension for `until` nodes. This will be used in place of a plain # node when the builder constructs the AST, making its methods available # to all `until` nodes within RuboCop. # -# source://rubocop-ast//lib/rubocop/ast/node/until_node.rb#8 +# source://rubocop-ast/lib/rubocop/ast/node/until_node.rb#8 class RuboCop::AST::UntilNode < ::RuboCop::AST::Node include ::RuboCop::AST::ConditionalNode include ::RuboCop::AST::ModifierNode @@ -7135,7 +7232,7 @@ class RuboCop::AST::UntilNode < ::RuboCop::AST::Node # # @return [Boolean] whether the `until` node has a `do` keyword # - # source://rubocop-ast//lib/rubocop/ast/node/until_node.rb#30 + # source://rubocop-ast/lib/rubocop/ast/node/until_node.rb#30 def do?; end # Returns the inverse keyword of the `until` node as a string. @@ -7143,14 +7240,14 @@ class RuboCop::AST::UntilNode < ::RuboCop::AST::Node # # @return [String] the inverse keyword of the `until` statement # - # source://rubocop-ast//lib/rubocop/ast/node/until_node.rb#23 + # source://rubocop-ast/lib/rubocop/ast/node/until_node.rb#23 def inverse_keyword; end # Returns the keyword of the `until` statement as a string. # # @return [String] the keyword of the `until` statement # - # source://rubocop-ast//lib/rubocop/ast/node/until_node.rb#15 + # source://rubocop-ast/lib/rubocop/ast/node/until_node.rb#15 def keyword; end end @@ -7158,57 +7255,57 @@ end # 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 +# 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 + # source://rubocop-ast/lib/rubocop/ast/node/var_node.rb#10 def name; end end -# source://rubocop-ast//lib/rubocop/ast/version.rb#5 +# source://rubocop-ast/lib/rubocop/ast/version.rb#5 module RuboCop::AST::Version; end -# source://rubocop-ast//lib/rubocop/ast/version.rb#6 +# source://rubocop-ast/lib/rubocop/ast/version.rb#6 RuboCop::AST::Version::STRING = T.let(T.unsafe(nil), String) # A node extension for `when` nodes. This will be used in place of a plain # node when the builder constructs the AST, making its methods available # to all `when` nodes within RuboCop. # -# source://rubocop-ast//lib/rubocop/ast/node/when_node.rb#8 +# source://rubocop-ast/lib/rubocop/ast/node/when_node.rb#8 class RuboCop::AST::WhenNode < ::RuboCop::AST::Node # Returns the body of the `when` node. # # @return [Node, nil] the body of the `when` node # - # source://rubocop-ast//lib/rubocop/ast/node/when_node.rb#42 + # source://rubocop-ast/lib/rubocop/ast/node/when_node.rb#42 def body; end # Returns the index of the `when` branch within the `case` statement. # # @return [Integer] the index of the `when` branch # - # source://rubocop-ast//lib/rubocop/ast/node/when_node.rb#28 + # source://rubocop-ast/lib/rubocop/ast/node/when_node.rb#28 def branch_index; end # Returns an array of all the conditions in the `when` branch. # # @return [Array] an array of condition nodes # - # source://rubocop-ast//lib/rubocop/ast/node/when_node.rb#12 + # source://rubocop-ast/lib/rubocop/ast/node/when_node.rb#12 def conditions; end # @deprecated Use `conditions.each` # - # source://rubocop-ast//lib/rubocop/ast/node/when_node.rb#17 + # source://rubocop-ast/lib/rubocop/ast/node/when_node.rb#17 def each_condition(&block); end # Checks whether the `when` node has a `then` keyword. # # @return [Boolean] whether the `when` node has a `then` keyword # - # source://rubocop-ast//lib/rubocop/ast/node/when_node.rb#35 + # source://rubocop-ast/lib/rubocop/ast/node/when_node.rb#35 def then?; end end @@ -7216,7 +7313,7 @@ end # node when the builder constructs the AST, making its methods available # to all `while` nodes within RuboCop. # -# source://rubocop-ast//lib/rubocop/ast/node/while_node.rb#8 +# source://rubocop-ast/lib/rubocop/ast/node/while_node.rb#8 class RuboCop::AST::WhileNode < ::RuboCop::AST::Node include ::RuboCop::AST::ConditionalNode include ::RuboCop::AST::ModifierNode @@ -7225,7 +7322,7 @@ class RuboCop::AST::WhileNode < ::RuboCop::AST::Node # # @return [Boolean] whether the `until` node has a `do` keyword # - # source://rubocop-ast//lib/rubocop/ast/node/while_node.rb#30 + # source://rubocop-ast/lib/rubocop/ast/node/while_node.rb#30 def do?; end # Returns the inverse keyword of the `while` node as a string. @@ -7233,14 +7330,14 @@ class RuboCop::AST::WhileNode < ::RuboCop::AST::Node # # @return [String] the inverse keyword of the `while` statement # - # source://rubocop-ast//lib/rubocop/ast/node/while_node.rb#23 + # source://rubocop-ast/lib/rubocop/ast/node/while_node.rb#23 def inverse_keyword; end # Returns the keyword of the `while` statement as a string. # # @return [String] the keyword of the `while` statement # - # source://rubocop-ast//lib/rubocop/ast/node/while_node.rb#15 + # source://rubocop-ast/lib/rubocop/ast/node/while_node.rb#15 def keyword; end end @@ -7248,13 +7345,13 @@ end # node when the builder constructs the AST, making its methods available # to all `yield` nodes within RuboCop. # -# source://rubocop-ast//lib/rubocop/ast/node/yield_node.rb#8 +# source://rubocop-ast/lib/rubocop/ast/node/yield_node.rb#8 class RuboCop::AST::YieldNode < ::RuboCop::AST::Node include ::RuboCop::AST::ParameterizedNode include ::RuboCop::AST::MethodIdentifierPredicates include ::RuboCop::AST::MethodDispatchNode - # source://ast/2.4.2/lib/ast/node.rb#56 + # source://ast/2.4.2lib/ast/node.rb#56 def arguments; end # Custom destructuring method. This can be used to normalize @@ -7262,343 +7359,343 @@ class RuboCop::AST::YieldNode < ::RuboCop::AST::Node # # @return [Array] the different parts of the `send` node # - # source://rubocop-ast//lib/rubocop/ast/node/yield_node.rb#16 + # source://rubocop-ast/lib/rubocop/ast/node/yield_node.rb#16 def node_parts; end end class RuboCop::CommentConfig - # source://rubocop/1.68.0/lib/rubocop/comment_config.rb#34 + # source://rubocop/1.69.2lib/rubocop/comment_config.rb#34 def initialize(processed_source); end - # source://rubocop/1.68.0/lib/rubocop/comment_config.rb#63 + # source://rubocop/1.69.2lib/rubocop/comment_config.rb#63 def comment_only_line?(line_number); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/lib/rubocop/ast/utilities/simple_forwardable.rb#9 def config(*_arg0, **_arg1, &_arg2); end - # source://rubocop/1.68.0/lib/rubocop/comment_config.rb#51 + # source://rubocop/1.69.2lib/rubocop/comment_config.rb#51 def cop_disabled_line_ranges; end - # source://rubocop/1.68.0/lib/rubocop/comment_config.rb#39 + # source://rubocop/1.69.2lib/rubocop/comment_config.rb#39 def cop_enabled_at_line?(cop, line_number); end - # source://rubocop/1.68.0/lib/rubocop/comment_config.rb#47 + # source://rubocop/1.69.2lib/rubocop/comment_config.rb#47 def cop_opted_in?(cop); end - # source://rubocop/1.68.0/lib/rubocop/comment_config.rb#55 + # source://rubocop/1.69.2lib/rubocop/comment_config.rb#55 def extra_enabled_comments; end - # source://rubocop/1.68.0/lib/rubocop/comment_config.rb#30 + # source://rubocop/1.69.2lib/rubocop/comment_config.rb#30 def processed_source; end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/lib/rubocop/ast/utilities/simple_forwardable.rb#9 def registry(*_arg0, **_arg1, &_arg2); end private - # source://rubocop/1.68.0/lib/rubocop/comment_config.rb#96 + # source://rubocop/1.69.2lib/rubocop/comment_config.rb#96 def analyze; end - # source://rubocop/1.68.0/lib/rubocop/comment_config.rb#124 + # source://rubocop/1.69.2lib/rubocop/comment_config.rb#124 def analyze_cop(analysis, directive); end - # source://rubocop/1.68.0/lib/rubocop/comment_config.rb#144 + # source://rubocop/1.69.2lib/rubocop/comment_config.rb#144 def analyze_disabled(analysis, directive); end - # source://rubocop/1.68.0/lib/rubocop/comment_config.rb#155 + # source://rubocop/1.69.2lib/rubocop/comment_config.rb#155 def analyze_rest(analysis, directive); end - # source://rubocop/1.68.0/lib/rubocop/comment_config.rb#135 + # source://rubocop/1.69.2lib/rubocop/comment_config.rb#135 def analyze_single_line(analysis, directive); end - # source://rubocop/1.68.0/lib/rubocop/comment_config.rb#164 + # source://rubocop/1.69.2lib/rubocop/comment_config.rb#164 def cop_line_ranges(analysis); end - # source://rubocop/1.68.0/lib/rubocop/comment_config.rb#170 + # source://rubocop/1.69.2lib/rubocop/comment_config.rb#170 def each_directive; end - # source://rubocop/1.68.0/lib/rubocop/comment_config.rb#69 + # source://rubocop/1.69.2lib/rubocop/comment_config.rb#69 def extra_enabled_comments_with_names(extras:, names:); end - # source://rubocop/1.68.0/lib/rubocop/comment_config.rb#190 + # source://rubocop/1.69.2lib/rubocop/comment_config.rb#190 def handle_enable_all(directive, names, extras); end - # source://rubocop/1.68.0/lib/rubocop/comment_config.rb#204 + # source://rubocop/1.69.2lib/rubocop/comment_config.rb#204 def handle_switch(directive, names, extras); end - # source://rubocop/1.68.0/lib/rubocop/comment_config.rb#115 + # source://rubocop/1.69.2lib/rubocop/comment_config.rb#115 def inject_disabled_cops_directives(analyses); end - # source://rubocop/1.68.0/lib/rubocop/comment_config.rb#183 + # source://rubocop/1.69.2lib/rubocop/comment_config.rb#183 def non_comment_token_line_numbers; end - # source://rubocop/1.68.0/lib/rubocop/comment_config.rb#83 + # source://rubocop/1.69.2lib/rubocop/comment_config.rb#83 def opt_in_cops; end - # source://rubocop/1.68.0/lib/rubocop/comment_config.rb#179 + # source://rubocop/1.69.2lib/rubocop/comment_config.rb#179 def qualified_cop_name(cop_name); end end class RuboCop::Config - # source://rubocop/1.68.0/lib/rubocop/config.rb#30 + # source://rubocop/1.69.2lib/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 + # source://rubocop-ast/lib/rubocop/ast/utilities/simple_forwardable.rb#9 def [](*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/lib/rubocop/ast/utilities/simple_forwardable.rb#9 def []=(*_arg0, **_arg1, &_arg2); end - # source://rubocop/1.68.0/lib/rubocop/config.rb#170 + # source://rubocop/1.69.2lib/rubocop/config.rb#170 def active_support_extensions_enabled?; end - # source://rubocop/1.68.0/lib/rubocop/config.rb#96 + # source://rubocop/1.69.2lib/rubocop/config.rb#96 def add_excludes_from_higher_level(highest_config); end - # source://rubocop/1.68.0/lib/rubocop/config.rb#197 + # source://rubocop/1.69.2lib/rubocop/config.rb#197 def allowed_camel_case_file?(file); end - # source://rubocop/1.68.0/lib/rubocop/config.rb#241 + # source://rubocop/1.69.2lib/rubocop/config.rb#241 def base_dir_for_path_parameters; end - # source://rubocop/1.68.0/lib/rubocop/config.rb#271 + # source://rubocop/1.69.2lib/rubocop/config.rb#271 def bundler_lock_file_path; end - # source://rubocop/1.68.0/lib/rubocop/config.rb#51 + # source://rubocop/1.69.2lib/rubocop/config.rb#51 def check; end - # source://rubocop/1.68.0/lib/rubocop/config.rb#142 + # source://rubocop/1.69.2lib/rubocop/config.rb#142 def clusivity_config_for_badge?(badge); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/lib/rubocop/ast/utilities/simple_forwardable.rb#9 def delete(*_arg0, **_arg1, &_arg2); end - # source://rubocop/1.68.0/lib/rubocop/config.rb#108 + # source://rubocop/1.69.2lib/rubocop/config.rb#108 def deprecation_check; end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/lib/rubocop/ast/utilities/simple_forwardable.rb#9 def dig(*_arg0, **_arg1, &_arg2); end - # source://rubocop/1.68.0/lib/rubocop/config.rb#162 + # source://rubocop/1.69.2lib/rubocop/config.rb#162 def disabled_new_cops?; end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/lib/rubocop/ast/utilities/simple_forwardable.rb#9 def each(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/lib/rubocop/ast/utilities/simple_forwardable.rb#9 def each_key(*_arg0, **_arg1, &_arg2); end - # source://rubocop/1.68.0/lib/rubocop/config.rb#166 + # source://rubocop/1.69.2lib/rubocop/config.rb#166 def enabled_new_cops?; end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/lib/rubocop/ast/utilities/simple_forwardable.rb#9 def fetch(*_arg0, **_arg1, &_arg2); end - # source://rubocop/1.68.0/lib/rubocop/config.rb#219 + # source://rubocop/1.69.2lib/rubocop/config.rb#219 def file_to_exclude?(file); end - # source://rubocop/1.68.0/lib/rubocop/config.rb#178 + # source://rubocop/1.69.2lib/rubocop/config.rb#178 def file_to_include?(file); end - # source://rubocop/1.68.0/lib/rubocop/config.rb#158 + # source://rubocop/1.69.2lib/rubocop/config.rb#158 def for_all_cops; end - # source://rubocop/1.68.0/lib/rubocop/config.rb#128 + # source://rubocop/1.69.2lib/rubocop/config.rb#128 def for_badge(badge); end - # source://rubocop/1.68.0/lib/rubocop/config.rb#122 + # source://rubocop/1.69.2lib/rubocop/config.rb#122 def for_cop(cop); end - # source://rubocop/1.68.0/lib/rubocop/config.rb#153 + # source://rubocop/1.69.2lib/rubocop/config.rb#153 def for_department(department_name); end - # source://rubocop/1.68.0/lib/rubocop/config.rb#296 + # source://rubocop/1.69.2lib/rubocop/config.rb#296 def gem_versions_in_target; end - # source://rubocop/1.68.0/lib/rubocop/config.rb#300 + # source://rubocop/1.69.2lib/rubocop/config.rb#300 def inspect; end - # source://rubocop/1.68.0/lib/rubocop/config.rb#76 + # source://rubocop/1.69.2lib/rubocop/config.rb#76 def internal?; end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/lib/rubocop/ast/utilities/simple_forwardable.rb#9 def key?(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/lib/rubocop/ast/utilities/simple_forwardable.rb#9 def keys(*_arg0, **_arg1, &_arg2); end - # source://rubocop/1.68.0/lib/rubocop/config.rb#47 + # source://rubocop/1.69.2lib/rubocop/config.rb#47 def loaded_features; end - # source://rubocop/1.68.0/lib/rubocop/config.rb#20 + # source://rubocop/1.69.2lib/rubocop/config.rb#20 def loaded_path; end - # source://rubocop/1.68.0/lib/rubocop/config.rb#81 + # source://rubocop/1.69.2lib/rubocop/config.rb#81 def make_excludes_absolute; end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/lib/rubocop/ast/utilities/simple_forwardable.rb#9 def map(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/lib/rubocop/ast/utilities/simple_forwardable.rb#9 def merge(*_arg0, **_arg1, &_arg2); end - # source://rubocop/1.68.0/lib/rubocop/config.rb#251 + # source://rubocop/1.69.2lib/rubocop/config.rb#251 def parser_engine; end - # source://rubocop/1.68.0/lib/rubocop/config.rb#232 + # source://rubocop/1.69.2lib/rubocop/config.rb#232 def path_relative_to_config(path); end - # source://rubocop/1.68.0/lib/rubocop/config.rb#228 + # source://rubocop/1.69.2lib/rubocop/config.rb#228 def patterns_to_exclude; end - # source://rubocop/1.68.0/lib/rubocop/config.rb#224 + # source://rubocop/1.69.2lib/rubocop/config.rb#224 def patterns_to_include; end - # source://rubocop/1.68.0/lib/rubocop/config.rb#282 + # source://rubocop/1.69.2lib/rubocop/config.rb#282 def pending_cops; end - # source://rubocop/1.68.0/lib/rubocop/config.rb#211 + # source://rubocop/1.69.2lib/rubocop/config.rb#211 def possibly_include_hidden?; end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/lib/rubocop/ast/utilities/simple_forwardable.rb#9 def replace(*_arg0, **_arg1, &_arg2); end - # source://rubocop/1.68.0/lib/rubocop/config.rb#71 + # source://rubocop/1.69.2lib/rubocop/config.rb#71 def signature; end - # source://rubocop/1.68.0/lib/rubocop/config.rb#266 + # source://rubocop/1.69.2lib/rubocop/config.rb#266 def smart_loaded_path; end - # source://rubocop/1.68.0/lib/rubocop/config.rb#174 + # source://rubocop/1.69.2lib/rubocop/config.rb#174 def string_literals_frozen_by_default?; end - # source://rubocop/1.68.0/lib/rubocop/config.rb#255 + # source://rubocop/1.69.2lib/rubocop/config.rb#255 def target_rails_version; end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/lib/rubocop/ast/utilities/simple_forwardable.rb#9 def target_ruby_version(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/lib/rubocop/ast/utilities/simple_forwardable.rb#9 def to_h(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/lib/rubocop/ast/utilities/simple_forwardable.rb#9 def to_hash(*_arg0, **_arg1, &_arg2); end - # source://rubocop/1.68.0/lib/rubocop/config.rb#67 + # source://rubocop/1.69.2lib/rubocop/config.rb#67 def to_s; end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/lib/rubocop/ast/utilities/simple_forwardable.rb#9 def transform_values(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/lib/rubocop/ast/utilities/simple_forwardable.rb#9 def validate(*_arg0, **_arg1, &_arg2); end - # source://rubocop/1.68.0/lib/rubocop/config.rb#58 + # source://rubocop/1.69.2lib/rubocop/config.rb#58 def validate_after_resolution; end private - # source://rubocop/1.68.0/lib/rubocop/config.rb#350 + # source://rubocop/1.69.2lib/rubocop/config.rb#350 def department_of(qualified_cop_name); end - # source://rubocop/1.68.0/lib/rubocop/config.rb#338 + # source://rubocop/1.69.2lib/rubocop/config.rb#338 def enable_cop?(qualified_cop_name, cop_options); end - # source://rubocop/1.68.0/lib/rubocop/config.rb#325 + # source://rubocop/1.69.2lib/rubocop/config.rb#325 def gem_version_to_major_minor_float(gem_version); end - # source://rubocop/1.68.0/lib/rubocop/config.rb#331 + # source://rubocop/1.69.2lib/rubocop/config.rb#331 def read_gem_versions_from_target_lockfile; end - # source://rubocop/1.68.0/lib/rubocop/config.rb#312 + # source://rubocop/1.69.2lib/rubocop/config.rb#312 def read_rails_version_from_bundler_lock_file; end - # source://rubocop/1.68.0/lib/rubocop/config.rb#307 + # source://rubocop/1.69.2lib/rubocop/config.rb#307 def target_rails_version_from_bundler_lock_file; end class << self - # source://rubocop/1.68.0/lib/rubocop/config.rb#22 + # source://rubocop/1.69.2lib/rubocop/config.rb#22 def create(hash, path, check: T.unsafe(nil)); end end end class RuboCop::ConfigValidator - # source://rubocop/1.68.0/lib/rubocop/config_validator.rb#27 + # source://rubocop/1.69.2lib/rubocop/config_validator.rb#27 def initialize(config); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/lib/rubocop/ast/utilities/simple_forwardable.rb#9 def for_all_cops(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/lib/rubocop/ast/utilities/simple_forwardable.rb#9 def smart_loaded_path(*_arg0, **_arg1, &_arg2); end - # source://rubocop/1.68.0/lib/rubocop/config_validator.rb#63 + # source://rubocop/1.69.2lib/rubocop/config_validator.rb#63 def target_ruby_version; end - # source://rubocop/1.68.0/lib/rubocop/config_validator.rb#33 + # source://rubocop/1.69.2lib/rubocop/config_validator.rb#33 def validate; end - # source://rubocop/1.68.0/lib/rubocop/config_validator.rb#59 + # source://rubocop/1.69.2lib/rubocop/config_validator.rb#59 def validate_after_resolution; end - # source://rubocop/1.68.0/lib/rubocop/config_validator.rb#67 + # source://rubocop/1.69.2lib/rubocop/config_validator.rb#67 def validate_section_presence(name); end private - # source://rubocop/1.68.0/lib/rubocop/config_validator.rb#104 + # source://rubocop/1.69.2lib/rubocop/config_validator.rb#104 def alert_about_unrecognized_cops(invalid_cop_names); end - # source://rubocop/1.68.0/lib/rubocop/config_validator.rb#254 + # source://rubocop/1.69.2lib/rubocop/config_validator.rb#254 def check_cop_config_value(hash, parent = T.unsafe(nil)); end - # source://rubocop/1.68.0/lib/rubocop/config_validator.rb#77 + # source://rubocop/1.69.2lib/rubocop/config_validator.rb#77 def check_obsoletions; end - # source://rubocop/1.68.0/lib/rubocop/config_validator.rb#84 + # source://rubocop/1.69.2lib/rubocop/config_validator.rb#84 def check_target_ruby; end - # source://rubocop/1.68.0/lib/rubocop/config_validator.rb#195 + # source://rubocop/1.69.2lib/rubocop/config_validator.rb#195 def each_invalid_parameter(cop_name); end - # source://rubocop/1.68.0/lib/rubocop/config_validator.rb#120 + # source://rubocop/1.69.2lib/rubocop/config_validator.rb#120 def list_unknown_cops(invalid_cop_names); end - # source://rubocop/1.68.0/lib/rubocop/config_validator.rb#274 + # source://rubocop/1.69.2lib/rubocop/config_validator.rb#274 def param_error_message(parent, key, value, supposed_values); end - # source://rubocop/1.68.0/lib/rubocop/config_validator.rb#242 + # source://rubocop/1.69.2lib/rubocop/config_validator.rb#242 def reject_conflicting_safe_settings; end - # source://rubocop/1.68.0/lib/rubocop/config_validator.rb#233 + # source://rubocop/1.69.2lib/rubocop/config_validator.rb#233 def reject_mutually_exclusive_defaults; end - # source://rubocop/1.68.0/lib/rubocop/config_validator.rb#142 + # source://rubocop/1.69.2lib/rubocop/config_validator.rb#142 def suggestion(name); end - # source://rubocop/1.68.0/lib/rubocop/config_validator.rb#75 + # source://rubocop/1.69.2lib/rubocop/config_validator.rb#75 def target_ruby; end - # source://rubocop/1.68.0/lib/rubocop/config_validator.rb#207 + # source://rubocop/1.69.2lib/rubocop/config_validator.rb#207 def validate_enforced_styles(valid_cop_names); end - # source://rubocop/1.68.0/lib/rubocop/config_validator.rb#169 + # source://rubocop/1.69.2lib/rubocop/config_validator.rb#169 def validate_new_cops_parameter; end - # source://rubocop/1.68.0/lib/rubocop/config_validator.rb#180 + # source://rubocop/1.69.2lib/rubocop/config_validator.rb#180 def validate_parameter_names(valid_cop_names); end - # source://rubocop/1.68.0/lib/rubocop/config_validator.rb#227 + # source://rubocop/1.69.2lib/rubocop/config_validator.rb#227 def validate_support_and_has_list(name, formats, valid); end - # source://rubocop/1.68.0/lib/rubocop/config_validator.rb#158 + # source://rubocop/1.69.2lib/rubocop/config_validator.rb#158 def validate_syntax_cop; end end # Similar to `Forwardable#def_delegators`, but simpler & faster # -# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#5 +# source://rubocop-ast/lib/rubocop/ast/utilities/simple_forwardable.rb#5 module RuboCop::SimpleForwardable - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#6 + # source://rubocop-ast/lib/rubocop/ast/utilities/simple_forwardable.rb#6 def def_delegators(accessor, *methods); end end diff --git a/sorbet/rbi/gems/rubocop-rspec@3.2.0.rbi b/sorbet/rbi/gems/rubocop-rspec@3.3.0.rbi similarity index 64% rename from sorbet/rbi/gems/rubocop-rspec@3.2.0.rbi rename to sorbet/rbi/gems/rubocop-rspec@3.3.0.rbi index e21b66846..226b8cb36 100644 --- a/sorbet/rbi/gems/rubocop-rspec@3.2.0.rbi +++ b/sorbet/rbi/gems/rubocop-rspec@3.3.0.rbi @@ -5,17 +5,17 @@ # Please instead update this file by running `bin/tapioca gem rubocop-rspec`. -# source://rubocop-rspec//lib/rubocop/rspec.rb#3 +# source://rubocop-rspec/lib/rubocop/rspec.rb#3 module RuboCop; end class RuboCop::AST::Node < ::Parser::AST::Node include ::RuboCop::RSpec::Node end -# source://rubocop-rspec//lib/rubocop/cop/rspec/mixin/file_help.rb#4 +# source://rubocop-rspec/lib/rubocop/cop/rspec/mixin/file_help.rb#4 module RuboCop::Cop; end -# source://rubocop-rspec//lib/rubocop/cop/rspec/mixin/file_help.rb#5 +# source://rubocop-rspec/lib/rubocop/cop/rspec/mixin/file_help.rb#5 module RuboCop::Cop::RSpec; end # Checks that left braces for adjacent single line lets are aligned. @@ -31,25 +31,25 @@ module RuboCop::Cop::RSpec; end # let(:baz) { bar } # let(:a) { b } # -# source://rubocop-rspec//lib/rubocop/cop/rspec/align_left_let_brace.rb#19 +# source://rubocop-rspec/lib/rubocop/cop/rspec/align_left_let_brace.rb#19 class RuboCop::Cop::RSpec::AlignLeftLetBrace < ::RuboCop::Cop::RSpec::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-rspec//lib/rubocop/cop/rspec/align_left_let_brace.rb#28 + # source://rubocop-rspec/lib/rubocop/cop/rspec/align_left_let_brace.rb#28 def on_new_investigation; end private - # source://rubocop-rspec//lib/rubocop/cop/rspec/align_left_let_brace.rb#43 + # source://rubocop-rspec/lib/rubocop/cop/rspec/align_left_let_brace.rb#43 def token_aligner; end class << self - # source://rubocop-rspec//lib/rubocop/cop/rspec/align_left_let_brace.rb#24 + # source://rubocop-rspec/lib/rubocop/cop/rspec/align_left_let_brace.rb#24 def autocorrect_incompatible_with; end end end -# source://rubocop-rspec//lib/rubocop/cop/rspec/align_left_let_brace.rb#22 +# source://rubocop-rspec/lib/rubocop/cop/rspec/align_left_let_brace.rb#22 RuboCop::Cop::RSpec::AlignLeftLetBrace::MSG = T.let(T.unsafe(nil), String) # Checks that right braces for adjacent single line lets are aligned. @@ -65,25 +65,25 @@ RuboCop::Cop::RSpec::AlignLeftLetBrace::MSG = T.let(T.unsafe(nil), String) # let(:baz) { bar } # let(:a) { b } # -# source://rubocop-rspec//lib/rubocop/cop/rspec/align_right_let_brace.rb#19 +# source://rubocop-rspec/lib/rubocop/cop/rspec/align_right_let_brace.rb#19 class RuboCop::Cop::RSpec::AlignRightLetBrace < ::RuboCop::Cop::RSpec::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-rspec//lib/rubocop/cop/rspec/align_right_let_brace.rb#28 + # source://rubocop-rspec/lib/rubocop/cop/rspec/align_right_let_brace.rb#28 def on_new_investigation; end private - # source://rubocop-rspec//lib/rubocop/cop/rspec/align_right_let_brace.rb#43 + # source://rubocop-rspec/lib/rubocop/cop/rspec/align_right_let_brace.rb#43 def token_aligner; end class << self - # source://rubocop-rspec//lib/rubocop/cop/rspec/align_right_let_brace.rb#24 + # source://rubocop-rspec/lib/rubocop/cop/rspec/align_right_let_brace.rb#24 def autocorrect_incompatible_with; end end end -# source://rubocop-rspec//lib/rubocop/cop/rspec/align_right_let_brace.rb#22 +# source://rubocop-rspec/lib/rubocop/cop/rspec/align_right_let_brace.rb#22 RuboCop::Cop::RSpec::AlignRightLetBrace::MSG = T.let(T.unsafe(nil), String) # Check that instances are not being stubbed globally. @@ -106,16 +106,16 @@ RuboCop::Cop::RSpec::AlignRightLetBrace::MSG = T.let(T.unsafe(nil), String) # end # end # -# source://rubocop-rspec//lib/rubocop/cop/rspec/any_instance.rb#26 +# source://rubocop-rspec/lib/rubocop/cop/rspec/any_instance.rb#26 class RuboCop::Cop::RSpec::AnyInstance < ::RuboCop::Cop::RSpec::Base - # source://rubocop-rspec//lib/rubocop/cop/rspec/any_instance.rb#34 + # source://rubocop-rspec/lib/rubocop/cop/rspec/any_instance.rb#34 def on_send(node); end end -# source://rubocop-rspec//lib/rubocop/cop/rspec/any_instance.rb#27 +# source://rubocop-rspec/lib/rubocop/cop/rspec/any_instance.rb#27 RuboCop::Cop::RSpec::AnyInstance::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-rspec//lib/rubocop/cop/rspec/any_instance.rb#28 +# source://rubocop-rspec/lib/rubocop/cop/rspec/any_instance.rb#28 RuboCop::Cop::RSpec::AnyInstance::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Checks that around blocks actually run the test. @@ -141,57 +141,57 @@ RuboCop::Cop::RSpec::AnyInstance::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # test.run # end # -# source://rubocop-rspec//lib/rubocop/cop/rspec/around_block.rb#29 +# source://rubocop-rspec/lib/rubocop/cop/rspec/around_block.rb#29 class RuboCop::Cop::RSpec::AroundBlock < ::RuboCop::Cop::RSpec::Base - # source://rubocop-rspec//lib/rubocop/cop/rspec/around_block.rb#45 + # source://rubocop-rspec/lib/rubocop/cop/rspec/around_block.rb#45 def find_arg_usage(param0); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/around_block.rb#35 + # source://rubocop-rspec/lib/rubocop/cop/rspec/around_block.rb#35 def hook_block(param0 = T.unsafe(nil)); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/around_block.rb#40 + # source://rubocop-rspec/lib/rubocop/cop/rspec/around_block.rb#40 def hook_numblock(param0 = T.unsafe(nil)); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/around_block.rb#49 + # source://rubocop-rspec/lib/rubocop/cop/rspec/around_block.rb#49 def on_block(node); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/around_block.rb#59 + # source://rubocop-rspec/lib/rubocop/cop/rspec/around_block.rb#59 def on_numblock(node); end private - # source://rubocop-rspec//lib/rubocop/cop/rspec/around_block.rb#67 + # source://rubocop-rspec/lib/rubocop/cop/rspec/around_block.rb#67 def add_no_arg_offense(node); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/around_block.rb#84 + # source://rubocop-rspec/lib/rubocop/cop/rspec/around_block.rb#82 def check_for_numblock(block); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/around_block.rb#71 + # source://rubocop-rspec/lib/rubocop/cop/rspec/around_block.rb#71 def check_for_unused_proxy(block, proxy); end end -# source://rubocop-rspec//lib/rubocop/cop/rspec/around_block.rb#30 +# source://rubocop-rspec/lib/rubocop/cop/rspec/around_block.rb#30 RuboCop::Cop::RSpec::AroundBlock::MSG_NO_ARG = T.let(T.unsafe(nil), String) -# source://rubocop-rspec//lib/rubocop/cop/rspec/around_block.rb#31 +# source://rubocop-rspec/lib/rubocop/cop/rspec/around_block.rb#31 RuboCop::Cop::RSpec::AroundBlock::MSG_UNUSED_ARG = T.let(T.unsafe(nil), String) # @abstract parent class to RSpec cops # -# source://rubocop-rspec//lib/rubocop/cop/rspec/base.rb#7 +# source://rubocop-rspec/lib/rubocop/cop/rspec/base.rb#7 class RuboCop::Cop::RSpec::Base < ::RuboCop::Cop::Base include ::RuboCop::RSpec::Language # Set the config for dynamic DSL configuration-aware helpers # that have no other means of accessing the configuration. # - # source://rubocop-rspec//lib/rubocop/cop/rspec/base.rb#19 + # source://rubocop-rspec/lib/rubocop/cop/rspec/base.rb#19 def on_new_investigation; end class << self # Invoke the original inherited hook so our cops are recognized # - # source://rubocop-rspec//lib/rubocop/cop/rspec/base.rb#13 + # source://rubocop-rspec/lib/rubocop/cop/rspec/base.rb#13 def inherited(subclass); end end end @@ -211,19 +211,19 @@ end # expect(foo).to be 1.0 # expect(foo).to be(true) # -# source://rubocop-rspec//lib/rubocop/cop/rspec/be.rb#21 +# source://rubocop-rspec/lib/rubocop/cop/rspec/be.rb#21 class RuboCop::Cop::RSpec::Be < ::RuboCop::Cop::RSpec::Base - # source://rubocop-rspec//lib/rubocop/cop/rspec/be.rb#27 + # source://rubocop-rspec/lib/rubocop/cop/rspec/be.rb#27 def be_without_args(param0 = T.unsafe(nil)); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/be.rb#31 + # source://rubocop-rspec/lib/rubocop/cop/rspec/be.rb#31 def on_send(node); end end -# source://rubocop-rspec//lib/rubocop/cop/rspec/be.rb#22 +# source://rubocop-rspec/lib/rubocop/cop/rspec/be.rb#22 RuboCop::Cop::RSpec::Be::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-rspec//lib/rubocop/cop/rspec/be.rb#24 +# source://rubocop-rspec/lib/rubocop/cop/rspec/be.rb#24 RuboCop::Cop::RSpec::Be::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Prefer using `be_empty` when checking for an empty array. @@ -236,21 +236,21 @@ RuboCop::Cop::RSpec::Be::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # # good # expect(array).to be_empty # -# source://rubocop-rspec//lib/rubocop/cop/rspec/be_empty.rb#16 +# source://rubocop-rspec/lib/rubocop/cop/rspec/be_empty.rb#16 class RuboCop::Cop::RSpec::BeEmpty < ::RuboCop::Cop::RSpec::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-rspec//lib/rubocop/cop/rspec/be_empty.rb#23 + # source://rubocop-rspec/lib/rubocop/cop/rspec/be_empty.rb#23 def expect_array_matcher?(param0 = T.unsafe(nil)); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/be_empty.rb#35 + # source://rubocop-rspec/lib/rubocop/cop/rspec/be_empty.rb#35 def on_send(node); end end -# source://rubocop-rspec//lib/rubocop/cop/rspec/be_empty.rb#19 +# source://rubocop-rspec/lib/rubocop/cop/rspec/be_empty.rb#19 RuboCop::Cop::RSpec::BeEmpty::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-rspec//lib/rubocop/cop/rspec/be_empty.rb#20 +# source://rubocop-rspec/lib/rubocop/cop/rspec/be_empty.rb#20 RuboCop::Cop::RSpec::BeEmpty::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Check for expectations where `be(...)` can replace `eq(...)`. @@ -270,21 +270,21 @@ RuboCop::Cop::RSpec::BeEmpty::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # expect(foo).to be(false) # expect(foo).to be(nil) # -# source://rubocop-rspec//lib/rubocop/cop/rspec/be_eq.rb#26 +# source://rubocop-rspec/lib/rubocop/cop/rspec/be_eq.rb#26 class RuboCop::Cop::RSpec::BeEq < ::RuboCop::Cop::RSpec::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-rspec//lib/rubocop/cop/rspec/be_eq.rb#33 + # source://rubocop-rspec/lib/rubocop/cop/rspec/be_eq.rb#33 def eq_type_with_identity?(param0 = T.unsafe(nil)); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/be_eq.rb#37 + # source://rubocop-rspec/lib/rubocop/cop/rspec/be_eq.rb#37 def on_send(node); end end -# source://rubocop-rspec//lib/rubocop/cop/rspec/be_eq.rb#29 +# source://rubocop-rspec/lib/rubocop/cop/rspec/be_eq.rb#29 RuboCop::Cop::RSpec::BeEq::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-rspec//lib/rubocop/cop/rspec/be_eq.rb#30 +# source://rubocop-rspec/lib/rubocop/cop/rspec/be_eq.rb#30 RuboCop::Cop::RSpec::BeEq::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Check for expectations where `be(...)` can replace `eql(...)`. @@ -318,21 +318,21 @@ RuboCop::Cop::RSpec::BeEq::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # expect(foo).to be(:bar) # expect(foo).to be(nil) # -# source://rubocop-rspec//lib/rubocop/cop/rspec/be_eql.rb#40 +# source://rubocop-rspec/lib/rubocop/cop/rspec/be_eql.rb#40 class RuboCop::Cop::RSpec::BeEql < ::RuboCop::Cop::RSpec::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-rspec//lib/rubocop/cop/rspec/be_eql.rb#47 + # source://rubocop-rspec/lib/rubocop/cop/rspec/be_eql.rb#47 def eql_type_with_identity(param0 = T.unsafe(nil)); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/be_eql.rb#51 + # source://rubocop-rspec/lib/rubocop/cop/rspec/be_eql.rb#51 def on_send(node); end end -# source://rubocop-rspec//lib/rubocop/cop/rspec/be_eql.rb#43 +# source://rubocop-rspec/lib/rubocop/cop/rspec/be_eql.rb#43 RuboCop::Cop::RSpec::BeEql::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-rspec//lib/rubocop/cop/rspec/be_eql.rb#44 +# source://rubocop-rspec/lib/rubocop/cop/rspec/be_eql.rb#44 RuboCop::Cop::RSpec::BeEql::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Ensures a consistent style is used when matching `nil`. @@ -355,36 +355,36 @@ RuboCop::Cop::RSpec::BeEql::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # # good # expect(foo).to be(nil) # -# source://rubocop-rspec//lib/rubocop/cop/rspec/be_nil.rb#27 +# source://rubocop-rspec/lib/rubocop/cop/rspec/be_nil.rb#27 class RuboCop::Cop::RSpec::BeNil < ::RuboCop::Cop::RSpec::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-rspec//lib/rubocop/cop/rspec/be_nil.rb#36 + # source://rubocop-rspec/lib/rubocop/cop/rspec/be_nil.rb#36 def be_nil_matcher?(param0 = T.unsafe(nil)); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/be_nil.rb#41 + # source://rubocop-rspec/lib/rubocop/cop/rspec/be_nil.rb#41 def nil_value_expectation?(param0 = T.unsafe(nil)); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/be_nil.rb#45 + # source://rubocop-rspec/lib/rubocop/cop/rspec/be_nil.rb#45 def on_send(node); end private - # source://rubocop-rspec//lib/rubocop/cop/rspec/be_nil.rb#64 + # source://rubocop-rspec/lib/rubocop/cop/rspec/be_nil.rb#64 def check_be_nil_style(node); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/be_nil.rb#56 + # source://rubocop-rspec/lib/rubocop/cop/rspec/be_nil.rb#56 def check_be_style(node); end end -# source://rubocop-rspec//lib/rubocop/cop/rspec/be_nil.rb#31 +# source://rubocop-rspec/lib/rubocop/cop/rspec/be_nil.rb#31 RuboCop::Cop::RSpec::BeNil::BE_MSG = T.let(T.unsafe(nil), String) -# source://rubocop-rspec//lib/rubocop/cop/rspec/be_nil.rb#32 +# source://rubocop-rspec/lib/rubocop/cop/rspec/be_nil.rb#32 RuboCop::Cop::RSpec::BeNil::BE_NIL_MSG = T.let(T.unsafe(nil), String) -# source://rubocop-rspec//lib/rubocop/cop/rspec/be_nil.rb#33 +# source://rubocop-rspec/lib/rubocop/cop/rspec/be_nil.rb#33 RuboCop::Cop::RSpec::BeNil::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Check that before/after(:all/:context) isn't being used. @@ -402,19 +402,19 @@ RuboCop::Cop::RSpec::BeNil::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # after(:each) { Widget.delete_all } # end # -# source://rubocop-rspec//lib/rubocop/cop/rspec/before_after_all.rb#21 +# source://rubocop-rspec/lib/rubocop/cop/rspec/before_after_all.rb#21 class RuboCop::Cop::RSpec::BeforeAfterAll < ::RuboCop::Cop::RSpec::Base - # source://rubocop-rspec//lib/rubocop/cop/rspec/before_after_all.rb#30 + # source://rubocop-rspec/lib/rubocop/cop/rspec/before_after_all.rb#30 def before_or_after_all(param0 = T.unsafe(nil)); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/before_after_all.rb#34 + # source://rubocop-rspec/lib/rubocop/cop/rspec/before_after_all.rb#34 def on_send(node); end end -# source://rubocop-rspec//lib/rubocop/cop/rspec/before_after_all.rb#22 +# source://rubocop-rspec/lib/rubocop/cop/rspec/before_after_all.rb#22 RuboCop::Cop::RSpec::BeforeAfterAll::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-rspec//lib/rubocop/cop/rspec/before_after_all.rb#27 +# source://rubocop-rspec/lib/rubocop/cop/rspec/before_after_all.rb#27 RuboCop::Cop::RSpec::BeforeAfterAll::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Set) # Prefer negated matchers over `to change.by(0)`. @@ -470,71 +470,71 @@ RuboCop::Cop::RSpec::BeforeAfterAll::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Set # .to not_change { Foo.bar } # .and not_change { Foo.baz } # -# source://rubocop-rspec//lib/rubocop/cop/rspec/change_by_zero.rb#60 +# source://rubocop-rspec/lib/rubocop/cop/rspec/change_by_zero.rb#60 class RuboCop::Cop::RSpec::ChangeByZero < ::RuboCop::Cop::RSpec::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-rspec//lib/rubocop/cop/rspec/change_by_zero.rb#88 + # source://rubocop-rspec/lib/rubocop/cop/rspec/change_by_zero.rb#88 def change_nodes(param0); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/change_by_zero.rb#71 + # source://rubocop-rspec/lib/rubocop/cop/rspec/change_by_zero.rb#71 def expect_change_with_arguments(param0 = T.unsafe(nil)); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/change_by_zero.rb#78 + # source://rubocop-rspec/lib/rubocop/cop/rspec/change_by_zero.rb#78 def expect_change_with_block(param0 = T.unsafe(nil)); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/change_by_zero.rb#92 + # source://rubocop-rspec/lib/rubocop/cop/rspec/change_by_zero.rb#92 def on_send(node); end private - # source://rubocop-rspec//lib/rubocop/cop/rspec/change_by_zero.rb#134 + # source://rubocop-rspec/lib/rubocop/cop/rspec/change_by_zero.rb#134 def autocorrect(corrector, node, change_node); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/change_by_zero.rb#141 + # source://rubocop-rspec/lib/rubocop/cop/rspec/change_by_zero.rb#141 def autocorrect_compound(corrector, node); end # @return [Boolean] # - # source://rubocop-rspec//lib/rubocop/cop/rspec/change_by_zero.rb#120 + # source://rubocop-rspec/lib/rubocop/cop/rspec/change_by_zero.rb#120 def compound_expectations?(node); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/change_by_zero.rb#151 + # source://rubocop-rspec/lib/rubocop/cop/rspec/change_by_zero.rb#151 def insert_operator(corrector, node, change_node); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/change_by_zero.rb#125 + # source://rubocop-rspec/lib/rubocop/cop/rspec/change_by_zero.rb#125 def message(change_node); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/change_by_zero.rb#129 + # source://rubocop-rspec/lib/rubocop/cop/rspec/change_by_zero.rb#129 def message_compound(change_node); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/change_by_zero.rb#175 + # source://rubocop-rspec/lib/rubocop/cop/rspec/change_by_zero.rb#175 def negated_matcher; end - # source://rubocop-rspec//lib/rubocop/cop/rspec/change_by_zero.rb#179 + # source://rubocop-rspec/lib/rubocop/cop/rspec/change_by_zero.rb#179 def preferred_method; end - # source://rubocop-rspec//lib/rubocop/cop/rspec/change_by_zero.rb#105 + # source://rubocop-rspec/lib/rubocop/cop/rspec/change_by_zero.rb#105 def register_offense(node, change_node); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/change_by_zero.rb#164 + # source://rubocop-rspec/lib/rubocop/cop/rspec/change_by_zero.rb#164 def remove_by_zero(corrector, node, change_node); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/change_by_zero.rb#160 + # source://rubocop-rspec/lib/rubocop/cop/rspec/change_by_zero.rb#160 def replace_node(node, change_node); end end -# source://rubocop-rspec//lib/rubocop/cop/rspec/change_by_zero.rb#67 +# source://rubocop-rspec/lib/rubocop/cop/rspec/change_by_zero.rb#67 RuboCop::Cop::RSpec::ChangeByZero::CHANGE_METHODS = T.let(T.unsafe(nil), Set) -# source://rubocop-rspec//lib/rubocop/cop/rspec/change_by_zero.rb#64 +# source://rubocop-rspec/lib/rubocop/cop/rspec/change_by_zero.rb#64 RuboCop::Cop::RSpec::ChangeByZero::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-rspec//lib/rubocop/cop/rspec/change_by_zero.rb#65 +# source://rubocop-rspec/lib/rubocop/cop/rspec/change_by_zero.rb#65 RuboCop::Cop::RSpec::ChangeByZero::MSG_COMPOUND = T.let(T.unsafe(nil), String) -# source://rubocop-rspec//lib/rubocop/cop/rspec/change_by_zero.rb#68 +# source://rubocop-rspec/lib/rubocop/cop/rspec/change_by_zero.rb#68 RuboCop::Cop::RSpec::ChangeByZero::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Set) # Enforces consistent use of `be_a` or `be_kind_of`. @@ -556,73 +556,73 @@ RuboCop::Cop::RSpec::ChangeByZero::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Set) # expect(object).to be_kind_of(String) # expect(object).to be_a_kind_of(String) # -# source://rubocop-rspec//lib/rubocop/cop/rspec/class_check.rb#26 +# source://rubocop-rspec/lib/rubocop/cop/rspec/class_check.rb#26 class RuboCop::Cop::RSpec::ClassCheck < ::RuboCop::Cop::RSpec::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-rspec//lib/rubocop/cop/rspec/class_check.rb#54 + # source://rubocop-rspec/lib/rubocop/cop/rspec/class_check.rb#54 def on_send(node); end private - # source://rubocop-rspec//lib/rubocop/cop/rspec/class_check.rb#67 + # source://rubocop-rspec/lib/rubocop/cop/rspec/class_check.rb#67 def autocorrect(corrector, node); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/class_check.rb#71 + # source://rubocop-rspec/lib/rubocop/cop/rspec/class_check.rb#71 def format_message(node); end # @return [Boolean] # - # source://rubocop-rspec//lib/rubocop/cop/rspec/class_check.rb#79 + # source://rubocop-rspec/lib/rubocop/cop/rspec/class_check.rb#79 def offending?(node); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/class_check.rb#87 + # source://rubocop-rspec/lib/rubocop/cop/rspec/class_check.rb#87 def preferred_method_name; end # @return [Boolean] # - # source://rubocop-rspec//lib/rubocop/cop/rspec/class_check.rb#83 + # source://rubocop-rspec/lib/rubocop/cop/rspec/class_check.rb#83 def preferred_method_name?(method_name); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/class_check.rb#91 + # source://rubocop-rspec/lib/rubocop/cop/rspec/class_check.rb#91 def preferred_method_names; end end -# source://rubocop-rspec//lib/rubocop/cop/rspec/class_check.rb#32 +# source://rubocop-rspec/lib/rubocop/cop/rspec/class_check.rb#32 RuboCop::Cop::RSpec::ClassCheck::METHOD_NAMES_FOR_BE_A = T.let(T.unsafe(nil), Set) -# source://rubocop-rspec//lib/rubocop/cop/rspec/class_check.rb#37 +# source://rubocop-rspec/lib/rubocop/cop/rspec/class_check.rb#37 RuboCop::Cop::RSpec::ClassCheck::METHOD_NAMES_FOR_KIND_OF = T.let(T.unsafe(nil), Set) -# source://rubocop-rspec//lib/rubocop/cop/rspec/class_check.rb#30 +# source://rubocop-rspec/lib/rubocop/cop/rspec/class_check.rb#30 RuboCop::Cop::RSpec::ClassCheck::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-rspec//lib/rubocop/cop/rspec/class_check.rb#42 +# source://rubocop-rspec/lib/rubocop/cop/rspec/class_check.rb#42 RuboCop::Cop::RSpec::ClassCheck::PREFERRED_METHOD_NAME_BY_STYLE = T.let(T.unsafe(nil), Hash) -# source://rubocop-rspec//lib/rubocop/cop/rspec/class_check.rb#47 +# source://rubocop-rspec/lib/rubocop/cop/rspec/class_check.rb#47 RuboCop::Cop::RSpec::ClassCheck::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Help methods for working with nodes containing comments. # -# source://rubocop-rspec//lib/rubocop/cop/rspec/mixin/comments_help.rb#7 +# source://rubocop-rspec/lib/rubocop/cop/rspec/mixin/comments_help.rb#7 module RuboCop::Cop::RSpec::CommentsHelp include ::RuboCop::Cop::RSpec::FinalEndLocation - # source://rubocop-rspec//lib/rubocop/cop/rspec/mixin/comments_help.rb#17 + # source://rubocop-rspec/lib/rubocop/cop/rspec/mixin/comments_help.rb#17 def begin_pos_with_comment(node); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/mixin/comments_help.rb#32 + # source://rubocop-rspec/lib/rubocop/cop/rspec/mixin/comments_help.rb#32 def buffer; end - # source://rubocop-rspec//lib/rubocop/cop/rspec/mixin/comments_help.rb#27 + # source://rubocop-rspec/lib/rubocop/cop/rspec/mixin/comments_help.rb#27 def end_line_position(node); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/mixin/comments_help.rb#10 + # source://rubocop-rspec/lib/rubocop/cop/rspec/mixin/comments_help.rb#10 def source_range_with_comment(node); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/mixin/comments_help.rb#23 + # source://rubocop-rspec/lib/rubocop/cop/rspec/mixin/comments_help.rb#23 def start_line_position(node); end end @@ -642,26 +642,26 @@ end # # good # it { is_expected.to contain_exactly(content, *array) } # -# source://rubocop-rspec//lib/rubocop/cop/rspec/contain_exactly.rb#22 +# source://rubocop-rspec/lib/rubocop/cop/rspec/contain_exactly.rb#22 class RuboCop::Cop::RSpec::ContainExactly < ::RuboCop::Cop::RSpec::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-rspec//lib/rubocop/cop/rspec/contain_exactly.rb#28 + # source://rubocop-rspec/lib/rubocop/cop/rspec/contain_exactly.rb#28 def on_send(node); end private - # source://rubocop-rspec//lib/rubocop/cop/rspec/contain_exactly.rb#44 + # source://rubocop-rspec/lib/rubocop/cop/rspec/contain_exactly.rb#44 def autocorrect_for_populated_array(node, corrector); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/contain_exactly.rb#36 + # source://rubocop-rspec/lib/rubocop/cop/rspec/contain_exactly.rb#36 def check_populated_collection(node); end end -# source://rubocop-rspec//lib/rubocop/cop/rspec/contain_exactly.rb#25 +# source://rubocop-rspec/lib/rubocop/cop/rspec/contain_exactly.rb#25 RuboCop::Cop::RSpec::ContainExactly::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-rspec//lib/rubocop/cop/rspec/contain_exactly.rb#26 +# source://rubocop-rspec/lib/rubocop/cop/rspec/contain_exactly.rb#26 RuboCop::Cop::RSpec::ContainExactly::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # `context` should not be used for specifying methods. @@ -685,25 +685,25 @@ RuboCop::Cop::RSpec::ContainExactly::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Arr # # ... # end # -# source://rubocop-rspec//lib/rubocop/cop/rspec/context_method.rb#27 +# source://rubocop-rspec/lib/rubocop/cop/rspec/context_method.rb#27 class RuboCop::Cop::RSpec::ContextMethod < ::RuboCop::Cop::RSpec::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-rspec//lib/rubocop/cop/rspec/context_method.rb#33 + # source://rubocop-rspec/lib/rubocop/cop/rspec/context_method.rb#33 def context_method(param0 = T.unsafe(nil)); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/context_method.rb#41 + # source://rubocop-rspec/lib/rubocop/cop/rspec/context_method.rb#41 def on_block(node); end private # @return [Boolean] # - # source://rubocop-rspec//lib/rubocop/cop/rspec/context_method.rb#51 + # source://rubocop-rspec/lib/rubocop/cop/rspec/context_method.rb#51 def method_name?(description); end end -# source://rubocop-rspec//lib/rubocop/cop/rspec/context_method.rb#30 +# source://rubocop-rspec/lib/rubocop/cop/rspec/context_method.rb#30 RuboCop::Cop::RSpec::ContextMethod::MSG = T.let(T.unsafe(nil), String) # Checks that `context` docstring starts with an allowed prefix. @@ -757,41 +757,41 @@ RuboCop::Cop::RSpec::ContextMethod::MSG = T.let(T.unsafe(nil), String) # end # @see http://www.betterspecs.org/#contexts # -# source://rubocop-rspec//lib/rubocop/cop/rspec/context_wording.rb#61 +# source://rubocop-rspec/lib/rubocop/cop/rspec/context_wording.rb#61 class RuboCop::Cop::RSpec::ContextWording < ::RuboCop::Cop::RSpec::Base include ::RuboCop::Cop::AllowedPattern - # source://rubocop-rspec//lib/rubocop/cop/rspec/context_wording.rb#69 + # source://rubocop-rspec/lib/rubocop/cop/rspec/context_wording.rb#69 def context_wording(param0 = T.unsafe(nil)); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/context_wording.rb#73 + # source://rubocop-rspec/lib/rubocop/cop/rspec/context_wording.rb#73 def on_block(node); end private - # source://rubocop-rspec//lib/rubocop/cop/rspec/context_wording.rb#83 + # source://rubocop-rspec/lib/rubocop/cop/rspec/context_wording.rb#83 def allowed_patterns; end - # source://rubocop-rspec//lib/rubocop/cop/rspec/context_wording.rb#91 + # source://rubocop-rspec/lib/rubocop/cop/rspec/context_wording.rb#91 def description(context); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/context_wording.rb#107 + # source://rubocop-rspec/lib/rubocop/cop/rspec/context_wording.rb#107 def expect_patterns; end - # source://rubocop-rspec//lib/rubocop/cop/rspec/context_wording.rb#99 + # source://rubocop-rspec/lib/rubocop/cop/rspec/context_wording.rb#99 def message; end - # source://rubocop-rspec//lib/rubocop/cop/rspec/context_wording.rb#87 + # source://rubocop-rspec/lib/rubocop/cop/rspec/context_wording.rb#87 def prefix_regexes; end - # source://rubocop-rspec//lib/rubocop/cop/rspec/context_wording.rb#117 + # source://rubocop-rspec/lib/rubocop/cop/rspec/context_wording.rb#117 def prefixes; end end -# source://rubocop-rspec//lib/rubocop/cop/rspec/context_wording.rb#65 +# source://rubocop-rspec/lib/rubocop/cop/rspec/context_wording.rb#65 RuboCop::Cop::RSpec::ContextWording::MSG_ALWAYS = T.let(T.unsafe(nil), String) -# source://rubocop-rspec//lib/rubocop/cop/rspec/context_wording.rb#64 +# source://rubocop-rspec/lib/rubocop/cop/rspec/context_wording.rb#64 RuboCop::Cop::RSpec::ContextWording::MSG_MATCH = T.let(T.unsafe(nil), String) # Check that the first argument to the top-level describe is a constant. @@ -824,39 +824,39 @@ RuboCop::Cop::RSpec::ContextWording::MSG_MATCH = T.let(T.unsafe(nil), String) # describe "A feature example", type: :feature do # end # -# source://rubocop-rspec//lib/rubocop/cop/rspec/describe_class.rb#37 +# source://rubocop-rspec/lib/rubocop/cop/rspec/describe_class.rb#37 class RuboCop::Cop::RSpec::DescribeClass < ::RuboCop::Cop::RSpec::Base include ::RuboCop::Cop::RSpec::TopLevelGroup - # source://rubocop-rspec//lib/rubocop/cop/rspec/describe_class.rb#44 + # source://rubocop-rspec/lib/rubocop/cop/rspec/describe_class.rb#44 def example_group_with_ignored_metadata?(param0 = T.unsafe(nil)); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/describe_class.rb#49 + # source://rubocop-rspec/lib/rubocop/cop/rspec/describe_class.rb#49 def not_a_const_described(param0 = T.unsafe(nil)); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/describe_class.rb#58 + # source://rubocop-rspec/lib/rubocop/cop/rspec/describe_class.rb#58 def on_top_level_group(node); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/describe_class.rb#54 + # source://rubocop-rspec/lib/rubocop/cop/rspec/describe_class.rb#54 def sym_pair(param0 = T.unsafe(nil)); end private - # source://rubocop-rspec//lib/rubocop/cop/rspec/describe_class.rb#79 + # source://rubocop-rspec/lib/rubocop/cop/rspec/describe_class.rb#79 def ignored_metadata; end # @return [Boolean] # - # source://rubocop-rspec//lib/rubocop/cop/rspec/describe_class.rb#68 + # source://rubocop-rspec/lib/rubocop/cop/rspec/describe_class.rb#68 def ignored_metadata?(node); end # @return [Boolean] # - # source://rubocop-rspec//lib/rubocop/cop/rspec/describe_class.rb#74 + # source://rubocop-rspec/lib/rubocop/cop/rspec/describe_class.rb#74 def string_constant?(described); end end -# source://rubocop-rspec//lib/rubocop/cop/rspec/describe_class.rb#40 +# source://rubocop-rspec/lib/rubocop/cop/rspec/describe_class.rb#40 RuboCop::Cop::RSpec::DescribeClass::MSG = T.let(T.unsafe(nil), String) # Checks that the second argument to `describe` specifies a method. @@ -873,28 +873,28 @@ RuboCop::Cop::RSpec::DescribeClass::MSG = T.let(T.unsafe(nil), String) # describe MyClass, '.my_class_method' do # end # -# source://rubocop-rspec//lib/rubocop/cop/rspec/describe_method.rb#20 +# source://rubocop-rspec/lib/rubocop/cop/rspec/describe_method.rb#20 class RuboCop::Cop::RSpec::DescribeMethod < ::RuboCop::Cop::RSpec::Base include ::RuboCop::Cop::RSpec::TopLevelGroup - # source://rubocop-rspec//lib/rubocop/cop/rspec/describe_method.rb#34 + # source://rubocop-rspec/lib/rubocop/cop/rspec/describe_method.rb#34 def method_name?(param0 = T.unsafe(nil)); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/describe_method.rb#38 + # source://rubocop-rspec/lib/rubocop/cop/rspec/describe_method.rb#38 def on_top_level_group(node); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/describe_method.rb#27 + # source://rubocop-rspec/lib/rubocop/cop/rspec/describe_method.rb#27 def second_string_literal_argument(param0 = T.unsafe(nil)); end private # @return [Boolean] # - # source://rubocop-rspec//lib/rubocop/cop/rspec/describe_method.rb#46 + # source://rubocop-rspec/lib/rubocop/cop/rspec/describe_method.rb#46 def method_name_prefix?(description); end end -# source://rubocop-rspec//lib/rubocop/cop/rspec/describe_method.rb#23 +# source://rubocop-rspec/lib/rubocop/cop/rspec/describe_method.rb#23 RuboCop::Cop::RSpec::DescribeMethod::MSG = T.let(T.unsafe(nil), String) # Avoid describing symbols. @@ -911,19 +911,19 @@ RuboCop::Cop::RSpec::DescribeMethod::MSG = T.let(T.unsafe(nil), String) # end # @see https://github.com/rspec/rspec-core/issues/1610 # -# source://rubocop-rspec//lib/rubocop/cop/rspec/describe_symbol.rb#20 +# source://rubocop-rspec/lib/rubocop/cop/rspec/describe_symbol.rb#20 class RuboCop::Cop::RSpec::DescribeSymbol < ::RuboCop::Cop::RSpec::Base - # source://rubocop-rspec//lib/rubocop/cop/rspec/describe_symbol.rb#25 + # source://rubocop-rspec/lib/rubocop/cop/rspec/describe_symbol.rb#25 def describe_symbol?(param0 = T.unsafe(nil)); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/describe_symbol.rb#29 + # source://rubocop-rspec/lib/rubocop/cop/rspec/describe_symbol.rb#29 def on_send(node); end end -# source://rubocop-rspec//lib/rubocop/cop/rspec/describe_symbol.rb#21 +# source://rubocop-rspec/lib/rubocop/cop/rspec/describe_symbol.rb#21 RuboCop::Cop::RSpec::DescribeSymbol::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-rspec//lib/rubocop/cop/rspec/describe_symbol.rb#22 +# source://rubocop-rspec/lib/rubocop/cop/rspec/describe_symbol.rb#22 RuboCop::Cop::RSpec::DescribeSymbol::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Checks that tests use `described_class`. @@ -987,38 +987,38 @@ RuboCop::Cop::RSpec::DescribeSymbol::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Arr # end # end # -# source://rubocop-rspec//lib/rubocop/cop/rspec/described_class.rb#71 +# source://rubocop-rspec/lib/rubocop/cop/rspec/described_class.rb#71 class RuboCop::Cop::RSpec::DescribedClass < ::RuboCop::Cop::RSpec::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle include ::RuboCop::Cop::RSpec::Namespace extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-rspec//lib/rubocop/cop/rspec/described_class.rb#80 + # source://rubocop-rspec/lib/rubocop/cop/rspec/described_class.rb#80 def common_instance_exec_closure?(param0 = T.unsafe(nil)); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/described_class.rb#97 + # source://rubocop-rspec/lib/rubocop/cop/rspec/described_class.rb#97 def contains_described_class?(param0); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/described_class.rb#92 + # source://rubocop-rspec/lib/rubocop/cop/rspec/described_class.rb#92 def described_constant(param0 = T.unsafe(nil)); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/described_class.rb#100 + # source://rubocop-rspec/lib/rubocop/cop/rspec/described_class.rb#100 def on_block(node); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/described_class.rb#85 + # source://rubocop-rspec/lib/rubocop/cop/rspec/described_class.rb#85 def rspec_block?(param0 = T.unsafe(nil)); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/described_class.rb#89 + # source://rubocop-rspec/lib/rubocop/cop/rspec/described_class.rb#89 def scope_changing_syntax?(param0 = T.unsafe(nil)); end private # @return [Boolean] # - # source://rubocop-rspec//lib/rubocop/cop/rspec/described_class.rb#136 + # source://rubocop-rspec/lib/rubocop/cop/rspec/described_class.rb#136 def allowed?(node); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/described_class.rb#117 + # source://rubocop-rspec/lib/rubocop/cop/rspec/described_class.rb#117 def autocorrect(corrector, match); end # @example @@ -1032,7 +1032,7 @@ class RuboCop::Cop::RSpec::DescribedClass < ::RuboCop::Cop::RSpec::Base # @param const [Array] # @return [Array] # - # source://rubocop-rspec//lib/rubocop/cop/rspec/described_class.rb#200 + # source://rubocop-rspec/lib/rubocop/cop/rspec/described_class.rb#200 def collapse_namespace(namespace, const); end # @example @@ -1042,50 +1042,50 @@ class RuboCop::Cop::RSpec::DescribedClass < ::RuboCop::Cop::RSpec::Base # @param node [RuboCop::AST::Node] # @return [Array] # - # source://rubocop-rspec//lib/rubocop/cop/rspec/described_class.rb#217 + # source://rubocop-rspec/lib/rubocop/cop/rspec/described_class.rb#217 def const_name(node); end # @yield [node] # - # source://rubocop-rspec//lib/rubocop/cop/rspec/described_class.rb#127 + # source://rubocop-rspec/lib/rubocop/cop/rspec/described_class.rb#127 def find_usage(node, &block); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/described_class.rb#185 + # source://rubocop-rspec/lib/rubocop/cop/rspec/described_class.rb#185 def full_const_name(node); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/described_class.rb#140 + # source://rubocop-rspec/lib/rubocop/cop/rspec/described_class.rb#140 def message(offense); end # @return [Boolean] # - # source://rubocop-rspec//lib/rubocop/cop/rspec/described_class.rb#163 + # source://rubocop-rspec/lib/rubocop/cop/rspec/described_class.rb#163 def offensive?(node); end # @return [Boolean] # - # source://rubocop-rspec//lib/rubocop/cop/rspec/described_class.rb#171 + # source://rubocop-rspec/lib/rubocop/cop/rspec/described_class.rb#171 def offensive_described_class?(node); end # @return [Boolean] # - # source://rubocop-rspec//lib/rubocop/cop/rspec/described_class.rb#159 + # source://rubocop-rspec/lib/rubocop/cop/rspec/described_class.rb#159 def only_static_constants?; end # @return [Boolean] # - # source://rubocop-rspec//lib/rubocop/cop/rspec/described_class.rb#149 + # source://rubocop-rspec/lib/rubocop/cop/rspec/described_class.rb#149 def scope_change?(node); end # @return [Boolean] # - # source://rubocop-rspec//lib/rubocop/cop/rspec/described_class.rb#155 + # source://rubocop-rspec/lib/rubocop/cop/rspec/described_class.rb#155 def skippable_block?(node); end end -# source://rubocop-rspec//lib/rubocop/cop/rspec/described_class.rb#76 +# source://rubocop-rspec/lib/rubocop/cop/rspec/described_class.rb#76 RuboCop::Cop::RSpec::DescribedClass::DESCRIBED_CLASS = T.let(T.unsafe(nil), String) -# source://rubocop-rspec//lib/rubocop/cop/rspec/described_class.rb#77 +# source://rubocop-rspec/lib/rubocop/cop/rspec/described_class.rb#77 RuboCop::Cop::RSpec::DescribedClass::MSG = T.let(T.unsafe(nil), String) # Avoid opening modules and defining specs within them. @@ -1104,16 +1104,16 @@ RuboCop::Cop::RSpec::DescribedClass::MSG = T.let(T.unsafe(nil), String) # end # @see https://github.com/rubocop/rubocop-rspec/issues/735 # -# source://rubocop-rspec//lib/rubocop/cop/rspec/described_class_module_wrapping.rb#22 +# source://rubocop-rspec/lib/rubocop/cop/rspec/described_class_module_wrapping.rb#22 class RuboCop::Cop::RSpec::DescribedClassModuleWrapping < ::RuboCop::Cop::RSpec::Base - # source://rubocop-rspec//lib/rubocop/cop/rspec/described_class_module_wrapping.rb#26 + # source://rubocop-rspec/lib/rubocop/cop/rspec/described_class_module_wrapping.rb#26 def include_rspec_blocks?(param0); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/described_class_module_wrapping.rb#30 + # source://rubocop-rspec/lib/rubocop/cop/rspec/described_class_module_wrapping.rb#30 def on_module(node); end end -# source://rubocop-rspec//lib/rubocop/cop/rspec/described_class_module_wrapping.rb#23 +# source://rubocop-rspec/lib/rubocop/cop/rspec/described_class_module_wrapping.rb#23 RuboCop::Cop::RSpec::DescribedClassModuleWrapping::MSG = T.let(T.unsafe(nil), String) # Enforces custom RSpec dialects. @@ -1168,19 +1168,19 @@ RuboCop::Cop::RSpec::DescribedClassModuleWrapping::MSG = T.let(T.unsafe(nil), St # # ... # end # -# source://rubocop-rspec//lib/rubocop/cop/rspec/dialect.rb#58 +# source://rubocop-rspec/lib/rubocop/cop/rspec/dialect.rb#58 class RuboCop::Cop::RSpec::Dialect < ::RuboCop::Cop::RSpec::Base include ::RuboCop::Cop::MethodPreference extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-rspec//lib/rubocop/cop/rspec/dialect.rb#67 + # source://rubocop-rspec/lib/rubocop/cop/rspec/dialect.rb#67 def on_send(node); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/dialect.rb#65 + # source://rubocop-rspec/lib/rubocop/cop/rspec/dialect.rb#65 def rspec_method?(param0 = T.unsafe(nil)); end end -# source://rubocop-rspec//lib/rubocop/cop/rspec/dialect.rb#62 +# source://rubocop-rspec/lib/rubocop/cop/rspec/dialect.rb#62 RuboCop::Cop::RSpec::Dialect::MSG = T.let(T.unsafe(nil), String) # Avoid duplicated metadata. @@ -1192,30 +1192,30 @@ RuboCop::Cop::RSpec::Dialect::MSG = T.let(T.unsafe(nil), String) # # good # describe 'Something', :a # -# source://rubocop-rspec//lib/rubocop/cop/rspec/duplicated_metadata.rb#14 +# source://rubocop-rspec/lib/rubocop/cop/rspec/duplicated_metadata.rb#14 class RuboCop::Cop::RSpec::DuplicatedMetadata < ::RuboCop::Cop::RSpec::Base include ::RuboCop::Cop::RSpec::Metadata include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-rspec//lib/rubocop/cop/rspec/duplicated_metadata.rb#22 + # source://rubocop-rspec/lib/rubocop/cop/rspec/duplicated_metadata.rb#22 def on_metadata(symbols, _hash); end private - # source://rubocop-rspec//lib/rubocop/cop/rspec/duplicated_metadata.rb#38 + # source://rubocop-rspec/lib/rubocop/cop/rspec/duplicated_metadata.rb#38 def autocorrect(corrector, node); end # @return [Boolean] # - # source://rubocop-rspec//lib/rubocop/cop/rspec/duplicated_metadata.rb#50 + # source://rubocop-rspec/lib/rubocop/cop/rspec/duplicated_metadata.rb#50 def duplicated?(node); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/duplicated_metadata.rb#30 + # source://rubocop-rspec/lib/rubocop/cop/rspec/duplicated_metadata.rb#30 def on_metadata_symbol(node); end end -# source://rubocop-rspec//lib/rubocop/cop/rspec/duplicated_metadata.rb#20 +# source://rubocop-rspec/lib/rubocop/cop/rspec/duplicated_metadata.rb#20 RuboCop::Cop::RSpec::DuplicatedMetadata::MSG = T.let(T.unsafe(nil), String) # Checks if an example group does not include any tests. @@ -1250,7 +1250,7 @@ RuboCop::Cop::RSpec::DuplicatedMetadata::MSG = T.let(T.unsafe(nil), String) # pending 'will add tests later' # end # -# source://rubocop-rspec//lib/rubocop/cop/rspec/empty_example_group.rb#38 +# source://rubocop-rspec/lib/rubocop/cop/rspec/empty_example_group.rb#38 class RuboCop::Cop::RSpec::EmptyExampleGroup < ::RuboCop::Cop::RSpec::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector @@ -1264,7 +1264,7 @@ class RuboCop::Cop::RSpec::EmptyExampleGroup < ::RuboCop::Cop::RSpec::Base # @param node [RuboCop::AST::Node] # @yield [RuboCop::AST::Node] example group body # - # source://rubocop-rspec//lib/rubocop/cop/rspec/empty_example_group.rb#55 + # source://rubocop-rspec/lib/rubocop/cop/rspec/empty_example_group.rb#55 def example_group_body(param0 = T.unsafe(nil)); end # Match examples, example groups and includes @@ -1280,7 +1280,7 @@ class RuboCop::Cop::RSpec::EmptyExampleGroup < ::RuboCop::Cop::RSpec::Base # @param node [RuboCop::AST::Node] # @return [Array] matching nodes # - # source://rubocop-rspec//lib/rubocop/cop/rspec/empty_example_group.rb#73 + # source://rubocop-rspec/lib/rubocop/cop/rspec/empty_example_group.rb#73 def example_or_group_or_include?(param0 = T.unsafe(nil)); end # Matches examples defined in scopes where they could run @@ -1293,7 +1293,7 @@ class RuboCop::Cop::RSpec::EmptyExampleGroup < ::RuboCop::Cop::RSpec::Base # @param node [RuboCop::AST::Node] # @return [Array] matching nodes # - # source://rubocop-rspec//lib/rubocop/cop/rspec/empty_example_group.rb#130 + # source://rubocop-rspec/lib/rubocop/cop/rspec/empty_example_group.rb#130 def examples?(param0 = T.unsafe(nil)); end # Match examples or examples inside blocks @@ -1305,7 +1305,7 @@ class RuboCop::Cop::RSpec::EmptyExampleGroup < ::RuboCop::Cop::RSpec::Base # @param node [RuboCop::AST::Node] # @return [Array] matching nodes # - # source://rubocop-rspec//lib/rubocop/cop/rspec/empty_example_group.rb#111 + # source://rubocop-rspec/lib/rubocop/cop/rspec/empty_example_group.rb#111 def examples_directly_or_in_block?(param0 = T.unsafe(nil)); end # Match examples defined inside a block which is not a hook @@ -1321,34 +1321,34 @@ class RuboCop::Cop::RSpec::EmptyExampleGroup < ::RuboCop::Cop::RSpec::Base # @param node [RuboCop::AST::Node] # @return [Array] matching nodes # - # source://rubocop-rspec//lib/rubocop/cop/rspec/empty_example_group.rb#97 + # source://rubocop-rspec/lib/rubocop/cop/rspec/empty_example_group.rb#97 def examples_inside_block?(param0 = T.unsafe(nil)); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/empty_example_group.rb#138 + # source://rubocop-rspec/lib/rubocop/cop/rspec/empty_example_group.rb#138 def on_block(node); end private # @return [Boolean] # - # source://rubocop-rspec//lib/rubocop/cop/rspec/empty_example_group.rb#164 + # source://rubocop-rspec/lib/rubocop/cop/rspec/empty_example_group.rb#164 def conditionals_with_examples?(body); end # @return [Boolean] # - # source://rubocop-rspec//lib/rubocop/cop/rspec/empty_example_group.rb#172 + # source://rubocop-rspec/lib/rubocop/cop/rspec/empty_example_group.rb#172 def examples_in_branches?(condition_node); end # @return [Boolean] # - # source://rubocop-rspec//lib/rubocop/cop/rspec/empty_example_group.rb#153 + # source://rubocop-rspec/lib/rubocop/cop/rspec/empty_example_group.rb#153 def offensive?(body); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/empty_example_group.rb#178 + # source://rubocop-rspec/lib/rubocop/cop/rspec/empty_example_group.rb#178 def removed_range(node); end end -# source://rubocop-rspec//lib/rubocop/cop/rspec/empty_example_group.rb#43 +# source://rubocop-rspec/lib/rubocop/cop/rspec/empty_example_group.rb#43 RuboCop::Cop::RSpec::EmptyExampleGroup::MSG = T.let(T.unsafe(nil), String) # Checks for empty before and after hooks. @@ -1371,19 +1371,19 @@ RuboCop::Cop::RSpec::EmptyExampleGroup::MSG = T.let(T.unsafe(nil), String) # end # after(:all) { cleanup_feed } # -# source://rubocop-rspec//lib/rubocop/cop/rspec/empty_hook.rb#26 +# source://rubocop-rspec/lib/rubocop/cop/rspec/empty_hook.rb#26 class RuboCop::Cop::RSpec::EmptyHook < ::RuboCop::Cop::RSpec::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-rspec//lib/rubocop/cop/rspec/empty_hook.rb#33 + # source://rubocop-rspec/lib/rubocop/cop/rspec/empty_hook.rb#33 def empty_hook?(param0 = T.unsafe(nil)); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/empty_hook.rb#37 + # source://rubocop-rspec/lib/rubocop/cop/rspec/empty_hook.rb#37 def on_block(node); end end -# source://rubocop-rspec//lib/rubocop/cop/rspec/empty_hook.rb#30 +# source://rubocop-rspec/lib/rubocop/cop/rspec/empty_hook.rb#30 RuboCop::Cop::RSpec::EmptyHook::MSG = T.let(T.unsafe(nil), String) # Checks if there is an empty line after example blocks. @@ -1422,40 +1422,40 @@ RuboCop::Cop::RSpec::EmptyHook::MSG = T.let(T.unsafe(nil), String) # it { two } # end # -# source://rubocop-rspec//lib/rubocop/cop/rspec/empty_line_after_example.rb#43 +# source://rubocop-rspec/lib/rubocop/cop/rspec/empty_line_after_example.rb#43 class RuboCop::Cop::RSpec::EmptyLineAfterExample < ::RuboCop::Cop::RSpec::Base include ::RuboCop::Cop::RSpec::FinalEndLocation include ::RuboCop::Cop::RangeHelp include ::RuboCop::Cop::RSpec::EmptyLineSeparation extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-rspec//lib/rubocop/cop/rspec/empty_line_after_example.rb#49 + # source://rubocop-rspec/lib/rubocop/cop/rspec/empty_line_after_example.rb#49 def on_block(node); end private # @return [Boolean] # - # source://rubocop-rspec//lib/rubocop/cop/rspec/empty_line_after_example.rb#64 + # source://rubocop-rspec/lib/rubocop/cop/rspec/empty_line_after_example.rb#64 def allow_consecutive_one_liners?; end # @return [Boolean] # - # source://rubocop-rspec//lib/rubocop/cop/rspec/empty_line_after_example.rb#60 + # source://rubocop-rspec/lib/rubocop/cop/rspec/empty_line_after_example.rb#60 def allowed_one_liner?(node); end # @return [Boolean] # - # source://rubocop-rspec//lib/rubocop/cop/rspec/empty_line_after_example.rb#68 + # source://rubocop-rspec/lib/rubocop/cop/rspec/empty_line_after_example.rb#68 def consecutive_one_liner?(node); end # @return [Boolean] # - # source://rubocop-rspec//lib/rubocop/cop/rspec/empty_line_after_example.rb#72 + # source://rubocop-rspec/lib/rubocop/cop/rspec/empty_line_after_example.rb#72 def next_one_line_example?(node); end end -# source://rubocop-rspec//lib/rubocop/cop/rspec/empty_line_after_example.rb#47 +# source://rubocop-rspec/lib/rubocop/cop/rspec/empty_line_after_example.rb#47 RuboCop::Cop::RSpec::EmptyLineAfterExample::MSG = T.let(T.unsafe(nil), String) # Checks if there is an empty line after example group blocks. @@ -1478,18 +1478,18 @@ RuboCop::Cop::RSpec::EmptyLineAfterExample::MSG = T.let(T.unsafe(nil), String) # end # end # -# source://rubocop-rspec//lib/rubocop/cop/rspec/empty_line_after_example_group.rb#26 +# source://rubocop-rspec/lib/rubocop/cop/rspec/empty_line_after_example_group.rb#26 class RuboCop::Cop::RSpec::EmptyLineAfterExampleGroup < ::RuboCop::Cop::RSpec::Base include ::RuboCop::Cop::RSpec::FinalEndLocation include ::RuboCop::Cop::RangeHelp include ::RuboCop::Cop::RSpec::EmptyLineSeparation extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-rspec//lib/rubocop/cop/rspec/empty_line_after_example_group.rb#32 + # source://rubocop-rspec/lib/rubocop/cop/rspec/empty_line_after_example_group.rb#32 def on_block(node); end end -# source://rubocop-rspec//lib/rubocop/cop/rspec/empty_line_after_example_group.rb#30 +# source://rubocop-rspec/lib/rubocop/cop/rspec/empty_line_after_example_group.rb#30 RuboCop::Cop::RSpec::EmptyLineAfterExampleGroup::MSG = T.let(T.unsafe(nil), String) # Checks if there is an empty line after the last let block. @@ -1506,18 +1506,18 @@ RuboCop::Cop::RSpec::EmptyLineAfterExampleGroup::MSG = T.let(T.unsafe(nil), Stri # # it { does_something } # -# source://rubocop-rspec//lib/rubocop/cop/rspec/empty_line_after_final_let.rb#20 +# source://rubocop-rspec/lib/rubocop/cop/rspec/empty_line_after_final_let.rb#20 class RuboCop::Cop::RSpec::EmptyLineAfterFinalLet < ::RuboCop::Cop::RSpec::Base include ::RuboCop::Cop::RSpec::FinalEndLocation include ::RuboCop::Cop::RangeHelp include ::RuboCop::Cop::RSpec::EmptyLineSeparation extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-rspec//lib/rubocop/cop/rspec/empty_line_after_final_let.rb#26 + # source://rubocop-rspec/lib/rubocop/cop/rspec/empty_line_after_final_let.rb#26 def on_block(node); end end -# source://rubocop-rspec//lib/rubocop/cop/rspec/empty_line_after_final_let.rb#24 +# source://rubocop-rspec/lib/rubocop/cop/rspec/empty_line_after_final_let.rb#24 RuboCop::Cop::RSpec::EmptyLineAfterFinalLet::MSG = T.let(T.unsafe(nil), String) # Checks if there is an empty line after hook blocks. @@ -1566,7 +1566,7 @@ RuboCop::Cop::RSpec::EmptyLineAfterFinalLet::MSG = T.let(T.unsafe(nil), String) # # it { does_something } # -# source://rubocop-rspec//lib/rubocop/cop/rspec/empty_line_after_hook.rb#53 +# source://rubocop-rspec/lib/rubocop/cop/rspec/empty_line_after_hook.rb#53 class RuboCop::Cop::RSpec::EmptyLineAfterHook < ::RuboCop::Cop::RSpec::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle include ::RuboCop::Cop::RSpec::FinalEndLocation @@ -1574,21 +1574,21 @@ class RuboCop::Cop::RSpec::EmptyLineAfterHook < ::RuboCop::Cop::RSpec::Base include ::RuboCop::Cop::RSpec::EmptyLineSeparation extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-rspec//lib/rubocop/cop/rspec/empty_line_after_hook.rb#60 + # source://rubocop-rspec/lib/rubocop/cop/rspec/empty_line_after_hook.rb#60 def on_block(node); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/empty_line_after_hook.rb#60 + # source://rubocop-rspec/lib/rubocop/cop/rspec/empty_line_after_hook.rb#60 def on_numblock(node); end private # @return [Boolean] # - # source://rubocop-rspec//lib/rubocop/cop/rspec/empty_line_after_hook.rb#74 + # source://rubocop-rspec/lib/rubocop/cop/rspec/empty_line_after_hook.rb#74 def chained_single_line_hooks?(node); end end -# source://rubocop-rspec//lib/rubocop/cop/rspec/empty_line_after_hook.rb#58 +# source://rubocop-rspec/lib/rubocop/cop/rspec/empty_line_after_hook.rb#58 RuboCop::Cop::RSpec::EmptyLineAfterHook::MSG = T.let(T.unsafe(nil), String) # Checks if there is an empty line after subject block. @@ -1603,7 +1603,7 @@ RuboCop::Cop::RSpec::EmptyLineAfterHook::MSG = T.let(T.unsafe(nil), String) # # let(:foo) { bar } # -# source://rubocop-rspec//lib/rubocop/cop/rspec/empty_line_after_subject.rb#18 +# source://rubocop-rspec/lib/rubocop/cop/rspec/empty_line_after_subject.rb#18 class RuboCop::Cop::RSpec::EmptyLineAfterSubject < ::RuboCop::Cop::RSpec::Base include ::RuboCop::Cop::RSpec::FinalEndLocation include ::RuboCop::Cop::RangeHelp @@ -1611,11 +1611,11 @@ class RuboCop::Cop::RSpec::EmptyLineAfterSubject < ::RuboCop::Cop::RSpec::Base include ::RuboCop::Cop::RSpec::InsideExampleGroup extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-rspec//lib/rubocop/cop/rspec/empty_line_after_subject.rb#25 + # source://rubocop-rspec/lib/rubocop/cop/rspec/empty_line_after_subject.rb#25 def on_block(node); end end -# source://rubocop-rspec//lib/rubocop/cop/rspec/empty_line_after_subject.rb#23 +# source://rubocop-rspec/lib/rubocop/cop/rspec/empty_line_after_subject.rb#23 RuboCop::Cop::RSpec::EmptyLineAfterSubject::MSG = T.let(T.unsafe(nil), String) # Helps determine the offending location if there is not an empty line @@ -1623,25 +1623,25 @@ RuboCop::Cop::RSpec::EmptyLineAfterSubject::MSG = T.let(T.unsafe(nil), String) # in the following cases. # - followed by empty line(s) # -# source://rubocop-rspec//lib/rubocop/cop/rspec/mixin/empty_line_separation.rb#11 +# source://rubocop-rspec/lib/rubocop/cop/rspec/mixin/empty_line_separation.rb#11 module RuboCop::Cop::RSpec::EmptyLineSeparation include ::RuboCop::Cop::RSpec::FinalEndLocation include ::RuboCop::Cop::RangeHelp # @return [Boolean] # - # source://rubocop-rspec//lib/rubocop/cop/rspec/mixin/empty_line_separation.rb#51 + # source://rubocop-rspec/lib/rubocop/cop/rspec/mixin/empty_line_separation.rb#51 def last_child?(node); end # @yield [offending_loc(enable_directive_line || final_end_line)] # - # source://rubocop-rspec//lib/rubocop/cop/rspec/mixin/empty_line_separation.rb#26 + # source://rubocop-rspec/lib/rubocop/cop/rspec/mixin/empty_line_separation.rb#26 def missing_separating_line(node); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/mixin/empty_line_separation.rb#15 + # source://rubocop-rspec/lib/rubocop/cop/rspec/mixin/empty_line_separation.rb#15 def missing_separating_line_offense(node); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/mixin/empty_line_separation.rb#41 + # source://rubocop-rspec/lib/rubocop/cop/rspec/mixin/empty_line_separation.rb#41 def offending_loc(last_line); end end @@ -1654,22 +1654,22 @@ end # # good # describe 'Something' # -# source://rubocop-rspec//lib/rubocop/cop/rspec/empty_metadata.rb#14 +# source://rubocop-rspec/lib/rubocop/cop/rspec/empty_metadata.rb#14 class RuboCop::Cop::RSpec::EmptyMetadata < ::RuboCop::Cop::RSpec::Base include ::RuboCop::Cop::RSpec::Metadata include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-rspec//lib/rubocop/cop/rspec/empty_metadata.rb#22 + # source://rubocop-rspec/lib/rubocop/cop/rspec/empty_metadata.rb#22 def on_metadata(_symbols, hash); end private - # source://rubocop-rspec//lib/rubocop/cop/rspec/empty_metadata.rb#32 + # source://rubocop-rspec/lib/rubocop/cop/rspec/empty_metadata.rb#33 def remove_empty_metadata(corrector, node); end end -# source://rubocop-rspec//lib/rubocop/cop/rspec/empty_metadata.rb#20 +# source://rubocop-rspec/lib/rubocop/cop/rspec/empty_metadata.rb#20 RuboCop::Cop::RSpec::EmptyMetadata::MSG = T.let(T.unsafe(nil), String) # Check that the `output` matcher is not called with an empty string. @@ -1683,21 +1683,21 @@ RuboCop::Cop::RSpec::EmptyMetadata::MSG = T.let(T.unsafe(nil), String) # expect { foo }.not_to output.to_stdout # expect { bar }.to output.to_stderr # -# source://rubocop-rspec//lib/rubocop/cop/rspec/empty_output.rb#17 +# source://rubocop-rspec/lib/rubocop/cop/rspec/empty_output.rb#17 class RuboCop::Cop::RSpec::EmptyOutput < ::RuboCop::Cop::RSpec::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-rspec//lib/rubocop/cop/rspec/empty_output.rb#24 + # source://rubocop-rspec/lib/rubocop/cop/rspec/empty_output.rb#24 def matching_empty_output(param0 = T.unsafe(nil)); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/empty_output.rb#34 + # source://rubocop-rspec/lib/rubocop/cop/rspec/empty_output.rb#34 def on_send(send_node); end end -# source://rubocop-rspec//lib/rubocop/cop/rspec/empty_output.rb#20 +# source://rubocop-rspec/lib/rubocop/cop/rspec/empty_output.rb#20 RuboCop::Cop::RSpec::EmptyOutput::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-rspec//lib/rubocop/cop/rspec/empty_output.rb#21 +# source://rubocop-rspec/lib/rubocop/cop/rspec/empty_output.rb#21 RuboCop::Cop::RSpec::EmptyOutput::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Use `eq` instead of `be ==` to compare objects. @@ -1709,27 +1709,27 @@ RuboCop::Cop::RSpec::EmptyOutput::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # # good # expect(foo).to eq 42 # -# source://rubocop-rspec//lib/rubocop/cop/rspec/eq.rb#15 +# source://rubocop-rspec/lib/rubocop/cop/rspec/eq.rb#15 class RuboCop::Cop::RSpec::Eq < ::RuboCop::Cop::RSpec::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-rspec//lib/rubocop/cop/rspec/eq.rb#23 + # source://rubocop-rspec/lib/rubocop/cop/rspec/eq.rb#23 def be_equals(param0 = T.unsafe(nil)); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/eq.rb#27 + # source://rubocop-rspec/lib/rubocop/cop/rspec/eq.rb#27 def on_send(node); end private - # source://rubocop-rspec//lib/rubocop/cop/rspec/eq.rb#38 + # source://rubocop-rspec/lib/rubocop/cop/rspec/eq.rb#38 def offense_range(matcher); end end -# source://rubocop-rspec//lib/rubocop/cop/rspec/eq.rb#19 +# source://rubocop-rspec/lib/rubocop/cop/rspec/eq.rb#19 RuboCop::Cop::RSpec::Eq::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-rspec//lib/rubocop/cop/rspec/eq.rb#20 +# source://rubocop-rspec/lib/rubocop/cop/rspec/eq.rb#20 RuboCop::Cop::RSpec::Eq::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Checks for long examples. @@ -1782,20 +1782,20 @@ RuboCop::Cop::RSpec::Eq::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # ) # end # 6 points # -# source://rubocop-rspec//lib/rubocop/cop/rspec/example_length.rb#57 +# source://rubocop-rspec/lib/rubocop/cop/rspec/example_length.rb#57 class RuboCop::Cop::RSpec::ExampleLength < ::RuboCop::Cop::RSpec::Base include ::RuboCop::Cop::CodeLength - # source://rubocop-rspec//lib/rubocop/cop/rspec/example_length.rb#62 + # source://rubocop-rspec/lib/rubocop/cop/rspec/example_length.rb#62 def on_block(node); end private - # source://rubocop-rspec//lib/rubocop/cop/rspec/example_length.rb#70 + # source://rubocop-rspec/lib/rubocop/cop/rspec/example_length.rb#70 def cop_label; end end -# source://rubocop-rspec//lib/rubocop/cop/rspec/example_length.rb#60 +# source://rubocop-rspec/lib/rubocop/cop/rspec/example_length.rb#60 RuboCop::Cop::RSpec::ExampleLength::LABEL = T.let(T.unsafe(nil), String) # Checks for examples without a description. @@ -1848,31 +1848,31 @@ RuboCop::Cop::RSpec::ExampleLength::LABEL = T.let(T.unsafe(nil), String) # expect(result).to be(true) # end # -# source://rubocop-rspec//lib/rubocop/cop/rspec/example_without_description.rb#59 +# source://rubocop-rspec/lib/rubocop/cop/rspec/example_without_description.rb#59 class RuboCop::Cop::RSpec::ExampleWithoutDescription < ::RuboCop::Cop::RSpec::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle - # source://rubocop-rspec//lib/rubocop/cop/rspec/example_without_description.rb#67 + # source://rubocop-rspec/lib/rubocop/cop/rspec/example_without_description.rb#67 def example_description(param0 = T.unsafe(nil)); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/example_without_description.rb#69 + # source://rubocop-rspec/lib/rubocop/cop/rspec/example_without_description.rb#69 def on_block(node); end private - # source://rubocop-rspec//lib/rubocop/cop/rspec/example_without_description.rb#83 + # source://rubocop-rspec/lib/rubocop/cop/rspec/example_without_description.rb#83 def check_example_without_description(node); end # @return [Boolean] # - # source://rubocop-rspec//lib/rubocop/cop/rspec/example_without_description.rb#91 + # source://rubocop-rspec/lib/rubocop/cop/rspec/example_without_description.rb#91 def disallow_empty_description?(node); end end -# source://rubocop-rspec//lib/rubocop/cop/rspec/example_without_description.rb#64 +# source://rubocop-rspec/lib/rubocop/cop/rspec/example_without_description.rb#64 RuboCop::Cop::RSpec::ExampleWithoutDescription::MSG_ADD_DESCRIPTION = T.let(T.unsafe(nil), String) -# source://rubocop-rspec//lib/rubocop/cop/rspec/example_without_description.rb#62 +# source://rubocop-rspec/lib/rubocop/cop/rspec/example_without_description.rb#62 RuboCop::Cop::RSpec::ExampleWithoutDescription::MSG_DEFAULT_ARGUMENT = T.let(T.unsafe(nil), String) # Checks for common mistakes in example descriptions. @@ -1916,70 +1916,70 @@ RuboCop::Cop::RSpec::ExampleWithoutDescription::MSG_DEFAULT_ARGUMENT = T.let(T.u # end # @see http://betterspecs.org/#should # -# source://rubocop-rspec//lib/rubocop/cop/rspec/example_wording.rb#49 +# source://rubocop-rspec/lib/rubocop/cop/rspec/example_wording.rb#49 class RuboCop::Cop::RSpec::ExampleWording < ::RuboCop::Cop::RSpec::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-rspec//lib/rubocop/cop/rspec/example_wording.rb#63 + # source://rubocop-rspec/lib/rubocop/cop/rspec/example_wording.rb#63 def it_description(param0 = T.unsafe(nil)); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/example_wording.rb#71 + # source://rubocop-rspec/lib/rubocop/cop/rspec/example_wording.rb#71 def on_block(node); end private - # source://rubocop-rspec//lib/rubocop/cop/rspec/example_wording.rb#89 + # source://rubocop-rspec/lib/rubocop/cop/rspec/example_wording.rb#89 def add_wording_offense(node, message); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/example_wording.rb#136 + # source://rubocop-rspec/lib/rubocop/cop/rspec/example_wording.rb#136 def custom_transform; end - # source://rubocop-rspec//lib/rubocop/cop/rspec/example_wording.rb#99 + # source://rubocop-rspec/lib/rubocop/cop/rspec/example_wording.rb#99 def docstring(node); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/example_wording.rb#140 + # source://rubocop-rspec/lib/rubocop/cop/rspec/example_wording.rb#140 def ignored_words; end # @return [Boolean] # - # source://rubocop-rspec//lib/rubocop/cop/rspec/example_wording.rb#144 + # source://rubocop-rspec/lib/rubocop/cop/rspec/example_wording.rb#144 def insufficient_docstring?(description_node); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/example_wording.rb#148 + # source://rubocop-rspec/lib/rubocop/cop/rspec/example_wording.rb#148 def insufficient_examples; end - # source://rubocop-rspec//lib/rubocop/cop/rspec/example_wording.rb#153 + # source://rubocop-rspec/lib/rubocop/cop/rspec/example_wording.rb#153 def preprocess(message); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/example_wording.rb#109 + # source://rubocop-rspec/lib/rubocop/cop/rspec/example_wording.rb#109 def replacement_text(node); end # Recursive processing is required to process nested dstr nodes # that is the case for \-separated multiline strings with interpolation. # - # source://rubocop-rspec//lib/rubocop/cop/rspec/example_wording.rb#125 + # source://rubocop-rspec/lib/rubocop/cop/rspec/example_wording.rb#125 def text(node); end end -# source://rubocop-rspec//lib/rubocop/cop/rspec/example_wording.rb#60 +# source://rubocop-rspec/lib/rubocop/cop/rspec/example_wording.rb#60 RuboCop::Cop::RSpec::ExampleWording::IT_PREFIX = T.let(T.unsafe(nil), Regexp) -# source://rubocop-rspec//lib/rubocop/cop/rspec/example_wording.rb#55 +# source://rubocop-rspec/lib/rubocop/cop/rspec/example_wording.rb#55 RuboCop::Cop::RSpec::ExampleWording::MSG_INSUFFICIENT_DESCRIPTION = T.let(T.unsafe(nil), String) -# source://rubocop-rspec//lib/rubocop/cop/rspec/example_wording.rb#54 +# source://rubocop-rspec/lib/rubocop/cop/rspec/example_wording.rb#54 RuboCop::Cop::RSpec::ExampleWording::MSG_IT = T.let(T.unsafe(nil), String) -# source://rubocop-rspec//lib/rubocop/cop/rspec/example_wording.rb#52 +# source://rubocop-rspec/lib/rubocop/cop/rspec/example_wording.rb#52 RuboCop::Cop::RSpec::ExampleWording::MSG_SHOULD = T.let(T.unsafe(nil), String) -# source://rubocop-rspec//lib/rubocop/cop/rspec/example_wording.rb#53 +# source://rubocop-rspec/lib/rubocop/cop/rspec/example_wording.rb#53 RuboCop::Cop::RSpec::ExampleWording::MSG_WILL = T.let(T.unsafe(nil), String) -# source://rubocop-rspec//lib/rubocop/cop/rspec/example_wording.rb#58 +# source://rubocop-rspec/lib/rubocop/cop/rspec/example_wording.rb#58 RuboCop::Cop::RSpec::ExampleWording::SHOULD_PREFIX = T.let(T.unsafe(nil), Regexp) -# source://rubocop-rspec//lib/rubocop/cop/rspec/example_wording.rb#59 +# source://rubocop-rspec/lib/rubocop/cop/rspec/example_wording.rb#59 RuboCop::Cop::RSpec::ExampleWording::WILL_PREFIX = T.let(T.unsafe(nil), Regexp) # Checks for excessive whitespace in example descriptions. @@ -2001,14 +2001,14 @@ RuboCop::Cop::RSpec::ExampleWording::WILL_PREFIX = T.let(T.unsafe(nil), Regexp) # context 'when a condition is met' do # end # -# source://rubocop-rspec//lib/rubocop/cop/rspec/excessive_docstring_spacing.rb#26 +# source://rubocop-rspec/lib/rubocop/cop/rspec/excessive_docstring_spacing.rb#26 class RuboCop::Cop::RSpec::ExcessiveDocstringSpacing < ::RuboCop::Cop::RSpec::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-rspec//lib/rubocop/cop/rspec/excessive_docstring_spacing.rb#32 + # source://rubocop-rspec/lib/rubocop/cop/rspec/excessive_docstring_spacing.rb#32 def example_description(param0 = T.unsafe(nil)); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/excessive_docstring_spacing.rb#39 + # source://rubocop-rspec/lib/rubocop/cop/rspec/excessive_docstring_spacing.rb#39 def on_send(node); end private @@ -2016,31 +2016,31 @@ class RuboCop::Cop::RSpec::ExcessiveDocstringSpacing < ::RuboCop::Cop::RSpec::Ba # @param node [RuboCop::AST::Node] # @param text [String] # - # source://rubocop-rspec//lib/rubocop/cop/rspec/excessive_docstring_spacing.rb#76 + # source://rubocop-rspec/lib/rubocop/cop/rspec/excessive_docstring_spacing.rb#76 def add_whitespace_offense(node, text); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/excessive_docstring_spacing.rb#85 + # source://rubocop-rspec/lib/rubocop/cop/rspec/excessive_docstring_spacing.rb#85 def docstring(node); end # @param text [String] # @return [Boolean] # - # source://rubocop-rspec//lib/rubocop/cop/rspec/excessive_docstring_spacing.rb#54 + # source://rubocop-rspec/lib/rubocop/cop/rspec/excessive_docstring_spacing.rb#54 def excessive_whitespace?(text); end # @param text [String] # - # source://rubocop-rspec//lib/rubocop/cop/rspec/excessive_docstring_spacing.rb#68 + # source://rubocop-rspec/lib/rubocop/cop/rspec/excessive_docstring_spacing.rb#68 def strip_excessive_whitespace(text); end # Recursive processing is required to process nested dstr nodes # that is the case for \-separated multiline strings with interpolation. # - # source://rubocop-rspec//lib/rubocop/cop/rspec/excessive_docstring_spacing.rb#97 + # source://rubocop-rspec/lib/rubocop/cop/rspec/excessive_docstring_spacing.rb#97 def text(node); end end -# source://rubocop-rspec//lib/rubocop/cop/rspec/excessive_docstring_spacing.rb#29 +# source://rubocop-rspec/lib/rubocop/cop/rspec/excessive_docstring_spacing.rb#29 RuboCop::Cop::RSpec::ExcessiveDocstringSpacing::MSG = T.let(T.unsafe(nil), String) # Checks for `expect(...)` calls containing literal values. @@ -2061,21 +2061,21 @@ RuboCop::Cop::RSpec::ExcessiveDocstringSpacing::MSG = T.let(T.unsafe(nil), Strin # # bad (not supported autocorrection) # expect(false).to eq(true) # -# source://rubocop-rspec//lib/rubocop/cop/rspec/expect_actual.rb#24 +# source://rubocop-rspec/lib/rubocop/cop/rspec/expect_actual.rb#24 class RuboCop::Cop::RSpec::ExpectActual < ::RuboCop::Cop::RSpec::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-rspec//lib/rubocop/cop/rspec/expect_actual.rb#57 + # source://rubocop-rspec/lib/rubocop/cop/rspec/expect_actual.rb#57 def expect_literal(param0 = T.unsafe(nil)); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/expect_actual.rb#68 + # source://rubocop-rspec/lib/rubocop/cop/rspec/expect_actual.rb#68 def on_send(node); end private # @return [Boolean] # - # source://rubocop-rspec//lib/rubocop/cop/rspec/expect_actual.rb#98 + # source://rubocop-rspec/lib/rubocop/cop/rspec/expect_actual.rb#98 def complex_literal?(node); end # This is not implemented using a NodePattern because it seems @@ -2083,31 +2083,31 @@ class RuboCop::Cop::RSpec::ExpectActual < ::RuboCop::Cop::RSpec::Base # # @return [Boolean] # - # source://rubocop-rspec//lib/rubocop/cop/rspec/expect_actual.rb#90 + # source://rubocop-rspec/lib/rubocop/cop/rspec/expect_actual.rb#90 def literal?(node); end # @return [Boolean] # - # source://rubocop-rspec//lib/rubocop/cop/rspec/expect_actual.rb#94 + # source://rubocop-rspec/lib/rubocop/cop/rspec/expect_actual.rb#94 def simple_literal?(node); end end -# source://rubocop-rspec//lib/rubocop/cop/rspec/expect_actual.rb#44 +# source://rubocop-rspec/lib/rubocop/cop/rspec/expect_actual.rb#44 RuboCop::Cop::RSpec::ExpectActual::COMPLEX_LITERALS = T.let(T.unsafe(nil), Array) -# source://rubocop-rspec//lib/rubocop/cop/rspec/expect_actual.rb#54 +# source://rubocop-rspec/lib/rubocop/cop/rspec/expect_actual.rb#54 RuboCop::Cop::RSpec::ExpectActual::CORRECTABLE_MATCHERS = T.let(T.unsafe(nil), Array) -# source://rubocop-rspec//lib/rubocop/cop/rspec/expect_actual.rb#27 +# source://rubocop-rspec/lib/rubocop/cop/rspec/expect_actual.rb#27 RuboCop::Cop::RSpec::ExpectActual::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-rspec//lib/rubocop/cop/rspec/expect_actual.rb#29 +# source://rubocop-rspec/lib/rubocop/cop/rspec/expect_actual.rb#29 RuboCop::Cop::RSpec::ExpectActual::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) -# source://rubocop-rspec//lib/rubocop/cop/rspec/expect_actual.rb#31 +# source://rubocop-rspec/lib/rubocop/cop/rspec/expect_actual.rb#31 RuboCop::Cop::RSpec::ExpectActual::SIMPLE_LITERALS = T.let(T.unsafe(nil), Array) -# source://rubocop-rspec//lib/rubocop/cop/rspec/expect_actual.rb#53 +# source://rubocop-rspec/lib/rubocop/cop/rspec/expect_actual.rb#53 RuboCop::Cop::RSpec::ExpectActual::SKIPPED_MATCHERS = T.let(T.unsafe(nil), Array) # Checks for consistent style of change matcher. @@ -2135,31 +2135,31 @@ RuboCop::Cop::RSpec::ExpectActual::SKIPPED_MATCHERS = T.let(T.unsafe(nil), Array # # good # expect { run }.to change { Foo.bar } # -# source://rubocop-rspec//lib/rubocop/cop/rspec/expect_change.rb#32 +# source://rubocop-rspec/lib/rubocop/cop/rspec/expect_change.rb#32 class RuboCop::Cop::RSpec::ExpectChange < ::RuboCop::Cop::RSpec::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-rspec//lib/rubocop/cop/rspec/expect_change.rb#41 + # source://rubocop-rspec/lib/rubocop/cop/rspec/expect_change.rb#41 def expect_change_with_arguments(param0 = T.unsafe(nil)); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/expect_change.rb#46 + # source://rubocop-rspec/lib/rubocop/cop/rspec/expect_change.rb#46 def expect_change_with_block(param0 = T.unsafe(nil)); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/expect_change.rb#72 + # source://rubocop-rspec/lib/rubocop/cop/rspec/expect_change.rb#72 def on_block(node); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/expect_change.rb#60 + # source://rubocop-rspec/lib/rubocop/cop/rspec/expect_change.rb#60 def on_send(node); end end -# source://rubocop-rspec//lib/rubocop/cop/rspec/expect_change.rb#36 +# source://rubocop-rspec/lib/rubocop/cop/rspec/expect_change.rb#36 RuboCop::Cop::RSpec::ExpectChange::MSG_BLOCK = T.let(T.unsafe(nil), String) -# source://rubocop-rspec//lib/rubocop/cop/rspec/expect_change.rb#37 +# source://rubocop-rspec/lib/rubocop/cop/rspec/expect_change.rb#37 RuboCop::Cop::RSpec::ExpectChange::MSG_CALL = T.let(T.unsafe(nil), String) -# source://rubocop-rspec//lib/rubocop/cop/rspec/expect_change.rb#38 +# source://rubocop-rspec/lib/rubocop/cop/rspec/expect_change.rb#38 RuboCop::Cop::RSpec::ExpectChange::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Do not use `expect` in hooks such as `before`. @@ -2180,24 +2180,24 @@ RuboCop::Cop::RSpec::ExpectChange::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array # expect(something).to eq 'foo' # end # -# source://rubocop-rspec//lib/rubocop/cop/rspec/expect_in_hook.rb#24 +# source://rubocop-rspec/lib/rubocop/cop/rspec/expect_in_hook.rb#24 class RuboCop::Cop::RSpec::ExpectInHook < ::RuboCop::Cop::RSpec::Base - # source://rubocop-rspec//lib/rubocop/cop/rspec/expect_in_hook.rb#28 + # source://rubocop-rspec/lib/rubocop/cop/rspec/expect_in_hook.rb#28 def expectation(param0); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/expect_in_hook.rb#30 + # source://rubocop-rspec/lib/rubocop/cop/rspec/expect_in_hook.rb#30 def on_block(node); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/expect_in_hook.rb#30 + # source://rubocop-rspec/lib/rubocop/cop/rspec/expect_in_hook.rb#30 def on_numblock(node); end private - # source://rubocop-rspec//lib/rubocop/cop/rspec/expect_in_hook.rb#44 + # source://rubocop-rspec/lib/rubocop/cop/rspec/expect_in_hook.rb#44 def message(expect, hook); end end -# source://rubocop-rspec//lib/rubocop/cop/rspec/expect_in_hook.rb#25 +# source://rubocop-rspec/lib/rubocop/cop/rspec/expect_in_hook.rb#25 RuboCop::Cop::RSpec::ExpectInHook::MSG = T.let(T.unsafe(nil), String) # Do not use `expect` in let. @@ -2213,21 +2213,21 @@ RuboCop::Cop::RSpec::ExpectInHook::MSG = T.let(T.unsafe(nil), String) # expect(something).to eq 'foo' # end # -# source://rubocop-rspec//lib/rubocop/cop/rspec/expect_in_let.rb#19 +# source://rubocop-rspec/lib/rubocop/cop/rspec/expect_in_let.rb#19 class RuboCop::Cop::RSpec::ExpectInLet < ::RuboCop::Cop::RSpec::Base - # source://rubocop-rspec//lib/rubocop/cop/rspec/expect_in_let.rb#23 + # source://rubocop-rspec/lib/rubocop/cop/rspec/expect_in_let.rb#23 def expectation(param0); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/expect_in_let.rb#25 + # source://rubocop-rspec/lib/rubocop/cop/rspec/expect_in_let.rb#25 def on_block(node); end private - # source://rubocop-rspec//lib/rubocop/cop/rspec/expect_in_let.rb#36 + # source://rubocop-rspec/lib/rubocop/cop/rspec/expect_in_let.rb#36 def message(expect); end end -# source://rubocop-rspec//lib/rubocop/cop/rspec/expect_in_let.rb#20 +# source://rubocop-rspec/lib/rubocop/cop/rspec/expect_in_let.rb#20 RuboCop::Cop::RSpec::ExpectInLet::MSG = T.let(T.unsafe(nil), String) # Checks for opportunities to use `expect { ... }.to output`. @@ -2242,9 +2242,9 @@ RuboCop::Cop::RSpec::ExpectInLet::MSG = T.let(T.unsafe(nil), String) # # good # expect { my_app.print_report }.to output('Hello World').to_stdout # -# source://rubocop-rspec//lib/rubocop/cop/rspec/expect_output.rb#18 +# source://rubocop-rspec/lib/rubocop/cop/rspec/expect_output.rb#18 class RuboCop::Cop::RSpec::ExpectOutput < ::RuboCop::Cop::RSpec::Base - # source://rubocop-rspec//lib/rubocop/cop/rspec/expect_output.rb#22 + # source://rubocop-rspec/lib/rubocop/cop/rspec/expect_output.rb#22 def on_gvasgn(node); end private @@ -2259,89 +2259,89 @@ class RuboCop::Cop::RSpec::ExpectOutput < ::RuboCop::Cop::RSpec::Base # # @return [Boolean] # - # source://rubocop-rspec//lib/rubocop/cop/rspec/expect_output.rb#40 + # source://rubocop-rspec/lib/rubocop/cop/rspec/expect_output.rb#40 def inside_example_scope?(node); end end -# source://rubocop-rspec//lib/rubocop/cop/rspec/expect_output.rb#19 +# source://rubocop-rspec/lib/rubocop/cop/rspec/expect_output.rb#19 RuboCop::Cop::RSpec::ExpectOutput::MSG = T.let(T.unsafe(nil), String) # A helper for `explicit` style # -# source://rubocop-rspec//lib/rubocop/cop/rspec/predicate_matcher.rb#121 +# source://rubocop-rspec/lib/rubocop/cop/rspec/predicate_matcher.rb#121 module RuboCop::Cop::RSpec::ExplicitHelper include ::RuboCop::RSpec::Language extend ::RuboCop::AST::NodePattern::Macros - # source://rubocop-rspec//lib/rubocop/cop/rspec/predicate_matcher.rb#182 + # source://rubocop-rspec/lib/rubocop/cop/rspec/predicate_matcher.rb#182 def predicate_matcher?(param0 = T.unsafe(nil)); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/predicate_matcher.rb#195 + # source://rubocop-rspec/lib/rubocop/cop/rspec/predicate_matcher.rb#195 def predicate_matcher_block?(param0 = T.unsafe(nil)); end private - # source://rubocop-rspec//lib/rubocop/cop/rspec/predicate_matcher.rb#135 + # source://rubocop-rspec/lib/rubocop/cop/rspec/predicate_matcher.rb#135 def allowed_explicit_matchers; end - # source://rubocop-rspec//lib/rubocop/cop/rspec/predicate_matcher.rb#139 + # source://rubocop-rspec/lib/rubocop/cop/rspec/predicate_matcher.rb#139 def check_explicit(node); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/predicate_matcher.rb#219 + # source://rubocop-rspec/lib/rubocop/cop/rspec/predicate_matcher.rb#219 def corrector_explicit(corrector, to_node, actual, matcher, block_child); end # @return [Boolean] # - # source://rubocop-rspec//lib/rubocop/cop/rspec/predicate_matcher.rb#175 + # source://rubocop-rspec/lib/rubocop/cop/rspec/predicate_matcher.rb#175 def heredoc_argument?(matcher); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/predicate_matcher.rb#213 + # source://rubocop-rspec/lib/rubocop/cop/rspec/predicate_matcher.rb#213 def message_explicit(matcher); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/predicate_matcher.rb#226 + # source://rubocop-rspec/lib/rubocop/cop/rspec/predicate_matcher.rb#226 def move_predicate(corrector, actual, matcher, block_child); end # @return [Boolean] # - # source://rubocop-rspec//lib/rubocop/cop/rspec/predicate_matcher.rb#204 + # source://rubocop-rspec/lib/rubocop/cop/rspec/predicate_matcher.rb#204 def predicate_matcher_name?(name); end # @return [Boolean] # - # source://rubocop-rspec//lib/rubocop/cop/rspec/predicate_matcher.rb#162 + # source://rubocop-rspec/lib/rubocop/cop/rspec/predicate_matcher.rb#162 def replaceable_matcher?(matcher); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/predicate_matcher.rb#255 + # source://rubocop-rspec/lib/rubocop/cop/rspec/predicate_matcher.rb#255 def replacement_matcher(node); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/predicate_matcher.rb#237 + # source://rubocop-rspec/lib/rubocop/cop/rspec/predicate_matcher.rb#237 def to_predicate_method(matcher); end # @return [Boolean] # - # source://rubocop-rspec//lib/rubocop/cop/rspec/predicate_matcher.rb#171 + # source://rubocop-rspec/lib/rubocop/cop/rspec/predicate_matcher.rb#171 def uncorrectable_matcher?(node, matcher); end end -# source://rubocop-rspec//lib/rubocop/cop/rspec/predicate_matcher.rb#127 +# source://rubocop-rspec/lib/rubocop/cop/rspec/predicate_matcher.rb#127 RuboCop::Cop::RSpec::ExplicitHelper::BUILT_IN_MATCHERS = T.let(T.unsafe(nil), Array) -# source://rubocop-rspec//lib/rubocop/cop/rspec/predicate_matcher.rb#125 +# source://rubocop-rspec/lib/rubocop/cop/rspec/predicate_matcher.rb#125 RuboCop::Cop::RSpec::ExplicitHelper::MSG_EXPLICIT = T.let(T.unsafe(nil), String) # Help methods for file. # -# source://rubocop-rspec//lib/rubocop/cop/rspec/mixin/file_help.rb#7 +# source://rubocop-rspec/lib/rubocop/cop/rspec/mixin/file_help.rb#7 module RuboCop::Cop::RSpec::FileHelp - # source://rubocop-rspec//lib/rubocop/cop/rspec/mixin/file_help.rb#8 + # source://rubocop-rspec/lib/rubocop/cop/rspec/mixin/file_help.rb#8 def expanded_file_path; end end # Helps find the true end location of nodes which might contain heredocs. # -# source://rubocop-rspec//lib/rubocop/cop/rspec/mixin/final_end_location.rb#7 +# source://rubocop-rspec/lib/rubocop/cop/rspec/mixin/final_end_location.rb#7 module RuboCop::Cop::RSpec::FinalEndLocation - # source://rubocop-rspec//lib/rubocop/cop/rspec/mixin/final_end_location.rb#8 + # source://rubocop-rspec/lib/rubocop/cop/rspec/mixin/final_end_location.rb#8 def final_end_location(start_node); end end @@ -2391,38 +2391,38 @@ end # # bad (does not support autocorrection) # focus 'test' do; end # -# source://rubocop-rspec//lib/rubocop/cop/rspec/focus.rb#52 +# source://rubocop-rspec/lib/rubocop/cop/rspec/focus.rb#52 class RuboCop::Cop::RSpec::Focus < ::RuboCop::Cop::RSpec::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-rspec//lib/rubocop/cop/rspec/focus.rb#59 + # source://rubocop-rspec/lib/rubocop/cop/rspec/focus.rb#59 def focusable_selector?(param0 = T.unsafe(nil)); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/focus.rb#77 + # source://rubocop-rspec/lib/rubocop/cop/rspec/focus.rb#77 def focused_block?(param0 = T.unsafe(nil)); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/focus.rb#71 + # source://rubocop-rspec/lib/rubocop/cop/rspec/focus.rb#71 def metadata(param0 = T.unsafe(nil)); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/focus.rb#81 + # source://rubocop-rspec/lib/rubocop/cop/rspec/focus.rb#81 def on_send(node); end private - # source://rubocop-rspec//lib/rubocop/cop/rspec/focus.rb#110 + # source://rubocop-rspec/lib/rubocop/cop/rspec/focus.rb#110 def correct_send(corrector, focus); end # @yield [node] # - # source://rubocop-rspec//lib/rubocop/cop/rspec/focus.rb#97 + # source://rubocop-rspec/lib/rubocop/cop/rspec/focus.rb#97 def focus_metadata(node, &block); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/focus.rb#103 + # source://rubocop-rspec/lib/rubocop/cop/rspec/focus.rb#103 def with_surrounding(focus); end end -# source://rubocop-rspec//lib/rubocop/cop/rspec/focus.rb#56 +# source://rubocop-rspec/lib/rubocop/cop/rspec/focus.rb#56 RuboCop::Cop::RSpec::Focus::MSG = T.let(T.unsafe(nil), String) # Checks the arguments passed to `before`, `around`, and `after`. @@ -2478,47 +2478,47 @@ RuboCop::Cop::RSpec::Focus::MSG = T.let(T.unsafe(nil), String) # # ... # end # -# source://rubocop-rspec//lib/rubocop/cop/rspec/hook_argument.rb#61 +# source://rubocop-rspec/lib/rubocop/cop/rspec/hook_argument.rb#61 class RuboCop::Cop::RSpec::HookArgument < ::RuboCop::Cop::RSpec::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-rspec//lib/rubocop/cop/rspec/hook_argument.rb#78 + # source://rubocop-rspec/lib/rubocop/cop/rspec/hook_argument.rb#78 def on_block(node); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/hook_argument.rb#78 + # source://rubocop-rspec/lib/rubocop/cop/rspec/hook_argument.rb#78 def on_numblock(node); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/hook_argument.rb#69 + # source://rubocop-rspec/lib/rubocop/cop/rspec/hook_argument.rb#69 def scoped_hook(param0 = T.unsafe(nil)); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/hook_argument.rb#74 + # source://rubocop-rspec/lib/rubocop/cop/rspec/hook_argument.rb#74 def unscoped_hook(param0 = T.unsafe(nil)); end private - # source://rubocop-rspec//lib/rubocop/cop/rspec/hook_argument.rb#95 + # source://rubocop-rspec/lib/rubocop/cop/rspec/hook_argument.rb#95 def autocorrect(corrector, _node, method_send); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/hook_argument.rb#102 + # source://rubocop-rspec/lib/rubocop/cop/rspec/hook_argument.rb#102 def check_implicit(method_send); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/hook_argument.rb#116 + # source://rubocop-rspec/lib/rubocop/cop/rspec/hook_argument.rb#116 def explicit_message(scope); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/hook_argument.rb#128 + # source://rubocop-rspec/lib/rubocop/cop/rspec/hook_argument.rb#128 def hook(node, &block); end # @return [Boolean] # - # source://rubocop-rspec//lib/rubocop/cop/rspec/hook_argument.rb#124 + # source://rubocop-rspec/lib/rubocop/cop/rspec/hook_argument.rb#124 def implicit_style?; end end -# source://rubocop-rspec//lib/rubocop/cop/rspec/hook_argument.rb#66 +# source://rubocop-rspec/lib/rubocop/cop/rspec/hook_argument.rb#66 RuboCop::Cop::RSpec::HookArgument::EXPLICIT_MSG = T.let(T.unsafe(nil), String) -# source://rubocop-rspec//lib/rubocop/cop/rspec/hook_argument.rb#65 +# source://rubocop-rspec/lib/rubocop/cop/rspec/hook_argument.rb#65 RuboCop::Cop::RSpec::HookArgument::IMPLICIT_MSG = T.let(T.unsafe(nil), String) # Checks for before/around/after hooks that come after an example. @@ -2540,37 +2540,37 @@ RuboCop::Cop::RSpec::HookArgument::IMPLICIT_MSG = T.let(T.unsafe(nil), String) # expect(foo).to be # end # -# source://rubocop-rspec//lib/rubocop/cop/rspec/hooks_before_examples.rb#25 +# source://rubocop-rspec/lib/rubocop/cop/rspec/hooks_before_examples.rb#25 class RuboCop::Cop::RSpec::HooksBeforeExamples < ::RuboCop::Cop::RSpec::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-rspec//lib/rubocop/cop/rspec/hooks_before_examples.rb#31 + # source://rubocop-rspec/lib/rubocop/cop/rspec/hooks_before_examples.rb#31 def example_or_group?(param0 = T.unsafe(nil)); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/hooks_before_examples.rb#41 + # source://rubocop-rspec/lib/rubocop/cop/rspec/hooks_before_examples.rb#41 def on_block(node); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/hooks_before_examples.rb#41 + # source://rubocop-rspec/lib/rubocop/cop/rspec/hooks_before_examples.rb#41 def on_numblock(node); end private - # source://rubocop-rspec//lib/rubocop/cop/rspec/hooks_before_examples.rb#73 + # source://rubocop-rspec/lib/rubocop/cop/rspec/hooks_before_examples.rb#73 def autocorrect(corrector, node, first_example); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/hooks_before_examples.rb#55 + # source://rubocop-rspec/lib/rubocop/cop/rspec/hooks_before_examples.rb#55 def check_hooks(node); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/hooks_before_examples.rb#69 + # source://rubocop-rspec/lib/rubocop/cop/rspec/hooks_before_examples.rb#69 def find_first_example(node); end # @return [Boolean] # - # source://rubocop-rspec//lib/rubocop/cop/rspec/hooks_before_examples.rb#51 + # source://rubocop-rspec/lib/rubocop/cop/rspec/hooks_before_examples.rb#51 def multiline_block?(block); end end -# source://rubocop-rspec//lib/rubocop/cop/rspec/hooks_before_examples.rb#28 +# source://rubocop-rspec/lib/rubocop/cop/rspec/hooks_before_examples.rb#28 RuboCop::Cop::RSpec::HooksBeforeExamples::MSG = T.let(T.unsafe(nil), String) # Checks for equality assertions with identical expressions on both sides. @@ -2584,19 +2584,19 @@ RuboCop::Cop::RSpec::HooksBeforeExamples::MSG = T.let(T.unsafe(nil), String) # expect(foo.bar).to eq(2) # expect(foo.bar).to eql(2) # -# source://rubocop-rspec//lib/rubocop/cop/rspec/identical_equality_assertion.rb#17 +# source://rubocop-rspec/lib/rubocop/cop/rspec/identical_equality_assertion.rb#17 class RuboCop::Cop::RSpec::IdenticalEqualityAssertion < ::RuboCop::Cop::RSpec::Base - # source://rubocop-rspec//lib/rubocop/cop/rspec/identical_equality_assertion.rb#23 + # source://rubocop-rspec/lib/rubocop/cop/rspec/identical_equality_assertion.rb#23 def equality_check?(param0 = T.unsafe(nil)); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/identical_equality_assertion.rb#29 + # source://rubocop-rspec/lib/rubocop/cop/rspec/identical_equality_assertion.rb#29 def on_send(node); end end -# source://rubocop-rspec//lib/rubocop/cop/rspec/identical_equality_assertion.rb#18 +# source://rubocop-rspec/lib/rubocop/cop/rspec/identical_equality_assertion.rb#18 RuboCop::Cop::RSpec::IdenticalEqualityAssertion::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-rspec//lib/rubocop/cop/rspec/identical_equality_assertion.rb#20 +# source://rubocop-rspec/lib/rubocop/cop/rspec/identical_equality_assertion.rb#20 RuboCop::Cop::RSpec::IdenticalEqualityAssertion::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Check that implicit block expectation syntax is not used. @@ -2613,38 +2613,38 @@ RuboCop::Cop::RSpec::IdenticalEqualityAssertion::RESTRICT_ON_SEND = T.let(T.unsa # expect { do_something }.to change(something).to(new_value) # end # -# source://rubocop-rspec//lib/rubocop/cop/rspec/implicit_block_expectation.rb#20 +# source://rubocop-rspec/lib/rubocop/cop/rspec/implicit_block_expectation.rb#20 class RuboCop::Cop::RSpec::ImplicitBlockExpectation < ::RuboCop::Cop::RSpec::Base - # source://rubocop-rspec//lib/rubocop/cop/rspec/implicit_block_expectation.rb#36 + # source://rubocop-rspec/lib/rubocop/cop/rspec/implicit_block_expectation.rb#36 def implicit_expect(param0 = T.unsafe(nil)); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/implicit_block_expectation.rb#25 + # source://rubocop-rspec/lib/rubocop/cop/rspec/implicit_block_expectation.rb#25 def lambda?(param0 = T.unsafe(nil)); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/implicit_block_expectation.rb#33 + # source://rubocop-rspec/lib/rubocop/cop/rspec/implicit_block_expectation.rb#33 def lambda_subject?(param0 = T.unsafe(nil)); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/implicit_block_expectation.rb#40 + # source://rubocop-rspec/lib/rubocop/cop/rspec/implicit_block_expectation.rb#40 def on_send(node); end private - # source://rubocop-rspec//lib/rubocop/cop/rspec/implicit_block_expectation.rb#62 + # source://rubocop-rspec/lib/rubocop/cop/rspec/implicit_block_expectation.rb#62 def find_subject(block_node); end # @return [Boolean] # - # source://rubocop-rspec//lib/rubocop/cop/rspec/implicit_block_expectation.rb#58 + # source://rubocop-rspec/lib/rubocop/cop/rspec/implicit_block_expectation.rb#58 def multi_statement_example_group?(node); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/implicit_block_expectation.rb#49 + # source://rubocop-rspec/lib/rubocop/cop/rspec/implicit_block_expectation.rb#49 def nearest_subject(node); end end -# source://rubocop-rspec//lib/rubocop/cop/rspec/implicit_block_expectation.rb#21 +# source://rubocop-rspec/lib/rubocop/cop/rspec/implicit_block_expectation.rb#21 RuboCop::Cop::RSpec::ImplicitBlockExpectation::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-rspec//lib/rubocop/cop/rspec/implicit_block_expectation.rb#22 +# source://rubocop-rspec/lib/rubocop/cop/rspec/implicit_block_expectation.rb#22 RuboCop::Cop::RSpec::ImplicitBlockExpectation::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Check that a consistent implicit expectation style is used. @@ -2665,39 +2665,39 @@ RuboCop::Cop::RSpec::ImplicitBlockExpectation::RESTRICT_ON_SEND = T.let(T.unsafe # # good # it { should be_truthy } # -# source://rubocop-rspec//lib/rubocop/cop/rspec/implicit_expect.rb#25 +# source://rubocop-rspec/lib/rubocop/cop/rspec/implicit_expect.rb#25 class RuboCop::Cop::RSpec::ImplicitExpect < ::RuboCop::Cop::RSpec::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-rspec//lib/rubocop/cop/rspec/implicit_expect.rb#34 + # source://rubocop-rspec/lib/rubocop/cop/rspec/implicit_expect.rb#34 def implicit_expect(param0 = T.unsafe(nil)); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/implicit_expect.rb#49 + # source://rubocop-rspec/lib/rubocop/cop/rspec/implicit_expect.rb#49 def on_send(node); end private - # source://rubocop-rspec//lib/rubocop/cop/rspec/implicit_expect.rb#78 + # source://rubocop-rspec/lib/rubocop/cop/rspec/implicit_expect.rb#78 def is_expected_range(source_map); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/implicit_expect.rb#69 + # source://rubocop-rspec/lib/rubocop/cop/rspec/implicit_expect.rb#69 def offending_expect(node); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/implicit_expect.rb#86 + # source://rubocop-rspec/lib/rubocop/cop/rspec/implicit_expect.rb#86 def offense_message(offending_source); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/implicit_expect.rb#94 + # source://rubocop-rspec/lib/rubocop/cop/rspec/implicit_expect.rb#94 def replacement_source(offending_source); end end -# source://rubocop-rspec//lib/rubocop/cop/rspec/implicit_expect.rb#47 +# source://rubocop-rspec/lib/rubocop/cop/rspec/implicit_expect.rb#47 RuboCop::Cop::RSpec::ImplicitExpect::ENFORCED_REPLACEMENTS = T.let(T.unsafe(nil), Hash) -# source://rubocop-rspec//lib/rubocop/cop/rspec/implicit_expect.rb#29 +# source://rubocop-rspec/lib/rubocop/cop/rspec/implicit_expect.rb#29 RuboCop::Cop::RSpec::ImplicitExpect::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-rspec//lib/rubocop/cop/rspec/implicit_expect.rb#31 +# source://rubocop-rspec/lib/rubocop/cop/rspec/implicit_expect.rb#31 RuboCop::Cop::RSpec::ImplicitExpect::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Checks for usage of implicit subject (`is_expected` / `should`). @@ -2756,74 +2756,74 @@ RuboCop::Cop::RSpec::ImplicitExpect::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Arr # # good # it { expect(named_subject).to be_truthy } # -# source://rubocop-rspec//lib/rubocop/cop/rspec/implicit_subject.rb#65 +# source://rubocop-rspec/lib/rubocop/cop/rspec/implicit_subject.rb#65 class RuboCop::Cop::RSpec::ImplicitSubject < ::RuboCop::Cop::RSpec::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-rspec//lib/rubocop/cop/rspec/implicit_subject.rb#81 + # source://rubocop-rspec/lib/rubocop/cop/rspec/implicit_subject.rb#81 def explicit_unnamed_subject?(param0 = T.unsafe(nil)); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/implicit_subject.rb#86 + # source://rubocop-rspec/lib/rubocop/cop/rspec/implicit_subject.rb#86 def implicit_subject?(param0 = T.unsafe(nil)); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/implicit_subject.rb#90 + # source://rubocop-rspec/lib/rubocop/cop/rspec/implicit_subject.rb#90 def on_send(node); end private - # source://rubocop-rspec//lib/rubocop/cop/rspec/implicit_subject.rb#100 + # source://rubocop-rspec/lib/rubocop/cop/rspec/implicit_subject.rb#100 def autocorrect(corrector, node); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/implicit_subject.rb#159 + # source://rubocop-rspec/lib/rubocop/cop/rspec/implicit_subject.rb#159 def example_of(node); end # @return [Boolean] # - # source://rubocop-rspec//lib/rubocop/cop/rspec/implicit_subject.rb#135 + # source://rubocop-rspec/lib/rubocop/cop/rspec/implicit_subject.rb#135 def implicit_subject_in_non_its?(node); end # @return [Boolean] # - # source://rubocop-rspec//lib/rubocop/cop/rspec/implicit_subject.rb#139 + # source://rubocop-rspec/lib/rubocop/cop/rspec/implicit_subject.rb#139 def implicit_subject_in_non_its_and_non_single_line?(node); end # @return [Boolean] # - # source://rubocop-rspec//lib/rubocop/cop/rspec/implicit_subject.rb#143 + # source://rubocop-rspec/lib/rubocop/cop/rspec/implicit_subject.rb#143 def implicit_subject_in_non_its_and_non_single_statement?(node); end # @return [Boolean] # - # source://rubocop-rspec//lib/rubocop/cop/rspec/implicit_subject.rb#122 + # source://rubocop-rspec/lib/rubocop/cop/rspec/implicit_subject.rb#122 def invalid?(node); end # @return [Boolean] # - # source://rubocop-rspec//lib/rubocop/cop/rspec/implicit_subject.rb#147 + # source://rubocop-rspec/lib/rubocop/cop/rspec/implicit_subject.rb#147 def its?(node); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/implicit_subject.rb#113 + # source://rubocop-rspec/lib/rubocop/cop/rspec/implicit_subject.rb#113 def message(_node); end # @return [Boolean] # - # source://rubocop-rspec//lib/rubocop/cop/rspec/implicit_subject.rb#151 + # source://rubocop-rspec/lib/rubocop/cop/rspec/implicit_subject.rb#151 def single_line?(node); end # @return [Boolean] # - # source://rubocop-rspec//lib/rubocop/cop/rspec/implicit_subject.rb#155 + # source://rubocop-rspec/lib/rubocop/cop/rspec/implicit_subject.rb#155 def single_statement?(node); end end -# source://rubocop-rspec//lib/rubocop/cop/rspec/implicit_subject.rb#69 +# source://rubocop-rspec/lib/rubocop/cop/rspec/implicit_subject.rb#69 RuboCop::Cop::RSpec::ImplicitSubject::MSG_REQUIRE_EXPLICIT = T.let(T.unsafe(nil), String) -# source://rubocop-rspec//lib/rubocop/cop/rspec/implicit_subject.rb#71 +# source://rubocop-rspec/lib/rubocop/cop/rspec/implicit_subject.rb#71 RuboCop::Cop::RSpec::ImplicitSubject::MSG_REQUIRE_IMPLICIT = T.let(T.unsafe(nil), String) -# source://rubocop-rspec//lib/rubocop/cop/rspec/implicit_subject.rb#73 +# source://rubocop-rspec/lib/rubocop/cop/rspec/implicit_subject.rb#73 RuboCop::Cop::RSpec::ImplicitSubject::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Do not set up test data using indexes (e.g., `item_1`, `item_2`). @@ -2864,118 +2864,118 @@ RuboCop::Cop::RSpec::ImplicitSubject::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Ar # let(:item_1) { create(:item) } # let(:item_2) { create(:item) } # -# source://rubocop-rspec//lib/rubocop/cop/rspec/indexed_let.rb#47 +# source://rubocop-rspec/lib/rubocop/cop/rspec/indexed_let.rb#47 class RuboCop::Cop::RSpec::IndexedLet < ::RuboCop::Cop::RSpec::Base include ::RuboCop::Cop::AllowedIdentifiers include ::RuboCop::Cop::AllowedPattern - # source://rubocop-rspec//lib/rubocop/cop/rspec/indexed_let.rb#55 + # source://rubocop-rspec/lib/rubocop/cop/rspec/indexed_let.rb#55 def let_name(param0 = T.unsafe(nil)); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/indexed_let.rb#62 + # source://rubocop-rspec/lib/rubocop/cop/rspec/indexed_let.rb#62 def on_block(node); end private - # source://rubocop-rspec//lib/rubocop/cop/rspec/indexed_let.rb#105 + # source://rubocop-rspec/lib/rubocop/cop/rspec/indexed_let.rb#105 def allowed_identifiers; end - # source://rubocop-rspec//lib/rubocop/cop/rspec/indexed_let.rb#99 + # source://rubocop-rspec/lib/rubocop/cop/rspec/indexed_let.rb#99 def cop_config_patterns_values; end - # source://rubocop-rspec//lib/rubocop/cop/rspec/indexed_let.rb#79 + # source://rubocop-rspec/lib/rubocop/cop/rspec/indexed_let.rb#79 def filter_indexed_lets(candidates); end # @return [Boolean] # - # source://rubocop-rspec//lib/rubocop/cop/rspec/indexed_let.rb#88 + # source://rubocop-rspec/lib/rubocop/cop/rspec/indexed_let.rb#88 def indexed_let?(node); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/indexed_let.rb#95 + # source://rubocop-rspec/lib/rubocop/cop/rspec/indexed_let.rb#95 def let_name_stripped_index(node); end end -# source://rubocop-rspec//lib/rubocop/cop/rspec/indexed_let.rb#77 +# source://rubocop-rspec/lib/rubocop/cop/rspec/indexed_let.rb#77 RuboCop::Cop::RSpec::IndexedLet::INDEX_REGEX = T.let(T.unsafe(nil), Regexp) -# source://rubocop-rspec//lib/rubocop/cop/rspec/indexed_let.rb#51 +# source://rubocop-rspec/lib/rubocop/cop/rspec/indexed_let.rb#51 RuboCop::Cop::RSpec::IndexedLet::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-rspec//lib/rubocop/cop/rspec/indexed_let.rb#76 +# source://rubocop-rspec/lib/rubocop/cop/rspec/indexed_let.rb#76 RuboCop::Cop::RSpec::IndexedLet::SUFFIX_INDEX_REGEX = T.let(T.unsafe(nil), Regexp) # A helper for `inflected` style # -# source://rubocop-rspec//lib/rubocop/cop/rspec/predicate_matcher.rb#7 +# source://rubocop-rspec/lib/rubocop/cop/rspec/predicate_matcher.rb#7 module RuboCop::Cop::RSpec::InflectedHelper include ::RuboCop::RSpec::Language extend ::RuboCop::AST::NodePattern::Macros - # source://rubocop-rspec//lib/rubocop/cop/rspec/predicate_matcher.rb#39 + # source://rubocop-rspec/lib/rubocop/cop/rspec/predicate_matcher.rb#39 def be_bool?(param0 = T.unsafe(nil)); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/predicate_matcher.rb#44 + # source://rubocop-rspec/lib/rubocop/cop/rspec/predicate_matcher.rb#44 def be_boolthy?(param0 = T.unsafe(nil)); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/predicate_matcher.rb#29 + # source://rubocop-rspec/lib/rubocop/cop/rspec/predicate_matcher.rb#29 def predicate_in_actual?(param0 = T.unsafe(nil)); end private # @return [Boolean] # - # source://rubocop-rspec//lib/rubocop/cop/rspec/predicate_matcher.rb#48 + # source://rubocop-rspec/lib/rubocop/cop/rspec/predicate_matcher.rb#48 def boolean_matcher?(node); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/predicate_matcher.rb#16 + # source://rubocop-rspec/lib/rubocop/cop/rspec/predicate_matcher.rb#16 def check_inflected(node); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/predicate_matcher.rb#60 + # source://rubocop-rspec/lib/rubocop/cop/rspec/predicate_matcher.rb#60 def message_inflected(predicate); end # @return [Boolean] # - # source://rubocop-rspec//lib/rubocop/cop/rspec/predicate_matcher.rb#56 + # source://rubocop-rspec/lib/rubocop/cop/rspec/predicate_matcher.rb#56 def predicate?(sym); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/predicate_matcher.rb#85 + # source://rubocop-rspec/lib/rubocop/cop/rspec/predicate_matcher.rb#85 def remove_predicate(corrector, predicate); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/predicate_matcher.rb#96 + # source://rubocop-rspec/lib/rubocop/cop/rspec/predicate_matcher.rb#96 def rewrite_matcher(corrector, predicate, matcher); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/predicate_matcher.rb#67 + # source://rubocop-rspec/lib/rubocop/cop/rspec/predicate_matcher.rb#67 def to_predicate_matcher(name); end # @return [Boolean] # - # source://rubocop-rspec//lib/rubocop/cop/rspec/predicate_matcher.rb#107 + # source://rubocop-rspec/lib/rubocop/cop/rspec/predicate_matcher.rb#107 def true?(to_symbol, matcher); end end -# source://rubocop-rspec//lib/rubocop/cop/rspec/predicate_matcher.rb#11 +# source://rubocop-rspec/lib/rubocop/cop/rspec/predicate_matcher.rb#11 RuboCop::Cop::RSpec::InflectedHelper::MSG_INFLECTED = T.let(T.unsafe(nil), String) # Helps you identify whether a given node # is within an example group or not. # -# source://rubocop-rspec//lib/rubocop/cop/rspec/mixin/inside_example_group.rb#8 +# source://rubocop-rspec/lib/rubocop/cop/rspec/mixin/inside_example_group.rb#8 module RuboCop::Cop::RSpec::InsideExampleGroup private # @return [Boolean] # - # source://rubocop-rspec//lib/rubocop/cop/rspec/mixin/inside_example_group.rb#19 + # source://rubocop-rspec/lib/rubocop/cop/rspec/mixin/inside_example_group.rb#19 def example_group_root?(node); end # @return [Boolean] # - # source://rubocop-rspec//lib/rubocop/cop/rspec/mixin/inside_example_group.rb#23 + # source://rubocop-rspec/lib/rubocop/cop/rspec/mixin/inside_example_group.rb#23 def example_group_root_with_siblings?(node); end # @return [Boolean] # - # source://rubocop-rspec//lib/rubocop/cop/rspec/mixin/inside_example_group.rb#11 + # source://rubocop-rspec/lib/rubocop/cop/rspec/mixin/inside_example_group.rb#11 def inside_example_group?(node); end end @@ -2994,26 +2994,26 @@ end # expect(foo).to have_received(:bar) # end # -# source://rubocop-rspec//lib/rubocop/cop/rspec/instance_spy.rb#21 +# source://rubocop-rspec/lib/rubocop/cop/rspec/instance_spy.rb#21 class RuboCop::Cop::RSpec::InstanceSpy < ::RuboCop::Cop::RSpec::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-rspec//lib/rubocop/cop/rspec/instance_spy.rb#36 + # source://rubocop-rspec/lib/rubocop/cop/rspec/instance_spy.rb#36 def have_received_usage(param0); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/instance_spy.rb#28 + # source://rubocop-rspec/lib/rubocop/cop/rspec/instance_spy.rb#28 def null_double(param0); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/instance_spy.rb#45 + # source://rubocop-rspec/lib/rubocop/cop/rspec/instance_spy.rb#45 def on_block(node); end private - # source://rubocop-rspec//lib/rubocop/cop/rspec/instance_spy.rb#61 + # source://rubocop-rspec/lib/rubocop/cop/rspec/instance_spy.rb#61 def autocorrect(corrector, node); end end -# source://rubocop-rspec//lib/rubocop/cop/rspec/instance_spy.rb#24 +# source://rubocop-rspec/lib/rubocop/cop/rspec/instance_spy.rb#24 RuboCop::Cop::RSpec::InstanceSpy::MSG = T.let(T.unsafe(nil), String) # Checks for instance variable usage in specs. @@ -3057,39 +3057,39 @@ RuboCop::Cop::RSpec::InstanceSpy::MSG = T.let(T.unsafe(nil), String) # it { expect(foo).to be_empty } # end # -# source://rubocop-rspec//lib/rubocop/cop/rspec/instance_variable.rb#48 +# source://rubocop-rspec/lib/rubocop/cop/rspec/instance_variable.rb#48 class RuboCop::Cop::RSpec::InstanceVariable < ::RuboCop::Cop::RSpec::Base include ::RuboCop::Cop::RSpec::TopLevelGroup - # source://rubocop-rspec//lib/rubocop/cop/rspec/instance_variable.rb#60 + # source://rubocop-rspec/lib/rubocop/cop/rspec/instance_variable.rb#60 def custom_matcher?(param0 = T.unsafe(nil)); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/instance_variable.rb#55 + # source://rubocop-rspec/lib/rubocop/cop/rspec/instance_variable.rb#55 def dynamic_class?(param0 = T.unsafe(nil)); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/instance_variable.rb#71 + # source://rubocop-rspec/lib/rubocop/cop/rspec/instance_variable.rb#71 def ivar_assigned?(param0, param1); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/instance_variable.rb#68 + # source://rubocop-rspec/lib/rubocop/cop/rspec/instance_variable.rb#68 def ivar_usage(param0); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/instance_variable.rb#73 + # source://rubocop-rspec/lib/rubocop/cop/rspec/instance_variable.rb#73 def on_top_level_group(node); end private # @return [Boolean] # - # source://rubocop-rspec//lib/rubocop/cop/rspec/instance_variable.rb#90 + # source://rubocop-rspec/lib/rubocop/cop/rspec/instance_variable.rb#90 def assignment_only?; end # @return [Boolean] # - # source://rubocop-rspec//lib/rubocop/cop/rspec/instance_variable.rb#84 + # source://rubocop-rspec/lib/rubocop/cop/rspec/instance_variable.rb#84 def valid_usage?(node); end end -# source://rubocop-rspec//lib/rubocop/cop/rspec/instance_variable.rb#51 +# source://rubocop-rspec/lib/rubocop/cop/rspec/instance_variable.rb#51 RuboCop::Cop::RSpec::InstanceVariable::MSG = T.let(T.unsafe(nil), String) # Check for `specify` with `is_expected` and one-liner expectations. @@ -3107,24 +3107,24 @@ RuboCop::Cop::RSpec::InstanceVariable::MSG = T.let(T.unsafe(nil), String) # end # specify { expect(sqrt(4)).to eq(2) } # -# source://rubocop-rspec//lib/rubocop/cop/rspec/is_expected_specify.rb#21 +# source://rubocop-rspec/lib/rubocop/cop/rspec/is_expected_specify.rb#21 class RuboCop::Cop::RSpec::IsExpectedSpecify < ::RuboCop::Cop::RSpec::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-rspec//lib/rubocop/cop/rspec/is_expected_specify.rb#29 + # source://rubocop-rspec/lib/rubocop/cop/rspec/is_expected_specify.rb#29 def offense?(param0 = T.unsafe(nil)); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/is_expected_specify.rb#33 + # source://rubocop-rspec/lib/rubocop/cop/rspec/is_expected_specify.rb#33 def on_send(node); end end -# source://rubocop-rspec//lib/rubocop/cop/rspec/is_expected_specify.rb#25 +# source://rubocop-rspec/lib/rubocop/cop/rspec/is_expected_specify.rb#25 RuboCop::Cop::RSpec::IsExpectedSpecify::IS_EXPECTED_METHODS = T.let(T.unsafe(nil), Set) -# source://rubocop-rspec//lib/rubocop/cop/rspec/is_expected_specify.rb#26 +# source://rubocop-rspec/lib/rubocop/cop/rspec/is_expected_specify.rb#26 RuboCop::Cop::RSpec::IsExpectedSpecify::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-rspec//lib/rubocop/cop/rspec/is_expected_specify.rb#24 +# source://rubocop-rspec/lib/rubocop/cop/rspec/is_expected_specify.rb#24 RuboCop::Cop::RSpec::IsExpectedSpecify::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Checks that only one `it_behaves_like` style is used. @@ -3142,27 +3142,27 @@ RuboCop::Cop::RSpec::IsExpectedSpecify::RESTRICT_ON_SEND = T.let(T.unsafe(nil), # # good # it_should_behave_like 'a foo' # -# source://rubocop-rspec//lib/rubocop/cop/rspec/it_behaves_like.rb#22 +# source://rubocop-rspec/lib/rubocop/cop/rspec/it_behaves_like.rb#22 class RuboCop::Cop::RSpec::ItBehavesLike < ::RuboCop::Cop::RSpec::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-rspec//lib/rubocop/cop/rspec/it_behaves_like.rb#31 + # source://rubocop-rspec/lib/rubocop/cop/rspec/it_behaves_like.rb#31 def example_inclusion_offense(param0 = T.unsafe(nil), param1); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/it_behaves_like.rb#33 + # source://rubocop-rspec/lib/rubocop/cop/rspec/it_behaves_like.rb#33 def on_send(node); end private - # source://rubocop-rspec//lib/rubocop/cop/rspec/it_behaves_like.rb#43 + # source://rubocop-rspec/lib/rubocop/cop/rspec/it_behaves_like.rb#43 def message(_node); end end -# source://rubocop-rspec//lib/rubocop/cop/rspec/it_behaves_like.rb#26 +# source://rubocop-rspec/lib/rubocop/cop/rspec/it_behaves_like.rb#26 RuboCop::Cop::RSpec::ItBehavesLike::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-rspec//lib/rubocop/cop/rspec/it_behaves_like.rb#28 +# source://rubocop-rspec/lib/rubocop/cop/rspec/it_behaves_like.rb#28 RuboCop::Cop::RSpec::ItBehavesLike::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Check that `all` matcher is used instead of iterating over an array. @@ -3178,37 +3178,37 @@ RuboCop::Cop::RSpec::ItBehavesLike::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Arra # expect([user1, user2, user3]).to all(be_valid) # end # -# source://rubocop-rspec//lib/rubocop/cop/rspec/iterated_expectation.rb#19 +# source://rubocop-rspec/lib/rubocop/cop/rspec/iterated_expectation.rb#19 class RuboCop::Cop::RSpec::IteratedExpectation < ::RuboCop::Cop::RSpec::Base - # source://rubocop-rspec//lib/rubocop/cop/rspec/iterated_expectation.rb#24 + # source://rubocop-rspec/lib/rubocop/cop/rspec/iterated_expectation.rb#24 def each?(param0 = T.unsafe(nil)); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/iterated_expectation.rb#33 + # source://rubocop-rspec/lib/rubocop/cop/rspec/iterated_expectation.rb#33 def each_numblock?(param0 = T.unsafe(nil)); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/iterated_expectation.rb#40 + # source://rubocop-rspec/lib/rubocop/cop/rspec/iterated_expectation.rb#40 def expectation?(param0 = T.unsafe(nil), param1); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/iterated_expectation.rb#44 + # source://rubocop-rspec/lib/rubocop/cop/rspec/iterated_expectation.rb#44 def on_block(node); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/iterated_expectation.rb#52 + # source://rubocop-rspec/lib/rubocop/cop/rspec/iterated_expectation.rb#52 def on_numblock(node); end private # @return [Boolean] # - # source://rubocop-rspec//lib/rubocop/cop/rspec/iterated_expectation.rb#66 + # source://rubocop-rspec/lib/rubocop/cop/rspec/iterated_expectation.rb#66 def only_expectations?(body, arg); end # @return [Boolean] # - # source://rubocop-rspec//lib/rubocop/cop/rspec/iterated_expectation.rb#62 + # source://rubocop-rspec/lib/rubocop/cop/rspec/iterated_expectation.rb#62 def single_expectation?(body, arg); end end -# source://rubocop-rspec//lib/rubocop/cop/rspec/iterated_expectation.rb#20 +# source://rubocop-rspec/lib/rubocop/cop/rspec/iterated_expectation.rb#20 RuboCop::Cop::RSpec::IteratedExpectation::MSG = T.let(T.unsafe(nil), String) # Enforce that subject is the first definition in the test. @@ -3238,35 +3238,35 @@ RuboCop::Cop::RSpec::IteratedExpectation::MSG = T.let(T.unsafe(nil), String) # it { expect_something } # it { expect_something_else } # -# source://rubocop-rspec//lib/rubocop/cop/rspec/leading_subject.rb#34 +# source://rubocop-rspec/lib/rubocop/cop/rspec/leading_subject.rb#34 class RuboCop::Cop::RSpec::LeadingSubject < ::RuboCop::Cop::RSpec::Base include ::RuboCop::Cop::RSpec::InsideExampleGroup extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-rspec//lib/rubocop/cop/rspec/leading_subject.rb#40 + # source://rubocop-rspec/lib/rubocop/cop/rspec/leading_subject.rb#40 def on_block(node); end private - # source://rubocop-rspec//lib/rubocop/cop/rspec/leading_subject.rb#70 + # source://rubocop-rspec/lib/rubocop/cop/rspec/leading_subject.rb#70 def autocorrect(corrector, node, sibling); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/leading_subject.rb#49 + # source://rubocop-rspec/lib/rubocop/cop/rspec/leading_subject.rb#49 def check_previous_nodes(node); end # @return [Boolean] # - # source://rubocop-rspec//lib/rubocop/cop/rspec/leading_subject.rb#76 + # source://rubocop-rspec/lib/rubocop/cop/rspec/leading_subject.rb#76 def offending?(node); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/leading_subject.rb#58 + # source://rubocop-rspec/lib/rubocop/cop/rspec/leading_subject.rb#58 def offending_node(node); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/leading_subject.rb#66 + # source://rubocop-rspec/lib/rubocop/cop/rspec/leading_subject.rb#66 def parent(node); end end -# source://rubocop-rspec//lib/rubocop/cop/rspec/leading_subject.rb#38 +# source://rubocop-rspec/lib/rubocop/cop/rspec/leading_subject.rb#38 RuboCop::Cop::RSpec::LeadingSubject::MSG = T.let(T.unsafe(nil), String) # Checks that no class, module, or constant is declared. @@ -3357,32 +3357,32 @@ RuboCop::Cop::RSpec::LeadingSubject::MSG = T.let(T.unsafe(nil), String) # end # @see https://rspec.info/features/3-12/rspec-mocks/mutating-constants # -# source://rubocop-rspec//lib/rubocop/cop/rspec/leaky_constant_declaration.rb#96 +# source://rubocop-rspec/lib/rubocop/cop/rspec/leaky_constant_declaration.rb#96 class RuboCop::Cop::RSpec::LeakyConstantDeclaration < ::RuboCop::Cop::RSpec::Base - # source://rubocop-rspec//lib/rubocop/cop/rspec/leaky_constant_declaration.rb#101 + # source://rubocop-rspec/lib/rubocop/cop/rspec/leaky_constant_declaration.rb#101 def on_casgn(node); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/leaky_constant_declaration.rb#107 + # source://rubocop-rspec/lib/rubocop/cop/rspec/leaky_constant_declaration.rb#107 def on_class(node); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/leaky_constant_declaration.rb#113 + # source://rubocop-rspec/lib/rubocop/cop/rspec/leaky_constant_declaration.rb#113 def on_module(node); end private # @return [Boolean] # - # source://rubocop-rspec//lib/rubocop/cop/rspec/leaky_constant_declaration.rb#121 + # source://rubocop-rspec/lib/rubocop/cop/rspec/leaky_constant_declaration.rb#121 def inside_describe_block?(node); end end -# source://rubocop-rspec//lib/rubocop/cop/rspec/leaky_constant_declaration.rb#98 +# source://rubocop-rspec/lib/rubocop/cop/rspec/leaky_constant_declaration.rb#98 RuboCop::Cop::RSpec::LeakyConstantDeclaration::MSG_CLASS = T.let(T.unsafe(nil), String) -# source://rubocop-rspec//lib/rubocop/cop/rspec/leaky_constant_declaration.rb#97 +# source://rubocop-rspec/lib/rubocop/cop/rspec/leaky_constant_declaration.rb#97 RuboCop::Cop::RSpec::LeakyConstantDeclaration::MSG_CONST = T.let(T.unsafe(nil), String) -# source://rubocop-rspec//lib/rubocop/cop/rspec/leaky_constant_declaration.rb#99 +# source://rubocop-rspec/lib/rubocop/cop/rspec/leaky_constant_declaration.rb#99 RuboCop::Cop::RSpec::LeakyConstantDeclaration::MSG_MODULE = T.let(T.unsafe(nil), String) # Checks for `let` definitions that come after an example. @@ -3413,47 +3413,47 @@ RuboCop::Cop::RSpec::LeakyConstantDeclaration::MSG_MODULE = T.let(T.unsafe(nil), # expect(some).to be # end # -# source://rubocop-rspec//lib/rubocop/cop/rspec/let_before_examples.rb#33 +# source://rubocop-rspec/lib/rubocop/cop/rspec/let_before_examples.rb#33 class RuboCop::Cop::RSpec::LetBeforeExamples < ::RuboCop::Cop::RSpec::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-rspec//lib/rubocop/cop/rspec/let_before_examples.rb#39 + # source://rubocop-rspec/lib/rubocop/cop/rspec/let_before_examples.rb#39 def example_or_group?(param0 = T.unsafe(nil)); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/let_before_examples.rb#47 + # source://rubocop-rspec/lib/rubocop/cop/rspec/let_before_examples.rb#47 def include_examples?(param0 = T.unsafe(nil)); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/let_before_examples.rb#58 + # source://rubocop-rspec/lib/rubocop/cop/rspec/let_before_examples.rb#58 def on_block(node); end private - # source://rubocop-rspec//lib/rubocop/cop/rspec/let_before_examples.rb#93 + # source://rubocop-rspec/lib/rubocop/cop/rspec/let_before_examples.rb#93 def autocorrect(corrector, node, first_example); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/let_before_examples.rb#74 + # source://rubocop-rspec/lib/rubocop/cop/rspec/let_before_examples.rb#74 def check_let_declarations(node); end # @return [Boolean] # - # source://rubocop-rspec//lib/rubocop/cop/rspec/let_before_examples.rb#66 + # source://rubocop-rspec/lib/rubocop/cop/rspec/let_before_examples.rb#66 def example_group_with_include_examples?(body); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/let_before_examples.rb#89 + # source://rubocop-rspec/lib/rubocop/cop/rspec/let_before_examples.rb#89 def find_first_example(node); end # @return [Boolean] # - # source://rubocop-rspec//lib/rubocop/cop/rspec/let_before_examples.rb#70 + # source://rubocop-rspec/lib/rubocop/cop/rspec/let_before_examples.rb#70 def multiline_block?(block); end class << self - # source://rubocop-rspec//lib/rubocop/cop/rspec/let_before_examples.rb#54 + # source://rubocop-rspec/lib/rubocop/cop/rspec/let_before_examples.rb#54 def autocorrect_incompatible_with; end end end -# source://rubocop-rspec//lib/rubocop/cop/rspec/let_before_examples.rb#36 +# source://rubocop-rspec/lib/rubocop/cop/rspec/let_before_examples.rb#36 RuboCop::Cop::RSpec::LetBeforeExamples::MSG = T.let(T.unsafe(nil), String) # Checks unreferenced `let!` calls being used for test setup. @@ -3479,35 +3479,35 @@ RuboCop::Cop::RSpec::LetBeforeExamples::MSG = T.let(T.unsafe(nil), String) # expect(Widget.count).to eq(1) # end # -# source://rubocop-rspec//lib/rubocop/cop/rspec/let_setup.rb#28 +# source://rubocop-rspec/lib/rubocop/cop/rspec/let_setup.rb#28 class RuboCop::Cop::RSpec::LetSetup < ::RuboCop::Cop::RSpec::Base - # source://rubocop-rspec//lib/rubocop/cop/rspec/let_setup.rb#32 + # source://rubocop-rspec/lib/rubocop/cop/rspec/let_setup.rb#32 def example_or_shared_group_or_including?(param0 = T.unsafe(nil)); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/let_setup.rb#40 + # source://rubocop-rspec/lib/rubocop/cop/rspec/let_setup.rb#40 def let_bang(param0 = T.unsafe(nil)); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/let_setup.rb#48 + # source://rubocop-rspec/lib/rubocop/cop/rspec/let_setup.rb#48 def method_called?(param0, param1); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/let_setup.rb#50 + # source://rubocop-rspec/lib/rubocop/cop/rspec/let_setup.rb#50 def on_block(node); end private - # source://rubocop-rspec//lib/rubocop/cop/rspec/let_setup.rb#66 + # source://rubocop-rspec/lib/rubocop/cop/rspec/let_setup.rb#66 def child_let_bang(node, &block); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/let_setup.rb#60 + # source://rubocop-rspec/lib/rubocop/cop/rspec/let_setup.rb#60 def unused_let_bang(node); end end -# source://rubocop-rspec//lib/rubocop/cop/rspec/let_setup.rb#29 +# source://rubocop-rspec/lib/rubocop/cop/rspec/let_setup.rb#29 RuboCop::Cop::RSpec::LetSetup::MSG = T.let(T.unsafe(nil), String) # Helper methods to location. # -# source://rubocop-rspec//lib/rubocop/cop/rspec/mixin/location_help.rb#7 +# source://rubocop-rspec/lib/rubocop/cop/rspec/mixin/location_help.rb#7 module RuboCop::Cop::RSpec::LocationHelp private @@ -3517,7 +3517,7 @@ module RuboCop::Cop::RSpec::LocationHelp # @param node [RuboCop::AST::SendNode] # @return [Parser::Source::Range] # - # source://rubocop-rspec//lib/rubocop/cop/rspec/mixin/location_help.rb#15 + # source://rubocop-rspec/lib/rubocop/cop/rspec/mixin/location_help.rb#15 def arguments_with_whitespace(node); end # @example @@ -3526,7 +3526,7 @@ module RuboCop::Cop::RSpec::LocationHelp # @param node [RuboCop::AST::SendNode] # @return [Parser::Source::Range] # - # source://rubocop-rspec//lib/rubocop/cop/rspec/mixin/location_help.rb#26 + # source://rubocop-rspec/lib/rubocop/cop/rspec/mixin/location_help.rb#26 def block_with_whitespace(node); end class << self @@ -3536,7 +3536,7 @@ module RuboCop::Cop::RSpec::LocationHelp # @param node [RuboCop::AST::SendNode] # @return [Parser::Source::Range] # - # source://rubocop-rspec//lib/rubocop/cop/rspec/mixin/location_help.rb#15 + # source://rubocop-rspec/lib/rubocop/cop/rspec/mixin/location_help.rb#15 def arguments_with_whitespace(node); end # @example @@ -3545,7 +3545,7 @@ module RuboCop::Cop::RSpec::LocationHelp # @param node [RuboCop::AST::SendNode] # @return [Parser::Source::Range] # - # source://rubocop-rspec//lib/rubocop/cop/rspec/mixin/location_help.rb#26 + # source://rubocop-rspec/lib/rubocop/cop/rspec/mixin/location_help.rb#26 def block_with_whitespace(node); end end end @@ -3569,26 +3569,26 @@ end # # good # it { is_expected.to match_array(%w(tremble in fear foolish mortals)) } # -# source://rubocop-rspec//lib/rubocop/cop/rspec/match_array.rb#25 +# source://rubocop-rspec/lib/rubocop/cop/rspec/match_array.rb#25 class RuboCop::Cop::RSpec::MatchArray < ::RuboCop::Cop::RSpec::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-rspec//lib/rubocop/cop/rspec/match_array.rb#32 + # source://rubocop-rspec/lib/rubocop/cop/rspec/match_array.rb#32 def match_array_with_empty_array?(param0 = T.unsafe(nil)); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/match_array.rb#36 + # source://rubocop-rspec/lib/rubocop/cop/rspec/match_array.rb#36 def on_send(node); end private - # source://rubocop-rspec//lib/rubocop/cop/rspec/match_array.rb#45 + # source://rubocop-rspec/lib/rubocop/cop/rspec/match_array.rb#45 def check_populated_array(node); end end -# source://rubocop-rspec//lib/rubocop/cop/rspec/match_array.rb#28 +# source://rubocop-rspec/lib/rubocop/cop/rspec/match_array.rb#28 RuboCop::Cop::RSpec::MatchArray::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-rspec//lib/rubocop/cop/rspec/match_array.rb#29 +# source://rubocop-rspec/lib/rubocop/cop/rspec/match_array.rb#29 RuboCop::Cop::RSpec::MatchArray::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Check that chains of messages are not being stubbed. @@ -3601,16 +3601,16 @@ RuboCop::Cop::RSpec::MatchArray::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # thing = Thing.new(baz: 42) # allow(foo).to receive(:bar).and_return(thing) # -# source://rubocop-rspec//lib/rubocop/cop/rspec/message_chain.rb#16 +# source://rubocop-rspec/lib/rubocop/cop/rspec/message_chain.rb#16 class RuboCop::Cop::RSpec::MessageChain < ::RuboCop::Cop::RSpec::Base - # source://rubocop-rspec//lib/rubocop/cop/rspec/message_chain.rb#20 + # source://rubocop-rspec/lib/rubocop/cop/rspec/message_chain.rb#20 def on_send(node); end end -# source://rubocop-rspec//lib/rubocop/cop/rspec/message_chain.rb#17 +# source://rubocop-rspec/lib/rubocop/cop/rspec/message_chain.rb#17 RuboCop::Cop::RSpec::MessageChain::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-rspec//lib/rubocop/cop/rspec/message_chain.rb#18 +# source://rubocop-rspec/lib/rubocop/cop/rspec/message_chain.rb#18 RuboCop::Cop::RSpec::MessageChain::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Checks for consistent message expectation style. @@ -3633,31 +3633,31 @@ RuboCop::Cop::RSpec::MessageChain::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array # # good # expect(foo).to receive(:bar) # -# source://rubocop-rspec//lib/rubocop/cop/rspec/message_expectation.rb#27 +# source://rubocop-rspec/lib/rubocop/cop/rspec/message_expectation.rb#27 class RuboCop::Cop::RSpec::MessageExpectation < ::RuboCop::Cop::RSpec::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle - # source://rubocop-rspec//lib/rubocop/cop/rspec/message_expectation.rb#35 + # source://rubocop-rspec/lib/rubocop/cop/rspec/message_expectation.rb#35 def message_expectation(param0 = T.unsafe(nil)); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/message_expectation.rb#42 + # source://rubocop-rspec/lib/rubocop/cop/rspec/message_expectation.rb#42 def on_send(node); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/message_expectation.rb#40 + # source://rubocop-rspec/lib/rubocop/cop/rspec/message_expectation.rb#40 def receive_message?(param0); end private # @return [Boolean] # - # source://rubocop-rspec//lib/rubocop/cop/rspec/message_expectation.rb#55 + # source://rubocop-rspec/lib/rubocop/cop/rspec/message_expectation.rb#55 def preferred_style?(expectation); end end -# source://rubocop-rspec//lib/rubocop/cop/rspec/message_expectation.rb#30 +# source://rubocop-rspec/lib/rubocop/cop/rspec/message_expectation.rb#30 RuboCop::Cop::RSpec::MessageExpectation::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-rspec//lib/rubocop/cop/rspec/message_expectation.rb#32 +# source://rubocop-rspec/lib/rubocop/cop/rspec/message_expectation.rb#32 RuboCop::Cop::RSpec::MessageExpectation::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Checks that message expectations are set using spies. @@ -3686,72 +3686,72 @@ RuboCop::Cop::RSpec::MessageExpectation::RESTRICT_ON_SEND = T.let(T.unsafe(nil), # expect(foo).to receive(:bar) # do_something # -# source://rubocop-rspec//lib/rubocop/cop/rspec/message_spies.rb#33 +# source://rubocop-rspec/lib/rubocop/cop/rspec/message_spies.rb#33 class RuboCop::Cop::RSpec::MessageSpies < ::RuboCop::Cop::RSpec::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle - # source://rubocop-rspec//lib/rubocop/cop/rspec/message_spies.rb#45 + # source://rubocop-rspec/lib/rubocop/cop/rspec/message_spies.rb#45 def message_expectation(param0 = T.unsafe(nil)); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/message_spies.rb#54 + # source://rubocop-rspec/lib/rubocop/cop/rspec/message_spies.rb#54 def on_send(node); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/message_spies.rb#50 + # source://rubocop-rspec/lib/rubocop/cop/rspec/message_spies.rb#50 def receive_message(param0); end private - # source://rubocop-rspec//lib/rubocop/cop/rspec/message_spies.rb#77 + # source://rubocop-rspec/lib/rubocop/cop/rspec/message_spies.rb#77 def error_message(receiver); end # @return [Boolean] # - # source://rubocop-rspec//lib/rubocop/cop/rspec/message_spies.rb#73 + # source://rubocop-rspec/lib/rubocop/cop/rspec/message_spies.rb#73 def preferred_style?(expectation); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/message_spies.rb#67 + # source://rubocop-rspec/lib/rubocop/cop/rspec/message_spies.rb#67 def receive_message_matcher(node); end end -# source://rubocop-rspec//lib/rubocop/cop/rspec/message_spies.rb#38 +# source://rubocop-rspec/lib/rubocop/cop/rspec/message_spies.rb#38 RuboCop::Cop::RSpec::MessageSpies::MSG_HAVE_RECEIVED = T.let(T.unsafe(nil), String) -# source://rubocop-rspec//lib/rubocop/cop/rspec/message_spies.rb#36 +# source://rubocop-rspec/lib/rubocop/cop/rspec/message_spies.rb#36 RuboCop::Cop::RSpec::MessageSpies::MSG_RECEIVE = T.let(T.unsafe(nil), String) -# source://rubocop-rspec//lib/rubocop/cop/rspec/message_spies.rb#42 +# source://rubocop-rspec/lib/rubocop/cop/rspec/message_spies.rb#42 RuboCop::Cop::RSpec::MessageSpies::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Helper methods to find RSpec metadata. # -# source://rubocop-rspec//lib/rubocop/cop/rspec/mixin/metadata.rb#7 +# source://rubocop-rspec/lib/rubocop/cop/rspec/mixin/metadata.rb#7 module RuboCop::Cop::RSpec::Metadata include ::RuboCop::RSpec::Language extend ::RuboCop::AST::NodePattern::Macros - # source://rubocop-rspec//lib/rubocop/cop/rspec/mixin/metadata.rb#26 + # source://rubocop-rspec/lib/rubocop/cop/rspec/mixin/metadata.rb#26 def metadata_in_block(param0, param1); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/mixin/metadata.rb#30 + # source://rubocop-rspec/lib/rubocop/cop/rspec/mixin/metadata.rb#30 def on_block(node); end # @raise [::NotImplementedError] # - # source://rubocop-rspec//lib/rubocop/cop/rspec/mixin/metadata.rb#43 + # source://rubocop-rspec/lib/rubocop/cop/rspec/mixin/metadata.rb#43 def on_metadata(_symbols, _hash); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/mixin/metadata.rb#30 + # source://rubocop-rspec/lib/rubocop/cop/rspec/mixin/metadata.rb#30 def on_numblock(node); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/mixin/metadata.rb#21 + # source://rubocop-rspec/lib/rubocop/cop/rspec/mixin/metadata.rb#21 def rspec_configure(param0 = T.unsafe(nil)); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/mixin/metadata.rb#13 + # source://rubocop-rspec/lib/rubocop/cop/rspec/mixin/metadata.rb#13 def rspec_metadata(param0 = T.unsafe(nil)); end private - # source://rubocop-rspec//lib/rubocop/cop/rspec/mixin/metadata.rb#49 + # source://rubocop-rspec/lib/rubocop/cop/rspec/mixin/metadata.rb#49 def on_metadata_arguments(metadata_arguments); end end @@ -3774,80 +3774,80 @@ end # # good # describe 'Something', a: true # -# source://rubocop-rspec//lib/rubocop/cop/rspec/metadata_style.rb#25 +# source://rubocop-rspec/lib/rubocop/cop/rspec/metadata_style.rb#25 class RuboCop::Cop::RSpec::MetadataStyle < ::RuboCop::Cop::RSpec::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle include ::RuboCop::Cop::RSpec::Metadata include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-rspec//lib/rubocop/cop/rspec/metadata_style.rb#33 + # source://rubocop-rspec/lib/rubocop/cop/rspec/metadata_style.rb#33 def extract_metadata_hash(param0 = T.unsafe(nil)); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/metadata_style.rb#43 + # source://rubocop-rspec/lib/rubocop/cop/rspec/metadata_style.rb#43 def match_ambiguous_trailing_metadata?(param0 = T.unsafe(nil)); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/metadata_style.rb#38 + # source://rubocop-rspec/lib/rubocop/cop/rspec/metadata_style.rb#38 def match_boolean_metadata_pair?(param0 = T.unsafe(nil)); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/metadata_style.rb#47 + # source://rubocop-rspec/lib/rubocop/cop/rspec/metadata_style.rb#47 def on_metadata(symbols, hash); end private - # source://rubocop-rspec//lib/rubocop/cop/rspec/metadata_style.rb#61 + # source://rubocop-rspec/lib/rubocop/cop/rspec/metadata_style.rb#61 def autocorrect_pair(corrector, node); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/metadata_style.rb#66 + # source://rubocop-rspec/lib/rubocop/cop/rspec/metadata_style.rb#66 def autocorrect_symbol(corrector, node); end # @return [Boolean] # - # source://rubocop-rspec//lib/rubocop/cop/rspec/metadata_style.rb#73 + # source://rubocop-rspec/lib/rubocop/cop/rspec/metadata_style.rb#73 def bad_metadata_pair?(node); end # @return [Boolean] # - # source://rubocop-rspec//lib/rubocop/cop/rspec/metadata_style.rb#77 + # source://rubocop-rspec/lib/rubocop/cop/rspec/metadata_style.rb#77 def bad_metadata_symbol?(_node); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/metadata_style.rb#81 + # source://rubocop-rspec/lib/rubocop/cop/rspec/metadata_style.rb#81 def format_symbol_to_pair_source(node); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/metadata_style.rb#85 + # source://rubocop-rspec/lib/rubocop/cop/rspec/metadata_style.rb#85 def insert_pair(corrector, node); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/metadata_style.rb#96 + # source://rubocop-rspec/lib/rubocop/cop/rspec/metadata_style.rb#96 def insert_pair_as_last_argument(corrector, node); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/metadata_style.rb#105 + # source://rubocop-rspec/lib/rubocop/cop/rspec/metadata_style.rb#105 def insert_pair_to_empty_hash_metadata(corrector, node, hash_node); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/metadata_style.rb#112 + # source://rubocop-rspec/lib/rubocop/cop/rspec/metadata_style.rb#112 def insert_pair_to_non_empty_hash_metadata(corrector, node, hash_node); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/metadata_style.rb#119 + # source://rubocop-rspec/lib/rubocop/cop/rspec/metadata_style.rb#119 def insert_symbol(corrector, node); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/metadata_style.rb#126 + # source://rubocop-rspec/lib/rubocop/cop/rspec/metadata_style.rb#126 def message_for_style; end - # source://rubocop-rspec//lib/rubocop/cop/rspec/metadata_style.rb#133 + # source://rubocop-rspec/lib/rubocop/cop/rspec/metadata_style.rb#133 def on_metadata_pair(node); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/metadata_style.rb#141 + # source://rubocop-rspec/lib/rubocop/cop/rspec/metadata_style.rb#141 def on_metadata_symbol(node); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/metadata_style.rb#149 + # source://rubocop-rspec/lib/rubocop/cop/rspec/metadata_style.rb#149 def remove_pair(corrector, node); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/metadata_style.rb#159 + # source://rubocop-rspec/lib/rubocop/cop/rspec/metadata_style.rb#159 def remove_pair_following(corrector, node); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/metadata_style.rb#171 + # source://rubocop-rspec/lib/rubocop/cop/rspec/metadata_style.rb#171 def remove_pair_preceding(corrector, node); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/metadata_style.rb#183 + # source://rubocop-rspec/lib/rubocop/cop/rspec/metadata_style.rb#183 def remove_symbol(corrector, node); end end @@ -3868,13 +3868,13 @@ end # describe "A feature example" do # end # -# source://rubocop-rspec//lib/rubocop/cop/rspec/missing_example_group_argument.rb#23 +# source://rubocop-rspec/lib/rubocop/cop/rspec/missing_example_group_argument.rb#23 class RuboCop::Cop::RSpec::MissingExampleGroupArgument < ::RuboCop::Cop::RSpec::Base - # source://rubocop-rspec//lib/rubocop/cop/rspec/missing_example_group_argument.rb#26 + # source://rubocop-rspec/lib/rubocop/cop/rspec/missing_example_group_argument.rb#26 def on_block(node); end end -# source://rubocop-rspec//lib/rubocop/cop/rspec/missing_example_group_argument.rb#24 +# source://rubocop-rspec/lib/rubocop/cop/rspec/missing_example_group_argument.rb#24 RuboCop::Cop::RSpec::MissingExampleGroupArgument::MSG = T.let(T.unsafe(nil), String) # Checks if `.to`, `not_to` or `to_not` are used. @@ -3893,25 +3893,25 @@ RuboCop::Cop::RSpec::MissingExampleGroupArgument::MSG = T.let(T.unsafe(nil), Str # is_expected.to eq 42 # expect{something}.to raise_error BarError # -# source://rubocop-rspec//lib/rubocop/cop/rspec/missing_expectation_target_method.rb#22 +# source://rubocop-rspec/lib/rubocop/cop/rspec/missing_expectation_target_method.rb#22 class RuboCop::Cop::RSpec::MissingExpectationTargetMethod < ::RuboCop::Cop::RSpec::Base - # source://rubocop-rspec//lib/rubocop/cop/rspec/missing_expectation_target_method.rb#27 + # source://rubocop-rspec/lib/rubocop/cop/rspec/missing_expectation_target_method.rb#27 def expect?(param0 = T.unsafe(nil)); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/missing_expectation_target_method.rb#35 + # source://rubocop-rspec/lib/rubocop/cop/rspec/missing_expectation_target_method.rb#35 def expect_block?(param0 = T.unsafe(nil)); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/missing_expectation_target_method.rb#40 + # source://rubocop-rspec/lib/rubocop/cop/rspec/missing_expectation_target_method.rb#40 def expectation_without_runner?(param0 = T.unsafe(nil)); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/missing_expectation_target_method.rb#44 + # source://rubocop-rspec/lib/rubocop/cop/rspec/missing_expectation_target_method.rb#44 def on_send(node); end end -# source://rubocop-rspec//lib/rubocop/cop/rspec/missing_expectation_target_method.rb#23 +# source://rubocop-rspec/lib/rubocop/cop/rspec/missing_expectation_target_method.rb#23 RuboCop::Cop::RSpec::MissingExpectationTargetMethod::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-rspec//lib/rubocop/cop/rspec/missing_expectation_target_method.rb#24 +# source://rubocop-rspec/lib/rubocop/cop/rspec/missing_expectation_target_method.rb#24 RuboCop::Cop::RSpec::MissingExpectationTargetMethod::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Checks for multiple top-level example groups. @@ -3934,15 +3934,15 @@ RuboCop::Cop::RSpec::MissingExpectationTargetMethod::RESTRICT_ON_SEND = T.let(T. # end # end # -# source://rubocop-rspec//lib/rubocop/cop/rspec/multiple_describes.rb#26 +# source://rubocop-rspec/lib/rubocop/cop/rspec/multiple_describes.rb#26 class RuboCop::Cop::RSpec::MultipleDescribes < ::RuboCop::Cop::RSpec::Base include ::RuboCop::Cop::RSpec::TopLevelGroup - # source://rubocop-rspec//lib/rubocop/cop/rspec/multiple_describes.rb#31 + # source://rubocop-rspec/lib/rubocop/cop/rspec/multiple_describes.rb#31 def on_top_level_group(node); end end -# source://rubocop-rspec//lib/rubocop/cop/rspec/multiple_describes.rb#29 +# source://rubocop-rspec/lib/rubocop/cop/rspec/multiple_describes.rb#29 RuboCop::Cop::RSpec::MultipleDescribes::MSG = T.let(T.unsafe(nil), String) # Checks if examples contain too many `expect` calls. @@ -4003,50 +4003,50 @@ RuboCop::Cop::RSpec::MultipleDescribes::MSG = T.let(T.unsafe(nil), String) # end # @see http://betterspecs.org/#single Single expectation test # -# source://rubocop-rspec//lib/rubocop/cop/rspec/multiple_expectations.rb#69 +# source://rubocop-rspec/lib/rubocop/cop/rspec/multiple_expectations.rb#69 class RuboCop::Cop::RSpec::MultipleExpectations < ::RuboCop::Cop::RSpec::Base - # source://rubocop-rspec//lib/rubocop/cop/rspec/multiple_expectations.rb#78 + # source://rubocop-rspec/lib/rubocop/cop/rspec/multiple_expectations.rb#78 def aggregate_failures?(param0 = T.unsafe(nil), param1); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/multiple_expectations.rb#89 + # source://rubocop-rspec/lib/rubocop/cop/rspec/multiple_expectations.rb#89 def aggregate_failures_block?(param0 = T.unsafe(nil)); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/multiple_expectations.rb#86 + # source://rubocop-rspec/lib/rubocop/cop/rspec/multiple_expectations.rb#86 def expect?(param0 = T.unsafe(nil)); end - # source://rubocop/1.67.0/lib/rubocop/cop/exclude_limit.rb#11 + # source://rubocop/1.69.2lib/rubocop/cop/exclude_limit.rb#11 def max=(value); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/multiple_expectations.rb#93 + # source://rubocop-rspec/lib/rubocop/cop/rspec/multiple_expectations.rb#93 def on_block(node); end private # @return [Boolean] # - # source://rubocop-rspec//lib/rubocop/cop/rspec/multiple_expectations.rb#109 + # source://rubocop-rspec/lib/rubocop/cop/rspec/multiple_expectations.rb#109 def example_with_aggregate_failures?(example_node); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/multiple_expectations.rb#116 + # source://rubocop-rspec/lib/rubocop/cop/rspec/multiple_expectations.rb#116 def find_aggregate_failures(example_node); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/multiple_expectations.rb#121 + # source://rubocop-rspec/lib/rubocop/cop/rspec/multiple_expectations.rb#121 def find_expectation(node, &block); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/multiple_expectations.rb#132 + # source://rubocop-rspec/lib/rubocop/cop/rspec/multiple_expectations.rb#132 def flag_example(node, expectation_count:); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/multiple_expectations.rb#143 + # source://rubocop-rspec/lib/rubocop/cop/rspec/multiple_expectations.rb#143 def max_expectations; end end -# source://rubocop-rspec//lib/rubocop/cop/rspec/multiple_expectations.rb#72 +# source://rubocop-rspec/lib/rubocop/cop/rspec/multiple_expectations.rb#72 RuboCop::Cop::RSpec::MultipleExpectations::ANYTHING = T.let(T.unsafe(nil), Proc) -# source://rubocop-rspec//lib/rubocop/cop/rspec/multiple_expectations.rb#70 +# source://rubocop-rspec/lib/rubocop/cop/rspec/multiple_expectations.rb#70 RuboCop::Cop::RSpec::MultipleExpectations::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-rspec//lib/rubocop/cop/rspec/multiple_expectations.rb#73 +# source://rubocop-rspec/lib/rubocop/cop/rspec/multiple_expectations.rb#73 RuboCop::Cop::RSpec::MultipleExpectations::TRUE_NODE = T.let(T.unsafe(nil), Proc) # Checks if example groups contain too many `let` and `subject` calls. @@ -4125,45 +4125,45 @@ RuboCop::Cop::RSpec::MultipleExpectations::TRUE_NODE = T.let(T.unsafe(nil), Proc # let(:bar) { [] } # end # -# source://rubocop-rspec//lib/rubocop/cop/rspec/multiple_memoized_helpers.rb#84 +# source://rubocop-rspec/lib/rubocop/cop/rspec/multiple_memoized_helpers.rb#84 class RuboCop::Cop::RSpec::MultipleMemoizedHelpers < ::RuboCop::Cop::RSpec::Base include ::RuboCop::Cop::RSpec::Variable - # source://rubocop/1.67.0/lib/rubocop/cop/exclude_limit.rb#11 + # source://rubocop/1.69.2lib/rubocop/cop/exclude_limit.rb#11 def max=(value); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/multiple_memoized_helpers.rb#91 + # source://rubocop-rspec/lib/rubocop/cop/rspec/multiple_memoized_helpers.rb#91 def on_block(node); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/multiple_memoized_helpers.rb#102 + # source://rubocop-rspec/lib/rubocop/cop/rspec/multiple_memoized_helpers.rb#102 def on_new_investigation; end private - # source://rubocop-rspec//lib/rubocop/cop/rspec/multiple_memoized_helpers.rb#111 + # source://rubocop-rspec/lib/rubocop/cop/rspec/multiple_memoized_helpers.rb#111 def all_helpers(node); end # @return [Boolean] # - # source://rubocop-rspec//lib/rubocop/cop/rspec/multiple_memoized_helpers.rb#141 + # source://rubocop-rspec/lib/rubocop/cop/rspec/multiple_memoized_helpers.rb#141 def allow_subject?; end # Returns the value of attribute example_group_memoized_helpers. # - # source://rubocop-rspec//lib/rubocop/cop/rspec/multiple_memoized_helpers.rb#109 + # source://rubocop-rspec/lib/rubocop/cop/rspec/multiple_memoized_helpers.rb#109 def example_group_memoized_helpers; end - # source://rubocop-rspec//lib/rubocop/cop/rspec/multiple_memoized_helpers.rb#116 + # source://rubocop-rspec/lib/rubocop/cop/rspec/multiple_memoized_helpers.rb#116 def helpers(node); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/multiple_memoized_helpers.rb#137 + # source://rubocop-rspec/lib/rubocop/cop/rspec/multiple_memoized_helpers.rb#137 def max; end - # source://rubocop-rspec//lib/rubocop/cop/rspec/multiple_memoized_helpers.rb#127 + # source://rubocop-rspec/lib/rubocop/cop/rspec/multiple_memoized_helpers.rb#127 def variable_nodes(node); end end -# source://rubocop-rspec//lib/rubocop/cop/rspec/multiple_memoized_helpers.rb#87 +# source://rubocop-rspec/lib/rubocop/cop/rspec/multiple_memoized_helpers.rb#87 RuboCop::Cop::RSpec::MultipleMemoizedHelpers::MSG = T.let(T.unsafe(nil), String) # Checks if an example group defines `subject` multiple times. @@ -4211,32 +4211,32 @@ RuboCop::Cop::RSpec::MultipleMemoizedHelpers::MSG = T.let(T.unsafe(nil), String) # end # end # -# source://rubocop-rspec//lib/rubocop/cop/rspec/multiple_subjects.rb#51 +# source://rubocop-rspec/lib/rubocop/cop/rspec/multiple_subjects.rb#51 class RuboCop::Cop::RSpec::MultipleSubjects < ::RuboCop::Cop::RSpec::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-rspec//lib/rubocop/cop/rspec/multiple_subjects.rb#57 + # source://rubocop-rspec/lib/rubocop/cop/rspec/multiple_subjects.rb#57 def on_block(node); end private - # source://rubocop-rspec//lib/rubocop/cop/rspec/multiple_subjects.rb#71 + # source://rubocop-rspec/lib/rubocop/cop/rspec/multiple_subjects.rb#71 def autocorrect(corrector, subject); end # @return [Boolean] # - # source://rubocop-rspec//lib/rubocop/cop/rspec/multiple_subjects.rb#81 + # source://rubocop-rspec/lib/rubocop/cop/rspec/multiple_subjects.rb#81 def named_subject?(node); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/multiple_subjects.rb#89 + # source://rubocop-rspec/lib/rubocop/cop/rspec/multiple_subjects.rb#89 def remove_autocorrect(corrector, node); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/multiple_subjects.rb#85 + # source://rubocop-rspec/lib/rubocop/cop/rspec/multiple_subjects.rb#85 def rename_autocorrect(corrector, node); end end -# source://rubocop-rspec//lib/rubocop/cop/rspec/multiple_subjects.rb#55 +# source://rubocop-rspec/lib/rubocop/cop/rspec/multiple_subjects.rb#55 RuboCop::Cop::RSpec::MultipleSubjects::MSG = T.let(T.unsafe(nil), String) # Checks for explicitly referenced test subjects. @@ -4312,65 +4312,65 @@ RuboCop::Cop::RSpec::MultipleSubjects::MSG = T.let(T.unsafe(nil), String) # end # end # -# source://rubocop-rspec//lib/rubocop/cop/rspec/named_subject.rb#79 +# source://rubocop-rspec/lib/rubocop/cop/rspec/named_subject.rb#79 class RuboCop::Cop::RSpec::NamedSubject < ::RuboCop::Cop::RSpec::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle - # source://rubocop-rspec//lib/rubocop/cop/rspec/named_subject.rb#85 + # source://rubocop-rspec/lib/rubocop/cop/rspec/named_subject.rb#85 def example_or_hook_block?(param0 = T.unsafe(nil)); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/named_subject.rb#97 + # source://rubocop-rspec/lib/rubocop/cop/rspec/named_subject.rb#97 def on_block(node); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/named_subject.rb#90 + # source://rubocop-rspec/lib/rubocop/cop/rspec/named_subject.rb#90 def shared_example?(param0 = T.unsafe(nil)); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/named_subject.rb#95 + # source://rubocop-rspec/lib/rubocop/cop/rspec/named_subject.rb#95 def subject_usage(param0); end private # @return [Boolean] # - # source://rubocop-rspec//lib/rubocop/cop/rspec/named_subject.rb#123 + # source://rubocop-rspec/lib/rubocop/cop/rspec/named_subject.rb#123 def allow_explicit_subject?(node); end # @return [Boolean] # - # source://rubocop-rspec//lib/rubocop/cop/rspec/named_subject.rb#127 + # source://rubocop-rspec/lib/rubocop/cop/rspec/named_subject.rb#127 def always?; end - # source://rubocop-rspec//lib/rubocop/cop/rspec/named_subject.rb#117 + # source://rubocop-rspec/lib/rubocop/cop/rspec/named_subject.rb#117 def check_explicit_subject(node); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/named_subject.rb#150 + # source://rubocop-rspec/lib/rubocop/cop/rspec/named_subject.rb#150 def find_subject(block_node); end # @return [Boolean] # - # source://rubocop-rspec//lib/rubocop/cop/rspec/named_subject.rb#109 + # source://rubocop-rspec/lib/rubocop/cop/rspec/named_subject.rb#109 def ignored_shared_example?(node); end # @return [Boolean] # - # source://rubocop-rspec//lib/rubocop/cop/rspec/named_subject.rb#131 + # source://rubocop-rspec/lib/rubocop/cop/rspec/named_subject.rb#131 def named_only?(node); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/named_subject.rb#142 + # source://rubocop-rspec/lib/rubocop/cop/rspec/named_subject.rb#142 def nearest_subject(node); end # @return [Boolean] # - # source://rubocop-rspec//lib/rubocop/cop/rspec/named_subject.rb#136 + # source://rubocop-rspec/lib/rubocop/cop/rspec/named_subject.rb#136 def subject_definition_is_named?(node); end end -# source://rubocop-rspec//lib/rubocop/cop/rspec/named_subject.rb#82 +# source://rubocop-rspec/lib/rubocop/cop/rspec/named_subject.rb#82 RuboCop::Cop::RSpec::NamedSubject::MSG = T.let(T.unsafe(nil), String) # Helps to find namespace of the node. # -# source://rubocop-rspec//lib/rubocop/cop/rspec/mixin/namespace.rb#7 +# source://rubocop-rspec/lib/rubocop/cop/rspec/mixin/namespace.rb#7 module RuboCop::Cop::RSpec::Namespace private @@ -4379,7 +4379,7 @@ module RuboCop::Cop::RSpec::Namespace # @param node [RuboCop::AST::Node] # @return [Array] # - # source://rubocop-rspec//lib/rubocop/cop/rspec/mixin/namespace.rb#14 + # source://rubocop-rspec/lib/rubocop/cop/rspec/mixin/namespace.rb#14 def namespace(node); end end @@ -4467,48 +4467,48 @@ end # end # end # -# source://rubocop-rspec//lib/rubocop/cop/rspec/nested_groups.rb#94 +# source://rubocop-rspec/lib/rubocop/cop/rspec/nested_groups.rb#94 class RuboCop::Cop::RSpec::NestedGroups < ::RuboCop::Cop::RSpec::Base include ::RuboCop::Cop::RSpec::TopLevelGroup - # source://rubocop/1.67.0/lib/rubocop/cop/exclude_limit.rb#11 + # source://rubocop/1.69.2lib/rubocop/cop/exclude_limit.rb#11 def max=(value); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/nested_groups.rb#107 + # source://rubocop-rspec/lib/rubocop/cop/rspec/nested_groups.rb#107 def on_top_level_group(node); end private - # source://rubocop-rspec//lib/rubocop/cop/rspec/nested_groups.rb#157 + # source://rubocop-rspec/lib/rubocop/cop/rspec/nested_groups.rb#157 def allowed_groups; end # @return [Boolean] # - # source://rubocop-rspec//lib/rubocop/cop/rspec/nested_groups.rb#134 + # source://rubocop-rspec/lib/rubocop/cop/rspec/nested_groups.rb#134 def count_up_nesting?(node, example_group); end # @yield [node, nesting] # - # source://rubocop-rspec//lib/rubocop/cop/rspec/nested_groups.rb#119 + # source://rubocop-rspec/lib/rubocop/cop/rspec/nested_groups.rb#119 def find_nested_example_groups(node, nesting: T.unsafe(nil), &block); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/nested_groups.rb#144 + # source://rubocop-rspec/lib/rubocop/cop/rspec/nested_groups.rb#144 def max_nesting; end - # source://rubocop-rspec//lib/rubocop/cop/rspec/nested_groups.rb#148 + # source://rubocop-rspec/lib/rubocop/cop/rspec/nested_groups.rb#148 def max_nesting_config; end - # source://rubocop-rspec//lib/rubocop/cop/rspec/nested_groups.rb#140 + # source://rubocop-rspec/lib/rubocop/cop/rspec/nested_groups.rb#140 def message(nesting); end end -# source://rubocop-rspec//lib/rubocop/cop/rspec/nested_groups.rb#99 +# source://rubocop-rspec/lib/rubocop/cop/rspec/nested_groups.rb#99 RuboCop::Cop::RSpec::NestedGroups::DEPRECATED_MAX_KEY = T.let(T.unsafe(nil), String) -# source://rubocop-rspec//lib/rubocop/cop/rspec/nested_groups.rb#101 +# source://rubocop-rspec/lib/rubocop/cop/rspec/nested_groups.rb#101 RuboCop::Cop::RSpec::NestedGroups::DEPRECATION_WARNING = T.let(T.unsafe(nil), String) -# source://rubocop-rspec//lib/rubocop/cop/rspec/nested_groups.rb#97 +# source://rubocop-rspec/lib/rubocop/cop/rspec/nested_groups.rb#97 RuboCop::Cop::RSpec::NestedGroups::MSG = T.let(T.unsafe(nil), String) # Checks if an example contains any expectation. @@ -4561,7 +4561,7 @@ RuboCop::Cop::RSpec::NestedGroups::MSG = T.let(T.unsafe(nil), String) # assert_something # end # -# source://rubocop-rspec//lib/rubocop/cop/rspec/no_expectation_example.rb#58 +# source://rubocop-rspec/lib/rubocop/cop/rspec/no_expectation_example.rb#58 class RuboCop::Cop::RSpec::NoExpectationExample < ::RuboCop::Cop::RSpec::Base include ::RuboCop::Cop::AllowedPattern include ::RuboCop::Cop::RSpec::SkipOrPending @@ -4569,33 +4569,33 @@ class RuboCop::Cop::RSpec::NoExpectationExample < ::RuboCop::Cop::RSpec::Base # @param node [RuboCop::AST::Node] # @return [Boolean] # - # source://rubocop-rspec//lib/rubocop/cop/rspec/no_expectation_example.rb#74 + # source://rubocop-rspec/lib/rubocop/cop/rspec/no_expectation_example.rb#74 def includes_expectation?(param0); end # @param node [RuboCop::AST::Node] # @return [Boolean] # - # source://rubocop-rspec//lib/rubocop/cop/rspec/no_expectation_example.rb#84 + # source://rubocop-rspec/lib/rubocop/cop/rspec/no_expectation_example.rb#84 def includes_skip_example?(param0); end # @param node [RuboCop::AST::BlockNode] # - # source://rubocop-rspec//lib/rubocop/cop/rspec/no_expectation_example.rb#89 + # source://rubocop-rspec/lib/rubocop/cop/rspec/no_expectation_example.rb#89 def on_block(node); end # @param node [RuboCop::AST::BlockNode] # - # source://rubocop-rspec//lib/rubocop/cop/rspec/no_expectation_example.rb#89 + # source://rubocop-rspec/lib/rubocop/cop/rspec/no_expectation_example.rb#89 def on_numblock(node); end # @param node [RuboCop::AST::Node] # @return [Boolean] # - # source://rubocop-rspec//lib/rubocop/cop/rspec/no_expectation_example.rb#67 + # source://rubocop-rspec/lib/rubocop/cop/rspec/no_expectation_example.rb#67 def regular_or_focused_example?(param0 = T.unsafe(nil)); end end -# source://rubocop-rspec//lib/rubocop/cop/rspec/no_expectation_example.rb#62 +# source://rubocop-rspec/lib/rubocop/cop/rspec/no_expectation_example.rb#62 RuboCop::Cop::RSpec::NoExpectationExample::MSG = T.let(T.unsafe(nil), String) # Checks for consistent method usage for negating expectations. @@ -4621,27 +4621,27 @@ RuboCop::Cop::RSpec::NoExpectationExample::MSG = T.let(T.unsafe(nil), String) # expect(false).to_not be_true # end # -# source://rubocop-rspec//lib/rubocop/cop/rspec/not_to_not.rb#30 +# source://rubocop-rspec/lib/rubocop/cop/rspec/not_to_not.rb#30 class RuboCop::Cop::RSpec::NotToNot < ::RuboCop::Cop::RSpec::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-rspec//lib/rubocop/cop/rspec/not_to_not.rb#38 + # source://rubocop-rspec/lib/rubocop/cop/rspec/not_to_not.rb#38 def not_to_not_offense(param0 = T.unsafe(nil), param1); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/not_to_not.rb#40 + # source://rubocop-rspec/lib/rubocop/cop/rspec/not_to_not.rb#40 def on_send(node); end private - # source://rubocop-rspec//lib/rubocop/cop/rspec/not_to_not.rb#50 + # source://rubocop-rspec/lib/rubocop/cop/rspec/not_to_not.rb#50 def message(_node); end end -# source://rubocop-rspec//lib/rubocop/cop/rspec/not_to_not.rb#34 +# source://rubocop-rspec/lib/rubocop/cop/rspec/not_to_not.rb#34 RuboCop::Cop::RSpec::NotToNot::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-rspec//lib/rubocop/cop/rspec/not_to_not.rb#35 +# source://rubocop-rspec/lib/rubocop/cop/rspec/not_to_not.rb#35 RuboCop::Cop::RSpec::NotToNot::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Checks if there is a let/subject that overwrites an existing one. @@ -4663,29 +4663,29 @@ RuboCop::Cop::RSpec::NotToNot::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # let(:baz) { baz } # let!(:other) { other } # -# source://rubocop-rspec//lib/rubocop/cop/rspec/overwriting_setup.rb#25 +# source://rubocop-rspec/lib/rubocop/cop/rspec/overwriting_setup.rb#25 class RuboCop::Cop::RSpec::OverwritingSetup < ::RuboCop::Cop::RSpec::Base - # source://rubocop-rspec//lib/rubocop/cop/rspec/overwriting_setup.rb#34 + # source://rubocop-rspec/lib/rubocop/cop/rspec/overwriting_setup.rb#34 def first_argument_name(param0 = T.unsafe(nil)); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/overwriting_setup.rb#36 + # source://rubocop-rspec/lib/rubocop/cop/rspec/overwriting_setup.rb#36 def on_block(node); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/overwriting_setup.rb#29 + # source://rubocop-rspec/lib/rubocop/cop/rspec/overwriting_setup.rb#29 def setup?(param0 = T.unsafe(nil)); end private # @return [Boolean] # - # source://rubocop-rspec//lib/rubocop/cop/rspec/overwriting_setup.rb#64 + # source://rubocop-rspec/lib/rubocop/cop/rspec/overwriting_setup.rb#64 def common_setup?(node); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/overwriting_setup.rb#49 + # source://rubocop-rspec/lib/rubocop/cop/rspec/overwriting_setup.rb#49 def find_duplicates(node); end end -# source://rubocop-rspec//lib/rubocop/cop/rspec/overwriting_setup.rb#26 +# source://rubocop-rspec/lib/rubocop/cop/rspec/overwriting_setup.rb#26 RuboCop::Cop::RSpec::OverwritingSetup::MSG = T.let(T.unsafe(nil), String) # Checks for any pending or skipped examples. @@ -4717,36 +4717,36 @@ RuboCop::Cop::RSpec::OverwritingSetup::MSG = T.let(T.unsafe(nil), String) # describe MyClass do # end # -# source://rubocop-rspec//lib/rubocop/cop/rspec/pending.rb#35 +# source://rubocop-rspec/lib/rubocop/cop/rspec/pending.rb#35 class RuboCop::Cop::RSpec::Pending < ::RuboCop::Cop::RSpec::Base include ::RuboCop::Cop::RSpec::SkipOrPending - # source://rubocop-rspec//lib/rubocop/cop/rspec/pending.rb#61 + # source://rubocop-rspec/lib/rubocop/cop/rspec/pending.rb#61 def on_send(node); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/pending.rb#54 + # source://rubocop-rspec/lib/rubocop/cop/rspec/pending.rb#54 def pending_block?(param0 = T.unsafe(nil)); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/pending.rb#41 + # source://rubocop-rspec/lib/rubocop/cop/rspec/pending.rb#41 def skippable?(param0 = T.unsafe(nil)); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/pending.rb#49 + # source://rubocop-rspec/lib/rubocop/cop/rspec/pending.rb#49 def skippable_example?(param0 = T.unsafe(nil)); end private # @return [Boolean] # - # source://rubocop-rspec//lib/rubocop/cop/rspec/pending.rb#69 + # source://rubocop-rspec/lib/rubocop/cop/rspec/pending.rb#69 def skipped?(node); end # @return [Boolean] # - # source://rubocop-rspec//lib/rubocop/cop/rspec/pending.rb#74 + # source://rubocop-rspec/lib/rubocop/cop/rspec/pending.rb#74 def skipped_regular_example_without_body?(node); end end -# source://rubocop-rspec//lib/rubocop/cop/rspec/pending.rb#38 +# source://rubocop-rspec/lib/rubocop/cop/rspec/pending.rb#38 RuboCop::Cop::RSpec::Pending::MSG = T.let(T.unsafe(nil), String) # Checks for pending or skipped examples without reason. @@ -4803,53 +4803,53 @@ RuboCop::Cop::RSpec::Pending::MSG = T.let(T.unsafe(nil), String) # it 'does something', skip: 'reason' do # end # -# source://rubocop-rspec//lib/rubocop/cop/rspec/pending_without_reason.rb#59 +# source://rubocop-rspec/lib/rubocop/cop/rspec/pending_without_reason.rb#59 class RuboCop::Cop::RSpec::PendingWithoutReason < ::RuboCop::Cop::RSpec::Base - # source://rubocop-rspec//lib/rubocop/cop/rspec/pending_without_reason.rb#82 + # source://rubocop-rspec/lib/rubocop/cop/rspec/pending_without_reason.rb#82 def metadata_without_reason?(param0 = T.unsafe(nil)); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/pending_without_reason.rb#102 + # source://rubocop-rspec/lib/rubocop/cop/rspec/pending_without_reason.rb#102 def on_send(node); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/pending_without_reason.rb#98 + # source://rubocop-rspec/lib/rubocop/cop/rspec/pending_without_reason.rb#98 def pending_step_without_reason?(param0 = T.unsafe(nil)); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/pending_without_reason.rb#93 + # source://rubocop-rspec/lib/rubocop/cop/rspec/pending_without_reason.rb#93 def skipped_by_example_group_method?(param0 = T.unsafe(nil)); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/pending_without_reason.rb#72 + # source://rubocop-rspec/lib/rubocop/cop/rspec/pending_without_reason.rb#72 def skipped_by_example_method?(param0 = T.unsafe(nil)); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/pending_without_reason.rb#77 + # source://rubocop-rspec/lib/rubocop/cop/rspec/pending_without_reason.rb#77 def skipped_by_example_method_with_block?(param0 = T.unsafe(nil)); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/pending_without_reason.rb#63 + # source://rubocop-rspec/lib/rubocop/cop/rspec/pending_without_reason.rb#63 def skipped_in_example?(param0 = T.unsafe(nil)); end private # @return [Boolean] # - # source://rubocop-rspec//lib/rubocop/cop/rspec/pending_without_reason.rb#123 + # source://rubocop-rspec/lib/rubocop/cop/rspec/pending_without_reason.rb#123 def block_node_example_group?(node); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/pending_without_reason.rb#135 + # source://rubocop-rspec/lib/rubocop/cop/rspec/pending_without_reason.rb#135 def on_pending_by_metadata(node); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/pending_without_reason.rb#151 + # source://rubocop-rspec/lib/rubocop/cop/rspec/pending_without_reason.rb#151 def on_skipped_by_example_group_method(node); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/pending_without_reason.rb#141 + # source://rubocop-rspec/lib/rubocop/cop/rspec/pending_without_reason.rb#141 def on_skipped_by_example_method(node); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/pending_without_reason.rb#129 + # source://rubocop-rspec/lib/rubocop/cop/rspec/pending_without_reason.rb#129 def on_skipped_by_in_example_method(node); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/pending_without_reason.rb#116 + # source://rubocop-rspec/lib/rubocop/cop/rspec/pending_without_reason.rb#116 def parent_node(node); end end -# source://rubocop-rspec//lib/rubocop/cop/rspec/pending_without_reason.rb#60 +# source://rubocop-rspec/lib/rubocop/cop/rspec/pending_without_reason.rb#60 RuboCop::Cop::RSpec::PendingWithoutReason::MSG = T.let(T.unsafe(nil), String) # Prefer using predicate matcher over using predicate method directly. @@ -4898,21 +4898,21 @@ RuboCop::Cop::RSpec::PendingWithoutReason::MSG = T.let(T.unsafe(nil), String) # # good - the above code is rewritten to it by this cop # expect(foo.something?).to be_truthy # -# source://rubocop-rspec//lib/rubocop/cop/rspec/predicate_matcher.rb#318 +# source://rubocop-rspec/lib/rubocop/cop/rspec/predicate_matcher.rb#318 class RuboCop::Cop::RSpec::PredicateMatcher < ::RuboCop::Cop::RSpec::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle include ::RuboCop::Cop::RSpec::InflectedHelper include ::RuboCop::Cop::RSpec::ExplicitHelper extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-rspec//lib/rubocop/cop/rspec/predicate_matcher.rb#335 + # source://rubocop-rspec/lib/rubocop/cop/rspec/predicate_matcher.rb#335 def on_block(node); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/predicate_matcher.rb#326 + # source://rubocop-rspec/lib/rubocop/cop/rspec/predicate_matcher.rb#326 def on_send(node); end end -# source://rubocop-rspec//lib/rubocop/cop/rspec/predicate_matcher.rb#324 +# source://rubocop-rspec/lib/rubocop/cop/rspec/predicate_matcher.rb#324 RuboCop::Cop::RSpec::PredicateMatcher::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Check for `once` and `twice` receive counts matchers usage. @@ -4934,38 +4934,38 @@ RuboCop::Cop::RSpec::PredicateMatcher::RESTRICT_ON_SEND = T.let(T.unsafe(nil), A # expect(foo).to receive(:bar).at_most(:once) # expect(foo).to receive(:bar).at_most(:twice).times # -# source://rubocop-rspec//lib/rubocop/cop/rspec/receive_counts.rb#25 +# source://rubocop-rspec/lib/rubocop/cop/rspec/receive_counts.rb#25 class RuboCop::Cop::RSpec::ReceiveCounts < ::RuboCop::Cop::RSpec::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-rspec//lib/rubocop/cop/rspec/receive_counts.rb#40 + # source://rubocop-rspec/lib/rubocop/cop/rspec/receive_counts.rb#40 def on_send(node); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/receive_counts.rb#33 + # source://rubocop-rspec/lib/rubocop/cop/rspec/receive_counts.rb#33 def receive_counts(param0 = T.unsafe(nil)); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/receive_counts.rb#38 + # source://rubocop-rspec/lib/rubocop/cop/rspec/receive_counts.rb#38 def stub?(param0); end private - # source://rubocop-rspec//lib/rubocop/cop/rspec/receive_counts.rb#55 + # source://rubocop-rspec/lib/rubocop/cop/rspec/receive_counts.rb#55 def autocorrect(corrector, node, range); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/receive_counts.rb#72 + # source://rubocop-rspec/lib/rubocop/cop/rspec/receive_counts.rb#72 def matcher_for(method, count); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/receive_counts.rb#64 + # source://rubocop-rspec/lib/rubocop/cop/rspec/receive_counts.rb#64 def message_for(node, source); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/receive_counts.rb#81 + # source://rubocop-rspec/lib/rubocop/cop/rspec/receive_counts.rb#81 def range(node, offending_node); end end -# source://rubocop-rspec//lib/rubocop/cop/rspec/receive_counts.rb#28 +# source://rubocop-rspec/lib/rubocop/cop/rspec/receive_counts.rb#28 RuboCop::Cop::RSpec::ReceiveCounts::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-rspec//lib/rubocop/cop/rspec/receive_counts.rb#30 +# source://rubocop-rspec/lib/rubocop/cop/rspec/receive_counts.rb#30 RuboCop::Cop::RSpec::ReceiveCounts::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Checks for multiple messages stubbed on the same object. @@ -4988,73 +4988,73 @@ RuboCop::Cop::RSpec::ReceiveCounts::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Arra # allow(Service).to receive(:foo).and_return(qux) # end # -# source://rubocop-rspec//lib/rubocop/cop/rspec/receive_messages.rb#31 +# source://rubocop-rspec/lib/rubocop/cop/rspec/receive_messages.rb#31 class RuboCop::Cop::RSpec::ReceiveMessages < ::RuboCop::Cop::RSpec::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-rspec//lib/rubocop/cop/rspec/receive_messages.rb#44 + # source://rubocop-rspec/lib/rubocop/cop/rspec/receive_messages.rb#44 def allow_argument(param0 = T.unsafe(nil)); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/receive_messages.rb#39 + # source://rubocop-rspec/lib/rubocop/cop/rspec/receive_messages.rb#39 def allow_receive_message?(param0 = T.unsafe(nil)); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/receive_messages.rb#63 + # source://rubocop-rspec/lib/rubocop/cop/rspec/receive_messages.rb#63 def on_begin(node); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/receive_messages.rb#59 + # source://rubocop-rspec/lib/rubocop/cop/rspec/receive_messages.rb#59 def receive_and_return_argument(param0 = T.unsafe(nil)); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/receive_messages.rb#54 + # source://rubocop-rspec/lib/rubocop/cop/rspec/receive_messages.rb#54 def receive_arg(param0); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/receive_messages.rb#49 + # source://rubocop-rspec/lib/rubocop/cop/rspec/receive_messages.rb#49 def receive_node(param0); end private - # source://rubocop-rspec//lib/rubocop/cop/rspec/receive_messages.rb#83 + # source://rubocop-rspec/lib/rubocop/cop/rspec/receive_messages.rb#83 def add_repeated_lines_and_arguments(items); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/receive_messages.rb#100 + # source://rubocop-rspec/lib/rubocop/cop/rspec/receive_messages.rb#100 def arguments(items); end # @return [Boolean] # - # source://rubocop-rspec//lib/rubocop/cop/rspec/receive_messages.rb#150 + # source://rubocop-rspec/lib/rubocop/cop/rspec/receive_messages.rb#150 def heredoc_or_splat?(node); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/receive_messages.rb#146 + # source://rubocop-rspec/lib/rubocop/cop/rspec/receive_messages.rb#146 def item_range_by_whole_lines(item); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/receive_messages.rb#135 + # source://rubocop-rspec/lib/rubocop/cop/rspec/receive_messages.rb#135 def message(repeated_lines); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/receive_messages.rb#109 + # source://rubocop-rspec/lib/rubocop/cop/rspec/receive_messages.rb#109 def normalize_receive_arg(receive_arg); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/receive_messages.rb#117 + # source://rubocop-rspec/lib/rubocop/cop/rspec/receive_messages.rb#117 def normalize_return_arg(return_arg); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/receive_messages.rb#125 + # source://rubocop-rspec/lib/rubocop/cop/rspec/receive_messages.rb#125 def register_offense(item, repeated_lines, args); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/receive_messages.rb#73 + # source://rubocop-rspec/lib/rubocop/cop/rspec/receive_messages.rb#73 def repeated_receive_message(node); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/receive_messages.rb#139 + # source://rubocop-rspec/lib/rubocop/cop/rspec/receive_messages.rb#139 def replace_to_receive_messages(corrector, item, args); end # @return [Boolean] # - # source://rubocop-rspec//lib/rubocop/cop/rspec/receive_messages.rb#155 + # source://rubocop-rspec/lib/rubocop/cop/rspec/receive_messages.rb#155 def requires_quotes?(value); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/receive_messages.rb#91 + # source://rubocop-rspec/lib/rubocop/cop/rspec/receive_messages.rb#91 def uniq_items(items); end end -# source://rubocop-rspec//lib/rubocop/cop/rspec/receive_messages.rb#35 +# source://rubocop-rspec/lib/rubocop/cop/rspec/receive_messages.rb#35 RuboCop::Cop::RSpec::ReceiveMessages::MSG = T.let(T.unsafe(nil), String) # Prefer `not_to receive(...)` over `receive(...).never`. @@ -5066,26 +5066,26 @@ RuboCop::Cop::RSpec::ReceiveMessages::MSG = T.let(T.unsafe(nil), String) # # good # expect(foo).not_to receive(:bar) # -# source://rubocop-rspec//lib/rubocop/cop/rspec/receive_never.rb#15 +# source://rubocop-rspec/lib/rubocop/cop/rspec/receive_never.rb#15 class RuboCop::Cop::RSpec::ReceiveNever < ::RuboCop::Cop::RSpec::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-rspec//lib/rubocop/cop/rspec/receive_never.rb#21 + # source://rubocop-rspec/lib/rubocop/cop/rspec/receive_never.rb#21 def method_on_stub?(param0); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/receive_never.rb#23 + # source://rubocop-rspec/lib/rubocop/cop/rspec/receive_never.rb#23 def on_send(node); end private - # source://rubocop-rspec//lib/rubocop/cop/rspec/receive_never.rb#33 + # source://rubocop-rspec/lib/rubocop/cop/rspec/receive_never.rb#33 def autocorrect(corrector, node); end end -# source://rubocop-rspec//lib/rubocop/cop/rspec/receive_never.rb#17 +# source://rubocop-rspec/lib/rubocop/cop/rspec/receive_never.rb#17 RuboCop::Cop::RSpec::ReceiveNever::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-rspec//lib/rubocop/cop/rspec/receive_never.rb#18 +# source://rubocop-rspec/lib/rubocop/cop/rspec/receive_never.rb#18 RuboCop::Cop::RSpec::ReceiveNever::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Remove redundant `around` hook. @@ -5098,35 +5098,35 @@ RuboCop::Cop::RSpec::ReceiveNever::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array # # # good # -# source://rubocop-rspec//lib/rubocop/cop/rspec/redundant_around.rb#16 +# source://rubocop-rspec/lib/rubocop/cop/rspec/redundant_around.rb#16 class RuboCop::Cop::RSpec::RedundantAround < ::RuboCop::Cop::RSpec::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-rspec//lib/rubocop/cop/rspec/redundant_around.rb#43 + # source://rubocop-rspec/lib/rubocop/cop/rspec/redundant_around.rb#43 def match_redundant_around_hook_block?(param0 = T.unsafe(nil)); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/redundant_around.rb#48 + # source://rubocop-rspec/lib/rubocop/cop/rspec/redundant_around.rb#48 def match_redundant_around_hook_send?(param0 = T.unsafe(nil)); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/redundant_around.rb#23 + # source://rubocop-rspec/lib/rubocop/cop/rspec/redundant_around.rb#23 def on_block(node); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/redundant_around.rb#23 + # source://rubocop-rspec/lib/rubocop/cop/rspec/redundant_around.rb#23 def on_numblock(node); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/redundant_around.rb#32 + # source://rubocop-rspec/lib/rubocop/cop/rspec/redundant_around.rb#32 def on_send(node); end private - # source://rubocop-rspec//lib/rubocop/cop/rspec/redundant_around.rb#59 + # source://rubocop-rspec/lib/rubocop/cop/rspec/redundant_around.rb#59 def autocorrect(corrector, node); end end -# source://rubocop-rspec//lib/rubocop/cop/rspec/redundant_around.rb#19 +# source://rubocop-rspec/lib/rubocop/cop/rspec/redundant_around.rb#19 RuboCop::Cop::RSpec::RedundantAround::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-rspec//lib/rubocop/cop/rspec/redundant_around.rb#21 +# source://rubocop-rspec/lib/rubocop/cop/rspec/redundant_around.rb#21 RuboCop::Cop::RSpec::RedundantAround::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Checks for redundant predicate matcher. @@ -5142,31 +5142,31 @@ RuboCop::Cop::RSpec::RedundantAround::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Ar # expect(foo).not_to include(bar) # expect(foo).to all be(bar) # -# source://rubocop-rspec//lib/rubocop/cop/rspec/redundant_predicate_matcher.rb#19 +# source://rubocop-rspec/lib/rubocop/cop/rspec/redundant_predicate_matcher.rb#19 class RuboCop::Cop::RSpec::RedundantPredicateMatcher < ::RuboCop::Cop::RSpec::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-rspec//lib/rubocop/cop/rspec/redundant_predicate_matcher.rb#28 + # source://rubocop-rspec/lib/rubocop/cop/rspec/redundant_predicate_matcher.rb#28 def on_send(node); end private - # source://rubocop-rspec//lib/rubocop/cop/rspec/redundant_predicate_matcher.rb#44 + # source://rubocop-rspec/lib/rubocop/cop/rspec/redundant_predicate_matcher.rb#44 def message(bad_method, good_method); end # @return [Boolean] # - # source://rubocop-rspec//lib/rubocop/cop/rspec/redundant_predicate_matcher.rb#48 + # source://rubocop-rspec/lib/rubocop/cop/rspec/redundant_predicate_matcher.rb#48 def replaceable_arguments?(node); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/redundant_predicate_matcher.rb#56 + # source://rubocop-rspec/lib/rubocop/cop/rspec/redundant_predicate_matcher.rb#56 def replaced_method_name(method_name); end end -# source://rubocop-rspec//lib/rubocop/cop/rspec/redundant_predicate_matcher.rb#22 +# source://rubocop-rspec/lib/rubocop/cop/rspec/redundant_predicate_matcher.rb#22 RuboCop::Cop::RSpec::RedundantPredicateMatcher::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-rspec//lib/rubocop/cop/rspec/redundant_predicate_matcher.rb#23 +# source://rubocop-rspec/lib/rubocop/cop/rspec/redundant_predicate_matcher.rb#23 RuboCop::Cop::RSpec::RedundantPredicateMatcher::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Checks that `remove_const` is not used in specs. @@ -5181,21 +5181,21 @@ RuboCop::Cop::RSpec::RedundantPredicateMatcher::RESTRICT_ON_SEND = T.let(T.unsaf # SomeClass.send(:remove_const, :SomeConstant) # end # -# source://rubocop-rspec//lib/rubocop/cop/rspec/remove_const.rb#18 +# source://rubocop-rspec/lib/rubocop/cop/rspec/remove_const.rb#18 class RuboCop::Cop::RSpec::RemoveConst < ::RuboCop::Cop::RSpec::Base # Check for offenses # - # source://rubocop-rspec//lib/rubocop/cop/rspec/remove_const.rb#31 + # source://rubocop-rspec/lib/rubocop/cop/rspec/remove_const.rb#31 def on_send(node); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/remove_const.rb#26 + # source://rubocop-rspec/lib/rubocop/cop/rspec/remove_const.rb#26 def remove_const(param0 = T.unsafe(nil)); end end -# source://rubocop-rspec//lib/rubocop/cop/rspec/remove_const.rb#21 +# source://rubocop-rspec/lib/rubocop/cop/rspec/remove_const.rb#21 RuboCop::Cop::RSpec::RemoveConst::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-rspec//lib/rubocop/cop/rspec/remove_const.rb#23 +# source://rubocop-rspec/lib/rubocop/cop/rspec/remove_const.rb#23 RuboCop::Cop::RSpec::RemoveConst::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Check for repeated description strings in example groups. @@ -5234,29 +5234,29 @@ RuboCop::Cop::RSpec::RemoveConst::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # end # end # -# source://rubocop-rspec//lib/rubocop/cop/rspec/repeated_description.rb#42 +# source://rubocop-rspec/lib/rubocop/cop/rspec/repeated_description.rb#42 class RuboCop::Cop::RSpec::RepeatedDescription < ::RuboCop::Cop::RSpec::Base - # source://rubocop-rspec//lib/rubocop/cop/rspec/repeated_description.rb#45 + # source://rubocop-rspec/lib/rubocop/cop/rspec/repeated_description.rb#45 def on_block(node); end private - # source://rubocop-rspec//lib/rubocop/cop/rspec/repeated_description.rb#88 + # source://rubocop-rspec/lib/rubocop/cop/rspec/repeated_description.rb#88 def example_signature(example); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/repeated_description.rb#92 + # source://rubocop-rspec/lib/rubocop/cop/rspec/repeated_description.rb#92 def its_signature(example); end # Select examples in the current scope with repeated description strings # - # source://rubocop-rspec//lib/rubocop/cop/rspec/repeated_description.rb#60 + # source://rubocop-rspec/lib/rubocop/cop/rspec/repeated_description.rb#60 def repeated_descriptions(node); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/repeated_description.rb#74 + # source://rubocop-rspec/lib/rubocop/cop/rspec/repeated_description.rb#74 def repeated_its(node); end end -# source://rubocop-rspec//lib/rubocop/cop/rspec/repeated_description.rb#43 +# source://rubocop-rspec/lib/rubocop/cop/rspec/repeated_description.rb#43 RuboCop::Cop::RSpec::RepeatedDescription::MSG = T.let(T.unsafe(nil), String) # Check for repeated examples within example groups. @@ -5271,21 +5271,21 @@ RuboCop::Cop::RSpec::RepeatedDescription::MSG = T.let(T.unsafe(nil), String) # expect(user).to be_valid # end # -# source://rubocop-rspec//lib/rubocop/cop/rspec/repeated_example.rb#18 +# source://rubocop-rspec/lib/rubocop/cop/rspec/repeated_example.rb#18 class RuboCop::Cop::RSpec::RepeatedExample < ::RuboCop::Cop::RSpec::Base - # source://rubocop-rspec//lib/rubocop/cop/rspec/repeated_example.rb#21 + # source://rubocop-rspec/lib/rubocop/cop/rspec/repeated_example.rb#21 def on_block(node); end private - # source://rubocop-rspec//lib/rubocop/cop/rspec/repeated_example.rb#41 + # source://rubocop-rspec/lib/rubocop/cop/rspec/repeated_example.rb#41 def example_signature(example); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/repeated_example.rb#31 + # source://rubocop-rspec/lib/rubocop/cop/rspec/repeated_example.rb#31 def repeated_examples(node); end end -# source://rubocop-rspec//lib/rubocop/cop/rspec/repeated_example.rb#19 +# source://rubocop-rspec/lib/rubocop/cop/rspec/repeated_example.rb#19 RuboCop::Cop::RSpec::RepeatedExample::MSG = T.let(T.unsafe(nil), String) # Check for repeated describe and context block body. @@ -5327,41 +5327,41 @@ RuboCop::Cop::RSpec::RepeatedExample::MSG = T.let(T.unsafe(nil), String) # it { is_expected.to respond_to :each } # end # -# source://rubocop-rspec//lib/rubocop/cop/rspec/repeated_example_group_body.rb#45 +# source://rubocop-rspec/lib/rubocop/cop/rspec/repeated_example_group_body.rb#45 class RuboCop::Cop::RSpec::RepeatedExampleGroupBody < ::RuboCop::Cop::RSpec::Base include ::RuboCop::Cop::RSpec::SkipOrPending - # source://rubocop-rspec//lib/rubocop/cop/rspec/repeated_example_group_body.rb#59 + # source://rubocop-rspec/lib/rubocop/cop/rspec/repeated_example_group_body.rb#59 def body(param0 = T.unsafe(nil)); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/repeated_example_group_body.rb#62 + # source://rubocop-rspec/lib/rubocop/cop/rspec/repeated_example_group_body.rb#62 def const_arg(param0 = T.unsafe(nil)); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/repeated_example_group_body.rb#56 + # source://rubocop-rspec/lib/rubocop/cop/rspec/repeated_example_group_body.rb#56 def metadata(param0 = T.unsafe(nil)); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/repeated_example_group_body.rb#64 + # source://rubocop-rspec/lib/rubocop/cop/rspec/repeated_example_group_body.rb#64 def on_begin(node); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/repeated_example_group_body.rb#51 + # source://rubocop-rspec/lib/rubocop/cop/rspec/repeated_example_group_body.rb#51 def several_example_groups?(param0 = T.unsafe(nil)); end private - # source://rubocop-rspec//lib/rubocop/cop/rspec/repeated_example_group_body.rb#85 + # source://rubocop-rspec/lib/rubocop/cop/rspec/repeated_example_group_body.rb#85 def add_repeated_lines(groups); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/repeated_example_group_body.rb#94 + # source://rubocop-rspec/lib/rubocop/cop/rspec/repeated_example_group_body.rb#94 def message(group, repeats); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/repeated_example_group_body.rb#74 + # source://rubocop-rspec/lib/rubocop/cop/rspec/repeated_example_group_body.rb#74 def repeated_group_bodies(node); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/repeated_example_group_body.rb#90 + # source://rubocop-rspec/lib/rubocop/cop/rspec/repeated_example_group_body.rb#90 def signature_keys(group); end end -# source://rubocop-rspec//lib/rubocop/cop/rspec/repeated_example_group_body.rb#48 +# source://rubocop-rspec/lib/rubocop/cop/rspec/repeated_example_group_body.rb#48 RuboCop::Cop::RSpec::RepeatedExampleGroupBody::MSG = T.let(T.unsafe(nil), String) # Check for repeated example group descriptions. @@ -5403,35 +5403,35 @@ RuboCop::Cop::RSpec::RepeatedExampleGroupBody::MSG = T.let(T.unsafe(nil), String # # example group # end # -# source://rubocop-rspec//lib/rubocop/cop/rspec/repeated_example_group_description.rb#45 +# source://rubocop-rspec/lib/rubocop/cop/rspec/repeated_example_group_description.rb#45 class RuboCop::Cop::RSpec::RepeatedExampleGroupDescription < ::RuboCop::Cop::RSpec::Base include ::RuboCop::Cop::RSpec::SkipOrPending - # source://rubocop-rspec//lib/rubocop/cop/rspec/repeated_example_group_description.rb#56 + # source://rubocop-rspec/lib/rubocop/cop/rspec/repeated_example_group_description.rb#56 def doc_string_and_metadata(param0 = T.unsafe(nil)); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/repeated_example_group_description.rb#61 + # source://rubocop-rspec/lib/rubocop/cop/rspec/repeated_example_group_description.rb#61 def empty_description?(param0 = T.unsafe(nil)); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/repeated_example_group_description.rb#63 + # source://rubocop-rspec/lib/rubocop/cop/rspec/repeated_example_group_description.rb#63 def on_begin(node); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/repeated_example_group_description.rb#51 + # source://rubocop-rspec/lib/rubocop/cop/rspec/repeated_example_group_description.rb#51 def several_example_groups?(param0 = T.unsafe(nil)); end private - # source://rubocop-rspec//lib/rubocop/cop/rspec/repeated_example_group_description.rb#85 + # source://rubocop-rspec/lib/rubocop/cop/rspec/repeated_example_group_description.rb#85 def add_repeated_lines(groups); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/repeated_example_group_description.rb#90 + # source://rubocop-rspec/lib/rubocop/cop/rspec/repeated_example_group_description.rb#90 def message(group, repeats); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/repeated_example_group_description.rb#73 + # source://rubocop-rspec/lib/rubocop/cop/rspec/repeated_example_group_description.rb#73 def repeated_group_descriptions(node); end end -# source://rubocop-rspec//lib/rubocop/cop/rspec/repeated_example_group_description.rb#48 +# source://rubocop-rspec/lib/rubocop/cop/rspec/repeated_example_group_description.rb#48 RuboCop::Cop::RSpec::RepeatedExampleGroupDescription::MSG = T.let(T.unsafe(nil), String) # Check for repeated include of shared examples. @@ -5476,41 +5476,41 @@ RuboCop::Cop::RSpec::RepeatedExampleGroupDescription::MSG = T.let(T.unsafe(nil), # it_should_behave_like 'a goose' # end # -# source://rubocop-rspec//lib/rubocop/cop/rspec/repeated_include_example.rb#48 +# source://rubocop-rspec/lib/rubocop/cop/rspec/repeated_include_example.rb#48 class RuboCop::Cop::RSpec::RepeatedIncludeExample < ::RuboCop::Cop::RSpec::Base - # source://rubocop-rspec//lib/rubocop/cop/rspec/repeated_include_example.rb#58 + # source://rubocop-rspec/lib/rubocop/cop/rspec/repeated_include_example.rb#58 def include_examples?(param0 = T.unsafe(nil)); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/repeated_include_example.rb#65 + # source://rubocop-rspec/lib/rubocop/cop/rspec/repeated_include_example.rb#65 def on_begin(node); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/repeated_include_example.rb#53 + # source://rubocop-rspec/lib/rubocop/cop/rspec/repeated_include_example.rb#53 def several_include_examples?(param0 = T.unsafe(nil)); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/repeated_include_example.rb#62 + # source://rubocop-rspec/lib/rubocop/cop/rspec/repeated_include_example.rb#62 def shared_examples_name(param0 = T.unsafe(nil)); end private - # source://rubocop-rspec//lib/rubocop/cop/rspec/repeated_include_example.rb#90 + # source://rubocop-rspec/lib/rubocop/cop/rspec/repeated_include_example.rb#90 def add_repeated_lines(items); end # @return [Boolean] # - # source://rubocop-rspec//lib/rubocop/cop/rspec/repeated_include_example.rb#85 + # source://rubocop-rspec/lib/rubocop/cop/rspec/repeated_include_example.rb#85 def literal_include_examples?(node); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/repeated_include_example.rb#99 + # source://rubocop-rspec/lib/rubocop/cop/rspec/repeated_include_example.rb#99 def message(item, repeats); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/repeated_include_example.rb#75 + # source://rubocop-rspec/lib/rubocop/cop/rspec/repeated_include_example.rb#75 def repeated_include_examples(node); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/repeated_include_example.rb#95 + # source://rubocop-rspec/lib/rubocop/cop/rspec/repeated_include_example.rb#95 def signature_keys(item); end end -# source://rubocop-rspec//lib/rubocop/cop/rspec/repeated_include_example.rb#49 +# source://rubocop-rspec/lib/rubocop/cop/rspec/repeated_include_example.rb#49 RuboCop::Cop::RSpec::RepeatedIncludeExample::MSG = T.let(T.unsafe(nil), String) # Checks for repeated calls to subject missing that it is memoized. @@ -5539,11 +5539,11 @@ RuboCop::Cop::RSpec::RepeatedIncludeExample::MSG = T.let(T.unsafe(nil), String) # expect { subject.b }.to not_change { A.count } # end # -# source://rubocop-rspec//lib/rubocop/cop/rspec/repeated_subject_call.rb#32 +# source://rubocop-rspec/lib/rubocop/cop/rspec/repeated_subject_call.rb#32 class RuboCop::Cop::RSpec::RepeatedSubjectCall < ::RuboCop::Cop::RSpec::Base include ::RuboCop::Cop::RSpec::TopLevelGroup - # source://rubocop-rspec//lib/rubocop/cop/rspec/repeated_subject_call.rb#65 + # source://rubocop-rspec/lib/rubocop/cop/rspec/repeated_subject_call.rb#65 def on_top_level_group(node); end # Find a named or unnamed subject definition @@ -5559,31 +5559,31 @@ class RuboCop::Cop::RSpec::RepeatedSubjectCall < ::RuboCop::Cop::RSpec::Base # @param node [RuboCop::AST::Node] # @yield [Symbol] subject name # - # source://rubocop-rspec//lib/rubocop/cop/rspec/repeated_subject_call.rb#53 + # source://rubocop-rspec/lib/rubocop/cop/rspec/repeated_subject_call.rb#53 def subject?(param0 = T.unsafe(nil)); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/repeated_subject_call.rb#61 + # source://rubocop-rspec/lib/rubocop/cop/rspec/repeated_subject_call.rb#61 def subject_calls(param0, param1); end private - # source://rubocop-rspec//lib/rubocop/cop/rspec/repeated_subject_call.rb#73 + # source://rubocop-rspec/lib/rubocop/cop/rspec/repeated_subject_call.rb#73 def detect_offense(subject_node); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/repeated_subject_call.rb#85 + # source://rubocop-rspec/lib/rubocop/cop/rspec/repeated_subject_call.rb#85 def detect_offenses_in_block(node, subject_names = T.unsafe(nil)); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/repeated_subject_call.rb#97 + # source://rubocop-rspec/lib/rubocop/cop/rspec/repeated_subject_call.rb#97 def detect_offenses_in_example(node, subject_names); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/repeated_subject_call.rb#111 + # source://rubocop-rspec/lib/rubocop/cop/rspec/repeated_subject_call.rb#111 def detect_subjects_in_scope(node); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/repeated_subject_call.rb#81 + # source://rubocop-rspec/lib/rubocop/cop/rspec/repeated_subject_call.rb#81 def expect_block(node); end end -# source://rubocop-rspec//lib/rubocop/cop/rspec/repeated_subject_call.rb#35 +# source://rubocop-rspec/lib/rubocop/cop/rspec/repeated_subject_call.rb#35 RuboCop::Cop::RSpec::RepeatedSubjectCall::MSG = T.let(T.unsafe(nil), String) # Checks for consistent style of stub's return setting. @@ -5615,127 +5615,127 @@ RuboCop::Cop::RSpec::RepeatedSubjectCall::MSG = T.let(T.unsafe(nil), String) # # also good as the returned value is dynamic # allow(Foo).to receive(:bar).and_return(bar.baz) # -# source://rubocop-rspec//lib/rubocop/cop/rspec/return_from_stub.rb#36 +# source://rubocop-rspec/lib/rubocop/cop/rspec/return_from_stub.rb#36 class RuboCop::Cop::RSpec::ReturnFromStub < ::RuboCop::Cop::RSpec::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-rspec//lib/rubocop/cop/rspec/return_from_stub.rb#51 + # source://rubocop-rspec/lib/rubocop/cop/rspec/return_from_stub.rb#51 def and_return_value(param0); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/return_from_stub.rb#45 + # source://rubocop-rspec/lib/rubocop/cop/rspec/return_from_stub.rb#45 def contains_stub?(param0); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/return_from_stub.rb#62 + # source://rubocop-rspec/lib/rubocop/cop/rspec/return_from_stub.rb#62 def on_block(node); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/return_from_stub.rb#55 + # source://rubocop-rspec/lib/rubocop/cop/rspec/return_from_stub.rb#55 def on_send(node); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/return_from_stub.rb#48 + # source://rubocop-rspec/lib/rubocop/cop/rspec/return_from_stub.rb#48 def stub_with_block?(param0 = T.unsafe(nil)); end private - # source://rubocop-rspec//lib/rubocop/cop/rspec/return_from_stub.rb#71 + # source://rubocop-rspec/lib/rubocop/cop/rspec/return_from_stub.rb#71 def check_and_return_call(node); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/return_from_stub.rb#81 + # source://rubocop-rspec/lib/rubocop/cop/rspec/return_from_stub.rb#81 def check_block_body(block); end # @return [Boolean] # - # source://rubocop-rspec//lib/rubocop/cop/rspec/return_from_stub.rb#90 + # source://rubocop-rspec/lib/rubocop/cop/rspec/return_from_stub.rb#90 def dynamic?(node); end end -# source://rubocop-rspec//lib/rubocop/cop/rspec/return_from_stub.rb#95 +# source://rubocop-rspec/lib/rubocop/cop/rspec/return_from_stub.rb#95 class RuboCop::Cop::RSpec::ReturnFromStub::AndReturnCallCorrector # @return [AndReturnCallCorrector] a new instance of AndReturnCallCorrector # - # source://rubocop-rspec//lib/rubocop/cop/rspec/return_from_stub.rb#96 + # source://rubocop-rspec/lib/rubocop/cop/rspec/return_from_stub.rb#96 def initialize(node); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/return_from_stub.rb#102 + # source://rubocop-rspec/lib/rubocop/cop/rspec/return_from_stub.rb#102 def call(corrector); end private # Returns the value of attribute arg. # - # source://rubocop-rspec//lib/rubocop/cop/rspec/return_from_stub.rb#111 + # source://rubocop-rspec/lib/rubocop/cop/rspec/return_from_stub.rb#111 def arg; end # @return [Boolean] # - # source://rubocop-rspec//lib/rubocop/cop/rspec/return_from_stub.rb#133 + # source://rubocop-rspec/lib/rubocop/cop/rspec/return_from_stub.rb#133 def hash_without_braces?; end # @return [Boolean] # - # source://rubocop-rspec//lib/rubocop/cop/rspec/return_from_stub.rb#113 + # source://rubocop-rspec/lib/rubocop/cop/rspec/return_from_stub.rb#113 def heredoc?; end # Returns the value of attribute node. # - # source://rubocop-rspec//lib/rubocop/cop/rspec/return_from_stub.rb#111 + # source://rubocop-rspec/lib/rubocop/cop/rspec/return_from_stub.rb#111 def node; end - # source://rubocop-rspec//lib/rubocop/cop/rspec/return_from_stub.rb#117 + # source://rubocop-rspec/lib/rubocop/cop/rspec/return_from_stub.rb#117 def range; end # Returns the value of attribute receiver. # - # source://rubocop-rspec//lib/rubocop/cop/rspec/return_from_stub.rb#111 + # source://rubocop-rspec/lib/rubocop/cop/rspec/return_from_stub.rb#111 def receiver; end - # source://rubocop-rspec//lib/rubocop/cop/rspec/return_from_stub.rb#125 + # source://rubocop-rspec/lib/rubocop/cop/rspec/return_from_stub.rb#125 def replacement; end end -# source://rubocop-rspec//lib/rubocop/cop/rspec/return_from_stub.rb#139 +# source://rubocop-rspec/lib/rubocop/cop/rspec/return_from_stub.rb#139 class RuboCop::Cop::RSpec::ReturnFromStub::BlockBodyCorrector # @return [BlockBodyCorrector] a new instance of BlockBodyCorrector # - # source://rubocop-rspec//lib/rubocop/cop/rspec/return_from_stub.rb#140 + # source://rubocop-rspec/lib/rubocop/cop/rspec/return_from_stub.rb#140 def initialize(block); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/return_from_stub.rb#146 + # source://rubocop-rspec/lib/rubocop/cop/rspec/return_from_stub.rb#146 def call(corrector); end private # Returns the value of attribute block. # - # source://rubocop-rspec//lib/rubocop/cop/rspec/return_from_stub.rb#158 + # source://rubocop-rspec/lib/rubocop/cop/rspec/return_from_stub.rb#158 def block; end # Returns the value of attribute body. # - # source://rubocop-rspec//lib/rubocop/cop/rspec/return_from_stub.rb#158 + # source://rubocop-rspec/lib/rubocop/cop/rspec/return_from_stub.rb#158 def body; end # @return [Boolean] # - # source://rubocop-rspec//lib/rubocop/cop/rspec/return_from_stub.rb#160 + # source://rubocop-rspec/lib/rubocop/cop/rspec/return_from_stub.rb#160 def heredoc?; end # Returns the value of attribute node. # - # source://rubocop-rspec//lib/rubocop/cop/rspec/return_from_stub.rb#158 + # source://rubocop-rspec/lib/rubocop/cop/rspec/return_from_stub.rb#158 def node; end end -# source://rubocop-rspec//lib/rubocop/cop/rspec/return_from_stub.rb#164 +# source://rubocop-rspec/lib/rubocop/cop/rspec/return_from_stub.rb#164 RuboCop::Cop::RSpec::ReturnFromStub::BlockBodyCorrector::NULL_BLOCK_BODY = T.let(T.unsafe(nil), T.untyped) -# source://rubocop-rspec//lib/rubocop/cop/rspec/return_from_stub.rb#40 +# source://rubocop-rspec/lib/rubocop/cop/rspec/return_from_stub.rb#40 RuboCop::Cop::RSpec::ReturnFromStub::MSG_AND_RETURN = T.let(T.unsafe(nil), String) -# source://rubocop-rspec//lib/rubocop/cop/rspec/return_from_stub.rb#41 +# source://rubocop-rspec/lib/rubocop/cop/rspec/return_from_stub.rb#41 RuboCop::Cop::RSpec::ReturnFromStub::MSG_BLOCK = T.let(T.unsafe(nil), String) -# source://rubocop-rspec//lib/rubocop/cop/rspec/return_from_stub.rb#42 +# source://rubocop-rspec/lib/rubocop/cop/rspec/return_from_stub.rb#42 RuboCop::Cop::RSpec::ReturnFromStub::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Checks for let scattered across the example group. @@ -5761,20 +5761,20 @@ RuboCop::Cop::RSpec::ReturnFromStub::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Arr # let!(:baz) { 3 } # end # -# source://rubocop-rspec//lib/rubocop/cop/rspec/scattered_let.rb#29 +# source://rubocop-rspec/lib/rubocop/cop/rspec/scattered_let.rb#29 class RuboCop::Cop::RSpec::ScatteredLet < ::RuboCop::Cop::RSpec::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-rspec//lib/rubocop/cop/rspec/scattered_let.rb#34 + # source://rubocop-rspec/lib/rubocop/cop/rspec/scattered_let.rb#34 def on_block(node); end private - # source://rubocop-rspec//lib/rubocop/cop/rspec/scattered_let.rb#42 + # source://rubocop-rspec/lib/rubocop/cop/rspec/scattered_let.rb#42 def check_let_declarations(body); end end -# source://rubocop-rspec//lib/rubocop/cop/rspec/scattered_let.rb#32 +# source://rubocop-rspec/lib/rubocop/cop/rspec/scattered_let.rb#32 RuboCop::Cop::RSpec::ScatteredLet::MSG = T.let(T.unsafe(nil), String) # Checks for setup scattered across multiple hooks in an example group. @@ -5796,31 +5796,31 @@ RuboCop::Cop::RSpec::ScatteredLet::MSG = T.let(T.unsafe(nil), String) # end # end # -# source://rubocop-rspec//lib/rubocop/cop/rspec/scattered_setup.rb#25 +# source://rubocop-rspec/lib/rubocop/cop/rspec/scattered_setup.rb#25 class RuboCop::Cop::RSpec::ScatteredSetup < ::RuboCop::Cop::RSpec::Base include ::RuboCop::Cop::RSpec::FinalEndLocation include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-rspec//lib/rubocop/cop/rspec/scattered_setup.rb#33 + # source://rubocop-rspec/lib/rubocop/cop/rspec/scattered_setup.rb#33 def on_block(node); end private - # source://rubocop-rspec//lib/rubocop/cop/rspec/scattered_setup.rb#76 + # source://rubocop-rspec/lib/rubocop/cop/rspec/scattered_setup.rb#76 def autocorrect(corrector, first_occurrence, occurrence); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/scattered_setup.rb#61 + # source://rubocop-rspec/lib/rubocop/cop/rspec/scattered_setup.rb#61 def lines_msg(numbers); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/scattered_setup.rb#69 + # source://rubocop-rspec/lib/rubocop/cop/rspec/scattered_setup.rb#69 def message(occurrences, occurrence); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/scattered_setup.rb#48 + # source://rubocop-rspec/lib/rubocop/cop/rspec/scattered_setup.rb#48 def repeated_hooks(node); end end -# source://rubocop-rspec//lib/rubocop/cop/rspec/scattered_setup.rb#30 +# source://rubocop-rspec/lib/rubocop/cop/rspec/scattered_setup.rb#30 RuboCop::Cop::RSpec::ScatteredSetup::MSG = T.let(T.unsafe(nil), String) # Checks for proper shared_context and shared_examples usage. @@ -5869,38 +5869,38 @@ RuboCop::Cop::RSpec::ScatteredSetup::MSG = T.let(T.unsafe(nil), String) # end # end # -# source://rubocop-rspec//lib/rubocop/cop/rspec/shared_context.rb#53 +# source://rubocop-rspec/lib/rubocop/cop/rspec/shared_context.rb#53 class RuboCop::Cop::RSpec::SharedContext < ::RuboCop::Cop::RSpec::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-rspec//lib/rubocop/cop/rspec/shared_context.rb#65 + # source://rubocop-rspec/lib/rubocop/cop/rspec/shared_context.rb#65 def context?(param0); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/shared_context.rb#60 + # source://rubocop-rspec/lib/rubocop/cop/rspec/shared_context.rb#60 def examples?(param0); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/shared_context.rb#81 + # source://rubocop-rspec/lib/rubocop/cop/rspec/shared_context.rb#81 def on_block(node); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/shared_context.rb#72 + # source://rubocop-rspec/lib/rubocop/cop/rspec/shared_context.rb#72 def shared_context(param0 = T.unsafe(nil)); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/shared_context.rb#77 + # source://rubocop-rspec/lib/rubocop/cop/rspec/shared_context.rb#77 def shared_example(param0 = T.unsafe(nil)); end private - # source://rubocop-rspec//lib/rubocop/cop/rspec/shared_context.rb#97 + # source://rubocop-rspec/lib/rubocop/cop/rspec/shared_context.rb#97 def context_with_only_examples(node); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/shared_context.rb#101 + # source://rubocop-rspec/lib/rubocop/cop/rspec/shared_context.rb#101 def examples_with_only_context(node); end end -# source://rubocop-rspec//lib/rubocop/cop/rspec/shared_context.rb#57 +# source://rubocop-rspec/lib/rubocop/cop/rspec/shared_context.rb#57 RuboCop::Cop::RSpec::SharedContext::MSG_CONTEXT = T.let(T.unsafe(nil), String) -# source://rubocop-rspec//lib/rubocop/cop/rspec/shared_context.rb#56 +# source://rubocop-rspec/lib/rubocop/cop/rspec/shared_context.rb#56 RuboCop::Cop::RSpec::SharedContext::MSG_EXAMPLES = T.let(T.unsafe(nil), String) # Checks for consistent style for shared example names. @@ -5938,70 +5938,70 @@ RuboCop::Cop::RSpec::SharedContext::MSG_EXAMPLES = T.let(T.unsafe(nil), String) # shared_examples_for :foo_bar_baz # include_examples :foo_bar_baz # -# source://rubocop-rspec//lib/rubocop/cop/rspec/shared_examples.rb#42 +# source://rubocop-rspec/lib/rubocop/cop/rspec/shared_examples.rb#42 class RuboCop::Cop::RSpec::SharedExamples < ::RuboCop::Cop::RSpec::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-rspec//lib/rubocop/cop/rspec/shared_examples.rb#54 + # source://rubocop-rspec/lib/rubocop/cop/rspec/shared_examples.rb#54 def on_send(node); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/shared_examples.rb#47 + # source://rubocop-rspec/lib/rubocop/cop/rspec/shared_examples.rb#47 def shared_examples(param0 = T.unsafe(nil)); end private - # source://rubocop-rspec//lib/rubocop/cop/rspec/shared_examples.rb#75 + # source://rubocop-rspec/lib/rubocop/cop/rspec/shared_examples.rb#75 def new_checker(ast_node); end # @return [Boolean] # - # source://rubocop-rspec//lib/rubocop/cop/rspec/shared_examples.rb#67 + # source://rubocop-rspec/lib/rubocop/cop/rspec/shared_examples.rb#67 def offense?(ast_node); end end -# source://rubocop-rspec//lib/rubocop/cop/rspec/shared_examples.rb#104 +# source://rubocop-rspec/lib/rubocop/cop/rspec/shared_examples.rb#104 class RuboCop::Cop::RSpec::SharedExamples::StringChecker # @return [StringChecker] a new instance of StringChecker # - # source://rubocop-rspec//lib/rubocop/cop/rspec/shared_examples.rb#110 + # source://rubocop-rspec/lib/rubocop/cop/rspec/shared_examples.rb#110 def initialize(node); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/shared_examples.rb#114 + # source://rubocop-rspec/lib/rubocop/cop/rspec/shared_examples.rb#114 def message; end # Returns the value of attribute node. # - # source://rubocop-rspec//lib/rubocop/cop/rspec/shared_examples.rb#108 + # source://rubocop-rspec/lib/rubocop/cop/rspec/shared_examples.rb#108 def node; end - # source://rubocop-rspec//lib/rubocop/cop/rspec/shared_examples.rb#118 + # source://rubocop-rspec/lib/rubocop/cop/rspec/shared_examples.rb#118 def preferred_style; end end -# source://rubocop-rspec//lib/rubocop/cop/rspec/shared_examples.rb#105 +# source://rubocop-rspec/lib/rubocop/cop/rspec/shared_examples.rb#105 RuboCop::Cop::RSpec::SharedExamples::StringChecker::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-rspec//lib/rubocop/cop/rspec/shared_examples.rb#84 +# source://rubocop-rspec/lib/rubocop/cop/rspec/shared_examples.rb#84 class RuboCop::Cop::RSpec::SharedExamples::SymbolChecker # @return [SymbolChecker] a new instance of SymbolChecker # - # source://rubocop-rspec//lib/rubocop/cop/rspec/shared_examples.rb#90 + # source://rubocop-rspec/lib/rubocop/cop/rspec/shared_examples.rb#90 def initialize(node); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/shared_examples.rb#94 + # source://rubocop-rspec/lib/rubocop/cop/rspec/shared_examples.rb#94 def message; end # Returns the value of attribute node. # - # source://rubocop-rspec//lib/rubocop/cop/rspec/shared_examples.rb#88 + # source://rubocop-rspec/lib/rubocop/cop/rspec/shared_examples.rb#88 def node; end - # source://rubocop-rspec//lib/rubocop/cop/rspec/shared_examples.rb#98 + # source://rubocop-rspec/lib/rubocop/cop/rspec/shared_examples.rb#98 def preferred_style; end end -# source://rubocop-rspec//lib/rubocop/cop/rspec/shared_examples.rb#85 +# source://rubocop-rspec/lib/rubocop/cop/rspec/shared_examples.rb#85 RuboCop::Cop::RSpec::SharedExamples::SymbolChecker::MSG = T.let(T.unsafe(nil), String) # Checks that chains of messages contain more than one element. @@ -6017,51 +6017,51 @@ RuboCop::Cop::RSpec::SharedExamples::SymbolChecker::MSG = T.let(T.unsafe(nil), S # allow(foo).to receive(:bar, :baz) # allow(foo).to receive("bar.baz") # -# source://rubocop-rspec//lib/rubocop/cop/rspec/single_argument_message_chain.rb#19 +# source://rubocop-rspec/lib/rubocop/cop/rspec/single_argument_message_chain.rb#19 class RuboCop::Cop::RSpec::SingleArgumentMessageChain < ::RuboCop::Cop::RSpec::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-rspec//lib/rubocop/cop/rspec/single_argument_message_chain.rb#27 + # source://rubocop-rspec/lib/rubocop/cop/rspec/single_argument_message_chain.rb#27 def message_chain(param0 = T.unsafe(nil)); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/single_argument_message_chain.rb#34 + # source://rubocop-rspec/lib/rubocop/cop/rspec/single_argument_message_chain.rb#34 def on_send(node); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/single_argument_message_chain.rb#32 + # source://rubocop-rspec/lib/rubocop/cop/rspec/single_argument_message_chain.rb#32 def single_key_hash?(param0 = T.unsafe(nil)); end private - # source://rubocop-rspec//lib/rubocop/cop/rspec/single_argument_message_chain.rb#49 + # source://rubocop-rspec/lib/rubocop/cop/rspec/single_argument_message_chain.rb#49 def autocorrect(corrector, node, method, arg); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/single_argument_message_chain.rb#77 + # source://rubocop-rspec/lib/rubocop/cop/rspec/single_argument_message_chain.rb#76 def autocorrect_array_arg(corrector, arg); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/single_argument_message_chain.rb#69 + # source://rubocop-rspec/lib/rubocop/cop/rspec/single_argument_message_chain.rb#69 def autocorrect_hash_arg(corrector, arg); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/single_argument_message_chain.rb#83 + # source://rubocop-rspec/lib/rubocop/cop/rspec/single_argument_message_chain.rb#82 def key_to_arg(node); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/single_argument_message_chain.rb#87 + # source://rubocop-rspec/lib/rubocop/cop/rspec/single_argument_message_chain.rb#86 def replacement(method); end # @return [Boolean] # - # source://rubocop-rspec//lib/rubocop/cop/rspec/single_argument_message_chain.rb#65 + # source://rubocop-rspec/lib/rubocop/cop/rspec/single_argument_message_chain.rb#65 def single_element_array?(node); end # @return [Boolean] # - # source://rubocop-rspec//lib/rubocop/cop/rspec/single_argument_message_chain.rb#55 + # source://rubocop-rspec/lib/rubocop/cop/rspec/single_argument_message_chain.rb#55 def valid_usage?(node); end end -# source://rubocop-rspec//lib/rubocop/cop/rspec/single_argument_message_chain.rb#22 +# source://rubocop-rspec/lib/rubocop/cop/rspec/single_argument_message_chain.rb#22 RuboCop::Cop::RSpec::SingleArgumentMessageChain::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-rspec//lib/rubocop/cop/rspec/single_argument_message_chain.rb#24 +# source://rubocop-rspec/lib/rubocop/cop/rspec/single_argument_message_chain.rb#24 RuboCop::Cop::RSpec::SingleArgumentMessageChain::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Checks for passing a block to `skip` within examples. @@ -6084,28 +6084,28 @@ RuboCop::Cop::RSpec::SingleArgumentMessageChain::RESTRICT_ON_SEND = T.let(T.unsa # skip 'not yet implemented' do # end # -# source://rubocop-rspec//lib/rubocop/cop/rspec/skip_block_inside_example.rb#26 +# source://rubocop-rspec/lib/rubocop/cop/rspec/skip_block_inside_example.rb#26 class RuboCop::Cop::RSpec::SkipBlockInsideExample < ::RuboCop::Cop::RSpec::Base - # source://rubocop-rspec//lib/rubocop/cop/rspec/skip_block_inside_example.rb#29 + # source://rubocop-rspec/lib/rubocop/cop/rspec/skip_block_inside_example.rb#29 def on_block(node); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/skip_block_inside_example.rb#29 + # source://rubocop-rspec/lib/rubocop/cop/rspec/skip_block_inside_example.rb#29 def on_numblock(node); end private # @return [Boolean] # - # source://rubocop-rspec//lib/rubocop/cop/rspec/skip_block_inside_example.rb#40 + # source://rubocop-rspec/lib/rubocop/cop/rspec/skip_block_inside_example.rb#40 def inside_example?(node); end end -# source://rubocop-rspec//lib/rubocop/cop/rspec/skip_block_inside_example.rb#27 +# source://rubocop-rspec/lib/rubocop/cop/rspec/skip_block_inside_example.rb#27 RuboCop::Cop::RSpec::SkipBlockInsideExample::MSG = T.let(T.unsafe(nil), String) # Helps check offenses with variable definitions # -# source://rubocop-rspec//lib/rubocop/cop/rspec/mixin/skip_or_pending.rb#7 +# source://rubocop-rspec/lib/rubocop/cop/rspec/mixin/skip_or_pending.rb#7 module RuboCop::Cop::RSpec::SkipOrPending extend ::RuboCop::AST::NodePattern::Macros @@ -6122,10 +6122,10 @@ module RuboCop::Cop::RSpec::SkipOrPending # @param node [RuboCop::AST::Node] # @return [Array] matching nodes # - # source://rubocop-rspec//lib/rubocop/cop/rspec/mixin/skip_or_pending.rb#33 + # source://rubocop-rspec/lib/rubocop/cop/rspec/mixin/skip_or_pending.rb#33 def skip_or_pending_inside_block?(param0 = T.unsafe(nil)); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/mixin/skip_or_pending.rb#11 + # source://rubocop-rspec/lib/rubocop/cop/rspec/mixin/skip_or_pending.rb#11 def skipped_in_metadata?(param0 = T.unsafe(nil)); end end @@ -6142,36 +6142,36 @@ end # context 'Something', baz: true, foo: 'bar' # it 'works', :a, :b, baz: true, foo: 'bar' # -# source://rubocop-rspec//lib/rubocop/cop/rspec/sort_metadata.rb#19 +# source://rubocop-rspec/lib/rubocop/cop/rspec/sort_metadata.rb#19 class RuboCop::Cop::RSpec::SortMetadata < ::RuboCop::Cop::RSpec::Base include ::RuboCop::Cop::RSpec::Metadata include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-rspec//lib/rubocop/cop/rspec/sort_metadata.rb#26 + # source://rubocop-rspec/lib/rubocop/cop/rspec/sort_metadata.rb#26 def on_metadata(symbols, hash); end private - # source://rubocop-rspec//lib/rubocop/cop/rspec/sort_metadata.rb#38 + # source://rubocop-rspec/lib/rubocop/cop/rspec/sort_metadata.rb#38 def crime_scene(symbols, pairs); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/sort_metadata.rb#47 + # source://rubocop-rspec/lib/rubocop/cop/rspec/sort_metadata.rb#47 def replacement(symbols, pairs); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/sort_metadata.rb#55 + # source://rubocop-rspec/lib/rubocop/cop/rspec/sort_metadata.rb#55 def sort_pairs(pairs); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/sort_metadata.rb#59 + # source://rubocop-rspec/lib/rubocop/cop/rspec/sort_metadata.rb#59 def sort_symbols(symbols); end # @return [Boolean] # - # source://rubocop-rspec//lib/rubocop/cop/rspec/sort_metadata.rb#51 + # source://rubocop-rspec/lib/rubocop/cop/rspec/sort_metadata.rb#51 def sorted?(symbols, pairs); end end -# source://rubocop-rspec//lib/rubocop/cop/rspec/sort_metadata.rb#24 +# source://rubocop-rspec/lib/rubocop/cop/rspec/sort_metadata.rb#24 RuboCop::Cop::RSpec::SortMetadata::MSG = T.let(T.unsafe(nil), String) # Checks that spec file paths are consistent and well-formed. @@ -6199,66 +6199,66 @@ RuboCop::Cop::RSpec::SortMetadata::MSG = T.let(T.unsafe(nil), String) # # good # whatever_spec.rb # describe MyClass, type: :routing do; end # -# source://rubocop-rspec//lib/rubocop/cop/rspec/spec_file_path_format.rb#35 +# source://rubocop-rspec/lib/rubocop/cop/rspec/spec_file_path_format.rb#35 class RuboCop::Cop::RSpec::SpecFilePathFormat < ::RuboCop::Cop::RSpec::Base include ::RuboCop::Cop::RSpec::TopLevelGroup include ::RuboCop::Cop::RSpec::Namespace include ::RuboCop::Cop::RSpec::FileHelp - # source://rubocop-rspec//lib/rubocop/cop/rspec/spec_file_path_format.rb#43 + # source://rubocop-rspec/lib/rubocop/cop/rspec/spec_file_path_format.rb#43 def example_group_arguments(param0 = T.unsafe(nil)); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/spec_file_path_format.rb#48 + # source://rubocop-rspec/lib/rubocop/cop/rspec/spec_file_path_format.rb#48 def metadata_key_value(param0); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/spec_file_path_format.rb#50 + # source://rubocop-rspec/lib/rubocop/cop/rspec/spec_file_path_format.rb#50 def on_top_level_example_group(node); end private - # source://rubocop-rspec//lib/rubocop/cop/rspec/spec_file_path_format.rb#108 + # source://rubocop-rspec/lib/rubocop/cop/rspec/spec_file_path_format.rb#108 def camel_to_snake_case(string); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/spec_file_path_format.rb#81 + # source://rubocop-rspec/lib/rubocop/cop/rspec/spec_file_path_format.rb#81 def correct_path_pattern(class_name, arguments); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/spec_file_path_format.rb#115 + # source://rubocop-rspec/lib/rubocop/cop/rspec/spec_file_path_format.rb#115 def custom_transform; end - # source://rubocop-rspec//lib/rubocop/cop/rspec/spec_file_path_format.rb#62 + # source://rubocop-rspec/lib/rubocop/cop/rspec/spec_file_path_format.rb#62 def ensure_correct_file_path(send_node, class_name, arguments); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/spec_file_path_format.rb#98 + # source://rubocop-rspec/lib/rubocop/cop/rspec/spec_file_path_format.rb#98 def expected_path(constant); end # @return [Boolean] # - # source://rubocop-rspec//lib/rubocop/cop/rspec/spec_file_path_format.rb#127 + # source://rubocop-rspec/lib/rubocop/cop/rspec/spec_file_path_format.rb#127 def filename_ends_with?(pattern); end # @return [Boolean] # - # source://rubocop-rspec//lib/rubocop/cop/rspec/spec_file_path_format.rb#94 + # source://rubocop-rspec/lib/rubocop/cop/rspec/spec_file_path_format.rb#94 def ignore?(method_name); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/spec_file_path_format.rb#123 + # source://rubocop-rspec/lib/rubocop/cop/rspec/spec_file_path_format.rb#123 def ignore_metadata; end # @return [Boolean] # - # source://rubocop-rspec//lib/rubocop/cop/rspec/spec_file_path_format.rb#73 + # source://rubocop-rspec/lib/rubocop/cop/rspec/spec_file_path_format.rb#73 def ignore_metadata?(arguments); end # @return [Boolean] # - # source://rubocop-rspec//lib/rubocop/cop/rspec/spec_file_path_format.rb#119 + # source://rubocop-rspec/lib/rubocop/cop/rspec/spec_file_path_format.rb#119 def ignore_methods?; end - # source://rubocop-rspec//lib/rubocop/cop/rspec/spec_file_path_format.rb#88 + # source://rubocop-rspec/lib/rubocop/cop/rspec/spec_file_path_format.rb#88 def name_pattern(method_name); end end -# source://rubocop-rspec//lib/rubocop/cop/rspec/spec_file_path_format.rb#40 +# source://rubocop-rspec/lib/rubocop/cop/rspec/spec_file_path_format.rb#40 RuboCop::Cop::RSpec::SpecFilePathFormat::MSG = T.let(T.unsafe(nil), String) # Checks that spec file paths suffix are consistent and well-formed. @@ -6275,23 +6275,23 @@ RuboCop::Cop::RSpec::SpecFilePathFormat::MSG = T.let(T.unsafe(nil), String) # # good - shared examples are allowed # spec/models/user.rb # shared_examples_for 'foo' # -# source://rubocop-rspec//lib/rubocop/cop/rspec/spec_file_path_suffix.rb#20 +# source://rubocop-rspec/lib/rubocop/cop/rspec/spec_file_path_suffix.rb#20 class RuboCop::Cop::RSpec::SpecFilePathSuffix < ::RuboCop::Cop::RSpec::Base include ::RuboCop::Cop::RSpec::TopLevelGroup include ::RuboCop::Cop::RSpec::FileHelp - # source://rubocop-rspec//lib/rubocop/cop/rspec/spec_file_path_suffix.rb#26 + # source://rubocop-rspec/lib/rubocop/cop/rspec/spec_file_path_suffix.rb#26 def on_top_level_example_group(node); end private # @return [Boolean] # - # source://rubocop-rspec//lib/rubocop/cop/rspec/spec_file_path_suffix.rb#34 + # source://rubocop-rspec/lib/rubocop/cop/rspec/spec_file_path_suffix.rb#34 def correct_path?; end end -# source://rubocop-rspec//lib/rubocop/cop/rspec/spec_file_path_suffix.rb#24 +# source://rubocop-rspec/lib/rubocop/cop/rspec/spec_file_path_suffix.rb#24 RuboCop::Cop::RSpec::SpecFilePathSuffix::MSG = T.let(T.unsafe(nil), String) # Do not use a string as `instance_double` constant. @@ -6303,24 +6303,24 @@ RuboCop::Cop::RSpec::SpecFilePathSuffix::MSG = T.let(T.unsafe(nil), String) # # good # instance_double(User, name: 'John') # -# source://rubocop-rspec//lib/rubocop/cop/rspec/string_as_instance_double_constant.rb#20 +# source://rubocop-rspec/lib/rubocop/cop/rspec/string_as_instance_double_constant.rb#20 class RuboCop::Cop::RSpec::StringAsInstanceDoubleConstant < ::RuboCop::Cop::RSpec::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-rspec//lib/rubocop/cop/rspec/string_as_instance_double_constant.rb#39 + # source://rubocop-rspec/lib/rubocop/cop/rspec/string_as_instance_double_constant.rb#39 def autocorrect(corrector, node); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/string_as_instance_double_constant.rb#31 + # source://rubocop-rspec/lib/rubocop/cop/rspec/string_as_instance_double_constant.rb#31 def on_send(node); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/string_as_instance_double_constant.rb#27 + # source://rubocop-rspec/lib/rubocop/cop/rspec/string_as_instance_double_constant.rb#27 def stringified_instance_double_const?(param0 = T.unsafe(nil)); end end -# source://rubocop-rspec//lib/rubocop/cop/rspec/string_as_instance_double_constant.rb#23 +# source://rubocop-rspec/lib/rubocop/cop/rspec/string_as_instance_double_constant.rb#23 RuboCop::Cop::RSpec::StringAsInstanceDoubleConstant::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-rspec//lib/rubocop/cop/rspec/string_as_instance_double_constant.rb#24 +# source://rubocop-rspec/lib/rubocop/cop/rspec/string_as_instance_double_constant.rb#24 RuboCop::Cop::RSpec::StringAsInstanceDoubleConstant::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Checks that message expectations do not have a configured response. @@ -6333,9 +6333,9 @@ RuboCop::Cop::RSpec::StringAsInstanceDoubleConstant::RESTRICT_ON_SEND = T.let(T. # allow(foo).to receive(:bar).with(42).and_return("hello world") # expect(foo).to receive(:bar).with(42) # -# source://rubocop-rspec//lib/rubocop/cop/rspec/stubbed_mock.rb#16 +# source://rubocop-rspec/lib/rubocop/cop/rspec/stubbed_mock.rb#16 class RuboCop::Cop::RSpec::StubbedMock < ::RuboCop::Cop::RSpec::Base - # source://rubocop-rspec//lib/rubocop/cop/rspec/stubbed_mock.rb#42 + # source://rubocop-rspec/lib/rubocop/cop/rspec/stubbed_mock.rb#43 def configured_response?(param0 = T.unsafe(nil)); end # Match expectation @@ -6349,7 +6349,7 @@ class RuboCop::Cop::RSpec::StubbedMock < ::RuboCop::Cop::RSpec::Base # @param node [RuboCop::AST::Node] # @yield [RuboCop::AST::Node] expectation, method name, matcher # - # source://rubocop-rspec//lib/rubocop/cop/rspec/stubbed_mock.rb#61 + # source://rubocop-rspec/lib/rubocop/cop/rspec/stubbed_mock.rb#62 def expectation(param0 = T.unsafe(nil)); end # Match matcher with a configured response in block-pass @@ -6363,7 +6363,7 @@ class RuboCop::Cop::RSpec::StubbedMock < ::RuboCop::Cop::RSpec::Base # @param node [RuboCop::AST::Node] # @yield [RuboCop::AST::Node] matcher # - # source://rubocop-rspec//lib/rubocop/cop/rspec/stubbed_mock.rb#129 + # source://rubocop-rspec/lib/rubocop/cop/rspec/stubbed_mock.rb#130 def matcher_with_blockpass(param0 = T.unsafe(nil)); end # Match matcher with a configured response @@ -6377,7 +6377,7 @@ class RuboCop::Cop::RSpec::StubbedMock < ::RuboCop::Cop::RSpec::Base # @param node [RuboCop::AST::Node] # @yield [RuboCop::AST::Node] matcher # - # source://rubocop-rspec//lib/rubocop/cop/rspec/stubbed_mock.rb#81 + # source://rubocop-rspec/lib/rubocop/cop/rspec/stubbed_mock.rb#82 def matcher_with_configured_response(param0 = T.unsafe(nil)); end # Match matcher with a configured response defined as a hash @@ -6389,7 +6389,7 @@ class RuboCop::Cop::RSpec::StubbedMock < ::RuboCop::Cop::RSpec::Base # @param node [RuboCop::AST::Node] # @yield [RuboCop::AST::Node] matcher # - # source://rubocop-rspec//lib/rubocop/cop/rspec/stubbed_mock.rb#108 + # source://rubocop-rspec/lib/rubocop/cop/rspec/stubbed_mock.rb#109 def matcher_with_hash(param0 = T.unsafe(nil)); end # Match matcher with a return block @@ -6399,7 +6399,7 @@ class RuboCop::Cop::RSpec::StubbedMock < ::RuboCop::Cop::RSpec::Base # @param node [RuboCop::AST::Node] # @yield [RuboCop::AST::Node] matcher # - # source://rubocop-rspec//lib/rubocop/cop/rspec/stubbed_mock.rb#93 + # source://rubocop-rspec/lib/rubocop/cop/rspec/stubbed_mock.rb#94 def matcher_with_return_block(param0 = T.unsafe(nil)); end # Match message expectation matcher @@ -6413,28 +6413,28 @@ class RuboCop::Cop::RSpec::StubbedMock < ::RuboCop::Cop::RSpec::Base # @param node [RuboCop::AST::Node] # @return [Array] matching nodes # - # source://rubocop-rspec//lib/rubocop/cop/rspec/stubbed_mock.rb#34 + # source://rubocop-rspec/lib/rubocop/cop/rspec/stubbed_mock.rb#35 def message_expectation?(param0 = T.unsafe(nil)); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/stubbed_mock.rb#138 + # source://rubocop-rspec/lib/rubocop/cop/rspec/stubbed_mock.rb#137 def on_send(node); end private - # source://rubocop-rspec//lib/rubocop/cop/rspec/stubbed_mock.rb#157 + # source://rubocop-rspec/lib/rubocop/cop/rspec/stubbed_mock.rb#156 def msg(method_name); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/stubbed_mock.rb#146 + # source://rubocop-rspec/lib/rubocop/cop/rspec/stubbed_mock.rb#145 def on_expectation(expectation, method_name, matcher); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/stubbed_mock.rb#163 + # source://rubocop-rspec/lib/rubocop/cop/rspec/stubbed_mock.rb#164 def replacement(method_name); end end -# source://rubocop-rspec//lib/rubocop/cop/rspec/stubbed_mock.rb#17 +# source://rubocop-rspec/lib/rubocop/cop/rspec/stubbed_mock.rb#17 RuboCop::Cop::RSpec::StubbedMock::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-rspec//lib/rubocop/cop/rspec/stubbed_mock.rb#136 +# source://rubocop-rspec/lib/rubocop/cop/rspec/stubbed_mock.rb#19 RuboCop::Cop::RSpec::StubbedMock::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Ensure that subject is defined using subject helper. @@ -6453,24 +6453,24 @@ RuboCop::Cop::RSpec::StubbedMock::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # # good # subject(:test_subject) { foo } # -# source://rubocop-rspec//lib/rubocop/cop/rspec/subject_declaration.rb#22 +# source://rubocop-rspec/lib/rubocop/cop/rspec/subject_declaration.rb#22 class RuboCop::Cop::RSpec::SubjectDeclaration < ::RuboCop::Cop::RSpec::Base - # source://rubocop-rspec//lib/rubocop/cop/rspec/subject_declaration.rb#27 + # source://rubocop-rspec/lib/rubocop/cop/rspec/subject_declaration.rb#27 def offensive_subject_declaration?(param0 = T.unsafe(nil)); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/subject_declaration.rb#31 + # source://rubocop-rspec/lib/rubocop/cop/rspec/subject_declaration.rb#31 def on_send(node); end private - # source://rubocop-rspec//lib/rubocop/cop/rspec/subject_declaration.rb#40 + # source://rubocop-rspec/lib/rubocop/cop/rspec/subject_declaration.rb#40 def message_for(offense); end end -# source://rubocop-rspec//lib/rubocop/cop/rspec/subject_declaration.rb#23 +# source://rubocop-rspec/lib/rubocop/cop/rspec/subject_declaration.rb#23 RuboCop::Cop::RSpec::SubjectDeclaration::MSG_LET = T.let(T.unsafe(nil), String) -# source://rubocop-rspec//lib/rubocop/cop/rspec/subject_declaration.rb#24 +# source://rubocop-rspec/lib/rubocop/cop/rspec/subject_declaration.rb#24 RuboCop::Cop::RSpec::SubjectDeclaration::MSG_REDUNDANT = T.let(T.unsafe(nil), String) # Checks for stubbed test subjects. @@ -6514,13 +6514,13 @@ RuboCop::Cop::RSpec::SubjectDeclaration::MSG_REDUNDANT = T.let(T.unsafe(nil), St # @see https://robots.thoughtbot.com/don-t-stub-the-system-under-test # @see https://penelope.zone/2015/12/27/introducing-rspec-smells-and-where-to-find-them.html#smell-1-stubjec # -# source://rubocop-rspec//lib/rubocop/cop/rspec/subject_stub.rb#50 +# source://rubocop-rspec/lib/rubocop/cop/rspec/subject_stub.rb#50 class RuboCop::Cop::RSpec::SubjectStub < ::RuboCop::Cop::RSpec::Base include ::RuboCop::Cop::RSpec::TopLevelGroup # Find a memoized helper # - # source://rubocop-rspec//lib/rubocop/cop/rspec/subject_stub.rb#80 + # source://rubocop-rspec/lib/rubocop/cop/rspec/subject_stub.rb#80 def let?(param0 = T.unsafe(nil)); end # Match `allow` and `expect(...).to receive` @@ -6533,13 +6533,13 @@ class RuboCop::Cop::RSpec::SubjectStub < ::RuboCop::Cop::RSpec::Base # expect(foo).to receive(:bar).with(1) # expect(foo).to receive(:bar).with(1).and_return(2) # - # source://rubocop-rspec//lib/rubocop/cop/rspec/subject_stub.rb#97 + # source://rubocop-rspec/lib/rubocop/cop/rspec/subject_stub.rb#97 def message_expectation?(param0 = T.unsafe(nil), param1); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/subject_stub.rb#109 + # source://rubocop-rspec/lib/rubocop/cop/rspec/subject_stub.rb#109 def message_expectation_matcher?(param0); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/subject_stub.rb#115 + # source://rubocop-rspec/lib/rubocop/cop/rspec/subject_stub.rb#115 def on_top_level_group(node); end # Find a named or unnamed subject definition @@ -6555,55 +6555,60 @@ class RuboCop::Cop::RSpec::SubjectStub < ::RuboCop::Cop::RSpec::Base # @param node [RuboCop::AST::Node] # @yield [Symbol] subject name # - # source://rubocop-rspec//lib/rubocop/cop/rspec/subject_stub.rb#71 + # source://rubocop-rspec/lib/rubocop/cop/rspec/subject_stub.rb#71 def subject?(param0 = T.unsafe(nil)); end private - # source://rubocop-rspec//lib/rubocop/cop/rspec/subject_stub.rb#126 + # source://rubocop-rspec/lib/rubocop/cop/rspec/subject_stub.rb#126 def find_all_explicit(node); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/subject_stub.rb#140 + # source://rubocop-rspec/lib/rubocop/cop/rspec/subject_stub.rb#140 def find_subject_expectations(node, subject_names = T.unsafe(nil), &block); end end -# source://rubocop-rspec//lib/rubocop/cop/rspec/subject_stub.rb#53 +# source://rubocop-rspec/lib/rubocop/cop/rspec/subject_stub.rb#53 RuboCop::Cop::RSpec::SubjectStub::MSG = T.let(T.unsafe(nil), String) # Helper methods for top level example group cops # -# source://rubocop-rspec//lib/rubocop/cop/rspec/mixin/top_level_group.rb#7 +# source://rubocop-rspec/lib/rubocop/cop/rspec/mixin/top_level_group.rb#7 module RuboCop::Cop::RSpec::TopLevelGroup extend ::RuboCop::AST::NodePattern::Macros - # source://rubocop-rspec//lib/rubocop/cop/rspec/mixin/top_level_group.rb#10 + # source://rubocop-rspec/lib/rubocop/cop/rspec/mixin/top_level_group.rb#14 def on_new_investigation; end - # source://rubocop-rspec//lib/rubocop/cop/rspec/mixin/top_level_group.rb#19 + # source://rubocop-rspec/lib/rubocop/cop/rspec/mixin/top_level_group.rb#23 def top_level_groups; end private # Dummy methods to be overridden in the consumer # - # source://rubocop-rspec//lib/rubocop/cop/rspec/mixin/top_level_group.rb#27 + # source://rubocop-rspec/lib/rubocop/cop/rspec/mixin/top_level_group.rb#31 def on_top_level_example_group(_node); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/mixin/top_level_group.rb#29 + # source://rubocop-rspec/lib/rubocop/cop/rspec/mixin/top_level_group.rb#33 def on_top_level_group(_node); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/mixin/top_level_group.rb#48 + # source://rubocop-rspec/lib/rubocop/cop/rspec/mixin/top_level_group.rb#55 def root_node; end + # @deprecated All callers of this method have been removed. + # @private # @return [Boolean] # - # source://rubocop-rspec//lib/rubocop/cop/rspec/mixin/top_level_group.rb#31 + # source://rubocop-rspec/lib/rubocop/cop/rspec/mixin/top_level_group.rb#37 def top_level_group?(node); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/mixin/top_level_group.rb#35 + # source://rubocop-rspec/lib/rubocop/cop/rspec/mixin/top_level_group.rb#42 def top_level_nodes(node); end end +# source://rubocop-rspec/lib/rubocop/cop/rspec/mixin/top_level_group.rb#10 +RuboCop::Cop::RSpec::TopLevelGroup::DEPRECATED_MODULE_METHOD_WARNING = T.let(T.unsafe(nil), String) + # Description should be descriptive. # # If example group or example contains only `execute string`, numbers @@ -6645,23 +6650,23 @@ end # # ... # end # -# source://rubocop-rspec//lib/rubocop/cop/rspec/undescriptive_literals_description.rb#47 +# source://rubocop-rspec/lib/rubocop/cop/rspec/undescriptive_literals_description.rb#47 class RuboCop::Cop::RSpec::UndescriptiveLiteralsDescription < ::RuboCop::Cop::RSpec::Base - # source://rubocop-rspec//lib/rubocop/cop/rspec/undescriptive_literals_description.rb#51 + # source://rubocop-rspec/lib/rubocop/cop/rspec/undescriptive_literals_description.rb#51 def example_groups_or_example?(param0 = T.unsafe(nil)); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/undescriptive_literals_description.rb#55 + # source://rubocop-rspec/lib/rubocop/cop/rspec/undescriptive_literals_description.rb#55 def on_block(node); end private # @return [Boolean] # - # source://rubocop-rspec//lib/rubocop/cop/rspec/undescriptive_literals_description.rb#63 + # source://rubocop-rspec/lib/rubocop/cop/rspec/undescriptive_literals_description.rb#63 def offense?(node); end end -# source://rubocop-rspec//lib/rubocop/cop/rspec/undescriptive_literals_description.rb#48 +# source://rubocop-rspec/lib/rubocop/cop/rspec/undescriptive_literals_description.rb#48 RuboCop::Cop::RSpec::UndescriptiveLiteralsDescription::MSG = T.let(T.unsafe(nil), String) # Checks for a specified error in checking raised errors. @@ -6691,45 +6696,45 @@ RuboCop::Cop::RSpec::UndescriptiveLiteralsDescription::MSG = T.let(T.unsafe(nil) # # expect { do_something }.not_to raise_error # -# source://rubocop-rspec//lib/rubocop/cop/rspec/unspecified_exception.rb#33 +# source://rubocop-rspec/lib/rubocop/cop/rspec/unspecified_exception.rb#33 class RuboCop::Cop::RSpec::UnspecifiedException < ::RuboCop::Cop::RSpec::Base - # source://rubocop-rspec//lib/rubocop/cop/rspec/unspecified_exception.rb#42 + # source://rubocop-rspec/lib/rubocop/cop/rspec/unspecified_exception.rb#42 def expect_to?(param0 = T.unsafe(nil)); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/unspecified_exception.rb#46 + # source://rubocop-rspec/lib/rubocop/cop/rspec/unspecified_exception.rb#46 def on_send(node); end private # @return [Boolean] # - # source://rubocop-rspec//lib/rubocop/cop/rspec/unspecified_exception.rb#54 + # source://rubocop-rspec/lib/rubocop/cop/rspec/unspecified_exception.rb#54 def empty_exception_matcher?(node); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/unspecified_exception.rb#64 + # source://rubocop-rspec/lib/rubocop/cop/rspec/unspecified_exception.rb#64 def find_expect_to(node); end end -# source://rubocop-rspec//lib/rubocop/cop/rspec/unspecified_exception.rb#34 +# source://rubocop-rspec/lib/rubocop/cop/rspec/unspecified_exception.rb#34 RuboCop::Cop::RSpec::UnspecifiedException::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-rspec//lib/rubocop/cop/rspec/unspecified_exception.rb#36 +# source://rubocop-rspec/lib/rubocop/cop/rspec/unspecified_exception.rb#36 RuboCop::Cop::RSpec::UnspecifiedException::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Helps check offenses with variable definitions # -# source://rubocop-rspec//lib/rubocop/cop/rspec/mixin/variable.rb#7 +# source://rubocop-rspec/lib/rubocop/cop/rspec/mixin/variable.rb#7 module RuboCop::Cop::RSpec::Variable extend ::RuboCop::AST::NodePattern::Macros - # source://rubocop-rspec//lib/rubocop/cop/rspec/mixin/variable.rb#14 + # source://rubocop-rspec/lib/rubocop/cop/rspec/mixin/variable.rb#14 def variable_definition?(param0 = T.unsafe(nil)); end end -# source://rubocop-rspec//lib/rubocop/cop/rspec/mixin/variable.rb#11 +# source://rubocop-rspec/lib/rubocop/cop/rspec/mixin/variable.rb#11 RuboCop::Cop::RSpec::Variable::Helpers = RuboCop::RSpec::Language::Helpers -# source://rubocop-rspec//lib/rubocop/cop/rspec/mixin/variable.rb#10 +# source://rubocop-rspec/lib/rubocop/cop/rspec/mixin/variable.rb#10 RuboCop::Cop::RSpec::Variable::Subjects = RuboCop::RSpec::Language::Subjects # Checks that memoized helpers names are symbols or strings. @@ -6751,38 +6756,38 @@ RuboCop::Cop::RSpec::Variable::Subjects = RuboCop::RSpec::Language::Subjects # subject('user') { create_user } # let('user_name') { 'Adam' } # -# source://rubocop-rspec//lib/rubocop/cop/rspec/variable_definition.rb#26 +# source://rubocop-rspec/lib/rubocop/cop/rspec/variable_definition.rb#26 class RuboCop::Cop::RSpec::VariableDefinition < ::RuboCop::Cop::RSpec::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle include ::RuboCop::Cop::RSpec::Variable include ::RuboCop::Cop::RSpec::InsideExampleGroup extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-rspec//lib/rubocop/cop/rspec/variable_definition.rb#34 + # source://rubocop-rspec/lib/rubocop/cop/rspec/variable_definition.rb#34 def on_send(node); end private - # source://rubocop-rspec//lib/rubocop/cop/rspec/variable_definition.rb#51 + # source://rubocop-rspec/lib/rubocop/cop/rspec/variable_definition.rb#51 def correct_variable(variable); end # @return [Boolean] # - # source://rubocop-rspec//lib/rubocop/cop/rspec/variable_definition.rb#67 + # source://rubocop-rspec/lib/rubocop/cop/rspec/variable_definition.rb#67 def string?(node); end # @return [Boolean] # - # source://rubocop-rspec//lib/rubocop/cop/rspec/variable_definition.rb#62 + # source://rubocop-rspec/lib/rubocop/cop/rspec/variable_definition.rb#62 def style_offense?(variable); end # @return [Boolean] # - # source://rubocop-rspec//lib/rubocop/cop/rspec/variable_definition.rb#71 + # source://rubocop-rspec/lib/rubocop/cop/rspec/variable_definition.rb#71 def symbol?(node); end end -# source://rubocop-rspec//lib/rubocop/cop/rspec/variable_definition.rb#32 +# source://rubocop-rspec/lib/rubocop/cop/rspec/variable_definition.rb#32 RuboCop::Cop::RSpec::VariableDefinition::MSG = T.let(T.unsafe(nil), String) # Checks that memoized helper names use the configured style. @@ -6817,7 +6822,7 @@ RuboCop::Cop::RSpec::VariableDefinition::MSG = T.let(T.unsafe(nil), String) # subject(:userFood_1) { 'spaghetti' } # let(:userFood_2) { 'fettuccine' } # -# source://rubocop-rspec//lib/rubocop/cop/rspec/variable_name.rb#41 +# source://rubocop-rspec/lib/rubocop/cop/rspec/variable_name.rb#41 class RuboCop::Cop::RSpec::VariableName < ::RuboCop::Cop::RSpec::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle include ::RuboCop::Cop::ConfigurableFormatting @@ -6826,16 +6831,16 @@ class RuboCop::Cop::RSpec::VariableName < ::RuboCop::Cop::RSpec::Base include ::RuboCop::Cop::RSpec::Variable include ::RuboCop::Cop::RSpec::InsideExampleGroup - # source://rubocop-rspec//lib/rubocop/cop/rspec/variable_name.rb#49 + # source://rubocop-rspec/lib/rubocop/cop/rspec/variable_name.rb#49 def on_send(node); end private - # source://rubocop-rspec//lib/rubocop/cop/rspec/variable_name.rb#62 + # source://rubocop-rspec/lib/rubocop/cop/rspec/variable_name.rb#62 def message(style); end end -# source://rubocop-rspec//lib/rubocop/cop/rspec/variable_name.rb#47 +# source://rubocop-rspec/lib/rubocop/cop/rspec/variable_name.rb#47 RuboCop::Cop::RSpec::VariableName::MSG = T.let(T.unsafe(nil), String) # Checks for consistent verified double reference style. @@ -6873,35 +6878,35 @@ RuboCop::Cop::RSpec::VariableName::MSG = T.let(T.unsafe(nil), String) # end # @see https://rspec.info/features/3-12/rspec-mocks/verifying-doubles # -# source://rubocop-rspec//lib/rubocop/cop/rspec/verified_double_reference.rb#43 +# source://rubocop-rspec/lib/rubocop/cop/rspec/verified_double_reference.rb#43 class RuboCop::Cop::RSpec::VerifiedDoubleReference < ::RuboCop::Cop::RSpec::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-rspec//lib/rubocop/cop/rspec/verified_double_reference.rb#74 + # source://rubocop-rspec/lib/rubocop/cop/rspec/verified_double_reference.rb#74 def on_send(node); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/verified_double_reference.rb#66 + # source://rubocop-rspec/lib/rubocop/cop/rspec/verified_double_reference.rb#66 def verified_double(param0 = T.unsafe(nil)); end private - # source://rubocop-rspec//lib/rubocop/cop/rspec/verified_double_reference.rb#101 + # source://rubocop-rspec/lib/rubocop/cop/rspec/verified_double_reference.rb#101 def correct_style(offense); end # @return [Boolean] # - # source://rubocop-rspec//lib/rubocop/cop/rspec/verified_double_reference.rb#92 + # source://rubocop-rspec/lib/rubocop/cop/rspec/verified_double_reference.rb#92 def opposing_style?(class_reference); end end -# source://rubocop-rspec//lib/rubocop/cop/rspec/verified_double_reference.rb#47 +# source://rubocop-rspec/lib/rubocop/cop/rspec/verified_double_reference.rb#47 RuboCop::Cop::RSpec::VerifiedDoubleReference::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-rspec//lib/rubocop/cop/rspec/verified_double_reference.rb#60 +# source://rubocop-rspec/lib/rubocop/cop/rspec/verified_double_reference.rb#60 RuboCop::Cop::RSpec::VerifiedDoubleReference::REFERENCE_TYPE_STYLES = T.let(T.unsafe(nil), Hash) -# source://rubocop-rspec//lib/rubocop/cop/rspec/verified_double_reference.rb#49 +# source://rubocop-rspec/lib/rubocop/cop/rspec/verified_double_reference.rb#49 RuboCop::Cop::RSpec::VerifiedDoubleReference::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Set) # Prefer using verifying doubles over normal doubles. @@ -6923,26 +6928,26 @@ RuboCop::Cop::RSpec::VerifiedDoubleReference::RESTRICT_ON_SEND = T.let(T.unsafe( # end # @see https://rspec.info/features/3-12/rspec-mocks/verifying-doubles # -# source://rubocop-rspec//lib/rubocop/cop/rspec/verified_doubles.rb#26 +# source://rubocop-rspec/lib/rubocop/cop/rspec/verified_doubles.rb#26 class RuboCop::Cop::RSpec::VerifiedDoubles < ::RuboCop::Cop::RSpec::Base - # source://rubocop-rspec//lib/rubocop/cop/rspec/verified_doubles.rb#35 + # source://rubocop-rspec/lib/rubocop/cop/rspec/verified_doubles.rb#35 def on_send(node); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/verified_doubles.rb#31 + # source://rubocop-rspec/lib/rubocop/cop/rspec/verified_doubles.rb#31 def unverified_double(param0 = T.unsafe(nil)); end private # @return [Boolean] # - # source://rubocop-rspec//lib/rubocop/cop/rspec/verified_doubles.rb#46 + # source://rubocop-rspec/lib/rubocop/cop/rspec/verified_doubles.rb#46 def symbol?(name); end end -# source://rubocop-rspec//lib/rubocop/cop/rspec/verified_doubles.rb#27 +# source://rubocop-rspec/lib/rubocop/cop/rspec/verified_doubles.rb#27 RuboCop::Cop::RSpec::VerifiedDoubles::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-rspec//lib/rubocop/cop/rspec/verified_doubles.rb#28 +# source://rubocop-rspec/lib/rubocop/cop/rspec/verified_doubles.rb#28 RuboCop::Cop::RSpec::VerifiedDoubles::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Checks void `expect()`. @@ -6954,40 +6959,40 @@ RuboCop::Cop::RSpec::VerifiedDoubles::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Ar # # good # expect(something).to be(1) # -# source://rubocop-rspec//lib/rubocop/cop/rspec/void_expect.rb#15 +# source://rubocop-rspec/lib/rubocop/cop/rspec/void_expect.rb#15 class RuboCop::Cop::RSpec::VoidExpect < ::RuboCop::Cop::RSpec::Base - # source://rubocop-rspec//lib/rubocop/cop/rspec/void_expect.rb#21 + # source://rubocop-rspec/lib/rubocop/cop/rspec/void_expect.rb#21 def expect?(param0 = T.unsafe(nil)); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/void_expect.rb#26 + # source://rubocop-rspec/lib/rubocop/cop/rspec/void_expect.rb#26 def expect_block?(param0 = T.unsafe(nil)); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/void_expect.rb#37 + # source://rubocop-rspec/lib/rubocop/cop/rspec/void_expect.rb#37 def on_block(node); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/void_expect.rb#30 + # source://rubocop-rspec/lib/rubocop/cop/rspec/void_expect.rb#30 def on_send(node); end private - # source://rubocop-rspec//lib/rubocop/cop/rspec/void_expect.rb#46 + # source://rubocop-rspec/lib/rubocop/cop/rspec/void_expect.rb#46 def check_expect(node); end # @return [Boolean] # - # source://rubocop-rspec//lib/rubocop/cop/rspec/void_expect.rb#59 + # source://rubocop-rspec/lib/rubocop/cop/rspec/void_expect.rb#59 def inside_example?(node); end # @return [Boolean] # - # source://rubocop-rspec//lib/rubocop/cop/rspec/void_expect.rb#52 + # source://rubocop-rspec/lib/rubocop/cop/rspec/void_expect.rb#52 def void?(expect); end end -# source://rubocop-rspec//lib/rubocop/cop/rspec/void_expect.rb#16 +# source://rubocop-rspec/lib/rubocop/cop/rspec/void_expect.rb#16 RuboCop::Cop::RSpec::VoidExpect::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-rspec//lib/rubocop/cop/rspec/void_expect.rb#18 +# source://rubocop-rspec/lib/rubocop/cop/rspec/void_expect.rb#18 RuboCop::Cop::RSpec::VoidExpect::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Checks for calling a block within a stub. @@ -6999,54 +7004,54 @@ RuboCop::Cop::RSpec::VoidExpect::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # # good # expect(foo).to receive(:bar).and_yield(1) # -# source://rubocop-rspec//lib/rubocop/cop/rspec/yield.rb#15 +# source://rubocop-rspec/lib/rubocop/cop/rspec/yield.rb#15 class RuboCop::Cop::RSpec::Yield < ::RuboCop::Cop::RSpec::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-rspec//lib/rubocop/cop/rspec/yield.rb#25 + # source://rubocop-rspec/lib/rubocop/cop/rspec/yield.rb#25 def block_arg(param0 = T.unsafe(nil)); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/yield.rb#28 + # source://rubocop-rspec/lib/rubocop/cop/rspec/yield.rb#28 def block_call?(param0 = T.unsafe(nil), param1); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/yield.rb#22 + # source://rubocop-rspec/lib/rubocop/cop/rspec/yield.rb#22 def method_on_stub?(param0); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/yield.rb#30 + # source://rubocop-rspec/lib/rubocop/cop/rspec/yield.rb#30 def on_block(node); end private - # source://rubocop-rspec//lib/rubocop/cop/rspec/yield.rb#46 + # source://rubocop-rspec/lib/rubocop/cop/rspec/yield.rb#46 def autocorrect(corrector, node, range); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/yield.rb#61 + # source://rubocop-rspec/lib/rubocop/cop/rspec/yield.rb#61 def block_range(node); end # @return [Boolean] # - # source://rubocop-rspec//lib/rubocop/cop/rspec/yield.rb#53 + # source://rubocop-rspec/lib/rubocop/cop/rspec/yield.rb#53 def calling_block?(node, block); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/yield.rb#73 + # source://rubocop-rspec/lib/rubocop/cop/rspec/yield.rb#73 def convert_block_to_yield(node); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/yield.rb#65 + # source://rubocop-rspec/lib/rubocop/cop/rspec/yield.rb#65 def generate_replacement(node); end end -# source://rubocop-rspec//lib/rubocop/cop/rspec/yield.rb#19 +# source://rubocop-rspec/lib/rubocop/cop/rspec/yield.rb#19 RuboCop::Cop::RSpec::Yield::MSG = T.let(T.unsafe(nil), String) # RuboCop RSpec project namespace # -# source://rubocop-rspec//lib/rubocop/rspec.rb#5 +# source://rubocop-rspec/lib/rubocop/rspec.rb#5 module RuboCop::RSpec; end # Shared behavior for aligning braces for single line lets # -# source://rubocop-rspec//lib/rubocop/rspec/align_let_brace.rb#6 +# source://rubocop-rspec/lib/rubocop/rspec/align_let_brace.rb#6 class RuboCop::RSpec::AlignLetBrace include ::RuboCop::RSpec::Language include ::RuboCop::PathUtil @@ -7054,88 +7059,88 @@ class RuboCop::RSpec::AlignLetBrace # @return [AlignLetBrace] a new instance of AlignLetBrace # - # source://rubocop-rspec//lib/rubocop/rspec/align_let_brace.rb#10 + # source://rubocop-rspec/lib/rubocop/rspec/align_let_brace.rb#10 def initialize(root, token); end - # source://rubocop-rspec//lib/rubocop/rspec/align_let_brace.rb#21 + # source://rubocop-rspec/lib/rubocop/rspec/align_let_brace.rb#21 def indent_for(node); end - # source://rubocop-rspec//lib/rubocop/rspec/align_let_brace.rb#15 + # source://rubocop-rspec/lib/rubocop/rspec/align_let_brace.rb#15 def offending_tokens; end private - # source://rubocop-rspec//lib/rubocop/rspec/align_let_brace.rb#43 + # source://rubocop-rspec/lib/rubocop/rspec/align_let_brace.rb#43 def adjacent_let_chunks; end - # source://rubocop-rspec//lib/rubocop/rspec/align_let_brace.rb#35 + # source://rubocop-rspec/lib/rubocop/rspec/align_let_brace.rb#35 def let_group_for(let); end - # source://rubocop-rspec//lib/rubocop/rspec/align_let_brace.rb#27 + # source://rubocop-rspec/lib/rubocop/rspec/align_let_brace.rb#27 def let_token(node); end # Returns the value of attribute root. # - # source://rubocop-rspec//lib/rubocop/rspec/align_let_brace.rb#60 + # source://rubocop-rspec/lib/rubocop/rspec/align_let_brace.rb#60 def root; end - # source://rubocop-rspec//lib/rubocop/rspec/align_let_brace.rb#53 + # source://rubocop-rspec/lib/rubocop/rspec/align_let_brace.rb#53 def single_line_lets; end - # source://rubocop-rspec//lib/rubocop/rspec/align_let_brace.rb#31 + # source://rubocop-rspec/lib/rubocop/rspec/align_let_brace.rb#31 def target_column_for(let); end # Returns the value of attribute token. # - # source://rubocop-rspec//lib/rubocop/rspec/align_let_brace.rb#60 + # source://rubocop-rspec/lib/rubocop/rspec/align_let_brace.rb#60 def token; end end -# source://rubocop-rspec//lib/rubocop/rspec.rb#7 +# source://rubocop-rspec/lib/rubocop/rspec.rb#7 RuboCop::RSpec::CONFIG_DEFAULT = T.let(T.unsafe(nil), Pathname) # Wrapper for RSpec DSL methods # -# source://rubocop-rspec//lib/rubocop/rspec/concept.rb#6 +# source://rubocop-rspec/lib/rubocop/rspec/concept.rb#6 class RuboCop::RSpec::Concept include ::RuboCop::RSpec::Language extend ::RuboCop::AST::NodePattern::Macros # @return [Concept] a new instance of Concept # - # source://rubocop-rspec//lib/rubocop/rspec/concept.rb#10 + # source://rubocop-rspec/lib/rubocop/rspec/concept.rb#10 def initialize(node); end # @return [Boolean] # - # source://rubocop-rspec//lib/rubocop/rspec/concept.rb#14 + # source://rubocop-rspec/lib/rubocop/rspec/concept.rb#14 def ==(other); end # @return [Boolean] # - # source://rubocop-rspec//lib/rubocop/rspec/concept.rb#14 + # source://rubocop-rspec/lib/rubocop/rspec/concept.rb#14 def eql?(other); end - # source://rubocop-rspec//lib/rubocop/rspec/concept.rb#20 + # source://rubocop-rspec/lib/rubocop/rspec/concept.rb#20 def hash; end - # source://rubocop-rspec//lib/rubocop/rspec/concept.rb#24 + # source://rubocop-rspec/lib/rubocop/rspec/concept.rb#24 def to_node; end protected # Returns the value of attribute node. # - # source://rubocop-rspec//lib/rubocop/rspec/concept.rb#30 + # source://rubocop-rspec/lib/rubocop/rspec/concept.rb#30 def node; end end -# source://rubocop-rspec//lib/rubocop/rspec/corrector/move_node.rb#5 +# source://rubocop-rspec/lib/rubocop/rspec/corrector/move_node.rb#5 module RuboCop::RSpec::Corrector; end # Helper methods to move a node # -# source://rubocop-rspec//lib/rubocop/rspec/corrector/move_node.rb#7 +# source://rubocop-rspec/lib/rubocop/rspec/corrector/move_node.rb#7 class RuboCop::RSpec::Corrector::MoveNode include ::RuboCop::Cop::RangeHelp include ::RuboCop::Cop::RSpec::FinalEndLocation @@ -7143,94 +7148,94 @@ class RuboCop::RSpec::Corrector::MoveNode # @return [MoveNode] a new instance of MoveNode # - # source://rubocop-rspec//lib/rubocop/rspec/corrector/move_node.rb#14 + # source://rubocop-rspec/lib/rubocop/rspec/corrector/move_node.rb#14 def initialize(node, corrector, processed_source); end # Returns the value of attribute corrector. # - # source://rubocop-rspec//lib/rubocop/rspec/corrector/move_node.rb#12 + # source://rubocop-rspec/lib/rubocop/rspec/corrector/move_node.rb#12 def corrector; end - # source://rubocop-rspec//lib/rubocop/rspec/corrector/move_node.rb#27 + # source://rubocop-rspec/lib/rubocop/rspec/corrector/move_node.rb#27 def move_after(other); end - # source://rubocop-rspec//lib/rubocop/rspec/corrector/move_node.rb#20 + # source://rubocop-rspec/lib/rubocop/rspec/corrector/move_node.rb#20 def move_before(other); end # Returns the value of attribute original. # - # source://rubocop-rspec//lib/rubocop/rspec/corrector/move_node.rb#12 + # source://rubocop-rspec/lib/rubocop/rspec/corrector/move_node.rb#12 def original; end # Returns the value of attribute processed_source. # - # source://rubocop-rspec//lib/rubocop/rspec/corrector/move_node.rb#12 + # source://rubocop-rspec/lib/rubocop/rspec/corrector/move_node.rb#12 def processed_source; end private - # source://rubocop-rspec//lib/rubocop/rspec/corrector/move_node.rb#40 + # source://rubocop-rspec/lib/rubocop/rspec/corrector/move_node.rb#40 def node_range(node); end - # source://rubocop-rspec//lib/rubocop/rspec/corrector/move_node.rb#44 + # source://rubocop-rspec/lib/rubocop/rspec/corrector/move_node.rb#44 def node_range_with_surrounding_space(node); end - # source://rubocop-rspec//lib/rubocop/rspec/corrector/move_node.rb#36 + # source://rubocop-rspec/lib/rubocop/rspec/corrector/move_node.rb#36 def source(node); end end # Wrapper for RSpec examples # -# source://rubocop-rspec//lib/rubocop/rspec/example.rb#6 +# source://rubocop-rspec/lib/rubocop/rspec/example.rb#6 class RuboCop::RSpec::Example < ::RuboCop::RSpec::Concept - # source://rubocop-rspec//lib/rubocop/rspec/example.rb#28 + # source://rubocop-rspec/lib/rubocop/rspec/example.rb#28 def definition; end - # source://rubocop-rspec//lib/rubocop/rspec/example.rb#16 + # source://rubocop-rspec/lib/rubocop/rspec/example.rb#16 def doc_string; end - # source://rubocop-rspec//lib/rubocop/rspec/example.rb#8 + # source://rubocop-rspec/lib/rubocop/rspec/example.rb#8 def extract_doc_string(param0 = T.unsafe(nil)); end - # source://rubocop-rspec//lib/rubocop/rspec/example.rb#14 + # source://rubocop-rspec/lib/rubocop/rspec/example.rb#14 def extract_implementation(param0 = T.unsafe(nil)); end - # source://rubocop-rspec//lib/rubocop/rspec/example.rb#11 + # source://rubocop-rspec/lib/rubocop/rspec/example.rb#11 def extract_metadata(param0 = T.unsafe(nil)); end - # source://rubocop-rspec//lib/rubocop/rspec/example.rb#24 + # source://rubocop-rspec/lib/rubocop/rspec/example.rb#24 def implementation; end - # source://rubocop-rspec//lib/rubocop/rspec/example.rb#20 + # source://rubocop-rspec/lib/rubocop/rspec/example.rb#20 def metadata; end end # Wrapper for RSpec example groups # -# source://rubocop-rspec//lib/rubocop/rspec/example_group.rb#6 +# source://rubocop-rspec/lib/rubocop/rspec/example_group.rb#6 class RuboCop::RSpec::ExampleGroup < ::RuboCop::RSpec::Concept - # source://rubocop-rspec//lib/rubocop/rspec/example_group.rb#28 + # source://rubocop-rspec/lib/rubocop/rspec/example_group.rb#28 def examples; end - # source://rubocop-rspec//lib/rubocop/rspec/example_group.rb#34 + # source://rubocop-rspec/lib/rubocop/rspec/example_group.rb#34 def hooks; end - # source://rubocop-rspec//lib/rubocop/rspec/example_group.rb#20 + # source://rubocop-rspec/lib/rubocop/rspec/example_group.rb#20 def lets; end # Detect if the node is an example group or shared example # # Selectors which indicate that we should stop searching # - # source://rubocop-rspec//lib/rubocop/rspec/example_group.rb#13 + # source://rubocop-rspec/lib/rubocop/rspec/example_group.rb#13 def scope_change?(param0 = T.unsafe(nil)); end - # source://rubocop-rspec//lib/rubocop/rspec/example_group.rb#24 + # source://rubocop-rspec/lib/rubocop/rspec/example_group.rb#24 def subjects; end private - # source://rubocop-rspec//lib/rubocop/rspec/example_group.rb#56 + # source://rubocop-rspec/lib/rubocop/rspec/example_group.rb#56 def find_all(node, predicate); end # Recursively search for predicate within the current scope @@ -7241,63 +7246,63 @@ class RuboCop::RSpec::ExampleGroup < ::RuboCop::RSpec::Concept # @param predicate [Symbol] method to call with node as argument # @return [Array] discovered nodes # - # source://rubocop-rspec//lib/rubocop/rspec/example_group.rb#50 + # source://rubocop-rspec/lib/rubocop/rspec/example_group.rb#50 def find_all_in_scope(node, predicate); end end # Wrapper for RSpec hook # -# source://rubocop-rspec//lib/rubocop/rspec/hook.rb#6 +# source://rubocop-rspec/lib/rubocop/rspec/hook.rb#6 class RuboCop::RSpec::Hook < ::RuboCop::RSpec::Concept # @return [Boolean] # - # source://rubocop-rspec//lib/rubocop/rspec/hook.rb#24 + # source://rubocop-rspec/lib/rubocop/rspec/hook.rb#24 def example?; end - # source://rubocop-rspec//lib/rubocop/rspec/hook.rb#8 + # source://rubocop-rspec/lib/rubocop/rspec/hook.rb#8 def extract_metadata(param0 = T.unsafe(nil)); end # @return [Boolean] # - # source://rubocop-rspec//lib/rubocop/rspec/hook.rb#18 + # source://rubocop-rspec/lib/rubocop/rspec/hook.rb#18 def knowable_scope?; end - # source://rubocop-rspec//lib/rubocop/rspec/hook.rb#38 + # source://rubocop-rspec/lib/rubocop/rspec/hook.rb#38 def metadata; end - # source://rubocop-rspec//lib/rubocop/rspec/hook.rb#14 + # source://rubocop-rspec/lib/rubocop/rspec/hook.rb#14 def name; end - # source://rubocop-rspec//lib/rubocop/rspec/hook.rb#28 + # source://rubocop-rspec/lib/rubocop/rspec/hook.rb#28 def scope; end private - # source://rubocop-rspec//lib/rubocop/rspec/hook.rb#74 + # source://rubocop-rspec/lib/rubocop/rspec/hook.rb#74 def scope_argument; end - # source://rubocop-rspec//lib/rubocop/rspec/hook.rb#70 + # source://rubocop-rspec/lib/rubocop/rspec/hook.rb#70 def scope_name; end - # source://rubocop-rspec//lib/rubocop/rspec/hook.rb#51 + # source://rubocop-rspec/lib/rubocop/rspec/hook.rb#51 def transform_metadata(meta); end - # source://rubocop-rspec//lib/rubocop/rspec/hook.rb#66 + # source://rubocop-rspec/lib/rubocop/rspec/hook.rb#66 def transform_true(node); end # @return [Boolean] # - # source://rubocop-rspec//lib/rubocop/rspec/hook.rb#47 + # source://rubocop-rspec/lib/rubocop/rspec/hook.rb#47 def valid_scope?(node); end end # Because RuboCop doesn't yet support plugins, we have to monkey patch in a # bit of our configuration. # -# source://rubocop-rspec//lib/rubocop/rspec/inject.rb#7 +# source://rubocop-rspec/lib/rubocop/rspec/inject.rb#7 module RuboCop::RSpec::Inject class << self - # source://rubocop-rspec//lib/rubocop/rspec/inject.rb#8 + # source://rubocop-rspec/lib/rubocop/rspec/inject.rb#8 def defaults!; end end end @@ -7312,277 +7317,277 @@ end # In addition to providing useful matchers, this class is responsible for # using the configured aliases. # -# source://rubocop-rspec//lib/rubocop/rspec/language.rb#14 +# source://rubocop-rspec/lib/rubocop/rspec/language.rb#14 module RuboCop::RSpec::Language extend ::RuboCop::AST::NodePattern::Macros - # source://rubocop-rspec//lib/rubocop/rspec/language.rb#49 + # source://rubocop-rspec/lib/rubocop/rspec/language.rb#49 def example?(param0 = T.unsafe(nil)); end - # source://rubocop-rspec//lib/rubocop/rspec/language.rb#28 + # source://rubocop-rspec/lib/rubocop/rspec/language.rb#28 def example_group?(param0 = T.unsafe(nil)); end - # source://rubocop-rspec//lib/rubocop/rspec/language.rb#44 + # source://rubocop-rspec/lib/rubocop/rspec/language.rb#44 def example_group_with_body?(param0 = T.unsafe(nil)); end - # source://rubocop-rspec//lib/rubocop/rspec/language.rb#25 + # source://rubocop-rspec/lib/rubocop/rspec/language.rb#25 def explicit_rspec?(param0 = T.unsafe(nil)); end - # source://rubocop-rspec//lib/rubocop/rspec/language.rb#52 + # source://rubocop-rspec/lib/rubocop/rspec/language.rb#52 def hook?(param0 = T.unsafe(nil)); end - # source://rubocop-rspec//lib/rubocop/rspec/language.rb#68 + # source://rubocop-rspec/lib/rubocop/rspec/language.rb#68 def include?(param0 = T.unsafe(nil)); end - # source://rubocop-rspec//lib/rubocop/rspec/language.rb#60 + # source://rubocop-rspec/lib/rubocop/rspec/language.rb#60 def let?(param0 = T.unsafe(nil)); end - # source://rubocop-rspec//lib/rubocop/rspec/language.rb#22 + # source://rubocop-rspec/lib/rubocop/rspec/language.rb#22 def rspec?(param0 = T.unsafe(nil)); end - # source://rubocop-rspec//lib/rubocop/rspec/language.rb#33 + # source://rubocop-rspec/lib/rubocop/rspec/language.rb#33 def shared_group?(param0 = T.unsafe(nil)); end - # source://rubocop-rspec//lib/rubocop/rspec/language.rb#37 + # source://rubocop-rspec/lib/rubocop/rspec/language.rb#37 def spec_group?(param0 = T.unsafe(nil)); end - # source://rubocop-rspec//lib/rubocop/rspec/language.rb#76 + # source://rubocop-rspec/lib/rubocop/rspec/language.rb#76 def subject?(param0 = T.unsafe(nil)); end class << self # Returns the value of attribute config. # - # source://rubocop-rspec//lib/rubocop/rspec/language.rb#18 + # source://rubocop-rspec/lib/rubocop/rspec/language.rb#18 def config; end # Sets the attribute config # # @param value the value to set the attribute config to. # - # source://rubocop-rspec//lib/rubocop/rspec/language.rb#18 + # source://rubocop-rspec/lib/rubocop/rspec/language.rb#18 def config=(_arg0); end end end # This is used in Dialect and DescribeClass cops to detect RSpec blocks. # -# source://rubocop-rspec//lib/rubocop/rspec/language.rb#204 +# source://rubocop-rspec/lib/rubocop/rspec/language.rb#204 module RuboCop::RSpec::Language::ALL class << self - # source://rubocop-rspec//lib/rubocop/rspec/language.rb#205 + # source://rubocop-rspec/lib/rubocop/rspec/language.rb#205 def all(element); end end end -# source://rubocop-rspec//lib/rubocop/rspec/language.rb#78 +# source://rubocop-rspec/lib/rubocop/rspec/language.rb#78 module RuboCop::RSpec::Language::ExampleGroups class << self - # source://rubocop-rspec//lib/rubocop/rspec/language.rb#80 + # source://rubocop-rspec/lib/rubocop/rspec/language.rb#80 def all(element); end - # source://rubocop-rspec//lib/rubocop/rspec/language.rb#90 + # source://rubocop-rspec/lib/rubocop/rspec/language.rb#90 def focused(element); end - # source://rubocop-rspec//lib/rubocop/rspec/language.rb#86 + # source://rubocop-rspec/lib/rubocop/rspec/language.rb#86 def regular(element); end - # source://rubocop-rspec//lib/rubocop/rspec/language.rb#94 + # source://rubocop-rspec/lib/rubocop/rspec/language.rb#94 def skipped(element); end end end -# source://rubocop-rspec//lib/rubocop/rspec/language.rb#100 +# source://rubocop-rspec/lib/rubocop/rspec/language.rb#100 module RuboCop::RSpec::Language::Examples class << self - # source://rubocop-rspec//lib/rubocop/rspec/language.rb#102 + # source://rubocop-rspec/lib/rubocop/rspec/language.rb#102 def all(element); end - # source://rubocop-rspec//lib/rubocop/rspec/language.rb#113 + # source://rubocop-rspec/lib/rubocop/rspec/language.rb#113 def focused(element); end - # source://rubocop-rspec//lib/rubocop/rspec/language.rb#121 + # source://rubocop-rspec/lib/rubocop/rspec/language.rb#121 def pending(element); end - # source://rubocop-rspec//lib/rubocop/rspec/language.rb#109 + # source://rubocop-rspec/lib/rubocop/rspec/language.rb#109 def regular(element); end - # source://rubocop-rspec//lib/rubocop/rspec/language.rb#117 + # source://rubocop-rspec/lib/rubocop/rspec/language.rb#117 def skipped(element); end end end -# source://rubocop-rspec//lib/rubocop/rspec/language.rb#127 +# source://rubocop-rspec/lib/rubocop/rspec/language.rb#127 module RuboCop::RSpec::Language::Expectations class << self - # source://rubocop-rspec//lib/rubocop/rspec/language.rb#128 + # source://rubocop-rspec/lib/rubocop/rspec/language.rb#128 def all(element); end end end -# source://rubocop-rspec//lib/rubocop/rspec/language.rb#133 +# source://rubocop-rspec/lib/rubocop/rspec/language.rb#133 module RuboCop::RSpec::Language::Helpers class << self - # source://rubocop-rspec//lib/rubocop/rspec/language.rb#134 + # source://rubocop-rspec/lib/rubocop/rspec/language.rb#134 def all(element); end end end -# source://rubocop-rspec//lib/rubocop/rspec/language.rb#145 +# source://rubocop-rspec/lib/rubocop/rspec/language.rb#145 module RuboCop::RSpec::Language::HookScopes class << self - # source://rubocop-rspec//lib/rubocop/rspec/language.rb#147 + # source://rubocop-rspec/lib/rubocop/rspec/language.rb#147 def all(element); end end end -# source://rubocop-rspec//lib/rubocop/rspec/language.rb#146 +# source://rubocop-rspec/lib/rubocop/rspec/language.rb#146 RuboCop::RSpec::Language::HookScopes::ALL = T.let(T.unsafe(nil), Array) -# source://rubocop-rspec//lib/rubocop/rspec/language.rb#139 +# source://rubocop-rspec/lib/rubocop/rspec/language.rb#139 module RuboCop::RSpec::Language::Hooks class << self - # source://rubocop-rspec//lib/rubocop/rspec/language.rb#140 + # source://rubocop-rspec/lib/rubocop/rspec/language.rb#140 def all(element); end end end -# source://rubocop-rspec//lib/rubocop/rspec/language.rb#152 +# source://rubocop-rspec/lib/rubocop/rspec/language.rb#152 module RuboCop::RSpec::Language::Includes class << self - # source://rubocop-rspec//lib/rubocop/rspec/language.rb#154 + # source://rubocop-rspec/lib/rubocop/rspec/language.rb#154 def all(element); end - # source://rubocop-rspec//lib/rubocop/rspec/language.rb#163 + # source://rubocop-rspec/lib/rubocop/rspec/language.rb#163 def context(element); end - # source://rubocop-rspec//lib/rubocop/rspec/language.rb#159 + # source://rubocop-rspec/lib/rubocop/rspec/language.rb#159 def examples(element); end end end -# source://rubocop-rspec//lib/rubocop/rspec/language.rb#169 +# source://rubocop-rspec/lib/rubocop/rspec/language.rb#169 module RuboCop::RSpec::Language::Runners class << self - # source://rubocop-rspec//lib/rubocop/rspec/language.rb#172 + # source://rubocop-rspec/lib/rubocop/rspec/language.rb#172 def all(element = T.unsafe(nil)); end end end -# source://rubocop-rspec//lib/rubocop/rspec/language.rb#170 +# source://rubocop-rspec/lib/rubocop/rspec/language.rb#170 RuboCop::RSpec::Language::Runners::ALL = T.let(T.unsafe(nil), Array) -# source://rubocop-rspec//lib/rubocop/rspec/language.rb#180 +# source://rubocop-rspec/lib/rubocop/rspec/language.rb#180 module RuboCop::RSpec::Language::SharedGroups class << self - # source://rubocop-rspec//lib/rubocop/rspec/language.rb#182 + # source://rubocop-rspec/lib/rubocop/rspec/language.rb#182 def all(element); end - # source://rubocop-rspec//lib/rubocop/rspec/language.rb#191 + # source://rubocop-rspec/lib/rubocop/rspec/language.rb#191 def context(element); end - # source://rubocop-rspec//lib/rubocop/rspec/language.rb#187 + # source://rubocop-rspec/lib/rubocop/rspec/language.rb#187 def examples(element); end end end -# source://rubocop-rspec//lib/rubocop/rspec/language.rb#197 +# source://rubocop-rspec/lib/rubocop/rspec/language.rb#197 module RuboCop::RSpec::Language::Subjects class << self - # source://rubocop-rspec//lib/rubocop/rspec/language.rb#198 + # source://rubocop-rspec/lib/rubocop/rspec/language.rb#198 def all(element); end end end # RuboCop RSpec specific extensions of RuboCop::AST::Node # -# source://rubocop-rspec//lib/rubocop/rspec/node.rb#6 +# source://rubocop-rspec/lib/rubocop/rspec/node.rb#6 module RuboCop::RSpec::Node # In various cops we want to regard const as literal although it's not # strictly literal. # # @return [Boolean] # - # source://rubocop-rspec//lib/rubocop/rspec/node.rb#9 + # source://rubocop-rspec/lib/rubocop/rspec/node.rb#9 def recursive_literal_or_const?; end end -# source://rubocop-rspec//lib/rubocop/rspec.rb#6 +# source://rubocop-rspec/lib/rubocop/rspec.rb#6 RuboCop::RSpec::PROJECT_ROOT = T.let(T.unsafe(nil), Pathname) # Version information for the RSpec RuboCop plugin. # -# source://rubocop-rspec//lib/rubocop/rspec/version.rb#6 +# source://rubocop-rspec/lib/rubocop/rspec/version.rb#6 module RuboCop::RSpec::Version; end -# source://rubocop-rspec//lib/rubocop/rspec/version.rb#7 +# source://rubocop-rspec/lib/rubocop/rspec/version.rb#7 RuboCop::RSpec::Version::STRING = T.let(T.unsafe(nil), String) # RSpec example wording rewriter # -# source://rubocop-rspec//lib/rubocop/rspec/wording.rb#6 +# source://rubocop-rspec/lib/rubocop/rspec/wording.rb#6 class RuboCop::RSpec::Wording # @return [Wording] a new instance of Wording # - # source://rubocop-rspec//lib/rubocop/rspec/wording.rb#14 + # source://rubocop-rspec/lib/rubocop/rspec/wording.rb#14 def initialize(text, ignore:, replace:); end - # source://rubocop-rspec//lib/rubocop/rspec/wording.rb#21 + # source://rubocop-rspec/lib/rubocop/rspec/wording.rb#21 def rewrite; end private - # source://rubocop-rspec//lib/rubocop/rspec/wording.rb#80 + # source://rubocop-rspec/lib/rubocop/rspec/wording.rb#80 def append_suffix(word, suffix); end # @return [Boolean] # - # source://rubocop-rspec//lib/rubocop/rspec/wording.rb#65 + # source://rubocop-rspec/lib/rubocop/rspec/wording.rb#65 def ignored_word?(word); end # Returns the value of attribute ignores. # - # source://rubocop-rspec//lib/rubocop/rspec/wording.rb#39 + # source://rubocop-rspec/lib/rubocop/rspec/wording.rb#39 def ignores; end - # source://rubocop-rspec//lib/rubocop/rspec/wording.rb#51 + # source://rubocop-rspec/lib/rubocop/rspec/wording.rb#51 def remove_should_and_pluralize; end - # source://rubocop-rspec//lib/rubocop/rspec/wording.rb#41 + # source://rubocop-rspec/lib/rubocop/rspec/wording.rb#41 def replace_prefix(pattern, replacement); end # Returns the value of attribute replacements. # - # source://rubocop-rspec//lib/rubocop/rspec/wording.rb#39 + # source://rubocop-rspec/lib/rubocop/rspec/wording.rb#39 def replacements; end - # source://rubocop-rspec//lib/rubocop/rspec/wording.rb#69 + # source://rubocop-rspec/lib/rubocop/rspec/wording.rb#69 def substitute(word); end # Returns the value of attribute text. # - # source://rubocop-rspec//lib/rubocop/rspec/wording.rb#39 + # source://rubocop-rspec/lib/rubocop/rspec/wording.rb#39 def text; end # @return [Boolean] # - # source://rubocop-rspec//lib/rubocop/rspec/wording.rb#47 + # source://rubocop-rspec/lib/rubocop/rspec/wording.rb#47 def uppercase?(word); end end -# source://rubocop-rspec//lib/rubocop/rspec/wording.rb#11 +# source://rubocop-rspec/lib/rubocop/rspec/wording.rb#11 RuboCop::RSpec::Wording::ES_SUFFIX_PATTERN = T.let(T.unsafe(nil), Regexp) -# source://rubocop-rspec//lib/rubocop/rspec/wording.rb#12 +# source://rubocop-rspec/lib/rubocop/rspec/wording.rb#12 RuboCop::RSpec::Wording::IES_SUFFIX_PATTERN = T.let(T.unsafe(nil), Regexp) -# source://rubocop-rspec//lib/rubocop/rspec/wording.rb#8 +# source://rubocop-rspec/lib/rubocop/rspec/wording.rb#8 RuboCop::RSpec::Wording::SHOULDNT_BE_PREFIX = T.let(T.unsafe(nil), Regexp) -# source://rubocop-rspec//lib/rubocop/rspec/wording.rb#7 +# source://rubocop-rspec/lib/rubocop/rspec/wording.rb#7 RuboCop::RSpec::Wording::SHOULDNT_PREFIX = T.let(T.unsafe(nil), Regexp) -# source://rubocop-rspec//lib/rubocop/rspec/wording.rb#9 +# source://rubocop-rspec/lib/rubocop/rspec/wording.rb#9 RuboCop::RSpec::Wording::WILL_NOT_PREFIX = T.let(T.unsafe(nil), Regexp) -# source://rubocop-rspec//lib/rubocop/rspec/wording.rb#10 +# source://rubocop-rspec/lib/rubocop/rspec/wording.rb#10 RuboCop::RSpec::Wording::WONT_PREFIX = T.let(T.unsafe(nil), Regexp) diff --git a/sorbet/rbi/gems/rubocop@1.68.0.rbi b/sorbet/rbi/gems/rubocop@1.69.2.rbi similarity index 64% rename from sorbet/rbi/gems/rubocop@1.68.0.rbi rename to sorbet/rbi/gems/rubocop@1.69.2.rbi index b5a09d240..f0d4257d0 100644 --- a/sorbet/rbi/gems/rubocop@1.68.0.rbi +++ b/sorbet/rbi/gems/rubocop@1.69.2.rbi @@ -25,7 +25,7 @@ class Regexp::Expression::Quantifier include ::RuboCop::Ext::RegexpParser::Expression::Base end -# source://rubocop//lib/rubocop/version.rb#3 +# source://rubocop/lib/rubocop/version.rb#3 module RuboCop; end class RuboCop::AST::ProcessedSource @@ -40,12 +40,12 @@ end # # @api private # -# source://rubocop//lib/rubocop/arguments_env.rb#6 +# source://rubocop/lib/rubocop/arguments_env.rb#6 class RuboCop::ArgumentsEnv class << self # @api private # - # source://rubocop//lib/rubocop/arguments_env.rb#7 + # source://rubocop/lib/rubocop/arguments_env.rb#7 def read_as_arguments; end end end @@ -54,12 +54,12 @@ end # # @api private # -# source://rubocop//lib/rubocop/arguments_file.rb#6 +# source://rubocop/lib/rubocop/arguments_file.rb#6 class RuboCop::ArgumentsFile class << self # @api private # - # source://rubocop//lib/rubocop/arguments_file.rb#7 + # source://rubocop/lib/rubocop/arguments_file.rb#7 def read_as_arguments; end end end @@ -67,21 +67,21 @@ end # The CLI is a class responsible of handling all the command line interface # logic. # -# source://rubocop//lib/rubocop/cli.rb#8 +# source://rubocop/lib/rubocop/cli.rb#8 class RuboCop::CLI # @return [CLI] a new instance of CLI # - # source://rubocop//lib/rubocop/cli.rb#24 + # source://rubocop/lib/rubocop/cli.rb#24 def initialize; end # Returns the value of attribute config_store. # - # source://rubocop//lib/rubocop/cli.rb#22 + # source://rubocop/lib/rubocop/cli.rb#22 def config_store; end # Returns the value of attribute options. # - # source://rubocop//lib/rubocop/cli.rb#22 + # source://rubocop/lib/rubocop/cli.rb#22 def options; end # Entry point for the application logic. Here we @@ -93,49 +93,49 @@ class RuboCop::CLI # @param args [Array] command line arguments # @return [Integer] UNIX exit code # - # source://rubocop//lib/rubocop/cli.rb#39 + # source://rubocop/lib/rubocop/cli.rb#39 def run(args = T.unsafe(nil)); end private - # source://rubocop//lib/rubocop/cli.rb#156 + # source://rubocop/lib/rubocop/cli.rb#156 def act_on_options; end - # source://rubocop//lib/rubocop/cli.rb#198 + # source://rubocop/lib/rubocop/cli.rb#198 def apply_default_formatter; end - # source://rubocop//lib/rubocop/cli.rb#125 + # source://rubocop/lib/rubocop/cli.rb#125 def execute_runners; end - # source://rubocop//lib/rubocop/cli.rb#182 + # source://rubocop/lib/rubocop/cli.rb#182 def handle_editor_mode; end # @raise [Finished] # - # source://rubocop//lib/rubocop/cli.rb#187 + # source://rubocop/lib/rubocop/cli.rb#187 def handle_exiting_options; end - # source://rubocop//lib/rubocop/cli.rb#144 + # source://rubocop/lib/rubocop/cli.rb#144 def parallel_by_default!; end - # source://rubocop//lib/rubocop/cli.rb#80 + # source://rubocop/lib/rubocop/cli.rb#80 def profile_if_needed; end - # source://rubocop//lib/rubocop/cli.rb#113 + # source://rubocop/lib/rubocop/cli.rb#113 def require_gem(name); end - # source://rubocop//lib/rubocop/cli.rb#121 + # source://rubocop/lib/rubocop/cli.rb#121 def run_command(name); end - # source://rubocop//lib/rubocop/cli.rb#174 + # source://rubocop/lib/rubocop/cli.rb#174 def set_options_to_config_loader; end - # source://rubocop//lib/rubocop/cli.rb#133 + # source://rubocop/lib/rubocop/cli.rb#133 def suggest_extensions; end # @raise [OptionArgumentError] # - # source://rubocop//lib/rubocop/cli.rb#137 + # source://rubocop/lib/rubocop/cli.rb#137 def validate_options_vs_config; end end @@ -143,21 +143,21 @@ end # # @api private # -# source://rubocop//lib/rubocop/cli/command.rb#7 +# source://rubocop/lib/rubocop/cli/command.rb#7 module RuboCop::CLI::Command class << self # Find the command with a given name and run it in an environment. # # @api private # - # source://rubocop//lib/rubocop/cli/command.rb#10 + # source://rubocop/lib/rubocop/cli/command.rb#10 def run(env, name); end private # @api private # - # source://rubocop//lib/rubocop/cli/command.rb#16 + # source://rubocop/lib/rubocop/cli/command.rb#16 def class_for(name); end end end @@ -166,81 +166,81 @@ end # # @api private # -# source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#8 +# source://rubocop/lib/rubocop/cli/command/auto_generate_config.rb#8 class RuboCop::CLI::Command::AutoGenerateConfig < ::RuboCop::CLI::Command::Base # @api private # - # source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#25 + # source://rubocop/lib/rubocop/cli/command/auto_generate_config.rb#25 def run; end private # @api private # - # source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#107 + # source://rubocop/lib/rubocop/cli/command/auto_generate_config.rb#107 def add_formatter; end # @api private # - # source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#115 + # source://rubocop/lib/rubocop/cli/command/auto_generate_config.rb#115 def add_inheritance_from_auto_generated_file(config_file); end # @api private # - # source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#111 + # source://rubocop/lib/rubocop/cli/command/auto_generate_config.rb#111 def execute_runner; end # @api private # - # source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#136 + # source://rubocop/lib/rubocop/cli/command/auto_generate_config.rb#136 def existing_configuration(config_file); end # @api private # - # source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#65 + # source://rubocop/lib/rubocop/cli/command/auto_generate_config.rb#65 def line_length_cop(config); end # @api private # @return [Boolean] # - # source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#53 + # source://rubocop/lib/rubocop/cli/command/auto_generate_config.rb#53 def line_length_enabled?(config); end # @api private # - # source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#61 + # source://rubocop/lib/rubocop/cli/command/auto_generate_config.rb#61 def max_line_length(config); end # @api private # - # source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#34 + # source://rubocop/lib/rubocop/cli/command/auto_generate_config.rb#34 def maybe_run_line_length_cop; end # @api private # @return [Boolean] # - # source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#73 + # source://rubocop/lib/rubocop/cli/command/auto_generate_config.rb#73 def only_exclude?; end # @api private # @return [Boolean] # - # source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#69 + # source://rubocop/lib/rubocop/cli/command/auto_generate_config.rb#69 def options_has_only_flag?; end # @api private # - # source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#153 + # source://rubocop/lib/rubocop/cli/command/auto_generate_config.rb#153 def relative_path_to_todo_from_options_config; end # @api private # - # source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#100 + # source://rubocop/lib/rubocop/cli/command/auto_generate_config.rb#100 def reset_config_and_auto_gen_file; end # @api private # - # source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#91 + # source://rubocop/lib/rubocop/cli/command/auto_generate_config.rb#91 def run_all_cops(line_length_contents); end # Do an initial run with only Layout/LineLength so that cops that @@ -249,108 +249,108 @@ class RuboCop::CLI::Command::AutoGenerateConfig < ::RuboCop::CLI::Command::Base # # @api private # - # source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#80 + # source://rubocop/lib/rubocop/cli/command/auto_generate_config.rb#80 def run_line_length_cop; end # @api private # @return [Boolean] # - # source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#57 + # source://rubocop/lib/rubocop/cli/command/auto_generate_config.rb#57 def same_max_line_length?(config1, config2); end # @api private # - # source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#48 + # source://rubocop/lib/rubocop/cli/command/auto_generate_config.rb#48 def skip_line_length_cop(reason); end # @api private # - # source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#142 + # source://rubocop/lib/rubocop/cli/command/auto_generate_config.rb#142 def write_config_file(file_name, file_string, rubocop_yml_contents); end end # @api private # -# source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#11 +# source://rubocop/lib/rubocop/cli/command/auto_generate_config.rb#11 RuboCop::CLI::Command::AutoGenerateConfig::AUTO_GENERATED_FILE = T.let(T.unsafe(nil), String) # @api private # -# source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#15 +# source://rubocop/lib/rubocop/cli/command/auto_generate_config.rb#15 RuboCop::CLI::Command::AutoGenerateConfig::PHASE_1 = T.let(T.unsafe(nil), String) # @api private # -# source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#19 +# source://rubocop/lib/rubocop/cli/command/auto_generate_config.rb#19 RuboCop::CLI::Command::AutoGenerateConfig::PHASE_1_DISABLED = T.let(T.unsafe(nil), String) # @api private # -# source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#18 +# source://rubocop/lib/rubocop/cli/command/auto_generate_config.rb#18 RuboCop::CLI::Command::AutoGenerateConfig::PHASE_1_OVERRIDDEN = T.let(T.unsafe(nil), String) # @api private # -# source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#20 +# source://rubocop/lib/rubocop/cli/command/auto_generate_config.rb#20 RuboCop::CLI::Command::AutoGenerateConfig::PHASE_1_SKIPPED_ONLY_COPS = T.let(T.unsafe(nil), String) # @api private # -# source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#22 +# source://rubocop/lib/rubocop/cli/command/auto_generate_config.rb#22 RuboCop::CLI::Command::AutoGenerateConfig::PHASE_1_SKIPPED_ONLY_EXCLUDE = T.let(T.unsafe(nil), String) # @api private # -# source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#16 +# source://rubocop/lib/rubocop/cli/command/auto_generate_config.rb#16 RuboCop::CLI::Command::AutoGenerateConfig::PHASE_2 = T.let(T.unsafe(nil), String) # @api private # -# source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#13 +# source://rubocop/lib/rubocop/cli/command/auto_generate_config.rb#13 RuboCop::CLI::Command::AutoGenerateConfig::PLACEHOLDER = T.let(T.unsafe(nil), String) # @api private # -# source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#12 +# source://rubocop/lib/rubocop/cli/command/auto_generate_config.rb#12 RuboCop::CLI::Command::AutoGenerateConfig::YAML_OPTIONAL_DOC_START = T.let(T.unsafe(nil), Regexp) # A subcommand in the CLI. # # @api private # -# source://rubocop//lib/rubocop/cli/command/base.rb#8 +# source://rubocop/lib/rubocop/cli/command/base.rb#8 class RuboCop::CLI::Command::Base # @api private # @return [Base] a new instance of Base # - # source://rubocop//lib/rubocop/cli/command/base.rb#26 + # source://rubocop/lib/rubocop/cli/command/base.rb#26 def initialize(env); end # @api private # - # source://rubocop//lib/rubocop/cli/command/base.rb#9 + # source://rubocop/lib/rubocop/cli/command/base.rb#9 def env; end class << self # @api private # - # source://rubocop//lib/rubocop/cli/command/base.rb#21 + # source://rubocop/lib/rubocop/cli/command/base.rb#21 def by_command_name(name); end # @api private # - # source://rubocop//lib/rubocop/cli/command/base.rb#14 + # source://rubocop/lib/rubocop/cli/command/base.rb#14 def command_name; end # @api private # - # source://rubocop//lib/rubocop/cli/command/base.rb#14 + # source://rubocop/lib/rubocop/cli/command/base.rb#14 def command_name=(_arg0); end # @api private # @private # - # source://rubocop//lib/rubocop/cli/command/base.rb#16 + # source://rubocop/lib/rubocop/cli/command/base.rb#16 def inherited(subclass); end end end @@ -359,50 +359,50 @@ end # # @api private # -# source://rubocop//lib/rubocop/cli/command/execute_runner.rb#8 +# source://rubocop/lib/rubocop/cli/command/execute_runner.rb#8 class RuboCop::CLI::Command::ExecuteRunner < ::RuboCop::CLI::Command::Base include ::RuboCop::Formatter::TextUtil # @api private # - # source://rubocop//lib/rubocop/cli/command/execute_runner.rb#16 + # source://rubocop/lib/rubocop/cli/command/execute_runner.rb#16 def run; end private # @api private # - # source://rubocop//lib/rubocop/cli/command/execute_runner.rb#85 + # source://rubocop/lib/rubocop/cli/command/execute_runner.rb#85 def bug_tracker_uri; end # @api private # - # source://rubocop//lib/rubocop/cli/command/execute_runner.rb#69 + # source://rubocop/lib/rubocop/cli/command/execute_runner.rb#69 def display_error_summary(errors); end # @api private # - # source://rubocop//lib/rubocop/cli/command/execute_runner.rb#56 + # source://rubocop/lib/rubocop/cli/command/execute_runner.rb#56 def display_summary(runner); end # @api private # - # source://rubocop//lib/rubocop/cli/command/execute_runner.rb#61 + # source://rubocop/lib/rubocop/cli/command/execute_runner.rb#61 def display_warning_summary(warnings); end # @api private # - # source://rubocop//lib/rubocop/cli/command/execute_runner.rb#22 + # source://rubocop/lib/rubocop/cli/command/execute_runner.rb#22 def execute_runner(paths); end # @api private # - # source://rubocop//lib/rubocop/cli/command/execute_runner.rb#91 + # source://rubocop/lib/rubocop/cli/command/execute_runner.rb#91 def maybe_print_corrected_source; end # @api private # - # source://rubocop//lib/rubocop/cli/command/execute_runner.rb#42 + # source://rubocop/lib/rubocop/cli/command/execute_runner.rb#42 def with_redirect; end end @@ -410,35 +410,35 @@ end # # @api private # -# source://rubocop//lib/rubocop/cli/command/execute_runner.rb#12 +# source://rubocop/lib/rubocop/cli/command/execute_runner.rb#12 RuboCop::CLI::Command::ExecuteRunner::INTEGRATION_FORMATTERS = T.let(T.unsafe(nil), Array) # Generate a .rubocop.yml file in the current directory. # # @api private # -# source://rubocop//lib/rubocop/cli/command/init_dotfile.rb#8 +# source://rubocop/lib/rubocop/cli/command/init_dotfile.rb#8 class RuboCop::CLI::Command::InitDotfile < ::RuboCop::CLI::Command::Base # @api private # - # source://rubocop//lib/rubocop/cli/command/init_dotfile.rb#13 + # source://rubocop/lib/rubocop/cli/command/init_dotfile.rb#13 def run; end end # @api private # -# source://rubocop//lib/rubocop/cli/command/init_dotfile.rb#9 +# source://rubocop/lib/rubocop/cli/command/init_dotfile.rb#9 RuboCop::CLI::Command::InitDotfile::DOTFILE = T.let(T.unsafe(nil), String) # Start Language Server Protocol of RuboCop. # # @api private # -# source://rubocop//lib/rubocop/cli/command/lsp.rb#8 +# source://rubocop/lib/rubocop/cli/command/lsp.rb#8 class RuboCop::CLI::Command::LSP < ::RuboCop::CLI::Command::Base # @api private # - # source://rubocop//lib/rubocop/cli/command/lsp.rb#11 + # source://rubocop/lib/rubocop/cli/command/lsp.rb#11 def run; end end @@ -447,49 +447,49 @@ end # # @api private # -# source://rubocop//lib/rubocop/cli/command/show_cops.rb#9 +# source://rubocop/lib/rubocop/cli/command/show_cops.rb#9 class RuboCop::CLI::Command::ShowCops < ::RuboCop::CLI::Command::Base # @api private # @return [ShowCops] a new instance of ShowCops # - # source://rubocop//lib/rubocop/cli/command/show_cops.rb#12 + # source://rubocop/lib/rubocop/cli/command/show_cops.rb#12 def initialize(env); end # @api private # - # source://rubocop//lib/rubocop/cli/command/show_cops.rb#19 + # source://rubocop/lib/rubocop/cli/command/show_cops.rb#19 def run; end private # @api private # - # source://rubocop//lib/rubocop/cli/command/show_cops.rb#67 + # source://rubocop/lib/rubocop/cli/command/show_cops.rb#67 def config_lines(cop); end # @api private # - # source://rubocop//lib/rubocop/cli/command/show_cops.rb#63 + # source://rubocop/lib/rubocop/cli/command/show_cops.rb#63 def cops_of_department(cops, department); end # @api private # - # source://rubocop//lib/rubocop/cli/command/show_cops.rb#25 + # source://rubocop/lib/rubocop/cli/command/show_cops.rb#25 def print_available_cops; end # @api private # - # source://rubocop//lib/rubocop/cli/command/show_cops.rb#48 + # source://rubocop/lib/rubocop/cli/command/show_cops.rb#48 def print_cop_details(cops); end # @api private # - # source://rubocop//lib/rubocop/cli/command/show_cops.rb#36 + # source://rubocop/lib/rubocop/cli/command/show_cops.rb#36 def print_cops_of_department(registry, department, show_all); end # @api private # - # source://rubocop//lib/rubocop/cli/command/show_cops.rb#57 + # source://rubocop/lib/rubocop/cli/command/show_cops.rb#57 def selected_cops_of_department(cops, department); end end @@ -498,34 +498,34 @@ end # # @api private # -# source://rubocop//lib/rubocop/cli/command/show_docs_url.rb#9 +# source://rubocop/lib/rubocop/cli/command/show_docs_url.rb#9 class RuboCop::CLI::Command::ShowDocsUrl < ::RuboCop::CLI::Command::Base # @api private # @return [ShowDocsUrl] a new instance of ShowDocsUrl # - # source://rubocop//lib/rubocop/cli/command/show_docs_url.rb#12 + # source://rubocop/lib/rubocop/cli/command/show_docs_url.rb#12 def initialize(env); end # @api private # - # source://rubocop//lib/rubocop/cli/command/show_docs_url.rb#18 + # source://rubocop/lib/rubocop/cli/command/show_docs_url.rb#18 def run; end private # @api private # - # source://rubocop//lib/rubocop/cli/command/show_docs_url.rb#38 + # source://rubocop/lib/rubocop/cli/command/show_docs_url.rb#38 def cops_array; end # @api private # - # source://rubocop//lib/rubocop/cli/command/show_docs_url.rb#24 + # source://rubocop/lib/rubocop/cli/command/show_docs_url.rb#24 def print_documentation_url; end # @api private # - # source://rubocop//lib/rubocop/cli/command/show_docs_url.rb#42 + # source://rubocop/lib/rubocop/cli/command/show_docs_url.rb#42 def registry_hash; end end @@ -536,89 +536,89 @@ end # # @api private # -# source://rubocop//lib/rubocop/cli/command/suggest_extensions.rb#11 +# source://rubocop/lib/rubocop/cli/command/suggest_extensions.rb#11 class RuboCop::CLI::Command::SuggestExtensions < ::RuboCop::CLI::Command::Base # @api private # - # source://rubocop//lib/rubocop/cli/command/suggest_extensions.rb#17 + # source://rubocop/lib/rubocop/cli/command/suggest_extensions.rb#17 def run; end private # @api private # - # source://rubocop//lib/rubocop/cli/command/suggest_extensions.rb#73 + # source://rubocop/lib/rubocop/cli/command/suggest_extensions.rb#73 def all_extensions; end # @api private # - # source://rubocop//lib/rubocop/cli/command/suggest_extensions.rb#69 + # source://rubocop/lib/rubocop/cli/command/suggest_extensions.rb#69 def current_formatter; end # @api private # - # source://rubocop//lib/rubocop/cli/command/suggest_extensions.rb#111 + # source://rubocop/lib/rubocop/cli/command/suggest_extensions.rb#111 def dependent_gems; end # @api private # - # source://rubocop//lib/rubocop/cli/command/suggest_extensions.rb#87 + # source://rubocop/lib/rubocop/cli/command/suggest_extensions.rb#87 def extensions; end # @api private # - # source://rubocop//lib/rubocop/cli/command/suggest_extensions.rb#103 + # source://rubocop/lib/rubocop/cli/command/suggest_extensions.rb#103 def installed_and_not_loaded_extensions; end # @api private # - # source://rubocop//lib/rubocop/cli/command/suggest_extensions.rb#91 + # source://rubocop/lib/rubocop/cli/command/suggest_extensions.rb#91 def installed_extensions; end # @api private # - # source://rubocop//lib/rubocop/cli/command/suggest_extensions.rb#115 + # source://rubocop/lib/rubocop/cli/command/suggest_extensions.rb#115 def installed_gems; end # @api private # - # source://rubocop//lib/rubocop/cli/command/suggest_extensions.rb#99 + # source://rubocop/lib/rubocop/cli/command/suggest_extensions.rb#99 def loaded_extensions; end # @api private # - # source://rubocop//lib/rubocop/cli/command/suggest_extensions.rb#107 + # source://rubocop/lib/rubocop/cli/command/suggest_extensions.rb#107 def lockfile; end # @api private # - # source://rubocop//lib/rubocop/cli/command/suggest_extensions.rb#95 + # source://rubocop/lib/rubocop/cli/command/suggest_extensions.rb#95 def not_installed_extensions; end # @api private # - # source://rubocop//lib/rubocop/cli/command/suggest_extensions.rb#41 + # source://rubocop/lib/rubocop/cli/command/suggest_extensions.rb#41 def print_install_suggestions; end # @api private # - # source://rubocop//lib/rubocop/cli/command/suggest_extensions.rb#51 + # source://rubocop/lib/rubocop/cli/command/suggest_extensions.rb#51 def print_load_suggestions; end # @api private # - # source://rubocop//lib/rubocop/cli/command/suggest_extensions.rb#60 + # source://rubocop/lib/rubocop/cli/command/suggest_extensions.rb#60 def print_opt_out_instruction; end # @api private # - # source://rubocop//lib/rubocop/cli/command/suggest_extensions.rb#119 + # source://rubocop/lib/rubocop/cli/command/suggest_extensions.rb#119 def puts(*args); end # @api private # @return [Boolean] # - # source://rubocop//lib/rubocop/cli/command/suggest_extensions.rb#30 + # source://rubocop/lib/rubocop/cli/command/suggest_extensions.rb#30 def skip?; end end @@ -626,84 +626,84 @@ end # # @api private # -# source://rubocop//lib/rubocop/cli/command/suggest_extensions.rb#13 +# source://rubocop/lib/rubocop/cli/command/suggest_extensions.rb#13 RuboCop::CLI::Command::SuggestExtensions::INCLUDED_FORMATTERS = T.let(T.unsafe(nil), Array) # Display version. # # @api private # -# source://rubocop//lib/rubocop/cli/command/version.rb#8 +# source://rubocop/lib/rubocop/cli/command/version.rb#8 class RuboCop::CLI::Command::Version < ::RuboCop::CLI::Command::Base # @api private # - # source://rubocop//lib/rubocop/cli/command/version.rb#11 + # source://rubocop/lib/rubocop/cli/command/version.rb#11 def run; end end -# source://rubocop//lib/rubocop/cli.rb#13 +# source://rubocop/lib/rubocop/cli.rb#13 RuboCop::CLI::DEFAULT_PARALLEL_OPTIONS = T.let(T.unsafe(nil), Array) # Execution environment for a CLI command. # # @api private # -# source://rubocop//lib/rubocop/cli/environment.rb#7 +# source://rubocop/lib/rubocop/cli/environment.rb#7 class RuboCop::CLI::Environment # @api private # @return [Environment] a new instance of Environment # - # source://rubocop//lib/rubocop/cli/environment.rb#10 + # source://rubocop/lib/rubocop/cli/environment.rb#10 def initialize(options, config_store, paths); end # @api private # - # source://rubocop//lib/rubocop/cli/environment.rb#8 + # source://rubocop/lib/rubocop/cli/environment.rb#8 def config_store; end # @api private # - # source://rubocop//lib/rubocop/cli/environment.rb#8 + # source://rubocop/lib/rubocop/cli/environment.rb#8 def options; end # @api private # - # source://rubocop//lib/rubocop/cli/environment.rb#8 + # source://rubocop/lib/rubocop/cli/environment.rb#8 def paths; end # Run a command in this environment. # # @api private # - # source://rubocop//lib/rubocop/cli/environment.rb#17 + # source://rubocop/lib/rubocop/cli/environment.rb#17 def run(name); end end -# source://rubocop//lib/rubocop/cli.rb#20 +# source://rubocop/lib/rubocop/cli.rb#20 class RuboCop::CLI::Finished < ::StandardError; end -# source://rubocop//lib/rubocop/cli.rb#11 +# source://rubocop/lib/rubocop/cli.rb#11 RuboCop::CLI::STATUS_ERROR = T.let(T.unsafe(nil), Integer) -# source://rubocop//lib/rubocop/cli.rb#12 +# source://rubocop/lib/rubocop/cli.rb#12 RuboCop::CLI::STATUS_INTERRUPTED = T.let(T.unsafe(nil), Integer) -# source://rubocop//lib/rubocop/cli.rb#10 +# source://rubocop/lib/rubocop/cli.rb#10 RuboCop::CLI::STATUS_OFFENSES = T.let(T.unsafe(nil), Integer) -# source://rubocop//lib/rubocop/cli.rb#9 +# source://rubocop/lib/rubocop/cli.rb#9 RuboCop::CLI::STATUS_SUCCESS = T.let(T.unsafe(nil), Integer) # This class represents the cache config of the caching RuboCop runs. # # @api private # -# source://rubocop//lib/rubocop/cache_config.rb#6 +# source://rubocop/lib/rubocop/cache_config.rb#6 class RuboCop::CacheConfig class << self # @api private # - # source://rubocop//lib/rubocop/cache_config.rb#7 + # source://rubocop/lib/rubocop/cache_config.rb#7 def root_dir; end end end @@ -712,22 +712,22 @@ end # # @api private # -# source://rubocop//lib/rubocop/cached_data.rb#8 +# source://rubocop/lib/rubocop/cached_data.rb#8 class RuboCop::CachedData # @api private # @return [CachedData] a new instance of CachedData # - # source://rubocop//lib/rubocop/cached_data.rb#9 + # source://rubocop/lib/rubocop/cached_data.rb#9 def initialize(filename); end # @api private # - # source://rubocop//lib/rubocop/cached_data.rb#13 + # source://rubocop/lib/rubocop/cached_data.rb#13 def from_json(text); end # @api private # - # source://rubocop//lib/rubocop/cached_data.rb#17 + # source://rubocop/lib/rubocop/cached_data.rb#17 def to_json(offenses); end private @@ -736,22 +736,22 @@ class RuboCop::CachedData # # @api private # - # source://rubocop//lib/rubocop/cached_data.rb#47 + # source://rubocop/lib/rubocop/cached_data.rb#47 def deserialize_offenses(offenses); end # @api private # - # source://rubocop//lib/rubocop/cached_data.rb#54 + # source://rubocop/lib/rubocop/cached_data.rb#54 def location_from_source_buffer(offense); end # @api private # - # source://rubocop//lib/rubocop/cached_data.rb#40 + # source://rubocop/lib/rubocop/cached_data.rb#40 def message(offense); end # @api private # - # source://rubocop//lib/rubocop/cached_data.rb#23 + # 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 @@ -760,133 +760,133 @@ class RuboCop::CachedData # # @api private # - # source://rubocop//lib/rubocop/cached_data.rb#67 + # 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. # -# source://rubocop//lib/rubocop/comment_config.rb#6 +# source://rubocop/lib/rubocop/comment_config.rb#6 class RuboCop::CommentConfig extend ::RuboCop::SimpleForwardable # @return [CommentConfig] a new instance of CommentConfig # - # source://rubocop//lib/rubocop/comment_config.rb#34 + # source://rubocop/lib/rubocop/comment_config.rb#34 def initialize(processed_source); end # @return [Boolean] # - # source://rubocop//lib/rubocop/comment_config.rb#63 + # source://rubocop/lib/rubocop/comment_config.rb#63 def comment_only_line?(line_number); end - # source://rubocop-ast/1.34.0/lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/1.37.0lib/rubocop/ast/utilities/simple_forwardable.rb#9 def config(*_arg0, **_arg1, &_arg2); end - # source://rubocop//lib/rubocop/comment_config.rb#51 + # source://rubocop/lib/rubocop/comment_config.rb#51 def cop_disabled_line_ranges; end # @return [Boolean] # - # source://rubocop//lib/rubocop/comment_config.rb#39 + # source://rubocop/lib/rubocop/comment_config.rb#39 def cop_enabled_at_line?(cop, line_number); end # @return [Boolean] # - # source://rubocop//lib/rubocop/comment_config.rb#47 + # source://rubocop/lib/rubocop/comment_config.rb#47 def cop_opted_in?(cop); end - # source://rubocop//lib/rubocop/comment_config.rb#55 + # source://rubocop/lib/rubocop/comment_config.rb#55 def extra_enabled_comments; end # Returns the value of attribute processed_source. # - # source://rubocop//lib/rubocop/comment_config.rb#30 + # source://rubocop/lib/rubocop/comment_config.rb#30 def processed_source; end - # source://rubocop-ast/1.34.0/lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/1.37.0lib/rubocop/ast/utilities/simple_forwardable.rb#9 def registry(*_arg0, **_arg1, &_arg2); end private - # source://rubocop//lib/rubocop/comment_config.rb#96 + # source://rubocop/lib/rubocop/comment_config.rb#96 def analyze; end - # source://rubocop//lib/rubocop/comment_config.rb#124 + # source://rubocop/lib/rubocop/comment_config.rb#124 def analyze_cop(analysis, directive); end - # source://rubocop//lib/rubocop/comment_config.rb#144 + # source://rubocop/lib/rubocop/comment_config.rb#144 def analyze_disabled(analysis, directive); end - # source://rubocop//lib/rubocop/comment_config.rb#155 + # source://rubocop/lib/rubocop/comment_config.rb#155 def analyze_rest(analysis, directive); end - # source://rubocop//lib/rubocop/comment_config.rb#135 + # source://rubocop/lib/rubocop/comment_config.rb#135 def analyze_single_line(analysis, directive); end - # source://rubocop//lib/rubocop/comment_config.rb#164 + # source://rubocop/lib/rubocop/comment_config.rb#164 def cop_line_ranges(analysis); end - # source://rubocop//lib/rubocop/comment_config.rb#170 + # source://rubocop/lib/rubocop/comment_config.rb#170 def each_directive; end - # source://rubocop//lib/rubocop/comment_config.rb#69 + # source://rubocop/lib/rubocop/comment_config.rb#69 def extra_enabled_comments_with_names(extras:, names:); end - # source://rubocop//lib/rubocop/comment_config.rb#190 + # source://rubocop/lib/rubocop/comment_config.rb#190 def handle_enable_all(directive, names, extras); end # Collect cops that have been disabled or enabled by name in a directive comment # so that `Lint/RedundantCopEnableDirective` can register offenses correctly. # - # source://rubocop//lib/rubocop/comment_config.rb#204 + # source://rubocop/lib/rubocop/comment_config.rb#204 def handle_switch(directive, names, extras); end - # source://rubocop//lib/rubocop/comment_config.rb#115 + # source://rubocop/lib/rubocop/comment_config.rb#115 def inject_disabled_cops_directives(analyses); end - # source://rubocop//lib/rubocop/comment_config.rb#183 + # source://rubocop/lib/rubocop/comment_config.rb#183 def non_comment_token_line_numbers; end - # source://rubocop//lib/rubocop/comment_config.rb#83 + # source://rubocop/lib/rubocop/comment_config.rb#83 def opt_in_cops; end - # source://rubocop//lib/rubocop/comment_config.rb#179 + # source://rubocop/lib/rubocop/comment_config.rb#179 def qualified_cop_name(cop_name); end end -# source://rubocop//lib/rubocop/comment_config.rb#9 +# source://rubocop/lib/rubocop/comment_config.rb#9 RuboCop::CommentConfig::CONFIG_DISABLED_LINE_RANGE_MIN = T.let(T.unsafe(nil), Float) # This class provides an API compatible with RuboCop::DirectiveComment # to be used for cops that are disabled in the config file # -# source://rubocop//lib/rubocop/comment_config.rb#13 +# source://rubocop/lib/rubocop/comment_config.rb#13 class RuboCop::CommentConfig::ConfigDisabledCopDirectiveComment include ::RuboCop::Ext::Comment # @return [ConfigDisabledCopDirectiveComment] a new instance of ConfigDisabledCopDirectiveComment # - # source://rubocop//lib/rubocop/comment_config.rb#21 + # source://rubocop/lib/rubocop/comment_config.rb#21 def initialize(cop_name); end # Returns the value of attribute line_number. # - # source://rubocop//lib/rubocop/comment_config.rb#16 + # source://rubocop/lib/rubocop/comment_config.rb#16 def line_number; end # Returns the value of attribute loc. # - # source://rubocop//lib/rubocop/comment_config.rb#16 + # source://rubocop/lib/rubocop/comment_config.rb#16 def loc; end # Returns the value of attribute text. # - # source://rubocop//lib/rubocop/comment_config.rb#16 + # source://rubocop/lib/rubocop/comment_config.rb#16 def text; end end -# source://rubocop//lib/rubocop/comment_config.rb#19 +# source://rubocop/lib/rubocop/comment_config.rb#19 class RuboCop::CommentConfig::ConfigDisabledCopDirectiveComment::Expression < ::Struct # Returns the value of attribute line # @@ -908,7 +908,7 @@ class RuboCop::CommentConfig::ConfigDisabledCopDirectiveComment::Expression < :: end end -# source://rubocop//lib/rubocop/comment_config.rb#18 +# source://rubocop/lib/rubocop/comment_config.rb#18 class RuboCop::CommentConfig::ConfigDisabledCopDirectiveComment::Loc < ::Struct # Returns the value of attribute expression # @@ -930,7 +930,7 @@ class RuboCop::CommentConfig::ConfigDisabledCopDirectiveComment::Loc < ::Struct end end -# source://rubocop//lib/rubocop/comment_config.rb#28 +# source://rubocop/lib/rubocop/comment_config.rb#28 class RuboCop::CommentConfig::CopAnalysis < ::Struct # Returns the value of attribute line_ranges # @@ -969,7 +969,7 @@ end # during a run of the rubocop program, if files in several # directories are inspected. # -# source://rubocop//lib/rubocop/config.rb#12 +# source://rubocop/lib/rubocop/config.rb#12 class RuboCop::Config include ::RuboCop::PathUtil include ::RuboCop::FileFinder @@ -977,26 +977,26 @@ class RuboCop::Config # @return [Config] a new instance of Config # - # source://rubocop//lib/rubocop/config.rb#30 + # source://rubocop/lib/rubocop/config.rb#30 def initialize(hash = T.unsafe(nil), loaded_path = T.unsafe(nil)); end - # source://rubocop-ast/1.34.0/lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/1.37.0lib/rubocop/ast/utilities/simple_forwardable.rb#9 def [](*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast/1.34.0/lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/1.37.0lib/rubocop/ast/utilities/simple_forwardable.rb#9 def []=(*_arg0, **_arg1, &_arg2); end # @return [Boolean] # - # source://rubocop//lib/rubocop/config.rb#170 + # source://rubocop/lib/rubocop/config.rb#170 def active_support_extensions_enabled?; end - # source://rubocop//lib/rubocop/config.rb#96 + # source://rubocop/lib/rubocop/config.rb#96 def add_excludes_from_higher_level(highest_config); end # @return [Boolean] # - # source://rubocop//lib/rubocop/config.rb#197 + # source://rubocop/lib/rubocop/config.rb#197 def allowed_camel_case_file?(file); end # Paths specified in configuration files starting with .rubocop are @@ -1005,69 +1005,69 @@ class RuboCop::Config # config/default.yml, for example, are not relative to RuboCop's config # directory since that wouldn't work. # - # source://rubocop//lib/rubocop/config.rb#241 + # source://rubocop/lib/rubocop/config.rb#241 def base_dir_for_path_parameters; end # @return [String, nil] # - # source://rubocop//lib/rubocop/config.rb#271 + # source://rubocop/lib/rubocop/config.rb#271 def bundler_lock_file_path; end - # source://rubocop//lib/rubocop/config.rb#51 + # source://rubocop/lib/rubocop/config.rb#51 def check; end # @api private # @return [Boolean] whether config for this badge has 'Include' or 'Exclude' keys # - # source://rubocop//lib/rubocop/config.rb#142 + # source://rubocop/lib/rubocop/config.rb#142 def clusivity_config_for_badge?(badge); end - # source://rubocop-ast/1.34.0/lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/1.37.0lib/rubocop/ast/utilities/simple_forwardable.rb#9 def delete(*_arg0, **_arg1, &_arg2); end - # source://rubocop//lib/rubocop/config.rb#108 + # source://rubocop/lib/rubocop/config.rb#108 def deprecation_check; end - # source://rubocop-ast/1.34.0/lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/1.37.0lib/rubocop/ast/utilities/simple_forwardable.rb#9 def dig(*_arg0, **_arg1, &_arg2); end # @return [Boolean] # - # source://rubocop//lib/rubocop/config.rb#162 + # source://rubocop/lib/rubocop/config.rb#162 def disabled_new_cops?; end - # source://rubocop-ast/1.34.0/lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/1.37.0lib/rubocop/ast/utilities/simple_forwardable.rb#9 def each(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast/1.34.0/lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/1.37.0lib/rubocop/ast/utilities/simple_forwardable.rb#9 def each_key(*_arg0, **_arg1, &_arg2); end # @return [Boolean] # - # source://rubocop//lib/rubocop/config.rb#166 + # source://rubocop/lib/rubocop/config.rb#166 def enabled_new_cops?; end - # source://rubocop-ast/1.34.0/lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/1.37.0lib/rubocop/ast/utilities/simple_forwardable.rb#9 def fetch(*_arg0, **_arg1, &_arg2); end # @return [Boolean] # - # source://rubocop//lib/rubocop/config.rb#219 + # source://rubocop/lib/rubocop/config.rb#219 def file_to_exclude?(file); end # @return [Boolean] # - # source://rubocop//lib/rubocop/config.rb#178 + # source://rubocop/lib/rubocop/config.rb#178 def file_to_include?(file); end - # source://rubocop//lib/rubocop/config.rb#158 + # source://rubocop/lib/rubocop/config.rb#158 def for_all_cops; end # Note: the 'Enabled' attribute is same as that returned by `for_cop` # # @return [Config] for the given cop merged with that of its department (if any) # - # source://rubocop//lib/rubocop/config.rb#128 + # source://rubocop/lib/rubocop/config.rb#128 def for_badge(badge); end # Note: the 'Enabled' attribute is calculated according to the department's @@ -1075,7 +1075,7 @@ class RuboCop::Config # # @return [Config] for the given cop / cop name. # - # source://rubocop//lib/rubocop/config.rb#122 + # source://rubocop/lib/rubocop/config.rb#122 def for_cop(cop); end # Note: the 'Enabled' attribute will be present only if specified @@ -1083,60 +1083,60 @@ class RuboCop::Config # # @return [Config] for the given department name. # - # source://rubocop//lib/rubocop/config.rb#153 + # source://rubocop/lib/rubocop/config.rb#153 def for_department(department_name); end # Returns target's locked gem versions (i.e. from Gemfile.lock or gems.locked) # - # source://rubocop//lib/rubocop/config.rb#296 + # source://rubocop/lib/rubocop/config.rb#296 def gem_versions_in_target; end - # source://rubocop//lib/rubocop/config.rb#300 + # source://rubocop/lib/rubocop/config.rb#300 def inspect; end # True if this is a config file that is shipped with RuboCop # # @return [Boolean] # - # source://rubocop//lib/rubocop/config.rb#76 + # source://rubocop/lib/rubocop/config.rb#76 def internal?; end - # source://rubocop-ast/1.34.0/lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/1.37.0lib/rubocop/ast/utilities/simple_forwardable.rb#9 def key?(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast/1.34.0/lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/1.37.0lib/rubocop/ast/utilities/simple_forwardable.rb#9 def keys(*_arg0, **_arg1, &_arg2); end - # source://rubocop//lib/rubocop/config.rb#47 + # source://rubocop/lib/rubocop/config.rb#47 def loaded_features; end # Returns the value of attribute loaded_path. # - # source://rubocop//lib/rubocop/config.rb#20 + # source://rubocop/lib/rubocop/config.rb#20 def loaded_path; end - # source://rubocop//lib/rubocop/config.rb#81 + # source://rubocop/lib/rubocop/config.rb#81 def make_excludes_absolute; end - # source://rubocop-ast/1.34.0/lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/1.37.0lib/rubocop/ast/utilities/simple_forwardable.rb#9 def map(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast/1.34.0/lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/1.37.0lib/rubocop/ast/utilities/simple_forwardable.rb#9 def merge(*_arg0, **_arg1, &_arg2); end - # source://rubocop//lib/rubocop/config.rb#251 + # source://rubocop/lib/rubocop/config.rb#251 def parser_engine; end - # source://rubocop//lib/rubocop/config.rb#232 + # source://rubocop/lib/rubocop/config.rb#232 def path_relative_to_config(path); end - # source://rubocop//lib/rubocop/config.rb#228 + # source://rubocop/lib/rubocop/config.rb#228 def patterns_to_exclude; end - # source://rubocop//lib/rubocop/config.rb#224 + # source://rubocop/lib/rubocop/config.rb#224 def patterns_to_include; end - # source://rubocop//lib/rubocop/config.rb#282 + # source://rubocop/lib/rubocop/config.rb#282 def pending_cops; end # Returns true if there's a chance that an Include pattern matches hidden @@ -1144,83 +1144,83 @@ class RuboCop::Config # # @return [Boolean] # - # source://rubocop//lib/rubocop/config.rb#211 + # source://rubocop/lib/rubocop/config.rb#211 def possibly_include_hidden?; end - # source://rubocop-ast/1.34.0/lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/1.37.0lib/rubocop/ast/utilities/simple_forwardable.rb#9 def replace(*_arg0, **_arg1, &_arg2); end - # source://rubocop//lib/rubocop/config.rb#71 + # source://rubocop/lib/rubocop/config.rb#71 def signature; end - # source://rubocop//lib/rubocop/config.rb#266 + # source://rubocop/lib/rubocop/config.rb#266 def smart_loaded_path; end # @return [Boolean] # - # source://rubocop//lib/rubocop/config.rb#174 + # source://rubocop/lib/rubocop/config.rb#174 def string_literals_frozen_by_default?; end - # source://rubocop//lib/rubocop/config.rb#255 + # source://rubocop/lib/rubocop/config.rb#255 def target_rails_version; end - # source://rubocop-ast/1.34.0/lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/1.37.0lib/rubocop/ast/utilities/simple_forwardable.rb#9 def target_ruby_version(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast/1.34.0/lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/1.37.0lib/rubocop/ast/utilities/simple_forwardable.rb#9 def to_h(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast/1.34.0/lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/1.37.0lib/rubocop/ast/utilities/simple_forwardable.rb#9 def to_hash(*_arg0, **_arg1, &_arg2); end - # source://rubocop//lib/rubocop/config.rb#67 + # source://rubocop/lib/rubocop/config.rb#67 def to_s; end - # source://rubocop-ast/1.34.0/lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/1.37.0lib/rubocop/ast/utilities/simple_forwardable.rb#9 def transform_values(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast/1.34.0/lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/1.37.0lib/rubocop/ast/utilities/simple_forwardable.rb#9 def validate(*_arg0, **_arg1, &_arg2); end - # source://rubocop//lib/rubocop/config.rb#58 + # source://rubocop/lib/rubocop/config.rb#58 def validate_after_resolution; end private - # source://rubocop//lib/rubocop/config.rb#350 + # source://rubocop/lib/rubocop/config.rb#350 def department_of(qualified_cop_name); end # @return [Boolean] # - # source://rubocop//lib/rubocop/config.rb#338 + # source://rubocop/lib/rubocop/config.rb#338 def enable_cop?(qualified_cop_name, cop_options); end # @param gem_version [Gem::Version] an object like `Gem::Version.new("7.1.2.3")` # @return [Float] The major and minor version, like `7.1` # - # source://rubocop//lib/rubocop/config.rb#325 + # source://rubocop/lib/rubocop/config.rb#325 def gem_version_to_major_minor_float(gem_version); end - # source://rubocop//lib/rubocop/config.rb#331 + # source://rubocop/lib/rubocop/config.rb#331 def read_gem_versions_from_target_lockfile; end # @return [Float, nil] The Rails version as a `major.minor` Float. # - # source://rubocop//lib/rubocop/config.rb#312 + # source://rubocop/lib/rubocop/config.rb#312 def read_rails_version_from_bundler_lock_file; end # @return [Float, nil] The Rails version as a `major.minor` Float. # - # source://rubocop//lib/rubocop/config.rb#307 + # source://rubocop/lib/rubocop/config.rb#307 def target_rails_version_from_bundler_lock_file; end class << self - # source://rubocop//lib/rubocop/config.rb#22 + # source://rubocop/lib/rubocop/config.rb#22 def create(hash, path, check: T.unsafe(nil)); end end end -# source://rubocop//lib/rubocop/config.rb#17 +# source://rubocop/lib/rubocop/config.rb#17 class RuboCop::Config::CopConfig < ::Struct # Returns the value of attribute metadata # @@ -1253,21 +1253,21 @@ class RuboCop::Config::CopConfig < ::Struct end end -# source://rubocop//lib/rubocop/config.rb#19 +# source://rubocop/lib/rubocop/config.rb#19 RuboCop::Config::DEFAULT_RAILS_VERSION = T.let(T.unsafe(nil), Float) # This class has methods related to finding configuration path. # # @api private # -# source://rubocop//lib/rubocop/config_finder.rb#8 +# source://rubocop/lib/rubocop/config_finder.rb#8 class RuboCop::ConfigFinder extend ::RuboCop::FileFinder class << self # @api private # - # source://rubocop//lib/rubocop/config_finder.rb#19 + # source://rubocop/lib/rubocop/config_finder.rb#19 def find_config_path(target_dir); end # Returns the path RuboCop inferred as the root of the project. No file @@ -1275,66 +1275,66 @@ class RuboCop::ConfigFinder # # @api private # - # source://rubocop//lib/rubocop/config_finder.rb#26 + # source://rubocop/lib/rubocop/config_finder.rb#26 def project_root; end # @api private # - # source://rubocop//lib/rubocop/config_finder.rb#17 + # source://rubocop/lib/rubocop/config_finder.rb#17 def project_root=(_arg0); end private # @api private # - # source://rubocop//lib/rubocop/config_finder.rb#69 + # source://rubocop/lib/rubocop/config_finder.rb#69 def expand_path(path); end # @api private # - # source://rubocop//lib/rubocop/config_finder.rb#40 + # source://rubocop/lib/rubocop/config_finder.rb#40 def find_project_dotfile(target_dir); end # @api private # - # source://rubocop//lib/rubocop/config_finder.rb#32 + # source://rubocop/lib/rubocop/config_finder.rb#32 def find_project_root; end # @api private # - # source://rubocop//lib/rubocop/config_finder.rb#44 + # source://rubocop/lib/rubocop/config_finder.rb#44 def find_project_root_dot_config; end # @api private # - # source://rubocop//lib/rubocop/config_finder.rb#54 + # source://rubocop/lib/rubocop/config_finder.rb#54 def find_user_dotfile; end # @api private # - # source://rubocop//lib/rubocop/config_finder.rb#62 + # source://rubocop/lib/rubocop/config_finder.rb#62 def find_user_xdg_config; end end end # @api private # -# source://rubocop//lib/rubocop/config_finder.rb#12 +# source://rubocop/lib/rubocop/config_finder.rb#12 RuboCop::ConfigFinder::DEFAULT_FILE = T.let(T.unsafe(nil), String) # @api private # -# source://rubocop//lib/rubocop/config_finder.rb#9 +# source://rubocop/lib/rubocop/config_finder.rb#9 RuboCop::ConfigFinder::DOTFILE = T.let(T.unsafe(nil), String) # @api private # -# source://rubocop//lib/rubocop/config_finder.rb#11 +# source://rubocop/lib/rubocop/config_finder.rb#11 RuboCop::ConfigFinder::RUBOCOP_HOME = T.let(T.unsafe(nil), String) # @api private # -# source://rubocop//lib/rubocop/config_finder.rb#10 +# source://rubocop/lib/rubocop/config_finder.rb#10 RuboCop::ConfigFinder::XDG_CONFIG = T.let(T.unsafe(nil), String) # This class represents the configuration of the RuboCop application @@ -1343,12 +1343,12 @@ RuboCop::ConfigFinder::XDG_CONFIG = T.let(T.unsafe(nil), String) # during a run of the rubocop program, if files in several # directories are inspected. # -# source://rubocop//lib/rubocop/config_loader.rb#17 +# source://rubocop/lib/rubocop/config_loader.rb#17 class RuboCop::ConfigLoader extend ::RuboCop::FileFinder class << self - # source://rubocop//lib/rubocop/config_loader.rb#137 + # source://rubocop/lib/rubocop/config_loader.rb#137 def add_excludes_from_files(config, config_file); end # Used to add features that were required inside a config or from @@ -1356,13 +1356,13 @@ class RuboCop::ConfigLoader # # @api private # - # source://rubocop//lib/rubocop/config_loader.rb#198 + # source://rubocop/lib/rubocop/config_loader.rb#198 def add_loaded_features(loaded_features); end - # source://rubocop//lib/rubocop/config_loader.rb#80 + # source://rubocop/lib/rubocop/config_loader.rb#80 def add_missing_namespaces(path, hash); end - # source://rubocop//lib/rubocop/config_loader.rb#41 + # source://rubocop/lib/rubocop/config_loader.rb#41 def clear_options; end # Returns the path of .rubocop.yml searching upwards in the @@ -1371,128 +1371,128 @@ class RuboCop::ConfigLoader # user's home directory is checked. If there's no .rubocop.yml # there either, the path to the default file is returned. # - # source://rubocop//lib/rubocop/config_loader.rb#104 + # source://rubocop/lib/rubocop/config_loader.rb#104 def configuration_file_for(target_dir); end - # source://rubocop//lib/rubocop/config_loader.rb#108 + # source://rubocop/lib/rubocop/config_loader.rb#108 def configuration_from_file(config_file, check: T.unsafe(nil)); end # Returns the value of attribute debug. # - # source://rubocop//lib/rubocop/config_loader.rb#33 + # source://rubocop/lib/rubocop/config_loader.rb#33 def debug; end # Sets the attribute debug # # @param value the value to set the attribute debug to. # - # source://rubocop//lib/rubocop/config_loader.rb#33 + # source://rubocop/lib/rubocop/config_loader.rb#33 def debug=(_arg0); end # Returns the value of attribute debug. # - # source://rubocop//lib/rubocop/config_loader.rb#33 + # source://rubocop/lib/rubocop/config_loader.rb#33 def debug?; end - # source://rubocop//lib/rubocop/config_loader.rb#147 + # source://rubocop/lib/rubocop/config_loader.rb#147 def default_configuration; end # Sets the attribute default_configuration # # @param value the value to set the attribute default_configuration to. # - # source://rubocop//lib/rubocop/config_loader.rb#35 + # source://rubocop/lib/rubocop/config_loader.rb#35 def default_configuration=(_arg0); end # Returns the value of attribute disable_pending_cops. # - # source://rubocop//lib/rubocop/config_loader.rb#33 + # source://rubocop/lib/rubocop/config_loader.rb#33 def disable_pending_cops; end # Sets the attribute disable_pending_cops # # @param value the value to set the attribute disable_pending_cops to. # - # source://rubocop//lib/rubocop/config_loader.rb#33 + # source://rubocop/lib/rubocop/config_loader.rb#33 def disable_pending_cops=(_arg0); end # Returns the value of attribute enable_pending_cops. # - # source://rubocop//lib/rubocop/config_loader.rb#33 + # source://rubocop/lib/rubocop/config_loader.rb#33 def enable_pending_cops; end # Sets the attribute enable_pending_cops # # @param value the value to set the attribute enable_pending_cops to. # - # source://rubocop//lib/rubocop/config_loader.rb#33 + # source://rubocop/lib/rubocop/config_loader.rb#33 def enable_pending_cops=(_arg0); end # Returns the value of attribute ignore_parent_exclusion. # - # source://rubocop//lib/rubocop/config_loader.rb#33 + # source://rubocop/lib/rubocop/config_loader.rb#33 def ignore_parent_exclusion; end # Sets the attribute ignore_parent_exclusion # # @param value the value to set the attribute ignore_parent_exclusion to. # - # source://rubocop//lib/rubocop/config_loader.rb#33 + # source://rubocop/lib/rubocop/config_loader.rb#33 def ignore_parent_exclusion=(_arg0); end # Returns the value of attribute ignore_parent_exclusion. # - # source://rubocop//lib/rubocop/config_loader.rb#33 + # source://rubocop/lib/rubocop/config_loader.rb#33 def ignore_parent_exclusion?; end # Returns the value of attribute ignore_unrecognized_cops. # - # source://rubocop//lib/rubocop/config_loader.rb#33 + # source://rubocop/lib/rubocop/config_loader.rb#33 def ignore_unrecognized_cops; end # Sets the attribute ignore_unrecognized_cops # # @param value the value to set the attribute ignore_unrecognized_cops to. # - # source://rubocop//lib/rubocop/config_loader.rb#33 + # source://rubocop/lib/rubocop/config_loader.rb#33 def ignore_unrecognized_cops=(_arg0); end # @api private # - # source://rubocop//lib/rubocop/config_loader.rb#155 + # source://rubocop/lib/rubocop/config_loader.rb#155 def inject_defaults!(project_root); end - # source://rubocop//lib/rubocop/config_loader.rb#47 + # source://rubocop/lib/rubocop/config_loader.rb#47 def load_file(file, check: T.unsafe(nil)); end # @raise [TypeError] # - # source://rubocop//lib/rubocop/config_loader.rb#67 + # source://rubocop/lib/rubocop/config_loader.rb#67 def load_yaml_configuration(absolute_path); end # Returns the value of attribute loaded_features. # - # source://rubocop//lib/rubocop/config_loader.rb#36 + # source://rubocop/lib/rubocop/config_loader.rb#36 def loaded_features; end # Return a recursive merge of two hashes. That is, a normal hash merge, # with the addition that any value that is a hash, and occurs in both # arguments, will also be merged. And so on. # - # source://rubocop//lib/rubocop/config_loader.rb#95 + # source://rubocop/lib/rubocop/config_loader.rb#95 def merge(base_hash, derived_hash); end # Merges the given configuration with the default one. # - # source://rubocop//lib/rubocop/config_loader.rb#191 + # source://rubocop/lib/rubocop/config_loader.rb#191 def merge_with_default(config, config_file, unset_nil: T.unsafe(nil)); end - # source://rubocop//lib/rubocop/config_loader.rb#128 + # source://rubocop/lib/rubocop/config_loader.rb#128 def pending_cops_only_qualified(pending_cops); end # @return [Boolean] # - # source://rubocop//lib/rubocop/config_loader.rb#132 + # source://rubocop/lib/rubocop/config_loader.rb#132 def possible_new_cops?(config); end # Returns the path RuboCop inferred as the root of the project. No file @@ -1500,55 +1500,55 @@ class RuboCop::ConfigLoader # # @deprecated Use `RuboCop::ConfigFinder.project_root` instead. # - # source://rubocop//lib/rubocop/config_loader.rb#166 + # source://rubocop/lib/rubocop/config_loader.rb#166 def project_root; end - # source://rubocop//lib/rubocop/config_loader.rb#175 + # source://rubocop/lib/rubocop/config_loader.rb#175 def warn_on_pending_cops(pending_cops); end - # source://rubocop//lib/rubocop/config_loader.rb#183 + # source://rubocop/lib/rubocop/config_loader.rb#183 def warn_pending_cop(cop); end private - # source://rubocop//lib/rubocop/config_loader.rb#212 + # source://rubocop/lib/rubocop/config_loader.rb#212 def check_duplication(yaml_code, absolute_path); end - # source://rubocop//lib/rubocop/config_loader.rb#204 + # source://rubocop/lib/rubocop/config_loader.rb#204 def file_path(file); end # Read the specified file, or exit with a friendly, concise message on # stderr. Care is taken to use the standard OS exit code for a "file not # found" error. # - # source://rubocop//lib/rubocop/config_loader.rb#232 + # source://rubocop/lib/rubocop/config_loader.rb#232 def read_file(absolute_path); end - # source://rubocop//lib/rubocop/config_loader.rb#208 + # source://rubocop/lib/rubocop/config_loader.rb#208 def resolver; end - # source://rubocop//lib/rubocop/config_loader.rb#238 + # source://rubocop/lib/rubocop/config_loader.rb#238 def yaml_tree_to_hash(yaml_tree); end - # source://rubocop//lib/rubocop/config_loader.rb#248 + # source://rubocop/lib/rubocop/config_loader.rb#248 def yaml_tree_to_hash!(yaml_tree); end end end -# source://rubocop//lib/rubocop/config_loader.rb#20 +# source://rubocop/lib/rubocop/config_loader.rb#20 RuboCop::ConfigLoader::DEFAULT_FILE = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/config_loader.rb#18 +# source://rubocop/lib/rubocop/config_loader.rb#18 RuboCop::ConfigLoader::DOTFILE = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/config_loader.rb#19 +# source://rubocop/lib/rubocop/config_loader.rb#19 RuboCop::ConfigLoader::RUBOCOP_HOME = T.let(T.unsafe(nil), String) # A help class for ConfigLoader that handles configuration resolution. # # @api private # -# source://rubocop//lib/rubocop/config_loader_resolver.rb#9 +# source://rubocop/lib/rubocop/config_loader_resolver.rb#9 class RuboCop::ConfigLoaderResolver # When one .rubocop.yml file inherits from another .rubocop.yml file, the Include paths in the # base configuration are relative to the directory where the base configuration file is. For the @@ -1557,7 +1557,7 @@ class RuboCop::ConfigLoaderResolver # # @api private # - # source://rubocop//lib/rubocop/config_loader_resolver.rb#45 + # source://rubocop/lib/rubocop/config_loader_resolver.rb#45 def fix_include_paths(base_config_path, hash, path, key, value); end # Return a recursive merge of two hashes. That is, a normal hash merge, @@ -1567,7 +1567,7 @@ class RuboCop::ConfigLoaderResolver # # @api private # - # source://rubocop//lib/rubocop/config_loader_resolver.rb#99 + # source://rubocop/lib/rubocop/config_loader_resolver.rb#99 def merge(base_hash, derived_hash, **opts); end # Merges the given configuration with the default one. If @@ -1578,7 +1578,7 @@ class RuboCop::ConfigLoaderResolver # # @api private # - # source://rubocop//lib/rubocop/config_loader_resolver.rb#75 + # source://rubocop/lib/rubocop/config_loader_resolver.rb#75 def merge_with_default(config, config_file, unset_nil:); end # An `Enabled: true` setting in user configuration for a cop overrides an @@ -1586,7 +1586,7 @@ class RuboCop::ConfigLoaderResolver # # @api private # - # source://rubocop//lib/rubocop/config_loader_resolver.rb#119 + # source://rubocop/lib/rubocop/config_loader_resolver.rb#119 def override_department_setting_for_cops(base_hash, derived_hash); end # If a cop was previously explicitly enabled, but then superseded by the @@ -1594,135 +1594,135 @@ class RuboCop::ConfigLoaderResolver # # @api private # - # source://rubocop//lib/rubocop/config_loader_resolver.rb#136 + # source://rubocop/lib/rubocop/config_loader_resolver.rb#136 def override_enabled_for_disabled_departments(base_hash, derived_hash); end # @api private # - # source://rubocop//lib/rubocop/config_loader_resolver.rb#19 + # source://rubocop/lib/rubocop/config_loader_resolver.rb#19 def resolve_inheritance(path, hash, file, debug); end # @api private # - # source://rubocop//lib/rubocop/config_loader_resolver.rb#55 + # source://rubocop/lib/rubocop/config_loader_resolver.rb#55 def resolve_inheritance_from_gems(hash); end # @api private # - # source://rubocop//lib/rubocop/config_loader_resolver.rb#10 + # source://rubocop/lib/rubocop/config_loader_resolver.rb#10 def resolve_requires(path, hash); end private # @api private # - # source://rubocop//lib/rubocop/config_loader_resolver.rb#208 + # source://rubocop/lib/rubocop/config_loader_resolver.rb#208 def base_configs(path, inherit_from, file); end # @api private # - # source://rubocop//lib/rubocop/config_loader_resolver.rb#176 + # source://rubocop/lib/rubocop/config_loader_resolver.rb#176 def determine_inherit_mode(hash, key); end # @api private # @return [Boolean] # - # source://rubocop//lib/rubocop/config_loader_resolver.rb#152 + # source://rubocop/lib/rubocop/config_loader_resolver.rb#152 def disabled?(hash, department); end # @api private # @return [Boolean] # - # source://rubocop//lib/rubocop/config_loader_resolver.rb#156 + # source://rubocop/lib/rubocop/config_loader_resolver.rb#156 def duplicate_setting?(base_hash, derived_hash, key, inherited_file); end # @api private # - # source://rubocop//lib/rubocop/config_loader_resolver.rb#267 + # source://rubocop/lib/rubocop/config_loader_resolver.rb#267 def gem_config_path(gem_name, relative_config_path); end # @api private # - # source://rubocop//lib/rubocop/config_loader_resolver.rb#245 + # source://rubocop/lib/rubocop/config_loader_resolver.rb#245 def handle_disabled_by_default(config, new_default_configuration); end # @api private # - # source://rubocop//lib/rubocop/config_loader_resolver.rb#220 + # source://rubocop/lib/rubocop/config_loader_resolver.rb#220 def inherited_file(path, inherit_from, file); end # @api private # @return [Boolean] # - # source://rubocop//lib/rubocop/config_loader_resolver.rb#204 + # source://rubocop/lib/rubocop/config_loader_resolver.rb#204 def merge_hashes?(base_hash, derived_hash, key); end # @api private # @return [Boolean] # - # source://rubocop//lib/rubocop/config_loader_resolver.rb#241 + # source://rubocop/lib/rubocop/config_loader_resolver.rb#241 def remote_file?(uri); end # @api private # @return [Boolean] # - # source://rubocop//lib/rubocop/config_loader_resolver.rb#196 + # source://rubocop/lib/rubocop/config_loader_resolver.rb#196 def should_merge?(mode, key); end # @api private # @return [Boolean] # - # source://rubocop//lib/rubocop/config_loader_resolver.rb#200 + # source://rubocop/lib/rubocop/config_loader_resolver.rb#200 def should_override?(mode, key); end # @api private # @return [Boolean] # - # source://rubocop//lib/rubocop/config_loader_resolver.rb#182 + # source://rubocop/lib/rubocop/config_loader_resolver.rb#182 def should_union?(derived_hash, base_hash, root_mode, key); end # @api private # - # source://rubocop//lib/rubocop/config_loader_resolver.rb#263 + # source://rubocop/lib/rubocop/config_loader_resolver.rb#263 def transform(config, &block); end # @api private # - # source://rubocop//lib/rubocop/config_loader_resolver.rb#165 + # source://rubocop/lib/rubocop/config_loader_resolver.rb#165 def warn_on_duplicate_setting(base_hash, derived_hash, key, **opts); end end # Raised when a RuboCop configuration file is not found. # -# source://rubocop//lib/rubocop/config_loader.rb#9 +# source://rubocop/lib/rubocop/config_loader.rb#9 class RuboCop::ConfigNotFoundError < ::RuboCop::Error; end # This class handles obsolete configuration. # # @api private # -# source://rubocop//lib/rubocop/config_obsoletion/rule.rb#4 +# source://rubocop/lib/rubocop/config_obsoletion/rule.rb#4 class RuboCop::ConfigObsoletion # @api private # @return [ConfigObsoletion] a new instance of ConfigObsoletion # - # source://rubocop//lib/rubocop/config_obsoletion.rb#35 + # source://rubocop/lib/rubocop/config_obsoletion.rb#35 def initialize(config); end # @api private # @raise [ValidationError] # - # source://rubocop//lib/rubocop/config_obsoletion.rb#41 + # source://rubocop/lib/rubocop/config_obsoletion.rb#41 def reject_obsolete!; end # @api private # - # source://rubocop//lib/rubocop/config_obsoletion.rb#21 + # source://rubocop/lib/rubocop/config_obsoletion.rb#21 def rules; end # @api private # - # source://rubocop//lib/rubocop/config_obsoletion.rb#21 + # source://rubocop/lib/rubocop/config_obsoletion.rb#21 def warnings; end private @@ -1731,7 +1731,7 @@ class RuboCop::ConfigObsoletion # # @api private # - # source://rubocop//lib/rubocop/config_obsoletion.rb#72 + # source://rubocop/lib/rubocop/config_obsoletion.rb#72 def load_cop_rules(rules); end # Parameter rules may apply to multiple cops and multiple parameters @@ -1740,7 +1740,7 @@ class RuboCop::ConfigObsoletion # # @api private # - # source://rubocop//lib/rubocop/config_obsoletion.rb#85 + # source://rubocop/lib/rubocop/config_obsoletion.rb#85 def load_parameter_rules(rules); end # Default rules for obsoletions are in config/obsoletion.yml @@ -1748,116 +1748,116 @@ class RuboCop::ConfigObsoletion # # @api private # - # source://rubocop//lib/rubocop/config_obsoletion.rb#52 + # source://rubocop/lib/rubocop/config_obsoletion.rb#52 def load_rules; end # @api private # - # source://rubocop//lib/rubocop/config_obsoletion.rb#98 + # source://rubocop/lib/rubocop/config_obsoletion.rb#98 def obsoletions; end class << self # @api private # - # source://rubocop//lib/rubocop/config_obsoletion.rb#24 + # source://rubocop/lib/rubocop/config_obsoletion.rb#24 def files; end # @api private # - # source://rubocop//lib/rubocop/config_obsoletion.rb#24 + # source://rubocop/lib/rubocop/config_obsoletion.rb#24 def files=(_arg0); end # @api private # - # source://rubocop//lib/rubocop/config_obsoletion.rb#26 + # source://rubocop/lib/rubocop/config_obsoletion.rb#26 def legacy_cop_names; end end end # @api private # -# source://rubocop//lib/rubocop/config_obsoletion.rb#8 +# source://rubocop/lib/rubocop/config_obsoletion.rb#8 RuboCop::ConfigObsoletion::COP_RULE_CLASSES = T.let(T.unsafe(nil), Hash) # Encapsulation of a ConfigObsoletion rule for changing a parameter # # @api private # -# source://rubocop//lib/rubocop/config_obsoletion/changed_enforced_styles.rb#7 +# source://rubocop/lib/rubocop/config_obsoletion/changed_enforced_styles.rb#7 class RuboCop::ConfigObsoletion::ChangedEnforcedStyles < ::RuboCop::ConfigObsoletion::ParameterRule # @api private # - # source://rubocop//lib/rubocop/config_obsoletion/changed_enforced_styles.rb#14 + # source://rubocop/lib/rubocop/config_obsoletion/changed_enforced_styles.rb#14 def message; end # @api private # @return [Boolean] # - # source://rubocop//lib/rubocop/config_obsoletion/changed_enforced_styles.rb#10 + # source://rubocop/lib/rubocop/config_obsoletion/changed_enforced_styles.rb#10 def violated?; end private # @api private # - # source://rubocop//lib/rubocop/config_obsoletion/changed_enforced_styles.rb#28 + # source://rubocop/lib/rubocop/config_obsoletion/changed_enforced_styles.rb#28 def value; end end # @api private # -# source://rubocop//lib/rubocop/config_obsoletion/changed_enforced_styles.rb#8 +# source://rubocop/lib/rubocop/config_obsoletion/changed_enforced_styles.rb#8 RuboCop::ConfigObsoletion::ChangedEnforcedStyles::BASE_MESSAGE = T.let(T.unsafe(nil), String) # Encapsulation of a ConfigObsoletion rule for changing a parameter # # @api private # -# source://rubocop//lib/rubocop/config_obsoletion/changed_parameter.rb#7 +# source://rubocop/lib/rubocop/config_obsoletion/changed_parameter.rb#7 class RuboCop::ConfigObsoletion::ChangedParameter < ::RuboCop::ConfigObsoletion::ParameterRule # @api private # - # source://rubocop//lib/rubocop/config_obsoletion/changed_parameter.rb#10 + # source://rubocop/lib/rubocop/config_obsoletion/changed_parameter.rb#10 def message; end end # @api private # -# source://rubocop//lib/rubocop/config_obsoletion/changed_parameter.rb#8 +# source://rubocop/lib/rubocop/config_obsoletion/changed_parameter.rb#8 RuboCop::ConfigObsoletion::ChangedParameter::BASE_MESSAGE = T.let(T.unsafe(nil), String) # Base class for ConfigObsoletion rules relating to cops # # @api private # -# source://rubocop//lib/rubocop/config_obsoletion/cop_rule.rb#7 +# source://rubocop/lib/rubocop/config_obsoletion/cop_rule.rb#7 class RuboCop::ConfigObsoletion::CopRule < ::RuboCop::ConfigObsoletion::Rule # @api private # @return [CopRule] a new instance of CopRule # - # source://rubocop//lib/rubocop/config_obsoletion/cop_rule.rb#10 + # source://rubocop/lib/rubocop/config_obsoletion/cop_rule.rb#10 def initialize(config, old_name); end # @api private # @return [Boolean] # - # source://rubocop//lib/rubocop/config_obsoletion/cop_rule.rb#15 + # source://rubocop/lib/rubocop/config_obsoletion/cop_rule.rb#15 def cop_rule?; end # @api private # - # source://rubocop//lib/rubocop/config_obsoletion/cop_rule.rb#19 + # source://rubocop/lib/rubocop/config_obsoletion/cop_rule.rb#19 def message; end # @api private # - # source://rubocop//lib/rubocop/config_obsoletion/cop_rule.rb#8 + # source://rubocop/lib/rubocop/config_obsoletion/cop_rule.rb#8 def old_name; end # @api private # @return [Boolean] # - # source://rubocop//lib/rubocop/config_obsoletion/cop_rule.rb#28 + # source://rubocop/lib/rubocop/config_obsoletion/cop_rule.rb#28 def violated?; end # Cop rules currently can only be failures, not warnings @@ -1865,13 +1865,13 @@ class RuboCop::ConfigObsoletion::CopRule < ::RuboCop::ConfigObsoletion::Rule # @api private # @return [Boolean] # - # source://rubocop//lib/rubocop/config_obsoletion/cop_rule.rb#24 + # source://rubocop/lib/rubocop/config_obsoletion/cop_rule.rb#24 def warning?; end end # @api private # -# source://rubocop//lib/rubocop/config_obsoletion.rb#7 +# source://rubocop/lib/rubocop/config_obsoletion.rb#7 RuboCop::ConfigObsoletion::DEFAULT_RULES_FILE = T.let(T.unsafe(nil), String) # Encapsulation of a ConfigObsoletion rule for splitting a cop's @@ -1879,130 +1879,130 @@ RuboCop::ConfigObsoletion::DEFAULT_RULES_FILE = T.let(T.unsafe(nil), String) # # @api private # -# source://rubocop//lib/rubocop/config_obsoletion/extracted_cop.rb#8 +# source://rubocop/lib/rubocop/config_obsoletion/extracted_cop.rb#8 class RuboCop::ConfigObsoletion::ExtractedCop < ::RuboCop::ConfigObsoletion::CopRule # @api private # @return [ExtractedCop] a new instance of ExtractedCop # - # source://rubocop//lib/rubocop/config_obsoletion/extracted_cop.rb#11 + # source://rubocop/lib/rubocop/config_obsoletion/extracted_cop.rb#11 def initialize(config, old_name, gem); end # @api private # - # source://rubocop//lib/rubocop/config_obsoletion/extracted_cop.rb#9 + # source://rubocop/lib/rubocop/config_obsoletion/extracted_cop.rb#9 def department; end # @api private # - # source://rubocop//lib/rubocop/config_obsoletion/extracted_cop.rb#9 + # source://rubocop/lib/rubocop/config_obsoletion/extracted_cop.rb#9 def gem; end # @api private # - # source://rubocop//lib/rubocop/config_obsoletion/extracted_cop.rb#23 + # source://rubocop/lib/rubocop/config_obsoletion/extracted_cop.rb#23 def rule_message; end # @api private # @return [Boolean] # - # source://rubocop//lib/rubocop/config_obsoletion/extracted_cop.rb#17 + # source://rubocop/lib/rubocop/config_obsoletion/extracted_cop.rb#17 def violated?; end private # @api private # - # source://rubocop//lib/rubocop/config_obsoletion/extracted_cop.rb#32 + # source://rubocop/lib/rubocop/config_obsoletion/extracted_cop.rb#32 def affected_cops; end # @api private # @return [Boolean] # - # source://rubocop//lib/rubocop/config_obsoletion/extracted_cop.rb#41 + # source://rubocop/lib/rubocop/config_obsoletion/extracted_cop.rb#41 def feature_loaded?; end end # @api private # -# source://rubocop//lib/rubocop/config_obsoletion.rb#18 +# source://rubocop/lib/rubocop/config_obsoletion.rb#18 RuboCop::ConfigObsoletion::LOAD_RULES_CACHE = T.let(T.unsafe(nil), Hash) # @api private # -# source://rubocop//lib/rubocop/config_obsoletion.rb#14 +# source://rubocop/lib/rubocop/config_obsoletion.rb#14 RuboCop::ConfigObsoletion::PARAMETER_RULE_CLASSES = T.let(T.unsafe(nil), Hash) # Base class for ConfigObsoletion rules relating to parameters # # @api private # -# source://rubocop//lib/rubocop/config_obsoletion/parameter_rule.rb#7 +# source://rubocop/lib/rubocop/config_obsoletion/parameter_rule.rb#7 class RuboCop::ConfigObsoletion::ParameterRule < ::RuboCop::ConfigObsoletion::Rule # @api private # @return [ParameterRule] a new instance of ParameterRule # - # source://rubocop//lib/rubocop/config_obsoletion/parameter_rule.rb#10 + # source://rubocop/lib/rubocop/config_obsoletion/parameter_rule.rb#10 def initialize(config, cop, parameter, metadata); end # @api private # - # source://rubocop//lib/rubocop/config_obsoletion/parameter_rule.rb#8 + # source://rubocop/lib/rubocop/config_obsoletion/parameter_rule.rb#8 def cop; end # @api private # - # source://rubocop//lib/rubocop/config_obsoletion/parameter_rule.rb#8 + # source://rubocop/lib/rubocop/config_obsoletion/parameter_rule.rb#8 def metadata; end # @api private # - # source://rubocop//lib/rubocop/config_obsoletion/parameter_rule.rb#8 + # source://rubocop/lib/rubocop/config_obsoletion/parameter_rule.rb#8 def parameter; end # @api private # @return [Boolean] # - # source://rubocop//lib/rubocop/config_obsoletion/parameter_rule.rb#17 + # source://rubocop/lib/rubocop/config_obsoletion/parameter_rule.rb#17 def parameter_rule?; end # @api private # @return [Boolean] # - # source://rubocop//lib/rubocop/config_obsoletion/parameter_rule.rb#21 + # source://rubocop/lib/rubocop/config_obsoletion/parameter_rule.rb#21 def violated?; end # @api private # @return [Boolean] # - # source://rubocop//lib/rubocop/config_obsoletion/parameter_rule.rb#25 + # source://rubocop/lib/rubocop/config_obsoletion/parameter_rule.rb#25 def warning?; end private # @api private # - # source://rubocop//lib/rubocop/config_obsoletion/parameter_rule.rb#39 + # source://rubocop/lib/rubocop/config_obsoletion/parameter_rule.rb#39 def alternative; end # @api private # - # source://rubocop//lib/rubocop/config_obsoletion/parameter_rule.rb#43 + # source://rubocop/lib/rubocop/config_obsoletion/parameter_rule.rb#43 def alternatives; end # @api private # @return [Boolean] # - # source://rubocop//lib/rubocop/config_obsoletion/parameter_rule.rb#31 + # source://rubocop/lib/rubocop/config_obsoletion/parameter_rule.rb#31 def applies_to_current_ruby_version?; end # @api private # - # source://rubocop//lib/rubocop/config_obsoletion/parameter_rule.rb#47 + # source://rubocop/lib/rubocop/config_obsoletion/parameter_rule.rb#47 def reason; end # @api private # - # source://rubocop//lib/rubocop/config_obsoletion/parameter_rule.rb#51 + # source://rubocop/lib/rubocop/config_obsoletion/parameter_rule.rb#51 def severity; end end @@ -2011,45 +2011,45 @@ end # # @api private # -# source://rubocop//lib/rubocop/config_obsoletion/removed_cop.rb#8 +# source://rubocop/lib/rubocop/config_obsoletion/removed_cop.rb#8 class RuboCop::ConfigObsoletion::RemovedCop < ::RuboCop::ConfigObsoletion::CopRule # @api private # @return [RemovedCop] a new instance of RemovedCop # - # source://rubocop//lib/rubocop/config_obsoletion/removed_cop.rb#13 + # source://rubocop/lib/rubocop/config_obsoletion/removed_cop.rb#13 def initialize(config, old_name, metadata); end # @api private # - # source://rubocop//lib/rubocop/config_obsoletion/removed_cop.rb#9 + # source://rubocop/lib/rubocop/config_obsoletion/removed_cop.rb#9 def metadata; end # @api private # - # source://rubocop//lib/rubocop/config_obsoletion/removed_cop.rb#9 + # source://rubocop/lib/rubocop/config_obsoletion/removed_cop.rb#9 def old_name; end # @api private # - # source://rubocop//lib/rubocop/config_obsoletion/removed_cop.rb#18 + # source://rubocop/lib/rubocop/config_obsoletion/removed_cop.rb#18 def rule_message; end private # @api private # - # source://rubocop//lib/rubocop/config_obsoletion/removed_cop.rb#36 + # source://rubocop/lib/rubocop/config_obsoletion/removed_cop.rb#36 def alternatives; end # @api private # - # source://rubocop//lib/rubocop/config_obsoletion/removed_cop.rb#32 + # source://rubocop/lib/rubocop/config_obsoletion/removed_cop.rb#32 def reason; end end # @api private # -# source://rubocop//lib/rubocop/config_obsoletion/removed_cop.rb#11 +# source://rubocop/lib/rubocop/config_obsoletion/removed_cop.rb#11 RuboCop::ConfigObsoletion::RemovedCop::BASE_MESSAGE = T.let(T.unsafe(nil), String) # Encapsulation of a ConfigObsoletion rule for renaming @@ -2057,22 +2057,22 @@ RuboCop::ConfigObsoletion::RemovedCop::BASE_MESSAGE = T.let(T.unsafe(nil), Strin # # @api private # -# source://rubocop//lib/rubocop/config_obsoletion/renamed_cop.rb#8 +# source://rubocop/lib/rubocop/config_obsoletion/renamed_cop.rb#8 class RuboCop::ConfigObsoletion::RenamedCop < ::RuboCop::ConfigObsoletion::CopRule # @api private # @return [RenamedCop] a new instance of RenamedCop # - # source://rubocop//lib/rubocop/config_obsoletion/renamed_cop.rb#11 + # source://rubocop/lib/rubocop/config_obsoletion/renamed_cop.rb#11 def initialize(config, old_name, new_name); end # @api private # - # source://rubocop//lib/rubocop/config_obsoletion/renamed_cop.rb#9 + # source://rubocop/lib/rubocop/config_obsoletion/renamed_cop.rb#9 def new_name; end # @api private # - # source://rubocop//lib/rubocop/config_obsoletion/renamed_cop.rb#16 + # source://rubocop/lib/rubocop/config_obsoletion/renamed_cop.rb#16 def rule_message; end private @@ -2080,12 +2080,12 @@ class RuboCop::ConfigObsoletion::RenamedCop < ::RuboCop::ConfigObsoletion::CopRu # @api private # @return [Boolean] # - # source://rubocop//lib/rubocop/config_obsoletion/renamed_cop.rb#22 + # source://rubocop/lib/rubocop/config_obsoletion/renamed_cop.rb#22 def moved?; end # @api private # - # source://rubocop//lib/rubocop/config_obsoletion/renamed_cop.rb#29 + # source://rubocop/lib/rubocop/config_obsoletion/renamed_cop.rb#29 def verb; end end @@ -2093,12 +2093,12 @@ end # # @api private # -# source://rubocop//lib/rubocop/config_obsoletion/rule.rb#7 +# source://rubocop/lib/rubocop/config_obsoletion/rule.rb#7 class RuboCop::ConfigObsoletion::Rule # @api private # @return [Rule] a new instance of Rule # - # source://rubocop//lib/rubocop/config_obsoletion/rule.rb#8 + # source://rubocop/lib/rubocop/config_obsoletion/rule.rb#8 def initialize(config); end # Does this rule relate to cops? @@ -2106,7 +2106,7 @@ class RuboCop::ConfigObsoletion::Rule # @api private # @return [Boolean] # - # source://rubocop//lib/rubocop/config_obsoletion/rule.rb#13 + # source://rubocop/lib/rubocop/config_obsoletion/rule.rb#13 def cop_rule?; end # Does this rule relate to parameters? @@ -2114,31 +2114,31 @@ class RuboCop::ConfigObsoletion::Rule # @api private # @return [Boolean] # - # source://rubocop//lib/rubocop/config_obsoletion/rule.rb#18 + # source://rubocop/lib/rubocop/config_obsoletion/rule.rb#18 def parameter_rule?; end # @api private # @raise [NotImplementedError] # @return [Boolean] # - # source://rubocop//lib/rubocop/config_obsoletion/rule.rb#22 + # source://rubocop/lib/rubocop/config_obsoletion/rule.rb#22 def violated?; end private # @api private # - # source://rubocop//lib/rubocop/config_obsoletion/rule.rb#28 + # source://rubocop/lib/rubocop/config_obsoletion/rule.rb#28 def config; end # @api private # - # source://rubocop//lib/rubocop/config_obsoletion/rule.rb#36 + # source://rubocop/lib/rubocop/config_obsoletion/rule.rb#36 def smart_loaded_path; end # @api private # - # source://rubocop//lib/rubocop/config_obsoletion/rule.rb#30 + # source://rubocop/lib/rubocop/config_obsoletion/rule.rb#30 def to_sentence(collection, connector: T.unsafe(nil)); end end @@ -2147,29 +2147,29 @@ end # # @api private # -# source://rubocop//lib/rubocop/config_obsoletion/split_cop.rb#8 +# source://rubocop/lib/rubocop/config_obsoletion/split_cop.rb#8 class RuboCop::ConfigObsoletion::SplitCop < ::RuboCop::ConfigObsoletion::CopRule # @api private # @return [SplitCop] a new instance of SplitCop # - # source://rubocop//lib/rubocop/config_obsoletion/split_cop.rb#11 + # source://rubocop/lib/rubocop/config_obsoletion/split_cop.rb#11 def initialize(config, old_name, metadata); end # @api private # - # source://rubocop//lib/rubocop/config_obsoletion/split_cop.rb#9 + # source://rubocop/lib/rubocop/config_obsoletion/split_cop.rb#9 def metadata; end # @api private # - # source://rubocop//lib/rubocop/config_obsoletion/split_cop.rb#16 + # source://rubocop/lib/rubocop/config_obsoletion/split_cop.rb#16 def rule_message; end private # @api private # - # source://rubocop//lib/rubocop/config_obsoletion/split_cop.rb#22 + # source://rubocop/lib/rubocop/config_obsoletion/split_cop.rb#22 def alternatives; end end @@ -2177,111 +2177,111 @@ end # # @api private # -# source://rubocop//lib/rubocop/config_regeneration.rb#6 +# source://rubocop/lib/rubocop/config_regeneration.rb#6 class RuboCop::ConfigRegeneration # Get options from the comment in the TODO file, and parse them as options # # @api private # - # source://rubocop//lib/rubocop/config_regeneration.rb#12 + # source://rubocop/lib/rubocop/config_regeneration.rb#12 def options; end private # @api private # - # source://rubocop//lib/rubocop/config_regeneration.rb#29 + # source://rubocop/lib/rubocop/config_regeneration.rb#29 def generation_command; end # @api private # @return [Boolean] # - # source://rubocop//lib/rubocop/config_regeneration.rb#25 + # source://rubocop/lib/rubocop/config_regeneration.rb#25 def todo_exists?; end end # @api private # -# source://rubocop//lib/rubocop/config_regeneration.rb#7 +# source://rubocop/lib/rubocop/config_regeneration.rb#7 RuboCop::ConfigRegeneration::AUTO_GENERATED_FILE = T.let(T.unsafe(nil), String) # @api private # -# source://rubocop//lib/rubocop/config_regeneration.rb#8 +# source://rubocop/lib/rubocop/config_regeneration.rb#8 RuboCop::ConfigRegeneration::COMMAND_REGEX = T.let(T.unsafe(nil), Regexp) # @api private # -# source://rubocop//lib/rubocop/config_regeneration.rb#9 +# source://rubocop/lib/rubocop/config_regeneration.rb#9 RuboCop::ConfigRegeneration::DEFAULT_OPTIONS = T.let(T.unsafe(nil), Hash) # Handles caching of configurations and association of inspected # ruby files to configurations. # -# source://rubocop//lib/rubocop/config_store.rb#6 +# source://rubocop/lib/rubocop/config_store.rb#6 class RuboCop::ConfigStore # @return [ConfigStore] a new instance of ConfigStore # - # source://rubocop//lib/rubocop/config_store.rb#10 + # source://rubocop/lib/rubocop/config_store.rb#10 def initialize; end # If type (file/dir) is known beforehand, # prefer using #for_file or #for_dir for improved performance # - # source://rubocop//lib/rubocop/config_store.rb#52 + # source://rubocop/lib/rubocop/config_store.rb#52 def for(file_or_dir); end - # source://rubocop//lib/rubocop/config_store.rb#61 + # source://rubocop/lib/rubocop/config_store.rb#61 def for_dir(dir); end - # source://rubocop//lib/rubocop/config_store.rb#42 + # source://rubocop/lib/rubocop/config_store.rb#42 def for_file(file); end - # source://rubocop//lib/rubocop/config_store.rb#46 + # source://rubocop/lib/rubocop/config_store.rb#46 def for_pwd; end - # source://rubocop//lib/rubocop/config_store.rb#33 + # source://rubocop/lib/rubocop/config_store.rb#33 def force_default_config!; end - # source://rubocop//lib/rubocop/config_store.rb#28 + # source://rubocop/lib/rubocop/config_store.rb#28 def options_config=(options_config); end - # source://rubocop//lib/rubocop/config_store.rb#37 + # source://rubocop/lib/rubocop/config_store.rb#37 def unvalidated; end # Returns the value of attribute validated. # - # source://rubocop//lib/rubocop/config_store.rb#7 + # source://rubocop/lib/rubocop/config_store.rb#7 def validated; end # Returns the value of attribute validated. # - # source://rubocop//lib/rubocop/config_store.rb#7 + # source://rubocop/lib/rubocop/config_store.rb#7 def validated?; end end # Handles validation of configuration, for example cop names, parameter # names, and Ruby versions. # -# source://rubocop//lib/rubocop/config_validator.rb#6 +# source://rubocop/lib/rubocop/config_validator.rb#6 class RuboCop::ConfigValidator extend ::RuboCop::SimpleForwardable # @return [ConfigValidator] a new instance of ConfigValidator # - # source://rubocop//lib/rubocop/config_validator.rb#27 + # source://rubocop/lib/rubocop/config_validator.rb#27 def initialize(config); end - # source://rubocop-ast/1.34.0/lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/1.37.0lib/rubocop/ast/utilities/simple_forwardable.rb#9 def for_all_cops(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast/1.34.0/lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/1.37.0lib/rubocop/ast/utilities/simple_forwardable.rb#9 def smart_loaded_path(*_arg0, **_arg1, &_arg2); end - # source://rubocop//lib/rubocop/config_validator.rb#63 + # source://rubocop/lib/rubocop/config_validator.rb#63 def target_ruby_version; end - # source://rubocop//lib/rubocop/config_validator.rb#33 + # source://rubocop/lib/rubocop/config_validator.rb#33 def validate; end # Validations that should only be run after all config resolving has @@ -2290,197 +2290,197 @@ class RuboCop::ConfigValidator # chain has been loaded so that only the final value is validated, and # any obsolete but overridden values are ignored. # - # source://rubocop//lib/rubocop/config_validator.rb#59 + # source://rubocop/lib/rubocop/config_validator.rb#59 def validate_after_resolution; end # @raise [ValidationError] # - # source://rubocop//lib/rubocop/config_validator.rb#67 + # source://rubocop/lib/rubocop/config_validator.rb#67 def validate_section_presence(name); end private # @raise [ValidationError] # - # source://rubocop//lib/rubocop/config_validator.rb#104 + # source://rubocop/lib/rubocop/config_validator.rb#104 def alert_about_unrecognized_cops(invalid_cop_names); end - # source://rubocop//lib/rubocop/config_validator.rb#254 + # source://rubocop/lib/rubocop/config_validator.rb#254 def check_cop_config_value(hash, parent = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/config_validator.rb#77 + # source://rubocop/lib/rubocop/config_validator.rb#77 def check_obsoletions; end # @raise [ValidationError] # - # source://rubocop//lib/rubocop/config_validator.rb#84 + # source://rubocop/lib/rubocop/config_validator.rb#84 def check_target_ruby; end - # source://rubocop//lib/rubocop/config_validator.rb#195 + # source://rubocop/lib/rubocop/config_validator.rb#195 def each_invalid_parameter(cop_name); end - # source://rubocop//lib/rubocop/config_validator.rb#120 + # source://rubocop/lib/rubocop/config_validator.rb#120 def list_unknown_cops(invalid_cop_names); end # FIXME: Handling colors in exception messages like this is ugly. # - # source://rubocop//lib/rubocop/config_validator.rb#274 + # source://rubocop/lib/rubocop/config_validator.rb#274 def param_error_message(parent, key, value, supposed_values); end - # source://rubocop//lib/rubocop/config_validator.rb#242 + # source://rubocop/lib/rubocop/config_validator.rb#242 def reject_conflicting_safe_settings; end # @raise [ValidationError] # - # source://rubocop//lib/rubocop/config_validator.rb#233 + # source://rubocop/lib/rubocop/config_validator.rb#233 def reject_mutually_exclusive_defaults; end - # source://rubocop//lib/rubocop/config_validator.rb#142 + # source://rubocop/lib/rubocop/config_validator.rb#142 def suggestion(name); end # Returns the value of attribute target_ruby. # - # source://rubocop//lib/rubocop/config_validator.rb#75 + # source://rubocop/lib/rubocop/config_validator.rb#75 def target_ruby; end - # source://rubocop//lib/rubocop/config_validator.rb#207 + # source://rubocop/lib/rubocop/config_validator.rb#207 def validate_enforced_styles(valid_cop_names); end # @raise [ValidationError] # - # source://rubocop//lib/rubocop/config_validator.rb#169 + # source://rubocop/lib/rubocop/config_validator.rb#169 def validate_new_cops_parameter; end - # source://rubocop//lib/rubocop/config_validator.rb#180 + # source://rubocop/lib/rubocop/config_validator.rb#180 def validate_parameter_names(valid_cop_names); end - # source://rubocop//lib/rubocop/config_validator.rb#227 + # source://rubocop/lib/rubocop/config_validator.rb#227 def validate_support_and_has_list(name, formats, valid); end # @raise [ValidationError] # - # source://rubocop//lib/rubocop/config_validator.rb#158 + # source://rubocop/lib/rubocop/config_validator.rb#158 def validate_syntax_cop; end end # @api private # -# source://rubocop//lib/rubocop/config_validator.rb#10 +# source://rubocop/lib/rubocop/config_validator.rb#10 RuboCop::ConfigValidator::COMMON_PARAMS = T.let(T.unsafe(nil), Array) -# source://rubocop//lib/rubocop/config_validator.rb#22 +# source://rubocop/lib/rubocop/config_validator.rb#22 RuboCop::ConfigValidator::CONFIG_CHECK_AUTOCORRECTS = T.let(T.unsafe(nil), Array) -# source://rubocop//lib/rubocop/config_validator.rb#21 +# source://rubocop/lib/rubocop/config_validator.rb#21 RuboCop::ConfigValidator::CONFIG_CHECK_DEPARTMENTS = T.let(T.unsafe(nil), Array) # @api private # -# source://rubocop//lib/rubocop/config_validator.rb#20 +# source://rubocop/lib/rubocop/config_validator.rb#20 RuboCop::ConfigValidator::CONFIG_CHECK_KEYS = T.let(T.unsafe(nil), Set) # @api private # -# source://rubocop//lib/rubocop/config_validator.rb#13 +# source://rubocop/lib/rubocop/config_validator.rb#13 RuboCop::ConfigValidator::INTERNAL_PARAMS = T.let(T.unsafe(nil), Array) # @api private # -# source://rubocop//lib/rubocop/config_validator.rb#17 +# source://rubocop/lib/rubocop/config_validator.rb#17 RuboCop::ConfigValidator::NEW_COPS_VALUES = T.let(T.unsafe(nil), Array) -# source://rubocop//lib/rubocop/cop/util.rb#4 +# source://rubocop/lib/rubocop/cop/util.rb#4 module RuboCop::Cop; end # This module checks for nodes that should be aligned to the left or right. # This amount is determined by the instance variable @column_delta. # -# source://rubocop//lib/rubocop/cop/mixin/alignment.rb#7 +# source://rubocop/lib/rubocop/cop/mixin/alignment.rb#7 module RuboCop::Cop::Alignment private - # source://rubocop//lib/rubocop/cop/mixin/alignment.rb#26 + # source://rubocop/lib/rubocop/cop/mixin/alignment.rb#26 def check_alignment(items, base_column = T.unsafe(nil)); end # Returns the value of attribute column_delta. # - # source://rubocop//lib/rubocop/cop/mixin/alignment.rb#12 + # source://rubocop/lib/rubocop/cop/mixin/alignment.rb#12 def column_delta; end - # source://rubocop//lib/rubocop/cop/mixin/alignment.rb#14 + # source://rubocop/lib/rubocop/cop/mixin/alignment.rb#14 def configured_indentation_width; end # @api public # - # source://rubocop//lib/rubocop/cop/mixin/alignment.rb#58 + # source://rubocop/lib/rubocop/cop/mixin/alignment.rb#58 def display_column(range); end # @api private # - # source://rubocop//lib/rubocop/cop/mixin/alignment.rb#45 + # source://rubocop/lib/rubocop/cop/mixin/alignment.rb#45 def each_bad_alignment(items, base_column); end # @deprecated Use processed_source.line_with_comment?(line) # - # source://rubocop//lib/rubocop/cop/mixin/alignment.rb#69 + # source://rubocop/lib/rubocop/cop/mixin/alignment.rb#69 def end_of_line_comment(line); end - # source://rubocop//lib/rubocop/cop/mixin/alignment.rb#18 + # source://rubocop/lib/rubocop/cop/mixin/alignment.rb#18 def indentation(node); end - # source://rubocop//lib/rubocop/cop/mixin/alignment.rb#22 + # source://rubocop/lib/rubocop/cop/mixin/alignment.rb#22 def offset(node); end # @api private # - # source://rubocop//lib/rubocop/cop/mixin/alignment.rb#78 + # source://rubocop/lib/rubocop/cop/mixin/alignment.rb#78 def register_offense(offense_node, message_node); end # @api public # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/mixin/alignment.rb#64 + # source://rubocop/lib/rubocop/cop/mixin/alignment.rb#64 def within?(inner, outer); end end -# source://rubocop//lib/rubocop/cop/mixin/alignment.rb#10 +# source://rubocop/lib/rubocop/cop/mixin/alignment.rb#10 RuboCop::Cop::Alignment::SPACE = T.let(T.unsafe(nil), String) # This class does autocorrection of nodes that should just be moved to # the left or to the right, amount being determined by the instance # variable column_delta. # -# source://rubocop//lib/rubocop/cop/correctors/alignment_corrector.rb#8 +# source://rubocop/lib/rubocop/cop/correctors/alignment_corrector.rb#8 class RuboCop::Cop::AlignmentCorrector extend ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::Alignment class << self - # source://rubocop//lib/rubocop/cop/correctors/alignment_corrector.rb#29 + # source://rubocop/lib/rubocop/cop/correctors/alignment_corrector.rb#29 def align_end(corrector, processed_source, node, align_to); end - # source://rubocop//lib/rubocop/cop/correctors/alignment_corrector.rb#15 + # source://rubocop/lib/rubocop/cop/correctors/alignment_corrector.rb#15 def correct(corrector, processed_source, node, column_delta); end # Returns the value of attribute processed_source. # - # source://rubocop//lib/rubocop/cop/correctors/alignment_corrector.rb#13 + # source://rubocop/lib/rubocop/cop/correctors/alignment_corrector.rb#13 def processed_source; end private - # source://rubocop//lib/rubocop/cop/correctors/alignment_corrector.rb#113 + # 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 + # source://rubocop/lib/rubocop/cop/correctors/alignment_corrector.rb#40 def autocorrect_line(corrector, line_begin_pos, expr, column_delta, taboo_ranges); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/correctors/alignment_corrector.rb#81 + # source://rubocop/lib/rubocop/cop/correctors/alignment_corrector.rb#81 def block_comment_within?(expr); end - # source://rubocop//lib/rubocop/cop/correctors/alignment_corrector.rb#87 + # source://rubocop/lib/rubocop/cop/correctors/alignment_corrector.rb#87 def calculate_range(expr, line_begin_pos, column_delta); end # Some special kinds of string literals are not composed of literal @@ -2491,39 +2491,39 @@ class RuboCop::Cop::AlignmentCorrector # # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/correctors/alignment_corrector.rb#75 + # 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#99 + # 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 + # source://rubocop/lib/rubocop/cop/correctors/alignment_corrector.rb#60 def inside_string_range(node); end - # source://rubocop//lib/rubocop/cop/correctors/alignment_corrector.rb#54 + # 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#107 + # source://rubocop/lib/rubocop/cop/correctors/alignment_corrector.rb#107 def whitespace_range(node); end end end # This module encapsulates the ability to allow certain identifiers in a cop. # -# source://rubocop//lib/rubocop/cop/mixin/allowed_identifiers.rb#6 +# source://rubocop/lib/rubocop/cop/mixin/allowed_identifiers.rb#6 module RuboCop::Cop::AllowedIdentifiers # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/mixin/allowed_identifiers.rb#9 + # source://rubocop/lib/rubocop/cop/mixin/allowed_identifiers.rb#9 def allowed_identifier?(name); end - # source://rubocop//lib/rubocop/cop/mixin/allowed_identifiers.rb#13 + # source://rubocop/lib/rubocop/cop/mixin/allowed_identifiers.rb#13 def allowed_identifiers; end end # if a variable starts with a sigil it will be removed # -# source://rubocop//lib/rubocop/cop/mixin/allowed_identifiers.rb#7 +# source://rubocop/lib/rubocop/cop/mixin/allowed_identifiers.rb#7 RuboCop::Cop::AllowedIdentifiers::SIGILS = T.let(T.unsafe(nil), String) # This module encapsulates the ability to allow certain methods when @@ -2531,318 +2531,330 @@ RuboCop::Cop::AllowedIdentifiers::SIGILS = T.let(T.unsafe(nil), String) # that are allowed. This module is equivalent to the IgnoredMethods module, # which will be deprecated in RuboCop 2.0. # -# source://rubocop//lib/rubocop/cop/mixin/allowed_methods.rb#9 +# source://rubocop/lib/rubocop/cop/mixin/allowed_methods.rb#9 module RuboCop::Cop::AllowedMethods private # @api public # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/mixin/allowed_methods.rb#13 + # source://rubocop/lib/rubocop/cop/mixin/allowed_methods.rb#13 def allowed_method?(name); end # @api public # - # source://rubocop//lib/rubocop/cop/mixin/allowed_methods.rb#27 + # source://rubocop/lib/rubocop/cop/mixin/allowed_methods.rb#27 def allowed_methods; end - # source://rubocop//lib/rubocop/cop/mixin/allowed_methods.rb#35 + # source://rubocop/lib/rubocop/cop/mixin/allowed_methods.rb#35 def cop_config_allowed_methods; end - # source://rubocop//lib/rubocop/cop/mixin/allowed_methods.rb#39 + # source://rubocop/lib/rubocop/cop/mixin/allowed_methods.rb#39 def cop_config_deprecated_values; end # @deprecated Use allowed_method? instead # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/mixin/allowed_methods.rb#18 + # source://rubocop/lib/rubocop/cop/mixin/allowed_methods.rb#18 def ignored_method?; end end # This module encapsulates the ability to ignore certain lines when # parsing. # -# source://rubocop//lib/rubocop/cop/mixin/allowed_pattern.rb#7 +# source://rubocop/lib/rubocop/cop/mixin/allowed_pattern.rb#7 module RuboCop::Cop::AllowedPattern private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/mixin/allowed_pattern.rb#10 + # source://rubocop/lib/rubocop/cop/mixin/allowed_pattern.rb#10 def allowed_line?(line); end - # source://rubocop//lib/rubocop/cop/mixin/allowed_pattern.rb#42 + # source://rubocop/lib/rubocop/cop/mixin/allowed_pattern.rb#42 def allowed_patterns; end - # source://rubocop//lib/rubocop/cop/mixin/allowed_pattern.rb#58 + # source://rubocop/lib/rubocop/cop/mixin/allowed_pattern.rb#58 def cop_config_deprecated_methods_values; end - # source://rubocop//lib/rubocop/cop/mixin/allowed_pattern.rb#52 + # source://rubocop/lib/rubocop/cop/mixin/allowed_pattern.rb#52 def cop_config_patterns_values; end # @deprecated Use allowed_line? instead # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/mixin/allowed_pattern.rb#21 + # source://rubocop/lib/rubocop/cop/mixin/allowed_pattern.rb#21 def ignored_line?; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/mixin/allowed_pattern.rb#29 + # source://rubocop/lib/rubocop/cop/mixin/allowed_pattern.rb#29 def matches_allowed_pattern?(line); end # @deprecated Use matches_allowed_pattern? instead # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/mixin/allowed_pattern.rb#34 + # source://rubocop/lib/rubocop/cop/mixin/allowed_pattern.rb#34 def matches_ignored_pattern?; end end # This module encapsulates the ability to allow certain receivers in a cop. # -# source://rubocop//lib/rubocop/cop/mixin/allowed_receivers.rb#6 +# source://rubocop/lib/rubocop/cop/mixin/allowed_receivers.rb#6 module RuboCop::Cop::AllowedReceivers # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/mixin/allowed_receivers.rb#7 + # source://rubocop/lib/rubocop/cop/mixin/allowed_receivers.rb#7 def allowed_receiver?(receiver); end - # source://rubocop//lib/rubocop/cop/mixin/allowed_receivers.rb#29 + # source://rubocop/lib/rubocop/cop/mixin/allowed_receivers.rb#29 def allowed_receivers; end - # source://rubocop//lib/rubocop/cop/mixin/allowed_receivers.rb#13 + # source://rubocop/lib/rubocop/cop/mixin/allowed_receivers.rb#13 def receiver_name(receiver); end end # Error raised when an unqualified cop name is used that could # refer to two or more cops under different departments # -# source://rubocop//lib/rubocop/cop/registry.rb#7 +# source://rubocop/lib/rubocop/cop/registry.rb#7 class RuboCop::Cop::AmbiguousCopName < ::RuboCop::Error # @return [AmbiguousCopName] a new instance of AmbiguousCopName # - # source://rubocop//lib/rubocop/cop/registry.rb#11 + # source://rubocop/lib/rubocop/cop/registry.rb#11 def initialize(name, origin, badges); end end -# source://rubocop//lib/rubocop/cop/registry.rb#8 +# source://rubocop/lib/rubocop/cop/registry.rb#8 RuboCop::Cop::AmbiguousCopName::MSG = T.let(T.unsafe(nil), String) # Representation of an annotation comment in source code (eg. `# TODO: blah blah blah`). # -# source://rubocop//lib/rubocop/cop/mixin/annotation_comment.rb#6 +# source://rubocop/lib/rubocop/cop/mixin/annotation_comment.rb#6 class RuboCop::Cop::AnnotationComment # @param comment [Parser::Source::Comment] # @param keywords [Array] # @return [AnnotationComment] a new instance of AnnotationComment # - # source://rubocop//lib/rubocop/cop/mixin/annotation_comment.rb#11 + # source://rubocop/lib/rubocop/cop/mixin/annotation_comment.rb#11 def initialize(comment, keywords); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/mixin/annotation_comment.rb#17 + # source://rubocop/lib/rubocop/cop/mixin/annotation_comment.rb#17 def annotation?; end # Returns the range bounds for just the annotation # - # source://rubocop//lib/rubocop/cop/mixin/annotation_comment.rb#29 + # source://rubocop/lib/rubocop/cop/mixin/annotation_comment.rb#29 def bounds; end # Returns the value of attribute colon. # - # source://rubocop//lib/rubocop/cop/mixin/annotation_comment.rb#7 + # source://rubocop/lib/rubocop/cop/mixin/annotation_comment.rb#7 def colon; end # Returns the value of attribute comment. # - # source://rubocop//lib/rubocop/cop/mixin/annotation_comment.rb#7 + # source://rubocop/lib/rubocop/cop/mixin/annotation_comment.rb#7 def comment; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/mixin/annotation_comment.rb#21 + # source://rubocop/lib/rubocop/cop/mixin/annotation_comment.rb#21 def correct?(colon:); end # Returns the value of attribute keyword. # - # source://rubocop//lib/rubocop/cop/mixin/annotation_comment.rb#7 + # source://rubocop/lib/rubocop/cop/mixin/annotation_comment.rb#7 def keyword; end # Returns the value of attribute margin. # - # source://rubocop//lib/rubocop/cop/mixin/annotation_comment.rb#7 + # source://rubocop/lib/rubocop/cop/mixin/annotation_comment.rb#7 def margin; end # Returns the value of attribute note. # - # source://rubocop//lib/rubocop/cop/mixin/annotation_comment.rb#7 + # source://rubocop/lib/rubocop/cop/mixin/annotation_comment.rb#7 def note; end # Returns the value of attribute space. # - # source://rubocop//lib/rubocop/cop/mixin/annotation_comment.rb#7 + # source://rubocop/lib/rubocop/cop/mixin/annotation_comment.rb#7 def space; end private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/mixin/annotation_comment.rb#65 + # source://rubocop/lib/rubocop/cop/mixin/annotation_comment.rb#65 def just_keyword_of_sentence?; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/mixin/annotation_comment.rb#61 + # source://rubocop/lib/rubocop/cop/mixin/annotation_comment.rb#61 def keyword_appearance?; end # Returns the value of attribute keywords. # - # source://rubocop//lib/rubocop/cop/mixin/annotation_comment.rb#37 + # source://rubocop/lib/rubocop/cop/mixin/annotation_comment.rb#37 def keywords; end - # source://rubocop//lib/rubocop/cop/mixin/annotation_comment.rb#51 + # source://rubocop/lib/rubocop/cop/mixin/annotation_comment.rb#51 def regex; end - # source://rubocop//lib/rubocop/cop/mixin/annotation_comment.rb#39 + # source://rubocop/lib/rubocop/cop/mixin/annotation_comment.rb#39 def split_comment(comment); end end -# source://rubocop//lib/rubocop/cop/mixin/annotation_comment.rb#48 +# source://rubocop/lib/rubocop/cop/mixin/annotation_comment.rb#48 RuboCop::Cop::AnnotationComment::KEYWORDS_REGEX_CACHE = T.let(T.unsafe(nil), Hash) # Handles the `MinSize` configuration option for array-based cops # `Style/SymbolArray` and `Style/WordArray`, which check for use of the # relevant percent literal syntax such as `%i[...]` and `%w[...]` # -# source://rubocop//lib/rubocop/cop/mixin/array_min_size.rb#8 +# source://rubocop/lib/rubocop/cop/mixin/array_min_size.rb#8 module RuboCop::Cop::ArrayMinSize private - # source://rubocop//lib/rubocop/cop/mixin/array_min_size.rb#19 + # source://rubocop/lib/rubocop/cop/mixin/array_min_size.rb#19 def array_style_detected(style, ary_size); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/mixin/array_min_size.rb#11 + # source://rubocop/lib/rubocop/cop/mixin/array_min_size.rb#11 def below_array_length?(node); end - # source://rubocop//lib/rubocop/cop/mixin/array_min_size.rb#38 + # source://rubocop/lib/rubocop/cop/mixin/array_min_size.rb#38 def largest_brackets_size(style, ary_size); end - # source://rubocop//lib/rubocop/cop/mixin/array_min_size.rb#15 + # source://rubocop/lib/rubocop/cop/mixin/array_min_size.rb#15 def min_size_config; end - # source://rubocop//lib/rubocop/cop/mixin/array_min_size.rb#48 + # source://rubocop/lib/rubocop/cop/mixin/array_min_size.rb#48 def smallest_percent_size(style, ary_size); end end # Common code for ordinary arrays with [] that can be written with % # syntax. # -# source://rubocop//lib/rubocop/cop/mixin/array_syntax.rb#7 +# source://rubocop/lib/rubocop/cop/mixin/array_syntax.rb#7 module RuboCop::Cop::ArraySyntax private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/mixin/array_syntax.rb#10 + # source://rubocop/lib/rubocop/cop/mixin/array_syntax.rb#10 def bracketed_array_of?(element_type, node); end end # extend this module to signal autocorrection support # -# source://rubocop//lib/rubocop/cop/mixin/auto_corrector.rb#6 +# source://rubocop/lib/rubocop/cop/mixin/auto_corrector.rb#6 module RuboCop::Cop::AutoCorrector # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/mixin/auto_corrector.rb#7 + # source://rubocop/lib/rubocop/cop/mixin/auto_corrector.rb#7 def support_autocorrect?; end end # This module encapsulates the logic for autocorrect behavior for a cop. # -# source://rubocop//lib/rubocop/cop/autocorrect_logic.rb#6 +# source://rubocop/lib/rubocop/cop/autocorrect_logic.rb#6 module RuboCop::Cop::AutocorrectLogic # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/autocorrect_logic.rb#7 + # source://rubocop/lib/rubocop/cop/autocorrect_logic.rb#7 def autocorrect?; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/autocorrect_logic.rb#31 + # source://rubocop/lib/rubocop/cop/autocorrect_logic.rb#31 def autocorrect_enabled?; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/autocorrect_logic.rb#15 + # source://rubocop/lib/rubocop/cop/autocorrect_logic.rb#15 def autocorrect_requested?; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/autocorrect_logic.rb#11 + # source://rubocop/lib/rubocop/cop/autocorrect_logic.rb#11 def autocorrect_with_disable_uncorrectable?; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/autocorrect_logic.rb#19 + # source://rubocop/lib/rubocop/cop/autocorrect_logic.rb#19 def correctable?; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/autocorrect_logic.rb#23 + # source://rubocop/lib/rubocop/cop/autocorrect_logic.rb#23 def disable_uncorrectable?; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/autocorrect_logic.rb#27 + # source://rubocop/lib/rubocop/cop/autocorrect_logic.rb#27 def safe_autocorrect?; end private - # source://rubocop//lib/rubocop/cop/autocorrect_logic.rb#51 + # source://rubocop/lib/rubocop/cop/autocorrect_logic.rb#51 def disable_offense(offense_range); end - # source://rubocop//lib/rubocop/cop/autocorrect_logic.rb#138 + # source://rubocop/lib/rubocop/cop/autocorrect_logic.rb#135 def disable_offense_at_end_of_line(range, eol_comment); end - # source://rubocop//lib/rubocop/cop/autocorrect_logic.rb#142 + # source://rubocop/lib/rubocop/cop/autocorrect_logic.rb#139 def disable_offense_before_and_after(range_by_lines); end - # source://rubocop//lib/rubocop/cop/autocorrect_logic.rb#63 + # source://rubocop/lib/rubocop/cop/autocorrect_logic.rb#77 def disable_offense_with_eol_or_surround_comment(range); end - # source://rubocop//lib/rubocop/cop/autocorrect_logic.rb#134 + # source://rubocop/lib/rubocop/cop/autocorrect_logic.rb#96 + def heredoc_range(node); end + + # source://rubocop/lib/rubocop/cop/autocorrect_logic.rb#131 def max_line_length; end + # source://rubocop/lib/rubocop/cop/autocorrect_logic.rb#63 + def multiline_ranges(offense_range); end + + # @return [Boolean] + # + # source://rubocop/lib/rubocop/cop/autocorrect_logic.rb#108 + def multiline_string?(node); 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#124 + # source://rubocop/lib/rubocop/cop/autocorrect_logic.rb#121 def range_by_lines(range); end - # source://rubocop//lib/rubocop/cop/autocorrect_logic.rb#115 + # source://rubocop/lib/rubocop/cop/autocorrect_logic.rb#112 def range_of_first_line(range); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/autocorrect_logic.rb#107 + # source://rubocop/lib/rubocop/cop/autocorrect_logic.rb#88 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 + # source://rubocop/lib/rubocop/cop/autocorrect_logic.rb#104 def string_continuation?(node); end - # source://rubocop//lib/rubocop/cop/autocorrect_logic.rb#74 - def surrounding_heredoc(offense_range); end + # @return [Boolean] + # + # source://rubocop/lib/rubocop/cop/autocorrect_logic.rb#92 + def surrounding_heredoc?(node); end - # source://rubocop//lib/rubocop/cop/autocorrect_logic.rb#85 - def surrounding_percent_array(offense_range); end + # @return [Boolean] + # + # source://rubocop/lib/rubocop/cop/autocorrect_logic.rb#100 + def surrounding_percent_array?(node); end end # Identifier of all cops containing a department and cop name. @@ -2853,61 +2865,61 @@ end # allow for badge references in source files that omit the department for # RuboCop to infer. # -# source://rubocop//lib/rubocop/cop/badge.rb#12 +# source://rubocop/lib/rubocop/cop/badge.rb#12 class RuboCop::Cop::Badge # @return [Badge] a new instance of Badge # - # source://rubocop//lib/rubocop/cop/badge.rb#34 + # source://rubocop/lib/rubocop/cop/badge.rb#34 def initialize(class_name_parts); end - # source://rubocop//lib/rubocop/cop/badge.rb#41 + # source://rubocop/lib/rubocop/cop/badge.rb#41 def ==(other); end # Returns the value of attribute cop_name. # - # source://rubocop//lib/rubocop/cop/badge.rb#13 + # source://rubocop/lib/rubocop/cop/badge.rb#13 def cop_name; end # Returns the value of attribute department. # - # source://rubocop//lib/rubocop/cop/badge.rb#13 + # source://rubocop/lib/rubocop/cop/badge.rb#13 def department; end # Returns the value of attribute department_name. # - # source://rubocop//lib/rubocop/cop/badge.rb#13 + # source://rubocop/lib/rubocop/cop/badge.rb#13 def department_name; end - # source://rubocop//lib/rubocop/cop/badge.rb#41 + # source://rubocop/lib/rubocop/cop/badge.rb#41 def eql?(other); end - # source://rubocop//lib/rubocop/cop/badge.rb#46 + # source://rubocop/lib/rubocop/cop/badge.rb#46 def hash; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/badge.rb#51 + # source://rubocop/lib/rubocop/cop/badge.rb#51 def match?(other); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/badge.rb#59 + # source://rubocop/lib/rubocop/cop/badge.rb#59 def qualified?; end - # source://rubocop//lib/rubocop/cop/badge.rb#55 + # source://rubocop/lib/rubocop/cop/badge.rb#55 def to_s; end - # source://rubocop//lib/rubocop/cop/badge.rb#63 + # source://rubocop/lib/rubocop/cop/badge.rb#63 def with_department(department); end class << self - # source://rubocop//lib/rubocop/cop/badge.rb#27 + # source://rubocop/lib/rubocop/cop/badge.rb#27 def camel_case(name_part); end - # source://rubocop//lib/rubocop/cop/badge.rb#15 + # source://rubocop/lib/rubocop/cop/badge.rb#15 def for(class_name); end - # source://rubocop//lib/rubocop/cop/badge.rb#23 + # source://rubocop/lib/rubocop/cop/badge.rb#23 def parse(identifier); end end end @@ -2941,7 +2953,7 @@ end # Private methods are not meant for custom cops consumption, # nor are any instance variables. # -# source://rubocop//lib/rubocop/cop/base.rb#34 +# source://rubocop/lib/rubocop/cop/base.rb#34 class RuboCop::Cop::Base include ::RuboCop::AST::Sexp include ::RuboCop::PathUtil @@ -2954,18 +2966,18 @@ class RuboCop::Cop::Base # @return [Base] a new instance of Base # - # source://rubocop//lib/rubocop/cop/base.rb#156 + # source://rubocop/lib/rubocop/cop/base.rb#156 def initialize(config = T.unsafe(nil), options = T.unsafe(nil)); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/base.rb#272 + # source://rubocop/lib/rubocop/cop/base.rb#272 def active_support_extensions_enabled?; end # Adds an offense that has no particular location. # No correction can be applied to global offenses # - # source://rubocop//lib/rubocop/cop/base.rb#189 + # source://rubocop/lib/rubocop/cop/base.rb#189 def add_global_offense(message = T.unsafe(nil), severity: T.unsafe(nil)); end # Adds an offense on the specified range (or node with an expression) @@ -2973,55 +2985,55 @@ class RuboCop::Cop::Base # to provide the cop the opportunity to autocorrect the offense. # If message is not specified, the method `message` will be called. # - # source://rubocop//lib/rubocop/cop/base.rb#201 + # source://rubocop/lib/rubocop/cop/base.rb#201 def add_offense(node_or_range, message: T.unsafe(nil), severity: T.unsafe(nil), &block); end # @api private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/base.rb#351 + # source://rubocop/lib/rubocop/cop/base.rb#351 def always_autocorrect?; end # Called before any investigation # # @api private # - # source://rubocop//lib/rubocop/cop/base.rb#337 + # source://rubocop/lib/rubocop/cop/base.rb#337 def begin_investigation(processed_source, offset: T.unsafe(nil), original: T.unsafe(nil)); end # @api private # - # source://rubocop//lib/rubocop/cop/base.rb#318 + # source://rubocop/lib/rubocop/cop/base.rb#318 def callbacks_needed; end # Returns the value of attribute config. # - # source://rubocop//lib/rubocop/cop/base.rb#43 + # source://rubocop/lib/rubocop/cop/base.rb#43 def config; end - # source://rubocop//lib/rubocop/cop/base.rb#252 + # source://rubocop/lib/rubocop/cop/base.rb#252 def config_to_allow_offenses; end - # source://rubocop//lib/rubocop/cop/base.rb#256 + # source://rubocop/lib/rubocop/cop/base.rb#256 def config_to_allow_offenses=(hash); end # @api private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/base.rb#357 + # source://rubocop/lib/rubocop/cop/base.rb#357 def contextual_autocorrect?; end # Configuration Helpers # - # source://rubocop//lib/rubocop/cop/base.rb#246 + # source://rubocop/lib/rubocop/cop/base.rb#246 def cop_config; end - # source://rubocop//lib/rubocop/cop/base.rb#238 + # source://rubocop/lib/rubocop/cop/base.rb#238 def cop_name; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/base.rb#289 + # source://rubocop/lib/rubocop/cop/base.rb#289 def excluded_file?(file); end # This method should be overridden when a cop's behavior depends @@ -3040,167 +3052,167 @@ class RuboCop::Cop::Base # ResultCache system when those external dependencies change, # ie when the ResultCache should be invalidated. # - # source://rubocop//lib/rubocop/cop/base.rb#234 + # source://rubocop/lib/rubocop/cop/base.rb#234 def external_dependency_checksum; end - # source://rubocop//lib/rubocop/cop/base.rb#361 + # source://rubocop/lib/rubocop/cop/base.rb#361 def inspect; end # Gets called if no message is specified when calling `add_offense` or # `add_global_offense` # Cops are discouraged to override this; instead pass your message directly # - # source://rubocop//lib/rubocop/cop/base.rb#183 + # source://rubocop/lib/rubocop/cop/base.rb#183 def message(_range = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/base.rb#238 + # source://rubocop/lib/rubocop/cop/base.rb#238 def name; end # @deprecated Make potential errors with previous API more obvious # - # source://rubocop//lib/rubocop/cop/base.rb#309 + # source://rubocop/lib/rubocop/cop/base.rb#309 def offenses; end # Called after all on_... have been called # When refining this method, always call `super` # - # source://rubocop//lib/rubocop/cop/base.rb#170 + # source://rubocop/lib/rubocop/cop/base.rb#170 def on_investigation_end; end # Called before all on_... have been called # When refining this method, always call `super` # - # source://rubocop//lib/rubocop/cop/base.rb#164 + # source://rubocop/lib/rubocop/cop/base.rb#164 def on_new_investigation; end # Called instead of all on_... callbacks for unrecognized files / syntax errors # When refining this method, always call `super` # - # source://rubocop//lib/rubocop/cop/base.rb#176 + # source://rubocop/lib/rubocop/cop/base.rb#176 def on_other_file; end # There should be very limited reasons for a Cop to do it's own parsing # - # source://rubocop//lib/rubocop/cop/base.rb#294 + # source://rubocop/lib/rubocop/cop/base.rb#294 def parse(source, path = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/base.rb#264 + # source://rubocop/lib/rubocop/cop/base.rb#264 def parser_engine; end # Returns the value of attribute processed_source. # - # source://rubocop//lib/rubocop/cop/base.rb#43 + # source://rubocop/lib/rubocop/cop/base.rb#43 def processed_source; end # Called between investigations # # @api private # - # source://rubocop//lib/rubocop/cop/base.rb#300 + # source://rubocop/lib/rubocop/cop/base.rb#300 def ready; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/base.rb#280 + # source://rubocop/lib/rubocop/cop/base.rb#280 def relevant_file?(file); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/base.rb#276 + # source://rubocop/lib/rubocop/cop/base.rb#276 def string_literals_frozen_by_default?; end - # source://rubocop//lib/rubocop/cop/base.rb#268 + # source://rubocop/lib/rubocop/cop/base.rb#268 def target_rails_version; end - # source://rubocop//lib/rubocop/cop/base.rb#260 + # source://rubocop/lib/rubocop/cop/base.rb#260 def target_ruby_version; end private - # source://rubocop//lib/rubocop/cop/base.rb#479 + # source://rubocop/lib/rubocop/cop/base.rb#479 def annotate(message); end - # source://rubocop//lib/rubocop/cop/base.rb#373 + # source://rubocop/lib/rubocop/cop/base.rb#373 def apply_correction(corrector); end # @return [Symbol] offense status # - # source://rubocop//lib/rubocop/cop/base.rb#443 + # source://rubocop/lib/rubocop/cop/base.rb#443 def attempt_correction(range, corrector); end # Reserved for Cop::Cop # - # source://rubocop//lib/rubocop/cop/base.rb#369 + # source://rubocop/lib/rubocop/cop/base.rb#369 def callback_argument(range); end # Called to complete an investigation # - # source://rubocop//lib/rubocop/cop/base.rb#402 + # source://rubocop/lib/rubocop/cop/base.rb#402 def complete_investigation; end # @return [Symbol, Corrector] offense status # - # source://rubocop//lib/rubocop/cop/base.rb#417 + # source://rubocop/lib/rubocop/cop/base.rb#417 def correct(range); end - # source://rubocop//lib/rubocop/cop/base.rb#387 + # source://rubocop/lib/rubocop/cop/base.rb#387 def current_corrector; end # Reserved for Commissioner: # - # source://rubocop//lib/rubocop/cop/base.rb#379 + # source://rubocop/lib/rubocop/cop/base.rb#379 def current_offense_locations; end - # source://rubocop//lib/rubocop/cop/base.rb#391 + # source://rubocop/lib/rubocop/cop/base.rb#391 def current_offenses; end - # source://rubocop//lib/rubocop/cop/base.rb#383 + # source://rubocop/lib/rubocop/cop/base.rb#383 def currently_disabled_lines; end - # source://rubocop//lib/rubocop/cop/base.rb#507 + # source://rubocop/lib/rubocop/cop/base.rb#507 def custom_severity; end - # source://rubocop//lib/rubocop/cop/base.rb#503 + # source://rubocop/lib/rubocop/cop/base.rb#503 def default_severity; end - # source://rubocop//lib/rubocop/cop/base.rb#457 + # source://rubocop/lib/rubocop/cop/base.rb#457 def disable_uncorrectable(range); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/base.rb#493 + # source://rubocop/lib/rubocop/cop/base.rb#493 def enabled_line?(line_number); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/base.rb#485 + # source://rubocop/lib/rubocop/cop/base.rb#485 def file_name_matches_any?(file, parameter, default_result); end - # source://rubocop//lib/rubocop/cop/base.rb#475 + # source://rubocop/lib/rubocop/cop/base.rb#475 def find_message(range, message); end - # source://rubocop//lib/rubocop/cop/base.rb#499 + # source://rubocop/lib/rubocop/cop/base.rb#499 def find_severity(_range, severity); end - # source://rubocop//lib/rubocop/cop/base.rb#520 + # source://rubocop/lib/rubocop/cop/base.rb#520 def range_for_original(range); end - # source://rubocop//lib/rubocop/cop/base.rb#464 + # source://rubocop/lib/rubocop/cop/base.rb#464 def range_from_node_or_range(node_or_range); end # Actually private methods # - # source://rubocop//lib/rubocop/cop/base.rb#412 + # source://rubocop/lib/rubocop/cop/base.rb#412 def reset_investigation; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/base.rb#528 + # source://rubocop/lib/rubocop/cop/base.rb#528 def target_satisfies_all_gem_version_requirements?; end # @return [Symbol] offense status # - # source://rubocop//lib/rubocop/cop/base.rb#432 + # source://rubocop/lib/rubocop/cop/base.rb#432 def use_corrector(range, corrector); end class << self @@ -3210,26 +3222,26 @@ class RuboCop::Cop::Base # @api public # @return [Array] # - # source://rubocop//lib/rubocop/cop/base.rb#59 + # source://rubocop/lib/rubocop/cop/base.rb#59 def autocorrect_incompatible_with; end # Naming # - # source://rubocop//lib/rubocop/cop/base.rb#93 + # source://rubocop/lib/rubocop/cop/base.rb#93 def badge; end # @api private # - # source://rubocop//lib/rubocop/cop/base.rb#323 + # source://rubocop/lib/rubocop/cop/base.rb#323 def callbacks_needed; end - # source://rubocop//lib/rubocop/cop/base.rb#97 + # source://rubocop/lib/rubocop/cop/base.rb#97 def cop_name; end - # source://rubocop//lib/rubocop/cop/base.rb#101 + # source://rubocop/lib/rubocop/cop/base.rb#101 def department; end - # Returns an url to view this cops documentation online. + # Returns a url to view this cops documentation online. # Requires 'DocumentationBaseURL' to be set for your department. # Will follow the convention of RuboCops own documentation structure, # overwrite this method to accommodate your custom layout. @@ -3237,32 +3249,32 @@ class RuboCop::Cop::Base # @api public # @return [String, nil] # - # source://rubocop//lib/rubocop/cop/base.rb#70 + # source://rubocop/lib/rubocop/cop/base.rb#70 def documentation_url(config = T.unsafe(nil)); end # Call for abstract Cop classes # - # source://rubocop//lib/rubocop/cop/base.rb#81 + # source://rubocop/lib/rubocop/cop/base.rb#81 def exclude_from_registry; end # Returns the value of attribute gem_requirements. # - # source://rubocop//lib/rubocop/cop/base.rb#138 + # source://rubocop/lib/rubocop/cop/base.rb#138 def gem_requirements; end # @private # - # source://rubocop//lib/rubocop/cop/base.rb#74 + # source://rubocop/lib/rubocop/cop/base.rb#74 def inherited(subclass); end # Override and return the Force class(es) you need to join # - # source://rubocop//lib/rubocop/cop/base.rb#118 + # source://rubocop/lib/rubocop/cop/base.rb#118 def joining_forces; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/base.rb#105 + # source://rubocop/lib/rubocop/cop/base.rb#105 def lint?; end # Returns true if the cop name or the cop namespace matches any of the @@ -3270,7 +3282,7 @@ class RuboCop::Cop::Base # # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/base.rb#111 + # source://rubocop/lib/rubocop/cop/base.rb#111 def match?(given_names); end # Register a version requirement for the given gem name. @@ -3285,7 +3297,7 @@ class RuboCop::Cop::Base # # https://guides.rubygems.org/patterns/#declaring-dependencies # - # source://rubocop//lib/rubocop/cop/base.rb#151 + # source://rubocop/lib/rubocop/cop/base.rb#151 def requires_gem(gem_name, *version_requirements); end # Returns if class supports autocorrect. @@ -3293,7 +3305,7 @@ class RuboCop::Cop::Base # # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/base.rb#87 + # source://rubocop/lib/rubocop/cop/base.rb#87 def support_autocorrect?; end # Override if your cop should be called repeatedly for multiple investigations @@ -3306,24 +3318,24 @@ class RuboCop::Cop::Base # # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/base.rb#129 + # source://rubocop/lib/rubocop/cop/base.rb#129 def support_multiple_source?; end private - # source://rubocop//lib/rubocop/cop/base.rb#395 + # source://rubocop/lib/rubocop/cop/base.rb#395 def restrict_on_send; end end end -# source://rubocop//lib/rubocop/cop/base.rb#399 +# source://rubocop/lib/rubocop/cop/base.rb#399 RuboCop::Cop::Base::EMPTY_OFFENSES = T.let(T.unsafe(nil), Array) # Reports of an investigation. # Immutable # Consider creation API private # -# source://rubocop//lib/rubocop/cop/base.rb#48 +# source://rubocop/lib/rubocop/cop/base.rb#48 class RuboCop::Cop::Base::InvestigationReport < ::Struct # Returns the value of attribute cop # @@ -3380,10 +3392,10 @@ end # List of methods names to restrict calls for `on_send` / `on_csend` # -# source://rubocop//lib/rubocop/cop/base.rb#51 +# source://rubocop/lib/rubocop/cop/base.rb#51 RuboCop::Cop::Base::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Set) -# source://rubocop//lib/rubocop/cop/bundler/duplicated_gem.rb#5 +# source://rubocop/lib/rubocop/cop/bundler/duplicated_gem.rb#5 module RuboCop::Cop::Bundler; end # A Gem's requirements should be listed only once in a Gemfile. @@ -3419,36 +3431,36 @@ module RuboCop::Cop::Bundler; end # gem 'rubocop', '~> 0.90.0' # end # -# source://rubocop//lib/rubocop/cop/bundler/duplicated_gem.rb#39 +# source://rubocop/lib/rubocop/cop/bundler/duplicated_gem.rb#39 class RuboCop::Cop::Bundler::DuplicatedGem < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp - # source://rubocop//lib/rubocop/cop/bundler/duplicated_gem.rb#58 + # source://rubocop/lib/rubocop/cop/bundler/duplicated_gem.rb#58 def gem_declarations(param0); end - # source://rubocop//lib/rubocop/cop/bundler/duplicated_gem.rb#45 + # source://rubocop/lib/rubocop/cop/bundler/duplicated_gem.rb#45 def on_new_investigation; end private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/bundler/duplicated_gem.rb#67 + # source://rubocop/lib/rubocop/cop/bundler/duplicated_gem.rb#67 def conditional_declaration?(nodes); end - # source://rubocop//lib/rubocop/cop/bundler/duplicated_gem.rb#60 + # source://rubocop/lib/rubocop/cop/bundler/duplicated_gem.rb#60 def duplicated_gem_nodes; end - # source://rubocop//lib/rubocop/cop/bundler/duplicated_gem.rb#81 + # source://rubocop/lib/rubocop/cop/bundler/duplicated_gem.rb#81 def register_offense(node, gem_name, line_of_first_occurrence); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/bundler/duplicated_gem.rb#75 + # source://rubocop/lib/rubocop/cop/bundler/duplicated_gem.rb#75 def within_conditional?(node, conditional_node); end end -# source://rubocop//lib/rubocop/cop/bundler/duplicated_gem.rb#42 +# source://rubocop/lib/rubocop/cop/bundler/duplicated_gem.rb#42 RuboCop::Cop::Bundler::DuplicatedGem::MSG = T.let(T.unsafe(nil), String) # A Gem group, or a set of groups, should be listed only once in a Gemfile. @@ -3503,35 +3515,35 @@ RuboCop::Cop::Bundler::DuplicatedGem::MSG = T.let(T.unsafe(nil), String) # gem 'rubocop', groups: [:development, :test] # gem 'rspec', groups: [:development, :test] # -# source://rubocop//lib/rubocop/cop/bundler/duplicated_group.rb#58 +# source://rubocop/lib/rubocop/cop/bundler/duplicated_group.rb#58 class RuboCop::Cop::Bundler::DuplicatedGroup < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp - # source://rubocop//lib/rubocop/cop/bundler/duplicated_group.rb#66 + # source://rubocop/lib/rubocop/cop/bundler/duplicated_group.rb#66 def group_declarations(param0); end - # source://rubocop//lib/rubocop/cop/bundler/duplicated_group.rb#68 + # source://rubocop/lib/rubocop/cop/bundler/duplicated_group.rb#68 def on_new_investigation; end private - # source://rubocop//lib/rubocop/cop/bundler/duplicated_group.rb#82 + # source://rubocop/lib/rubocop/cop/bundler/duplicated_group.rb#82 def duplicated_group_nodes; end - # source://rubocop//lib/rubocop/cop/bundler/duplicated_group.rb#105 + # source://rubocop/lib/rubocop/cop/bundler/duplicated_group.rb#105 def find_source_key(node); end - # source://rubocop//lib/rubocop/cop/bundler/duplicated_group.rb#115 + # source://rubocop/lib/rubocop/cop/bundler/duplicated_group.rb#115 def group_attributes(node); end - # source://rubocop//lib/rubocop/cop/bundler/duplicated_group.rb#94 + # source://rubocop/lib/rubocop/cop/bundler/duplicated_group.rb#94 def register_offense(node, group_name, line_of_first_occurrence); end end -# source://rubocop//lib/rubocop/cop/bundler/duplicated_group.rb#61 +# source://rubocop/lib/rubocop/cop/bundler/duplicated_group.rb#61 RuboCop::Cop::Bundler::DuplicatedGroup::MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/bundler/duplicated_group.rb#63 +# source://rubocop/lib/rubocop/cop/bundler/duplicated_group.rb#63 RuboCop::Cop::Bundler::DuplicatedGroup::SOURCE_BLOCK_NAMES = T.let(T.unsafe(nil), Array) # Each gem in the Gemfile should have a comment explaining @@ -3608,43 +3620,43 @@ RuboCop::Cop::Bundler::DuplicatedGroup::SOURCE_BLOCK_NAMES = T.let(T.unsafe(nil) # # Version 2.1 introduces breaking change baz # gem 'bar', '< 2.1' # -# source://rubocop//lib/rubocop/cop/bundler/gem_comment.rb#83 +# source://rubocop/lib/rubocop/cop/bundler/gem_comment.rb#83 class RuboCop::Cop::Bundler::GemComment < ::RuboCop::Cop::Base include ::RuboCop::Cop::VisibilityHelp include ::RuboCop::Cop::DefNode include ::RuboCop::Cop::GemDeclaration - # source://rubocop//lib/rubocop/cop/bundler/gem_comment.rb#94 + # source://rubocop/lib/rubocop/cop/bundler/gem_comment.rb#94 def on_send(node); end private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/bundler/gem_comment.rb#135 + # source://rubocop/lib/rubocop/cop/bundler/gem_comment.rb#135 def checked_options_present?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/bundler/gem_comment.rb#109 + # source://rubocop/lib/rubocop/cop/bundler/gem_comment.rb#109 def commented?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/bundler/gem_comment.rb#105 + # source://rubocop/lib/rubocop/cop/bundler/gem_comment.rb#105 def commented_any_descendant?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/bundler/gem_comment.rb#159 + # source://rubocop/lib/rubocop/cop/bundler/gem_comment.rb#159 def contains_checked_options?(node); end - # source://rubocop//lib/rubocop/cop/bundler/gem_comment.rb#163 + # source://rubocop/lib/rubocop/cop/bundler/gem_comment.rb#163 def gem_options(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/bundler/gem_comment.rb#130 + # source://rubocop/lib/rubocop/cop/bundler/gem_comment.rb#130 def ignored_gem?(node); end # The args node1 & node2 may represent a RuboCop::AST::Node @@ -3652,15 +3664,15 @@ class RuboCop::Cop::Bundler::GemComment < ::RuboCop::Cop::Base # # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/bundler/gem_comment.rb#116 + # source://rubocop/lib/rubocop/cop/bundler/gem_comment.rb#116 def precede?(node1, node2); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/bundler/gem_comment.rb#126 + # source://rubocop/lib/rubocop/cop/bundler/gem_comment.rb#126 def preceding_comment?(node1, node2); end - # source://rubocop//lib/rubocop/cop/bundler/gem_comment.rb#120 + # source://rubocop/lib/rubocop/cop/bundler/gem_comment.rb#120 def preceding_lines(node); end # Version specifications that restrict all updates going forward. This excludes versions @@ -3668,7 +3680,7 @@ class RuboCop::Cop::Bundler::GemComment < ::RuboCop::Cop::Base # # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/bundler/gem_comment.rb#152 + # source://rubocop/lib/rubocop/cop/bundler/gem_comment.rb#152 def restrictive_version_specified_gem?(node); end # Besides the gem name, all other *positional* arguments to `gem` are version specifiers, @@ -3676,26 +3688,26 @@ class RuboCop::Cop::Bundler::GemComment < ::RuboCop::Cop::Base # # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/bundler/gem_comment.rb#145 + # source://rubocop/lib/rubocop/cop/bundler/gem_comment.rb#145 def version_specified_gem?(node); end end -# source://rubocop//lib/rubocop/cop/bundler/gem_comment.rb#88 +# source://rubocop/lib/rubocop/cop/bundler/gem_comment.rb#88 RuboCop::Cop::Bundler::GemComment::CHECKED_OPTIONS_CONFIG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/bundler/gem_comment.rb#87 +# source://rubocop/lib/rubocop/cop/bundler/gem_comment.rb#87 RuboCop::Cop::Bundler::GemComment::MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/bundler/gem_comment.rb#91 +# source://rubocop/lib/rubocop/cop/bundler/gem_comment.rb#91 RuboCop::Cop::Bundler::GemComment::RESTRICTIVE_VERSION_PATTERN = T.let(T.unsafe(nil), Regexp) -# source://rubocop//lib/rubocop/cop/bundler/gem_comment.rb#90 +# source://rubocop/lib/rubocop/cop/bundler/gem_comment.rb#90 RuboCop::Cop::Bundler::GemComment::RESTRICTIVE_VERSION_SPECIFIERS_OPTION = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/bundler/gem_comment.rb#92 +# source://rubocop/lib/rubocop/cop/bundler/gem_comment.rb#92 RuboCop::Cop::Bundler::GemComment::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) -# source://rubocop//lib/rubocop/cop/bundler/gem_comment.rb#89 +# source://rubocop/lib/rubocop/cop/bundler/gem_comment.rb#89 RuboCop::Cop::Bundler::GemComment::VERSION_SPECIFIERS_OPTION = T.let(T.unsafe(nil), String) # Verifies that a project contains Gemfile or gems.rb file and correct @@ -3720,67 +3732,66 @@ RuboCop::Cop::Bundler::GemComment::VERSION_SPECIFIERS_OPTION = T.let(T.unsafe(ni # # good # Project contains gems.rb and gems.locked files # -# source://rubocop//lib/rubocop/cop/bundler/gem_filename.rb#28 +# source://rubocop/lib/rubocop/cop/bundler/gem_filename.rb#28 class RuboCop::Cop::Bundler::GemFilename < ::RuboCop::Cop::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle - include ::RuboCop::Cop::RangeHelp - # source://rubocop//lib/rubocop/cop/bundler/gem_filename.rb#43 + # source://rubocop/lib/rubocop/cop/bundler/gem_filename.rb#42 def on_new_investigation; end private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/bundler/gem_filename.rb#88 + # source://rubocop/lib/rubocop/cop/bundler/gem_filename.rb#87 def expected_gemfile?(basename); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/bundler/gem_filename.rb#80 + # source://rubocop/lib/rubocop/cop/bundler/gem_filename.rb#79 def gemfile_offense?(basename); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/bundler/gem_filename.rb#93 + # source://rubocop/lib/rubocop/cop/bundler/gem_filename.rb#92 def gemfile_required?; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/bundler/gem_filename.rb#84 + # source://rubocop/lib/rubocop/cop/bundler/gem_filename.rb#83 def gems_rb_offense?(basename); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/bundler/gem_filename.rb#97 + # source://rubocop/lib/rubocop/cop/bundler/gem_filename.rb#96 def gems_rb_required?; end - # source://rubocop//lib/rubocop/cop/bundler/gem_filename.rb#58 + # source://rubocop/lib/rubocop/cop/bundler/gem_filename.rb#57 def register_gemfile_offense(file_path, basename); end - # source://rubocop//lib/rubocop/cop/bundler/gem_filename.rb#69 + # source://rubocop/lib/rubocop/cop/bundler/gem_filename.rb#68 def register_gems_rb_offense(file_path, basename); end - # source://rubocop//lib/rubocop/cop/bundler/gem_filename.rb#53 + # source://rubocop/lib/rubocop/cop/bundler/gem_filename.rb#52 def register_offense(file_path, basename); end end -# source://rubocop//lib/rubocop/cop/bundler/gem_filename.rb#40 +# source://rubocop/lib/rubocop/cop/bundler/gem_filename.rb#39 RuboCop::Cop::Bundler::GemFilename::GEMFILE_FILES = T.let(T.unsafe(nil), Array) -# source://rubocop//lib/rubocop/cop/bundler/gem_filename.rb#41 +# source://rubocop/lib/rubocop/cop/bundler/gem_filename.rb#40 RuboCop::Cop::Bundler::GemFilename::GEMS_RB_FILES = T.let(T.unsafe(nil), Array) -# source://rubocop//lib/rubocop/cop/bundler/gem_filename.rb#36 +# source://rubocop/lib/rubocop/cop/bundler/gem_filename.rb#35 RuboCop::Cop::Bundler::GemFilename::MSG_GEMFILE_MISMATCHED = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/bundler/gem_filename.rb#32 +# source://rubocop/lib/rubocop/cop/bundler/gem_filename.rb#31 RuboCop::Cop::Bundler::GemFilename::MSG_GEMFILE_REQUIRED = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/bundler/gem_filename.rb#38 +# source://rubocop/lib/rubocop/cop/bundler/gem_filename.rb#37 RuboCop::Cop::Bundler::GemFilename::MSG_GEMS_RB_MISMATCHED = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/bundler/gem_filename.rb#34 +# source://rubocop/lib/rubocop/cop/bundler/gem_filename.rb#33 RuboCop::Cop::Bundler::GemFilename::MSG_GEMS_RB_REQUIRED = T.let(T.unsafe(nil), String) # Enforce that Gem version specifications or a commit reference (branch, @@ -3829,74 +3840,74 @@ RuboCop::Cop::Bundler::GemFilename::MSG_GEMS_RB_REQUIRED = T.let(T.unsafe(nil), # # bad # gem 'rubocop', tag: 'v1.17.0' # -# source://rubocop//lib/rubocop/cop/bundler/gem_version.rb#53 +# source://rubocop/lib/rubocop/cop/bundler/gem_version.rb#53 class RuboCop::Cop::Bundler::GemVersion < ::RuboCop::Cop::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle include ::RuboCop::Cop::GemDeclaration - # source://rubocop//lib/rubocop/cop/bundler/gem_version.rb#68 + # source://rubocop/lib/rubocop/cop/bundler/gem_version.rb#68 def includes_commit_reference?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/bundler/gem_version.rb#63 + # source://rubocop/lib/rubocop/cop/bundler/gem_version.rb#63 def includes_version_specification?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/bundler/gem_version.rb#72 + # source://rubocop/lib/rubocop/cop/bundler/gem_version.rb#72 def on_send(node); end private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/bundler/gem_version.rb#86 + # source://rubocop/lib/rubocop/cop/bundler/gem_version.rb#86 def allowed_gem?(node); end - # source://rubocop//lib/rubocop/cop/bundler/gem_version.rb#90 + # source://rubocop/lib/rubocop/cop/bundler/gem_version.rb#90 def allowed_gems; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/bundler/gem_version.rb#112 + # source://rubocop/lib/rubocop/cop/bundler/gem_version.rb#112 def forbidden_offense?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/bundler/gem_version.rb#118 + # source://rubocop/lib/rubocop/cop/bundler/gem_version.rb#118 def forbidden_style?; end - # source://rubocop//lib/rubocop/cop/bundler/gem_version.rb#94 + # source://rubocop/lib/rubocop/cop/bundler/gem_version.rb#94 def message(_range); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/bundler/gem_version.rb#102 + # source://rubocop/lib/rubocop/cop/bundler/gem_version.rb#102 def offense?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/bundler/gem_version.rb#106 + # source://rubocop/lib/rubocop/cop/bundler/gem_version.rb#106 def required_offense?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/bundler/gem_version.rb#122 + # source://rubocop/lib/rubocop/cop/bundler/gem_version.rb#122 def required_style?; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/bundler/gem_version.rb#126 + # source://rubocop/lib/rubocop/cop/bundler/gem_version.rb#126 def version_specification?(expression); end end -# source://rubocop//lib/rubocop/cop/bundler/gem_version.rb#58 +# source://rubocop/lib/rubocop/cop/bundler/gem_version.rb#58 RuboCop::Cop::Bundler::GemVersion::FORBIDDEN_MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/bundler/gem_version.rb#57 +# source://rubocop/lib/rubocop/cop/bundler/gem_version.rb#57 RuboCop::Cop::Bundler::GemVersion::REQUIRED_MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/bundler/gem_version.rb#59 +# source://rubocop/lib/rubocop/cop/bundler/gem_version.rb#59 RuboCop::Cop::Bundler::GemVersion::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) -# source://rubocop//lib/rubocop/cop/bundler/gem_version.rb#60 +# source://rubocop/lib/rubocop/cop/bundler/gem_version.rb#60 RuboCop::Cop::Bundler::GemVersion::VERSION_SPECIFICATION_REGEX = T.let(T.unsafe(nil), Regexp) # Passing symbol arguments to `source` (e.g. `source :rubygems`) is @@ -3932,32 +3943,31 @@ RuboCop::Cop::Bundler::GemVersion::VERSION_SPECIFICATION_REGEX = T.let(T.unsafe( # # bad # source 'http://rubygems.org' # -# source://rubocop//lib/rubocop/cop/bundler/insecure_protocol_source.rb#41 +# source://rubocop/lib/rubocop/cop/bundler/insecure_protocol_source.rb#41 class RuboCop::Cop::Bundler::InsecureProtocolSource < ::RuboCop::Cop::Base - include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/bundler/insecure_protocol_source.rb#54 + # source://rubocop/lib/rubocop/cop/bundler/insecure_protocol_source.rb#53 def insecure_protocol_source?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/bundler/insecure_protocol_source.rb#59 + # source://rubocop/lib/rubocop/cop/bundler/insecure_protocol_source.rb#58 def on_send(node); end private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/bundler/insecure_protocol_source.rb#80 + # source://rubocop/lib/rubocop/cop/bundler/insecure_protocol_source.rb#79 def allow_http_protocol?; end end -# source://rubocop//lib/rubocop/cop/bundler/insecure_protocol_source.rb#45 +# source://rubocop/lib/rubocop/cop/bundler/insecure_protocol_source.rb#44 RuboCop::Cop::Bundler::InsecureProtocolSource::MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/bundler/insecure_protocol_source.rb#49 +# source://rubocop/lib/rubocop/cop/bundler/insecure_protocol_source.rb#48 RuboCop::Cop::Bundler::InsecureProtocolSource::MSG_HTTP_PROTOCOL = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/bundler/insecure_protocol_source.rb#51 +# source://rubocop/lib/rubocop/cop/bundler/insecure_protocol_source.rb#50 RuboCop::Cop::Bundler::InsecureProtocolSource::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Gems should be alphabetically sorted within groups. @@ -3988,67 +3998,67 @@ RuboCop::Cop::Bundler::InsecureProtocolSource::RESTRICT_ON_SEND = T.let(T.unsafe # # For tests # gem 'rspec' # -# source://rubocop//lib/rubocop/cop/bundler/ordered_gems.rb#35 +# source://rubocop/lib/rubocop/cop/bundler/ordered_gems.rb#35 class RuboCop::Cop::Bundler::OrderedGems < ::RuboCop::Cop::Base include ::RuboCop::Cop::OrderedGemNode extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/bundler/ordered_gems.rb#64 + # source://rubocop/lib/rubocop/cop/bundler/ordered_gems.rb#64 def gem_declarations(param0); end - # source://rubocop//lib/rubocop/cop/bundler/ordered_gems.rb#43 + # source://rubocop/lib/rubocop/cop/bundler/ordered_gems.rb#43 def on_new_investigation; end private - # source://rubocop//lib/rubocop/cop/bundler/ordered_gems.rb#57 + # source://rubocop/lib/rubocop/cop/bundler/ordered_gems.rb#57 def previous_declaration(node); end end -# source://rubocop//lib/rubocop/cop/bundler/ordered_gems.rb#39 +# source://rubocop/lib/rubocop/cop/bundler/ordered_gems.rb#39 RuboCop::Cop::Bundler::OrderedGems::MSG = T.let(T.unsafe(nil), String) # Common functionality for checking assignment nodes. # -# source://rubocop//lib/rubocop/cop/mixin/check_assignment.rb#6 +# source://rubocop/lib/rubocop/cop/mixin/check_assignment.rb#6 module RuboCop::Cop::CheckAssignment - # source://rubocop//lib/rubocop/cop/mixin/check_assignment.rb#7 + # source://rubocop/lib/rubocop/cop/mixin/check_assignment.rb#7 def on_and_asgn(node); end - # source://rubocop//lib/rubocop/cop/mixin/check_assignment.rb#7 + # source://rubocop/lib/rubocop/cop/mixin/check_assignment.rb#7 def on_casgn(node); end - # source://rubocop//lib/rubocop/cop/mixin/check_assignment.rb#7 + # source://rubocop/lib/rubocop/cop/mixin/check_assignment.rb#7 def on_cvasgn(node); end - # source://rubocop//lib/rubocop/cop/mixin/check_assignment.rb#7 + # source://rubocop/lib/rubocop/cop/mixin/check_assignment.rb#7 def on_gvasgn(node); end - # source://rubocop//lib/rubocop/cop/mixin/check_assignment.rb#7 + # source://rubocop/lib/rubocop/cop/mixin/check_assignment.rb#7 def on_ivasgn(node); end - # source://rubocop//lib/rubocop/cop/mixin/check_assignment.rb#7 + # source://rubocop/lib/rubocop/cop/mixin/check_assignment.rb#7 def on_lvasgn(node); end - # source://rubocop//lib/rubocop/cop/mixin/check_assignment.rb#7 + # source://rubocop/lib/rubocop/cop/mixin/check_assignment.rb#7 def on_masgn(node); end - # source://rubocop//lib/rubocop/cop/mixin/check_assignment.rb#7 + # source://rubocop/lib/rubocop/cop/mixin/check_assignment.rb#7 def on_op_asgn(node); end - # source://rubocop//lib/rubocop/cop/mixin/check_assignment.rb#7 + # source://rubocop/lib/rubocop/cop/mixin/check_assignment.rb#7 def on_or_asgn(node); end - # source://rubocop//lib/rubocop/cop/mixin/check_assignment.rb#19 + # source://rubocop/lib/rubocop/cop/mixin/check_assignment.rb#19 def on_send(node); end private - # source://rubocop//lib/rubocop/cop/mixin/check_assignment.rb#29 + # source://rubocop/lib/rubocop/cop/mixin/check_assignment.rb#27 def extract_rhs(node); end class << self - # source://rubocop//lib/rubocop/cop/mixin/check_assignment.rb#29 + # source://rubocop/lib/rubocop/cop/mixin/check_assignment.rb#27 def extract_rhs(node); end end end @@ -4093,9 +4103,9 @@ end # # (Note: Passes may not happen exactly in this sequence.) # -# source://rubocop//lib/rubocop/cop/mixin/check_line_breakable.rb#44 +# source://rubocop/lib/rubocop/cop/mixin/check_line_breakable.rb#44 module RuboCop::Cop::CheckLineBreakable - # source://rubocop//lib/rubocop/cop/mixin/check_line_breakable.rb#45 + # source://rubocop/lib/rubocop/cop/mixin/check_line_breakable.rb#45 def extract_breakable_node(node, max); end private @@ -4103,69 +4113,69 @@ module RuboCop::Cop::CheckLineBreakable # @api private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/mixin/check_line_breakable.rb#202 + # 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#222 + # 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#135 + # 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 + # 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#189 + # 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#152 + # 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#172 + # 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#62 + # 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#74 + # 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#94 + # 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#209 + # 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#119 + # 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 @@ -4173,543 +4183,577 @@ module RuboCop::Cop::CheckLineBreakable # # @api private # - # source://rubocop//lib/rubocop/cop/mixin/check_line_breakable.rb#103 + # 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#114 + # source://rubocop/lib/rubocop/cop/mixin/check_line_breakable.rb#114 def within_column_limit?(element, max, line); end end +# Checks for code on multiple lines that could be rewritten on a single line +# without changing semantics or exceeding the `Max` parameter of `Layout/LineLength`. +# +# source://rubocop/lib/rubocop/cop/mixin/check_single_line_suitability.rb#7 +module RuboCop::Cop::CheckSingleLineSuitability + # @return [Boolean] + # + # source://rubocop/lib/rubocop/cop/mixin/check_single_line_suitability.rb#8 + def suitable_as_single_line?(node); end + + private + + # @return [Boolean] + # + # source://rubocop/lib/rubocop/cop/mixin/check_single_line_suitability.rb#34 + def comment_within?(node); end + + # source://rubocop/lib/rubocop/cop/mixin/check_single_line_suitability.rb#30 + def max_line_length; end + + # @return [Boolean] + # + # source://rubocop/lib/rubocop/cop/mixin/check_single_line_suitability.rb#42 + def safe_to_split?(node); end + + # source://rubocop/lib/rubocop/cop/mixin/check_single_line_suitability.rb#21 + def to_single_line(source); end + + # @return [Boolean] + # + # source://rubocop/lib/rubocop/cop/mixin/check_single_line_suitability.rb#16 + def too_long?(node); end +end + # Common functionality for checking length of code segments. # -# source://rubocop//lib/rubocop/cop/mixin/code_length.rb#6 +# source://rubocop/lib/rubocop/cop/mixin/code_length.rb#6 module RuboCop::Cop::CodeLength extend ::RuboCop::ExcludeLimit - # source://rubocop//lib/rubocop/cop/exclude_limit.rb#11 + # source://rubocop/lib/rubocop/cop/exclude_limit.rb#11 def max=(value); end private - # source://rubocop//lib/rubocop/cop/mixin/code_length.rb#49 + # source://rubocop/lib/rubocop/cop/mixin/code_length.rb#49 def build_code_length_calculator(node); end - # source://rubocop//lib/rubocop/cop/mixin/code_length.rb#31 + # source://rubocop/lib/rubocop/cop/mixin/code_length.rb#31 def check_code_length(node); end - # source://rubocop//lib/rubocop/cop/mixin/code_length.rb#27 + # source://rubocop/lib/rubocop/cop/mixin/code_length.rb#27 def count_as_one; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/mixin/code_length.rb#23 + # source://rubocop/lib/rubocop/cop/mixin/code_length.rb#23 def count_comments?; end # Returns true for lines that shall not be included in the count. # - # source://rubocop//lib/rubocop/cop/mixin/code_length.rb#45 + # source://rubocop/lib/rubocop/cop/mixin/code_length.rb#45 def irrelevant_line(source_line); end - # source://rubocop//lib/rubocop/cop/mixin/code_length.rb#58 + # source://rubocop/lib/rubocop/cop/mixin/code_length.rb#58 def location(node); end - # source://rubocop//lib/rubocop/cop/mixin/code_length.rb#19 + # source://rubocop/lib/rubocop/cop/mixin/code_length.rb#19 def max_length; end - # source://rubocop//lib/rubocop/cop/mixin/code_length.rb#15 + # source://rubocop/lib/rubocop/cop/mixin/code_length.rb#15 def message(length, max_length); end end -# source://rubocop//lib/rubocop/cop/mixin/code_length.rb#9 +# source://rubocop/lib/rubocop/cop/mixin/code_length.rb#9 RuboCop::Cop::CodeLength::MSG = T.let(T.unsafe(nil), String) # Help methods for working with nodes containing comments. # -# source://rubocop//lib/rubocop/cop/mixin/comments_help.rb#6 +# source://rubocop/lib/rubocop/cop/mixin/comments_help.rb#6 module RuboCop::Cop::CommentsHelp # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/mixin/comments_help.rb#25 + # source://rubocop/lib/rubocop/cop/mixin/comments_help.rb#27 def comments_contain_disables?(node, cop_name); end - # source://rubocop//lib/rubocop/cop/mixin/comments_help.rb#18 + # source://rubocop/lib/rubocop/cop/mixin/comments_help.rb#18 def comments_in_range(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/mixin/comments_help.rb#14 + # source://rubocop/lib/rubocop/cop/mixin/comments_help.rb#14 def contains_comments?(node); end - # source://rubocop//lib/rubocop/cop/mixin/comments_help.rb#7 + # source://rubocop/lib/rubocop/cop/mixin/comments_help.rb#7 def source_range_with_comment(node); end private - # source://rubocop//lib/rubocop/cop/mixin/comments_help.rb#44 + # source://rubocop/lib/rubocop/cop/mixin/comments_help.rb#46 def begin_pos_with_comment(node); end - # source://rubocop//lib/rubocop/cop/mixin/comments_help.rb#58 + # source://rubocop/lib/rubocop/cop/mixin/comments_help.rb#60 def buffer; end - # source://rubocop//lib/rubocop/cop/mixin/comments_help.rb#39 + # source://rubocop/lib/rubocop/cop/mixin/comments_help.rb#41 def end_position_for(node); end # Returns the end line of a node, which might be a comment and not part of the AST # End line is considered either the line at which another node starts, or # the line at which the parent node ends. # - # source://rubocop//lib/rubocop/cop/mixin/comments_help.rb#66 + # source://rubocop/lib/rubocop/cop/mixin/comments_help.rb#68 def find_end_line(node); end - # source://rubocop//lib/rubocop/cop/mixin/comments_help.rb#54 + # source://rubocop/lib/rubocop/cop/mixin/comments_help.rb#56 def start_line_position(node); end end # Commissioner class is responsible for processing the AST and delegating # work to the specified cops. # -# source://rubocop//lib/rubocop/cop/commissioner.rb#7 +# source://rubocop/lib/rubocop/cop/commissioner.rb#7 class RuboCop::Cop::Commissioner include ::RuboCop::AST::Traversal # @return [Commissioner] a new instance of Commissioner # - # source://rubocop//lib/rubocop/cop/commissioner.rb#44 + # source://rubocop/lib/rubocop/cop/commissioner.rb#44 def initialize(cops, forces = T.unsafe(nil), options = T.unsafe(nil)); end # Returns the value of attribute errors. # - # source://rubocop//lib/rubocop/cop/commissioner.rb#42 + # source://rubocop/lib/rubocop/cop/commissioner.rb#42 def errors; end # @return [InvestigationReport] # - # source://rubocop//lib/rubocop/cop/commissioner.rb#79 + # source://rubocop/lib/rubocop/cop/commissioner.rb#79 def investigate(processed_source, offset: T.unsafe(nil), original: T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop/lib/rubocop/cop/commissioner.rb#68 def on___ENCODING__(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop/lib/rubocop/cop/commissioner.rb#68 def on___FILE__(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop/lib/rubocop/cop/commissioner.rb#68 def on___LINE__(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop/lib/rubocop/cop/commissioner.rb#68 def on_alias(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop/lib/rubocop/cop/commissioner.rb#68 def on_and(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop/lib/rubocop/cop/commissioner.rb#68 def on_and_asgn(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop/lib/rubocop/cop/commissioner.rb#68 def on_arg(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop/lib/rubocop/cop/commissioner.rb#68 def on_arg_expr(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop/lib/rubocop/cop/commissioner.rb#68 def on_args(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop/lib/rubocop/cop/commissioner.rb#68 def on_array(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop/lib/rubocop/cop/commissioner.rb#68 def on_array_pattern(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop/lib/rubocop/cop/commissioner.rb#68 def on_array_pattern_with_tail(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop/lib/rubocop/cop/commissioner.rb#68 def on_back_ref(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop/lib/rubocop/cop/commissioner.rb#68 def on_begin(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop/lib/rubocop/cop/commissioner.rb#68 def on_block(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop/lib/rubocop/cop/commissioner.rb#68 def on_block_pass(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop/lib/rubocop/cop/commissioner.rb#68 def on_blockarg(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop/lib/rubocop/cop/commissioner.rb#68 def on_break(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop/lib/rubocop/cop/commissioner.rb#68 def on_case(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop/lib/rubocop/cop/commissioner.rb#68 def on_case_match(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop/lib/rubocop/cop/commissioner.rb#68 def on_casgn(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop/lib/rubocop/cop/commissioner.rb#68 def on_cbase(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop/lib/rubocop/cop/commissioner.rb#68 def on_class(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop/lib/rubocop/cop/commissioner.rb#68 def on_complex(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop/lib/rubocop/cop/commissioner.rb#68 def on_const(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop/lib/rubocop/cop/commissioner.rb#68 def on_const_pattern(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop/lib/rubocop/cop/commissioner.rb#68 def on_csend(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop/lib/rubocop/cop/commissioner.rb#68 def on_cvar(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop/lib/rubocop/cop/commissioner.rb#68 def on_cvasgn(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop/lib/rubocop/cop/commissioner.rb#68 def on_def(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop/lib/rubocop/cop/commissioner.rb#68 def on_defined?(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop/lib/rubocop/cop/commissioner.rb#68 def on_defs(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop/lib/rubocop/cop/commissioner.rb#68 def on_dstr(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop/lib/rubocop/cop/commissioner.rb#68 def on_dsym(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop/lib/rubocop/cop/commissioner.rb#68 def on_eflipflop(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop/lib/rubocop/cop/commissioner.rb#68 def on_empty_else(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop/lib/rubocop/cop/commissioner.rb#68 def on_ensure(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop/lib/rubocop/cop/commissioner.rb#68 def on_erange(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop/lib/rubocop/cop/commissioner.rb#68 def on_false(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop/lib/rubocop/cop/commissioner.rb#68 def on_find_pattern(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop/lib/rubocop/cop/commissioner.rb#68 def on_float(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop/lib/rubocop/cop/commissioner.rb#68 def on_for(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop/lib/rubocop/cop/commissioner.rb#68 def on_forward_arg(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop/lib/rubocop/cop/commissioner.rb#68 def on_forward_args(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop/lib/rubocop/cop/commissioner.rb#68 def on_forwarded_args(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop/lib/rubocop/cop/commissioner.rb#68 def on_forwarded_kwrestarg(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop/lib/rubocop/cop/commissioner.rb#68 def on_forwarded_restarg(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop/lib/rubocop/cop/commissioner.rb#68 def on_gvar(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop/lib/rubocop/cop/commissioner.rb#68 def on_gvasgn(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop/lib/rubocop/cop/commissioner.rb#68 def on_hash(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop/lib/rubocop/cop/commissioner.rb#68 def on_hash_pattern(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop/lib/rubocop/cop/commissioner.rb#68 def on_if(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop/lib/rubocop/cop/commissioner.rb#68 def on_if_guard(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop/lib/rubocop/cop/commissioner.rb#68 def on_iflipflop(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop/lib/rubocop/cop/commissioner.rb#68 def on_in_match(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop/lib/rubocop/cop/commissioner.rb#68 def on_in_pattern(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop/lib/rubocop/cop/commissioner.rb#68 def on_index(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop/lib/rubocop/cop/commissioner.rb#68 def on_indexasgn(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop/lib/rubocop/cop/commissioner.rb#68 def on_int(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop/lib/rubocop/cop/commissioner.rb#68 def on_irange(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop/lib/rubocop/cop/commissioner.rb#68 def on_ivar(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop/lib/rubocop/cop/commissioner.rb#68 def on_ivasgn(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop/lib/rubocop/cop/commissioner.rb#68 def on_kwarg(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop/lib/rubocop/cop/commissioner.rb#68 def on_kwargs(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop/lib/rubocop/cop/commissioner.rb#68 def on_kwbegin(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop/lib/rubocop/cop/commissioner.rb#68 def on_kwnilarg(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop/lib/rubocop/cop/commissioner.rb#68 def on_kwoptarg(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop/lib/rubocop/cop/commissioner.rb#68 def on_kwrestarg(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop/lib/rubocop/cop/commissioner.rb#68 def on_kwsplat(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop/lib/rubocop/cop/commissioner.rb#68 def on_lambda(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop/lib/rubocop/cop/commissioner.rb#68 def on_lvar(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop/lib/rubocop/cop/commissioner.rb#68 def on_lvasgn(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop/lib/rubocop/cop/commissioner.rb#68 def on_masgn(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop/lib/rubocop/cop/commissioner.rb#68 def on_match_alt(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop/lib/rubocop/cop/commissioner.rb#68 def on_match_as(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop/lib/rubocop/cop/commissioner.rb#68 def on_match_current_line(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop/lib/rubocop/cop/commissioner.rb#68 def on_match_nil_pattern(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop/lib/rubocop/cop/commissioner.rb#68 def on_match_pattern(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop/lib/rubocop/cop/commissioner.rb#68 def on_match_pattern_p(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop/lib/rubocop/cop/commissioner.rb#68 def on_match_rest(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop/lib/rubocop/cop/commissioner.rb#68 def on_match_var(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop/lib/rubocop/cop/commissioner.rb#68 def on_match_with_lvasgn(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop/lib/rubocop/cop/commissioner.rb#68 def on_match_with_trailing_comma(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop/lib/rubocop/cop/commissioner.rb#68 def on_mlhs(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop/lib/rubocop/cop/commissioner.rb#68 def on_module(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop/lib/rubocop/cop/commissioner.rb#68 def on_next(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop/lib/rubocop/cop/commissioner.rb#68 def on_nil(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop/lib/rubocop/cop/commissioner.rb#68 def on_not(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop/lib/rubocop/cop/commissioner.rb#68 def on_nth_ref(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop/lib/rubocop/cop/commissioner.rb#68 def on_numblock(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop/lib/rubocop/cop/commissioner.rb#68 def on_op_asgn(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop/lib/rubocop/cop/commissioner.rb#68 def on_optarg(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop/lib/rubocop/cop/commissioner.rb#68 def on_or(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop/lib/rubocop/cop/commissioner.rb#68 def on_or_asgn(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop/lib/rubocop/cop/commissioner.rb#68 def on_pair(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop/lib/rubocop/cop/commissioner.rb#68 def on_pin(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop/lib/rubocop/cop/commissioner.rb#68 def on_postexe(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop/lib/rubocop/cop/commissioner.rb#68 def on_preexe(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop/lib/rubocop/cop/commissioner.rb#68 def on_procarg0(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop/lib/rubocop/cop/commissioner.rb#68 def on_rational(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop/lib/rubocop/cop/commissioner.rb#68 def on_redo(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop/lib/rubocop/cop/commissioner.rb#68 def on_regexp(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop/lib/rubocop/cop/commissioner.rb#68 def on_regopt(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop/lib/rubocop/cop/commissioner.rb#68 def on_resbody(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop/lib/rubocop/cop/commissioner.rb#68 def on_rescue(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop/lib/rubocop/cop/commissioner.rb#68 def on_restarg(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop/lib/rubocop/cop/commissioner.rb#68 def on_retry(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop/lib/rubocop/cop/commissioner.rb#68 def on_return(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop/lib/rubocop/cop/commissioner.rb#68 def on_sclass(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop/lib/rubocop/cop/commissioner.rb#68 def on_self(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop/lib/rubocop/cop/commissioner.rb#68 def on_send(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop/lib/rubocop/cop/commissioner.rb#68 def on_shadowarg(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop/lib/rubocop/cop/commissioner.rb#68 def on_splat(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop/lib/rubocop/cop/commissioner.rb#68 def on_str(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop/lib/rubocop/cop/commissioner.rb#68 def on_super(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop/lib/rubocop/cop/commissioner.rb#68 def on_sym(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop/lib/rubocop/cop/commissioner.rb#68 def on_true(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop/lib/rubocop/cop/commissioner.rb#68 def on_undef(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop/lib/rubocop/cop/commissioner.rb#68 def on_unless_guard(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop/lib/rubocop/cop/commissioner.rb#68 def on_until(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop/lib/rubocop/cop/commissioner.rb#68 def on_until_post(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop/lib/rubocop/cop/commissioner.rb#68 def on_when(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop/lib/rubocop/cop/commissioner.rb#68 def on_while(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop/lib/rubocop/cop/commissioner.rb#68 def on_while_post(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop/lib/rubocop/cop/commissioner.rb#68 def on_xstr(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop/lib/rubocop/cop/commissioner.rb#68 def on_yield(node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + # source://rubocop/lib/rubocop/cop/commissioner.rb#68 def on_zsuper(node); end private - # source://rubocop//lib/rubocop/cop/commissioner.rb#98 + # source://rubocop/lib/rubocop/cop/commissioner.rb#98 def begin_investigation(processed_source, offset:, original:); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#121 + # source://rubocop/lib/rubocop/cop/commissioner.rb#121 def build_callbacks(cops); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#116 + # source://rubocop/lib/rubocop/cop/commissioner.rb#116 def initialize_callbacks; end - # source://rubocop//lib/rubocop/cop/commissioner.rb#159 + # source://rubocop/lib/rubocop/cop/commissioner.rb#159 def invoke(callback, cops); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#163 + # source://rubocop/lib/rubocop/cop/commissioner.rb#163 def invoke_with_argument(callback, cops, arg); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#112 + # source://rubocop/lib/rubocop/cop/commissioner.rb#112 def reset; end - # source://rubocop//lib/rubocop/cop/commissioner.rb#131 + # source://rubocop/lib/rubocop/cop/commissioner.rb#131 def restrict_callbacks(callbacks); end # NOTE: mutates `callbacks` in place # - # source://rubocop//lib/rubocop/cop/commissioner.rb#149 + # source://rubocop/lib/rubocop/cop/commissioner.rb#149 def restricted_map(callbacks); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#104 + # source://rubocop/lib/rubocop/cop/commissioner.rb#104 def trigger_responding_cops(callback, node); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#139 + # source://rubocop/lib/rubocop/cop/commissioner.rb#139 def trigger_restricted_cops(event, node); end # Allow blind rescues here, since we're absorbing and packaging or # re-raising exceptions that can be raised from within the individual # cops' `#investigate` methods. # - # source://rubocop//lib/rubocop/cop/commissioner.rb#170 + # source://rubocop/lib/rubocop/cop/commissioner.rb#170 def with_cop_error_handling(cop, node = T.unsafe(nil)); end end @@ -4719,7 +4763,7 @@ end # Immutable # Consider creation API private # -# source://rubocop//lib/rubocop/cop/commissioner.rb#18 +# source://rubocop/lib/rubocop/cop/commissioner.rb#18 class RuboCop::Cop::Commissioner::InvestigationReport < ::Struct # Returns the value of attribute cop_reports # @@ -4732,10 +4776,10 @@ class RuboCop::Cop::Commissioner::InvestigationReport < ::Struct # @return [Object] the newly set value def cop_reports=(_); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#19 + # source://rubocop/lib/rubocop/cop/commissioner.rb#19 def cops; end - # source://rubocop//lib/rubocop/cop/commissioner.rb#27 + # source://rubocop/lib/rubocop/cop/commissioner.rb#27 def correctors; end # Returns the value of attribute errors @@ -4749,13 +4793,13 @@ class RuboCop::Cop::Commissioner::InvestigationReport < ::Struct # @return [Object] the newly set value def errors=(_); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#35 + # source://rubocop/lib/rubocop/cop/commissioner.rb#35 def merge(investigation); end - # source://rubocop//lib/rubocop/cop/commissioner.rb#31 + # source://rubocop/lib/rubocop/cop/commissioner.rb#31 def offenses; end - # source://rubocop//lib/rubocop/cop/commissioner.rb#23 + # source://rubocop/lib/rubocop/cop/commissioner.rb#23 def offenses_per_cop; end # Returns the value of attribute processed_source @@ -4778,94 +4822,94 @@ class RuboCop::Cop::Commissioner::InvestigationReport < ::Struct end end -# source://rubocop//lib/rubocop/cop/commissioner.rb#10 +# source://rubocop/lib/rubocop/cop/commissioner.rb#10 RuboCop::Cop::Commissioner::RESTRICTED_CALLBACKS = T.let(T.unsafe(nil), Array) # This class does condition autocorrection # -# source://rubocop//lib/rubocop/cop/correctors/condition_corrector.rb#6 +# source://rubocop/lib/rubocop/cop/correctors/condition_corrector.rb#6 class RuboCop::Cop::ConditionCorrector class << self - # source://rubocop//lib/rubocop/cop/correctors/condition_corrector.rb#8 + # source://rubocop/lib/rubocop/cop/correctors/condition_corrector.rb#8 def correct_negative_condition(corrector, node); end private - # source://rubocop//lib/rubocop/cop/correctors/condition_corrector.rb#17 + # source://rubocop/lib/rubocop/cop/correctors/condition_corrector.rb#17 def negated_condition(node); end end end # Handles `EnforcedStyle` configuration parameters. # -# source://rubocop//lib/rubocop/cop/mixin/configurable_enforced_style.rb#6 +# source://rubocop/lib/rubocop/cop/mixin/configurable_enforced_style.rb#6 module RuboCop::Cop::ConfigurableEnforcedStyle - # source://rubocop//lib/rubocop/cop/mixin/configurable_enforced_style.rb#88 + # source://rubocop/lib/rubocop/cop/mixin/configurable_enforced_style.rb#88 def alternative_style; end - # source://rubocop//lib/rubocop/cop/mixin/configurable_enforced_style.rb#96 + # source://rubocop/lib/rubocop/cop/mixin/configurable_enforced_style.rb#96 def alternative_styles; end - # source://rubocop//lib/rubocop/cop/mixin/configurable_enforced_style.rb#19 + # source://rubocop/lib/rubocop/cop/mixin/configurable_enforced_style.rb#19 def ambiguous_style_detected(*possibilities); end - # source://rubocop//lib/rubocop/cop/mixin/configurable_enforced_style.rb#60 + # source://rubocop/lib/rubocop/cop/mixin/configurable_enforced_style.rb#60 def conflicting_styles_detected; end - # source://rubocop//lib/rubocop/cop/mixin/configurable_enforced_style.rb#11 + # source://rubocop/lib/rubocop/cop/mixin/configurable_enforced_style.rb#11 def correct_style_detected; end - # source://rubocop//lib/rubocop/cop/mixin/configurable_enforced_style.rb#64 + # source://rubocop/lib/rubocop/cop/mixin/configurable_enforced_style.rb#64 def detected_style; end - # source://rubocop//lib/rubocop/cop/mixin/configurable_enforced_style.rb#68 + # source://rubocop/lib/rubocop/cop/mixin/configurable_enforced_style.rb#68 def detected_style=(style); end - # source://rubocop//lib/rubocop/cop/mixin/configurable_enforced_style.rb#60 + # source://rubocop/lib/rubocop/cop/mixin/configurable_enforced_style.rb#60 def no_acceptable_style!; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/mixin/configurable_enforced_style.rb#56 + # source://rubocop/lib/rubocop/cop/mixin/configurable_enforced_style.rb#56 def no_acceptable_style?; end - # source://rubocop//lib/rubocop/cop/mixin/configurable_enforced_style.rb#7 + # source://rubocop/lib/rubocop/cop/mixin/configurable_enforced_style.rb#7 def opposite_style_detected; end - # source://rubocop//lib/rubocop/cop/mixin/configurable_enforced_style.rb#79 + # source://rubocop/lib/rubocop/cop/mixin/configurable_enforced_style.rb#79 def style; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/mixin/configurable_enforced_style.rb#75 + # source://rubocop/lib/rubocop/cop/mixin/configurable_enforced_style.rb#75 def style_configured?; end - # source://rubocop//lib/rubocop/cop/mixin/configurable_enforced_style.rb#29 + # source://rubocop/lib/rubocop/cop/mixin/configurable_enforced_style.rb#29 def style_detected(detected); end - # source://rubocop//lib/rubocop/cop/mixin/configurable_enforced_style.rb#107 + # source://rubocop/lib/rubocop/cop/mixin/configurable_enforced_style.rb#107 def style_parameter_name; end - # source://rubocop//lib/rubocop/cop/mixin/configurable_enforced_style.rb#100 + # source://rubocop/lib/rubocop/cop/mixin/configurable_enforced_style.rb#100 def supported_styles; end - # source://rubocop//lib/rubocop/cop/mixin/configurable_enforced_style.rb#15 + # source://rubocop/lib/rubocop/cop/mixin/configurable_enforced_style.rb#15 def unexpected_style_detected(unexpected); end - # source://rubocop//lib/rubocop/cop/mixin/configurable_enforced_style.rb#60 + # source://rubocop/lib/rubocop/cop/mixin/configurable_enforced_style.rb#60 def unrecognized_style_detected; end end -# source://rubocop//lib/rubocop/cop/mixin/configurable_enforced_style.rb#23 +# source://rubocop/lib/rubocop/cop/mixin/configurable_enforced_style.rb#23 RuboCop::Cop::ConfigurableEnforcedStyle::SYMBOL_TO_STRING_CACHE = T.let(T.unsafe(nil), Hash) # Shared functionality between mixins that enforce naming conventions # -# source://rubocop//lib/rubocop/cop/mixin/configurable_formatting.rb#6 +# source://rubocop/lib/rubocop/cop/mixin/configurable_formatting.rb#6 module RuboCop::Cop::ConfigurableFormatting include ::RuboCop::Cop::ConfigurableEnforcedStyle - # source://rubocop//lib/rubocop/cop/mixin/configurable_formatting.rb#9 + # source://rubocop/lib/rubocop/cop/mixin/configurable_formatting.rb#9 def check_name(node, name, name_range); end # A class emitter method is a singleton method in a class/module, where @@ -4873,15 +4917,15 @@ module RuboCop::Cop::ConfigurableFormatting # # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/mixin/configurable_formatting.rb#30 + # source://rubocop/lib/rubocop/cop/mixin/configurable_formatting.rb#30 def class_emitter_method?(node, name); end - # source://rubocop//lib/rubocop/cop/mixin/configurable_formatting.rb#17 + # source://rubocop/lib/rubocop/cop/mixin/configurable_formatting.rb#17 def report_opposing_styles(node, name); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/mixin/configurable_formatting.rb#24 + # source://rubocop/lib/rubocop/cop/mixin/configurable_formatting.rb#24 def valid_name?(node, name, given_style = T.unsafe(nil)); end end @@ -4890,150 +4934,150 @@ end # # @deprecated Use `exclude_limit ` instead. # -# source://rubocop//lib/rubocop/cop/mixin/configurable_max.rb#8 +# source://rubocop/lib/rubocop/cop/mixin/configurable_max.rb#8 module RuboCop::Cop::ConfigurableMax private - # source://rubocop//lib/rubocop/cop/mixin/configurable_max.rb#11 + # source://rubocop/lib/rubocop/cop/mixin/configurable_max.rb#11 def max=(value); end - # source://rubocop//lib/rubocop/cop/mixin/configurable_max.rb#23 + # source://rubocop/lib/rubocop/cop/mixin/configurable_max.rb#23 def max_parameter_name; end end # This module provides functionality for checking if names match the # configured EnforcedStyle. # -# source://rubocop//lib/rubocop/cop/mixin/configurable_naming.rb#7 +# source://rubocop/lib/rubocop/cop/mixin/configurable_naming.rb#7 module RuboCop::Cop::ConfigurableNaming include ::RuboCop::Cop::ConfigurableEnforcedStyle include ::RuboCop::Cop::ConfigurableFormatting end -# source://rubocop//lib/rubocop/cop/mixin/configurable_naming.rb#10 +# source://rubocop/lib/rubocop/cop/mixin/configurable_naming.rb#10 RuboCop::Cop::ConfigurableNaming::FORMATS = T.let(T.unsafe(nil), Hash) # This module provides functionality for checking if numbering match the # configured EnforcedStyle. # -# source://rubocop//lib/rubocop/cop/mixin/configurable_numbering.rb#7 +# source://rubocop/lib/rubocop/cop/mixin/configurable_numbering.rb#7 module RuboCop::Cop::ConfigurableNumbering include ::RuboCop::Cop::ConfigurableEnforcedStyle include ::RuboCop::Cop::ConfigurableFormatting end -# source://rubocop//lib/rubocop/cop/mixin/configurable_numbering.rb#11 +# source://rubocop/lib/rubocop/cop/mixin/configurable_numbering.rb#11 RuboCop::Cop::ConfigurableNumbering::FORMATS = T.let(T.unsafe(nil), Hash) # Monkey-patch Cop for tests to provide easy access to messages and # highlights. # -# source://rubocop//lib/rubocop/cop/cop.rb#11 +# source://rubocop/lib/rubocop/cop/cop.rb#11 class RuboCop::Cop::Cop < ::RuboCop::Cop::Base - # source://rubocop//lib/rubocop/cop/cop.rb#73 + # source://rubocop/lib/rubocop/cop/cop.rb#73 def add_offense(node_or_range, location: T.unsafe(nil), message: T.unsafe(nil), severity: T.unsafe(nil), &block); end # Called before any investigation # # @api private # - # source://rubocop//lib/rubocop/cop/cop.rb#129 + # source://rubocop/lib/rubocop/cop/cop.rb#129 def begin_investigation(processed_source, offset: T.unsafe(nil), original: T.unsafe(nil)); end # @deprecated # - # source://rubocop//lib/rubocop/cop/cop.rb#105 + # source://rubocop/lib/rubocop/cop/cop.rb#105 def corrections; end - # source://rubocop//lib/rubocop/cop/cop.rb#90 + # source://rubocop/lib/rubocop/cop/cop.rb#90 def find_location(node, loc); end # Returns the value of attribute offenses. # - # source://rubocop//lib/rubocop/cop/cop.rb#12 + # source://rubocop/lib/rubocop/cop/cop.rb#12 def offenses; end # Called after all on_... have been called # - # source://rubocop//lib/rubocop/cop/cop.rb#122 + # source://rubocop/lib/rubocop/cop/cop.rb#122 def on_investigation_end; end # Called before all on_... have been called # - # source://rubocop//lib/rubocop/cop/cop.rb#116 + # source://rubocop/lib/rubocop/cop/cop.rb#116 def on_new_investigation; end # @deprecated Use class method # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/cop.rb#96 + # source://rubocop/lib/rubocop/cop/cop.rb#96 def support_autocorrect?; end private - # source://rubocop//lib/rubocop/cop/cop.rb#147 + # source://rubocop/lib/rubocop/cop/cop.rb#147 def apply_correction(corrector); end # Override Base # - # source://rubocop//lib/rubocop/cop/cop.rb#143 + # source://rubocop/lib/rubocop/cop/cop.rb#143 def callback_argument(_range); end - # source://rubocop//lib/rubocop/cop/cop.rb#164 + # source://rubocop/lib/rubocop/cop/cop.rb#164 def correction_lambda; end - # source://rubocop//lib/rubocop/cop/cop.rb#170 + # source://rubocop/lib/rubocop/cop/cop.rb#170 def dedupe_on_node(node); end # Just for legacy # # @yield [corrector] # - # source://rubocop//lib/rubocop/cop/cop.rb#152 + # source://rubocop/lib/rubocop/cop/cop.rb#152 def emulate_v0_callsequence(corrector); end - # source://rubocop//lib/rubocop/cop/cop.rb#183 + # source://rubocop/lib/rubocop/cop/cop.rb#183 def range_for_original(range); end - # source://rubocop//lib/rubocop/cop/cop.rb#177 + # source://rubocop/lib/rubocop/cop/cop.rb#177 def suppress_clobbering; end class << self # @deprecated Use Registry.all # - # source://rubocop//lib/rubocop/cop/cop.rb#56 + # source://rubocop/lib/rubocop/cop/cop.rb#56 def all; end # @private # - # source://rubocop//lib/rubocop/cop/cop.rb#25 + # source://rubocop/lib/rubocop/cop/cop.rb#25 def inherited(_subclass); end - # source://rubocop//lib/rubocop/cop/cop.rb#37 + # source://rubocop/lib/rubocop/cop/cop.rb#37 def joining_forces; end # @deprecated Use Registry.qualified_cop_name # - # source://rubocop//lib/rubocop/cop/cop.rb#65 + # source://rubocop/lib/rubocop/cop/cop.rb#65 def qualified_cop_name(name, origin); end # @deprecated Use Registry.global # - # source://rubocop//lib/rubocop/cop/cop.rb#47 + # source://rubocop/lib/rubocop/cop/cop.rb#47 def registry; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/cop.rb#33 + # source://rubocop/lib/rubocop/cop/cop.rb#33 def support_autocorrect?; end end end # @deprecated # -# source://rubocop//lib/rubocop/cop/cop.rb#17 +# source://rubocop/lib/rubocop/cop/cop.rb#17 class RuboCop::Cop::Cop::Correction < ::Struct - # source://rubocop//lib/rubocop/cop/cop.rb#18 + # source://rubocop/lib/rubocop/cop/cop.rb#18 def call(corrector); end # Returns the value of attribute cop @@ -5085,7 +5129,7 @@ end # The nodes modified by the corrections should be part of the # AST of the source_buffer. # -# source://rubocop//lib/rubocop/cop/corrector.rb#11 +# source://rubocop/lib/rubocop/cop/corrector.rb#11 class RuboCop::Cop::Corrector < ::Parser::Source::TreeRewriter # corrector = Corrector.new(cop) # @@ -5093,7 +5137,7 @@ class RuboCop::Cop::Corrector < ::Parser::Source::TreeRewriter # leading to one via `(processed_source.)buffer`] # @return [Corrector] a new instance of Corrector # - # source://rubocop//lib/rubocop/cop/corrector.rb#32 + # source://rubocop/lib/rubocop/cop/corrector.rb#32 def initialize(source); end # Removes `size` characters from the beginning of the given range. @@ -5103,7 +5147,7 @@ class RuboCop::Cop::Corrector < ::Parser::Source::TreeRewriter # @param range [Parser::Source::Range, RuboCop::AST::Node] or node # @param size [Integer] # - # source://rubocop//lib/rubocop/cop/corrector.rb#63 + # source://rubocop/lib/rubocop/cop/corrector.rb#63 def remove_leading(node_or_range, size); end # Removes `size` characters prior to the source range. @@ -5111,7 +5155,7 @@ class RuboCop::Cop::Corrector < ::Parser::Source::TreeRewriter # @param range [Parser::Source::Range, RuboCop::AST::Node] or node # @param size [Integer] # - # source://rubocop//lib/rubocop/cop/corrector.rb#51 + # source://rubocop/lib/rubocop/cop/corrector.rb#51 def remove_preceding(node_or_range, size); end # Removes `size` characters from the end of the given range. @@ -5121,12 +5165,12 @@ class RuboCop::Cop::Corrector < ::Parser::Source::TreeRewriter # @param range [Parser::Source::Range, RuboCop::AST::Node] or node # @param size [Integer] # - # source://rubocop//lib/rubocop/cop/corrector.rb#75 + # source://rubocop/lib/rubocop/cop/corrector.rb#75 def remove_trailing(node_or_range, size); end # Legacy # - # source://parser/3.3.5.1/lib/parser/source/tree_rewriter.rb#252 + # source://parser/3.3.6.0lib/parser/source/tree_rewriter.rb#252 def rewrite; end # Swaps sources at the given ranges. @@ -5134,155 +5178,176 @@ class RuboCop::Cop::Corrector < ::Parser::Source::TreeRewriter # @param node_or_range1 [Parser::Source::Range, RuboCop::AST::Node] # @param node_or_range2 [Parser::Source::Range, RuboCop::AST::Node] # - # source://rubocop//lib/rubocop/cop/corrector.rb#85 + # source://rubocop/lib/rubocop/cop/corrector.rb#85 def swap(node_or_range1, node_or_range2); end private - # source://rubocop//lib/rubocop/cop/corrector.rb#119 + # source://rubocop/lib/rubocop/cop/corrector.rb#119 def check_range_validity(node_or_range); end - # source://rubocop//lib/rubocop/cop/corrector.rb#104 + # source://rubocop/lib/rubocop/cop/corrector.rb#104 def to_range(node_or_range); end - # source://rubocop//lib/rubocop/cop/corrector.rb#123 + # source://rubocop/lib/rubocop/cop/corrector.rb#123 def validate_buffer(buffer); end class << self # Duck typing for get to a ::Parser::Source::Buffer # - # source://rubocop//lib/rubocop/cop/corrector.rb#15 + # source://rubocop/lib/rubocop/cop/corrector.rb#15 def source_buffer(source); end end end # noop # -# source://rubocop//lib/rubocop/cop/corrector.rb#12 +# source://rubocop/lib/rubocop/cop/corrector.rb#12 RuboCop::Cop::Corrector::NOOP_CONSUMER = T.let(T.unsafe(nil), Proc) # Common functionality for checking def nodes. # -# source://rubocop//lib/rubocop/cop/mixin/def_node.rb#6 +# source://rubocop/lib/rubocop/cop/mixin/def_node.rb#6 module RuboCop::Cop::DefNode include ::RuboCop::Cop::VisibilityHelp extend ::RuboCop::AST::NodePattern::Macros - # source://rubocop//lib/rubocop/cop/mixin/def_node.rb#21 + # source://rubocop/lib/rubocop/cop/mixin/def_node.rb#21 def non_public_modifier?(param0 = T.unsafe(nil)); end private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/mixin/def_node.rb#12 + # source://rubocop/lib/rubocop/cop/mixin/def_node.rb#12 def non_public?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/mixin/def_node.rb#16 + # source://rubocop/lib/rubocop/cop/mixin/def_node.rb#16 def preceding_non_public_modifier?(node); end end +# Help methods for working with `Enumerable#dig` in cops. +# Used by `Style::DigChain` and `Style::SingleArgumentDig` +# +# source://rubocop/lib/rubocop/cop/mixin/dig_help.rb#7 +module RuboCop::Cop::DigHelp + extend ::RuboCop::AST::NodePattern::Macros + + # source://rubocop/lib/rubocop/cop/mixin/dig_help.rb#11 + def dig?(param0 = T.unsafe(nil)); end + + # source://rubocop/lib/rubocop/cop/mixin/dig_help.rb#16 + def single_argument_dig?(param0 = T.unsafe(nil)); end + + private + + # @return [Boolean] + # + # source://rubocop/lib/rubocop/cop/mixin/dig_help.rb#22 + def dig_chain_enabled?; end +end + # Helpers for builtin documentation # -# source://rubocop//lib/rubocop/cop/documentation.rb#6 +# source://rubocop/lib/rubocop/cop/documentation.rb#6 module RuboCop::Cop::Documentation private # @api private # - # source://rubocop//lib/rubocop/cop/documentation.rb#25 + # source://rubocop/lib/rubocop/cop/documentation.rb#25 def base_url_for(cop_class, config); end # @api private # - # source://rubocop//lib/rubocop/cop/documentation.rb#57 + # source://rubocop/lib/rubocop/cop/documentation.rb#57 def builtin?(cop_class); end # @api private # - # source://rubocop//lib/rubocop/cop/documentation.rb#47 + # source://rubocop/lib/rubocop/cop/documentation.rb#47 def default_base_url; end # @api private # - # source://rubocop//lib/rubocop/cop/documentation.rb#52 + # source://rubocop/lib/rubocop/cop/documentation.rb#52 def default_extension; end # @api private # - # source://rubocop//lib/rubocop/cop/documentation.rb#10 + # source://rubocop/lib/rubocop/cop/documentation.rb#10 def department_to_basename(department); end # @api private # - # source://rubocop//lib/rubocop/cop/documentation.rb#36 + # source://rubocop/lib/rubocop/cop/documentation.rb#36 def extension_for(cop_class, config); end # @api private # - # source://rubocop//lib/rubocop/cop/documentation.rb#15 + # source://rubocop/lib/rubocop/cop/documentation.rb#15 def url_for(cop_class, config = T.unsafe(nil)); end class << self # @api private # - # source://rubocop//lib/rubocop/cop/documentation.rb#25 + # source://rubocop/lib/rubocop/cop/documentation.rb#25 def base_url_for(cop_class, config); end # @api private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/documentation.rb#57 + # source://rubocop/lib/rubocop/cop/documentation.rb#57 def builtin?(cop_class); end # @api private # - # source://rubocop//lib/rubocop/cop/documentation.rb#47 + # source://rubocop/lib/rubocop/cop/documentation.rb#47 def default_base_url; end # @api private # - # source://rubocop//lib/rubocop/cop/documentation.rb#52 + # source://rubocop/lib/rubocop/cop/documentation.rb#52 def default_extension; end # @api private # - # source://rubocop//lib/rubocop/cop/documentation.rb#10 + # source://rubocop/lib/rubocop/cop/documentation.rb#10 def department_to_basename(department); end # @api private # - # source://rubocop//lib/rubocop/cop/documentation.rb#36 + # source://rubocop/lib/rubocop/cop/documentation.rb#36 def extension_for(cop_class, config); end # @api private # - # source://rubocop//lib/rubocop/cop/documentation.rb#15 + # source://rubocop/lib/rubocop/cop/documentation.rb#15 def url_for(cop_class, config = T.unsafe(nil)); end end end # Common functionality for checking documentation. # -# source://rubocop//lib/rubocop/cop/mixin/documentation_comment.rb#6 +# source://rubocop/lib/rubocop/cop/mixin/documentation_comment.rb#6 module RuboCop::Cop::DocumentationComment extend ::RuboCop::AST::NodePattern::Macros private - # source://rubocop//lib/rubocop/cop/mixin/documentation_comment.rb#47 + # source://rubocop/lib/rubocop/cop/mixin/documentation_comment.rb#47 def annotation_keywords; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/mixin/documentation_comment.rb#11 + # source://rubocop/lib/rubocop/cop/mixin/documentation_comment.rb#11 def documentation_comment?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/mixin/documentation_comment.rb#39 + # source://rubocop/lib/rubocop/cop/mixin/documentation_comment.rb#39 def interpreter_directive_comment?(comment); end # The args node1 & node2 may represent a RuboCop::AST::Node @@ -5290,7 +5355,7 @@ module RuboCop::Cop::DocumentationComment # # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/mixin/documentation_comment.rb#31 + # source://rubocop/lib/rubocop/cop/mixin/documentation_comment.rb#31 def precede?(node1, node2); end # The args node1 & node2 may represent a RuboCop::AST::Node @@ -5298,21 +5363,21 @@ module RuboCop::Cop::DocumentationComment # # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/mixin/documentation_comment.rb#25 + # source://rubocop/lib/rubocop/cop/mixin/documentation_comment.rb#25 def preceding_comment?(node1, node2); end - # source://rubocop//lib/rubocop/cop/mixin/documentation_comment.rb#35 + # source://rubocop/lib/rubocop/cop/mixin/documentation_comment.rb#35 def preceding_lines(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/mixin/documentation_comment.rb#43 + # source://rubocop/lib/rubocop/cop/mixin/documentation_comment.rb#43 def rubocop_directive_comment?(comment); end end # Common functionality for dealing with duplication. # -# source://rubocop//lib/rubocop/cop/mixin/duplication.rb#6 +# source://rubocop/lib/rubocop/cop/mixin/duplication.rb#6 module RuboCop::Cop::Duplication private @@ -5322,7 +5387,7 @@ module RuboCop::Cop::Duplication # @param collection [Array] an array to return consecutive duplicates for # @return [Array] the consecutive duplicates # - # source://rubocop//lib/rubocop/cop/mixin/duplication.rb#31 + # source://rubocop/lib/rubocop/cop/mixin/duplication.rb#31 def consecutive_duplicates(collection); end # Returns all duplicates, including the first instance of the duplicated @@ -5331,7 +5396,7 @@ module RuboCop::Cop::Duplication # @param collection [Array] an array to return duplicates for # @return [Array] all the duplicates # - # source://rubocop//lib/rubocop/cop/mixin/duplication.rb#22 + # source://rubocop/lib/rubocop/cop/mixin/duplication.rb#22 def duplicates(collection); end # Whether the `collection` contains any duplicates. @@ -5339,7 +5404,7 @@ module RuboCop::Cop::Duplication # @param collection [Array] an array to check for duplicates # @return [Boolean] whether the array contains any duplicates # - # source://rubocop//lib/rubocop/cop/mixin/duplication.rb#13 + # source://rubocop/lib/rubocop/cop/mixin/duplication.rb#13 def duplicates?(collection); end # Returns a hash of grouped duplicates. The key will be the first @@ -5349,85 +5414,85 @@ module RuboCop::Cop::Duplication # @param collection [Array] an array to group duplicates for # @return [Array] the grouped duplicates # - # source://rubocop//lib/rubocop/cop/mixin/duplication.rb#41 + # source://rubocop/lib/rubocop/cop/mixin/duplication.rb#41 def grouped_duplicates(collection); end end # This class autocorrects `#each` enumeration to `for` iteration. # -# source://rubocop//lib/rubocop/cop/correctors/each_to_for_corrector.rb#6 +# source://rubocop/lib/rubocop/cop/correctors/each_to_for_corrector.rb#6 class RuboCop::Cop::EachToForCorrector extend ::RuboCop::AST::NodePattern::Macros # @return [EachToForCorrector] a new instance of EachToForCorrector # - # source://rubocop//lib/rubocop/cop/correctors/each_to_for_corrector.rb#12 + # source://rubocop/lib/rubocop/cop/correctors/each_to_for_corrector.rb#12 def initialize(block_node); end - # source://rubocop//lib/rubocop/cop/correctors/each_to_for_corrector.rb#18 + # source://rubocop/lib/rubocop/cop/correctors/each_to_for_corrector.rb#18 def call(corrector); end private # Returns the value of attribute argument_node. # - # source://rubocop//lib/rubocop/cop/correctors/each_to_for_corrector.rb#24 + # source://rubocop/lib/rubocop/cop/correctors/each_to_for_corrector.rb#24 def argument_node; end # Returns the value of attribute block_node. # - # source://rubocop//lib/rubocop/cop/correctors/each_to_for_corrector.rb#24 + # source://rubocop/lib/rubocop/cop/correctors/each_to_for_corrector.rb#24 def block_node; end # Returns the value of attribute collection_node. # - # source://rubocop//lib/rubocop/cop/correctors/each_to_for_corrector.rb#24 + # source://rubocop/lib/rubocop/cop/correctors/each_to_for_corrector.rb#24 def collection_node; end - # source://rubocop//lib/rubocop/cop/correctors/each_to_for_corrector.rb#26 + # source://rubocop/lib/rubocop/cop/correctors/each_to_for_corrector.rb#26 def correction; end - # source://rubocop//lib/rubocop/cop/correctors/each_to_for_corrector.rb#36 + # source://rubocop/lib/rubocop/cop/correctors/each_to_for_corrector.rb#36 def offending_range; end end -# source://rubocop//lib/rubocop/cop/correctors/each_to_for_corrector.rb#10 +# source://rubocop/lib/rubocop/cop/correctors/each_to_for_corrector.rb#10 RuboCop::Cop::EachToForCorrector::CORRECTION_WITHOUT_ARGUMENTS = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/correctors/each_to_for_corrector.rb#9 +# source://rubocop/lib/rubocop/cop/correctors/each_to_for_corrector.rb#9 RuboCop::Cop::EachToForCorrector::CORRECTION_WITH_ARGUMENTS = T.let(T.unsafe(nil), String) # This class does empty line autocorrection # -# source://rubocop//lib/rubocop/cop/correctors/empty_line_corrector.rb#6 +# source://rubocop/lib/rubocop/cop/correctors/empty_line_corrector.rb#6 class RuboCop::Cop::EmptyLineCorrector class << self - # source://rubocop//lib/rubocop/cop/correctors/empty_line_corrector.rb#8 + # source://rubocop/lib/rubocop/cop/correctors/empty_line_corrector.rb#8 def correct(corrector, node); end - # source://rubocop//lib/rubocop/cop/correctors/empty_line_corrector.rb#19 + # source://rubocop/lib/rubocop/cop/correctors/empty_line_corrector.rb#19 def insert_before(corrector, node); end end end # Common code for empty parameter cops. # -# source://rubocop//lib/rubocop/cop/mixin/empty_parameter.rb#6 +# source://rubocop/lib/rubocop/cop/mixin/empty_parameter.rb#6 module RuboCop::Cop::EmptyParameter extend ::RuboCop::AST::NodePattern::Macros - # source://rubocop//lib/rubocop/cop/mixin/empty_parameter.rb#12 + # source://rubocop/lib/rubocop/cop/mixin/empty_parameter.rb#12 def empty_arguments?(param0 = T.unsafe(nil)); end private - # source://rubocop//lib/rubocop/cop/mixin/empty_parameter.rb#16 + # source://rubocop/lib/rubocop/cop/mixin/empty_parameter.rb#16 def check(node); end end # Functions for checking the alignment of the `end` keyword. # -# source://rubocop//lib/rubocop/cop/mixin/end_keyword_alignment.rb#6 +# source://rubocop/lib/rubocop/cop/mixin/end_keyword_alignment.rb#6 module RuboCop::Cop::EndKeywordAlignment include ::RuboCop::Cop::ConfigurableEnforcedStyle include ::RuboCop::Cop::RangeHelp @@ -5436,51 +5501,51 @@ module RuboCop::Cop::EndKeywordAlignment # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/mixin/end_keyword_alignment.rb#60 + # source://rubocop/lib/rubocop/cop/mixin/end_keyword_alignment.rb#60 def accept_end_kw_alignment?(end_loc); end - # source://rubocop//lib/rubocop/cop/mixin/end_keyword_alignment.rb#50 + # source://rubocop/lib/rubocop/cop/mixin/end_keyword_alignment.rb#50 def add_offense_for_misalignment(node, align_with); end - # source://rubocop//lib/rubocop/cop/mixin/end_keyword_alignment.rb#19 + # source://rubocop/lib/rubocop/cop/mixin/end_keyword_alignment.rb#19 def check_end_kw_alignment(node, align_ranges); end - # source://rubocop//lib/rubocop/cop/mixin/end_keyword_alignment.rb#15 + # source://rubocop/lib/rubocop/cop/mixin/end_keyword_alignment.rb#15 def check_end_kw_in_node(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/mixin/end_keyword_alignment.rb#75 + # source://rubocop/lib/rubocop/cop/mixin/end_keyword_alignment.rb#75 def line_break_before_keyword?(whole_expression, rhs); end - # source://rubocop//lib/rubocop/cop/mixin/end_keyword_alignment.rb#35 + # source://rubocop/lib/rubocop/cop/mixin/end_keyword_alignment.rb#35 def matching_ranges(end_loc, align_ranges); end - # source://rubocop//lib/rubocop/cop/mixin/end_keyword_alignment.rb#41 + # source://rubocop/lib/rubocop/cop/mixin/end_keyword_alignment.rb#41 def start_line_range(node); end - # source://rubocop//lib/rubocop/cop/mixin/end_keyword_alignment.rb#65 + # source://rubocop/lib/rubocop/cop/mixin/end_keyword_alignment.rb#65 def style_parameter_name; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/mixin/end_keyword_alignment.rb#69 + # source://rubocop/lib/rubocop/cop/mixin/end_keyword_alignment.rb#69 def variable_alignment?(whole_expression, rhs, end_alignment_style); end end -# source://rubocop//lib/rubocop/cop/mixin/end_keyword_alignment.rb#10 +# 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 +# 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 + # 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 + # source://rubocop/lib/rubocop/cop/mixin/endless_method_rewriter.rb#19 def arguments(node, missing = T.unsafe(nil)); end end @@ -5495,23 +5560,23 @@ end # @api private # @deprecated This module is deprecated and will be removed by RuboCop 2.0. # -# source://rubocop//lib/rubocop/cop/mixin/enforce_superclass.rb#15 +# source://rubocop/lib/rubocop/cop/mixin/enforce_superclass.rb#15 module RuboCop::Cop::EnforceSuperclass # @api private # - # source://rubocop//lib/rubocop/cop/mixin/enforce_superclass.rb#35 + # source://rubocop/lib/rubocop/cop/mixin/enforce_superclass.rb#35 def on_class(node); end # @api private # - # source://rubocop//lib/rubocop/cop/mixin/enforce_superclass.rb#39 + # source://rubocop/lib/rubocop/cop/mixin/enforce_superclass.rb#39 def on_send(node); end class << self # @api private # @private # - # source://rubocop//lib/rubocop/cop/mixin/enforce_superclass.rb#16 + # source://rubocop/lib/rubocop/cop/mixin/enforce_superclass.rb#16 def included(base); end end end @@ -5519,200 +5584,200 @@ end # Common functionality for checking for a line break before the first # element in a multi-line collection. # -# source://rubocop//lib/rubocop/cop/mixin/first_element_line_break.rb#7 +# source://rubocop/lib/rubocop/cop/mixin/first_element_line_break.rb#7 module RuboCop::Cop::FirstElementLineBreak private - # source://rubocop//lib/rubocop/cop/mixin/first_element_line_break.rb#23 + # source://rubocop/lib/rubocop/cop/mixin/first_element_line_break.rb#23 def check_children_line_break(node, children, start = T.unsafe(nil), ignore_last: T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/mixin/first_element_line_break.rb#10 + # source://rubocop/lib/rubocop/cop/mixin/first_element_line_break.rb#10 def check_method_line_break(node, children, ignore_last: T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/mixin/first_element_line_break.rb#37 + # source://rubocop/lib/rubocop/cop/mixin/first_element_line_break.rb#37 def first_by_line(nodes); end - # source://rubocop//lib/rubocop/cop/mixin/first_element_line_break.rb#41 + # source://rubocop/lib/rubocop/cop/mixin/first_element_line_break.rb#41 def last_line(nodes, ignore_last:); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/mixin/first_element_line_break.rb#18 + # source://rubocop/lib/rubocop/cop/mixin/first_element_line_break.rb#18 def method_uses_parens?(node, limit); end end # This class autocorrects `for` iteration to `#each` enumeration. # -# source://rubocop//lib/rubocop/cop/correctors/for_to_each_corrector.rb#6 +# source://rubocop/lib/rubocop/cop/correctors/for_to_each_corrector.rb#6 class RuboCop::Cop::ForToEachCorrector extend ::RuboCop::AST::NodePattern::Macros # @return [ForToEachCorrector] a new instance of ForToEachCorrector # - # source://rubocop//lib/rubocop/cop/correctors/for_to_each_corrector.rb#11 + # source://rubocop/lib/rubocop/cop/correctors/for_to_each_corrector.rb#11 def initialize(for_node); end - # source://rubocop//lib/rubocop/cop/correctors/for_to_each_corrector.rb#17 + # source://rubocop/lib/rubocop/cop/correctors/for_to_each_corrector.rb#17 def call(corrector); end private - # source://rubocop//lib/rubocop/cop/correctors/for_to_each_corrector.rb#57 + # source://rubocop/lib/rubocop/cop/correctors/for_to_each_corrector.rb#57 def collection_end; end # Returns the value of attribute collection_node. # - # source://rubocop//lib/rubocop/cop/correctors/for_to_each_corrector.rb#25 + # source://rubocop/lib/rubocop/cop/correctors/for_to_each_corrector.rb#25 def collection_node; end - # source://rubocop//lib/rubocop/cop/correctors/for_to_each_corrector.rb#31 + # source://rubocop/lib/rubocop/cop/correctors/for_to_each_corrector.rb#31 def collection_source; end - # source://rubocop//lib/rubocop/cop/correctors/for_to_each_corrector.rb#27 + # source://rubocop/lib/rubocop/cop/correctors/for_to_each_corrector.rb#27 def correction; end - # source://rubocop//lib/rubocop/cop/correctors/for_to_each_corrector.rb#45 + # source://rubocop/lib/rubocop/cop/correctors/for_to_each_corrector.rb#45 def end_range; end # Returns the value of attribute for_node. # - # source://rubocop//lib/rubocop/cop/correctors/for_to_each_corrector.rb#25 + # source://rubocop/lib/rubocop/cop/correctors/for_to_each_corrector.rb#25 def for_node; end - # source://rubocop//lib/rubocop/cop/correctors/for_to_each_corrector.rb#53 + # source://rubocop/lib/rubocop/cop/correctors/for_to_each_corrector.rb#53 def keyword_begin; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/correctors/for_to_each_corrector.rb#39 + # source://rubocop/lib/rubocop/cop/correctors/for_to_each_corrector.rb#39 def requires_parentheses?; end # Returns the value of attribute variable_node. # - # source://rubocop//lib/rubocop/cop/correctors/for_to_each_corrector.rb#25 + # source://rubocop/lib/rubocop/cop/correctors/for_to_each_corrector.rb#25 def variable_node; end end -# source://rubocop//lib/rubocop/cop/correctors/for_to_each_corrector.rb#9 +# source://rubocop/lib/rubocop/cop/correctors/for_to_each_corrector.rb#9 RuboCop::Cop::ForToEachCorrector::CORRECTION = T.let(T.unsafe(nil), String) # A scaffold for concrete forces. # -# source://rubocop//lib/rubocop/cop/force.rb#6 +# source://rubocop/lib/rubocop/cop/force.rb#6 class RuboCop::Cop::Force # @return [Force] a new instance of Force # - # source://rubocop//lib/rubocop/cop/force.rb#32 + # source://rubocop/lib/rubocop/cop/force.rb#32 def initialize(cops); end # Returns the value of attribute cops. # - # source://rubocop//lib/rubocop/cop/force.rb#17 + # source://rubocop/lib/rubocop/cop/force.rb#17 def cops; end - # source://rubocop//lib/rubocop/cop/force.rb#50 + # source://rubocop/lib/rubocop/cop/force.rb#50 def investigate(_processed_source); end - # source://rubocop//lib/rubocop/cop/force.rb#36 + # source://rubocop/lib/rubocop/cop/force.rb#36 def name; end - # source://rubocop//lib/rubocop/cop/force.rb#40 + # source://rubocop/lib/rubocop/cop/force.rb#40 def run_hook(method_name, *args); end class << self - # source://rubocop//lib/rubocop/cop/force.rb#19 + # source://rubocop/lib/rubocop/cop/force.rb#19 def all; end - # source://rubocop//lib/rubocop/cop/force.rb#28 + # source://rubocop/lib/rubocop/cop/force.rb#28 def force_name; end # @private # - # source://rubocop//lib/rubocop/cop/force.rb#23 + # source://rubocop/lib/rubocop/cop/force.rb#23 def inherited(subclass); end end end # @api private # -# source://rubocop//lib/rubocop/cop/force.rb#8 +# source://rubocop/lib/rubocop/cop/force.rb#8 class RuboCop::Cop::Force::HookError < ::StandardError # @api private # @return [HookError] a new instance of HookError # - # source://rubocop//lib/rubocop/cop/force.rb#11 + # source://rubocop/lib/rubocop/cop/force.rb#11 def initialize(joining_cop); end # @api private # - # source://rubocop//lib/rubocop/cop/force.rb#9 + # source://rubocop/lib/rubocop/cop/force.rb#9 def joining_cop; end end # Common functionality for dealing with frozen string literals. # -# source://rubocop//lib/rubocop/cop/mixin/frozen_string_literal.rb#6 +# source://rubocop/lib/rubocop/cop/mixin/frozen_string_literal.rb#6 module RuboCop::Cop::FrozenStringLiteral private - # source://rubocop//lib/rubocop/cop/mixin/frozen_string_literal.rb#37 + # 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 + # source://rubocop/lib/rubocop/cop/mixin/frozen_string_literal.rb#21 def frozen_string_literal?(node); end - # source://rubocop//lib/rubocop/cop/mixin/frozen_string_literal.rb#15 + # 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#78 + # 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#72 + # 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#44 + # 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#88 + # 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#84 + # 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#37 + # 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 + # source://rubocop/lib/rubocop/cop/mixin/frozen_string_literal.rb#31 def uninterpolated_string?(node); end class << self # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/mixin/frozen_string_literal.rb#15 + # source://rubocop/lib/rubocop/cop/mixin/frozen_string_literal.rb#15 def frozen_string_literal_comment_exists?; end end end -# source://rubocop//lib/rubocop/cop/mixin/frozen_string_literal.rb#9 +# source://rubocop/lib/rubocop/cop/mixin/frozen_string_literal.rb#9 RuboCop::Cop::FrozenStringLiteral::FROZEN_STRING_LITERAL = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/mixin/frozen_string_literal.rb#10 +# source://rubocop/lib/rubocop/cop/mixin/frozen_string_literal.rb#10 RuboCop::Cop::FrozenStringLiteral::FROZEN_STRING_LITERAL_ENABLED = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/mixin/frozen_string_literal.rb#11 +# source://rubocop/lib/rubocop/cop/mixin/frozen_string_literal.rb#11 RuboCop::Cop::FrozenStringLiteral::FROZEN_STRING_LITERAL_TYPES_RUBY27 = T.let(T.unsafe(nil), Array) # Common functionality for checking gem declarations. # -# source://rubocop//lib/rubocop/cop/mixin/gem_declaration.rb#6 +# source://rubocop/lib/rubocop/cop/mixin/gem_declaration.rb#6 module RuboCop::Cop::GemDeclaration extend ::RuboCop::AST::NodePattern::Macros - # source://rubocop//lib/rubocop/cop/mixin/gem_declaration.rb#10 + # source://rubocop/lib/rubocop/cop/mixin/gem_declaration.rb#10 def gem_declaration?(param0 = T.unsafe(nil)); end end -# source://rubocop//lib/rubocop/cop/gemspec/add_runtime_dependency.rb#5 +# source://rubocop/lib/rubocop/cop/gemspec/add_runtime_dependency.rb#5 module RuboCop::Cop::Gemspec; end # Prefer `add_dependency` over `add_runtime_dependency` as the latter is @@ -5730,18 +5795,18 @@ module RuboCop::Cop::Gemspec; end # spec.add_dependency('rubocop') # end # -# source://rubocop//lib/rubocop/cop/gemspec/add_runtime_dependency.rb#21 +# source://rubocop/lib/rubocop/cop/gemspec/add_runtime_dependency.rb#21 class RuboCop::Cop::Gemspec::AddRuntimeDependency < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/gemspec/add_runtime_dependency.rb#28 + # source://rubocop/lib/rubocop/cop/gemspec/add_runtime_dependency.rb#28 def on_send(node); end end -# source://rubocop//lib/rubocop/cop/gemspec/add_runtime_dependency.rb#24 +# source://rubocop/lib/rubocop/cop/gemspec/add_runtime_dependency.rb#24 RuboCop::Cop::Gemspec::AddRuntimeDependency::MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/gemspec/add_runtime_dependency.rb#26 +# source://rubocop/lib/rubocop/cop/gemspec/add_runtime_dependency.rb#26 RuboCop::Cop::Gemspec::AddRuntimeDependency::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Enforce that gem dependency version specifications or a commit reference (branch, @@ -5790,90 +5855,90 @@ RuboCop::Cop::Gemspec::AddRuntimeDependency::RESTRICT_ON_SEND = T.let(T.unsafe(n # spec.add_development_dependency 'parser' # end # -# source://rubocop//lib/rubocop/cop/gemspec/dependency_version.rb#53 +# source://rubocop/lib/rubocop/cop/gemspec/dependency_version.rb#53 class RuboCop::Cop::Gemspec::DependencyVersion < ::RuboCop::Cop::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle include ::RuboCop::Cop::GemspecHelp - # source://rubocop//lib/rubocop/cop/gemspec/dependency_version.rb#67 + # source://rubocop/lib/rubocop/cop/gemspec/dependency_version.rb#67 def add_dependency_method_declaration?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/gemspec/dependency_version.rb#78 + # source://rubocop/lib/rubocop/cop/gemspec/dependency_version.rb#78 def includes_commit_reference?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/gemspec/dependency_version.rb#73 + # source://rubocop/lib/rubocop/cop/gemspec/dependency_version.rb#73 def includes_version_specification?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/gemspec/dependency_version.rb#82 + # source://rubocop/lib/rubocop/cop/gemspec/dependency_version.rb#82 def on_send(node); end private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/gemspec/dependency_version.rb#118 + # source://rubocop/lib/rubocop/cop/gemspec/dependency_version.rb#118 def add_dependency_method?(method_name); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/gemspec/dependency_version.rb#96 + # source://rubocop/lib/rubocop/cop/gemspec/dependency_version.rb#96 def allowed_gem?(node); end - # source://rubocop//lib/rubocop/cop/gemspec/dependency_version.rb#100 + # source://rubocop/lib/rubocop/cop/gemspec/dependency_version.rb#100 def allowed_gems; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/gemspec/dependency_version.rb#132 + # source://rubocop/lib/rubocop/cop/gemspec/dependency_version.rb#132 def forbidden_offense?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/gemspec/dependency_version.rb#138 + # source://rubocop/lib/rubocop/cop/gemspec/dependency_version.rb#138 def forbidden_style?; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/gemspec/dependency_version.rb#112 + # source://rubocop/lib/rubocop/cop/gemspec/dependency_version.rb#112 def match_block_variable_name?(receiver_name); end - # source://rubocop//lib/rubocop/cop/gemspec/dependency_version.rb#104 + # source://rubocop/lib/rubocop/cop/gemspec/dependency_version.rb#104 def message(_range); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/gemspec/dependency_version.rb#122 + # source://rubocop/lib/rubocop/cop/gemspec/dependency_version.rb#122 def offense?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/gemspec/dependency_version.rb#126 + # source://rubocop/lib/rubocop/cop/gemspec/dependency_version.rb#126 def required_offense?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/gemspec/dependency_version.rb#142 + # source://rubocop/lib/rubocop/cop/gemspec/dependency_version.rb#142 def required_style?; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/gemspec/dependency_version.rb#146 + # source://rubocop/lib/rubocop/cop/gemspec/dependency_version.rb#146 def version_specification?(expression); end end -# source://rubocop//lib/rubocop/cop/gemspec/dependency_version.rb#61 +# source://rubocop/lib/rubocop/cop/gemspec/dependency_version.rb#61 RuboCop::Cop::Gemspec::DependencyVersion::ADD_DEPENDENCY_METHODS = T.let(T.unsafe(nil), Array) -# source://rubocop//lib/rubocop/cop/gemspec/dependency_version.rb#58 +# source://rubocop/lib/rubocop/cop/gemspec/dependency_version.rb#58 RuboCop::Cop::Gemspec::DependencyVersion::FORBIDDEN_MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/gemspec/dependency_version.rb#57 +# source://rubocop/lib/rubocop/cop/gemspec/dependency_version.rb#57 RuboCop::Cop::Gemspec::DependencyVersion::REQUIRED_MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/gemspec/dependency_version.rb#64 +# source://rubocop/lib/rubocop/cop/gemspec/dependency_version.rb#64 RuboCop::Cop::Gemspec::DependencyVersion::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) -# source://rubocop//lib/rubocop/cop/gemspec/dependency_version.rb#59 +# source://rubocop/lib/rubocop/cop/gemspec/dependency_version.rb#59 RuboCop::Cop::Gemspec::DependencyVersion::VERSION_SPECIFICATION_REGEX = T.let(T.unsafe(nil), Regexp) # Checks that deprecated attributes are not set in a gemspec file. @@ -5898,32 +5963,32 @@ RuboCop::Cop::Gemspec::DependencyVersion::VERSION_SPECIFICATION_REGEX = T.let(T. # spec.name = 'your_cool_gem_name' # end # -# source://rubocop//lib/rubocop/cop/gemspec/deprecated_attribute_assignment.rb#28 +# source://rubocop/lib/rubocop/cop/gemspec/deprecated_attribute_assignment.rb#28 class RuboCop::Cop::Gemspec::DeprecatedAttributeAssignment < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/gemspec/deprecated_attribute_assignment.rb#35 + # source://rubocop/lib/rubocop/cop/gemspec/deprecated_attribute_assignment.rb#35 def gem_specification(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/gemspec/deprecated_attribute_assignment.rb#43 + # source://rubocop/lib/rubocop/cop/gemspec/deprecated_attribute_assignment.rb#43 def on_block(block_node); end private - # source://rubocop//lib/rubocop/cop/gemspec/deprecated_attribute_assignment.rb#86 + # source://rubocop/lib/rubocop/cop/gemspec/deprecated_attribute_assignment.rb#85 def format_message_from; end - # source://rubocop//lib/rubocop/cop/gemspec/deprecated_attribute_assignment.rb#63 + # source://rubocop/lib/rubocop/cop/gemspec/deprecated_attribute_assignment.rb#63 def node_and_method_name(node, attribute); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/gemspec/deprecated_attribute_assignment.rb#72 + # source://rubocop/lib/rubocop/cop/gemspec/deprecated_attribute_assignment.rb#71 def use_deprecated_attributes?(node, block_parameter); end end -# source://rubocop//lib/rubocop/cop/gemspec/deprecated_attribute_assignment.rb#32 +# source://rubocop/lib/rubocop/cop/gemspec/deprecated_attribute_assignment.rb#32 RuboCop::Cop::Gemspec::DeprecatedAttributeAssignment::MSG = T.let(T.unsafe(nil), String) # Enforce that development dependencies for a gem are specified in @@ -5988,34 +6053,34 @@ RuboCop::Cop::Gemspec::DeprecatedAttributeAssignment::MSG = T.let(T.unsafe(nil), # # Gemfile # gem "bar" # -# source://rubocop//lib/rubocop/cop/gemspec/development_dependencies.rb#70 +# source://rubocop/lib/rubocop/cop/gemspec/development_dependencies.rb#70 class RuboCop::Cop::Gemspec::DevelopmentDependencies < ::RuboCop::Cop::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle - # source://rubocop//lib/rubocop/cop/gemspec/development_dependencies.rb#77 + # source://rubocop/lib/rubocop/cop/gemspec/development_dependencies.rb#77 def add_development_dependency?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/gemspec/development_dependencies.rb#82 + # source://rubocop/lib/rubocop/cop/gemspec/development_dependencies.rb#82 def gem?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/gemspec/development_dependencies.rb#86 + # source://rubocop/lib/rubocop/cop/gemspec/development_dependencies.rb#86 def on_send(node); end private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/gemspec/development_dependencies.rb#97 + # source://rubocop/lib/rubocop/cop/gemspec/development_dependencies.rb#97 def forbidden_gem?(gem_name); end - # source://rubocop//lib/rubocop/cop/gemspec/development_dependencies.rb#101 + # source://rubocop/lib/rubocop/cop/gemspec/development_dependencies.rb#101 def message(_range); end end -# source://rubocop//lib/rubocop/cop/gemspec/development_dependencies.rb#73 +# source://rubocop/lib/rubocop/cop/gemspec/development_dependencies.rb#73 RuboCop::Cop::Gemspec::DevelopmentDependencies::MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/gemspec/development_dependencies.rb#74 +# source://rubocop/lib/rubocop/cop/gemspec/development_dependencies.rb#74 RuboCop::Cop::Gemspec::DevelopmentDependencies::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # An attribute assignment method calls should be listed only once @@ -6050,32 +6115,32 @@ RuboCop::Cop::Gemspec::DevelopmentDependencies::RESTRICT_ON_SEND = T.let(T.unsaf # spec.add_dependency('parser', '>= 2.3.3.1', '< 3.0') # end # -# source://rubocop//lib/rubocop/cop/gemspec/duplicated_assignment.rb#37 +# source://rubocop/lib/rubocop/cop/gemspec/duplicated_assignment.rb#37 class RuboCop::Cop::Gemspec::DuplicatedAssignment < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp include ::RuboCop::Cop::GemspecHelp - # source://rubocop//lib/rubocop/cop/gemspec/duplicated_assignment.rb#45 + # source://rubocop/lib/rubocop/cop/gemspec/duplicated_assignment.rb#45 def assignment_method_declarations(param0); end - # source://rubocop//lib/rubocop/cop/gemspec/duplicated_assignment.rb#50 + # source://rubocop/lib/rubocop/cop/gemspec/duplicated_assignment.rb#50 def on_new_investigation; end private - # source://rubocop//lib/rubocop/cop/gemspec/duplicated_assignment.rb#68 + # source://rubocop/lib/rubocop/cop/gemspec/duplicated_assignment.rb#68 def duplicated_assignment_method_nodes; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/gemspec/duplicated_assignment.rb#62 + # source://rubocop/lib/rubocop/cop/gemspec/duplicated_assignment.rb#62 def match_block_variable_name?(receiver_name); end - # source://rubocop//lib/rubocop/cop/gemspec/duplicated_assignment.rb#76 + # source://rubocop/lib/rubocop/cop/gemspec/duplicated_assignment.rb#76 def register_offense(node, assignment, line_of_first_occurrence); end end -# source://rubocop//lib/rubocop/cop/gemspec/duplicated_assignment.rb#41 +# source://rubocop/lib/rubocop/cop/gemspec/duplicated_assignment.rb#41 RuboCop::Cop::Gemspec::DuplicatedAssignment::MSG = T.let(T.unsafe(nil), String) # Dependencies in the gemspec should be alphabetically sorted. @@ -6132,27 +6197,27 @@ RuboCop::Cop::Gemspec::DuplicatedAssignment::MSG = T.let(T.unsafe(nil), String) # # For tests # spec.add_dependency 'rspec' # -# source://rubocop//lib/rubocop/cop/gemspec/ordered_dependencies.rb#61 +# source://rubocop/lib/rubocop/cop/gemspec/ordered_dependencies.rb#61 class RuboCop::Cop::Gemspec::OrderedDependencies < ::RuboCop::Cop::Base include ::RuboCop::Cop::OrderedGemNode extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/gemspec/ordered_dependencies.rb#95 + # source://rubocop/lib/rubocop/cop/gemspec/ordered_dependencies.rb#95 def dependency_declarations(param0); end - # source://rubocop//lib/rubocop/cop/gemspec/ordered_dependencies.rb#69 + # source://rubocop/lib/rubocop/cop/gemspec/ordered_dependencies.rb#69 def on_new_investigation; end private - # source://rubocop//lib/rubocop/cop/gemspec/ordered_dependencies.rb#90 + # source://rubocop/lib/rubocop/cop/gemspec/ordered_dependencies.rb#90 def get_dependency_name(node); end - # source://rubocop//lib/rubocop/cop/gemspec/ordered_dependencies.rb#84 + # source://rubocop/lib/rubocop/cop/gemspec/ordered_dependencies.rb#84 def previous_declaration(node); end end -# source://rubocop//lib/rubocop/cop/gemspec/ordered_dependencies.rb#65 +# source://rubocop/lib/rubocop/cop/gemspec/ordered_dependencies.rb#65 RuboCop::Cop::Gemspec::OrderedDependencies::MSG = T.let(T.unsafe(nil), String) # Requires a gemspec to have `rubygems_mfa_required` metadata set. @@ -6212,42 +6277,42 @@ RuboCop::Cop::Gemspec::OrderedDependencies::MSG = T.let(T.unsafe(nil), String) # spec.metadata['rubygems_mfa_required'] = 'true' # end # -# source://rubocop//lib/rubocop/cop/gemspec/require_mfa.rb#63 +# source://rubocop/lib/rubocop/cop/gemspec/require_mfa.rb#63 class RuboCop::Cop::Gemspec::RequireMFA < ::RuboCop::Cop::Base include ::RuboCop::Cop::GemspecHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/gemspec/require_mfa.rb#70 + # source://rubocop/lib/rubocop/cop/gemspec/require_mfa.rb#70 def metadata(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/gemspec/require_mfa.rb#87 + # source://rubocop/lib/rubocop/cop/gemspec/require_mfa.rb#87 def on_block(node); end - # source://rubocop//lib/rubocop/cop/gemspec/require_mfa.rb#78 + # source://rubocop/lib/rubocop/cop/gemspec/require_mfa.rb#78 def rubygems_mfa_required(param0); end - # source://rubocop//lib/rubocop/cop/gemspec/require_mfa.rb#83 + # source://rubocop/lib/rubocop/cop/gemspec/require_mfa.rb#83 def true_string?(param0 = T.unsafe(nil)); end private - # source://rubocop//lib/rubocop/cop/gemspec/require_mfa.rb#115 + # source://rubocop/lib/rubocop/cop/gemspec/require_mfa.rb#115 def autocorrect(corrector, node, block_var, metadata); end - # source://rubocop//lib/rubocop/cop/gemspec/require_mfa.rb#139 + # source://rubocop/lib/rubocop/cop/gemspec/require_mfa.rb#139 def change_value(corrector, value); end - # source://rubocop//lib/rubocop/cop/gemspec/require_mfa.rb#125 + # source://rubocop/lib/rubocop/cop/gemspec/require_mfa.rb#125 def correct_metadata(corrector, metadata); end - # source://rubocop//lib/rubocop/cop/gemspec/require_mfa.rb#133 + # source://rubocop/lib/rubocop/cop/gemspec/require_mfa.rb#133 def insert_mfa_required(corrector, node, block_var); end - # source://rubocop//lib/rubocop/cop/gemspec/require_mfa.rb#108 + # source://rubocop/lib/rubocop/cop/gemspec/require_mfa.rb#108 def mfa_value(metadata_value); end end -# source://rubocop//lib/rubocop/cop/gemspec/require_mfa.rb#67 +# source://rubocop/lib/rubocop/cop/gemspec/require_mfa.rb#67 RuboCop::Cop::Gemspec::RequireMFA::MSG = T.let(T.unsafe(nil), String) # Checks that `required_ruby_version` in a gemspec file is set to a valid @@ -6300,43 +6365,41 @@ RuboCop::Cop::Gemspec::RequireMFA::MSG = T.let(T.unsafe(nil), String) # spec.required_ruby_version = '~> 2.5' # end # -# source://rubocop//lib/rubocop/cop/gemspec/required_ruby_version.rb#55 +# source://rubocop/lib/rubocop/cop/gemspec/required_ruby_version.rb#55 class RuboCop::Cop::Gemspec::RequiredRubyVersion < ::RuboCop::Cop::Base - include ::RuboCop::Cop::RangeHelp - - # source://rubocop//lib/rubocop/cop/gemspec/required_ruby_version.rb#70 + # source://rubocop/lib/rubocop/cop/gemspec/required_ruby_version.rb#68 def defined_ruby_version(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/gemspec/required_ruby_version.rb#78 + # source://rubocop/lib/rubocop/cop/gemspec/required_ruby_version.rb#76 def on_new_investigation; end - # source://rubocop//lib/rubocop/cop/gemspec/required_ruby_version.rb#84 + # source://rubocop/lib/rubocop/cop/gemspec/required_ruby_version.rb#82 def on_send(node); end - # source://rubocop//lib/rubocop/cop/gemspec/required_ruby_version.rb#65 + # source://rubocop/lib/rubocop/cop/gemspec/required_ruby_version.rb#63 def required_ruby_version?(param0); end private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/gemspec/required_ruby_version.rb#96 + # source://rubocop/lib/rubocop/cop/gemspec/required_ruby_version.rb#94 def dynamic_version?(node); end - # source://rubocop//lib/rubocop/cop/gemspec/required_ruby_version.rb#102 + # source://rubocop/lib/rubocop/cop/gemspec/required_ruby_version.rb#100 def extract_ruby_version(required_ruby_version); end - # source://rubocop//lib/rubocop/cop/gemspec/required_ruby_version.rb#120 + # source://rubocop/lib/rubocop/cop/gemspec/required_ruby_version.rb#118 def not_equal_message(required_ruby_version, target_ruby_version); end end -# source://rubocop//lib/rubocop/cop/gemspec/required_ruby_version.rb#62 +# source://rubocop/lib/rubocop/cop/gemspec/required_ruby_version.rb#60 RuboCop::Cop::Gemspec::RequiredRubyVersion::MISSING_MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/gemspec/required_ruby_version.rb#59 +# source://rubocop/lib/rubocop/cop/gemspec/required_ruby_version.rb#57 RuboCop::Cop::Gemspec::RequiredRubyVersion::NOT_EQUAL_MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/gemspec/required_ruby_version.rb#58 +# source://rubocop/lib/rubocop/cop/gemspec/required_ruby_version.rb#56 RuboCop::Cop::Gemspec::RequiredRubyVersion::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Checks that `RUBY_VERSION` constant is not used in gemspec. @@ -6361,37 +6424,37 @@ RuboCop::Cop::Gemspec::RequiredRubyVersion::RESTRICT_ON_SEND = T.let(T.unsafe(ni # spec.add_dependency 'gem_a' # end # -# source://rubocop//lib/rubocop/cop/gemspec/ruby_version_globals_usage.rb#28 +# source://rubocop/lib/rubocop/cop/gemspec/ruby_version_globals_usage.rb#28 class RuboCop::Cop::Gemspec::RubyVersionGlobalsUsage < ::RuboCop::Cop::Base include ::RuboCop::Cop::GemspecHelp - # source://rubocop//lib/rubocop/cop/gemspec/ruby_version_globals_usage.rb#36 + # source://rubocop/lib/rubocop/cop/gemspec/ruby_version_globals_usage.rb#36 def on_const(node); end - # source://rubocop//lib/rubocop/cop/gemspec/ruby_version_globals_usage.rb#34 + # source://rubocop/lib/rubocop/cop/gemspec/ruby_version_globals_usage.rb#34 def ruby_version?(param0 = T.unsafe(nil)); end private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/gemspec/ruby_version_globals_usage.rb#44 + # source://rubocop/lib/rubocop/cop/gemspec/ruby_version_globals_usage.rb#44 def gem_spec_with_ruby_version?(node); end end -# source://rubocop//lib/rubocop/cop/gemspec/ruby_version_globals_usage.rb#31 +# source://rubocop/lib/rubocop/cop/gemspec/ruby_version_globals_usage.rb#31 RuboCop::Cop::Gemspec::RubyVersionGlobalsUsage::MSG = T.let(T.unsafe(nil), String) # Common functionality for checking gem declarations. # -# source://rubocop//lib/rubocop/cop/mixin/gemspec_help.rb#6 +# source://rubocop/lib/rubocop/cop/mixin/gemspec_help.rb#6 module RuboCop::Cop::GemspecHelp extend ::RuboCop::AST::NodePattern::Macros - # source://rubocop//lib/rubocop/cop/mixin/gemspec_help.rb#20 + # source://rubocop/lib/rubocop/cop/mixin/gemspec_help.rb#20 def gem_specification(param0); end - # source://rubocop//lib/rubocop/cop/mixin/gemspec_help.rb#10 + # source://rubocop/lib/rubocop/cop/mixin/gemspec_help.rb#10 def gem_specification?(param0 = T.unsafe(nil)); end end @@ -6402,243 +6465,243 @@ end # # @api private # -# source://rubocop//lib/rubocop/cop/generator.rb#10 +# source://rubocop/lib/rubocop/cop/generator.rb#10 class RuboCop::Cop::Generator # @api private # @raise [ArgumentError] # @return [Generator] a new instance of Generator # - # source://rubocop//lib/rubocop/cop/generator.rb#113 + # source://rubocop/lib/rubocop/cop/generator.rb#119 def initialize(name, output: T.unsafe(nil)); end # @api private # - # source://rubocop//lib/rubocop/cop/generator.rb#133 + # source://rubocop/lib/rubocop/cop/generator.rb#139 def inject_config(config_file_path: T.unsafe(nil), version_added: T.unsafe(nil)); end # @api private # - # source://rubocop//lib/rubocop/cop/generator.rb#129 + # source://rubocop/lib/rubocop/cop/generator.rb#135 def inject_require(root_file_path: T.unsafe(nil)); end # @api private # - # source://rubocop//lib/rubocop/cop/generator.rb#146 + # source://rubocop/lib/rubocop/cop/generator.rb#152 def todo; end # @api private # - # source://rubocop//lib/rubocop/cop/generator.rb#121 + # source://rubocop/lib/rubocop/cop/generator.rb#127 def write_source; end # @api private # - # source://rubocop//lib/rubocop/cop/generator.rb#125 + # source://rubocop/lib/rubocop/cop/generator.rb#131 def write_spec; end private # @api private # - # source://rubocop//lib/rubocop/cop/generator.rb#160 + # source://rubocop/lib/rubocop/cop/generator.rb#166 def badge; end # @api private # - # source://rubocop//lib/rubocop/cop/generator.rb#183 + # source://rubocop/lib/rubocop/cop/generator.rb#189 def generate(template); end # @api private # - # source://rubocop//lib/rubocop/cop/generator.rb#175 + # source://rubocop/lib/rubocop/cop/generator.rb#181 def generated_source; end # @api private # - # source://rubocop//lib/rubocop/cop/generator.rb#179 + # source://rubocop/lib/rubocop/cop/generator.rb#185 def generated_spec; end # @api private # - # source://rubocop//lib/rubocop/cop/generator.rb#160 + # source://rubocop/lib/rubocop/cop/generator.rb#166 def output; end # @api private # - # source://rubocop//lib/rubocop/cop/generator.rb#208 + # source://rubocop/lib/rubocop/cop/generator.rb#214 def snake_case(camel_case_string); end # @api private # - # source://rubocop//lib/rubocop/cop/generator.rb#198 + # source://rubocop/lib/rubocop/cop/generator.rb#204 def source_path; end # @api private # - # source://rubocop//lib/rubocop/cop/generator.rb#188 + # source://rubocop/lib/rubocop/cop/generator.rb#194 def spec_path; end # @api private # - # source://rubocop//lib/rubocop/cop/generator.rb#162 + # source://rubocop/lib/rubocop/cop/generator.rb#168 def write_unless_file_exists(path, contents); end end # @api private # -# source://rubocop//lib/rubocop/cop/generator.rb#109 +# source://rubocop/lib/rubocop/cop/generator.rb#115 RuboCop::Cop::Generator::CONFIGURATION_ADDED_MESSAGE = T.let(T.unsafe(nil), String) # A class that injects a require directive into the root RuboCop file. # It looks for other directives that require files in the same (cop) # namespace and injects the provided one in alpha # -# source://rubocop//lib/rubocop/cop/generator/configuration_injector.rb#9 +# source://rubocop/lib/rubocop/cop/generator/configuration_injector.rb#9 class RuboCop::Cop::Generator::ConfigurationInjector # @return [ConfigurationInjector] a new instance of ConfigurationInjector # - # source://rubocop//lib/rubocop/cop/generator/configuration_injector.rb#17 + # source://rubocop/lib/rubocop/cop/generator/configuration_injector.rb#17 def initialize(configuration_file_path:, badge:, version_added: T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/generator/configuration_injector.rb#24 + # source://rubocop/lib/rubocop/cop/generator/configuration_injector.rb#24 def inject; end private # Returns the value of attribute badge. # - # source://rubocop//lib/rubocop/cop/generator/configuration_injector.rb#39 + # source://rubocop/lib/rubocop/cop/generator/configuration_injector.rb#39 def badge; end - # source://rubocop//lib/rubocop/cop/generator/configuration_injector.rb#41 + # source://rubocop/lib/rubocop/cop/generator/configuration_injector.rb#41 def configuration_entries; end # Returns the value of attribute configuration_file_path. # - # source://rubocop//lib/rubocop/cop/generator/configuration_injector.rb#39 + # source://rubocop/lib/rubocop/cop/generator/configuration_injector.rb#39 def configuration_file_path; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/generator/configuration_injector.rb#59 + # source://rubocop/lib/rubocop/cop/generator/configuration_injector.rb#59 def cop_name_line?(yaml); end - # source://rubocop//lib/rubocop/cop/generator/configuration_injector.rb#49 + # source://rubocop/lib/rubocop/cop/generator/configuration_injector.rb#49 def find_target_line; end - # source://rubocop//lib/rubocop/cop/generator/configuration_injector.rb#45 + # source://rubocop/lib/rubocop/cop/generator/configuration_injector.rb#45 def new_configuration_entry; end # Returns the value of attribute output. # - # source://rubocop//lib/rubocop/cop/generator/configuration_injector.rb#39 + # source://rubocop/lib/rubocop/cop/generator/configuration_injector.rb#39 def output; end # Returns the value of attribute version_added. # - # source://rubocop//lib/rubocop/cop/generator/configuration_injector.rb#39 + # source://rubocop/lib/rubocop/cop/generator/configuration_injector.rb#39 def version_added; end end -# source://rubocop//lib/rubocop/cop/generator/configuration_injector.rb#10 +# source://rubocop/lib/rubocop/cop/generator/configuration_injector.rb#10 RuboCop::Cop::Generator::ConfigurationInjector::TEMPLATE = T.let(T.unsafe(nil), String) # A class that injects a require directive into the root RuboCop file. # It looks for other directives that require files in the same (cop) # namespace and injects the provided one in alpha # -# source://rubocop//lib/rubocop/cop/generator/require_file_injector.rb#9 +# source://rubocop/lib/rubocop/cop/generator/require_file_injector.rb#9 class RuboCop::Cop::Generator::RequireFileInjector # @return [RequireFileInjector] a new instance of RequireFileInjector # - # source://rubocop//lib/rubocop/cop/generator/require_file_injector.rb#12 + # source://rubocop/lib/rubocop/cop/generator/require_file_injector.rb#12 def initialize(source_path:, root_file_path:, output: T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/generator/require_file_injector.rb#19 + # source://rubocop/lib/rubocop/cop/generator/require_file_injector.rb#19 def inject; end private - # source://rubocop//lib/rubocop/cop/generator/require_file_injector.rb#64 + # source://rubocop/lib/rubocop/cop/generator/require_file_injector.rb#64 def injectable_require_directive; end # Returns the value of attribute output. # - # source://rubocop//lib/rubocop/cop/generator/require_file_injector.rb#29 + # source://rubocop/lib/rubocop/cop/generator/require_file_injector.rb#29 def output; end # Returns the value of attribute require_entries. # - # source://rubocop//lib/rubocop/cop/generator/require_file_injector.rb#29 + # source://rubocop/lib/rubocop/cop/generator/require_file_injector.rb#29 def require_entries; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/generator/require_file_injector.rb#31 + # source://rubocop/lib/rubocop/cop/generator/require_file_injector.rb#31 def require_exists?; end - # source://rubocop//lib/rubocop/cop/generator/require_file_injector.rb#68 + # source://rubocop/lib/rubocop/cop/generator/require_file_injector.rb#68 def require_path; end - # source://rubocop//lib/rubocop/cop/generator/require_file_injector.rb#58 + # source://rubocop/lib/rubocop/cop/generator/require_file_injector.rb#58 def require_path_fragments(require_directive); end # Returns the value of attribute root_file_path. # - # source://rubocop//lib/rubocop/cop/generator/require_file_injector.rb#29 + # source://rubocop/lib/rubocop/cop/generator/require_file_injector.rb#29 def root_file_path; end # Returns the value of attribute source_path. # - # source://rubocop//lib/rubocop/cop/generator/require_file_injector.rb#29 + # source://rubocop/lib/rubocop/cop/generator/require_file_injector.rb#29 def source_path; end - # source://rubocop//lib/rubocop/cop/generator/require_file_injector.rb#39 + # source://rubocop/lib/rubocop/cop/generator/require_file_injector.rb#39 def target_line; end - # source://rubocop//lib/rubocop/cop/generator/require_file_injector.rb#35 + # source://rubocop/lib/rubocop/cop/generator/require_file_injector.rb#35 def updated_directives; end end -# source://rubocop//lib/rubocop/cop/generator/require_file_injector.rb#10 +# source://rubocop/lib/rubocop/cop/generator/require_file_injector.rb#10 RuboCop::Cop::Generator::RequireFileInjector::REQUIRE_PATH = T.let(T.unsafe(nil), Regexp) # @api private # -# source://rubocop//lib/rubocop/cop/generator.rb#11 +# source://rubocop/lib/rubocop/cop/generator.rb#11 RuboCop::Cop::Generator::SOURCE_TEMPLATE = T.let(T.unsafe(nil), String) # @api private # -# source://rubocop//lib/rubocop/cop/generator.rb#85 +# source://rubocop/lib/rubocop/cop/generator.rb#91 RuboCop::Cop::Generator::SPEC_TEMPLATE = T.let(T.unsafe(nil), String) # Common functionality for checking hash alignment. # -# source://rubocop//lib/rubocop/cop/mixin/hash_alignment_styles.rb#6 +# source://rubocop/lib/rubocop/cop/mixin/hash_alignment_styles.rb#6 module RuboCop::Cop::HashAlignmentStyles; end # Handles calculation of deltas when the enforced style is 'key'. # -# source://rubocop//lib/rubocop/cop/mixin/hash_alignment_styles.rb#8 +# source://rubocop/lib/rubocop/cop/mixin/hash_alignment_styles.rb#8 class RuboCop::Cop::HashAlignmentStyles::KeyAlignment # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/mixin/hash_alignment_styles.rb#9 + # source://rubocop/lib/rubocop/cop/mixin/hash_alignment_styles.rb#9 def checkable_layout?(_node); end - # source://rubocop//lib/rubocop/cop/mixin/hash_alignment_styles.rb#20 + # source://rubocop/lib/rubocop/cop/mixin/hash_alignment_styles.rb#20 def deltas(first_pair, current_pair); end - # source://rubocop//lib/rubocop/cop/mixin/hash_alignment_styles.rb#13 + # source://rubocop/lib/rubocop/cop/mixin/hash_alignment_styles.rb#13 def deltas_for_first_pair(first_pair, _node); end private - # source://rubocop//lib/rubocop/cop/mixin/hash_alignment_styles.rb#34 + # source://rubocop/lib/rubocop/cop/mixin/hash_alignment_styles.rb#34 def separator_delta(pair); end - # source://rubocop//lib/rubocop/cop/mixin/hash_alignment_styles.rb#45 + # source://rubocop/lib/rubocop/cop/mixin/hash_alignment_styles.rb#45 def value_delta(pair); end end @@ -6646,204 +6709,204 @@ end # This is a special case that just ensures the kwsplat is aligned with the rest of the hash # since a `kwsplat` does not have a key, separator or value. # -# source://rubocop//lib/rubocop/cop/mixin/hash_alignment_styles.rb#145 +# source://rubocop/lib/rubocop/cop/mixin/hash_alignment_styles.rb#145 class RuboCop::Cop::HashAlignmentStyles::KeywordSplatAlignment - # source://rubocop//lib/rubocop/cop/mixin/hash_alignment_styles.rb#146 + # source://rubocop/lib/rubocop/cop/mixin/hash_alignment_styles.rb#146 def deltas(first_pair, current_pair); end end # Handles calculation of deltas when the enforced style is 'separator'. # -# source://rubocop//lib/rubocop/cop/mixin/hash_alignment_styles.rb#120 +# source://rubocop/lib/rubocop/cop/mixin/hash_alignment_styles.rb#120 class RuboCop::Cop::HashAlignmentStyles::SeparatorAlignment include ::RuboCop::Cop::HashAlignmentStyles::ValueAlignment - # source://rubocop//lib/rubocop/cop/mixin/hash_alignment_styles.rb#123 + # source://rubocop/lib/rubocop/cop/mixin/hash_alignment_styles.rb#123 def deltas_for_first_pair(*_nodes); end private - # source://rubocop//lib/rubocop/cop/mixin/hash_alignment_styles.rb#133 + # source://rubocop/lib/rubocop/cop/mixin/hash_alignment_styles.rb#133 def hash_rocket_delta(first_pair, current_pair); end - # source://rubocop//lib/rubocop/cop/mixin/hash_alignment_styles.rb#129 + # source://rubocop/lib/rubocop/cop/mixin/hash_alignment_styles.rb#129 def key_delta(first_pair, current_pair); end - # source://rubocop//lib/rubocop/cop/mixin/hash_alignment_styles.rb#137 + # source://rubocop/lib/rubocop/cop/mixin/hash_alignment_styles.rb#137 def value_delta(first_pair, current_pair); end end # Handles calculation of deltas when the enforced style is 'table'. # -# source://rubocop//lib/rubocop/cop/mixin/hash_alignment_styles.rb#81 +# source://rubocop/lib/rubocop/cop/mixin/hash_alignment_styles.rb#81 class RuboCop::Cop::HashAlignmentStyles::TableAlignment include ::RuboCop::Cop::HashAlignmentStyles::ValueAlignment # @return [TableAlignment] a new instance of TableAlignment # - # source://rubocop//lib/rubocop/cop/mixin/hash_alignment_styles.rb#84 + # source://rubocop/lib/rubocop/cop/mixin/hash_alignment_styles.rb#84 def initialize; end - # source://rubocop//lib/rubocop/cop/mixin/hash_alignment_styles.rb#88 + # source://rubocop/lib/rubocop/cop/mixin/hash_alignment_styles.rb#88 def deltas_for_first_pair(first_pair, node); end private - # source://rubocop//lib/rubocop/cop/mixin/hash_alignment_styles.rb#106 + # source://rubocop/lib/rubocop/cop/mixin/hash_alignment_styles.rb#106 def hash_rocket_delta(first_pair, current_pair); end - # source://rubocop//lib/rubocop/cop/mixin/hash_alignment_styles.rb#102 + # source://rubocop/lib/rubocop/cop/mixin/hash_alignment_styles.rb#102 def key_delta(first_pair, current_pair); end # Returns the value of attribute max_key_width. # - # source://rubocop//lib/rubocop/cop/mixin/hash_alignment_styles.rb#100 + # source://rubocop/lib/rubocop/cop/mixin/hash_alignment_styles.rb#100 def max_key_width; end # Sets the attribute max_key_width # # @param value the value to set the attribute max_key_width to. # - # source://rubocop//lib/rubocop/cop/mixin/hash_alignment_styles.rb#100 + # source://rubocop/lib/rubocop/cop/mixin/hash_alignment_styles.rb#100 def max_key_width=(_arg0); end - # source://rubocop//lib/rubocop/cop/mixin/hash_alignment_styles.rb#110 + # source://rubocop/lib/rubocop/cop/mixin/hash_alignment_styles.rb#110 def value_delta(first_pair, current_pair); end end # Common functionality for checking alignment of hash values. # -# source://rubocop//lib/rubocop/cop/mixin/hash_alignment_styles.rb#56 +# source://rubocop/lib/rubocop/cop/mixin/hash_alignment_styles.rb#56 module RuboCop::Cop::HashAlignmentStyles::ValueAlignment # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/mixin/hash_alignment_styles.rb#57 + # source://rubocop/lib/rubocop/cop/mixin/hash_alignment_styles.rb#57 def checkable_layout?(node); end - # source://rubocop//lib/rubocop/cop/mixin/hash_alignment_styles.rb#61 + # source://rubocop/lib/rubocop/cop/mixin/hash_alignment_styles.rb#61 def deltas(first_pair, current_pair); end private - # source://rubocop//lib/rubocop/cop/mixin/hash_alignment_styles.rb#71 + # source://rubocop/lib/rubocop/cop/mixin/hash_alignment_styles.rb#71 def separator_delta(first_pair, current_pair, key_delta); end end # This module checks for Ruby 3.1's hash value omission syntax. # -# source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#7 +# source://rubocop/lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#7 module RuboCop::Cop::HashShorthandSyntax - # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#14 + # source://rubocop/lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#14 def on_hash_for_mixed_shorthand(hash_node); end - # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#26 + # source://rubocop/lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#26 def on_pair(node); end private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#126 + # source://rubocop/lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#126 def brackets?(method_dispatch_node); end - # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#156 + # source://rubocop/lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#156 def breakdown_value_types_of_hash(hash_node); end - # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#103 + # source://rubocop/lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#103 def def_node_that_require_parentheses(node); end - # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#185 + # source://rubocop/lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#185 def each_omittable_value_pair(hash_value_type_breakdown, &block); end - # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#181 + # source://rubocop/lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#181 def each_omitted_value_pair(hash_value_type_breakdown, &block); end - # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#81 + # source://rubocop/lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#81 def enforced_shorthand_syntax; end - # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#118 + # source://rubocop/lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#118 def find_ancestor_method_dispatch_node(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#168 + # source://rubocop/lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#168 def hash_with_mixed_shorthand_syntax?(hash_value_type_breakdown); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#172 + # source://rubocop/lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#172 def hash_with_values_that_cant_be_omitted?(hash_value_type_breakdown); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#176 + # source://rubocop/lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#176 def ignore_explicit_omissible_hash_shorthand_syntax?(hash_value_type_breakdown); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#75 + # source://rubocop/lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#75 def ignore_hash_shorthand_syntax?(pair_node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#69 + # source://rubocop/lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#69 def ignore_mixed_hash_shorthand_syntax?(hash_node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#141 + # source://rubocop/lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#141 def last_expression?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#149 + # source://rubocop/lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#149 def method_dispatch_as_argument?(method_dispatch_node); end - # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#189 + # source://rubocop/lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#189 def mixed_shorthand_syntax_check(hash_value_type_breakdown); end - # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#205 + # source://rubocop/lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#205 def no_mixed_shorthand_syntax_check(hash_value_type_breakdown); end - # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#49 + # source://rubocop/lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#49 def register_offense(node, message, replacement); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#85 + # source://rubocop/lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#85 def require_hash_value?(hash_key_source, node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#94 + # source://rubocop/lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#94 def require_hash_value_for_around_hash_literal?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#130 + # source://rubocop/lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#130 def use_element_of_hash_literal_as_receiver?(ancestor, parent); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#135 + # source://rubocop/lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#135 def use_modifier_form_without_parenthesized_method_call?(ancestor); end end -# source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#12 +# source://rubocop/lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#12 RuboCop::Cop::HashShorthandSyntax::DO_NOT_MIX_EXPLICIT_VALUE_MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#10 +# source://rubocop/lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#10 RuboCop::Cop::HashShorthandSyntax::DO_NOT_MIX_MSG_PREFIX = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#11 +# source://rubocop/lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#11 RuboCop::Cop::HashShorthandSyntax::DO_NOT_MIX_OMIT_VALUE_MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#216 +# source://rubocop/lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#216 class RuboCop::Cop::HashShorthandSyntax::DefNode < ::Struct - # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#225 + # source://rubocop/lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#225 def first_argument; end - # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#229 + # source://rubocop/lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#229 def last_argument; end # Returns the value of attribute node @@ -6857,7 +6920,7 @@ class RuboCop::Cop::HashShorthandSyntax::DefNode < ::Struct # @return [Object] the newly set value def node=(_); end - # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#217 + # source://rubocop/lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#217 def selector; end class << self @@ -6869,84 +6932,84 @@ class RuboCop::Cop::HashShorthandSyntax::DefNode < ::Struct end end -# source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#9 +# source://rubocop/lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#9 RuboCop::Cop::HashShorthandSyntax::EXPLICIT_HASH_VALUE_MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#8 +# source://rubocop/lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#8 RuboCop::Cop::HashShorthandSyntax::OMIT_HASH_VALUE_MSG = T.let(T.unsafe(nil), String) # Common functionality for Style/HashTransformKeys and # Style/HashTransformValues # -# source://rubocop//lib/rubocop/cop/mixin/hash_transform_method.rb#7 +# source://rubocop/lib/rubocop/cop/mixin/hash_transform_method.rb#7 module RuboCop::Cop::HashTransformMethod extend ::RuboCop::AST::NodePattern::Macros - # source://rubocop//lib/rubocop/cop/mixin/hash_transform_method.rb#13 + # source://rubocop/lib/rubocop/cop/mixin/hash_transform_method.rb#13 def array_receiver?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/mixin/hash_transform_method.rb#17 + # source://rubocop/lib/rubocop/cop/mixin/hash_transform_method.rb#17 def on_block(node); end - # source://rubocop//lib/rubocop/cop/mixin/hash_transform_method.rb#34 + # source://rubocop/lib/rubocop/cop/mixin/hash_transform_method.rb#34 def on_csend(node); end - # source://rubocop//lib/rubocop/cop/mixin/hash_transform_method.rb#27 + # source://rubocop/lib/rubocop/cop/mixin/hash_transform_method.rb#27 def on_send(node); end private - # source://rubocop//lib/rubocop/cop/mixin/hash_transform_method.rb#108 + # source://rubocop/lib/rubocop/cop/mixin/hash_transform_method.rb#108 def execute_correction(corrector, node, correction); end # @abstract # @raise [NotImplementedError] # @return [Captures] # - # source://rubocop//lib/rubocop/cop/mixin/hash_transform_method.rb#83 + # source://rubocop/lib/rubocop/cop/mixin/hash_transform_method.rb#83 def extract_captures(_match); end - # source://rubocop//lib/rubocop/cop/mixin/hash_transform_method.rb#60 + # source://rubocop/lib/rubocop/cop/mixin/hash_transform_method.rb#60 def handle_possible_offense(node, match, match_desc); end # @abstract # @raise [NotImplementedError] # @return [String] # - # source://rubocop//lib/rubocop/cop/mixin/hash_transform_method.rb#90 + # source://rubocop/lib/rubocop/cop/mixin/hash_transform_method.rb#90 def new_method_name; end # @abstract Implemented with `def_node_matcher` # @raise [NotImplementedError] # - # source://rubocop//lib/rubocop/cop/mixin/hash_transform_method.rb#41 + # source://rubocop/lib/rubocop/cop/mixin/hash_transform_method.rb#41 def on_bad_each_with_object(_node); end # @abstract Implemented with `def_node_matcher` # @raise [NotImplementedError] # - # source://rubocop//lib/rubocop/cop/mixin/hash_transform_method.rb#46 + # source://rubocop/lib/rubocop/cop/mixin/hash_transform_method.rb#46 def on_bad_hash_brackets_map(_node); end # @abstract Implemented with `def_node_matcher` # @raise [NotImplementedError] # - # source://rubocop//lib/rubocop/cop/mixin/hash_transform_method.rb#51 + # source://rubocop/lib/rubocop/cop/mixin/hash_transform_method.rb#51 def on_bad_map_to_h(_node); end # @abstract Implemented with `def_node_matcher` # @raise [NotImplementedError] # - # source://rubocop//lib/rubocop/cop/mixin/hash_transform_method.rb#56 + # source://rubocop/lib/rubocop/cop/mixin/hash_transform_method.rb#56 def on_bad_to_h(_node); end - # source://rubocop//lib/rubocop/cop/mixin/hash_transform_method.rb#94 + # source://rubocop/lib/rubocop/cop/mixin/hash_transform_method.rb#94 def prepare_correction(node); end end # Internal helper class to hold autocorrect data # -# source://rubocop//lib/rubocop/cop/mixin/hash_transform_method.rb#136 +# source://rubocop/lib/rubocop/cop/mixin/hash_transform_method.rb#136 class RuboCop::Cop::HashTransformMethod::Autocorrection < ::Struct # Returns the value of attribute block_node # @@ -6981,16 +7044,16 @@ class RuboCop::Cop::HashTransformMethod::Autocorrection < ::Struct # @return [Object] the newly set value def match=(_); end - # source://rubocop//lib/rubocop/cop/mixin/hash_transform_method.rb#177 + # source://rubocop/lib/rubocop/cop/mixin/hash_transform_method.rb#177 def set_new_arg_name(transformed_argname, corrector); end - # source://rubocop//lib/rubocop/cop/mixin/hash_transform_method.rb#181 + # source://rubocop/lib/rubocop/cop/mixin/hash_transform_method.rb#181 def set_new_body_expression(transforming_body_expr, corrector); end - # source://rubocop//lib/rubocop/cop/mixin/hash_transform_method.rb#167 + # source://rubocop/lib/rubocop/cop/mixin/hash_transform_method.rb#167 def set_new_method_name(new_method_name, corrector); end - # source://rubocop//lib/rubocop/cop/mixin/hash_transform_method.rb#161 + # source://rubocop/lib/rubocop/cop/mixin/hash_transform_method.rb#161 def strip_prefix_and_suffix(node, corrector); end # Returns the value of attribute trailing @@ -7007,16 +7070,16 @@ class RuboCop::Cop::HashTransformMethod::Autocorrection < ::Struct class << self def [](*_arg0); end - # source://rubocop//lib/rubocop/cop/mixin/hash_transform_method.rb#137 + # source://rubocop/lib/rubocop/cop/mixin/hash_transform_method.rb#137 def from_each_with_object(node, match); end - # source://rubocop//lib/rubocop/cop/mixin/hash_transform_method.rb#141 + # source://rubocop/lib/rubocop/cop/mixin/hash_transform_method.rb#141 def from_hash_brackets_map(node, match); end - # source://rubocop//lib/rubocop/cop/mixin/hash_transform_method.rb#145 + # source://rubocop/lib/rubocop/cop/mixin/hash_transform_method.rb#145 def from_map_to_h(node, match); end - # source://rubocop//lib/rubocop/cop/mixin/hash_transform_method.rb#157 + # source://rubocop/lib/rubocop/cop/mixin/hash_transform_method.rb#157 def from_to_h(node, match); end def inspect; end @@ -7028,16 +7091,16 @@ end # Internal helper class to hold match data # -# source://rubocop//lib/rubocop/cop/mixin/hash_transform_method.rb#118 +# source://rubocop/lib/rubocop/cop/mixin/hash_transform_method.rb#118 class RuboCop::Cop::HashTransformMethod::Captures < ::Struct # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/mixin/hash_transform_method.rb#119 + # source://rubocop/lib/rubocop/cop/mixin/hash_transform_method.rb#119 def noop_transformation?; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/mixin/hash_transform_method.rb#124 + # source://rubocop/lib/rubocop/cop/mixin/hash_transform_method.rb#124 def transformation_uses_both_args?; end # Returns the value of attribute transformed_argname @@ -7075,7 +7138,7 @@ class RuboCop::Cop::HashTransformMethod::Captures < ::Struct # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/mixin/hash_transform_method.rb#128 + # source://rubocop/lib/rubocop/cop/mixin/hash_transform_method.rb#128 def use_transformed_argname?; end class << self @@ -7087,119 +7150,119 @@ class RuboCop::Cop::HashTransformMethod::Captures < ::Struct end end -# source://rubocop//lib/rubocop/cop/mixin/hash_transform_method.rb#10 +# source://rubocop/lib/rubocop/cop/mixin/hash_transform_method.rb#10 RuboCop::Cop::HashTransformMethod::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Common functionality for working with heredoc strings. # -# source://rubocop//lib/rubocop/cop/mixin/heredoc.rb#6 +# source://rubocop/lib/rubocop/cop/mixin/heredoc.rb#6 module RuboCop::Cop::Heredoc - # source://rubocop//lib/rubocop/cop/mixin/heredoc.rb#9 + # source://rubocop/lib/rubocop/cop/mixin/heredoc.rb#9 def on_dstr(node); end # @raise [NotImplementedError] # - # source://rubocop//lib/rubocop/cop/mixin/heredoc.rb#17 + # source://rubocop/lib/rubocop/cop/mixin/heredoc.rb#17 def on_heredoc(_node); end - # source://rubocop//lib/rubocop/cop/mixin/heredoc.rb#9 + # source://rubocop/lib/rubocop/cop/mixin/heredoc.rb#9 def on_str(node); end - # source://rubocop//lib/rubocop/cop/mixin/heredoc.rb#9 + # source://rubocop/lib/rubocop/cop/mixin/heredoc.rb#9 def on_xstr(node); end private - # source://rubocop//lib/rubocop/cop/mixin/heredoc.rb#28 + # source://rubocop/lib/rubocop/cop/mixin/heredoc.rb#28 def delimiter_string(node); end - # source://rubocop//lib/rubocop/cop/mixin/heredoc.rb#34 + # source://rubocop/lib/rubocop/cop/mixin/heredoc.rb#34 def heredoc_type(node); end - # source://rubocop//lib/rubocop/cop/mixin/heredoc.rb#23 + # source://rubocop/lib/rubocop/cop/mixin/heredoc.rb#23 def indent_level(str); end end -# source://rubocop//lib/rubocop/cop/mixin/heredoc.rb#7 +# source://rubocop/lib/rubocop/cop/mixin/heredoc.rb#7 RuboCop::Cop::Heredoc::OPENING_DELIMITER = T.let(T.unsafe(nil), Regexp) # This class autocorrects `if...then` structures to a multiline `if` statement # -# source://rubocop//lib/rubocop/cop/correctors/if_then_corrector.rb#6 +# source://rubocop/lib/rubocop/cop/correctors/if_then_corrector.rb#6 class RuboCop::Cop::IfThenCorrector # @return [IfThenCorrector] a new instance of IfThenCorrector # - # source://rubocop//lib/rubocop/cop/correctors/if_then_corrector.rb#9 + # source://rubocop/lib/rubocop/cop/correctors/if_then_corrector.rb#9 def initialize(if_node, indentation: T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/correctors/if_then_corrector.rb#14 + # source://rubocop/lib/rubocop/cop/correctors/if_then_corrector.rb#14 def call(corrector); end private - # source://rubocop//lib/rubocop/cop/correctors/if_then_corrector.rb#50 + # source://rubocop/lib/rubocop/cop/correctors/if_then_corrector.rb#50 def branch_body_indentation; end # Returns the value of attribute if_node. # - # source://rubocop//lib/rubocop/cop/correctors/if_then_corrector.rb#20 + # source://rubocop/lib/rubocop/cop/correctors/if_then_corrector.rb#20 def if_node; end # Returns the value of attribute indentation. # - # source://rubocop//lib/rubocop/cop/correctors/if_then_corrector.rb#20 + # source://rubocop/lib/rubocop/cop/correctors/if_then_corrector.rb#20 def indentation; end - # source://rubocop//lib/rubocop/cop/correctors/if_then_corrector.rb#22 + # source://rubocop/lib/rubocop/cop/correctors/if_then_corrector.rb#22 def replacement(node = T.unsafe(nil), indentation = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/correctors/if_then_corrector.rb#36 + # source://rubocop/lib/rubocop/cop/correctors/if_then_corrector.rb#36 def rewrite_else_branch(else_branch, indentation); end end -# source://rubocop//lib/rubocop/cop/correctors/if_then_corrector.rb#7 +# source://rubocop/lib/rubocop/cop/correctors/if_then_corrector.rb#7 RuboCop::Cop::IfThenCorrector::DEFAULT_INDENTATION_WIDTH = T.let(T.unsafe(nil), Integer) # @deprecated IgnoredMethods class has been replaced with AllowedMethods. # -# source://rubocop//lib/rubocop/cop/mixin/allowed_methods.rb#46 +# source://rubocop/lib/rubocop/cop/mixin/allowed_methods.rb#46 RuboCop::Cop::IgnoredMethods = RuboCop::Cop::AllowedMethods # Handles adding and checking ignored nodes. # -# source://rubocop//lib/rubocop/cop/ignored_node.rb#6 +# source://rubocop/lib/rubocop/cop/ignored_node.rb#6 module RuboCop::Cop::IgnoredNode - # source://rubocop//lib/rubocop/cop/ignored_node.rb#7 + # source://rubocop/lib/rubocop/cop/ignored_node.rb#7 def ignore_node(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/ignored_node.rb#24 + # source://rubocop/lib/rubocop/cop/ignored_node.rb#24 def ignored_node?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/ignored_node.rb#11 + # source://rubocop/lib/rubocop/cop/ignored_node.rb#11 def part_of_ignored_node?(node); end private - # source://rubocop//lib/rubocop/cop/ignored_node.rb#31 + # source://rubocop/lib/rubocop/cop/ignored_node.rb#31 def ignored_nodes; end end # @deprecated IgnoredPattern class has been replaced with AllowedPattern. # -# source://rubocop//lib/rubocop/cop/mixin/allowed_pattern.rb#66 +# source://rubocop/lib/rubocop/cop/mixin/allowed_pattern.rb#66 RuboCop::Cop::IgnoredPattern = RuboCop::Cop::AllowedPattern # Common functionality for checking integer nodes. # -# source://rubocop//lib/rubocop/cop/mixin/integer_node.rb#6 +# source://rubocop/lib/rubocop/cop/mixin/integer_node.rb#6 module RuboCop::Cop::IntegerNode private - # source://rubocop//lib/rubocop/cop/mixin/integer_node.rb#9 + # source://rubocop/lib/rubocop/cop/mixin/integer_node.rb#9 def integer_part(node); end end @@ -7207,112 +7270,112 @@ end # # @abstract Subclasses are expected to implement {#on_interpolation}. # -# source://rubocop//lib/rubocop/cop/mixin/interpolation.rb#8 +# source://rubocop/lib/rubocop/cop/mixin/interpolation.rb#8 module RuboCop::Cop::Interpolation - # source://rubocop//lib/rubocop/cop/mixin/interpolation.rb#9 + # source://rubocop/lib/rubocop/cop/mixin/interpolation.rb#9 def on_dstr(node); end - # source://rubocop//lib/rubocop/cop/mixin/interpolation.rb#9 + # source://rubocop/lib/rubocop/cop/mixin/interpolation.rb#9 def on_dsym(node); end - # source://rubocop//lib/rubocop/cop/mixin/interpolation.rb#17 + # source://rubocop/lib/rubocop/cop/mixin/interpolation.rb#17 def on_node_with_interpolations(node); end - # source://rubocop//lib/rubocop/cop/mixin/interpolation.rb#9 + # source://rubocop/lib/rubocop/cop/mixin/interpolation.rb#9 def on_regexp(node); end - # source://rubocop//lib/rubocop/cop/mixin/interpolation.rb#9 + # source://rubocop/lib/rubocop/cop/mixin/interpolation.rb#9 def on_xstr(node); end end # This class autocorrects lambda literal to method notation. # -# source://rubocop//lib/rubocop/cop/correctors/lambda_literal_to_method_corrector.rb#6 +# source://rubocop/lib/rubocop/cop/correctors/lambda_literal_to_method_corrector.rb#6 class RuboCop::Cop::LambdaLiteralToMethodCorrector # @return [LambdaLiteralToMethodCorrector] a new instance of LambdaLiteralToMethodCorrector # - # source://rubocop//lib/rubocop/cop/correctors/lambda_literal_to_method_corrector.rb#7 + # source://rubocop/lib/rubocop/cop/correctors/lambda_literal_to_method_corrector.rb#7 def initialize(block_node); end - # source://rubocop//lib/rubocop/cop/correctors/lambda_literal_to_method_corrector.rb#13 + # source://rubocop/lib/rubocop/cop/correctors/lambda_literal_to_method_corrector.rb#13 def call(corrector); end private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/correctors/lambda_literal_to_method_corrector.rb#118 + # source://rubocop/lib/rubocop/cop/correctors/lambda_literal_to_method_corrector.rb#118 def arg_to_unparenthesized_call?; end # Returns the value of attribute arguments. # - # source://rubocop//lib/rubocop/cop/correctors/lambda_literal_to_method_corrector.rb#34 + # source://rubocop/lib/rubocop/cop/correctors/lambda_literal_to_method_corrector.rb#34 def arguments; end - # source://rubocop//lib/rubocop/cop/correctors/lambda_literal_to_method_corrector.rb#102 + # source://rubocop/lib/rubocop/cop/correctors/lambda_literal_to_method_corrector.rb#102 def arguments_begin_pos; end - # source://rubocop//lib/rubocop/cop/correctors/lambda_literal_to_method_corrector.rb#98 + # source://rubocop/lib/rubocop/cop/correctors/lambda_literal_to_method_corrector.rb#98 def arguments_end_pos; end - # source://rubocop//lib/rubocop/cop/correctors/lambda_literal_to_method_corrector.rb#110 + # source://rubocop/lib/rubocop/cop/correctors/lambda_literal_to_method_corrector.rb#110 def block_begin; end - # source://rubocop//lib/rubocop/cop/correctors/lambda_literal_to_method_corrector.rb#106 + # source://rubocop/lib/rubocop/cop/correctors/lambda_literal_to_method_corrector.rb#106 def block_end; end # Returns the value of attribute block_node. # - # source://rubocop//lib/rubocop/cop/correctors/lambda_literal_to_method_corrector.rb#34 + # source://rubocop/lib/rubocop/cop/correctors/lambda_literal_to_method_corrector.rb#34 def block_node; end - # source://rubocop//lib/rubocop/cop/correctors/lambda_literal_to_method_corrector.rb#59 + # source://rubocop/lib/rubocop/cop/correctors/lambda_literal_to_method_corrector.rb#59 def insert_arguments(corrector); end - # source://rubocop//lib/rubocop/cop/correctors/lambda_literal_to_method_corrector.rb#43 + # source://rubocop/lib/rubocop/cop/correctors/lambda_literal_to_method_corrector.rb#43 def insert_separating_space(corrector); end - # source://rubocop//lib/rubocop/cop/correctors/lambda_literal_to_method_corrector.rb#88 + # source://rubocop/lib/rubocop/cop/correctors/lambda_literal_to_method_corrector.rb#88 def lambda_arg_string; end # Returns the value of attribute method. # - # source://rubocop//lib/rubocop/cop/correctors/lambda_literal_to_method_corrector.rb#34 + # source://rubocop/lib/rubocop/cop/correctors/lambda_literal_to_method_corrector.rb#34 def method; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/correctors/lambda_literal_to_method_corrector.rb#92 + # source://rubocop/lib/rubocop/cop/correctors/lambda_literal_to_method_corrector.rb#92 def needs_separating_space?; end - # source://rubocop//lib/rubocop/cop/correctors/lambda_literal_to_method_corrector.rb#53 + # source://rubocop/lib/rubocop/cop/correctors/lambda_literal_to_method_corrector.rb#53 def remove_arguments(corrector); end - # source://rubocop//lib/rubocop/cop/correctors/lambda_literal_to_method_corrector.rb#66 + # source://rubocop/lib/rubocop/cop/correctors/lambda_literal_to_method_corrector.rb#66 def remove_leading_whitespace(corrector); end - # source://rubocop//lib/rubocop/cop/correctors/lambda_literal_to_method_corrector.rb#74 + # source://rubocop/lib/rubocop/cop/correctors/lambda_literal_to_method_corrector.rb#74 def remove_trailing_whitespace(corrector); end - # source://rubocop//lib/rubocop/cop/correctors/lambda_literal_to_method_corrector.rb#36 + # source://rubocop/lib/rubocop/cop/correctors/lambda_literal_to_method_corrector.rb#36 def remove_unparenthesized_whitespace(corrector); end - # source://rubocop//lib/rubocop/cop/correctors/lambda_literal_to_method_corrector.rb#79 + # source://rubocop/lib/rubocop/cop/correctors/lambda_literal_to_method_corrector.rb#79 def replace_delimiters(corrector); end - # source://rubocop//lib/rubocop/cop/correctors/lambda_literal_to_method_corrector.rb#49 + # source://rubocop/lib/rubocop/cop/correctors/lambda_literal_to_method_corrector.rb#49 def replace_selector(corrector); end - # source://rubocop//lib/rubocop/cop/correctors/lambda_literal_to_method_corrector.rb#114 + # source://rubocop/lib/rubocop/cop/correctors/lambda_literal_to_method_corrector.rb#114 def selector_end; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/correctors/lambda_literal_to_method_corrector.rb#134 + # source://rubocop/lib/rubocop/cop/correctors/lambda_literal_to_method_corrector.rb#134 def separating_space?; end end -# source://rubocop//lib/rubocop/cop/mixin/empty_lines_around_body.rb#5 +# source://rubocop/lib/rubocop/cop/mixin/empty_lines_around_body.rb#5 module RuboCop::Cop::Layout; end # Bare access modifiers (those not applying to specific methods) should be @@ -7344,54 +7407,53 @@ module RuboCop::Cop::Layout; end # def smooth; end # end # -# source://rubocop//lib/rubocop/cop/layout/access_modifier_indentation.rb#35 +# source://rubocop/lib/rubocop/cop/layout/access_modifier_indentation.rb#35 class RuboCop::Cop::Layout::AccessModifierIndentation < ::RuboCop::Cop::Base include ::RuboCop::Cop::Alignment include ::RuboCop::Cop::ConfigurableEnforcedStyle include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/layout/access_modifier_indentation.rb#43 + # source://rubocop/lib/rubocop/cop/layout/access_modifier_indentation.rb#43 def on_block(node); end - # source://rubocop//lib/rubocop/cop/layout/access_modifier_indentation.rb#43 + # source://rubocop/lib/rubocop/cop/layout/access_modifier_indentation.rb#43 def on_class(node); end - # source://rubocop//lib/rubocop/cop/layout/access_modifier_indentation.rb#43 + # source://rubocop/lib/rubocop/cop/layout/access_modifier_indentation.rb#43 def on_module(node); end - # source://rubocop//lib/rubocop/cop/layout/access_modifier_indentation.rb#43 + # source://rubocop/lib/rubocop/cop/layout/access_modifier_indentation.rb#43 def on_sclass(node); end private - # source://rubocop//lib/rubocop/cop/layout/access_modifier_indentation.rb#54 + # source://rubocop/lib/rubocop/cop/layout/access_modifier_indentation.rb#54 def autocorrect(corrector, node); end - # source://rubocop//lib/rubocop/cop/layout/access_modifier_indentation.rb#58 + # source://rubocop/lib/rubocop/cop/layout/access_modifier_indentation.rb#58 def check_body(body, node); end - # source://rubocop//lib/rubocop/cop/layout/access_modifier_indentation.rb#69 + # source://rubocop/lib/rubocop/cop/layout/access_modifier_indentation.rb#69 def check_modifier(send_node, end_range); end - # source://rubocop//lib/rubocop/cop/layout/access_modifier_indentation.rb#92 + # source://rubocop/lib/rubocop/cop/layout/access_modifier_indentation.rb#92 def expected_indent_offset; end - # source://rubocop//lib/rubocop/cop/layout/access_modifier_indentation.rb#88 + # source://rubocop/lib/rubocop/cop/layout/access_modifier_indentation.rb#88 def message(range); end # An offset that is not expected, but correct if the configuration is # changed. # - # source://rubocop//lib/rubocop/cop/layout/access_modifier_indentation.rb#98 + # source://rubocop/lib/rubocop/cop/layout/access_modifier_indentation.rb#98 def unexpected_indent_offset; end end -# source://rubocop//lib/rubocop/cop/layout/access_modifier_indentation.rb#41 +# source://rubocop/lib/rubocop/cop/layout/access_modifier_indentation.rb#41 RuboCop::Cop::Layout::AccessModifierIndentation::MSG = T.let(T.unsafe(nil), String) -# Here we check if the arguments on a multi-line method -# definition are aligned. +# Check that the arguments on a multi-line method definition are aligned. # # @example EnforcedStyle: with_first_argument (default) # # good @@ -7430,76 +7492,76 @@ RuboCop::Cop::Layout::AccessModifierIndentation::MSG = T.let(T.unsafe(nil), Stri # :baz, # key: value # -# source://rubocop//lib/rubocop/cop/layout/argument_alignment.rb#46 +# source://rubocop/lib/rubocop/cop/layout/argument_alignment.rb#45 class RuboCop::Cop::Layout::ArgumentAlignment < ::RuboCop::Cop::Base include ::RuboCop::Cop::Alignment extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/layout/argument_alignment.rb#55 + # source://rubocop/lib/rubocop/cop/layout/argument_alignment.rb#54 def on_csend(node); end - # source://rubocop//lib/rubocop/cop/layout/argument_alignment.rb#55 + # source://rubocop/lib/rubocop/cop/layout/argument_alignment.rb#54 def on_send(node); end private - # source://rubocop//lib/rubocop/cop/layout/argument_alignment.rb#92 + # source://rubocop/lib/rubocop/cop/layout/argument_alignment.rb#91 def arguments_or_first_arg_pairs(node); end - # source://rubocop//lib/rubocop/cop/layout/argument_alignment.rb#80 + # source://rubocop/lib/rubocop/cop/layout/argument_alignment.rb#79 def arguments_with_last_arg_pairs(node); end - # source://rubocop//lib/rubocop/cop/layout/argument_alignment.rb#108 + # source://rubocop/lib/rubocop/cop/layout/argument_alignment.rb#107 def autocorrect(corrector, node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/argument_alignment.rb#68 + # source://rubocop/lib/rubocop/cop/layout/argument_alignment.rb#67 def autocorrect_incompatible_with_other_cops?; end - # source://rubocop//lib/rubocop/cop/layout/argument_alignment.rb#124 + # source://rubocop/lib/rubocop/cop/layout/argument_alignment.rb#123 def base_column(node, first_argument); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/argument_alignment.rb#144 + # source://rubocop/lib/rubocop/cop/layout/argument_alignment.rb#143 def enforce_hash_argument_with_separator?; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/argument_alignment.rb#116 + # source://rubocop/lib/rubocop/cop/layout/argument_alignment.rb#115 def fixed_indentation?; end - # source://rubocop//lib/rubocop/cop/layout/argument_alignment.rb#72 + # source://rubocop/lib/rubocop/cop/layout/argument_alignment.rb#71 def flattened_arguments(node); end - # source://rubocop//lib/rubocop/cop/layout/argument_alignment.rb#152 + # source://rubocop/lib/rubocop/cop/layout/argument_alignment.rb#151 def hash_argument_config; end - # source://rubocop//lib/rubocop/cop/layout/argument_alignment.rb#112 + # source://rubocop/lib/rubocop/cop/layout/argument_alignment.rb#111 def message(_node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/argument_alignment.rb#101 + # source://rubocop/lib/rubocop/cop/layout/argument_alignment.rb#100 def multiple_arguments?(node); end - # source://rubocop//lib/rubocop/cop/layout/argument_alignment.rb#135 + # source://rubocop/lib/rubocop/cop/layout/argument_alignment.rb#134 def target_method_lineno(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/argument_alignment.rb#120 + # source://rubocop/lib/rubocop/cop/layout/argument_alignment.rb#119 def with_first_argument_style?; end end -# source://rubocop//lib/rubocop/cop/layout/argument_alignment.rb#50 +# source://rubocop/lib/rubocop/cop/layout/argument_alignment.rb#49 RuboCop::Cop::Layout::ArgumentAlignment::ALIGN_PARAMS_MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/layout/argument_alignment.rb#52 +# source://rubocop/lib/rubocop/cop/layout/argument_alignment.rb#51 RuboCop::Cop::Layout::ArgumentAlignment::FIXED_INDENT_MSG = T.let(T.unsafe(nil), String) -# Here we check if the elements of a multi-line array literal are +# Check that the elements of a multi-line array literal are # aligned. # # @example EnforcedStyle: with_first_element (default) @@ -7529,38 +7591,38 @@ RuboCop::Cop::Layout::ArgumentAlignment::FIXED_INDENT_MSG = T.let(T.unsafe(nil), # array = [1, 2, 3, # 4, 5, 6] # -# source://rubocop//lib/rubocop/cop/layout/array_alignment.rb#36 +# source://rubocop/lib/rubocop/cop/layout/array_alignment.rb#36 class RuboCop::Cop::Layout::ArrayAlignment < ::RuboCop::Cop::Base include ::RuboCop::Cop::Alignment extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/layout/array_alignment.rb#46 + # source://rubocop/lib/rubocop/cop/layout/array_alignment.rb#46 def on_array(node); end private - # source://rubocop//lib/rubocop/cop/layout/array_alignment.rb#55 + # source://rubocop/lib/rubocop/cop/layout/array_alignment.rb#55 def autocorrect(corrector, node); end - # source://rubocop//lib/rubocop/cop/layout/array_alignment.rb#67 + # source://rubocop/lib/rubocop/cop/layout/array_alignment.rb#67 def base_column(node, args); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/array_alignment.rb#63 + # source://rubocop/lib/rubocop/cop/layout/array_alignment.rb#63 def fixed_indentation?; end - # source://rubocop//lib/rubocop/cop/layout/array_alignment.rb#59 + # source://rubocop/lib/rubocop/cop/layout/array_alignment.rb#59 def message(_range); end - # source://rubocop//lib/rubocop/cop/layout/array_alignment.rb#78 + # source://rubocop/lib/rubocop/cop/layout/array_alignment.rb#78 def target_method_lineno(node); end end -# source://rubocop//lib/rubocop/cop/layout/array_alignment.rb#40 +# source://rubocop/lib/rubocop/cop/layout/array_alignment.rb#40 RuboCop::Cop::Layout::ArrayAlignment::ALIGN_ELEMENTS_MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/layout/array_alignment.rb#43 +# source://rubocop/lib/rubocop/cop/layout/array_alignment.rb#43 RuboCop::Cop::Layout::ArrayAlignment::FIXED_INDENT_MSG = T.let(T.unsafe(nil), String) # Checks the indentation of the first line of the @@ -7582,7 +7644,7 @@ RuboCop::Cop::Layout::ArrayAlignment::FIXED_INDENT_MSG = T.let(T.unsafe(nil), St # 'bar' # end # -# source://rubocop//lib/rubocop/cop/layout/assignment_indentation.rb#25 +# source://rubocop/lib/rubocop/cop/layout/assignment_indentation.rb#25 class RuboCop::Cop::Layout::AssignmentIndentation < ::RuboCop::Cop::Base include ::RuboCop::Cop::CheckAssignment include ::RuboCop::Cop::Alignment @@ -7590,17 +7652,17 @@ class RuboCop::Cop::Layout::AssignmentIndentation < ::RuboCop::Cop::Base private - # source://rubocop//lib/rubocop/cop/layout/assignment_indentation.rb#43 + # source://rubocop/lib/rubocop/cop/layout/assignment_indentation.rb#43 def autocorrect(corrector, node); end - # source://rubocop//lib/rubocop/cop/layout/assignment_indentation.rb#34 + # source://rubocop/lib/rubocop/cop/layout/assignment_indentation.rb#34 def check_assignment(node, rhs); end - # source://rubocop//lib/rubocop/cop/layout/assignment_indentation.rb#47 + # source://rubocop/lib/rubocop/cop/layout/assignment_indentation.rb#47 def leftmost_multiple_assignment(node); end end -# source://rubocop//lib/rubocop/cop/layout/assignment_indentation.rb#30 +# source://rubocop/lib/rubocop/cop/layout/assignment_indentation.rb#30 RuboCop::Cop::Layout::AssignmentIndentation::MSG = T.let(T.unsafe(nil), String) # Checks whether the end keyword of `begin` is aligned properly. @@ -7637,29 +7699,29 @@ RuboCop::Cop::Layout::AssignmentIndentation::MSG = T.let(T.unsafe(nil), String) # do_something # end # -# source://rubocop//lib/rubocop/cop/layout/begin_end_alignment.rb#41 +# source://rubocop/lib/rubocop/cop/layout/begin_end_alignment.rb#41 class RuboCop::Cop::Layout::BeginEndAlignment < ::RuboCop::Cop::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle include ::RuboCop::Cop::RangeHelp include ::RuboCop::Cop::EndKeywordAlignment extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/layout/begin_end_alignment.rb#48 + # source://rubocop/lib/rubocop/cop/layout/begin_end_alignment.rb#47 def on_kwbegin(node); end private - # source://rubocop//lib/rubocop/cop/layout/begin_end_alignment.rb#63 + # source://rubocop/lib/rubocop/cop/layout/begin_end_alignment.rb#62 def alignment_node(node); end - # source://rubocop//lib/rubocop/cop/layout/begin_end_alignment.rb#59 + # source://rubocop/lib/rubocop/cop/layout/begin_end_alignment.rb#58 def autocorrect(corrector, node); end - # source://rubocop//lib/rubocop/cop/layout/begin_end_alignment.rb#54 + # source://rubocop/lib/rubocop/cop/layout/begin_end_alignment.rb#53 def check_begin_alignment(node); end end -# source://rubocop//lib/rubocop/cop/layout/begin_end_alignment.rb#46 +# source://rubocop/lib/rubocop/cop/layout/begin_end_alignment.rb#45 RuboCop::Cop::Layout::BeginEndAlignment::MSG = T.let(T.unsafe(nil), String) # Checks whether the end keywords are aligned properly for do @@ -7720,86 +7782,86 @@ RuboCop::Cop::Layout::BeginEndAlignment::MSG = T.let(T.unsafe(nil), String) # baz # end # -# source://rubocop//lib/rubocop/cop/layout/block_alignment.rb#66 +# source://rubocop/lib/rubocop/cop/layout/block_alignment.rb#66 class RuboCop::Cop::Layout::BlockAlignment < ::RuboCop::Cop::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/layout/block_alignment.rb#74 + # source://rubocop/lib/rubocop/cop/layout/block_alignment.rb#74 def block_end_align_target?(param0 = T.unsafe(nil), param1); end - # source://rubocop//lib/rubocop/cop/layout/block_alignment.rb#83 + # source://rubocop/lib/rubocop/cop/layout/block_alignment.rb#83 def on_block(node); end - # source://rubocop//lib/rubocop/cop/layout/block_alignment.rb#83 + # source://rubocop/lib/rubocop/cop/layout/block_alignment.rb#83 def on_numblock(node); end - # source://rubocop//lib/rubocop/cop/layout/block_alignment.rb#89 + # source://rubocop/lib/rubocop/cop/layout/block_alignment.rb#89 def style_parameter_name; end private - # source://rubocop//lib/rubocop/cop/layout/block_alignment.rb#246 + # source://rubocop/lib/rubocop/cop/layout/block_alignment.rb#245 def add_space_before(corrector, loc, delta); end - # source://rubocop//lib/rubocop/cop/layout/block_alignment.rb#223 + # source://rubocop/lib/rubocop/cop/layout/block_alignment.rb#222 def alt_start_msg(start_loc, source_line_column); end - # source://rubocop//lib/rubocop/cop/layout/block_alignment.rb#145 + # source://rubocop/lib/rubocop/cop/layout/block_alignment.rb#144 def autocorrect(corrector, node); end - # source://rubocop//lib/rubocop/cop/layout/block_alignment.rb#95 + # source://rubocop/lib/rubocop/cop/layout/block_alignment.rb#95 def block_end_align_target(node); end - # source://rubocop//lib/rubocop/cop/layout/block_alignment.rb#113 + # source://rubocop/lib/rubocop/cop/layout/block_alignment.rb#113 def check_block_alignment(start_node, block_node); end - # source://rubocop//lib/rubocop/cop/layout/block_alignment.rb#196 + # source://rubocop/lib/rubocop/cop/layout/block_alignment.rb#195 def compute_do_source_line_column(node, end_loc); end - # source://rubocop//lib/rubocop/cop/layout/block_alignment.rb#238 + # source://rubocop/lib/rubocop/cop/layout/block_alignment.rb#237 def compute_start_col(ancestor_node, node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/block_alignment.rb#109 + # source://rubocop/lib/rubocop/cop/layout/block_alignment.rb#109 def disqualified_parent?(parent, node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/block_alignment.rb#105 + # source://rubocop/lib/rubocop/cop/layout/block_alignment.rb#105 def end_align_target?(node, parent); end # In offense message, we want to show the assignment LHS rather than # the entire assignment. # - # source://rubocop//lib/rubocop/cop/layout/block_alignment.rb#191 + # source://rubocop/lib/rubocop/cop/layout/block_alignment.rb#190 def find_lhs_node(node); end - # source://rubocop//lib/rubocop/cop/layout/block_alignment.rb#162 + # source://rubocop/lib/rubocop/cop/layout/block_alignment.rb#161 def format_message(start_loc, end_loc, do_source_line_column, error_source_line_column); end - # source://rubocop//lib/rubocop/cop/layout/block_alignment.rb#233 + # source://rubocop/lib/rubocop/cop/layout/block_alignment.rb#232 def format_source_line_column(source_line_column); end - # source://rubocop//lib/rubocop/cop/layout/block_alignment.rb#215 + # source://rubocop/lib/rubocop/cop/layout/block_alignment.rb#214 def loc_to_source_line_column(loc); end - # source://rubocop//lib/rubocop/cop/layout/block_alignment.rb#126 + # source://rubocop/lib/rubocop/cop/layout/block_alignment.rb#126 def register_offense(block_node, start_loc, end_loc, do_source_line_column); end - # source://rubocop//lib/rubocop/cop/layout/block_alignment.rb#250 + # source://rubocop/lib/rubocop/cop/layout/block_alignment.rb#249 def remove_space_before(corrector, end_pos, delta); end - # source://rubocop//lib/rubocop/cop/layout/block_alignment.rb#172 + # source://rubocop/lib/rubocop/cop/layout/block_alignment.rb#171 def start_for_block_node(block_node); end - # source://rubocop//lib/rubocop/cop/layout/block_alignment.rb#179 + # source://rubocop/lib/rubocop/cop/layout/block_alignment.rb#178 def start_for_line_node(block_node); end end -# source://rubocop//lib/rubocop/cop/layout/block_alignment.rb#71 +# source://rubocop/lib/rubocop/cop/layout/block_alignment.rb#71 RuboCop::Cop::Layout::BlockAlignment::MSG = T.let(T.unsafe(nil), String) # Checks whether the end statement of a do..end block @@ -7824,33 +7886,33 @@ RuboCop::Cop::Layout::BlockAlignment::MSG = T.let(T.unsafe(nil), String) # foo(i) # } # -# source://rubocop//lib/rubocop/cop/layout/block_end_newline.rb#27 +# source://rubocop/lib/rubocop/cop/layout/block_end_newline.rb#27 class RuboCop::Cop::Layout::BlockEndNewline < ::RuboCop::Cop::Base include ::RuboCop::Cop::Alignment extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/layout/block_end_newline.rb#33 + # source://rubocop/lib/rubocop/cop/layout/block_end_newline.rb#33 def on_block(node); end - # source://rubocop//lib/rubocop/cop/layout/block_end_newline.rb#33 + # source://rubocop/lib/rubocop/cop/layout/block_end_newline.rb#33 def on_numblock(node); end private - # source://rubocop//lib/rubocop/cop/layout/block_end_newline.rb#66 + # source://rubocop/lib/rubocop/cop/layout/block_end_newline.rb#66 def last_heredoc_argument(node); end - # source://rubocop//lib/rubocop/cop/layout/block_end_newline.rb#62 + # source://rubocop/lib/rubocop/cop/layout/block_end_newline.rb#62 def message(node); end - # source://rubocop//lib/rubocop/cop/layout/block_end_newline.rb#76 + # source://rubocop/lib/rubocop/cop/layout/block_end_newline.rb#76 def offense_range(node); end - # source://rubocop//lib/rubocop/cop/layout/block_end_newline.rb#49 + # source://rubocop/lib/rubocop/cop/layout/block_end_newline.rb#49 def register_offense(node, offense_range); end end -# source://rubocop//lib/rubocop/cop/layout/block_end_newline.rb#31 +# source://rubocop/lib/rubocop/cop/layout/block_end_newline.rb#31 RuboCop::Cop::Layout::BlockEndNewline::MSG = T.let(T.unsafe(nil), String) # Checks how the `when` and ``in``s of a `case` expression @@ -7958,59 +8020,59 @@ RuboCop::Cop::Layout::BlockEndNewline::MSG = T.let(T.unsafe(nil), String) # y / 3 # end # -# source://rubocop//lib/rubocop/cop/layout/case_indentation.rb#112 +# source://rubocop/lib/rubocop/cop/layout/case_indentation.rb#112 class RuboCop::Cop::Layout::CaseIndentation < ::RuboCop::Cop::Base include ::RuboCop::Cop::Alignment include ::RuboCop::Cop::ConfigurableEnforcedStyle include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/layout/case_indentation.rb#120 + # source://rubocop/lib/rubocop/cop/layout/case_indentation.rb#120 def on_case(case_node); end - # source://rubocop//lib/rubocop/cop/layout/case_indentation.rb#127 + # source://rubocop/lib/rubocop/cop/layout/case_indentation.rb#127 def on_case_match(case_match_node); end private - # source://rubocop//lib/rubocop/cop/layout/case_indentation.rb#193 + # source://rubocop/lib/rubocop/cop/layout/case_indentation.rb#193 def base_column(case_node, base); end - # source://rubocop//lib/rubocop/cop/layout/case_indentation.rb#150 + # source://rubocop/lib/rubocop/cop/layout/case_indentation.rb#150 def check_when(when_node, branch_type); end - # source://rubocop//lib/rubocop/cop/layout/case_indentation.rb#182 + # source://rubocop/lib/rubocop/cop/layout/case_indentation.rb#182 def detect_incorrect_style(when_node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/case_indentation.rb#136 + # source://rubocop/lib/rubocop/cop/layout/case_indentation.rb#136 def end_and_last_conditional_same_line?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/case_indentation.rb#146 + # source://rubocop/lib/rubocop/cop/layout/case_indentation.rb#146 def enforced_style_end?; end - # source://rubocop//lib/rubocop/cop/layout/case_indentation.rb#169 + # source://rubocop/lib/rubocop/cop/layout/case_indentation.rb#169 def incorrect_style(when_node, branch_type); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/case_indentation.rb#161 + # source://rubocop/lib/rubocop/cop/layout/case_indentation.rb#161 def indent_one_step?; end - # source://rubocop//lib/rubocop/cop/layout/case_indentation.rb#165 + # source://rubocop/lib/rubocop/cop/layout/case_indentation.rb#165 def indentation_width; end - # source://rubocop//lib/rubocop/cop/layout/case_indentation.rb#207 + # source://rubocop/lib/rubocop/cop/layout/case_indentation.rb#207 def replacement(node); end - # source://rubocop//lib/rubocop/cop/layout/case_indentation.rb#200 + # source://rubocop/lib/rubocop/cop/layout/case_indentation.rb#200 def whitespace_range(node); end end -# source://rubocop//lib/rubocop/cop/layout/case_indentation.rb#118 +# source://rubocop/lib/rubocop/cop/layout/case_indentation.rb#118 RuboCop::Cop::Layout::CaseIndentation::MSG = T.let(T.unsafe(nil), String) # Checks if the code style follows the ExpectedOrder configuration: @@ -8142,7 +8204,7 @@ RuboCop::Cop::Layout::CaseIndentation::MSG = T.let(T.unsafe(nil), String) # end # end # -# source://rubocop//lib/rubocop/cop/layout/class_structure.rb#142 +# source://rubocop/lib/rubocop/cop/layout/class_structure.rb#142 class RuboCop::Cop::Layout::ClassStructure < ::RuboCop::Cop::Base include ::RuboCop::Cop::VisibilityHelp include ::RuboCop::Cop::CommentsHelp @@ -8151,35 +8213,35 @@ class RuboCop::Cop::Layout::ClassStructure < ::RuboCop::Cop::Base # Validates code style on class declaration. # Add offense when find a node out of expected order. # - # source://rubocop//lib/rubocop/cop/layout/class_structure.rb#158 + # source://rubocop/lib/rubocop/cop/layout/class_structure.rb#158 def on_class(class_node); end # Validates code style on class declaration. # Add offense when find a node out of expected order. # - # source://rubocop//lib/rubocop/cop/layout/class_structure.rb#158 + # source://rubocop/lib/rubocop/cop/layout/class_structure.rb#158 def on_sclass(class_node); end private # Autocorrect by swapping between two nodes autocorrecting them # - # source://rubocop//lib/rubocop/cop/layout/class_structure.rb#174 + # source://rubocop/lib/rubocop/cop/layout/class_structure.rb#174 def autocorrect(corrector, node); end - # source://rubocop//lib/rubocop/cop/layout/class_structure.rb#305 + # source://rubocop/lib/rubocop/cop/layout/class_structure.rb#305 def begin_pos_with_comment(node); end - # source://rubocop//lib/rubocop/cop/layout/class_structure.rb#328 + # source://rubocop/lib/rubocop/cop/layout/class_structure.rb#328 def buffer; end # Setting categories hash allow you to group methods in group to match # in the {expected_order}. # - # source://rubocop//lib/rubocop/cop/layout/class_structure.rb#340 + # source://rubocop/lib/rubocop/cop/layout/class_structure.rb#340 def categories; end - # source://rubocop//lib/rubocop/cop/layout/class_structure.rb#234 + # source://rubocop/lib/rubocop/cop/layout/class_structure.rb#234 def class_elements(class_node); end # Classifies a node to match with something in the {expected_order} @@ -8191,21 +8253,21 @@ class RuboCop::Cop::Layout::ClassStructure < ::RuboCop::Cop::Base # by method name # @return String otherwise trying to {humanize_node} of the current node # - # source://rubocop//lib/rubocop/cop/layout/class_structure.rb#194 + # source://rubocop/lib/rubocop/cop/layout/class_structure.rb#194 def classify(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/class_structure.rb#271 + # source://rubocop/lib/rubocop/cop/layout/class_structure.rb#271 def dynamic_constant?(node); end - # source://rubocop//lib/rubocop/cop/layout/class_structure.rb#295 + # source://rubocop/lib/rubocop/cop/layout/class_structure.rb#295 def end_position_for(node); end # Load expected order from `ExpectedOrder` config. # Define new terms in the expected order by adding new {categories}. # - # source://rubocop//lib/rubocop/cop/layout/class_structure.rb#334 + # source://rubocop/lib/rubocop/cop/layout/class_structure.rb#334 def expected_order; end # Categorize a node according to the {expected_order} @@ -8215,51 +8277,51 @@ class RuboCop::Cop::Layout::ClassStructure < ::RuboCop::Cop::Base # @param node to be analysed. # @return [String] with the key category or the `method_name` as string # - # source://rubocop//lib/rubocop/cop/layout/class_structure.rb#212 + # source://rubocop/lib/rubocop/cop/layout/class_structure.rb#212 def find_category(node); end - # source://rubocop//lib/rubocop/cop/layout/class_structure.rb#324 + # source://rubocop/lib/rubocop/cop/layout/class_structure.rb#324 def find_heredoc(node); end - # source://rubocop//lib/rubocop/cop/layout/class_structure.rb#262 + # source://rubocop/lib/rubocop/cop/layout/class_structure.rb#262 def humanize_node(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/class_structure.rb#246 + # source://rubocop/lib/rubocop/cop/layout/class_structure.rb#246 def ignore?(node, classification); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/class_structure.rb#253 + # source://rubocop/lib/rubocop/cop/layout/class_structure.rb#253 def ignore_for_autocorrect?(node, sibling); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/class_structure.rb#289 + # source://rubocop/lib/rubocop/cop/layout/class_structure.rb#289 def marked_as_private_constant?(node, name); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/class_structure.rb#279 + # source://rubocop/lib/rubocop/cop/layout/class_structure.rb#279 def private_constant?(node); end - # source://rubocop//lib/rubocop/cop/layout/class_structure.rb#320 + # source://rubocop/lib/rubocop/cop/layout/class_structure.rb#320 def start_line_position(node); end - # source://rubocop//lib/rubocop/cop/layout/class_structure.rb#225 + # source://rubocop/lib/rubocop/cop/layout/class_structure.rb#225 def walk_over_nested_class_definition(class_node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/class_structure.rb#316 + # source://rubocop/lib/rubocop/cop/layout/class_structure.rb#316 def whole_line_comment_at_line?(line); end end -# source://rubocop//lib/rubocop/cop/layout/class_structure.rb#147 +# source://rubocop/lib/rubocop/cop/layout/class_structure.rb#147 RuboCop::Cop::Layout::ClassStructure::HUMANIZED_NODE_TYPE = T.let(T.unsafe(nil), Hash) -# source://rubocop//lib/rubocop/cop/layout/class_structure.rb#154 +# source://rubocop/lib/rubocop/cop/layout/class_structure.rb#154 RuboCop::Cop::Layout::ClassStructure::MSG = T.let(T.unsafe(nil), String) # Checks the indentation of here document closings. @@ -8304,53 +8366,53 @@ RuboCop::Cop::Layout::ClassStructure::MSG = T.let(T.unsafe(nil), String) # Hi # EOS # -# source://rubocop//lib/rubocop/cop/layout/closing_heredoc_indentation.rb#48 +# source://rubocop/lib/rubocop/cop/layout/closing_heredoc_indentation.rb#48 class RuboCop::Cop::Layout::ClosingHeredocIndentation < ::RuboCop::Cop::Base include ::RuboCop::Cop::Heredoc extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/layout/closing_heredoc_indentation.rb#57 + # source://rubocop/lib/rubocop/cop/layout/closing_heredoc_indentation.rb#57 def on_heredoc(node); end private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/closing_heredoc_indentation.rb#74 + # source://rubocop/lib/rubocop/cop/layout/closing_heredoc_indentation.rb#74 def argument_indentation_correct?(node); end - # source://rubocop//lib/rubocop/cop/layout/closing_heredoc_indentation.rb#82 + # source://rubocop/lib/rubocop/cop/layout/closing_heredoc_indentation.rb#82 def closing_indentation(node); end - # source://rubocop//lib/rubocop/cop/layout/closing_heredoc_indentation.rb#101 + # source://rubocop/lib/rubocop/cop/layout/closing_heredoc_indentation.rb#101 def find_node_used_heredoc_argument(node); end - # source://rubocop//lib/rubocop/cop/layout/closing_heredoc_indentation.rb#90 + # source://rubocop/lib/rubocop/cop/layout/closing_heredoc_indentation.rb#90 def heredoc_closing(node); end - # source://rubocop//lib/rubocop/cop/layout/closing_heredoc_indentation.rb#86 + # source://rubocop/lib/rubocop/cop/layout/closing_heredoc_indentation.rb#86 def heredoc_opening(node); end - # source://rubocop//lib/rubocop/cop/layout/closing_heredoc_indentation.rb#117 + # source://rubocop/lib/rubocop/cop/layout/closing_heredoc_indentation.rb#117 def indent_level(source_line); end - # source://rubocop//lib/rubocop/cop/layout/closing_heredoc_indentation.rb#94 + # source://rubocop/lib/rubocop/cop/layout/closing_heredoc_indentation.rb#94 def indented_end(node); end - # source://rubocop//lib/rubocop/cop/layout/closing_heredoc_indentation.rb#109 + # source://rubocop/lib/rubocop/cop/layout/closing_heredoc_indentation.rb#109 def message(node); end - # source://rubocop//lib/rubocop/cop/layout/closing_heredoc_indentation.rb#70 + # source://rubocop/lib/rubocop/cop/layout/closing_heredoc_indentation.rb#70 def opening_indentation(node); end end -# source://rubocop//lib/rubocop/cop/layout/closing_heredoc_indentation.rb#53 +# source://rubocop/lib/rubocop/cop/layout/closing_heredoc_indentation.rb#53 RuboCop::Cop::Layout::ClosingHeredocIndentation::MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/layout/closing_heredoc_indentation.rb#54 +# source://rubocop/lib/rubocop/cop/layout/closing_heredoc_indentation.rb#54 RuboCop::Cop::Layout::ClosingHeredocIndentation::MSG_ARG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/layout/closing_heredoc_indentation.rb#52 +# source://rubocop/lib/rubocop/cop/layout/closing_heredoc_indentation.rb#52 RuboCop::Cop::Layout::ClosingHeredocIndentation::SIMPLE_HEREDOC = T.let(T.unsafe(nil), String) # Checks the indentation of hanging closing parentheses in @@ -8417,67 +8479,67 @@ RuboCop::Cop::Layout::ClosingHeredocIndentation::SIMPLE_HEREDOC = T.let(T.unsafe # y: 2 # ) # -# source://rubocop//lib/rubocop/cop/layout/closing_parenthesis_indentation.rb#71 +# source://rubocop/lib/rubocop/cop/layout/closing_parenthesis_indentation.rb#71 class RuboCop::Cop::Layout::ClosingParenthesisIndentation < ::RuboCop::Cop::Base include ::RuboCop::Cop::Alignment extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/layout/closing_parenthesis_indentation.rb#84 + # source://rubocop/lib/rubocop/cop/layout/closing_parenthesis_indentation.rb#84 def on_begin(node); end - # source://rubocop//lib/rubocop/cop/layout/closing_parenthesis_indentation.rb#79 + # source://rubocop/lib/rubocop/cop/layout/closing_parenthesis_indentation.rb#79 def on_csend(node); end - # source://rubocop//lib/rubocop/cop/layout/closing_parenthesis_indentation.rb#88 + # source://rubocop/lib/rubocop/cop/layout/closing_parenthesis_indentation.rb#88 def on_def(node); end - # source://rubocop//lib/rubocop/cop/layout/closing_parenthesis_indentation.rb#88 + # source://rubocop/lib/rubocop/cop/layout/closing_parenthesis_indentation.rb#88 def on_defs(node); end - # source://rubocop//lib/rubocop/cop/layout/closing_parenthesis_indentation.rb#79 + # source://rubocop/lib/rubocop/cop/layout/closing_parenthesis_indentation.rb#79 def on_send(node); end private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/closing_parenthesis_indentation.rb#157 + # source://rubocop/lib/rubocop/cop/layout/closing_parenthesis_indentation.rb#157 def all_elements_aligned?(elements); end - # source://rubocop//lib/rubocop/cop/layout/closing_parenthesis_indentation.rb#95 + # source://rubocop/lib/rubocop/cop/layout/closing_parenthesis_indentation.rb#95 def autocorrect(corrector, node); end - # source://rubocop//lib/rubocop/cop/layout/closing_parenthesis_indentation.rb#99 + # source://rubocop/lib/rubocop/cop/layout/closing_parenthesis_indentation.rb#99 def check(node, elements); end - # source://rubocop//lib/rubocop/cop/layout/closing_parenthesis_indentation.rb#107 + # source://rubocop/lib/rubocop/cop/layout/closing_parenthesis_indentation.rb#107 def check_for_elements(node, elements); end - # source://rubocop//lib/rubocop/cop/layout/closing_parenthesis_indentation.rb#125 + # source://rubocop/lib/rubocop/cop/layout/closing_parenthesis_indentation.rb#125 def check_for_no_elements(node); end - # source://rubocop//lib/rubocop/cop/layout/closing_parenthesis_indentation.rb#171 + # source://rubocop/lib/rubocop/cop/layout/closing_parenthesis_indentation.rb#171 def correct_column_candidates(node, left_paren); end - # source://rubocop//lib/rubocop/cop/layout/closing_parenthesis_indentation.rb#144 + # source://rubocop/lib/rubocop/cop/layout/closing_parenthesis_indentation.rb#144 def expected_column(left_paren, elements); end - # source://rubocop//lib/rubocop/cop/layout/closing_parenthesis_indentation.rb#167 + # source://rubocop/lib/rubocop/cop/layout/closing_parenthesis_indentation.rb#167 def first_argument_line(elements); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/closing_parenthesis_indentation.rb#187 + # source://rubocop/lib/rubocop/cop/layout/closing_parenthesis_indentation.rb#187 def line_break_after_left_paren?(left_paren, elements); end - # source://rubocop//lib/rubocop/cop/layout/closing_parenthesis_indentation.rb#179 + # source://rubocop/lib/rubocop/cop/layout/closing_parenthesis_indentation.rb#179 def message(correct_column, left_paren, right_paren); end end -# source://rubocop//lib/rubocop/cop/layout/closing_parenthesis_indentation.rb#77 +# source://rubocop/lib/rubocop/cop/layout/closing_parenthesis_indentation.rb#77 RuboCop::Cop::Layout::ClosingParenthesisIndentation::MSG_ALIGN = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/layout/closing_parenthesis_indentation.rb#75 +# source://rubocop/lib/rubocop/cop/layout/closing_parenthesis_indentation.rb#75 RuboCop::Cop::Layout::ClosingParenthesisIndentation::MSG_INDENT = T.let(T.unsafe(nil), String) # Checks the indentation of comments. @@ -8521,20 +8583,20 @@ RuboCop::Cop::Layout::ClosingParenthesisIndentation::MSG_INDENT = T.let(T.unsafe # a = 1 # A really long comment # # spanning two lines. # -# source://rubocop//lib/rubocop/cop/layout/comment_indentation.rb#48 +# source://rubocop/lib/rubocop/cop/layout/comment_indentation.rb#48 class RuboCop::Cop::Layout::CommentIndentation < ::RuboCop::Cop::Base include ::RuboCop::Cop::Alignment extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/layout/comment_indentation.rb#55 + # source://rubocop/lib/rubocop/cop/layout/comment_indentation.rb#55 def on_new_investigation; end private - # source://rubocop//lib/rubocop/cop/layout/comment_indentation.rb#61 + # source://rubocop/lib/rubocop/cop/layout/comment_indentation.rb#61 def autocorrect(corrector, comment); end - # source://rubocop//lib/rubocop/cop/layout/comment_indentation.rb#88 + # source://rubocop/lib/rubocop/cop/layout/comment_indentation.rb#88 def autocorrect_one(corrector, comment); end # Corrects all comment lines that occur immediately before the given @@ -8542,13 +8604,13 @@ class RuboCop::Cop::Layout::CommentIndentation < ::RuboCop::Cop::Base # of correcting, saving the file, parsing and inspecting again, and # then correcting one more line, and so on. # - # source://rubocop//lib/rubocop/cop/layout/comment_indentation.rb#71 + # source://rubocop/lib/rubocop/cop/layout/comment_indentation.rb#71 def autocorrect_preceding_comments(corrector, comment); end - # source://rubocop//lib/rubocop/cop/layout/comment_indentation.rb#92 + # source://rubocop/lib/rubocop/cop/layout/comment_indentation.rb#92 def check(comment, comment_index); end - # source://rubocop//lib/rubocop/cop/layout/comment_indentation.rb#145 + # source://rubocop/lib/rubocop/cop/layout/comment_indentation.rb#145 def correct_indentation(next_line); end # Returns true if: @@ -8558,37 +8620,37 @@ class RuboCop::Cop::Layout::CommentIndentation < ::RuboCop::Cop::Base # # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/comment_indentation.rb#121 + # source://rubocop/lib/rubocop/cop/layout/comment_indentation.rb#121 def correctly_aligned_with_preceding_comment?(comment_index, column); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/comment_indentation.rb#156 + # source://rubocop/lib/rubocop/cop/layout/comment_indentation.rb#156 def less_indented?(line); end - # source://rubocop//lib/rubocop/cop/layout/comment_indentation.rb#140 + # source://rubocop/lib/rubocop/cop/layout/comment_indentation.rb#140 def line_after_comment(comment); end - # source://rubocop//lib/rubocop/cop/layout/comment_indentation.rb#131 + # source://rubocop/lib/rubocop/cop/layout/comment_indentation.rb#131 def message(column, correct_comment_indentation); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/comment_indentation.rb#135 + # source://rubocop/lib/rubocop/cop/layout/comment_indentation.rb#135 def own_line_comment?(comment); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/comment_indentation.rb#82 + # source://rubocop/lib/rubocop/cop/layout/comment_indentation.rb#82 def should_correct?(preceding_comment, reference_comment); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/comment_indentation.rb#162 + # source://rubocop/lib/rubocop/cop/layout/comment_indentation.rb#162 def two_alternatives?(line); end end -# source://rubocop//lib/rubocop/cop/layout/comment_indentation.rb#52 +# source://rubocop/lib/rubocop/cop/layout/comment_indentation.rb#52 RuboCop::Cop::Layout::CommentIndentation::MSG = T.let(T.unsafe(nil), String) # Checks for conditions that are not on the same line as @@ -8607,30 +8669,30 @@ RuboCop::Cop::Layout::CommentIndentation::MSG = T.let(T.unsafe(nil), String) # do_something # end # -# source://rubocop//lib/rubocop/cop/layout/condition_position.rb#21 +# source://rubocop/lib/rubocop/cop/layout/condition_position.rb#21 class RuboCop::Cop::Layout::ConditionPosition < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/layout/condition_position.rb#27 + # source://rubocop/lib/rubocop/cop/layout/condition_position.rb#27 def on_if(node); end - # source://rubocop//lib/rubocop/cop/layout/condition_position.rb#33 + # source://rubocop/lib/rubocop/cop/layout/condition_position.rb#33 def on_until(node); end - # source://rubocop//lib/rubocop/cop/layout/condition_position.rb#33 + # source://rubocop/lib/rubocop/cop/layout/condition_position.rb#33 def on_while(node); end private - # source://rubocop//lib/rubocop/cop/layout/condition_position.rb#40 + # source://rubocop/lib/rubocop/cop/layout/condition_position.rb#40 def check(node); end - # source://rubocop//lib/rubocop/cop/layout/condition_position.rb#54 + # source://rubocop/lib/rubocop/cop/layout/condition_position.rb#54 def message(condition); end end -# source://rubocop//lib/rubocop/cop/layout/condition_position.rb#25 +# source://rubocop/lib/rubocop/cop/layout/condition_position.rb#25 RuboCop::Cop::Layout::ConditionPosition::MSG = T.let(T.unsafe(nil), String) # Checks whether the end keywords of method definitions are @@ -8663,29 +8725,29 @@ RuboCop::Cop::Layout::ConditionPosition::MSG = T.let(T.unsafe(nil), String) # private def foo # end # -# source://rubocop//lib/rubocop/cop/layout/def_end_alignment.rb#36 +# source://rubocop/lib/rubocop/cop/layout/def_end_alignment.rb#36 class RuboCop::Cop::Layout::DefEndAlignment < ::RuboCop::Cop::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle include ::RuboCop::Cop::RangeHelp include ::RuboCop::Cop::EndKeywordAlignment extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/layout/def_end_alignment.rb#43 + # source://rubocop/lib/rubocop/cop/layout/def_end_alignment.rb#43 def on_def(node); end - # source://rubocop//lib/rubocop/cop/layout/def_end_alignment.rb#43 + # source://rubocop/lib/rubocop/cop/layout/def_end_alignment.rb#43 def on_defs(node); end - # source://rubocop//lib/rubocop/cop/layout/def_end_alignment.rb#48 + # source://rubocop/lib/rubocop/cop/layout/def_end_alignment.rb#48 def on_send(node); end private - # source://rubocop//lib/rubocop/cop/layout/def_end_alignment.rb#63 + # source://rubocop/lib/rubocop/cop/layout/def_end_alignment.rb#63 def autocorrect(corrector, node); end end -# source://rubocop//lib/rubocop/cop/layout/def_end_alignment.rb#41 +# source://rubocop/lib/rubocop/cop/layout/def_end_alignment.rb#41 RuboCop::Cop::Layout::DefEndAlignment::MSG = T.let(T.unsafe(nil), String) # Checks the . position in multi-line method calls. @@ -8707,60 +8769,60 @@ RuboCop::Cop::Layout::DefEndAlignment::MSG = T.let(T.unsafe(nil), String) # something. # method # -# source://rubocop//lib/rubocop/cop/layout/dot_position.rb#25 +# source://rubocop/lib/rubocop/cop/layout/dot_position.rb#25 class RuboCop::Cop::Layout::DotPosition < ::RuboCop::Cop::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/layout/dot_position.rb#34 + # source://rubocop/lib/rubocop/cop/layout/dot_position.rb#34 def on_csend(node); end - # source://rubocop//lib/rubocop/cop/layout/dot_position.rb#34 + # source://rubocop/lib/rubocop/cop/layout/dot_position.rb#34 def on_send(node); end private - # source://rubocop//lib/rubocop/cop/layout/dot_position.rb#49 + # source://rubocop/lib/rubocop/cop/layout/dot_position.rb#49 def autocorrect(corrector, dot, node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/dot_position.rb#99 + # source://rubocop/lib/rubocop/cop/layout/dot_position.rb#99 def correct_dot_position_style?(dot_line, selector_line); end - # source://rubocop//lib/rubocop/cop/layout/dot_position.rb#126 + # source://rubocop/lib/rubocop/cop/layout/dot_position.rb#126 def end_range(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/dot_position.rb#122 + # source://rubocop/lib/rubocop/cop/layout/dot_position.rb#122 def heredoc?(node); end - # source://rubocop//lib/rubocop/cop/layout/dot_position.rb#114 + # source://rubocop/lib/rubocop/cop/layout/dot_position.rb#114 def last_heredoc_line(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/dot_position.rb#95 + # source://rubocop/lib/rubocop/cop/layout/dot_position.rb#95 def line_between?(first_line, second_line); end - # source://rubocop//lib/rubocop/cop/layout/dot_position.rb#64 + # source://rubocop/lib/rubocop/cop/layout/dot_position.rb#64 def message(dot); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/dot_position.rb#74 + # source://rubocop/lib/rubocop/cop/layout/dot_position.rb#74 def proper_dot_position?(node); end - # source://rubocop//lib/rubocop/cop/layout/dot_position.rb#106 + # source://rubocop/lib/rubocop/cop/layout/dot_position.rb#106 def receiver_end_line(node); end - # source://rubocop//lib/rubocop/cop/layout/dot_position.rb#130 + # source://rubocop/lib/rubocop/cop/layout/dot_position.rb#130 def selector_range(node); end class << self - # source://rubocop//lib/rubocop/cop/layout/dot_position.rb#30 + # source://rubocop/lib/rubocop/cop/layout/dot_position.rb#30 def autocorrect_incompatible_with; end end end @@ -8792,7 +8854,7 @@ end # code # end # -# source://rubocop//lib/rubocop/cop/layout/else_alignment.rb#32 +# source://rubocop/lib/rubocop/cop/layout/else_alignment.rb#32 class RuboCop::Cop::Layout::ElseAlignment < ::RuboCop::Cop::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle include ::RuboCop::Cop::RangeHelp @@ -8801,46 +8863,46 @@ class RuboCop::Cop::Layout::ElseAlignment < ::RuboCop::Cop::Base include ::RuboCop::Cop::CheckAssignment extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/layout/else_alignment.rb#57 + # source://rubocop/lib/rubocop/cop/layout/else_alignment.rb#57 def on_case(node); end - # source://rubocop//lib/rubocop/cop/layout/else_alignment.rb#63 + # source://rubocop/lib/rubocop/cop/layout/else_alignment.rb#63 def on_case_match(node); end - # source://rubocop//lib/rubocop/cop/layout/else_alignment.rb#40 + # source://rubocop/lib/rubocop/cop/layout/else_alignment.rb#40 def on_if(node, base = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/layout/else_alignment.rb#51 + # source://rubocop/lib/rubocop/cop/layout/else_alignment.rb#51 def on_rescue(node); end private - # source://rubocop//lib/rubocop/cop/layout/else_alignment.rb#147 + # source://rubocop/lib/rubocop/cop/layout/else_alignment.rb#147 def assignment_node(node); end - # source://rubocop//lib/rubocop/cop/layout/else_alignment.rb#71 + # source://rubocop/lib/rubocop/cop/layout/else_alignment.rb#71 def autocorrect(corrector, node); end - # source://rubocop//lib/rubocop/cop/layout/else_alignment.rb#106 + # source://rubocop/lib/rubocop/cop/layout/else_alignment.rb#106 def base_for_method_definition(node); end - # source://rubocop//lib/rubocop/cop/layout/else_alignment.rb#80 + # source://rubocop/lib/rubocop/cop/layout/else_alignment.rb#80 def base_range_of_if(node, base); end - # source://rubocop//lib/rubocop/cop/layout/else_alignment.rb#89 + # source://rubocop/lib/rubocop/cop/layout/else_alignment.rb#89 def base_range_of_rescue(node); end - # source://rubocop//lib/rubocop/cop/layout/else_alignment.rb#131 + # source://rubocop/lib/rubocop/cop/layout/else_alignment.rb#131 def check_alignment(base_range, else_range); end - # source://rubocop//lib/rubocop/cop/layout/else_alignment.rb#115 + # source://rubocop/lib/rubocop/cop/layout/else_alignment.rb#115 def check_assignment(node, rhs); end - # source://rubocop//lib/rubocop/cop/layout/else_alignment.rb#75 + # source://rubocop/lib/rubocop/cop/layout/else_alignment.rb#75 def check_nested(node, base); end end -# source://rubocop//lib/rubocop/cop/layout/else_alignment.rb#38 +# source://rubocop/lib/rubocop/cop/layout/else_alignment.rb#38 RuboCop::Cop::Layout::ElseAlignment::MSG = T.let(T.unsafe(nil), String) # Checks empty comment. @@ -8896,51 +8958,51 @@ RuboCop::Cop::Layout::ElseAlignment::MSG = T.let(T.unsafe(nil), String) # class Foo # end # -# source://rubocop//lib/rubocop/cop/layout/empty_comment.rb#63 +# source://rubocop/lib/rubocop/cop/layout/empty_comment.rb#63 class RuboCop::Cop::Layout::EmptyComment < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/layout/empty_comment.rb#69 + # source://rubocop/lib/rubocop/cop/layout/empty_comment.rb#69 def on_new_investigation; end private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/empty_comment.rb#133 + # source://rubocop/lib/rubocop/cop/layout/empty_comment.rb#133 def allow_border_comment?; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/empty_comment.rb#137 + # source://rubocop/lib/rubocop/cop/layout/empty_comment.rb#137 def allow_margin_comment?; end - # source://rubocop//lib/rubocop/cop/layout/empty_comment.rb#97 + # source://rubocop/lib/rubocop/cop/layout/empty_comment.rb#97 def autocorrect(corrector, node); end - # source://rubocop//lib/rubocop/cop/layout/empty_comment.rb#129 + # source://rubocop/lib/rubocop/cop/layout/empty_comment.rb#129 def comment_text(comment); end - # source://rubocop//lib/rubocop/cop/layout/empty_comment.rb#108 + # source://rubocop/lib/rubocop/cop/layout/empty_comment.rb#108 def concat_consecutive_comments(comments); end - # source://rubocop//lib/rubocop/cop/layout/empty_comment.rb#141 + # source://rubocop/lib/rubocop/cop/layout/empty_comment.rb#141 def current_token(comment); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/empty_comment.rb#119 + # source://rubocop/lib/rubocop/cop/layout/empty_comment.rb#119 def empty_comment_only?(comment_text); end - # source://rubocop//lib/rubocop/cop/layout/empty_comment.rb#85 + # source://rubocop/lib/rubocop/cop/layout/empty_comment.rb#85 def investigate(comments); end - # source://rubocop//lib/rubocop/cop/layout/empty_comment.rb#145 + # source://rubocop/lib/rubocop/cop/layout/empty_comment.rb#145 def previous_token(node); end end -# source://rubocop//lib/rubocop/cop/layout/empty_comment.rb#67 +# source://rubocop/lib/rubocop/cop/layout/empty_comment.rb#67 RuboCop::Cop::Layout::EmptyComment::MSG = T.let(T.unsafe(nil), String) # Enforces empty line after guard clause. @@ -8992,81 +9054,81 @@ RuboCop::Cop::Layout::EmptyComment::MSG = T.let(T.unsafe(nil), String) # end # end # -# source://rubocop//lib/rubocop/cop/layout/empty_line_after_guard_clause.rb#54 +# source://rubocop/lib/rubocop/cop/layout/empty_line_after_guard_clause.rb#54 class RuboCop::Cop::Layout::EmptyLineAfterGuardClause < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector extend ::RuboCop::PathUtil extend ::RuboCop::Cop::Util - # source://rubocop//lib/rubocop/cop/layout/empty_line_after_guard_clause.rb#63 + # source://rubocop/lib/rubocop/cop/layout/empty_line_after_guard_clause.rb#63 def on_if(node); end private - # source://rubocop//lib/rubocop/cop/layout/empty_line_after_guard_clause.rb#84 + # source://rubocop/lib/rubocop/cop/layout/empty_line_after_guard_clause.rb#84 def autocorrect(corrector, node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/empty_line_after_guard_clause.rb#106 + # source://rubocop/lib/rubocop/cop/layout/empty_line_after_guard_clause.rb#106 def contains_guard_clause?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/empty_line_after_guard_clause.rb#99 + # source://rubocop/lib/rubocop/cop/layout/empty_line_after_guard_clause.rb#99 def correct_style?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/empty_line_after_guard_clause.rb#181 + # source://rubocop/lib/rubocop/cop/layout/empty_line_after_guard_clause.rb#181 def heredoc?(node); end - # source://rubocop//lib/rubocop/cop/layout/empty_line_after_guard_clause.rb#174 + # source://rubocop/lib/rubocop/cop/layout/empty_line_after_guard_clause.rb#174 def heredoc_line(node, heredoc_node); end - # source://rubocop//lib/rubocop/cop/layout/empty_line_after_guard_clause.rb#148 + # source://rubocop/lib/rubocop/cop/layout/empty_line_after_guard_clause.rb#148 def last_heredoc_argument(node); end - # source://rubocop//lib/rubocop/cop/layout/empty_line_after_guard_clause.rb#162 + # source://rubocop/lib/rubocop/cop/layout/empty_line_after_guard_clause.rb#162 def last_heredoc_argument_node(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/empty_line_after_guard_clause.rb#199 + # source://rubocop/lib/rubocop/cop/layout/empty_line_after_guard_clause.rb#199 def multiple_statements_on_line?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/empty_line_after_guard_clause.rb#121 + # source://rubocop/lib/rubocop/cop/layout/empty_line_after_guard_clause.rb#121 def next_line_allowed_directive_comment?(line); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/empty_line_after_guard_clause.rb#117 + # source://rubocop/lib/rubocop/cop/layout/empty_line_after_guard_clause.rb#117 def next_line_empty?(line); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/empty_line_after_guard_clause.rb#110 + # source://rubocop/lib/rubocop/cop/layout/empty_line_after_guard_clause.rb#110 def next_line_empty_or_allowed_directive_comment?(line); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/empty_line_after_guard_clause.rb#127 + # source://rubocop/lib/rubocop/cop/layout/empty_line_after_guard_clause.rb#127 def next_line_rescue_or_ensure?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/empty_line_after_guard_clause.rb#141 + # source://rubocop/lib/rubocop/cop/layout/empty_line_after_guard_clause.rb#141 def next_sibling_empty_or_guard_clause?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/empty_line_after_guard_clause.rb#132 + # source://rubocop/lib/rubocop/cop/layout/empty_line_after_guard_clause.rb#132 def next_sibling_parent_empty_or_else?(node); end - # source://rubocop//lib/rubocop/cop/layout/empty_line_after_guard_clause.rb#191 + # source://rubocop/lib/rubocop/cop/layout/empty_line_after_guard_clause.rb#191 def offense_location(node); end # SimpleCov excludes code from the coverage report by wrapping it in `# :nocov:`: @@ -9074,22 +9136,22 @@ class RuboCop::Cop::Layout::EmptyLineAfterGuardClause < ::RuboCop::Cop::Base # # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/empty_line_after_guard_clause.rb#208 + # source://rubocop/lib/rubocop/cop/layout/empty_line_after_guard_clause.rb#208 def simplecov_directive_comment?(comment); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/empty_line_after_guard_clause.rb#185 + # source://rubocop/lib/rubocop/cop/layout/empty_line_after_guard_clause.rb#185 def use_heredoc_in_condition?(condition); end end -# source://rubocop//lib/rubocop/cop/layout/empty_line_after_guard_clause.rb#60 +# source://rubocop/lib/rubocop/cop/layout/empty_line_after_guard_clause.rb#60 RuboCop::Cop::Layout::EmptyLineAfterGuardClause::END_OF_HEREDOC_LINE = T.let(T.unsafe(nil), Integer) -# source://rubocop//lib/rubocop/cop/layout/empty_line_after_guard_clause.rb#59 +# source://rubocop/lib/rubocop/cop/layout/empty_line_after_guard_clause.rb#59 RuboCop::Cop::Layout::EmptyLineAfterGuardClause::MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/layout/empty_line_after_guard_clause.rb#61 +# source://rubocop/lib/rubocop/cop/layout/empty_line_after_guard_clause.rb#61 RuboCop::Cop::Layout::EmptyLineAfterGuardClause::SIMPLE_DIRECTIVE_COMMENT_PATTERN = T.let(T.unsafe(nil), Regexp) # Checks for a newline after the final magic comment. @@ -9110,17 +9172,17 @@ RuboCop::Cop::Layout::EmptyLineAfterGuardClause::SIMPLE_DIRECTIVE_COMMENT_PATTER # # Some code # end # -# source://rubocop//lib/rubocop/cop/layout/empty_line_after_magic_comment.rb#23 +# source://rubocop/lib/rubocop/cop/layout/empty_line_after_magic_comment.rb#23 class RuboCop::Cop::Layout::EmptyLineAfterMagicComment < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/layout/empty_line_after_magic_comment.rb#29 + # source://rubocop/lib/rubocop/cop/layout/empty_line_after_magic_comment.rb#29 def on_new_investigation; end private - # source://rubocop//lib/rubocop/cop/layout/empty_line_after_magic_comment.rb#61 + # source://rubocop/lib/rubocop/cop/layout/empty_line_after_magic_comment.rb#61 def comments_before_code(source); end # Find the last magic comment in the source file. @@ -9132,14 +9194,14 @@ class RuboCop::Cop::Layout::EmptyLineAfterMagicComment < ::RuboCop::Cop::Base # @return [Parser::Source::Comment] if magic comments exist before code # @return [nil] otherwise # - # source://rubocop//lib/rubocop/cop/layout/empty_line_after_magic_comment.rb#55 + # source://rubocop/lib/rubocop/cop/layout/empty_line_after_magic_comment.rb#55 def last_magic_comment(source); end - # source://rubocop//lib/rubocop/cop/layout/empty_line_after_magic_comment.rb#43 + # source://rubocop/lib/rubocop/cop/layout/empty_line_after_magic_comment.rb#43 def offending_range(last_magic_comment); end end -# source://rubocop//lib/rubocop/cop/layout/empty_line_after_magic_comment.rb#27 +# source://rubocop/lib/rubocop/cop/layout/empty_line_after_magic_comment.rb#27 RuboCop::Cop::Layout::EmptyLineAfterMagicComment::MSG = T.let(T.unsafe(nil), String) # Enforces empty line after multiline condition. @@ -9190,57 +9252,57 @@ RuboCop::Cop::Layout::EmptyLineAfterMagicComment::MSG = T.let(T.unsafe(nil), Str # handle_error # end # -# source://rubocop//lib/rubocop/cop/layout/empty_line_after_multiline_condition.rb#54 +# source://rubocop/lib/rubocop/cop/layout/empty_line_after_multiline_condition.rb#54 class RuboCop::Cop::Layout::EmptyLineAfterMultilineCondition < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/layout/empty_line_after_multiline_condition.rb#82 + # source://rubocop/lib/rubocop/cop/layout/empty_line_after_multiline_condition.rb#82 def on_case(node); end - # source://rubocop//lib/rubocop/cop/layout/empty_line_after_multiline_condition.rb#60 + # source://rubocop/lib/rubocop/cop/layout/empty_line_after_multiline_condition.rb#60 def on_if(node); end - # source://rubocop//lib/rubocop/cop/layout/empty_line_after_multiline_condition.rb#93 + # source://rubocop/lib/rubocop/cop/layout/empty_line_after_multiline_condition.rb#93 def on_rescue(node); end - # source://rubocop//lib/rubocop/cop/layout/empty_line_after_multiline_condition.rb#70 + # source://rubocop/lib/rubocop/cop/layout/empty_line_after_multiline_condition.rb#70 def on_until(node); end - # source://rubocop//lib/rubocop/cop/layout/empty_line_after_multiline_condition.rb#75 + # source://rubocop/lib/rubocop/cop/layout/empty_line_after_multiline_condition.rb#75 def on_until_post(node); end - # source://rubocop//lib/rubocop/cop/layout/empty_line_after_multiline_condition.rb#70 + # source://rubocop/lib/rubocop/cop/layout/empty_line_after_multiline_condition.rb#70 def on_while(node); end - # source://rubocop//lib/rubocop/cop/layout/empty_line_after_multiline_condition.rb#75 + # source://rubocop/lib/rubocop/cop/layout/empty_line_after_multiline_condition.rb#75 def on_while_post(node); end private - # source://rubocop//lib/rubocop/cop/layout/empty_line_after_multiline_condition.rb#127 + # source://rubocop/lib/rubocop/cop/layout/empty_line_after_multiline_condition.rb#127 def autocorrect(node); end - # source://rubocop//lib/rubocop/cop/layout/empty_line_after_multiline_condition.rb#105 + # source://rubocop/lib/rubocop/cop/layout/empty_line_after_multiline_condition.rb#105 def check_condition(condition); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/empty_line_after_multiline_condition.rb#120 + # source://rubocop/lib/rubocop/cop/layout/empty_line_after_multiline_condition.rb#120 def multiline_rescue_exceptions?(exception_nodes); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/empty_line_after_multiline_condition.rb#116 + # source://rubocop/lib/rubocop/cop/layout/empty_line_after_multiline_condition.rb#116 def multiline_when_condition?(when_node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/empty_line_after_multiline_condition.rb#112 + # source://rubocop/lib/rubocop/cop/layout/empty_line_after_multiline_condition.rb#112 def next_line_empty?(line); end end -# source://rubocop//lib/rubocop/cop/layout/empty_line_after_multiline_condition.rb#58 +# source://rubocop/lib/rubocop/cop/layout/empty_line_after_multiline_condition.rb#58 RuboCop::Cop::Layout::EmptyLineAfterMultilineCondition::MSG = T.let(T.unsafe(nil), String) # Checks whether class/module/method definitions are @@ -9338,15 +9400,15 @@ RuboCop::Cop::Layout::EmptyLineAfterMultilineCondition::MSG = T.let(T.unsafe(nil # def b # end # -# source://rubocop//lib/rubocop/cop/layout/empty_line_between_defs.rb#108 +# source://rubocop/lib/rubocop/cop/layout/empty_line_between_defs.rb#108 class RuboCop::Cop::Layout::EmptyLineBetweenDefs < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/layout/empty_line_between_defs.rb#145 + # source://rubocop/lib/rubocop/cop/layout/empty_line_between_defs.rb#145 def autocorrect(corrector, prev_def, node, count); end - # source://rubocop//lib/rubocop/cop/layout/empty_line_between_defs.rb#130 + # source://rubocop/lib/rubocop/cop/layout/empty_line_between_defs.rb#130 def check_defs(nodes); end # We operate on `begin` nodes, instead of using `OnMethodDef`, @@ -9355,100 +9417,100 @@ class RuboCop::Cop::Layout::EmptyLineBetweenDefs < ::RuboCop::Cop::Base # doing a linear scan over siblings, so we don't want to call # it on each def. # - # source://rubocop//lib/rubocop/cop/layout/empty_line_between_defs.rb#123 + # source://rubocop/lib/rubocop/cop/layout/empty_line_between_defs.rb#123 def on_begin(node); end private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/empty_line_between_defs.rb#291 + # source://rubocop/lib/rubocop/cop/layout/empty_line_between_defs.rb#291 def allowance_range?; end - # source://rubocop//lib/rubocop/cop/layout/empty_line_between_defs.rb#275 + # source://rubocop/lib/rubocop/cop/layout/empty_line_between_defs.rb#275 def autocorrect_insert_lines(corrector, newline_pos, count); end - # source://rubocop//lib/rubocop/cop/layout/empty_line_between_defs.rb#268 + # source://rubocop/lib/rubocop/cop/layout/empty_line_between_defs.rb#268 def autocorrect_remove_lines(corrector, newline_pos, count); end - # source://rubocop//lib/rubocop/cop/layout/empty_line_between_defs.rb#228 + # source://rubocop/lib/rubocop/cop/layout/empty_line_between_defs.rb#228 def blank_lines_count_between(first_def_node, second_def_node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/empty_line_between_defs.rb#172 + # source://rubocop/lib/rubocop/cop/layout/empty_line_between_defs.rb#172 def candidate?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/empty_line_between_defs.rb#192 + # source://rubocop/lib/rubocop/cop/layout/empty_line_between_defs.rb#192 def class_candidate?(node); end - # source://rubocop//lib/rubocop/cop/layout/empty_line_between_defs.rb#256 + # source://rubocop/lib/rubocop/cop/layout/empty_line_between_defs.rb#256 def def_end(node); end - # source://rubocop//lib/rubocop/cop/layout/empty_line_between_defs.rb#164 + # source://rubocop/lib/rubocop/cop/layout/empty_line_between_defs.rb#164 def def_location(correction_node); end - # source://rubocop//lib/rubocop/cop/layout/empty_line_between_defs.rb#248 + # source://rubocop/lib/rubocop/cop/layout/empty_line_between_defs.rb#248 def def_start(node); end - # source://rubocop//lib/rubocop/cop/layout/empty_line_between_defs.rb#179 + # source://rubocop/lib/rubocop/cop/layout/empty_line_between_defs.rb#179 def empty_line_between_macros; end - # source://rubocop//lib/rubocop/cop/layout/empty_line_between_defs.rb#260 + # source://rubocop/lib/rubocop/cop/layout/empty_line_between_defs.rb#260 def end_loc(node); end - # source://rubocop//lib/rubocop/cop/layout/empty_line_between_defs.rb#206 + # source://rubocop/lib/rubocop/cop/layout/empty_line_between_defs.rb#206 def expected_lines; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/empty_line_between_defs.rb#224 + # source://rubocop/lib/rubocop/cop/layout/empty_line_between_defs.rb#224 def line_count_allowed?(count); end - # source://rubocop//lib/rubocop/cop/layout/empty_line_between_defs.rb#240 + # source://rubocop/lib/rubocop/cop/layout/empty_line_between_defs.rb#240 def lines_between_defs(first_def_node, second_def_node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/empty_line_between_defs.rb#183 + # source://rubocop/lib/rubocop/cop/layout/empty_line_between_defs.rb#183 def macro_candidate?(node); end - # source://rubocop//lib/rubocop/cop/layout/empty_line_between_defs.rb#236 + # source://rubocop/lib/rubocop/cop/layout/empty_line_between_defs.rb#236 def maximum_empty_lines; end - # source://rubocop//lib/rubocop/cop/layout/empty_line_between_defs.rb#200 + # source://rubocop/lib/rubocop/cop/layout/empty_line_between_defs.rb#200 def message(node, count: T.unsafe(nil)); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/empty_line_between_defs.rb#188 + # source://rubocop/lib/rubocop/cop/layout/empty_line_between_defs.rb#188 def method_candidate?(node); end - # source://rubocop//lib/rubocop/cop/layout/empty_line_between_defs.rb#232 + # source://rubocop/lib/rubocop/cop/layout/empty_line_between_defs.rb#232 def minimum_empty_lines; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/empty_line_between_defs.rb#196 + # source://rubocop/lib/rubocop/cop/layout/empty_line_between_defs.rb#196 def module_candidate?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/empty_line_between_defs.rb#215 + # source://rubocop/lib/rubocop/cop/layout/empty_line_between_defs.rb#215 def multiple_blank_lines_groups?(first_def_node, second_def_node); end - # source://rubocop//lib/rubocop/cop/layout/empty_line_between_defs.rb#282 + # source://rubocop/lib/rubocop/cop/layout/empty_line_between_defs.rb#282 def node_type(node); end class << self - # source://rubocop//lib/rubocop/cop/layout/empty_line_between_defs.rb#114 + # source://rubocop/lib/rubocop/cop/layout/empty_line_between_defs.rb#114 def autocorrect_incompatible_with; end end end -# source://rubocop//lib/rubocop/cop/layout/empty_line_between_defs.rb#112 +# source://rubocop/lib/rubocop/cop/layout/empty_line_between_defs.rb#112 RuboCop::Cop::Layout::EmptyLineBetweenDefs::MSG = T.let(T.unsafe(nil), String) # Checks for two or more consecutive blank lines. @@ -9466,34 +9528,34 @@ RuboCop::Cop::Layout::EmptyLineBetweenDefs::MSG = T.let(T.unsafe(nil), String) # # one empty line # some_method # -# source://rubocop//lib/rubocop/cop/layout/empty_lines.rb#21 +# source://rubocop/lib/rubocop/cop/layout/empty_lines.rb#21 class RuboCop::Cop::Layout::EmptyLines < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/layout/empty_lines.rb#28 + # source://rubocop/lib/rubocop/cop/layout/empty_lines.rb#28 def on_new_investigation; end private - # source://rubocop//lib/rubocop/cop/layout/empty_lines.rb#45 + # source://rubocop/lib/rubocop/cop/layout/empty_lines.rb#45 def each_extra_empty_line(lines); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/empty_lines.rb#63 + # source://rubocop/lib/rubocop/cop/layout/empty_lines.rb#63 def exceeds_line_offset?(line_diff); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/empty_lines.rb#67 + # source://rubocop/lib/rubocop/cop/layout/empty_lines.rb#67 def previous_and_current_lines_empty?(line); end end -# source://rubocop//lib/rubocop/cop/layout/empty_lines.rb#26 +# source://rubocop/lib/rubocop/cop/layout/empty_lines.rb#26 RuboCop::Cop::Layout::EmptyLines::LINE_OFFSET = T.let(T.unsafe(nil), Integer) -# source://rubocop//lib/rubocop/cop/layout/empty_lines.rb#25 +# source://rubocop/lib/rubocop/cop/layout/empty_lines.rb#25 RuboCop::Cop::Layout::EmptyLines::MSG = T.let(T.unsafe(nil), String) # Access modifiers should be surrounded by blank lines. @@ -9532,7 +9594,7 @@ RuboCop::Cop::Layout::EmptyLines::MSG = T.let(T.unsafe(nil), String) # def baz; end # end # -# source://rubocop//lib/rubocop/cop/layout/empty_lines_around_access_modifier.rb#43 +# source://rubocop/lib/rubocop/cop/layout/empty_lines_around_access_modifier.rb#43 class RuboCop::Cop::Layout::EmptyLinesAroundAccessModifier < ::RuboCop::Cop::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle include ::RuboCop::Cop::RangeHelp @@ -9540,101 +9602,101 @@ class RuboCop::Cop::Layout::EmptyLinesAroundAccessModifier < ::RuboCop::Cop::Bas # @return [EmptyLinesAroundAccessModifier] a new instance of EmptyLinesAroundAccessModifier # - # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_access_modifier.rb#56 + # source://rubocop/lib/rubocop/cop/layout/empty_lines_around_access_modifier.rb#56 def initialize(config = T.unsafe(nil), options = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_access_modifier.rb#81 + # source://rubocop/lib/rubocop/cop/layout/empty_lines_around_access_modifier.rb#81 def on_block(node); end - # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_access_modifier.rb#62 + # source://rubocop/lib/rubocop/cop/layout/empty_lines_around_access_modifier.rb#62 def on_class(node); end - # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_access_modifier.rb#71 + # source://rubocop/lib/rubocop/cop/layout/empty_lines_around_access_modifier.rb#71 def on_module(node); end - # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_access_modifier.rb#81 + # source://rubocop/lib/rubocop/cop/layout/empty_lines_around_access_modifier.rb#81 def on_numblock(node); end - # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_access_modifier.rb#76 + # source://rubocop/lib/rubocop/cop/layout/empty_lines_around_access_modifier.rb#76 def on_sclass(node); end - # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_access_modifier.rb#87 + # source://rubocop/lib/rubocop/cop/layout/empty_lines_around_access_modifier.rb#87 def on_send(node); end private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_access_modifier.rb#115 + # source://rubocop/lib/rubocop/cop/layout/empty_lines_around_access_modifier.rb#114 def allowed_only_before_style?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_access_modifier.rb#164 + # source://rubocop/lib/rubocop/cop/layout/empty_lines_around_access_modifier.rb#163 def block_start?(line); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_access_modifier.rb#170 + # source://rubocop/lib/rubocop/cop/layout/empty_lines_around_access_modifier.rb#169 def body_end?(line); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_access_modifier.rb#158 + # source://rubocop/lib/rubocop/cop/layout/empty_lines_around_access_modifier.rb#157 def class_def?(line); end - # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_access_modifier.rb#124 + # source://rubocop/lib/rubocop/cop/layout/empty_lines_around_access_modifier.rb#123 def correct_next_line_if_denied_style(corrector, node, line); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_access_modifier.rb#154 + # source://rubocop/lib/rubocop/cop/layout/empty_lines_around_access_modifier.rb#153 def empty_lines_around?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_access_modifier.rb#104 + # source://rubocop/lib/rubocop/cop/layout/empty_lines_around_access_modifier.rb#103 def expected_empty_lines?(node); end - # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_access_modifier.rb#180 + # source://rubocop/lib/rubocop/cop/layout/empty_lines_around_access_modifier.rb#179 def message(node); end - # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_access_modifier.rb#189 + # source://rubocop/lib/rubocop/cop/layout/empty_lines_around_access_modifier.rb#188 def message_for_around_style(node); end - # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_access_modifier.rb#199 + # source://rubocop/lib/rubocop/cop/layout/empty_lines_around_access_modifier.rb#198 def message_for_only_before_style(node); end - # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_access_modifier.rb#176 + # source://rubocop/lib/rubocop/cop/layout/empty_lines_around_access_modifier.rb#175 def next_empty_line_range(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_access_modifier.rb#148 + # source://rubocop/lib/rubocop/cop/layout/empty_lines_around_access_modifier.rb#147 def next_line_empty?(last_send_line); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_access_modifier.rb#141 + # source://rubocop/lib/rubocop/cop/layout/empty_lines_around_access_modifier.rb#140 def previous_line_empty?(send_line); end - # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_access_modifier.rb#137 + # source://rubocop/lib/rubocop/cop/layout/empty_lines_around_access_modifier.rb#136 def previous_line_ignoring_comments(processed_source, send_line); end end -# source://rubocop//lib/rubocop/cop/layout/empty_lines_around_access_modifier.rb#48 +# source://rubocop/lib/rubocop/cop/layout/empty_lines_around_access_modifier.rb#48 RuboCop::Cop::Layout::EmptyLinesAroundAccessModifier::MSG_AFTER = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/layout/empty_lines_around_access_modifier.rb#52 +# source://rubocop/lib/rubocop/cop/layout/empty_lines_around_access_modifier.rb#52 RuboCop::Cop::Layout::EmptyLinesAroundAccessModifier::MSG_AFTER_FOR_ONLY_BEFORE = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/layout/empty_lines_around_access_modifier.rb#49 +# source://rubocop/lib/rubocop/cop/layout/empty_lines_around_access_modifier.rb#49 RuboCop::Cop::Layout::EmptyLinesAroundAccessModifier::MSG_BEFORE_AND_AFTER = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/layout/empty_lines_around_access_modifier.rb#51 +# source://rubocop/lib/rubocop/cop/layout/empty_lines_around_access_modifier.rb#51 RuboCop::Cop::Layout::EmptyLinesAroundAccessModifier::MSG_BEFORE_FOR_ONLY_BEFORE = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/layout/empty_lines_around_access_modifier.rb#54 +# source://rubocop/lib/rubocop/cop/layout/empty_lines_around_access_modifier.rb#54 RuboCop::Cop::Layout::EmptyLinesAroundAccessModifier::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Checks if empty lines exist around the arguments @@ -9672,44 +9734,44 @@ RuboCop::Cop::Layout::EmptyLinesAroundAccessModifier::RESTRICT_ON_SEND = T.let(T # x: y # ) # -# source://rubocop//lib/rubocop/cop/layout/empty_lines_around_arguments.rb#41 +# source://rubocop/lib/rubocop/cop/layout/empty_lines_around_arguments.rb#41 class RuboCop::Cop::Layout::EmptyLinesAroundArguments < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_arguments.rb#47 + # source://rubocop/lib/rubocop/cop/layout/empty_lines_around_arguments.rb#47 def on_csend(node); end - # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_arguments.rb#47 + # source://rubocop/lib/rubocop/cop/layout/empty_lines_around_arguments.rb#47 def on_send(node); end private - # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_arguments.rb#65 + # source://rubocop/lib/rubocop/cop/layout/empty_lines_around_arguments.rb#65 def empty_lines(node); end - # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_arguments.rb#71 + # source://rubocop/lib/rubocop/cop/layout/empty_lines_around_arguments.rb#71 def extra_lines(node); end - # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_arguments.rb#93 + # source://rubocop/lib/rubocop/cop/layout/empty_lines_around_arguments.rb#93 def inner_lines(node); end - # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_arguments.rb#84 + # source://rubocop/lib/rubocop/cop/layout/empty_lines_around_arguments.rb#84 def line_numbers(node); end - # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_arguments.rb#97 + # source://rubocop/lib/rubocop/cop/layout/empty_lines_around_arguments.rb#97 def outer_lines(node); end - # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_arguments.rb#78 + # source://rubocop/lib/rubocop/cop/layout/empty_lines_around_arguments.rb#78 def processed_lines(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_arguments.rb#61 + # source://rubocop/lib/rubocop/cop/layout/empty_lines_around_arguments.rb#61 def receiver_and_method_call_on_different_lines?(node); end end -# source://rubocop//lib/rubocop/cop/layout/empty_lines_around_arguments.rb#45 +# source://rubocop/lib/rubocop/cop/layout/empty_lines_around_arguments.rb#45 RuboCop::Cop::Layout::EmptyLinesAroundArguments::MSG = T.let(T.unsafe(nil), String) # Checks for a newline after an attribute accessor or a group of them. @@ -9766,60 +9828,60 @@ RuboCop::Cop::Layout::EmptyLinesAroundArguments::MSG = T.let(T.unsafe(nil), Stri # def do_something # end # -# source://rubocop//lib/rubocop/cop/layout/empty_lines_around_attribute_accessor.rb#63 +# source://rubocop/lib/rubocop/cop/layout/empty_lines_around_attribute_accessor.rb#63 class RuboCop::Cop::Layout::EmptyLinesAroundAttributeAccessor < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp include ::RuboCop::Cop::AllowedMethods extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_attribute_accessor.rb#70 + # source://rubocop/lib/rubocop/cop/layout/empty_lines_around_attribute_accessor.rb#70 def on_send(node); end private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_attribute_accessor.rb#123 + # source://rubocop/lib/rubocop/cop/layout/empty_lines_around_attribute_accessor.rb#123 def allow_alias?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_attribute_accessor.rb#133 + # source://rubocop/lib/rubocop/cop/layout/empty_lines_around_attribute_accessor.rb#133 def allow_alias_syntax?; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_attribute_accessor.rb#127 + # source://rubocop/lib/rubocop/cop/layout/empty_lines_around_attribute_accessor.rb#127 def attribute_or_allowed_method?(node); end - # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_attribute_accessor.rb#83 + # source://rubocop/lib/rubocop/cop/layout/empty_lines_around_attribute_accessor.rb#83 def autocorrect(corrector, node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_attribute_accessor.rb#107 + # source://rubocop/lib/rubocop/cop/layout/empty_lines_around_attribute_accessor.rb#107 def next_line_empty?(line); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_attribute_accessor.rb#94 + # source://rubocop/lib/rubocop/cop/layout/empty_lines_around_attribute_accessor.rb#94 def next_line_empty_or_enable_directive_comment?(line); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_attribute_accessor.rb#101 + # source://rubocop/lib/rubocop/cop/layout/empty_lines_around_attribute_accessor.rb#101 def next_line_enable_directive_comment?(line); end - # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_attribute_accessor.rb#117 + # source://rubocop/lib/rubocop/cop/layout/empty_lines_around_attribute_accessor.rb#117 def next_line_node(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_attribute_accessor.rb#111 + # source://rubocop/lib/rubocop/cop/layout/empty_lines_around_attribute_accessor.rb#111 def require_empty_line?(node); end end -# source://rubocop//lib/rubocop/cop/layout/empty_lines_around_attribute_accessor.rb#68 +# source://rubocop/lib/rubocop/cop/layout/empty_lines_around_attribute_accessor.rb#68 RuboCop::Cop::Layout::EmptyLinesAroundAttributeAccessor::MSG = T.let(T.unsafe(nil), String) # Checks if empty lines exist around the bodies of begin-end @@ -9827,37 +9889,35 @@ RuboCop::Cop::Layout::EmptyLinesAroundAttributeAccessor::MSG = T.let(T.unsafe(ni # # @example # -# # good -# +# # bad # begin +# # # ... -# end # -# # bad +# end # +# # good # begin -# # # ... -# # end # -# source://rubocop//lib/rubocop/cop/layout/empty_lines_around_begin_body.rb#24 +# source://rubocop/lib/rubocop/cop/layout/empty_lines_around_begin_body.rb#23 class RuboCop::Cop::Layout::EmptyLinesAroundBeginBody < ::RuboCop::Cop::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle include ::RuboCop::Cop::RangeHelp include ::RuboCop::Cop::Layout::EmptyLinesAroundBody extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_begin_body.rb#30 + # source://rubocop/lib/rubocop/cop/layout/empty_lines_around_begin_body.rb#29 def on_kwbegin(node); end private - # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_begin_body.rb#36 + # source://rubocop/lib/rubocop/cop/layout/empty_lines_around_begin_body.rb#35 def style; end end -# source://rubocop//lib/rubocop/cop/layout/empty_lines_around_begin_body.rb#28 +# source://rubocop/lib/rubocop/cop/layout/empty_lines_around_begin_body.rb#27 RuboCop::Cop::Layout::EmptyLinesAroundBeginBody::KIND = T.let(T.unsafe(nil), String) # Checks if empty lines around the bodies of blocks match @@ -9878,102 +9938,102 @@ RuboCop::Cop::Layout::EmptyLinesAroundBeginBody::KIND = T.let(T.unsafe(nil), Str # # end # -# source://rubocop//lib/rubocop/cop/layout/empty_lines_around_block_body.rb#24 +# source://rubocop/lib/rubocop/cop/layout/empty_lines_around_block_body.rb#24 class RuboCop::Cop::Layout::EmptyLinesAroundBlockBody < ::RuboCop::Cop::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle include ::RuboCop::Cop::RangeHelp include ::RuboCop::Cop::Layout::EmptyLinesAroundBody extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_block_body.rb#30 + # source://rubocop/lib/rubocop/cop/layout/empty_lines_around_block_body.rb#30 def on_block(node); end - # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_block_body.rb#30 + # source://rubocop/lib/rubocop/cop/layout/empty_lines_around_block_body.rb#30 def on_numblock(node); end end -# source://rubocop//lib/rubocop/cop/layout/empty_lines_around_block_body.rb#28 +# source://rubocop/lib/rubocop/cop/layout/empty_lines_around_block_body.rb#28 RuboCop::Cop::Layout::EmptyLinesAroundBlockBody::KIND = T.let(T.unsafe(nil), String) # Common functionality for checking if presence/absence of empty lines # around some kind of body matches the configuration. # -# source://rubocop//lib/rubocop/cop/mixin/empty_lines_around_body.rb#8 +# source://rubocop/lib/rubocop/cop/mixin/empty_lines_around_body.rb#8 module RuboCop::Cop::Layout::EmptyLinesAroundBody include ::RuboCop::Cop::ConfigurableEnforcedStyle include ::RuboCop::Cop::RangeHelp extend ::RuboCop::AST::NodePattern::Macros - # source://rubocop//lib/rubocop/cop/mixin/empty_lines_around_body.rb#20 + # source://rubocop/lib/rubocop/cop/mixin/empty_lines_around_body.rb#20 def constant_definition?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/mixin/empty_lines_around_body.rb#23 + # source://rubocop/lib/rubocop/cop/mixin/empty_lines_around_body.rb#23 def empty_line_required?(param0 = T.unsafe(nil)); end private - # source://rubocop//lib/rubocop/cop/mixin/empty_lines_around_body.rb#26 + # source://rubocop/lib/rubocop/cop/mixin/empty_lines_around_body.rb#26 def check(node, body, adjusted_first_line: T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/mixin/empty_lines_around_body.rb#81 + # source://rubocop/lib/rubocop/cop/mixin/empty_lines_around_body.rb#81 def check_beginning(style, first_line); end - # source://rubocop//lib/rubocop/cop/mixin/empty_lines_around_body.rb#67 + # source://rubocop/lib/rubocop/cop/mixin/empty_lines_around_body.rb#67 def check_both(style, first_line, last_line); end - # source://rubocop//lib/rubocop/cop/mixin/empty_lines_around_body.rb#108 + # source://rubocop/lib/rubocop/cop/mixin/empty_lines_around_body.rb#108 def check_deferred_empty_line(body); end - # source://rubocop//lib/rubocop/cop/mixin/empty_lines_around_body.rb#43 + # source://rubocop/lib/rubocop/cop/mixin/empty_lines_around_body.rb#43 def check_empty_lines_except_namespace(body, first_line, last_line); end - # source://rubocop//lib/rubocop/cop/mixin/empty_lines_around_body.rb#51 + # source://rubocop/lib/rubocop/cop/mixin/empty_lines_around_body.rb#51 def check_empty_lines_special(body, first_line, last_line); end - # source://rubocop//lib/rubocop/cop/mixin/empty_lines_around_body.rb#85 + # source://rubocop/lib/rubocop/cop/mixin/empty_lines_around_body.rb#85 def check_ending(style, last_line); end - # source://rubocop//lib/rubocop/cop/mixin/empty_lines_around_body.rb#98 + # source://rubocop/lib/rubocop/cop/mixin/empty_lines_around_body.rb#98 def check_line(style, line, msg); end - # source://rubocop//lib/rubocop/cop/mixin/empty_lines_around_body.rb#89 + # source://rubocop/lib/rubocop/cop/mixin/empty_lines_around_body.rb#89 def check_source(style, line_no, desc); end - # source://rubocop//lib/rubocop/cop/mixin/empty_lines_around_body.rb#159 + # source://rubocop/lib/rubocop/cop/mixin/empty_lines_around_body.rb#159 def deferred_message(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/mixin/empty_lines_around_body.rb#132 + # source://rubocop/lib/rubocop/cop/mixin/empty_lines_around_body.rb#132 def first_child_requires_empty_line?(body); end - # source://rubocop//lib/rubocop/cop/mixin/empty_lines_around_body.rb#140 + # source://rubocop/lib/rubocop/cop/mixin/empty_lines_around_body.rb#140 def first_empty_line_required_child(body); end - # source://rubocop//lib/rubocop/cop/mixin/empty_lines_around_body.rb#155 + # source://rubocop/lib/rubocop/cop/mixin/empty_lines_around_body.rb#155 def message(type, desc); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/mixin/empty_lines_around_body.rb#122 + # source://rubocop/lib/rubocop/cop/mixin/empty_lines_around_body.rb#122 def namespace?(body, with_one_child: T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/mixin/empty_lines_around_body.rb#148 + # source://rubocop/lib/rubocop/cop/mixin/empty_lines_around_body.rb#148 def previous_line_ignoring_comments(send_line); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/mixin/empty_lines_around_body.rb#163 + # source://rubocop/lib/rubocop/cop/mixin/empty_lines_around_body.rb#163 def valid_body_style?(body); end end -# source://rubocop//lib/rubocop/cop/mixin/empty_lines_around_body.rb#15 +# source://rubocop/lib/rubocop/cop/mixin/empty_lines_around_body.rb#15 RuboCop::Cop::Layout::EmptyLinesAroundBody::MSG_DEFERRED = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/mixin/empty_lines_around_body.rb#13 +# source://rubocop/lib/rubocop/cop/mixin/empty_lines_around_body.rb#13 RuboCop::Cop::Layout::EmptyLinesAroundBody::MSG_EXTRA = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/mixin/empty_lines_around_body.rb#14 +# source://rubocop/lib/rubocop/cop/mixin/empty_lines_around_body.rb#14 RuboCop::Cop::Layout::EmptyLinesAroundBody::MSG_MISSING = T.let(T.unsafe(nil), String) # Checks if empty lines around the bodies of classes match @@ -10033,21 +10093,21 @@ RuboCop::Cop::Layout::EmptyLinesAroundBody::MSG_MISSING = T.let(T.unsafe(nil), S # # end # -# source://rubocop//lib/rubocop/cop/layout/empty_lines_around_class_body.rb#67 +# source://rubocop/lib/rubocop/cop/layout/empty_lines_around_class_body.rb#67 class RuboCop::Cop::Layout::EmptyLinesAroundClassBody < ::RuboCop::Cop::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle include ::RuboCop::Cop::RangeHelp include ::RuboCop::Cop::Layout::EmptyLinesAroundBody extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_class_body.rb#73 + # source://rubocop/lib/rubocop/cop/layout/empty_lines_around_class_body.rb#73 def on_class(node); end - # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_class_body.rb#79 + # source://rubocop/lib/rubocop/cop/layout/empty_lines_around_class_body.rb#79 def on_sclass(node); end end -# source://rubocop//lib/rubocop/cop/layout/empty_lines_around_class_body.rb#71 +# source://rubocop/lib/rubocop/cop/layout/empty_lines_around_class_body.rb#71 RuboCop::Cop::Layout::EmptyLinesAroundClassBody::KIND = T.let(T.unsafe(nil), String) # Checks if empty lines exist around the bodies of `begin` @@ -10106,55 +10166,55 @@ RuboCop::Cop::Layout::EmptyLinesAroundClassBody::KIND = T.let(T.unsafe(nil), Str # do_something2 # end # -# source://rubocop//lib/rubocop/cop/layout/empty_lines_around_exception_handling_keywords.rb#61 +# source://rubocop/lib/rubocop/cop/layout/empty_lines_around_exception_handling_keywords.rb#61 class RuboCop::Cop::Layout::EmptyLinesAroundExceptionHandlingKeywords < ::RuboCop::Cop::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle include ::RuboCop::Cop::RangeHelp include ::RuboCop::Cop::Layout::EmptyLinesAroundBody extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_exception_handling_keywords.rb#67 + # source://rubocop/lib/rubocop/cop/layout/empty_lines_around_exception_handling_keywords.rb#67 def on_block(node); end - # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_exception_handling_keywords.rb#67 + # source://rubocop/lib/rubocop/cop/layout/empty_lines_around_exception_handling_keywords.rb#67 def on_def(node); end - # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_exception_handling_keywords.rb#67 + # source://rubocop/lib/rubocop/cop/layout/empty_lines_around_exception_handling_keywords.rb#67 def on_defs(node); end - # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_exception_handling_keywords.rb#74 + # source://rubocop/lib/rubocop/cop/layout/empty_lines_around_exception_handling_keywords.rb#74 def on_kwbegin(node); end - # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_exception_handling_keywords.rb#67 + # source://rubocop/lib/rubocop/cop/layout/empty_lines_around_exception_handling_keywords.rb#67 def on_numblock(node); end private - # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_exception_handling_keywords.rb#81 + # source://rubocop/lib/rubocop/cop/layout/empty_lines_around_exception_handling_keywords.rb#80 def check_body(body, line_of_def_or_kwbegin); end - # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_exception_handling_keywords.rb#113 + # source://rubocop/lib/rubocop/cop/layout/empty_lines_around_exception_handling_keywords.rb#112 def keyword_locations(node); end - # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_exception_handling_keywords.rb#130 + # source://rubocop/lib/rubocop/cop/layout/empty_lines_around_exception_handling_keywords.rb#129 def keyword_locations_in_ensure(node); end - # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_exception_handling_keywords.rb#126 + # source://rubocop/lib/rubocop/cop/layout/empty_lines_around_exception_handling_keywords.rb#125 def keyword_locations_in_rescue(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_exception_handling_keywords.rb#96 + # source://rubocop/lib/rubocop/cop/layout/empty_lines_around_exception_handling_keywords.rb#95 def last_body_and_end_on_same_line?(body); end - # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_exception_handling_keywords.rb#105 + # source://rubocop/lib/rubocop/cop/layout/empty_lines_around_exception_handling_keywords.rb#104 def message(location, keyword); end - # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_exception_handling_keywords.rb#109 + # source://rubocop/lib/rubocop/cop/layout/empty_lines_around_exception_handling_keywords.rb#108 def style; end end -# source://rubocop//lib/rubocop/cop/layout/empty_lines_around_exception_handling_keywords.rb#65 +# source://rubocop/lib/rubocop/cop/layout/empty_lines_around_exception_handling_keywords.rb#65 RuboCop::Cop::Layout::EmptyLinesAroundExceptionHandlingKeywords::MSG = T.let(T.unsafe(nil), String) # Checks if empty lines exist around the bodies of methods. @@ -10175,26 +10235,26 @@ RuboCop::Cop::Layout::EmptyLinesAroundExceptionHandlingKeywords::MSG = T.let(T.u # # end # -# source://rubocop//lib/rubocop/cop/layout/empty_lines_around_method_body.rb#23 +# source://rubocop/lib/rubocop/cop/layout/empty_lines_around_method_body.rb#23 class RuboCop::Cop::Layout::EmptyLinesAroundMethodBody < ::RuboCop::Cop::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle include ::RuboCop::Cop::RangeHelp include ::RuboCop::Cop::Layout::EmptyLinesAroundBody extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_method_body.rb#29 + # source://rubocop/lib/rubocop/cop/layout/empty_lines_around_method_body.rb#29 def on_def(node); end - # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_method_body.rb#29 + # source://rubocop/lib/rubocop/cop/layout/empty_lines_around_method_body.rb#29 def on_defs(node); end private - # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_method_body.rb#36 + # source://rubocop/lib/rubocop/cop/layout/empty_lines_around_method_body.rb#38 def style; end end -# source://rubocop//lib/rubocop/cop/layout/empty_lines_around_method_body.rb#27 +# source://rubocop/lib/rubocop/cop/layout/empty_lines_around_method_body.rb#27 RuboCop::Cop::Layout::EmptyLinesAroundMethodBody::KIND = T.let(T.unsafe(nil), String) # Checks if empty lines around the bodies of modules match @@ -10236,18 +10296,18 @@ RuboCop::Cop::Layout::EmptyLinesAroundMethodBody::KIND = T.let(T.unsafe(nil), St # # end # -# source://rubocop//lib/rubocop/cop/layout/empty_lines_around_module_body.rb#47 +# source://rubocop/lib/rubocop/cop/layout/empty_lines_around_module_body.rb#47 class RuboCop::Cop::Layout::EmptyLinesAroundModuleBody < ::RuboCop::Cop::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle include ::RuboCop::Cop::RangeHelp include ::RuboCop::Cop::Layout::EmptyLinesAroundBody extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_module_body.rb#53 + # source://rubocop/lib/rubocop/cop/layout/empty_lines_around_module_body.rb#53 def on_module(node); end end -# source://rubocop//lib/rubocop/cop/layout/empty_lines_around_module_body.rb#51 +# source://rubocop/lib/rubocop/cop/layout/empty_lines_around_module_body.rb#51 RuboCop::Cop::Layout::EmptyLinesAroundModuleBody::KIND = T.let(T.unsafe(nil), String) # Checks whether the end keywords are aligned properly. @@ -10320,7 +10380,7 @@ RuboCop::Cop::Layout::EmptyLinesAroundModuleBody::KIND = T.let(T.unsafe(nil), St # if true # end # -# source://rubocop//lib/rubocop/cop/layout/end_alignment.rb#77 +# source://rubocop/lib/rubocop/cop/layout/end_alignment.rb#77 class RuboCop::Cop::Layout::EndAlignment < ::RuboCop::Cop::Base include ::RuboCop::Cop::CheckAssignment include ::RuboCop::Cop::ConfigurableEnforcedStyle @@ -10328,54 +10388,54 @@ class RuboCop::Cop::Layout::EndAlignment < ::RuboCop::Cop::Base include ::RuboCop::Cop::EndKeywordAlignment extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/layout/end_alignment.rb#111 + # source://rubocop/lib/rubocop/cop/layout/end_alignment.rb#111 def on_case(node); end - # source://rubocop//lib/rubocop/cop/layout/end_alignment.rb#111 + # source://rubocop/lib/rubocop/cop/layout/end_alignment.rb#111 def on_case_match(node); end - # source://rubocop//lib/rubocop/cop/layout/end_alignment.rb#83 + # source://rubocop/lib/rubocop/cop/layout/end_alignment.rb#83 def on_class(node); end - # source://rubocop//lib/rubocop/cop/layout/end_alignment.rb#99 + # source://rubocop/lib/rubocop/cop/layout/end_alignment.rb#99 def on_if(node); end - # source://rubocop//lib/rubocop/cop/layout/end_alignment.rb#95 + # source://rubocop/lib/rubocop/cop/layout/end_alignment.rb#95 def on_module(node); end - # source://rubocop//lib/rubocop/cop/layout/end_alignment.rb#87 + # source://rubocop/lib/rubocop/cop/layout/end_alignment.rb#87 def on_sclass(node); end - # source://rubocop//lib/rubocop/cop/layout/end_alignment.rb#107 + # source://rubocop/lib/rubocop/cop/layout/end_alignment.rb#107 def on_until(node); end - # source://rubocop//lib/rubocop/cop/layout/end_alignment.rb#103 + # source://rubocop/lib/rubocop/cop/layout/end_alignment.rb#103 def on_while(node); end private - # source://rubocop//lib/rubocop/cop/layout/end_alignment.rb#167 + # source://rubocop/lib/rubocop/cop/layout/end_alignment.rb#167 def alignment_node(node); end - # source://rubocop//lib/rubocop/cop/layout/end_alignment.rb#184 + # source://rubocop/lib/rubocop/cop/layout/end_alignment.rb#184 def alignment_node_for_variable_style(node); end - # source://rubocop//lib/rubocop/cop/layout/end_alignment.rb#148 + # source://rubocop/lib/rubocop/cop/layout/end_alignment.rb#148 def asgn_variable_align_with(outer_node, inner_node); end - # source://rubocop//lib/rubocop/cop/layout/end_alignment.rb#202 + # source://rubocop/lib/rubocop/cop/layout/end_alignment.rb#202 def assignment_or_operator_method(node); end - # source://rubocop//lib/rubocop/cop/layout/end_alignment.rb#122 + # source://rubocop/lib/rubocop/cop/layout/end_alignment.rb#122 def autocorrect(corrector, node); end - # source://rubocop//lib/rubocop/cop/layout/end_alignment.rb#137 + # source://rubocop/lib/rubocop/cop/layout/end_alignment.rb#137 def check_asgn_alignment(outer_node, inner_node); end - # source://rubocop//lib/rubocop/cop/layout/end_alignment.rb#126 + # source://rubocop/lib/rubocop/cop/layout/end_alignment.rb#126 def check_assignment(node, rhs); end - # source://rubocop//lib/rubocop/cop/layout/end_alignment.rb#158 + # source://rubocop/lib/rubocop/cop/layout/end_alignment.rb#158 def check_other_alignment(node); end end @@ -10411,34 +10471,34 @@ end # # good # puts 'Hello' # Return character is CR+LF on all platforms. # -# source://rubocop//lib/rubocop/cop/layout/end_of_line.rb#40 +# source://rubocop/lib/rubocop/cop/layout/end_of_line.rb#40 class RuboCop::Cop::Layout::EndOfLine < ::RuboCop::Cop::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle include ::RuboCop::Cop::RangeHelp - # source://rubocop//lib/rubocop/cop/layout/end_of_line.rb#71 + # source://rubocop/lib/rubocop/cop/layout/end_of_line.rb#71 def offense_message(line); end - # source://rubocop//lib/rubocop/cop/layout/end_of_line.rb#47 + # source://rubocop/lib/rubocop/cop/layout/end_of_line.rb#47 def on_new_investigation; end # If there is no LF on the last line, we don't care if there's no CR. # # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/end_of_line.rb#67 + # source://rubocop/lib/rubocop/cop/layout/end_of_line.rb#67 def unimportant_missing_cr?(index, last_line, line); end private - # source://rubocop//lib/rubocop/cop/layout/end_of_line.rb#85 + # source://rubocop/lib/rubocop/cop/layout/end_of_line.rb#85 def last_line(processed_source); end end -# source://rubocop//lib/rubocop/cop/layout/end_of_line.rb#44 +# source://rubocop/lib/rubocop/cop/layout/end_of_line.rb#44 RuboCop::Cop::Layout::EndOfLine::MSG_DETECTED = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/layout/end_of_line.rb#45 +# source://rubocop/lib/rubocop/cop/layout/end_of_line.rb#45 RuboCop::Cop::Layout::EndOfLine::MSG_MISSING = T.let(T.unsafe(nil), String) # Checks for extra/unnecessary whitespace. @@ -10467,78 +10527,78 @@ RuboCop::Cop::Layout::EndOfLine::MSG_MISSING = T.let(T.unsafe(nil), String) # another_object.method(arg) # this is another comment # some_object.method(arg) # this is some comment # -# source://rubocop//lib/rubocop/cop/layout/extra_spacing.rb#31 +# source://rubocop/lib/rubocop/cop/layout/extra_spacing.rb#31 class RuboCop::Cop::Layout::ExtraSpacing < ::RuboCop::Cop::Base include ::RuboCop::Cop::PrecedingFollowingAlignment include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/layout/extra_spacing.rb#39 + # source://rubocop/lib/rubocop/cop/layout/extra_spacing.rb#39 def on_new_investigation; end private - # source://rubocop//lib/rubocop/cop/layout/extra_spacing.rb#170 + # source://rubocop/lib/rubocop/cop/layout/extra_spacing.rb#170 def align_column(asgn_token); end - # source://rubocop//lib/rubocop/cop/layout/extra_spacing.rb#147 + # source://rubocop/lib/rubocop/cop/layout/extra_spacing.rb#147 def align_equal_sign(corrector, token, align_to); end - # source://rubocop//lib/rubocop/cop/layout/extra_spacing.rb#137 + # source://rubocop/lib/rubocop/cop/layout/extra_spacing.rb#137 def align_equal_signs(range, corrector); end - # source://rubocop//lib/rubocop/cop/layout/extra_spacing.rb#52 + # source://rubocop/lib/rubocop/cop/layout/extra_spacing.rb#52 def aligned_locations(locs); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/extra_spacing.rb#103 + # source://rubocop/lib/rubocop/cop/layout/extra_spacing.rb#103 def aligned_tok?(token); end - # source://rubocop//lib/rubocop/cop/layout/extra_spacing.rb#159 + # source://rubocop/lib/rubocop/cop/layout/extra_spacing.rb#159 def all_relevant_assignment_lines(line_number); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/extra_spacing.rb#179 + # source://rubocop/lib/rubocop/cop/layout/extra_spacing.rb#179 def allow_for_trailing_comments?; end - # source://rubocop//lib/rubocop/cop/layout/extra_spacing.rb#72 + # source://rubocop/lib/rubocop/cop/layout/extra_spacing.rb#72 def check_assignment(token); end - # source://rubocop//lib/rubocop/cop/layout/extra_spacing.rb#81 + # source://rubocop/lib/rubocop/cop/layout/extra_spacing.rb#81 def check_other(token1, token2, ast); end - # source://rubocop//lib/rubocop/cop/layout/extra_spacing.rb#62 + # source://rubocop/lib/rubocop/cop/layout/extra_spacing.rb#62 def check_tokens(ast, token1, token2); end # @yield [range_between(start_pos, end_pos)] # - # source://rubocop//lib/rubocop/cop/layout/extra_spacing.rb#91 + # source://rubocop/lib/rubocop/cop/layout/extra_spacing.rb#91 def extra_space_range(token1, token2); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/extra_spacing.rb#133 + # source://rubocop/lib/rubocop/cop/layout/extra_spacing.rb#133 def force_equal_sign_alignment?; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/extra_spacing.rb#111 + # source://rubocop/lib/rubocop/cop/layout/extra_spacing.rb#111 def ignored_range?(ast, start_pos); end # Returns an array of ranges that should not be reported. It's the # extra spaces between the keys and values in a multiline hash, # since those are handled by the Layout/HashAlignment cop. # - # source://rubocop//lib/rubocop/cop/layout/extra_spacing.rb#118 + # source://rubocop/lib/rubocop/cop/layout/extra_spacing.rb#118 def ignored_ranges(ast); end end -# source://rubocop//lib/rubocop/cop/layout/extra_spacing.rb#37 +# source://rubocop/lib/rubocop/cop/layout/extra_spacing.rb#37 RuboCop::Cop::Layout::ExtraSpacing::MSG_UNALIGNED_ASGN = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/layout/extra_spacing.rb#36 +# source://rubocop/lib/rubocop/cop/layout/extra_spacing.rb#36 RuboCop::Cop::Layout::ExtraSpacing::MSG_UNNECESSARY = T.let(T.unsafe(nil), String) # Checks the indentation of the first argument in a method call. @@ -10678,88 +10738,88 @@ RuboCop::Cop::Layout::ExtraSpacing::MSG_UNNECESSARY = T.let(T.unsafe(nil), Strin # nested_first_param), # second_param # -# source://rubocop//lib/rubocop/cop/layout/first_argument_indentation.rb#147 +# source://rubocop/lib/rubocop/cop/layout/first_argument_indentation.rb#147 class RuboCop::Cop::Layout::FirstArgumentIndentation < ::RuboCop::Cop::Base include ::RuboCop::Cop::Alignment include ::RuboCop::Cop::ConfigurableEnforcedStyle include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/layout/first_argument_indentation.rb#222 + # source://rubocop/lib/rubocop/cop/layout/first_argument_indentation.rb#222 def eligible_method_call?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/layout/first_argument_indentation.rb#155 + # source://rubocop/lib/rubocop/cop/layout/first_argument_indentation.rb#155 def on_csend(node); end - # source://rubocop//lib/rubocop/cop/layout/first_argument_indentation.rb#155 + # source://rubocop/lib/rubocop/cop/layout/first_argument_indentation.rb#155 def on_send(node); end - # source://rubocop//lib/rubocop/cop/layout/first_argument_indentation.rb#155 + # source://rubocop/lib/rubocop/cop/layout/first_argument_indentation.rb#155 def on_super(node); end private - # source://rubocop//lib/rubocop/cop/layout/first_argument_indentation.rb#281 + # source://rubocop/lib/rubocop/cop/layout/first_argument_indentation.rb#281 def argument_alignment_config; end - # source://rubocop//lib/rubocop/cop/layout/first_argument_indentation.rb#174 + # source://rubocop/lib/rubocop/cop/layout/first_argument_indentation.rb#174 def autocorrect(corrector, node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/first_argument_indentation.rb#178 + # source://rubocop/lib/rubocop/cop/layout/first_argument_indentation.rb#178 def bare_operator?(node); end - # source://rubocop//lib/rubocop/cop/layout/first_argument_indentation.rb#198 + # source://rubocop/lib/rubocop/cop/layout/first_argument_indentation.rb#198 def base_indentation(node); end - # source://rubocop//lib/rubocop/cop/layout/first_argument_indentation.rb#226 + # source://rubocop/lib/rubocop/cop/layout/first_argument_indentation.rb#226 def base_range(send_node, arg_node); end # Returns the column of the given range. For single line ranges, this # is simple. For ranges with line breaks, we look a the last code line. # - # source://rubocop//lib/rubocop/cop/layout/first_argument_indentation.rb#238 + # source://rubocop/lib/rubocop/cop/layout/first_argument_indentation.rb#238 def column_of(range); end - # source://rubocop//lib/rubocop/cop/layout/first_argument_indentation.rb#259 + # source://rubocop/lib/rubocop/cop/layout/first_argument_indentation.rb#259 def comment_lines; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/first_argument_indentation.rb#277 + # source://rubocop/lib/rubocop/cop/layout/first_argument_indentation.rb#277 def enable_layout_first_method_argument_line_break?; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/first_argument_indentation.rb#271 + # source://rubocop/lib/rubocop/cop/layout/first_argument_indentation.rb#271 def enforce_first_argument_with_fixed_indentation?; end - # source://rubocop//lib/rubocop/cop/layout/first_argument_indentation.rb#182 + # source://rubocop/lib/rubocop/cop/layout/first_argument_indentation.rb#182 def message(arg_node); end - # source://rubocop//lib/rubocop/cop/layout/first_argument_indentation.rb#267 + # source://rubocop/lib/rubocop/cop/layout/first_argument_indentation.rb#267 def on_new_investigation; end # Takes the line number of a given code line and returns a string # containing the previous line that's not a comment line or a blank # line. # - # source://rubocop//lib/rubocop/cop/layout/first_argument_indentation.rb#250 + # source://rubocop/lib/rubocop/cop/layout/first_argument_indentation.rb#250 def previous_code_line(line_number); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/first_argument_indentation.rb#170 + # source://rubocop/lib/rubocop/cop/layout/first_argument_indentation.rb#170 def should_check?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/first_argument_indentation.rb#206 + # source://rubocop/lib/rubocop/cop/layout/first_argument_indentation.rb#206 def special_inner_call_indentation?(node); end end -# source://rubocop//lib/rubocop/cop/layout/first_argument_indentation.rb#153 +# source://rubocop/lib/rubocop/cop/layout/first_argument_indentation.rb#153 RuboCop::Cop::Layout::FirstArgumentIndentation::MSG = T.let(T.unsafe(nil), String) # Checks the indentation of the first element in an array literal @@ -10837,57 +10897,57 @@ RuboCop::Cop::Layout::FirstArgumentIndentation::MSG = T.let(T.unsafe(nil), Strin # :completely_different # ] # -# source://rubocop//lib/rubocop/cop/layout/first_array_element_indentation.rb#82 +# source://rubocop/lib/rubocop/cop/layout/first_array_element_indentation.rb#82 class RuboCop::Cop::Layout::FirstArrayElementIndentation < ::RuboCop::Cop::Base include ::RuboCop::Cop::Alignment include ::RuboCop::Cop::ConfigurableEnforcedStyle include ::RuboCop::Cop::MultilineElementIndentation extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/layout/first_array_element_indentation.rb#91 + # source://rubocop/lib/rubocop/cop/layout/first_array_element_indentation.rb#91 def on_array(node); end - # source://rubocop//lib/rubocop/cop/layout/first_array_element_indentation.rb#97 + # source://rubocop/lib/rubocop/cop/layout/first_array_element_indentation.rb#97 def on_csend(node); end - # source://rubocop//lib/rubocop/cop/layout/first_array_element_indentation.rb#97 + # source://rubocop/lib/rubocop/cop/layout/first_array_element_indentation.rb#97 def on_send(node); end private - # source://rubocop//lib/rubocop/cop/layout/first_array_element_indentation.rb#188 + # source://rubocop/lib/rubocop/cop/layout/first_array_element_indentation.rb#188 def array_alignment_config; end - # source://rubocop//lib/rubocop/cop/layout/first_array_element_indentation.rb#108 + # source://rubocop/lib/rubocop/cop/layout/first_array_element_indentation.rb#108 def autocorrect(corrector, node); end # Returns the description of what the correct indentation is based on. # - # source://rubocop//lib/rubocop/cop/layout/first_array_element_indentation.rb#146 + # source://rubocop/lib/rubocop/cop/layout/first_array_element_indentation.rb#146 def base_description(indent_base_type); end - # source://rubocop//lib/rubocop/cop/layout/first_array_element_indentation.rb#112 + # source://rubocop/lib/rubocop/cop/layout/first_array_element_indentation.rb#112 def brace_alignment_style; end - # source://rubocop//lib/rubocop/cop/layout/first_array_element_indentation.rb#116 + # source://rubocop/lib/rubocop/cop/layout/first_array_element_indentation.rb#116 def check(array_node, left_parenthesis); end - # source://rubocop//lib/rubocop/cop/layout/first_array_element_indentation.rb#130 + # source://rubocop/lib/rubocop/cop/layout/first_array_element_indentation.rb#130 def check_right_bracket(right_bracket, first_elem, left_bracket, left_parenthesis); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/first_array_element_indentation.rb#182 + # source://rubocop/lib/rubocop/cop/layout/first_array_element_indentation.rb#182 def enforce_first_argument_with_fixed_indentation?; end - # source://rubocop//lib/rubocop/cop/layout/first_array_element_indentation.rb#159 + # source://rubocop/lib/rubocop/cop/layout/first_array_element_indentation.rb#159 def message(base_description); end - # source://rubocop//lib/rubocop/cop/layout/first_array_element_indentation.rb#167 + # source://rubocop/lib/rubocop/cop/layout/first_array_element_indentation.rb#167 def message_for_right_bracket(indent_base_type); end end -# source://rubocop//lib/rubocop/cop/layout/first_array_element_indentation.rb#88 +# source://rubocop/lib/rubocop/cop/layout/first_array_element_indentation.rb#88 RuboCop::Cop::Layout::FirstArrayElementIndentation::MSG = T.let(T.unsafe(nil), String) # Checks for a line break before the first element in a @@ -10925,28 +10985,28 @@ RuboCop::Cop::Layout::FirstArrayElementIndentation::MSG = T.let(T.unsafe(nil), S # :b => :c # }] # -# source://rubocop//lib/rubocop/cop/layout/first_array_element_line_break.rb#43 +# source://rubocop/lib/rubocop/cop/layout/first_array_element_line_break.rb#43 class RuboCop::Cop::Layout::FirstArrayElementLineBreak < ::RuboCop::Cop::Base include ::RuboCop::Cop::FirstElementLineBreak extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/layout/first_array_element_line_break.rb#49 + # source://rubocop/lib/rubocop/cop/layout/first_array_element_line_break.rb#49 def on_array(node); end private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/first_array_element_line_break.rb#57 + # source://rubocop/lib/rubocop/cop/layout/first_array_element_line_break.rb#57 def assignment_on_same_line?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/first_array_element_line_break.rb#62 + # source://rubocop/lib/rubocop/cop/layout/first_array_element_line_break.rb#62 def ignore_last_element?; end end -# source://rubocop//lib/rubocop/cop/layout/first_array_element_line_break.rb#47 +# source://rubocop/lib/rubocop/cop/layout/first_array_element_line_break.rb#47 RuboCop::Cop::Layout::FirstArrayElementLineBreak::MSG = T.let(T.unsafe(nil), String) # Checks the indentation of the first key in a hash literal @@ -11054,65 +11114,65 @@ RuboCop::Cop::Layout::FirstArrayElementLineBreak::MSG = T.let(T.unsafe(nil), Str # d: 2 # }) # -# source://rubocop//lib/rubocop/cop/layout/first_hash_element_indentation.rb#113 +# source://rubocop/lib/rubocop/cop/layout/first_hash_element_indentation.rb#113 class RuboCop::Cop::Layout::FirstHashElementIndentation < ::RuboCop::Cop::Base include ::RuboCop::Cop::Alignment include ::RuboCop::Cop::ConfigurableEnforcedStyle include ::RuboCop::Cop::MultilineElementIndentation extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/layout/first_hash_element_indentation.rb#126 + # source://rubocop/lib/rubocop/cop/layout/first_hash_element_indentation.rb#126 def on_csend(node); end - # source://rubocop//lib/rubocop/cop/layout/first_hash_element_indentation.rb#122 + # source://rubocop/lib/rubocop/cop/layout/first_hash_element_indentation.rb#122 def on_hash(node); end - # source://rubocop//lib/rubocop/cop/layout/first_hash_element_indentation.rb#126 + # source://rubocop/lib/rubocop/cop/layout/first_hash_element_indentation.rb#126 def on_send(node); end private - # source://rubocop//lib/rubocop/cop/layout/first_hash_element_indentation.rb#233 + # source://rubocop/lib/rubocop/cop/layout/first_hash_element_indentation.rb#233 def argument_alignment_config; end - # source://rubocop//lib/rubocop/cop/layout/first_hash_element_indentation.rb#137 + # source://rubocop/lib/rubocop/cop/layout/first_hash_element_indentation.rb#137 def autocorrect(corrector, node); end # Returns the description of what the correct indentation is based on. # - # source://rubocop//lib/rubocop/cop/layout/first_hash_element_indentation.rb#191 + # source://rubocop/lib/rubocop/cop/layout/first_hash_element_indentation.rb#191 def base_description(indent_base_type); end - # source://rubocop//lib/rubocop/cop/layout/first_hash_element_indentation.rb#141 + # source://rubocop/lib/rubocop/cop/layout/first_hash_element_indentation.rb#141 def brace_alignment_style; end - # source://rubocop//lib/rubocop/cop/layout/first_hash_element_indentation.rb#145 + # source://rubocop/lib/rubocop/cop/layout/first_hash_element_indentation.rb#145 def check(hash_node, left_parenthesis); end - # source://rubocop//lib/rubocop/cop/layout/first_hash_element_indentation.rb#184 + # source://rubocop/lib/rubocop/cop/layout/first_hash_element_indentation.rb#184 def check_based_on_longest_key(hash_node, left_brace, left_parenthesis); end - # source://rubocop//lib/rubocop/cop/layout/first_hash_element_indentation.rb#164 + # source://rubocop/lib/rubocop/cop/layout/first_hash_element_indentation.rb#164 def check_right_brace(right_brace, first_pair, left_brace, left_parenthesis); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/first_hash_element_indentation.rb#227 + # source://rubocop/lib/rubocop/cop/layout/first_hash_element_indentation.rb#227 def enforce_first_argument_with_fixed_indentation?; end - # source://rubocop//lib/rubocop/cop/layout/first_hash_element_indentation.rb#204 + # source://rubocop/lib/rubocop/cop/layout/first_hash_element_indentation.rb#204 def message(base_description); end - # source://rubocop//lib/rubocop/cop/layout/first_hash_element_indentation.rb#212 + # source://rubocop/lib/rubocop/cop/layout/first_hash_element_indentation.rb#212 def message_for_right_brace(indent_base_type); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/first_hash_element_indentation.rb#178 + # source://rubocop/lib/rubocop/cop/layout/first_hash_element_indentation.rb#178 def separator_style?(first_pair); end end -# source://rubocop//lib/rubocop/cop/layout/first_hash_element_indentation.rb#119 +# source://rubocop/lib/rubocop/cop/layout/first_hash_element_indentation.rb#119 RuboCop::Cop::Layout::FirstHashElementIndentation::MSG = T.let(T.unsafe(nil), String) # Checks for a line break before the first element in a @@ -11153,23 +11213,23 @@ RuboCop::Cop::Layout::FirstHashElementIndentation::MSG = T.let(T.unsafe(nil), St # c: 3 # }} # -# source://rubocop//lib/rubocop/cop/layout/first_hash_element_line_break.rb#46 +# source://rubocop/lib/rubocop/cop/layout/first_hash_element_line_break.rb#46 class RuboCop::Cop::Layout::FirstHashElementLineBreak < ::RuboCop::Cop::Base include ::RuboCop::Cop::FirstElementLineBreak extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/layout/first_hash_element_line_break.rb#52 + # source://rubocop/lib/rubocop/cop/layout/first_hash_element_line_break.rb#52 def on_hash(node); end private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/first_hash_element_line_break.rb#62 + # source://rubocop/lib/rubocop/cop/layout/first_hash_element_line_break.rb#62 def ignore_last_element?; end end -# source://rubocop//lib/rubocop/cop/layout/first_hash_element_line_break.rb#50 +# source://rubocop/lib/rubocop/cop/layout/first_hash_element_line_break.rb#50 RuboCop::Cop::Layout::FirstHashElementLineBreak::MSG = T.let(T.unsafe(nil), String) # Checks for a line break before the first argument in a @@ -11235,30 +11295,30 @@ RuboCop::Cop::Layout::FirstHashElementLineBreak::MSG = T.let(T.unsafe(nil), Stri # some_method(foo, bar, # baz) # -# source://rubocop//lib/rubocop/cop/layout/first_method_argument_line_break.rb#71 +# source://rubocop/lib/rubocop/cop/layout/first_method_argument_line_break.rb#71 class RuboCop::Cop::Layout::FirstMethodArgumentLineBreak < ::RuboCop::Cop::Base include ::RuboCop::Cop::FirstElementLineBreak include ::RuboCop::Cop::AllowedMethods extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/layout/first_method_argument_line_break.rb#78 + # source://rubocop/lib/rubocop/cop/layout/first_method_argument_line_break.rb#78 def on_csend(node); end - # source://rubocop//lib/rubocop/cop/layout/first_method_argument_line_break.rb#78 + # source://rubocop/lib/rubocop/cop/layout/first_method_argument_line_break.rb#78 def on_send(node); end - # source://rubocop//lib/rubocop/cop/layout/first_method_argument_line_break.rb#78 + # source://rubocop/lib/rubocop/cop/layout/first_method_argument_line_break.rb#78 def on_super(node); end private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/first_method_argument_line_break.rb#99 + # source://rubocop/lib/rubocop/cop/layout/first_method_argument_line_break.rb#99 def ignore_last_element?; end end -# source://rubocop//lib/rubocop/cop/layout/first_method_argument_line_break.rb#76 +# source://rubocop/lib/rubocop/cop/layout/first_method_argument_line_break.rb#76 RuboCop::Cop::Layout::FirstMethodArgumentLineBreak::MSG = T.let(T.unsafe(nil), String) # Checks for a line break before the first parameter in a @@ -11309,26 +11369,26 @@ RuboCop::Cop::Layout::FirstMethodArgumentLineBreak::MSG = T.let(T.unsafe(nil), S # do_something # end # -# source://rubocop//lib/rubocop/cop/layout/first_method_parameter_line_break.rb#56 +# source://rubocop/lib/rubocop/cop/layout/first_method_parameter_line_break.rb#56 class RuboCop::Cop::Layout::FirstMethodParameterLineBreak < ::RuboCop::Cop::Base include ::RuboCop::Cop::FirstElementLineBreak extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/layout/first_method_parameter_line_break.rb#62 + # source://rubocop/lib/rubocop/cop/layout/first_method_parameter_line_break.rb#62 def on_def(node); end - # source://rubocop//lib/rubocop/cop/layout/first_method_parameter_line_break.rb#62 + # source://rubocop/lib/rubocop/cop/layout/first_method_parameter_line_break.rb#62 def on_defs(node); end private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/first_method_parameter_line_break.rb#69 + # source://rubocop/lib/rubocop/cop/layout/first_method_parameter_line_break.rb#69 def ignore_last_element?; end end -# source://rubocop//lib/rubocop/cop/layout/first_method_parameter_line_break.rb#60 +# source://rubocop/lib/rubocop/cop/layout/first_method_parameter_line_break.rb#60 RuboCop::Cop::Layout::FirstMethodParameterLineBreak::MSG = T.let(T.unsafe(nil), String) # Checks the indentation of the first parameter in a method @@ -11368,40 +11428,40 @@ RuboCop::Cop::Layout::FirstMethodParameterLineBreak::MSG = T.let(T.unsafe(nil), # 123 # end # -# source://rubocop//lib/rubocop/cop/layout/first_parameter_indentation.rb#44 +# source://rubocop/lib/rubocop/cop/layout/first_parameter_indentation.rb#44 class RuboCop::Cop::Layout::FirstParameterIndentation < ::RuboCop::Cop::Base include ::RuboCop::Cop::Alignment include ::RuboCop::Cop::ConfigurableEnforcedStyle include ::RuboCop::Cop::MultilineElementIndentation extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/layout/first_parameter_indentation.rb#53 + # source://rubocop/lib/rubocop/cop/layout/first_parameter_indentation.rb#53 def on_def(node); end - # source://rubocop//lib/rubocop/cop/layout/first_parameter_indentation.rb#53 + # source://rubocop/lib/rubocop/cop/layout/first_parameter_indentation.rb#53 def on_defs(node); end private - # source://rubocop//lib/rubocop/cop/layout/first_parameter_indentation.rb#63 + # source://rubocop/lib/rubocop/cop/layout/first_parameter_indentation.rb#63 def autocorrect(corrector, node); end # Returns the description of what the correct indentation is based on. # - # source://rubocop//lib/rubocop/cop/layout/first_parameter_indentation.rb#83 + # source://rubocop/lib/rubocop/cop/layout/first_parameter_indentation.rb#83 def base_description(_); end - # source://rubocop//lib/rubocop/cop/layout/first_parameter_indentation.rb#67 + # source://rubocop/lib/rubocop/cop/layout/first_parameter_indentation.rb#67 def brace_alignment_style; end - # source://rubocop//lib/rubocop/cop/layout/first_parameter_indentation.rb#71 + # source://rubocop/lib/rubocop/cop/layout/first_parameter_indentation.rb#71 def check(def_node); end - # source://rubocop//lib/rubocop/cop/layout/first_parameter_indentation.rb#91 + # source://rubocop/lib/rubocop/cop/layout/first_parameter_indentation.rb#91 def message(base_description); end end -# source://rubocop//lib/rubocop/cop/layout/first_parameter_indentation.rb#50 +# source://rubocop/lib/rubocop/cop/layout/first_parameter_indentation.rb#50 RuboCop::Cop::Layout::FirstParameterIndentation::MSG = T.let(T.unsafe(nil), String) # Check that the keys, separators, and values of a multi-line hash @@ -11567,7 +11627,7 @@ RuboCop::Cop::Layout::FirstParameterIndentation::MSG = T.let(T.unsafe(nil), Stri # :ba => baz # } # -# source://rubocop//lib/rubocop/cop/layout/hash_alignment.rb#178 +# source://rubocop/lib/rubocop/cop/layout/hash_alignment.rb#178 class RuboCop::Cop::Layout::HashAlignment < ::RuboCop::Cop::Base include ::RuboCop::Cop::HashAlignmentStyles include ::RuboCop::Cop::RangeHelp @@ -11575,117 +11635,117 @@ class RuboCop::Cop::Layout::HashAlignment < ::RuboCop::Cop::Base # Returns the value of attribute column_deltas. # - # source://rubocop//lib/rubocop/cop/layout/hash_alignment.rb#218 + # source://rubocop/lib/rubocop/cop/layout/hash_alignment.rb#218 def column_deltas; end # Sets the attribute column_deltas # # @param value the value to set the attribute column_deltas to. # - # source://rubocop//lib/rubocop/cop/layout/hash_alignment.rb#218 + # source://rubocop/lib/rubocop/cop/layout/hash_alignment.rb#218 def column_deltas=(_arg0); end # Returns the value of attribute offenses_by. # - # source://rubocop//lib/rubocop/cop/layout/hash_alignment.rb#218 + # source://rubocop/lib/rubocop/cop/layout/hash_alignment.rb#218 def offenses_by; end # Sets the attribute offenses_by # # @param value the value to set the attribute offenses_by to. # - # source://rubocop//lib/rubocop/cop/layout/hash_alignment.rb#218 + # source://rubocop/lib/rubocop/cop/layout/hash_alignment.rb#218 def offenses_by=(_arg0); end - # source://rubocop//lib/rubocop/cop/layout/hash_alignment.rb#208 + # source://rubocop/lib/rubocop/cop/layout/hash_alignment.rb#208 def on_hash(node); end - # source://rubocop//lib/rubocop/cop/layout/hash_alignment.rb#195 + # source://rubocop/lib/rubocop/cop/layout/hash_alignment.rb#195 def on_send(node); end - # source://rubocop//lib/rubocop/cop/layout/hash_alignment.rb#195 + # source://rubocop/lib/rubocop/cop/layout/hash_alignment.rb#195 def on_super(node); end - # source://rubocop//lib/rubocop/cop/layout/hash_alignment.rb#195 + # source://rubocop/lib/rubocop/cop/layout/hash_alignment.rb#195 def on_yield(node); end private - # source://rubocop//lib/rubocop/cop/layout/hash_alignment.rb#265 + # source://rubocop/lib/rubocop/cop/layout/hash_alignment.rb#265 def add_offenses; end - # source://rubocop//lib/rubocop/cop/layout/hash_alignment.rb#371 + # source://rubocop/lib/rubocop/cop/layout/hash_alignment.rb#371 def adjust(corrector, delta, range); end - # source://rubocop//lib/rubocop/cop/layout/hash_alignment.rb#300 + # source://rubocop/lib/rubocop/cop/layout/hash_alignment.rb#300 def alignment_for(pair); end - # source://rubocop//lib/rubocop/cop/layout/hash_alignment.rb#314 + # source://rubocop/lib/rubocop/cop/layout/hash_alignment.rb#314 def alignment_for_colons; end - # source://rubocop//lib/rubocop/cop/layout/hash_alignment.rb#310 + # source://rubocop/lib/rubocop/cop/layout/hash_alignment.rb#310 def alignment_for_hash_rockets; end - # source://rubocop//lib/rubocop/cop/layout/hash_alignment.rb#390 + # source://rubocop/lib/rubocop/cop/layout/hash_alignment.rb#390 def argument_alignment_config; end - # source://rubocop//lib/rubocop/cop/layout/hash_alignment.rb#233 + # source://rubocop/lib/rubocop/cop/layout/hash_alignment.rb#233 def argument_before_hash(hash_node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/hash_alignment.rb#222 + # source://rubocop/lib/rubocop/cop/layout/hash_alignment.rb#222 def autocorrect_incompatible_with_other_cops?(node); end - # source://rubocop//lib/rubocop/cop/layout/hash_alignment.rb#283 + # source://rubocop/lib/rubocop/cop/layout/hash_alignment.rb#283 def check_delta(delta, node:, alignment:); end - # source://rubocop//lib/rubocop/cop/layout/hash_alignment.rb#246 + # source://rubocop/lib/rubocop/cop/layout/hash_alignment.rb#246 def check_pairs(node); end - # source://rubocop//lib/rubocop/cop/layout/hash_alignment.rb#337 + # source://rubocop/lib/rubocop/cop/layout/hash_alignment.rb#337 def correct_key_value(corrector, delta, key, value, separator); end - # source://rubocop//lib/rubocop/cop/layout/hash_alignment.rb#333 + # source://rubocop/lib/rubocop/cop/layout/hash_alignment.rb#333 def correct_no_value(corrector, key_delta, key); end - # source://rubocop//lib/rubocop/cop/layout/hash_alignment.rb#318 + # source://rubocop/lib/rubocop/cop/layout/hash_alignment.rb#318 def correct_node(corrector, node, delta); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/hash_alignment.rb#242 + # source://rubocop/lib/rubocop/cop/layout/hash_alignment.rb#242 def double_splat?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/hash_alignment.rb#384 + # source://rubocop/lib/rubocop/cop/layout/hash_alignment.rb#384 def enforce_first_argument_with_fixed_indentation?; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/hash_alignment.rb#380 + # source://rubocop/lib/rubocop/cop/layout/hash_alignment.rb#380 def good_alignment?(column_deltas); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/hash_alignment.rb#291 + # source://rubocop/lib/rubocop/cop/layout/hash_alignment.rb#291 def ignore_hash_argument?(node); end - # source://rubocop//lib/rubocop/cop/layout/hash_alignment.rb#353 + # source://rubocop/lib/rubocop/cop/layout/hash_alignment.rb#353 def new_alignment(key); end - # source://rubocop//lib/rubocop/cop/layout/hash_alignment.rb#273 + # source://rubocop/lib/rubocop/cop/layout/hash_alignment.rb#273 def register_offenses_with_format(offenses, format); end - # source://rubocop//lib/rubocop/cop/layout/hash_alignment.rb#237 + # source://rubocop/lib/rubocop/cop/layout/hash_alignment.rb#237 def reset!; end end -# source://rubocop//lib/rubocop/cop/layout/hash_alignment.rb#183 +# source://rubocop/lib/rubocop/cop/layout/hash_alignment.rb#183 RuboCop::Cop::Layout::HashAlignment::MESSAGES = T.let(T.unsafe(nil), Hash) -# source://rubocop//lib/rubocop/cop/layout/hash_alignment.rb#193 +# source://rubocop/lib/rubocop/cop/layout/hash_alignment.rb#193 RuboCop::Cop::Layout::HashAlignment::SEPARATOR_ALIGNMENT_STYLES = T.let(T.unsafe(nil), Array) # Checks for the placement of the closing parenthesis @@ -11735,20 +11795,20 @@ RuboCop::Cop::Layout::HashAlignment::SEPARATOR_ALIGNMENT_STYLES = T.let(T.unsafe # 123, # ) # -# source://rubocop//lib/rubocop/cop/layout/heredoc_argument_closing_parenthesis.rb#53 +# source://rubocop/lib/rubocop/cop/layout/heredoc_argument_closing_parenthesis.rb#53 class RuboCop::Cop::Layout::HeredocArgumentClosingParenthesis < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/layout/heredoc_argument_closing_parenthesis.rb#64 + # source://rubocop/lib/rubocop/cop/layout/heredoc_argument_closing_parenthesis.rb#64 def on_send(node); end private - # source://rubocop//lib/rubocop/cop/layout/heredoc_argument_closing_parenthesis.rb#184 + # source://rubocop/lib/rubocop/cop/layout/heredoc_argument_closing_parenthesis.rb#184 def add_correct_closing_paren(node, corrector); end - # source://rubocop//lib/rubocop/cop/layout/heredoc_argument_closing_parenthesis.rb#271 + # source://rubocop/lib/rubocop/cop/layout/heredoc_argument_closing_parenthesis.rb#271 def add_correct_external_trailing_comma(node, corrector); end # Autocorrection note: @@ -11778,115 +11838,115 @@ class RuboCop::Cop::Layout::HeredocArgumentClosingParenthesis < ::RuboCop::Cop:: # third_array_value, # ] # - # source://rubocop//lib/rubocop/cop/layout/heredoc_argument_closing_parenthesis.rb#107 + # source://rubocop/lib/rubocop/cop/layout/heredoc_argument_closing_parenthesis.rb#107 def autocorrect(corrector, node); end # Closing parenthesis helpers. # # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/heredoc_argument_closing_parenthesis.rb#162 + # source://rubocop/lib/rubocop/cop/layout/heredoc_argument_closing_parenthesis.rb#162 def end_keyword_before_closing_parenthesis?(parenthesized_send_node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/heredoc_argument_closing_parenthesis.rb#222 + # source://rubocop/lib/rubocop/cop/layout/heredoc_argument_closing_parenthesis.rb#222 def exist_argument_between_heredoc_end_and_closing_parentheses?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/heredoc_argument_closing_parenthesis.rb#289 + # source://rubocop/lib/rubocop/cop/layout/heredoc_argument_closing_parenthesis.rb#289 def external_trailing_comma?(node); end # Returns nil if no trailing external comma. # - # source://rubocop//lib/rubocop/cop/layout/heredoc_argument_closing_parenthesis.rb#294 + # source://rubocop/lib/rubocop/cop/layout/heredoc_argument_closing_parenthesis.rb#294 def external_trailing_comma_offset_from_loc_end(node); end - # source://rubocop//lib/rubocop/cop/layout/heredoc_argument_closing_parenthesis.rb#137 + # source://rubocop/lib/rubocop/cop/layout/heredoc_argument_closing_parenthesis.rb#137 def extract_heredoc(node); end - # source://rubocop//lib/rubocop/cop/layout/heredoc_argument_closing_parenthesis.rb#133 + # source://rubocop/lib/rubocop/cop/layout/heredoc_argument_closing_parenthesis.rb#133 def extract_heredoc_argument(node); end - # source://rubocop//lib/rubocop/cop/layout/heredoc_argument_closing_parenthesis.rb#230 + # source://rubocop/lib/rubocop/cop/layout/heredoc_argument_closing_parenthesis.rb#230 def find_most_bottom_of_heredoc_end(arguments); end - # source://rubocop//lib/rubocop/cop/layout/heredoc_argument_closing_parenthesis.rb#179 + # source://rubocop/lib/rubocop/cop/layout/heredoc_argument_closing_parenthesis.rb#179 def fix_closing_parenthesis(node, corrector); end # External trailing comma helpers. # - # source://rubocop//lib/rubocop/cop/layout/heredoc_argument_closing_parenthesis.rb#266 + # source://rubocop/lib/rubocop/cop/layout/heredoc_argument_closing_parenthesis.rb#266 def fix_external_trailing_comma(node, corrector); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/heredoc_argument_closing_parenthesis.rb#149 + # source://rubocop/lib/rubocop/cop/layout/heredoc_argument_closing_parenthesis.rb#149 def heredoc_node?(node); end - # source://rubocop//lib/rubocop/cop/layout/heredoc_argument_closing_parenthesis.rb#197 + # source://rubocop/lib/rubocop/cop/layout/heredoc_argument_closing_parenthesis.rb#197 def incorrect_parenthesis_removal_begin(node); end - # source://rubocop//lib/rubocop/cop/layout/heredoc_argument_closing_parenthesis.rb#213 + # source://rubocop/lib/rubocop/cop/layout/heredoc_argument_closing_parenthesis.rb#213 def incorrect_parenthesis_removal_end(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/heredoc_argument_closing_parenthesis.rb#244 + # source://rubocop/lib/rubocop/cop/layout/heredoc_argument_closing_parenthesis.rb#244 def internal_trailing_comma?(node); end # Returns nil if no trailing internal comma. # - # source://rubocop//lib/rubocop/cop/layout/heredoc_argument_closing_parenthesis.rb#249 + # source://rubocop/lib/rubocop/cop/layout/heredoc_argument_closing_parenthesis.rb#249 def internal_trailing_comma_offset_from_last_arg(node); end - # source://rubocop//lib/rubocop/cop/layout/heredoc_argument_closing_parenthesis.rb#115 + # source://rubocop/lib/rubocop/cop/layout/heredoc_argument_closing_parenthesis.rb#115 def outermost_send_on_same_line(heredoc); end - # source://rubocop//lib/rubocop/cop/layout/heredoc_argument_closing_parenthesis.rb#188 + # source://rubocop/lib/rubocop/cop/layout/heredoc_argument_closing_parenthesis.rb#188 def remove_incorrect_closing_paren(node, corrector); end - # source://rubocop//lib/rubocop/cop/layout/heredoc_argument_closing_parenthesis.rb#277 + # source://rubocop/lib/rubocop/cop/layout/heredoc_argument_closing_parenthesis.rb#277 def remove_incorrect_external_trailing_comma(node, corrector); end # Internal trailing comma helpers. # - # source://rubocop//lib/rubocop/cop/layout/heredoc_argument_closing_parenthesis.rb#238 + # source://rubocop/lib/rubocop/cop/layout/heredoc_argument_closing_parenthesis.rb#238 def remove_internal_trailing_comma(node, corrector); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/heredoc_argument_closing_parenthesis.rb#207 + # source://rubocop/lib/rubocop/cop/layout/heredoc_argument_closing_parenthesis.rb#207 def safe_to_remove_line_containing_closing_paren?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/heredoc_argument_closing_parenthesis.rb#126 + # source://rubocop/lib/rubocop/cop/layout/heredoc_argument_closing_parenthesis.rb#126 def send_missing_closing_parens?(parent, child, heredoc); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/heredoc_argument_closing_parenthesis.rb#153 + # source://rubocop/lib/rubocop/cop/layout/heredoc_argument_closing_parenthesis.rb#153 def single_line_send_with_heredoc_receiver?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/heredoc_argument_closing_parenthesis.rb#305 + # source://rubocop/lib/rubocop/cop/layout/heredoc_argument_closing_parenthesis.rb#305 def space?(pos); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/heredoc_argument_closing_parenthesis.rb#168 + # source://rubocop/lib/rubocop/cop/layout/heredoc_argument_closing_parenthesis.rb#168 def subsequent_closing_parentheses_in_same_line?(outermost_send); end class << self - # source://rubocop//lib/rubocop/cop/layout/heredoc_argument_closing_parenthesis.rb#60 + # source://rubocop/lib/rubocop/cop/layout/heredoc_argument_closing_parenthesis.rb#60 def autocorrect_incompatible_with; end end end -# source://rubocop//lib/rubocop/cop/layout/heredoc_argument_closing_parenthesis.rb#57 +# source://rubocop/lib/rubocop/cop/layout/heredoc_argument_closing_parenthesis.rb#57 RuboCop::Cop::Layout::HeredocArgumentClosingParenthesis::MSG = T.let(T.unsafe(nil), String) # Checks the indentation of the here document bodies. The bodies @@ -11907,77 +11967,77 @@ RuboCop::Cop::Layout::HeredocArgumentClosingParenthesis::MSG = T.let(T.unsafe(ni # something # RUBY # -# source://rubocop//lib/rubocop/cop/layout/heredoc_indentation.rb#24 +# source://rubocop/lib/rubocop/cop/layout/heredoc_indentation.rb#24 class RuboCop::Cop::Layout::HeredocIndentation < ::RuboCop::Cop::Base include ::RuboCop::Cop::Alignment include ::RuboCop::Cop::Heredoc extend ::RuboCop::Cop::AutoCorrector extend ::RuboCop::Cop::TargetRubyVersion - # source://rubocop//lib/rubocop/cop/layout/heredoc_indentation.rb#36 + # source://rubocop/lib/rubocop/cop/layout/heredoc_indentation.rb#36 def on_heredoc(node); end private - # source://rubocop//lib/rubocop/cop/layout/heredoc_indentation.rb#120 + # source://rubocop/lib/rubocop/cop/layout/heredoc_indentation.rb#120 def adjust_minus(corrector, node); end - # source://rubocop//lib/rubocop/cop/layout/heredoc_indentation.rb#115 + # source://rubocop/lib/rubocop/cop/layout/heredoc_indentation.rb#115 def adjust_squiggly(corrector, node); end - # source://rubocop//lib/rubocop/cop/layout/heredoc_indentation.rb#144 + # source://rubocop/lib/rubocop/cop/layout/heredoc_indentation.rb#144 def base_indent_level(node); end - # source://rubocop//lib/rubocop/cop/layout/heredoc_indentation.rb#155 + # source://rubocop/lib/rubocop/cop/layout/heredoc_indentation.rb#155 def heredoc_body(node); end - # source://rubocop//lib/rubocop/cop/layout/heredoc_indentation.rb#159 + # source://rubocop/lib/rubocop/cop/layout/heredoc_indentation.rb#159 def heredoc_end(node); end # Returns '~', '-' or nil # - # source://rubocop//lib/rubocop/cop/layout/heredoc_indentation.rb#151 + # source://rubocop/lib/rubocop/cop/layout/heredoc_indentation.rb#151 def heredoc_indent_type(node); end - # source://rubocop//lib/rubocop/cop/layout/heredoc_indentation.rb#126 + # source://rubocop/lib/rubocop/cop/layout/heredoc_indentation.rb#126 def indented_body(node); end - # source://rubocop//lib/rubocop/cop/layout/heredoc_indentation.rb#133 + # source://rubocop/lib/rubocop/cop/layout/heredoc_indentation.rb#133 def indented_end(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/heredoc_indentation.rb#91 + # source://rubocop/lib/rubocop/cop/layout/heredoc_indentation.rb#91 def line_too_long?(node); end - # source://rubocop//lib/rubocop/cop/layout/heredoc_indentation.rb#103 + # source://rubocop/lib/rubocop/cop/layout/heredoc_indentation.rb#103 def longest_line(lines); end - # source://rubocop//lib/rubocop/cop/layout/heredoc_indentation.rb#111 + # source://rubocop/lib/rubocop/cop/layout/heredoc_indentation.rb#111 def max_line_length; end - # source://rubocop//lib/rubocop/cop/layout/heredoc_indentation.rb#69 + # source://rubocop/lib/rubocop/cop/layout/heredoc_indentation.rb#69 def message(heredoc_indent_type); end - # source://rubocop//lib/rubocop/cop/layout/heredoc_indentation.rb#57 + # source://rubocop/lib/rubocop/cop/layout/heredoc_indentation.rb#57 def register_offense(node, heredoc_indent_type); end - # source://rubocop//lib/rubocop/cop/layout/heredoc_indentation.rb#79 + # source://rubocop/lib/rubocop/cop/layout/heredoc_indentation.rb#79 def type_message(indentation_width, current_indent_type); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/heredoc_indentation.rb#107 + # source://rubocop/lib/rubocop/cop/layout/heredoc_indentation.rb#107 def unlimited_heredoc_length?; end - # source://rubocop//lib/rubocop/cop/layout/heredoc_indentation.rb#87 + # source://rubocop/lib/rubocop/cop/layout/heredoc_indentation.rb#87 def width_message(indentation_width); end end -# source://rubocop//lib/rubocop/cop/layout/heredoc_indentation.rb#32 +# source://rubocop/lib/rubocop/cop/layout/heredoc_indentation.rb#32 RuboCop::Cop::Layout::HeredocIndentation::TYPE_MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/layout/heredoc_indentation.rb#34 +# source://rubocop/lib/rubocop/cop/layout/heredoc_indentation.rb#34 RuboCop::Cop::Layout::HeredocIndentation::WIDTH_MSG = T.let(T.unsafe(nil), String) # Checks for inconsistent indentation. @@ -12095,21 +12155,21 @@ RuboCop::Cop::Layout::HeredocIndentation::WIDTH_MSG = T.let(T.unsafe(nil), Strin # end # end # -# source://rubocop//lib/rubocop/cop/layout/indentation_consistency.rb#121 +# source://rubocop/lib/rubocop/cop/layout/indentation_consistency.rb#121 class RuboCop::Cop::Layout::IndentationConsistency < ::RuboCop::Cop::Base include ::RuboCop::Cop::Alignment include ::RuboCop::Cop::ConfigurableEnforcedStyle extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/layout/indentation_consistency.rb#128 + # source://rubocop/lib/rubocop/cop/layout/indentation_consistency.rb#128 def on_begin(node); end - # source://rubocop//lib/rubocop/cop/layout/indentation_consistency.rb#132 + # source://rubocop/lib/rubocop/cop/layout/indentation_consistency.rb#132 def on_kwbegin(node); end private - # source://rubocop//lib/rubocop/cop/layout/indentation_consistency.rb#138 + # source://rubocop/lib/rubocop/cop/layout/indentation_consistency.rb#138 def autocorrect(corrector, node); end # Not all nodes define `bare_access_modifier?` (for example, @@ -12118,27 +12178,27 @@ class RuboCop::Cop::Layout::IndentationConsistency < ::RuboCop::Cop::Base # # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/indentation_consistency.rb#145 + # source://rubocop/lib/rubocop/cop/layout/indentation_consistency.rb#145 def bare_access_modifier?(node); end # Returns an integer representing the correct indentation, or nil to # indicate that the correct indentation is that of the first child that # is not an access modifier. # - # source://rubocop//lib/rubocop/cop/layout/indentation_consistency.rb#152 + # source://rubocop/lib/rubocop/cop/layout/indentation_consistency.rb#152 def base_column_for_normal_style(node); end - # source://rubocop//lib/rubocop/cop/layout/indentation_consistency.rb#172 + # source://rubocop/lib/rubocop/cop/layout/indentation_consistency.rb#172 def check(node); end - # source://rubocop//lib/rubocop/cop/layout/indentation_consistency.rb#187 + # source://rubocop/lib/rubocop/cop/layout/indentation_consistency.rb#187 def check_indented_internal_methods_style(node); end - # source://rubocop//lib/rubocop/cop/layout/indentation_consistency.rb#180 + # source://rubocop/lib/rubocop/cop/layout/indentation_consistency.rb#180 def check_normal_style(node); end end -# source://rubocop//lib/rubocop/cop/layout/indentation_consistency.rb#126 +# source://rubocop/lib/rubocop/cop/layout/indentation_consistency.rb#126 RuboCop::Cop::Layout::IndentationConsistency::MSG = T.let(T.unsafe(nil), String) # Checks that the indentation method is consistent. @@ -12169,43 +12229,43 @@ RuboCop::Cop::Layout::IndentationConsistency::MSG = T.let(T.unsafe(nil), String) # bar # end # -# source://rubocop//lib/rubocop/cop/layout/indentation_style.rb#34 +# source://rubocop/lib/rubocop/cop/layout/indentation_style.rb#34 class RuboCop::Cop::Layout::IndentationStyle < ::RuboCop::Cop::Base include ::RuboCop::Cop::Alignment include ::RuboCop::Cop::ConfigurableEnforcedStyle include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/layout/indentation_style.rb#42 + # source://rubocop/lib/rubocop/cop/layout/indentation_style.rb#42 def on_new_investigation; end private - # source://rubocop//lib/rubocop/cop/layout/indentation_style.rb#58 + # source://rubocop/lib/rubocop/cop/layout/indentation_style.rb#58 def autocorrect(corrector, range); end - # source://rubocop//lib/rubocop/cop/layout/indentation_style.rb#82 + # source://rubocop/lib/rubocop/cop/layout/indentation_style.rb#82 def autocorrect_lambda_for_spaces(corrector, range); end - # source://rubocop//lib/rubocop/cop/layout/indentation_style.rb#77 + # source://rubocop/lib/rubocop/cop/layout/indentation_style.rb#77 def autocorrect_lambda_for_tabs(corrector, range); end - # source://rubocop//lib/rubocop/cop/layout/indentation_style.rb#66 + # source://rubocop/lib/rubocop/cop/layout/indentation_style.rb#66 def find_offense(line, lineno); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/indentation_style.rb#88 + # source://rubocop/lib/rubocop/cop/layout/indentation_style.rb#88 def in_string_literal?(ranges, tabs_range); end - # source://rubocop//lib/rubocop/cop/layout/indentation_style.rb#109 + # source://rubocop/lib/rubocop/cop/layout/indentation_style.rb#109 def message(_node); end - # source://rubocop//lib/rubocop/cop/layout/indentation_style.rb#92 + # source://rubocop/lib/rubocop/cop/layout/indentation_style.rb#92 def string_literal_ranges(ast); end end -# source://rubocop//lib/rubocop/cop/layout/indentation_style.rb#40 +# source://rubocop/lib/rubocop/cop/layout/indentation_style.rb#40 RuboCop::Cop::Layout::IndentationStyle::MSG = T.let(T.unsafe(nil), String) # Checks for indentation that doesn't use the specified number of spaces. @@ -12246,7 +12306,7 @@ RuboCop::Cop::Layout::IndentationStyle::MSG = T.let(T.unsafe(nil), String) # end # end # -# source://rubocop//lib/rubocop/cop/layout/indentation_width.rb#44 +# source://rubocop/lib/rubocop/cop/layout/indentation_width.rb#44 class RuboCop::Cop::Layout::IndentationWidth < ::RuboCop::Cop::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle include ::RuboCop::Cop::RangeHelp @@ -12256,126 +12316,126 @@ class RuboCop::Cop::Layout::IndentationWidth < ::RuboCop::Cop::Base include ::RuboCop::Cop::AllowedPattern extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/layout/indentation_width.rb#56 + # source://rubocop/lib/rubocop/cop/layout/indentation_width.rb#56 def access_modifier?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/layout/indentation_width.rb#80 + # source://rubocop/lib/rubocop/cop/layout/indentation_width.rb#81 def on_block(node); end - # source://rubocop//lib/rubocop/cop/layout/indentation_width.rb#137 + # source://rubocop/lib/rubocop/cop/layout/indentation_width.rb#138 def on_case(case_node); end - # source://rubocop//lib/rubocop/cop/layout/indentation_width.rb#145 + # source://rubocop/lib/rubocop/cop/layout/indentation_width.rb#146 def on_case_match(case_match); end - # source://rubocop//lib/rubocop/cop/layout/indentation_width.rb#94 + # source://rubocop/lib/rubocop/cop/layout/indentation_width.rb#95 def on_class(node); end - # source://rubocop//lib/rubocop/cop/layout/indentation_width.rb#103 + # source://rubocop/lib/rubocop/cop/layout/indentation_width.rb#104 def on_csend(node); end - # source://rubocop//lib/rubocop/cop/layout/indentation_width.rb#120 + # source://rubocop/lib/rubocop/cop/layout/indentation_width.rb#121 def on_def(node); end - # source://rubocop//lib/rubocop/cop/layout/indentation_width.rb#120 + # source://rubocop/lib/rubocop/cop/layout/indentation_width.rb#121 def on_defs(node); end - # source://rubocop//lib/rubocop/cop/layout/indentation_width.rb#65 + # source://rubocop/lib/rubocop/cop/layout/indentation_width.rb#69 def on_ensure(node); end - # source://rubocop//lib/rubocop/cop/layout/indentation_width.rb#65 + # source://rubocop/lib/rubocop/cop/layout/indentation_width.rb#64 def on_for(node); end - # source://rubocop//lib/rubocop/cop/layout/indentation_width.rb#155 + # source://rubocop/lib/rubocop/cop/layout/indentation_width.rb#156 def on_if(node, base = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/layout/indentation_width.rb#72 + # source://rubocop/lib/rubocop/cop/layout/indentation_width.rb#73 def on_kwbegin(node); end - # source://rubocop//lib/rubocop/cop/layout/indentation_width.rb#94 + # source://rubocop/lib/rubocop/cop/layout/indentation_width.rb#95 def on_module(node); end - # source://rubocop//lib/rubocop/cop/layout/indentation_width.rb#80 + # source://rubocop/lib/rubocop/cop/layout/indentation_width.rb#81 def on_numblock(node); end - # source://rubocop//lib/rubocop/cop/layout/indentation_width.rb#65 + # source://rubocop/lib/rubocop/cop/layout/indentation_width.rb#64 def on_resbody(node); end - # source://rubocop//lib/rubocop/cop/layout/indentation_width.rb#60 + # source://rubocop/lib/rubocop/cop/layout/indentation_width.rb#60 def on_rescue(node); end - # source://rubocop//lib/rubocop/cop/layout/indentation_width.rb#94 + # source://rubocop/lib/rubocop/cop/layout/indentation_width.rb#95 def on_sclass(node); end - # source://rubocop//lib/rubocop/cop/layout/indentation_width.rb#103 + # source://rubocop/lib/rubocop/cop/layout/indentation_width.rb#104 def on_send(node); end - # source://rubocop//lib/rubocop/cop/layout/indentation_width.rb#127 + # source://rubocop/lib/rubocop/cop/layout/indentation_width.rb#128 def on_until(node, base = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/layout/indentation_width.rb#127 + # source://rubocop/lib/rubocop/cop/layout/indentation_width.rb#128 def on_while(node, base = T.unsafe(nil)); end private - # source://rubocop//lib/rubocop/cop/layout/indentation_width.rb#226 + # source://rubocop/lib/rubocop/cop/layout/indentation_width.rb#227 def access_modifier_indentation_style; end - # source://rubocop//lib/rubocop/cop/layout/indentation_width.rb#164 + # source://rubocop/lib/rubocop/cop/layout/indentation_width.rb#165 def autocorrect(corrector, node); end - # source://rubocop//lib/rubocop/cop/layout/indentation_width.rb#234 + # source://rubocop/lib/rubocop/cop/layout/indentation_width.rb#235 def check_assignment(node, rhs); end - # source://rubocop//lib/rubocop/cop/layout/indentation_width.rb#254 + # source://rubocop/lib/rubocop/cop/layout/indentation_width.rb#255 def check_if(node, body, else_clause, base_loc); end - # source://rubocop//lib/rubocop/cop/layout/indentation_width.rb#267 + # source://rubocop/lib/rubocop/cop/layout/indentation_width.rb#268 def check_indentation(base_loc, body_node, style = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/layout/indentation_width.rb#168 + # source://rubocop/lib/rubocop/cop/layout/indentation_width.rb#169 def check_members(base, members); end - # source://rubocop//lib/rubocop/cop/layout/indentation_width.rb#192 + # source://rubocop/lib/rubocop/cop/layout/indentation_width.rb#193 def check_members_for_indented_internal_methods_style(members); end - # source://rubocop//lib/rubocop/cop/layout/indentation_width.rb#198 + # source://rubocop/lib/rubocop/cop/layout/indentation_width.rb#199 def check_members_for_normal_style(base, members); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/indentation_width.rb#340 + # source://rubocop/lib/rubocop/cop/layout/indentation_width.rb#340 def check_rescue?(rescue_node); end - # source://rubocop//lib/rubocop/cop/layout/indentation_width.rb#376 + # source://rubocop/lib/rubocop/cop/layout/indentation_width.rb#376 def configured_indentation_width; end - # source://rubocop//lib/rubocop/cop/layout/indentation_width.rb#206 + # source://rubocop/lib/rubocop/cop/layout/indentation_width.rb#207 def each_member(members); end - # source://rubocop//lib/rubocop/cop/layout/indentation_width.rb#230 + # source://rubocop/lib/rubocop/cop/layout/indentation_width.rb#231 def indentation_consistency_style; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/indentation_width.rb#322 + # source://rubocop/lib/rubocop/cop/layout/indentation_width.rb#323 def indentation_to_check?(base_loc, body_node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/indentation_width.rb#218 + # source://rubocop/lib/rubocop/cop/layout/indentation_width.rb#219 def indented_internal_methods_style?; end - # source://rubocop//lib/rubocop/cop/layout/indentation_width.rb#380 + # source://rubocop/lib/rubocop/cop/layout/indentation_width.rb#380 def leftmost_modifier_of(node); end - # source://rubocop//lib/rubocop/cop/layout/indentation_width.rb#301 + # source://rubocop/lib/rubocop/cop/layout/indentation_width.rb#302 def message(configured_indentation_width, indentation, name); end - # source://rubocop//lib/rubocop/cop/layout/indentation_width.rb#359 + # source://rubocop/lib/rubocop/cop/layout/indentation_width.rb#359 def offending_range(body_node, indentation); end - # source://rubocop//lib/rubocop/cop/layout/indentation_width.rb#277 + # source://rubocop/lib/rubocop/cop/layout/indentation_width.rb#278 def offense(body_node, indentation, style); end # Returns true if the given node is within another node that has @@ -12383,29 +12443,29 @@ class RuboCop::Cop::Layout::IndentationWidth < ::RuboCop::Cop::Base # # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/indentation_width.rb#312 + # source://rubocop/lib/rubocop/cop/layout/indentation_width.rb#313 def other_offense_in_same_range?(node); end - # source://rubocop//lib/rubocop/cop/layout/indentation_width.rb#180 + # source://rubocop/lib/rubocop/cop/layout/indentation_width.rb#181 def select_check_member(member); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/indentation_width.rb#344 + # source://rubocop/lib/rubocop/cop/layout/indentation_width.rb#344 def skip_check?(base_loc, body_node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/indentation_width.rb#222 + # source://rubocop/lib/rubocop/cop/layout/indentation_width.rb#223 def special_modifier?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/indentation_width.rb#367 + # source://rubocop/lib/rubocop/cop/layout/indentation_width.rb#367 def starts_with_access_modifier?(body_node); end end -# source://rubocop//lib/rubocop/cop/layout/indentation_width.rb#52 +# source://rubocop/lib/rubocop/cop/layout/indentation_width.rb#52 RuboCop::Cop::Layout::IndentationWidth::MSG = T.let(T.unsafe(nil), String) # Checks for indentation of the first non-blank non-comment @@ -12422,26 +12482,26 @@ RuboCop::Cop::Layout::IndentationWidth::MSG = T.let(T.unsafe(nil), String) # def foo; end # end # -# source://rubocop//lib/rubocop/cop/layout/initial_indentation.rb#20 +# source://rubocop/lib/rubocop/cop/layout/initial_indentation.rb#20 class RuboCop::Cop::Layout::InitialIndentation < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/layout/initial_indentation.rb#26 + # source://rubocop/lib/rubocop/cop/layout/initial_indentation.rb#26 def on_new_investigation; end private - # source://rubocop//lib/rubocop/cop/layout/initial_indentation.rb#36 + # source://rubocop/lib/rubocop/cop/layout/initial_indentation.rb#36 def first_token; end # @yield [range_between(space_range.begin_pos, token.begin_pos)] # - # source://rubocop//lib/rubocop/cop/layout/initial_indentation.rb#40 + # source://rubocop/lib/rubocop/cop/layout/initial_indentation.rb#40 def space_before(token); end end -# source://rubocop//lib/rubocop/cop/layout/initial_indentation.rb#24 +# source://rubocop/lib/rubocop/cop/layout/initial_indentation.rb#24 RuboCop::Cop::Layout::InitialIndentation::MSG = T.let(T.unsafe(nil), String) # Checks whether comments have a leading space after the @@ -12519,91 +12579,96 @@ RuboCop::Cop::Layout::InitialIndentation::MSG = T.let(T.unsafe(nil), String) # # good # # Some comment # -# source://rubocop//lib/rubocop/cop/layout/leading_comment_space.rb#89 +# 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#95 + # 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#134 + # source://rubocop/lib/rubocop/cop/layout/leading_comment_space.rb#149 def allow_doxygen_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#157 def allow_gemfile_ruby_comment?; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/leading_comment_space.rb#158 + # source://rubocop/lib/rubocop/cop/layout/leading_comment_space.rb#173 def allow_rbs_inline_annotation?; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/leading_comment_space.rb#166 + # source://rubocop/lib/rubocop/cop/layout/leading_comment_space.rb#181 def allow_steep_annotation?; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/leading_comment_space.rb#118 + # source://rubocop/lib/rubocop/cop/layout/leading_comment_space.rb#119 def allowed_on_first_line?(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#153 def doxygen_comment_style?(comment); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/leading_comment_space.rb#146 + # source://rubocop/lib/rubocop/cop/layout/leading_comment_space.rb#161 def gemfile?; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/leading_comment_space.rb#154 + # source://rubocop/lib/rubocop/cop/layout/leading_comment_space.rb#169 def gemfile_ruby_comment?(comment); end - # source://rubocop//lib/rubocop/cop/layout/leading_comment_space.rb#114 + # source://rubocop/lib/rubocop/cop/layout/leading_comment_space.rb#115 def hash_mark(expr); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/leading_comment_space.rb#130 + # source://rubocop/lib/rubocop/cop/layout/leading_comment_space.rb#145 def rackup_config_file?; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/leading_comment_space.rb#126 + # source://rubocop/lib/rubocop/cop/layout/leading_comment_space.rb#141 def rackup_options?(comment); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/leading_comment_space.rb#162 + # source://rubocop/lib/rubocop/cop/layout/leading_comment_space.rb#177 def rbs_inline_annotation?(comment); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/leading_comment_space.rb#150 + # source://rubocop/lib/rubocop/cop/layout/leading_comment_space.rb#165 def ruby_comment_in_gemfile?(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#123 def shebang?(comment); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/leading_comment_space.rb#170 + # source://rubocop/lib/rubocop/cop/layout/leading_comment_space.rb#127 + def shebang_continuation?(comment); end + + # @return [Boolean] + # + # source://rubocop/lib/rubocop/cop/layout/leading_comment_space.rb#185 def steep_annotation?(comment); end end -# source://rubocop//lib/rubocop/cop/layout/leading_comment_space.rb#93 +# 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 @@ -12631,15 +12696,15 @@ RuboCop::Cop::Layout::LeadingCommentSpace::MSG = T.let(T.unsafe(nil), String) # # (start of file) # # a comment # -# source://rubocop//lib/rubocop/cop/layout/leading_empty_lines.rb#30 +# source://rubocop/lib/rubocop/cop/layout/leading_empty_lines.rb#30 class RuboCop::Cop::Layout::LeadingEmptyLines < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/layout/leading_empty_lines.rb#35 + # source://rubocop/lib/rubocop/cop/layout/leading_empty_lines.rb#35 def on_new_investigation; end end -# source://rubocop//lib/rubocop/cop/layout/leading_empty_lines.rb#33 +# source://rubocop/lib/rubocop/cop/layout/leading_empty_lines.rb#33 RuboCop::Cop::Layout::LeadingEmptyLines::MSG = T.let(T.unsafe(nil), String) # Checks that strings broken over multiple lines (by a backslash) contain @@ -12679,61 +12744,72 @@ RuboCop::Cop::Layout::LeadingEmptyLines::MSG = T.let(T.unsafe(nil), String) # 'this text is too' \ # ' long' # -# source://rubocop//lib/rubocop/cop/layout/line_continuation_leading_space.rb#43 +# source://rubocop/lib/rubocop/cop/layout/line_continuation_leading_space.rb#43 class RuboCop::Cop::Layout::LineContinuationLeadingSpace < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/layout/line_continuation_leading_space.rb#54 + # source://rubocop/lib/rubocop/cop/layout/line_continuation_leading_space.rb#63 def on_dstr(node); end private - # source://rubocop//lib/rubocop/cop/layout/line_continuation_leading_space.rb#113 + # source://rubocop/lib/rubocop/cop/layout/line_continuation_leading_space.rb#122 def autocorrect(corrector, offense_range, insert_pos, spaces); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/line_continuation_leading_space.rb#106 + # source://rubocop/lib/rubocop/cop/layout/line_continuation_leading_space.rb#115 def continuation?(line, line_num, node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/line_continuation_leading_space.rb#138 + # source://rubocop/lib/rubocop/cop/layout/line_continuation_leading_space.rb#147 def enforced_style_leading?; end - # source://rubocop//lib/rubocop/cop/layout/line_continuation_leading_space.rb#76 + # source://rubocop/lib/rubocop/cop/layout/line_continuation_leading_space.rb#85 def investigate(first_line, second_line, end_of_first_line); end - # source://rubocop//lib/rubocop/cop/layout/line_continuation_leading_space.rb#84 + # source://rubocop/lib/rubocop/cop/layout/line_continuation_leading_space.rb#93 def investigate_leading_style(first_line, second_line, end_of_first_line); end - # source://rubocop//lib/rubocop/cop/layout/line_continuation_leading_space.rb#95 + # source://rubocop/lib/rubocop/cop/layout/line_continuation_leading_space.rb#104 def investigate_trailing_style(first_line, second_line, end_of_first_line); end - # source://rubocop//lib/rubocop/cop/layout/line_continuation_leading_space.rb#118 + # source://rubocop/lib/rubocop/cop/layout/line_continuation_leading_space.rb#127 def leading_offense_range(end_of_first_line, matches); end - # source://rubocop//lib/rubocop/cop/layout/line_continuation_leading_space.rb#130 + # source://rubocop/lib/rubocop/cop/layout/line_continuation_leading_space.rb#139 def message(_range); end - # source://rubocop//lib/rubocop/cop/layout/line_continuation_leading_space.rb#72 + # source://rubocop/lib/rubocop/cop/layout/line_continuation_leading_space.rb#81 def raw_lines(node); end - # source://rubocop//lib/rubocop/cop/layout/line_continuation_leading_space.rb#124 + # source://rubocop/lib/rubocop/cop/layout/line_continuation_leading_space.rb#133 def trailing_offense_range(end_of_first_line, matches); end + + class << self + # When both cops are activated and run in the same iteration of the correction loop, + # `Style/StringLiterals` undoes the moving of spaces that + # `Layout/LineContinuationLeadingSpace` performs. This is because `Style/StringLiterals` + # takes the original string content and transforms it, rather than just modifying the + # delimiters, in order to handle escaping for quotes within the string. + # + # source://rubocop/lib/rubocop/cop/layout/line_continuation_leading_space.rb#59 + def autocorrect_incompatible_with; end + end end -# source://rubocop//lib/rubocop/cop/layout/line_continuation_leading_space.rb#49 +# source://rubocop/lib/rubocop/cop/layout/line_continuation_leading_space.rb#49 RuboCop::Cop::Layout::LineContinuationLeadingSpace::LEADING_STYLE_OFFENSE = T.let(T.unsafe(nil), Regexp) -# source://rubocop//lib/rubocop/cop/layout/line_continuation_leading_space.rb#47 +# source://rubocop/lib/rubocop/cop/layout/line_continuation_leading_space.rb#47 RuboCop::Cop::Layout::LineContinuationLeadingSpace::LINE_1_ENDING = T.let(T.unsafe(nil), Regexp) -# source://rubocop//lib/rubocop/cop/layout/line_continuation_leading_space.rb#48 +# source://rubocop/lib/rubocop/cop/layout/line_continuation_leading_space.rb#48 RuboCop::Cop::Layout::LineContinuationLeadingSpace::LINE_2_BEGINNING = T.let(T.unsafe(nil), Regexp) -# source://rubocop//lib/rubocop/cop/layout/line_continuation_leading_space.rb#50 +# source://rubocop/lib/rubocop/cop/layout/line_continuation_leading_space.rb#50 RuboCop::Cop::Layout::LineContinuationLeadingSpace::TRAILING_STYLE_OFFENSE = T.let(T.unsafe(nil), Regexp) # Checks that the backslash of a line continuation is separated from @@ -12760,53 +12836,53 @@ RuboCop::Cop::Layout::LineContinuationLeadingSpace::TRAILING_STYLE_OFFENSE = T.l # 'b'\ # 'c' # -# source://rubocop//lib/rubocop/cop/layout/line_continuation_spacing.rb#30 +# source://rubocop/lib/rubocop/cop/layout/line_continuation_spacing.rb#30 class RuboCop::Cop::Layout::LineContinuationSpacing < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/layout/line_continuation_spacing.rb#34 + # source://rubocop/lib/rubocop/cop/layout/line_continuation_spacing.rb#34 def on_new_investigation; end private - # source://rubocop//lib/rubocop/cop/layout/line_continuation_spacing.rb#81 + # source://rubocop/lib/rubocop/cop/layout/line_continuation_spacing.rb#81 def autocorrect(corrector, range); end - # source://rubocop//lib/rubocop/cop/layout/line_continuation_spacing.rb#111 + # source://rubocop/lib/rubocop/cop/layout/line_continuation_spacing.rb#111 def comment_ranges(comments); end - # source://rubocop//lib/rubocop/cop/layout/line_continuation_spacing.rb#65 + # source://rubocop/lib/rubocop/cop/layout/line_continuation_spacing.rb#65 def find_offensive_spacing(line); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/line_continuation_spacing.rb#121 + # source://rubocop/lib/rubocop/cop/layout/line_continuation_spacing.rb#121 def ignore_range?(backtick_range); end - # source://rubocop//lib/rubocop/cop/layout/line_continuation_spacing.rb#91 + # source://rubocop/lib/rubocop/cop/layout/line_continuation_spacing.rb#91 def ignored_literal_ranges(ast); end - # source://rubocop//lib/rubocop/cop/layout/line_continuation_spacing.rb#125 + # source://rubocop/lib/rubocop/cop/layout/line_continuation_spacing.rb#125 def ignored_ranges; end - # source://rubocop//lib/rubocop/cop/layout/line_continuation_spacing.rb#49 + # source://rubocop/lib/rubocop/cop/layout/line_continuation_spacing.rb#49 def investigate(line, line_number); end - # source://rubocop//lib/rubocop/cop/layout/line_continuation_spacing.rb#115 + # source://rubocop/lib/rubocop/cop/layout/line_continuation_spacing.rb#115 def last_line(processed_source); end - # source://rubocop//lib/rubocop/cop/layout/line_continuation_spacing.rb#73 + # source://rubocop/lib/rubocop/cop/layout/line_continuation_spacing.rb#73 def message(_range); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/line_continuation_spacing.rb#130 + # source://rubocop/lib/rubocop/cop/layout/line_continuation_spacing.rb#130 def no_space_style?; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/line_continuation_spacing.rb#134 + # source://rubocop/lib/rubocop/cop/layout/line_continuation_spacing.rb#134 def space_style?; end end @@ -12876,50 +12952,50 @@ end # 'in two parts' # } # -# source://rubocop//lib/rubocop/cop/layout/line_end_string_concatenation_indentation.rb#74 +# source://rubocop/lib/rubocop/cop/layout/line_end_string_concatenation_indentation.rb#74 class RuboCop::Cop::Layout::LineEndStringConcatenationIndentation < ::RuboCop::Cop::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle include ::RuboCop::Cop::Alignment extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/layout/line_end_string_concatenation_indentation.rb#97 + # source://rubocop/lib/rubocop/cop/layout/line_end_string_concatenation_indentation.rb#97 def autocorrect(corrector, node); end - # source://rubocop//lib/rubocop/cop/layout/line_end_string_concatenation_indentation.rb#83 + # source://rubocop/lib/rubocop/cop/layout/line_end_string_concatenation_indentation.rb#83 def on_dstr(node); end private - # source://rubocop//lib/rubocop/cop/layout/line_end_string_concatenation_indentation.rb#137 + # source://rubocop/lib/rubocop/cop/layout/line_end_string_concatenation_indentation.rb#137 def add_offense_and_correction(node, message); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/line_end_string_concatenation_indentation.rb#109 + # source://rubocop/lib/rubocop/cop/layout/line_end_string_concatenation_indentation.rb#109 def always_indented?(dstr_node); end - # source://rubocop//lib/rubocop/cop/layout/line_end_string_concatenation_indentation.rb#128 + # source://rubocop/lib/rubocop/cop/layout/line_end_string_concatenation_indentation.rb#128 def base_column(child); end - # source://rubocop//lib/rubocop/cop/layout/line_end_string_concatenation_indentation.rb#113 + # source://rubocop/lib/rubocop/cop/layout/line_end_string_concatenation_indentation.rb#113 def check_aligned(children, start_index); end - # source://rubocop//lib/rubocop/cop/layout/line_end_string_concatenation_indentation.rb#122 + # source://rubocop/lib/rubocop/cop/layout/line_end_string_concatenation_indentation.rb#122 def check_indented(children); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/line_end_string_concatenation_indentation.rb#103 + # source://rubocop/lib/rubocop/cop/layout/line_end_string_concatenation_indentation.rb#103 def strings_concatenated_with_backslash?(dstr_node); end end -# source://rubocop//lib/rubocop/cop/layout/line_end_string_concatenation_indentation.rb#79 +# source://rubocop/lib/rubocop/cop/layout/line_end_string_concatenation_indentation.rb#79 RuboCop::Cop::Layout::LineEndStringConcatenationIndentation::MSG_ALIGN = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/layout/line_end_string_concatenation_indentation.rb#80 +# source://rubocop/lib/rubocop/cop/layout/line_end_string_concatenation_indentation.rb#80 RuboCop::Cop::Layout::LineEndStringConcatenationIndentation::MSG_INDENT = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/layout/line_end_string_concatenation_indentation.rb#81 +# source://rubocop/lib/rubocop/cop/layout/line_end_string_concatenation_indentation.rb#81 RuboCop::Cop::Layout::LineEndStringConcatenationIndentation::PARENT_TYPES_FOR_INDENTED = T.let(T.unsafe(nil), Array) # Checks the length of lines in the source code. @@ -12955,7 +13031,7 @@ RuboCop::Cop::Layout::LineEndStringConcatenationIndentation::PARENT_TYPES_FOR_IN # * `Layout/MultilineHashKeyLineBreaks` # * `Layout/MultilineMethodArgumentLineBreaks` # * `Layout/MultilineMethodParameterLineBreaks` -# * `Layout//ParameterAlignment` +# * `Layout/ParameterAlignment` # * `Style/BlockDelimiters` # # Together, these cops will pretty print hashes, arrays, @@ -12978,7 +13054,7 @@ RuboCop::Cop::Layout::LineEndStringConcatenationIndentation::PARENT_TYPES_FOR_IN # baz: "0000000000", # } # -# source://rubocop//lib/rubocop/cop/layout/line_length.rb#63 +# source://rubocop/lib/rubocop/cop/layout/line_length.rb#63 class RuboCop::Cop::Layout::LineLength < ::RuboCop::Cop::Base include ::RuboCop::Cop::CheckLineBreakable include ::RuboCop::Cop::AllowedPattern @@ -12987,125 +13063,177 @@ class RuboCop::Cop::Layout::LineLength < ::RuboCop::Cop::Base include ::RuboCop::Cop::LineLengthHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/exclude_limit.rb#11 + # source://rubocop/lib/rubocop/cop/exclude_limit.rb#11 def max=(value); end - # source://rubocop//lib/rubocop/cop/layout/line_length.rb#80 + # source://rubocop/lib/rubocop/cop/layout/line_length.rb#87 def on_array(node); end - # source://rubocop//lib/rubocop/cop/layout/line_length.rb#74 + # source://rubocop/lib/rubocop/cop/layout/line_length.rb#74 def on_block(node); end - # source://rubocop//lib/rubocop/cop/layout/line_length.rb#80 + # source://rubocop/lib/rubocop/cop/layout/line_length.rb#87 def on_def(node); end - # source://rubocop//lib/rubocop/cop/layout/line_length.rb#80 + # source://rubocop/lib/rubocop/cop/layout/line_length.rb#83 + def on_dstr(node); end + + # source://rubocop/lib/rubocop/cop/layout/line_length.rb#87 def on_hash(node); end - # source://rubocop//lib/rubocop/cop/layout/line_length.rb#94 + # source://rubocop/lib/rubocop/cop/layout/line_length.rb#101 def on_investigation_end; end - # source://rubocop//lib/rubocop/cop/layout/line_length.rb#88 + # source://rubocop/lib/rubocop/cop/layout/line_length.rb#95 def on_new_investigation; end - # source://rubocop//lib/rubocop/cop/layout/line_length.rb#74 + # source://rubocop/lib/rubocop/cop/layout/line_length.rb#74 def on_numblock(node); end - # source://rubocop//lib/rubocop/cop/layout/line_length.rb#80 + # source://rubocop/lib/rubocop/cop/layout/line_length.rb#87 def on_potential_breakable_node(node); end - # source://rubocop//lib/rubocop/cop/layout/line_length.rb#80 + # source://rubocop/lib/rubocop/cop/layout/line_length.rb#87 def on_send(node); end + # source://rubocop/lib/rubocop/cop/layout/line_length.rb#79 + def on_str(node); end + private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/line_length.rb#219 + # source://rubocop/lib/rubocop/cop/layout/line_length.rb#306 def allow_heredoc?; end - # source://rubocop//lib/rubocop/cop/layout/line_length.rb#223 + # @return [Boolean] + # + # source://rubocop/lib/rubocop/cop/layout/line_length.rb#314 + def allow_string_split?; end + + # source://rubocop/lib/rubocop/cop/layout/line_length.rb#310 def allowed_heredoc; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/line_length.rb#183 + # source://rubocop/lib/rubocop/cop/layout/line_length.rb#263 def allowed_line?(line, line_index); end - # source://rubocop//lib/rubocop/cop/layout/line_length.rb#135 + # source://rubocop/lib/rubocop/cop/layout/line_length.rb#178 def breakable_block_range(block_node); end + # @return [Boolean] + # + # source://rubocop/lib/rubocop/cop/layout/line_length.rb#365 + def breakable_dstr?(node); end + + # source://rubocop/lib/rubocop/cop/layout/line_length.rb#227 + def breakable_dstr_begin_position(node); end + # Returns the value of attribute breakable_range. # - # source://rubocop//lib/rubocop/cop/layout/line_length.rb#102 + # source://rubocop/lib/rubocop/cop/layout/line_length.rb#109 def breakable_range; end # Sets the attribute breakable_range # # @param value the value to set the attribute breakable_range to. # - # source://rubocop//lib/rubocop/cop/layout/line_length.rb#102 + # source://rubocop/lib/rubocop/cop/layout/line_length.rb#109 def breakable_range=(_arg0); end - # source://rubocop//lib/rubocop/cop/layout/line_length.rb#143 + # source://rubocop/lib/rubocop/cop/layout/line_length.rb#186 def breakable_range_after_semicolon(semicolon_token); end - # source://rubocop//lib/rubocop/cop/layout/line_length.rb#156 + # source://rubocop/lib/rubocop/cop/layout/line_length.rb#232 def breakable_range_by_line_index; end - # source://rubocop//lib/rubocop/cop/layout/line_length.rb#250 + # @return [Boolean] + # + # source://rubocop/lib/rubocop/cop/layout/line_length.rb#169 + def breakable_string?(node); end + + # source://rubocop/lib/rubocop/cop/layout/line_length.rb#236 + def breakable_string_delimiters; end + + # source://rubocop/lib/rubocop/cop/layout/line_length.rb#199 + def breakable_string_position(node); end + + # Locate where to break a string that is too long, ensuring that escape characters + # are not bisected. + # If the string contains spaces, use them to determine a place for a clean break; + # otherwise, the string will be broken at the line length limit. + # + # source://rubocop/lib/rubocop/cop/layout/line_length.rb#211 + def breakable_string_range(node); end + + # source://rubocop/lib/rubocop/cop/layout/line_length.rb#341 def check_directive_line(line, line_index); end - # source://rubocop//lib/rubocop/cop/layout/line_length.rb#125 + # source://rubocop/lib/rubocop/cop/layout/line_length.rb#132 def check_for_breakable_block(block_node); end - # source://rubocop//lib/rubocop/cop/layout/line_length.rb#104 + # source://rubocop/lib/rubocop/cop/layout/line_length.rb#154 + def check_for_breakable_dstr(node); end + + # source://rubocop/lib/rubocop/cop/layout/line_length.rb#111 def check_for_breakable_node(node); end - # source://rubocop//lib/rubocop/cop/layout/line_length.rb#117 + # source://rubocop/lib/rubocop/cop/layout/line_length.rb#124 def check_for_breakable_semicolons(processed_source); end - # source://rubocop//lib/rubocop/cop/layout/line_length.rb#171 + # source://rubocop/lib/rubocop/cop/layout/line_length.rb#142 + def check_for_breakable_str(node); end + + # source://rubocop/lib/rubocop/cop/layout/line_length.rb#251 def check_line(line, line_index); end - # source://rubocop//lib/rubocop/cop/layout/line_length.rb#267 + # source://rubocop/lib/rubocop/cop/layout/line_length.rb#358 def check_uri_line(line, line_index); end - # source://rubocop//lib/rubocop/cop/layout/line_length.rb#204 + # source://rubocop/lib/rubocop/cop/layout/line_length.rb#291 def excess_range(uri_range, line, line_index); end - # source://rubocop//lib/rubocop/cop/layout/line_length.rb#227 + # source://rubocop/lib/rubocop/cop/layout/line_length.rb#318 def extract_heredocs(ast); end - # source://rubocop//lib/rubocop/cop/layout/line_length.rb#160 + # source://rubocop/lib/rubocop/cop/layout/line_length.rb#240 def heredocs; end - # source://rubocop//lib/rubocop/cop/layout/line_length.rb#164 + # source://rubocop/lib/rubocop/cop/layout/line_length.rb#244 def highlight_start(line); end + # Find the largest possible substring of a string node to retain before a break + # + # source://rubocop/lib/rubocop/cop/layout/line_length.rb#379 + def largest_possible_string(node); end + # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/line_length.rb#246 + # source://rubocop/lib/rubocop/cop/layout/line_length.rb#337 def line_in_heredoc?(line_number); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/line_length.rb#237 + # source://rubocop/lib/rubocop/cop/layout/line_length.rb#328 def line_in_permitted_heredoc?(line_number); end - # source://rubocop//lib/rubocop/cop/layout/line_length.rb#215 + # source://rubocop/lib/rubocop/cop/layout/line_length.rb#302 def max; end - # source://rubocop//lib/rubocop/cop/layout/line_length.rb#193 + # source://rubocop/lib/rubocop/cop/layout/line_length.rb#273 def register_offense(loc, line, line_index, length: T.unsafe(nil)); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/line_length.rb#189 + # source://rubocop/lib/rubocop/cop/layout/line_length.rb#269 def shebang?(line, line_index); end + + # source://rubocop/lib/rubocop/cop/layout/line_length.rb#370 + def string_delimiter(node); end end -# source://rubocop//lib/rubocop/cop/layout/line_length.rb#72 +# source://rubocop/lib/rubocop/cop/layout/line_length.rb#72 RuboCop::Cop::Layout::LineLength::MSG = T.let(T.unsafe(nil), String) # Checks that the closing brace in an array literal is either @@ -13192,26 +13320,26 @@ RuboCop::Cop::Layout::LineLength::MSG = T.let(T.unsafe(nil), String) # [ :a, # :b ] # -# source://rubocop//lib/rubocop/cop/layout/multiline_array_brace_layout.rb#91 +# source://rubocop/lib/rubocop/cop/layout/multiline_array_brace_layout.rb#91 class RuboCop::Cop::Layout::MultilineArrayBraceLayout < ::RuboCop::Cop::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle include ::RuboCop::Cop::MultilineLiteralBraceLayout extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/layout/multiline_array_brace_layout.rb#109 + # source://rubocop/lib/rubocop/cop/layout/multiline_array_brace_layout.rb#109 def on_array(node); end end -# source://rubocop//lib/rubocop/cop/layout/multiline_array_brace_layout.rb#103 +# source://rubocop/lib/rubocop/cop/layout/multiline_array_brace_layout.rb#103 RuboCop::Cop::Layout::MultilineArrayBraceLayout::ALWAYS_NEW_LINE_MESSAGE = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/layout/multiline_array_brace_layout.rb#106 +# source://rubocop/lib/rubocop/cop/layout/multiline_array_brace_layout.rb#106 RuboCop::Cop::Layout::MultilineArrayBraceLayout::ALWAYS_SAME_LINE_MESSAGE = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/layout/multiline_array_brace_layout.rb#99 +# source://rubocop/lib/rubocop/cop/layout/multiline_array_brace_layout.rb#99 RuboCop::Cop::Layout::MultilineArrayBraceLayout::NEW_LINE_MESSAGE = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/layout/multiline_array_brace_layout.rb#95 +# source://rubocop/lib/rubocop/cop/layout/multiline_array_brace_layout.rb#95 RuboCop::Cop::Layout::MultilineArrayBraceLayout::SAME_LINE_MESSAGE = T.let(T.unsafe(nil), String) # Ensures that each item in a multi-line array @@ -13253,23 +13381,23 @@ RuboCop::Cop::Layout::MultilineArrayBraceLayout::SAME_LINE_MESSAGE = T.let(T.uns # bar # )] # -# source://rubocop//lib/rubocop/cop/layout/multiline_array_line_breaks.rb#47 +# source://rubocop/lib/rubocop/cop/layout/multiline_array_line_breaks.rb#47 class RuboCop::Cop::Layout::MultilineArrayLineBreaks < ::RuboCop::Cop::Base include ::RuboCop::Cop::MultilineElementLineBreaks extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/layout/multiline_array_line_breaks.rb#53 + # source://rubocop/lib/rubocop/cop/layout/multiline_array_line_breaks.rb#53 def on_array(node); end private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/multiline_array_line_breaks.rb#59 + # source://rubocop/lib/rubocop/cop/layout/multiline_array_line_breaks.rb#59 def ignore_last_element?; end end -# source://rubocop//lib/rubocop/cop/layout/multiline_array_line_breaks.rb#51 +# source://rubocop/lib/rubocop/cop/layout/multiline_array_line_breaks.rb#51 RuboCop::Cop::Layout::MultilineArrayLineBreaks::MSG = T.let(T.unsafe(nil), String) # Checks whether the multiline assignments have a newline @@ -13323,35 +13451,35 @@ RuboCop::Cop::Layout::MultilineArrayLineBreaks::MSG = T.let(T.unsafe(nil), Strin # 'bar' * i # end # -# source://rubocop//lib/rubocop/cop/layout/multiline_assignment_layout.rb#60 +# source://rubocop/lib/rubocop/cop/layout/multiline_assignment_layout.rb#60 class RuboCop::Cop::Layout::MultilineAssignmentLayout < ::RuboCop::Cop::Base include ::RuboCop::Cop::CheckAssignment include ::RuboCop::Cop::ConfigurableEnforcedStyle include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/layout/multiline_assignment_layout.rb#72 + # source://rubocop/lib/rubocop/cop/layout/multiline_assignment_layout.rb#72 def check_assignment(node, rhs); end - # source://rubocop//lib/rubocop/cop/layout/multiline_assignment_layout.rb#81 + # source://rubocop/lib/rubocop/cop/layout/multiline_assignment_layout.rb#81 def check_by_enforced_style(node, rhs); end - # source://rubocop//lib/rubocop/cop/layout/multiline_assignment_layout.rb#90 + # source://rubocop/lib/rubocop/cop/layout/multiline_assignment_layout.rb#90 def check_new_line_offense(node, rhs); end - # source://rubocop//lib/rubocop/cop/layout/multiline_assignment_layout.rb#98 + # source://rubocop/lib/rubocop/cop/layout/multiline_assignment_layout.rb#98 def check_same_line_offense(node, rhs); end private - # source://rubocop//lib/rubocop/cop/layout/multiline_assignment_layout.rb#111 + # source://rubocop/lib/rubocop/cop/layout/multiline_assignment_layout.rb#111 def supported_types; end end -# source://rubocop//lib/rubocop/cop/layout/multiline_assignment_layout.rb#66 +# source://rubocop/lib/rubocop/cop/layout/multiline_assignment_layout.rb#66 RuboCop::Cop::Layout::MultilineAssignmentLayout::NEW_LINE_OFFENSE = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/layout/multiline_assignment_layout.rb#69 +# source://rubocop/lib/rubocop/cop/layout/multiline_assignment_layout.rb#69 RuboCop::Cop::Layout::MultilineAssignmentLayout::SAME_LINE_OFFENSE = T.let(T.unsafe(nil), String) # Checks whether the multiline do end blocks have a newline @@ -13400,63 +13528,63 @@ RuboCop::Cop::Layout::MultilineAssignmentLayout::SAME_LINE_OFFENSE = T.let(T.uns # bar(i) # } # -# source://rubocop//lib/rubocop/cop/layout/multiline_block_layout.rb#51 +# source://rubocop/lib/rubocop/cop/layout/multiline_block_layout.rb#51 class RuboCop::Cop::Layout::MultilineBlockLayout < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/layout/multiline_block_layout.rb#59 + # source://rubocop/lib/rubocop/cop/layout/multiline_block_layout.rb#59 def on_block(node); end - # source://rubocop//lib/rubocop/cop/layout/multiline_block_layout.rb#59 + # source://rubocop/lib/rubocop/cop/layout/multiline_block_layout.rb#59 def on_numblock(node); end private - # source://rubocop//lib/rubocop/cop/layout/multiline_block_layout.rb#98 + # source://rubocop/lib/rubocop/cop/layout/multiline_block_layout.rb#98 def add_offense_for_expression(node, expr, msg); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/multiline_block_layout.rb#75 + # source://rubocop/lib/rubocop/cop/layout/multiline_block_layout.rb#75 def args_on_beginning_line?(node); end - # source://rubocop//lib/rubocop/cop/layout/multiline_block_layout.rb#105 + # source://rubocop/lib/rubocop/cop/layout/multiline_block_layout.rb#105 def autocorrect(corrector, node); end - # source://rubocop//lib/rubocop/cop/layout/multiline_block_layout.rb#120 + # source://rubocop/lib/rubocop/cop/layout/multiline_block_layout.rb#120 def autocorrect_arguments(corrector, node); end - # source://rubocop//lib/rubocop/cop/layout/multiline_block_layout.rb#130 + # source://rubocop/lib/rubocop/cop/layout/multiline_block_layout.rb#130 def autocorrect_body(corrector, node, block_body); end - # source://rubocop//lib/rubocop/cop/layout/multiline_block_layout.rb#142 + # source://rubocop/lib/rubocop/cop/layout/multiline_block_layout.rb#142 def block_arg_string(node, args); end - # source://rubocop//lib/rubocop/cop/layout/multiline_block_layout.rb#90 + # source://rubocop/lib/rubocop/cop/layout/multiline_block_layout.rb#90 def characters_needed_for_space_and_pipes(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/multiline_block_layout.rb#154 + # source://rubocop/lib/rubocop/cop/layout/multiline_block_layout.rb#154 def include_trailing_comma?(args); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/multiline_block_layout.rb#79 + # source://rubocop/lib/rubocop/cop/layout/multiline_block_layout.rb#79 def line_break_necessary_in_args?(node); end - # source://rubocop//lib/rubocop/cop/layout/multiline_block_layout.rb#83 + # source://rubocop/lib/rubocop/cop/layout/multiline_block_layout.rb#83 def needed_length_for_args(node); end end -# source://rubocop//lib/rubocop/cop/layout/multiline_block_layout.rb#56 +# source://rubocop/lib/rubocop/cop/layout/multiline_block_layout.rb#56 RuboCop::Cop::Layout::MultilineBlockLayout::ARG_MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/layout/multiline_block_layout.rb#55 +# source://rubocop/lib/rubocop/cop/layout/multiline_block_layout.rb#55 RuboCop::Cop::Layout::MultilineBlockLayout::MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/layout/multiline_block_layout.rb#57 +# source://rubocop/lib/rubocop/cop/layout/multiline_block_layout.rb#57 RuboCop::Cop::Layout::MultilineBlockLayout::PIPE_SIZE = T.let(T.unsafe(nil), Integer) # Checks that the closing brace in a hash literal is either @@ -13543,26 +13671,26 @@ RuboCop::Cop::Layout::MultilineBlockLayout::PIPE_SIZE = T.let(T.unsafe(nil), Int # { a: 1, # b: 2 } # -# source://rubocop//lib/rubocop/cop/layout/multiline_hash_brace_layout.rb#91 +# source://rubocop/lib/rubocop/cop/layout/multiline_hash_brace_layout.rb#91 class RuboCop::Cop::Layout::MultilineHashBraceLayout < ::RuboCop::Cop::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle include ::RuboCop::Cop::MultilineLiteralBraceLayout extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/layout/multiline_hash_brace_layout.rb#109 + # source://rubocop/lib/rubocop/cop/layout/multiline_hash_brace_layout.rb#109 def on_hash(node); end end -# source://rubocop//lib/rubocop/cop/layout/multiline_hash_brace_layout.rb#103 +# source://rubocop/lib/rubocop/cop/layout/multiline_hash_brace_layout.rb#103 RuboCop::Cop::Layout::MultilineHashBraceLayout::ALWAYS_NEW_LINE_MESSAGE = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/layout/multiline_hash_brace_layout.rb#106 +# source://rubocop/lib/rubocop/cop/layout/multiline_hash_brace_layout.rb#106 RuboCop::Cop::Layout::MultilineHashBraceLayout::ALWAYS_SAME_LINE_MESSAGE = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/layout/multiline_hash_brace_layout.rb#99 +# source://rubocop/lib/rubocop/cop/layout/multiline_hash_brace_layout.rb#99 RuboCop::Cop::Layout::MultilineHashBraceLayout::NEW_LINE_MESSAGE = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/layout/multiline_hash_brace_layout.rb#95 +# source://rubocop/lib/rubocop/cop/layout/multiline_hash_brace_layout.rb#95 RuboCop::Cop::Layout::MultilineHashBraceLayout::SAME_LINE_MESSAGE = T.let(T.unsafe(nil), String) # Ensures that each key in a multi-line hash @@ -13603,28 +13731,28 @@ RuboCop::Cop::Layout::MultilineHashBraceLayout::SAME_LINE_MESSAGE = T.let(T.unsa # c: 3, # }} # -# source://rubocop//lib/rubocop/cop/layout/multiline_hash_key_line_breaks.rb#46 +# source://rubocop/lib/rubocop/cop/layout/multiline_hash_key_line_breaks.rb#46 class RuboCop::Cop::Layout::MultilineHashKeyLineBreaks < ::RuboCop::Cop::Base include ::RuboCop::Cop::MultilineElementLineBreaks extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/layout/multiline_hash_key_line_breaks.rb#52 + # source://rubocop/lib/rubocop/cop/layout/multiline_hash_key_line_breaks.rb#52 def on_hash(node); end private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/multiline_hash_key_line_breaks.rb#68 + # source://rubocop/lib/rubocop/cop/layout/multiline_hash_key_line_breaks.rb#68 def ignore_last_element?; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/multiline_hash_key_line_breaks.rb#64 + # source://rubocop/lib/rubocop/cop/layout/multiline_hash_key_line_breaks.rb#64 def starts_with_curly_brace?(node); end end -# source://rubocop//lib/rubocop/cop/layout/multiline_hash_key_line_breaks.rb#50 +# source://rubocop/lib/rubocop/cop/layout/multiline_hash_key_line_breaks.rb#50 RuboCop::Cop::Layout::MultilineHashKeyLineBreaks::MSG = T.let(T.unsafe(nil), String) # Ensures that each argument in a multi-line method call @@ -13675,23 +13803,23 @@ RuboCop::Cop::Layout::MultilineHashKeyLineBreaks::MSG = T.let(T.unsafe(nil), Str # } # ) # -# source://rubocop//lib/rubocop/cop/layout/multiline_method_argument_line_breaks.rb#56 +# source://rubocop/lib/rubocop/cop/layout/multiline_method_argument_line_breaks.rb#56 class RuboCop::Cop::Layout::MultilineMethodArgumentLineBreaks < ::RuboCop::Cop::Base include ::RuboCop::Cop::MultilineElementLineBreaks extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/layout/multiline_method_argument_line_breaks.rb#62 + # source://rubocop/lib/rubocop/cop/layout/multiline_method_argument_line_breaks.rb#62 def on_send(node); end private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/multiline_method_argument_line_breaks.rb#81 + # source://rubocop/lib/rubocop/cop/layout/multiline_method_argument_line_breaks.rb#81 def ignore_last_element?; end end -# source://rubocop//lib/rubocop/cop/layout/multiline_method_argument_line_breaks.rb#60 +# source://rubocop/lib/rubocop/cop/layout/multiline_method_argument_line_breaks.rb#60 RuboCop::Cop::Layout::MultilineMethodArgumentLineBreaks::MSG = T.let(T.unsafe(nil), String) # Checks that the closing brace in a method call is either @@ -13703,7 +13831,7 @@ RuboCop::Cop::Layout::MultilineMethodArgumentLineBreaks::MSG = T.let(T.unsafe(ni # argument of the call, then the closing brace should be on the same # line as the last argument of the call. # -# If an method call's opening brace is on the line above the first +# If a method call's opening brace is on the line above the first # argument of the call, then the closing brace should be on the line # below the last argument of the call. # @@ -13778,41 +13906,41 @@ RuboCop::Cop::Layout::MultilineMethodArgumentLineBreaks::MSG = T.let(T.unsafe(ni # foo(a, # b) # -# source://rubocop//lib/rubocop/cop/layout/multiline_method_call_brace_layout.rb#91 +# source://rubocop/lib/rubocop/cop/layout/multiline_method_call_brace_layout.rb#91 class RuboCop::Cop::Layout::MultilineMethodCallBraceLayout < ::RuboCop::Cop::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle include ::RuboCop::Cop::MultilineLiteralBraceLayout extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/layout/multiline_method_call_brace_layout.rb#109 + # source://rubocop/lib/rubocop/cop/layout/multiline_method_call_brace_layout.rb#109 def on_send(node); end private - # source://rubocop//lib/rubocop/cop/layout/multiline_method_call_brace_layout.rb#115 + # source://rubocop/lib/rubocop/cop/layout/multiline_method_call_brace_layout.rb#115 def children(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/multiline_method_call_brace_layout.rb#119 + # source://rubocop/lib/rubocop/cop/layout/multiline_method_call_brace_layout.rb#119 def ignored_literal?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/multiline_method_call_brace_layout.rb#123 + # source://rubocop/lib/rubocop/cop/layout/multiline_method_call_brace_layout.rb#123 def single_line_ignoring_receiver?(node); end end -# source://rubocop//lib/rubocop/cop/layout/multiline_method_call_brace_layout.rb#103 +# source://rubocop/lib/rubocop/cop/layout/multiline_method_call_brace_layout.rb#103 RuboCop::Cop::Layout::MultilineMethodCallBraceLayout::ALWAYS_NEW_LINE_MESSAGE = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/layout/multiline_method_call_brace_layout.rb#106 +# source://rubocop/lib/rubocop/cop/layout/multiline_method_call_brace_layout.rb#106 RuboCop::Cop::Layout::MultilineMethodCallBraceLayout::ALWAYS_SAME_LINE_MESSAGE = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/layout/multiline_method_call_brace_layout.rb#99 +# source://rubocop/lib/rubocop/cop/layout/multiline_method_call_brace_layout.rb#99 RuboCop::Cop::Layout::MultilineMethodCallBraceLayout::NEW_LINE_MESSAGE = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/layout/multiline_method_call_brace_layout.rb#95 +# source://rubocop/lib/rubocop/cop/layout/multiline_method_call_brace_layout.rb#95 RuboCop::Cop::Layout::MultilineMethodCallBraceLayout::SAME_LINE_MESSAGE = T.let(T.unsafe(nil), String) # Checks the indentation of the method name part in method calls @@ -13857,7 +13985,7 @@ RuboCop::Cop::Layout::MultilineMethodCallBraceLayout::SAME_LINE_MESSAGE = T.let( # .b # .c # -# source://rubocop//lib/rubocop/cop/layout/multiline_method_call_indentation.rb#49 +# source://rubocop/lib/rubocop/cop/layout/multiline_method_call_indentation.rb#49 class RuboCop::Cop::Layout::MultilineMethodCallIndentation < ::RuboCop::Cop::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle include ::RuboCop::Cop::Alignment @@ -13866,92 +13994,92 @@ class RuboCop::Cop::Layout::MultilineMethodCallIndentation < ::RuboCop::Cop::Bas # @raise [ValidationError] # - # source://rubocop//lib/rubocop/cop/layout/multiline_method_call_indentation.rb#55 + # source://rubocop/lib/rubocop/cop/layout/multiline_method_call_indentation.rb#55 def validate_config; end private - # source://rubocop//lib/rubocop/cop/layout/multiline_method_call_indentation.rb#136 + # source://rubocop/lib/rubocop/cop/layout/multiline_method_call_indentation.rb#136 def align_with_base_message(rhs); end - # source://rubocop//lib/rubocop/cop/layout/multiline_method_call_indentation.rb#152 + # source://rubocop/lib/rubocop/cop/layout/multiline_method_call_indentation.rb#152 def alignment_base(node, rhs, given_style); end - # source://rubocop//lib/rubocop/cop/layout/multiline_method_call_indentation.rb#67 + # source://rubocop/lib/rubocop/cop/layout/multiline_method_call_indentation.rb#67 def autocorrect(corrector, node); end - # source://rubocop//lib/rubocop/cop/layout/multiline_method_call_indentation.rb#140 + # source://rubocop/lib/rubocop/cop/layout/multiline_method_call_indentation.rb#140 def base_source; end - # source://rubocop//lib/rubocop/cop/layout/multiline_method_call_indentation.rb#101 + # source://rubocop/lib/rubocop/cop/layout/multiline_method_call_indentation.rb#101 def extra_indentation(given_style, parent); end - # source://rubocop//lib/rubocop/cop/layout/multiline_method_call_indentation.rb#226 + # source://rubocop/lib/rubocop/cop/layout/multiline_method_call_indentation.rb#226 def find_multiline_block_chain_node(node); end - # source://rubocop//lib/rubocop/cop/layout/multiline_method_call_indentation.rb#237 + # source://rubocop/lib/rubocop/cop/layout/multiline_method_call_indentation.rb#237 def first_call_has_a_dot(node); end - # source://rubocop//lib/rubocop/cop/layout/multiline_method_call_indentation.rb#217 + # source://rubocop/lib/rubocop/cop/layout/multiline_method_call_indentation.rb#217 def get_dot_right_above(node); end - # source://rubocop//lib/rubocop/cop/layout/multiline_method_call_indentation.rb#113 + # source://rubocop/lib/rubocop/cop/layout/multiline_method_call_indentation.rb#113 def message(node, lhs, rhs); end - # source://rubocop//lib/rubocop/cop/layout/multiline_method_call_indentation.rb#144 + # source://rubocop/lib/rubocop/cop/layout/multiline_method_call_indentation.rb#144 def no_base_message(lhs, rhs, node); end - # source://rubocop//lib/rubocop/cop/layout/multiline_method_call_indentation.rb#87 + # source://rubocop/lib/rubocop/cop/layout/multiline_method_call_indentation.rb#87 def offending_range(node, lhs, rhs, given_style); end # @yield [operation_rhs.first_argument] # - # source://rubocop//lib/rubocop/cop/layout/multiline_method_call_indentation.rb#247 + # source://rubocop/lib/rubocop/cop/layout/multiline_method_call_indentation.rb#247 def operation_rhs(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/multiline_method_call_indentation.rb#257 + # source://rubocop/lib/rubocop/cop/layout/multiline_method_call_indentation.rb#257 def operator_rhs?(node, receiver); end # a # .b # .c # - # source://rubocop//lib/rubocop/cop/layout/multiline_method_call_indentation.rb#193 + # source://rubocop/lib/rubocop/cop/layout/multiline_method_call_indentation.rb#193 def receiver_alignment_base(node); end - # source://rubocop//lib/rubocop/cop/layout/multiline_method_call_indentation.rb#131 + # source://rubocop/lib/rubocop/cop/layout/multiline_method_call_indentation.rb#131 def relative_to_receiver_message(rhs); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/multiline_method_call_indentation.rb#71 + # source://rubocop/lib/rubocop/cop/layout/multiline_method_call_indentation.rb#71 def relevant_node?(send_node); end - # source://rubocop//lib/rubocop/cop/layout/multiline_method_call_indentation.rb#75 + # source://rubocop/lib/rubocop/cop/layout/multiline_method_call_indentation.rb#75 def right_hand_side(send_node); end # a.b # .c # - # source://rubocop//lib/rubocop/cop/layout/multiline_method_call_indentation.rb#181 + # source://rubocop/lib/rubocop/cop/layout/multiline_method_call_indentation.rb#181 def semantic_alignment_base(node, rhs); end - # source://rubocop//lib/rubocop/cop/layout/multiline_method_call_indentation.rb#201 + # source://rubocop/lib/rubocop/cop/layout/multiline_method_call_indentation.rb#201 def semantic_alignment_node(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/multiline_method_call_indentation.rb#127 + # source://rubocop/lib/rubocop/cop/layout/multiline_method_call_indentation.rb#127 def should_align_with_base?; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/multiline_method_call_indentation.rb#123 + # source://rubocop/lib/rubocop/cop/layout/multiline_method_call_indentation.rb#123 def should_indent_relative_to_receiver?; end - # source://rubocop//lib/rubocop/cop/layout/multiline_method_call_indentation.rb#163 + # source://rubocop/lib/rubocop/cop/layout/multiline_method_call_indentation.rb#163 def syntactic_alignment_base(lhs, rhs); end end @@ -13964,7 +14092,7 @@ end # first parameter of the definition, then the closing brace should be # on the same line as the last parameter of the definition. # -# If an method definition's opening brace is on the line above the first +# If a method definition's opening brace is on the line above the first # parameter of the definition, then the closing brace should be on the # line below the last parameter of the definition. # @@ -14051,29 +14179,29 @@ end # b) # end # -# source://rubocop//lib/rubocop/cop/layout/multiline_method_definition_brace_layout.rb#103 +# source://rubocop/lib/rubocop/cop/layout/multiline_method_definition_brace_layout.rb#103 class RuboCop::Cop::Layout::MultilineMethodDefinitionBraceLayout < ::RuboCop::Cop::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle include ::RuboCop::Cop::MultilineLiteralBraceLayout extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/layout/multiline_method_definition_brace_layout.rb#121 + # source://rubocop/lib/rubocop/cop/layout/multiline_method_definition_brace_layout.rb#121 def on_def(node); end - # source://rubocop//lib/rubocop/cop/layout/multiline_method_definition_brace_layout.rb#121 + # source://rubocop/lib/rubocop/cop/layout/multiline_method_definition_brace_layout.rb#121 def on_defs(node); end end -# source://rubocop//lib/rubocop/cop/layout/multiline_method_definition_brace_layout.rb#115 +# source://rubocop/lib/rubocop/cop/layout/multiline_method_definition_brace_layout.rb#115 RuboCop::Cop::Layout::MultilineMethodDefinitionBraceLayout::ALWAYS_NEW_LINE_MESSAGE = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/layout/multiline_method_definition_brace_layout.rb#118 +# source://rubocop/lib/rubocop/cop/layout/multiline_method_definition_brace_layout.rb#118 RuboCop::Cop::Layout::MultilineMethodDefinitionBraceLayout::ALWAYS_SAME_LINE_MESSAGE = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/layout/multiline_method_definition_brace_layout.rb#111 +# source://rubocop/lib/rubocop/cop/layout/multiline_method_definition_brace_layout.rb#111 RuboCop::Cop::Layout::MultilineMethodDefinitionBraceLayout::NEW_LINE_MESSAGE = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/layout/multiline_method_definition_brace_layout.rb#107 +# source://rubocop/lib/rubocop/cop/layout/multiline_method_definition_brace_layout.rb#107 RuboCop::Cop::Layout::MultilineMethodDefinitionBraceLayout::SAME_LINE_MESSAGE = T.let(T.unsafe(nil), String) # Ensures that each parameter in a multi-line method definition @@ -14125,23 +14253,23 @@ RuboCop::Cop::Layout::MultilineMethodDefinitionBraceLayout::SAME_LINE_MESSAGE = # }) # end # -# source://rubocop//lib/rubocop/cop/layout/multiline_method_parameter_line_breaks.rb#57 +# source://rubocop/lib/rubocop/cop/layout/multiline_method_parameter_line_breaks.rb#57 class RuboCop::Cop::Layout::MultilineMethodParameterLineBreaks < ::RuboCop::Cop::Base include ::RuboCop::Cop::MultilineElementLineBreaks extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/layout/multiline_method_parameter_line_breaks.rb#63 + # source://rubocop/lib/rubocop/cop/layout/multiline_method_parameter_line_breaks.rb#63 def on_def(node); end private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/multiline_method_parameter_line_breaks.rb#71 + # source://rubocop/lib/rubocop/cop/layout/multiline_method_parameter_line_breaks.rb#71 def ignore_last_element?; end end -# source://rubocop//lib/rubocop/cop/layout/multiline_method_parameter_line_breaks.rb#61 +# source://rubocop/lib/rubocop/cop/layout/multiline_method_parameter_line_breaks.rb#61 RuboCop::Cop::Layout::MultilineMethodParameterLineBreaks::MSG = T.let(T.unsafe(nil), String) # Checks the indentation of the right hand side operand in binary operations that @@ -14180,57 +14308,56 @@ RuboCop::Cop::Layout::MultilineMethodParameterLineBreaks::MSG = T.let(T.unsafe(n # something_else # end # -# source://rubocop//lib/rubocop/cop/layout/multiline_operation_indentation.rb#43 +# source://rubocop/lib/rubocop/cop/layout/multiline_operation_indentation.rb#43 class RuboCop::Cop::Layout::MultilineOperationIndentation < ::RuboCop::Cop::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle include ::RuboCop::Cop::Alignment include ::RuboCop::Cop::MultilineExpressionIndentation extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/layout/multiline_operation_indentation.rb#49 + # source://rubocop/lib/rubocop/cop/layout/multiline_operation_indentation.rb#49 def on_and(node); end - # source://rubocop//lib/rubocop/cop/layout/multiline_operation_indentation.rb#53 + # source://rubocop/lib/rubocop/cop/layout/multiline_operation_indentation.rb#53 def on_or(node); end # @raise [ValidationError] # - # source://rubocop//lib/rubocop/cop/layout/multiline_operation_indentation.rb#57 + # source://rubocop/lib/rubocop/cop/layout/multiline_operation_indentation.rb#57 def validate_config; end private - # source://rubocop//lib/rubocop/cop/layout/multiline_operation_indentation.rb#68 + # source://rubocop/lib/rubocop/cop/layout/multiline_operation_indentation.rb#68 def autocorrect(corrector, node); end - # source://rubocop//lib/rubocop/cop/layout/multiline_operation_indentation.rb#78 + # source://rubocop/lib/rubocop/cop/layout/multiline_operation_indentation.rb#78 def check_and_or(node); end - # source://rubocop//lib/rubocop/cop/layout/multiline_operation_indentation.rb#110 + # source://rubocop/lib/rubocop/cop/layout/multiline_operation_indentation.rb#109 def message(node, lhs, rhs); end - # source://rubocop//lib/rubocop/cop/layout/multiline_operation_indentation.rb#84 + # source://rubocop/lib/rubocop/cop/layout/multiline_operation_indentation.rb#83 def offending_range(node, lhs, rhs, given_style); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/multiline_operation_indentation.rb#72 + # source://rubocop/lib/rubocop/cop/layout/multiline_operation_indentation.rb#72 def relevant_node?(node); end - # source://rubocop//lib/rubocop/cop/layout/multiline_operation_indentation.rb#121 + # source://rubocop/lib/rubocop/cop/layout/multiline_operation_indentation.rb#120 def right_hand_side(send_node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/multiline_operation_indentation.rb#97 + # source://rubocop/lib/rubocop/cop/layout/multiline_operation_indentation.rb#96 def should_align?(node, rhs, given_style); end end -# Here we check if the parameters on a multi-line method call or -# definition are aligned. +# Check that the parameters on a multi-line method call or definition are aligned. # -# To set the alignment of the first argument, use the cop -# FirstParameterIndentation. +# To set the alignment of the first argument, use the +# `Layout/FirstParameterIndentation` cop. # # @example EnforcedStyle: with_first_parameter (default) # # good @@ -14291,41 +14418,41 @@ end # 123 # end # -# source://rubocop//lib/rubocop/cop/layout/parameter_alignment.rb#71 +# source://rubocop/lib/rubocop/cop/layout/parameter_alignment.rb#70 class RuboCop::Cop::Layout::ParameterAlignment < ::RuboCop::Cop::Base include ::RuboCop::Cop::Alignment extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/layout/parameter_alignment.rb#81 + # source://rubocop/lib/rubocop/cop/layout/parameter_alignment.rb#80 def on_def(node); end - # source://rubocop//lib/rubocop/cop/layout/parameter_alignment.rb#81 + # source://rubocop/lib/rubocop/cop/layout/parameter_alignment.rb#80 def on_defs(node); end private - # source://rubocop//lib/rubocop/cop/layout/parameter_alignment.rb#90 + # source://rubocop/lib/rubocop/cop/layout/parameter_alignment.rb#89 def autocorrect(corrector, node); end - # source://rubocop//lib/rubocop/cop/layout/parameter_alignment.rb#102 + # source://rubocop/lib/rubocop/cop/layout/parameter_alignment.rb#101 def base_column(node, args); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/parameter_alignment.rb#98 + # source://rubocop/lib/rubocop/cop/layout/parameter_alignment.rb#97 def fixed_indentation?; end - # source://rubocop//lib/rubocop/cop/layout/parameter_alignment.rb#94 + # source://rubocop/lib/rubocop/cop/layout/parameter_alignment.rb#93 def message(_node); end - # source://rubocop//lib/rubocop/cop/layout/parameter_alignment.rb#113 + # source://rubocop/lib/rubocop/cop/layout/parameter_alignment.rb#112 def target_method_lineno(node); end end -# source://rubocop//lib/rubocop/cop/layout/parameter_alignment.rb#75 +# source://rubocop/lib/rubocop/cop/layout/parameter_alignment.rb#74 RuboCop::Cop::Layout::ParameterAlignment::ALIGN_PARAMS_MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/layout/parameter_alignment.rb#78 +# source://rubocop/lib/rubocop/cop/layout/parameter_alignment.rb#77 RuboCop::Cop::Layout::ParameterAlignment::FIXED_INDENT_MSG = T.let(T.unsafe(nil), String) # Checks whether certain expressions, e.g. method calls, that could fit @@ -14365,91 +14492,71 @@ RuboCop::Cop::Layout::ParameterAlignment::FIXED_INDENT_MSG = T.let(T.unsafe(nil) # # good # foo(a) { |x| puts x } # -# source://rubocop//lib/rubocop/cop/layout/redundant_line_break.rb#45 +# source://rubocop/lib/rubocop/cop/layout/redundant_line_break.rb#45 class RuboCop::Cop::Layout::RedundantLineBreak < ::RuboCop::Cop::Base include ::RuboCop::Cop::CheckAssignment + include ::RuboCop::Cop::CheckSingleLineSuitability extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/layout/redundant_line_break.rb#55 + # source://rubocop/lib/rubocop/cop/layout/redundant_line_break.rb#56 def on_csend(node); end - # source://rubocop//lib/rubocop/cop/layout/redundant_line_break.rb#51 + # source://rubocop/lib/rubocop/cop/layout/redundant_line_break.rb#52 def on_lvasgn(node); end - # source://rubocop//lib/rubocop/cop/layout/redundant_line_break.rb#55 + # source://rubocop/lib/rubocop/cop/layout/redundant_line_break.rb#56 def on_send(node); end private - # source://rubocop//lib/rubocop/cop/layout/redundant_line_break.rb#73 + # source://rubocop/lib/rubocop/cop/layout/redundant_line_break.rb#74 def check_assignment(node, _rhs); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/redundant_line_break.rb#133 - def comment_within?(node); end - - # @return [Boolean] - # - # source://rubocop//lib/rubocop/cop/layout/redundant_line_break.rb#103 + # source://rubocop/lib/rubocop/cop/layout/redundant_line_break.rb#104 def configured_to_not_be_inspected?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/redundant_line_break.rb#127 + # source://rubocop/lib/rubocop/cop/layout/redundant_line_break.rb#121 def convertible_block?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/redundant_line_break.rb#69 + # source://rubocop/lib/rubocop/cop/layout/redundant_line_break.rb#70 def end_with_percent_blank_string?(processed_source); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/redundant_line_break.rb#97 + # source://rubocop/lib/rubocop/cop/layout/redundant_line_break.rb#98 def index_access_call_chained?(node); end - # source://rubocop//lib/rubocop/cop/layout/redundant_line_break.rb#155 - def max_line_length; end - # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/redundant_line_break.rb#86 + # source://rubocop/lib/rubocop/cop/layout/redundant_line_break.rb#87 def offense?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/redundant_line_break.rb#110 + # source://rubocop/lib/rubocop/cop/layout/redundant_line_break.rb#111 def other_cop_takes_precedence?(node); end - # source://rubocop//lib/rubocop/cop/layout/redundant_line_break.rb#79 + # source://rubocop/lib/rubocop/cop/layout/redundant_line_break.rb#80 def register_offense(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/redundant_line_break.rb#93 + # source://rubocop/lib/rubocop/cop/layout/redundant_line_break.rb#94 def require_backslash?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/redundant_line_break.rb#116 + # source://rubocop/lib/rubocop/cop/layout/redundant_line_break.rb#117 def single_line_block_chain_enabled?; end - - # @return [Boolean] - # - # source://rubocop//lib/rubocop/cop/layout/redundant_line_break.rb#120 - def suitable_as_single_line?(node); end - - # source://rubocop//lib/rubocop/cop/layout/redundant_line_break.rb#146 - def to_single_line(source); end - - # @return [Boolean] - # - # source://rubocop//lib/rubocop/cop/layout/redundant_line_break.rb#141 - def too_long?(node); end end -# source://rubocop//lib/rubocop/cop/layout/redundant_line_break.rb#49 +# source://rubocop/lib/rubocop/cop/layout/redundant_line_break.rb#50 RuboCop::Cop::Layout::RedundantLineBreak::MSG = T.let(T.unsafe(nil), String) # Checks whether the rescue and ensure keywords are aligned @@ -14471,92 +14578,92 @@ RuboCop::Cop::Layout::RedundantLineBreak::MSG = T.let(T.unsafe(nil), String) # puts 'error' # end # -# source://rubocop//lib/rubocop/cop/layout/rescue_ensure_alignment.rb#24 +# source://rubocop/lib/rubocop/cop/layout/rescue_ensure_alignment.rb#24 class RuboCop::Cop::Layout::RescueEnsureAlignment < ::RuboCop::Cop::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle include ::RuboCop::Cop::RangeHelp include ::RuboCop::Cop::EndKeywordAlignment extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/layout/rescue_ensure_alignment.rb#40 + # source://rubocop/lib/rubocop/cop/layout/rescue_ensure_alignment.rb#40 def on_ensure(node); end - # source://rubocop//lib/rubocop/cop/layout/rescue_ensure_alignment.rb#44 + # source://rubocop/lib/rubocop/cop/layout/rescue_ensure_alignment.rb#44 def on_new_investigation; end - # source://rubocop//lib/rubocop/cop/layout/rescue_ensure_alignment.rb#36 + # source://rubocop/lib/rubocop/cop/layout/rescue_ensure_alignment.rb#36 def on_resbody(node); end private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/rescue_ensure_alignment.rb#186 + # source://rubocop/lib/rubocop/cop/layout/rescue_ensure_alignment.rb#187 def access_modifier?(node); end - # source://rubocop//lib/rubocop/cop/layout/rescue_ensure_alignment.rb#163 + # source://rubocop/lib/rubocop/cop/layout/rescue_ensure_alignment.rb#164 def access_modifier_node(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/rescue_ensure_alignment.rb#149 + # source://rubocop/lib/rubocop/cop/layout/rescue_ensure_alignment.rb#150 def aligned_with_leading_dot?(do_keyword_line, send_node_loc, rescue_keyword_column); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/rescue_ensure_alignment.rb#136 + # source://rubocop/lib/rubocop/cop/layout/rescue_ensure_alignment.rb#137 def aligned_with_line_break_method?(ancestor_node, node); end - # source://rubocop//lib/rubocop/cop/layout/rescue_ensure_alignment.rb#195 + # source://rubocop/lib/rubocop/cop/layout/rescue_ensure_alignment.rb#196 def alignment_location(alignment_node); end # We will use ancestor or wrapper with access modifier. # - # source://rubocop//lib/rubocop/cop/layout/rescue_ensure_alignment.rb#116 + # source://rubocop/lib/rubocop/cop/layout/rescue_ensure_alignment.rb#117 def alignment_node(node); end - # source://rubocop//lib/rubocop/cop/layout/rescue_ensure_alignment.rb#95 + # source://rubocop/lib/rubocop/cop/layout/rescue_ensure_alignment.rb#96 def alignment_source(node, starting_loc); end - # source://rubocop//lib/rubocop/cop/layout/rescue_ensure_alignment.rb#132 + # source://rubocop/lib/rubocop/cop/layout/rescue_ensure_alignment.rb#133 def ancestor_node(node); end - # source://rubocop//lib/rubocop/cop/layout/rescue_ensure_alignment.rb#155 + # source://rubocop/lib/rubocop/cop/layout/rescue_ensure_alignment.rb#156 def assignment_node(node); end - # source://rubocop//lib/rubocop/cop/layout/rescue_ensure_alignment.rb#73 + # source://rubocop/lib/rubocop/cop/layout/rescue_ensure_alignment.rb#73 def autocorrect(corrector, node, alignment_location); end - # source://rubocop//lib/rubocop/cop/layout/rescue_ensure_alignment.rb#203 + # source://rubocop/lib/rubocop/cop/layout/rescue_ensure_alignment.rb#204 def begin_end_alignment_style; end # Check alignment of node with rescue or ensure modifiers. # - # source://rubocop//lib/rubocop/cop/layout/rescue_ensure_alignment.rb#57 + # source://rubocop/lib/rubocop/cop/layout/rescue_ensure_alignment.rb#57 def check(node); end - # source://rubocop//lib/rubocop/cop/layout/rescue_ensure_alignment.rb#83 + # source://rubocop/lib/rubocop/cop/layout/rescue_ensure_alignment.rb#83 def format_message(alignment_node, alignment_loc, kw_loc); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/rescue_ensure_alignment.rb#173 + # source://rubocop/lib/rubocop/cop/layout/rescue_ensure_alignment.rb#174 def modifier?(node); end - # source://rubocop//lib/rubocop/cop/layout/rescue_ensure_alignment.rb#179 + # source://rubocop/lib/rubocop/cop/layout/rescue_ensure_alignment.rb#180 def whitespace_range(node); end end -# source://rubocop//lib/rubocop/cop/layout/rescue_ensure_alignment.rb#34 +# source://rubocop/lib/rubocop/cop/layout/rescue_ensure_alignment.rb#34 RuboCop::Cop::Layout::RescueEnsureAlignment::ALTERNATIVE_ACCESS_MODIFIERS = T.let(T.unsafe(nil), Array) -# source://rubocop//lib/rubocop/cop/layout/rescue_ensure_alignment.rb#32 +# source://rubocop/lib/rubocop/cop/layout/rescue_ensure_alignment.rb#32 RuboCop::Cop::Layout::RescueEnsureAlignment::ANCESTOR_TYPES = T.let(T.unsafe(nil), Array) -# source://rubocop//lib/rubocop/cop/layout/rescue_ensure_alignment.rb#33 +# source://rubocop/lib/rubocop/cop/layout/rescue_ensure_alignment.rb#33 RuboCop::Cop::Layout::RescueEnsureAlignment::ANCESTOR_TYPES_WITH_ACCESS_MODIFIERS = T.let(T.unsafe(nil), Array) -# source://rubocop//lib/rubocop/cop/layout/rescue_ensure_alignment.rb#29 +# source://rubocop/lib/rubocop/cop/layout/rescue_ensure_alignment.rb#29 RuboCop::Cop::Layout::RescueEnsureAlignment::MSG = T.let(T.unsafe(nil), String) # Checks if method calls are chained onto single line blocks. It considers that a @@ -14575,37 +14682,37 @@ RuboCop::Cop::Layout::RescueEnsureAlignment::MSG = T.let(T.unsafe(nil), String) # item.cond? # end.join('-') # -# source://rubocop//lib/rubocop/cop/layout/single_line_block_chain.rb#22 +# source://rubocop/lib/rubocop/cop/layout/single_line_block_chain.rb#22 class RuboCop::Cop::Layout::SingleLineBlockChain < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/layout/single_line_block_chain.rb#32 + # source://rubocop/lib/rubocop/cop/layout/single_line_block_chain.rb#32 def on_csend(node); end - # source://rubocop//lib/rubocop/cop/layout/single_line_block_chain.rb#32 + # source://rubocop/lib/rubocop/cop/layout/single_line_block_chain.rb#32 def on_send(node); end private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/single_line_block_chain.rb#56 + # source://rubocop/lib/rubocop/cop/layout/single_line_block_chain.rb#56 def call_method_after_block?(node, dot_range, closing_block_delimiter_line_num); end - # source://rubocop//lib/rubocop/cop/layout/single_line_block_chain.rb#40 + # source://rubocop/lib/rubocop/cop/layout/single_line_block_chain.rb#40 def offending_range(node); end - # source://rubocop//lib/rubocop/cop/layout/single_line_block_chain.rb#62 + # source://rubocop/lib/rubocop/cop/layout/single_line_block_chain.rb#62 def selector_range(node); end class << self - # source://rubocop//lib/rubocop/cop/layout/single_line_block_chain.rb#28 + # source://rubocop/lib/rubocop/cop/layout/single_line_block_chain.rb#28 def autocorrect_incompatible_with; end end end -# source://rubocop//lib/rubocop/cop/layout/single_line_block_chain.rb#26 +# source://rubocop/lib/rubocop/cop/layout/single_line_block_chain.rb#26 RuboCop::Cop::Layout::SingleLineBlockChain::MSG = T.let(T.unsafe(nil), String) # Checks for colon (:) not followed by some kind of space. @@ -14619,28 +14726,28 @@ RuboCop::Cop::Layout::SingleLineBlockChain::MSG = T.let(T.unsafe(nil), String) # # good # def f(a:, b: 2); {a: 3}; end # -# source://rubocop//lib/rubocop/cop/layout/space_after_colon.rb#16 +# source://rubocop/lib/rubocop/cop/layout/space_after_colon.rb#16 class RuboCop::Cop::Layout::SpaceAfterColon < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/layout/space_after_colon.rb#29 + # source://rubocop/lib/rubocop/cop/layout/space_after_colon.rb#29 def on_kwoptarg(node); end - # source://rubocop//lib/rubocop/cop/layout/space_after_colon.rb#21 + # source://rubocop/lib/rubocop/cop/layout/space_after_colon.rb#21 def on_pair(node); end private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/space_after_colon.rb#43 + # source://rubocop/lib/rubocop/cop/layout/space_after_colon.rb#43 def followed_by_space?(colon); end - # source://rubocop//lib/rubocop/cop/layout/space_after_colon.rb#39 + # source://rubocop/lib/rubocop/cop/layout/space_after_colon.rb#39 def register_offense(colon); end end -# source://rubocop//lib/rubocop/cop/layout/space_after_colon.rb#19 +# source://rubocop/lib/rubocop/cop/layout/space_after_colon.rb#19 RuboCop::Cop::Layout::SpaceAfterColon::MSG = T.let(T.unsafe(nil), String) # Checks for comma (,) not followed by some kind of space. @@ -14655,22 +14762,22 @@ RuboCop::Cop::Layout::SpaceAfterColon::MSG = T.let(T.unsafe(nil), String) # [1, 2] # { foo:bar, } # -# source://rubocop//lib/rubocop/cop/layout/space_after_comma.rb#17 +# source://rubocop/lib/rubocop/cop/layout/space_after_comma.rb#17 class RuboCop::Cop::Layout::SpaceAfterComma < ::RuboCop::Cop::Base include ::RuboCop::Cop::SpaceAfterPunctuation extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/layout/space_after_comma.rb#26 + # source://rubocop/lib/rubocop/cop/layout/space_after_comma.rb#26 def kind(token); end - # source://rubocop//lib/rubocop/cop/layout/space_after_comma.rb#21 + # source://rubocop/lib/rubocop/cop/layout/space_after_comma.rb#21 def space_style_before_rcurly; end private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/space_after_comma.rb#32 + # source://rubocop/lib/rubocop/cop/layout/space_after_comma.rb#32 def before_semicolon?(token); end end @@ -14686,19 +14793,19 @@ end # def func(x) end # def method=(y) end # -# source://rubocop//lib/rubocop/cop/layout/space_after_method_name.rb#17 +# source://rubocop/lib/rubocop/cop/layout/space_after_method_name.rb#17 class RuboCop::Cop::Layout::SpaceAfterMethodName < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/layout/space_after_method_name.rb#23 + # source://rubocop/lib/rubocop/cop/layout/space_after_method_name.rb#23 def on_def(node); end - # source://rubocop//lib/rubocop/cop/layout/space_after_method_name.rb#23 + # source://rubocop/lib/rubocop/cop/layout/space_after_method_name.rb#23 def on_defs(node); end end -# source://rubocop//lib/rubocop/cop/layout/space_after_method_name.rb#21 +# source://rubocop/lib/rubocop/cop/layout/space_after_method_name.rb#21 RuboCop::Cop::Layout::SpaceAfterMethodName::MSG = T.let(T.unsafe(nil), String) # Checks for space after `!`. @@ -14710,26 +14817,26 @@ RuboCop::Cop::Layout::SpaceAfterMethodName::MSG = T.let(T.unsafe(nil), String) # # good # !something # -# source://rubocop//lib/rubocop/cop/layout/space_after_not.rb#14 +# source://rubocop/lib/rubocop/cop/layout/space_after_not.rb#14 class RuboCop::Cop::Layout::SpaceAfterNot < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/layout/space_after_not.rb#21 + # source://rubocop/lib/rubocop/cop/layout/space_after_not.rb#21 def on_send(node); end private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/space_after_not.rb#33 + # source://rubocop/lib/rubocop/cop/layout/space_after_not.rb#33 def whitespace_after_operator?(node); end end -# source://rubocop//lib/rubocop/cop/layout/space_after_not.rb#18 +# source://rubocop/lib/rubocop/cop/layout/space_after_not.rb#18 RuboCop::Cop::Layout::SpaceAfterNot::MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/layout/space_after_not.rb#19 +# source://rubocop/lib/rubocop/cop/layout/space_after_not.rb#19 RuboCop::Cop::Layout::SpaceAfterNot::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Checks for semicolon (;) not followed by some kind of space. @@ -14741,15 +14848,15 @@ RuboCop::Cop::Layout::SpaceAfterNot::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Arr # # good # x = 1; y = 2 # -# source://rubocop//lib/rubocop/cop/layout/space_after_semicolon.rb#14 +# source://rubocop/lib/rubocop/cop/layout/space_after_semicolon.rb#14 class RuboCop::Cop::Layout::SpaceAfterSemicolon < ::RuboCop::Cop::Base include ::RuboCop::Cop::SpaceAfterPunctuation extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/layout/space_after_semicolon.rb#23 + # source://rubocop/lib/rubocop/cop/layout/space_after_semicolon.rb#23 def kind(token); end - # source://rubocop//lib/rubocop/cop/layout/space_after_semicolon.rb#18 + # source://rubocop/lib/rubocop/cop/layout/space_after_semicolon.rb#18 def space_style_before_rcurly; end end @@ -14774,59 +14881,59 @@ end # {}.each { | x, y | puts x } # ->( x, y ) { puts x } # -# source://rubocop//lib/rubocop/cop/layout/space_around_block_parameters.rb#27 +# source://rubocop/lib/rubocop/cop/layout/space_around_block_parameters.rb#27 class RuboCop::Cop::Layout::SpaceAroundBlockParameters < ::RuboCop::Cop::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/layout/space_around_block_parameters.rb#32 + # source://rubocop/lib/rubocop/cop/layout/space_around_block_parameters.rb#32 def on_block(node); end private - # source://rubocop//lib/rubocop/cop/layout/space_around_block_parameters.rb#65 + # source://rubocop/lib/rubocop/cop/layout/space_around_block_parameters.rb#65 def check_after_closing_pipe(arguments); end - # source://rubocop//lib/rubocop/cop/layout/space_around_block_parameters.rb#125 + # source://rubocop/lib/rubocop/cop/layout/space_around_block_parameters.rb#125 def check_arg(arg); end - # source://rubocop//lib/rubocop/cop/layout/space_around_block_parameters.rb#103 + # source://rubocop/lib/rubocop/cop/layout/space_around_block_parameters.rb#103 def check_closing_pipe_space(arguments, closing_pipe); end - # source://rubocop//lib/rubocop/cop/layout/space_around_block_parameters.rb#121 + # source://rubocop/lib/rubocop/cop/layout/space_around_block_parameters.rb#121 def check_each_arg(args); end - # source://rubocop//lib/rubocop/cop/layout/space_around_block_parameters.rb#56 + # source://rubocop/lib/rubocop/cop/layout/space_around_block_parameters.rb#56 def check_inside_pipes(arguments); end - # source://rubocop//lib/rubocop/cop/layout/space_around_block_parameters.rb#150 + # source://rubocop/lib/rubocop/cop/layout/space_around_block_parameters.rb#150 def check_no_space(space_begin_pos, space_end_pos, msg); end - # source://rubocop//lib/rubocop/cop/layout/space_around_block_parameters.rb#73 + # source://rubocop/lib/rubocop/cop/layout/space_around_block_parameters.rb#73 def check_no_space_style_inside_pipes(arguments); end - # source://rubocop//lib/rubocop/cop/layout/space_around_block_parameters.rb#92 + # source://rubocop/lib/rubocop/cop/layout/space_around_block_parameters.rb#92 def check_opening_pipe_space(arguments, opening_pipe); end - # source://rubocop//lib/rubocop/cop/layout/space_around_block_parameters.rb#136 + # source://rubocop/lib/rubocop/cop/layout/space_around_block_parameters.rb#136 def check_space(space_begin_pos, space_end_pos, range, msg, node = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/layout/space_around_block_parameters.rb#85 + # source://rubocop/lib/rubocop/cop/layout/space_around_block_parameters.rb#85 def check_space_style_inside_pipes(arguments); end - # source://rubocop//lib/rubocop/cop/layout/space_around_block_parameters.rb#113 + # source://rubocop/lib/rubocop/cop/layout/space_around_block_parameters.rb#113 def last_end_pos_inside_pipes(arguments, range); end - # source://rubocop//lib/rubocop/cop/layout/space_around_block_parameters.rb#44 + # source://rubocop/lib/rubocop/cop/layout/space_around_block_parameters.rb#44 def pipes(arguments); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/space_around_block_parameters.rb#48 + # source://rubocop/lib/rubocop/cop/layout/space_around_block_parameters.rb#48 def pipes?(arguments); end - # source://rubocop//lib/rubocop/cop/layout/space_around_block_parameters.rb#52 + # source://rubocop/lib/rubocop/cop/layout/space_around_block_parameters.rb#52 def style_parameter_name; end end @@ -14854,42 +14961,42 @@ end # # do something... # end # -# source://rubocop//lib/rubocop/cop/layout/space_around_equals_in_parameter_default.rb#30 +# source://rubocop/lib/rubocop/cop/layout/space_around_equals_in_parameter_default.rb#30 class RuboCop::Cop::Layout::SpaceAroundEqualsInParameterDefault < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp include ::RuboCop::Cop::SurroundingSpace include ::RuboCop::Cop::ConfigurableEnforcedStyle extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/layout/space_around_equals_in_parameter_default.rb#38 + # source://rubocop/lib/rubocop/cop/layout/space_around_equals_in_parameter_default.rb#38 def on_optarg(node); end private - # source://rubocop//lib/rubocop/cop/layout/space_around_equals_in_parameter_default.rb#67 + # source://rubocop/lib/rubocop/cop/layout/space_around_equals_in_parameter_default.rb#67 def autocorrect(corrector, range); end - # source://rubocop//lib/rubocop/cop/layout/space_around_equals_in_parameter_default.rb#46 + # source://rubocop/lib/rubocop/cop/layout/space_around_equals_in_parameter_default.rb#46 def check_optarg(arg, equals, value); end - # source://rubocop//lib/rubocop/cop/layout/space_around_equals_in_parameter_default.rb#58 + # source://rubocop/lib/rubocop/cop/layout/space_around_equals_in_parameter_default.rb#58 def incorrect_style_detected(arg, value); end - # source://rubocop//lib/rubocop/cop/layout/space_around_equals_in_parameter_default.rb#83 + # source://rubocop/lib/rubocop/cop/layout/space_around_equals_in_parameter_default.rb#83 def message(_node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/space_around_equals_in_parameter_default.rb#79 + # source://rubocop/lib/rubocop/cop/layout/space_around_equals_in_parameter_default.rb#79 def no_surrounding_space?(arg, equals); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/space_around_equals_in_parameter_default.rb#75 + # source://rubocop/lib/rubocop/cop/layout/space_around_equals_in_parameter_default.rb#75 def space_on_both_sides?(arg, equals); end end -# source://rubocop//lib/rubocop/cop/layout/space_around_equals_in_parameter_default.rb#36 +# source://rubocop/lib/rubocop/cop/layout/space_around_equals_in_parameter_default.rb#36 RuboCop::Cop::Layout::SpaceAroundEqualsInParameterDefault::MSG = T.let(T.unsafe(nil), String) # Checks the spacing around the keywords. @@ -14914,190 +15021,190 @@ RuboCop::Cop::Layout::SpaceAroundEqualsInParameterDefault::MSG = T.let(T.unsafe( # # something = 123 if test # -# source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#27 +# source://rubocop/lib/rubocop/cop/layout/space_around_keyword.rb#27 class RuboCop::Cop::Layout::SpaceAroundKeyword < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#40 + # source://rubocop/lib/rubocop/cop/layout/space_around_keyword.rb#40 def on_and(node); end - # source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#44 + # source://rubocop/lib/rubocop/cop/layout/space_around_keyword.rb#44 def on_block(node); end - # source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#48 + # source://rubocop/lib/rubocop/cop/layout/space_around_keyword.rb#48 def on_break(node); end - # source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#52 + # source://rubocop/lib/rubocop/cop/layout/space_around_keyword.rb#52 def on_case(node); end - # source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#56 + # source://rubocop/lib/rubocop/cop/layout/space_around_keyword.rb#56 def on_case_match(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#156 + # source://rubocop/lib/rubocop/cop/layout/space_around_keyword.rb#156 def on_defined?(node); end - # source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#60 + # source://rubocop/lib/rubocop/cop/layout/space_around_keyword.rb#60 def on_ensure(node); end - # source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#64 + # source://rubocop/lib/rubocop/cop/layout/space_around_keyword.rb#64 def on_for(node); end - # source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#68 + # source://rubocop/lib/rubocop/cop/layout/space_around_keyword.rb#68 def on_if(node); end - # source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#72 + # source://rubocop/lib/rubocop/cop/layout/space_around_keyword.rb#72 def on_if_guard(node); end - # source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#76 + # source://rubocop/lib/rubocop/cop/layout/space_around_keyword.rb#76 def on_in_pattern(node); end - # source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#80 + # source://rubocop/lib/rubocop/cop/layout/space_around_keyword.rb#80 def on_kwbegin(node); end # Handle one-line pattern matching syntax (`in`) with `Parser::Ruby27`. # - # source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#85 + # source://rubocop/lib/rubocop/cop/layout/space_around_keyword.rb#85 def on_match_pattern(node); end # Handle one-line pattern matching syntax (`in`) with `Parser::Ruby30`. # - # source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#92 + # source://rubocop/lib/rubocop/cop/layout/space_around_keyword.rb#92 def on_match_pattern_p(node); end - # source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#96 + # source://rubocop/lib/rubocop/cop/layout/space_around_keyword.rb#96 def on_next(node); end - # source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#100 + # source://rubocop/lib/rubocop/cop/layout/space_around_keyword.rb#100 def on_or(node); end - # source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#104 + # source://rubocop/lib/rubocop/cop/layout/space_around_keyword.rb#104 def on_postexe(node); end - # source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#108 + # source://rubocop/lib/rubocop/cop/layout/space_around_keyword.rb#108 def on_preexe(node); end - # source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#112 + # source://rubocop/lib/rubocop/cop/layout/space_around_keyword.rb#112 def on_resbody(node); end - # source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#116 + # source://rubocop/lib/rubocop/cop/layout/space_around_keyword.rb#116 def on_rescue(node); end - # source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#120 + # source://rubocop/lib/rubocop/cop/layout/space_around_keyword.rb#120 def on_return(node); end - # source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#124 + # source://rubocop/lib/rubocop/cop/layout/space_around_keyword.rb#124 def on_send(node); end - # source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#128 + # source://rubocop/lib/rubocop/cop/layout/space_around_keyword.rb#128 def on_super(node); end - # source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#136 + # source://rubocop/lib/rubocop/cop/layout/space_around_keyword.rb#136 def on_unless_guard(node); end - # source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#140 + # source://rubocop/lib/rubocop/cop/layout/space_around_keyword.rb#140 def on_until(node); end - # source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#144 + # source://rubocop/lib/rubocop/cop/layout/space_around_keyword.rb#144 def on_when(node); end - # source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#148 + # source://rubocop/lib/rubocop/cop/layout/space_around_keyword.rb#148 def on_while(node); end - # source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#152 + # source://rubocop/lib/rubocop/cop/layout/space_around_keyword.rb#152 def on_yield(node); end - # source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#132 + # source://rubocop/lib/rubocop/cop/layout/space_around_keyword.rb#132 def on_zsuper(node); end private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#235 + # source://rubocop/lib/rubocop/cop/layout/space_around_keyword.rb#235 def accept_left_parenthesis?(range); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#239 + # source://rubocop/lib/rubocop/cop/layout/space_around_keyword.rb#239 def accept_left_square_bracket?(range); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#243 + # source://rubocop/lib/rubocop/cop/layout/space_around_keyword.rb#243 def accept_namespace_operator?(range); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#228 + # source://rubocop/lib/rubocop/cop/layout/space_around_keyword.rb#228 def accepted_opening_delimiter?(range, char); end - # source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#162 + # source://rubocop/lib/rubocop/cop/layout/space_around_keyword.rb#162 def check(node, locations, begin_keyword = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#177 + # source://rubocop/lib/rubocop/cop/layout/space_around_keyword.rb#177 def check_begin(node, range, begin_keyword); end - # source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#183 + # source://rubocop/lib/rubocop/cop/layout/space_around_keyword.rb#183 def check_end(node, range, begin_keyword); end - # source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#196 + # source://rubocop/lib/rubocop/cop/layout/space_around_keyword.rb#196 def check_keyword(node, range); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#192 + # source://rubocop/lib/rubocop/cop/layout/space_around_keyword.rb#192 def do?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#251 + # source://rubocop/lib/rubocop/cop/layout/space_around_keyword.rb#251 def namespace_operator?(range, pos); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#255 + # source://rubocop/lib/rubocop/cop/layout/space_around_keyword.rb#255 def preceded_by_operator?(node, _range); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#247 + # source://rubocop/lib/rubocop/cop/layout/space_around_keyword.rb#247 def safe_navigation_call?(range, pos); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#217 + # source://rubocop/lib/rubocop/cop/layout/space_around_keyword.rb#217 def space_after_missing?(range); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#210 + # source://rubocop/lib/rubocop/cop/layout/space_around_keyword.rb#210 def space_before_missing?(range); end end -# source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#36 +# source://rubocop/lib/rubocop/cop/layout/space_around_keyword.rb#36 RuboCop::Cop::Layout::SpaceAroundKeyword::ACCEPT_LEFT_PAREN = T.let(T.unsafe(nil), Array) -# source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#37 +# source://rubocop/lib/rubocop/cop/layout/space_around_keyword.rb#37 RuboCop::Cop::Layout::SpaceAroundKeyword::ACCEPT_LEFT_SQUARE_BRACKET = T.let(T.unsafe(nil), Array) -# source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#38 +# source://rubocop/lib/rubocop/cop/layout/space_around_keyword.rb#38 RuboCop::Cop::Layout::SpaceAroundKeyword::ACCEPT_NAMESPACE_OPERATOR = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#33 +# source://rubocop/lib/rubocop/cop/layout/space_around_keyword.rb#33 RuboCop::Cop::Layout::SpaceAroundKeyword::DO = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#31 +# source://rubocop/lib/rubocop/cop/layout/space_around_keyword.rb#31 RuboCop::Cop::Layout::SpaceAroundKeyword::MSG_AFTER = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#30 +# source://rubocop/lib/rubocop/cop/layout/space_around_keyword.rb#30 RuboCop::Cop::Layout::SpaceAroundKeyword::MSG_BEFORE = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#35 +# source://rubocop/lib/rubocop/cop/layout/space_around_keyword.rb#35 RuboCop::Cop::Layout::SpaceAroundKeyword::NAMESPACE_OPERATOR = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#34 +# source://rubocop/lib/rubocop/cop/layout/space_around_keyword.rb#34 RuboCop::Cop::Layout::SpaceAroundKeyword::SAFE_NAVIGATION = T.let(T.unsafe(nil), String) # Checks method call operators to not have spaces around them. @@ -15131,39 +15238,39 @@ RuboCop::Cop::Layout::SpaceAroundKeyword::SAFE_NAVIGATION = T.let(T.unsafe(nil), # RuboCop::Cop::Base # ::RuboCop::Cop # -# source://rubocop//lib/rubocop/cop/layout/space_around_method_call_operator.rb#37 +# source://rubocop/lib/rubocop/cop/layout/space_around_method_call_operator.rb#37 class RuboCop::Cop::Layout::SpaceAroundMethodCallOperator < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/layout/space_around_method_call_operator.rb#53 + # source://rubocop/lib/rubocop/cop/layout/space_around_method_call_operator.rb#53 def on_const(node); end - # source://rubocop//lib/rubocop/cop/layout/space_around_method_call_operator.rb#45 + # source://rubocop/lib/rubocop/cop/layout/space_around_method_call_operator.rb#45 def on_csend(node); end - # source://rubocop//lib/rubocop/cop/layout/space_around_method_call_operator.rb#45 + # source://rubocop/lib/rubocop/cop/layout/space_around_method_call_operator.rb#45 def on_send(node); end private - # source://rubocop//lib/rubocop/cop/layout/space_around_method_call_operator.rb#87 + # source://rubocop/lib/rubocop/cop/layout/space_around_method_call_operator.rb#87 def check_space(begin_pos, end_pos); end - # source://rubocop//lib/rubocop/cop/layout/space_around_method_call_operator.rb#67 + # source://rubocop/lib/rubocop/cop/layout/space_around_method_call_operator.rb#67 def check_space_after_dot(node); end - # source://rubocop//lib/rubocop/cop/layout/space_around_method_call_operator.rb#81 + # source://rubocop/lib/rubocop/cop/layout/space_around_method_call_operator.rb#81 def check_space_after_double_colon(node); end - # source://rubocop//lib/rubocop/cop/layout/space_around_method_call_operator.rb#61 + # source://rubocop/lib/rubocop/cop/layout/space_around_method_call_operator.rb#61 def check_space_before_dot(node); end end -# source://rubocop//lib/rubocop/cop/layout/space_around_method_call_operator.rb#43 +# source://rubocop/lib/rubocop/cop/layout/space_around_method_call_operator.rb#43 RuboCop::Cop::Layout::SpaceAroundMethodCallOperator::MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/layout/space_around_method_call_operator.rb#41 +# source://rubocop/lib/rubocop/cop/layout/space_around_method_call_operator.rb#41 RuboCop::Cop::Layout::SpaceAroundMethodCallOperator::SPACES_REGEXP = T.let(T.unsafe(nil), Regexp) # Checks that operators have space around them, except for ** which @@ -15222,153 +15329,153 @@ RuboCop::Cop::Layout::SpaceAroundMethodCallOperator::SPACES_REGEXP = T.let(T.uns # # good # 1 / 48r # -# source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#67 +# source://rubocop/lib/rubocop/cop/layout/space_around_operators.rb#67 class RuboCop::Cop::Layout::SpaceAroundOperators < ::RuboCop::Cop::Base include ::RuboCop::Cop::PrecedingFollowingAlignment include ::RuboCop::Cop::RangeHelp include ::RuboCop::Cop::RationalLiteral extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#133 + # source://rubocop/lib/rubocop/cop/layout/space_around_operators.rb#132 def on_and(node); end - # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#117 + # source://rubocop/lib/rubocop/cop/layout/space_around_operators.rb#115 def on_and_asgn(node); end - # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#117 + # source://rubocop/lib/rubocop/cop/layout/space_around_operators.rb#115 def on_assignment(node); end - # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#133 + # source://rubocop/lib/rubocop/cop/layout/space_around_operators.rb#132 def on_binary(node); end - # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#125 + # source://rubocop/lib/rubocop/cop/layout/space_around_operators.rb#115 def on_casgn(node); end - # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#133 + # source://rubocop/lib/rubocop/cop/layout/space_around_operators.rb#124 def on_class(node); end - # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#117 + # source://rubocop/lib/rubocop/cop/layout/space_around_operators.rb#115 def on_cvasgn(node); end - # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#117 + # source://rubocop/lib/rubocop/cop/layout/space_around_operators.rb#115 def on_gvasgn(node); end - # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#92 + # source://rubocop/lib/rubocop/cop/layout/space_around_operators.rb#92 def on_if(node); end - # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#117 + # source://rubocop/lib/rubocop/cop/layout/space_around_operators.rb#115 def on_ivasgn(node); end - # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#117 + # source://rubocop/lib/rubocop/cop/layout/space_around_operators.rb#115 def on_lvasgn(node); end - # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#117 + # source://rubocop/lib/rubocop/cop/layout/space_around_operators.rb#115 def on_masgn(node); end - # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#149 + # source://rubocop/lib/rubocop/cop/layout/space_around_operators.rb#148 def on_match_pattern(node); end - # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#141 + # source://rubocop/lib/rubocop/cop/layout/space_around_operators.rb#115 def on_op_asgn(node); end - # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#133 + # source://rubocop/lib/rubocop/cop/layout/space_around_operators.rb#132 def on_or(node); end - # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#117 + # source://rubocop/lib/rubocop/cop/layout/space_around_operators.rb#115 def on_or_asgn(node); end - # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#84 + # source://rubocop/lib/rubocop/cop/layout/space_around_operators.rb#84 def on_pair(node); end - # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#99 + # source://rubocop/lib/rubocop/cop/layout/space_around_operators.rb#99 def on_resbody(node); end - # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#80 + # source://rubocop/lib/rubocop/cop/layout/space_around_operators.rb#80 def on_sclass(node); end - # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#107 + # source://rubocop/lib/rubocop/cop/layout/space_around_operators.rb#105 def on_send(node); end - # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#141 - def on_special_asgn(node); end + # source://rubocop/lib/rubocop/cop/layout/space_around_operators.rb#140 + def on_setter_method(node); end private - # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#259 + # source://rubocop/lib/rubocop/cop/layout/space_around_operators.rb#258 def align_hash_cop_config; end - # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#198 + # source://rubocop/lib/rubocop/cop/layout/space_around_operators.rb#197 def autocorrect(corrector, range, right_operand); end - # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#179 + # source://rubocop/lib/rubocop/cop/layout/space_around_operators.rb#178 def check_operator(type, operator, right_operand); end - # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#212 + # source://rubocop/lib/rubocop/cop/layout/space_around_operators.rb#211 def enclose_operator_with_space(corrector, range); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#239 + # source://rubocop/lib/rubocop/cop/layout/space_around_operators.rb#238 def excess_leading_space?(type, operator, with_space); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#254 + # source://rubocop/lib/rubocop/cop/layout/space_around_operators.rb#253 def excess_trailing_space?(right_operand, with_space); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#277 + # source://rubocop/lib/rubocop/cop/layout/space_around_operators.rb#276 def force_equal_sign_alignment?; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#263 + # source://rubocop/lib/rubocop/cop/layout/space_around_operators.rb#262 def hash_table_style?; end # @yield [msg] # - # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#193 + # source://rubocop/lib/rubocop/cop/layout/space_around_operators.rb#192 def offense(type, operator, with_space, right_operand); end - # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#225 + # source://rubocop/lib/rubocop/cop/layout/space_around_operators.rb#224 def offense_message(type, operator, with_space, right_operand); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#175 + # source://rubocop/lib/rubocop/cop/layout/space_around_operators.rb#174 def operator_with_regular_syntax?(send_node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#169 + # source://rubocop/lib/rubocop/cop/layout/space_around_operators.rb#168 def regular_operator?(send_node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#281 + # source://rubocop/lib/rubocop/cop/layout/space_around_operators.rb#280 def should_not_have_surrounding_space?(operator, right_operand); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#267 + # source://rubocop/lib/rubocop/cop/layout/space_around_operators.rb#266 def space_around_exponent_operator?; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#271 + # source://rubocop/lib/rubocop/cop/layout/space_around_operators.rb#270 def space_around_slash_operator?(right_operand); end class << self - # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#76 + # source://rubocop/lib/rubocop/cop/layout/space_around_operators.rb#76 def autocorrect_incompatible_with; end end end -# source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#74 +# source://rubocop/lib/rubocop/cop/layout/space_around_operators.rb#74 RuboCop::Cop::Layout::SpaceAroundOperators::EXCESSIVE_SPACE = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#73 +# source://rubocop/lib/rubocop/cop/layout/space_around_operators.rb#73 RuboCop::Cop::Layout::SpaceAroundOperators::IRREGULAR_METHODS = T.let(T.unsafe(nil), Array) # Checks that block braces have or don't have a space before the opening @@ -15407,64 +15514,64 @@ RuboCop::Cop::Layout::SpaceAroundOperators::IRREGULAR_METHODS = T.let(T.unsafe(n # # good # 7.times{} # -# source://rubocop//lib/rubocop/cop/layout/space_before_block_braces.rb#44 +# source://rubocop/lib/rubocop/cop/layout/space_before_block_braces.rb#44 class RuboCop::Cop::Layout::SpaceBeforeBlockBraces < ::RuboCop::Cop::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/layout/space_before_block_braces.rb#56 + # source://rubocop/lib/rubocop/cop/layout/space_before_block_braces.rb#56 def on_block(node); end - # source://rubocop//lib/rubocop/cop/layout/space_before_block_braces.rb#56 + # source://rubocop/lib/rubocop/cop/layout/space_before_block_braces.rb#56 def on_numblock(node); end private - # source://rubocop//lib/rubocop/cop/layout/space_before_block_braces.rb#133 + # source://rubocop/lib/rubocop/cop/layout/space_before_block_braces.rb#133 def autocorrect(corrector, range); end - # source://rubocop//lib/rubocop/cop/layout/space_before_block_braces.rb#153 + # source://rubocop/lib/rubocop/cop/layout/space_before_block_braces.rb#153 def block_delimiters_style; end - # source://rubocop//lib/rubocop/cop/layout/space_before_block_braces.rb#83 + # source://rubocop/lib/rubocop/cop/layout/space_before_block_braces.rb#83 def check_empty(left_brace, space_plus_brace, used_style); end - # source://rubocop//lib/rubocop/cop/layout/space_before_block_braces.rb#109 + # source://rubocop/lib/rubocop/cop/layout/space_before_block_braces.rb#109 def check_non_empty(left_brace, space_plus_brace, used_style); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/space_before_block_braces.rb#149 + # source://rubocop/lib/rubocop/cop/layout/space_before_block_braces.rb#149 def conflict_with_block_delimiters?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/space_before_block_braces.rb#157 + # source://rubocop/lib/rubocop/cop/layout/space_before_block_braces.rb#157 def empty_braces?(loc); end - # source://rubocop//lib/rubocop/cop/layout/space_before_block_braces.rb#101 + # source://rubocop/lib/rubocop/cop/layout/space_before_block_braces.rb#101 def handle_different_styles_for_empty_braces(used_style); end - # source://rubocop//lib/rubocop/cop/layout/space_before_block_braces.rb#124 + # source://rubocop/lib/rubocop/cop/layout/space_before_block_braces.rb#124 def space_detected(left_brace, space_plus_brace); end - # source://rubocop//lib/rubocop/cop/layout/space_before_block_braces.rb#117 + # source://rubocop/lib/rubocop/cop/layout/space_before_block_braces.rb#117 def space_missing(left_brace); end - # source://rubocop//lib/rubocop/cop/layout/space_before_block_braces.rb#140 + # source://rubocop/lib/rubocop/cop/layout/space_before_block_braces.rb#140 def style_for_empty_braces; end class << self - # source://rubocop//lib/rubocop/cop/layout/space_before_block_braces.rb#52 + # source://rubocop/lib/rubocop/cop/layout/space_before_block_braces.rb#52 def autocorrect_incompatible_with; end end end -# source://rubocop//lib/rubocop/cop/layout/space_before_block_braces.rb#50 +# source://rubocop/lib/rubocop/cop/layout/space_before_block_braces.rb#50 RuboCop::Cop::Layout::SpaceBeforeBlockBraces::DETECTED_MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/layout/space_before_block_braces.rb#49 +# source://rubocop/lib/rubocop/cop/layout/space_before_block_braces.rb#49 RuboCop::Cop::Layout::SpaceBeforeBlockBraces::MISSING_MSG = T.let(T.unsafe(nil), String) # Checks for space between the name of a receiver and a left @@ -15478,40 +15585,40 @@ RuboCop::Cop::Layout::SpaceBeforeBlockBraces::MISSING_MSG = T.let(T.unsafe(nil), # # good # collection[index_or_key] # -# source://rubocop//lib/rubocop/cop/layout/space_before_brackets.rb#17 +# source://rubocop/lib/rubocop/cop/layout/space_before_brackets.rb#17 class RuboCop::Cop::Layout::SpaceBeforeBrackets < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/layout/space_before_brackets.rb#24 + # source://rubocop/lib/rubocop/cop/layout/space_before_brackets.rb#24 def on_send(node); end private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/space_before_brackets.rb#48 + # source://rubocop/lib/rubocop/cop/layout/space_before_brackets.rb#48 def dot_before_brackets?(node, receiver_end_pos, selector_begin_pos); end - # source://rubocop//lib/rubocop/cop/layout/space_before_brackets.rb#35 + # source://rubocop/lib/rubocop/cop/layout/space_before_brackets.rb#35 def offense_range(node, begin_pos); end - # source://rubocop//lib/rubocop/cop/layout/space_before_brackets.rb#54 + # source://rubocop/lib/rubocop/cop/layout/space_before_brackets.rb#54 def offense_range_for_assignment(node, begin_pos); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/space_before_brackets.rb#67 + # source://rubocop/lib/rubocop/cop/layout/space_before_brackets.rb#67 def reference_variable_with_brackets?(node); end - # source://rubocop//lib/rubocop/cop/layout/space_before_brackets.rb#63 + # source://rubocop/lib/rubocop/cop/layout/space_before_brackets.rb#63 def register_offense(range); end end -# source://rubocop//lib/rubocop/cop/layout/space_before_brackets.rb#21 +# source://rubocop/lib/rubocop/cop/layout/space_before_brackets.rb#21 RuboCop::Cop::Layout::SpaceBeforeBrackets::MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/layout/space_before_brackets.rb#22 +# source://rubocop/lib/rubocop/cop/layout/space_before_brackets.rb#22 RuboCop::Cop::Layout::SpaceBeforeBrackets::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Checks for comma (,) preceded by space. @@ -15527,13 +15634,13 @@ RuboCop::Cop::Layout::SpaceBeforeBrackets::RESTRICT_ON_SEND = T.let(T.unsafe(nil # a(1, 2) # each { |a, b| } # -# source://rubocop//lib/rubocop/cop/layout/space_before_comma.rb#19 +# source://rubocop/lib/rubocop/cop/layout/space_before_comma.rb#19 class RuboCop::Cop::Layout::SpaceBeforeComma < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp include ::RuboCop::Cop::SpaceBeforePunctuation extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/layout/space_before_comma.rb#23 + # source://rubocop/lib/rubocop/cop/layout/space_before_comma.rb#23 def kind(token); end end @@ -15547,15 +15654,15 @@ end # # good # 1 + 1 # this operation does ... # -# source://rubocop//lib/rubocop/cop/layout/space_before_comment.rb#15 +# source://rubocop/lib/rubocop/cop/layout/space_before_comment.rb#15 class RuboCop::Cop::Layout::SpaceBeforeComment < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/layout/space_before_comment.rb#20 + # source://rubocop/lib/rubocop/cop/layout/space_before_comment.rb#20 def on_new_investigation; end end -# source://rubocop//lib/rubocop/cop/layout/space_before_comment.rb#18 +# source://rubocop/lib/rubocop/cop/layout/space_before_comment.rb#18 RuboCop::Cop::Layout::SpaceBeforeComment::MSG = T.let(T.unsafe(nil), String) # Checks that exactly one space is used between a method name and the @@ -15576,42 +15683,42 @@ RuboCop::Cop::Layout::SpaceBeforeComment::MSG = T.let(T.unsafe(nil), String) # something y, z # something 'hello' # -# source://rubocop//lib/rubocop/cop/layout/space_before_first_arg.rb#24 +# source://rubocop/lib/rubocop/cop/layout/space_before_first_arg.rb#24 class RuboCop::Cop::Layout::SpaceBeforeFirstArg < ::RuboCop::Cop::Base include ::RuboCop::Cop::PrecedingFollowingAlignment include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/layout/space_before_first_arg.rb#35 + # source://rubocop/lib/rubocop/cop/layout/space_before_first_arg.rb#35 def on_csend(node); end - # source://rubocop//lib/rubocop/cop/layout/space_before_first_arg.rb#35 + # source://rubocop/lib/rubocop/cop/layout/space_before_first_arg.rb#35 def on_send(node); end private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/space_before_first_arg.rb#55 + # source://rubocop/lib/rubocop/cop/layout/space_before_first_arg.rb#55 def expect_params_after_method_name?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/space_before_first_arg.rb#64 + # source://rubocop/lib/rubocop/cop/layout/space_before_first_arg.rb#64 def no_space_between_method_name_and_first_argument?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/space_before_first_arg.rb#51 + # source://rubocop/lib/rubocop/cop/layout/space_before_first_arg.rb#51 def regular_method_call_with_arguments?(node); end class << self - # source://rubocop//lib/rubocop/cop/layout/space_before_first_arg.rb#31 + # source://rubocop/lib/rubocop/cop/layout/space_before_first_arg.rb#31 def autocorrect_incompatible_with; end end end -# source://rubocop//lib/rubocop/cop/layout/space_before_first_arg.rb#29 +# source://rubocop/lib/rubocop/cop/layout/space_before_first_arg.rb#29 RuboCop::Cop::Layout::SpaceBeforeFirstArg::MSG = T.let(T.unsafe(nil), String) # Checks for semicolon (;) preceded by space. @@ -15623,13 +15730,13 @@ RuboCop::Cop::Layout::SpaceBeforeFirstArg::MSG = T.let(T.unsafe(nil), String) # # good # x = 1; y = 2 # -# source://rubocop//lib/rubocop/cop/layout/space_before_semicolon.rb#14 +# source://rubocop/lib/rubocop/cop/layout/space_before_semicolon.rb#14 class RuboCop::Cop::Layout::SpaceBeforeSemicolon < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp include ::RuboCop::Cop::SpaceBeforePunctuation extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/layout/space_before_semicolon.rb#18 + # source://rubocop/lib/rubocop/cop/layout/space_before_semicolon.rb#18 def kind(token); end end @@ -15649,41 +15756,41 @@ end # # good # a = -> (x, y) { x + y } # -# source://rubocop//lib/rubocop/cop/layout/space_in_lambda_literal.rb#22 +# source://rubocop/lib/rubocop/cop/layout/space_in_lambda_literal.rb#22 class RuboCop::Cop::Layout::SpaceInLambdaLiteral < ::RuboCop::Cop::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/layout/space_in_lambda_literal.rb#30 + # source://rubocop/lib/rubocop/cop/layout/space_in_lambda_literal.rb#30 def on_send(node); end private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/space_in_lambda_literal.rb#50 + # source://rubocop/lib/rubocop/cop/layout/space_in_lambda_literal.rb#50 def arrow_lambda_with_args?(node); end - # source://rubocop//lib/rubocop/cop/layout/space_in_lambda_literal.rb#72 + # source://rubocop/lib/rubocop/cop/layout/space_in_lambda_literal.rb#72 def lambda_arguments(node); end - # source://rubocop//lib/rubocop/cop/layout/space_in_lambda_literal.rb#65 + # source://rubocop/lib/rubocop/cop/layout/space_in_lambda_literal.rb#65 def range_of_offense(node); end - # source://rubocop//lib/rubocop/cop/layout/space_in_lambda_literal.rb#58 + # source://rubocop/lib/rubocop/cop/layout/space_in_lambda_literal.rb#58 def space_after_arrow(lambda_node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/space_in_lambda_literal.rb#54 + # source://rubocop/lib/rubocop/cop/layout/space_in_lambda_literal.rb#54 def space_after_arrow?(lambda_node); end end -# source://rubocop//lib/rubocop/cop/layout/space_in_lambda_literal.rb#28 +# source://rubocop/lib/rubocop/cop/layout/space_in_lambda_literal.rb#28 RuboCop::Cop::Layout::SpaceInLambdaLiteral::MSG_REQUIRE_NO_SPACE = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/layout/space_in_lambda_literal.rb#27 +# source://rubocop/lib/rubocop/cop/layout/space_in_lambda_literal.rb#27 RuboCop::Cop::Layout::SpaceInLambdaLiteral::MSG_REQUIRE_SPACE = T.let(T.unsafe(nil), String) # Checks that brackets used for array literals have or don't have @@ -15695,24 +15802,29 @@ RuboCop::Cop::Layout::SpaceInLambdaLiteral::MSG_REQUIRE_SPACE = T.let(T.unsafe(n # # # bad # array = [ a, b, c, d ] +# array = [ a, [ b, c ]] # # # good # array = [a, b, c, d] +# array = [a, [b, c]] # @example EnforcedStyle: space # # The `space` style enforces that array literals have # # surrounding space. # # # bad # array = [a, b, c, d] +# array = [ a, [ b, c ]] # # # good # array = [ a, b, c, d ] +# array = [ a, [ b, c ] ] # @example EnforcedStyle: compact # # The `compact` style normally requires a space inside # # array brackets, with the exception that successive left # # or right brackets are collapsed together in nested arrays. # # # bad +# array = [a, b, c, d] # array = [ a, [ b, c ] ] # array = [ # [ a ], @@ -15720,6 +15832,7 @@ RuboCop::Cop::Layout::SpaceInLambdaLiteral::MSG_REQUIRE_SPACE = T.let(T.unsafe(n # ] # # # good +# array = [ a, b, c, d ] # array = [ a, [ b, c ]] # array = [[ a ], # [ b, c ]] @@ -15746,83 +15859,83 @@ RuboCop::Cop::Layout::SpaceInLambdaLiteral::MSG_REQUIRE_SPACE = T.let(T.unsafe(n # foo = [ ] # bar = [ ] # -# source://rubocop//lib/rubocop/cop/layout/space_inside_array_literal_brackets.rb#70 +# source://rubocop/lib/rubocop/cop/layout/space_inside_array_literal_brackets.rb#76 class RuboCop::Cop::Layout::SpaceInsideArrayLiteralBrackets < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp include ::RuboCop::Cop::SurroundingSpace include ::RuboCop::Cop::ConfigurableEnforcedStyle extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/layout/space_inside_array_literal_brackets.rb#78 + # source://rubocop/lib/rubocop/cop/layout/space_inside_array_literal_brackets.rb#84 def on_array(node); end private - # source://rubocop//lib/rubocop/cop/layout/space_inside_array_literal_brackets.rb#109 + # source://rubocop/lib/rubocop/cop/layout/space_inside_array_literal_brackets.rb#115 def array_brackets(node); end - # source://rubocop//lib/rubocop/cop/layout/space_inside_array_literal_brackets.rb#95 + # source://rubocop/lib/rubocop/cop/layout/space_inside_array_literal_brackets.rb#101 def autocorrect(corrector, node); end - # source://rubocop//lib/rubocop/cop/layout/space_inside_array_literal_brackets.rb#217 + # source://rubocop/lib/rubocop/cop/layout/space_inside_array_literal_brackets.rb#223 def compact(corrector, bracket, side); end - # source://rubocop//lib/rubocop/cop/layout/space_inside_array_literal_brackets.rb#203 + # source://rubocop/lib/rubocop/cop/layout/space_inside_array_literal_brackets.rb#209 def compact_corrections(corrector, node, left, right); end - # source://rubocop//lib/rubocop/cop/layout/space_inside_array_literal_brackets.rb#195 + # source://rubocop/lib/rubocop/cop/layout/space_inside_array_literal_brackets.rb#201 def compact_offense(node, token, side: T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/layout/space_inside_array_literal_brackets.rb#157 + # source://rubocop/lib/rubocop/cop/layout/space_inside_array_literal_brackets.rb#163 def compact_offenses(node, left, right, start_ok, end_ok); end - # source://rubocop//lib/rubocop/cop/layout/space_inside_array_literal_brackets.rb#118 + # source://rubocop/lib/rubocop/cop/layout/space_inside_array_literal_brackets.rb#124 def empty_config; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/space_inside_array_literal_brackets.rb#126 + # source://rubocop/lib/rubocop/cop/layout/space_inside_array_literal_brackets.rb#132 def end_has_own_line?(token); end - # source://rubocop//lib/rubocop/cop/layout/space_inside_array_literal_brackets.rb#133 + # source://rubocop/lib/rubocop/cop/layout/space_inside_array_literal_brackets.rb#139 def index_for(node, token); end - # source://rubocop//lib/rubocop/cop/layout/space_inside_array_literal_brackets.rb#141 + # source://rubocop/lib/rubocop/cop/layout/space_inside_array_literal_brackets.rb#147 def issue_offenses(node, left, right, start_ok, end_ok); end - # source://rubocop//lib/rubocop/cop/layout/space_inside_array_literal_brackets.rb#137 + # source://rubocop/lib/rubocop/cop/layout/space_inside_array_literal_brackets.rb#143 def line_and_column_for(token); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/space_inside_array_literal_brackets.rb#178 + # source://rubocop/lib/rubocop/cop/layout/space_inside_array_literal_brackets.rb#184 def multi_dimensional_array?(node, token, side: T.unsafe(nil)); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/space_inside_array_literal_brackets.rb#189 + # source://rubocop/lib/rubocop/cop/layout/space_inside_array_literal_brackets.rb#195 def next_to_bracket?(token, side: T.unsafe(nil)); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/space_inside_array_literal_brackets.rb#153 + # source://rubocop/lib/rubocop/cop/layout/space_inside_array_literal_brackets.rb#159 def next_to_comment?(node, token); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/space_inside_array_literal_brackets.rb#122 + # source://rubocop/lib/rubocop/cop/layout/space_inside_array_literal_brackets.rb#128 def next_to_newline?(node, token); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/space_inside_array_literal_brackets.rb#170 + # source://rubocop/lib/rubocop/cop/layout/space_inside_array_literal_brackets.rb#176 def qualifies_for_compact?(node, token, side: T.unsafe(nil)); end end -# source://rubocop//lib/rubocop/cop/layout/space_inside_array_literal_brackets.rb#76 +# source://rubocop/lib/rubocop/cop/layout/space_inside_array_literal_brackets.rb#82 RuboCop::Cop::Layout::SpaceInsideArrayLiteralBrackets::EMPTY_MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/layout/space_inside_array_literal_brackets.rb#75 +# source://rubocop/lib/rubocop/cop/layout/space_inside_array_literal_brackets.rb#81 RuboCop::Cop::Layout::SpaceInsideArrayLiteralBrackets::MSG = T.let(T.unsafe(nil), String) # Checks for unnecessary additional spaces inside array percent literals @@ -15838,29 +15951,29 @@ RuboCop::Cop::Layout::SpaceInsideArrayLiteralBrackets::MSG = T.let(T.unsafe(nil) # # good # %i(foo bar baz) # -# source://rubocop//lib/rubocop/cop/layout/space_inside_array_percent_literal.rb#18 +# source://rubocop/lib/rubocop/cop/layout/space_inside_array_percent_literal.rb#18 class RuboCop::Cop::Layout::SpaceInsideArrayPercentLiteral < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp include ::RuboCop::Cop::MatchRange include ::RuboCop::Cop::PercentLiteral extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/layout/space_inside_array_percent_literal.rb#26 + # source://rubocop/lib/rubocop/cop/layout/space_inside_array_percent_literal.rb#26 def on_array(node); end - # source://rubocop//lib/rubocop/cop/layout/space_inside_array_percent_literal.rb#30 + # source://rubocop/lib/rubocop/cop/layout/space_inside_array_percent_literal.rb#30 def on_percent_literal(node); end private - # source://rubocop//lib/rubocop/cop/layout/space_inside_array_percent_literal.rb#40 + # source://rubocop/lib/rubocop/cop/layout/space_inside_array_percent_literal.rb#40 def each_unnecessary_space_match(node, &blk); end end -# source://rubocop//lib/rubocop/cop/layout/space_inside_array_percent_literal.rb#23 +# source://rubocop/lib/rubocop/cop/layout/space_inside_array_percent_literal.rb#23 RuboCop::Cop::Layout::SpaceInsideArrayPercentLiteral::MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/layout/space_inside_array_percent_literal.rb#24 +# source://rubocop/lib/rubocop/cop/layout/space_inside_array_percent_literal.rb#24 RuboCop::Cop::Layout::SpaceInsideArrayPercentLiteral::MULTIPLE_SPACES_BETWEEN_ITEMS_REGEX = T.let(T.unsafe(nil), Regexp) # Checks that block braces have or don't have surrounding space inside @@ -15929,77 +16042,77 @@ RuboCop::Cop::Layout::SpaceInsideArrayPercentLiteral::MULTIPLE_SPACES_BETWEEN_IT # # good # [1, 2, 3].each {|n| n * 2 } # -# source://rubocop//lib/rubocop/cop/layout/space_inside_block_braces.rb#79 +# source://rubocop/lib/rubocop/cop/layout/space_inside_block_braces.rb#79 class RuboCop::Cop::Layout::SpaceInsideBlockBraces < ::RuboCop::Cop::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle include ::RuboCop::Cop::RangeHelp include ::RuboCop::Cop::SurroundingSpace extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/layout/space_inside_block_braces.rb#89 + # 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#89 + # 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#126 + # 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#165 + # 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#134 + # 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#109 + # 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#141 + # 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#149 + # 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#169 + # 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#161 + # 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#226 + # 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#173 + # 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#242 + # 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#205 + # 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#234 + # 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#190 + # 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#209 + # 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#257 + # 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 + # source://rubocop/lib/rubocop/cop/layout/space_inside_block_braces.rb#85 def autocorrect_incompatible_with; end end end @@ -16013,18 +16126,22 @@ end # # # bad # h = {a: 1, b: 2} +# foo = {{ a: 1 } => { b: { c: 2 }}} # # # good # h = { a: 1, b: 2 } +# foo = { { a: 1 } => { b: { c: 2 } } } # @example EnforcedStyle: no_space # # The `no_space` style enforces that hash literals have # # no surrounding space. # # # bad # h = { a: 1, b: 2 } +# foo = {{ a: 1 } => { b: { c: 2 }}} # # # good # h = {a: 1, b: 2} +# foo = {{a: 1} => {b: {c: 2}}} # @example EnforcedStyle: compact # # The `compact` style normally requires a space inside # # hash braces, with the exception that successive left @@ -16064,65 +16181,65 @@ end # foo = { # } # -# source://rubocop//lib/rubocop/cop/layout/space_inside_hash_literal_braces.rb#70 +# source://rubocop/lib/rubocop/cop/layout/space_inside_hash_literal_braces.rb#74 class RuboCop::Cop::Layout::SpaceInsideHashLiteralBraces < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp include ::RuboCop::Cop::SurroundingSpace include ::RuboCop::Cop::ConfigurableEnforcedStyle extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/layout/space_inside_hash_literal_braces.rb#78 + # source://rubocop/lib/rubocop/cop/layout/space_inside_hash_literal_braces.rb#82 def on_hash(node); end private - # source://rubocop//lib/rubocop/cop/layout/space_inside_hash_literal_braces.rb#137 + # source://rubocop/lib/rubocop/cop/layout/space_inside_hash_literal_braces.rb#141 def ambiguous_or_unexpected_style_detected(style, is_match); end - # source://rubocop//lib/rubocop/cop/layout/space_inside_hash_literal_braces.rb#129 + # source://rubocop/lib/rubocop/cop/layout/space_inside_hash_literal_braces.rb#133 def autocorrect(corrector, range); end - # source://rubocop//lib/rubocop/cop/layout/space_inside_hash_literal_braces.rb#89 + # source://rubocop/lib/rubocop/cop/layout/space_inside_hash_literal_braces.rb#93 def check(token1, token2); end - # source://rubocop//lib/rubocop/cop/layout/space_inside_hash_literal_braces.rb#184 + # source://rubocop/lib/rubocop/cop/layout/space_inside_hash_literal_braces.rb#188 def check_whitespace_only_hash(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/space_inside_hash_literal_braces.rb#202 + # source://rubocop/lib/rubocop/cop/layout/space_inside_hash_literal_braces.rb#206 def enforce_no_space_style_for_empty_braces?; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/space_inside_hash_literal_braces.rb#104 + # source://rubocop/lib/rubocop/cop/layout/space_inside_hash_literal_braces.rb#108 def expect_space?(token1, token2); end - # source://rubocop//lib/rubocop/cop/layout/space_inside_hash_literal_braces.rb#117 + # source://rubocop/lib/rubocop/cop/layout/space_inside_hash_literal_braces.rb#121 def incorrect_style_detected(token1, token2, expect_space, is_empty_braces); end - # source://rubocop//lib/rubocop/cop/layout/space_inside_hash_literal_braces.rb#150 + # source://rubocop/lib/rubocop/cop/layout/space_inside_hash_literal_braces.rb#154 def message(brace, is_empty_braces, expect_space); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/space_inside_hash_literal_braces.rb#145 + # source://rubocop/lib/rubocop/cop/layout/space_inside_hash_literal_braces.rb#149 def offense?(token1, expect_space); end - # source://rubocop//lib/rubocop/cop/layout/space_inside_hash_literal_braces.rb#196 + # source://rubocop/lib/rubocop/cop/layout/space_inside_hash_literal_braces.rb#200 def range_inside_hash(node); end - # source://rubocop//lib/rubocop/cop/layout/space_inside_hash_literal_braces.rb#176 + # source://rubocop/lib/rubocop/cop/layout/space_inside_hash_literal_braces.rb#180 def range_of_space_to_the_left(range); end - # source://rubocop//lib/rubocop/cop/layout/space_inside_hash_literal_braces.rb#168 + # source://rubocop/lib/rubocop/cop/layout/space_inside_hash_literal_braces.rb#172 def range_of_space_to_the_right(range); end - # source://rubocop//lib/rubocop/cop/layout/space_inside_hash_literal_braces.rb#160 + # source://rubocop/lib/rubocop/cop/layout/space_inside_hash_literal_braces.rb#164 def space_range(token_range); end end -# source://rubocop//lib/rubocop/cop/layout/space_inside_hash_literal_braces.rb#76 +# source://rubocop/lib/rubocop/cop/layout/space_inside_hash_literal_braces.rb#80 RuboCop::Cop::Layout::SpaceInsideHashLiteralBraces::MSG = T.let(T.unsafe(nil), String) # Checks for spaces inside ordinary round parentheses. @@ -16174,61 +16291,61 @@ RuboCop::Cop::Layout::SpaceInsideHashLiteralBraces::MSG = T.let(T.unsafe(nil), S # g( f( x( 3 )), 5 ) # g((( 3 + 5 ) * f ) ** x, 5 ) # -# source://rubocop//lib/rubocop/cop/layout/space_inside_parens.rb#57 +# source://rubocop/lib/rubocop/cop/layout/space_inside_parens.rb#57 class RuboCop::Cop::Layout::SpaceInsideParens < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp include ::RuboCop::Cop::SurroundingSpace include ::RuboCop::Cop::ConfigurableEnforcedStyle extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/layout/space_inside_parens.rb#66 + # source://rubocop/lib/rubocop/cop/layout/space_inside_parens.rb#66 def on_new_investigation; end private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/space_inside_parens.rb#161 + # source://rubocop/lib/rubocop/cop/layout/space_inside_parens.rb#161 def can_be_ignored?(token1, token2); end - # source://rubocop//lib/rubocop/cop/layout/space_inside_parens.rb#99 + # source://rubocop/lib/rubocop/cop/layout/space_inside_parens.rb#99 def correct_extraneous_space(tokens); end - # source://rubocop//lib/rubocop/cop/layout/space_inside_parens.rb#115 + # source://rubocop/lib/rubocop/cop/layout/space_inside_parens.rb#115 def correct_extraneous_space_between_consecutive_parens(token1, token2); end - # source://rubocop//lib/rubocop/cop/layout/space_inside_parens.rb#124 + # source://rubocop/lib/rubocop/cop/layout/space_inside_parens.rb#124 def correct_extraneous_space_in_empty_parens(token1, token2); end - # source://rubocop//lib/rubocop/cop/layout/space_inside_parens.rb#135 + # source://rubocop/lib/rubocop/cop/layout/space_inside_parens.rb#135 def correct_missing_space(token1, token2); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/space_inside_parens.rb#153 + # source://rubocop/lib/rubocop/cop/layout/space_inside_parens.rb#153 def left_parens?(token1, token2); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/space_inside_parens.rb#149 + # source://rubocop/lib/rubocop/cop/layout/space_inside_parens.rb#149 def parens?(token1, token2); end - # source://rubocop//lib/rubocop/cop/layout/space_inside_parens.rb#88 + # source://rubocop/lib/rubocop/cop/layout/space_inside_parens.rb#88 def process_with_compact_style(tokens); end - # source://rubocop//lib/rubocop/cop/layout/space_inside_parens.rb#81 + # source://rubocop/lib/rubocop/cop/layout/space_inside_parens.rb#81 def process_with_space_style(tokens); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/space_inside_parens.rb#157 + # source://rubocop/lib/rubocop/cop/layout/space_inside_parens.rb#157 def right_parens?(token1, token2); end end -# source://rubocop//lib/rubocop/cop/layout/space_inside_parens.rb#63 +# source://rubocop/lib/rubocop/cop/layout/space_inside_parens.rb#63 RuboCop::Cop::Layout::SpaceInsideParens::MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/layout/space_inside_parens.rb#64 +# source://rubocop/lib/rubocop/cop/layout/space_inside_parens.rb#64 RuboCop::Cop::Layout::SpaceInsideParens::MSG_SPACE = T.let(T.unsafe(nil), String) # Checks for unnecessary additional spaces inside the delimiters of @@ -16262,44 +16379,44 @@ RuboCop::Cop::Layout::SpaceInsideParens::MSG_SPACE = T.let(T.unsafe(nil), String # # good # %w() # -# source://rubocop//lib/rubocop/cop/layout/space_inside_percent_literal_delimiters.rb#36 +# source://rubocop/lib/rubocop/cop/layout/space_inside_percent_literal_delimiters.rb#36 class RuboCop::Cop::Layout::SpaceInsidePercentLiteralDelimiters < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp include ::RuboCop::Cop::MatchRange include ::RuboCop::Cop::PercentLiteral extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/layout/space_inside_percent_literal_delimiters.rb#45 + # source://rubocop/lib/rubocop/cop/layout/space_inside_percent_literal_delimiters.rb#45 def on_array(node); end - # source://rubocop//lib/rubocop/cop/layout/space_inside_percent_literal_delimiters.rb#53 + # source://rubocop/lib/rubocop/cop/layout/space_inside_percent_literal_delimiters.rb#53 def on_percent_literal(node); end - # source://rubocop//lib/rubocop/cop/layout/space_inside_percent_literal_delimiters.rb#49 + # source://rubocop/lib/rubocop/cop/layout/space_inside_percent_literal_delimiters.rb#49 def on_xstr(node); end private - # source://rubocop//lib/rubocop/cop/layout/space_inside_percent_literal_delimiters.rb#60 + # source://rubocop/lib/rubocop/cop/layout/space_inside_percent_literal_delimiters.rb#60 def add_offenses_for_blank_spaces(node); end - # source://rubocop//lib/rubocop/cop/layout/space_inside_percent_literal_delimiters.rb#69 + # source://rubocop/lib/rubocop/cop/layout/space_inside_percent_literal_delimiters.rb#69 def add_offenses_for_unnecessary_spaces(node); end - # source://rubocop//lib/rubocop/cop/layout/space_inside_percent_literal_delimiters.rb#85 + # source://rubocop/lib/rubocop/cop/layout/space_inside_percent_literal_delimiters.rb#85 def body_range(node); end - # source://rubocop//lib/rubocop/cop/layout/space_inside_percent_literal_delimiters.rb#79 + # source://rubocop/lib/rubocop/cop/layout/space_inside_percent_literal_delimiters.rb#79 def regex_matches(node, &blk); end end -# source://rubocop//lib/rubocop/cop/layout/space_inside_percent_literal_delimiters.rb#42 +# source://rubocop/lib/rubocop/cop/layout/space_inside_percent_literal_delimiters.rb#42 RuboCop::Cop::Layout::SpaceInsidePercentLiteralDelimiters::BEGIN_REGEX = T.let(T.unsafe(nil), Regexp) -# source://rubocop//lib/rubocop/cop/layout/space_inside_percent_literal_delimiters.rb#43 +# source://rubocop/lib/rubocop/cop/layout/space_inside_percent_literal_delimiters.rb#43 RuboCop::Cop::Layout::SpaceInsidePercentLiteralDelimiters::END_REGEX = T.let(T.unsafe(nil), Regexp) -# source://rubocop//lib/rubocop/cop/layout/space_inside_percent_literal_delimiters.rb#41 +# source://rubocop/lib/rubocop/cop/layout/space_inside_percent_literal_delimiters.rb#41 RuboCop::Cop::Layout::SpaceInsidePercentLiteralDelimiters::MSG = T.let(T.unsafe(nil), String) # Checks for spaces inside range literals. @@ -16317,23 +16434,23 @@ RuboCop::Cop::Layout::SpaceInsidePercentLiteralDelimiters::MSG = T.let(T.unsafe( # # good # 'a'..'z' # -# source://rubocop//lib/rubocop/cop/layout/space_inside_range_literal.rb#20 +# source://rubocop/lib/rubocop/cop/layout/space_inside_range_literal.rb#20 class RuboCop::Cop::Layout::SpaceInsideRangeLiteral < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/layout/space_inside_range_literal.rb#29 + # source://rubocop/lib/rubocop/cop/layout/space_inside_range_literal.rb#29 def on_erange(node); end - # source://rubocop//lib/rubocop/cop/layout/space_inside_range_literal.rb#25 + # source://rubocop/lib/rubocop/cop/layout/space_inside_range_literal.rb#25 def on_irange(node); end private - # source://rubocop//lib/rubocop/cop/layout/space_inside_range_literal.rb#35 + # source://rubocop/lib/rubocop/cop/layout/space_inside_range_literal.rb#35 def check(node); end end -# source://rubocop//lib/rubocop/cop/layout/space_inside_range_literal.rb#23 +# source://rubocop/lib/rubocop/cop/layout/space_inside_range_literal.rb#23 RuboCop::Cop::Layout::SpaceInsideRangeLiteral::MSG = T.let(T.unsafe(nil), String) # Checks that reference brackets have or don't have @@ -16386,44 +16503,44 @@ RuboCop::Cop::Layout::SpaceInsideRangeLiteral::MSG = T.let(T.unsafe(nil), String # # good # foo[ ] # -# source://rubocop//lib/rubocop/cop/layout/space_inside_reference_brackets.rb#60 +# source://rubocop/lib/rubocop/cop/layout/space_inside_reference_brackets.rb#60 class RuboCop::Cop::Layout::SpaceInsideReferenceBrackets < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp include ::RuboCop::Cop::SurroundingSpace include ::RuboCop::Cop::ConfigurableEnforcedStyle extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/layout/space_inside_reference_brackets.rb#70 + # source://rubocop/lib/rubocop/cop/layout/space_inside_reference_brackets.rb#70 def on_send(node); end private - # source://rubocop//lib/rubocop/cop/layout/space_inside_reference_brackets.rb#92 + # source://rubocop/lib/rubocop/cop/layout/space_inside_reference_brackets.rb#92 def autocorrect(corrector, node); end - # source://rubocop//lib/rubocop/cop/layout/space_inside_reference_brackets.rb#121 + # source://rubocop/lib/rubocop/cop/layout/space_inside_reference_brackets.rb#121 def closing_bracket(tokens, opening_bracket); end - # source://rubocop//lib/rubocop/cop/layout/space_inside_reference_brackets.rb#137 + # source://rubocop/lib/rubocop/cop/layout/space_inside_reference_brackets.rb#137 def empty_config; end - # source://rubocop//lib/rubocop/cop/layout/space_inside_reference_brackets.rb#110 + # source://rubocop/lib/rubocop/cop/layout/space_inside_reference_brackets.rb#110 def left_ref_bracket(node, tokens); end - # source://rubocop//lib/rubocop/cop/layout/space_inside_reference_brackets.rb#132 + # source://rubocop/lib/rubocop/cop/layout/space_inside_reference_brackets.rb#132 def previous_token(current_token); end - # source://rubocop//lib/rubocop/cop/layout/space_inside_reference_brackets.rb#104 + # source://rubocop/lib/rubocop/cop/layout/space_inside_reference_brackets.rb#104 def reference_brackets(node); end end -# source://rubocop//lib/rubocop/cop/layout/space_inside_reference_brackets.rb#66 +# source://rubocop/lib/rubocop/cop/layout/space_inside_reference_brackets.rb#66 RuboCop::Cop::Layout::SpaceInsideReferenceBrackets::EMPTY_MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/layout/space_inside_reference_brackets.rb#65 +# source://rubocop/lib/rubocop/cop/layout/space_inside_reference_brackets.rb#65 RuboCop::Cop::Layout::SpaceInsideReferenceBrackets::MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/layout/space_inside_reference_brackets.rb#68 +# source://rubocop/lib/rubocop/cop/layout/space_inside_reference_brackets.rb#68 RuboCop::Cop::Layout::SpaceInsideReferenceBrackets::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Checks for whitespace within string interpolations. @@ -16441,7 +16558,7 @@ RuboCop::Cop::Layout::SpaceInsideReferenceBrackets::RESTRICT_ON_SEND = T.let(T.u # # good # var = "This is the #{ space } example" # -# source://rubocop//lib/rubocop/cop/layout/space_inside_string_interpolation.rb#21 +# source://rubocop/lib/rubocop/cop/layout/space_inside_string_interpolation.rb#21 class RuboCop::Cop::Layout::SpaceInsideStringInterpolation < ::RuboCop::Cop::Base include ::RuboCop::Cop::Interpolation include ::RuboCop::Cop::RangeHelp @@ -16449,19 +16566,19 @@ class RuboCop::Cop::Layout::SpaceInsideStringInterpolation < ::RuboCop::Cop::Bas include ::RuboCop::Cop::ConfigurableEnforcedStyle extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/layout/space_inside_string_interpolation.rb#30 + # source://rubocop/lib/rubocop/cop/layout/space_inside_string_interpolation.rb#29 def on_interpolation(begin_node); end private - # source://rubocop//lib/rubocop/cop/layout/space_inside_string_interpolation.rb#46 + # source://rubocop/lib/rubocop/cop/layout/space_inside_string_interpolation.rb#45 def autocorrect(corrector, begin_node); end - # source://rubocop//lib/rubocop/cop/layout/space_inside_string_interpolation.rb#56 + # source://rubocop/lib/rubocop/cop/layout/space_inside_string_interpolation.rb#55 def delimiters(begin_node); end end -# source://rubocop//lib/rubocop/cop/layout/space_inside_string_interpolation.rb#28 +# source://rubocop/lib/rubocop/cop/layout/space_inside_string_interpolation.rb#27 RuboCop::Cop::Layout::SpaceInsideStringInterpolation::MSG = T.let(T.unsafe(nil), String) # Looks for trailing blank lines and a final newline in the @@ -16497,31 +16614,31 @@ RuboCop::Cop::Layout::SpaceInsideStringInterpolation::MSG = T.let(T.unsafe(nil), # # # EOF # -# source://rubocop//lib/rubocop/cop/layout/trailing_empty_lines.rb#40 +# source://rubocop/lib/rubocop/cop/layout/trailing_empty_lines.rb#40 class RuboCop::Cop::Layout::TrailingEmptyLines < ::RuboCop::Cop::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/layout/trailing_empty_lines.rb#45 + # source://rubocop/lib/rubocop/cop/layout/trailing_empty_lines.rb#45 def on_new_investigation; end private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/trailing_empty_lines.rb#90 + # source://rubocop/lib/rubocop/cop/layout/trailing_empty_lines.rb#90 def end_with_percent_blank_string?(processed_source); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/trailing_empty_lines.rb#80 + # source://rubocop/lib/rubocop/cop/layout/trailing_empty_lines.rb#80 def ends_in_end?(processed_source); end - # source://rubocop//lib/rubocop/cop/layout/trailing_empty_lines.rb#94 + # source://rubocop/lib/rubocop/cop/layout/trailing_empty_lines.rb#94 def message(wanted_blank_lines, blank_lines); end - # source://rubocop//lib/rubocop/cop/layout/trailing_empty_lines.rb#67 + # source://rubocop/lib/rubocop/cop/layout/trailing_empty_lines.rb#67 def offense_detected(buffer, wanted_blank_lines, blank_lines, whitespace_at_end); end end @@ -16559,103 +16676,103 @@ end # x = 0 # RUBY # -# source://rubocop//lib/rubocop/cop/layout/trailing_whitespace.rb#42 +# source://rubocop/lib/rubocop/cop/layout/trailing_whitespace.rb#42 class RuboCop::Cop::Layout::TrailingWhitespace < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp include ::RuboCop::Cop::Heredoc extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/layout/trailing_whitespace.rb#57 + # source://rubocop/lib/rubocop/cop/layout/trailing_whitespace.rb#57 def on_heredoc(_node); end - # source://rubocop//lib/rubocop/cop/layout/trailing_whitespace.rb#49 + # source://rubocop/lib/rubocop/cop/layout/trailing_whitespace.rb#49 def on_new_investigation; end private - # source://rubocop//lib/rubocop/cop/layout/trailing_whitespace.rb#112 + # source://rubocop/lib/rubocop/cop/layout/trailing_whitespace.rb#112 def extract_heredocs(ast); end - # source://rubocop//lib/rubocop/cop/layout/trailing_whitespace.rb#103 + # source://rubocop/lib/rubocop/cop/layout/trailing_whitespace.rb#103 def find_heredoc(line_number); end - # source://rubocop//lib/rubocop/cop/layout/trailing_whitespace.rb#108 + # source://rubocop/lib/rubocop/cop/layout/trailing_whitespace.rb#108 def heredocs; end - # source://rubocop//lib/rubocop/cop/layout/trailing_whitespace.rb#125 + # source://rubocop/lib/rubocop/cop/layout/trailing_whitespace.rb#125 def offense_range(lineno, line); end - # source://rubocop//lib/rubocop/cop/layout/trailing_whitespace.rb#61 + # source://rubocop/lib/rubocop/cop/layout/trailing_whitespace.rb#61 def process_line(line, lineno); end - # source://rubocop//lib/rubocop/cop/layout/trailing_whitespace.rb#75 + # source://rubocop/lib/rubocop/cop/layout/trailing_whitespace.rb#75 def process_line_in_heredoc(corrector, range, heredoc); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/trailing_whitespace.rb#99 + # source://rubocop/lib/rubocop/cop/layout/trailing_whitespace.rb#99 def skip_heredoc?; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/trailing_whitespace.rb#95 + # source://rubocop/lib/rubocop/cop/layout/trailing_whitespace.rb#95 def static?(heredoc); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/trailing_whitespace.rb#86 + # source://rubocop/lib/rubocop/cop/layout/trailing_whitespace.rb#86 def whitespace_is_indentation?(range, level); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/layout/trailing_whitespace.rb#90 + # source://rubocop/lib/rubocop/cop/layout/trailing_whitespace.rb#90 def whitespace_only?(range); end end -# source://rubocop//lib/rubocop/cop/layout/trailing_whitespace.rb#47 +# source://rubocop/lib/rubocop/cop/layout/trailing_whitespace.rb#47 RuboCop::Cop::Layout::TrailingWhitespace::MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/legacy/corrections_proxy.rb#5 +# source://rubocop/lib/rubocop/cop/legacy/corrections_proxy.rb#5 module RuboCop::Cop::Legacy; end # Legacy support for Corrector#corrections # See https://docs.rubocop.org/rubocop/v1_upgrade_notes.html # -# source://rubocop//lib/rubocop/cop/legacy/corrections_proxy.rb#8 +# source://rubocop/lib/rubocop/cop/legacy/corrections_proxy.rb#8 class RuboCop::Cop::Legacy::CorrectionsProxy # @return [CorrectionsProxy] a new instance of CorrectionsProxy # - # source://rubocop//lib/rubocop/cop/legacy/corrections_proxy.rb#9 + # source://rubocop/lib/rubocop/cop/legacy/corrections_proxy.rb#9 def initialize(corrector); end - # source://rubocop//lib/rubocop/cop/legacy/corrections_proxy.rb#13 + # source://rubocop/lib/rubocop/cop/legacy/corrections_proxy.rb#13 def <<(callable); end - # source://rubocop//lib/rubocop/cop/legacy/corrections_proxy.rb#21 + # source://rubocop/lib/rubocop/cop/legacy/corrections_proxy.rb#21 def concat(corrections); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/legacy/corrections_proxy.rb#17 + # source://rubocop/lib/rubocop/cop/legacy/corrections_proxy.rb#17 def empty?; end protected # Returns the value of attribute corrector. # - # source://rubocop//lib/rubocop/cop/legacy/corrections_proxy.rb#31 + # source://rubocop/lib/rubocop/cop/legacy/corrections_proxy.rb#31 def corrector; end private - # source://rubocop//lib/rubocop/cop/legacy/corrections_proxy.rb#35 + # source://rubocop/lib/rubocop/cop/legacy/corrections_proxy.rb#35 def suppress_clobbering; end end # This class handles autocorrection for code that needs to be moved # to new lines. # -# source://rubocop//lib/rubocop/cop/correctors/line_break_corrector.rb#7 +# source://rubocop/lib/rubocop/cop/correctors/line_break_corrector.rb#7 class RuboCop::Cop::LineBreakCorrector extend ::RuboCop::Cop::Alignment extend ::RuboCop::Cop::TrailingBody @@ -16663,38 +16780,38 @@ class RuboCop::Cop::LineBreakCorrector extend ::RuboCop::Cop::Util class << self - # source://rubocop//lib/rubocop/cop/correctors/line_break_corrector.rb#27 + # source://rubocop/lib/rubocop/cop/correctors/line_break_corrector.rb#27 def break_line_before(range:, node:, corrector:, configured_width:, indent_steps: T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/correctors/line_break_corrector.rb#15 + # source://rubocop/lib/rubocop/cop/correctors/line_break_corrector.rb#15 def correct_trailing_body(configured_width:, corrector:, node:, processed_source:); end - # source://rubocop//lib/rubocop/cop/correctors/line_break_corrector.rb#35 + # source://rubocop/lib/rubocop/cop/correctors/line_break_corrector.rb#35 def move_comment(eol_comment:, node:, corrector:); end # Returns the value of attribute processed_source. # - # source://rubocop//lib/rubocop/cop/correctors/line_break_corrector.rb#13 + # source://rubocop/lib/rubocop/cop/correctors/line_break_corrector.rb#13 def processed_source; end private - # source://rubocop//lib/rubocop/cop/correctors/line_break_corrector.rb#45 + # source://rubocop/lib/rubocop/cop/correctors/line_break_corrector.rb#45 def remove_semicolon(node, corrector); end - # source://rubocop//lib/rubocop/cop/correctors/line_break_corrector.rb#51 + # source://rubocop/lib/rubocop/cop/correctors/line_break_corrector.rb#51 def semicolon(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/correctors/line_break_corrector.rb#60 + # source://rubocop/lib/rubocop/cop/correctors/line_break_corrector.rb#60 def trailing_class_definition?(token, body); end end end # Help methods for determining if a line is too long. # -# source://rubocop//lib/rubocop/cop/mixin/line_length_help.rb#6 +# source://rubocop/lib/rubocop/cop/mixin/line_length_help.rb#6 module RuboCop::Cop::LineLengthHelp include ::RuboCop::Cop::Alignment @@ -16702,55 +16819,55 @@ module RuboCop::Cop::LineLengthHelp # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/mixin/line_length_help.rb#24 + # source://rubocop/lib/rubocop/cop/mixin/line_length_help.rb#24 def allow_uri?; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/mixin/line_length_help.rb#28 + # source://rubocop/lib/rubocop/cop/mixin/line_length_help.rb#28 def allowed_uri_position?(line, uri_range); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/mixin/line_length_help.rb#15 + # source://rubocop/lib/rubocop/cop/mixin/line_length_help.rb#15 def directive_on_source_line?(line_index); end - # source://rubocop//lib/rubocop/cop/mixin/line_length_help.rb#72 + # source://rubocop/lib/rubocop/cop/mixin/line_length_help.rb#73 def extend_uri_end_position(line, end_position); end - # source://rubocop//lib/rubocop/cop/mixin/line_length_help.rb#36 + # source://rubocop/lib/rubocop/cop/mixin/line_length_help.rb#36 def find_excessive_uri_range(line); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/mixin/line_length_help.rb#11 + # source://rubocop/lib/rubocop/cop/mixin/line_length_help.rb#11 def ignore_cop_directives?; end - # source://rubocop//lib/rubocop/cop/mixin/line_length_help.rb#59 + # source://rubocop/lib/rubocop/cop/mixin/line_length_help.rb#60 def indentation_difference(line); end - # source://rubocop//lib/rubocop/cop/mixin/line_length_help.rb#32 + # source://rubocop/lib/rubocop/cop/mixin/line_length_help.rb#32 def line_length(line); end - # source://rubocop//lib/rubocop/cop/mixin/line_length_help.rb#110 + # source://rubocop/lib/rubocop/cop/mixin/line_length_help.rb#111 def line_length_without_directive(line); end - # source://rubocop//lib/rubocop/cop/mixin/line_length_help.rb#51 + # source://rubocop/lib/rubocop/cop/mixin/line_length_help.rb#52 def match_uris(string); end - # source://rubocop//lib/rubocop/cop/mixin/line_length_help.rb#88 + # source://rubocop/lib/rubocop/cop/mixin/line_length_help.rb#89 def tab_indentation_width; end - # source://rubocop//lib/rubocop/cop/mixin/line_length_help.rb#93 + # source://rubocop/lib/rubocop/cop/mixin/line_length_help.rb#94 def uri_regexp; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/mixin/line_length_help.rb#103 + # source://rubocop/lib/rubocop/cop/mixin/line_length_help.rb#104 def valid_uri?(uri_ish_string); end end -# source://rubocop//lib/rubocop/cop/mixin/unused_argument.rb#5 +# source://rubocop/lib/rubocop/cop/mixin/unused_argument.rb#5 module RuboCop::Cop::Lint; end # Checks for mistyped shorthand assignments. @@ -16768,41 +16885,41 @@ module RuboCop::Cop::Lint; end # x *= y # or x = *y # x != y # or x = !y # -# source://rubocop//lib/rubocop/cop/lint/ambiguous_assignment.rb#21 +# source://rubocop/lib/rubocop/cop/lint/ambiguous_assignment.rb#21 class RuboCop::Cop::Lint::AmbiguousAssignment < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp - # source://rubocop//lib/rubocop/cop/lint/ambiguous_assignment.rb#30 + # source://rubocop/lib/rubocop/cop/lint/ambiguous_assignment.rb#30 def on_asgn(node); end - # source://rubocop//lib/rubocop/cop/lint/ambiguous_assignment.rb#30 + # source://rubocop/lib/rubocop/cop/lint/ambiguous_assignment.rb#30 def on_casgn(node); end - # source://rubocop//lib/rubocop/cop/lint/ambiguous_assignment.rb#30 + # source://rubocop/lib/rubocop/cop/lint/ambiguous_assignment.rb#30 def on_cvasgn(node); end - # source://rubocop//lib/rubocop/cop/lint/ambiguous_assignment.rb#30 + # source://rubocop/lib/rubocop/cop/lint/ambiguous_assignment.rb#30 def on_gvasgn(node); end - # source://rubocop//lib/rubocop/cop/lint/ambiguous_assignment.rb#30 + # source://rubocop/lib/rubocop/cop/lint/ambiguous_assignment.rb#30 def on_ivasgn(node); end - # source://rubocop//lib/rubocop/cop/lint/ambiguous_assignment.rb#30 + # source://rubocop/lib/rubocop/cop/lint/ambiguous_assignment.rb#30 def on_lvasgn(node); end private - # source://rubocop//lib/rubocop/cop/lint/ambiguous_assignment.rb#44 + # source://rubocop/lib/rubocop/cop/lint/ambiguous_assignment.rb#44 def rhs(node); end end -# source://rubocop//lib/rubocop/cop/lint/ambiguous_assignment.rb#28 +# source://rubocop/lib/rubocop/cop/lint/ambiguous_assignment.rb#28 RuboCop::Cop::Lint::AmbiguousAssignment::MISTAKES = T.let(T.unsafe(nil), Hash) -# source://rubocop//lib/rubocop/cop/lint/ambiguous_assignment.rb#24 +# source://rubocop/lib/rubocop/cop/lint/ambiguous_assignment.rb#24 RuboCop::Cop::Lint::AmbiguousAssignment::MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/lint/ambiguous_assignment.rb#26 +# source://rubocop/lib/rubocop/cop/lint/ambiguous_assignment.rb#26 RuboCop::Cop::Lint::AmbiguousAssignment::SIMPLE_ASSIGNMENT_TYPES = T.let(T.unsafe(nil), Array) # Checks for ambiguous block association with method @@ -16847,38 +16964,38 @@ RuboCop::Cop::Lint::AmbiguousAssignment::SIMPLE_ASSIGNMENT_TYPES = T.let(T.unsaf # expect { do_something }.to change { object.attribute } # expect { do_something }.to not_change { object.attribute } # -# source://rubocop//lib/rubocop/cop/lint/ambiguous_block_association.rb#52 +# source://rubocop/lib/rubocop/cop/lint/ambiguous_block_association.rb#52 class RuboCop::Cop::Lint::AmbiguousBlockAssociation < ::RuboCop::Cop::Base include ::RuboCop::Cop::AllowedMethods include ::RuboCop::Cop::AllowedPattern extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/lint/ambiguous_block_association.rb#62 + # source://rubocop/lib/rubocop/cop/lint/ambiguous_block_association.rb#62 def on_csend(node); end - # source://rubocop//lib/rubocop/cop/lint/ambiguous_block_association.rb#62 + # source://rubocop/lib/rubocop/cop/lint/ambiguous_block_association.rb#62 def on_send(node); end private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/ambiguous_block_association.rb#83 + # source://rubocop/lib/rubocop/cop/lint/ambiguous_block_association.rb#83 def allowed_method_pattern?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/ambiguous_block_association.rb#79 + # source://rubocop/lib/rubocop/cop/lint/ambiguous_block_association.rb#79 def ambiguous_block_association?(send_node); end - # source://rubocop//lib/rubocop/cop/lint/ambiguous_block_association.rb#89 + # source://rubocop/lib/rubocop/cop/lint/ambiguous_block_association.rb#89 def message(send_node); end - # source://rubocop//lib/rubocop/cop/lint/ambiguous_block_association.rb#95 + # source://rubocop/lib/rubocop/cop/lint/ambiguous_block_association.rb#95 def wrap_in_parentheses(corrector, node); end end -# source://rubocop//lib/rubocop/cop/lint/ambiguous_block_association.rb#58 +# source://rubocop/lib/rubocop/cop/lint/ambiguous_block_association.rb#58 RuboCop::Cop::Lint::AmbiguousBlockAssociation::MSG = T.let(T.unsafe(nil), String) # Checks for ambiguous operators in the first argument of a @@ -16897,44 +17014,44 @@ RuboCop::Cop::Lint::AmbiguousBlockAssociation::MSG = T.let(T.unsafe(nil), String # # With parentheses, there's no ambiguity. # do_something(*some_array) # -# source://rubocop//lib/rubocop/cop/lint/ambiguous_operator.rb#21 +# source://rubocop/lib/rubocop/cop/lint/ambiguous_operator.rb#21 class RuboCop::Cop::Lint::AmbiguousOperator < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/lint/ambiguous_operator.rb#43 + # source://rubocop/lib/rubocop/cop/lint/ambiguous_operator.rb#43 def on_new_investigation; end private - # source://rubocop//lib/rubocop/cop/lint/ambiguous_operator.rb#62 + # source://rubocop/lib/rubocop/cop/lint/ambiguous_operator.rb#62 def find_offense_node_by(diagnostic); end - # source://rubocop//lib/rubocop/cop/lint/ambiguous_operator.rb#80 + # source://rubocop/lib/rubocop/cop/lint/ambiguous_operator.rb#80 def message(diagnostic); end - # source://rubocop//lib/rubocop/cop/lint/ambiguous_operator.rb#90 + # source://rubocop/lib/rubocop/cop/lint/ambiguous_operator.rb#90 def offense_node(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/ambiguous_operator.rb#86 + # source://rubocop/lib/rubocop/cop/lint/ambiguous_operator.rb#86 def offense_position?(node, diagnostic); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/ambiguous_operator.rb#99 + # source://rubocop/lib/rubocop/cop/lint/ambiguous_operator.rb#99 def unary_operator?(node, diagnostic); end class << self - # source://rubocop//lib/rubocop/cop/lint/ambiguous_operator.rb#39 + # source://rubocop/lib/rubocop/cop/lint/ambiguous_operator.rb#39 def autocorrect_incompatible_with; end end end -# source://rubocop//lib/rubocop/cop/lint/ambiguous_operator.rb#24 +# source://rubocop/lib/rubocop/cop/lint/ambiguous_operator.rb#24 RuboCop::Cop::Lint::AmbiguousOperator::AMBIGUITIES = T.let(T.unsafe(nil), Hash) -# source://rubocop//lib/rubocop/cop/lint/ambiguous_operator.rb#34 +# source://rubocop/lib/rubocop/cop/lint/ambiguous_operator.rb#34 RuboCop::Cop::Lint::AmbiguousOperator::MSG_FORMAT = T.let(T.unsafe(nil), String) # Looks for expressions containing multiple binary operators @@ -16962,50 +17079,50 @@ RuboCop::Cop::Lint::AmbiguousOperator::MSG_FORMAT = T.let(T.unsafe(nil), String) # a + b + c # a * b / c % d # -# source://rubocop//lib/rubocop/cop/lint/ambiguous_operator_precedence.rb#30 +# source://rubocop/lib/rubocop/cop/lint/ambiguous_operator_precedence.rb#30 class RuboCop::Cop::Lint::AmbiguousOperatorPrecedence < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/lint/ambiguous_operator_precedence.rb#54 + # source://rubocop/lib/rubocop/cop/lint/ambiguous_operator_precedence.rb#54 def on_and(node); end - # source://rubocop//lib/rubocop/cop/lint/ambiguous_operator_precedence.rb#47 + # source://rubocop/lib/rubocop/cop/lint/ambiguous_operator_precedence.rb#47 def on_new_investigation; end - # source://rubocop//lib/rubocop/cop/lint/ambiguous_operator_precedence.rb#65 + # source://rubocop/lib/rubocop/cop/lint/ambiguous_operator_precedence.rb#65 def on_send(node); end private - # source://rubocop//lib/rubocop/cop/lint/ambiguous_operator_precedence.rb#105 + # source://rubocop/lib/rubocop/cop/lint/ambiguous_operator_precedence.rb#105 def autocorrect(corrector, node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/ambiguous_operator_precedence.rb#89 + # source://rubocop/lib/rubocop/cop/lint/ambiguous_operator_precedence.rb#89 def greater_precedence?(node1, node2); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/ambiguous_operator_precedence.rb#85 + # source://rubocop/lib/rubocop/cop/lint/ambiguous_operator_precedence.rb#85 def operator?(node); end - # source://rubocop//lib/rubocop/cop/lint/ambiguous_operator_precedence.rb#97 + # source://rubocop/lib/rubocop/cop/lint/ambiguous_operator_precedence.rb#97 def operator_name(node); end - # source://rubocop//lib/rubocop/cop/lint/ambiguous_operator_precedence.rb#79 + # source://rubocop/lib/rubocop/cop/lint/ambiguous_operator_precedence.rb#79 def precedence(node); end end -# source://rubocop//lib/rubocop/cop/lint/ambiguous_operator_precedence.rb#45 +# source://rubocop/lib/rubocop/cop/lint/ambiguous_operator_precedence.rb#45 RuboCop::Cop::Lint::AmbiguousOperatorPrecedence::MSG = T.let(T.unsafe(nil), String) # See https://ruby-doc.org/core-3.0.2/doc/syntax/precedence_rdoc.html # -# source://rubocop//lib/rubocop/cop/lint/ambiguous_operator_precedence.rb#34 +# source://rubocop/lib/rubocop/cop/lint/ambiguous_operator_precedence.rb#34 RuboCop::Cop::Lint::AmbiguousOperatorPrecedence::PRECEDENCE = T.let(T.unsafe(nil), Array) -# source://rubocop//lib/rubocop/cop/lint/ambiguous_operator_precedence.rb#44 +# source://rubocop/lib/rubocop/cop/lint/ambiguous_operator_precedence.rb#44 RuboCop::Cop::Lint::AmbiguousOperatorPrecedence::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Checks for ambiguous ranges. @@ -17053,41 +17170,41 @@ RuboCop::Cop::Lint::AmbiguousOperatorPrecedence::RESTRICT_ON_SEND = T.let(T.unsa # # good # (a.foo)..(b.bar) # -# source://rubocop//lib/rubocop/cop/lint/ambiguous_range.rb#59 +# source://rubocop/lib/rubocop/cop/lint/ambiguous_range.rb#59 class RuboCop::Cop::Lint::AmbiguousRange < ::RuboCop::Cop::Base include ::RuboCop::Cop::RationalLiteral extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/lint/ambiguous_range.rb#65 + # source://rubocop/lib/rubocop/cop/lint/ambiguous_range.rb#65 def on_erange(node); end - # source://rubocop//lib/rubocop/cop/lint/ambiguous_range.rb#65 + # source://rubocop/lib/rubocop/cop/lint/ambiguous_range.rb#65 def on_irange(node); end private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/ambiguous_range.rb#84 + # source://rubocop/lib/rubocop/cop/lint/ambiguous_range.rb#84 def acceptable?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/ambiguous_range.rb#92 + # source://rubocop/lib/rubocop/cop/lint/ambiguous_range.rb#92 def acceptable_call?(node); end # @yield [range.begin] # - # source://rubocop//lib/rubocop/cop/lint/ambiguous_range.rb#78 + # source://rubocop/lib/rubocop/cop/lint/ambiguous_range.rb#78 def each_boundary(range); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/ambiguous_range.rb#102 + # source://rubocop/lib/rubocop/cop/lint/ambiguous_range.rb#102 def require_parentheses_for_method_chain?; end end -# source://rubocop//lib/rubocop/cop/lint/ambiguous_range.rb#63 +# source://rubocop/lib/rubocop/cop/lint/ambiguous_range.rb#63 RuboCop::Cop::Lint::AmbiguousRange::MSG = T.let(T.unsafe(nil), String) # Checks for ambiguous regexp literals in the first argument of @@ -17107,33 +17224,33 @@ RuboCop::Cop::Lint::AmbiguousRange::MSG = T.let(T.unsafe(nil), String) # # With parentheses, there's no ambiguity. # do_something(/pattern/i) # -# source://rubocop//lib/rubocop/cop/lint/ambiguous_regexp_literal.rb#22 +# source://rubocop/lib/rubocop/cop/lint/ambiguous_regexp_literal.rb#22 class RuboCop::Cop::Lint::AmbiguousRegexpLiteral < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/lint/ambiguous_regexp_literal.rb#29 + # source://rubocop/lib/rubocop/cop/lint/ambiguous_regexp_literal.rb#29 def on_new_investigation; end private - # source://rubocop//lib/rubocop/cop/lint/ambiguous_regexp_literal.rb#54 + # source://rubocop/lib/rubocop/cop/lint/ambiguous_regexp_literal.rb#54 def find_offense_node(node, regexp_receiver); end - # source://rubocop//lib/rubocop/cop/lint/ambiguous_regexp_literal.rb#47 + # source://rubocop/lib/rubocop/cop/lint/ambiguous_regexp_literal.rb#47 def find_offense_node_by(diagnostic); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/ambiguous_regexp_literal.rb#65 + # source://rubocop/lib/rubocop/cop/lint/ambiguous_regexp_literal.rb#65 def first_argument_is_regexp?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/ambiguous_regexp_literal.rb#69 + # source://rubocop/lib/rubocop/cop/lint/ambiguous_regexp_literal.rb#69 def method_chain_to_regexp_receiver?(node, regexp_receiver); end end -# source://rubocop//lib/rubocop/cop/lint/ambiguous_regexp_literal.rb#25 +# source://rubocop/lib/rubocop/cop/lint/ambiguous_regexp_literal.rb#25 RuboCop::Cop::Lint::AmbiguousRegexpLiteral::MSG = T.let(T.unsafe(nil), String) # Checks for assignments in the conditions of @@ -17165,51 +17282,51 @@ RuboCop::Cop::Lint::AmbiguousRegexpLiteral::MSG = T.let(T.unsafe(nil), String) # do_something # end # -# source://rubocop//lib/rubocop/cop/lint/assignment_in_condition.rb#41 +# source://rubocop/lib/rubocop/cop/lint/assignment_in_condition.rb#41 class RuboCop::Cop::Lint::AssignmentInCondition < ::RuboCop::Cop::Base include ::RuboCop::Cop::SafeAssignment extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/lint/assignment_in_condition.rb#55 + # source://rubocop/lib/rubocop/cop/lint/assignment_in_condition.rb#55 def on_if(node); end - # source://rubocop//lib/rubocop/cop/lint/assignment_in_condition.rb#55 + # source://rubocop/lib/rubocop/cop/lint/assignment_in_condition.rb#55 def on_until(node); end - # source://rubocop//lib/rubocop/cop/lint/assignment_in_condition.rb#55 + # source://rubocop/lib/rubocop/cop/lint/assignment_in_condition.rb#55 def on_while(node); end private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/assignment_in_condition.rb#82 + # source://rubocop/lib/rubocop/cop/lint/assignment_in_condition.rb#82 def allowed_construct?(asgn_node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/assignment_in_condition.rb#86 + # source://rubocop/lib/rubocop/cop/lint/assignment_in_condition.rb#86 def conditional_assignment?(asgn_node); end - # source://rubocop//lib/rubocop/cop/lint/assignment_in_condition.rb#74 + # source://rubocop/lib/rubocop/cop/lint/assignment_in_condition.rb#74 def message(_node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/assignment_in_condition.rb#90 + # source://rubocop/lib/rubocop/cop/lint/assignment_in_condition.rb#90 def skip_children?(asgn_node); end - # source://rubocop//lib/rubocop/cop/lint/assignment_in_condition.rb#96 + # source://rubocop/lib/rubocop/cop/lint/assignment_in_condition.rb#96 def traverse_node(node, &block); end end -# source://rubocop//lib/rubocop/cop/lint/assignment_in_condition.rb#53 +# source://rubocop/lib/rubocop/cop/lint/assignment_in_condition.rb#53 RuboCop::Cop::Lint::AssignmentInCondition::ASGN_TYPES = T.let(T.unsafe(nil), Array) -# source://rubocop//lib/rubocop/cop/lint/assignment_in_condition.rb#50 +# source://rubocop/lib/rubocop/cop/lint/assignment_in_condition.rb#50 RuboCop::Cop::Lint::AssignmentInCondition::MSG_WITHOUT_SAFE_ASSIGNMENT_ALLOWED = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/lint/assignment_in_condition.rb#46 +# source://rubocop/lib/rubocop/cop/lint/assignment_in_condition.rb#46 RuboCop::Cop::Lint::AssignmentInCondition::MSG_WITH_SAFE_ASSIGNMENT_ALLOWED = T.let(T.unsafe(nil), String) # `BigDecimal.new()` is deprecated since BigDecimal 1.3.3. @@ -17223,40 +17340,38 @@ RuboCop::Cop::Lint::AssignmentInCondition::MSG_WITH_SAFE_ASSIGNMENT_ALLOWED = T. # # good # BigDecimal(123.456, 3) # -# source://rubocop//lib/rubocop/cop/lint/big_decimal_new.rb#17 +# source://rubocop/lib/rubocop/cop/lint/big_decimal_new.rb#17 class RuboCop::Cop::Lint::BigDecimalNew < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/lint/big_decimal_new.rb#24 + # source://rubocop/lib/rubocop/cop/lint/big_decimal_new.rb#24 def big_decimal_new(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/lint/big_decimal_new.rb#29 + # source://rubocop/lib/rubocop/cop/lint/big_decimal_new.rb#29 def on_send(node); end end -# source://rubocop//lib/rubocop/cop/lint/big_decimal_new.rb#20 +# source://rubocop/lib/rubocop/cop/lint/big_decimal_new.rb#20 RuboCop::Cop::Lint::BigDecimalNew::MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/lint/big_decimal_new.rb#21 +# source://rubocop/lib/rubocop/cop/lint/big_decimal_new.rb#21 RuboCop::Cop::Lint::BigDecimalNew::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Checks for places where binary operator has identical operands. # -# It covers arithmetic operators: `-`, `/`, `%`; -# comparison operators: `==`, `===`, `=~`, `>`, `>=`, `<`, ``<=``; +# It covers comparison operators: `==`, `===`, `=~`, `>`, `>=`, `<`, ``<=``; # bitwise operators: `|`, `^`, `&`; # boolean operators: `&&`, `||` # and "spaceship" operator - ``<=>``. # # Simple arithmetic operations are allowed by this cop: `+`, `*`, `**`, `<<` and `>>`. # Although these can be rewritten in a different way, it should not be necessary to -# do so. This does not include operations such as `-` or `/` where the result will -# always be the same (`x - x` will always be 0; `x / x` will always be 1), and -# thus are legitimate offenses. +# do so. Operations such as `-` or `/` where the result will always be the same +# (`x - x` will always be 0; `x / x` will always be 1) are offenses, but these +# are covered by Lint/NumericOperationWithConstantResult instead. # # @example # # bad -# x / x # x.top >= x.top # # if a.x != 0 && a.x != 0 @@ -17271,24 +17386,24 @@ RuboCop::Cop::Lint::BigDecimalNew::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array # x + x # 1 << 1 # -# source://rubocop//lib/rubocop/cop/lint/binary_operator_with_identical_operands.rb#48 +# source://rubocop/lib/rubocop/cop/lint/binary_operator_with_identical_operands.rb#46 class RuboCop::Cop::Lint::BinaryOperatorWithIdenticalOperands < ::RuboCop::Cop::Base - # source://rubocop//lib/rubocop/cop/lint/binary_operator_with_identical_operands.rb#61 + # source://rubocop/lib/rubocop/cop/lint/binary_operator_with_identical_operands.rb#57 def on_and(node); end - # source://rubocop//lib/rubocop/cop/lint/binary_operator_with_identical_operands.rb#61 + # source://rubocop/lib/rubocop/cop/lint/binary_operator_with_identical_operands.rb#57 def on_or(node); end - # source://rubocop//lib/rubocop/cop/lint/binary_operator_with_identical_operands.rb#52 + # source://rubocop/lib/rubocop/cop/lint/binary_operator_with_identical_operands.rb#50 def on_send(node); end end -# source://rubocop//lib/rubocop/cop/lint/binary_operator_with_identical_operands.rb#50 -RuboCop::Cop::Lint::BinaryOperatorWithIdenticalOperands::ALLOWED_MATH_OPERATORS = T.let(T.unsafe(nil), Set) - -# source://rubocop//lib/rubocop/cop/lint/binary_operator_with_identical_operands.rb#49 +# source://rubocop/lib/rubocop/cop/lint/binary_operator_with_identical_operands.rb#47 RuboCop::Cop::Lint::BinaryOperatorWithIdenticalOperands::MSG = T.let(T.unsafe(nil), String) +# source://rubocop/lib/rubocop/cop/lint/binary_operator_with_identical_operands.rb#48 +RuboCop::Cop::Lint::BinaryOperatorWithIdenticalOperands::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + # Checks for `:true` and `:false` symbols. # In most cases it would be a typo. # @@ -17306,23 +17421,23 @@ RuboCop::Cop::Lint::BinaryOperatorWithIdenticalOperands::MSG = T.let(T.unsafe(ni # # good # false # -# source://rubocop//lib/rubocop/cop/lint/boolean_symbol.rb#27 +# source://rubocop/lib/rubocop/cop/lint/boolean_symbol.rb#27 class RuboCop::Cop::Lint::BooleanSymbol < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/lint/boolean_symbol.rb#33 + # source://rubocop/lib/rubocop/cop/lint/boolean_symbol.rb#33 def boolean_symbol?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/lint/boolean_symbol.rb#35 + # source://rubocop/lib/rubocop/cop/lint/boolean_symbol.rb#35 def on_sym(node); end private - # source://rubocop//lib/rubocop/cop/lint/boolean_symbol.rb#48 + # source://rubocop/lib/rubocop/cop/lint/boolean_symbol.rb#48 def autocorrect(corrector, node); end end -# source://rubocop//lib/rubocop/cop/lint/boolean_symbol.rb#30 +# source://rubocop/lib/rubocop/cop/lint/boolean_symbol.rb#30 RuboCop::Cop::Lint::BooleanSymbol::MSG = T.let(T.unsafe(nil), String) # Checks for circular argument references in optional keyword @@ -17330,6 +17445,8 @@ RuboCop::Cop::Lint::BooleanSymbol::MSG = T.let(T.unsafe(nil), String) # # This cop mirrors a warning produced by MRI since 2.2. # +# NOTE: This syntax is no longer valid on Ruby 2.7 or higher. +# # @example # # # bad @@ -17357,21 +17474,23 @@ RuboCop::Cop::Lint::BooleanSymbol::MSG = T.let(T.unsafe(nil), String) # dry_ingredients.combine # end # -# source://rubocop//lib/rubocop/cop/lint/circular_argument_reference.rb#37 +# source://rubocop/lib/rubocop/cop/lint/circular_argument_reference.rb#39 class RuboCop::Cop::Lint::CircularArgumentReference < ::RuboCop::Cop::Base - # source://rubocop//lib/rubocop/cop/lint/circular_argument_reference.rb#40 + extend ::RuboCop::Cop::TargetRubyVersion + + # source://rubocop/lib/rubocop/cop/lint/circular_argument_reference.rb#46 def on_kwoptarg(node); end - # source://rubocop//lib/rubocop/cop/lint/circular_argument_reference.rb#44 + # source://rubocop/lib/rubocop/cop/lint/circular_argument_reference.rb#50 def on_optarg(node); end private - # source://rubocop//lib/rubocop/cop/lint/circular_argument_reference.rb#50 + # source://rubocop/lib/rubocop/cop/lint/circular_argument_reference.rb#56 def check_for_circular_argument_references(arg_name, arg_value); end end -# source://rubocop//lib/rubocop/cop/lint/circular_argument_reference.rb#38 +# source://rubocop/lib/rubocop/cop/lint/circular_argument_reference.rb#42 RuboCop::Cop::Lint::CircularArgumentReference::MSG = T.let(T.unsafe(nil), String) # Do not define constants within a block, since the block's scope does not @@ -17431,32 +17550,32 @@ RuboCop::Cop::Lint::CircularArgumentReference::MSG = T.let(T.unsafe(nil), String # end # end # -# source://rubocop//lib/rubocop/cop/lint/constant_definition_in_block.rb#64 +# source://rubocop/lib/rubocop/cop/lint/constant_definition_in_block.rb#64 class RuboCop::Cop::Lint::ConstantDefinitionInBlock < ::RuboCop::Cop::Base include ::RuboCop::Cop::AllowedMethods - # source://rubocop//lib/rubocop/cop/lint/constant_definition_in_block.rb#70 + # source://rubocop/lib/rubocop/cop/lint/constant_definition_in_block.rb#70 def constant_assigned_in_block?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/lint/constant_definition_in_block.rb#75 + # source://rubocop/lib/rubocop/cop/lint/constant_definition_in_block.rb#75 def module_defined_in_block?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/lint/constant_definition_in_block.rb#79 + # source://rubocop/lib/rubocop/cop/lint/constant_definition_in_block.rb#79 def on_casgn(node); end - # source://rubocop//lib/rubocop/cop/lint/constant_definition_in_block.rb#85 + # source://rubocop/lib/rubocop/cop/lint/constant_definition_in_block.rb#85 def on_class(node); end - # source://rubocop//lib/rubocop/cop/lint/constant_definition_in_block.rb#85 + # source://rubocop/lib/rubocop/cop/lint/constant_definition_in_block.rb#85 def on_module(node); end private - # source://rubocop//lib/rubocop/cop/lint/constant_definition_in_block.rb#94 + # source://rubocop/lib/rubocop/cop/lint/constant_definition_in_block.rb#94 def method_name(node); end end -# source://rubocop//lib/rubocop/cop/lint/constant_definition_in_block.rb#67 +# source://rubocop/lib/rubocop/cop/lint/constant_definition_in_block.rb#67 RuboCop::Cop::Lint::ConstantDefinitionInBlock::MSG = T.let(T.unsafe(nil), String) # Checks for overwriting an exception with an exception result by use ``rescue =>``. @@ -17479,24 +17598,24 @@ RuboCop::Cop::Lint::ConstantDefinitionInBlock::MSG = T.let(T.unsafe(nil), String # rescue StandardError # end # -# source://rubocop//lib/rubocop/cop/lint/constant_overwritten_in_rescue.rb#26 +# source://rubocop/lib/rubocop/cop/lint/constant_overwritten_in_rescue.rb#26 class RuboCop::Cop::Lint::ConstantOverwrittenInRescue < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/lint/constant_overwritten_in_rescue.rb#41 + # source://rubocop/lib/rubocop/cop/lint/constant_overwritten_in_rescue.rb#41 def on_resbody(node); end - # source://rubocop//lib/rubocop/cop/lint/constant_overwritten_in_rescue.rb#33 + # source://rubocop/lib/rubocop/cop/lint/constant_overwritten_in_rescue.rb#33 def overwritten_constant(param0 = T.unsafe(nil)); end class << self - # source://rubocop//lib/rubocop/cop/lint/constant_overwritten_in_rescue.rb#37 + # source://rubocop/lib/rubocop/cop/lint/constant_overwritten_in_rescue.rb#37 def autocorrect_incompatible_with; end end end -# source://rubocop//lib/rubocop/cop/lint/constant_overwritten_in_rescue.rb#30 +# source://rubocop/lib/rubocop/cop/lint/constant_overwritten_in_rescue.rb#30 RuboCop::Cop::Lint::ConstantOverwrittenInRescue::MSG = T.let(T.unsafe(nil), String) # Check that certain constants are fully qualified. @@ -17553,29 +17672,29 @@ RuboCop::Cop::Lint::ConstantOverwrittenInRescue::MSG = T.let(T.unsafe(nil), Stri # # good # Login # -# source://rubocop//lib/rubocop/cop/lint/constant_resolution.rb#62 +# source://rubocop/lib/rubocop/cop/lint/constant_resolution.rb#62 class RuboCop::Cop::Lint::ConstantResolution < ::RuboCop::Cop::Base - # source://rubocop//lib/rubocop/cop/lint/constant_resolution.rb#70 + # source://rubocop/lib/rubocop/cop/lint/constant_resolution.rb#70 def on_const(node); end - # source://rubocop//lib/rubocop/cop/lint/constant_resolution.rb#66 + # source://rubocop/lib/rubocop/cop/lint/constant_resolution.rb#66 def unqualified_const?(param0 = T.unsafe(nil)); end private - # source://rubocop//lib/rubocop/cop/lint/constant_resolution.rb#83 + # source://rubocop/lib/rubocop/cop/lint/constant_resolution.rb#83 def allowed_names; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/constant_resolution.rb#78 + # source://rubocop/lib/rubocop/cop/lint/constant_resolution.rb#78 def const_name?(name); end - # source://rubocop//lib/rubocop/cop/lint/constant_resolution.rb#87 + # source://rubocop/lib/rubocop/cop/lint/constant_resolution.rb#87 def ignored_names; end end -# source://rubocop//lib/rubocop/cop/lint/constant_resolution.rb#63 +# source://rubocop/lib/rubocop/cop/lint/constant_resolution.rb#63 RuboCop::Cop::Lint::ConstantResolution::MSG = T.let(T.unsafe(nil), String) # Checks for debug calls (such as `debugger` or `binding.pry`) that should @@ -17645,50 +17764,50 @@ RuboCop::Cop::Lint::ConstantResolution::MSG = T.let(T.unsafe(nil), String) # # require 'my_debugger/start' # -# source://rubocop//lib/rubocop/cop/lint/debugger.rb#74 +# source://rubocop/lib/rubocop/cop/lint/debugger.rb#74 class RuboCop::Cop::Lint::Debugger < ::RuboCop::Cop::Base - # source://rubocop//lib/rubocop/cop/lint/debugger.rb#78 + # source://rubocop/lib/rubocop/cop/lint/debugger.rb#78 def on_send(node); end private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/debugger.rb#138 + # source://rubocop/lib/rubocop/cop/lint/debugger.rb#138 def assumed_argument?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/debugger.rb#117 + # source://rubocop/lib/rubocop/cop/lint/debugger.rb#117 def assumed_usage_context?(node); end - # source://rubocop//lib/rubocop/cop/lint/debugger.rb#127 + # source://rubocop/lib/rubocop/cop/lint/debugger.rb#127 def chained_method_name(send_node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/debugger.rb#104 + # source://rubocop/lib/rubocop/cop/lint/debugger.rb#104 def debugger_method?(send_node); end - # source://rubocop//lib/rubocop/cop/lint/debugger.rb#90 + # source://rubocop/lib/rubocop/cop/lint/debugger.rb#90 def debugger_methods; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/debugger.rb#110 + # source://rubocop/lib/rubocop/cop/lint/debugger.rb#110 def debugger_require?(send_node); end - # source://rubocop//lib/rubocop/cop/lint/debugger.rb#97 + # source://rubocop/lib/rubocop/cop/lint/debugger.rb#97 def debugger_requires; end - # source://rubocop//lib/rubocop/cop/lint/debugger.rb#86 + # source://rubocop/lib/rubocop/cop/lint/debugger.rb#86 def message(node); end end -# source://rubocop//lib/rubocop/cop/lint/debugger.rb#76 +# source://rubocop/lib/rubocop/cop/lint/debugger.rb#76 RuboCop::Cop::Lint::Debugger::BLOCK_TYPES = T.let(T.unsafe(nil), Array) -# source://rubocop//lib/rubocop/cop/lint/debugger.rb#75 +# source://rubocop/lib/rubocop/cop/lint/debugger.rb#75 RuboCop::Cop::Lint::Debugger::MSG = T.let(T.unsafe(nil), String) # Checks for uses of the deprecated class method usages. @@ -17719,45 +17838,45 @@ RuboCop::Cop::Lint::Debugger::MSG = T.let(T.unsafe(nil), String) # Addrinfo.getaddrinfo(nodename, service) # Addrinfo.tcp(host, port).getnameinfo # -# source://rubocop//lib/rubocop/cop/lint/deprecated_class_methods.rb#33 +# source://rubocop/lib/rubocop/cop/lint/deprecated_class_methods.rb#33 class RuboCop::Cop::Lint::DeprecatedClassMethods < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/lint/deprecated_class_methods.rb#53 + # source://rubocop/lib/rubocop/cop/lint/deprecated_class_methods.rb#53 def deprecated_class_method?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/lint/deprecated_class_methods.rb#63 + # source://rubocop/lib/rubocop/cop/lint/deprecated_class_methods.rb#63 def on_send(node); end private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/deprecated_class_methods.rb#112 + # source://rubocop/lib/rubocop/cop/lint/deprecated_class_methods.rb#112 def dir_env_file_const?(node); end - # source://rubocop//lib/rubocop/cop/lint/deprecated_class_methods.rb#83 + # source://rubocop/lib/rubocop/cop/lint/deprecated_class_methods.rb#83 def offense_range(node); end - # source://rubocop//lib/rubocop/cop/lint/deprecated_class_methods.rb#93 + # source://rubocop/lib/rubocop/cop/lint/deprecated_class_methods.rb#93 def preferred_method(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/deprecated_class_methods.rb#108 + # source://rubocop/lib/rubocop/cop/lint/deprecated_class_methods.rb#108 def socket_const?(node); end end -# source://rubocop//lib/rubocop/cop/lint/deprecated_class_methods.rb#50 +# source://rubocop/lib/rubocop/cop/lint/deprecated_class_methods.rb#50 RuboCop::Cop::Lint::DeprecatedClassMethods::DIR_ENV_FILE_CONSTANTS = T.let(T.unsafe(nil), Array) -# source://rubocop//lib/rubocop/cop/lint/deprecated_class_methods.rb#36 +# source://rubocop/lib/rubocop/cop/lint/deprecated_class_methods.rb#36 RuboCop::Cop::Lint::DeprecatedClassMethods::MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/lint/deprecated_class_methods.rb#41 +# source://rubocop/lib/rubocop/cop/lint/deprecated_class_methods.rb#41 RuboCop::Cop::Lint::DeprecatedClassMethods::PREFERRED_METHODS = T.let(T.unsafe(nil), Hash) -# source://rubocop//lib/rubocop/cop/lint/deprecated_class_methods.rb#37 +# source://rubocop/lib/rubocop/cop/lint/deprecated_class_methods.rb#37 RuboCop::Cop::Lint::DeprecatedClassMethods::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Checks for deprecated constants. @@ -17794,29 +17913,29 @@ RuboCop::Cop::Lint::DeprecatedClassMethods::RESTRICT_ON_SEND = T.let(T.unsafe(ni # Etc::Group # Etc::Passwd # -# source://rubocop//lib/rubocop/cop/lint/deprecated_constants.rb#40 +# source://rubocop/lib/rubocop/cop/lint/deprecated_constants.rb#40 class RuboCop::Cop::Lint::DeprecatedConstants < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/lint/deprecated_constants.rb#46 + # source://rubocop/lib/rubocop/cop/lint/deprecated_constants.rb#46 def on_const(node); end private - # source://rubocop//lib/rubocop/cop/lint/deprecated_constants.rb#66 + # source://rubocop/lib/rubocop/cop/lint/deprecated_constants.rb#66 def constant_name(node, nested_constant_name); end - # source://rubocop//lib/rubocop/cop/lint/deprecated_constants.rb#82 + # source://rubocop/lib/rubocop/cop/lint/deprecated_constants.rb#82 def deprecated_constants; end - # source://rubocop//lib/rubocop/cop/lint/deprecated_constants.rb#72 + # source://rubocop/lib/rubocop/cop/lint/deprecated_constants.rb#72 def message(good, bad, deprecated_version); end end -# source://rubocop//lib/rubocop/cop/lint/deprecated_constants.rb#44 +# source://rubocop/lib/rubocop/cop/lint/deprecated_constants.rb#44 RuboCop::Cop::Lint::DeprecatedConstants::DO_NOT_USE_MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/lint/deprecated_constants.rb#43 +# source://rubocop/lib/rubocop/cop/lint/deprecated_constants.rb#43 RuboCop::Cop::Lint::DeprecatedConstants::SUGGEST_GOOD_MSG = T.let(T.unsafe(nil), String) # Algorithmic constants for `OpenSSL::Cipher` and `OpenSSL::Digest` @@ -17843,53 +17962,56 @@ RuboCop::Cop::Lint::DeprecatedConstants::SUGGEST_GOOD_MSG = T.let(T.unsafe(nil), # # good # OpenSSL::Digest.digest('SHA256', 'foo') # -# source://rubocop//lib/rubocop/cop/lint/deprecated_open_ssl_constant.rb#30 +# source://rubocop/lib/rubocop/cop/lint/deprecated_open_ssl_constant.rb#30 class RuboCop::Cop::Lint::DeprecatedOpenSSLConstant < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/lint/deprecated_open_ssl_constant.rb#39 + # source://rubocop/lib/rubocop/cop/lint/deprecated_open_ssl_constant.rb#40 def algorithm_const(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/lint/deprecated_open_ssl_constant.rb#49 + # source://rubocop/lib/rubocop/cop/lint/deprecated_open_ssl_constant.rb#50 def digest_const?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/lint/deprecated_open_ssl_constant.rb#53 + # source://rubocop/lib/rubocop/cop/lint/deprecated_open_ssl_constant.rb#54 def on_send(node); end private - # source://rubocop//lib/rubocop/cop/lint/deprecated_open_ssl_constant.rb#100 + # source://rubocop/lib/rubocop/cop/lint/deprecated_open_ssl_constant.rb#101 def algorithm_name(node); end - # source://rubocop//lib/rubocop/cop/lint/deprecated_open_ssl_constant.rb#65 + # source://rubocop/lib/rubocop/cop/lint/deprecated_open_ssl_constant.rb#66 def autocorrect(corrector, node); end - # source://rubocop//lib/rubocop/cop/lint/deprecated_open_ssl_constant.rb#129 + # source://rubocop/lib/rubocop/cop/lint/deprecated_open_ssl_constant.rb#130 def build_cipher_arguments(node, algorithm_name, no_arguments); end - # source://rubocop//lib/rubocop/cop/lint/deprecated_open_ssl_constant.rb#92 + # source://rubocop/lib/rubocop/cop/lint/deprecated_open_ssl_constant.rb#93 def correction_range(node); end - # source://rubocop//lib/rubocop/cop/lint/deprecated_open_ssl_constant.rb#77 + # source://rubocop/lib/rubocop/cop/lint/deprecated_open_ssl_constant.rb#78 def message(node); end - # source://rubocop//lib/rubocop/cop/lint/deprecated_open_ssl_constant.rb#96 + # source://rubocop/lib/rubocop/cop/lint/deprecated_open_ssl_constant.rb#97 def openssl_class(node); end - # source://rubocop//lib/rubocop/cop/lint/deprecated_open_ssl_constant.rb#118 + # source://rubocop/lib/rubocop/cop/lint/deprecated_open_ssl_constant.rb#119 def replacement_args(node); end - # source://rubocop//lib/rubocop/cop/lint/deprecated_open_ssl_constant.rb#110 + # source://rubocop/lib/rubocop/cop/lint/deprecated_open_ssl_constant.rb#111 def sanitize_arguments(arguments); end end -# source://rubocop//lib/rubocop/cop/lint/deprecated_open_ssl_constant.rb#34 +# source://rubocop/lib/rubocop/cop/lint/deprecated_open_ssl_constant.rb#34 RuboCop::Cop::Lint::DeprecatedOpenSSLConstant::MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/lint/deprecated_open_ssl_constant.rb#36 +# source://rubocop/lib/rubocop/cop/lint/deprecated_open_ssl_constant.rb#37 RuboCop::Cop::Lint::DeprecatedOpenSSLConstant::NO_ARG_ALGORITHM = T.let(T.unsafe(nil), Array) +# source://rubocop/lib/rubocop/cop/lint/deprecated_open_ssl_constant.rb#36 +RuboCop::Cop::Lint::DeprecatedOpenSSLConstant::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + # Checks constructors for disjunctive assignments (`||=`) that should # be plain assignments. # @@ -17910,26 +18032,26 @@ RuboCop::Cop::Lint::DeprecatedOpenSSLConstant::NO_ARG_ALGORITHM = T.let(T.unsafe # @x = 1 # end # -# source://rubocop//lib/rubocop/cop/lint/disjunctive_assignment_in_constructor.rb#48 +# source://rubocop/lib/rubocop/cop/lint/disjunctive_assignment_in_constructor.rb#48 class RuboCop::Cop::Lint::DisjunctiveAssignmentInConstructor < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/lint/disjunctive_assignment_in_constructor.rb#53 + # source://rubocop/lib/rubocop/cop/lint/disjunctive_assignment_in_constructor.rb#53 def on_def(node); end private # @param node [DefNode] a constructor definition # - # source://rubocop//lib/rubocop/cop/lint/disjunctive_assignment_in_constructor.rb#60 + # source://rubocop/lib/rubocop/cop/lint/disjunctive_assignment_in_constructor.rb#60 def check(node); end - # source://rubocop//lib/rubocop/cop/lint/disjunctive_assignment_in_constructor.rb#66 + # source://rubocop/lib/rubocop/cop/lint/disjunctive_assignment_in_constructor.rb#66 def check_body(body); end # @param lines [Array] the logical lines of the constructor # - # source://rubocop//lib/rubocop/cop/lint/disjunctive_assignment_in_constructor.rb#78 + # source://rubocop/lib/rubocop/cop/lint/disjunctive_assignment_in_constructor.rb#78 def check_body_lines(lines); end # Add an offense if the LHS of the given disjunctive assignment is @@ -17939,11 +18061,11 @@ class RuboCop::Cop::Lint::DisjunctiveAssignmentInConstructor < ::RuboCop::Cop::B # # @param node [Node] a disjunctive assignment # - # source://rubocop//lib/rubocop/cop/lint/disjunctive_assignment_in_constructor.rb#99 + # source://rubocop/lib/rubocop/cop/lint/disjunctive_assignment_in_constructor.rb#99 def check_disjunctive_assignment(node); end end -# source://rubocop//lib/rubocop/cop/lint/disjunctive_assignment_in_constructor.rb#51 +# source://rubocop/lib/rubocop/cop/lint/disjunctive_assignment_in_constructor.rb#51 RuboCop::Cop::Lint::DisjunctiveAssignmentInConstructor::MSG = T.let(T.unsafe(nil), String) # Checks that there are no repeated bodies @@ -18036,68 +18158,68 @@ RuboCop::Cop::Lint::DisjunctiveAssignmentInConstructor::MSG = T.let(T.unsafe(nil # do_foo # end # -# source://rubocop//lib/rubocop/cop/lint/duplicate_branch.rb#99 +# 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#102 + # 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#102 + # source://rubocop/lib/rubocop/cop/lint/duplicate_branch.rb#102 def on_case(node); end - # source://rubocop//lib/rubocop/cop/lint/duplicate_branch.rb#102 + # 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#114 + # source://rubocop/lib/rubocop/cop/lint/duplicate_branch.rb#114 def on_if(node); end - # source://rubocop//lib/rubocop/cop/lint/duplicate_branch.rb#102 + # 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#136 + # 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#140 + # 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#174 + # 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#178 + # 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 + # 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#159 + # 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 + # 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#163 + # source://rubocop/lib/rubocop/cop/lint/duplicate_branch.rb#163 def literal_branch?(branch); end - # source://rubocop//lib/rubocop/cop/lint/duplicate_branch.rb#122 + # 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#100 +# 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 @@ -18121,13 +18243,13 @@ RuboCop::Cop::Lint::DuplicateBranch::MSG = T.let(T.unsafe(nil), String) # do_something_else # end # -# source://rubocop//lib/rubocop/cop/lint/duplicate_case_condition.rb#26 +# source://rubocop/lib/rubocop/cop/lint/duplicate_case_condition.rb#26 class RuboCop::Cop::Lint::DuplicateCaseCondition < ::RuboCop::Cop::Base - # source://rubocop//lib/rubocop/cop/lint/duplicate_case_condition.rb#29 + # source://rubocop/lib/rubocop/cop/lint/duplicate_case_condition.rb#29 def on_case(case_node); end end -# source://rubocop//lib/rubocop/cop/lint/duplicate_case_condition.rb#27 +# source://rubocop/lib/rubocop/cop/lint/duplicate_case_condition.rb#27 RuboCop::Cop::Lint::DuplicateCaseCondition::MSG = T.let(T.unsafe(nil), String) # Checks that there are no repeated conditions used in if 'elsif'. @@ -18147,13 +18269,13 @@ RuboCop::Cop::Lint::DuplicateCaseCondition::MSG = T.let(T.unsafe(nil), String) # do_something_else # end # -# source://rubocop//lib/rubocop/cop/lint/duplicate_elsif_condition.rb#23 +# source://rubocop/lib/rubocop/cop/lint/duplicate_elsif_condition.rb#23 class RuboCop::Cop::Lint::DuplicateElsifCondition < ::RuboCop::Cop::Base - # source://rubocop//lib/rubocop/cop/lint/duplicate_elsif_condition.rb#26 + # source://rubocop/lib/rubocop/cop/lint/duplicate_elsif_condition.rb#26 def on_if(node); end end -# source://rubocop//lib/rubocop/cop/lint/duplicate_elsif_condition.rb#24 +# source://rubocop/lib/rubocop/cop/lint/duplicate_elsif_condition.rb#24 RuboCop::Cop::Lint::DuplicateElsifCondition::MSG = T.let(T.unsafe(nil), String) # Checks for duplicated keys in hash literals. @@ -18169,15 +18291,15 @@ RuboCop::Cop::Lint::DuplicateElsifCondition::MSG = T.let(T.unsafe(nil), String) # # good # hash = { food: 'apple', other_food: 'orange' } # -# source://rubocop//lib/rubocop/cop/lint/duplicate_hash_key.rb#18 +# source://rubocop/lib/rubocop/cop/lint/duplicate_hash_key.rb#18 class RuboCop::Cop::Lint::DuplicateHashKey < ::RuboCop::Cop::Base include ::RuboCop::Cop::Duplication - # source://rubocop//lib/rubocop/cop/lint/duplicate_hash_key.rb#23 + # source://rubocop/lib/rubocop/cop/lint/duplicate_hash_key.rb#23 def on_hash(node); end end -# source://rubocop//lib/rubocop/cop/lint/duplicate_hash_key.rb#21 +# source://rubocop/lib/rubocop/cop/lint/duplicate_hash_key.rb#21 RuboCop::Cop::Lint::DuplicateHashKey::MSG = T.let(T.unsafe(nil), String) # Checks for duplicated magic comments. @@ -18202,25 +18324,25 @@ RuboCop::Cop::Lint::DuplicateHashKey::MSG = T.let(T.unsafe(nil), String) # # # frozen_string_literal: true # -# source://rubocop//lib/rubocop/cop/lint/duplicate_magic_comment.rb#28 +# source://rubocop/lib/rubocop/cop/lint/duplicate_magic_comment.rb#28 class RuboCop::Cop::Lint::DuplicateMagicComment < ::RuboCop::Cop::Base include ::RuboCop::Cop::FrozenStringLiteral include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/lint/duplicate_magic_comment.rb#35 + # source://rubocop/lib/rubocop/cop/lint/duplicate_magic_comment.rb#35 def on_new_investigation; end private - # source://rubocop//lib/rubocop/cop/lint/duplicate_magic_comment.rb#51 + # source://rubocop/lib/rubocop/cop/lint/duplicate_magic_comment.rb#51 def magic_comment_lines; end - # source://rubocop//lib/rubocop/cop/lint/duplicate_magic_comment.rb#65 + # source://rubocop/lib/rubocop/cop/lint/duplicate_magic_comment.rb#65 def register_offense(range); end end -# source://rubocop//lib/rubocop/cop/lint/duplicate_magic_comment.rb#33 +# source://rubocop/lib/rubocop/cop/lint/duplicate_magic_comment.rb#33 RuboCop::Cop::Lint::DuplicateMagicComment::MSG = T.let(T.unsafe(nil), String) # Checks that there are no repeated patterns used in `in` keywords. @@ -18307,20 +18429,20 @@ RuboCop::Cop::Lint::DuplicateMagicComment::MSG = T.let(T.unsafe(nil), String) # second_method # end # -# source://rubocop//lib/rubocop/cop/lint/duplicate_match_pattern.rb#90 +# source://rubocop/lib/rubocop/cop/lint/duplicate_match_pattern.rb#90 class RuboCop::Cop::Lint::DuplicateMatchPattern < ::RuboCop::Cop::Base extend ::RuboCop::Cop::TargetRubyVersion - # source://rubocop//lib/rubocop/cop/lint/duplicate_match_pattern.rb#97 + # source://rubocop/lib/rubocop/cop/lint/duplicate_match_pattern.rb#97 def on_case_match(case_node); end private - # source://rubocop//lib/rubocop/cop/lint/duplicate_match_pattern.rb#108 + # source://rubocop/lib/rubocop/cop/lint/duplicate_match_pattern.rb#108 def pattern_identity(pattern); end end -# source://rubocop//lib/rubocop/cop/lint/duplicate_match_pattern.rb#93 +# source://rubocop/lib/rubocop/cop/lint/duplicate_match_pattern.rb#93 RuboCop::Cop::Lint::DuplicateMatchPattern::MSG = T.let(T.unsafe(nil), String) # Checks for duplicated instance (or singleton) method @@ -18360,88 +18482,88 @@ RuboCop::Cop::Lint::DuplicateMatchPattern::MSG = T.let(T.unsafe(nil), String) # # alias bar foo # -# source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#42 +# source://rubocop/lib/rubocop/cop/lint/duplicate_methods.rb#42 class RuboCop::Cop::Lint::DuplicateMethods < ::RuboCop::Cop::Base # @return [DuplicateMethods] a new instance of DuplicateMethods # - # source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#47 + # source://rubocop/lib/rubocop/cop/lint/duplicate_methods.rb#47 def initialize(config = T.unsafe(nil), options = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#88 + # source://rubocop/lib/rubocop/cop/lint/duplicate_methods.rb#88 def alias_method?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#75 + # source://rubocop/lib/rubocop/cop/lint/duplicate_methods.rb#75 def method_alias?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#79 + # source://rubocop/lib/rubocop/cop/lint/duplicate_methods.rb#79 def on_alias(node); end - # source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#53 + # source://rubocop/lib/rubocop/cop/lint/duplicate_methods.rb#53 def on_def(node); end - # source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#62 + # source://rubocop/lib/rubocop/cop/lint/duplicate_methods.rb#62 def on_defs(node); end - # source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#94 + # source://rubocop/lib/rubocop/cop/lint/duplicate_methods.rb#94 def on_send(node); end - # source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#93 + # source://rubocop/lib/rubocop/cop/lint/duplicate_methods.rb#93 def sym_name(param0 = T.unsafe(nil)); end private - # source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#107 + # source://rubocop/lib/rubocop/cop/lint/duplicate_methods.rb#107 def check_const_receiver(node, name, const_name); end - # source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#114 + # source://rubocop/lib/rubocop/cop/lint/duplicate_methods.rb#114 def check_self_receiver(node, name); end - # source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#198 + # source://rubocop/lib/rubocop/cop/lint/duplicate_methods.rb#198 def found_attr(node, args, readable: T.unsafe(nil), writable: T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#126 + # source://rubocop/lib/rubocop/cop/lint/duplicate_methods.rb#126 def found_instance_method(node, name); end - # source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#149 + # source://rubocop/lib/rubocop/cop/lint/duplicate_methods.rb#149 def found_method(node, method_name); end - # source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#139 + # source://rubocop/lib/rubocop/cop/lint/duplicate_methods.rb#139 def found_sclass_method(node, name); end - # source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#176 + # source://rubocop/lib/rubocop/cop/lint/duplicate_methods.rb#176 def location(node); end - # source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#208 + # source://rubocop/lib/rubocop/cop/lint/duplicate_methods.rb#208 def lookup_constant(node, const_name); end - # source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#121 + # source://rubocop/lib/rubocop/cop/lint/duplicate_methods.rb#121 def message_for_dup(node, method_name, key); end - # source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#168 + # source://rubocop/lib/rubocop/cop/lint/duplicate_methods.rb#168 def method_key(node, method_name); end - # source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#184 + # source://rubocop/lib/rubocop/cop/lint/duplicate_methods.rb#184 def on_attr(node, attr_name, args); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#240 + # source://rubocop/lib/rubocop/cop/lint/duplicate_methods.rb#240 def possible_dsl?(node); end - # source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#226 + # source://rubocop/lib/rubocop/cop/lint/duplicate_methods.rb#226 def qualified_name(enclosing, namespace, mod_name); end - # source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#250 + # source://rubocop/lib/rubocop/cop/lint/duplicate_methods.rb#250 def source_location(node); end end -# source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#45 +# source://rubocop/lib/rubocop/cop/lint/duplicate_methods.rb#45 RuboCop::Cop::Lint::DuplicateMethods::DEF_TYPES = T.let(T.unsafe(nil), Array) -# source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#43 +# source://rubocop/lib/rubocop/cop/lint/duplicate_methods.rb#43 RuboCop::Cop::Lint::DuplicateMethods::MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#44 +# source://rubocop/lib/rubocop/cop/lint/duplicate_methods.rb#44 RuboCop::Cop::Lint::DuplicateMethods::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Checks for duplicate elements in Regexp character classes. @@ -18460,44 +18582,44 @@ RuboCop::Cop::Lint::DuplicateMethods::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Ar # # good # r = /[0-9x]/ # -# source://rubocop//lib/rubocop/cop/lint/duplicate_regexp_character_class_element.rb#21 +# source://rubocop/lib/rubocop/cop/lint/duplicate_regexp_character_class_element.rb#21 class RuboCop::Cop::Lint::DuplicateRegexpCharacterClassElement < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/lint/duplicate_regexp_character_class_element.rb#37 + # source://rubocop/lib/rubocop/cop/lint/duplicate_regexp_character_class_element.rb#37 def each_repeated_character_class_element_loc(node); end - # source://rubocop//lib/rubocop/cop/lint/duplicate_regexp_character_class_element.rb#29 + # source://rubocop/lib/rubocop/cop/lint/duplicate_regexp_character_class_element.rb#29 def on_regexp(node); end private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/duplicate_regexp_character_class_element.rb#102 + # source://rubocop/lib/rubocop/cop/lint/duplicate_regexp_character_class_element.rb#102 def escaped_octal?(string); end - # source://rubocop//lib/rubocop/cop/lint/duplicate_regexp_character_class_element.rb#54 + # source://rubocop/lib/rubocop/cop/lint/duplicate_regexp_character_class_element.rb#54 def group_expressions(node, expressions); end - # source://rubocop//lib/rubocop/cop/lint/duplicate_regexp_character_class_element.rb#110 + # source://rubocop/lib/rubocop/cop/lint/duplicate_regexp_character_class_element.rb#110 def interpolation_locs(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/duplicate_regexp_character_class_element.rb#106 + # source://rubocop/lib/rubocop/cop/lint/duplicate_regexp_character_class_element.rb#106 def octal?(char); end - # source://rubocop//lib/rubocop/cop/lint/duplicate_regexp_character_class_element.rb#71 + # source://rubocop/lib/rubocop/cop/lint/duplicate_regexp_character_class_element.rb#71 def pop_octal_digits(current_child, expressions); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/duplicate_regexp_character_class_element.rb#89 + # source://rubocop/lib/rubocop/cop/lint/duplicate_regexp_character_class_element.rb#89 def skip_expression?(expr); end - # source://rubocop//lib/rubocop/cop/lint/duplicate_regexp_character_class_element.rb#80 + # source://rubocop/lib/rubocop/cop/lint/duplicate_regexp_character_class_element.rb#80 def source_range(children); end # Since we blank interpolations with a space for every char of the interpolation, we would @@ -18506,14 +18628,14 @@ class RuboCop::Cop::Lint::DuplicateRegexpCharacterClassElement < ::RuboCop::Cop: # # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/duplicate_regexp_character_class_element.rb#96 + # source://rubocop/lib/rubocop/cop/lint/duplicate_regexp_character_class_element.rb#96 def within_interpolation?(node, child); end end -# source://rubocop//lib/rubocop/cop/lint/duplicate_regexp_character_class_element.rb#25 +# source://rubocop/lib/rubocop/cop/lint/duplicate_regexp_character_class_element.rb#25 RuboCop::Cop::Lint::DuplicateRegexpCharacterClassElement::MSG_REPEATED_ELEMENT = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/lint/duplicate_regexp_character_class_element.rb#27 +# source://rubocop/lib/rubocop/cop/lint/duplicate_regexp_character_class_element.rb#27 RuboCop::Cop::Lint::DuplicateRegexpCharacterClassElement::OCTAL_DIGITS_AFTER_ESCAPE = T.let(T.unsafe(nil), Integer) # Checks for duplicate ``require``s and ``require_relative``s. @@ -18532,28 +18654,28 @@ RuboCop::Cop::Lint::DuplicateRegexpCharacterClassElement::OCTAL_DIGITS_AFTER_ESC # require 'foo' # require_relative 'foo' # -# source://rubocop//lib/rubocop/cop/lint/duplicate_require.rb#26 +# source://rubocop/lib/rubocop/cop/lint/duplicate_require.rb#26 class RuboCop::Cop::Lint::DuplicateRequire < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/lint/duplicate_require.rb#39 + # source://rubocop/lib/rubocop/cop/lint/duplicate_require.rb#39 def on_new_investigation; end - # source://rubocop//lib/rubocop/cop/lint/duplicate_require.rb#45 + # source://rubocop/lib/rubocop/cop/lint/duplicate_require.rb#45 def on_send(node); end - # source://rubocop//lib/rubocop/cop/lint/duplicate_require.rb#35 + # source://rubocop/lib/rubocop/cop/lint/duplicate_require.rb#35 def require_call?(param0 = T.unsafe(nil)); end end -# source://rubocop//lib/rubocop/cop/lint/duplicate_require.rb#30 +# source://rubocop/lib/rubocop/cop/lint/duplicate_require.rb#30 RuboCop::Cop::Lint::DuplicateRequire::MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/lint/duplicate_require.rb#31 +# source://rubocop/lib/rubocop/cop/lint/duplicate_require.rb#31 RuboCop::Cop::Lint::DuplicateRequire::REQUIRE_METHODS = T.let(T.unsafe(nil), Set) -# source://rubocop//lib/rubocop/cop/lint/duplicate_require.rb#32 +# source://rubocop/lib/rubocop/cop/lint/duplicate_require.rb#32 RuboCop::Cop::Lint::DuplicateRequire::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Set) # Checks that there are no repeated exceptions @@ -18578,15 +18700,15 @@ RuboCop::Cop::Lint::DuplicateRequire::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Se # handle_other_exception # end # -# source://rubocop//lib/rubocop/cop/lint/duplicate_rescue_exception.rb#28 +# source://rubocop/lib/rubocop/cop/lint/duplicate_rescue_exception.rb#28 class RuboCop::Cop::Lint::DuplicateRescueException < ::RuboCop::Cop::Base include ::RuboCop::Cop::RescueNode - # source://rubocop//lib/rubocop/cop/lint/duplicate_rescue_exception.rb#33 + # source://rubocop/lib/rubocop/cop/lint/duplicate_rescue_exception.rb#33 def on_rescue(node); end end -# source://rubocop//lib/rubocop/cop/lint/duplicate_rescue_exception.rb#31 +# source://rubocop/lib/rubocop/cop/lint/duplicate_rescue_exception.rb#31 RuboCop::Cop::Lint::DuplicateRescueException::MSG = T.let(T.unsafe(nil), String) # Checks for duplicate literal, constant, or variable elements in Set. @@ -18611,29 +18733,29 @@ RuboCop::Cop::Lint::DuplicateRescueException::MSG = T.let(T.unsafe(nil), String) # # good # [:foo, :bar].to_set # -# source://rubocop//lib/rubocop/cop/lint/duplicate_set_element.rb#28 +# source://rubocop/lib/rubocop/cop/lint/duplicate_set_element.rb#28 class RuboCop::Cop::Lint::DuplicateSetElement < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/lint/duplicate_set_element.rb#43 + # source://rubocop/lib/rubocop/cop/lint/duplicate_set_element.rb#43 def on_csend(node); end - # source://rubocop//lib/rubocop/cop/lint/duplicate_set_element.rb#43 + # source://rubocop/lib/rubocop/cop/lint/duplicate_set_element.rb#43 def on_send(node); end - # source://rubocop//lib/rubocop/cop/lint/duplicate_set_element.rb#35 + # source://rubocop/lib/rubocop/cop/lint/duplicate_set_element.rb#35 def set_init_elements(param0 = T.unsafe(nil)); end private - # source://rubocop//lib/rubocop/cop/lint/duplicate_set_element.rb#64 + # source://rubocop/lib/rubocop/cop/lint/duplicate_set_element.rb#64 def register_offense(current_element, prev_element); end end -# source://rubocop//lib/rubocop/cop/lint/duplicate_set_element.rb#31 +# source://rubocop/lib/rubocop/cop/lint/duplicate_set_element.rb#31 RuboCop::Cop::Lint::DuplicateSetElement::MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/lint/duplicate_set_element.rb#32 +# source://rubocop/lib/rubocop/cop/lint/duplicate_set_element.rb#32 RuboCop::Cop::Lint::DuplicateSetElement::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Checks if each_with_object is called with an immutable @@ -18651,22 +18773,22 @@ RuboCop::Cop::Lint::DuplicateSetElement::RESTRICT_ON_SEND = T.let(T.unsafe(nil), # num = 0 # sum = numbers.each_with_object(num) { |e, a| a += e } # -# source://rubocop//lib/rubocop/cop/lint/each_with_object_argument.rb#20 +# source://rubocop/lib/rubocop/cop/lint/each_with_object_argument.rb#20 class RuboCop::Cop::Lint::EachWithObjectArgument < ::RuboCop::Cop::Base - # source://rubocop//lib/rubocop/cop/lint/each_with_object_argument.rb#25 + # source://rubocop/lib/rubocop/cop/lint/each_with_object_argument.rb#25 def each_with_object?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/lint/each_with_object_argument.rb#29 + # source://rubocop/lib/rubocop/cop/lint/each_with_object_argument.rb#29 def on_csend(node); end - # source://rubocop//lib/rubocop/cop/lint/each_with_object_argument.rb#29 + # source://rubocop/lib/rubocop/cop/lint/each_with_object_argument.rb#29 def on_send(node); end end -# source://rubocop//lib/rubocop/cop/lint/each_with_object_argument.rb#21 +# source://rubocop/lib/rubocop/cop/lint/each_with_object_argument.rb#21 RuboCop::Cop::Lint::EachWithObjectArgument::MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/lint/each_with_object_argument.rb#22 +# source://rubocop/lib/rubocop/cop/lint/each_with_object_argument.rb#22 RuboCop::Cop::Lint::EachWithObjectArgument::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Checks for odd `else` block layout - like @@ -18705,28 +18827,28 @@ RuboCop::Cop::Lint::EachWithObjectArgument::RESTRICT_ON_SEND = T.let(T.unsafe(ni # do_that # end # -# source://rubocop//lib/rubocop/cop/lint/else_layout.rb#41 +# source://rubocop/lib/rubocop/cop/lint/else_layout.rb#41 class RuboCop::Cop::Lint::ElseLayout < ::RuboCop::Cop::Base include ::RuboCop::Cop::Alignment include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/lint/else_layout.rb#48 + # source://rubocop/lib/rubocop/cop/lint/else_layout.rb#48 def on_if(node); end private - # source://rubocop//lib/rubocop/cop/lint/else_layout.rb#79 + # source://rubocop/lib/rubocop/cop/lint/else_layout.rb#79 def autocorrect(corrector, node, first_else); end - # source://rubocop//lib/rubocop/cop/lint/else_layout.rb#59 + # source://rubocop/lib/rubocop/cop/lint/else_layout.rb#59 def check(node); end - # source://rubocop//lib/rubocop/cop/lint/else_layout.rb#69 + # source://rubocop/lib/rubocop/cop/lint/else_layout.rb#69 def check_else(node); end end -# source://rubocop//lib/rubocop/cop/lint/else_layout.rb#46 +# source://rubocop/lib/rubocop/cop/lint/else_layout.rb#46 RuboCop::Cop::Lint::ElseLayout::MSG = T.let(T.unsafe(nil), String) # Checks for blocks without a body. @@ -18782,30 +18904,30 @@ RuboCop::Cop::Lint::ElseLayout::MSG = T.let(T.unsafe(nil), String) # # Proc.new { } # -# source://rubocop//lib/rubocop/cop/lint/empty_block.rb#63 +# source://rubocop/lib/rubocop/cop/lint/empty_block.rb#63 class RuboCop::Cop::Lint::EmptyBlock < ::RuboCop::Cop::Base - # source://rubocop//lib/rubocop/cop/lint/empty_block.rb#66 + # source://rubocop/lib/rubocop/cop/lint/empty_block.rb#66 def on_block(node); end private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/empty_block.rb#76 + # source://rubocop/lib/rubocop/cop/lint/empty_block.rb#76 def allow_comment?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/empty_block.rb#83 + # source://rubocop/lib/rubocop/cop/lint/empty_block.rb#83 def allow_empty_lambdas?; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/empty_block.rb#87 + # source://rubocop/lib/rubocop/cop/lint/empty_block.rb#87 def comment_disables_cop?(comment); end end -# source://rubocop//lib/rubocop/cop/lint/empty_block.rb#64 +# source://rubocop/lib/rubocop/cop/lint/empty_block.rb#64 RuboCop::Cop::Lint::EmptyBlock::MSG = T.let(T.unsafe(nil), String) # Checks for classes and metaclasses without a body. @@ -18872,26 +18994,26 @@ RuboCop::Cop::Lint::EmptyBlock::MSG = T.let(T.unsafe(nil), String) # # TODO: implement later # end # -# source://rubocop//lib/rubocop/cop/lint/empty_class.rb#72 +# source://rubocop/lib/rubocop/cop/lint/empty_class.rb#72 class RuboCop::Cop::Lint::EmptyClass < ::RuboCop::Cop::Base - # source://rubocop//lib/rubocop/cop/lint/empty_class.rb#76 + # source://rubocop/lib/rubocop/cop/lint/empty_class.rb#76 def on_class(node); end - # source://rubocop//lib/rubocop/cop/lint/empty_class.rb#81 + # source://rubocop/lib/rubocop/cop/lint/empty_class.rb#81 def on_sclass(node); end private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/empty_class.rb#87 + # source://rubocop/lib/rubocop/cop/lint/empty_class.rb#87 def body_or_allowed_comment_lines?(node); end end -# source://rubocop//lib/rubocop/cop/lint/empty_class.rb#73 +# source://rubocop/lib/rubocop/cop/lint/empty_class.rb#73 RuboCop::Cop::Lint::EmptyClass::CLASS_MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/lint/empty_class.rb#74 +# source://rubocop/lib/rubocop/cop/lint/empty_class.rb#74 RuboCop::Cop::Lint::EmptyClass::METACLASS_MSG = T.let(T.unsafe(nil), String) # Checks for the presence of `if`, `elsif` and `unless` branches without a body. @@ -18944,65 +19066,65 @@ RuboCop::Cop::Lint::EmptyClass::METACLASS_MSG = T.let(T.unsafe(nil), String) # # noop # end # -# source://rubocop//lib/rubocop/cop/lint/empty_conditional_body.rb#63 +# source://rubocop/lib/rubocop/cop/lint/empty_conditional_body.rb#63 class RuboCop::Cop::Lint::EmptyConditionalBody < ::RuboCop::Cop::Base include ::RuboCop::Cop::CommentsHelp include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/lint/empty_conditional_body.rb#71 + # source://rubocop/lib/rubocop/cop/lint/empty_conditional_body.rb#71 def on_if(node); end private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/empty_conditional_body.rb#177 + # source://rubocop/lib/rubocop/cop/lint/empty_conditional_body.rb#177 def all_branches_body_missing?(node); end - # source://rubocop//lib/rubocop/cop/lint/empty_conditional_body.rb#95 + # source://rubocop/lib/rubocop/cop/lint/empty_conditional_body.rb#95 def autocorrect(corrector, node); end - # source://rubocop//lib/rubocop/cop/lint/empty_conditional_body.rb#163 + # source://rubocop/lib/rubocop/cop/lint/empty_conditional_body.rb#163 def branch_range(node); end - # source://rubocop//lib/rubocop/cop/lint/empty_conditional_body.rb#125 + # source://rubocop/lib/rubocop/cop/lint/empty_conditional_body.rb#125 def correct_other_branches(corrector, node); end - # source://rubocop//lib/rubocop/cop/lint/empty_conditional_body.rb#183 + # source://rubocop/lib/rubocop/cop/lint/empty_conditional_body.rb#183 def deletion_range(range); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/empty_conditional_body.rb#158 + # source://rubocop/lib/rubocop/cop/lint/empty_conditional_body.rb#158 def else_branch?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/empty_conditional_body.rb#152 + # source://rubocop/lib/rubocop/cop/lint/empty_conditional_body.rb#152 def empty_elsif_branch?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/empty_conditional_body.rb#144 + # source://rubocop/lib/rubocop/cop/lint/empty_conditional_body.rb#144 def empty_if_branch?(node); end - # source://rubocop//lib/rubocop/cop/lint/empty_conditional_body.rb#87 + # source://rubocop/lib/rubocop/cop/lint/empty_conditional_body.rb#87 def offense_range(node); end - # source://rubocop//lib/rubocop/cop/lint/empty_conditional_body.rb#101 + # source://rubocop/lib/rubocop/cop/lint/empty_conditional_body.rb#101 def remove_comments(corrector, node); end - # source://rubocop//lib/rubocop/cop/lint/empty_conditional_body.rb#109 + # source://rubocop/lib/rubocop/cop/lint/empty_conditional_body.rb#109 def remove_empty_branch(corrector, node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/empty_conditional_body.rb#137 + # source://rubocop/lib/rubocop/cop/lint/empty_conditional_body.rb#137 def require_other_branches_correction?(node); end end -# source://rubocop//lib/rubocop/cop/lint/empty_conditional_body.rb#68 +# source://rubocop/lib/rubocop/cop/lint/empty_conditional_body.rb#68 RuboCop::Cop::Lint::EmptyConditionalBody::MSG = T.let(T.unsafe(nil), String) # Checks for empty `ensure` blocks. @@ -19035,15 +19157,15 @@ RuboCop::Cop::Lint::EmptyConditionalBody::MSG = T.let(T.unsafe(nil), String) # do_something_else # end # -# source://rubocop//lib/rubocop/cop/lint/empty_ensure.rb#35 +# source://rubocop/lib/rubocop/cop/lint/empty_ensure.rb#35 class RuboCop::Cop::Lint::EmptyEnsure < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/lint/empty_ensure.rb#40 + # source://rubocop/lib/rubocop/cop/lint/empty_ensure.rb#40 def on_ensure(node); end end -# source://rubocop//lib/rubocop/cop/lint/empty_ensure.rb#38 +# source://rubocop/lib/rubocop/cop/lint/empty_ensure.rb#38 RuboCop::Cop::Lint::EmptyEnsure::MSG = T.let(T.unsafe(nil), String) # Checks for the presence of empty expressions. @@ -19065,20 +19187,20 @@ RuboCop::Cop::Lint::EmptyEnsure::MSG = T.let(T.unsafe(nil), String) # bar # end # -# source://rubocop//lib/rubocop/cop/lint/empty_expression.rb#25 +# source://rubocop/lib/rubocop/cop/lint/empty_expression.rb#25 class RuboCop::Cop::Lint::EmptyExpression < ::RuboCop::Cop::Base - # source://rubocop//lib/rubocop/cop/lint/empty_expression.rb#28 + # source://rubocop/lib/rubocop/cop/lint/empty_expression.rb#28 def on_begin(node); end private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/empty_expression.rb#36 + # source://rubocop/lib/rubocop/cop/lint/empty_expression.rb#36 def empty_expression?(begin_node); end end -# source://rubocop//lib/rubocop/cop/lint/empty_expression.rb#26 +# source://rubocop/lib/rubocop/cop/lint/empty_expression.rb#26 RuboCop::Cop::Lint::EmptyExpression::MSG = T.let(T.unsafe(nil), String) # Enforces that Ruby source files are not empty. @@ -19096,32 +19218,30 @@ RuboCop::Cop::Lint::EmptyExpression::MSG = T.let(T.unsafe(nil), String) # # bad # # File consisting only of comments # -# source://rubocop//lib/rubocop/cop/lint/empty_file.rb#23 +# source://rubocop/lib/rubocop/cop/lint/empty_file.rb#23 class RuboCop::Cop::Lint::EmptyFile < ::RuboCop::Cop::Base - include ::RuboCop::Cop::RangeHelp - - # source://rubocop//lib/rubocop/cop/lint/empty_file.rb#28 + # source://rubocop/lib/rubocop/cop/lint/empty_file.rb#26 def on_new_investigation; end private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/empty_file.rb#42 + # source://rubocop/lib/rubocop/cop/lint/empty_file.rb#40 def contains_only_comments?; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/empty_file.rb#38 + # source://rubocop/lib/rubocop/cop/lint/empty_file.rb#36 def empty_file?; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/empty_file.rb#34 + # source://rubocop/lib/rubocop/cop/lint/empty_file.rb#32 def offending?; end end -# source://rubocop//lib/rubocop/cop/lint/empty_file.rb#26 +# source://rubocop/lib/rubocop/cop/lint/empty_file.rb#24 RuboCop::Cop::Lint::EmptyFile::MSG = T.let(T.unsafe(nil), String) # Checks for the presence of `in` pattern branches without a body. @@ -19161,16 +19281,16 @@ RuboCop::Cop::Lint::EmptyFile::MSG = T.let(T.unsafe(nil), String) # # noop # end # -# source://rubocop//lib/rubocop/cop/lint/empty_in_pattern.rb#45 +# source://rubocop/lib/rubocop/cop/lint/empty_in_pattern.rb#45 class RuboCop::Cop::Lint::EmptyInPattern < ::RuboCop::Cop::Base include ::RuboCop::Cop::CommentsHelp extend ::RuboCop::Cop::TargetRubyVersion - # source://rubocop//lib/rubocop/cop/lint/empty_in_pattern.rb#53 + # source://rubocop/lib/rubocop/cop/lint/empty_in_pattern.rb#53 def on_case_match(node); end end -# source://rubocop//lib/rubocop/cop/lint/empty_in_pattern.rb#49 +# source://rubocop/lib/rubocop/cop/lint/empty_in_pattern.rb#49 RuboCop::Cop::Lint::EmptyInPattern::MSG = T.let(T.unsafe(nil), String) # Checks for empty interpolation. @@ -19183,16 +19303,16 @@ RuboCop::Cop::Lint::EmptyInPattern::MSG = T.let(T.unsafe(nil), String) # # good # "result is #{some_result}" # -# source://rubocop//lib/rubocop/cop/lint/empty_interpolation.rb#15 +# source://rubocop/lib/rubocop/cop/lint/empty_interpolation.rb#15 class RuboCop::Cop::Lint::EmptyInterpolation < ::RuboCop::Cop::Base include ::RuboCop::Cop::Interpolation extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/lint/empty_interpolation.rb#21 + # source://rubocop/lib/rubocop/cop/lint/empty_interpolation.rb#21 def on_interpolation(begin_node); end end -# source://rubocop//lib/rubocop/cop/lint/empty_interpolation.rb#19 +# source://rubocop/lib/rubocop/cop/lint/empty_interpolation.rb#19 RuboCop::Cop::Lint::EmptyInterpolation::MSG = T.let(T.unsafe(nil), String) # Checks for the presence of `when` branches without a body. @@ -19232,15 +19352,15 @@ RuboCop::Cop::Lint::EmptyInterpolation::MSG = T.let(T.unsafe(nil), String) # # do nothing # end # -# source://rubocop//lib/rubocop/cop/lint/empty_when.rb#45 +# source://rubocop/lib/rubocop/cop/lint/empty_when.rb#45 class RuboCop::Cop::Lint::EmptyWhen < ::RuboCop::Cop::Base include ::RuboCop::Cop::CommentsHelp - # source://rubocop//lib/rubocop/cop/lint/empty_when.rb#50 + # source://rubocop/lib/rubocop/cop/lint/empty_when.rb#50 def on_case(node); end end -# source://rubocop//lib/rubocop/cop/lint/empty_when.rb#48 +# source://rubocop/lib/rubocop/cop/lint/empty_when.rb#48 RuboCop::Cop::Lint::EmptyWhen::MSG = T.let(T.unsafe(nil), String) # Checks for `return` from an `ensure` block. @@ -19280,13 +19400,13 @@ RuboCop::Cop::Lint::EmptyWhen::MSG = T.let(T.unsafe(nil), String) # cleanup # end # -# source://rubocop//lib/rubocop/cop/lint/ensure_return.rb#42 +# source://rubocop/lib/rubocop/cop/lint/ensure_return.rb#42 class RuboCop::Cop::Lint::EnsureReturn < ::RuboCop::Cop::Base - # source://rubocop//lib/rubocop/cop/lint/ensure_return.rb#45 + # source://rubocop/lib/rubocop/cop/lint/ensure_return.rb#45 def on_ensure(node); end end -# source://rubocop//lib/rubocop/cop/lint/ensure_return.rb#43 +# source://rubocop/lib/rubocop/cop/lint/ensure_return.rb#43 RuboCop::Cop::Lint::EnsureReturn::MSG = T.let(T.unsafe(nil), String) # Emulates the following Ruby warnings in Ruby 2.6. @@ -19344,51 +19464,51 @@ RuboCop::Cop::Lint::EnsureReturn::MSG = T.let(T.unsafe(nil), String) # ERB.new(str, nil, '-', '@output_buffer') # end # -# source://rubocop//lib/rubocop/cop/lint/erb_new_arguments.rb#61 +# source://rubocop/lib/rubocop/cop/lint/erb_new_arguments.rb#61 class RuboCop::Cop::Lint::ErbNewArguments < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector extend ::RuboCop::Cop::TargetRubyVersion - # source://rubocop//lib/rubocop/cop/lint/erb_new_arguments.rb#81 + # source://rubocop/lib/rubocop/cop/lint/erb_new_arguments.rb#81 def erb_new_with_non_keyword_arguments(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/lint/erb_new_arguments.rb#86 + # source://rubocop/lib/rubocop/cop/lint/erb_new_arguments.rb#86 def on_send(node); end private - # source://rubocop//lib/rubocop/cop/lint/erb_new_arguments.rb#160 + # source://rubocop/lib/rubocop/cop/lint/erb_new_arguments.rb#160 def arguments_range(node); end - # source://rubocop//lib/rubocop/cop/lint/erb_new_arguments.rb#115 + # source://rubocop/lib/rubocop/cop/lint/erb_new_arguments.rb#115 def autocorrect(corrector, node); end - # source://rubocop//lib/rubocop/cop/lint/erb_new_arguments.rb#130 + # source://rubocop/lib/rubocop/cop/lint/erb_new_arguments.rb#130 def build_kwargs(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/erb_new_arguments.rb#126 + # source://rubocop/lib/rubocop/cop/lint/erb_new_arguments.rb#126 def correct_arguments?(arguments); end - # source://rubocop//lib/rubocop/cop/lint/erb_new_arguments.rb#104 + # source://rubocop/lib/rubocop/cop/lint/erb_new_arguments.rb#104 def message(positional_argument_index, arg_value); end - # source://rubocop//lib/rubocop/cop/lint/erb_new_arguments.rb#147 + # source://rubocop/lib/rubocop/cop/lint/erb_new_arguments.rb#147 def override_by_legacy_args(kwargs, node); end end -# source://rubocop//lib/rubocop/cop/lint/erb_new_arguments.rb#74 +# source://rubocop/lib/rubocop/cop/lint/erb_new_arguments.rb#74 RuboCop::Cop::Lint::ErbNewArguments::MESSAGE_EOUTVAR = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/lint/erb_new_arguments.rb#68 +# source://rubocop/lib/rubocop/cop/lint/erb_new_arguments.rb#68 RuboCop::Cop::Lint::ErbNewArguments::MESSAGE_SAFE_LEVEL = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/lint/erb_new_arguments.rb#71 +# source://rubocop/lib/rubocop/cop/lint/erb_new_arguments.rb#71 RuboCop::Cop::Lint::ErbNewArguments::MESSAGE_TRIM_MODE = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/lint/erb_new_arguments.rb#78 +# source://rubocop/lib/rubocop/cop/lint/erb_new_arguments.rb#78 RuboCop::Cop::Lint::ErbNewArguments::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Looks for uses of flip-flop operator @@ -19411,16 +19531,16 @@ RuboCop::Cop::Lint::ErbNewArguments::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Arr # puts x if (x >= 5) && (x <= 10) # end # -# source://rubocop//lib/rubocop/cop/lint/flip_flop.rb#25 +# source://rubocop/lib/rubocop/cop/lint/flip_flop.rb#25 class RuboCop::Cop::Lint::FlipFlop < ::RuboCop::Cop::Base - # source://rubocop//lib/rubocop/cop/lint/flip_flop.rb#32 + # source://rubocop/lib/rubocop/cop/lint/flip_flop.rb#32 def on_eflipflop(node); end - # source://rubocop//lib/rubocop/cop/lint/flip_flop.rb#28 + # source://rubocop/lib/rubocop/cop/lint/flip_flop.rb#28 def on_iflipflop(node); end end -# source://rubocop//lib/rubocop/cop/lint/flip_flop.rb#26 +# source://rubocop/lib/rubocop/cop/lint/flip_flop.rb#26 RuboCop::Cop::Lint::FlipFlop::MSG = T.let(T.unsafe(nil), String) # Checks for the presence of precise comparison of floating point numbers. @@ -19449,46 +19569,49 @@ RuboCop::Cop::Lint::FlipFlop::MSG = T.let(T.unsafe(nil), String) # tolerance = 0.0001 # (x - 0.1).abs < tolerance # +# # good - comparing against nil +# Float(x, exception: false) == nil +# # # Or some other epsilon based type of comparison: # # https://www.embeddeduse.com/2019/08/26/qt-compare-two-floats/ # -# source://rubocop//lib/rubocop/cop/lint/float_comparison.rb#35 +# source://rubocop/lib/rubocop/cop/lint/float_comparison.rb#38 class RuboCop::Cop::Lint::FloatComparison < ::RuboCop::Cop::Base - # source://rubocop//lib/rubocop/cop/lint/float_comparison.rb#44 + # source://rubocop/lib/rubocop/cop/lint/float_comparison.rb#47 def on_send(node); end private - # source://rubocop//lib/rubocop/cop/lint/float_comparison.rb#89 + # source://rubocop/lib/rubocop/cop/lint/float_comparison.rb#97 def check_numeric_returning_method(node); end - # source://rubocop//lib/rubocop/cop/lint/float_comparison.rb#73 + # source://rubocop/lib/rubocop/cop/lint/float_comparison.rb#82 def check_send(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/float_comparison.rb#53 + # source://rubocop/lib/rubocop/cop/lint/float_comparison.rb#60 def float?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/float_comparison.rb#68 - def literal_zero?(node); end + # source://rubocop/lib/rubocop/cop/lint/float_comparison.rb#75 + def literal_safe?(node); end end -# source://rubocop//lib/rubocop/cop/lint/float_comparison.rb#38 +# source://rubocop/lib/rubocop/cop/lint/float_comparison.rb#41 RuboCop::Cop::Lint::FloatComparison::EQUALITY_METHODS = T.let(T.unsafe(nil), Array) -# source://rubocop//lib/rubocop/cop/lint/float_comparison.rb#40 +# source://rubocop/lib/rubocop/cop/lint/float_comparison.rb#43 RuboCop::Cop::Lint::FloatComparison::FLOAT_INSTANCE_METHODS = T.let(T.unsafe(nil), Set) -# source://rubocop//lib/rubocop/cop/lint/float_comparison.rb#39 +# source://rubocop/lib/rubocop/cop/lint/float_comparison.rb#42 RuboCop::Cop::Lint::FloatComparison::FLOAT_RETURNING_METHODS = T.let(T.unsafe(nil), Array) -# source://rubocop//lib/rubocop/cop/lint/float_comparison.rb#36 +# source://rubocop/lib/rubocop/cop/lint/float_comparison.rb#39 RuboCop::Cop::Lint::FloatComparison::MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/lint/float_comparison.rb#42 +# source://rubocop/lib/rubocop/cop/lint/float_comparison.rb#45 RuboCop::Cop::Lint::FloatComparison::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Identifies Float literals which are, like, really really really @@ -19503,13 +19626,13 @@ RuboCop::Cop::Lint::FloatComparison::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Arr # # good # float = 42.9 # -# source://rubocop//lib/rubocop/cop/lint/float_out_of_range.rb#17 +# source://rubocop/lib/rubocop/cop/lint/float_out_of_range.rb#17 class RuboCop::Cop::Lint::FloatOutOfRange < ::RuboCop::Cop::Base - # source://rubocop//lib/rubocop/cop/lint/float_out_of_range.rb#20 + # source://rubocop/lib/rubocop/cop/lint/float_out_of_range.rb#20 def on_float(node); end end -# source://rubocop//lib/rubocop/cop/lint/float_out_of_range.rb#18 +# source://rubocop/lib/rubocop/cop/lint/float_out_of_range.rb#18 RuboCop::Cop::Lint::FloatOutOfRange::MSG = T.let(T.unsafe(nil), String) # This lint sees if there is a mismatch between the number of @@ -19534,120 +19657,120 @@ RuboCop::Cop::Lint::FloatOutOfRange::MSG = T.let(T.unsafe(nil), String) # # good # format('Numbered format: %1$s and numbered %2$s', a_value, another) # -# source://rubocop//lib/rubocop/cop/lint/format_parameter_mismatch.rb#27 +# source://rubocop/lib/rubocop/cop/lint/format_parameter_mismatch.rb#27 class RuboCop::Cop::Lint::FormatParameterMismatch < ::RuboCop::Cop::Base - # source://rubocop//lib/rubocop/cop/lint/format_parameter_mismatch.rb#90 + # source://rubocop/lib/rubocop/cop/lint/format_parameter_mismatch.rb#90 def called_on_string?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/lint/format_parameter_mismatch.rb#39 + # source://rubocop/lib/rubocop/cop/lint/format_parameter_mismatch.rb#39 def on_send(node); end private - # source://rubocop//lib/rubocop/cop/lint/format_parameter_mismatch.rb#127 + # source://rubocop/lib/rubocop/cop/lint/format_parameter_mismatch.rb#127 def count_format_matches(node); end - # source://rubocop//lib/rubocop/cop/lint/format_parameter_mismatch.rb#109 + # source://rubocop/lib/rubocop/cop/lint/format_parameter_mismatch.rb#109 def count_matches(node); end - # source://rubocop//lib/rubocop/cop/lint/format_parameter_mismatch.rb#131 + # source://rubocop/lib/rubocop/cop/lint/format_parameter_mismatch.rb#131 def count_percent_matches(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/format_parameter_mismatch.rb#119 + # source://rubocop/lib/rubocop/cop/lint/format_parameter_mismatch.rb#119 def countable_format?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/format_parameter_mismatch.rb#123 + # source://rubocop/lib/rubocop/cop/lint/format_parameter_mismatch.rb#123 def countable_percent?(node); end - # source://rubocop//lib/rubocop/cop/lint/format_parameter_mismatch.rb#143 + # source://rubocop/lib/rubocop/cop/lint/format_parameter_mismatch.rb#143 def expected_fields_count(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/format_parameter_mismatch.rb#158 + # source://rubocop/lib/rubocop/cop/lint/format_parameter_mismatch.rb#158 def format?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/format_parameter_mismatch.rb#136 + # source://rubocop/lib/rubocop/cop/lint/format_parameter_mismatch.rb#136 def format_method?(name, node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/format_parameter_mismatch.rb#54 + # source://rubocop/lib/rubocop/cop/lint/format_parameter_mismatch.rb#54 def format_string?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/format_parameter_mismatch.rb#105 + # source://rubocop/lib/rubocop/cop/lint/format_parameter_mismatch.rb#105 def heredoc?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/format_parameter_mismatch.rb#58 + # source://rubocop/lib/rubocop/cop/lint/format_parameter_mismatch.rb#58 def invalid_format_string?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/format_parameter_mismatch.rb#81 + # source://rubocop/lib/rubocop/cop/lint/format_parameter_mismatch.rb#81 def matched_arguments_count?(expected, passed); end - # source://rubocop//lib/rubocop/cop/lint/format_parameter_mismatch.rb#176 + # source://rubocop/lib/rubocop/cop/lint/format_parameter_mismatch.rb#176 def message(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/format_parameter_mismatch.rb#95 + # source://rubocop/lib/rubocop/cop/lint/format_parameter_mismatch.rb#95 def method_with_format_args?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/format_parameter_mismatch.rb#67 + # source://rubocop/lib/rubocop/cop/lint/format_parameter_mismatch.rb#67 def offending_node?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/format_parameter_mismatch.rb#166 + # source://rubocop/lib/rubocop/cop/lint/format_parameter_mismatch.rb#166 def percent?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/format_parameter_mismatch.rb#99 + # source://rubocop/lib/rubocop/cop/lint/format_parameter_mismatch.rb#99 def splat_args?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/format_parameter_mismatch.rb#162 + # source://rubocop/lib/rubocop/cop/lint/format_parameter_mismatch.rb#162 def sprintf?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/format_parameter_mismatch.rb#185 + # source://rubocop/lib/rubocop/cop/lint/format_parameter_mismatch.rb#185 def string_type?(node); end end -# source://rubocop//lib/rubocop/cop/lint/format_parameter_mismatch.rb#34 +# source://rubocop/lib/rubocop/cop/lint/format_parameter_mismatch.rb#34 RuboCop::Cop::Lint::FormatParameterMismatch::KERNEL = T.let(T.unsafe(nil), String) # http://rubular.com/r/CvpbxkcTzy # -# source://rubocop//lib/rubocop/cop/lint/format_parameter_mismatch.rb#29 +# source://rubocop/lib/rubocop/cop/lint/format_parameter_mismatch.rb#29 RuboCop::Cop::Lint::FormatParameterMismatch::MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/lint/format_parameter_mismatch.rb#31 +# source://rubocop/lib/rubocop/cop/lint/format_parameter_mismatch.rb#31 RuboCop::Cop::Lint::FormatParameterMismatch::MSG_INVALID = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/lint/format_parameter_mismatch.rb#37 +# source://rubocop/lib/rubocop/cop/lint/format_parameter_mismatch.rb#37 RuboCop::Cop::Lint::FormatParameterMismatch::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) -# source://rubocop//lib/rubocop/cop/lint/format_parameter_mismatch.rb#35 +# source://rubocop/lib/rubocop/cop/lint/format_parameter_mismatch.rb#35 RuboCop::Cop::Lint::FormatParameterMismatch::SHOVEL = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/lint/format_parameter_mismatch.rb#36 +# source://rubocop/lib/rubocop/cop/lint/format_parameter_mismatch.rb#36 RuboCop::Cop::Lint::FormatParameterMismatch::STRING_TYPES = T.let(T.unsafe(nil), Array) # Prefer using `Hash#compare_by_identity` rather than using `object_id` @@ -19667,24 +19790,64 @@ RuboCop::Cop::Lint::FormatParameterMismatch::STRING_TYPES = T.let(T.unsafe(nil), # hash[foo] = :bar # hash.key?(baz) # -# source://rubocop//lib/rubocop/cop/lint/hash_compare_by_identity.rb#31 +# source://rubocop/lib/rubocop/cop/lint/hash_compare_by_identity.rb#31 class RuboCop::Cop::Lint::HashCompareByIdentity < ::RuboCop::Cop::Base - # source://rubocop//lib/rubocop/cop/lint/hash_compare_by_identity.rb#37 + # source://rubocop/lib/rubocop/cop/lint/hash_compare_by_identity.rb#37 def id_as_hash_key?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/lint/hash_compare_by_identity.rb#41 + # source://rubocop/lib/rubocop/cop/lint/hash_compare_by_identity.rb#41 def on_csend(node); end - # source://rubocop//lib/rubocop/cop/lint/hash_compare_by_identity.rb#41 + # source://rubocop/lib/rubocop/cop/lint/hash_compare_by_identity.rb#41 def on_send(node); end end -# source://rubocop//lib/rubocop/cop/lint/hash_compare_by_identity.rb#34 +# source://rubocop/lib/rubocop/cop/lint/hash_compare_by_identity.rb#34 RuboCop::Cop::Lint::HashCompareByIdentity::MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/lint/hash_compare_by_identity.rb#32 +# source://rubocop/lib/rubocop/cop/lint/hash_compare_by_identity.rb#32 RuboCop::Cop::Lint::HashCompareByIdentity::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) +# Checks for the deprecated use of keyword arguments as a default in `Hash.new`. +# +# This usage raises a warning in Ruby 3.3 and results in an error in Ruby 3.4. +# In Ruby 3.4, keyword arguments will instead be used to change the behavior of a hash. +# For example, the capacity option can be passed to create a hash with a certain size +# if you know it in advance, for better performance. +# +# NOTE: The following corner case may result in a false negative when upgrading from Ruby 3.3 +# or earlier, but it is intentionally not detected to respect the expected usage in Ruby 3.4. +# +# [source,ruby] +# ---- +# Hash.new(capacity: 42) +# ---- +# +# @example +# +# # bad +# Hash.new(key: :value) +# +# # good +# Hash.new({key: :value}) +# +# source://rubocop/lib/rubocop/cop/lint/hash_new_with_keyword_arguments_as_default.rb#29 +class RuboCop::Cop::Lint::HashNewWithKeywordArgumentsAsDefault < ::RuboCop::Cop::Base + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop/lib/rubocop/cop/lint/hash_new_with_keyword_arguments_as_default.rb#36 + def hash_new(param0 = T.unsafe(nil)); end + + # source://rubocop/lib/rubocop/cop/lint/hash_new_with_keyword_arguments_as_default.rb#40 + def on_send(node); end +end + +# source://rubocop/lib/rubocop/cop/lint/hash_new_with_keyword_arguments_as_default.rb#32 +RuboCop::Cop::Lint::HashNewWithKeywordArgumentsAsDefault::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop/lib/rubocop/cop/lint/hash_new_with_keyword_arguments_as_default.rb#33 +RuboCop::Cop::Lint::HashNewWithKeywordArgumentsAsDefault::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + # Checks for the ordering of a method call where # the receiver of the call is a HEREDOC. # @@ -19710,77 +19873,77 @@ RuboCop::Cop::Lint::HashCompareByIdentity::RESTRICT_ON_SEND = T.let(T.unsafe(nil # bar # SQL # -# source://rubocop//lib/rubocop/cop/lint/heredoc_method_call_position.rb#31 +# source://rubocop/lib/rubocop/cop/lint/heredoc_method_call_position.rb#31 class RuboCop::Cop::Lint::HeredocMethodCallPosition < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/lint/heredoc_method_call_position.rb#37 + # source://rubocop/lib/rubocop/cop/lint/heredoc_method_call_position.rb#37 def on_csend(node); end - # source://rubocop//lib/rubocop/cop/lint/heredoc_method_call_position.rb#37 + # source://rubocop/lib/rubocop/cop/lint/heredoc_method_call_position.rb#37 def on_send(node); end private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/heredoc_method_call_position.rb#97 + # source://rubocop/lib/rubocop/cop/lint/heredoc_method_call_position.rb#97 def all_on_same_line?(nodes); end - # source://rubocop//lib/rubocop/cop/lint/heredoc_method_call_position.rb#50 + # source://rubocop/lib/rubocop/cop/lint/heredoc_method_call_position.rb#50 def autocorrect(corrector, node, heredoc); end - # source://rubocop//lib/rubocop/cop/lint/heredoc_method_call_position.rb#77 + # source://rubocop/lib/rubocop/cop/lint/heredoc_method_call_position.rb#77 def call_after_heredoc_range(heredoc); end - # source://rubocop//lib/rubocop/cop/lint/heredoc_method_call_position.rb#107 + # source://rubocop/lib/rubocop/cop/lint/heredoc_method_call_position.rb#107 def call_end_pos(node); end - # source://rubocop//lib/rubocop/cop/lint/heredoc_method_call_position.rb#116 + # source://rubocop/lib/rubocop/cop/lint/heredoc_method_call_position.rb#116 def call_line_range(node); end # Returns nil if no range can be safely repositioned. # - # source://rubocop//lib/rubocop/cop/lint/heredoc_method_call_position.rb#122 + # source://rubocop/lib/rubocop/cop/lint/heredoc_method_call_position.rb#122 def call_range_to_safely_reposition(node, heredoc); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/heredoc_method_call_position.rb#86 + # source://rubocop/lib/rubocop/cop/lint/heredoc_method_call_position.rb#86 def calls_on_multiple_lines?(node, _heredoc); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/heredoc_method_call_position.rb#82 + # source://rubocop/lib/rubocop/cop/lint/heredoc_method_call_position.rb#82 def correctly_positioned?(node, heredoc); end - # source://rubocop//lib/rubocop/cop/lint/heredoc_method_call_position.rb#111 + # source://rubocop/lib/rubocop/cop/lint/heredoc_method_call_position.rb#111 def heredoc_begin_line_range(heredoc); end - # source://rubocop//lib/rubocop/cop/lint/heredoc_method_call_position.rb#103 + # source://rubocop/lib/rubocop/cop/lint/heredoc_method_call_position.rb#103 def heredoc_end_pos(heredoc); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/heredoc_method_call_position.rb#73 + # source://rubocop/lib/rubocop/cop/lint/heredoc_method_call_position.rb#73 def heredoc_node?(node); end - # source://rubocop//lib/rubocop/cop/lint/heredoc_method_call_position.rb#59 + # source://rubocop/lib/rubocop/cop/lint/heredoc_method_call_position.rb#59 def heredoc_node_descendent_receiver(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/heredoc_method_call_position.rb#67 + # source://rubocop/lib/rubocop/cop/lint/heredoc_method_call_position.rb#67 def send_node?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/heredoc_method_call_position.rb#146 + # source://rubocop/lib/rubocop/cop/lint/heredoc_method_call_position.rb#146 def trailing_comma?(call_source, call_line_source); end end -# source://rubocop//lib/rubocop/cop/lint/heredoc_method_call_position.rb#35 +# source://rubocop/lib/rubocop/cop/lint/heredoc_method_call_position.rb#35 RuboCop::Cop::Lint::HeredocMethodCallPosition::MSG = T.let(T.unsafe(nil), String) # Prefer `equal?` over `==` when comparing `object_id`. @@ -19795,30 +19958,30 @@ RuboCop::Cop::Lint::HeredocMethodCallPosition::MSG = T.let(T.unsafe(nil), String # # good # foo.equal?(bar) # -# source://rubocop//lib/rubocop/cop/lint/identity_comparison.rb#18 +# source://rubocop/lib/rubocop/cop/lint/identity_comparison.rb#18 class RuboCop::Cop::Lint::IdentityComparison < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/lint/identity_comparison.rb#24 + # source://rubocop/lib/rubocop/cop/lint/identity_comparison.rb#24 def on_send(node); end private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/identity_comparison.rb#40 + # source://rubocop/lib/rubocop/cop/lint/identity_comparison.rb#40 def compare_between_object_id_by_double_equal?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/identity_comparison.rb#44 + # source://rubocop/lib/rubocop/cop/lint/identity_comparison.rb#44 def object_id_method?(node); end end -# source://rubocop//lib/rubocop/cop/lint/identity_comparison.rb#21 +# source://rubocop/lib/rubocop/cop/lint/identity_comparison.rb#21 RuboCop::Cop::Lint::IdentityComparison::MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/lint/identity_comparison.rb#22 +# source://rubocop/lib/rubocop/cop/lint/identity_comparison.rb#22 RuboCop::Cop::Lint::IdentityComparison::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Checks for implicit string concatenation of string literals @@ -19837,45 +20000,45 @@ RuboCop::Cop::Lint::IdentityComparison::RESTRICT_ON_SEND = T.let(T.unsafe(nil), # 'Item 2' # ] # -# source://rubocop//lib/rubocop/cop/lint/implicit_string_concatenation.rb#21 +# source://rubocop/lib/rubocop/cop/lint/implicit_string_concatenation.rb#21 class RuboCop::Cop::Lint::ImplicitStringConcatenation < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/lint/implicit_string_concatenation.rb#32 + # source://rubocop/lib/rubocop/cop/lint/implicit_string_concatenation.rb#32 def on_dstr(node); end private - # source://rubocop//lib/rubocop/cop/lint/implicit_string_concatenation.rb#92 + # source://rubocop/lib/rubocop/cop/lint/implicit_string_concatenation.rb#92 def display_str(node); end - # source://rubocop//lib/rubocop/cop/lint/implicit_string_concatenation.rb#59 + # source://rubocop/lib/rubocop/cop/lint/implicit_string_concatenation.rb#59 def each_bad_cons(node); end - # source://rubocop//lib/rubocop/cop/lint/implicit_string_concatenation.rb#74 + # source://rubocop/lib/rubocop/cop/lint/implicit_string_concatenation.rb#74 def ending_delimiter(str); end - # source://rubocop//lib/rubocop/cop/lint/implicit_string_concatenation.rb#100 + # source://rubocop/lib/rubocop/cop/lint/implicit_string_concatenation.rb#100 def str_content(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/implicit_string_concatenation.rb#84 + # source://rubocop/lib/rubocop/cop/lint/implicit_string_concatenation.rb#84 def string_literal?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/implicit_string_concatenation.rb#88 + # source://rubocop/lib/rubocop/cop/lint/implicit_string_concatenation.rb#88 def string_literals?(node1, node2); end end -# source://rubocop//lib/rubocop/cop/lint/implicit_string_concatenation.rb#26 +# source://rubocop/lib/rubocop/cop/lint/implicit_string_concatenation.rb#26 RuboCop::Cop::Lint::ImplicitStringConcatenation::FOR_ARRAY = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/lint/implicit_string_concatenation.rb#28 +# source://rubocop/lib/rubocop/cop/lint/implicit_string_concatenation.rb#28 RuboCop::Cop::Lint::ImplicitStringConcatenation::FOR_METHOD = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/lint/implicit_string_concatenation.rb#24 +# source://rubocop/lib/rubocop/cop/lint/implicit_string_concatenation.rb#24 RuboCop::Cop::Lint::ImplicitStringConcatenation::MSG = T.let(T.unsafe(nil), String) # Checks for `IO.select` that is incompatible with Fiber Scheduler since Ruby 3.0. @@ -19902,31 +20065,31 @@ RuboCop::Cop::Lint::ImplicitStringConcatenation::MSG = T.let(T.unsafe(nil), Stri # # good # io.wait_writable(timeout) # -# source://rubocop//lib/rubocop/cop/lint/incompatible_io_select_with_fiber_scheduler.rb#34 +# source://rubocop/lib/rubocop/cop/lint/incompatible_io_select_with_fiber_scheduler.rb#34 class RuboCop::Cop::Lint::IncompatibleIoSelectWithFiberScheduler < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/lint/incompatible_io_select_with_fiber_scheduler.rb#41 + # source://rubocop/lib/rubocop/cop/lint/incompatible_io_select_with_fiber_scheduler.rb#41 def io_select(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/lint/incompatible_io_select_with_fiber_scheduler.rb#46 + # source://rubocop/lib/rubocop/cop/lint/incompatible_io_select_with_fiber_scheduler.rb#46 def on_send(node); end private - # source://rubocop//lib/rubocop/cop/lint/incompatible_io_select_with_fiber_scheduler.rb#69 + # source://rubocop/lib/rubocop/cop/lint/incompatible_io_select_with_fiber_scheduler.rb#69 def preferred_method(read, write, timeout); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/incompatible_io_select_with_fiber_scheduler.rb#63 + # source://rubocop/lib/rubocop/cop/lint/incompatible_io_select_with_fiber_scheduler.rb#63 def scheduler_compatible?(io1, io2); end end -# source://rubocop//lib/rubocop/cop/lint/incompatible_io_select_with_fiber_scheduler.rb#37 +# source://rubocop/lib/rubocop/cop/lint/incompatible_io_select_with_fiber_scheduler.rb#37 RuboCop::Cop::Lint::IncompatibleIoSelectWithFiberScheduler::MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/lint/incompatible_io_select_with_fiber_scheduler.rb#38 +# source://rubocop/lib/rubocop/cop/lint/incompatible_io_select_with_fiber_scheduler.rb#38 RuboCop::Cop::Lint::IncompatibleIoSelectWithFiberScheduler::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Checks for `private` or `protected` access modifiers which are @@ -19965,49 +20128,49 @@ RuboCop::Cop::Lint::IncompatibleIoSelectWithFiberScheduler::RESTRICT_ON_SEND = T # end # end # -# source://rubocop//lib/rubocop/cop/lint/ineffective_access_modifier.rb#41 +# source://rubocop/lib/rubocop/cop/lint/ineffective_access_modifier.rb#41 class RuboCop::Cop::Lint::IneffectiveAccessModifier < ::RuboCop::Cop::Base - # source://rubocop//lib/rubocop/cop/lint/ineffective_access_modifier.rb#52 + # source://rubocop/lib/rubocop/cop/lint/ineffective_access_modifier.rb#52 def on_class(node); end - # source://rubocop//lib/rubocop/cop/lint/ineffective_access_modifier.rb#52 + # source://rubocop/lib/rubocop/cop/lint/ineffective_access_modifier.rb#52 def on_module(node); end - # source://rubocop//lib/rubocop/cop/lint/ineffective_access_modifier.rb#48 + # source://rubocop/lib/rubocop/cop/lint/ineffective_access_modifier.rb#48 def private_class_methods(param0); end private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/ineffective_access_modifier.rb#102 + # source://rubocop/lib/rubocop/cop/lint/ineffective_access_modifier.rb#102 def access_modifier?(node); end - # source://rubocop//lib/rubocop/cop/lint/ineffective_access_modifier.rb#59 + # source://rubocop/lib/rubocop/cop/lint/ineffective_access_modifier.rb#59 def check_node(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/ineffective_access_modifier.rb#106 + # source://rubocop/lib/rubocop/cop/lint/ineffective_access_modifier.rb#106 def correct_visibility?(node, modifier, ignored_methods); end - # source://rubocop//lib/rubocop/cop/lint/ineffective_access_modifier.rb#71 + # source://rubocop/lib/rubocop/cop/lint/ineffective_access_modifier.rb#71 def format_message(modifier); end - # source://rubocop//lib/rubocop/cop/lint/ineffective_access_modifier.rb#84 + # source://rubocop/lib/rubocop/cop/lint/ineffective_access_modifier.rb#84 def ineffective_modifier(node, ignored_methods = T.unsafe(nil), modifier = T.unsafe(nil), &block); end - # source://rubocop//lib/rubocop/cop/lint/ineffective_access_modifier.rb#67 + # source://rubocop/lib/rubocop/cop/lint/ineffective_access_modifier.rb#67 def private_class_method_names(node); end end -# source://rubocop//lib/rubocop/cop/lint/ineffective_access_modifier.rb#44 +# source://rubocop/lib/rubocop/cop/lint/ineffective_access_modifier.rb#44 RuboCop::Cop::Lint::IneffectiveAccessModifier::ALTERNATIVE_PRIVATE = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/lint/ineffective_access_modifier.rb#45 +# source://rubocop/lib/rubocop/cop/lint/ineffective_access_modifier.rb#45 RuboCop::Cop::Lint::IneffectiveAccessModifier::ALTERNATIVE_PROTECTED = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/lint/ineffective_access_modifier.rb#42 +# source://rubocop/lib/rubocop/cop/lint/ineffective_access_modifier.rb#42 RuboCop::Cop::Lint::IneffectiveAccessModifier::MSG = T.let(T.unsafe(nil), String) # Looks for error classes inheriting from `Exception`. @@ -20039,46 +20202,46 @@ RuboCop::Cop::Lint::IneffectiveAccessModifier::MSG = T.let(T.unsafe(nil), String # # C = Class.new(RuntimeError) # -# source://rubocop//lib/rubocop/cop/lint/inherit_exception.rb#40 +# source://rubocop/lib/rubocop/cop/lint/inherit_exception.rb#40 class RuboCop::Cop::Lint::InheritException < ::RuboCop::Cop::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/lint/inherit_exception.rb#53 + # source://rubocop/lib/rubocop/cop/lint/inherit_exception.rb#53 def class_new_call?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/lint/inherit_exception.rb#59 + # source://rubocop/lib/rubocop/cop/lint/inherit_exception.rb#59 def on_class(node); end - # source://rubocop//lib/rubocop/cop/lint/inherit_exception.rb#70 + # source://rubocop/lib/rubocop/cop/lint/inherit_exception.rb#70 def on_send(node); end private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/inherit_exception.rb#87 + # source://rubocop/lib/rubocop/cop/lint/inherit_exception.rb#87 def exception_class?(class_node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/inherit_exception.rb#91 + # source://rubocop/lib/rubocop/cop/lint/inherit_exception.rb#91 def inherit_exception_class_with_omitted_namespace?(class_node); end - # source://rubocop//lib/rubocop/cop/lint/inherit_exception.rb#83 + # source://rubocop/lib/rubocop/cop/lint/inherit_exception.rb#83 def message(node); end - # source://rubocop//lib/rubocop/cop/lint/inherit_exception.rb#99 + # source://rubocop/lib/rubocop/cop/lint/inherit_exception.rb#99 def preferred_base_class; end end -# source://rubocop//lib/rubocop/cop/lint/inherit_exception.rb#44 +# source://rubocop/lib/rubocop/cop/lint/inherit_exception.rb#44 RuboCop::Cop::Lint::InheritException::MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/lint/inherit_exception.rb#45 +# source://rubocop/lib/rubocop/cop/lint/inherit_exception.rb#45 RuboCop::Cop::Lint::InheritException::PREFERRED_BASE_CLASS = T.let(T.unsafe(nil), Hash) -# source://rubocop//lib/rubocop/cop/lint/inherit_exception.rb#50 +# source://rubocop/lib/rubocop/cop/lint/inherit_exception.rb#50 RuboCop::Cop::Lint::InheritException::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Checks for interpolation in a single quoted string. @@ -20091,25 +20254,30 @@ RuboCop::Cop::Lint::InheritException::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Ar # # good # foo = "something with #{interpolation} inside" # -# source://rubocop//lib/rubocop/cop/lint/interpolation_check.rb#21 +# source://rubocop/lib/rubocop/cop/lint/interpolation_check.rb#21 class RuboCop::Cop::Lint::InterpolationCheck < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/lint/interpolation_check.rb#27 + # source://rubocop/lib/rubocop/cop/lint/interpolation_check.rb#28 def on_str(node); end private - # source://rubocop//lib/rubocop/cop/lint/interpolation_check.rb#38 + # source://rubocop/lib/rubocop/cop/lint/interpolation_check.rb#41 def autocorrect(corrector, node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/interpolation_check.rb#49 + # source://rubocop/lib/rubocop/cop/lint/interpolation_check.rb#52 def heredoc?(node); end + + # @return [Boolean] + # + # source://rubocop/lib/rubocop/cop/lint/interpolation_check.rb#56 + def valid_syntax?(node); end end -# source://rubocop//lib/rubocop/cop/lint/interpolation_check.rb#24 +# source://rubocop/lib/rubocop/cop/lint/interpolation_check.rb#24 RuboCop::Cop::Lint::InterpolationCheck::MSG = T.let(T.unsafe(nil), String) # Emulates the following Ruby warning in Ruby 3.3. @@ -20133,23 +20301,24 @@ RuboCop::Cop::Lint::InterpolationCheck::MSG = T.let(T.unsafe(nil), String) # do_something { it() } # do_something { self.it } # -# source://rubocop//lib/rubocop/cop/lint/it_without_arguments_in_block.rb#27 +# source://rubocop/lib/rubocop/cop/lint/it_without_arguments_in_block.rb#27 class RuboCop::Cop::Lint::ItWithoutArgumentsInBlock < ::RuboCop::Cop::Base include ::RuboCop::AST::NodePattern::Macros + extend ::RuboCop::Cop::TargetRubyVersion # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/it_without_arguments_in_block.rb#41 + # source://rubocop/lib/rubocop/cop/lint/it_without_arguments_in_block.rb#44 def deprecated_it_method?(node); end - # source://rubocop//lib/rubocop/cop/lint/it_without_arguments_in_block.rb#34 + # source://rubocop/lib/rubocop/cop/lint/it_without_arguments_in_block.rb#37 def on_send(node); end end -# source://rubocop//lib/rubocop/cop/lint/it_without_arguments_in_block.rb#30 +# source://rubocop/lib/rubocop/cop/lint/it_without_arguments_in_block.rb#33 RuboCop::Cop::Lint::ItWithoutArgumentsInBlock::MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/lint/it_without_arguments_in_block.rb#32 +# source://rubocop/lib/rubocop/cop/lint/it_without_arguments_in_block.rb#35 RuboCop::Cop::Lint::ItWithoutArgumentsInBlock::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Checks uses of lambda without a literal block. @@ -20174,21 +20343,21 @@ RuboCop::Cop::Lint::ItWithoutArgumentsInBlock::RESTRICT_ON_SEND = T.let(T.unsafe # Proc.new { do_something } # lambda { do_something } # If you use lambda. # -# source://rubocop//lib/rubocop/cop/lint/lambda_without_literal_block.rb#28 +# source://rubocop/lib/rubocop/cop/lint/lambda_without_literal_block.rb#28 class RuboCop::Cop::Lint::LambdaWithoutLiteralBlock < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/lint/lambda_without_literal_block.rb#35 + # source://rubocop/lib/rubocop/cop/lint/lambda_without_literal_block.rb#35 def lambda_with_symbol_proc?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/lint/lambda_without_literal_block.rb#39 + # source://rubocop/lib/rubocop/cop/lint/lambda_without_literal_block.rb#39 def on_send(node); end end -# source://rubocop//lib/rubocop/cop/lint/lambda_without_literal_block.rb#31 +# source://rubocop/lib/rubocop/cop/lint/lambda_without_literal_block.rb#31 RuboCop::Cop::Lint::LambdaWithoutLiteralBlock::MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/lint/lambda_without_literal_block.rb#32 +# source://rubocop/lib/rubocop/cop/lint/lambda_without_literal_block.rb#32 RuboCop::Cop::Lint::LambdaWithoutLiteralBlock::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Checks for literals used as the conditions or as @@ -20221,71 +20390,74 @@ RuboCop::Cop::Lint::LambdaWithoutLiteralBlock::RESTRICT_ON_SEND = T.let(T.unsafe # break if condition # end # -# source://rubocop//lib/rubocop/cop/lint/literal_as_condition.rb#35 +# source://rubocop/lib/rubocop/cop/lint/literal_as_condition.rb#35 class RuboCop::Cop::Lint::LiteralAsCondition < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp - # source://rubocop//lib/rubocop/cop/lint/literal_as_condition.rb#93 + # source://rubocop/lib/rubocop/cop/lint/literal_as_condition.rb#94 def message(node); end - # source://rubocop//lib/rubocop/cop/lint/literal_as_condition.rb#58 + # source://rubocop/lib/rubocop/cop/lint/literal_as_condition.rb#59 def on_case(case_node); end - # source://rubocop//lib/rubocop/cop/lint/literal_as_condition.rb#73 + # source://rubocop/lib/rubocop/cop/lint/literal_as_condition.rb#74 def on_case_match(case_match_node); end - # source://rubocop//lib/rubocop/cop/lint/literal_as_condition.rb#40 + # source://rubocop/lib/rubocop/cop/lint/literal_as_condition.rb#41 def on_if(node); end - # source://rubocop//lib/rubocop/cop/lint/literal_as_condition.rb#87 + # source://rubocop/lib/rubocop/cop/lint/literal_as_condition.rb#88 def on_send(node); end - # source://rubocop//lib/rubocop/cop/lint/literal_as_condition.rb#51 + # source://rubocop/lib/rubocop/cop/lint/literal_as_condition.rb#52 def on_until(node); end - # source://rubocop//lib/rubocop/cop/lint/literal_as_condition.rb#51 + # source://rubocop/lib/rubocop/cop/lint/literal_as_condition.rb#52 def on_until_post(node); end - # source://rubocop//lib/rubocop/cop/lint/literal_as_condition.rb#44 + # source://rubocop/lib/rubocop/cop/lint/literal_as_condition.rb#45 def on_while(node); end - # source://rubocop//lib/rubocop/cop/lint/literal_as_condition.rb#44 + # source://rubocop/lib/rubocop/cop/lint/literal_as_condition.rb#45 def on_while_post(node); end private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/literal_as_condition.rb#108 + # source://rubocop/lib/rubocop/cop/lint/literal_as_condition.rb#109 def basic_literal?(node); end - # source://rubocop//lib/rubocop/cop/lint/literal_as_condition.rb#138 + # source://rubocop/lib/rubocop/cop/lint/literal_as_condition.rb#139 def check_case(case_node); end - # source://rubocop//lib/rubocop/cop/lint/literal_as_condition.rb#99 + # source://rubocop/lib/rubocop/cop/lint/literal_as_condition.rb#100 def check_for_literal(node); end - # source://rubocop//lib/rubocop/cop/lint/literal_as_condition.rb#120 + # source://rubocop/lib/rubocop/cop/lint/literal_as_condition.rb#121 def check_node(node); end - # source://rubocop//lib/rubocop/cop/lint/literal_as_condition.rb#147 + # source://rubocop/lib/rubocop/cop/lint/literal_as_condition.rb#148 def condition(node); end - # source://rubocop//lib/rubocop/cop/lint/literal_as_condition.rb#130 + # source://rubocop/lib/rubocop/cop/lint/literal_as_condition.rb#131 def handle_node(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/literal_as_condition.rb#116 + # source://rubocop/lib/rubocop/cop/lint/literal_as_condition.rb#117 def primitive_array?(node); end - # source://rubocop//lib/rubocop/cop/lint/literal_as_condition.rb#155 + # source://rubocop/lib/rubocop/cop/lint/literal_as_condition.rb#156 def when_conditions_range(when_node); end end -# source://rubocop//lib/rubocop/cop/lint/literal_as_condition.rb#38 +# source://rubocop/lib/rubocop/cop/lint/literal_as_condition.rb#38 RuboCop::Cop::Lint::LiteralAsCondition::MSG = T.let(T.unsafe(nil), String) +# source://rubocop/lib/rubocop/cop/lint/literal_as_condition.rb#39 +RuboCop::Cop::Lint::LiteralAsCondition::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + # Checks for literal assignments in the conditions of `if`, `while`, and `until`. # It emulates the following Ruby warning: # @@ -20315,39 +20487,39 @@ RuboCop::Cop::Lint::LiteralAsCondition::MSG = T.let(T.unsafe(nil), String) # do_something # end # -# source://rubocop//lib/rubocop/cop/lint/literal_assignment_in_condition.rb#35 +# source://rubocop/lib/rubocop/cop/lint/literal_assignment_in_condition.rb#35 class RuboCop::Cop::Lint::LiteralAssignmentInCondition < ::RuboCop::Cop::Base - # source://rubocop//lib/rubocop/cop/lint/literal_assignment_in_condition.rb#39 + # source://rubocop/lib/rubocop/cop/lint/literal_assignment_in_condition.rb#39 def on_if(node); end - # source://rubocop//lib/rubocop/cop/lint/literal_assignment_in_condition.rb#39 + # source://rubocop/lib/rubocop/cop/lint/literal_assignment_in_condition.rb#39 def on_until(node); end - # source://rubocop//lib/rubocop/cop/lint/literal_assignment_in_condition.rb#39 + # source://rubocop/lib/rubocop/cop/lint/literal_assignment_in_condition.rb#39 def on_while(node); end private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/literal_assignment_in_condition.rb#62 + # source://rubocop/lib/rubocop/cop/lint/literal_assignment_in_condition.rb#62 def all_literals?(node); end - # source://rubocop//lib/rubocop/cop/lint/literal_assignment_in_condition.rb#79 + # source://rubocop/lib/rubocop/cop/lint/literal_assignment_in_condition.rb#79 def offense_range(asgn_node, rhs); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/literal_assignment_in_condition.rb#75 + # source://rubocop/lib/rubocop/cop/lint/literal_assignment_in_condition.rb#75 def parallel_assignment_with_splat_operator?(node); end # @yield [node] # - # source://rubocop//lib/rubocop/cop/lint/literal_assignment_in_condition.rb#56 + # source://rubocop/lib/rubocop/cop/lint/literal_assignment_in_condition.rb#56 def traverse_node(node, &block); end end -# source://rubocop//lib/rubocop/cop/lint/literal_assignment_in_condition.rb#36 +# source://rubocop/lib/rubocop/cop/lint/literal_assignment_in_condition.rb#36 RuboCop::Cop::Lint::LiteralAssignmentInCondition::MSG = T.let(T.unsafe(nil), String) # Checks for interpolated literals. @@ -20360,79 +20532,79 @@ RuboCop::Cop::Lint::LiteralAssignmentInCondition::MSG = T.let(T.unsafe(nil), Str # # good # "result is 10" # -# source://rubocop//lib/rubocop/cop/lint/literal_in_interpolation.rb#15 +# source://rubocop/lib/rubocop/cop/lint/literal_in_interpolation.rb#15 class RuboCop::Cop::Lint::LiteralInInterpolation < ::RuboCop::Cop::Base include ::RuboCop::Cop::Interpolation include ::RuboCop::Cop::RangeHelp include ::RuboCop::Cop::PercentLiteral extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/lint/literal_in_interpolation.rb#24 + # source://rubocop/lib/rubocop/cop/lint/literal_in_interpolation.rb#24 def on_interpolation(begin_node); end private - # source://rubocop//lib/rubocop/cop/lint/literal_in_interpolation.rb#60 + # source://rubocop/lib/rubocop/cop/lint/literal_in_interpolation.rb#60 def autocorrected_value(node); end - # source://rubocop//lib/rubocop/cop/lint/literal_in_interpolation.rb#127 + # source://rubocop/lib/rubocop/cop/lint/literal_in_interpolation.rb#127 def autocorrected_value_for_array(node); end - # source://rubocop//lib/rubocop/cop/lint/literal_in_interpolation.rb#133 + # source://rubocop/lib/rubocop/cop/lint/literal_in_interpolation.rb#133 def autocorrected_value_for_hash(node); end - # source://rubocop//lib/rubocop/cop/lint/literal_in_interpolation.rb#103 + # source://rubocop/lib/rubocop/cop/lint/literal_in_interpolation.rb#103 def autocorrected_value_for_string(node); end - # source://rubocop//lib/rubocop/cop/lint/literal_in_interpolation.rb#111 + # source://rubocop/lib/rubocop/cop/lint/literal_in_interpolation.rb#111 def autocorrected_value_for_symbol(node); end - # source://rubocop//lib/rubocop/cop/lint/literal_in_interpolation.rb#144 + # source://rubocop/lib/rubocop/cop/lint/literal_in_interpolation.rb#144 def autocorrected_value_in_hash(node); end - # source://rubocop//lib/rubocop/cop/lint/literal_in_interpolation.rb#118 + # source://rubocop/lib/rubocop/cop/lint/literal_in_interpolation.rb#118 def autocorrected_value_in_hash_for_symbol(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/literal_in_interpolation.rb#174 + # source://rubocop/lib/rubocop/cop/lint/literal_in_interpolation.rb#174 def ends_heredoc_line?(node); end - # source://rubocop//lib/rubocop/cop/lint/literal_in_interpolation.rb#82 + # source://rubocop/lib/rubocop/cop/lint/literal_in_interpolation.rb#82 def handle_special_regexp_chars(begin_node, value); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/literal_in_interpolation.rb#182 + # source://rubocop/lib/rubocop/cop/lint/literal_in_interpolation.rb#182 def in_array_percent_literal?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/literal_in_interpolation.rb#46 + # source://rubocop/lib/rubocop/cop/lint/literal_in_interpolation.rb#46 def offending?(node); end # Does node print its own source when converted to a string? # # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/literal_in_interpolation.rb#165 + # source://rubocop/lib/rubocop/cop/lint/literal_in_interpolation.rb#165 def prints_as_self?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/literal_in_interpolation.rb#170 + # source://rubocop/lib/rubocop/cop/lint/literal_in_interpolation.rb#170 def space_literal?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/literal_in_interpolation.rb#54 + # source://rubocop/lib/rubocop/cop/lint/literal_in_interpolation.rb#54 def special_keyword?(node); end end -# source://rubocop//lib/rubocop/cop/lint/literal_in_interpolation.rb#22 +# source://rubocop/lib/rubocop/cop/lint/literal_in_interpolation.rb#22 RuboCop::Cop::Lint::LiteralInInterpolation::COMPOSITE = T.let(T.unsafe(nil), Array) -# source://rubocop//lib/rubocop/cop/lint/literal_in_interpolation.rb#21 +# source://rubocop/lib/rubocop/cop/lint/literal_in_interpolation.rb#21 RuboCop::Cop::Lint::LiteralInInterpolation::MSG = T.let(T.unsafe(nil), String) # Checks for uses of `begin...end while/until something`. @@ -20469,29 +20641,29 @@ RuboCop::Cop::Lint::LiteralInInterpolation::MSG = T.let(T.unsafe(nil), String) # break if some_condition # end # -# source://rubocop//lib/rubocop/cop/lint/loop.rb#44 +# source://rubocop/lib/rubocop/cop/lint/loop.rb#44 class RuboCop::Cop::Lint::Loop < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/lint/loop.rb#53 + # source://rubocop/lib/rubocop/cop/lint/loop.rb#53 def on_until_post(node); end - # source://rubocop//lib/rubocop/cop/lint/loop.rb#49 + # source://rubocop/lib/rubocop/cop/lint/loop.rb#49 def on_while_post(node); end private - # source://rubocop//lib/rubocop/cop/lint/loop.rb#73 + # source://rubocop/lib/rubocop/cop/lint/loop.rb#73 def build_break_line(node); end - # source://rubocop//lib/rubocop/cop/lint/loop.rb#69 + # source://rubocop/lib/rubocop/cop/lint/loop.rb#69 def keyword_and_condition_range(node); end - # source://rubocop//lib/rubocop/cop/lint/loop.rb#59 + # source://rubocop/lib/rubocop/cop/lint/loop.rb#59 def register_offense(node); end end -# source://rubocop//lib/rubocop/cop/lint/loop.rb#47 +# source://rubocop/lib/rubocop/cop/lint/loop.rb#47 RuboCop::Cop::Lint::Loop::MSG = T.let(T.unsafe(nil), String) # cop disables on wide ranges of code, that latter contributors to @@ -20529,39 +20701,39 @@ RuboCop::Cop::Lint::Loop::MSG = T.let(T.unsafe(nil), String) # # Including this, that's 3 lines on which the cop is disabled. # # rubocop:enable Layout/SpaceAroundOperators # -# source://rubocop//lib/rubocop/cop/lint/missing_cop_enable_directive.rb#45 +# source://rubocop/lib/rubocop/cop/lint/missing_cop_enable_directive.rb#45 class RuboCop::Cop::Lint::MissingCopEnableDirective < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp - # source://rubocop//lib/rubocop/cop/lint/missing_cop_enable_directive.rb#51 + # source://rubocop/lib/rubocop/cop/lint/missing_cop_enable_directive.rb#51 def on_new_investigation; end private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/missing_cop_enable_directive.rb#70 + # source://rubocop/lib/rubocop/cop/lint/missing_cop_enable_directive.rb#70 def acceptable_range?(cop, line_range); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/missing_cop_enable_directive.rb#104 + # source://rubocop/lib/rubocop/cop/lint/missing_cop_enable_directive.rb#104 def department_enabled?(cop, comment); end - # source://rubocop//lib/rubocop/cop/lint/missing_cop_enable_directive.rb#64 + # source://rubocop/lib/rubocop/cop/lint/missing_cop_enable_directive.rb#64 def each_missing_enable; end - # source://rubocop//lib/rubocop/cop/lint/missing_cop_enable_directive.rb#87 + # source://rubocop/lib/rubocop/cop/lint/missing_cop_enable_directive.rb#87 def max_range; end - # source://rubocop//lib/rubocop/cop/lint/missing_cop_enable_directive.rb#91 + # source://rubocop/lib/rubocop/cop/lint/missing_cop_enable_directive.rb#91 def message(cop, comment, type = T.unsafe(nil)); end end -# source://rubocop//lib/rubocop/cop/lint/missing_cop_enable_directive.rb#48 +# source://rubocop/lib/rubocop/cop/lint/missing_cop_enable_directive.rb#48 RuboCop::Cop::Lint::MissingCopEnableDirective::MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/lint/missing_cop_enable_directive.rb#49 +# source://rubocop/lib/rubocop/cop/lint/missing_cop_enable_directive.rb#49 RuboCop::Cop::Lint::MissingCopEnableDirective::MSG_BOUND = T.let(T.unsafe(nil), String) # Checks for the presence of constructors and lifecycle callbacks @@ -20642,64 +20814,64 @@ RuboCop::Cop::Lint::MissingCopEnableDirective::MSG_BOUND = T.let(T.unsafe(nil), # end # end # -# source://rubocop//lib/rubocop/cop/lint/missing_super.rb#85 +# source://rubocop/lib/rubocop/cop/lint/missing_super.rb#85 class RuboCop::Cop::Lint::MissingSuper < ::RuboCop::Cop::Base - # source://rubocop//lib/rubocop/cop/lint/missing_super.rb#99 + # source://rubocop/lib/rubocop/cop/lint/missing_super.rb#99 def class_new_block(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/lint/missing_super.rb#105 + # source://rubocop/lib/rubocop/cop/lint/missing_super.rb#105 def on_def(node); end - # source://rubocop//lib/rubocop/cop/lint/missing_super.rb#115 + # source://rubocop/lib/rubocop/cop/lint/missing_super.rb#115 def on_defs(node); end private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/missing_super.rb#149 + # source://rubocop/lib/rubocop/cop/lint/missing_super.rb#149 def allowed_class?(node); end - # source://rubocop//lib/rubocop/cop/lint/missing_super.rb#153 + # source://rubocop/lib/rubocop/cop/lint/missing_super.rb#153 def allowed_classes; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/missing_super.rb#127 + # source://rubocop/lib/rubocop/cop/lint/missing_super.rb#127 def callback_method_def?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/missing_super.rb#133 + # source://rubocop/lib/rubocop/cop/lint/missing_super.rb#133 def contains_super?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/missing_super.rb#137 + # source://rubocop/lib/rubocop/cop/lint/missing_super.rb#137 def inside_class_with_stateful_parent?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/missing_super.rb#123 + # source://rubocop/lib/rubocop/cop/lint/missing_super.rb#123 def offender?(node); end end -# source://rubocop//lib/rubocop/cop/lint/missing_super.rb#96 +# source://rubocop/lib/rubocop/cop/lint/missing_super.rb#96 RuboCop::Cop::Lint::MissingSuper::CALLBACKS = T.let(T.unsafe(nil), Set) -# source://rubocop//lib/rubocop/cop/lint/missing_super.rb#87 +# source://rubocop/lib/rubocop/cop/lint/missing_super.rb#87 RuboCop::Cop::Lint::MissingSuper::CALLBACK_MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/lint/missing_super.rb#91 +# source://rubocop/lib/rubocop/cop/lint/missing_super.rb#91 RuboCop::Cop::Lint::MissingSuper::CLASS_LIFECYCLE_CALLBACKS = T.let(T.unsafe(nil), Array) -# source://rubocop//lib/rubocop/cop/lint/missing_super.rb#86 +# source://rubocop/lib/rubocop/cop/lint/missing_super.rb#86 RuboCop::Cop::Lint::MissingSuper::CONSTRUCTOR_MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/lint/missing_super.rb#92 +# source://rubocop/lib/rubocop/cop/lint/missing_super.rb#92 RuboCop::Cop::Lint::MissingSuper::METHOD_LIFECYCLE_CALLBACKS = T.let(T.unsafe(nil), Array) -# source://rubocop//lib/rubocop/cop/lint/missing_super.rb#89 +# source://rubocop/lib/rubocop/cop/lint/missing_super.rb#89 RuboCop::Cop::Lint::MissingSuper::STATELESS_CLASSES = T.let(T.unsafe(nil), Array) # Checks for mixed-case character ranges since they include likely unintended characters. @@ -20717,57 +20889,57 @@ RuboCop::Cop::Lint::MissingSuper::STATELESS_CLASSES = T.let(T.unsafe(nil), Array # # good # r = /[A-Za-z]/ # -# source://rubocop//lib/rubocop/cop/lint/mixed_case_range.rb#28 +# source://rubocop/lib/rubocop/cop/lint/mixed_case_range.rb#28 class RuboCop::Cop::Lint::MixedCaseRange < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/lint/mixed_case_range.rb#58 + # source://rubocop/lib/rubocop/cop/lint/mixed_case_range.rb#55 def each_unsafe_regexp_range(node); end - # source://rubocop//lib/rubocop/cop/lint/mixed_case_range.rb#37 + # source://rubocop/lib/rubocop/cop/lint/mixed_case_range.rb#37 def on_erange(node); end - # source://rubocop//lib/rubocop/cop/lint/mixed_case_range.rb#37 + # source://rubocop/lib/rubocop/cop/lint/mixed_case_range.rb#37 def on_irange(node); end - # source://rubocop//lib/rubocop/cop/lint/mixed_case_range.rb#48 + # source://rubocop/lib/rubocop/cop/lint/mixed_case_range.rb#45 def on_regexp(node); end private - # source://rubocop//lib/rubocop/cop/lint/mixed_case_range.rb#74 + # source://rubocop/lib/rubocop/cop/lint/mixed_case_range.rb#71 def build_source_range(range_start, range_end); end - # source://rubocop//lib/rubocop/cop/lint/mixed_case_range.rb#78 + # source://rubocop/lib/rubocop/cop/lint/mixed_case_range.rb#75 def range_for(char); end - # source://rubocop//lib/rubocop/cop/lint/mixed_case_range.rb#84 + # source://rubocop/lib/rubocop/cop/lint/mixed_case_range.rb#81 def range_pairs(expr); end - # source://rubocop//lib/rubocop/cop/lint/mixed_case_range.rb#104 + # source://rubocop/lib/rubocop/cop/lint/mixed_case_range.rb#101 def regexp_range(source); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/mixed_case_range.rb#94 + # source://rubocop/lib/rubocop/cop/lint/mixed_case_range.rb#91 def skip_expression?(expr); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/mixed_case_range.rb#98 + # source://rubocop/lib/rubocop/cop/lint/mixed_case_range.rb#95 def skip_range?(range_start, range_end); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/mixed_case_range.rb#88 + # source://rubocop/lib/rubocop/cop/lint/mixed_case_range.rb#85 def unsafe_range?(range_start, range_end); end end -# source://rubocop//lib/rubocop/cop/lint/mixed_case_range.rb#32 +# source://rubocop/lib/rubocop/cop/lint/mixed_case_range.rb#32 RuboCop::Cop::Lint::MixedCaseRange::MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/lint/mixed_case_range.rb#35 +# source://rubocop/lib/rubocop/cop/lint/mixed_case_range.rb#35 RuboCop::Cop::Lint::MixedCaseRange::RANGES = T.let(T.unsafe(nil), Array) # Do not mix named captures and numbered captures in a Regexp literal @@ -20788,13 +20960,13 @@ RuboCop::Cop::Lint::MixedCaseRange::RANGES = T.let(T.unsafe(nil), Array) # # good # /(FOO)(BAR)/ # -# source://rubocop//lib/rubocop/cop/lint/mixed_regexp_capture_types.rb#24 +# source://rubocop/lib/rubocop/cop/lint/mixed_regexp_capture_types.rb#24 class RuboCop::Cop::Lint::MixedRegexpCaptureTypes < ::RuboCop::Cop::Base - # source://rubocop//lib/rubocop/cop/lint/mixed_regexp_capture_types.rb#27 + # source://rubocop/lib/rubocop/cop/lint/mixed_regexp_capture_types.rb#27 def on_regexp(node); end end -# source://rubocop//lib/rubocop/cop/lint/mixed_regexp_capture_types.rb#25 +# source://rubocop/lib/rubocop/cop/lint/mixed_regexp_capture_types.rb#25 RuboCop::Cop::Lint::MixedRegexpCaptureTypes::MSG = T.let(T.unsafe(nil), String) # In math and Python, we can use `x < y < z` style comparison to compare @@ -20812,27 +20984,27 @@ RuboCop::Cop::Lint::MixedRegexpCaptureTypes::MSG = T.let(T.unsafe(nil), String) # x < y && y < z # 10 <= x && x <= 20 # -# source://rubocop//lib/rubocop/cop/lint/multiple_comparison.rb#20 +# source://rubocop/lib/rubocop/cop/lint/multiple_comparison.rb#20 class RuboCop::Cop::Lint::MultipleComparison < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/lint/multiple_comparison.rb#29 + # source://rubocop/lib/rubocop/cop/lint/multiple_comparison.rb#29 def multiple_compare?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/lint/multiple_comparison.rb#33 + # source://rubocop/lib/rubocop/cop/lint/multiple_comparison.rb#33 def on_send(node); end end -# source://rubocop//lib/rubocop/cop/lint/multiple_comparison.rb#24 +# source://rubocop/lib/rubocop/cop/lint/multiple_comparison.rb#24 RuboCop::Cop::Lint::MultipleComparison::COMPARISON_METHODS = T.let(T.unsafe(nil), Array) -# source://rubocop//lib/rubocop/cop/lint/multiple_comparison.rb#23 +# source://rubocop/lib/rubocop/cop/lint/multiple_comparison.rb#23 RuboCop::Cop::Lint::MultipleComparison::MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/lint/multiple_comparison.rb#26 +# source://rubocop/lib/rubocop/cop/lint/multiple_comparison.rb#26 RuboCop::Cop::Lint::MultipleComparison::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) -# source://rubocop//lib/rubocop/cop/lint/multiple_comparison.rb#25 +# source://rubocop/lib/rubocop/cop/lint/multiple_comparison.rb#25 RuboCop::Cop::Lint::MultipleComparison::SET_OPERATION_OPERATORS = T.let(T.unsafe(nil), Array) # Checks for nested method definitions. @@ -20916,37 +21088,37 @@ RuboCop::Cop::Lint::MultipleComparison::SET_OPERATION_OPERATORS = T.let(T.unsafe # end # end # -# source://rubocop//lib/rubocop/cop/lint/nested_method_definition.rb#91 +# source://rubocop/lib/rubocop/cop/lint/nested_method_definition.rb#91 class RuboCop::Cop::Lint::NestedMethodDefinition < ::RuboCop::Cop::Base include ::RuboCop::Cop::AllowedMethods include ::RuboCop::Cop::AllowedPattern - # source://rubocop//lib/rubocop/cop/lint/nested_method_definition.rb#127 + # source://rubocop/lib/rubocop/cop/lint/nested_method_definition.rb#127 def eval_call?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/lint/nested_method_definition.rb#132 + # source://rubocop/lib/rubocop/cop/lint/nested_method_definition.rb#132 def exec_call?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/lint/nested_method_definition.rb#97 + # source://rubocop/lib/rubocop/cop/lint/nested_method_definition.rb#97 def on_def(node); end - # source://rubocop//lib/rubocop/cop/lint/nested_method_definition.rb#97 + # source://rubocop/lib/rubocop/cop/lint/nested_method_definition.rb#97 def on_defs(node); end private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/nested_method_definition.rb#120 + # source://rubocop/lib/rubocop/cop/lint/nested_method_definition.rb#120 def allowed_method_name?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/nested_method_definition.rb#115 + # source://rubocop/lib/rubocop/cop/lint/nested_method_definition.rb#115 def scoping_method_call?(child); end end -# source://rubocop//lib/rubocop/cop/lint/nested_method_definition.rb#95 +# source://rubocop/lib/rubocop/cop/lint/nested_method_definition.rb#95 RuboCop::Cop::Lint::NestedMethodDefinition::MSG = T.let(T.unsafe(nil), String) # Checks for nested percent literals. @@ -20975,36 +21147,36 @@ RuboCop::Cop::Lint::NestedMethodDefinition::MSG = T.let(T.unsafe(nil), String) # nested_attributes: [:name, :content, [:incorrectly, :nested]] # } # -# source://rubocop//lib/rubocop/cop/lint/nested_percent_literal.rb#32 +# source://rubocop/lib/rubocop/cop/lint/nested_percent_literal.rb#32 class RuboCop::Cop::Lint::NestedPercentLiteral < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp include ::RuboCop::Cop::PercentLiteral - # source://rubocop//lib/rubocop/cop/lint/nested_percent_literal.rb#44 + # source://rubocop/lib/rubocop/cop/lint/nested_percent_literal.rb#44 def on_array(node); end - # source://rubocop//lib/rubocop/cop/lint/nested_percent_literal.rb#48 + # source://rubocop/lib/rubocop/cop/lint/nested_percent_literal.rb#48 def on_percent_literal(node); end private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/nested_percent_literal.rb#54 + # source://rubocop/lib/rubocop/cop/lint/nested_percent_literal.rb#54 def contains_percent_literals?(node); end end -# source://rubocop//lib/rubocop/cop/lint/nested_percent_literal.rb#35 +# source://rubocop/lib/rubocop/cop/lint/nested_percent_literal.rb#35 RuboCop::Cop::Lint::NestedPercentLiteral::MSG = T.let(T.unsafe(nil), String) # The array of regular expressions representing percent literals that, # if found within a percent literal expression, will cause a # NestedPercentLiteral violation to be emitted. # -# source://rubocop//lib/rubocop/cop/lint/nested_percent_literal.rb#41 +# source://rubocop/lib/rubocop/cop/lint/nested_percent_literal.rb#41 RuboCop::Cop::Lint::NestedPercentLiteral::PERCENT_LITERAL_TYPES = T.let(T.unsafe(nil), Array) -# source://rubocop//lib/rubocop/cop/lint/nested_percent_literal.rb#42 +# source://rubocop/lib/rubocop/cop/lint/nested_percent_literal.rb#42 RuboCop::Cop::Lint::NestedPercentLiteral::REGEXES = T.let(T.unsafe(nil), Array) # Don't omit the accumulator when calling `next` in a `reduce` block. @@ -21023,24 +21195,24 @@ RuboCop::Cop::Lint::NestedPercentLiteral::REGEXES = T.let(T.unsafe(nil), Array) # acc + i # end # -# source://rubocop//lib/rubocop/cop/lint/next_without_accumulator.rb#21 +# source://rubocop/lib/rubocop/cop/lint/next_without_accumulator.rb#21 class RuboCop::Cop::Lint::NextWithoutAccumulator < ::RuboCop::Cop::Base - # source://rubocop//lib/rubocop/cop/lint/next_without_accumulator.rb#24 + # source://rubocop/lib/rubocop/cop/lint/next_without_accumulator.rb#24 def on_block(node); end - # source://rubocop//lib/rubocop/cop/lint/next_without_accumulator.rb#38 + # source://rubocop/lib/rubocop/cop/lint/next_without_accumulator.rb#38 def on_block_body_of_reduce(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/lint/next_without_accumulator.rb#24 + # source://rubocop/lib/rubocop/cop/lint/next_without_accumulator.rb#24 def on_numblock(node); end private - # source://rubocop//lib/rubocop/cop/lint/next_without_accumulator.rb#45 + # source://rubocop/lib/rubocop/cop/lint/next_without_accumulator.rb#45 def parent_block_node(node); end end -# source://rubocop//lib/rubocop/cop/lint/next_without_accumulator.rb#22 +# source://rubocop/lib/rubocop/cop/lint/next_without_accumulator.rb#22 RuboCop::Cop::Lint::NextWithoutAccumulator::MSG = T.let(T.unsafe(nil), String) # Checks for the presence of a `return` inside a `begin..end` block @@ -21075,19 +21247,19 @@ RuboCop::Cop::Lint::NextWithoutAccumulator::MSG = T.let(T.unsafe(nil), String) # do_something # end # -# source://rubocop//lib/rubocop/cop/lint/no_return_in_begin_end_blocks.rb#38 +# source://rubocop/lib/rubocop/cop/lint/no_return_in_begin_end_blocks.rb#38 class RuboCop::Cop::Lint::NoReturnInBeginEndBlocks < ::RuboCop::Cop::Base - # source://rubocop//lib/rubocop/cop/lint/no_return_in_begin_end_blocks.rb#41 + # source://rubocop/lib/rubocop/cop/lint/no_return_in_begin_end_blocks.rb#41 def on_lvasgn(node); end - # source://rubocop//lib/rubocop/cop/lint/no_return_in_begin_end_blocks.rb#41 + # source://rubocop/lib/rubocop/cop/lint/no_return_in_begin_end_blocks.rb#41 def on_op_asgn(node); end - # source://rubocop//lib/rubocop/cop/lint/no_return_in_begin_end_blocks.rb#41 + # source://rubocop/lib/rubocop/cop/lint/no_return_in_begin_end_blocks.rb#41 def on_or_asgn(node); end end -# source://rubocop//lib/rubocop/cop/lint/no_return_in_begin_end_blocks.rb#39 +# source://rubocop/lib/rubocop/cop/lint/no_return_in_begin_end_blocks.rb#39 RuboCop::Cop::Lint::NoReturnInBeginEndBlocks::MSG = T.let(T.unsafe(nil), String) # Checks for non-atomic file operation. @@ -21123,98 +21295,98 @@ RuboCop::Cop::Lint::NoReturnInBeginEndBlocks::MSG = T.let(T.unsafe(nil), String) # # good - atomic and idempotent removal # FileUtils.rm_f(path) # -# source://rubocop//lib/rubocop/cop/lint/non_atomic_file_operation.rb#44 +# source://rubocop/lib/rubocop/cop/lint/non_atomic_file_operation.rb#44 class RuboCop::Cop::Lint::NonAtomicFileOperation < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/lint/non_atomic_file_operation.rb#76 + # source://rubocop/lib/rubocop/cop/lint/non_atomic_file_operation.rb#76 def explicit_not_force?(param0); end - # source://rubocop//lib/rubocop/cop/lint/non_atomic_file_operation.rb#71 + # source://rubocop/lib/rubocop/cop/lint/non_atomic_file_operation.rb#71 def force?(param0); end - # source://rubocop//lib/rubocop/cop/lint/non_atomic_file_operation.rb#80 + # source://rubocop/lib/rubocop/cop/lint/non_atomic_file_operation.rb#80 def on_send(node); end - # source://rubocop//lib/rubocop/cop/lint/non_atomic_file_operation.rb#66 + # source://rubocop/lib/rubocop/cop/lint/non_atomic_file_operation.rb#66 def receiver_and_method_name(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/lint/non_atomic_file_operation.rb#61 + # source://rubocop/lib/rubocop/cop/lint/non_atomic_file_operation.rb#61 def send_exist_node(param0); end private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/non_atomic_file_operation.rb#97 + # source://rubocop/lib/rubocop/cop/lint/non_atomic_file_operation.rb#98 def allowable_use_with_if?(if_node); end - # source://rubocop//lib/rubocop/cop/lint/non_atomic_file_operation.rb#121 + # source://rubocop/lib/rubocop/cop/lint/non_atomic_file_operation.rb#122 def autocorrect(corrector, node, range); end - # source://rubocop//lib/rubocop/cop/lint/non_atomic_file_operation.rb#132 + # source://rubocop/lib/rubocop/cop/lint/non_atomic_file_operation.rb#133 def autocorrect_replace_method(corrector, node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/non_atomic_file_operation.rb#152 + # source://rubocop/lib/rubocop/cop/lint/non_atomic_file_operation.rb#153 def force_method?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/non_atomic_file_operation.rb#166 + # source://rubocop/lib/rubocop/cop/lint/non_atomic_file_operation.rb#167 def force_method_name?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/non_atomic_file_operation.rb#162 + # source://rubocop/lib/rubocop/cop/lint/non_atomic_file_operation.rb#163 def force_option?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/non_atomic_file_operation.rb#91 + # source://rubocop/lib/rubocop/cop/lint/non_atomic_file_operation.rb#92 def if_node_child?(node); end - # source://rubocop//lib/rubocop/cop/lint/non_atomic_file_operation.rb#112 + # source://rubocop/lib/rubocop/cop/lint/non_atomic_file_operation.rb#113 def message_change_force_method(node); end - # source://rubocop//lib/rubocop/cop/lint/non_atomic_file_operation.rb#116 + # source://rubocop/lib/rubocop/cop/lint/non_atomic_file_operation.rb#117 def message_remove_file_exist_check(node); end - # source://rubocop//lib/rubocop/cop/lint/non_atomic_file_operation.rb#101 + # source://rubocop/lib/rubocop/cop/lint/non_atomic_file_operation.rb#102 def register_offense(node, exist_node); end - # source://rubocop//lib/rubocop/cop/lint/non_atomic_file_operation.rb#140 + # source://rubocop/lib/rubocop/cop/lint/non_atomic_file_operation.rb#141 def replacement_method(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/non_atomic_file_operation.rb#156 + # source://rubocop/lib/rubocop/cop/lint/non_atomic_file_operation.rb#157 def require_mode_keyword?(node); end end -# source://rubocop//lib/rubocop/cop/lint/non_atomic_file_operation.rb#50 +# source://rubocop/lib/rubocop/cop/lint/non_atomic_file_operation.rb#50 RuboCop::Cop::Lint::NonAtomicFileOperation::MAKE_FORCE_METHODS = T.let(T.unsafe(nil), Array) -# source://rubocop//lib/rubocop/cop/lint/non_atomic_file_operation.rb#51 +# source://rubocop/lib/rubocop/cop/lint/non_atomic_file_operation.rb#51 RuboCop::Cop::Lint::NonAtomicFileOperation::MAKE_METHODS = T.let(T.unsafe(nil), Array) -# source://rubocop//lib/rubocop/cop/lint/non_atomic_file_operation.rb#49 +# source://rubocop/lib/rubocop/cop/lint/non_atomic_file_operation.rb#49 RuboCop::Cop::Lint::NonAtomicFileOperation::MSG_CHANGE_FORCE_METHOD = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/lint/non_atomic_file_operation.rb#47 +# source://rubocop/lib/rubocop/cop/lint/non_atomic_file_operation.rb#47 RuboCop::Cop::Lint::NonAtomicFileOperation::MSG_REMOVE_FILE_EXIST_CHECK = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/lint/non_atomic_file_operation.rb#54 +# source://rubocop/lib/rubocop/cop/lint/non_atomic_file_operation.rb#54 RuboCop::Cop::Lint::NonAtomicFileOperation::RECURSIVE_REMOVE_METHODS = T.let(T.unsafe(nil), Array) -# source://rubocop//lib/rubocop/cop/lint/non_atomic_file_operation.rb#52 +# source://rubocop/lib/rubocop/cop/lint/non_atomic_file_operation.rb#52 RuboCop::Cop::Lint::NonAtomicFileOperation::REMOVE_FORCE_METHODS = T.let(T.unsafe(nil), Array) -# source://rubocop//lib/rubocop/cop/lint/non_atomic_file_operation.rb#53 +# source://rubocop/lib/rubocop/cop/lint/non_atomic_file_operation.rb#53 RuboCop::Cop::Lint::NonAtomicFileOperation::REMOVE_METHODS = T.let(T.unsafe(nil), Array) -# source://rubocop//lib/rubocop/cop/lint/non_atomic_file_operation.rb#55 +# source://rubocop/lib/rubocop/cop/lint/non_atomic_file_operation.rb#55 RuboCop::Cop::Lint::NonAtomicFileOperation::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # `Dir[...]` and `Dir.glob(...)` do not make any guarantees about @@ -21267,67 +21439,68 @@ RuboCop::Cop::Lint::NonAtomicFileOperation::RESTRICT_ON_SEND = T.let(T.unsafe(ni # # good - Respect intent if `sort` keyword option is specified in Ruby 3.0 or higher. # Dir.glob(Rails.root.join(__dir__, 'test', '*.rb'), sort: false).each(&method(:require)) # -# source://rubocop//lib/rubocop/cop/lint/non_deterministic_require_order.rb#60 +# source://rubocop/lib/rubocop/cop/lint/non_deterministic_require_order.rb#60 class RuboCop::Cop::Lint::NonDeterministicRequireOrder < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector + extend ::RuboCop::Cop::TargetRubyVersion - # source://rubocop//lib/rubocop/cop/lint/non_deterministic_require_order.rb#172 + # source://rubocop/lib/rubocop/cop/lint/non_deterministic_require_order.rb#172 def loop_variable(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/lint/non_deterministic_require_order.rb#155 + # source://rubocop/lib/rubocop/cop/lint/non_deterministic_require_order.rb#155 def method_require?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/lint/non_deterministic_require_order.rb#65 + # source://rubocop/lib/rubocop/cop/lint/non_deterministic_require_order.rb#68 def on_block(node); end - # source://rubocop//lib/rubocop/cop/lint/non_deterministic_require_order.rb#89 + # source://rubocop/lib/rubocop/cop/lint/non_deterministic_require_order.rb#90 def on_block_pass(node); end - # source://rubocop//lib/rubocop/cop/lint/non_deterministic_require_order.rb#77 + # source://rubocop/lib/rubocop/cop/lint/non_deterministic_require_order.rb#79 def on_numblock(node); end - # source://rubocop//lib/rubocop/cop/lint/non_deterministic_require_order.rb#145 + # source://rubocop/lib/rubocop/cop/lint/non_deterministic_require_order.rb#145 def unsorted_dir_block?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/lint/non_deterministic_require_order.rb#150 + # source://rubocop/lib/rubocop/cop/lint/non_deterministic_require_order.rb#150 def unsorted_dir_each?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/lint/non_deterministic_require_order.rb#166 + # source://rubocop/lib/rubocop/cop/lint/non_deterministic_require_order.rb#166 def unsorted_dir_each_pass?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/lint/non_deterministic_require_order.rb#160 + # source://rubocop/lib/rubocop/cop/lint/non_deterministic_require_order.rb#160 def unsorted_dir_glob_pass?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/lint/non_deterministic_require_order.rb#177 + # source://rubocop/lib/rubocop/cop/lint/non_deterministic_require_order.rb#177 def var_is_required?(param0, param1); end private - # source://rubocop//lib/rubocop/cop/lint/non_deterministic_require_order.rb#107 + # source://rubocop/lib/rubocop/cop/lint/non_deterministic_require_order.rb#107 def correct_block(corrector, node); end - # source://rubocop//lib/rubocop/cop/lint/non_deterministic_require_order.rb#117 + # source://rubocop/lib/rubocop/cop/lint/non_deterministic_require_order.rb#117 def correct_block_pass(corrector, node); end # Returns range of last argument including comma and whitespace. # # @return [Parser::Source::Range] # - # source://rubocop//lib/rubocop/cop/lint/non_deterministic_require_order.rb#132 + # source://rubocop/lib/rubocop/cop/lint/non_deterministic_require_order.rb#132 def last_arg_range(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/non_deterministic_require_order.rb#136 + # source://rubocop/lib/rubocop/cop/lint/non_deterministic_require_order.rb#136 def unsorted_dir_loop?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/non_deterministic_require_order.rb#140 + # source://rubocop/lib/rubocop/cop/lint/non_deterministic_require_order.rb#140 def unsorted_dir_pass?(node); end end -# source://rubocop//lib/rubocop/cop/lint/non_deterministic_require_order.rb#63 +# source://rubocop/lib/rubocop/cop/lint/non_deterministic_require_order.rb#64 RuboCop::Cop::Lint::NonDeterministicRequireOrder::MSG = T.let(T.unsafe(nil), String) # Checks for non-local exits from iterators without a return @@ -21365,31 +21538,31 @@ RuboCop::Cop::Lint::NonDeterministicRequireOrder::MSG = T.let(T.unsafe(nil), Str # end # end # -# source://rubocop//lib/rubocop/cop/lint/non_local_exit_from_iterator.rb#41 +# source://rubocop/lib/rubocop/cop/lint/non_local_exit_from_iterator.rb#41 class RuboCop::Cop::Lint::NonLocalExitFromIterator < ::RuboCop::Cop::Base - # source://rubocop//lib/rubocop/cop/lint/non_local_exit_from_iterator.rb#77 + # source://rubocop/lib/rubocop/cop/lint/non_local_exit_from_iterator.rb#77 def chained_send?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/lint/non_local_exit_from_iterator.rb#80 + # source://rubocop/lib/rubocop/cop/lint/non_local_exit_from_iterator.rb#80 def define_method?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/lint/non_local_exit_from_iterator.rb#46 + # source://rubocop/lib/rubocop/cop/lint/non_local_exit_from_iterator.rb#46 def on_return(return_node); end private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/non_local_exit_from_iterator.rb#72 + # source://rubocop/lib/rubocop/cop/lint/non_local_exit_from_iterator.rb#72 def return_value?(return_node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/non_local_exit_from_iterator.rb#68 + # source://rubocop/lib/rubocop/cop/lint/non_local_exit_from_iterator.rb#68 def scoped_node?(node); end end -# source://rubocop//lib/rubocop/cop/lint/non_local_exit_from_iterator.rb#42 +# source://rubocop/lib/rubocop/cop/lint/non_local_exit_from_iterator.rb#42 RuboCop::Cop::Lint::NonLocalExitFromIterator::MSG = T.let(T.unsafe(nil), String) # Warns the usage of unsafe number conversions. Unsafe @@ -21450,78 +21623,78 @@ RuboCop::Cop::Lint::NonLocalExitFromIterator::MSG = T.let(T.unsafe(nil), String) # # good # Time.now.to_datetime.to_i # -# source://rubocop//lib/rubocop/cop/lint/number_conversion.rb#73 +# source://rubocop/lib/rubocop/cop/lint/number_conversion.rb#73 class RuboCop::Cop::Lint::NumberConversion < ::RuboCop::Cop::Base include ::RuboCop::Cop::AllowedMethods include ::RuboCop::Cop::AllowedPattern extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/lint/number_conversion.rb#107 + # source://rubocop/lib/rubocop/cop/lint/number_conversion.rb#106 def on_csend(node); end - # source://rubocop//lib/rubocop/cop/lint/number_conversion.rb#107 + # source://rubocop/lib/rubocop/cop/lint/number_conversion.rb#106 def on_send(node); end - # source://rubocop//lib/rubocop/cop/lint/number_conversion.rb#93 + # source://rubocop/lib/rubocop/cop/lint/number_conversion.rb#92 def to_method(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/lint/number_conversion.rb#98 + # source://rubocop/lib/rubocop/cop/lint/number_conversion.rb#97 def to_method_symbol(param0 = T.unsafe(nil)); end private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/number_conversion.rb#165 + # source://rubocop/lib/rubocop/cop/lint/number_conversion.rb#164 def allow_receiver?(receiver); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/number_conversion.rb#177 + # source://rubocop/lib/rubocop/cop/lint/number_conversion.rb#176 def allowed_method_name?(name); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/number_conversion.rb#187 + # source://rubocop/lib/rubocop/cop/lint/number_conversion.rb#186 def conversion_method?(method_name); end - # source://rubocop//lib/rubocop/cop/lint/number_conversion.rb#151 + # source://rubocop/lib/rubocop/cop/lint/number_conversion.rb#150 def correct_method(node, receiver); end - # source://rubocop//lib/rubocop/cop/lint/number_conversion.rb#155 + # source://rubocop/lib/rubocop/cop/lint/number_conversion.rb#154 def correct_sym_method(to_method); end - # source://rubocop//lib/rubocop/cop/lint/number_conversion.rb#134 + # source://rubocop/lib/rubocop/cop/lint/number_conversion.rb#133 def handle_as_symbol(node); end - # source://rubocop//lib/rubocop/cop/lint/number_conversion.rb#115 + # source://rubocop/lib/rubocop/cop/lint/number_conversion.rb#114 def handle_conversion_method(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/number_conversion.rb#195 + # source://rubocop/lib/rubocop/cop/lint/number_conversion.rb#194 def ignored_class?(name); end - # source://rubocop//lib/rubocop/cop/lint/number_conversion.rb#191 + # source://rubocop/lib/rubocop/cop/lint/number_conversion.rb#190 def ignored_classes; end - # source://rubocop//lib/rubocop/cop/lint/number_conversion.rb#160 + # source://rubocop/lib/rubocop/cop/lint/number_conversion.rb#159 def remove_parentheses(corrector, node); end - # source://rubocop//lib/rubocop/cop/lint/number_conversion.rb#181 + # source://rubocop/lib/rubocop/cop/lint/number_conversion.rb#180 def top_receiver(node); end end -# source://rubocop//lib/rubocop/cop/lint/number_conversion.rb#89 +# source://rubocop/lib/rubocop/cop/lint/number_conversion.rb#88 RuboCop::Cop::Lint::NumberConversion::CONVERSION_METHODS = T.let(T.unsafe(nil), Array) -# source://rubocop//lib/rubocop/cop/lint/number_conversion.rb#79 +# source://rubocop/lib/rubocop/cop/lint/number_conversion.rb#78 RuboCop::Cop::Lint::NumberConversion::CONVERSION_METHOD_CLASS_MAPPING = T.let(T.unsafe(nil), Hash) -# source://rubocop//lib/rubocop/cop/lint/number_conversion.rb#90 +# source://rubocop/lib/rubocop/cop/lint/number_conversion.rb#89 RuboCop::Cop::Lint::NumberConversion::METHODS = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/lint/number_conversion.rb#85 +# source://rubocop/lib/rubocop/cop/lint/number_conversion.rb#84 RuboCop::Cop::Lint::NumberConversion::MSG = T.let(T.unsafe(nil), String) # Checks for uses of numbered parameter assignment. @@ -21548,21 +21721,96 @@ RuboCop::Cop::Lint::NumberConversion::MSG = T.let(T.unsafe(nil), String) # # good # non_numbered_parameter_name = :value # -# source://rubocop//lib/rubocop/cop/lint/numbered_parameter_assignment.rb#30 +# source://rubocop/lib/rubocop/cop/lint/numbered_parameter_assignment.rb#30 class RuboCop::Cop::Lint::NumberedParameterAssignment < ::RuboCop::Cop::Base - # source://rubocop//lib/rubocop/cop/lint/numbered_parameter_assignment.rb#35 + # source://rubocop/lib/rubocop/cop/lint/numbered_parameter_assignment.rb#35 def on_lvasgn(node); end end -# source://rubocop//lib/rubocop/cop/lint/numbered_parameter_assignment.rb#32 +# source://rubocop/lib/rubocop/cop/lint/numbered_parameter_assignment.rb#32 RuboCop::Cop::Lint::NumberedParameterAssignment::LVAR_MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/lint/numbered_parameter_assignment.rb#33 +# source://rubocop/lib/rubocop/cop/lint/numbered_parameter_assignment.rb#33 RuboCop::Cop::Lint::NumberedParameterAssignment::NUMBERED_PARAMETER_RANGE = T.let(T.unsafe(nil), Range) -# source://rubocop//lib/rubocop/cop/lint/numbered_parameter_assignment.rb#31 +# source://rubocop/lib/rubocop/cop/lint/numbered_parameter_assignment.rb#31 RuboCop::Cop::Lint::NumberedParameterAssignment::NUM_PARAM_MSG = T.let(T.unsafe(nil), String) +# Certain numeric operations have a constant result, usually 0 or 1. +# Subtracting a number from itself or multiplying it by 0 will always return 0. +# Additionally, a variable modulo 0 or itself will always return 0. +# Dividing a number by itself or raising it to the power of 0 will always return 1. +# As such, they can be replaced with that result. +# These are probably leftover from debugging, or are mistakes. +# Other numeric operations that are similarly leftover from debugging or mistakes +# are handled by Lint/UselessNumericOperation. +# +# @example +# +# # bad +# x - x +# x * 0 +# x % 1 +# x % x +# +# # good +# 0 +# +# # bad +# x -= x +# x *= 0 +# x %= 1 +# x %= x +# +# # good +# x = 0 +# +# # bad +# x / x +# x ** 0 +# +# # good +# 1 +# +# # bad +# x /= x +# x **= 0 +# +# # good +# x = 1 +# +# source://rubocop/lib/rubocop/cop/lint/numeric_operation_with_constant_result.rb#49 +class RuboCop::Cop::Lint::NumericOperationWithConstantResult < ::RuboCop::Cop::Base + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop/lib/rubocop/cop/lint/numeric_operation_with_constant_result.rb#59 + def abbreviated_assignment_with_constant_result?(param0 = T.unsafe(nil)); end + + # source://rubocop/lib/rubocop/cop/lint/numeric_operation_with_constant_result.rb#74 + def on_op_asgn(node); end + + # source://rubocop/lib/rubocop/cop/lint/numeric_operation_with_constant_result.rb#62 + def on_send(node); end + + # source://rubocop/lib/rubocop/cop/lint/numeric_operation_with_constant_result.rb#55 + def operation_with_constant_result?(param0 = T.unsafe(nil)); end + + private + + # rubocop :disable Metrics/CyclomaticComplexity, Metrics/PerceivedComplexity + # + # @return [Boolean] + # + # source://rubocop/lib/rubocop/cop/lint/numeric_operation_with_constant_result.rb#89 + def constant_result?(variable, operation, number); end +end + +# source://rubocop/lib/rubocop/cop/lint/numeric_operation_with_constant_result.rb#51 +RuboCop::Cop::Lint::NumericOperationWithConstantResult::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop/lib/rubocop/cop/lint/numeric_operation_with_constant_result.rb#52 +RuboCop::Cop::Lint::NumericOperationWithConstantResult::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + # Checks for unintended or-assignment to a constant. # # Constants should always be assigned in the same location. And its value @@ -21577,15 +21825,15 @@ RuboCop::Cop::Lint::NumberedParameterAssignment::NUM_PARAM_MSG = T.let(T.unsafe( # # good # CONST = 1 # -# source://rubocop//lib/rubocop/cop/lint/or_assignment_to_constant.rb#24 +# source://rubocop/lib/rubocop/cop/lint/or_assignment_to_constant.rb#24 class RuboCop::Cop::Lint::OrAssignmentToConstant < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/lint/or_assignment_to_constant.rb#29 + # source://rubocop/lib/rubocop/cop/lint/or_assignment_to_constant.rb#29 def on_or_asgn(node); end end -# source://rubocop//lib/rubocop/cop/lint/or_assignment_to_constant.rb#27 +# source://rubocop/lib/rubocop/cop/lint/or_assignment_to_constant.rb#27 RuboCop::Cop::Lint::OrAssignmentToConstant::MSG = T.let(T.unsafe(nil), String) # Checks the proper ordering of magic comments and whether @@ -21611,24 +21859,24 @@ RuboCop::Cop::Lint::OrAssignmentToConstant::MSG = T.let(T.unsafe(nil), String) # # frozen_string_literal: true # p [''.frozen?, ''.encoding] #=> [true, #] # -# source://rubocop//lib/rubocop/cop/lint/ordered_magic_comments.rb#32 +# source://rubocop/lib/rubocop/cop/lint/ordered_magic_comments.rb#32 class RuboCop::Cop::Lint::OrderedMagicComments < ::RuboCop::Cop::Base include ::RuboCop::Cop::FrozenStringLiteral extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/lint/ordered_magic_comments.rb#38 + # source://rubocop/lib/rubocop/cop/lint/ordered_magic_comments.rb#38 def on_new_investigation; end private - # source://rubocop//lib/rubocop/cop/lint/ordered_magic_comments.rb#55 + # source://rubocop/lib/rubocop/cop/lint/ordered_magic_comments.rb#55 def autocorrect(corrector, encoding_line, frozen_string_literal_line); end - # source://rubocop//lib/rubocop/cop/lint/ordered_magic_comments.rb#63 + # source://rubocop/lib/rubocop/cop/lint/ordered_magic_comments.rb#63 def magic_comment_lines; end end -# source://rubocop//lib/rubocop/cop/lint/ordered_magic_comments.rb#36 +# source://rubocop/lib/rubocop/cop/lint/ordered_magic_comments.rb#36 RuboCop::Cop::Lint::OrderedMagicComments::MSG = T.let(T.unsafe(nil), String) # Looks for references of Regexp captures that are out of range @@ -21646,63 +21894,63 @@ RuboCop::Cop::Lint::OrderedMagicComments::MSG = T.let(T.unsafe(nil), String) # # puts $1 # => foo # -# source://rubocop//lib/rubocop/cop/lint/out_of_range_regexp_ref.rb#38 +# source://rubocop/lib/rubocop/cop/lint/out_of_range_regexp_ref.rb#38 class RuboCop::Cop::Lint::OutOfRangeRegexpRef < ::RuboCop::Cop::Base - # source://rubocop//lib/rubocop/cop/lint/out_of_range_regexp_ref.rb#55 + # source://rubocop/lib/rubocop/cop/lint/out_of_range_regexp_ref.rb#55 def after_send(node); end - # source://rubocop//lib/rubocop/cop/lint/out_of_range_regexp_ref.rb#71 + # source://rubocop/lib/rubocop/cop/lint/out_of_range_regexp_ref.rb#71 def on_in_pattern(node); end - # source://rubocop//lib/rubocop/cop/lint/out_of_range_regexp_ref.rb#51 + # source://rubocop/lib/rubocop/cop/lint/out_of_range_regexp_ref.rb#51 def on_match_with_lvasgn(node); end - # source://rubocop//lib/rubocop/cop/lint/out_of_range_regexp_ref.rb#47 + # source://rubocop/lib/rubocop/cop/lint/out_of_range_regexp_ref.rb#47 def on_new_investigation; end - # source://rubocop//lib/rubocop/cop/lint/out_of_range_regexp_ref.rb#77 + # source://rubocop/lib/rubocop/cop/lint/out_of_range_regexp_ref.rb#77 def on_nth_ref(node); end - # source://rubocop//lib/rubocop/cop/lint/out_of_range_regexp_ref.rb#65 + # source://rubocop/lib/rubocop/cop/lint/out_of_range_regexp_ref.rb#65 def on_when(node); end private - # source://rubocop//lib/rubocop/cop/lint/out_of_range_regexp_ref.rb#102 + # source://rubocop/lib/rubocop/cop/lint/out_of_range_regexp_ref.rb#102 def check_regexp(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/out_of_range_regexp_ref.rb#122 + # source://rubocop/lib/rubocop/cop/lint/out_of_range_regexp_ref.rb#122 def nth_ref_receiver?(send_node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/out_of_range_regexp_ref.rb#113 + # source://rubocop/lib/rubocop/cop/lint/out_of_range_regexp_ref.rb#113 def regexp_first_argument?(send_node); end - # source://rubocop//lib/rubocop/cop/lint/out_of_range_regexp_ref.rb#93 + # source://rubocop/lib/rubocop/cop/lint/out_of_range_regexp_ref.rb#93 def regexp_patterns(in_node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/out_of_range_regexp_ref.rb#118 + # source://rubocop/lib/rubocop/cop/lint/out_of_range_regexp_ref.rb#118 def regexp_receiver?(send_node); end end -# source://rubocop//lib/rubocop/cop/lint/out_of_range_regexp_ref.rb#39 +# source://rubocop/lib/rubocop/cop/lint/out_of_range_regexp_ref.rb#39 RuboCop::Cop::Lint::OutOfRangeRegexpRef::MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/lint/out_of_range_regexp_ref.rb#42 +# source://rubocop/lib/rubocop/cop/lint/out_of_range_regexp_ref.rb#42 RuboCop::Cop::Lint::OutOfRangeRegexpRef::REGEXP_ARGUMENT_METHODS = T.let(T.unsafe(nil), Set) -# source://rubocop//lib/rubocop/cop/lint/out_of_range_regexp_ref.rb#44 +# source://rubocop/lib/rubocop/cop/lint/out_of_range_regexp_ref.rb#44 RuboCop::Cop::Lint::OutOfRangeRegexpRef::REGEXP_CAPTURE_METHODS = T.let(T.unsafe(nil), Set) -# source://rubocop//lib/rubocop/cop/lint/out_of_range_regexp_ref.rb#41 +# source://rubocop/lib/rubocop/cop/lint/out_of_range_regexp_ref.rb#41 RuboCop::Cop::Lint::OutOfRangeRegexpRef::REGEXP_RECEIVER_METHODS = T.let(T.unsafe(nil), Set) -# source://rubocop//lib/rubocop/cop/lint/out_of_range_regexp_ref.rb#45 +# source://rubocop/lib/rubocop/cop/lint/out_of_range_regexp_ref.rb#45 RuboCop::Cop::Lint::OutOfRangeRegexpRef::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Set) # Checks for space between the name of a called method and a left @@ -21718,57 +21966,57 @@ RuboCop::Cop::Lint::OutOfRangeRegexpRef::RESTRICT_ON_SEND = T.let(T.unsafe(nil), # do_something (2 + 3) * 4 # do_something (foo * bar).baz # -# source://rubocop//lib/rubocop/cop/lint/parentheses_as_grouped_expression.rb#18 +# source://rubocop/lib/rubocop/cop/lint/parentheses_as_grouped_expression.rb#18 class RuboCop::Cop::Lint::ParenthesesAsGroupedExpression < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/lint/parentheses_as_grouped_expression.rb#24 + # source://rubocop/lib/rubocop/cop/lint/parentheses_as_grouped_expression.rb#24 def on_csend(node); end - # source://rubocop//lib/rubocop/cop/lint/parentheses_as_grouped_expression.rb#24 + # source://rubocop/lib/rubocop/cop/lint/parentheses_as_grouped_expression.rb#24 def on_send(node); end private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/parentheses_as_grouped_expression.rb#60 + # source://rubocop/lib/rubocop/cop/lint/parentheses_as_grouped_expression.rb#60 def chained_calls?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/parentheses_as_grouped_expression.rb#56 + # source://rubocop/lib/rubocop/cop/lint/parentheses_as_grouped_expression.rb#56 def compound_range?(first_arg); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/parentheses_as_grouped_expression.rb#47 + # source://rubocop/lib/rubocop/cop/lint/parentheses_as_grouped_expression.rb#47 def first_argument_block_type?(first_arg); end - # source://rubocop//lib/rubocop/cop/lint/parentheses_as_grouped_expression.rb#85 + # source://rubocop/lib/rubocop/cop/lint/parentheses_as_grouped_expression.rb#85 def space_range(expr, space_length); end - # source://rubocop//lib/rubocop/cop/lint/parentheses_as_grouped_expression.rb#69 + # source://rubocop/lib/rubocop/cop/lint/parentheses_as_grouped_expression.rb#69 def spaces_before_left_parenthesis(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/parentheses_as_grouped_expression.rb#65 + # source://rubocop/lib/rubocop/cop/lint/parentheses_as_grouped_expression.rb#65 def ternary_expression?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/parentheses_as_grouped_expression.rb#39 + # source://rubocop/lib/rubocop/cop/lint/parentheses_as_grouped_expression.rb#39 def valid_context?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/parentheses_as_grouped_expression.rb#51 + # source://rubocop/lib/rubocop/cop/lint/parentheses_as_grouped_expression.rb#51 def valid_first_argument?(first_arg); end end -# source://rubocop//lib/rubocop/cop/lint/parentheses_as_grouped_expression.rb#22 +# source://rubocop/lib/rubocop/cop/lint/parentheses_as_grouped_expression.rb#22 RuboCop::Cop::Lint::ParenthesesAsGroupedExpression::MSG = T.let(T.unsafe(nil), String) # Checks for quotes and commas in %w, e.g. `%w('foo', "bar")` @@ -21785,36 +22033,36 @@ RuboCop::Cop::Lint::ParenthesesAsGroupedExpression::MSG = T.let(T.unsafe(nil), S # # good # %w(foo bar) # -# source://rubocop//lib/rubocop/cop/lint/percent_string_array.rb#29 +# source://rubocop/lib/rubocop/cop/lint/percent_string_array.rb#29 class RuboCop::Cop::Lint::PercentStringArray < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp include ::RuboCop::Cop::PercentLiteral extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/lint/percent_string_array.rb#40 + # source://rubocop/lib/rubocop/cop/lint/percent_string_array.rb#40 def on_array(node); end - # source://rubocop//lib/rubocop/cop/lint/percent_string_array.rb#44 + # source://rubocop/lib/rubocop/cop/lint/percent_string_array.rb#44 def on_percent_literal(node); end private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/percent_string_array.rb#61 + # source://rubocop/lib/rubocop/cop/lint/percent_string_array.rb#61 def contains_quotes_or_commas?(node); end end -# source://rubocop//lib/rubocop/cop/lint/percent_string_array.rb#34 +# source://rubocop/lib/rubocop/cop/lint/percent_string_array.rb#34 RuboCop::Cop::Lint::PercentStringArray::LEADING_QUOTE = T.let(T.unsafe(nil), Regexp) -# source://rubocop//lib/rubocop/cop/lint/percent_string_array.rb#37 +# source://rubocop/lib/rubocop/cop/lint/percent_string_array.rb#37 RuboCop::Cop::Lint::PercentStringArray::MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/lint/percent_string_array.rb#33 +# source://rubocop/lib/rubocop/cop/lint/percent_string_array.rb#33 RuboCop::Cop::Lint::PercentStringArray::QUOTES_AND_COMMAS = T.let(T.unsafe(nil), Array) -# source://rubocop//lib/rubocop/cop/lint/percent_string_array.rb#35 +# source://rubocop/lib/rubocop/cop/lint/percent_string_array.rb#35 RuboCop::Cop::Lint::PercentStringArray::TRAILING_QUOTE = T.let(T.unsafe(nil), Regexp) # Checks for colons and commas in %i, e.g. `%i(:foo, :bar)` @@ -21831,35 +22079,35 @@ RuboCop::Cop::Lint::PercentStringArray::TRAILING_QUOTE = T.let(T.unsafe(nil), Re # # good # %i(foo bar) # -# source://rubocop//lib/rubocop/cop/lint/percent_symbol_array.rb#19 +# source://rubocop/lib/rubocop/cop/lint/percent_symbol_array.rb#19 class RuboCop::Cop::Lint::PercentSymbolArray < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp include ::RuboCop::Cop::PercentLiteral extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/lint/percent_symbol_array.rb#26 + # source://rubocop/lib/rubocop/cop/lint/percent_symbol_array.rb#26 def on_array(node); end - # source://rubocop//lib/rubocop/cop/lint/percent_symbol_array.rb#30 + # source://rubocop/lib/rubocop/cop/lint/percent_symbol_array.rb#30 def on_percent_literal(node); end private - # source://rubocop//lib/rubocop/cop/lint/percent_symbol_array.rb#38 + # source://rubocop/lib/rubocop/cop/lint/percent_symbol_array.rb#38 def autocorrect(corrector, node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/percent_symbol_array.rb#48 + # source://rubocop/lib/rubocop/cop/lint/percent_symbol_array.rb#48 def contains_colons_or_commas?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/percent_symbol_array.rb#58 + # source://rubocop/lib/rubocop/cop/lint/percent_symbol_array.rb#58 def non_alphanumeric_literal?(literal); end end -# source://rubocop//lib/rubocop/cop/lint/percent_symbol_array.rb#23 +# source://rubocop/lib/rubocop/cop/lint/percent_symbol_array.rb#23 RuboCop::Cop::Lint::PercentSymbolArray::MSG = T.let(T.unsafe(nil), String) # Checks for `raise` or `fail` statements which are @@ -21886,37 +22134,37 @@ RuboCop::Cop::Lint::PercentSymbolArray::MSG = T.let(T.unsafe(nil), String) # end # end # -# source://rubocop//lib/rubocop/cop/lint/raise_exception.rb#34 +# source://rubocop/lib/rubocop/cop/lint/raise_exception.rb#34 class RuboCop::Cop::Lint::RaiseException < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/lint/raise_exception.rb#41 + # source://rubocop/lib/rubocop/cop/lint/raise_exception.rb#41 def exception?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/lint/raise_exception.rb#46 + # source://rubocop/lib/rubocop/cop/lint/raise_exception.rb#46 def exception_new_with_message?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/lint/raise_exception.rb#51 + # source://rubocop/lib/rubocop/cop/lint/raise_exception.rb#51 def on_send(node); end private - # source://rubocop//lib/rubocop/cop/lint/raise_exception.rb#85 + # source://rubocop/lib/rubocop/cop/lint/raise_exception.rb#85 def allow_implicit_namespaces; end - # source://rubocop//lib/rubocop/cop/lint/raise_exception.rb#57 + # source://rubocop/lib/rubocop/cop/lint/raise_exception.rb#57 def check(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/raise_exception.rb#73 + # source://rubocop/lib/rubocop/cop/lint/raise_exception.rb#73 def implicit_namespace?(node); end end -# source://rubocop//lib/rubocop/cop/lint/raise_exception.rb#37 +# source://rubocop/lib/rubocop/cop/lint/raise_exception.rb#37 RuboCop::Cop::Lint::RaiseException::MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/lint/raise_exception.rb#38 +# source://rubocop/lib/rubocop/cop/lint/raise_exception.rb#38 RuboCop::Cop::Lint::RaiseException::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Checks for `rand(1)` calls. @@ -21933,24 +22181,24 @@ RuboCop::Cop::Lint::RaiseException::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Arra # # good # 0 # just use 0 instead # -# source://rubocop//lib/rubocop/cop/lint/rand_one.rb#19 +# source://rubocop/lib/rubocop/cop/lint/rand_one.rb#19 class RuboCop::Cop::Lint::RandOne < ::RuboCop::Cop::Base - # source://rubocop//lib/rubocop/cop/lint/rand_one.rb#28 + # source://rubocop/lib/rubocop/cop/lint/rand_one.rb#28 def on_send(node); end - # source://rubocop//lib/rubocop/cop/lint/rand_one.rb#24 + # source://rubocop/lib/rubocop/cop/lint/rand_one.rb#24 def rand_one?(param0 = T.unsafe(nil)); end private - # source://rubocop//lib/rubocop/cop/lint/rand_one.rb#36 + # source://rubocop/lib/rubocop/cop/lint/rand_one.rb#36 def message(node); end end -# source://rubocop//lib/rubocop/cop/lint/rand_one.rb#20 +# source://rubocop/lib/rubocop/cop/lint/rand_one.rb#20 RuboCop::Cop::Lint::RandOne::MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/lint/rand_one.rb#21 +# source://rubocop/lib/rubocop/cop/lint/rand_one.rb#21 RuboCop::Cop::Lint::RandOne::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # removed without causing any offenses to be reported. It's implemented @@ -21971,159 +22219,159 @@ RuboCop::Cop::Lint::RandOne::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # # good # x += 1 # -# source://rubocop//lib/rubocop/cop/lint/redundant_cop_disable_directive.rb#28 +# source://rubocop/lib/rubocop/cop/lint/redundant_cop_disable_directive.rb#28 class RuboCop::Cop::Lint::RedundantCopDisableDirective < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector # @return [RedundantCopDisableDirective] a new instance of RedundantCopDisableDirective # - # source://rubocop//lib/rubocop/cop/lint/redundant_cop_disable_directive.rb#37 + # source://rubocop/lib/rubocop/cop/lint/redundant_cop_disable_directive.rb#37 def initialize(config = T.unsafe(nil), options = T.unsafe(nil), offenses = T.unsafe(nil)); end # Returns the value of attribute offenses_to_check. # - # source://rubocop//lib/rubocop/cop/lint/redundant_cop_disable_directive.rb#35 + # source://rubocop/lib/rubocop/cop/lint/redundant_cop_disable_directive.rb#35 def offenses_to_check; end # Sets the attribute offenses_to_check # # @param value the value to set the attribute offenses_to_check to. # - # source://rubocop//lib/rubocop/cop/lint/redundant_cop_disable_directive.rb#35 + # source://rubocop/lib/rubocop/cop/lint/redundant_cop_disable_directive.rb#35 def offenses_to_check=(_arg0); end - # source://rubocop//lib/rubocop/cop/lint/redundant_cop_disable_directive.rb#42 + # source://rubocop/lib/rubocop/cop/lint/redundant_cop_disable_directive.rb#42 def on_new_investigation; end private - # source://rubocop//lib/rubocop/cop/lint/redundant_cop_disable_directive.rb#323 + # source://rubocop/lib/rubocop/cop/lint/redundant_cop_disable_directive.rb#323 def add_department_marker(department); end - # source://rubocop//lib/rubocop/cop/lint/redundant_cop_disable_directive.rb#229 + # source://rubocop/lib/rubocop/cop/lint/redundant_cop_disable_directive.rb#229 def add_offense_for_entire_comment(comment, cops); end - # source://rubocop//lib/rubocop/cop/lint/redundant_cop_disable_directive.rb#244 + # source://rubocop/lib/rubocop/cop/lint/redundant_cop_disable_directive.rb#244 def add_offense_for_some_cops(comment, cops); end - # source://rubocop//lib/rubocop/cop/lint/redundant_cop_disable_directive.rb#219 + # source://rubocop/lib/rubocop/cop/lint/redundant_cop_disable_directive.rb#219 def add_offenses(redundant_cops); end - # source://rubocop//lib/rubocop/cop/lint/redundant_cop_disable_directive.rb#306 + # source://rubocop/lib/rubocop/cop/lint/redundant_cop_disable_directive.rb#306 def all_cop_names; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/redundant_cop_disable_directive.rb#190 + # source://rubocop/lib/rubocop/cop/lint/redundant_cop_disable_directive.rb#190 def all_disabled?(comment); end - # source://rubocop//lib/rubocop/cop/lint/redundant_cop_disable_directive.rb#69 + # source://rubocop/lib/rubocop/cop/lint/redundant_cop_disable_directive.rb#69 def comment_range_with_surrounding_space(directive_comment_range, line_comment_range); end - # source://rubocop//lib/rubocop/cop/lint/redundant_cop_disable_directive.rb#57 + # source://rubocop/lib/rubocop/cop/lint/redundant_cop_disable_directive.rb#57 def cop_disabled_line_ranges; end - # source://rubocop//lib/rubocop/cop/lint/redundant_cop_disable_directive.rb#264 + # source://rubocop/lib/rubocop/cop/lint/redundant_cop_disable_directive.rb#264 def cop_range(comment, cop); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/redundant_cop_disable_directive.rb#210 + # source://rubocop/lib/rubocop/cop/lint/redundant_cop_disable_directive.rb#210 def department_disabled?(cop, comment); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/redundant_cop_disable_directive.rb#315 + # source://rubocop/lib/rubocop/cop/lint/redundant_cop_disable_directive.rb#315 def department_marker?(department); end - # source://rubocop//lib/rubocop/cop/lint/redundant_cop_disable_directive.rb#293 + # source://rubocop/lib/rubocop/cop/lint/redundant_cop_disable_directive.rb#293 def describe(cop); end - # source://rubocop//lib/rubocop/cop/lint/redundant_cop_disable_directive.rb#215 + # source://rubocop/lib/rubocop/cop/lint/redundant_cop_disable_directive.rb#215 def directive_count(comment); end - # source://rubocop//lib/rubocop/cop/lint/redundant_cop_disable_directive.rb#92 + # source://rubocop/lib/rubocop/cop/lint/redundant_cop_disable_directive.rb#92 def directive_range_in_list(range, ranges); end - # source://rubocop//lib/rubocop/cop/lint/redundant_cop_disable_directive.rb#61 + # source://rubocop/lib/rubocop/cop/lint/redundant_cop_disable_directive.rb#61 def disabled_ranges; end - # source://rubocop//lib/rubocop/cop/lint/redundant_cop_disable_directive.rb#132 + # source://rubocop/lib/rubocop/cop/lint/redundant_cop_disable_directive.rb#132 def each_already_disabled(cop, line_ranges); end - # source://rubocop//lib/rubocop/cop/lint/redundant_cop_disable_directive.rb#113 + # source://rubocop/lib/rubocop/cop/lint/redundant_cop_disable_directive.rb#113 def each_line_range(cop, line_ranges); end - # source://rubocop//lib/rubocop/cop/lint/redundant_cop_disable_directive.rb#106 + # source://rubocop/lib/rubocop/cop/lint/redundant_cop_disable_directive.rb#106 def each_redundant_disable(&block); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/redundant_cop_disable_directive.rb#310 + # source://rubocop/lib/rubocop/cop/lint/redundant_cop_disable_directive.rb#310 def ends_its_line?(range); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/redundant_cop_disable_directive.rb#202 + # source://rubocop/lib/rubocop/cop/lint/redundant_cop_disable_directive.rb#202 def expected_final_disable?(cop, line_range); end - # source://rubocop//lib/rubocop/cop/lint/redundant_cop_disable_directive.rb#166 + # source://rubocop/lib/rubocop/cop/lint/redundant_cop_disable_directive.rb#166 def find_redundant_all(range, next_range); end - # source://rubocop//lib/rubocop/cop/lint/redundant_cop_disable_directive.rb#161 + # source://rubocop/lib/rubocop/cop/lint/redundant_cop_disable_directive.rb#161 def find_redundant_cop(cop, range); end - # source://rubocop//lib/rubocop/cop/lint/redundant_cop_disable_directive.rb#176 + # source://rubocop/lib/rubocop/cop/lint/redundant_cop_disable_directive.rb#176 def find_redundant_department(cop, range); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/redundant_cop_disable_directive.rb#182 + # source://rubocop/lib/rubocop/cop/lint/redundant_cop_disable_directive.rb#182 def followed_ranges?(range, next_range); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/redundant_cop_disable_directive.rb#194 + # source://rubocop/lib/rubocop/cop/lint/redundant_cop_disable_directive.rb#194 def ignore_offense?(line_range); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/redundant_cop_disable_directive.rb#258 + # source://rubocop/lib/rubocop/cop/lint/redundant_cop_disable_directive.rb#258 def leave_free_comment?(comment, range); end - # source://rubocop//lib/rubocop/cop/lint/redundant_cop_disable_directive.rb#271 + # source://rubocop/lib/rubocop/cop/lint/redundant_cop_disable_directive.rb#271 def matching_range(haystack, needle); end - # source://rubocop//lib/rubocop/cop/lint/redundant_cop_disable_directive.rb#302 + # source://rubocop/lib/rubocop/cop/lint/redundant_cop_disable_directive.rb#302 def message(cop_names); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/redundant_cop_disable_directive.rb#65 + # source://rubocop/lib/rubocop/cop/lint/redundant_cop_disable_directive.rb#65 def previous_line_blank?(range); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/redundant_cop_disable_directive.rb#186 + # source://rubocop/lib/rubocop/cop/lint/redundant_cop_disable_directive.rb#186 def range_with_offense?(range, offenses = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/lint/redundant_cop_disable_directive.rb#319 + # source://rubocop/lib/rubocop/cop/lint/redundant_cop_disable_directive.rb#319 def remove_department_marker(department); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/redundant_cop_disable_directive.rb#279 + # source://rubocop/lib/rubocop/cop/lint/redundant_cop_disable_directive.rb#279 def trailing_range?(ranges, range); end end -# source://rubocop//lib/rubocop/cop/lint/redundant_cop_disable_directive.rb#32 +# source://rubocop/lib/rubocop/cop/lint/redundant_cop_disable_directive.rb#32 RuboCop::Cop::Lint::RedundantCopDisableDirective::COP_NAME = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/lint/redundant_cop_disable_directive.rb#33 +# source://rubocop/lib/rubocop/cop/lint/redundant_cop_disable_directive.rb#33 RuboCop::Cop::Lint::RedundantCopDisableDirective::DEPARTMENT_MARKER = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/lint/redundant_cop_disable_directive.rb#287 +# source://rubocop/lib/rubocop/cop/lint/redundant_cop_disable_directive.rb#287 RuboCop::Cop::Lint::RedundantCopDisableDirective::SIMILAR_COP_NAMES_CACHE = T.let(T.unsafe(nil), Hash) # removed. @@ -22152,54 +22400,54 @@ RuboCop::Cop::Lint::RedundantCopDisableDirective::SIMILAR_COP_NAMES_CACHE = T.le # # rubocop:enable all # baz # -# source://rubocop//lib/rubocop/cop/lint/redundant_cop_enable_directive.rb#39 +# source://rubocop/lib/rubocop/cop/lint/redundant_cop_enable_directive.rb#39 class RuboCop::Cop::Lint::RedundantCopEnableDirective < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp include ::RuboCop::Cop::SurroundingSpace extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/lint/redundant_cop_enable_directive.rb#46 + # source://rubocop/lib/rubocop/cop/lint/redundant_cop_enable_directive.rb#46 def on_new_investigation; end private - # source://rubocop//lib/rubocop/cop/lint/redundant_cop_enable_directive.rb#122 + # source://rubocop/lib/rubocop/cop/lint/redundant_cop_enable_directive.rb#122 def all_or_name(name); end - # source://rubocop//lib/rubocop/cop/lint/redundant_cop_enable_directive.rb#78 + # source://rubocop/lib/rubocop/cop/lint/redundant_cop_enable_directive.rb#78 def comment_start(comment); end - # source://rubocop//lib/rubocop/cop/lint/redundant_cop_enable_directive.rb#82 + # source://rubocop/lib/rubocop/cop/lint/redundant_cop_enable_directive.rb#82 def cop_name_indention(comment, name); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/redundant_cop_enable_directive.rb#126 + # source://rubocop/lib/rubocop/cop/lint/redundant_cop_enable_directive.rb#126 def department?(directive, name); end - # source://rubocop//lib/rubocop/cop/lint/redundant_cop_enable_directive.rb#73 + # source://rubocop/lib/rubocop/cop/lint/redundant_cop_enable_directive.rb#73 def range_of_offense(comment, name); end - # source://rubocop//lib/rubocop/cop/lint/redundant_cop_enable_directive.rb#97 + # source://rubocop/lib/rubocop/cop/lint/redundant_cop_enable_directive.rb#97 def range_to_remove(begin_pos, end_pos, comment); end - # source://rubocop//lib/rubocop/cop/lint/redundant_cop_enable_directive.rb#86 + # source://rubocop/lib/rubocop/cop/lint/redundant_cop_enable_directive.rb#86 def range_with_comma(comment, name); end - # If the list of cops is comma-separated, but without a empty space after the comma, + # If the list of cops is comma-separated, but without an empty space after the comma, # we should **not** remove the prepending empty space, thus begin_pos += 1 # - # source://rubocop//lib/rubocop/cop/lint/redundant_cop_enable_directive.rb#116 + # source://rubocop/lib/rubocop/cop/lint/redundant_cop_enable_directive.rb#116 def range_with_comma_after(comment, start, begin_pos, end_pos); end - # source://rubocop//lib/rubocop/cop/lint/redundant_cop_enable_directive.rb#110 + # source://rubocop/lib/rubocop/cop/lint/redundant_cop_enable_directive.rb#110 def range_with_comma_before(start, begin_pos, end_pos); end - # source://rubocop//lib/rubocop/cop/lint/redundant_cop_enable_directive.rb#55 + # source://rubocop/lib/rubocop/cop/lint/redundant_cop_enable_directive.rb#55 def register_offense(comment, cop_names); end end -# source://rubocop//lib/rubocop/cop/lint/redundant_cop_enable_directive.rb#44 +# source://rubocop/lib/rubocop/cop/lint/redundant_cop_enable_directive.rb#44 RuboCop::Cop::Lint::RedundantCopEnableDirective::MSG = T.let(T.unsafe(nil), String) # Sort globbed results by default in Ruby 3.0. @@ -22221,29 +22469,29 @@ RuboCop::Cop::Lint::RedundantCopEnableDirective::MSG = T.let(T.unsafe(nil), Stri # Dir['./lib/**/*.rb'].each do |file| # end # -# source://rubocop//lib/rubocop/cop/lint/redundant_dir_glob_sort.rb#30 +# source://rubocop/lib/rubocop/cop/lint/redundant_dir_glob_sort.rb#30 class RuboCop::Cop::Lint::RedundantDirGlobSort < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector extend ::RuboCop::Cop::TargetRubyVersion - # source://rubocop//lib/rubocop/cop/lint/redundant_dir_glob_sort.rb#40 + # source://rubocop/lib/rubocop/cop/lint/redundant_dir_glob_sort.rb#40 def on_send(node); end private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/redundant_dir_glob_sort.rb#56 + # source://rubocop/lib/rubocop/cop/lint/redundant_dir_glob_sort.rb#56 def multiple_argument?(glob_method); end end -# source://rubocop//lib/rubocop/cop/lint/redundant_dir_glob_sort.rb#38 +# source://rubocop/lib/rubocop/cop/lint/redundant_dir_glob_sort.rb#38 RuboCop::Cop::Lint::RedundantDirGlobSort::GLOB_METHODS = T.let(T.unsafe(nil), Array) -# source://rubocop//lib/rubocop/cop/lint/redundant_dir_glob_sort.rb#36 +# source://rubocop/lib/rubocop/cop/lint/redundant_dir_glob_sort.rb#36 RuboCop::Cop::Lint::RedundantDirGlobSort::MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/lint/redundant_dir_glob_sort.rb#37 +# source://rubocop/lib/rubocop/cop/lint/redundant_dir_glob_sort.rb#37 RuboCop::Cop::Lint::RedundantDirGlobSort::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Checks for redundant quantifiers inside Regexp literals. @@ -22275,48 +22523,48 @@ RuboCop::Cop::Lint::RedundantDirGlobSort::RESTRICT_ON_SEND = T.let(T.unsafe(nil) # # good # /(?:x*)/ # -# source://rubocop//lib/rubocop/cop/lint/redundant_regexp_quantifiers.rb#34 +# source://rubocop/lib/rubocop/cop/lint/redundant_regexp_quantifiers.rb#34 class RuboCop::Cop::Lint::RedundantRegexpQuantifiers < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/lint/redundant_regexp_quantifiers.rb#42 + # source://rubocop/lib/rubocop/cop/lint/redundant_regexp_quantifiers.rb#42 def on_regexp(node); end private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/redundant_regexp_quantifiers.rb#83 + # source://rubocop/lib/rubocop/cop/lint/redundant_regexp_quantifiers.rb#83 def character_set?(expr); end - # source://rubocop//lib/rubocop/cop/lint/redundant_regexp_quantifiers.rb#61 + # source://rubocop/lib/rubocop/cop/lint/redundant_regexp_quantifiers.rb#61 def each_redundantly_quantified_pair(node); end - # source://rubocop//lib/rubocop/cop/lint/redundant_regexp_quantifiers.rb#87 + # source://rubocop/lib/rubocop/cop/lint/redundant_regexp_quantifiers.rb#87 def mergeable_quantifier(expr); end - # source://rubocop//lib/rubocop/cop/lint/redundant_regexp_quantifiers.rb#103 + # source://rubocop/lib/rubocop/cop/lint/redundant_regexp_quantifiers.rb#103 def merged_quantifier(exp1, exp2); end - # source://rubocop//lib/rubocop/cop/lint/redundant_regexp_quantifiers.rb#119 + # source://rubocop/lib/rubocop/cop/lint/redundant_regexp_quantifiers.rb#119 def message(group, child, replacement); end - # source://rubocop//lib/rubocop/cop/lint/redundant_regexp_quantifiers.rb#115 + # source://rubocop/lib/rubocop/cop/lint/redundant_regexp_quantifiers.rb#115 def quantifier_range(group, child); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/redundant_regexp_quantifiers.rb#75 + # source://rubocop/lib/rubocop/cop/lint/redundant_regexp_quantifiers.rb#75 def redundant_group?(expr); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/redundant_regexp_quantifiers.rb#79 + # source://rubocop/lib/rubocop/cop/lint/redundant_regexp_quantifiers.rb#79 def redundantly_quantifiable?(node); end end -# source://rubocop//lib/rubocop/cop/lint/redundant_regexp_quantifiers.rb#38 +# source://rubocop/lib/rubocop/cop/lint/redundant_regexp_quantifiers.rb#38 RuboCop::Cop::Lint::RedundantRegexpQuantifiers::MSG_REDUNDANT_QUANTIFIER = T.let(T.unsafe(nil), String) # Checks for unnecessary `require` statement. @@ -22348,49 +22596,49 @@ RuboCop::Cop::Lint::RedundantRegexpQuantifiers::MSG_REDUNDANT_QUANTIFIER = T.let # # good # require 'unloaded_feature' # -# source://rubocop//lib/rubocop/cop/lint/redundant_require_statement.rb#38 +# source://rubocop/lib/rubocop/cop/lint/redundant_require_statement.rb#38 class RuboCop::Cop::Lint::RedundantRequireStatement < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/lint/redundant_require_statement.rb#61 + # source://rubocop/lib/rubocop/cop/lint/redundant_require_statement.rb#61 def on_send(node); end - # source://rubocop//lib/rubocop/cop/lint/redundant_require_statement.rb#57 + # source://rubocop/lib/rubocop/cop/lint/redundant_require_statement.rb#57 def pp_const?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/lint/redundant_require_statement.rb#51 + # source://rubocop/lib/rubocop/cop/lint/redundant_require_statement.rb#51 def redundant_require_statement?(param0 = T.unsafe(nil)); end private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/redundant_require_statement.rb#91 + # source://rubocop/lib/rubocop/cop/lint/redundant_require_statement.rb#91 def need_to_require_pp?; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/redundant_require_statement.rb#80 + # source://rubocop/lib/rubocop/cop/lint/redundant_require_statement.rb#80 def redundant_feature?(feature_name); end end -# source://rubocop//lib/rubocop/cop/lint/redundant_require_statement.rb#42 +# source://rubocop/lib/rubocop/cop/lint/redundant_require_statement.rb#42 RuboCop::Cop::Lint::RedundantRequireStatement::MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/lint/redundant_require_statement.rb#45 +# source://rubocop/lib/rubocop/cop/lint/redundant_require_statement.rb#45 RuboCop::Cop::Lint::RedundantRequireStatement::PRETTY_PRINT_METHODS = T.let(T.unsafe(nil), Array) -# source://rubocop//lib/rubocop/cop/lint/redundant_require_statement.rb#43 +# source://rubocop/lib/rubocop/cop/lint/redundant_require_statement.rb#43 RuboCop::Cop::Lint::RedundantRequireStatement::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) -# source://rubocop//lib/rubocop/cop/lint/redundant_require_statement.rb#44 +# source://rubocop/lib/rubocop/cop/lint/redundant_require_statement.rb#44 RuboCop::Cop::Lint::RedundantRequireStatement::RUBY_22_LOADED_FEATURES = T.let(T.unsafe(nil), Array) # Checks for redundant safe navigation calls. # Use cases where a constant, named in camel case for classes and modules is `nil` are rare, # and an offense is not detected when the receiver is a constant. The detection also applies -# to literal receivers, except for `nil`. +# to `self`, and to literal receivers, except for `nil`. # # For all receivers, the `instance_of?`, `kind_of?`, `is_a?`, `eql?`, `respond_to?`, # and `equal?` methods are checked by default. @@ -22408,6 +22656,9 @@ RuboCop::Cop::Lint::RedundantRequireStatement::RUBY_22_LOADED_FEATURES = T.let(T # # bad # CamelCaseConst&.do_something # +# # good +# CamelCaseConst.do_something +# # # bad # do_something if attrs&.respond_to?(:[]) # @@ -22420,9 +22671,6 @@ RuboCop::Cop::Lint::RedundantRequireStatement::RUBY_22_LOADED_FEATURES = T.let(T # end # # # good -# CamelCaseConst.do_something -# -# # good # while node.is_a?(BeginNode) # node = node.parent # end @@ -22445,6 +22693,12 @@ RuboCop::Cop::Lint::RedundantRequireStatement::RUBY_22_LOADED_FEATURES = T.let(T # foo.to_i # foo.to_f # foo.to_s +# +# # bad +# self&.foo +# +# # good +# self.foo # @example AllowedMethods: [nil_safe_method] # # bad # do_something if attrs&.nil_safe_method(:[]) @@ -22453,51 +22707,51 @@ RuboCop::Cop::Lint::RedundantRequireStatement::RUBY_22_LOADED_FEATURES = T.let(T # do_something if attrs.nil_safe_method(:[]) # do_something if attrs&.not_nil_safe_method(:[]) # -# source://rubocop//lib/rubocop/cop/lint/redundant_safe_navigation.rb#78 +# source://rubocop/lib/rubocop/cop/lint/redundant_safe_navigation.rb#84 class RuboCop::Cop::Lint::RedundantSafeNavigation < ::RuboCop::Cop::Base include ::RuboCop::Cop::AllowedMethods extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/lint/redundant_safe_navigation.rb#95 + # source://rubocop/lib/rubocop/cop/lint/redundant_safe_navigation.rb#101 def conversion_with_default?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/lint/redundant_safe_navigation.rb#107 + # source://rubocop/lib/rubocop/cop/lint/redundant_safe_navigation.rb#113 def on_csend(node); end - # source://rubocop//lib/rubocop/cop/lint/redundant_safe_navigation.rb#117 + # source://rubocop/lib/rubocop/cop/lint/redundant_safe_navigation.rb#123 def on_or(node); end - # source://rubocop//lib/rubocop/cop/lint/redundant_safe_navigation.rb#90 + # source://rubocop/lib/rubocop/cop/lint/redundant_safe_navigation.rb#96 def respond_to_nil_specific_method?(param0 = T.unsafe(nil)); end private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/redundant_safe_navigation.rb#133 + # source://rubocop/lib/rubocop/cop/lint/redundant_safe_navigation.rb#139 def assume_receiver_instance_exists?(receiver); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/redundant_safe_navigation.rb#139 + # source://rubocop/lib/rubocop/cop/lint/redundant_safe_navigation.rb#145 def check?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/redundant_safe_navigation.rb#149 + # source://rubocop/lib/rubocop/cop/lint/redundant_safe_navigation.rb#154 def condition?(parent, node); end end -# source://rubocop//lib/rubocop/cop/lint/redundant_safe_navigation.rb#82 +# source://rubocop/lib/rubocop/cop/lint/redundant_safe_navigation.rb#88 RuboCop::Cop::Lint::RedundantSafeNavigation::MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/lint/redundant_safe_navigation.rb#83 +# source://rubocop/lib/rubocop/cop/lint/redundant_safe_navigation.rb#89 RuboCop::Cop::Lint::RedundantSafeNavigation::MSG_LITERAL = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/lint/redundant_safe_navigation.rb#85 +# source://rubocop/lib/rubocop/cop/lint/redundant_safe_navigation.rb#91 RuboCop::Cop::Lint::RedundantSafeNavigation::NIL_SPECIFIC_METHODS = T.let(T.unsafe(nil), Set) -# source://rubocop//lib/rubocop/cop/lint/redundant_safe_navigation.rb#87 +# source://rubocop/lib/rubocop/cop/lint/redundant_safe_navigation.rb#93 RuboCop::Cop::Lint::RedundantSafeNavigation::SNAKE_CASE = T.let(T.unsafe(nil), Regexp) # Checks for unneeded usages of splat expansion. @@ -22563,88 +22817,88 @@ RuboCop::Cop::Lint::RedundantSafeNavigation::SNAKE_CASE = T.let(T.unsafe(nil), R # # bad # do_something(*%w[foo bar baz]) # -# source://rubocop//lib/rubocop/cop/lint/redundant_splat_expansion.rb#71 +# source://rubocop/lib/rubocop/cop/lint/redundant_splat_expansion.rb#71 class RuboCop::Cop::Lint::RedundantSplatExpansion < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/lint/redundant_splat_expansion.rb#83 + # source://rubocop/lib/rubocop/cop/lint/redundant_splat_expansion.rb#83 def array_new?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/lint/redundant_splat_expansion.rb#91 + # source://rubocop/lib/rubocop/cop/lint/redundant_splat_expansion.rb#91 def literal_expansion(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/lint/redundant_splat_expansion.rb#95 + # source://rubocop/lib/rubocop/cop/lint/redundant_splat_expansion.rb#95 def on_splat(node); end private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/redundant_splat_expansion.rb#203 + # source://rubocop/lib/rubocop/cop/lint/redundant_splat_expansion.rb#204 def allow_percent_literal_array_argument?; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/redundant_splat_expansion.rb#131 + # source://rubocop/lib/rubocop/cop/lint/redundant_splat_expansion.rb#131 def array_new_inside_array_literal?(array_new_node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/redundant_splat_expansion.rb#155 + # source://rubocop/lib/rubocop/cop/lint/redundant_splat_expansion.rb#156 def array_splat?(node); end - # source://rubocop//lib/rubocop/cop/lint/redundant_splat_expansion.rb#112 + # source://rubocop/lib/rubocop/cop/lint/redundant_splat_expansion.rb#112 def autocorrect(corrector, node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/redundant_splat_expansion.rb#159 + # source://rubocop/lib/rubocop/cop/lint/redundant_splat_expansion.rb#160 def method_argument?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/redundant_splat_expansion.rb#163 + # source://rubocop/lib/rubocop/cop/lint/redundant_splat_expansion.rb#164 def part_of_an_array?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/redundant_splat_expansion.rb#170 + # source://rubocop/lib/rubocop/cop/lint/redundant_splat_expansion.rb#171 def redundant_brackets?(node); end - # source://rubocop//lib/rubocop/cop/lint/redundant_splat_expansion.rb#118 + # source://rubocop/lib/rubocop/cop/lint/redundant_splat_expansion.rb#118 def redundant_splat_expansion(node); end - # source://rubocop//lib/rubocop/cop/lint/redundant_splat_expansion.rb#178 + # source://rubocop/lib/rubocop/cop/lint/redundant_splat_expansion.rb#179 def remove_brackets(array); end - # source://rubocop//lib/rubocop/cop/lint/redundant_splat_expansion.rb#138 + # source://rubocop/lib/rubocop/cop/lint/redundant_splat_expansion.rb#139 def replacement_range_and_content(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/redundant_splat_expansion.rb#196 + # source://rubocop/lib/rubocop/cop/lint/redundant_splat_expansion.rb#197 def use_percent_literal_array_argument?(node); end end -# source://rubocop//lib/rubocop/cop/lint/redundant_splat_expansion.rb#75 +# source://rubocop/lib/rubocop/cop/lint/redundant_splat_expansion.rb#75 RuboCop::Cop::Lint::RedundantSplatExpansion::ARRAY_PARAM_MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/lint/redundant_splat_expansion.rb#80 +# source://rubocop/lib/rubocop/cop/lint/redundant_splat_expansion.rb#80 RuboCop::Cop::Lint::RedundantSplatExpansion::ASSIGNMENT_TYPES = T.let(T.unsafe(nil), Array) -# source://rubocop//lib/rubocop/cop/lint/redundant_splat_expansion.rb#74 +# source://rubocop/lib/rubocop/cop/lint/redundant_splat_expansion.rb#74 RuboCop::Cop::Lint::RedundantSplatExpansion::MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/lint/redundant_splat_expansion.rb#79 +# source://rubocop/lib/rubocop/cop/lint/redundant_splat_expansion.rb#79 RuboCop::Cop::Lint::RedundantSplatExpansion::PERCENT_CAPITAL_I = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/lint/redundant_splat_expansion.rb#77 +# source://rubocop/lib/rubocop/cop/lint/redundant_splat_expansion.rb#77 RuboCop::Cop::Lint::RedundantSplatExpansion::PERCENT_CAPITAL_W = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/lint/redundant_splat_expansion.rb#78 +# source://rubocop/lib/rubocop/cop/lint/redundant_splat_expansion.rb#78 RuboCop::Cop::Lint::RedundantSplatExpansion::PERCENT_I = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/lint/redundant_splat_expansion.rb#76 +# source://rubocop/lib/rubocop/cop/lint/redundant_splat_expansion.rb#76 RuboCop::Cop::Lint::RedundantSplatExpansion::PERCENT_W = T.let(T.unsafe(nil), String) # Checks for string conversion in string interpolation, `print`, `puts`, and `warn` arguments, @@ -22664,33 +22918,33 @@ RuboCop::Cop::Lint::RedundantSplatExpansion::PERCENT_W = T.let(T.unsafe(nil), St # puts something # warn something # -# source://rubocop//lib/rubocop/cop/lint/redundant_string_coercion.rb#23 +# source://rubocop/lib/rubocop/cop/lint/redundant_string_coercion.rb#23 class RuboCop::Cop::Lint::RedundantStringCoercion < ::RuboCop::Cop::Base include ::RuboCop::Cop::Interpolation extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/lint/redundant_string_coercion.rb#34 + # source://rubocop/lib/rubocop/cop/lint/redundant_string_coercion.rb#34 def on_interpolation(begin_node); end - # source://rubocop//lib/rubocop/cop/lint/redundant_string_coercion.rb#42 + # source://rubocop/lib/rubocop/cop/lint/redundant_string_coercion.rb#42 def on_send(node); end - # source://rubocop//lib/rubocop/cop/lint/redundant_string_coercion.rb#32 + # source://rubocop/lib/rubocop/cop/lint/redundant_string_coercion.rb#32 def to_s_without_args?(param0 = T.unsafe(nil)); end private - # source://rubocop//lib/rubocop/cop/lint/redundant_string_coercion.rb#54 + # source://rubocop/lib/rubocop/cop/lint/redundant_string_coercion.rb#54 def register_offense(node, context); end end -# source://rubocop//lib/rubocop/cop/lint/redundant_string_coercion.rb#27 +# source://rubocop/lib/rubocop/cop/lint/redundant_string_coercion.rb#27 RuboCop::Cop::Lint::RedundantStringCoercion::MSG_DEFAULT = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/lint/redundant_string_coercion.rb#28 +# source://rubocop/lib/rubocop/cop/lint/redundant_string_coercion.rb#28 RuboCop::Cop::Lint::RedundantStringCoercion::MSG_SELF = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/lint/redundant_string_coercion.rb#29 +# source://rubocop/lib/rubocop/cop/lint/redundant_string_coercion.rb#29 RuboCop::Cop::Lint::RedundantStringCoercion::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Checks for redundant `with_index`. @@ -22716,33 +22970,33 @@ RuboCop::Cop::Lint::RedundantStringCoercion::RESTRICT_ON_SEND = T.let(T.unsafe(n # v # end # -# source://rubocop//lib/rubocop/cop/lint/redundant_with_index.rb#29 +# source://rubocop/lib/rubocop/cop/lint/redundant_with_index.rb#29 class RuboCop::Cop::Lint::RedundantWithIndex < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/lint/redundant_with_index.rb#37 + # source://rubocop/lib/rubocop/cop/lint/redundant_with_index.rb#37 def on_block(node); end - # source://rubocop//lib/rubocop/cop/lint/redundant_with_index.rb#37 + # source://rubocop/lib/rubocop/cop/lint/redundant_with_index.rb#37 def on_numblock(node); end - # source://rubocop//lib/rubocop/cop/lint/redundant_with_index.rb#60 + # source://rubocop/lib/rubocop/cop/lint/redundant_with_index.rb#60 def redundant_with_index?(param0 = T.unsafe(nil)); end private - # source://rubocop//lib/rubocop/cop/lint/redundant_with_index.rb#70 + # source://rubocop/lib/rubocop/cop/lint/redundant_with_index.rb#70 def message(node); end - # source://rubocop//lib/rubocop/cop/lint/redundant_with_index.rb#78 + # source://rubocop/lib/rubocop/cop/lint/redundant_with_index.rb#78 def with_index_range(send); end end -# source://rubocop//lib/rubocop/cop/lint/redundant_with_index.rb#33 +# source://rubocop/lib/rubocop/cop/lint/redundant_with_index.rb#33 RuboCop::Cop::Lint::RedundantWithIndex::MSG_EACH_WITH_INDEX = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/lint/redundant_with_index.rb#34 +# source://rubocop/lib/rubocop/cop/lint/redundant_with_index.rb#34 RuboCop::Cop::Lint::RedundantWithIndex::MSG_WITH_INDEX = T.let(T.unsafe(nil), String) # Checks for redundant `with_object`. @@ -22768,39 +23022,39 @@ RuboCop::Cop::Lint::RedundantWithIndex::MSG_WITH_INDEX = T.let(T.unsafe(nil), St # v # end # -# source://rubocop//lib/rubocop/cop/lint/redundant_with_object.rb#29 +# source://rubocop/lib/rubocop/cop/lint/redundant_with_object.rb#29 class RuboCop::Cop::Lint::RedundantWithObject < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/lint/redundant_with_object.rb#36 + # source://rubocop/lib/rubocop/cop/lint/redundant_with_object.rb#36 def on_block(node); end - # source://rubocop//lib/rubocop/cop/lint/redundant_with_object.rb#36 + # source://rubocop/lib/rubocop/cop/lint/redundant_with_object.rb#36 def on_numblock(node); end - # source://rubocop//lib/rubocop/cop/lint/redundant_with_object.rb#56 + # source://rubocop/lib/rubocop/cop/lint/redundant_with_object.rb#56 def redundant_with_object?(param0 = T.unsafe(nil)); end private - # source://rubocop//lib/rubocop/cop/lint/redundant_with_object.rb#65 + # source://rubocop/lib/rubocop/cop/lint/redundant_with_object.rb#65 def message(node); end - # source://rubocop//lib/rubocop/cop/lint/redundant_with_object.rb#73 + # source://rubocop/lib/rubocop/cop/lint/redundant_with_object.rb#73 def with_object_range(send); end end -# source://rubocop//lib/rubocop/cop/lint/redundant_with_object.rb#33 +# source://rubocop/lib/rubocop/cop/lint/redundant_with_object.rb#33 RuboCop::Cop::Lint::RedundantWithObject::MSG_EACH_WITH_OBJECT = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/lint/redundant_with_object.rb#34 +# source://rubocop/lib/rubocop/cop/lint/redundant_with_object.rb#34 RuboCop::Cop::Lint::RedundantWithObject::MSG_WITH_OBJECT = T.let(T.unsafe(nil), String) # Checks if `include` or `prepend` is called in `refine` block. # These methods are deprecated and should be replaced with `Refinement#import_methods`. # -# It emulates deprecation warnings in Ruby 3.1. +# It emulates deprecation warnings in Ruby 3.1. Functionality has been removed in Ruby 3.2. # # @example # @@ -22819,18 +23073,18 @@ RuboCop::Cop::Lint::RedundantWithObject::MSG_WITH_OBJECT = T.let(T.unsafe(nil), # import_methods Bar # end # -# source://rubocop//lib/rubocop/cop/lint/refinement_import_methods.rb#34 +# source://rubocop/lib/rubocop/cop/lint/refinement_import_methods.rb#34 class RuboCop::Cop::Lint::RefinementImportMethods < ::RuboCop::Cop::Base extend ::RuboCop::Cop::TargetRubyVersion - # source://rubocop//lib/rubocop/cop/lint/refinement_import_methods.rb#42 + # source://rubocop/lib/rubocop/cop/lint/refinement_import_methods.rb#42 def on_send(node); end end -# source://rubocop//lib/rubocop/cop/lint/refinement_import_methods.rb#37 +# source://rubocop/lib/rubocop/cop/lint/refinement_import_methods.rb#37 RuboCop::Cop::Lint::RefinementImportMethods::MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/lint/refinement_import_methods.rb#38 +# source://rubocop/lib/rubocop/cop/lint/refinement_import_methods.rb#38 RuboCop::Cop::Lint::RefinementImportMethods::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Checks for regexp literals used as `match-current-line`. @@ -22847,15 +23101,15 @@ RuboCop::Cop::Lint::RefinementImportMethods::RESTRICT_ON_SEND = T.let(T.unsafe(n # do_something # end # -# source://rubocop//lib/rubocop/cop/lint/regexp_as_condition.rb#19 +# source://rubocop/lib/rubocop/cop/lint/regexp_as_condition.rb#19 class RuboCop::Cop::Lint::RegexpAsCondition < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/lint/regexp_as_condition.rb#26 + # source://rubocop/lib/rubocop/cop/lint/regexp_as_condition.rb#25 def on_match_current_line(node); end end -# source://rubocop//lib/rubocop/cop/lint/regexp_as_condition.rb#23 +# source://rubocop/lib/rubocop/cop/lint/regexp_as_condition.rb#22 RuboCop::Cop::Lint::RegexpAsCondition::MSG = T.let(T.unsafe(nil), String) # Checks for expressions where there is a call to a predicate @@ -22879,26 +23133,26 @@ RuboCop::Cop::Lint::RegexpAsCondition::MSG = T.let(T.unsafe(nil), String) # # ... # end # -# source://rubocop//lib/rubocop/cop/lint/require_parentheses.rb#26 +# source://rubocop/lib/rubocop/cop/lint/require_parentheses.rb#26 class RuboCop::Cop::Lint::RequireParentheses < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp - # source://rubocop//lib/rubocop/cop/lint/require_parentheses.rb#31 + # source://rubocop/lib/rubocop/cop/lint/require_parentheses.rb#31 def on_csend(node); end - # source://rubocop//lib/rubocop/cop/lint/require_parentheses.rb#31 + # source://rubocop/lib/rubocop/cop/lint/require_parentheses.rb#31 def on_send(node); end private - # source://rubocop//lib/rubocop/cop/lint/require_parentheses.rb#54 + # source://rubocop/lib/rubocop/cop/lint/require_parentheses.rb#54 def check_predicate(predicate, node); end - # source://rubocop//lib/rubocop/cop/lint/require_parentheses.rb#44 + # source://rubocop/lib/rubocop/cop/lint/require_parentheses.rb#44 def check_ternary(ternary, node); end end -# source://rubocop//lib/rubocop/cop/lint/require_parentheses.rb#29 +# source://rubocop/lib/rubocop/cop/lint/require_parentheses.rb#29 RuboCop::Cop::Lint::RequireParentheses::MSG = T.let(T.unsafe(nil), String) # Checks that a range literal is enclosed in parentheses when the end of the range is @@ -22935,16 +23189,16 @@ RuboCop::Cop::Lint::RequireParentheses::MSG = T.let(T.unsafe(nil), String) # (1.. # 42) # -# source://rubocop//lib/rubocop/cop/lint/require_range_parentheses.rb#40 +# source://rubocop/lib/rubocop/cop/lint/require_range_parentheses.rb#40 class RuboCop::Cop::Lint::RequireRangeParentheses < ::RuboCop::Cop::Base - # source://rubocop//lib/rubocop/cop/lint/require_range_parentheses.rb#43 + # source://rubocop/lib/rubocop/cop/lint/require_range_parentheses.rb#43 def on_erange(node); end - # source://rubocop//lib/rubocop/cop/lint/require_range_parentheses.rb#43 + # source://rubocop/lib/rubocop/cop/lint/require_range_parentheses.rb#43 def on_irange(node); end end -# source://rubocop//lib/rubocop/cop/lint/require_range_parentheses.rb#41 +# source://rubocop/lib/rubocop/cop/lint/require_range_parentheses.rb#41 RuboCop::Cop::Lint::RequireRangeParentheses::MSG = T.let(T.unsafe(nil), String) # Checks for uses a file requiring itself with `require_relative`. @@ -22962,29 +23216,29 @@ RuboCop::Cop::Lint::RequireRangeParentheses::MSG = T.let(T.unsafe(nil), String) # # foo.rb # require_relative 'bar' # -# source://rubocop//lib/rubocop/cop/lint/require_relative_self_path.rb#21 +# source://rubocop/lib/rubocop/cop/lint/require_relative_self_path.rb#21 class RuboCop::Cop::Lint::RequireRelativeSelfPath < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/lint/require_relative_self_path.rb#28 + # source://rubocop/lib/rubocop/cop/lint/require_relative_self_path.rb#28 def on_send(node); end private - # source://rubocop//lib/rubocop/cop/lint/require_relative_self_path.rb#44 + # source://rubocop/lib/rubocop/cop/lint/require_relative_self_path.rb#44 def remove_ext(file_path); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/require_relative_self_path.rb#40 + # source://rubocop/lib/rubocop/cop/lint/require_relative_self_path.rb#40 def same_file?(file_path, required_feature); end end -# source://rubocop//lib/rubocop/cop/lint/require_relative_self_path.rb#25 +# source://rubocop/lib/rubocop/cop/lint/require_relative_self_path.rb#25 RuboCop::Cop::Lint::RequireRelativeSelfPath::MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/lint/require_relative_self_path.rb#26 +# source://rubocop/lib/rubocop/cop/lint/require_relative_self_path.rb#26 RuboCop::Cop::Lint::RequireRelativeSelfPath::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Checks for `rescue` blocks targeting the Exception class. @@ -23005,18 +23259,18 @@ RuboCop::Cop::Lint::RequireRelativeSelfPath::RESTRICT_ON_SEND = T.let(T.unsafe(n # handle_exception # end # -# source://rubocop//lib/rubocop/cop/lint/rescue_exception.rb#23 +# source://rubocop/lib/rubocop/cop/lint/rescue_exception.rb#23 class RuboCop::Cop::Lint::RescueException < ::RuboCop::Cop::Base - # source://rubocop//lib/rubocop/cop/lint/rescue_exception.rb#26 + # source://rubocop/lib/rubocop/cop/lint/rescue_exception.rb#26 def on_resbody(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/rescue_exception.rb#35 + # source://rubocop/lib/rubocop/cop/lint/rescue_exception.rb#35 def targets_exception?(rescue_arg_node); end end -# source://rubocop//lib/rubocop/cop/lint/rescue_exception.rb#24 +# source://rubocop/lib/rubocop/cop/lint/rescue_exception.rb#24 RuboCop::Cop::Lint::RescueException::MSG = T.let(T.unsafe(nil), String) # Check for arguments to `rescue` that will result in a `TypeError` @@ -23051,32 +23305,32 @@ RuboCop::Cop::Lint::RescueException::MSG = T.let(T.unsafe(nil), String) # baz # end # -# source://rubocop//lib/rubocop/cop/lint/rescue_type.rb#37 +# source://rubocop/lib/rubocop/cop/lint/rescue_type.rb#37 class RuboCop::Cop::Lint::RescueType < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/lint/rescue_type.rb#60 + # source://rubocop/lib/rubocop/cop/lint/rescue_type.rb#56 def autocorrect(corrector, node); end - # source://rubocop//lib/rubocop/cop/lint/rescue_type.rb#44 + # source://rubocop/lib/rubocop/cop/lint/rescue_type.rb#44 def on_resbody(node); end private - # source://rubocop//lib/rubocop/cop/lint/rescue_type.rb#69 + # source://rubocop/lib/rubocop/cop/lint/rescue_type.rb#65 def correction(*exceptions); end - # source://rubocop//lib/rubocop/cop/lint/rescue_type.rb#80 + # source://rubocop/lib/rubocop/cop/lint/rescue_type.rb#76 def invalid_exceptions(exceptions); end - # source://rubocop//lib/rubocop/cop/lint/rescue_type.rb#76 + # source://rubocop/lib/rubocop/cop/lint/rescue_type.rb#72 def valid_exceptions(exceptions); end end -# source://rubocop//lib/rubocop/cop/lint/rescue_type.rb#42 +# source://rubocop/lib/rubocop/cop/lint/rescue_type.rb#42 RuboCop::Cop::Lint::RescueType::INVALID_TYPES = T.let(T.unsafe(nil), Array) -# source://rubocop//lib/rubocop/cop/lint/rescue_type.rb#40 +# source://rubocop/lib/rubocop/cop/lint/rescue_type.rb#40 RuboCop::Cop::Lint::RescueType::MSG = T.let(T.unsafe(nil), String) # Checks for the use of a return with a value in a context @@ -23106,18 +23360,18 @@ RuboCop::Cop::Lint::RescueType::MSG = T.let(T.unsafe(nil), String) # return # end # -# source://rubocop//lib/rubocop/cop/lint/return_in_void_context.rb#32 +# source://rubocop/lib/rubocop/cop/lint/return_in_void_context.rb#32 class RuboCop::Cop::Lint::ReturnInVoidContext < ::RuboCop::Cop::Base - # source://rubocop//lib/rubocop/cop/lint/return_in_void_context.rb#35 + # source://rubocop/lib/rubocop/cop/lint/return_in_void_context.rb#35 def on_return(return_node); end private - # source://rubocop//lib/rubocop/cop/lint/return_in_void_context.rb#51 + # source://rubocop/lib/rubocop/cop/lint/return_in_void_context.rb#51 def non_void_context(return_node); end end -# source://rubocop//lib/rubocop/cop/lint/return_in_void_context.rb#33 +# source://rubocop/lib/rubocop/cop/lint/return_in_void_context.rb#33 RuboCop::Cop::Lint::ReturnInVoidContext::MSG = T.let(T.unsafe(nil), String) # The safe navigation operator returns nil if the receiver is @@ -23137,17 +23391,17 @@ RuboCop::Cop::Lint::ReturnInVoidContext::MSG = T.let(T.unsafe(nil), String) # x&.foo&.bar # x&.foo || bar # -# source://rubocop//lib/rubocop/cop/lint/safe_navigation_chain.rb#22 +# source://rubocop/lib/rubocop/cop/lint/safe_navigation_chain.rb#22 class RuboCop::Cop::Lint::SafeNavigationChain < ::RuboCop::Cop::Base include ::RuboCop::Cop::AllowedMethods include ::RuboCop::Cop::NilMethods extend ::RuboCop::Cop::AutoCorrector extend ::RuboCop::Cop::TargetRubyVersion - # source://rubocop//lib/rubocop/cop/lint/safe_navigation_chain.rb#33 + # source://rubocop/lib/rubocop/cop/lint/safe_navigation_chain.rb#33 def bad_method?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/lint/safe_navigation_chain.rb#40 + # source://rubocop/lib/rubocop/cop/lint/safe_navigation_chain.rb#40 def on_send(node); end private @@ -23156,36 +23410,36 @@ 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#67 + # 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#86 + # 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#95 + # 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#99 + # 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 + # 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 +# source://rubocop/lib/rubocop/cop/lint/safe_navigation_chain.rb#29 RuboCop::Cop::Lint::SafeNavigationChain::MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/lint/safe_navigation_chain.rb#30 +# source://rubocop/lib/rubocop/cop/lint/safe_navigation_chain.rb#30 RuboCop::Cop::Lint::SafeNavigationChain::PLUS_MINUS_METHODS = T.let(T.unsafe(nil), Array) # Check to make sure that if safe navigation is used in an `&&` or `||` condition, @@ -23223,63 +23477,63 @@ RuboCop::Cop::Lint::SafeNavigationChain::PLUS_MINUS_METHODS = T.let(T.unsafe(nil # # good # foo&.bar && (foobar.baz || foo.baz) # -# source://rubocop//lib/rubocop/cop/lint/safe_navigation_consistency.rb#41 +# source://rubocop/lib/rubocop/cop/lint/safe_navigation_consistency.rb#41 class RuboCop::Cop::Lint::SafeNavigationConsistency < ::RuboCop::Cop::Base include ::RuboCop::Cop::AllowedMethods include ::RuboCop::Cop::NilMethods extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/lint/safe_navigation_consistency.rb#48 + # source://rubocop/lib/rubocop/cop/lint/safe_navigation_consistency.rb#48 def on_and(node); end - # source://rubocop//lib/rubocop/cop/lint/safe_navigation_consistency.rb#48 + # source://rubocop/lib/rubocop/cop/lint/safe_navigation_consistency.rb#48 def on_or(node); end private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/safe_navigation_consistency.rb#96 + # source://rubocop/lib/rubocop/cop/lint/safe_navigation_consistency.rb#98 def already_appropriate_call?(operand, dot_op); end - # source://rubocop//lib/rubocop/cop/lint/safe_navigation_consistency.rb#67 + # source://rubocop/lib/rubocop/cop/lint/safe_navigation_consistency.rb#67 def collect_operands(node, operand_nodes); end - # source://rubocop//lib/rubocop/cop/lint/safe_navigation_consistency.rb#83 + # 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#122 + # source://rubocop/lib/rubocop/cop/lint/safe_navigation_consistency.rb#124 def most_left_indices(grouped_operands); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/safe_navigation_consistency.rb#152 + # source://rubocop/lib/rubocop/cop/lint/safe_navigation_consistency.rb#154 def nilable?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/safe_navigation_consistency.rb#136 + # source://rubocop/lib/rubocop/cop/lint/safe_navigation_consistency.rb#138 def operand_in_and?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/safe_navigation_consistency.rb#144 + # source://rubocop/lib/rubocop/cop/lint/safe_navigation_consistency.rb#146 def operand_in_or?(node); end - # source://rubocop//lib/rubocop/cop/lint/safe_navigation_consistency.rb#113 + # source://rubocop/lib/rubocop/cop/lint/safe_navigation_consistency.rb#115 def operand_nodes(operand, operand_nodes); end - # source://rubocop//lib/rubocop/cop/lint/safe_navigation_consistency.rb#74 + # 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#102 + # source://rubocop/lib/rubocop/cop/lint/safe_navigation_consistency.rb#104 def register_offense(operand, dot_operator); end end -# source://rubocop//lib/rubocop/cop/lint/safe_navigation_consistency.rb#45 +# source://rubocop/lib/rubocop/cop/lint/safe_navigation_consistency.rb#45 RuboCop::Cop::Lint::SafeNavigationConsistency::USE_DOT_MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/lint/safe_navigation_consistency.rb#46 +# source://rubocop/lib/rubocop/cop/lint/safe_navigation_consistency.rb#46 RuboCop::Cop::Lint::SafeNavigationConsistency::USE_SAFE_NAVIGATION_MSG = T.let(T.unsafe(nil), String) # Checks to make sure safe navigation isn't used with `empty?` in @@ -23298,18 +23552,18 @@ RuboCop::Cop::Lint::SafeNavigationConsistency::USE_SAFE_NAVIGATION_MSG = T.let(T # return if foo && foo.empty? # return unless foo && foo.empty? # -# source://rubocop//lib/rubocop/cop/lint/safe_navigation_with_empty.rb#22 +# source://rubocop/lib/rubocop/cop/lint/safe_navigation_with_empty.rb#22 class RuboCop::Cop::Lint::SafeNavigationWithEmpty < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/lint/safe_navigation_with_empty.rb#32 + # source://rubocop/lib/rubocop/cop/lint/safe_navigation_with_empty.rb#32 def on_if(node); end - # source://rubocop//lib/rubocop/cop/lint/safe_navigation_with_empty.rb#28 + # source://rubocop/lib/rubocop/cop/lint/safe_navigation_with_empty.rb#28 def safe_navigation_empty_in_conditional?(param0 = T.unsafe(nil)); end end -# source://rubocop//lib/rubocop/cop/lint/safe_navigation_with_empty.rb#25 +# source://rubocop/lib/rubocop/cop/lint/safe_navigation_with_empty.rb#25 RuboCop::Cop::Lint::SafeNavigationWithEmpty::MSG = T.let(T.unsafe(nil), String) # Checks if a file which has a shebang line as @@ -23339,31 +23593,31 @@ RuboCop::Cop::Lint::SafeNavigationWithEmpty::MSG = T.let(T.unsafe(nil), String) # # puts 'hello, world' # -# source://rubocop//lib/rubocop/cop/lint/script_permission.rb#33 +# source://rubocop/lib/rubocop/cop/lint/script_permission.rb#33 class RuboCop::Cop::Lint::ScriptPermission < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/lint/script_permission.rb#39 + # source://rubocop/lib/rubocop/cop/lint/script_permission.rb#39 def on_new_investigation; end private - # source://rubocop//lib/rubocop/cop/lint/script_permission.rb#55 + # source://rubocop/lib/rubocop/cop/lint/script_permission.rb#55 def autocorrect; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/script_permission.rb#59 + # source://rubocop/lib/rubocop/cop/lint/script_permission.rb#59 def executable?(processed_source); end - # source://rubocop//lib/rubocop/cop/lint/script_permission.rb#66 + # source://rubocop/lib/rubocop/cop/lint/script_permission.rb#66 def format_message_from(processed_source); end end -# source://rubocop//lib/rubocop/cop/lint/script_permission.rb#36 +# source://rubocop/lib/rubocop/cop/lint/script_permission.rb#36 RuboCop::Cop::Lint::ScriptPermission::MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/lint/script_permission.rb#37 +# source://rubocop/lib/rubocop/cop/lint/script_permission.rb#37 RuboCop::Cop::Lint::ScriptPermission::SHEBANG = T.let(T.unsafe(nil), String) # Checks for self-assignments. @@ -23386,61 +23640,61 @@ RuboCop::Cop::Lint::ScriptPermission::SHEBANG = T.let(T.unsafe(nil), String) # # good (method calls possibly can return different results) # hash[foo] = hash[foo] # -# source://rubocop//lib/rubocop/cop/lint/self_assignment.rb#26 +# source://rubocop/lib/rubocop/cop/lint/self_assignment.rb#26 class RuboCop::Cop::Lint::SelfAssignment < ::RuboCop::Cop::Base - # source://rubocop//lib/rubocop/cop/lint/self_assignment.rb#69 + # source://rubocop/lib/rubocop/cop/lint/self_assignment.rb#67 def on_and_asgn(node); end - # source://rubocop//lib/rubocop/cop/lint/self_assignment.rb#57 + # source://rubocop/lib/rubocop/cop/lint/self_assignment.rb#56 def on_casgn(node); end - # source://rubocop//lib/rubocop/cop/lint/self_assignment.rb#36 + # source://rubocop/lib/rubocop/cop/lint/self_assignment.rb#36 def on_csend(node); end - # source://rubocop//lib/rubocop/cop/lint/self_assignment.rb#45 + # source://rubocop/lib/rubocop/cop/lint/self_assignment.rb#45 def on_cvasgn(node); end - # source://rubocop//lib/rubocop/cop/lint/self_assignment.rb#45 + # source://rubocop/lib/rubocop/cop/lint/self_assignment.rb#45 def on_gvasgn(node); end - # source://rubocop//lib/rubocop/cop/lint/self_assignment.rb#45 + # source://rubocop/lib/rubocop/cop/lint/self_assignment.rb#45 def on_ivasgn(node); end - # source://rubocop//lib/rubocop/cop/lint/self_assignment.rb#45 + # source://rubocop/lib/rubocop/cop/lint/self_assignment.rb#45 def on_lvasgn(node); end - # source://rubocop//lib/rubocop/cop/lint/self_assignment.rb#65 + # source://rubocop/lib/rubocop/cop/lint/self_assignment.rb#63 def on_masgn(node); end - # source://rubocop//lib/rubocop/cop/lint/self_assignment.rb#69 + # source://rubocop/lib/rubocop/cop/lint/self_assignment.rb#67 def on_or_asgn(node); end - # source://rubocop//lib/rubocop/cop/lint/self_assignment.rb#36 + # source://rubocop/lib/rubocop/cop/lint/self_assignment.rb#36 def on_send(node); end private - # source://rubocop//lib/rubocop/cop/lint/self_assignment.rb#103 + # source://rubocop/lib/rubocop/cop/lint/self_assignment.rb#101 def handle_attribute_assignment(node); end - # source://rubocop//lib/rubocop/cop/lint/self_assignment.rb#92 + # source://rubocop/lib/rubocop/cop/lint/self_assignment.rb#90 def handle_key_assignment(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/self_assignment.rb#77 + # source://rubocop/lib/rubocop/cop/lint/self_assignment.rb#74 def multiple_self_assignment?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/self_assignment.rb#87 + # source://rubocop/lib/rubocop/cop/lint/self_assignment.rb#85 def rhs_matches_lhs?(rhs, lhs); end end -# source://rubocop//lib/rubocop/cop/lint/self_assignment.rb#29 +# source://rubocop/lib/rubocop/cop/lint/self_assignment.rb#29 RuboCop::Cop::Lint::SelfAssignment::ASSIGNMENT_TYPE_TO_RHS_TYPE = T.let(T.unsafe(nil), Hash) -# source://rubocop//lib/rubocop/cop/lint/self_assignment.rb#27 +# source://rubocop/lib/rubocop/cop/lint/self_assignment.rb#27 RuboCop::Cop::Lint::SelfAssignment::MSG = T.let(T.unsafe(nil), String) # Checks for `send`, `public_send`, and `__send__` methods @@ -23473,41 +23727,41 @@ RuboCop::Cop::Lint::SelfAssignment::MSG = T.let(T.unsafe(nil), String) # Foo.prepend Bar # Foo.extend Bar # -# source://rubocop//lib/rubocop/cop/lint/send_with_mixin_argument.rb#36 +# source://rubocop/lib/rubocop/cop/lint/send_with_mixin_argument.rb#36 class RuboCop::Cop::Lint::SendWithMixinArgument < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/lint/send_with_mixin_argument.rb#53 + # source://rubocop/lib/rubocop/cop/lint/send_with_mixin_argument.rb#53 def on_send(node); end - # source://rubocop//lib/rubocop/cop/lint/send_with_mixin_argument.rb#46 + # source://rubocop/lib/rubocop/cop/lint/send_with_mixin_argument.rb#46 def send_with_mixin_argument?(param0 = T.unsafe(nil)); end private - # source://rubocop//lib/rubocop/cop/lint/send_with_mixin_argument.rb#67 + # source://rubocop/lib/rubocop/cop/lint/send_with_mixin_argument.rb#67 def bad_location(node); end - # source://rubocop//lib/rubocop/cop/lint/send_with_mixin_argument.rb#73 + # source://rubocop/lib/rubocop/cop/lint/send_with_mixin_argument.rb#73 def message(method, module_name, bad_method); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/send_with_mixin_argument.rb#77 + # source://rubocop/lib/rubocop/cop/lint/send_with_mixin_argument.rb#77 def mixin_method?(node); end end -# source://rubocop//lib/rubocop/cop/lint/send_with_mixin_argument.rb#41 +# source://rubocop/lib/rubocop/cop/lint/send_with_mixin_argument.rb#41 RuboCop::Cop::Lint::SendWithMixinArgument::MIXIN_METHODS = T.let(T.unsafe(nil), Array) -# source://rubocop//lib/rubocop/cop/lint/send_with_mixin_argument.rb#40 +# source://rubocop/lib/rubocop/cop/lint/send_with_mixin_argument.rb#40 RuboCop::Cop::Lint::SendWithMixinArgument::MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/lint/send_with_mixin_argument.rb#43 +# source://rubocop/lib/rubocop/cop/lint/send_with_mixin_argument.rb#43 RuboCop::Cop::Lint::SendWithMixinArgument::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) -# source://rubocop//lib/rubocop/cop/lint/send_with_mixin_argument.rb#42 +# source://rubocop/lib/rubocop/cop/lint/send_with_mixin_argument.rb#42 RuboCop::Cop::Lint::SendWithMixinArgument::SEND_METHODS = T.let(T.unsafe(nil), Array) # Checks for shadowed arguments. @@ -23568,19 +23822,19 @@ RuboCop::Cop::Lint::SendWithMixinArgument::SEND_METHODS = T.let(T.unsafe(nil), A # bar # end # -# source://rubocop//lib/rubocop/cop/lint/shadowed_argument.rb#66 +# source://rubocop/lib/rubocop/cop/lint/shadowed_argument.rb#66 class RuboCop::Cop::Lint::ShadowedArgument < ::RuboCop::Cop::Base - # source://rubocop//lib/rubocop/cop/lint/shadowed_argument.rb#76 + # source://rubocop/lib/rubocop/cop/lint/shadowed_argument.rb#76 def after_leaving_scope(scope, _variable_table); end - # source://rubocop//lib/rubocop/cop/lint/shadowed_argument.rb#70 + # source://rubocop/lib/rubocop/cop/lint/shadowed_argument.rb#70 def uses_var?(param0, param1); end private # Get argument references without assignments' references # - # source://rubocop//lib/rubocop/cop/lint/shadowed_argument.rb#161 + # source://rubocop/lib/rubocop/cop/lint/shadowed_argument.rb#161 def argument_references(argument); end # Find the first argument assignment, which doesn't reference the @@ -23588,37 +23842,37 @@ class RuboCop::Cop::Lint::ShadowedArgument < ::RuboCop::Cop::Base # block, it is impossible to tell whether it's executed, so precise # shadowing location is not known. # - # source://rubocop//lib/rubocop/cop/lint/shadowed_argument.rb#120 + # source://rubocop/lib/rubocop/cop/lint/shadowed_argument.rb#120 def assignment_without_argument_usage(argument); end - # source://rubocop//lib/rubocop/cop/lint/shadowed_argument.rb#82 + # source://rubocop/lib/rubocop/cop/lint/shadowed_argument.rb#82 def check_argument(argument); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/shadowed_argument.rb#171 + # source://rubocop/lib/rubocop/cop/lint/shadowed_argument.rb#171 def ignore_implicit_references?; end # Check whether the given node is nested into block or conditional. # # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/shadowed_argument.rb#152 + # source://rubocop/lib/rubocop/cop/lint/shadowed_argument.rb#152 def node_within_block_or_conditional?(node, stop_search_node); end - # source://rubocop//lib/rubocop/cop/lint/shadowed_argument.rb#144 + # source://rubocop/lib/rubocop/cop/lint/shadowed_argument.rb#144 def reference_pos(node); end - # source://rubocop//lib/rubocop/cop/lint/shadowed_argument.rb#95 + # source://rubocop/lib/rubocop/cop/lint/shadowed_argument.rb#95 def shadowing_assignment(argument); end class << self - # source://rubocop//lib/rubocop/cop/lint/shadowed_argument.rb#72 + # source://rubocop/lib/rubocop/cop/lint/shadowed_argument.rb#72 def joining_forces; end end end -# source://rubocop//lib/rubocop/cop/lint/shadowed_argument.rb#67 +# source://rubocop/lib/rubocop/cop/lint/shadowed_argument.rb#67 RuboCop::Cop::Lint::ShadowedArgument::MSG = T.let(T.unsafe(nil), String) # Checks for a rescued exception that get shadowed by a @@ -23676,48 +23930,48 @@ RuboCop::Cop::Lint::ShadowedArgument::MSG = T.let(T.unsafe(nil), String) # handle_standard_error # end # -# source://rubocop//lib/rubocop/cop/lint/shadowed_exception.rb#61 +# source://rubocop/lib/rubocop/cop/lint/shadowed_exception.rb#61 class RuboCop::Cop::Lint::ShadowedException < ::RuboCop::Cop::Base include ::RuboCop::Cop::RescueNode include ::RuboCop::Cop::RangeHelp - # source://rubocop//lib/rubocop/cop/lint/shadowed_exception.rb#67 + # source://rubocop/lib/rubocop/cop/lint/shadowed_exception.rb#67 def on_rescue(node); end private - # source://rubocop//lib/rubocop/cop/lint/shadowed_exception.rb#101 + # source://rubocop/lib/rubocop/cop/lint/shadowed_exception.rb#101 def compare_exceptions(exception, other_exception); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/shadowed_exception.rb#94 + # source://rubocop/lib/rubocop/cop/lint/shadowed_exception.rb#94 def contains_multiple_levels_of_exceptions?(group); end - # source://rubocop//lib/rubocop/cop/lint/shadowed_exception.rb#119 + # source://rubocop/lib/rubocop/cop/lint/shadowed_exception.rb#119 def evaluate_exceptions(group); end - # source://rubocop//lib/rubocop/cop/lint/shadowed_exception.rb#152 + # source://rubocop/lib/rubocop/cop/lint/shadowed_exception.rb#152 def find_shadowing_rescue(rescues); end - # source://rubocop//lib/rubocop/cop/lint/shadowed_exception.rb#84 + # source://rubocop/lib/rubocop/cop/lint/shadowed_exception.rb#84 def offense_range(rescues); end - # source://rubocop//lib/rubocop/cop/lint/shadowed_exception.rb#90 + # source://rubocop/lib/rubocop/cop/lint/shadowed_exception.rb#90 def rescued_groups_for(rescues); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/shadowed_exception.rb#137 + # source://rubocop/lib/rubocop/cop/lint/shadowed_exception.rb#137 def sorted?(rescued_groups); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/shadowed_exception.rb#115 + # source://rubocop/lib/rubocop/cop/lint/shadowed_exception.rb#115 def system_call_err?(error); end end -# source://rubocop//lib/rubocop/cop/lint/shadowed_exception.rb#65 +# source://rubocop/lib/rubocop/cop/lint/shadowed_exception.rb#65 RuboCop::Cop::Lint::ShadowedException::MSG = T.let(T.unsafe(nil), String) # Checks for the use of local variable names from an outer scope @@ -23756,37 +24010,37 @@ RuboCop::Cop::Lint::ShadowedException::MSG = T.let(T.unsafe(nil), String) # end # end # -# source://rubocop//lib/rubocop/cop/lint/shadowing_outer_local_variable.rb#41 +# source://rubocop/lib/rubocop/cop/lint/shadowing_outer_local_variable.rb#41 class RuboCop::Cop::Lint::ShadowingOuterLocalVariable < ::RuboCop::Cop::Base - # source://rubocop//lib/rubocop/cop/lint/shadowing_outer_local_variable.rb#53 + # source://rubocop/lib/rubocop/cop/lint/shadowing_outer_local_variable.rb#53 def before_declaring_variable(variable, variable_table); end - # source://rubocop//lib/rubocop/cop/lint/shadowing_outer_local_variable.rb#89 + # source://rubocop/lib/rubocop/cop/lint/shadowing_outer_local_variable.rb#89 def find_conditional_node_from_ascendant(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/shadowing_outer_local_variable.rb#96 + # source://rubocop/lib/rubocop/cop/lint/shadowing_outer_local_variable.rb#96 def node_or_its_ascendant_conditional?(node); end - # source://rubocop//lib/rubocop/cop/lint/shadowing_outer_local_variable.rb#45 + # source://rubocop/lib/rubocop/cop/lint/shadowing_outer_local_variable.rb#45 def ractor_block?(param0 = T.unsafe(nil)); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/shadowing_outer_local_variable.rb#65 + # source://rubocop/lib/rubocop/cop/lint/shadowing_outer_local_variable.rb#65 def same_conditions_node_different_branch?(variable, outer_local_variable); end - # source://rubocop//lib/rubocop/cop/lint/shadowing_outer_local_variable.rb#79 + # source://rubocop/lib/rubocop/cop/lint/shadowing_outer_local_variable.rb#79 def variable_node(variable); end class << self - # source://rubocop//lib/rubocop/cop/lint/shadowing_outer_local_variable.rb#49 + # source://rubocop/lib/rubocop/cop/lint/shadowing_outer_local_variable.rb#49 def joining_forces; end end end -# source://rubocop//lib/rubocop/cop/lint/shadowing_outer_local_variable.rb#42 +# source://rubocop/lib/rubocop/cop/lint/shadowing_outer_local_variable.rb#42 RuboCop::Cop::Lint::ShadowingOuterLocalVariable::MSG = T.let(T.unsafe(nil), String) # Checks unexpected overrides of the `Struct` built-in methods @@ -23807,25 +24061,25 @@ RuboCop::Cop::Lint::ShadowingOuterLocalVariable::MSG = T.let(T.unsafe(nil), Stri # g.clone #=> # # g.count #=> 2 # -# source://rubocop//lib/rubocop/cop/lint/struct_new_override.rb#24 +# source://rubocop/lib/rubocop/cop/lint/struct_new_override.rb#24 class RuboCop::Cop::Lint::StructNewOverride < ::RuboCop::Cop::Base - # source://rubocop//lib/rubocop/cop/lint/struct_new_override.rb#38 + # source://rubocop/lib/rubocop/cop/lint/struct_new_override.rb#38 def on_send(node); end - # source://rubocop//lib/rubocop/cop/lint/struct_new_override.rb#33 + # source://rubocop/lib/rubocop/cop/lint/struct_new_override.rb#33 def struct_new(param0 = T.unsafe(nil)); end end -# source://rubocop//lib/rubocop/cop/lint/struct_new_override.rb#25 +# source://rubocop/lib/rubocop/cop/lint/struct_new_override.rb#25 RuboCop::Cop::Lint::StructNewOverride::MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/lint/struct_new_override.rb#27 +# source://rubocop/lib/rubocop/cop/lint/struct_new_override.rb#27 RuboCop::Cop::Lint::StructNewOverride::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) -# source://rubocop//lib/rubocop/cop/lint/struct_new_override.rb#30 +# source://rubocop/lib/rubocop/cop/lint/struct_new_override.rb#30 RuboCop::Cop::Lint::StructNewOverride::STRUCT_MEMBER_NAME_TYPES = T.let(T.unsafe(nil), Array) -# source://rubocop//lib/rubocop/cop/lint/struct_new_override.rb#29 +# source://rubocop/lib/rubocop/cop/lint/struct_new_override.rb#29 RuboCop::Cop::Lint::StructNewOverride::STRUCT_METHOD_NAMES = T.let(T.unsafe(nil), Array) # Checks for `rescue` blocks with no body. @@ -23924,25 +24178,25 @@ RuboCop::Cop::Lint::StructNewOverride::STRUCT_METHOD_NAMES = T.let(T.unsafe(nil) # # bad # do_something rescue nil # -# source://rubocop//lib/rubocop/cop/lint/suppressed_exception.rb#105 +# source://rubocop/lib/rubocop/cop/lint/suppressed_exception.rb#105 class RuboCop::Cop::Lint::SuppressedException < ::RuboCop::Cop::Base - # source://rubocop//lib/rubocop/cop/lint/suppressed_exception.rb#108 + # source://rubocop/lib/rubocop/cop/lint/suppressed_exception.rb#108 def on_resbody(node); end private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/suppressed_exception.rb#118 + # source://rubocop/lib/rubocop/cop/lint/suppressed_exception.rb#118 def comment_between_rescue_and_end?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/suppressed_exception.rb#126 + # source://rubocop/lib/rubocop/cop/lint/suppressed_exception.rb#126 def nil_body?(node); end end -# source://rubocop//lib/rubocop/cop/lint/suppressed_exception.rb#106 +# source://rubocop/lib/rubocop/cop/lint/suppressed_exception.rb#106 RuboCop::Cop::Lint::SuppressedException::MSG = T.let(T.unsafe(nil), String) # Checks for uses of literal strings converted to @@ -24005,82 +24259,82 @@ RuboCop::Cop::Lint::SuppressedException::MSG = T.let(T.unsafe(nil), String) # b: 2 # } # -# source://rubocop//lib/rubocop/cop/lint/symbol_conversion.rb#68 +# source://rubocop/lib/rubocop/cop/lint/symbol_conversion.rb#68 class RuboCop::Cop::Lint::SymbolConversion < ::RuboCop::Cop::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle include ::RuboCop::Cop::SymbolHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/lint/symbol_conversion.rb#105 + # source://rubocop/lib/rubocop/cop/lint/symbol_conversion.rb#105 def on_hash(node); end - # source://rubocop//lib/rubocop/cop/lint/symbol_conversion.rb#78 + # source://rubocop/lib/rubocop/cop/lint/symbol_conversion.rb#78 def on_send(node); end - # source://rubocop//lib/rubocop/cop/lint/symbol_conversion.rb#88 + # source://rubocop/lib/rubocop/cop/lint/symbol_conversion.rb#88 def on_sym(node); end private - # source://rubocop//lib/rubocop/cop/lint/symbol_conversion.rb#147 + # source://rubocop/lib/rubocop/cop/lint/symbol_conversion.rb#147 def correct_hash_key(node); end - # source://rubocop//lib/rubocop/cop/lint/symbol_conversion.rb#166 + # source://rubocop/lib/rubocop/cop/lint/symbol_conversion.rb#166 def correct_inconsistent_hash_keys(keys); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/symbol_conversion.rb#139 + # source://rubocop/lib/rubocop/cop/lint/symbol_conversion.rb#139 def in_alias?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/symbol_conversion.rb#143 + # source://rubocop/lib/rubocop/cop/lint/symbol_conversion.rb#143 def in_percent_literal_array?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/symbol_conversion.rb#126 + # source://rubocop/lib/rubocop/cop/lint/symbol_conversion.rb#126 def properly_quoted?(source, value); end - # source://rubocop//lib/rubocop/cop/lint/symbol_conversion.rb#122 + # source://rubocop/lib/rubocop/cop/lint/symbol_conversion.rb#122 def register_offense(node, correction:, message: T.unsafe(nil)); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/symbol_conversion.rb#135 + # source://rubocop/lib/rubocop/cop/lint/symbol_conversion.rb#135 def requires_quotes?(sym_node); end end -# source://rubocop//lib/rubocop/cop/lint/symbol_conversion.rb#73 +# source://rubocop/lib/rubocop/cop/lint/symbol_conversion.rb#73 RuboCop::Cop::Lint::SymbolConversion::MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/lint/symbol_conversion.rb#74 +# source://rubocop/lib/rubocop/cop/lint/symbol_conversion.rb#74 RuboCop::Cop::Lint::SymbolConversion::MSG_CONSISTENCY = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/lint/symbol_conversion.rb#76 +# source://rubocop/lib/rubocop/cop/lint/symbol_conversion.rb#76 RuboCop::Cop::Lint::SymbolConversion::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Repacks Parser's diagnostics/errors # into RuboCop's offenses. # -# source://rubocop//lib/rubocop/cop/lint/syntax.rb#8 +# source://rubocop/lib/rubocop/cop/lint/syntax.rb#8 class RuboCop::Cop::Lint::Syntax < ::RuboCop::Cop::Base - # source://rubocop//lib/rubocop/cop/lint/syntax.rb#9 + # source://rubocop/lib/rubocop/cop/lint/syntax.rb#9 def on_other_file; end private - # source://rubocop//lib/rubocop/cop/lint/syntax.rb#19 + # source://rubocop/lib/rubocop/cop/lint/syntax.rb#19 def add_offense_from_diagnostic(diagnostic, ruby_version); end - # source://rubocop//lib/rubocop/cop/lint/syntax.rb#29 + # source://rubocop/lib/rubocop/cop/lint/syntax.rb#29 def add_offense_from_error(error); end - # source://rubocop//lib/rubocop/cop/lint/syntax.rb#34 + # source://rubocop/lib/rubocop/cop/lint/syntax.rb#34 def beautify_message(message); end - # source://rubocop//lib/rubocop/cop/lint/syntax.rb#40 + # source://rubocop/lib/rubocop/cop/lint/syntax.rb#40 def find_severity(_range, _severity); end end @@ -24105,37 +24359,37 @@ end # return to_enum(T.must(__callee__), x, y) # end # -# source://rubocop//lib/rubocop/cop/lint/to_enum_arguments.rb#27 +# source://rubocop/lib/rubocop/cop/lint/to_enum_arguments.rb#27 class RuboCop::Cop::Lint::ToEnumArguments < ::RuboCop::Cop::Base - # source://rubocop//lib/rubocop/cop/lint/to_enum_arguments.rb#33 + # source://rubocop/lib/rubocop/cop/lint/to_enum_arguments.rb#33 def enum_conversion_call?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/lint/to_enum_arguments.rb#38 + # source://rubocop/lib/rubocop/cop/lint/to_enum_arguments.rb#38 def method_name?(param0 = T.unsafe(nil), param1); end - # source://rubocop//lib/rubocop/cop/lint/to_enum_arguments.rb#47 + # source://rubocop/lib/rubocop/cop/lint/to_enum_arguments.rb#47 def on_send(node); end - # source://rubocop//lib/rubocop/cop/lint/to_enum_arguments.rb#43 + # source://rubocop/lib/rubocop/cop/lint/to_enum_arguments.rb#43 def passing_keyword_arg?(param0 = T.unsafe(nil), param1); end private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/to_enum_arguments.rb#76 + # source://rubocop/lib/rubocop/cop/lint/to_enum_arguments.rb#76 def argument_match?(send_arg, def_arg); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/to_enum_arguments.rb#61 + # source://rubocop/lib/rubocop/cop/lint/to_enum_arguments.rb#61 def arguments_match?(arguments, def_node); end end -# source://rubocop//lib/rubocop/cop/lint/to_enum_arguments.rb#28 +# source://rubocop/lib/rubocop/cop/lint/to_enum_arguments.rb#28 RuboCop::Cop::Lint::ToEnumArguments::MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/lint/to_enum_arguments.rb#30 +# source://rubocop/lib/rubocop/cop/lint/to_enum_arguments.rb#30 RuboCop::Cop::Lint::ToEnumArguments::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Checks to make sure `#to_json` includes an optional argument. @@ -24163,15 +24417,15 @@ RuboCop::Cop::Lint::ToEnumArguments::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Arr # end # end # -# source://rubocop//lib/rubocop/cop/lint/to_json.rb#31 +# source://rubocop/lib/rubocop/cop/lint/to_json.rb#31 class RuboCop::Cop::Lint::ToJSON < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/lint/to_json.rb#36 + # source://rubocop/lib/rubocop/cop/lint/to_json.rb#36 def on_def(node); end end -# source://rubocop//lib/rubocop/cop/lint/to_json.rb#34 +# source://rubocop/lib/rubocop/cop/lint/to_json.rb#34 RuboCop::Cop::Lint::ToJSON::MSG = T.let(T.unsafe(nil), String) # Checks for top level return with arguments. If there is a @@ -24185,16 +24439,16 @@ RuboCop::Cop::Lint::ToJSON::MSG = T.let(T.unsafe(nil), String) # # good # return # -# source://rubocop//lib/rubocop/cop/lint/top_level_return_with_argument.rb#16 +# source://rubocop/lib/rubocop/cop/lint/top_level_return_with_argument.rb#16 class RuboCop::Cop::Lint::TopLevelReturnWithArgument < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/lint/top_level_return_with_argument.rb#21 + # source://rubocop/lib/rubocop/cop/lint/top_level_return_with_argument.rb#21 def on_return(return_node); end private - # source://rubocop//lib/rubocop/cop/lint/top_level_return_with_argument.rb#35 + # source://rubocop/lib/rubocop/cop/lint/top_level_return_with_argument.rb#35 def remove_arguments(corrector, return_node); end # This cop works by validating the ancestors of the return node. A @@ -24203,16 +24457,16 @@ class RuboCop::Cop::Lint::TopLevelReturnWithArgument < ::RuboCop::Cop::Base # # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/top_level_return_with_argument.rb#42 + # source://rubocop/lib/rubocop/cop/lint/top_level_return_with_argument.rb#42 def top_level_return?(return_node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/top_level_return_with_argument.rb#31 + # source://rubocop/lib/rubocop/cop/lint/top_level_return_with_argument.rb#31 def top_level_return_with_any_argument?(return_node); end end -# source://rubocop//lib/rubocop/cop/lint/top_level_return_with_argument.rb#19 +# source://rubocop/lib/rubocop/cop/lint/top_level_return_with_argument.rb#19 RuboCop::Cop::Lint::TopLevelReturnWithArgument::MSG = T.let(T.unsafe(nil), String) # Checks for trailing commas in attribute declarations, such as @@ -24239,21 +24493,21 @@ RuboCop::Cop::Lint::TopLevelReturnWithArgument::MSG = T.let(T.unsafe(nil), Strin # end # end # -# source://rubocop//lib/rubocop/cop/lint/trailing_comma_in_attribute_declaration.rb#30 +# source://rubocop/lib/rubocop/cop/lint/trailing_comma_in_attribute_declaration.rb#30 class RuboCop::Cop::Lint::TrailingCommaInAttributeDeclaration < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/lint/trailing_comma_in_attribute_declaration.rb#36 + # source://rubocop/lib/rubocop/cop/lint/trailing_comma_in_attribute_declaration.rb#36 def on_send(node); end private - # source://rubocop//lib/rubocop/cop/lint/trailing_comma_in_attribute_declaration.rb#46 + # source://rubocop/lib/rubocop/cop/lint/trailing_comma_in_attribute_declaration.rb#46 def trailing_comma_range(node); end end -# source://rubocop//lib/rubocop/cop/lint/trailing_comma_in_attribute_declaration.rb#34 +# source://rubocop/lib/rubocop/cop/lint/trailing_comma_in_attribute_declaration.rb#34 RuboCop::Cop::Lint::TrailingCommaInAttributeDeclaration::MSG = T.let(T.unsafe(nil), String) # Checks for "triple quotes" (strings delimited by any odd number @@ -24293,20 +24547,20 @@ RuboCop::Cop::Lint::TrailingCommaInAttributeDeclaration::MSG = T.let(T.unsafe(ni # # good (but not the same spacing as the bad case) # 'A string' # -# source://rubocop//lib/rubocop/cop/lint/triple_quotes.rb#42 +# source://rubocop/lib/rubocop/cop/lint/triple_quotes.rb#42 class RuboCop::Cop::Lint::TripleQuotes < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/lint/triple_quotes.rb#47 + # source://rubocop/lib/rubocop/cop/lint/triple_quotes.rb#47 def on_dstr(node); end private - # source://rubocop//lib/rubocop/cop/lint/triple_quotes.rb#65 + # source://rubocop/lib/rubocop/cop/lint/triple_quotes.rb#65 def empty_str_nodes(node); end end -# source://rubocop//lib/rubocop/cop/lint/triple_quotes.rb#45 +# source://rubocop/lib/rubocop/cop/lint/triple_quotes.rb#45 RuboCop::Cop::Lint::TripleQuotes::MSG = T.let(T.unsafe(nil), String) # Checks for underscore-prefixed variables that are actually @@ -24345,28 +24599,28 @@ RuboCop::Cop::Lint::TripleQuotes::MSG = T.let(T.unsafe(nil), String) # {_id: _id, profit: revenue - cost} # end # -# source://rubocop//lib/rubocop/cop/lint/underscore_prefixed_variable_name.rb#43 +# source://rubocop/lib/rubocop/cop/lint/underscore_prefixed_variable_name.rb#43 class RuboCop::Cop::Lint::UnderscorePrefixedVariableName < ::RuboCop::Cop::Base - # source://rubocop//lib/rubocop/cop/lint/underscore_prefixed_variable_name.rb#50 + # source://rubocop/lib/rubocop/cop/lint/underscore_prefixed_variable_name.rb#50 def after_leaving_scope(scope, _variable_table); end - # source://rubocop//lib/rubocop/cop/lint/underscore_prefixed_variable_name.rb#54 + # source://rubocop/lib/rubocop/cop/lint/underscore_prefixed_variable_name.rb#54 def check_variable(variable); end private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/underscore_prefixed_variable_name.rb#72 + # source://rubocop/lib/rubocop/cop/lint/underscore_prefixed_variable_name.rb#72 def allowed_keyword_block_argument?(variable); end class << self - # source://rubocop//lib/rubocop/cop/lint/underscore_prefixed_variable_name.rb#46 + # source://rubocop/lib/rubocop/cop/lint/underscore_prefixed_variable_name.rb#46 def joining_forces; end end end -# source://rubocop//lib/rubocop/cop/lint/underscore_prefixed_variable_name.rb#44 +# 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`) @@ -24393,32 +24647,32 @@ RuboCop::Cop::Lint::UnderscorePrefixedVariableName::MSG = T.let(T.unsafe(nil), S # Regexp.new('abc\]123') # Regexp.compile('abc\]123') # -# source://rubocop//lib/rubocop/cop/lint/unescaped_bracket_in_regexp.rb#30 +# 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 + # 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 + # 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 + # 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 + # source://rubocop/lib/rubocop/cop/lint/unescaped_bracket_in_regexp.rb#69 def detect_offenses(node, expr); end - # source://rubocop//lib/rubocop/cop/lint/unescaped_bracket_in_regexp.rb#81 + # source://rubocop/lib/rubocop/cop/lint/unescaped_bracket_in_regexp.rb#84 def range_at_index(node, index, offset); end end -# source://rubocop//lib/rubocop/cop/lint/unescaped_bracket_in_regexp.rb#33 +# 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 +# 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 @@ -24451,37 +24705,37 @@ RuboCop::Cop::Lint::UnescapedBracketInRegexp::RESTRICT_ON_SEND = T.let(T.unsafe( # values.min { |a, b| a <=> b } # values.sort { |*x| x[0] <=> x[1] } # -# source://rubocop//lib/rubocop/cop/lint/unexpected_block_arity.rb#41 +# source://rubocop/lib/rubocop/cop/lint/unexpected_block_arity.rb#41 class RuboCop::Cop::Lint::UnexpectedBlockArity < ::RuboCop::Cop::Base - # source://rubocop//lib/rubocop/cop/lint/unexpected_block_arity.rb#44 + # source://rubocop/lib/rubocop/cop/lint/unexpected_block_arity.rb#44 def on_block(node); end - # source://rubocop//lib/rubocop/cop/lint/unexpected_block_arity.rb#44 + # source://rubocop/lib/rubocop/cop/lint/unexpected_block_arity.rb#44 def on_numblock(node); end private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/unexpected_block_arity.rb#63 + # source://rubocop/lib/rubocop/cop/lint/unexpected_block_arity.rb#63 def acceptable?(node); end - # source://rubocop//lib/rubocop/cop/lint/unexpected_block_arity.rb#75 + # source://rubocop/lib/rubocop/cop/lint/unexpected_block_arity.rb#75 def arg_count(node); end - # source://rubocop//lib/rubocop/cop/lint/unexpected_block_arity.rb#71 + # source://rubocop/lib/rubocop/cop/lint/unexpected_block_arity.rb#71 def expected_arity(method); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/unexpected_block_arity.rb#67 + # source://rubocop/lib/rubocop/cop/lint/unexpected_block_arity.rb#67 def included_method?(name); end - # source://rubocop//lib/rubocop/cop/lint/unexpected_block_arity.rb#59 + # source://rubocop/lib/rubocop/cop/lint/unexpected_block_arity.rb#59 def methods; end end -# source://rubocop//lib/rubocop/cop/lint/unexpected_block_arity.rb#42 +# source://rubocop/lib/rubocop/cop/lint/unexpected_block_arity.rb#42 RuboCop::Cop::Lint::UnexpectedBlockArity::MSG = T.let(T.unsafe(nil), String) # Checks for using Fixnum or Bignum constant. @@ -24495,18 +24749,18 @@ RuboCop::Cop::Lint::UnexpectedBlockArity::MSG = T.let(T.unsafe(nil), String) # # good # 1.is_a?(Integer) # -# source://rubocop//lib/rubocop/cop/lint/unified_integer.rb#16 +# source://rubocop/lib/rubocop/cop/lint/unified_integer.rb#16 class RuboCop::Cop::Lint::UnifiedInteger < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/lint/unified_integer.rb#22 + # source://rubocop/lib/rubocop/cop/lint/unified_integer.rb#22 def fixnum_or_bignum_const(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/lint/unified_integer.rb#26 + # source://rubocop/lib/rubocop/cop/lint/unified_integer.rb#26 def on_const(node); end end -# source://rubocop//lib/rubocop/cop/lint/unified_integer.rb#19 +# source://rubocop/lib/rubocop/cop/lint/unified_integer.rb#19 RuboCop::Cop::Lint::UnifiedInteger::MSG = T.let(T.unsafe(nil), String) # Looks for `reduce` or `inject` blocks where the value returned (implicitly or @@ -24569,27 +24823,27 @@ RuboCop::Cop::Lint::UnifiedInteger::MSG = T.let(T.unsafe(nil), String) # bar(x) # end # -# source://rubocop//lib/rubocop/cop/lint/unmodified_reduce_accumulator.rb#65 +# source://rubocop/lib/rubocop/cop/lint/unmodified_reduce_accumulator.rb#65 class RuboCop::Cop::Lint::UnmodifiedReduceAccumulator < ::RuboCop::Cop::Base - # source://rubocop//lib/rubocop/cop/lint/unmodified_reduce_accumulator.rb#78 + # source://rubocop/lib/rubocop/cop/lint/unmodified_reduce_accumulator.rb#78 def accumulator_index?(param0 = T.unsafe(nil), param1); end - # source://rubocop//lib/rubocop/cop/lint/unmodified_reduce_accumulator.rb#83 + # source://rubocop/lib/rubocop/cop/lint/unmodified_reduce_accumulator.rb#83 def element_modified?(param0, param1); end - # source://rubocop//lib/rubocop/cop/lint/unmodified_reduce_accumulator.rb#104 + # source://rubocop/lib/rubocop/cop/lint/unmodified_reduce_accumulator.rb#104 def expression_values(param0); end - # source://rubocop//lib/rubocop/cop/lint/unmodified_reduce_accumulator.rb#93 + # source://rubocop/lib/rubocop/cop/lint/unmodified_reduce_accumulator.rb#93 def lvar_used?(param0 = T.unsafe(nil), param1); end - # source://rubocop//lib/rubocop/cop/lint/unmodified_reduce_accumulator.rb#115 + # source://rubocop/lib/rubocop/cop/lint/unmodified_reduce_accumulator.rb#115 def on_block(node); end - # source://rubocop//lib/rubocop/cop/lint/unmodified_reduce_accumulator.rb#115 + # source://rubocop/lib/rubocop/cop/lint/unmodified_reduce_accumulator.rb#115 def on_numblock(node); end - # source://rubocop//lib/rubocop/cop/lint/unmodified_reduce_accumulator.rb#70 + # source://rubocop/lib/rubocop/cop/lint/unmodified_reduce_accumulator.rb#70 def reduce_with_block?(param0 = T.unsafe(nil)); end private @@ -24601,31 +24855,31 @@ class RuboCop::Cop::Lint::UnmodifiedReduceAccumulator < ::RuboCop::Cop::Base # # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/unmodified_reduce_accumulator.rb#191 + # source://rubocop/lib/rubocop/cop/lint/unmodified_reduce_accumulator.rb#191 def acceptable_return?(return_val, element_name); end # Exclude `begin` nodes inside a `dstr` from being collected by `return_values` # # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/unmodified_reduce_accumulator.rb#199 + # source://rubocop/lib/rubocop/cop/lint/unmodified_reduce_accumulator.rb#199 def allowed_type?(parent_node); end - # source://rubocop//lib/rubocop/cop/lint/unmodified_reduce_accumulator.rb#159 + # source://rubocop/lib/rubocop/cop/lint/unmodified_reduce_accumulator.rb#159 def block_arg_name(node, index); end - # source://rubocop//lib/rubocop/cop/lint/unmodified_reduce_accumulator.rb#142 + # source://rubocop/lib/rubocop/cop/lint/unmodified_reduce_accumulator.rb#142 def check_return_values(block_node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/unmodified_reduce_accumulator.rb#176 + # source://rubocop/lib/rubocop/cop/lint/unmodified_reduce_accumulator.rb#176 def potential_offense?(return_values, block_body, element_name, accumulator_name); end # Return values in a block are either the value given to next, # the last line of a multiline block, or the only line of the block # - # source://rubocop//lib/rubocop/cop/lint/unmodified_reduce_accumulator.rb#128 + # source://rubocop/lib/rubocop/cop/lint/unmodified_reduce_accumulator.rb#128 def return_values(block_body_node); end # Look for an index of the accumulator being returned, except where the index @@ -24633,7 +24887,7 @@ class RuboCop::Cop::Lint::UnmodifiedReduceAccumulator < ::RuboCop::Cop::Base # This is always an offense, in order to try to catch potential exceptions # due to type mismatches # - # source://rubocop//lib/rubocop/cop/lint/unmodified_reduce_accumulator.rb#167 + # source://rubocop/lib/rubocop/cop/lint/unmodified_reduce_accumulator.rb#167 def returned_accumulator_index(return_values, accumulator_name, element_name); end # If the accumulator is used in any return value, the node is acceptable since @@ -24641,14 +24895,14 @@ class RuboCop::Cop::Lint::UnmodifiedReduceAccumulator < ::RuboCop::Cop::Base # # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/unmodified_reduce_accumulator.rb#183 + # source://rubocop/lib/rubocop/cop/lint/unmodified_reduce_accumulator.rb#183 def returns_accumulator_anywhere?(return_values, accumulator_name); end end -# source://rubocop//lib/rubocop/cop/lint/unmodified_reduce_accumulator.rb#66 +# source://rubocop/lib/rubocop/cop/lint/unmodified_reduce_accumulator.rb#66 RuboCop::Cop::Lint::UnmodifiedReduceAccumulator::MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/lint/unmodified_reduce_accumulator.rb#67 +# source://rubocop/lib/rubocop/cop/lint/unmodified_reduce_accumulator.rb#67 RuboCop::Cop::Lint::UnmodifiedReduceAccumulator::MSG_INDEX = T.let(T.unsafe(nil), String) # Checks for unreachable code. @@ -24678,32 +24932,64 @@ RuboCop::Cop::Lint::UnmodifiedReduceAccumulator::MSG_INDEX = T.let(T.unsafe(nil) # do_something # end # -# source://rubocop//lib/rubocop/cop/lint/unreachable_code.rb#32 +# source://rubocop/lib/rubocop/cop/lint/unreachable_code.rb#32 class RuboCop::Cop::Lint::UnreachableCode < ::RuboCop::Cop::Base - # source://rubocop//lib/rubocop/cop/lint/unreachable_code.rb#50 + # @return [UnreachableCode] a new instance of UnreachableCode + # + # source://rubocop/lib/rubocop/cop/lint/unreachable_code.rb#35 + def initialize(config = T.unsafe(nil), options = T.unsafe(nil)); end + + # source://rubocop/lib/rubocop/cop/lint/unreachable_code.rb#47 + def after_block(node); end + + # source://rubocop/lib/rubocop/cop/lint/unreachable_code.rb#70 def flow_command?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/lint/unreachable_code.rb#35 + # source://rubocop/lib/rubocop/cop/lint/unreachable_code.rb#51 def on_begin(node); end - # source://rubocop//lib/rubocop/cop/lint/unreachable_code.rb#35 + # source://rubocop/lib/rubocop/cop/lint/unreachable_code.rb#41 + def on_block(node); end + + # source://rubocop/lib/rubocop/cop/lint/unreachable_code.rb#51 def on_kwbegin(node); end + # source://rubocop/lib/rubocop/cop/lint/unreachable_code.rb#41 + def on_numblock(node); end + private - # source://rubocop//lib/rubocop/cop/lint/unreachable_code.rb#82 + # source://rubocop/lib/rubocop/cop/lint/unreachable_code.rb#104 def check_case(node); end - # source://rubocop//lib/rubocop/cop/lint/unreachable_code.rb#76 + # source://rubocop/lib/rubocop/cop/lint/unreachable_code.rb#98 def check_if(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/unreachable_code.rb#60 + # source://rubocop/lib/rubocop/cop/lint/unreachable_code.rb#80 def flow_expression?(node); end + + # @return [Boolean] + # + # source://rubocop/lib/rubocop/cop/lint/unreachable_code.rb#119 + def instance_eval_block?(node); end + + # @return [Boolean] + # + # source://rubocop/lib/rubocop/cop/lint/unreachable_code.rb#65 + def redefinable_flow_method?(method); end + + # source://rubocop/lib/rubocop/cop/lint/unreachable_code.rb#114 + def register_redefinition(node); end + + # @return [Boolean] + # + # source://rubocop/lib/rubocop/cop/lint/unreachable_code.rb#123 + def report_on_flow_command?(node); end end -# source://rubocop//lib/rubocop/cop/lint/unreachable_code.rb#33 +# source://rubocop/lib/rubocop/cop/lint/unreachable_code.rb#33 RuboCop::Cop::Lint::UnreachableCode::MSG = T.let(T.unsafe(nil), String) # Checks for loops that will have at most one iteration. @@ -24786,87 +25072,87 @@ RuboCop::Cop::Lint::UnreachableCode::MSG = T.let(T.unsafe(nil), String) # # good # exactly(2).times { raise StandardError } # -# source://rubocop//lib/rubocop/cop/lint/unreachable_loop.rb#86 +# source://rubocop/lib/rubocop/cop/lint/unreachable_loop.rb#86 class RuboCop::Cop::Lint::UnreachableLoop < ::RuboCop::Cop::Base include ::RuboCop::Cop::AllowedPattern - # source://rubocop//lib/rubocop/cop/lint/unreachable_loop.rb#143 + # source://rubocop/lib/rubocop/cop/lint/unreachable_loop.rb#143 def break_command?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/lint/unreachable_loop.rb#100 + # source://rubocop/lib/rubocop/cop/lint/unreachable_loop.rb#100 def on_block(node); end - # source://rubocop//lib/rubocop/cop/lint/unreachable_loop.rb#92 + # source://rubocop/lib/rubocop/cop/lint/unreachable_loop.rb#92 def on_for(node); end - # source://rubocop//lib/rubocop/cop/lint/unreachable_loop.rb#104 + # source://rubocop/lib/rubocop/cop/lint/unreachable_loop.rb#104 def on_numblock(node); end - # source://rubocop//lib/rubocop/cop/lint/unreachable_loop.rb#92 + # source://rubocop/lib/rubocop/cop/lint/unreachable_loop.rb#92 def on_until(node); end - # source://rubocop//lib/rubocop/cop/lint/unreachable_loop.rb#92 + # source://rubocop/lib/rubocop/cop/lint/unreachable_loop.rb#92 def on_until_post(node); end - # source://rubocop//lib/rubocop/cop/lint/unreachable_loop.rb#92 + # source://rubocop/lib/rubocop/cop/lint/unreachable_loop.rb#92 def on_while(node); end - # source://rubocop//lib/rubocop/cop/lint/unreachable_loop.rb#92 + # source://rubocop/lib/rubocop/cop/lint/unreachable_loop.rb#92 def on_while_post(node); end private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/unreachable_loop.rb#153 + # source://rubocop/lib/rubocop/cop/lint/unreachable_loop.rb#153 def break_statement?(node); end - # source://rubocop//lib/rubocop/cop/lint/unreachable_loop.rb#119 + # source://rubocop/lib/rubocop/cop/lint/unreachable_loop.rb#119 def check(node); end - # source://rubocop//lib/rubocop/cop/lint/unreachable_loop.rb#176 + # source://rubocop/lib/rubocop/cop/lint/unreachable_loop.rb#176 def check_case(node); end - # source://rubocop//lib/rubocop/cop/lint/unreachable_loop.rb#170 + # source://rubocop/lib/rubocop/cop/lint/unreachable_loop.rb#170 def check_if(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/unreachable_loop.rb#200 + # source://rubocop/lib/rubocop/cop/lint/unreachable_loop.rb#200 def conditional_continue_keyword?(break_statement); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/unreachable_loop.rb#110 + # source://rubocop/lib/rubocop/cop/lint/unreachable_loop.rb#110 def loop_method?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/unreachable_loop.rb#190 + # source://rubocop/lib/rubocop/cop/lint/unreachable_loop.rb#190 def preceded_by_continue_statement?(break_statement); end - # source://rubocop//lib/rubocop/cop/lint/unreachable_loop.rb#130 + # source://rubocop/lib/rubocop/cop/lint/unreachable_loop.rb#130 def statements(node); end end -# source://rubocop//lib/rubocop/cop/lint/unreachable_loop.rb#90 +# source://rubocop/lib/rubocop/cop/lint/unreachable_loop.rb#90 RuboCop::Cop::Lint::UnreachableLoop::CONTINUE_KEYWORDS = T.let(T.unsafe(nil), Array) -# source://rubocop//lib/rubocop/cop/lint/unreachable_loop.rb#89 +# source://rubocop/lib/rubocop/cop/lint/unreachable_loop.rb#89 RuboCop::Cop::Lint::UnreachableLoop::MSG = T.let(T.unsafe(nil), String) # Common functionality for cops handling unused arguments. # -# source://rubocop//lib/rubocop/cop/mixin/unused_argument.rb#7 +# source://rubocop/lib/rubocop/cop/mixin/unused_argument.rb#7 module RuboCop::Cop::Lint::UnusedArgument extend ::RuboCop::AST::NodePattern::Macros - # source://rubocop//lib/rubocop/cop/mixin/unused_argument.rb#10 + # source://rubocop/lib/rubocop/cop/mixin/unused_argument.rb#10 def after_leaving_scope(scope, _variable_table); end private - # source://rubocop//lib/rubocop/cop/mixin/unused_argument.rb#16 + # source://rubocop/lib/rubocop/cop/mixin/unused_argument.rb#16 def check_argument(variable); end end @@ -24915,7 +25201,7 @@ end # foo # end # -# source://rubocop//lib/rubocop/cop/lint/unused_block_argument.rb#55 +# source://rubocop/lib/rubocop/cop/lint/unused_block_argument.rb#55 class RuboCop::Cop::Lint::UnusedBlockArgument < ::RuboCop::Cop::Base include ::RuboCop::Cop::Lint::UnusedArgument extend ::RuboCop::Cop::AutoCorrector @@ -24924,80 +25210,79 @@ class RuboCop::Cop::Lint::UnusedBlockArgument < ::RuboCop::Cop::Base # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/unused_block_argument.rb#162 + # source://rubocop/lib/rubocop/cop/lint/unused_block_argument.rb#162 def allow_unused_keyword_arguments?; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/unused_block_argument.rb#81 + # source://rubocop/lib/rubocop/cop/lint/unused_block_argument.rb#81 def allowed_block?(variable); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/unused_block_argument.rb#85 + # source://rubocop/lib/rubocop/cop/lint/unused_block_argument.rb#85 def allowed_keyword_argument?(variable); end - # source://rubocop//lib/rubocop/cop/lint/unused_block_argument.rb#99 + # source://rubocop/lib/rubocop/cop/lint/unused_block_argument.rb#99 def augment_message(message, variable); end - # source://rubocop//lib/rubocop/cop/lint/unused_block_argument.rb#65 + # source://rubocop/lib/rubocop/cop/lint/unused_block_argument.rb#65 def autocorrect(corrector, node); end - # source://rubocop//lib/rubocop/cop/lint/unused_block_argument.rb#69 + # source://rubocop/lib/rubocop/cop/lint/unused_block_argument.rb#69 def check_argument(variable); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/unused_block_argument.rb#149 + # source://rubocop/lib/rubocop/cop/lint/unused_block_argument.rb#149 def define_method_call?(variable); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/unused_block_argument.rb#156 + # source://rubocop/lib/rubocop/cop/lint/unused_block_argument.rb#156 def empty_block?(variable); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/unused_block_argument.rb#166 + # source://rubocop/lib/rubocop/cop/lint/unused_block_argument.rb#166 def ignore_empty_blocks?; end - # source://rubocop//lib/rubocop/cop/lint/unused_block_argument.rb#89 + # source://rubocop/lib/rubocop/cop/lint/unused_block_argument.rb#89 def message(variable); end - # source://rubocop//lib/rubocop/cop/lint/unused_block_argument.rb#132 + # source://rubocop/lib/rubocop/cop/lint/unused_block_argument.rb#132 def message_for_lambda(variable, all_arguments); end - # source://rubocop//lib/rubocop/cop/lint/unused_block_argument.rb#120 + # source://rubocop/lib/rubocop/cop/lint/unused_block_argument.rb#120 def message_for_normal_block(variable, all_arguments); end - # source://rubocop//lib/rubocop/cop/lint/unused_block_argument.rb#144 + # source://rubocop/lib/rubocop/cop/lint/unused_block_argument.rb#144 def message_for_underscore_prefix(variable); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/unused_block_argument.rb#77 + # source://rubocop/lib/rubocop/cop/lint/unused_block_argument.rb#77 def used_block_local?(variable); end - # source://rubocop//lib/rubocop/cop/lint/unused_block_argument.rb#112 + # source://rubocop/lib/rubocop/cop/lint/unused_block_argument.rb#112 def variable_type(variable); end class << self - # source://rubocop//lib/rubocop/cop/lint/unused_block_argument.rb#59 + # source://rubocop/lib/rubocop/cop/lint/unused_block_argument.rb#59 def joining_forces; end end end # Checks for unused method arguments. # -# @example +# @example IgnoreNotImplementedMethods: false # # bad -# def some_method(used, unused, _unused_but_allowed) -# puts used +# def do_something(unused) +# raise NotImplementedError # end # -# # good -# def some_method(used, _unused, _unused_but_allowed) -# puts used +# def do_something_else(unused) +# fail "TODO" # end # @example AllowUnusedKeywordArguments: false (default) # # bad @@ -25018,6 +25303,8 @@ end # def do_something(unused) # end # @example IgnoreNotImplementedMethods: true (default) +# # with default value of `NotImplementedExceptions: ['NotImplementedError']` +# # # good # def do_something(unused) # raise NotImplementedError @@ -25026,45 +25313,58 @@ end # def do_something_else(unused) # fail "TODO" # end -# @example IgnoreNotImplementedMethods: false -# # bad +# @example IgnoreNotImplementedMethods: true +# # with `NotImplementedExceptions: ['AbstractMethodError']` +# +# # good # def do_something(unused) -# raise NotImplementedError +# raise AbstractMethodError +# end +# @example +# # bad +# def some_method(used, unused, _unused_but_allowed) +# puts used # end # -# def do_something_else(unused) -# fail "TODO" +# # good +# def some_method(used, _unused, _unused_but_allowed) +# puts used # end # -# source://rubocop//lib/rubocop/cop/lint/unused_method_argument.rb#61 +# source://rubocop/lib/rubocop/cop/lint/unused_method_argument.rb#70 class RuboCop::Cop::Lint::UnusedMethodArgument < ::RuboCop::Cop::Base include ::RuboCop::Cop::Lint::UnusedArgument extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/lint/unused_method_argument.rb#66 + # source://rubocop/lib/rubocop/cop/lint/unused_method_argument.rb#75 def not_implemented?(param0 = T.unsafe(nil)); end private - # source://rubocop//lib/rubocop/cop/lint/unused_method_argument.rb#81 + # @return [Boolean] + # + # source://rubocop/lib/rubocop/cop/lint/unused_method_argument.rb#128 + def allowed_exception_class?(node); end + + # source://rubocop/lib/rubocop/cop/lint/unused_method_argument.rb#90 def autocorrect(corrector, node); end - # source://rubocop//lib/rubocop/cop/lint/unused_method_argument.rb#85 + # source://rubocop/lib/rubocop/cop/lint/unused_method_argument.rb#94 def check_argument(variable); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/unused_method_argument.rb#93 + # source://rubocop/lib/rubocop/cop/lint/unused_method_argument.rb#102 def ignored_method?(body); end - # source://rubocop//lib/rubocop/cop/lint/unused_method_argument.rb#98 + # source://rubocop/lib/rubocop/cop/lint/unused_method_argument.rb#107 def message(variable); end class << self - # source://rubocop//lib/rubocop/cop/lint/unused_method_argument.rb#71 + # source://rubocop/lib/rubocop/cop/lint/unused_method_argument.rb#80 def autocorrect_incompatible_with; end - # source://rubocop//lib/rubocop/cop/lint/unused_method_argument.rb#75 + # source://rubocop/lib/rubocop/cop/lint/unused_method_argument.rb#84 def joining_forces; end end end @@ -25096,28 +25396,28 @@ end # URI.decode_www_form(enc_uri) # URI.decode_www_form_component(enc_uri) # -# source://rubocop//lib/rubocop/cop/lint/uri_escape_unescape.rb#32 +# source://rubocop/lib/rubocop/cop/lint/uri_escape_unescape.rb#32 class RuboCop::Cop::Lint::UriEscapeUnescape < ::RuboCop::Cop::Base - # source://rubocop//lib/rubocop/cop/lint/uri_escape_unescape.rb#57 + # source://rubocop/lib/rubocop/cop/lint/uri_escape_unescape.rb#57 def on_send(node); end - # source://rubocop//lib/rubocop/cop/lint/uri_escape_unescape.rb#51 + # source://rubocop/lib/rubocop/cop/lint/uri_escape_unescape.rb#51 def uri_escape_unescape?(param0 = T.unsafe(nil)); end end -# source://rubocop//lib/rubocop/cop/lint/uri_escape_unescape.rb#33 +# source://rubocop/lib/rubocop/cop/lint/uri_escape_unescape.rb#33 RuboCop::Cop::Lint::UriEscapeUnescape::ALTERNATE_METHODS_OF_URI_ESCAPE = T.let(T.unsafe(nil), Array) -# source://rubocop//lib/rubocop/cop/lint/uri_escape_unescape.rb#38 +# source://rubocop/lib/rubocop/cop/lint/uri_escape_unescape.rb#38 RuboCop::Cop::Lint::UriEscapeUnescape::ALTERNATE_METHODS_OF_URI_UNESCAPE = T.let(T.unsafe(nil), Array) -# source://rubocop//lib/rubocop/cop/lint/uri_escape_unescape.rb#47 +# source://rubocop/lib/rubocop/cop/lint/uri_escape_unescape.rb#47 RuboCop::Cop::Lint::UriEscapeUnescape::METHOD_NAMES = T.let(T.unsafe(nil), Array) -# source://rubocop//lib/rubocop/cop/lint/uri_escape_unescape.rb#44 +# source://rubocop/lib/rubocop/cop/lint/uri_escape_unescape.rb#44 RuboCop::Cop::Lint::UriEscapeUnescape::MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/lint/uri_escape_unescape.rb#48 +# source://rubocop/lib/rubocop/cop/lint/uri_escape_unescape.rb#48 RuboCop::Cop::Lint::UriEscapeUnescape::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Identifies places where `URI.regexp` is obsolete and should not be used. @@ -25143,21 +25443,21 @@ RuboCop::Cop::Lint::UriEscapeUnescape::RESTRICT_ON_SEND = T.let(T.unsafe(nil), A # # good - Ruby 3.4 or higher # URI::RFC2396_PARSER.make_regexp('http://example.com') # -# source://rubocop//lib/rubocop/cop/lint/uri_regexp.rb#29 +# source://rubocop/lib/rubocop/cop/lint/uri_regexp.rb#29 class RuboCop::Cop::Lint::UriRegexp < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/lint/uri_regexp.rb#40 + # source://rubocop/lib/rubocop/cop/lint/uri_regexp.rb#40 def on_send(node); end - # source://rubocop//lib/rubocop/cop/lint/uri_regexp.rb#36 + # source://rubocop/lib/rubocop/cop/lint/uri_regexp.rb#36 def uri_constant?(param0 = T.unsafe(nil)); end end -# source://rubocop//lib/rubocop/cop/lint/uri_regexp.rb#32 +# source://rubocop/lib/rubocop/cop/lint/uri_regexp.rb#32 RuboCop::Cop::Lint::UriRegexp::MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/lint/uri_regexp.rb#33 +# source://rubocop/lib/rubocop/cop/lint/uri_regexp.rb#33 RuboCop::Cop::Lint::UriRegexp::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Checks for redundant access modifiers, including those with no @@ -25280,92 +25580,92 @@ RuboCop::Cop::Lint::UriRegexp::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # delegate :method_a, to: :method_b # end # -# source://rubocop//lib/rubocop/cop/lint/useless_access_modifier.rb#127 +# source://rubocop/lib/rubocop/cop/lint/useless_access_modifier.rb#127 class RuboCop::Cop::Lint::UselessAccessModifier < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/lint/useless_access_modifier.rb#166 + # source://rubocop/lib/rubocop/cop/lint/useless_access_modifier.rb#166 def class_or_instance_eval?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/lint/useless_access_modifier.rb#161 + # source://rubocop/lib/rubocop/cop/lint/useless_access_modifier.rb#161 def dynamic_method_definition?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/lint/useless_access_modifier.rb#139 + # source://rubocop/lib/rubocop/cop/lint/useless_access_modifier.rb#139 def on_block(node); end - # source://rubocop//lib/rubocop/cop/lint/useless_access_modifier.rb#133 + # source://rubocop/lib/rubocop/cop/lint/useless_access_modifier.rb#133 def on_class(node); end - # source://rubocop//lib/rubocop/cop/lint/useless_access_modifier.rb#133 + # source://rubocop/lib/rubocop/cop/lint/useless_access_modifier.rb#133 def on_module(node); end - # source://rubocop//lib/rubocop/cop/lint/useless_access_modifier.rb#139 + # source://rubocop/lib/rubocop/cop/lint/useless_access_modifier.rb#139 def on_numblock(node); end - # source://rubocop//lib/rubocop/cop/lint/useless_access_modifier.rb#133 + # source://rubocop/lib/rubocop/cop/lint/useless_access_modifier.rb#133 def on_sclass(node); end - # source://rubocop//lib/rubocop/cop/lint/useless_access_modifier.rb#156 + # source://rubocop/lib/rubocop/cop/lint/useless_access_modifier.rb#156 def static_method_definition?(param0 = T.unsafe(nil)); end private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/useless_access_modifier.rb#182 + # source://rubocop/lib/rubocop/cop/lint/useless_access_modifier.rb#182 def access_modifier?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/useless_access_modifier.rb#280 + # source://rubocop/lib/rubocop/cop/lint/useless_access_modifier.rb#280 def any_context_creating_methods?(child); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/useless_access_modifier.rb#257 + # source://rubocop/lib/rubocop/cop/lint/useless_access_modifier.rb#257 def any_method_definition?(child); end - # source://rubocop//lib/rubocop/cop/lint/useless_access_modifier.rb#149 + # source://rubocop/lib/rubocop/cop/lint/useless_access_modifier.rb#149 def autocorrect(corrector, node); end - # source://rubocop//lib/rubocop/cop/lint/useless_access_modifier.rb#196 + # source://rubocop/lib/rubocop/cop/lint/useless_access_modifier.rb#196 def check_child_nodes(node, unused, cur_vis); end - # source://rubocop//lib/rubocop/cop/lint/useless_access_modifier.rb#226 + # source://rubocop/lib/rubocop/cop/lint/useless_access_modifier.rb#226 def check_new_visibility(node, unused, new_vis, cur_vis); end - # source://rubocop//lib/rubocop/cop/lint/useless_access_modifier.rb#170 + # source://rubocop/lib/rubocop/cop/lint/useless_access_modifier.rb#170 def check_node(node); end - # source://rubocop//lib/rubocop/cop/lint/useless_access_modifier.rb#186 + # source://rubocop/lib/rubocop/cop/lint/useless_access_modifier.rb#186 def check_scope(node); end - # source://rubocop//lib/rubocop/cop/lint/useless_access_modifier.rb#215 + # source://rubocop/lib/rubocop/cop/lint/useless_access_modifier.rb#215 def check_send_node(node, cur_vis, unused); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/useless_access_modifier.rb#274 + # source://rubocop/lib/rubocop/cop/lint/useless_access_modifier.rb#274 def eval_call?(child); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/useless_access_modifier.rb#247 + # source://rubocop/lib/rubocop/cop/lint/useless_access_modifier.rb#247 def included_block?(block_node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/useless_access_modifier.rb#251 + # source://rubocop/lib/rubocop/cop/lint/useless_access_modifier.rb#251 def method_definition?(child); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/useless_access_modifier.rb#270 + # source://rubocop/lib/rubocop/cop/lint/useless_access_modifier.rb#270 def start_of_new_scope?(child); end end -# source://rubocop//lib/rubocop/cop/lint/useless_access_modifier.rb#131 +# source://rubocop/lib/rubocop/cop/lint/useless_access_modifier.rb#131 RuboCop::Cop::Lint::UselessAccessModifier::MSG = T.let(T.unsafe(nil), String) # Checks for every useless assignment to local variable in every @@ -25403,85 +25703,136 @@ RuboCop::Cop::Lint::UselessAccessModifier::MSG = T.let(T.unsafe(nil), String) # do_something(some_var) # end # -# source://rubocop//lib/rubocop/cop/lint/useless_assignment.rb#40 +# source://rubocop/lib/rubocop/cop/lint/useless_assignment.rb#40 class RuboCop::Cop::Lint::UselessAssignment < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/lint/useless_assignment.rb#51 + # source://rubocop/lib/rubocop/cop/lint/useless_assignment.rb#51 def after_leaving_scope(scope, _variable_table); end - # source://rubocop//lib/rubocop/cop/lint/useless_assignment.rb#165 + # source://rubocop/lib/rubocop/cop/lint/useless_assignment.rb#165 def autocorrect(corrector, assignment); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/useless_assignment.rb#106 + # source://rubocop/lib/rubocop/cop/lint/useless_assignment.rb#106 def chained_assignment?(node); end - # source://rubocop//lib/rubocop/cop/lint/useless_assignment.rb#56 + # source://rubocop/lib/rubocop/cop/lint/useless_assignment.rb#56 def check_for_unused_assignments(variable); end - # source://rubocop//lib/rubocop/cop/lint/useless_assignment.rb#149 + # source://rubocop/lib/rubocop/cop/lint/useless_assignment.rb#149 def collect_variable_like_names(scope); end - # source://rubocop//lib/rubocop/cop/lint/useless_assignment.rb#82 + # source://rubocop/lib/rubocop/cop/lint/useless_assignment.rb#82 def message_for_useless_assignment(assignment); end - # source://rubocop//lib/rubocop/cop/lint/useless_assignment.rb#110 + # source://rubocop/lib/rubocop/cop/lint/useless_assignment.rb#110 def message_specification(assignment, variable); end - # source://rubocop//lib/rubocop/cop/lint/useless_assignment.rb#120 + # source://rubocop/lib/rubocop/cop/lint/useless_assignment.rb#120 def multiple_assignment_message(variable_name); end - # source://rubocop//lib/rubocop/cop/lint/useless_assignment.rb#88 + # source://rubocop/lib/rubocop/cop/lint/useless_assignment.rb#88 def offense_range(assignment); end - # source://rubocop//lib/rubocop/cop/lint/useless_assignment.rb#125 + # source://rubocop/lib/rubocop/cop/lint/useless_assignment.rb#125 def operator_assignment_message(scope, assignment); end - # source://rubocop//lib/rubocop/cop/lint/useless_assignment.rb#182 + # source://rubocop/lib/rubocop/cop/lint/useless_assignment.rb#182 def remove_exception_assignment_part(corrector, node); end - # source://rubocop//lib/rubocop/cop/lint/useless_assignment.rb#206 + # source://rubocop/lib/rubocop/cop/lint/useless_assignment.rb#206 def remove_local_variable_assignment_part(corrector, node); end - # source://rubocop//lib/rubocop/cop/lint/useless_assignment.rb#195 + # source://rubocop/lib/rubocop/cop/lint/useless_assignment.rb#195 def remove_trailing_character_from_operator(corrector, node); end - # source://rubocop//lib/rubocop/cop/lint/useless_assignment.rb#191 + # source://rubocop/lib/rubocop/cop/lint/useless_assignment.rb#191 def rename_variable_with_underscore(corrector, node); end - # source://rubocop//lib/rubocop/cop/lint/useless_assignment.rb#199 + # source://rubocop/lib/rubocop/cop/lint/useless_assignment.rb#199 def replace_named_capture_group_with_non_capturing_group(corrector, node, variable_name); end # TODO: More precise handling (rescue, ensure, nested begin, etc.) # - # source://rubocop//lib/rubocop/cop/lint/useless_assignment.rb#139 + # source://rubocop/lib/rubocop/cop/lint/useless_assignment.rb#139 def return_value_node_of_scope(scope); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/useless_assignment.rb#96 + # source://rubocop/lib/rubocop/cop/lint/useless_assignment.rb#96 def sequential_assignment?(node); end - # source://rubocop//lib/rubocop/cop/lint/useless_assignment.rb#132 + # source://rubocop/lib/rubocop/cop/lint/useless_assignment.rb#132 def similar_name_message(variable); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/useless_assignment.rb#158 + # source://rubocop/lib/rubocop/cop/lint/useless_assignment.rb#158 def variable_like_method_invocation?(node); end class << self - # source://rubocop//lib/rubocop/cop/lint/useless_assignment.rb#47 + # source://rubocop/lib/rubocop/cop/lint/useless_assignment.rb#47 def joining_forces; end end end -# source://rubocop//lib/rubocop/cop/lint/useless_assignment.rb#45 +# source://rubocop/lib/rubocop/cop/lint/useless_assignment.rb#45 RuboCop::Cop::Lint::UselessAssignment::MSG = T.let(T.unsafe(nil), String) +# Checks for calls to `defined?` with strings or symbols as the argument. +# Such calls will always return `'expression'`, you probably meant to +# check for the existence of a constant, method, or variable instead. +# +# `defined?` is part of the Ruby syntax and doesn't behave like normal methods. +# You can safely pass in what you are checking for directly, without encountering +# a `NameError`. +# +# When interpolation is used, oftentimes it is not possible to write the +# code with `defined?`. In these cases, switch to one of the more specific methods: +# +# * `class_variable_defined?` +# * `const_defined?` +# * `method_defined?` +# * `instance_variable_defined?` +# * `binding.local_variable_defined?` +# +# @example +# +# # bad +# defined?('FooBar') +# defined?(:FooBar) +# defined?(:foo_bar) +# defined?('foo_bar') +# +# # good +# defined?(FooBar) +# defined?(foo_bar) +# +# # bad - interpolation +# bar = 'Bar' +# defined?("Foo::#{bar}::Baz") +# +# # good +# bar = 'Bar' +# defined?(Foo) && Foo.const_defined?(bar) && Foo.const_get(bar).const_defined?(:Baz) +# +# source://rubocop/lib/rubocop/cop/lint/useless_defined.rb#42 +class RuboCop::Cop::Lint::UselessDefined < ::RuboCop::Cop::Base + # @return [Boolean] + # + # source://rubocop/lib/rubocop/cop/lint/useless_defined.rb#46 + def on_defined?(node); end +end + +# source://rubocop/lib/rubocop/cop/lint/useless_defined.rb#43 +RuboCop::Cop::Lint::UselessDefined::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop/lib/rubocop/cop/lint/useless_defined.rb#44 +RuboCop::Cop::Lint::UselessDefined::TYPES = T.let(T.unsafe(nil), Hash) + # Checks for useless `else` in `begin..end` without `rescue`. # # NOTE: This syntax is no longer valid on Ruby 2.6 or higher. @@ -25504,13 +25855,15 @@ RuboCop::Cop::Lint::UselessAssignment::MSG = T.let(T.unsafe(nil), String) # do_something_else # end # -# source://rubocop//lib/rubocop/cop/lint/useless_else_without_rescue.rb#27 +# source://rubocop/lib/rubocop/cop/lint/useless_else_without_rescue.rb#27 class RuboCop::Cop::Lint::UselessElseWithoutRescue < ::RuboCop::Cop::Base - # source://rubocop//lib/rubocop/cop/lint/useless_else_without_rescue.rb#30 + extend ::RuboCop::Cop::TargetRubyVersion + + # source://rubocop/lib/rubocop/cop/lint/useless_else_without_rescue.rb#34 def on_new_investigation; end end -# source://rubocop//lib/rubocop/cop/lint/useless_else_without_rescue.rb#28 +# source://rubocop/lib/rubocop/cop/lint/useless_else_without_rescue.rb#30 RuboCop::Cop::Lint::UselessElseWithoutRescue::MSG = T.let(T.unsafe(nil), String) # Checks for useless method definitions, specifically: empty constructors @@ -25541,35 +25894,35 @@ RuboCop::Cop::Lint::UselessElseWithoutRescue::MSG = T.let(T.unsafe(nil), String) # super(:extra_arg, *args) # end # -# source://rubocop//lib/rubocop/cop/lint/useless_method_definition.rb#38 +# source://rubocop/lib/rubocop/cop/lint/useless_method_definition.rb#38 class RuboCop::Cop::Lint::UselessMethodDefinition < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/lint/useless_method_definition.rb#43 + # source://rubocop/lib/rubocop/cop/lint/useless_method_definition.rb#43 def on_def(node); end - # source://rubocop//lib/rubocop/cop/lint/useless_method_definition.rb#43 + # source://rubocop/lib/rubocop/cop/lint/useless_method_definition.rb#43 def on_defs(node); end private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/useless_method_definition.rb#65 + # source://rubocop/lib/rubocop/cop/lint/useless_method_definition.rb#65 def delegating?(node, def_node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/useless_method_definition.rb#57 + # source://rubocop/lib/rubocop/cop/lint/useless_method_definition.rb#57 def method_definition_with_modifier?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/useless_method_definition.rb#61 + # source://rubocop/lib/rubocop/cop/lint/useless_method_definition.rb#61 def use_rest_or_optional_args?(node); end end -# source://rubocop//lib/rubocop/cop/lint/useless_method_definition.rb#41 +# source://rubocop/lib/rubocop/cop/lint/useless_method_definition.rb#41 RuboCop::Cop::Lint::UselessMethodDefinition::MSG = T.let(T.unsafe(nil), String) # Certain numeric operations have no impact, being: @@ -25598,34 +25951,34 @@ RuboCop::Cop::Lint::UselessMethodDefinition::MSG = T.let(T.unsafe(nil), String) # # good # x = x # -# source://rubocop//lib/rubocop/cop/lint/useless_numeric_operation.rb#32 +# source://rubocop/lib/rubocop/cop/lint/useless_numeric_operation.rb#32 class RuboCop::Cop::Lint::UselessNumericOperation < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/lint/useless_numeric_operation.rb#54 + # source://rubocop/lib/rubocop/cop/lint/useless_numeric_operation.rb#54 def on_op_asgn(node); end - # source://rubocop//lib/rubocop/cop/lint/useless_numeric_operation.rb#43 + # source://rubocop/lib/rubocop/cop/lint/useless_numeric_operation.rb#43 def on_send(node); end - # source://rubocop//lib/rubocop/cop/lint/useless_numeric_operation.rb#41 + # source://rubocop/lib/rubocop/cop/lint/useless_numeric_operation.rb#41 def useless_abbreviated_assignment?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/lint/useless_numeric_operation.rb#38 + # source://rubocop/lib/rubocop/cop/lint/useless_numeric_operation.rb#38 def useless_operation?(param0 = T.unsafe(nil)); end private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/useless_numeric_operation.rb#67 + # source://rubocop/lib/rubocop/cop/lint/useless_numeric_operation.rb#67 def useless?(operation, number); end end -# source://rubocop//lib/rubocop/cop/lint/useless_numeric_operation.rb#34 +# source://rubocop/lib/rubocop/cop/lint/useless_numeric_operation.rb#34 RuboCop::Cop::Lint::UselessNumericOperation::MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/lint/useless_numeric_operation.rb#35 +# source://rubocop/lib/rubocop/cop/lint/useless_numeric_operation.rb#35 RuboCop::Cop::Lint::UselessNumericOperation::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Checks for useless `rescue`s, which only reraise rescued exceptions. @@ -25671,28 +26024,28 @@ RuboCop::Cop::Lint::UselessNumericOperation::RESTRICT_ON_SEND = T.let(T.unsafe(n # # noop # end # -# source://rubocop//lib/rubocop/cop/lint/useless_rescue.rb#49 +# source://rubocop/lib/rubocop/cop/lint/useless_rescue.rb#49 class RuboCop::Cop::Lint::UselessRescue < ::RuboCop::Cop::Base - # source://rubocop//lib/rubocop/cop/lint/useless_rescue.rb#52 + # source://rubocop/lib/rubocop/cop/lint/useless_rescue.rb#52 def on_rescue(node); end private - # source://rubocop//lib/rubocop/cop/lint/useless_rescue.rb#83 + # source://rubocop/lib/rubocop/cop/lint/useless_rescue.rb#83 def exception_objects(resbody_node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/useless_rescue.rb#60 + # source://rubocop/lib/rubocop/cop/lint/useless_rescue.rb#60 def only_reraising?(resbody_node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/useless_rescue.rb#75 + # source://rubocop/lib/rubocop/cop/lint/useless_rescue.rb#75 def use_exception_variable_in_ensure?(resbody_node); end end -# source://rubocop//lib/rubocop/cop/lint/useless_rescue.rb#50 +# source://rubocop/lib/rubocop/cop/lint/useless_rescue.rb#50 RuboCop::Cop::Lint::UselessRescue::MSG = T.let(T.unsafe(nil), String) # Looks for `ruby2_keywords` calls for methods that do not need it. @@ -25755,37 +26108,37 @@ RuboCop::Cop::Lint::UselessRescue::MSG = T.let(T.unsafe(nil), String) # # good # define_method(:foo) { |arg| } # -# source://rubocop//lib/rubocop/cop/lint/useless_ruby2_keywords.rb#66 +# source://rubocop/lib/rubocop/cop/lint/useless_ruby2_keywords.rb#66 class RuboCop::Cop::Lint::UselessRuby2Keywords < ::RuboCop::Cop::Base # Looks for statically or dynamically defined methods with a given name # - # source://rubocop//lib/rubocop/cop/lint/useless_ruby2_keywords.rb#72 + # source://rubocop/lib/rubocop/cop/lint/useless_ruby2_keywords.rb#72 def method_definition(param0 = T.unsafe(nil), param1); end - # source://rubocop//lib/rubocop/cop/lint/useless_ruby2_keywords.rb#79 + # source://rubocop/lib/rubocop/cop/lint/useless_ruby2_keywords.rb#79 def on_send(node); end private # `ruby2_keywords` is only allowed if there's a `restarg` and no keyword arguments # - # source://rubocop//lib/rubocop/cop/lint/useless_ruby2_keywords.rb#118 + # source://rubocop/lib/rubocop/cop/lint/useless_ruby2_keywords.rb#118 def allowed_arguments(arguments); end - # source://rubocop//lib/rubocop/cop/lint/useless_ruby2_keywords.rb#109 + # source://rubocop/lib/rubocop/cop/lint/useless_ruby2_keywords.rb#109 def find_method_definition(node, method_name); end - # source://rubocop//lib/rubocop/cop/lint/useless_ruby2_keywords.rb#91 + # source://rubocop/lib/rubocop/cop/lint/useless_ruby2_keywords.rb#91 def inspect_def(node, def_node); end - # source://rubocop//lib/rubocop/cop/lint/useless_ruby2_keywords.rb#97 + # source://rubocop/lib/rubocop/cop/lint/useless_ruby2_keywords.rb#97 def inspect_sym(node, sym_node); end end -# source://rubocop//lib/rubocop/cop/lint/useless_ruby2_keywords.rb#67 +# source://rubocop/lib/rubocop/cop/lint/useless_ruby2_keywords.rb#67 RuboCop::Cop::Lint::UselessRuby2Keywords::MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/lint/useless_ruby2_keywords.rb#68 +# source://rubocop/lib/rubocop/cop/lint/useless_ruby2_keywords.rb#68 RuboCop::Cop::Lint::UselessRuby2Keywords::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Checks for setter call to local variable as the final @@ -25806,68 +26159,68 @@ RuboCop::Cop::Lint::UselessRuby2Keywords::RESTRICT_ON_SEND = T.let(T.unsafe(nil) # x # end # -# source://rubocop//lib/rubocop/cop/lint/useless_setter_call.rb#31 +# source://rubocop/lib/rubocop/cop/lint/useless_setter_call.rb#31 class RuboCop::Cop::Lint::UselessSetterCall < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/lint/useless_setter_call.rb#37 + # source://rubocop/lib/rubocop/cop/lint/useless_setter_call.rb#37 def on_def(node); end - # source://rubocop//lib/rubocop/cop/lint/useless_setter_call.rb#37 + # source://rubocop/lib/rubocop/cop/lint/useless_setter_call.rb#37 def on_defs(node); end - # source://rubocop//lib/rubocop/cop/lint/useless_setter_call.rb#59 + # source://rubocop/lib/rubocop/cop/lint/useless_setter_call.rb#59 def setter_call_to_local_variable?(param0 = T.unsafe(nil)); end private - # source://rubocop//lib/rubocop/cop/lint/useless_setter_call.rb#63 + # source://rubocop/lib/rubocop/cop/lint/useless_setter_call.rb#63 def last_expression(body); end end -# source://rubocop//lib/rubocop/cop/lint/useless_setter_call.rb#35 +# source://rubocop/lib/rubocop/cop/lint/useless_setter_call.rb#35 RuboCop::Cop::Lint::UselessSetterCall::ASSIGNMENT_TYPES = T.let(T.unsafe(nil), Array) -# source://rubocop//lib/rubocop/cop/lint/useless_setter_call.rb#34 +# source://rubocop/lib/rubocop/cop/lint/useless_setter_call.rb#34 RuboCop::Cop::Lint::UselessSetterCall::MSG = T.let(T.unsafe(nil), String) # This class tracks variable assignments in a method body # and if a variable contains object passed as argument at the end of # the method. # -# source://rubocop//lib/rubocop/cop/lint/useless_setter_call.rb#72 +# source://rubocop/lib/rubocop/cop/lint/useless_setter_call.rb#72 class RuboCop::Cop::Lint::UselessSetterCall::MethodVariableTracker # @return [MethodVariableTracker] a new instance of MethodVariableTracker # - # source://rubocop//lib/rubocop/cop/lint/useless_setter_call.rb#73 + # source://rubocop/lib/rubocop/cop/lint/useless_setter_call.rb#73 def initialize(body_node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/useless_setter_call.rb#159 + # source://rubocop/lib/rubocop/cop/lint/useless_setter_call.rb#148 def constructor?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/useless_setter_call.rb#78 + # source://rubocop/lib/rubocop/cop/lint/useless_setter_call.rb#78 def contain_local_object?(variable_name); end - # source://rubocop//lib/rubocop/cop/lint/useless_setter_call.rb#148 + # source://rubocop/lib/rubocop/cop/lint/useless_setter_call.rb#140 def process_assignment(asgn_node, rhs_node); end - # source://rubocop//lib/rubocop/cop/lint/useless_setter_call.rb#96 + # source://rubocop/lib/rubocop/cop/lint/useless_setter_call.rb#96 def process_assignment_node(node); end - # source://rubocop//lib/rubocop/cop/lint/useless_setter_call.rb#138 + # source://rubocop/lib/rubocop/cop/lint/useless_setter_call.rb#131 def process_binary_operator_assignment(op_asgn_node); end - # source://rubocop//lib/rubocop/cop/lint/useless_setter_call.rb#129 + # source://rubocop/lib/rubocop/cop/lint/useless_setter_call.rb#123 def process_logical_operator_assignment(asgn_node); end - # source://rubocop//lib/rubocop/cop/lint/useless_setter_call.rb#110 + # source://rubocop/lib/rubocop/cop/lint/useless_setter_call.rb#109 def process_multiple_assignment(masgn_node); end - # source://rubocop//lib/rubocop/cop/lint/useless_setter_call.rb#88 + # source://rubocop/lib/rubocop/cop/lint/useless_setter_call.rb#88 def scan(node, &block); end end @@ -25886,55 +26239,55 @@ end # do_something # do_something(1) # -# source://rubocop//lib/rubocop/cop/lint/useless_times.rb#24 +# source://rubocop/lib/rubocop/cop/lint/useless_times.rb#24 class RuboCop::Cop::Lint::UselessTimes < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/lint/useless_times.rb#37 + # source://rubocop/lib/rubocop/cop/lint/useless_times.rb#37 def block_arg(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/lint/useless_times.rb#42 + # source://rubocop/lib/rubocop/cop/lint/useless_times.rb#42 def block_reassigns_arg?(param0, param1); end - # source://rubocop//lib/rubocop/cop/lint/useless_times.rb#46 + # source://rubocop/lib/rubocop/cop/lint/useless_times.rb#46 def on_send(node); end - # source://rubocop//lib/rubocop/cop/lint/useless_times.rb#32 + # source://rubocop/lib/rubocop/cop/lint/useless_times.rb#32 def times_call?(param0 = T.unsafe(nil)); end private - # source://rubocop//lib/rubocop/cop/lint/useless_times.rb#62 + # source://rubocop/lib/rubocop/cop/lint/useless_times.rb#62 def autocorrect(corrector, count, node, proc_name); end - # source://rubocop//lib/rubocop/cop/lint/useless_times.rb#84 + # source://rubocop/lib/rubocop/cop/lint/useless_times.rb#84 def autocorrect_block(corrector, node); end - # source://rubocop//lib/rubocop/cop/lint/useless_times.rb#80 + # source://rubocop/lib/rubocop/cop/lint/useless_times.rb#80 def autocorrect_block_pass(corrector, node, proc_name); end - # source://rubocop//lib/rubocop/cop/lint/useless_times.rb#94 + # source://rubocop/lib/rubocop/cop/lint/useless_times.rb#94 def fix_indentation(source, range); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/useless_times.rb#72 + # source://rubocop/lib/rubocop/cop/lint/useless_times.rb#72 def never_process?(count, node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/useless_times.rb#106 + # source://rubocop/lib/rubocop/cop/lint/useless_times.rb#106 def own_line?(node); end - # source://rubocop//lib/rubocop/cop/lint/useless_times.rb#76 + # source://rubocop/lib/rubocop/cop/lint/useless_times.rb#76 def remove_node(corrector, node); end end -# source://rubocop//lib/rubocop/cop/lint/useless_times.rb#28 +# source://rubocop/lib/rubocop/cop/lint/useless_times.rb#28 RuboCop::Cop::Lint::UselessTimes::MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/lint/useless_times.rb#29 +# source://rubocop/lib/rubocop/cop/lint/useless_times.rb#29 RuboCop::Cop::Lint::UselessTimes::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Checks for operators, variables, literals, lambda, proc and nonmutating @@ -25984,127 +26337,127 @@ RuboCop::Cop::Lint::UselessTimes::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # do_something(some_array) # end # -# source://rubocop//lib/rubocop/cop/lint/void.rb#53 +# source://rubocop/lib/rubocop/cop/lint/void.rb#53 class RuboCop::Cop::Lint::Void < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/lint/void.rb#90 + # source://rubocop/lib/rubocop/cop/lint/void.rb#90 def on_begin(node); end - # source://rubocop//lib/rubocop/cop/lint/void.rb#81 + # source://rubocop/lib/rubocop/cop/lint/void.rb#81 def on_block(node); end - # source://rubocop//lib/rubocop/cop/lint/void.rb#95 + # source://rubocop/lib/rubocop/cop/lint/void.rb#95 def on_ensure(node); end - # source://rubocop//lib/rubocop/cop/lint/void.rb#90 + # source://rubocop/lib/rubocop/cop/lint/void.rb#90 def on_kwbegin(node); end - # source://rubocop//lib/rubocop/cop/lint/void.rb#81 + # source://rubocop/lib/rubocop/cop/lint/void.rb#81 def on_numblock(node); end private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/void.rb#258 + # source://rubocop/lib/rubocop/cop/lint/void.rb#259 def all_keys_entirely_literal?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/void.rb#262 + # source://rubocop/lib/rubocop/cop/lint/void.rb#263 def all_values_entirely_literal?(node); end - # source://rubocop//lib/rubocop/cop/lint/void.rb#236 + # source://rubocop/lib/rubocop/cop/lint/void.rb#237 def autocorrect_nonmutating_send(corrector, node, suggestion); end - # source://rubocop//lib/rubocop/cop/lint/void.rb#230 + # source://rubocop/lib/rubocop/cop/lint/void.rb#231 def autocorrect_void_expression(corrector, node); end - # source://rubocop//lib/rubocop/cop/lint/void.rb#218 + # source://rubocop/lib/rubocop/cop/lint/void.rb#218 def autocorrect_void_op(corrector, node); end - # source://rubocop//lib/rubocop/cop/lint/void.rb#101 + # source://rubocop/lib/rubocop/cop/lint/void.rb#101 def check_begin(node); end - # source://rubocop//lib/rubocop/cop/lint/void.rb#198 + # source://rubocop/lib/rubocop/cop/lint/void.rb#198 def check_ensure(node); end - # source://rubocop//lib/rubocop/cop/lint/void.rb#115 + # source://rubocop/lib/rubocop/cop/lint/void.rb#115 def check_expression(expr); end - # source://rubocop//lib/rubocop/cop/lint/void.rb#156 + # source://rubocop/lib/rubocop/cop/lint/void.rb#156 def check_literal(node); end - # source://rubocop//lib/rubocop/cop/lint/void.rb#180 + # source://rubocop/lib/rubocop/cop/lint/void.rb#180 def check_nonmutating(node); end - # source://rubocop//lib/rubocop/cop/lint/void.rb#164 + # source://rubocop/lib/rubocop/cop/lint/void.rb#164 def check_self(node); end - # source://rubocop//lib/rubocop/cop/lint/void.rb#138 + # source://rubocop/lib/rubocop/cop/lint/void.rb#138 def check_var(node); end - # source://rubocop//lib/rubocop/cop/lint/void.rb#172 + # source://rubocop/lib/rubocop/cop/lint/void.rb#172 def check_void_expression(node); end - # source://rubocop//lib/rubocop/cop/lint/void.rb#127 + # source://rubocop/lib/rubocop/cop/lint/void.rb#127 def check_void_op(node, &block); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/void.rb#245 + # source://rubocop/lib/rubocop/cop/lint/void.rb#246 def entirely_literal?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/lint/void.rb#211 + # source://rubocop/lib/rubocop/cop/lint/void.rb#211 def in_void_context?(node); end end -# source://rubocop//lib/rubocop/cop/lint/void.rb#66 +# source://rubocop/lib/rubocop/cop/lint/void.rb#66 RuboCop::Cop::Lint::Void::BINARY_OPERATORS = T.let(T.unsafe(nil), Array) -# source://rubocop//lib/rubocop/cop/lint/void.rb#60 +# source://rubocop/lib/rubocop/cop/lint/void.rb#60 RuboCop::Cop::Lint::Void::CONST_MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/lint/void.rb#63 +# source://rubocop/lib/rubocop/cop/lint/void.rb#63 RuboCop::Cop::Lint::Void::EXPRESSION_MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/lint/void.rb#61 +# source://rubocop/lib/rubocop/cop/lint/void.rb#61 RuboCop::Cop::Lint::Void::LIT_MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/lint/void.rb#76 +# source://rubocop/lib/rubocop/cop/lint/void.rb#76 RuboCop::Cop::Lint::Void::METHODS_REPLACEABLE_BY_EACH = T.let(T.unsafe(nil), Array) -# source://rubocop//lib/rubocop/cop/lint/void.rb#78 +# source://rubocop/lib/rubocop/cop/lint/void.rb#78 RuboCop::Cop::Lint::Void::NONMUTATING_METHODS = T.let(T.unsafe(nil), Array) -# source://rubocop//lib/rubocop/cop/lint/void.rb#69 +# source://rubocop/lib/rubocop/cop/lint/void.rb#69 RuboCop::Cop::Lint::Void::NONMUTATING_METHODS_WITH_BANG_VERSION = T.let(T.unsafe(nil), Array) -# source://rubocop//lib/rubocop/cop/lint/void.rb#64 +# source://rubocop/lib/rubocop/cop/lint/void.rb#64 RuboCop::Cop::Lint::Void::NONMUTATING_MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/lint/void.rb#68 +# source://rubocop/lib/rubocop/cop/lint/void.rb#68 RuboCop::Cop::Lint::Void::OPERATORS = T.let(T.unsafe(nil), Array) -# source://rubocop//lib/rubocop/cop/lint/void.rb#58 +# source://rubocop/lib/rubocop/cop/lint/void.rb#58 RuboCop::Cop::Lint::Void::OP_MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/lint/void.rb#62 +# source://rubocop/lib/rubocop/cop/lint/void.rb#62 RuboCop::Cop::Lint::Void::SELF_MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/lint/void.rb#67 +# source://rubocop/lib/rubocop/cop/lint/void.rb#67 RuboCop::Cop::Lint::Void::UNARY_OPERATORS = T.let(T.unsafe(nil), Array) -# source://rubocop//lib/rubocop/cop/lint/void.rb#59 +# source://rubocop/lib/rubocop/cop/lint/void.rb#59 RuboCop::Cop::Lint::Void::VAR_MSG = T.let(T.unsafe(nil), String) # Common functionality for obtaining source ranges from regexp matches # -# source://rubocop//lib/rubocop/cop/mixin/match_range.rb#6 +# source://rubocop/lib/rubocop/cop/mixin/match_range.rb#6 module RuboCop::Cop::MatchRange include ::RuboCop::Cop::RangeHelp @@ -26113,12 +26466,12 @@ module RuboCop::Cop::MatchRange # Return a new `Range` covering the first matching group number for each # match of `regex` inside `range` # - # source://rubocop//lib/rubocop/cop/mixin/match_range.rb#13 + # source://rubocop/lib/rubocop/cop/mixin/match_range.rb#13 def each_match_range(range, regex); end # For a `match` inside `range`, return a new `Range` covering the match # - # source://rubocop//lib/rubocop/cop/mixin/match_range.rb#18 + # source://rubocop/lib/rubocop/cop/mixin/match_range.rb#18 def match_range(range, match); end end @@ -26133,7 +26486,7 @@ end # ).annotate('message') # @see #initialize # -# source://rubocop//lib/rubocop/cop/message_annotator.rb#15 +# source://rubocop/lib/rubocop/cop/message_annotator.rb#15 class RuboCop::Cop::MessageAnnotator # @option cop_config # @option cop_config @@ -26154,7 +26507,7 @@ class RuboCop::Cop::MessageAnnotator # @param options [Hash, nil] optional # @return [MessageAnnotator] a new instance of MessageAnnotator # - # source://rubocop//lib/rubocop/cop/message_annotator.rb#47 + # source://rubocop/lib/rubocop/cop/message_annotator.rb#47 def initialize(config, cop_name, cop_config, options); end # Returns the annotated message, @@ -26162,74 +26515,74 @@ class RuboCop::Cop::MessageAnnotator # # @return [String] annotated message # - # source://rubocop//lib/rubocop/cop/message_annotator.rb#58 + # source://rubocop/lib/rubocop/cop/message_annotator.rb#58 def annotate(message); end # Returns the value of attribute config. # - # source://rubocop//lib/rubocop/cop/message_annotator.rb#16 + # source://rubocop/lib/rubocop/cop/message_annotator.rb#16 def config; end # Returns the value of attribute cop_config. # - # source://rubocop//lib/rubocop/cop/message_annotator.rb#16 + # source://rubocop/lib/rubocop/cop/message_annotator.rb#16 def cop_config; end # Returns the value of attribute cop_name. # - # source://rubocop//lib/rubocop/cop/message_annotator.rb#16 + # source://rubocop/lib/rubocop/cop/message_annotator.rb#16 def cop_name; end # Returns the value of attribute options. # - # source://rubocop//lib/rubocop/cop/message_annotator.rb#16 + # source://rubocop/lib/rubocop/cop/message_annotator.rb#16 def options; end - # source://rubocop//lib/rubocop/cop/message_annotator.rb#68 + # source://rubocop/lib/rubocop/cop/message_annotator.rb#68 def urls; end private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/message_annotator.rb#111 + # source://rubocop/lib/rubocop/cop/message_annotator.rb#111 def debug?; end - # source://rubocop//lib/rubocop/cop/message_annotator.rb#124 + # source://rubocop/lib/rubocop/cop/message_annotator.rb#124 def details; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/message_annotator.rb#115 + # source://rubocop/lib/rubocop/cop/message_annotator.rb#115 def display_cop_names?; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/message_annotator.rb#98 + # source://rubocop/lib/rubocop/cop/message_annotator.rb#98 def display_style_guide?; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/message_annotator.rb#107 + # source://rubocop/lib/rubocop/cop/message_annotator.rb#107 def extra_details?; end - # source://rubocop//lib/rubocop/cop/message_annotator.rb#102 + # source://rubocop/lib/rubocop/cop/message_annotator.rb#102 def reference_urls; end # Returns the base style guide URL from AllCops or the specific department # # @return [String] style guide URL # - # source://rubocop//lib/rubocop/cop/message_annotator.rb#91 + # source://rubocop/lib/rubocop/cop/message_annotator.rb#91 def style_guide_base_url; end - # source://rubocop//lib/rubocop/cop/message_annotator.rb#74 + # source://rubocop/lib/rubocop/cop/message_annotator.rb#74 def style_guide_url; end class << self # Returns the value of attribute style_guide_urls. # - # source://rubocop//lib/rubocop/cop/message_annotator.rb#21 + # source://rubocop/lib/rubocop/cop/message_annotator.rb#21 def style_guide_urls; end end end @@ -26238,7 +26591,7 @@ end # # @api private # -# source://rubocop//lib/rubocop/cop/mixin/method_complexity.rb#8 +# source://rubocop/lib/rubocop/cop/mixin/method_complexity.rb#8 module RuboCop::Cop::MethodComplexity include ::RuboCop::Cop::AllowedMethods include ::RuboCop::Cop::AllowedPattern @@ -26246,67 +26599,67 @@ module RuboCop::Cop::MethodComplexity extend ::RuboCop::AST::NodePattern::Macros extend ::RuboCop::ExcludeLimit - # source://rubocop//lib/rubocop/cop/mixin/method_complexity.rb#37 + # source://rubocop/lib/rubocop/cop/mixin/method_complexity.rb#37 def define_method?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/exclude_limit.rb#11 + # source://rubocop/lib/rubocop/cop/exclude_limit.rb#11 def max=(value); end # @api private # - # source://rubocop//lib/rubocop/cop/mixin/method_complexity.rb#24 + # source://rubocop/lib/rubocop/cop/mixin/method_complexity.rb#24 def on_block(node); end # @api private # - # source://rubocop//lib/rubocop/cop/mixin/method_complexity.rb#17 + # source://rubocop/lib/rubocop/cop/mixin/method_complexity.rb#17 def on_def(node); end # @api private # - # source://rubocop//lib/rubocop/cop/mixin/method_complexity.rb#17 + # source://rubocop/lib/rubocop/cop/mixin/method_complexity.rb#17 def on_defs(node); end # @api private # - # source://rubocop//lib/rubocop/cop/mixin/method_complexity.rb#24 + # source://rubocop/lib/rubocop/cop/mixin/method_complexity.rb#24 def on_numblock(node); end private # @api private # - # source://rubocop//lib/rubocop/cop/mixin/method_complexity.rb#42 + # source://rubocop/lib/rubocop/cop/mixin/method_complexity.rb#42 def check_complexity(node, method_name); end # @api private # - # source://rubocop//lib/rubocop/cop/mixin/method_complexity.rb#61 + # source://rubocop/lib/rubocop/cop/mixin/method_complexity.rb#61 def complexity(body); end # @api private # - # source://rubocop//lib/rubocop/cop/mixin/method_complexity.rb#73 + # source://rubocop/lib/rubocop/cop/mixin/method_complexity.rb#73 def location(node); end end # Common code for cops that deal with preferred methods. # -# source://rubocop//lib/rubocop/cop/mixin/method_preference.rb#6 +# source://rubocop/lib/rubocop/cop/mixin/method_preference.rb#6 module RuboCop::Cop::MethodPreference private - # source://rubocop//lib/rubocop/cop/mixin/method_preference.rb#25 + # source://rubocop/lib/rubocop/cop/mixin/method_preference.rb#25 def default_cop_config; end - # source://rubocop//lib/rubocop/cop/mixin/method_preference.rb#9 + # source://rubocop/lib/rubocop/cop/mixin/method_preference.rb#9 def preferred_method(method); end - # source://rubocop//lib/rubocop/cop/mixin/method_preference.rb#13 + # source://rubocop/lib/rubocop/cop/mixin/method_preference.rb#13 def preferred_methods; end end -# source://rubocop//lib/rubocop/cop/metrics/utils/repeated_csend_discount.rb#5 +# source://rubocop/lib/rubocop/cop/metrics/utils/repeated_csend_discount.rb#5 module RuboCop::Cop::Metrics; end # Checks that the ABC size of methods is not higher than the @@ -26342,7 +26695,7 @@ module RuboCop::Cop::Metrics; end # render 'pages/search/page' # end # -# source://rubocop//lib/rubocop/cop/metrics/abc_size.rb#39 +# source://rubocop/lib/rubocop/cop/metrics/abc_size.rb#39 class RuboCop::Cop::Metrics::AbcSize < ::RuboCop::Cop::Base include ::RuboCop::Cop::AllowedMethods include ::RuboCop::Cop::AllowedPattern @@ -26351,11 +26704,11 @@ class RuboCop::Cop::Metrics::AbcSize < ::RuboCop::Cop::Base private - # source://rubocop//lib/rubocop/cop/metrics/abc_size.rb#47 + # source://rubocop/lib/rubocop/cop/metrics/abc_size.rb#47 def complexity(node); end end -# source://rubocop//lib/rubocop/cop/metrics/abc_size.rb#42 +# source://rubocop/lib/rubocop/cop/metrics/abc_size.rb#42 RuboCop::Cop::Metrics::AbcSize::MSG = T.let(T.unsafe(nil), String) # Checks if the length of a block exceeds some maximum value. @@ -26397,30 +26750,30 @@ RuboCop::Cop::Metrics::AbcSize::MSG = T.let(T.unsafe(nil), String) # ) # end # 4 points # -# source://rubocop//lib/rubocop/cop/metrics/block_length.rb#45 +# source://rubocop/lib/rubocop/cop/metrics/block_length.rb#45 class RuboCop::Cop::Metrics::BlockLength < ::RuboCop::Cop::Base include ::RuboCop::Cop::CodeLength include ::RuboCop::Cop::AllowedMethods include ::RuboCop::Cop::AllowedPattern - # source://rubocop//lib/rubocop/cop/metrics/block_length.rb#52 + # source://rubocop/lib/rubocop/cop/metrics/block_length.rb#52 def on_block(node); end - # source://rubocop//lib/rubocop/cop/metrics/block_length.rb#52 + # source://rubocop/lib/rubocop/cop/metrics/block_length.rb#52 def on_numblock(node); end private - # source://rubocop//lib/rubocop/cop/metrics/block_length.rb#81 + # source://rubocop/lib/rubocop/cop/metrics/block_length.rb#81 def cop_label; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/metrics/block_length.rb#63 + # source://rubocop/lib/rubocop/cop/metrics/block_length.rb#63 def method_receiver_excluded?(node); end end -# source://rubocop//lib/rubocop/cop/metrics/block_length.rb#50 +# source://rubocop/lib/rubocop/cop/metrics/block_length.rb#50 RuboCop::Cop::Metrics::BlockLength::LABEL = T.let(T.unsafe(nil), String) # Checks for excessive nesting of conditional and looping constructs. @@ -26432,44 +26785,44 @@ RuboCop::Cop::Metrics::BlockLength::LABEL = T.let(T.unsafe(nil), String) # # The maximum level of nesting allowed is configurable. # -# source://rubocop//lib/rubocop/cop/metrics/block_nesting.rb#14 +# source://rubocop/lib/rubocop/cop/metrics/block_nesting.rb#14 class RuboCop::Cop::Metrics::BlockNesting < ::RuboCop::Cop::Base - # source://rubocop//lib/rubocop/cop/exclude_limit.rb#11 + # source://rubocop/lib/rubocop/cop/exclude_limit.rb#11 def max=(value); end - # source://rubocop//lib/rubocop/cop/metrics/block_nesting.rb#19 + # source://rubocop/lib/rubocop/cop/metrics/block_nesting.rb#19 def on_new_investigation; end private - # source://rubocop//lib/rubocop/cop/metrics/block_nesting.rb#28 + # source://rubocop/lib/rubocop/cop/metrics/block_nesting.rb#28 def check_nesting_level(node, max, current_level); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/metrics/block_nesting.rb#52 + # source://rubocop/lib/rubocop/cop/metrics/block_nesting.rb#52 def consider_node?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/metrics/block_nesting.rb#62 + # source://rubocop/lib/rubocop/cop/metrics/block_nesting.rb#62 def count_blocks?; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/metrics/block_nesting.rb#44 + # source://rubocop/lib/rubocop/cop/metrics/block_nesting.rb#44 def count_if_block?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/metrics/block_nesting.rb#66 + # source://rubocop/lib/rubocop/cop/metrics/block_nesting.rb#66 def count_modifier_forms?; end - # source://rubocop//lib/rubocop/cop/metrics/block_nesting.rb#58 + # source://rubocop/lib/rubocop/cop/metrics/block_nesting.rb#58 def message(max); end end -# source://rubocop//lib/rubocop/cop/metrics/block_nesting.rb#15 +# source://rubocop/lib/rubocop/cop/metrics/block_nesting.rb#15 RuboCop::Cop::Metrics::BlockNesting::NESTING_BLOCKS = T.let(T.unsafe(nil), Array) # Checks if the length of a class exceeds some maximum value. @@ -26506,22 +26859,25 @@ RuboCop::Cop::Metrics::BlockNesting::NESTING_BLOCKS = T.let(T.unsafe(nil), Array # ) # end # 4 points # -# source://rubocop//lib/rubocop/cop/metrics/class_length.rb#40 +# source://rubocop/lib/rubocop/cop/metrics/class_length.rb#40 class RuboCop::Cop::Metrics::ClassLength < ::RuboCop::Cop::Base include ::RuboCop::Cop::CodeLength - # source://rubocop//lib/rubocop/cop/metrics/class_length.rb#53 + # source://rubocop/lib/rubocop/cop/metrics/class_length.rb#53 def on_casgn(node); end - # source://rubocop//lib/rubocop/cop/metrics/class_length.rb#43 + # source://rubocop/lib/rubocop/cop/metrics/class_length.rb#43 def on_class(node); end - # source://rubocop//lib/rubocop/cop/metrics/class_length.rb#47 + # source://rubocop/lib/rubocop/cop/metrics/class_length.rb#47 def on_sclass(node); end private - # source://rubocop//lib/rubocop/cop/metrics/class_length.rb#71 + # source://rubocop/lib/rubocop/cop/metrics/class_length.rb#67 + def find_expression_within_parent(parent); end + + # source://rubocop/lib/rubocop/cop/metrics/class_length.rb#63 def message(length, max_length); end end @@ -26569,30 +26925,30 @@ end # # Reading huge Set from external data source # SomeFramework.config_for(:something)[:numbers].to_set # -# source://rubocop//lib/rubocop/cop/metrics/collection_literal_length.rb#50 +# source://rubocop/lib/rubocop/cop/metrics/collection_literal_length.rb#50 class RuboCop::Cop::Metrics::CollectionLiteralLength < ::RuboCop::Cop::Base - # source://rubocop//lib/rubocop/cop/metrics/collection_literal_length.rb#55 + # source://rubocop/lib/rubocop/cop/metrics/collection_literal_length.rb#55 def on_array(node); end - # source://rubocop//lib/rubocop/cop/metrics/collection_literal_length.rb#55 + # source://rubocop/lib/rubocop/cop/metrics/collection_literal_length.rb#55 def on_hash(node); end - # source://rubocop//lib/rubocop/cop/metrics/collection_literal_length.rb#60 + # source://rubocop/lib/rubocop/cop/metrics/collection_literal_length.rb#60 def on_index(node); end - # source://rubocop//lib/rubocop/cop/metrics/collection_literal_length.rb#64 + # source://rubocop/lib/rubocop/cop/metrics/collection_literal_length.rb#64 def on_send(node); end private - # source://rubocop//lib/rubocop/cop/metrics/collection_literal_length.rb#70 + # source://rubocop/lib/rubocop/cop/metrics/collection_literal_length.rb#70 def collection_threshold; end end -# source://rubocop//lib/rubocop/cop/metrics/collection_literal_length.rb#51 +# source://rubocop/lib/rubocop/cop/metrics/collection_literal_length.rb#51 RuboCop::Cop::Metrics::CollectionLiteralLength::MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/metrics/collection_literal_length.rb#53 +# source://rubocop/lib/rubocop/cop/metrics/collection_literal_length.rb#53 RuboCop::Cop::Metrics::CollectionLiteralLength::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Checks that the cyclomatic complexity of methods is not higher @@ -26625,7 +26981,7 @@ RuboCop::Cop::Metrics::CollectionLiteralLength::RESTRICT_ON_SEND = T.let(T.unsaf # self # end # total: 6 # -# source://rubocop//lib/rubocop/cop/metrics/cyclomatic_complexity.rb#35 +# 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 @@ -26635,19 +26991,19 @@ class RuboCop::Cop::Metrics::CyclomaticComplexity < ::RuboCop::Cop::Base private - # source://rubocop//lib/rubocop/cop/metrics/cyclomatic_complexity.rb#45 + # 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#52 + # 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#40 +# 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#39 +# 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. @@ -26687,31 +27043,31 @@ RuboCop::Cop::Metrics::CyclomaticComplexity::MSG = T.let(T.unsafe(nil), String) # ) # end # 4 points # -# source://rubocop//lib/rubocop/cop/metrics/method_length.rb#43 +# source://rubocop/lib/rubocop/cop/metrics/method_length.rb#43 class RuboCop::Cop::Metrics::MethodLength < ::RuboCop::Cop::Base include ::RuboCop::Cop::CodeLength include ::RuboCop::Cop::AllowedMethods include ::RuboCop::Cop::AllowedPattern - # source://rubocop//lib/rubocop/cop/metrics/method_length.rb#57 + # source://rubocop/lib/rubocop/cop/metrics/method_length.rb#57 def on_block(node); end - # source://rubocop//lib/rubocop/cop/metrics/method_length.rb#50 + # source://rubocop/lib/rubocop/cop/metrics/method_length.rb#50 def on_def(node); end - # source://rubocop//lib/rubocop/cop/metrics/method_length.rb#50 + # source://rubocop/lib/rubocop/cop/metrics/method_length.rb#50 def on_defs(node); end - # source://rubocop//lib/rubocop/cop/metrics/method_length.rb#57 + # source://rubocop/lib/rubocop/cop/metrics/method_length.rb#57 def on_numblock(node); end private - # source://rubocop//lib/rubocop/cop/metrics/method_length.rb#66 + # source://rubocop/lib/rubocop/cop/metrics/method_length.rb#66 def cop_label; end end -# source://rubocop//lib/rubocop/cop/metrics/method_length.rb#48 +# source://rubocop/lib/rubocop/cop/metrics/method_length.rb#48 RuboCop::Cop::Metrics::MethodLength::LABEL = T.let(T.unsafe(nil), String) # Checks if the length of a module exceeds some maximum value. @@ -26746,22 +27102,22 @@ RuboCop::Cop::Metrics::MethodLength::LABEL = T.let(T.unsafe(nil), String) # ) # end # 4 points # -# source://rubocop//lib/rubocop/cop/metrics/module_length.rb#38 +# source://rubocop/lib/rubocop/cop/metrics/module_length.rb#38 class RuboCop::Cop::Metrics::ModuleLength < ::RuboCop::Cop::Base include ::RuboCop::Cop::CodeLength - # source://rubocop//lib/rubocop/cop/metrics/module_length.rb#52 + # source://rubocop/lib/rubocop/cop/metrics/module_length.rb#52 def module_definition?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/metrics/module_length.rb#45 + # source://rubocop/lib/rubocop/cop/metrics/module_length.rb#45 def on_casgn(node); end - # source://rubocop//lib/rubocop/cop/metrics/module_length.rb#41 + # source://rubocop/lib/rubocop/cop/metrics/module_length.rb#41 def on_module(node); end private - # source://rubocop//lib/rubocop/cop/metrics/module_length.rb#56 + # source://rubocop/lib/rubocop/cop/metrics/module_length.rb#56 def message(length, max_length); end end @@ -26824,53 +27180,53 @@ end # def foo(a = 1, b = 2, c = 3) # end # -# source://rubocop//lib/rubocop/cop/metrics/parameter_lists.rb#70 +# source://rubocop/lib/rubocop/cop/metrics/parameter_lists.rb#70 class RuboCop::Cop::Metrics::ParameterLists < ::RuboCop::Cop::Base - # source://rubocop//lib/rubocop/cop/metrics/parameter_lists.rb#121 + # source://rubocop/lib/rubocop/cop/metrics/parameter_lists.rb#121 def argument_to_lambda_or_proc?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/exclude_limit.rb#11 + # source://rubocop/lib/rubocop/cop/exclude_limit.rb#11 def max=(value); end - # source://rubocop//lib/rubocop/cop/exclude_limit.rb#11 + # source://rubocop/lib/rubocop/cop/exclude_limit.rb#11 def max_optional_parameters=(value); end - # source://rubocop//lib/rubocop/cop/metrics/parameter_lists.rb#104 + # source://rubocop/lib/rubocop/cop/metrics/parameter_lists.rb#104 def on_args(node); end - # source://rubocop//lib/rubocop/cop/metrics/parameter_lists.rb#90 + # source://rubocop/lib/rubocop/cop/metrics/parameter_lists.rb#90 def on_def(node); end - # source://rubocop//lib/rubocop/cop/metrics/parameter_lists.rb#90 + # source://rubocop/lib/rubocop/cop/metrics/parameter_lists.rb#90 def on_defs(node); end - # source://rubocop//lib/rubocop/cop/metrics/parameter_lists.rb#81 + # source://rubocop/lib/rubocop/cop/metrics/parameter_lists.rb#81 def struct_new_or_data_define_block?(param0 = T.unsafe(nil)); end private - # source://rubocop//lib/rubocop/cop/metrics/parameter_lists.rb#125 + # source://rubocop/lib/rubocop/cop/metrics/parameter_lists.rb#125 def args_count(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/metrics/parameter_lists.rb#141 + # source://rubocop/lib/rubocop/cop/metrics/parameter_lists.rb#141 def count_keyword_args?; end - # source://rubocop//lib/rubocop/cop/metrics/parameter_lists.rb#137 + # source://rubocop/lib/rubocop/cop/metrics/parameter_lists.rb#137 def max_optional_parameters; end - # source://rubocop//lib/rubocop/cop/metrics/parameter_lists.rb#133 + # source://rubocop/lib/rubocop/cop/metrics/parameter_lists.rb#133 def max_params; end end -# source://rubocop//lib/rubocop/cop/metrics/parameter_lists.rb#74 +# source://rubocop/lib/rubocop/cop/metrics/parameter_lists.rb#74 RuboCop::Cop::Metrics::ParameterLists::MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/metrics/parameter_lists.rb#77 +# source://rubocop/lib/rubocop/cop/metrics/parameter_lists.rb#77 RuboCop::Cop::Metrics::ParameterLists::NAMED_KEYWORD_TYPES = T.let(T.unsafe(nil), Array) -# source://rubocop//lib/rubocop/cop/metrics/parameter_lists.rb#75 +# source://rubocop/lib/rubocop/cop/metrics/parameter_lists.rb#75 RuboCop::Cop::Metrics::ParameterLists::OPTIONAL_PARAMETERS_MSG = T.let(T.unsafe(nil), String) # Tries to produce a complexity score that's a measure of the @@ -26897,21 +27253,21 @@ RuboCop::Cop::Metrics::ParameterLists::OPTIONAL_PARAMETERS_MSG = T.let(T.unsafe( # end # === # end # 7 complexity points # -# source://rubocop//lib/rubocop/cop/metrics/perceived_complexity.rb#29 +# source://rubocop/lib/rubocop/cop/metrics/perceived_complexity.rb#29 class RuboCop::Cop::Metrics::PerceivedComplexity < ::RuboCop::Cop::Metrics::CyclomaticComplexity private - # source://rubocop//lib/rubocop/cop/metrics/perceived_complexity.rb#36 + # source://rubocop/lib/rubocop/cop/metrics/perceived_complexity.rb#36 def complexity_score_for(node); end end -# source://rubocop//lib/rubocop/cop/metrics/perceived_complexity.rb#32 +# source://rubocop/lib/rubocop/cop/metrics/perceived_complexity.rb#32 RuboCop::Cop::Metrics::PerceivedComplexity::COUNTED_NODES = T.let(T.unsafe(nil), Array) -# source://rubocop//lib/rubocop/cop/metrics/perceived_complexity.rb#30 +# source://rubocop/lib/rubocop/cop/metrics/perceived_complexity.rb#30 RuboCop::Cop::Metrics::PerceivedComplexity::MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/metrics/utils/repeated_csend_discount.rb#6 +# source://rubocop/lib/rubocop/cop/metrics/utils/repeated_csend_discount.rb#6 module RuboCop::Cop::Metrics::Utils; end # > ABC is .. a software size metric .. computed by counting the number @@ -26921,7 +27277,7 @@ module RuboCop::Cop::Metrics::Utils; end # We separate the *calculator* from the *cop* so that the calculation, # the formula itself, is easier to test. # -# source://rubocop//lib/rubocop/cop/metrics/utils/abc_size_calculator.rb#13 +# source://rubocop/lib/rubocop/cop/metrics/utils/abc_size_calculator.rb#13 class RuboCop::Cop::Metrics::Utils::AbcSizeCalculator include ::RuboCop::AST::Sexp include ::RuboCop::Cop::Metrics::Utils::RepeatedAttributeDiscount @@ -26930,68 +27286,68 @@ class RuboCop::Cop::Metrics::Utils::AbcSizeCalculator # @return [AbcSizeCalculator] a new instance of AbcSizeCalculator # - # source://rubocop//lib/rubocop/cop/metrics/utils/repeated_attribute_discount.rb#30 + # source://rubocop/lib/rubocop/cop/metrics/utils/repeated_attribute_discount.rb#30 def initialize(node, discount_repeated_attributes: T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/metrics/utils/abc_size_calculator.rb#42 + # source://rubocop/lib/rubocop/cop/metrics/utils/abc_size_calculator.rb#42 def calculate; end - # source://rubocop//lib/rubocop/cop/metrics/utils/repeated_attribute_discount.rb#53 + # source://rubocop/lib/rubocop/cop/metrics/utils/repeated_attribute_discount.rb#53 def calculate_node(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/metrics/utils/abc_size_calculator.rb#65 + # source://rubocop/lib/rubocop/cop/metrics/utils/abc_size_calculator.rb#65 def else_branch?(node); end - # source://rubocop//lib/rubocop/cop/metrics/utils/repeated_attribute_discount.rb#47 + # source://rubocop/lib/rubocop/cop/metrics/utils/repeated_attribute_discount.rb#47 def evaluate_branch_nodes(node); end - # source://rubocop//lib/rubocop/cop/metrics/utils/abc_size_calculator.rb#60 + # source://rubocop/lib/rubocop/cop/metrics/utils/abc_size_calculator.rb#60 def evaluate_condition_node(node); end private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/metrics/utils/abc_size_calculator.rb#127 + # source://rubocop/lib/rubocop/cop/metrics/utils/abc_size_calculator.rb#127 def argument?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/metrics/utils/abc_size_calculator.rb#86 + # source://rubocop/lib/rubocop/cop/metrics/utils/abc_size_calculator.rb#86 def assignment?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/metrics/utils/abc_size_calculator.rb#123 + # source://rubocop/lib/rubocop/cop/metrics/utils/abc_size_calculator.rb#123 def branch?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/metrics/utils/abc_size_calculator.rb#119 + # source://rubocop/lib/rubocop/cop/metrics/utils/abc_size_calculator.rb#119 def capturing_variable?(name); end - # source://rubocop//lib/rubocop/cop/metrics/utils/abc_size_calculator.rb#95 + # source://rubocop/lib/rubocop/cop/metrics/utils/abc_size_calculator.rb#95 def compound_assignment(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/metrics/utils/abc_size_calculator.rb#131 + # source://rubocop/lib/rubocop/cop/metrics/utils/abc_size_calculator.rb#131 def condition?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/metrics/utils/abc_size_calculator.rb#108 + # source://rubocop/lib/rubocop/cop/metrics/utils/abc_size_calculator.rb#108 def simple_assignment?(node); end # @yield [node] # - # source://rubocop//lib/rubocop/cop/metrics/utils/abc_size_calculator.rb#71 + # source://rubocop/lib/rubocop/cop/metrics/utils/abc_size_calculator.rb#71 def visit_depth_last(node, &block); end class << self - # source://rubocop//lib/rubocop/cop/metrics/utils/abc_size_calculator.rb#30 + # source://rubocop/lib/rubocop/cop/metrics/utils/abc_size_calculator.rb#30 def calculate(node, discount_repeated_attributes: T.unsafe(nil)); end end end @@ -27000,19 +27356,19 @@ end # > function call, class method call .. # > http://c2.com/cgi/wiki?AbcMetric # -# source://rubocop//lib/rubocop/cop/metrics/utils/abc_size_calculator.rb#21 +# source://rubocop/lib/rubocop/cop/metrics/utils/abc_size_calculator.rb#21 RuboCop::Cop::Metrics::Utils::AbcSizeCalculator::BRANCH_NODES = T.let(T.unsafe(nil), Array) # > Condition -- a logical/Boolean test, == != <= >= < > else case # > default try catch ? and unary conditionals. # > http://c2.com/cgi/wiki?AbcMetric # -# source://rubocop//lib/rubocop/cop/metrics/utils/abc_size_calculator.rb#26 +# source://rubocop/lib/rubocop/cop/metrics/utils/abc_size_calculator.rb#26 RuboCop::Cop::Metrics::Utils::AbcSizeCalculator::CONDITION_NODES = T.let(T.unsafe(nil), Array) # Helps to calculate code length for the provided node. # -# source://rubocop//lib/rubocop/cop/metrics/utils/code_length_calculator.rb#8 +# source://rubocop/lib/rubocop/cop/metrics/utils/code_length_calculator.rb#8 class RuboCop::Cop::Metrics::Utils::CodeLengthCalculator include ::RuboCop::PathUtil include ::RuboCop::Cop::Util @@ -27020,106 +27376,106 @@ class RuboCop::Cop::Metrics::Utils::CodeLengthCalculator # @return [CodeLengthCalculator] a new instance of CodeLengthCalculator # - # source://rubocop//lib/rubocop/cop/metrics/utils/code_length_calculator.rb#16 + # source://rubocop/lib/rubocop/cop/metrics/utils/code_length_calculator.rb#16 def initialize(node, processed_source, count_comments: T.unsafe(nil), foldable_types: T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/metrics/utils/code_length_calculator.rb#24 + # source://rubocop/lib/rubocop/cop/metrics/utils/code_length_calculator.rb#24 def calculate; end private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/metrics/utils/code_length_calculator.rb#182 + # source://rubocop/lib/rubocop/cop/metrics/utils/code_length_calculator.rb#181 def another_args?(node); end - # source://rubocop//lib/rubocop/cop/metrics/utils/code_length_calculator.rb#42 + # source://rubocop/lib/rubocop/cop/metrics/utils/code_length_calculator.rb#42 def build_foldable_checks(types); end - # source://rubocop//lib/rubocop/cop/metrics/utils/code_length_calculator.rb#90 + # source://rubocop/lib/rubocop/cop/metrics/utils/code_length_calculator.rb#90 def classlike_code_length(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/metrics/utils/code_length_calculator.rb#138 + # source://rubocop/lib/rubocop/cop/metrics/utils/code_length_calculator.rb#138 def classlike_node?(node); end - # source://rubocop//lib/rubocop/cop/metrics/utils/code_length_calculator.rb#66 + # source://rubocop/lib/rubocop/cop/metrics/utils/code_length_calculator.rb#66 def code_length(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/metrics/utils/code_length_calculator.rb#163 + # source://rubocop/lib/rubocop/cop/metrics/utils/code_length_calculator.rb#162 def count_comments?; end - # source://rubocop//lib/rubocop/cop/metrics/utils/code_length_calculator.rb#126 + # source://rubocop/lib/rubocop/cop/metrics/utils/code_length_calculator.rb#126 def each_top_level_descendant(node, types, &block); end - # source://rubocop//lib/rubocop/cop/metrics/utils/code_length_calculator.rb#146 + # source://rubocop/lib/rubocop/cop/metrics/utils/code_length_calculator.rb#146 def extract_body(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/metrics/utils/code_length_calculator.rb#142 + # source://rubocop/lib/rubocop/cop/metrics/utils/code_length_calculator.rb#142 def foldable_node?(node); end - # source://rubocop//lib/rubocop/cop/metrics/utils/code_length_calculator.rb#121 + # source://rubocop/lib/rubocop/cop/metrics/utils/code_length_calculator.rb#121 def heredoc_length(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/metrics/utils/code_length_calculator.rb#86 + # source://rubocop/lib/rubocop/cop/metrics/utils/code_length_calculator.rb#86 def heredoc_node?(node); end # Returns true for lines that shall not be included in the count. # # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/metrics/utils/code_length_calculator.rb#159 + # source://rubocop/lib/rubocop/cop/metrics/utils/code_length_calculator.rb#158 def irrelevant_line?(source_line); end - # source://rubocop//lib/rubocop/cop/metrics/utils/code_length_calculator.rb#110 + # source://rubocop/lib/rubocop/cop/metrics/utils/code_length_calculator.rb#110 def line_numbers_of_inner_nodes(node, *types); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/metrics/utils/code_length_calculator.rb#106 + # source://rubocop/lib/rubocop/cop/metrics/utils/code_length_calculator.rb#106 def namespace_module?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/metrics/utils/code_length_calculator.rb#186 + # source://rubocop/lib/rubocop/cop/metrics/utils/code_length_calculator.rb#185 def node_with_heredoc?(node); end - # source://rubocop//lib/rubocop/cop/metrics/utils/code_length_calculator.rb#60 + # source://rubocop/lib/rubocop/cop/metrics/utils/code_length_calculator.rb#60 def normalize_foldable_types(types); end - # source://rubocop//lib/rubocop/cop/metrics/utils/code_length_calculator.rb#167 + # source://rubocop/lib/rubocop/cop/metrics/utils/code_length_calculator.rb#166 def omit_length(descendant); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/metrics/utils/code_length_calculator.rb#178 + # source://rubocop/lib/rubocop/cop/metrics/utils/code_length_calculator.rb#177 def parenthesized?(node); end - # source://rubocop//lib/rubocop/cop/metrics/utils/code_length_calculator.rb#190 + # source://rubocop/lib/rubocop/cop/metrics/utils/code_length_calculator.rb#189 def source_from_node_with_heredoc(node); end end -# source://rubocop//lib/rubocop/cop/metrics/utils/code_length_calculator.rb#13 +# source://rubocop/lib/rubocop/cop/metrics/utils/code_length_calculator.rb#13 RuboCop::Cop::Metrics::Utils::CodeLengthCalculator::CLASSLIKE_TYPES = T.let(T.unsafe(nil), Array) -# source://rubocop//lib/rubocop/cop/metrics/utils/code_length_calculator.rb#12 +# source://rubocop/lib/rubocop/cop/metrics/utils/code_length_calculator.rb#12 RuboCop::Cop::Metrics::Utils::CodeLengthCalculator::FOLDABLE_TYPES = T.let(T.unsafe(nil), Array) # Used to identify iterating blocks like `.map{}` and `.map(&:...)` # -# source://rubocop//lib/rubocop/cop/metrics/utils/iterating_block.rb#8 +# source://rubocop/lib/rubocop/cop/metrics/utils/iterating_block.rb#8 module RuboCop::Cop::Metrics::Utils::IteratingBlock # Returns the name of the method called with a block # if node is a block node, or a block-pass node. # - # source://rubocop//lib/rubocop/cop/metrics/utils/iterating_block.rb#37 + # source://rubocop/lib/rubocop/cop/metrics/utils/iterating_block.rb#37 def block_method_name(node); end # Returns nil if node is neither a block node or a block-pass node. @@ -27127,18 +27483,18 @@ module RuboCop::Cop::Metrics::Utils::IteratingBlock # # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/metrics/utils/iterating_block.rb#53 + # source://rubocop/lib/rubocop/cop/metrics/utils/iterating_block.rb#53 def iterating_block?(node); end # Returns true iff name is a known iterating type (e.g. :each, :transform_values) # # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/metrics/utils/iterating_block.rb#47 + # source://rubocop/lib/rubocop/cop/metrics/utils/iterating_block.rb#47 def iterating_method?(name); end end -# source://rubocop//lib/rubocop/cop/metrics/utils/iterating_block.rb#33 +# source://rubocop/lib/rubocop/cop/metrics/utils/iterating_block.rb#33 RuboCop::Cop::Metrics::Utils::IteratingBlock::KNOWN_ITERATING_METHODS = T.let(T.unsafe(nil), Set) # Identifies repetitions `{c}send` calls with no arguments: @@ -27159,7 +27515,7 @@ RuboCop::Cop::Metrics::Utils::IteratingBlock::KNOWN_ITERATING_METHODS = T.let(T. # # @api private # -# source://rubocop//lib/rubocop/cop/metrics/utils/repeated_attribute_discount.rb#25 +# source://rubocop/lib/rubocop/cop/metrics/utils/repeated_attribute_discount.rb#25 module RuboCop::Cop::Metrics::Utils::RepeatedAttributeDiscount include ::RuboCop::AST::Sexp extend ::RuboCop::AST::NodePattern::Macros @@ -27168,29 +27524,29 @@ module RuboCop::Cop::Metrics::Utils::RepeatedAttributeDiscount # # @api private # - # source://rubocop//lib/rubocop/cop/metrics/utils/repeated_attribute_discount.rb#30 + # source://rubocop/lib/rubocop/cop/metrics/utils/repeated_attribute_discount.rb#30 def initialize(node, discount_repeated_attributes: T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/metrics/utils/repeated_attribute_discount.rb#61 + # source://rubocop/lib/rubocop/cop/metrics/utils/repeated_attribute_discount.rb#61 def attribute_call?(param0 = T.unsafe(nil)); end # @api private # - # source://rubocop//lib/rubocop/cop/metrics/utils/repeated_attribute_discount.rb#53 + # source://rubocop/lib/rubocop/cop/metrics/utils/repeated_attribute_discount.rb#53 def calculate_node(node); end # @api private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/metrics/utils/repeated_attribute_discount.rb#43 + # source://rubocop/lib/rubocop/cop/metrics/utils/repeated_attribute_discount.rb#43 def discount_repeated_attributes?; end # @api private # - # source://rubocop//lib/rubocop/cop/metrics/utils/repeated_attribute_discount.rb#47 + # source://rubocop/lib/rubocop/cop/metrics/utils/repeated_attribute_discount.rb#47 def evaluate_branch_nodes(node); end - # source://rubocop//lib/rubocop/cop/metrics/utils/repeated_attribute_discount.rb#92 + # source://rubocop/lib/rubocop/cop/metrics/utils/repeated_attribute_discount.rb#92 def root_node?(param0 = T.unsafe(nil)); end private @@ -27198,7 +27554,7 @@ module RuboCop::Cop::Metrics::Utils::RepeatedAttributeDiscount # @api private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/metrics/utils/repeated_attribute_discount.rb#66 + # source://rubocop/lib/rubocop/cop/metrics/utils/repeated_attribute_discount.rb#66 def discount_repeated_attribute?(send_node); end # Returns the "known_attributes" for the `node` by walking the receiver tree @@ -27209,25 +27565,25 @@ module RuboCop::Cop::Metrics::Utils::RepeatedAttributeDiscount # # @api private # - # source://rubocop//lib/rubocop/cop/metrics/utils/repeated_attribute_discount.rb#103 + # source://rubocop/lib/rubocop/cop/metrics/utils/repeated_attribute_discount.rb#103 def find_attributes(node, &block); end # or `nil` if it is not a setter. # # @api private # - # source://rubocop//lib/rubocop/cop/metrics/utils/repeated_attribute_discount.rb#126 + # source://rubocop/lib/rubocop/cop/metrics/utils/repeated_attribute_discount.rb#126 def setter_to_getter(node); end # @api private # - # source://rubocop//lib/rubocop/cop/metrics/utils/repeated_attribute_discount.rb#80 + # source://rubocop/lib/rubocop/cop/metrics/utils/repeated_attribute_discount.rb#80 def update_repeated_attribute(node); end end # @api private # -# source://rubocop//lib/rubocop/cop/metrics/utils/repeated_attribute_discount.rb#117 +# source://rubocop/lib/rubocop/cop/metrics/utils/repeated_attribute_discount.rb#117 RuboCop::Cop::Metrics::Utils::RepeatedAttributeDiscount::VAR_SETTER_TO_GETTER = T.let(T.unsafe(nil), Hash) # Identifies repetitions `&.` on the same variable: @@ -27239,183 +27595,183 @@ RuboCop::Cop::Metrics::Utils::RepeatedAttributeDiscount::VAR_SETTER_TO_GETTER = # # @api private # -# source://rubocop//lib/rubocop/cop/metrics/utils/repeated_csend_discount.rb#15 +# source://rubocop/lib/rubocop/cop/metrics/utils/repeated_csend_discount.rb#15 module RuboCop::Cop::Metrics::Utils::RepeatedCsendDiscount # @api private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/metrics/utils/repeated_csend_discount.rb#20 + # source://rubocop/lib/rubocop/cop/metrics/utils/repeated_csend_discount.rb#20 def discount_for_repeated_csend?(csend_node); end # @api private # - # source://rubocop//lib/rubocop/cop/metrics/utils/repeated_csend_discount.rb#34 + # source://rubocop/lib/rubocop/cop/metrics/utils/repeated_csend_discount.rb#34 def reset_on_lvasgn(node); end # @api private # - # source://rubocop//lib/rubocop/cop/metrics/utils/repeated_csend_discount.rb#16 + # source://rubocop/lib/rubocop/cop/metrics/utils/repeated_csend_discount.rb#16 def reset_repeated_csend; end end -# source://rubocop//lib/rubocop/cop/migration/department_name.rb#5 +# source://rubocop/lib/rubocop/cop/migration/department_name.rb#5 module RuboCop::Cop::Migration; end # department name. # -# source://rubocop//lib/rubocop/cop/migration/department_name.rb#8 +# source://rubocop/lib/rubocop/cop/migration/department_name.rb#8 class RuboCop::Cop::Migration::DepartmentName < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/migration/department_name.rb#21 + # source://rubocop/lib/rubocop/cop/migration/department_name.rb#21 def on_new_investigation; end private - # source://rubocop//lib/rubocop/cop/migration/department_name.rb#47 + # source://rubocop/lib/rubocop/cop/migration/department_name.rb#47 def check_cop_name(name, comment, offset); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/migration/department_name.rb#69 + # source://rubocop/lib/rubocop/cop/migration/department_name.rb#69 def contain_unexpected_character_for_department_name?(name); end - # source://rubocop//lib/rubocop/cop/migration/department_name.rb#43 + # source://rubocop/lib/rubocop/cop/migration/department_name.rb#43 def disable_comment_offset; end - # source://rubocop//lib/rubocop/cop/migration/department_name.rb#73 + # source://rubocop/lib/rubocop/cop/migration/department_name.rb#73 def qualified_legacy_cop_name(cop_name); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/migration/department_name.rb#63 + # source://rubocop/lib/rubocop/cop/migration/department_name.rb#63 def valid_content_token?(content_token); end end -# source://rubocop//lib/rubocop/cop/migration/department_name.rb#14 +# source://rubocop/lib/rubocop/cop/migration/department_name.rb#14 RuboCop::Cop::Migration::DepartmentName::DISABLE_COMMENT_FORMAT = T.let(T.unsafe(nil), Regexp) # The token that makes up a disable comment. # `DepartmentName/CopName` or` all`. # -# source://rubocop//lib/rubocop/cop/migration/department_name.rb#19 +# source://rubocop/lib/rubocop/cop/migration/department_name.rb#19 RuboCop::Cop::Migration::DepartmentName::DISABLING_COPS_CONTENT_TOKEN = T.let(T.unsafe(nil), Regexp) -# source://rubocop//lib/rubocop/cop/migration/department_name.rb#12 +# source://rubocop/lib/rubocop/cop/migration/department_name.rb#12 RuboCop::Cop::Migration::DepartmentName::MSG = T.let(T.unsafe(nil), String) # Common functionality for checking minimum body length. # -# source://rubocop//lib/rubocop/cop/mixin/min_body_length.rb#6 +# source://rubocop/lib/rubocop/cop/mixin/min_body_length.rb#6 module RuboCop::Cop::MinBodyLength private - # source://rubocop//lib/rubocop/cop/mixin/min_body_length.rb#13 + # source://rubocop/lib/rubocop/cop/mixin/min_body_length.rb#13 def min_body_length; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/mixin/min_body_length.rb#9 + # source://rubocop/lib/rubocop/cop/mixin/min_body_length.rb#9 def min_body_length?(node); end end # Common functionality for checking minimum branches count. # -# source://rubocop//lib/rubocop/cop/mixin/min_branches_count.rb#6 +# source://rubocop/lib/rubocop/cop/mixin/min_branches_count.rb#6 module RuboCop::Cop::MinBranchesCount private - # source://rubocop//lib/rubocop/cop/mixin/min_branches_count.rb#29 + # source://rubocop/lib/rubocop/cop/mixin/min_branches_count.rb#29 def if_conditional_branches(node, branches = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/mixin/min_branches_count.rb#22 + # source://rubocop/lib/rubocop/cop/mixin/min_branches_count.rb#22 def min_branches_count; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/mixin/min_branches_count.rb#9 + # source://rubocop/lib/rubocop/cop/mixin/min_branches_count.rb#9 def min_branches_count?(node); end end # Common code for indenting the first elements in multiline # array literals, hash literals, and method definitions. # -# source://rubocop//lib/rubocop/cop/mixin/multiline_element_indentation.rb#7 +# source://rubocop/lib/rubocop/cop/mixin/multiline_element_indentation.rb#7 module RuboCop::Cop::MultilineElementIndentation private - # source://rubocop//lib/rubocop/cop/mixin/multiline_element_indentation.rb#42 + # source://rubocop/lib/rubocop/cop/mixin/multiline_element_indentation.rb#42 def check_expected_style(styles); end - # source://rubocop//lib/rubocop/cop/mixin/multiline_element_indentation.rb#26 + # source://rubocop/lib/rubocop/cop/mixin/multiline_element_indentation.rb#26 def check_first(first, left_brace, left_parenthesis, offset); end - # source://rubocop//lib/rubocop/cop/mixin/multiline_element_indentation.rb#80 + # source://rubocop/lib/rubocop/cop/mixin/multiline_element_indentation.rb#80 def detected_styles(actual_column, offset, left_parenthesis, left_brace); end - # source://rubocop//lib/rubocop/cop/mixin/multiline_element_indentation.rb#85 + # source://rubocop/lib/rubocop/cop/mixin/multiline_element_indentation.rb#85 def detected_styles_for_column(column, left_parenthesis, left_brace); end - # source://rubocop//lib/rubocop/cop/mixin/multiline_element_indentation.rb#10 + # source://rubocop/lib/rubocop/cop/mixin/multiline_element_indentation.rb#10 def each_argument_node(node, type); end - # source://rubocop//lib/rubocop/cop/mixin/multiline_element_indentation.rb#66 + # source://rubocop/lib/rubocop/cop/mixin/multiline_element_indentation.rb#66 def hash_pair_where_value_beginning_with(left_brace, first); end - # source://rubocop//lib/rubocop/cop/mixin/multiline_element_indentation.rb#98 + # source://rubocop/lib/rubocop/cop/mixin/multiline_element_indentation.rb#98 def incorrect_style_detected(styles, first, base_column_type); end - # source://rubocop//lib/rubocop/cop/mixin/multiline_element_indentation.rb#50 + # source://rubocop/lib/rubocop/cop/mixin/multiline_element_indentation.rb#50 def indent_base(left_brace, first, left_parenthesis); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/mixin/multiline_element_indentation.rb#72 + # source://rubocop/lib/rubocop/cop/mixin/multiline_element_indentation.rb#72 def key_and_value_begin_on_same_line?(pair); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/mixin/multiline_element_indentation.rb#76 + # source://rubocop/lib/rubocop/cop/mixin/multiline_element_indentation.rb#76 def right_sibling_begins_on_subsequent_line?(pair); end end # Common functionality for checking for a line break before each # element in a multi-line collection. # -# source://rubocop//lib/rubocop/cop/mixin/multiline_element_line_breaks.rb#7 +# source://rubocop/lib/rubocop/cop/mixin/multiline_element_line_breaks.rb#7 module RuboCop::Cop::MultilineElementLineBreaks private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/mixin/multiline_element_line_breaks.rb#23 + # source://rubocop/lib/rubocop/cop/mixin/multiline_element_line_breaks.rb#23 def all_on_same_line?(nodes, ignore_last: T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/mixin/multiline_element_line_breaks.rb#10 + # source://rubocop/lib/rubocop/cop/mixin/multiline_element_line_breaks.rb#10 def check_line_breaks(_node, children, ignore_last: T.unsafe(nil)); end end # Common functionality for checking multiline method calls and binary # operations. # -# source://rubocop//lib/rubocop/cop/mixin/multiline_expression_indentation.rb#7 +# source://rubocop/lib/rubocop/cop/mixin/multiline_expression_indentation.rb#7 module RuboCop::Cop::MultilineExpressionIndentation - # source://rubocop//lib/rubocop/cop/mixin/multiline_expression_indentation.rb#14 + # source://rubocop/lib/rubocop/cop/mixin/multiline_expression_indentation.rb#14 def on_csend(node); end - # source://rubocop//lib/rubocop/cop/mixin/multiline_expression_indentation.rb#14 + # source://rubocop/lib/rubocop/cop/mixin/multiline_expression_indentation.rb#14 def on_send(node); end private - # source://rubocop//lib/rubocop/cop/mixin/multiline_expression_indentation.rb#132 + # source://rubocop/lib/rubocop/cop/mixin/multiline_expression_indentation.rb#130 def argument_in_method_call(node, kind); end - # source://rubocop//lib/rubocop/cop/mixin/multiline_expression_indentation.rb#188 + # source://rubocop/lib/rubocop/cop/mixin/multiline_expression_indentation.rb#186 def assignment_rhs(node); end - # source://rubocop//lib/rubocop/cop/mixin/multiline_expression_indentation.rb#65 + # source://rubocop/lib/rubocop/cop/mixin/multiline_expression_indentation.rb#65 def check(range, node, lhs, rhs); end # The correct indentation of `node` is usually `IndentationWidth`, with @@ -27435,37 +27791,37 @@ module RuboCop::Cop::MultilineExpressionIndentation # bar # normal indentation, not special # ``` # - # source://rubocop//lib/rubocop/cop/mixin/multiline_expression_indentation.rb#55 + # source://rubocop/lib/rubocop/cop/mixin/multiline_expression_indentation.rb#55 def correct_indentation(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/mixin/multiline_expression_indentation.rb#160 + # source://rubocop/lib/rubocop/cop/mixin/multiline_expression_indentation.rb#158 def disqualified_rhs?(candidate, ancestor); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/mixin/multiline_expression_indentation.rb#204 + # source://rubocop/lib/rubocop/cop/mixin/multiline_expression_indentation.rb#200 def grouped_expression?(node); end - # source://rubocop//lib/rubocop/cop/mixin/multiline_expression_indentation.rb#73 + # source://rubocop/lib/rubocop/cop/mixin/multiline_expression_indentation.rb#73 def incorrect_style_detected(range, node, lhs, rhs); end - # source://rubocop//lib/rubocop/cop/mixin/multiline_expression_indentation.rb#85 + # source://rubocop/lib/rubocop/cop/mixin/multiline_expression_indentation.rb#85 def indentation(node); end - # source://rubocop//lib/rubocop/cop/mixin/multiline_expression_indentation.rb#122 + # source://rubocop/lib/rubocop/cop/mixin/multiline_expression_indentation.rb#122 def indented_keyword_expression(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/mixin/multiline_expression_indentation.rb#208 + # source://rubocop/lib/rubocop/cop/mixin/multiline_expression_indentation.rb#204 def inside_arg_list_parentheses?(node, ancestor); end - # source://rubocop//lib/rubocop/cop/mixin/multiline_expression_indentation.rb#99 + # source://rubocop/lib/rubocop/cop/mixin/multiline_expression_indentation.rb#99 def keyword_message_tail(node); end - # source://rubocop//lib/rubocop/cop/mixin/multiline_expression_indentation.rb#107 + # source://rubocop/lib/rubocop/cop/mixin/multiline_expression_indentation.rb#107 def kw_node_with_special_indentation(node); end # In a chain of method calls, we regard the top call node as the base @@ -27474,23 +27830,23 @@ module RuboCop::Cop::MultilineExpressionIndentation # b c { block }. <-- b is indented relative to a # d <-- d is indented relative to a # - # source://rubocop//lib/rubocop/cop/mixin/multiline_expression_indentation.rb#32 + # source://rubocop/lib/rubocop/cop/mixin/multiline_expression_indentation.rb#32 def left_hand_side(lhs); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/mixin/multiline_expression_indentation.rb#198 + # source://rubocop/lib/rubocop/cop/mixin/multiline_expression_indentation.rb#194 def not_for_this_cop?(node); end - # source://rubocop//lib/rubocop/cop/mixin/multiline_expression_indentation.rb#89 + # source://rubocop/lib/rubocop/cop/mixin/multiline_expression_indentation.rb#89 def operation_description(node, rhs); end - # source://rubocop//lib/rubocop/cop/mixin/multiline_expression_indentation.rb#146 + # source://rubocop/lib/rubocop/cop/mixin/multiline_expression_indentation.rb#144 def part_of_assignment_rhs(node, candidate); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/mixin/multiline_expression_indentation.rb#184 + # source://rubocop/lib/rubocop/cop/mixin/multiline_expression_indentation.rb#182 def part_of_block_body?(candidate, block_node); end # Returns true if `node` is a conditional whose `body` and `condition` @@ -27498,51 +27854,51 @@ module RuboCop::Cop::MultilineExpressionIndentation # # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/mixin/multiline_expression_indentation.rb#217 + # source://rubocop/lib/rubocop/cop/mixin/multiline_expression_indentation.rb#213 def postfix_conditional?(node); end # The []= operator and setters (a.b = c) are parsed as :send nodes. # # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/mixin/multiline_expression_indentation.rb#176 + # source://rubocop/lib/rubocop/cop/mixin/multiline_expression_indentation.rb#174 def valid_method_rhs_candidate?(candidate, node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/mixin/multiline_expression_indentation.rb#165 + # source://rubocop/lib/rubocop/cop/mixin/multiline_expression_indentation.rb#163 def valid_rhs?(candidate, ancestor); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/mixin/multiline_expression_indentation.rb#180 + # source://rubocop/lib/rubocop/cop/mixin/multiline_expression_indentation.rb#178 def valid_rhs_candidate?(candidate, node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/mixin/multiline_expression_indentation.rb#221 + # source://rubocop/lib/rubocop/cop/mixin/multiline_expression_indentation.rb#217 def within_node?(inner, outer); end end -# source://rubocop//lib/rubocop/cop/mixin/multiline_expression_indentation.rb#11 +# source://rubocop/lib/rubocop/cop/mixin/multiline_expression_indentation.rb#11 RuboCop::Cop::MultilineExpressionIndentation::ASSIGNMENT_MESSAGE_TAIL = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/mixin/multiline_expression_indentation.rb#10 +# source://rubocop/lib/rubocop/cop/mixin/multiline_expression_indentation.rb#10 RuboCop::Cop::MultilineExpressionIndentation::DEFAULT_MESSAGE_TAIL = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/mixin/multiline_expression_indentation.rb#8 +# source://rubocop/lib/rubocop/cop/mixin/multiline_expression_indentation.rb#8 RuboCop::Cop::MultilineExpressionIndentation::KEYWORD_ANCESTOR_TYPES = T.let(T.unsafe(nil), Array) -# source://rubocop//lib/rubocop/cop/mixin/multiline_expression_indentation.rb#12 +# source://rubocop/lib/rubocop/cop/mixin/multiline_expression_indentation.rb#12 RuboCop::Cop::MultilineExpressionIndentation::KEYWORD_MESSAGE_TAIL = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/mixin/multiline_expression_indentation.rb#9 +# source://rubocop/lib/rubocop/cop/mixin/multiline_expression_indentation.rb#9 RuboCop::Cop::MultilineExpressionIndentation::UNALIGNED_RHS_TYPES = T.let(T.unsafe(nil), Array) # Autocorrection logic for the closing brace of a literal either # on the same line as the last contained elements, or a new line. # -# source://rubocop//lib/rubocop/cop/correctors/multiline_literal_brace_corrector.rb#7 +# source://rubocop/lib/rubocop/cop/correctors/multiline_literal_brace_corrector.rb#7 class RuboCop::Cop::MultilineLiteralBraceCorrector include ::RuboCop::Cop::ConfigurableEnforcedStyle include ::RuboCop::Cop::MultilineLiteralBraceLayout @@ -27550,60 +27906,60 @@ class RuboCop::Cop::MultilineLiteralBraceCorrector # @return [MultilineLiteralBraceCorrector] a new instance of MultilineLiteralBraceCorrector # - # source://rubocop//lib/rubocop/cop/correctors/multiline_literal_brace_corrector.rb#15 + # source://rubocop/lib/rubocop/cop/correctors/multiline_literal_brace_corrector.rb#15 def initialize(corrector, node, processed_source); end - # source://rubocop//lib/rubocop/cop/correctors/multiline_literal_brace_corrector.rb#21 + # source://rubocop/lib/rubocop/cop/correctors/multiline_literal_brace_corrector.rb#21 def call; end private - # source://rubocop//lib/rubocop/cop/correctors/multiline_literal_brace_corrector.rb#61 + # source://rubocop/lib/rubocop/cop/correctors/multiline_literal_brace_corrector.rb#61 def content_if_comment_present(corrector, node); end - # source://rubocop//lib/rubocop/cop/correctors/multiline_literal_brace_corrector.rb#51 + # source://rubocop/lib/rubocop/cop/correctors/multiline_literal_brace_corrector.rb#51 def correct_heredoc_argument_method_chain(corrector, end_range); end - # source://rubocop//lib/rubocop/cop/correctors/multiline_literal_brace_corrector.rb#46 + # source://rubocop/lib/rubocop/cop/correctors/multiline_literal_brace_corrector.rb#46 def correct_next_line_brace(corrector, end_range); end - # source://rubocop//lib/rubocop/cop/correctors/multiline_literal_brace_corrector.rb#42 + # source://rubocop/lib/rubocop/cop/correctors/multiline_literal_brace_corrector.rb#42 def correct_same_line_brace(corrector); end # Returns the value of attribute corrector. # - # source://rubocop//lib/rubocop/cop/correctors/multiline_literal_brace_corrector.rb#40 + # source://rubocop/lib/rubocop/cop/correctors/multiline_literal_brace_corrector.rb#40 def corrector; end - # source://rubocop//lib/rubocop/cop/correctors/multiline_literal_brace_corrector.rb#94 + # source://rubocop/lib/rubocop/cop/correctors/multiline_literal_brace_corrector.rb#94 def last_element_range_with_trailing_comma(node); end - # source://rubocop//lib/rubocop/cop/correctors/multiline_literal_brace_corrector.rb#103 + # source://rubocop/lib/rubocop/cop/correctors/multiline_literal_brace_corrector.rb#103 def last_element_trailing_comma_range(node); end # Returns the value of attribute node. # - # source://rubocop//lib/rubocop/cop/correctors/multiline_literal_brace_corrector.rb#40 + # source://rubocop/lib/rubocop/cop/correctors/multiline_literal_brace_corrector.rb#40 def node; end # Returns the value of attribute processed_source. # - # source://rubocop//lib/rubocop/cop/correctors/multiline_literal_brace_corrector.rb#40 + # source://rubocop/lib/rubocop/cop/correctors/multiline_literal_brace_corrector.rb#40 def processed_source; end - # source://rubocop//lib/rubocop/cop/correctors/multiline_literal_brace_corrector.rb#90 + # source://rubocop/lib/rubocop/cop/correctors/multiline_literal_brace_corrector.rb#90 def remove_trailing_content_of_comment(corrector, range); end - # source://rubocop//lib/rubocop/cop/correctors/multiline_literal_brace_corrector.rb#80 + # source://rubocop/lib/rubocop/cop/correctors/multiline_literal_brace_corrector.rb#80 def select_content_to_be_inserted_after_last_element(corrector, node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/correctors/multiline_literal_brace_corrector.rb#73 + # source://rubocop/lib/rubocop/cop/correctors/multiline_literal_brace_corrector.rb#73 def use_heredoc_argument_method_chain?(parent); end class << self - # source://rubocop//lib/rubocop/cop/correctors/multiline_literal_brace_corrector.rb#11 + # source://rubocop/lib/rubocop/cop/correctors/multiline_literal_brace_corrector.rb#11 def correct(corrector, node, processed_source); end end end @@ -27611,28 +27967,28 @@ end # Common functionality for checking the closing brace of a literal is # either on the same line as the last contained elements or a new line. # -# source://rubocop//lib/rubocop/cop/mixin/multiline_literal_brace_layout.rb#7 +# source://rubocop/lib/rubocop/cop/mixin/multiline_literal_brace_layout.rb#7 module RuboCop::Cop::MultilineLiteralBraceLayout include ::RuboCop::Cop::ConfigurableEnforcedStyle private - # source://rubocop//lib/rubocop/cop/mixin/multiline_literal_brace_layout.rb#34 + # source://rubocop/lib/rubocop/cop/mixin/multiline_literal_brace_layout.rb#34 def check(node); end - # source://rubocop//lib/rubocop/cop/mixin/multiline_literal_brace_layout.rb#12 + # source://rubocop/lib/rubocop/cop/mixin/multiline_literal_brace_layout.rb#12 def check_brace_layout(node); end - # source://rubocop//lib/rubocop/cop/mixin/multiline_literal_brace_layout.rb#42 + # source://rubocop/lib/rubocop/cop/mixin/multiline_literal_brace_layout.rb#42 def check_new_line(node); end - # source://rubocop//lib/rubocop/cop/mixin/multiline_literal_brace_layout.rb#50 + # source://rubocop/lib/rubocop/cop/mixin/multiline_literal_brace_layout.rb#50 def check_same_line(node); end - # source://rubocop//lib/rubocop/cop/mixin/multiline_literal_brace_layout.rb#58 + # source://rubocop/lib/rubocop/cop/mixin/multiline_literal_brace_layout.rb#58 def check_symmetrical(node); end - # source://rubocop//lib/rubocop/cop/mixin/multiline_literal_brace_layout.rb#86 + # source://rubocop/lib/rubocop/cop/mixin/multiline_literal_brace_layout.rb#86 def children(node); end # This method depends on the fact that we have guarded @@ -27640,22 +27996,22 @@ module RuboCop::Cop::MultilineLiteralBraceLayout # # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/mixin/multiline_literal_brace_layout.rb#98 + # source://rubocop/lib/rubocop/cop/mixin/multiline_literal_brace_layout.rb#98 def closing_brace_on_same_line?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/mixin/multiline_literal_brace_layout.rb#74 + # source://rubocop/lib/rubocop/cop/mixin/multiline_literal_brace_layout.rb#74 def empty_literal?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/mixin/multiline_literal_brace_layout.rb#82 + # source://rubocop/lib/rubocop/cop/mixin/multiline_literal_brace_layout.rb#82 def ignored_literal?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/mixin/multiline_literal_brace_layout.rb#78 + # source://rubocop/lib/rubocop/cop/mixin/multiline_literal_brace_layout.rb#78 def implicit_literal?(node); end # Starting with the parent node and recursively for the parent node's @@ -27685,7 +28041,7 @@ module RuboCop::Cop::MultilineLiteralBraceLayout # # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/mixin/multiline_literal_brace_layout.rb#126 + # source://rubocop/lib/rubocop/cop/mixin/multiline_literal_brace_layout.rb#126 def last_line_heredoc?(node, parent = T.unsafe(nil)); end # Returns true for the case @@ -27695,7 +28051,7 @@ module RuboCop::Cop::MultilineLiteralBraceLayout # # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/mixin/multiline_literal_brace_layout.rb#26 + # source://rubocop/lib/rubocop/cop/mixin/multiline_literal_brace_layout.rb#26 def new_line_needed_before_closing_brace?(node); end # This method depends on the fact that we have guarded @@ -27703,20 +28059,20 @@ module RuboCop::Cop::MultilineLiteralBraceLayout # # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/mixin/multiline_literal_brace_layout.rb#92 + # source://rubocop/lib/rubocop/cop/mixin/multiline_literal_brace_layout.rb#92 def opening_brace_on_same_line?(node); end end -# source://rubocop//lib/rubocop/cop/naming/accessor_method_name.rb#5 +# source://rubocop/lib/rubocop/cop/naming/accessor_method_name.rb#5 module RuboCop::Cop::Naming; end -# Makes sure that accessor methods are named properly. Applies -# to both instance and class methods. +# Avoid prefixing accessor method names with `get_` or `set_`. +# Applies to both instance and class methods. # -# NOTE: Offenses are only registered for methods with the expected -# arity. Getters (`get_attribute`) must have no arguments to be -# registered, and setters (`set_attribute(value)`) must have exactly -# one. +# NOTE: Method names starting with `get_` or `set_` only register an offense +# when the methods match the expected arity for getters and setters respectively. +# Getters (`get_attribute`) must have no arguments to be registered, +# and setters (`set_attribute(value)`) must have exactly one. # # @example # # bad @@ -27743,39 +28099,39 @@ module RuboCop::Cop::Naming; end # def set_value # end # -# source://rubocop//lib/rubocop/cop/naming/accessor_method_name.rb#38 +# source://rubocop/lib/rubocop/cop/naming/accessor_method_name.rb#38 class RuboCop::Cop::Naming::AccessorMethodName < ::RuboCop::Cop::Base - # source://rubocop//lib/rubocop/cop/naming/accessor_method_name.rb#42 + # source://rubocop/lib/rubocop/cop/naming/accessor_method_name.rb#42 def on_def(node); end - # source://rubocop//lib/rubocop/cop/naming/accessor_method_name.rb#42 + # source://rubocop/lib/rubocop/cop/naming/accessor_method_name.rb#42 def on_defs(node); end private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/naming/accessor_method_name.rb#66 + # source://rubocop/lib/rubocop/cop/naming/accessor_method_name.rb#66 def bad_reader_name?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/naming/accessor_method_name.rb#70 + # source://rubocop/lib/rubocop/cop/naming/accessor_method_name.rb#70 def bad_writer_name?(node); end - # source://rubocop//lib/rubocop/cop/naming/accessor_method_name.rb#54 + # source://rubocop/lib/rubocop/cop/naming/accessor_method_name.rb#54 def message(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/naming/accessor_method_name.rb#62 + # source://rubocop/lib/rubocop/cop/naming/accessor_method_name.rb#62 def proper_attribute_name?(node); end end -# source://rubocop//lib/rubocop/cop/naming/accessor_method_name.rb#39 +# source://rubocop/lib/rubocop/cop/naming/accessor_method_name.rb#39 RuboCop::Cop::Naming::AccessorMethodName::MSG_READER = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/naming/accessor_method_name.rb#40 +# source://rubocop/lib/rubocop/cop/naming/accessor_method_name.rb#40 RuboCop::Cop::Naming::AccessorMethodName::MSG_WRITER = T.let(T.unsafe(nil), String) # Checks for non-ascii characters in identifier and constant names. @@ -27823,31 +28179,31 @@ RuboCop::Cop::Naming::AccessorMethodName::MSG_WRITER = T.let(T.unsafe(nil), Stri # # FOÖ = "foo" # -# source://rubocop//lib/rubocop/cop/naming/ascii_identifiers.rb#53 +# source://rubocop/lib/rubocop/cop/naming/ascii_identifiers.rb#53 class RuboCop::Cop::Naming::AsciiIdentifiers < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp - # source://rubocop//lib/rubocop/cop/naming/ascii_identifiers.rb#59 + # source://rubocop/lib/rubocop/cop/naming/ascii_identifiers.rb#59 def on_new_investigation; end private - # source://rubocop//lib/rubocop/cop/naming/ascii_identifiers.rb#84 + # source://rubocop/lib/rubocop/cop/naming/ascii_identifiers.rb#84 def first_non_ascii_chars(string); end - # source://rubocop//lib/rubocop/cop/naming/ascii_identifiers.rb#74 + # source://rubocop/lib/rubocop/cop/naming/ascii_identifiers.rb#74 def first_offense_range(identifier); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/naming/ascii_identifiers.rb#70 + # source://rubocop/lib/rubocop/cop/naming/ascii_identifiers.rb#70 def should_check?(token); end end -# source://rubocop//lib/rubocop/cop/naming/ascii_identifiers.rb#57 +# source://rubocop/lib/rubocop/cop/naming/ascii_identifiers.rb#57 RuboCop::Cop::Naming::AsciiIdentifiers::CONSTANT_MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/naming/ascii_identifiers.rb#56 +# source://rubocop/lib/rubocop/cop/naming/ascii_identifiers.rb#56 RuboCop::Cop::Naming::AsciiIdentifiers::IDENTIFIER_MSG = T.let(T.unsafe(nil), String) # Makes sure that certain binary operator methods have their @@ -27861,31 +28217,31 @@ RuboCop::Cop::Naming::AsciiIdentifiers::IDENTIFIER_MSG = T.let(T.unsafe(nil), St # # good # def +(other); end # -# source://rubocop//lib/rubocop/cop/naming/binary_operator_parameter_name.rb#16 +# source://rubocop/lib/rubocop/cop/naming/binary_operator_parameter_name.rb#16 class RuboCop::Cop::Naming::BinaryOperatorParameterName < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/naming/binary_operator_parameter_name.rb#29 + # source://rubocop/lib/rubocop/cop/naming/binary_operator_parameter_name.rb#29 def on_def(node); end - # source://rubocop//lib/rubocop/cop/naming/binary_operator_parameter_name.rb#25 + # source://rubocop/lib/rubocop/cop/naming/binary_operator_parameter_name.rb#25 def op_method_candidate?(param0 = T.unsafe(nil)); end private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/naming/binary_operator_parameter_name.rb#45 + # source://rubocop/lib/rubocop/cop/naming/binary_operator_parameter_name.rb#45 def op_method?(name); end end -# source://rubocop//lib/rubocop/cop/naming/binary_operator_parameter_name.rb#22 +# source://rubocop/lib/rubocop/cop/naming/binary_operator_parameter_name.rb#22 RuboCop::Cop::Naming::BinaryOperatorParameterName::EXCLUDED = T.let(T.unsafe(nil), Array) -# source://rubocop//lib/rubocop/cop/naming/binary_operator_parameter_name.rb#19 +# source://rubocop/lib/rubocop/cop/naming/binary_operator_parameter_name.rb#19 RuboCop::Cop::Naming::BinaryOperatorParameterName::MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/naming/binary_operator_parameter_name.rb#21 +# source://rubocop/lib/rubocop/cop/naming/binary_operator_parameter_name.rb#21 RuboCop::Cop::Naming::BinaryOperatorParameterName::OP_LIKE_METHODS = T.let(T.unsafe(nil), Array) # In Ruby 3.1, anonymous block forwarding has been added. @@ -27921,42 +28277,42 @@ RuboCop::Cop::Naming::BinaryOperatorParameterName::OP_LIKE_METHODS = T.let(T.uns # bar(&block) # end # -# source://rubocop//lib/rubocop/cop/naming/block_forwarding.rb#40 +# source://rubocop/lib/rubocop/cop/naming/block_forwarding.rb#40 class RuboCop::Cop::Naming::BlockForwarding < ::RuboCop::Cop::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector extend ::RuboCop::Cop::TargetRubyVersion - # source://rubocop//lib/rubocop/cop/naming/block_forwarding.rb#54 + # source://rubocop/lib/rubocop/cop/naming/block_forwarding.rb#54 def on_def(node); end - # source://rubocop//lib/rubocop/cop/naming/block_forwarding.rb#54 + # source://rubocop/lib/rubocop/cop/naming/block_forwarding.rb#54 def on_defs(node); end private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/naming/block_forwarding.rb#114 + # source://rubocop/lib/rubocop/cop/naming/block_forwarding.rb#114 def anonymous_block_argument?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/naming/block_forwarding.rb#87 + # source://rubocop/lib/rubocop/cop/naming/block_forwarding.rb#87 def block_argument_name_matched?(block_pass_node, last_argument); end - # source://rubocop//lib/rubocop/cop/naming/block_forwarding.rb#146 + # source://rubocop/lib/rubocop/cop/naming/block_forwarding.rb#146 def block_forwarding_name; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/naming/block_forwarding.rb#77 + # source://rubocop/lib/rubocop/cop/naming/block_forwarding.rb#77 def expected_block_forwarding_style?(node, last_argument); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/naming/block_forwarding.rb#118 + # source://rubocop/lib/rubocop/cop/naming/block_forwarding.rb#118 def explicit_block_argument?(node); end # Prevents the following syntax error: @@ -27974,29 +28330,29 @@ class RuboCop::Cop::Naming::BlockForwarding < ::RuboCop::Cop::Base # # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/naming/block_forwarding.rb#106 + # source://rubocop/lib/rubocop/cop/naming/block_forwarding.rb#106 def invalidates_syntax?(block_pass_node); end - # source://rubocop//lib/rubocop/cop/naming/block_forwarding.rb#122 + # source://rubocop/lib/rubocop/cop/naming/block_forwarding.rb#122 def register_offense(block_argument, node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/naming/block_forwarding.rb#138 + # source://rubocop/lib/rubocop/cop/naming/block_forwarding.rb#138 def use_block_argument_as_local_variable?(node, last_argument); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/naming/block_forwarding.rb#110 + # source://rubocop/lib/rubocop/cop/naming/block_forwarding.rb#110 def use_kwarg_in_method_definition?(node); end class << self - # source://rubocop//lib/rubocop/cop/naming/block_forwarding.rb#50 + # source://rubocop/lib/rubocop/cop/naming/block_forwarding.rb#50 def autocorrect_incompatible_with; end end end -# source://rubocop//lib/rubocop/cop/naming/block_forwarding.rb#48 +# source://rubocop/lib/rubocop/cop/naming/block_forwarding.rb#48 RuboCop::Cop::Naming::BlockForwarding::MSG = T.let(T.unsafe(nil), String) # Checks block parameter names for how descriptive they @@ -28032,11 +28388,11 @@ RuboCop::Cop::Naming::BlockForwarding::MSG = T.let(T.unsafe(nil), String) # # baz { |age, height, gender| do_stuff(age, height, gender) } # -# source://rubocop//lib/rubocop/cop/naming/block_parameter_name.rb#38 +# source://rubocop/lib/rubocop/cop/naming/block_parameter_name.rb#38 class RuboCop::Cop::Naming::BlockParameterName < ::RuboCop::Cop::Base include ::RuboCop::Cop::UncommunicativeName - # source://rubocop//lib/rubocop/cop/naming/block_parameter_name.rb#41 + # source://rubocop/lib/rubocop/cop/naming/block_parameter_name.rb#41 def on_block(node); end end @@ -28064,16 +28420,16 @@ end # class module_parent::MyModule # end # -# source://rubocop//lib/rubocop/cop/naming/class_and_module_camel_case.rb#29 +# source://rubocop/lib/rubocop/cop/naming/class_and_module_camel_case.rb#29 class RuboCop::Cop::Naming::ClassAndModuleCamelCase < ::RuboCop::Cop::Base - # source://rubocop//lib/rubocop/cop/naming/class_and_module_camel_case.rb#32 + # source://rubocop/lib/rubocop/cop/naming/class_and_module_camel_case.rb#32 def on_class(node); end - # source://rubocop//lib/rubocop/cop/naming/class_and_module_camel_case.rb#32 + # source://rubocop/lib/rubocop/cop/naming/class_and_module_camel_case.rb#32 def on_module(node); end end -# source://rubocop//lib/rubocop/cop/naming/class_and_module_camel_case.rb#30 +# source://rubocop/lib/rubocop/cop/naming/class_and_module_camel_case.rb#30 RuboCop::Cop::Naming::ClassAndModuleCamelCase::MSG = T.let(T.unsafe(nil), String) # Checks whether constant names are written using @@ -28091,47 +28447,47 @@ RuboCop::Cop::Naming::ClassAndModuleCamelCase::MSG = T.let(T.unsafe(nil), String # # good # INCH_IN_CM = 2.54 # -# source://rubocop//lib/rubocop/cop/naming/constant_name.rb#20 +# source://rubocop/lib/rubocop/cop/naming/constant_name.rb#20 class RuboCop::Cop::Naming::ConstantName < ::RuboCop::Cop::Base - # source://rubocop//lib/rubocop/cop/naming/constant_name.rb#27 + # source://rubocop/lib/rubocop/cop/naming/constant_name.rb#27 def class_or_struct_return_method?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/naming/constant_name.rb#68 + # source://rubocop/lib/rubocop/cop/naming/constant_name.rb#67 def literal_receiver?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/naming/constant_name.rb#33 + # source://rubocop/lib/rubocop/cop/naming/constant_name.rb#33 def on_casgn(node); end private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/naming/constant_name.rb#56 + # source://rubocop/lib/rubocop/cop/naming/constant_name.rb#55 def allowed_assignment?(value); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/naming/constant_name.rb#73 + # source://rubocop/lib/rubocop/cop/naming/constant_name.rb#72 def allowed_conditional_expression_on_rhs?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/naming/constant_name.rb#63 + # source://rubocop/lib/rubocop/cop/naming/constant_name.rb#62 def allowed_method_call_on_rhs?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/naming/constant_name.rb#77 + # source://rubocop/lib/rubocop/cop/naming/constant_name.rb#76 def contains_constant?(node); end end -# source://rubocop//lib/rubocop/cop/naming/constant_name.rb#21 +# source://rubocop/lib/rubocop/cop/naming/constant_name.rb#21 RuboCop::Cop::Naming::ConstantName::MSG = T.let(T.unsafe(nil), String) # Use POSIX character classes, so we allow accented characters rather # than just standard ASCII characters # -# source://rubocop//lib/rubocop/cop/naming/constant_name.rb#24 +# source://rubocop/lib/rubocop/cop/naming/constant_name.rb#24 RuboCop::Cop::Naming::ConstantName::SNAKE_CASE = T.let(T.unsafe(nil), Regexp) # Makes sure that Ruby source files have snake_case @@ -28166,116 +28522,114 @@ RuboCop::Cop::Naming::ConstantName::SNAKE_CASE = T.let(T.unsafe(nil), Regexp) # # anything/using_snake_case.rake # -# source://rubocop//lib/rubocop/cop/naming/file_name.rb#39 +# source://rubocop/lib/rubocop/cop/naming/file_name.rb#39 class RuboCop::Cop::Naming::FileName < ::RuboCop::Cop::Base - include ::RuboCop::Cop::RangeHelp - - # source://rubocop//lib/rubocop/cop/naming/file_name.rb#56 + # source://rubocop/lib/rubocop/cop/naming/file_name.rb#54 def on_new_investigation; end - # source://rubocop//lib/rubocop/cop/naming/file_name.rb#49 + # source://rubocop/lib/rubocop/cop/naming/file_name.rb#47 def struct_definition(param0 = T.unsafe(nil)); end private - # source://rubocop//lib/rubocop/cop/naming/file_name.rb#134 + # source://rubocop/lib/rubocop/cop/naming/file_name.rb#132 def allowed_acronyms; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/naming/file_name.rb#96 + # source://rubocop/lib/rubocop/cop/naming/file_name.rb#94 def bad_filename_allowed?; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/naming/file_name.rb#122 + # source://rubocop/lib/rubocop/cop/naming/file_name.rb#120 def check_definition_path_hierarchy?; end - # source://rubocop//lib/rubocop/cop/naming/file_name.rb#169 + # source://rubocop/lib/rubocop/cop/naming/file_name.rb#167 def defined_struct(node); end - # source://rubocop//lib/rubocop/cop/naming/file_name.rb#126 + # source://rubocop/lib/rubocop/cop/naming/file_name.rb#124 def definition_path_hierarchy_roots; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/naming/file_name.rb#118 + # source://rubocop/lib/rubocop/cop/naming/file_name.rb#116 def expect_matching_definition?; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/naming/file_name.rb#138 + # source://rubocop/lib/rubocop/cop/naming/file_name.rb#136 def filename_good?(basename); end - # source://rubocop//lib/rubocop/cop/naming/file_name.rb#147 + # source://rubocop/lib/rubocop/cop/naming/file_name.rb#145 def find_class_or_module(node, namespace); end - # source://rubocop//lib/rubocop/cop/naming/file_name.rb#165 + # source://rubocop/lib/rubocop/cop/naming/file_name.rb#163 def find_definition(node); end - # source://rubocop//lib/rubocop/cop/naming/file_name.rb#65 + # source://rubocop/lib/rubocop/cop/naming/file_name.rb#63 def for_bad_filename(file_path); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/naming/file_name.rb#114 + # source://rubocop/lib/rubocop/cop/naming/file_name.rb#112 def ignore_executable_scripts?; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/naming/file_name.rb#202 + # source://rubocop/lib/rubocop/cop/naming/file_name.rb#200 def match?(expected); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/naming/file_name.rb#206 + # source://rubocop/lib/rubocop/cop/naming/file_name.rb#204 def match_acronym?(expected, name); end - # source://rubocop//lib/rubocop/cop/naming/file_name.rb#174 + # source://rubocop/lib/rubocop/cop/naming/file_name.rb#172 def match_namespace(node, namespace, expected); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/naming/file_name.rb#92 + # source://rubocop/lib/rubocop/cop/naming/file_name.rb#90 def matching_class?(file_name); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/naming/file_name.rb#88 + # source://rubocop/lib/rubocop/cop/naming/file_name.rb#86 def matching_definition?(file_path); end - # source://rubocop//lib/rubocop/cop/naming/file_name.rb#100 + # source://rubocop/lib/rubocop/cop/naming/file_name.rb#98 def no_definition_message(basename, file_path); end - # source://rubocop//lib/rubocop/cop/naming/file_name.rb#106 + # source://rubocop/lib/rubocop/cop/naming/file_name.rb#104 def other_message(basename); end - # source://rubocop//lib/rubocop/cop/naming/file_name.rb#188 + # source://rubocop/lib/rubocop/cop/naming/file_name.rb#186 def partial_matcher!(expected); end - # source://rubocop//lib/rubocop/cop/naming/file_name.rb#77 + # source://rubocop/lib/rubocop/cop/naming/file_name.rb#75 def perform_class_and_module_naming_checks(file_path, basename); end - # source://rubocop//lib/rubocop/cop/naming/file_name.rb#130 + # source://rubocop/lib/rubocop/cop/naming/file_name.rb#128 def regex; end - # source://rubocop//lib/rubocop/cop/naming/file_name.rb#240 + # source://rubocop/lib/rubocop/cop/naming/file_name.rb#238 def to_module_name(basename); end - # source://rubocop//lib/rubocop/cop/naming/file_name.rb#213 + # source://rubocop/lib/rubocop/cop/naming/file_name.rb#211 def to_namespace(path); end end -# source://rubocop//lib/rubocop/cop/naming/file_name.rb#43 +# source://rubocop/lib/rubocop/cop/naming/file_name.rb#41 RuboCop::Cop::Naming::FileName::MSG_NO_DEFINITION = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/naming/file_name.rb#44 +# source://rubocop/lib/rubocop/cop/naming/file_name.rb#42 RuboCop::Cop::Naming::FileName::MSG_REGEX = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/naming/file_name.rb#42 +# source://rubocop/lib/rubocop/cop/naming/file_name.rb#40 RuboCop::Cop::Naming::FileName::MSG_SNAKE_CASE = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/naming/file_name.rb#46 +# source://rubocop/lib/rubocop/cop/naming/file_name.rb#44 RuboCop::Cop::Naming::FileName::SNAKE_CASE = T.let(T.unsafe(nil), Regexp) # Checks that your heredocs are using the configured case. @@ -28302,30 +28656,30 @@ RuboCop::Cop::Naming::FileName::SNAKE_CASE = T.let(T.unsafe(nil), Regexp) # SELECT * FROM foo # sql # -# source://rubocop//lib/rubocop/cop/naming/heredoc_delimiter_case.rb#30 +# source://rubocop/lib/rubocop/cop/naming/heredoc_delimiter_case.rb#30 class RuboCop::Cop::Naming::HeredocDelimiterCase < ::RuboCop::Cop::Base include ::RuboCop::Cop::Heredoc include ::RuboCop::Cop::ConfigurableEnforcedStyle extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/naming/heredoc_delimiter_case.rb#37 + # source://rubocop/lib/rubocop/cop/naming/heredoc_delimiter_case.rb#37 def on_heredoc(node); end private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/naming/heredoc_delimiter_case.rb#54 + # source://rubocop/lib/rubocop/cop/naming/heredoc_delimiter_case.rb#54 def correct_case_delimiters?(node); end - # source://rubocop//lib/rubocop/cop/naming/heredoc_delimiter_case.rb#58 + # source://rubocop/lib/rubocop/cop/naming/heredoc_delimiter_case.rb#58 def correct_delimiters(source); end - # source://rubocop//lib/rubocop/cop/naming/heredoc_delimiter_case.rb#50 + # source://rubocop/lib/rubocop/cop/naming/heredoc_delimiter_case.rb#50 def message(_node); end end -# source://rubocop//lib/rubocop/cop/naming/heredoc_delimiter_case.rb#35 +# source://rubocop/lib/rubocop/cop/naming/heredoc_delimiter_case.rb#35 RuboCop::Cop::Naming::HeredocDelimiterCase::MSG = T.let(T.unsafe(nil), String) # Checks that your heredocs are using meaningful delimiters. @@ -28349,25 +28703,25 @@ RuboCop::Cop::Naming::HeredocDelimiterCase::MSG = T.let(T.unsafe(nil), String) # SELECT * FROM foo # EOS # -# source://rubocop//lib/rubocop/cop/naming/heredoc_delimiter_naming.rb#26 +# source://rubocop/lib/rubocop/cop/naming/heredoc_delimiter_naming.rb#26 class RuboCop::Cop::Naming::HeredocDelimiterNaming < ::RuboCop::Cop::Base include ::RuboCop::Cop::Heredoc - # source://rubocop//lib/rubocop/cop/naming/heredoc_delimiter_naming.rb#31 + # source://rubocop/lib/rubocop/cop/naming/heredoc_delimiter_naming.rb#31 def on_heredoc(node); end private - # source://rubocop//lib/rubocop/cop/naming/heredoc_delimiter_naming.rb#51 + # source://rubocop/lib/rubocop/cop/naming/heredoc_delimiter_naming.rb#51 def forbidden_delimiters; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/naming/heredoc_delimiter_naming.rb#41 + # source://rubocop/lib/rubocop/cop/naming/heredoc_delimiter_naming.rb#41 def meaningful_delimiters?(node); end end -# source://rubocop//lib/rubocop/cop/naming/heredoc_delimiter_naming.rb#29 +# source://rubocop/lib/rubocop/cop/naming/heredoc_delimiter_naming.rb#29 RuboCop::Cop::Naming::HeredocDelimiterNaming::MSG = T.let(T.unsafe(nil), String) # Recommends the use of inclusive language instead of problematic terms. @@ -28435,100 +28789,100 @@ RuboCop::Cop::Naming::HeredocDelimiterNaming::MSG = T.let(T.unsafe(nil), String) # # good (won't be flagged despite containing `slave`) # TeslaVehicle # -# source://rubocop//lib/rubocop/cop/naming/inclusive_language.rb#74 +# source://rubocop/lib/rubocop/cop/naming/inclusive_language.rb#74 class RuboCop::Cop::Naming::InclusiveLanguage < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector # @return [InclusiveLanguage] a new instance of InclusiveLanguage # - # source://rubocop//lib/rubocop/cop/naming/inclusive_language.rb#84 + # source://rubocop/lib/rubocop/cop/naming/inclusive_language.rb#84 def initialize(config = T.unsafe(nil), options = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/naming/inclusive_language.rb#93 + # source://rubocop/lib/rubocop/cop/naming/inclusive_language.rb#93 def on_new_investigation; end private - # source://rubocop//lib/rubocop/cop/naming/inclusive_language.rb#111 + # source://rubocop/lib/rubocop/cop/naming/inclusive_language.rb#111 def add_offenses_for_token(token, word_locations); end - # source://rubocop//lib/rubocop/cop/naming/inclusive_language.rb#176 + # source://rubocop/lib/rubocop/cop/naming/inclusive_language.rb#176 def add_to_flagged_term_hash(regex_string, term, term_definition); end - # source://rubocop//lib/rubocop/cop/naming/inclusive_language.rb#202 + # source://rubocop/lib/rubocop/cop/naming/inclusive_language.rb#202 def array_to_ignorecase_regex(strings); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/naming/inclusive_language.rb#126 + # source://rubocop/lib/rubocop/cop/naming/inclusive_language.rb#126 def check_token?(type); end - # source://rubocop//lib/rubocop/cop/naming/inclusive_language.rb#252 + # source://rubocop/lib/rubocop/cop/naming/inclusive_language.rb#252 def create_message(word, message = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/naming/inclusive_language.rb#226 + # source://rubocop/lib/rubocop/cop/naming/inclusive_language.rb#226 def create_multiple_word_message_for_file(words); end - # source://rubocop//lib/rubocop/cop/naming/inclusive_language.rb#222 + # source://rubocop/lib/rubocop/cop/naming/inclusive_language.rb#222 def create_single_word_message_for_file(word); end - # source://rubocop//lib/rubocop/cop/naming/inclusive_language.rb#198 + # source://rubocop/lib/rubocop/cop/naming/inclusive_language.rb#198 def ensure_regex_string(regex); end - # source://rubocop//lib/rubocop/cop/naming/inclusive_language.rb#169 + # source://rubocop/lib/rubocop/cop/naming/inclusive_language.rb#169 def extract_regexp(term, term_definition); end - # source://rubocop//lib/rubocop/cop/naming/inclusive_language.rb#260 + # source://rubocop/lib/rubocop/cop/naming/inclusive_language.rb#260 def find_flagged_term(word); end - # source://rubocop//lib/rubocop/cop/naming/inclusive_language.rb#274 + # source://rubocop/lib/rubocop/cop/naming/inclusive_language.rb#274 def format_suggestions(suggestions); end - # source://rubocop//lib/rubocop/cop/naming/inclusive_language.rb#206 + # source://rubocop/lib/rubocop/cop/naming/inclusive_language.rb#206 def investigate_filepath; end - # source://rubocop//lib/rubocop/cop/naming/inclusive_language.rb#100 + # source://rubocop/lib/rubocop/cop/naming/inclusive_language.rb#100 def investigate_tokens; end - # source://rubocop//lib/rubocop/cop/naming/inclusive_language.rb#240 + # source://rubocop/lib/rubocop/cop/naming/inclusive_language.rb#240 def mask_input(str); end - # source://rubocop//lib/rubocop/cop/naming/inclusive_language.rb#289 + # source://rubocop/lib/rubocop/cop/naming/inclusive_language.rb#289 def offense_range(token, word); end - # source://rubocop//lib/rubocop/cop/naming/inclusive_language.rb#160 + # source://rubocop/lib/rubocop/cop/naming/inclusive_language.rb#160 def preferred_sole_term(suggestions); end - # source://rubocop//lib/rubocop/cop/naming/inclusive_language.rb#130 + # source://rubocop/lib/rubocop/cop/naming/inclusive_language.rb#130 def preprocess_check_config; end - # source://rubocop//lib/rubocop/cop/naming/inclusive_language.rb#144 + # source://rubocop/lib/rubocop/cop/naming/inclusive_language.rb#144 def preprocess_flagged_terms; end - # source://rubocop//lib/rubocop/cop/naming/inclusive_language.rb#267 + # source://rubocop/lib/rubocop/cop/naming/inclusive_language.rb#267 def preprocess_suggestions(suggestions); end - # source://rubocop//lib/rubocop/cop/naming/inclusive_language.rb#188 + # source://rubocop/lib/rubocop/cop/naming/inclusive_language.rb#188 def process_allowed_regex(allowed); end - # source://rubocop//lib/rubocop/cop/naming/inclusive_language.rb#230 + # source://rubocop/lib/rubocop/cop/naming/inclusive_language.rb#230 def scan_for_words(input); end - # source://rubocop//lib/rubocop/cop/naming/inclusive_language.rb#183 + # source://rubocop/lib/rubocop/cop/naming/inclusive_language.rb#183 def set_regexes(flagged_term_strings, allowed_strings); end end -# source://rubocop//lib/rubocop/cop/naming/inclusive_language.rb#78 +# source://rubocop/lib/rubocop/cop/naming/inclusive_language.rb#78 RuboCop::Cop::Naming::InclusiveLanguage::EMPTY_ARRAY = T.let(T.unsafe(nil), Array) -# source://rubocop//lib/rubocop/cop/naming/inclusive_language.rb#79 +# source://rubocop/lib/rubocop/cop/naming/inclusive_language.rb#79 RuboCop::Cop::Naming::InclusiveLanguage::MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/naming/inclusive_language.rb#80 +# source://rubocop/lib/rubocop/cop/naming/inclusive_language.rb#80 RuboCop::Cop::Naming::InclusiveLanguage::MSG_FOR_FILE_PATH = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/naming/inclusive_language.rb#82 +# source://rubocop/lib/rubocop/cop/naming/inclusive_language.rb#82 class RuboCop::Cop::Naming::InclusiveLanguage::WordLocation < ::Struct # Returns the value of attribute position # @@ -28696,55 +29050,58 @@ end # @_foo ||= calculate_expensive_thing # end # -# source://rubocop//lib/rubocop/cop/naming/memoized_instance_variable_name.rb#148 +# source://rubocop/lib/rubocop/cop/naming/memoized_instance_variable_name.rb#148 class RuboCop::Cop::Naming::MemoizedInstanceVariableName < ::RuboCop::Cop::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/naming/memoized_instance_variable_name.rb#197 + # source://rubocop/lib/rubocop/cop/naming/memoized_instance_variable_name.rb#198 def defined_memoized?(param0 = T.unsafe(nil), param1); end - # source://rubocop//lib/rubocop/cop/naming/memoized_instance_variable_name.rb#160 + # source://rubocop/lib/rubocop/cop/naming/memoized_instance_variable_name.rb#161 def method_definition?(param0 = T.unsafe(nil)); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/naming/memoized_instance_variable_name.rb#205 + # source://rubocop/lib/rubocop/cop/naming/memoized_instance_variable_name.rb#206 def on_defined?(node); end - # source://rubocop//lib/rubocop/cop/naming/memoized_instance_variable_name.rb#170 + # source://rubocop/lib/rubocop/cop/naming/memoized_instance_variable_name.rb#171 def on_or_asgn(node); end private - # source://rubocop//lib/rubocop/cop/naming/memoized_instance_variable_name.rb#242 + # source://rubocop/lib/rubocop/cop/naming/memoized_instance_variable_name.rb#242 def find_definition(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/naming/memoized_instance_variable_name.rb#253 + # source://rubocop/lib/rubocop/cop/naming/memoized_instance_variable_name.rb#253 def matches?(method_name, ivar_assign); end - # source://rubocop//lib/rubocop/cop/naming/memoized_instance_variable_name.rb#263 + # source://rubocop/lib/rubocop/cop/naming/memoized_instance_variable_name.rb#262 def message(variable); end - # source://rubocop//lib/rubocop/cop/naming/memoized_instance_variable_name.rb#238 + # source://rubocop/lib/rubocop/cop/naming/memoized_instance_variable_name.rb#238 def style_parameter_name; end - # source://rubocop//lib/rubocop/cop/naming/memoized_instance_variable_name.rb#271 + # source://rubocop/lib/rubocop/cop/naming/memoized_instance_variable_name.rb#270 def suggested_var(method_name); end - # source://rubocop//lib/rubocop/cop/naming/memoized_instance_variable_name.rb#277 + # source://rubocop/lib/rubocop/cop/naming/memoized_instance_variable_name.rb#276 def variable_name_candidates(method_name); end end -# source://rubocop//lib/rubocop/cop/naming/memoized_instance_variable_name.rb#157 +# source://rubocop/lib/rubocop/cop/naming/memoized_instance_variable_name.rb#157 RuboCop::Cop::Naming::MemoizedInstanceVariableName::DYNAMIC_DEFINE_METHODS = T.let(T.unsafe(nil), Set) -# source://rubocop//lib/rubocop/cop/naming/memoized_instance_variable_name.rb#153 +# source://rubocop/lib/rubocop/cop/naming/memoized_instance_variable_name.rb#158 +RuboCop::Cop::Naming::MemoizedInstanceVariableName::INITIALIZE_METHODS = T.let(T.unsafe(nil), Array) + +# source://rubocop/lib/rubocop/cop/naming/memoized_instance_variable_name.rb#153 RuboCop::Cop::Naming::MemoizedInstanceVariableName::MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/naming/memoized_instance_variable_name.rb#155 +# source://rubocop/lib/rubocop/cop/naming/memoized_instance_variable_name.rb#155 RuboCop::Cop::Naming::MemoizedInstanceVariableName::UNDERSCORE_REQUIRED = T.let(T.unsafe(nil), String) # Makes sure that all methods use the configured style, @@ -28772,7 +29129,7 @@ RuboCop::Cop::Naming::MemoizedInstanceVariableName::UNDERSCORE_REQUIRED = T.let( # # good # def fooBar; end # -# source://rubocop//lib/rubocop/cop/naming/method_name.rb#31 +# source://rubocop/lib/rubocop/cop/naming/method_name.rb#31 class RuboCop::Cop::Naming::MethodName < ::RuboCop::Cop::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle include ::RuboCop::Cop::ConfigurableFormatting @@ -28780,34 +29137,34 @@ class RuboCop::Cop::Naming::MethodName < ::RuboCop::Cop::Base include ::RuboCop::Cop::AllowedPattern include ::RuboCop::Cop::RangeHelp - # source://rubocop//lib/rubocop/cop/naming/method_name.rb#55 + # source://rubocop/lib/rubocop/cop/naming/method_name.rb#55 def on_def(node); end - # source://rubocop//lib/rubocop/cop/naming/method_name.rb#55 + # source://rubocop/lib/rubocop/cop/naming/method_name.rb#55 def on_defs(node); end - # source://rubocop//lib/rubocop/cop/naming/method_name.rb#44 + # source://rubocop/lib/rubocop/cop/naming/method_name.rb#44 def on_send(node); end - # source://rubocop//lib/rubocop/cop/naming/method_name.rb#42 + # source://rubocop/lib/rubocop/cop/naming/method_name.rb#42 def str_name(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/naming/method_name.rb#39 + # source://rubocop/lib/rubocop/cop/naming/method_name.rb#39 def sym_name(param0 = T.unsafe(nil)); end private - # source://rubocop//lib/rubocop/cop/naming/method_name.rb#64 + # source://rubocop/lib/rubocop/cop/naming/method_name.rb#64 def attr_name(name_item); end - # source://rubocop//lib/rubocop/cop/naming/method_name.rb#75 + # source://rubocop/lib/rubocop/cop/naming/method_name.rb#75 def message(style); end - # source://rubocop//lib/rubocop/cop/naming/method_name.rb#68 + # source://rubocop/lib/rubocop/cop/naming/method_name.rb#68 def range_position(node); end end -# source://rubocop//lib/rubocop/cop/naming/method_name.rb#36 +# source://rubocop/lib/rubocop/cop/naming/method_name.rb#36 RuboCop::Cop::Naming::MethodName::MSG = T.let(T.unsafe(nil), String) # Checks method parameter names for how descriptive they @@ -28851,14 +29208,14 @@ RuboCop::Cop::Naming::MethodName::MSG = T.let(T.unsafe(nil), String) # do_stuff(age_a, height_b, gender_c) # end # -# source://rubocop//lib/rubocop/cop/naming/method_parameter_name.rb#46 +# source://rubocop/lib/rubocop/cop/naming/method_parameter_name.rb#46 class RuboCop::Cop::Naming::MethodParameterName < ::RuboCop::Cop::Base include ::RuboCop::Cop::UncommunicativeName - # source://rubocop//lib/rubocop/cop/naming/method_parameter_name.rb#49 + # source://rubocop/lib/rubocop/cop/naming/method_parameter_name.rb#49 def on_def(node); end - # source://rubocop//lib/rubocop/cop/naming/method_parameter_name.rb#49 + # source://rubocop/lib/rubocop/cop/naming/method_parameter_name.rb#49 def on_defs(node); end end @@ -28926,45 +29283,45 @@ end # # good # def_node_matcher(:even?) { |value| } # -# source://rubocop//lib/rubocop/cop/naming/predicate_name.rb#75 +# source://rubocop/lib/rubocop/cop/naming/predicate_name.rb#75 class RuboCop::Cop::Naming::PredicateName < ::RuboCop::Cop::Base include ::RuboCop::Cop::AllowedMethods - # source://rubocop//lib/rubocop/cop/naming/predicate_name.rb#79 + # source://rubocop/lib/rubocop/cop/naming/predicate_name.rb#79 def dynamic_method_define(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/naming/predicate_name.rb#98 + # source://rubocop/lib/rubocop/cop/naming/predicate_name.rb#98 def on_def(node); end - # source://rubocop//lib/rubocop/cop/naming/predicate_name.rb#98 + # source://rubocop/lib/rubocop/cop/naming/predicate_name.rb#98 def on_defs(node); end - # source://rubocop//lib/rubocop/cop/naming/predicate_name.rb#85 + # source://rubocop/lib/rubocop/cop/naming/predicate_name.rb#85 def on_send(node); end - # source://rubocop//lib/rubocop/cop/naming/predicate_name.rb#112 + # source://rubocop/lib/rubocop/cop/naming/predicate_name.rb#112 def validate_config; end private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/naming/predicate_name.rb#124 + # source://rubocop/lib/rubocop/cop/naming/predicate_name.rb#124 def allowed_method_name?(method_name, prefix); end - # source://rubocop//lib/rubocop/cop/naming/predicate_name.rb#132 + # source://rubocop/lib/rubocop/cop/naming/predicate_name.rb#132 def expected_name(method_name, prefix); end - # source://rubocop//lib/rubocop/cop/naming/predicate_name.rb#146 + # source://rubocop/lib/rubocop/cop/naming/predicate_name.rb#146 def forbidden_prefixes; end - # source://rubocop//lib/rubocop/cop/naming/predicate_name.rb#142 + # source://rubocop/lib/rubocop/cop/naming/predicate_name.rb#142 def message(method_name, new_name); end - # source://rubocop//lib/rubocop/cop/naming/predicate_name.rb#154 + # source://rubocop/lib/rubocop/cop/naming/predicate_name.rb#154 def method_definition_macros(macro_name); end - # source://rubocop//lib/rubocop/cop/naming/predicate_name.rb#150 + # source://rubocop/lib/rubocop/cop/naming/predicate_name.rb#150 def predicate_prefixes; end end @@ -29022,52 +29379,52 @@ end # # do something # end # -# source://rubocop//lib/rubocop/cop/naming/rescued_exceptions_variable_name.rb#61 +# source://rubocop/lib/rubocop/cop/naming/rescued_exceptions_variable_name.rb#61 class RuboCop::Cop::Naming::RescuedExceptionsVariableName < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/naming/rescued_exceptions_variable_name.rb#66 + # source://rubocop/lib/rubocop/cop/naming/rescued_exceptions_variable_name.rb#66 def on_resbody(node); end private - # source://rubocop//lib/rubocop/cop/naming/rescued_exceptions_variable_name.rb#96 + # source://rubocop/lib/rubocop/cop/naming/rescued_exceptions_variable_name.rb#96 def autocorrect(corrector, node, range, offending_name, preferred_name); end - # source://rubocop//lib/rubocop/cop/naming/rescued_exceptions_variable_name.rb#117 + # source://rubocop/lib/rubocop/cop/naming/rescued_exceptions_variable_name.rb#117 def correct_node(corrector, node, offending_name, preferred_name); end # If the exception variable is reassigned, that assignment needs to be corrected. # Further `lvar` nodes will not be corrected though since they now refer to a # different variable. # - # source://rubocop//lib/rubocop/cop/naming/rescued_exceptions_variable_name.rb#143 + # source://rubocop/lib/rubocop/cop/naming/rescued_exceptions_variable_name.rb#143 def correct_reassignment(corrector, node, offending_name, preferred_name); end - # source://rubocop//lib/rubocop/cop/naming/rescued_exceptions_variable_name.rb#168 + # source://rubocop/lib/rubocop/cop/naming/rescued_exceptions_variable_name.rb#160 def message(node); end - # source://rubocop//lib/rubocop/cop/naming/rescued_exceptions_variable_name.rb#91 + # source://rubocop/lib/rubocop/cop/naming/rescued_exceptions_variable_name.rb#91 def offense_range(resbody); end - # source://rubocop//lib/rubocop/cop/naming/rescued_exceptions_variable_name.rb#152 + # source://rubocop/lib/rubocop/cop/naming/rescued_exceptions_variable_name.rb#147 def preferred_name(variable_name); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/naming/rescued_exceptions_variable_name.rb#174 + # source://rubocop/lib/rubocop/cop/naming/rescued_exceptions_variable_name.rb#166 def shadowed_variable_name?(node); end - # source://rubocop//lib/rubocop/cop/naming/rescued_exceptions_variable_name.rb#161 + # source://rubocop/lib/rubocop/cop/naming/rescued_exceptions_variable_name.rb#156 def variable_name(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/naming/rescued_exceptions_variable_name.rb#106 + # source://rubocop/lib/rubocop/cop/naming/rescued_exceptions_variable_name.rb#106 def variable_name_matches?(node, name); end end -# source://rubocop//lib/rubocop/cop/naming/rescued_exceptions_variable_name.rb#64 +# source://rubocop/lib/rubocop/cop/naming/rescued_exceptions_variable_name.rb#64 RuboCop::Cop::Naming::RescuedExceptionsVariableName::MSG = T.let(T.unsafe(nil), String) # Makes sure that all variables use the configured style, @@ -29092,7 +29449,7 @@ RuboCop::Cop::Naming::RescuedExceptionsVariableName::MSG = T.let(T.unsafe(nil), # # good (with EnforcedStyle: camelCase) # :release_v1 # -# source://rubocop//lib/rubocop/cop/naming/variable_name.rb#31 +# source://rubocop/lib/rubocop/cop/naming/variable_name.rb#31 class RuboCop::Cop::Naming::VariableName < ::RuboCop::Cop::Base include ::RuboCop::Cop::AllowedIdentifiers include ::RuboCop::Cop::ConfigurableEnforcedStyle @@ -29100,51 +29457,51 @@ class RuboCop::Cop::Naming::VariableName < ::RuboCop::Cop::Base include ::RuboCop::Cop::ConfigurableNaming include ::RuboCop::Cop::AllowedPattern - # source://rubocop//lib/rubocop/cop/naming/variable_name.rb#42 + # source://rubocop/lib/rubocop/cop/naming/variable_name.rb#42 def on_arg(node); end - # source://rubocop//lib/rubocop/cop/naming/variable_name.rb#42 + # source://rubocop/lib/rubocop/cop/naming/variable_name.rb#42 def on_blockarg(node); end - # source://rubocop//lib/rubocop/cop/naming/variable_name.rb#42 + # source://rubocop/lib/rubocop/cop/naming/variable_name.rb#42 def on_cvasgn(node); end - # source://rubocop//lib/rubocop/cop/naming/variable_name.rb#42 + # source://rubocop/lib/rubocop/cop/naming/variable_name.rb#42 def on_ivasgn(node); end - # source://rubocop//lib/rubocop/cop/naming/variable_name.rb#42 + # source://rubocop/lib/rubocop/cop/naming/variable_name.rb#42 def on_kwarg(node); end - # source://rubocop//lib/rubocop/cop/naming/variable_name.rb#42 + # source://rubocop/lib/rubocop/cop/naming/variable_name.rb#42 def on_kwoptarg(node); end - # source://rubocop//lib/rubocop/cop/naming/variable_name.rb#42 + # source://rubocop/lib/rubocop/cop/naming/variable_name.rb#42 def on_kwrestarg(node); end - # source://rubocop//lib/rubocop/cop/naming/variable_name.rb#42 + # source://rubocop/lib/rubocop/cop/naming/variable_name.rb#42 def on_lvar(node); end - # source://rubocop//lib/rubocop/cop/naming/variable_name.rb#42 + # source://rubocop/lib/rubocop/cop/naming/variable_name.rb#42 def on_lvasgn(node); end - # source://rubocop//lib/rubocop/cop/naming/variable_name.rb#42 + # source://rubocop/lib/rubocop/cop/naming/variable_name.rb#42 def on_optarg(node); end - # source://rubocop//lib/rubocop/cop/naming/variable_name.rb#42 + # source://rubocop/lib/rubocop/cop/naming/variable_name.rb#42 def on_restarg(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/naming/variable_name.rb#38 + # source://rubocop/lib/rubocop/cop/naming/variable_name.rb#38 def valid_name?(node, name, given_style = T.unsafe(nil)); end private - # source://rubocop//lib/rubocop/cop/naming/variable_name.rb#62 + # source://rubocop/lib/rubocop/cop/naming/variable_name.rb#61 def message(style); end end -# source://rubocop//lib/rubocop/cop/naming/variable_name.rb#36 +# source://rubocop/lib/rubocop/cop/naming/variable_name.rb#36 RuboCop::Cop::Naming::VariableName::MSG = T.let(T.unsafe(nil), String) # Makes sure that all numbered variables use the @@ -29236,7 +29593,7 @@ RuboCop::Cop::Naming::VariableName::MSG = T.let(T.unsafe(nil), String) # # def some_method1(arg1); end # -# source://rubocop//lib/rubocop/cop/naming/variable_number.rb#103 +# source://rubocop/lib/rubocop/cop/naming/variable_number.rb#103 class RuboCop::Cop::Naming::VariableNumber < ::RuboCop::Cop::Base include ::RuboCop::Cop::AllowedIdentifiers include ::RuboCop::Cop::ConfigurableEnforcedStyle @@ -29244,64 +29601,64 @@ class RuboCop::Cop::Naming::VariableNumber < ::RuboCop::Cop::Base include ::RuboCop::Cop::ConfigurableNumbering include ::RuboCop::Cop::AllowedPattern - # source://rubocop//lib/rubocop/cop/naming/variable_number.rb#114 + # source://rubocop/lib/rubocop/cop/naming/variable_number.rb#114 def on_arg(node); end - # source://rubocop//lib/rubocop/cop/naming/variable_number.rb#114 + # source://rubocop/lib/rubocop/cop/naming/variable_number.rb#114 def on_cvasgn(node); end - # source://rubocop//lib/rubocop/cop/naming/variable_number.rb#126 + # source://rubocop/lib/rubocop/cop/naming/variable_number.rb#125 def on_def(node); end - # source://rubocop//lib/rubocop/cop/naming/variable_number.rb#126 + # source://rubocop/lib/rubocop/cop/naming/variable_number.rb#125 def on_defs(node); end - # source://rubocop//lib/rubocop/cop/naming/variable_number.rb#114 + # source://rubocop/lib/rubocop/cop/naming/variable_number.rb#114 def on_gvasgn(node); end - # source://rubocop//lib/rubocop/cop/naming/variable_number.rb#114 + # source://rubocop/lib/rubocop/cop/naming/variable_number.rb#114 def on_ivasgn(node); end - # source://rubocop//lib/rubocop/cop/naming/variable_number.rb#114 + # source://rubocop/lib/rubocop/cop/naming/variable_number.rb#114 def on_lvasgn(node); end - # source://rubocop//lib/rubocop/cop/naming/variable_number.rb#134 + # source://rubocop/lib/rubocop/cop/naming/variable_number.rb#133 def on_sym(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/naming/variable_number.rb#110 + # source://rubocop/lib/rubocop/cop/naming/variable_number.rb#110 def valid_name?(node, name, given_style = T.unsafe(nil)); end private - # source://rubocop//lib/rubocop/cop/naming/variable_number.rb#143 + # source://rubocop/lib/rubocop/cop/naming/variable_number.rb#142 def message(style); end end -# source://rubocop//lib/rubocop/cop/naming/variable_number.rb#108 +# source://rubocop/lib/rubocop/cop/naming/variable_number.rb#108 RuboCop::Cop::Naming::VariableNumber::MSG = T.let(T.unsafe(nil), String) # Some common code shared between `NegatedIf` and # `NegatedWhile` cops. # -# source://rubocop//lib/rubocop/cop/mixin/negative_conditional.rb#7 +# source://rubocop/lib/rubocop/cop/mixin/negative_conditional.rb#7 module RuboCop::Cop::NegativeConditional extend ::RuboCop::AST::NodePattern::Macros - # source://rubocop//lib/rubocop/cop/mixin/negative_conditional.rb#18 + # source://rubocop/lib/rubocop/cop/mixin/negative_conditional.rb#18 def empty_condition?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/mixin/negative_conditional.rb#15 + # source://rubocop/lib/rubocop/cop/mixin/negative_conditional.rb#15 def single_negative?(param0 = T.unsafe(nil)); end private - # source://rubocop//lib/rubocop/cop/mixin/negative_conditional.rb#20 + # source://rubocop/lib/rubocop/cop/mixin/negative_conditional.rb#20 def check_negative_conditional(node, message:, &block); end end -# source://rubocop//lib/rubocop/cop/mixin/negative_conditional.rb#10 +# source://rubocop/lib/rubocop/cop/mixin/negative_conditional.rb#10 RuboCop::Cop::NegativeConditional::MSG = T.let(T.unsafe(nil), String) # This module provides a list of methods that are: @@ -29309,29 +29666,29 @@ RuboCop::Cop::NegativeConditional::MSG = T.let(T.unsafe(nil), String) # 2. Added to NilClass by explicitly requiring any standard libraries # 3. Cop's configuration parameter AllowedMethods. # -# source://rubocop//lib/rubocop/cop/mixin/nil_methods.rb#9 +# source://rubocop/lib/rubocop/cop/mixin/nil_methods.rb#9 module RuboCop::Cop::NilMethods include ::RuboCop::Cop::AllowedMethods private - # source://rubocop//lib/rubocop/cop/mixin/nil_methods.rb#14 + # source://rubocop/lib/rubocop/cop/mixin/nil_methods.rb#14 def nil_methods; end - # source://rubocop//lib/rubocop/cop/mixin/nil_methods.rb#18 + # source://rubocop/lib/rubocop/cop/mixin/nil_methods.rb#18 def other_stdlib_methods; end end # An offense represents a style violation detected by RuboCop. # -# source://rubocop//lib/rubocop/cop/offense.rb#6 +# source://rubocop/lib/rubocop/cop/offense.rb#6 class RuboCop::Cop::Offense include ::Comparable # @api private # @return [Offense] a new instance of Offense # - # source://rubocop//lib/rubocop/cop/offense.rb#83 + # 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` @@ -29340,28 +29697,28 @@ class RuboCop::Cop::Offense # @api public # @return [Integer] comparison result # - # source://rubocop//lib/rubocop/cop/offense.rb#229 + # 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#210 + # source://rubocop/lib/rubocop/cop/offense.rb#210 def ==(other); end # @api private # - # source://rubocop//lib/rubocop/cop/offense.rb#159 + # source://rubocop/lib/rubocop/cop/offense.rb#159 def column; end # @api private # - # source://rubocop//lib/rubocop/cop/offense.rb#169 + # source://rubocop/lib/rubocop/cop/offense.rb#169 def column_length; end # @api private # - # source://rubocop//lib/rubocop/cop/offense.rb#193 + # source://rubocop/lib/rubocop/cop/offense.rb#193 def column_range; end # @api public @@ -29369,82 +29726,82 @@ class RuboCop::Cop::Offense # 'Layout/LineLength' # @return [String] the cop name as a String for which this offense is for. # - # source://rubocop//lib/rubocop/cop/offense.rb#50 + # 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#101 + # 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#112 + # 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#122 + # 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#61 + # 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#133 + # 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#210 + # source://rubocop/lib/rubocop/cop/offense.rb#210 def eql?(other); end # @api private # - # source://rubocop//lib/rubocop/cop/offense.rb#178 + # source://rubocop/lib/rubocop/cop/offense.rb#178 def first_line; end - # source://rubocop//lib/rubocop/cop/offense.rb#218 + # 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#141 + # source://rubocop/lib/rubocop/cop/offense.rb#141 def highlighted_area; end # @api private # - # source://rubocop//lib/rubocop/cop/offense.rb#188 + # source://rubocop/lib/rubocop/cop/offense.rb#188 def last_column; end # @api private # - # source://rubocop//lib/rubocop/cop/offense.rb#183 + # source://rubocop/lib/rubocop/cop/offense.rb#183 def last_line; end # @api private # - # source://rubocop//lib/rubocop/cop/offense.rb#154 + # source://rubocop/lib/rubocop/cop/offense.rb#154 def line; end # @api public # @return [Parser::Source::Range] the location where the violation is detected. # @see https://www.rubydoc.info/gems/parser/Parser/Source/Range Parser::Source::Range # - # source://rubocop//lib/rubocop/cop/offense.rb#28 + # source://rubocop/lib/rubocop/cop/offense.rb#28 def location; end # @api public @@ -29452,7 +29809,7 @@ class RuboCop::Cop::Offense # 'Line is too long. [90/80]' # @return [String] human-readable message # - # source://rubocop//lib/rubocop/cop/offense.rb#39 + # source://rubocop/lib/rubocop/cop/offense.rb#39 def message; end # Internally we use column number that start at 0, but when @@ -29461,42 +29818,42 @@ class RuboCop::Cop::Offense # # @api private # - # source://rubocop//lib/rubocop/cop/offense.rb#202 + # source://rubocop/lib/rubocop/cop/offense.rb#202 def real_column; end # @api public # @return [RuboCop::Cop::Severity] # - # source://rubocop//lib/rubocop/cop/offense.rb#17 + # source://rubocop/lib/rubocop/cop/offense.rb#17 def severity; end # @api private # - # source://rubocop//lib/rubocop/cop/offense.rb#164 + # source://rubocop/lib/rubocop/cop/offense.rb#164 def source_line; end # @api private # - # source://rubocop//lib/rubocop/cop/offense.rb#53 + # 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#147 + # source://rubocop/lib/rubocop/cop/offense.rb#147 def to_s; end end # @api private # -# source://rubocop//lib/rubocop/cop/offense.rb#10 +# 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#80 +# 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#63 +# source://rubocop/lib/rubocop/cop/offense.rb#63 class RuboCop::Cop::Offense::PseudoSourceRange < ::Struct # Returns the value of attribute begin_pos # @@ -29520,7 +29877,7 @@ class RuboCop::Cop::Offense::PseudoSourceRange < ::Struct # @return [Object] the newly set value def column=(_); end - # source://rubocop//lib/rubocop/cop/offense.rb#69 + # source://rubocop/lib/rubocop/cop/offense.rb#69 def column_range; end # Returns the value of attribute end_pos @@ -29549,7 +29906,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#73 + # source://rubocop/lib/rubocop/cop/offense.rb#73 def length; end # Returns the value of attribute line @@ -29563,7 +29920,7 @@ class RuboCop::Cop::Offense::PseudoSourceRange < ::Struct # @return [Object] the newly set value def line=(_); end - # source://rubocop//lib/rubocop/cop/offense.rb#73 + # source://rubocop/lib/rubocop/cop/offense.rb#73 def size; end # Returns the value of attribute source_line @@ -29588,15 +29945,15 @@ end # Common functionality for cops checking if and unless expressions. # -# source://rubocop//lib/rubocop/cop/mixin/on_normal_if_unless.rb#6 +# source://rubocop/lib/rubocop/cop/mixin/on_normal_if_unless.rb#6 module RuboCop::Cop::OnNormalIfUnless - # source://rubocop//lib/rubocop/cop/mixin/on_normal_if_unless.rb#7 + # source://rubocop/lib/rubocop/cop/mixin/on_normal_if_unless.rb#7 def on_if(node); end end # This autocorrects gem dependency order # -# source://rubocop//lib/rubocop/cop/correctors/ordered_gem_corrector.rb#6 +# source://rubocop/lib/rubocop/cop/correctors/ordered_gem_corrector.rb#6 class RuboCop::Cop::OrderedGemCorrector extend ::RuboCop::Cop::OrderedGemNode extend ::RuboCop::Cop::RangeHelp @@ -29604,20 +29961,20 @@ class RuboCop::Cop::OrderedGemCorrector class << self # Returns the value of attribute comments_as_separators. # - # source://rubocop//lib/rubocop/cop/correctors/ordered_gem_corrector.rb#11 + # source://rubocop/lib/rubocop/cop/correctors/ordered_gem_corrector.rb#11 def comments_as_separators; end - # source://rubocop//lib/rubocop/cop/correctors/ordered_gem_corrector.rb#13 + # source://rubocop/lib/rubocop/cop/correctors/ordered_gem_corrector.rb#13 def correct(processed_source, node, previous_declaration, comments_as_separators); end # Returns the value of attribute processed_source. # - # source://rubocop//lib/rubocop/cop/correctors/ordered_gem_corrector.rb#11 + # source://rubocop/lib/rubocop/cop/correctors/ordered_gem_corrector.rb#11 def processed_source; end private - # source://rubocop//lib/rubocop/cop/correctors/ordered_gem_corrector.rb#26 + # source://rubocop/lib/rubocop/cop/correctors/ordered_gem_corrector.rb#26 def declaration_with_comment(node); end end end @@ -29625,145 +29982,145 @@ end # Common functionality for Bundler/OrderedGems and # Gemspec/OrderedDependencies. # -# source://rubocop//lib/rubocop/cop/mixin/ordered_gem_node.rb#7 +# source://rubocop/lib/rubocop/cop/mixin/ordered_gem_node.rb#7 module RuboCop::Cop::OrderedGemNode private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/mixin/ordered_gem_node.rb#23 + # source://rubocop/lib/rubocop/cop/mixin/ordered_gem_node.rb#23 def case_insensitive_out_of_order?(string_a, string_b); end - # source://rubocop//lib/rubocop/cop/mixin/ordered_gem_node.rb#27 + # source://rubocop/lib/rubocop/cop/mixin/ordered_gem_node.rb#27 def consecutive_lines(previous, current); end - # source://rubocop//lib/rubocop/cop/mixin/ordered_gem_node.rb#55 + # source://rubocop/lib/rubocop/cop/mixin/ordered_gem_node.rb#55 def find_gem_name(gem_node); end - # source://rubocop//lib/rubocop/cop/mixin/ordered_gem_node.rb#18 + # source://rubocop/lib/rubocop/cop/mixin/ordered_gem_node.rb#18 def gem_canonical_name(name); end - # source://rubocop//lib/rubocop/cop/mixin/ordered_gem_node.rb#49 + # source://rubocop/lib/rubocop/cop/mixin/ordered_gem_node.rb#49 def gem_name(declaration_node); end - # source://rubocop//lib/rubocop/cop/mixin/ordered_gem_node.rb#10 + # source://rubocop/lib/rubocop/cop/mixin/ordered_gem_node.rb#10 def get_source_range(node, comments_as_separators); end - # source://rubocop//lib/rubocop/cop/mixin/ordered_gem_node.rb#32 + # source://rubocop/lib/rubocop/cop/mixin/ordered_gem_node.rb#32 def register_offense(previous, current); end - # source://rubocop//lib/rubocop/cop/mixin/ordered_gem_node.rb#61 + # source://rubocop/lib/rubocop/cop/mixin/ordered_gem_node.rb#61 def treat_comments_as_separators; end end # Common functionality for handling parentheses. # -# source://rubocop//lib/rubocop/cop/mixin/parentheses.rb#6 +# source://rubocop/lib/rubocop/cop/mixin/parentheses.rb#6 module RuboCop::Cop::Parentheses private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/mixin/parentheses.rb#9 + # source://rubocop/lib/rubocop/cop/mixin/parentheses.rb#9 def parens_required?(node); end end # This autocorrects parentheses # -# source://rubocop//lib/rubocop/cop/correctors/parentheses_corrector.rb#6 +# source://rubocop/lib/rubocop/cop/correctors/parentheses_corrector.rb#6 class RuboCop::Cop::ParenthesesCorrector extend ::RuboCop::Cop::RangeHelp class << self - # source://rubocop//lib/rubocop/cop/correctors/parentheses_corrector.rb#12 + # source://rubocop/lib/rubocop/cop/correctors/parentheses_corrector.rb#12 def correct(corrector, node); end private # Add a comma back after the heredoc identifier # - # source://rubocop//lib/rubocop/cop/correctors/parentheses_corrector.rb#74 + # source://rubocop/lib/rubocop/cop/correctors/parentheses_corrector.rb#74 def add_heredoc_comma(corrector, node); end # If the node contains a heredoc, remove the comma too # It'll be added back in the right place later # - # source://rubocop//lib/rubocop/cop/correctors/parentheses_corrector.rb#64 + # source://rubocop/lib/rubocop/cop/correctors/parentheses_corrector.rb#64 def extend_range_for_heredoc(node, range); end # If removing parentheses leaves a comma on its own line, remove all the whitespace # preceding it to prevent a syntax error. # - # source://rubocop//lib/rubocop/cop/correctors/parentheses_corrector.rb#41 + # source://rubocop/lib/rubocop/cop/correctors/parentheses_corrector.rb#41 def handle_orphaned_comma(corrector, node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/correctors/parentheses_corrector.rb#80 + # source://rubocop/lib/rubocop/cop/correctors/parentheses_corrector.rb#80 def heredoc?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/correctors/parentheses_corrector.rb#28 + # source://rubocop/lib/rubocop/cop/correctors/parentheses_corrector.rb#28 def next_char_is_question_mark?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/correctors/parentheses_corrector.rb#32 + # source://rubocop/lib/rubocop/cop/correctors/parentheses_corrector.rb#32 def only_closing_paren_before_comma?(node); end # Get a range for the closing parenthesis and all whitespace to the left of it # - # source://rubocop//lib/rubocop/cop/correctors/parentheses_corrector.rb#51 + # source://rubocop/lib/rubocop/cop/correctors/parentheses_corrector.rb#51 def parens_range(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/correctors/parentheses_corrector.rb#24 + # source://rubocop/lib/rubocop/cop/correctors/parentheses_corrector.rb#24 def ternary_condition?(node); end end end # Common functionality for handling percent arrays. # -# source://rubocop//lib/rubocop/cop/mixin/percent_array.rb#6 +# source://rubocop/lib/rubocop/cop/mixin/percent_array.rb#6 module RuboCop::Cop::PercentArray private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/mixin/percent_array.rb#26 + # source://rubocop/lib/rubocop/cop/mixin/percent_array.rb#26 def allowed_bracket_array?(node); end # @param node [RuboCop::AST::ArrayNode] # @param elements [Array] # @return [String] # - # source://rubocop//lib/rubocop/cop/mixin/percent_array.rb#83 + # source://rubocop/lib/rubocop/cop/mixin/percent_array.rb#83 def build_bracketed_array_with_appropriate_whitespace(elements:, node:); end # @param preferred_array_code [String] # @return [String] # - # source://rubocop//lib/rubocop/cop/mixin/percent_array.rb#56 + # source://rubocop/lib/rubocop/cop/mixin/percent_array.rb#56 def build_message_for_bracketed_array(preferred_array_code); end - # source://rubocop//lib/rubocop/cop/mixin/percent_array.rb#67 + # source://rubocop/lib/rubocop/cop/mixin/percent_array.rb#67 def check_bracketed_array(node, literal_prefix); end - # source://rubocop//lib/rubocop/cop/mixin/percent_array.rb#36 + # source://rubocop/lib/rubocop/cop/mixin/percent_array.rb#36 def check_percent_array(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/mixin/percent_array.rb#31 + # source://rubocop/lib/rubocop/cop/mixin/percent_array.rb#31 def comments_in_array?(node); end # Override to determine values that are invalid in a percent array # # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/mixin/percent_array.rb#22 + # source://rubocop/lib/rubocop/cop/mixin/percent_array.rb#22 def invalid_percent_array_contents?(_node); end # Ruby does not allow percent arrays in an ambiguous block context. @@ -29773,7 +30130,7 @@ module RuboCop::Cop::PercentArray # foo %i[bar baz] { qux } # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/mixin/percent_array.rb#14 + # source://rubocop/lib/rubocop/cop/mixin/percent_array.rb#14 def invalid_percent_array_context?(node); end # Provides whitespace between elements for building a bracketed array. @@ -29783,7 +30140,7 @@ module RuboCop::Cop::PercentArray # @param node [RuboCop::AST::ArrayNode] # @return [String] # - # source://rubocop//lib/rubocop/cop/mixin/percent_array.rb#98 + # source://rubocop/lib/rubocop/cop/mixin/percent_array.rb#98 def whitespace_between(node); end # Provides leading whitespace for building a bracketed array. @@ -29793,7 +30150,7 @@ module RuboCop::Cop::PercentArray # @param node [RuboCop::AST::ArrayNode] # @return [String] # - # source://rubocop//lib/rubocop/cop/mixin/percent_array.rb#111 + # source://rubocop/lib/rubocop/cop/mixin/percent_array.rb#111 def whitespace_leading(node); end # Provides trailing whitespace for building a bracketed array. @@ -29803,252 +30160,257 @@ module RuboCop::Cop::PercentArray # @param node [RuboCop::AST::ArrayNode] # @return [String] # - # source://rubocop//lib/rubocop/cop/mixin/percent_array.rb#120 + # source://rubocop/lib/rubocop/cop/mixin/percent_array.rb#120 def whitespace_trailing(node); end end # Common functionality for handling percent literals. # -# source://rubocop//lib/rubocop/cop/mixin/percent_literal.rb#6 +# source://rubocop/lib/rubocop/cop/mixin/percent_literal.rb#6 module RuboCop::Cop::PercentLiteral include ::RuboCop::Cop::RangeHelp private - # source://rubocop//lib/rubocop/cop/mixin/percent_literal.rb#23 + # source://rubocop/lib/rubocop/cop/mixin/percent_literal.rb#23 def begin_source(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/mixin/percent_literal.rb#11 + # source://rubocop/lib/rubocop/cop/mixin/percent_literal.rb#11 def percent_literal?(node); end - # source://rubocop//lib/rubocop/cop/mixin/percent_literal.rb#17 + # source://rubocop/lib/rubocop/cop/mixin/percent_literal.rb#17 def process(node, *types); end - # source://rubocop//lib/rubocop/cop/mixin/percent_literal.rb#27 + # source://rubocop/lib/rubocop/cop/mixin/percent_literal.rb#27 def type(node); end end # This autocorrects percent literals # -# source://rubocop//lib/rubocop/cop/correctors/percent_literal_corrector.rb#6 +# source://rubocop/lib/rubocop/cop/correctors/percent_literal_corrector.rb#6 class RuboCop::Cop::PercentLiteralCorrector include ::RuboCop::PathUtil include ::RuboCop::Cop::Util # @return [PercentLiteralCorrector] a new instance of PercentLiteralCorrector # - # source://rubocop//lib/rubocop/cop/correctors/percent_literal_corrector.rb#11 + # source://rubocop/lib/rubocop/cop/correctors/percent_literal_corrector.rb#11 def initialize(config, preferred_delimiters); end # Returns the value of attribute config. # - # source://rubocop//lib/rubocop/cop/correctors/percent_literal_corrector.rb#9 + # source://rubocop/lib/rubocop/cop/correctors/percent_literal_corrector.rb#9 def config; end - # source://rubocop//lib/rubocop/cop/correctors/percent_literal_corrector.rb#16 + # source://rubocop/lib/rubocop/cop/correctors/percent_literal_corrector.rb#16 def correct(corrector, node, char); end # Returns the value of attribute preferred_delimiters. # - # source://rubocop//lib/rubocop/cop/correctors/percent_literal_corrector.rb#9 + # source://rubocop/lib/rubocop/cop/correctors/percent_literal_corrector.rb#9 def preferred_delimiters; end private - # source://rubocop//lib/rubocop/cop/correctors/percent_literal_corrector.rb#46 + # source://rubocop/lib/rubocop/cop/correctors/percent_literal_corrector.rb#46 def autocorrect_multiline_words(node, escape, delimiters); end - # source://rubocop//lib/rubocop/cop/correctors/percent_literal_corrector.rb#52 + # source://rubocop/lib/rubocop/cop/correctors/percent_literal_corrector.rb#52 def autocorrect_words(node, escape, delimiters); end - # source://rubocop//lib/rubocop/cop/correctors/percent_literal_corrector.rb#34 + # 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#110 + # source://rubocop/lib/rubocop/cop/correctors/percent_literal_corrector.rb#110 def end_content(source); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/correctors/percent_literal_corrector.rb#30 + # source://rubocop/lib/rubocop/cop/correctors/percent_literal_corrector.rb#30 def escape_words?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/correctors/percent_literal_corrector.rb#78 + # source://rubocop/lib/rubocop/cop/correctors/percent_literal_corrector.rb#78 def first_line?(node, previous_line_num); end - # source://rubocop//lib/rubocop/cop/correctors/percent_literal_corrector.rb#89 + # source://rubocop/lib/rubocop/cop/correctors/percent_literal_corrector.rb#89 def fix_escaped_content(word_node, escape, delimiters); end - # source://rubocop//lib/rubocop/cop/correctors/percent_literal_corrector.rb#69 + # source://rubocop/lib/rubocop/cop/correctors/percent_literal_corrector.rb#69 def line_breaks(node, source, previous_line_num, base_line_num, node_index); end - # source://rubocop//lib/rubocop/cop/correctors/percent_literal_corrector.rb#38 + # source://rubocop/lib/rubocop/cop/correctors/percent_literal_corrector.rb#38 def new_contents(node, escape, delimiters); end - # source://rubocop//lib/rubocop/cop/correctors/percent_literal_corrector.rb#82 + # source://rubocop/lib/rubocop/cop/correctors/percent_literal_corrector.rb#82 def process_lines(node, previous_line_num, base_line_num, source_in_lines); end - # source://rubocop//lib/rubocop/cop/correctors/percent_literal_corrector.rb#58 + # source://rubocop/lib/rubocop/cop/correctors/percent_literal_corrector.rb#58 def process_multiline_words(node, escape, delimiters); end - # source://rubocop//lib/rubocop/cop/correctors/percent_literal_corrector.rb#96 + # source://rubocop/lib/rubocop/cop/correctors/percent_literal_corrector.rb#96 def substitute_escaped_delimiters(content, delimiters); end - # source://rubocop//lib/rubocop/cop/correctors/percent_literal_corrector.rb#26 + # source://rubocop/lib/rubocop/cop/correctors/percent_literal_corrector.rb#26 def wrap_contents(corrector, node, contents, char, delimiters); end end # Common functionality for checking whether an AST node/token is aligned # with something on a preceding or following line # -# source://rubocop//lib/rubocop/cop/mixin/preceding_following_alignment.rb#7 +# source://rubocop/lib/rubocop/cop/mixin/preceding_following_alignment.rb#7 module RuboCop::Cop::PrecedingFollowingAlignment private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/mixin/preceding_following_alignment.rb#93 - def aligned_assignment?(range, line); end + # source://rubocop/lib/rubocop/cop/mixin/preceding_following_alignment.rb#93 + def aligned_assignment?(range, lineno); end - # source://rubocop//lib/rubocop/cop/mixin/preceding_following_alignment.rb#70 + # source://rubocop/lib/rubocop/cop/mixin/preceding_following_alignment.rb#70 def aligned_comment_lines; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/mixin/preceding_following_alignment.rb#105 + # source://rubocop/lib/rubocop/cop/mixin/preceding_following_alignment.rb#122 def aligned_identical?(range, line); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/mixin/preceding_following_alignment.rb#81 - def aligned_operator?(range, line); end + # source://rubocop/lib/rubocop/cop/mixin/preceding_following_alignment.rb#81 + def aligned_operator?(range, line, lineno); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/mixin/preceding_following_alignment.rb#77 - def aligned_token?(range, line); end + # source://rubocop/lib/rubocop/cop/mixin/preceding_following_alignment.rb#77 + def aligned_token?(range, line, lineno); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/mixin/preceding_following_alignment.rb#34 + # source://rubocop/lib/rubocop/cop/mixin/preceding_following_alignment.rb#34 def aligned_with_adjacent_line?(range, predicate); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/mixin/preceding_following_alignment.rb#52 + # source://rubocop/lib/rubocop/cop/mixin/preceding_following_alignment.rb#52 def aligned_with_any_line?(line_ranges, range, indent = T.unsafe(nil), &predicate); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/mixin/preceding_following_alignment.rb#42 + # source://rubocop/lib/rubocop/cop/mixin/preceding_following_alignment.rb#42 def aligned_with_any_line_range?(line_ranges, range, &predicate); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/mixin/preceding_following_alignment.rb#98 - def aligned_with_append_operator?(range, line); end + # source://rubocop/lib/rubocop/cop/mixin/preceding_following_alignment.rb#114 + def aligned_with_append_operator?(range, token); end - # source://rubocop//lib/rubocop/cop/mixin/preceding_following_alignment.rb#109 + # source://rubocop/lib/rubocop/cop/mixin/preceding_following_alignment.rb#126 def aligned_with_assignment(token, line_range); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/mixin/preceding_following_alignment.rb#56 + # source://rubocop/lib/rubocop/cop/mixin/preceding_following_alignment.rb#56 def aligned_with_line?(line_nos, range, indent = T.unsafe(nil)); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/mixin/preceding_following_alignment.rb#18 + # source://rubocop/lib/rubocop/cop/mixin/preceding_following_alignment.rb#18 def aligned_with_operator?(range); end - # source://rubocop//lib/rubocop/cop/mixin/preceding_following_alignment.rb#22 + # source://rubocop/lib/rubocop/cop/mixin/preceding_following_alignment.rb#22 def aligned_with_preceding_assignment(token); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/mixin/preceding_following_alignment.rb#14 + # source://rubocop/lib/rubocop/cop/mixin/preceding_following_alignment.rb#108 + def aligned_with_preceding_assignment?(range, token); end + + # @return [Boolean] + # + # source://rubocop/lib/rubocop/cop/mixin/preceding_following_alignment.rb#14 def aligned_with_something?(range); end - # source://rubocop//lib/rubocop/cop/mixin/preceding_following_alignment.rb#28 + # source://rubocop/lib/rubocop/cop/mixin/preceding_following_alignment.rb#28 def aligned_with_subsequent_assignment(token); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/mixin/preceding_following_alignment.rb#85 + # source://rubocop/lib/rubocop/cop/mixin/preceding_following_alignment.rb#85 def aligned_words?(range, line); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/mixin/preceding_following_alignment.rb#10 + # source://rubocop/lib/rubocop/cop/mixin/preceding_following_alignment.rb#10 def allow_for_alignment?; end - # source://rubocop//lib/rubocop/cop/mixin/preceding_following_alignment.rb#127 + # source://rubocop/lib/rubocop/cop/mixin/preceding_following_alignment.rb#141 def assignment_lines; end - # source://rubocop//lib/rubocop/cop/mixin/preceding_following_alignment.rb#131 + # source://rubocop/lib/rubocop/cop/mixin/preceding_following_alignment.rb#145 def assignment_tokens; end - # source://rubocop//lib/rubocop/cop/mixin/preceding_following_alignment.rb#147 + # source://rubocop/lib/rubocop/cop/mixin/preceding_following_alignment.rb#161 def relevant_assignment_lines(line_range); end - # source://rubocop//lib/rubocop/cop/mixin/preceding_following_alignment.rb#174 + # source://rubocop/lib/rubocop/cop/mixin/preceding_following_alignment.rb#188 def remove_optarg_equals(asgn_tokens, processed_source); end end # Common functionality for handling percent literal delimiters. # -# source://rubocop//lib/rubocop/cop/mixin/preferred_delimiters.rb#6 +# source://rubocop/lib/rubocop/cop/mixin/preferred_delimiters.rb#6 class RuboCop::Cop::PreferredDelimiters # @return [PreferredDelimiters] a new instance of PreferredDelimiters # - # source://rubocop//lib/rubocop/cop/mixin/preferred_delimiters.rb#11 + # source://rubocop/lib/rubocop/cop/mixin/preferred_delimiters.rb#11 def initialize(type, config, preferred_delimiters); end # Returns the value of attribute config. # - # source://rubocop//lib/rubocop/cop/mixin/preferred_delimiters.rb#7 + # source://rubocop/lib/rubocop/cop/mixin/preferred_delimiters.rb#7 def config; end - # source://rubocop//lib/rubocop/cop/mixin/preferred_delimiters.rb#17 + # source://rubocop/lib/rubocop/cop/mixin/preferred_delimiters.rb#17 def delimiters; end # Returns the value of attribute type. # - # source://rubocop//lib/rubocop/cop/mixin/preferred_delimiters.rb#7 + # source://rubocop/lib/rubocop/cop/mixin/preferred_delimiters.rb#7 def type; end private # @raise [ArgumentError] # - # source://rubocop//lib/rubocop/cop/mixin/preferred_delimiters.rb#23 + # source://rubocop/lib/rubocop/cop/mixin/preferred_delimiters.rb#23 def ensure_valid_preferred_delimiters; end - # source://rubocop//lib/rubocop/cop/mixin/preferred_delimiters.rb#30 + # source://rubocop/lib/rubocop/cop/mixin/preferred_delimiters.rb#30 def preferred_delimiters; end - # source://rubocop//lib/rubocop/cop/mixin/preferred_delimiters.rb#45 + # source://rubocop/lib/rubocop/cop/mixin/preferred_delimiters.rb#45 def preferred_delimiters_config; end end -# source://rubocop//lib/rubocop/cop/mixin/preferred_delimiters.rb#9 +# source://rubocop/lib/rubocop/cop/mixin/preferred_delimiters.rb#9 RuboCop::Cop::PreferredDelimiters::PERCENT_LITERAL_TYPES = T.let(T.unsafe(nil), Array) # This autocorrects punctuation # -# source://rubocop//lib/rubocop/cop/correctors/punctuation_corrector.rb#6 +# source://rubocop/lib/rubocop/cop/correctors/punctuation_corrector.rb#6 class RuboCop::Cop::PunctuationCorrector class << self - # source://rubocop//lib/rubocop/cop/correctors/punctuation_corrector.rb#12 + # source://rubocop/lib/rubocop/cop/correctors/punctuation_corrector.rb#12 def add_space(corrector, token); end - # source://rubocop//lib/rubocop/cop/correctors/punctuation_corrector.rb#8 + # source://rubocop/lib/rubocop/cop/correctors/punctuation_corrector.rb#8 def remove_space(corrector, space_before); end - # source://rubocop//lib/rubocop/cop/correctors/punctuation_corrector.rb#16 + # source://rubocop/lib/rubocop/cop/correctors/punctuation_corrector.rb#16 def swap_comma(corrector, range); end end end @@ -30056,117 +30418,117 @@ end module RuboCop::Cop::RSpec; end class RuboCop::Cop::RSpec::MultipleExpectations < ::RuboCop::Cop::RSpec::Base - # source://rubocop-rspec/3.2.0/lib/rubocop/cop/rspec/multiple_expectations.rb#78 + # source://rubocop-rspec/3.3.0lib/rubocop/cop/rspec/multiple_expectations.rb#78 def aggregate_failures?(param0 = T.unsafe(nil), param1); end - # source://rubocop-rspec/3.2.0/lib/rubocop/cop/rspec/multiple_expectations.rb#89 + # source://rubocop-rspec/3.3.0lib/rubocop/cop/rspec/multiple_expectations.rb#89 def aggregate_failures_block?(param0 = T.unsafe(nil)); end - # source://rubocop-rspec/3.2.0/lib/rubocop/cop/rspec/multiple_expectations.rb#86 + # source://rubocop-rspec/3.3.0lib/rubocop/cop/rspec/multiple_expectations.rb#86 def expect?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/exclude_limit.rb#11 + # source://rubocop/lib/rubocop/cop/exclude_limit.rb#11 def max=(value); end - # source://rubocop-rspec/3.2.0/lib/rubocop/cop/rspec/multiple_expectations.rb#93 + # source://rubocop-rspec/3.3.0lib/rubocop/cop/rspec/multiple_expectations.rb#93 def on_block(node); end private - # source://rubocop-rspec/3.2.0/lib/rubocop/cop/rspec/multiple_expectations.rb#109 + # source://rubocop-rspec/3.3.0lib/rubocop/cop/rspec/multiple_expectations.rb#109 def example_with_aggregate_failures?(example_node); end - # source://rubocop-rspec/3.2.0/lib/rubocop/cop/rspec/multiple_expectations.rb#116 + # source://rubocop-rspec/3.3.0lib/rubocop/cop/rspec/multiple_expectations.rb#116 def find_aggregate_failures(example_node); end - # source://rubocop-rspec/3.2.0/lib/rubocop/cop/rspec/multiple_expectations.rb#121 + # source://rubocop-rspec/3.3.0lib/rubocop/cop/rspec/multiple_expectations.rb#121 def find_expectation(node, &block); end - # source://rubocop-rspec/3.2.0/lib/rubocop/cop/rspec/multiple_expectations.rb#132 + # source://rubocop-rspec/3.3.0lib/rubocop/cop/rspec/multiple_expectations.rb#132 def flag_example(node, expectation_count:); end - # source://rubocop-rspec/3.2.0/lib/rubocop/cop/rspec/multiple_expectations.rb#143 + # source://rubocop-rspec/3.3.0lib/rubocop/cop/rspec/multiple_expectations.rb#143 def max_expectations; end end class RuboCop::Cop::RSpec::MultipleMemoizedHelpers < ::RuboCop::Cop::RSpec::Base - # source://rubocop//lib/rubocop/cop/exclude_limit.rb#11 + # source://rubocop/lib/rubocop/cop/exclude_limit.rb#11 def max=(value); end - # source://rubocop-rspec/3.2.0/lib/rubocop/cop/rspec/multiple_memoized_helpers.rb#91 + # source://rubocop-rspec/3.3.0lib/rubocop/cop/rspec/multiple_memoized_helpers.rb#91 def on_block(node); end - # source://rubocop-rspec/3.2.0/lib/rubocop/cop/rspec/multiple_memoized_helpers.rb#102 + # source://rubocop-rspec/3.3.0lib/rubocop/cop/rspec/multiple_memoized_helpers.rb#102 def on_new_investigation; end private - # source://rubocop-rspec/3.2.0/lib/rubocop/cop/rspec/multiple_memoized_helpers.rb#111 + # source://rubocop-rspec/3.3.0lib/rubocop/cop/rspec/multiple_memoized_helpers.rb#111 def all_helpers(node); end - # source://rubocop-rspec/3.2.0/lib/rubocop/cop/rspec/multiple_memoized_helpers.rb#141 + # source://rubocop-rspec/3.3.0lib/rubocop/cop/rspec/multiple_memoized_helpers.rb#141 def allow_subject?; end - # source://rubocop-rspec/3.2.0/lib/rubocop/cop/rspec/multiple_memoized_helpers.rb#109 + # source://rubocop-rspec/3.3.0lib/rubocop/cop/rspec/multiple_memoized_helpers.rb#109 def example_group_memoized_helpers; end - # source://rubocop-rspec/3.2.0/lib/rubocop/cop/rspec/multiple_memoized_helpers.rb#116 + # source://rubocop-rspec/3.3.0lib/rubocop/cop/rspec/multiple_memoized_helpers.rb#116 def helpers(node); end - # source://rubocop-rspec/3.2.0/lib/rubocop/cop/rspec/multiple_memoized_helpers.rb#137 + # source://rubocop-rspec/3.3.0lib/rubocop/cop/rspec/multiple_memoized_helpers.rb#137 def max; end - # source://rubocop-rspec/3.2.0/lib/rubocop/cop/rspec/multiple_memoized_helpers.rb#127 + # source://rubocop-rspec/3.3.0lib/rubocop/cop/rspec/multiple_memoized_helpers.rb#127 def variable_nodes(node); end end class RuboCop::Cop::RSpec::NestedGroups < ::RuboCop::Cop::RSpec::Base - # source://rubocop//lib/rubocop/cop/exclude_limit.rb#11 + # source://rubocop/lib/rubocop/cop/exclude_limit.rb#11 def max=(value); end - # source://rubocop-rspec/3.2.0/lib/rubocop/cop/rspec/nested_groups.rb#107 + # source://rubocop-rspec/3.3.0lib/rubocop/cop/rspec/nested_groups.rb#107 def on_top_level_group(node); end private - # source://rubocop-rspec/3.2.0/lib/rubocop/cop/rspec/nested_groups.rb#157 + # source://rubocop-rspec/3.3.0lib/rubocop/cop/rspec/nested_groups.rb#157 def allowed_groups; end - # source://rubocop-rspec/3.2.0/lib/rubocop/cop/rspec/nested_groups.rb#134 + # source://rubocop-rspec/3.3.0lib/rubocop/cop/rspec/nested_groups.rb#134 def count_up_nesting?(node, example_group); end - # source://rubocop-rspec/3.2.0/lib/rubocop/cop/rspec/nested_groups.rb#119 + # source://rubocop-rspec/3.3.0lib/rubocop/cop/rspec/nested_groups.rb#119 def find_nested_example_groups(node, nesting: T.unsafe(nil), &block); end - # source://rubocop-rspec/3.2.0/lib/rubocop/cop/rspec/nested_groups.rb#144 + # source://rubocop-rspec/3.3.0lib/rubocop/cop/rspec/nested_groups.rb#144 def max_nesting; end - # source://rubocop-rspec/3.2.0/lib/rubocop/cop/rspec/nested_groups.rb#148 + # source://rubocop-rspec/3.3.0lib/rubocop/cop/rspec/nested_groups.rb#148 def max_nesting_config; end - # source://rubocop-rspec/3.2.0/lib/rubocop/cop/rspec/nested_groups.rb#140 + # source://rubocop-rspec/3.3.0lib/rubocop/cop/rspec/nested_groups.rb#140 def message(nesting); end end # Methods that calculate and return Parser::Source::Ranges # -# source://rubocop//lib/rubocop/cop/mixin/range_help.rb#6 +# source://rubocop/lib/rubocop/cop/mixin/range_help.rb#6 module RuboCop::Cop::RangeHelp private - # source://rubocop//lib/rubocop/cop/mixin/range_help.rb#141 + # source://rubocop/lib/rubocop/cop/mixin/range_help.rb#140 def add_range(range1, range2); end - # source://rubocop//lib/rubocop/cop/mixin/range_help.rb#82 + # source://rubocop/lib/rubocop/cop/mixin/range_help.rb#81 def column_offset_between(base_range, range); end # A range containing only the contents of a literal with delimiters (e.g. in # `%i{1 2 3}` this will be the range covering `1 2 3` only). # - # source://rubocop//lib/rubocop/cop/mixin/range_help.rb#32 + # source://rubocop/lib/rubocop/cop/mixin/range_help.rb#32 def contents_range(node); end - # source://rubocop//lib/rubocop/cop/mixin/range_help.rb#100 + # source://rubocop/lib/rubocop/cop/mixin/range_help.rb#99 def directions(side); end # Returns the column attribute of the range, except if the range is on @@ -30174,154 +30536,154 @@ module RuboCop::Cop::RangeHelp # line, in which case 1 is subtracted from the column value. This gives # the column as it appears when viewing the file in an editor. # - # source://rubocop//lib/rubocop/cop/mixin/range_help.rb#92 + # source://rubocop/lib/rubocop/cop/mixin/range_help.rb#91 def effective_column(range); end - # source://rubocop//lib/rubocop/cop/mixin/range_help.rb#109 + # source://rubocop/lib/rubocop/cop/mixin/range_help.rb#108 def final_pos(src, pos, increment, continuations, newlines, whitespace); end - # source://rubocop//lib/rubocop/cop/mixin/range_help.rb#117 + # source://rubocop/lib/rubocop/cop/mixin/range_help.rb#116 def move_pos(src, pos, step, condition, regexp); end - # source://rubocop//lib/rubocop/cop/mixin/range_help.rb#123 + # source://rubocop/lib/rubocop/cop/mixin/range_help.rb#122 def move_pos_str(src, pos, step, condition, needle); end - # source://rubocop//lib/rubocop/cop/mixin/range_help.rb#36 + # source://rubocop/lib/rubocop/cop/mixin/range_help.rb#36 def range_between(start_pos, end_pos); end - # source://rubocop//lib/rubocop/cop/mixin/range_help.rb#73 + # source://rubocop/lib/rubocop/cop/mixin/range_help.rb#72 def range_by_whole_lines(range, include_final_newline: T.unsafe(nil), buffer: T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/mixin/range_help.rb#134 + # source://rubocop/lib/rubocop/cop/mixin/range_help.rb#133 def range_with_comments(node); end - # source://rubocop//lib/rubocop/cop/mixin/range_help.rb#130 + # source://rubocop/lib/rubocop/cop/mixin/range_help.rb#129 def range_with_comments_and_lines(node); end - # source://rubocop//lib/rubocop/cop/mixin/range_help.rb#40 + # source://rubocop/lib/rubocop/cop/mixin/range_help.rb#40 def range_with_surrounding_comma(range, side = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/mixin/range_help.rb#55 + # source://rubocop/lib/rubocop/cop/mixin/range_help.rb#55 def range_with_surrounding_space(range_positional = T.unsafe(nil), range: T.unsafe(nil), side: T.unsafe(nil), newlines: T.unsafe(nil), whitespace: T.unsafe(nil), continuations: T.unsafe(nil), buffer: T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/mixin/range_help.rb#11 + # source://rubocop/lib/rubocop/cop/mixin/range_help.rb#11 def source_range(source_buffer, line_number, column, length = T.unsafe(nil)); end end # The Unicode codepoint # -# source://rubocop//lib/rubocop/cop/mixin/range_help.rb#9 +# source://rubocop/lib/rubocop/cop/mixin/range_help.rb#9 RuboCop::Cop::RangeHelp::BYTE_ORDER_MARK = T.let(T.unsafe(nil), Integer) -# source://rubocop//lib/rubocop/cop/mixin/range_help.rb#54 +# source://rubocop/lib/rubocop/cop/mixin/range_help.rb#54 module RuboCop::Cop::RangeHelp::NOT_GIVEN; end # Common functionality for handling Rational literals. # -# source://rubocop//lib/rubocop/cop/mixin/rational_literal.rb#6 +# source://rubocop/lib/rubocop/cop/mixin/rational_literal.rb#6 module RuboCop::Cop::RationalLiteral extend ::RuboCop::AST::NodePattern::Macros - # source://rubocop//lib/rubocop/cop/mixin/rational_literal.rb#12 + # source://rubocop/lib/rubocop/cop/mixin/rational_literal.rb#12 def rational_literal?(param0 = T.unsafe(nil)); end end # Registry that tracks all cops by their badge and department. # -# source://rubocop//lib/rubocop/cop/registry.rb#19 +# source://rubocop/lib/rubocop/cop/registry.rb#19 class RuboCop::Cop::Registry include ::Enumerable # @return [Registry] a new instance of Registry # - # source://rubocop//lib/rubocop/cop/registry.rb#51 + # source://rubocop/lib/rubocop/cop/registry.rb#51 def initialize(cops = T.unsafe(nil), options = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/registry.rb#232 + # source://rubocop/lib/rubocop/cop/registry.rb#232 def ==(other); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/registry.rb#97 + # source://rubocop/lib/rubocop/cop/registry.rb#97 def contains_cop_matching?(names); end - # source://rubocop//lib/rubocop/cop/registry.rb#179 + # source://rubocop/lib/rubocop/cop/registry.rb#179 def cops; end - # source://rubocop//lib/rubocop/cop/registry.rb#224 + # source://rubocop/lib/rubocop/cop/registry.rb#224 def cops_for_department(department); end # @return [Boolean] Checks if given name is department # - # source://rubocop//lib/rubocop/cop/registry.rb#93 + # source://rubocop/lib/rubocop/cop/registry.rb#93 def department?(name); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/registry.rb#147 + # source://rubocop/lib/rubocop/cop/registry.rb#147 def department_missing?(badge, name); end # @return [Array] list of departments for current cops. # - # source://rubocop//lib/rubocop/cop/registry.rb#72 + # source://rubocop/lib/rubocop/cop/registry.rb#72 def departments; end - # source://rubocop//lib/rubocop/cop/registry.rb#193 + # source://rubocop/lib/rubocop/cop/registry.rb#193 def disabled(config); end - # source://rubocop//lib/rubocop/cop/registry.rb#67 + # source://rubocop/lib/rubocop/cop/registry.rb#67 def dismiss(cop); end - # source://rubocop//lib/rubocop/cop/registry.rb#247 + # source://rubocop/lib/rubocop/cop/registry.rb#247 def each(&block); end - # source://rubocop//lib/rubocop/cop/registry.rb#189 + # source://rubocop/lib/rubocop/cop/registry.rb#189 def enabled(config); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/registry.rb#197 + # source://rubocop/lib/rubocop/cop/registry.rb#197 def enabled?(cop, config); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/registry.rb#213 + # source://rubocop/lib/rubocop/cop/registry.rb#213 def enabled_pending_cop?(cop_cfg, config); end - # source://rubocop//lib/rubocop/cop/registry.rb#63 + # source://rubocop/lib/rubocop/cop/registry.rb#63 def enlist(cop); end # @param cop_name [String] # @return [Class, nil] # - # source://rubocop//lib/rubocop/cop/registry.rb#253 + # source://rubocop/lib/rubocop/cop/registry.rb#253 def find_by_cop_name(cop_name); end # When a cop name is given returns a single-element array with the cop class. # When a department name is given returns an array with all the cop classes # for that department. # - # source://rubocop//lib/rubocop/cop/registry.rb#260 + # source://rubocop/lib/rubocop/cop/registry.rb#260 def find_cops_by_directive(directive); end - # source://rubocop//lib/rubocop/cop/registry.rb#265 + # source://rubocop/lib/rubocop/cop/registry.rb#265 def freeze; end - # source://rubocop//lib/rubocop/cop/registry.rb#184 + # source://rubocop/lib/rubocop/cop/registry.rb#184 def length; end - # source://rubocop//lib/rubocop/cop/registry.rb#220 + # source://rubocop/lib/rubocop/cop/registry.rb#220 def names; end - # source://rubocop//lib/rubocop/cop/registry.rb#228 + # source://rubocop/lib/rubocop/cop/registry.rb#228 def names_for_department(department); end # Returns the value of attribute options. # - # source://rubocop//lib/rubocop/cop/registry.rb#49 + # source://rubocop/lib/rubocop/cop/registry.rb#49 def options; end - # source://rubocop//lib/rubocop/cop/registry.rb#151 + # source://rubocop/lib/rubocop/cop/registry.rb#151 def print_warning(name, path); end # Convert a user provided cop name into a properly namespaced name @@ -30349,79 +30711,79 @@ class RuboCop::Cop::Registry # @raise [AmbiguousCopName] if a bare identifier with two possible namespaces is provided # @return [String] Qualified cop name # - # source://rubocop//lib/rubocop/cop/registry.rb#133 + # source://rubocop/lib/rubocop/cop/registry.rb#133 def qualified_cop_name(name, path, warn: T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/registry.rb#166 + # source://rubocop/lib/rubocop/cop/registry.rb#166 def qualify_badge(badge); end - # source://rubocop//lib/rubocop/cop/registry.rb#243 + # source://rubocop/lib/rubocop/cop/registry.rb#243 def select(&block); end - # source://rubocop//lib/rubocop/cop/registry.rb#236 + # source://rubocop/lib/rubocop/cop/registry.rb#236 def sort!; end # @return [Hash{String => Array}] # - # source://rubocop//lib/rubocop/cop/registry.rb#174 + # source://rubocop/lib/rubocop/cop/registry.rb#174 def to_h; end - # source://rubocop//lib/rubocop/cop/registry.rb#159 + # source://rubocop/lib/rubocop/cop/registry.rb#159 def unqualified_cop_names; end # @return [Registry] Cops for that specific department. # - # source://rubocop//lib/rubocop/cop/registry.rb#78 + # source://rubocop/lib/rubocop/cop/registry.rb#78 def with_department(department); end # @return [Registry] Cops not for a specific department. # - # source://rubocop//lib/rubocop/cop/registry.rb#84 + # source://rubocop/lib/rubocop/cop/registry.rb#84 def without_department(department); end private - # source://rubocop//lib/rubocop/cop/registry.rb#283 + # source://rubocop/lib/rubocop/cop/registry.rb#283 def clear_enrollment_queue; end - # source://rubocop//lib/rubocop/cop/registry.rb#279 + # source://rubocop/lib/rubocop/cop/registry.rb#279 def initialize_copy(reg); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/registry.rb#309 + # source://rubocop/lib/rubocop/cop/registry.rb#309 def registered?(badge); end - # source://rubocop//lib/rubocop/cop/registry.rb#299 + # source://rubocop/lib/rubocop/cop/registry.rb#299 def resolve_badge(given_badge, real_badge, source_path); end - # source://rubocop//lib/rubocop/cop/registry.rb#295 + # source://rubocop/lib/rubocop/cop/registry.rb#295 def with(cops); end class << self - # source://rubocop//lib/rubocop/cop/registry.rb#22 + # source://rubocop/lib/rubocop/cop/registry.rb#22 def all; end # Returns the value of attribute global. # - # source://rubocop//lib/rubocop/cop/registry.rb#274 + # source://rubocop/lib/rubocop/cop/registry.rb#274 def global; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/registry.rb#44 + # source://rubocop/lib/rubocop/cop/registry.rb#44 def qualified_cop?(name); end - # source://rubocop//lib/rubocop/cop/registry.rb#26 + # source://rubocop/lib/rubocop/cop/registry.rb#26 def qualified_cop_name(name, origin); end - # source://rubocop//lib/rubocop/cop/registry.rb#40 + # source://rubocop/lib/rubocop/cop/registry.rb#40 def reset!; end # Changes momentarily the global registry # Intended for testing purposes # - # source://rubocop//lib/rubocop/cop/registry.rb#32 + # source://rubocop/lib/rubocop/cop/registry.rb#32 def with_temporary_global(temp_global = T.unsafe(nil)); end end end @@ -30429,67 +30791,67 @@ end # Ensure a require statement is present for a standard library determined # by variable library_name # -# source://rubocop//lib/rubocop/cop/mixin/require_library.rb#7 +# source://rubocop/lib/rubocop/cop/mixin/require_library.rb#7 module RuboCop::Cop::RequireLibrary extend ::RuboCop::AST::NodePattern::Macros - # source://rubocop//lib/rubocop/cop/mixin/require_library.rb#12 + # source://rubocop/lib/rubocop/cop/mixin/require_library.rb#12 def ensure_required(corrector, node, library_name); end - # source://rubocop//lib/rubocop/cop/mixin/require_library.rb#33 + # source://rubocop/lib/rubocop/cop/mixin/require_library.rb#33 def on_send(node); end - # source://rubocop//lib/rubocop/cop/mixin/require_library.rb#24 + # source://rubocop/lib/rubocop/cop/mixin/require_library.rb#24 def remove_subsequent_requires(corrector, node, library_name); end - # source://rubocop//lib/rubocop/cop/mixin/require_library.rb#51 + # source://rubocop/lib/rubocop/cop/mixin/require_library.rb#51 def require_any_library?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/mixin/require_library.rb#56 + # source://rubocop/lib/rubocop/cop/mixin/require_library.rb#56 def require_library_name?(param0 = T.unsafe(nil), param1); end private - # source://rubocop//lib/rubocop/cop/mixin/require_library.rb#44 + # source://rubocop/lib/rubocop/cop/mixin/require_library.rb#44 def on_new_investigation; end end -# source://rubocop//lib/rubocop/cop/mixin/require_library.rb#10 +# source://rubocop/lib/rubocop/cop/mixin/require_library.rb#10 RuboCop::Cop::RequireLibrary::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # This class ensures a require statement is present for a standard library # determined by the variable library_name # -# source://rubocop//lib/rubocop/cop/correctors/require_library_corrector.rb#7 +# source://rubocop/lib/rubocop/cop/correctors/require_library_corrector.rb#7 class RuboCop::Cop::RequireLibraryCorrector extend ::RuboCop::Cop::RangeHelp class << self - # source://rubocop//lib/rubocop/cop/correctors/require_library_corrector.rb#11 + # source://rubocop/lib/rubocop/cop/correctors/require_library_corrector.rb#11 def correct(corrector, node, library_name); end - # source://rubocop//lib/rubocop/cop/correctors/require_library_corrector.rb#17 + # source://rubocop/lib/rubocop/cop/correctors/require_library_corrector.rb#17 def require_statement(library_name); end end end # Common functionality for checking `rescue` nodes. # -# source://rubocop//lib/rubocop/cop/mixin/rescue_node.rb#6 +# source://rubocop/lib/rubocop/cop/mixin/rescue_node.rb#6 module RuboCop::Cop::RescueNode - # source://rubocop//lib/rubocop/cop/mixin/rescue_node.rb#7 + # source://rubocop/lib/rubocop/cop/mixin/rescue_node.rb#7 def modifier_locations; end private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/mixin/rescue_node.rb#13 + # source://rubocop/lib/rubocop/cop/mixin/rescue_node.rb#13 def rescue_modifier?(node); end # @deprecated Use ResbodyNode#exceptions instead # - # source://rubocop//lib/rubocop/cop/mixin/rescue_node.rb#20 + # source://rubocop/lib/rubocop/cop/mixin/rescue_node.rb#20 def rescued_exceptions(resbody); end end @@ -30497,28 +30859,28 @@ end # putting parentheses around an assignment to indicate "I know I'm using an # assignment as a condition. It's not a mistake." # -# source://rubocop//lib/rubocop/cop/mixin/safe_assignment.rb#8 +# source://rubocop/lib/rubocop/cop/mixin/safe_assignment.rb#8 module RuboCop::Cop::SafeAssignment extend ::RuboCop::AST::NodePattern::Macros - # source://rubocop//lib/rubocop/cop/mixin/safe_assignment.rb#14 + # source://rubocop/lib/rubocop/cop/mixin/safe_assignment.rb#14 def empty_condition?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/mixin/safe_assignment.rb#20 + # source://rubocop/lib/rubocop/cop/mixin/safe_assignment.rb#20 def safe_assignment?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/mixin/safe_assignment.rb#17 + # source://rubocop/lib/rubocop/cop/mixin/safe_assignment.rb#17 def setter_method?(param0 = T.unsafe(nil)); end private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/mixin/safe_assignment.rb#22 + # source://rubocop/lib/rubocop/cop/mixin/safe_assignment.rb#22 def safe_assignment_allowed?; end end -# source://rubocop//lib/rubocop/cop/security/compound_hash.rb#5 +# source://rubocop/lib/rubocop/cop/security/compound_hash.rb#5 module RuboCop::Cop::Security; end # Checks for implementations of the `hash` method which combine @@ -30542,52 +30904,55 @@ module RuboCop::Cop::Security; end # [@foo, @bar].hash # end # -# source://rubocop//lib/rubocop/cop/security/compound_hash.rb#30 +# source://rubocop/lib/rubocop/cop/security/compound_hash.rb#30 class RuboCop::Cop::Security::CompoundHash < ::RuboCop::Cop::Base - # source://rubocop//lib/rubocop/cop/security/compound_hash.rb#58 + # source://rubocop/lib/rubocop/cop/security/compound_hash.rb#59 def bad_hash_combinator?(param0 = T.unsafe(nil)); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/security/compound_hash.rb#75 + # source://rubocop/lib/rubocop/cop/security/compound_hash.rb#76 def contained_in_hash_method?(node, &block); end - # source://rubocop//lib/rubocop/cop/security/compound_hash.rb#42 + # source://rubocop/lib/rubocop/cop/security/compound_hash.rb#43 def dynamic_hash_method_definition?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/security/compound_hash.rb#37 + # source://rubocop/lib/rubocop/cop/security/compound_hash.rb#38 def hash_method_definition?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/security/compound_hash.rb#63 + # source://rubocop/lib/rubocop/cop/security/compound_hash.rb#64 def monuple_hash?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/security/compound_hash.rb#87 + # source://rubocop/lib/rubocop/cop/security/compound_hash.rb#88 def on_op_asgn(node); end - # source://rubocop//lib/rubocop/cop/security/compound_hash.rb#87 + # source://rubocop/lib/rubocop/cop/security/compound_hash.rb#88 def on_send(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/security/compound_hash.rb#81 + # source://rubocop/lib/rubocop/cop/security/compound_hash.rb#82 def outer_bad_hash_combinator?(node); end - # source://rubocop//lib/rubocop/cop/security/compound_hash.rb#68 + # source://rubocop/lib/rubocop/cop/security/compound_hash.rb#69 def redundant_hash?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/security/compound_hash.rb#51 + # source://rubocop/lib/rubocop/cop/security/compound_hash.rb#52 def static_hash_method_definition?(param0 = T.unsafe(nil)); end end -# source://rubocop//lib/rubocop/cop/security/compound_hash.rb#31 +# source://rubocop/lib/rubocop/cop/security/compound_hash.rb#31 RuboCop::Cop::Security::CompoundHash::COMBINATOR_IN_HASH_MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/security/compound_hash.rb#32 +# source://rubocop/lib/rubocop/cop/security/compound_hash.rb#32 RuboCop::Cop::Security::CompoundHash::MONUPLE_HASH_MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/security/compound_hash.rb#34 +# source://rubocop/lib/rubocop/cop/security/compound_hash.rb#34 RuboCop::Cop::Security::CompoundHash::REDUNDANT_HASH_MSG = T.let(T.unsafe(nil), String) +# source://rubocop/lib/rubocop/cop/security/compound_hash.rb#35 +RuboCop::Cop::Security::CompoundHash::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + # Checks for the use of `Kernel#eval` and `Binding#eval`. # # @example @@ -30597,19 +30962,19 @@ RuboCop::Cop::Security::CompoundHash::REDUNDANT_HASH_MSG = T.let(T.unsafe(nil), # eval(something) # binding.eval(something) # -# source://rubocop//lib/rubocop/cop/security/eval.rb#14 +# source://rubocop/lib/rubocop/cop/security/eval.rb#14 class RuboCop::Cop::Security::Eval < ::RuboCop::Cop::Base - # source://rubocop//lib/rubocop/cop/security/eval.rb#19 + # source://rubocop/lib/rubocop/cop/security/eval.rb#19 def eval?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/security/eval.rb#23 + # source://rubocop/lib/rubocop/cop/security/eval.rb#23 def on_send(node); end end -# source://rubocop//lib/rubocop/cop/security/eval.rb#15 +# source://rubocop/lib/rubocop/cop/security/eval.rb#15 RuboCop::Cop::Security::Eval::MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/security/eval.rb#16 +# source://rubocop/lib/rubocop/cop/security/eval.rb#16 RuboCop::Cop::Security::Eval::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Checks for the first argument to `IO.read`, `IO.binread`, `IO.write`, `IO.binwrite`, @@ -30632,18 +30997,18 @@ RuboCop::Cop::Security::Eval::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # File.read('path') # IO.read('| command') # Allow intentional command invocation. # -# source://rubocop//lib/rubocop/cop/security/io_methods.rb#30 +# source://rubocop/lib/rubocop/cop/security/io_methods.rb#30 class RuboCop::Cop::Security::IoMethods < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/security/io_methods.rb#36 + # source://rubocop/lib/rubocop/cop/security/io_methods.rb#36 def on_send(node); end end -# source://rubocop//lib/rubocop/cop/security/io_methods.rb#33 +# source://rubocop/lib/rubocop/cop/security/io_methods.rb#33 RuboCop::Cop::Security::IoMethods::MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/security/io_methods.rb#34 +# source://rubocop/lib/rubocop/cop/security/io_methods.rb#34 RuboCop::Cop::Security::IoMethods::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Checks for the use of JSON class methods which have potential @@ -30657,21 +31022,21 @@ RuboCop::Cop::Security::IoMethods::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array # # good # JSON.parse("{}") # -# source://rubocop//lib/rubocop/cop/security/json_load.rb#26 +# source://rubocop/lib/rubocop/cop/security/json_load.rb#26 class RuboCop::Cop::Security::JSONLoad < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/security/json_load.rb#33 + # source://rubocop/lib/rubocop/cop/security/json_load.rb#33 def json_load(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/security/json_load.rb#37 + # source://rubocop/lib/rubocop/cop/security/json_load.rb#37 def on_send(node); end end -# source://rubocop//lib/rubocop/cop/security/json_load.rb#29 +# source://rubocop/lib/rubocop/cop/security/json_load.rb#29 RuboCop::Cop::Security::JSONLoad::MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/security/json_load.rb#30 +# source://rubocop/lib/rubocop/cop/security/json_load.rb#30 RuboCop::Cop::Security::JSONLoad::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Checks for the use of Marshal class methods which have @@ -30689,19 +31054,19 @@ RuboCop::Cop::Security::JSONLoad::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # # okish - deep copy hack # Marshal.load(Marshal.dump({})) # -# source://rubocop//lib/rubocop/cop/security/marshal_load.rb#21 +# source://rubocop/lib/rubocop/cop/security/marshal_load.rb#21 class RuboCop::Cop::Security::MarshalLoad < ::RuboCop::Cop::Base - # source://rubocop//lib/rubocop/cop/security/marshal_load.rb#26 + # source://rubocop/lib/rubocop/cop/security/marshal_load.rb#26 def marshal_load(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/security/marshal_load.rb#31 + # source://rubocop/lib/rubocop/cop/security/marshal_load.rb#31 def on_send(node); end end -# source://rubocop//lib/rubocop/cop/security/marshal_load.rb#22 +# source://rubocop/lib/rubocop/cop/security/marshal_load.rb#22 RuboCop::Cop::Security::MarshalLoad::MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/security/marshal_load.rb#23 +# source://rubocop/lib/rubocop/cop/security/marshal_load.rb#23 RuboCop::Cop::Security::MarshalLoad::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Checks for the use of `Kernel#open` and `URI.open` with dynamic @@ -30732,51 +31097,51 @@ RuboCop::Cop::Security::MarshalLoad::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Arr # open("foo.text") # URI.open("http://example.com") # -# source://rubocop//lib/rubocop/cop/security/open.rb#37 +# source://rubocop/lib/rubocop/cop/security/open.rb#37 class RuboCop::Cop::Security::Open < ::RuboCop::Cop::Base - # source://rubocop//lib/rubocop/cop/security/open.rb#46 + # source://rubocop/lib/rubocop/cop/security/open.rb#46 def on_send(node); end - # source://rubocop//lib/rubocop/cop/security/open.rb#42 + # source://rubocop/lib/rubocop/cop/security/open.rb#42 def open?(param0 = T.unsafe(nil)); end private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/security/open.rb#75 + # source://rubocop/lib/rubocop/cop/security/open.rb#75 def composite_string?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/security/open.rb#83 + # source://rubocop/lib/rubocop/cop/security/open.rb#83 def concatenated_string?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/security/open.rb#79 + # source://rubocop/lib/rubocop/cop/security/open.rb#79 def interpolated_string?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/security/open.rb#57 + # source://rubocop/lib/rubocop/cop/security/open.rb#57 def safe?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/security/open.rb#67 + # source://rubocop/lib/rubocop/cop/security/open.rb#67 def safe_argument?(argument); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/security/open.rb#71 + # source://rubocop/lib/rubocop/cop/security/open.rb#71 def simple_string?(node); end end -# source://rubocop//lib/rubocop/cop/security/open.rb#38 +# source://rubocop/lib/rubocop/cop/security/open.rb#38 RuboCop::Cop::Security::Open::MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/security/open.rb#39 +# source://rubocop/lib/rubocop/cop/security/open.rb#39 RuboCop::Cop::Security::Open::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Checks for the use of YAML class methods which have @@ -30795,26 +31160,27 @@ RuboCop::Cop::Security::Open::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # YAML.load("--- !ruby/object:Foo {}", permitted_classes: [Foo]) # Ruby 3.1+ (Psych 4) # YAML.dump(foo) # -# source://rubocop//lib/rubocop/cop/security/yaml_load.rb#26 +# source://rubocop/lib/rubocop/cop/security/yaml_load.rb#26 class RuboCop::Cop::Security::YAMLLoad < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector + extend ::RuboCop::Cop::TargetRubyVersion - # source://rubocop//lib/rubocop/cop/security/yaml_load.rb#37 + # source://rubocop/lib/rubocop/cop/security/yaml_load.rb#40 def on_send(node); end - # source://rubocop//lib/rubocop/cop/security/yaml_load.rb#33 + # source://rubocop/lib/rubocop/cop/security/yaml_load.rb#36 def yaml_load(param0 = T.unsafe(nil)); end end -# source://rubocop//lib/rubocop/cop/security/yaml_load.rb#29 +# source://rubocop/lib/rubocop/cop/security/yaml_load.rb#30 RuboCop::Cop::Security::YAMLLoad::MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/security/yaml_load.rb#30 +# source://rubocop/lib/rubocop/cop/security/yaml_load.rb#31 RuboCop::Cop::Security::YAMLLoad::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Severity class is simple value object about severity # -# source://rubocop//lib/rubocop/cop/severity.rb#6 +# source://rubocop/lib/rubocop/cop/severity.rb#6 class RuboCop::Cop::Severity include ::Comparable @@ -30822,212 +31188,212 @@ class RuboCop::Cop::Severity # @raise [ArgumentError] # @return [Severity] a new instance of Severity # - # source://rubocop//lib/rubocop/cop/severity.rb#30 + # source://rubocop/lib/rubocop/cop/severity.rb#30 def initialize(name_or_code); end - # source://rubocop//lib/rubocop/cop/severity.rb#62 + # source://rubocop/lib/rubocop/cop/severity.rb#62 def <=>(other); end - # source://rubocop//lib/rubocop/cop/severity.rb#50 + # source://rubocop/lib/rubocop/cop/severity.rb#50 def ==(other); end - # source://rubocop//lib/rubocop/cop/severity.rb#42 + # source://rubocop/lib/rubocop/cop/severity.rb#42 def code; end - # source://rubocop//lib/rubocop/cop/severity.rb#58 + # source://rubocop/lib/rubocop/cop/severity.rb#58 def hash; end - # source://rubocop//lib/rubocop/cop/severity.rb#46 + # source://rubocop/lib/rubocop/cop/severity.rb#46 def level; end # @api public # @return [Symbol] severity. # any of `:info`, `:refactor`, `:convention`, `:warning`, `:error` or `:fatal`. # - # source://rubocop//lib/rubocop/cop/severity.rb#22 + # source://rubocop/lib/rubocop/cop/severity.rb#22 def name; end - # source://rubocop//lib/rubocop/cop/severity.rb#38 + # source://rubocop/lib/rubocop/cop/severity.rb#38 def to_s; end class << self - # source://rubocop//lib/rubocop/cop/severity.rb#24 + # source://rubocop/lib/rubocop/cop/severity.rb#24 def name_from_code(code); end end end # @api private # -# source://rubocop//lib/rubocop/cop/severity.rb#12 +# source://rubocop/lib/rubocop/cop/severity.rb#12 RuboCop::Cop::Severity::CODE_TABLE = T.let(T.unsafe(nil), Hash) -# source://rubocop//lib/rubocop/cop/severity.rb#9 +# source://rubocop/lib/rubocop/cop/severity.rb#9 RuboCop::Cop::Severity::NAMES = T.let(T.unsafe(nil), Array) # Common functionality for cops checking for missing space after # punctuation. # -# source://rubocop//lib/rubocop/cop/mixin/space_after_punctuation.rb#7 +# source://rubocop/lib/rubocop/cop/mixin/space_after_punctuation.rb#7 module RuboCop::Cop::SpaceAfterPunctuation - # source://rubocop//lib/rubocop/cop/mixin/space_after_punctuation.rb#10 + # source://rubocop/lib/rubocop/cop/mixin/space_after_punctuation.rb#10 def on_new_investigation; end private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/mixin/space_after_punctuation.rb#38 + # source://rubocop/lib/rubocop/cop/mixin/space_after_punctuation.rb#38 def allowed_type?(token); end - # source://rubocop//lib/rubocop/cop/mixin/space_after_punctuation.rb#20 + # source://rubocop/lib/rubocop/cop/mixin/space_after_punctuation.rb#20 def each_missing_space(tokens); end # The normal offset, i.e., the distance from the punctuation # token where a space should be, is 1. # - # source://rubocop//lib/rubocop/cop/mixin/space_after_punctuation.rb#49 + # source://rubocop/lib/rubocop/cop/mixin/space_after_punctuation.rb#49 def offset; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/mixin/space_after_punctuation.rb#42 + # source://rubocop/lib/rubocop/cop/mixin/space_after_punctuation.rb#42 def space_forbidden_before_rcurly?; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/mixin/space_after_punctuation.rb#30 + # source://rubocop/lib/rubocop/cop/mixin/space_after_punctuation.rb#30 def space_missing?(token1, token2); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/mixin/space_after_punctuation.rb#34 + # source://rubocop/lib/rubocop/cop/mixin/space_after_punctuation.rb#34 def space_required_before?(token); end end -# source://rubocop//lib/rubocop/cop/mixin/space_after_punctuation.rb#8 +# source://rubocop/lib/rubocop/cop/mixin/space_after_punctuation.rb#8 RuboCop::Cop::SpaceAfterPunctuation::MSG = T.let(T.unsafe(nil), String) # Common functionality for cops checking for space before # punctuation. # -# source://rubocop//lib/rubocop/cop/mixin/space_before_punctuation.rb#7 +# source://rubocop/lib/rubocop/cop/mixin/space_before_punctuation.rb#7 module RuboCop::Cop::SpaceBeforePunctuation include ::RuboCop::Cop::RangeHelp - # source://rubocop//lib/rubocop/cop/mixin/space_before_punctuation.rb#12 + # source://rubocop/lib/rubocop/cop/mixin/space_before_punctuation.rb#12 def on_new_investigation; end private - # source://rubocop//lib/rubocop/cop/mixin/space_before_punctuation.rb#22 + # source://rubocop/lib/rubocop/cop/mixin/space_before_punctuation.rb#22 def each_missing_space(tokens); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/mixin/space_before_punctuation.rb#34 + # source://rubocop/lib/rubocop/cop/mixin/space_before_punctuation.rb#34 def space_missing?(token1, token2); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/mixin/space_before_punctuation.rb#38 + # source://rubocop/lib/rubocop/cop/mixin/space_before_punctuation.rb#38 def space_required_after?(token); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/mixin/space_before_punctuation.rb#42 + # source://rubocop/lib/rubocop/cop/mixin/space_before_punctuation.rb#42 def space_required_after_lcurly?; end end -# source://rubocop//lib/rubocop/cop/mixin/space_before_punctuation.rb#10 +# source://rubocop/lib/rubocop/cop/mixin/space_before_punctuation.rb#10 RuboCop::Cop::SpaceBeforePunctuation::MSG = T.let(T.unsafe(nil), String) # This autocorrects whitespace # -# source://rubocop//lib/rubocop/cop/correctors/space_corrector.rb#6 +# source://rubocop/lib/rubocop/cop/correctors/space_corrector.rb#6 class RuboCop::Cop::SpaceCorrector extend ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::SurroundingSpace class << self - # source://rubocop//lib/rubocop/cop/correctors/space_corrector.rb#36 + # source://rubocop/lib/rubocop/cop/correctors/space_corrector.rb#36 def add_space(processed_source, corrector, left_token, right_token); end - # source://rubocop//lib/rubocop/cop/correctors/space_corrector.rb#12 + # source://rubocop/lib/rubocop/cop/correctors/space_corrector.rb#12 def empty_corrections(processed_source, corrector, empty_config, left_token, right_token); end # Returns the value of attribute processed_source. # - # source://rubocop//lib/rubocop/cop/correctors/space_corrector.rb#10 + # source://rubocop/lib/rubocop/cop/correctors/space_corrector.rb#10 def processed_source; end - # source://rubocop//lib/rubocop/cop/correctors/space_corrector.rb#24 + # source://rubocop/lib/rubocop/cop/correctors/space_corrector.rb#24 def remove_space(processed_source, corrector, left_token, right_token); end end end # Common functionality for modifier cops. # -# source://rubocop//lib/rubocop/cop/mixin/statement_modifier.rb#6 +# source://rubocop/lib/rubocop/cop/mixin/statement_modifier.rb#6 module RuboCop::Cop::StatementModifier include ::RuboCop::Cop::Alignment include ::RuboCop::Cop::LineLengthHelp private - # source://rubocop//lib/rubocop/cop/mixin/statement_modifier.rb#80 + # source://rubocop/lib/rubocop/cop/mixin/statement_modifier.rb#80 def code_after(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/mixin/statement_modifier.rb#104 + # source://rubocop/lib/rubocop/cop/mixin/statement_modifier.rb#104 def comment_disables_cop?(comment); end - # source://rubocop//lib/rubocop/cop/mixin/statement_modifier.rb#72 + # source://rubocop/lib/rubocop/cop/mixin/statement_modifier.rb#72 def first_line_comment(node); end - # source://rubocop//lib/rubocop/cop/mixin/statement_modifier.rb#57 + # source://rubocop/lib/rubocop/cop/mixin/statement_modifier.rb#57 def if_body_source(if_body); end - # source://rubocop//lib/rubocop/cop/mixin/statement_modifier.rb#43 + # source://rubocop/lib/rubocop/cop/mixin/statement_modifier.rb#43 def length_in_modifier_form(node); end - # source://rubocop//lib/rubocop/cop/mixin/statement_modifier.rb#98 + # source://rubocop/lib/rubocop/cop/mixin/statement_modifier.rb#98 def max_line_length; end - # source://rubocop//lib/rubocop/cop/mixin/statement_modifier.rb#66 + # source://rubocop/lib/rubocop/cop/mixin/statement_modifier.rb#66 def method_source(if_body); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/mixin/statement_modifier.rb#37 + # source://rubocop/lib/rubocop/cop/mixin/statement_modifier.rb#37 def modifier_fits_on_single_line?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/mixin/statement_modifier.rb#26 + # source://rubocop/lib/rubocop/cop/mixin/statement_modifier.rb#26 def non_eligible_body?(body); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/mixin/statement_modifier.rb#33 + # source://rubocop/lib/rubocop/cop/mixin/statement_modifier.rb#33 def non_eligible_condition?(condition); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/mixin/statement_modifier.rb#19 + # source://rubocop/lib/rubocop/cop/mixin/statement_modifier.rb#19 def non_eligible_node?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/mixin/statement_modifier.rb#86 + # source://rubocop/lib/rubocop/cop/mixin/statement_modifier.rb#86 def parenthesize?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/mixin/statement_modifier.rb#11 + # source://rubocop/lib/rubocop/cop/mixin/statement_modifier.rb#11 def single_line_as_modifier?(node); end - # source://rubocop//lib/rubocop/cop/mixin/statement_modifier.rb#50 + # source://rubocop/lib/rubocop/cop/mixin/statement_modifier.rb#50 def to_modifier_form(node); end end @@ -31036,59 +31402,59 @@ end # adding offenses for the faulty string nodes, and with filtering out # nodes. # -# source://rubocop//lib/rubocop/cop/mixin/string_help.rb#9 +# source://rubocop/lib/rubocop/cop/mixin/string_help.rb#9 module RuboCop::Cop::StringHelp - # source://rubocop//lib/rubocop/cop/mixin/string_help.rb#26 + # source://rubocop/lib/rubocop/cop/mixin/string_help.rb#26 def on_regexp(node); end - # source://rubocop//lib/rubocop/cop/mixin/string_help.rb#10 + # source://rubocop/lib/rubocop/cop/mixin/string_help.rb#10 def on_str(node); end private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/mixin/string_help.rb#32 + # source://rubocop/lib/rubocop/cop/mixin/string_help.rb#32 def inside_interpolation?(node); end end # This autocorrects string literals # -# source://rubocop//lib/rubocop/cop/correctors/string_literal_corrector.rb#6 +# source://rubocop/lib/rubocop/cop/correctors/string_literal_corrector.rb#6 class RuboCop::Cop::StringLiteralCorrector extend ::RuboCop::PathUtil extend ::RuboCop::Cop::Util class << self - # source://rubocop//lib/rubocop/cop/correctors/string_literal_corrector.rb#10 + # source://rubocop/lib/rubocop/cop/correctors/string_literal_corrector.rb#10 def correct(corrector, node, style); end end end # Common functionality for cops checking single/double quotes. # -# source://rubocop//lib/rubocop/cop/mixin/string_literals_help.rb#6 +# source://rubocop/lib/rubocop/cop/mixin/string_literals_help.rb#6 module RuboCop::Cop::StringLiteralsHelp private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/mixin/string_literals_help.rb#24 + # source://rubocop/lib/rubocop/cop/mixin/string_literals_help.rb#24 def enforce_double_quotes?; end - # source://rubocop//lib/rubocop/cop/mixin/string_literals_help.rb#20 + # source://rubocop/lib/rubocop/cop/mixin/string_literals_help.rb#20 def preferred_string_literal; end - # source://rubocop//lib/rubocop/cop/mixin/string_literals_help.rb#28 + # source://rubocop/lib/rubocop/cop/mixin/string_literals_help.rb#28 def string_literals_config; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/mixin/string_literals_help.rb#9 + # source://rubocop/lib/rubocop/cop/mixin/string_literals_help.rb#9 def wrong_quotes?(src_or_node); end end -# source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#5 +# source://rubocop/lib/rubocop/cop/style/access_modifier_declarations.rb#5 module RuboCop::Cop::Style; end # Access modifiers should be declared to apply to a group of methods @@ -31151,6 +31517,7 @@ module RuboCop::Cop::Style; end # private :bar, :baz # private *%i[qux quux] # private *METHOD_NAMES +# private *private_methods # # end # @example AllowModifiersOnSymbols: false @@ -31160,6 +31527,7 @@ module RuboCop::Cop::Style; end # private :bar, :baz # private *%i[qux quux] # private *METHOD_NAMES +# private *private_methods # # end # @example AllowModifiersOnAttrs: true (default) @@ -31189,106 +31557,116 @@ module RuboCop::Cop::Style; end # # end # -# source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#113 +# source://rubocop/lib/rubocop/cop/style/access_modifier_declarations.rb#115 class RuboCop::Cop::Style::AccessModifierDeclarations < ::RuboCop::Cop::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#141 + # source://rubocop/lib/rubocop/cop/style/access_modifier_declarations.rb#143 def access_modifier_with_attr?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#134 + # source://rubocop/lib/rubocop/cop/style/access_modifier_declarations.rb#136 def access_modifier_with_symbol?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#146 + # source://rubocop/lib/rubocop/cop/style/access_modifier_declarations.rb#148 def on_send(node); end private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#205 + # source://rubocop/lib/rubocop/cop/style/access_modifier_declarations.rb#218 def access_modifier_is_inlined?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#209 + # source://rubocop/lib/rubocop/cop/style/access_modifier_declarations.rb#222 def access_modifier_is_not_inlined?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#187 + # source://rubocop/lib/rubocop/cop/style/access_modifier_declarations.rb#193 def allow_modifiers_on_attrs?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#183 + # source://rubocop/lib/rubocop/cop/style/access_modifier_declarations.rb#189 def allow_modifiers_on_symbols?(node); end - # source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#164 + # @return [Boolean] + # + # source://rubocop/lib/rubocop/cop/style/access_modifier_declarations.rb#163 + def allowed?(node); end + + # source://rubocop/lib/rubocop/cop/style/access_modifier_declarations.rb#170 def autocorrect(corrector, node); end - # source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#279 - def def_source(node, def_node); end + # @return [Boolean] + # + # source://rubocop/lib/rubocop/cop/style/access_modifier_declarations.rb#203 + def correctable_group_offense?(node); end + + # source://rubocop/lib/rubocop/cop/style/access_modifier_declarations.rb#305 + def def_source(node, def_nodes); end - # source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#240 + # source://rubocop/lib/rubocop/cop/style/access_modifier_declarations.rb#265 def find_argument_less_modifier_node(node); end - # source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#229 - def find_corresponding_def_node(node); end + # source://rubocop/lib/rubocop/cop/style/access_modifier_declarations.rb#246 + def find_corresponding_def_nodes(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#197 + # source://rubocop/lib/rubocop/cop/style/access_modifier_declarations.rb#210 def group_style?; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#201 + # source://rubocop/lib/rubocop/cop/style/access_modifier_declarations.rb#214 def inline_style?; end - # source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#271 + # source://rubocop/lib/rubocop/cop/style/access_modifier_declarations.rb#295 def insert_inline_modifier(corrector, node, modifier_name); end - # source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#219 + # source://rubocop/lib/rubocop/cop/style/access_modifier_declarations.rb#236 def message(range); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#191 + # source://rubocop/lib/rubocop/cop/style/access_modifier_declarations.rb#197 def offense?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#179 + # source://rubocop/lib/rubocop/cop/style/access_modifier_declarations.rb#185 def percent_symbol_array?(node); end - # source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#275 - def remove_node(corrector, node); end + # source://rubocop/lib/rubocop/cop/style/access_modifier_declarations.rb#299 + def remove_nodes(corrector, *nodes); end - # source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#254 - def replace_def(corrector, node, def_node); end + # source://rubocop/lib/rubocop/cop/style/access_modifier_declarations.rb#279 + def replace_defs(corrector, node, def_nodes); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#213 + # source://rubocop/lib/rubocop/cop/style/access_modifier_declarations.rb#226 def right_siblings_same_inline_method?(node); end - # source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#248 + # source://rubocop/lib/rubocop/cop/style/access_modifier_declarations.rb#273 def select_grouped_def_nodes(node); end end -# source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#131 +# source://rubocop/lib/rubocop/cop/style/access_modifier_declarations.rb#133 RuboCop::Cop::Style::AccessModifierDeclarations::ALLOWED_NODE_TYPES = T.let(T.unsafe(nil), Array) -# source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#119 +# source://rubocop/lib/rubocop/cop/style/access_modifier_declarations.rb#121 RuboCop::Cop::Style::AccessModifierDeclarations::GROUP_STYLE_MESSAGE = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#124 +# source://rubocop/lib/rubocop/cop/style/access_modifier_declarations.rb#126 RuboCop::Cop::Style::AccessModifierDeclarations::INLINE_STYLE_MESSAGE = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#129 +# source://rubocop/lib/rubocop/cop/style/access_modifier_declarations.rb#131 RuboCop::Cop::Style::AccessModifierDeclarations::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Checks for grouping of accessors in `class` and `module` bodies. @@ -31337,73 +31715,73 @@ RuboCop::Cop::Style::AccessModifierDeclarations::RESTRICT_ON_SEND = T.let(T.unsa # attr_reader :baz # end # -# source://rubocop//lib/rubocop/cop/style/accessor_grouping.rb#53 +# source://rubocop/lib/rubocop/cop/style/accessor_grouping.rb#53 class RuboCop::Cop::Style::AccessorGrouping < ::RuboCop::Cop::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle include ::RuboCop::Cop::RangeHelp include ::RuboCop::Cop::VisibilityHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/accessor_grouping.rb#62 + # source://rubocop/lib/rubocop/cop/style/accessor_grouping.rb#62 def on_class(node); end - # source://rubocop//lib/rubocop/cop/style/accessor_grouping.rb#62 + # source://rubocop/lib/rubocop/cop/style/accessor_grouping.rb#62 def on_module(node); end - # source://rubocop//lib/rubocop/cop/style/accessor_grouping.rb#62 + # source://rubocop/lib/rubocop/cop/style/accessor_grouping.rb#62 def on_sclass(node); end private - # source://rubocop//lib/rubocop/cop/style/accessor_grouping.rb#85 + # source://rubocop/lib/rubocop/cop/style/accessor_grouping.rb#85 def autocorrect(corrector, node); end - # source://rubocop//lib/rubocop/cop/style/accessor_grouping.rb#74 + # source://rubocop/lib/rubocop/cop/style/accessor_grouping.rb#74 def check(send_node); end - # source://rubocop//lib/rubocop/cop/style/accessor_grouping.rb#122 + # source://rubocop/lib/rubocop/cop/style/accessor_grouping.rb#122 def class_send_elements(class_node); end - # source://rubocop//lib/rubocop/cop/style/accessor_grouping.rb#165 + # source://rubocop/lib/rubocop/cop/style/accessor_grouping.rb#165 def group_accessors(node, accessors); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/accessor_grouping.rb#99 + # source://rubocop/lib/rubocop/cop/style/accessor_grouping.rb#99 def groupable_accessor?(node); end - # source://rubocop//lib/rubocop/cop/style/accessor_grouping.rb#142 + # source://rubocop/lib/rubocop/cop/style/accessor_grouping.rb#142 def groupable_sibling_accessors(send_node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/accessor_grouping.rb#134 + # source://rubocop/lib/rubocop/cop/style/accessor_grouping.rb#134 def grouped_style?; end - # source://rubocop//lib/rubocop/cop/style/accessor_grouping.rb#151 + # source://rubocop/lib/rubocop/cop/style/accessor_grouping.rb#151 def message(send_node); end - # source://rubocop//lib/rubocop/cop/style/accessor_grouping.rb#156 + # source://rubocop/lib/rubocop/cop/style/accessor_grouping.rb#156 def preferred_accessors(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/accessor_grouping.rb#94 + # source://rubocop/lib/rubocop/cop/style/accessor_grouping.rb#94 def previous_line_comment?(node); end - # source://rubocop//lib/rubocop/cop/style/accessor_grouping.rb#171 + # source://rubocop/lib/rubocop/cop/style/accessor_grouping.rb#171 def separate_accessors(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/accessor_grouping.rb#138 + # source://rubocop/lib/rubocop/cop/style/accessor_grouping.rb#138 def separated_style?; end end -# source://rubocop//lib/rubocop/cop/style/accessor_grouping.rb#59 +# source://rubocop/lib/rubocop/cop/style/accessor_grouping.rb#59 RuboCop::Cop::Style::AccessorGrouping::GROUPED_MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/accessor_grouping.rb#60 +# source://rubocop/lib/rubocop/cop/style/accessor_grouping.rb#60 RuboCop::Cop::Style::AccessorGrouping::SEPARATED_MSG = T.let(T.unsafe(nil), String) # Enforces the use of either `#alias` or `#alias_method` @@ -31430,73 +31808,73 @@ RuboCop::Cop::Style::AccessorGrouping::SEPARATED_MSG = T.let(T.unsafe(nil), Stri # # good # alias_method :bar, :foo # -# source://rubocop//lib/rubocop/cop/style/alias.rb#31 +# source://rubocop/lib/rubocop/cop/style/alias.rb#31 class RuboCop::Cop::Style::Alias < ::RuboCop::Cop::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/alias.rb#52 + # source://rubocop/lib/rubocop/cop/style/alias.rb#52 def on_alias(node); end - # source://rubocop//lib/rubocop/cop/style/alias.rb#41 + # source://rubocop/lib/rubocop/cop/style/alias.rb#41 def on_send(node); end private - # source://rubocop//lib/rubocop/cop/style/alias.rb#86 + # source://rubocop/lib/rubocop/cop/style/alias.rb#86 def add_offense_for_args(node, &block); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/alias.rb#76 + # source://rubocop/lib/rubocop/cop/style/alias.rb#76 def alias_keyword_possible?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/alias.rb#80 + # source://rubocop/lib/rubocop/cop/style/alias.rb#80 def alias_method_possible?(node); end - # source://rubocop//lib/rubocop/cop/style/alias.rb#66 + # source://rubocop/lib/rubocop/cop/style/alias.rb#66 def autocorrect(corrector, node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/alias.rb#125 + # source://rubocop/lib/rubocop/cop/style/alias.rb#125 def bareword?(sym_node); end - # source://rubocop//lib/rubocop/cop/style/alias.rb#129 + # source://rubocop/lib/rubocop/cop/style/alias.rb#129 def correct_alias_method_to_alias(corrector, send_node); end - # source://rubocop//lib/rubocop/cop/style/alias.rb#136 + # source://rubocop/lib/rubocop/cop/style/alias.rb#136 def correct_alias_to_alias_method(corrector, node); end - # source://rubocop//lib/rubocop/cop/style/alias.rb#143 + # source://rubocop/lib/rubocop/cop/style/alias.rb#143 def correct_alias_with_symbol_args(corrector, node); end - # source://rubocop//lib/rubocop/cop/style/alias.rb#148 + # source://rubocop/lib/rubocop/cop/style/alias.rb#148 def identifier(node); end - # source://rubocop//lib/rubocop/cop/style/alias.rb#114 + # source://rubocop/lib/rubocop/cop/style/alias.rb#114 def lexical_scope_type(node); end # In this expression, will `self` be the same as the innermost enclosing # class or module block (:lexical)? Or will it be something else # (:dynamic)? If we're in an instance_eval block, return that. # - # source://rubocop//lib/rubocop/cop/style/alias.rb#97 + # source://rubocop/lib/rubocop/cop/style/alias.rb#97 def scope_type(node); end end -# source://rubocop//lib/rubocop/cop/style/alias.rb#35 +# source://rubocop/lib/rubocop/cop/style/alias.rb#35 RuboCop::Cop::Style::Alias::MSG_ALIAS = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/alias.rb#36 +# source://rubocop/lib/rubocop/cop/style/alias.rb#36 RuboCop::Cop::Style::Alias::MSG_ALIAS_METHOD = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/alias.rb#37 +# source://rubocop/lib/rubocop/cop/style/alias.rb#37 RuboCop::Cop::Style::Alias::MSG_SYMBOL_ARGS = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/alias.rb#39 +# 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 @@ -31523,31 +31901,31 @@ RuboCop::Cop::Style::Alias::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # # ok - method definition is explicit # (def foo = true) if bar # -# source://rubocop//lib/rubocop/cop/style/ambiguous_endless_method_definition.rb#29 +# 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 + # 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 + # 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 + # 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 + # 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 +# 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 @@ -31583,31 +31961,31 @@ RuboCop::Cop::Style::AmbiguousEndlessMethodDefinition::MSG = T.let(T.unsafe(nil) # if foo && bar # end # -# source://rubocop//lib/rubocop/cop/style/and_or.rb#44 +# source://rubocop/lib/rubocop/cop/style/and_or.rb#44 class RuboCop::Cop::Style::AndOr < ::RuboCop::Cop::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/and_or.rb#51 + # source://rubocop/lib/rubocop/cop/style/and_or.rb#51 def on_and(node); end - # source://rubocop//lib/rubocop/cop/style/and_or.rb#56 + # source://rubocop/lib/rubocop/cop/style/and_or.rb#56 def on_if(node); end - # source://rubocop//lib/rubocop/cop/style/and_or.rb#51 + # source://rubocop/lib/rubocop/cop/style/and_or.rb#51 def on_or(node); end - # source://rubocop//lib/rubocop/cop/style/and_or.rb#56 + # source://rubocop/lib/rubocop/cop/style/and_or.rb#56 def on_until(node); end - # source://rubocop//lib/rubocop/cop/style/and_or.rb#56 + # source://rubocop/lib/rubocop/cop/style/and_or.rb#56 def on_until_post(node); end - # source://rubocop//lib/rubocop/cop/style/and_or.rb#56 + # source://rubocop/lib/rubocop/cop/style/and_or.rb#56 def on_while(node); end - # source://rubocop//lib/rubocop/cop/style/and_or.rb#56 + # source://rubocop/lib/rubocop/cop/style/and_or.rb#56 def on_while_post(node); end private @@ -31617,40 +31995,40 @@ class RuboCop::Cop::Style::AndOr < ::RuboCop::Cop::Base # recurse down a level and add parens to 'obj.method arg' # however, 'not x' also parses as (send x :!) # - # source://rubocop//lib/rubocop/cop/style/and_or.rb#117 + # source://rubocop/lib/rubocop/cop/style/and_or.rb#117 def correct_not(node, receiver, corrector); end - # source://rubocop//lib/rubocop/cop/style/and_or.rb#129 + # source://rubocop/lib/rubocop/cop/style/and_or.rb#129 def correct_other(node, corrector); end - # source://rubocop//lib/rubocop/cop/style/and_or.rb#95 + # source://rubocop/lib/rubocop/cop/style/and_or.rb#95 def correct_send(node, corrector); end - # source://rubocop//lib/rubocop/cop/style/and_or.rb#108 + # source://rubocop/lib/rubocop/cop/style/and_or.rb#108 def correct_setter(node, corrector); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/and_or.rb#143 + # source://rubocop/lib/rubocop/cop/style/and_or.rb#143 def correctable_send?(node); end - # source://rubocop//lib/rubocop/cop/style/and_or.rb#135 + # source://rubocop/lib/rubocop/cop/style/and_or.rb#135 def keep_operator_precedence(corrector, node); end - # source://rubocop//lib/rubocop/cop/style/and_or.rb#91 + # source://rubocop/lib/rubocop/cop/style/and_or.rb#91 def message(node); end - # source://rubocop//lib/rubocop/cop/style/and_or.rb#85 + # source://rubocop/lib/rubocop/cop/style/and_or.rb#85 def on_conditionals(node); end - # source://rubocop//lib/rubocop/cop/style/and_or.rb#66 + # source://rubocop/lib/rubocop/cop/style/and_or.rb#66 def process_logical_operator(node); end - # source://rubocop//lib/rubocop/cop/style/and_or.rb#147 + # source://rubocop/lib/rubocop/cop/style/and_or.rb#147 def whitespace_before_arg(node); end end -# source://rubocop//lib/rubocop/cop/style/and_or.rb#49 +# source://rubocop/lib/rubocop/cop/style/and_or.rb#49 RuboCop::Cop::Style::AndOr::MSG = T.let(T.unsafe(nil), String) # In Ruby 2.7, arguments forwarding has been added. @@ -31768,245 +32146,245 @@ RuboCop::Cop::Style::AndOr::MSG = T.let(T.unsafe(nil), String) # bar(...) # end # -# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#127 +# source://rubocop/lib/rubocop/cop/style/arguments_forwarding.rb#127 class RuboCop::Cop::Style::ArgumentsForwarding < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector extend ::RuboCop::Cop::TargetRubyVersion - # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#146 + # source://rubocop/lib/rubocop/cop/style/arguments_forwarding.rb#146 def on_def(node); end - # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#146 + # source://rubocop/lib/rubocop/cop/style/arguments_forwarding.rb#146 def on_defs(node); end private - # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#188 + # source://rubocop/lib/rubocop/cop/style/arguments_forwarding.rb#188 def add_forward_all_offenses(node, send_classifications, forwardable_args); end - # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#366 + # source://rubocop/lib/rubocop/cop/style/arguments_forwarding.rb#366 def add_parens_if_missing(node, corrector); end - # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#215 + # source://rubocop/lib/rubocop/cop/style/arguments_forwarding.rb#215 def add_post_ruby_32_offenses(def_node, send_classifications, forwardable_args); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#352 + # source://rubocop/lib/rubocop/cop/style/arguments_forwarding.rb#352 def allow_only_rest_arguments?; end - # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#340 + # source://rubocop/lib/rubocop/cop/style/arguments_forwarding.rb#340 def arguments_range(node, first_node); end - # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#267 + # source://rubocop/lib/rubocop/cop/style/arguments_forwarding.rb#267 def classification_and_forwards(def_node, send_node, referenced_lvars, forwardable_args); end - # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#252 + # source://rubocop/lib/rubocop/cop/style/arguments_forwarding.rb#252 def classify_send_nodes(def_node, send_nodes, referenced_lvars, forwardable_args); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#542 + # source://rubocop/lib/rubocop/cop/style/arguments_forwarding.rb#542 def explicit_block_name?; end - # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#170 + # source://rubocop/lib/rubocop/cop/style/arguments_forwarding.rb#170 def extract_forwardable_args(args); end - # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#242 + # source://rubocop/lib/rubocop/cop/style/arguments_forwarding.rb#242 def non_splat_or_block_pass_lvar_references(body); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#182 + # source://rubocop/lib/rubocop/cop/style/arguments_forwarding.rb#182 def only_forwards_all?(send_classifications); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#296 + # source://rubocop/lib/rubocop/cop/style/arguments_forwarding.rb#296 def outside_block?(node); end - # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#174 + # source://rubocop/lib/rubocop/cop/style/arguments_forwarding.rb#174 def redundant_forwardable_named_args(restarg, kwrestarg, blockarg); end - # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#286 + # source://rubocop/lib/rubocop/cop/style/arguments_forwarding.rb#286 def redundant_named_arg(arg, config_name, keyword); end - # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#329 + # source://rubocop/lib/rubocop/cop/style/arguments_forwarding.rb#329 def register_forward_all_offense(def_or_send, send_or_arguments, rest_or_splat); end - # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#302 + # source://rubocop/lib/rubocop/cop/style/arguments_forwarding.rb#302 def register_forward_args_offense(def_arguments_or_send, rest_arg_or_splat); end - # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#318 + # source://rubocop/lib/rubocop/cop/style/arguments_forwarding.rb#318 def register_forward_block_arg_offense(add_parens, def_arguments_or_send, block_arg); end - # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#310 + # source://rubocop/lib/rubocop/cop/style/arguments_forwarding.rb#310 def register_forward_kwargs_offense(add_parens, def_arguments_or_send, kwrest_arg_or_splat); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#360 + # source://rubocop/lib/rubocop/cop/style/arguments_forwarding.rb#360 def send_inside_block?(send_classifications); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#356 + # source://rubocop/lib/rubocop/cop/style/arguments_forwarding.rb#356 def use_anonymous_forwarding?; end class << self - # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#142 + # source://rubocop/lib/rubocop/cop/style/arguments_forwarding.rb#142 def autocorrect_incompatible_with; end end end -# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#135 +# source://rubocop/lib/rubocop/cop/style/arguments_forwarding.rb#135 RuboCop::Cop::Style::ArgumentsForwarding::ADDITIONAL_ARG_TYPES = T.let(T.unsafe(nil), Array) -# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#138 +# source://rubocop/lib/rubocop/cop/style/arguments_forwarding.rb#138 RuboCop::Cop::Style::ArgumentsForwarding::ARGS_MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#140 +# source://rubocop/lib/rubocop/cop/style/arguments_forwarding.rb#140 RuboCop::Cop::Style::ArgumentsForwarding::BLOCK_MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#134 +# source://rubocop/lib/rubocop/cop/style/arguments_forwarding.rb#134 RuboCop::Cop::Style::ArgumentsForwarding::FORWARDING_LVAR_TYPES = T.let(T.unsafe(nil), Array) -# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#137 +# source://rubocop/lib/rubocop/cop/style/arguments_forwarding.rb#137 RuboCop::Cop::Style::ArgumentsForwarding::FORWARDING_MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#139 +# source://rubocop/lib/rubocop/cop/style/arguments_forwarding.rb#139 RuboCop::Cop::Style::ArgumentsForwarding::KWARGS_MSG = T.let(T.unsafe(nil), String) # Classifies send nodes for possible rest/kwrest/all (including block) forwarding. # -# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#374 +# source://rubocop/lib/rubocop/cop/style/arguments_forwarding.rb#374 class RuboCop::Cop::Style::ArgumentsForwarding::SendNodeClassifier extend ::RuboCop::AST::NodePattern::Macros # @return [SendNodeClassifier] a new instance of SendNodeClassifier # - # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#403 + # source://rubocop/lib/rubocop/cop/style/arguments_forwarding.rb#403 def initialize(def_node, send_node, referenced_lvars, forwardable_args, **config); end - # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#431 + # source://rubocop/lib/rubocop/cop/style/arguments_forwarding.rb#431 def classification; end - # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#387 + # source://rubocop/lib/rubocop/cop/style/arguments_forwarding.rb#387 def def_all_anonymous_args?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#381 + # source://rubocop/lib/rubocop/cop/style/arguments_forwarding.rb#381 def extract_forwarded_kwrest_arg(param0 = T.unsafe(nil), param1); end - # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#425 + # source://rubocop/lib/rubocop/cop/style/arguments_forwarding.rb#425 def forwarded_block_arg; end - # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#384 + # source://rubocop/lib/rubocop/cop/style/arguments_forwarding.rb#384 def forwarded_block_arg?(param0 = T.unsafe(nil), param1); end - # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#419 + # source://rubocop/lib/rubocop/cop/style/arguments_forwarding.rb#419 def forwarded_kwrest_arg; end - # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#413 + # source://rubocop/lib/rubocop/cop/style/arguments_forwarding.rb#413 def forwarded_rest_arg; end - # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#378 + # source://rubocop/lib/rubocop/cop/style/arguments_forwarding.rb#378 def forwarded_rest_arg?(param0 = T.unsafe(nil), param1); end - # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#396 + # source://rubocop/lib/rubocop/cop/style/arguments_forwarding.rb#396 def send_all_anonymous_args?(param0 = T.unsafe(nil)); end private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#513 + # source://rubocop/lib/rubocop/cop/style/arguments_forwarding.rb#513 def additional_kwargs?; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#509 + # source://rubocop/lib/rubocop/cop/style/arguments_forwarding.rb#509 def additional_kwargs_or_forwarded_kwargs?; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#523 + # source://rubocop/lib/rubocop/cop/style/arguments_forwarding.rb#523 def allow_offense_for_no_block?; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#494 + # source://rubocop/lib/rubocop/cop/style/arguments_forwarding.rb#494 def any_arg_referenced?; end - # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#478 + # source://rubocop/lib/rubocop/cop/style/arguments_forwarding.rb#478 def arguments; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#446 + # source://rubocop/lib/rubocop/cop/style/arguments_forwarding.rb#446 def can_forward_all?; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#517 + # source://rubocop/lib/rubocop/cop/style/arguments_forwarding.rb#517 def forward_additional_kwargs?; end - # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#474 + # source://rubocop/lib/rubocop/cop/style/arguments_forwarding.rb#474 def forwarded_rest_and_kwrest_args; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#536 + # source://rubocop/lib/rubocop/cop/style/arguments_forwarding.rb#536 def missing_rest_arg_or_kwrest_arg?; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#527 + # source://rubocop/lib/rubocop/cop/style/arguments_forwarding.rb#527 def no_additional_args?; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#502 + # source://rubocop/lib/rubocop/cop/style/arguments_forwarding.rb#502 def no_post_splat_args?; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#470 + # source://rubocop/lib/rubocop/cop/style/arguments_forwarding.rb#470 def offensive_block_forwarding?; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#490 + # source://rubocop/lib/rubocop/cop/style/arguments_forwarding.rb#490 def referenced_block_arg?; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#486 + # source://rubocop/lib/rubocop/cop/style/arguments_forwarding.rb#486 def referenced_kwrest_arg?; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#482 + # source://rubocop/lib/rubocop/cop/style/arguments_forwarding.rb#482 def referenced_rest_arg?; end # def foo(a = 41, ...) is a syntax error in 3.0. # # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#458 + # source://rubocop/lib/rubocop/cop/style/arguments_forwarding.rb#458 def ruby_30_or_lower_optarg?; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#462 + # source://rubocop/lib/rubocop/cop/style/arguments_forwarding.rb#462 def ruby_32_only_anonymous_forwarding?; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#466 + # source://rubocop/lib/rubocop/cop/style/arguments_forwarding.rb#466 def ruby_32_or_higher_missing_rest_or_kwest?; end - # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#498 + # source://rubocop/lib/rubocop/cop/style/arguments_forwarding.rb#498 def target_ruby_version; end end @@ -32025,27 +32403,27 @@ end # # good (and a bit more readable) # Array(paths).each { |path| do_something(path) } # -# source://rubocop//lib/rubocop/cop/style/array_coercion.rb#41 +# source://rubocop/lib/rubocop/cop/style/array_coercion.rb#41 class RuboCop::Cop::Style::ArrayCoercion < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/array_coercion.rb#48 + # source://rubocop/lib/rubocop/cop/style/array_coercion.rb#48 def array_splat?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/style/array_coercion.rb#63 + # source://rubocop/lib/rubocop/cop/style/array_coercion.rb#63 def on_array(node); end - # source://rubocop//lib/rubocop/cop/style/array_coercion.rb#74 + # source://rubocop/lib/rubocop/cop/style/array_coercion.rb#74 def on_if(node); end - # source://rubocop//lib/rubocop/cop/style/array_coercion.rb#53 + # source://rubocop/lib/rubocop/cop/style/array_coercion.rb#53 def unless_array?(param0 = T.unsafe(nil)); end end -# source://rubocop//lib/rubocop/cop/style/array_coercion.rb#45 +# source://rubocop/lib/rubocop/cop/style/array_coercion.rb#45 RuboCop::Cop::Style::ArrayCoercion::CHECK_MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/array_coercion.rb#44 +# source://rubocop/lib/rubocop/cop/style/array_coercion.rb#44 RuboCop::Cop::Style::ArrayCoercion::SPLAT_MSG = T.let(T.unsafe(nil), String) # Identifies usages of `arr[0]` and `arr[-1]` and suggests to change @@ -32064,28 +32442,28 @@ RuboCop::Cop::Style::ArrayCoercion::SPLAT_MSG = T.let(T.unsafe(nil), String) # arr[0] = 2 # arr[0][-2] # -# source://rubocop//lib/rubocop/cop/style/array_first_last.rb#28 +# source://rubocop/lib/rubocop/cop/style/array_first_last.rb#28 class RuboCop::Cop::Style::ArrayFirstLast < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/array_first_last.rb#35 + # source://rubocop/lib/rubocop/cop/style/array_first_last.rb#35 def on_send(node); end private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/array_first_last.rb#58 + # source://rubocop/lib/rubocop/cop/style/array_first_last.rb#58 def brace_method?(node); end - # source://rubocop//lib/rubocop/cop/style/array_first_last.rb#53 + # source://rubocop/lib/rubocop/cop/style/array_first_last.rb#53 def innermost_braces_node(node); end end -# source://rubocop//lib/rubocop/cop/style/array_first_last.rb#31 +# source://rubocop/lib/rubocop/cop/style/array_first_last.rb#31 RuboCop::Cop::Style::ArrayFirstLast::MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/array_first_last.rb#32 +# source://rubocop/lib/rubocop/cop/style/array_first_last.rb#32 RuboCop::Cop::Style::ArrayFirstLast::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # In Ruby 3.1, `Array#intersect?` has been added. @@ -32109,6 +32487,7 @@ RuboCop::Cop::Style::ArrayFirstLast::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Arr # # bad # (array1 & array2).any? # (array1 & array2).empty? +# (array1 & array2).none? # # # good # array1.intersect?(array2) @@ -32126,46 +32505,46 @@ RuboCop::Cop::Style::ArrayFirstLast::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Arr # array1.intersect?(array2) # !array1.intersect?(array2) # -# source://rubocop//lib/rubocop/cop/style/array_intersect.rb#49 +# source://rubocop/lib/rubocop/cop/style/array_intersect.rb#50 class RuboCop::Cop::Style::ArrayIntersect < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector extend ::RuboCop::Cop::TargetRubyVersion - # source://rubocop//lib/rubocop/cop/style/array_intersect.rb#65 + # source://rubocop/lib/rubocop/cop/style/array_intersect.rb#66 def active_support_bad_intersection_check?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/style/array_intersect.rb#79 + # source://rubocop/lib/rubocop/cop/style/array_intersect.rb#80 def on_send(node); end - # source://rubocop//lib/rubocop/cop/style/array_intersect.rb#56 + # source://rubocop/lib/rubocop/cop/style/array_intersect.rb#57 def regular_bad_intersection_check?(param0 = T.unsafe(nil)); end private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/array_intersect.rb#94 + # source://rubocop/lib/rubocop/cop/style/array_intersect.rb#95 def bad_intersection_check?(node); end - # source://rubocop//lib/rubocop/cop/style/array_intersect.rb#106 + # source://rubocop/lib/rubocop/cop/style/array_intersect.rb#107 def message(receiver, argument, method_name); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/array_intersect.rb#102 + # source://rubocop/lib/rubocop/cop/style/array_intersect.rb#103 def straight?(method_name); end end -# source://rubocop//lib/rubocop/cop/style/array_intersect.rb#73 +# source://rubocop/lib/rubocop/cop/style/array_intersect.rb#74 RuboCop::Cop::Style::ArrayIntersect::MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/array_intersect.rb#76 +# source://rubocop/lib/rubocop/cop/style/array_intersect.rb#77 RuboCop::Cop::Style::ArrayIntersect::NEGATED_METHODS = T.let(T.unsafe(nil), Array) -# source://rubocop//lib/rubocop/cop/style/array_intersect.rb#77 +# source://rubocop/lib/rubocop/cop/style/array_intersect.rb#78 RuboCop::Cop::Style::ArrayIntersect::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) -# source://rubocop//lib/rubocop/cop/style/array_intersect.rb#75 +# source://rubocop/lib/rubocop/cop/style/array_intersect.rb#76 RuboCop::Cop::Style::ArrayIntersect::STRAIGHT_METHODS = T.let(T.unsafe(nil), Array) # Checks for uses of "*" as a substitute for _join_. @@ -32182,48 +32561,48 @@ RuboCop::Cop::Style::ArrayIntersect::STRAIGHT_METHODS = T.let(T.unsafe(nil), Arr # # good # %w(foo bar baz).join(",") # -# source://rubocop//lib/rubocop/cop/style/array_join.rb#20 +# source://rubocop/lib/rubocop/cop/style/array_join.rb#20 class RuboCop::Cop::Style::ArrayJoin < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/array_join.rb#27 + # source://rubocop/lib/rubocop/cop/style/array_join.rb#27 def join_candidate?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/style/array_join.rb#29 + # source://rubocop/lib/rubocop/cop/style/array_join.rb#29 def on_send(node); end end -# source://rubocop//lib/rubocop/cop/style/array_join.rb#23 +# source://rubocop/lib/rubocop/cop/style/array_join.rb#23 RuboCop::Cop::Style::ArrayJoin::MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/array_join.rb#24 +# source://rubocop/lib/rubocop/cop/style/array_join.rb#24 RuboCop::Cop::Style::ArrayJoin::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) -# source://rubocop//lib/rubocop/cop/style/ascii_comments.rb#16 +# source://rubocop/lib/rubocop/cop/style/ascii_comments.rb#16 class RuboCop::Cop::Style::AsciiComments < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp - # source://rubocop//lib/rubocop/cop/style/ascii_comments.rb#21 + # source://rubocop/lib/rubocop/cop/style/ascii_comments.rb#21 def on_new_investigation; end private - # source://rubocop//lib/rubocop/cop/style/ascii_comments.rb#51 + # source://rubocop/lib/rubocop/cop/style/ascii_comments.rb#51 def allowed_non_ascii_chars; end - # source://rubocop//lib/rubocop/cop/style/ascii_comments.rb#42 + # source://rubocop/lib/rubocop/cop/style/ascii_comments.rb#42 def first_non_ascii_chars(string); end - # source://rubocop//lib/rubocop/cop/style/ascii_comments.rb#32 + # source://rubocop/lib/rubocop/cop/style/ascii_comments.rb#32 def first_offense_range(comment); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/ascii_comments.rb#46 + # source://rubocop/lib/rubocop/cop/style/ascii_comments.rb#46 def only_allowed_non_ascii_chars?(string); end end -# source://rubocop//lib/rubocop/cop/style/ascii_comments.rb#19 +# source://rubocop/lib/rubocop/cop/style/ascii_comments.rb#19 RuboCop::Cop::Style::AsciiComments::MSG = T.let(T.unsafe(nil), String) # Checks for uses of Module#attr. @@ -32237,43 +32616,43 @@ RuboCop::Cop::Style::AsciiComments::MSG = T.let(T.unsafe(nil), String) # attr_accessor :something # attr_reader :one, :two, :three # -# source://rubocop//lib/rubocop/cop/style/attr.rb#17 +# source://rubocop/lib/rubocop/cop/style/attr.rb#17 class RuboCop::Cop::Style::Attr < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/attr.rb#74 + # source://rubocop/lib/rubocop/cop/style/attr.rb#74 def class_eval?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/style/attr.rb#24 + # source://rubocop/lib/rubocop/cop/style/attr.rb#24 def on_send(node); end private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/attr.rb#37 + # source://rubocop/lib/rubocop/cop/style/attr.rb#37 def allowed_context?(node); end - # source://rubocop//lib/rubocop/cop/style/attr.rb#47 + # source://rubocop/lib/rubocop/cop/style/attr.rb#47 def autocorrect(corrector, node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/attr.rb#43 + # source://rubocop/lib/rubocop/cop/style/attr.rb#43 def define_attr_method?(node); end - # source://rubocop//lib/rubocop/cop/style/attr.rb#59 + # source://rubocop/lib/rubocop/cop/style/attr.rb#59 def message(node); end - # source://rubocop//lib/rubocop/cop/style/attr.rb#63 + # source://rubocop/lib/rubocop/cop/style/attr.rb#63 def replacement_method(node); end end -# source://rubocop//lib/rubocop/cop/style/attr.rb#21 +# source://rubocop/lib/rubocop/cop/style/attr.rb#21 RuboCop::Cop::Style::Attr::MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/attr.rb#22 +# source://rubocop/lib/rubocop/cop/style/attr.rb#22 RuboCop::Cop::Style::Attr::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Checks for cases when you could use a block @@ -32298,26 +32677,26 @@ RuboCop::Cop::Style::Attr::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # # ... # end # -# source://rubocop//lib/rubocop/cop/style/auto_resource_cleanup.rb#27 +# source://rubocop/lib/rubocop/cop/style/auto_resource_cleanup.rb#27 class RuboCop::Cop::Style::AutoResourceCleanup < ::RuboCop::Cop::Base - # source://rubocop//lib/rubocop/cop/style/auto_resource_cleanup.rb#32 + # source://rubocop/lib/rubocop/cop/style/auto_resource_cleanup.rb#32 def file_open_method?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/style/auto_resource_cleanup.rb#36 + # source://rubocop/lib/rubocop/cop/style/auto_resource_cleanup.rb#36 def on_send(node); end private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/auto_resource_cleanup.rb#46 + # source://rubocop/lib/rubocop/cop/style/auto_resource_cleanup.rb#46 def cleanup?(node); end end -# source://rubocop//lib/rubocop/cop/style/auto_resource_cleanup.rb#28 +# source://rubocop/lib/rubocop/cop/style/auto_resource_cleanup.rb#28 RuboCop::Cop::Style::AutoResourceCleanup::MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/auto_resource_cleanup.rb#29 +# source://rubocop/lib/rubocop/cop/style/auto_resource_cleanup.rb#29 RuboCop::Cop::Style::AutoResourceCleanup::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Checks if usage of %() or %Q() matches configuration. @@ -32339,37 +32718,37 @@ RuboCop::Cop::Style::AutoResourceCleanup::RESTRICT_ON_SEND = T.let(T.unsafe(nil) # %Q|He said: "#{greeting}"| # %q/She said: 'Hi'/ # -# source://rubocop//lib/rubocop/cop/style/bare_percent_literals.rb#26 +# source://rubocop/lib/rubocop/cop/style/bare_percent_literals.rb#26 class RuboCop::Cop::Style::BarePercentLiterals < ::RuboCop::Cop::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/bare_percent_literals.rb#32 + # source://rubocop/lib/rubocop/cop/style/bare_percent_literals.rb#32 def on_dstr(node); end - # source://rubocop//lib/rubocop/cop/style/bare_percent_literals.rb#36 + # source://rubocop/lib/rubocop/cop/style/bare_percent_literals.rb#36 def on_str(node); end private - # source://rubocop//lib/rubocop/cop/style/bare_percent_literals.rb#63 + # source://rubocop/lib/rubocop/cop/style/bare_percent_literals.rb#63 def add_offense_for_wrong_style(node, good, bad); end - # source://rubocop//lib/rubocop/cop/style/bare_percent_literals.rb#42 + # source://rubocop/lib/rubocop/cop/style/bare_percent_literals.rb#42 def check(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/bare_percent_literals.rb#59 + # source://rubocop/lib/rubocop/cop/style/bare_percent_literals.rb#59 def requires_bare_percent?(source); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/bare_percent_literals.rb#55 + # source://rubocop/lib/rubocop/cop/style/bare_percent_literals.rb#55 def requires_percent_q?(source); end end -# source://rubocop//lib/rubocop/cop/style/bare_percent_literals.rb#30 +# source://rubocop/lib/rubocop/cop/style/bare_percent_literals.rb#30 RuboCop::Cop::Style::BarePercentLiterals::MSG = T.let(T.unsafe(nil), String) # Checks for BEGIN blocks. @@ -32378,13 +32757,13 @@ RuboCop::Cop::Style::BarePercentLiterals::MSG = T.let(T.unsafe(nil), String) # # bad # BEGIN { test } # -# source://rubocop//lib/rubocop/cop/style/begin_block.rb#12 +# source://rubocop/lib/rubocop/cop/style/begin_block.rb#12 class RuboCop::Cop::Style::BeginBlock < ::RuboCop::Cop::Base - # source://rubocop//lib/rubocop/cop/style/begin_block.rb#15 + # source://rubocop/lib/rubocop/cop/style/begin_block.rb#15 def on_preexe(node); end end -# source://rubocop//lib/rubocop/cop/style/begin_block.rb#13 +# source://rubocop/lib/rubocop/cop/style/begin_block.rb#13 RuboCop::Cop::Style::BeginBlock::MSG = T.let(T.unsafe(nil), String) # Checks for places where `attr_reader` and `attr_writer` @@ -32402,7 +32781,7 @@ RuboCop::Cop::Style::BeginBlock::MSG = T.let(T.unsafe(nil), String) # attr_accessor :bar # end # -# source://rubocop//lib/rubocop/cop/style/bisected_attr_accessor.rb#21 +# source://rubocop/lib/rubocop/cop/style/bisected_attr_accessor.rb#21 class RuboCop::Cop::Style::BisectedAttrAccessor < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector @@ -32411,54 +32790,54 @@ class RuboCop::Cop::Style::BisectedAttrAccessor < ::RuboCop::Cop::Base # happens in `after_class` because a macro might have multiple attributes # rewritten from it # - # source://rubocop//lib/rubocop/cop/style/bisected_attr_accessor.rb#55 + # source://rubocop/lib/rubocop/cop/style/bisected_attr_accessor.rb#55 def after_class(class_node); end # Each offending macro is captured and registered in `on_class` but correction # happens in `after_class` because a macro might have multiple attributes # rewritten from it # - # source://rubocop//lib/rubocop/cop/style/bisected_attr_accessor.rb#55 + # source://rubocop/lib/rubocop/cop/style/bisected_attr_accessor.rb#55 def after_module(class_node); end # Each offending macro is captured and registered in `on_class` but correction # happens in `after_class` because a macro might have multiple attributes # rewritten from it # - # source://rubocop//lib/rubocop/cop/style/bisected_attr_accessor.rb#55 + # source://rubocop/lib/rubocop/cop/style/bisected_attr_accessor.rb#55 def after_sclass(class_node); end - # source://rubocop//lib/rubocop/cop/style/bisected_attr_accessor.rb#33 + # source://rubocop/lib/rubocop/cop/style/bisected_attr_accessor.rb#33 def on_class(class_node); end - # source://rubocop//lib/rubocop/cop/style/bisected_attr_accessor.rb#33 + # source://rubocop/lib/rubocop/cop/style/bisected_attr_accessor.rb#33 def on_module(class_node); end - # source://rubocop//lib/rubocop/cop/style/bisected_attr_accessor.rb#29 + # source://rubocop/lib/rubocop/cop/style/bisected_attr_accessor.rb#29 def on_new_investigation; end - # source://rubocop//lib/rubocop/cop/style/bisected_attr_accessor.rb#33 + # source://rubocop/lib/rubocop/cop/style/bisected_attr_accessor.rb#33 def on_sclass(class_node); end private - # source://rubocop//lib/rubocop/cop/style/bisected_attr_accessor.rb#102 + # source://rubocop/lib/rubocop/cop/style/bisected_attr_accessor.rb#102 def correct_reader(corrector, macro, node, range); end - # source://rubocop//lib/rubocop/cop/style/bisected_attr_accessor.rb#114 + # source://rubocop/lib/rubocop/cop/style/bisected_attr_accessor.rb#114 def correct_writer(corrector, macro, node, range); end - # source://rubocop//lib/rubocop/cop/style/bisected_attr_accessor.rb#91 + # source://rubocop/lib/rubocop/cop/style/bisected_attr_accessor.rb#91 def find_bisection(macros); end - # source://rubocop//lib/rubocop/cop/style/bisected_attr_accessor.rb#74 + # source://rubocop/lib/rubocop/cop/style/bisected_attr_accessor.rb#74 def find_macros(class_def); end - # source://rubocop//lib/rubocop/cop/style/bisected_attr_accessor.rb#98 + # source://rubocop/lib/rubocop/cop/style/bisected_attr_accessor.rb#98 def register_offense(attr); end end -# source://rubocop//lib/rubocop/cop/style/bisected_attr_accessor.rb#27 +# source://rubocop/lib/rubocop/cop/style/bisected_attr_accessor.rb#27 RuboCop::Cop::Style::BisectedAttrAccessor::MSG = T.let(T.unsafe(nil), String) # Representation of an `attr_reader`, `attr_writer` or `attr` macro @@ -32466,79 +32845,79 @@ RuboCop::Cop::Style::BisectedAttrAccessor::MSG = T.let(T.unsafe(nil), String) # # @api private # -# source://rubocop//lib/rubocop/cop/style/bisected_attr_accessor/macro.rb#10 +# source://rubocop/lib/rubocop/cop/style/bisected_attr_accessor/macro.rb#10 class RuboCop::Cop::Style::BisectedAttrAccessor::Macro include ::RuboCop::Cop::VisibilityHelp # @api private # @return [Macro] a new instance of Macro # - # source://rubocop//lib/rubocop/cop/style/bisected_attr_accessor/macro.rb#19 + # source://rubocop/lib/rubocop/cop/style/bisected_attr_accessor/macro.rb#19 def initialize(node); end # @api private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/bisected_attr_accessor/macro.rb#49 + # source://rubocop/lib/rubocop/cop/style/bisected_attr_accessor/macro.rb#49 def all_bisected?; end # @api private # - # source://rubocop//lib/rubocop/cop/style/bisected_attr_accessor/macro.rb#29 + # source://rubocop/lib/rubocop/cop/style/bisected_attr_accessor/macro.rb#29 def attr_names; end # @api private # - # source://rubocop//lib/rubocop/cop/style/bisected_attr_accessor/macro.rb#13 + # source://rubocop/lib/rubocop/cop/style/bisected_attr_accessor/macro.rb#13 def attrs; end # @api private # - # source://rubocop//lib/rubocop/cop/style/bisected_attr_accessor/macro.rb#25 + # source://rubocop/lib/rubocop/cop/style/bisected_attr_accessor/macro.rb#25 def bisect(*names); end # @api private # - # source://rubocop//lib/rubocop/cop/style/bisected_attr_accessor/macro.rb#33 + # source://rubocop/lib/rubocop/cop/style/bisected_attr_accessor/macro.rb#33 def bisected_names; end # @api private # - # source://rubocop//lib/rubocop/cop/style/bisected_attr_accessor/macro.rb#13 + # source://rubocop/lib/rubocop/cop/style/bisected_attr_accessor/macro.rb#13 def bisection; end # @api private # - # source://rubocop//lib/rubocop/cop/style/bisected_attr_accessor/macro.rb#13 + # source://rubocop/lib/rubocop/cop/style/bisected_attr_accessor/macro.rb#13 def node; end # @api private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/bisected_attr_accessor/macro.rb#41 + # source://rubocop/lib/rubocop/cop/style/bisected_attr_accessor/macro.rb#41 def reader?; end # @api private # - # source://rubocop//lib/rubocop/cop/style/bisected_attr_accessor/macro.rb#53 + # source://rubocop/lib/rubocop/cop/style/bisected_attr_accessor/macro.rb#53 def rest; end # @api private # - # source://rubocop//lib/rubocop/cop/style/bisected_attr_accessor/macro.rb#37 + # source://rubocop/lib/rubocop/cop/style/bisected_attr_accessor/macro.rb#37 def visibility; end # @api private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/bisected_attr_accessor/macro.rb#45 + # source://rubocop/lib/rubocop/cop/style/bisected_attr_accessor/macro.rb#45 def writer?; end class << self # @api private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/bisected_attr_accessor/macro.rb#15 + # source://rubocop/lib/rubocop/cop/style/bisected_attr_accessor/macro.rb#15 def macro?(node); end end end @@ -32565,36 +32944,36 @@ end # # good # variable.nobits?(flags) # -# source://rubocop//lib/rubocop/cop/style/bitwise_predicate.rb#32 +# 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 + # 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 + # 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 + # 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 + # 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 + # 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 + # 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 +# 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 +# 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). @@ -32610,30 +32989,30 @@ RuboCop::Cop::Style::BitwisePredicate::RESTRICT_ON_SEND = T.let(T.unsafe(nil), A # # Multiple lines # # of comments... # -# source://rubocop//lib/rubocop/cop/style/block_comments.rb#19 +# source://rubocop/lib/rubocop/cop/style/block_comments.rb#19 class RuboCop::Cop::Style::BlockComments < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/block_comments.rb#27 + # source://rubocop/lib/rubocop/cop/style/block_comments.rb#27 def on_new_investigation; end private - # source://rubocop//lib/rubocop/cop/style/block_comments.rb#56 + # source://rubocop/lib/rubocop/cop/style/block_comments.rb#56 def eq_end_part(comment, expr); end - # source://rubocop//lib/rubocop/cop/style/block_comments.rb#48 + # source://rubocop/lib/rubocop/cop/style/block_comments.rb#48 def parts(comment); end end -# source://rubocop//lib/rubocop/cop/style/block_comments.rb#24 +# source://rubocop/lib/rubocop/cop/style/block_comments.rb#24 RuboCop::Cop::Style::BlockComments::BEGIN_LENGTH = T.let(T.unsafe(nil), Integer) -# source://rubocop//lib/rubocop/cop/style/block_comments.rb#25 +# source://rubocop/lib/rubocop/cop/style/block_comments.rb#25 RuboCop::Cop::Style::BlockComments::END_LENGTH = T.let(T.unsafe(nil), Integer) -# source://rubocop//lib/rubocop/cop/style/block_comments.rb#23 +# source://rubocop/lib/rubocop/cop/style/block_comments.rb#23 RuboCop::Cop::Style::BlockComments::MSG = T.let(T.unsafe(nil), String) # Check for uses of braces or do/end around single line or @@ -32790,7 +33169,7 @@ RuboCop::Cop::Style::BlockComments::MSG = T.let(T.unsafe(nil), String) # process(something) # end # -# source://rubocop//lib/rubocop/cop/style/block_delimiters.rb#168 +# source://rubocop/lib/rubocop/cop/style/block_delimiters.rb#168 class RuboCop::Cop::Style::BlockDelimiters < ::RuboCop::Cop::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle include ::RuboCop::Cop::AllowedMethods @@ -32798,209 +33177,214 @@ class RuboCop::Cop::Style::BlockDelimiters < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/block_delimiters.rb#198 + # source://rubocop/lib/rubocop/cop/style/block_delimiters.rb#199 def on_block(node); end - # source://rubocop//lib/rubocop/cop/style/block_delimiters.rb#198 + # source://rubocop/lib/rubocop/cop/style/block_delimiters.rb#199 def on_numblock(node); end - # source://rubocop//lib/rubocop/cop/style/block_delimiters.rb#183 + # source://rubocop/lib/rubocop/cop/style/block_delimiters.rb#183 def on_send(node); end private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/block_delimiters.rb#487 + # source://rubocop/lib/rubocop/cop/style/block_delimiters.rb#496 def array_or_range?(node); end - # source://rubocop//lib/rubocop/cop/style/block_delimiters.rb#212 + # source://rubocop/lib/rubocop/cop/style/block_delimiters.rb#213 def autocorrect(corrector, node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/block_delimiters.rb#491 + # source://rubocop/lib/rubocop/cop/style/block_delimiters.rb#500 def begin_required?(block_node); end - # source://rubocop//lib/rubocop/cop/style/block_delimiters.rb#240 + # source://rubocop/lib/rubocop/cop/style/block_delimiters.rb#241 def braces_for_chaining_message(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/block_delimiters.rb#428 + # source://rubocop/lib/rubocop/cop/style/block_delimiters.rb#437 def braces_for_chaining_style?(node); end - # source://rubocop//lib/rubocop/cop/style/block_delimiters.rb#252 + # source://rubocop/lib/rubocop/cop/style/block_delimiters.rb#253 def braces_required_message(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/block_delimiters.rb#405 + # source://rubocop/lib/rubocop/cop/style/block_delimiters.rb#414 def braces_required_method?(method_name); end - # source://rubocop//lib/rubocop/cop/style/block_delimiters.rb#409 + # source://rubocop/lib/rubocop/cop/style/block_delimiters.rb#418 def braces_required_methods; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/block_delimiters.rb#438 + # source://rubocop/lib/rubocop/cop/style/block_delimiters.rb#447 def braces_style?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/block_delimiters.rb#483 + # source://rubocop/lib/rubocop/cop/style/block_delimiters.rb#492 def conditional?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/block_delimiters.rb#442 + # source://rubocop/lib/rubocop/cop/style/block_delimiters.rb#451 def correction_would_break_code?(node); end - # source://rubocop//lib/rubocop/cop/style/block_delimiters.rb#328 + # source://rubocop/lib/rubocop/cop/style/block_delimiters.rb#329 def end_of_chain(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/block_delimiters.rb#452 + # source://rubocop/lib/rubocop/cop/style/block_delimiters.rb#461 def functional_block?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/block_delimiters.rb#448 + # source://rubocop/lib/rubocop/cop/style/block_delimiters.rb#457 def functional_method?(method_name); end - # source://rubocop//lib/rubocop/cop/style/block_delimiters.rb#345 + # source://rubocop/lib/rubocop/cop/style/block_delimiters.rb#347 def get_blocks(node, &block); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/block_delimiters.rb#413 + # source://rubocop/lib/rubocop/cop/style/block_delimiters.rb#422 def line_count_based_block_style?(node); end - # source://rubocop//lib/rubocop/cop/style/block_delimiters.rb#222 + # source://rubocop/lib/rubocop/cop/style/block_delimiters.rb#223 def line_count_based_message(node); end - # source://rubocop//lib/rubocop/cop/style/block_delimiters.rb#256 + # source://rubocop/lib/rubocop/cop/style/block_delimiters.rb#257 def message(node); end - # source://rubocop//lib/rubocop/cop/style/block_delimiters.rb#304 + # source://rubocop/lib/rubocop/cop/style/block_delimiters.rb#305 def move_comment_before_block(corrector, comment, block_node, closing_brace); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/block_delimiters.rb#460 + # source://rubocop/lib/rubocop/cop/style/block_delimiters.rb#469 def procedural_method?(method_name); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/block_delimiters.rb#456 + # source://rubocop/lib/rubocop/cop/style/block_delimiters.rb#465 def procedural_oneliners_may_have_braces?; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/block_delimiters.rb#364 + # source://rubocop/lib/rubocop/cop/style/block_delimiters.rb#373 def proper_block_style?(node); end - # source://rubocop//lib/rubocop/cop/style/block_delimiters.rb#335 + # source://rubocop/lib/rubocop/cop/style/block_delimiters.rb#336 def remove_trailing_whitespace(corrector, range, comment); end - # source://rubocop//lib/rubocop/cop/style/block_delimiters.rb#267 + # source://rubocop/lib/rubocop/cop/style/block_delimiters.rb#268 def replace_braces_with_do_end(corrector, loc); end - # source://rubocop//lib/rubocop/cop/style/block_delimiters.rb#283 + # source://rubocop/lib/rubocop/cop/style/block_delimiters.rb#284 def replace_do_end_with_braces(corrector, node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/block_delimiters.rb#377 + # source://rubocop/lib/rubocop/cop/style/block_delimiters.rb#386 def require_braces?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/block_delimiters.rb#385 + # source://rubocop/lib/rubocop/cop/style/block_delimiters.rb#394 def require_do_end?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/block_delimiters.rb#476 + # source://rubocop/lib/rubocop/cop/style/block_delimiters.rb#485 def return_value_of_scope?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/block_delimiters.rb#464 + # source://rubocop/lib/rubocop/cop/style/block_delimiters.rb#473 def return_value_used?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/block_delimiters.rb#417 + # source://rubocop/lib/rubocop/cop/style/block_delimiters.rb#426 def semantic_block_style?(node); end - # source://rubocop//lib/rubocop/cop/style/block_delimiters.rb#230 + # source://rubocop/lib/rubocop/cop/style/block_delimiters.rb#231 def semantic_message(node); end - # source://rubocop//lib/rubocop/cop/style/block_delimiters.rb#318 + # @return [Boolean] + # + # source://rubocop/lib/rubocop/cop/style/block_delimiters.rb#506 + def single_argument_operator_method?(node); end + + # source://rubocop/lib/rubocop/cop/style/block_delimiters.rb#319 def source_range_before_comment(range, comment); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/block_delimiters.rb#392 + # source://rubocop/lib/rubocop/cop/style/block_delimiters.rb#401 def special_method?(method_name); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/block_delimiters.rb#398 + # source://rubocop/lib/rubocop/cop/style/block_delimiters.rb#407 def special_method_proper_block_style?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/block_delimiters.rb#300 + # source://rubocop/lib/rubocop/cop/style/block_delimiters.rb#301 def whitespace_after?(range, length = T.unsafe(nil)); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/block_delimiters.rb#296 + # source://rubocop/lib/rubocop/cop/style/block_delimiters.rb#297 def whitespace_before?(range); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/block_delimiters.rb#341 + # source://rubocop/lib/rubocop/cop/style/block_delimiters.rb#342 def with_block?(node); end class << self - # source://rubocop//lib/rubocop/cop/style/block_delimiters.rb#179 + # source://rubocop/lib/rubocop/cop/style/block_delimiters.rb#179 def autocorrect_incompatible_with; end end end -# source://rubocop//lib/rubocop/cop/style/block_delimiters.rb#175 +# source://rubocop/lib/rubocop/cop/style/block_delimiters.rb#175 RuboCop::Cop::Style::BlockDelimiters::ALWAYS_BRACES_MESSAGE = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/block_delimiters.rb#177 +# source://rubocop/lib/rubocop/cop/style/block_delimiters.rb#177 RuboCop::Cop::Style::BlockDelimiters::BRACES_REQUIRED_MESSAGE = T.let(T.unsafe(nil), String) # Corrector to correct conditional assignment in `case` statements. # -# source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#604 +# source://rubocop/lib/rubocop/cop/style/conditional_assignment.rb#602 class RuboCop::Cop::Style::CaseCorrector extend ::RuboCop::Cop::Style::ConditionalAssignmentHelper extend ::RuboCop::Cop::Style::ConditionalCorrectorHelper class << self - # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#609 + # source://rubocop/lib/rubocop/cop/style/conditional_assignment.rb#607 def correct(corrector, cop, node); end - # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#619 + # source://rubocop/lib/rubocop/cop/style/conditional_assignment.rb#617 def move_assignment_inside_condition(corrector, node); end private - # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#639 + # source://rubocop/lib/rubocop/cop/style/conditional_assignment.rb#637 def extract_branches(case_node); end - # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#633 + # source://rubocop/lib/rubocop/cop/style/conditional_assignment.rb#631 def extract_tail_branches(node); end - # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#649 + # source://rubocop/lib/rubocop/cop/style/conditional_assignment.rb#647 def move_branch_inside_condition(corrector, branch, condition, assignment, column); end end end @@ -33030,43 +33414,43 @@ end # # good # self.class === something # -# source://rubocop//lib/rubocop/cop/style/case_equality.rb#40 +# source://rubocop/lib/rubocop/cop/style/case_equality.rb#40 class RuboCop::Cop::Style::CaseEquality < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/case_equality.rb#47 + # source://rubocop/lib/rubocop/cop/style/case_equality.rb#47 def case_equality?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/style/case_equality.rb#52 + # source://rubocop/lib/rubocop/cop/style/case_equality.rb#52 def on_send(node); end - # source://rubocop//lib/rubocop/cop/style/case_equality.rb#50 + # source://rubocop/lib/rubocop/cop/style/case_equality.rb#50 def self_class?(param0 = T.unsafe(nil)); end private - # source://rubocop//lib/rubocop/cop/style/case_equality.rb#90 + # source://rubocop/lib/rubocop/cop/style/case_equality.rb#90 def begin_replacement(lhs, rhs); end - # source://rubocop//lib/rubocop/cop/style/case_equality.rb#96 + # source://rubocop/lib/rubocop/cop/style/case_equality.rb#96 def const_replacement(lhs, rhs); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/case_equality.rb#65 + # source://rubocop/lib/rubocop/cop/style/case_equality.rb#65 def offending_receiver?(node); end - # source://rubocop//lib/rubocop/cop/style/case_equality.rb#72 + # source://rubocop/lib/rubocop/cop/style/case_equality.rb#72 def replacement(lhs, rhs); end - # source://rubocop//lib/rubocop/cop/style/case_equality.rb#100 + # source://rubocop/lib/rubocop/cop/style/case_equality.rb#100 def send_replacement(lhs, rhs); end end -# source://rubocop//lib/rubocop/cop/style/case_equality.rb#43 +# source://rubocop/lib/rubocop/cop/style/case_equality.rb#43 RuboCop::Cop::Style::CaseEquality::MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/case_equality.rb#44 +# source://rubocop/lib/rubocop/cop/style/case_equality.rb#44 RuboCop::Cop::Style::CaseEquality::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Identifies places where `if-elsif` constructions @@ -33107,91 +33491,91 @@ RuboCop::Cop::Style::CaseEquality::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array # final_action # end # -# source://rubocop//lib/rubocop/cop/style/case_like_if.rb#50 +# source://rubocop/lib/rubocop/cop/style/case_like_if.rb#50 class RuboCop::Cop::Style::CaseLikeIf < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp include ::RuboCop::Cop::MinBranchesCount extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/case_like_if.rb#57 + # source://rubocop/lib/rubocop/cop/style/case_like_if.rb#57 def on_if(node); end private - # source://rubocop//lib/rubocop/cop/style/case_like_if.rb#81 + # source://rubocop/lib/rubocop/cop/style/case_like_if.rb#81 def autocorrect(corrector, node); end - # source://rubocop//lib/rubocop/cop/style/case_like_if.rb#231 + # source://rubocop/lib/rubocop/cop/style/case_like_if.rb#228 def branch_conditions(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/case_like_if.rb#249 + # source://rubocop/lib/rubocop/cop/style/case_like_if.rb#246 def class_reference?(node); end - # source://rubocop//lib/rubocop/cop/style/case_like_if.rb#166 + # source://rubocop/lib/rubocop/cop/style/case_like_if.rb#166 def collect_conditions(node, target, conditions); end - # source://rubocop//lib/rubocop/cop/style/case_like_if.rb#220 + # source://rubocop/lib/rubocop/cop/style/case_like_if.rb#217 def condition_from_binary_op(lhs, rhs, target); end - # source://rubocop//lib/rubocop/cop/style/case_like_if.rb#202 + # source://rubocop/lib/rubocop/cop/style/case_like_if.rb#201 def condition_from_equality_node(node, target); end - # source://rubocop//lib/rubocop/cop/style/case_like_if.rb#213 + # source://rubocop/lib/rubocop/cop/style/case_like_if.rb#210 def condition_from_include_or_cover_node(node, target); end - # source://rubocop//lib/rubocop/cop/style/case_like_if.rb#208 + # source://rubocop/lib/rubocop/cop/style/case_like_if.rb#206 def condition_from_match_node(node, target); end - # source://rubocop//lib/rubocop/cop/style/case_like_if.rb#185 + # source://rubocop/lib/rubocop/cop/style/case_like_if.rb#185 def condition_from_send_node(node, target); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/case_like_if.rb#240 + # source://rubocop/lib/rubocop/cop/style/case_like_if.rb#237 def const_reference?(node); end - # source://rubocop//lib/rubocop/cop/style/case_like_if.rb#258 + # source://rubocop/lib/rubocop/cop/style/case_like_if.rb#255 def correction_range(node); end - # source://rubocop//lib/rubocop/cop/style/case_like_if.rb#253 + # source://rubocop/lib/rubocop/cop/style/case_like_if.rb#250 def deparenthesize(node); end - # source://rubocop//lib/rubocop/cop/style/case_like_if.rb#102 + # source://rubocop/lib/rubocop/cop/style/case_like_if.rb#102 def find_target(node); end - # source://rubocop//lib/rubocop/cop/style/case_like_if.rb#136 + # source://rubocop/lib/rubocop/cop/style/case_like_if.rb#136 def find_target_in_equality_node(node); end - # source://rubocop//lib/rubocop/cop/style/case_like_if.rb#148 + # source://rubocop/lib/rubocop/cop/style/case_like_if.rb#148 def find_target_in_include_or_cover_node(node); end - # source://rubocop//lib/rubocop/cop/style/case_like_if.rb#154 + # source://rubocop/lib/rubocop/cop/style/case_like_if.rb#154 def find_target_in_match_node(node); end - # source://rubocop//lib/rubocop/cop/style/case_like_if.rb#121 + # source://rubocop/lib/rubocop/cop/style/case_like_if.rb#121 def find_target_in_send_node(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/case_like_if.rb#274 + # source://rubocop/lib/rubocop/cop/style/case_like_if.rb#271 def regexp_with_named_captures?(node); end # Named captures work with `=~` (if regexp is on lhs) and with `match` (both sides) # # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/case_like_if.rb#263 + # source://rubocop/lib/rubocop/cop/style/case_like_if.rb#260 def regexp_with_working_captures?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/case_like_if.rb#96 + # source://rubocop/lib/rubocop/cop/style/case_like_if.rb#96 def should_check?(node); end end -# source://rubocop//lib/rubocop/cop/style/case_like_if.rb#55 +# source://rubocop/lib/rubocop/cop/style/case_like_if.rb#55 RuboCop::Cop::Style::CaseLikeIf::MSG = T.let(T.unsafe(nil), String) # Checks for uses of the character literal ?x. @@ -33213,33 +33597,33 @@ RuboCop::Cop::Style::CaseLikeIf::MSG = T.let(T.unsafe(nil), String) # ?\C-\M-d # "\C-\M-d" # same as above # -# source://rubocop//lib/rubocop/cop/style/character_literal.rb#24 +# source://rubocop/lib/rubocop/cop/style/character_literal.rb#24 class RuboCop::Cop::Style::CharacterLiteral < ::RuboCop::Cop::Base include ::RuboCop::Cop::StringHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/character_literal.rb#35 + # source://rubocop/lib/rubocop/cop/style/character_literal.rb#35 def autocorrect(corrector, node); end # Dummy implementation of method in ConfigurableEnforcedStyle that is # called from StringHelp. # - # source://rubocop//lib/rubocop/cop/style/character_literal.rb#53 + # source://rubocop/lib/rubocop/cop/style/character_literal.rb#53 def correct_style_detected; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/character_literal.rb#30 + # source://rubocop/lib/rubocop/cop/style/character_literal.rb#30 def offense?(node); end # Dummy implementation of method in ConfigurableEnforcedStyle that is # called from StringHelp. # - # source://rubocop//lib/rubocop/cop/style/character_literal.rb#49 + # source://rubocop/lib/rubocop/cop/style/character_literal.rb#49 def opposite_style_detected; end end -# source://rubocop//lib/rubocop/cop/style/character_literal.rb#28 +# source://rubocop/lib/rubocop/cop/style/character_literal.rb#28 RuboCop::Cop::Style::CharacterLiteral::MSG = T.let(T.unsafe(nil), String) # Checks the style of children definitions at classes and @@ -33260,84 +33644,84 @@ RuboCop::Cop::Style::CharacterLiteral::MSG = T.let(T.unsafe(nil), String) # class Foo::Bar # end # -# source://rubocop//lib/rubocop/cop/style/class_and_module_children.rb#33 +# source://rubocop/lib/rubocop/cop/style/class_and_module_children.rb#33 class RuboCop::Cop::Style::ClassAndModuleChildren < ::RuboCop::Cop::Base include ::RuboCop::Cop::Alignment include ::RuboCop::Cop::ConfigurableEnforcedStyle include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/class_and_module_children.rb#42 + # source://rubocop/lib/rubocop/cop/style/class_and_module_children.rb#42 def on_class(node); end - # source://rubocop//lib/rubocop/cop/style/class_and_module_children.rb#48 + # source://rubocop/lib/rubocop/cop/style/class_and_module_children.rb#48 def on_module(node); end private - # source://rubocop//lib/rubocop/cop/style/class_and_module_children.rb#89 + # source://rubocop/lib/rubocop/cop/style/class_and_module_children.rb#89 def add_trailing_end(corrector, node, padding); end - # source://rubocop//lib/rubocop/cop/style/class_and_module_children.rb#170 + # source://rubocop/lib/rubocop/cop/style/class_and_module_children.rb#170 def autocorrect(corrector, node); end - # source://rubocop//lib/rubocop/cop/style/class_and_module_children.rb#159 + # source://rubocop/lib/rubocop/cop/style/class_and_module_children.rb#159 def check_compact_style(node, body); end - # source://rubocop//lib/rubocop/cop/style/class_and_module_children.rb#151 + # source://rubocop/lib/rubocop/cop/style/class_and_module_children.rb#151 def check_nested_style(node); end - # source://rubocop//lib/rubocop/cop/style/class_and_module_children.rb#141 + # source://rubocop/lib/rubocop/cop/style/class_and_module_children.rb#141 def check_style(node, body); end - # source://rubocop//lib/rubocop/cop/style/class_and_module_children.rb#94 + # source://rubocop/lib/rubocop/cop/style/class_and_module_children.rb#94 def compact_definition(corrector, node); end - # source://rubocop//lib/rubocop/cop/style/class_and_module_children.rb#115 + # source://rubocop/lib/rubocop/cop/style/class_and_module_children.rb#115 def compact_identifier_name(node); end - # source://rubocop//lib/rubocop/cop/style/class_and_module_children.rb#100 + # source://rubocop/lib/rubocop/cop/style/class_and_module_children.rb#100 def compact_node(corrector, node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/class_and_module_children.rb#180 + # source://rubocop/lib/rubocop/cop/style/class_and_module_children.rb#180 def compact_node_name?(node); end - # source://rubocop//lib/rubocop/cop/style/class_and_module_children.rb#105 + # source://rubocop/lib/rubocop/cop/style/class_and_module_children.rb#105 def compact_replacement(node); end - # source://rubocop//lib/rubocop/cop/style/class_and_module_children.rb#137 + # source://rubocop/lib/rubocop/cop/style/class_and_module_children.rb#137 def leading_spaces(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/class_and_module_children.rb#176 + # source://rubocop/lib/rubocop/cop/style/class_and_module_children.rb#176 def needs_compacting?(body); end - # source://rubocop//lib/rubocop/cop/style/class_and_module_children.rb#62 + # source://rubocop/lib/rubocop/cop/style/class_and_module_children.rb#62 def nest_definition(corrector, node); end - # source://rubocop//lib/rubocop/cop/style/class_and_module_children.rb#54 + # source://rubocop/lib/rubocop/cop/style/class_and_module_children.rb#54 def nest_or_compact(corrector, node); end - # source://rubocop//lib/rubocop/cop/style/class_and_module_children.rb#120 + # source://rubocop/lib/rubocop/cop/style/class_and_module_children.rb#120 def remove_end(corrector, body); end - # source://rubocop//lib/rubocop/cop/style/class_and_module_children.rb#71 + # source://rubocop/lib/rubocop/cop/style/class_and_module_children.rb#71 def replace_namespace_keyword(corrector, node); end - # source://rubocop//lib/rubocop/cop/style/class_and_module_children.rb#80 + # source://rubocop/lib/rubocop/cop/style/class_and_module_children.rb#80 def split_on_double_colon(corrector, node, padding); end - # source://rubocop//lib/rubocop/cop/style/class_and_module_children.rb#128 + # source://rubocop/lib/rubocop/cop/style/class_and_module_children.rb#128 def unindent(corrector, node); end end -# source://rubocop//lib/rubocop/cop/style/class_and_module_children.rb#40 +# source://rubocop/lib/rubocop/cop/style/class_and_module_children.rb#40 RuboCop::Cop::Style::ClassAndModuleChildren::COMPACT_MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/class_and_module_children.rb#39 +# source://rubocop/lib/rubocop/cop/style/class_and_module_children.rb#39 RuboCop::Cop::Style::ClassAndModuleChildren::NESTED_MSG = T.let(T.unsafe(nil), String) # Enforces consistent use of `Object#is_a?` or `Object#kind_of?`. @@ -33359,25 +33743,25 @@ RuboCop::Cop::Style::ClassAndModuleChildren::NESTED_MSG = T.let(T.unsafe(nil), S # var.kind_of?(Time) # var.kind_of?(String) # -# source://rubocop//lib/rubocop/cop/style/class_check.rb#26 +# source://rubocop/lib/rubocop/cop/style/class_check.rb#26 class RuboCop::Cop::Style::ClassCheck < ::RuboCop::Cop::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/class_check.rb#45 + # source://rubocop/lib/rubocop/cop/style/class_check.rb#45 def message(node); end - # source://rubocop//lib/rubocop/cop/style/class_check.rb#33 + # source://rubocop/lib/rubocop/cop/style/class_check.rb#33 def on_csend(node); end - # source://rubocop//lib/rubocop/cop/style/class_check.rb#33 + # source://rubocop/lib/rubocop/cop/style/class_check.rb#33 def on_send(node); end end -# source://rubocop//lib/rubocop/cop/style/class_check.rb#30 +# source://rubocop/lib/rubocop/cop/style/class_check.rb#30 RuboCop::Cop::Style::ClassCheck::MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/class_check.rb#31 +# source://rubocop/lib/rubocop/cop/style/class_check.rb#31 RuboCop::Cop::Style::ClassCheck::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Enforces the use of `Object#instance_of?` instead of class comparison @@ -33418,53 +33802,53 @@ RuboCop::Cop::Style::ClassCheck::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # self.class.eq(other.class) && name.eq(other.name) # end # -# source://rubocop//lib/rubocop/cop/style/class_equality_comparison.rb#52 +# source://rubocop/lib/rubocop/cop/style/class_equality_comparison.rb#52 class RuboCop::Cop::Style::ClassEqualityComparison < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp include ::RuboCop::Cop::AllowedMethods include ::RuboCop::Cop::AllowedPattern extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/class_equality_comparison.rb#64 + # source://rubocop/lib/rubocop/cop/style/class_equality_comparison.rb#64 def class_comparison_candidate?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/style/class_equality_comparison.rb#70 + # source://rubocop/lib/rubocop/cop/style/class_equality_comparison.rb#70 def on_send(node); end private - # source://rubocop//lib/rubocop/cop/style/class_equality_comparison.rb#92 + # source://rubocop/lib/rubocop/cop/style/class_equality_comparison.rb#92 def class_name(class_node, node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/class_equality_comparison.rb#112 + # source://rubocop/lib/rubocop/cop/style/class_equality_comparison.rb#112 def class_name_method?(method_name); end - # source://rubocop//lib/rubocop/cop/style/class_equality_comparison.rb#128 + # source://rubocop/lib/rubocop/cop/style/class_equality_comparison.rb#128 def offense_range(receiver_node, node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/class_equality_comparison.rb#116 + # source://rubocop/lib/rubocop/cop/style/class_equality_comparison.rb#116 def require_cbase?(class_node); end - # source://rubocop//lib/rubocop/cop/style/class_equality_comparison.rb#124 + # source://rubocop/lib/rubocop/cop/style/class_equality_comparison.rb#124 def trim_string_quotes(class_node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/class_equality_comparison.rb#120 + # source://rubocop/lib/rubocop/cop/style/class_equality_comparison.rb#120 def unable_to_determine_type?(class_node); end end -# source://rubocop//lib/rubocop/cop/style/class_equality_comparison.rb#61 +# source://rubocop/lib/rubocop/cop/style/class_equality_comparison.rb#61 RuboCop::Cop::Style::ClassEqualityComparison::CLASS_NAME_METHODS = T.let(T.unsafe(nil), Array) -# source://rubocop//lib/rubocop/cop/style/class_equality_comparison.rb#58 +# source://rubocop/lib/rubocop/cop/style/class_equality_comparison.rb#58 RuboCop::Cop::Style::ClassEqualityComparison::MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/class_equality_comparison.rb#60 +# source://rubocop/lib/rubocop/cop/style/class_equality_comparison.rb#60 RuboCop::Cop::Style::ClassEqualityComparison::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Checks for uses of the class/module name instead of @@ -33485,23 +33869,23 @@ RuboCop::Cop::Style::ClassEqualityComparison::RESTRICT_ON_SEND = T.let(T.unsafe( # end # end # -# source://rubocop//lib/rubocop/cop/style/class_methods.rb#23 +# source://rubocop/lib/rubocop/cop/style/class_methods.rb#23 class RuboCop::Cop::Style::ClassMethods < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/class_methods.rb#28 + # source://rubocop/lib/rubocop/cop/style/class_methods.rb#28 def on_class(node); end - # source://rubocop//lib/rubocop/cop/style/class_methods.rb#28 + # source://rubocop/lib/rubocop/cop/style/class_methods.rb#28 def on_module(node); end private - # source://rubocop//lib/rubocop/cop/style/class_methods.rb#41 + # source://rubocop/lib/rubocop/cop/style/class_methods.rb#41 def check_defs(name, node); end end -# source://rubocop//lib/rubocop/cop/style/class_methods.rb#26 +# source://rubocop/lib/rubocop/cop/style/class_methods.rb#26 RuboCop::Cop::Style::ClassMethods::MSG = T.let(T.unsafe(nil), String) # Enforces using `def self.method_name` or `class << self` to define class methods. @@ -33558,7 +33942,7 @@ RuboCop::Cop::Style::ClassMethods::MSG = T.let(T.unsafe(nil), String) # end # end # -# source://rubocop//lib/rubocop/cop/style/class_methods_definitions.rb#61 +# source://rubocop/lib/rubocop/cop/style/class_methods_definitions.rb#61 class RuboCop::Cop::Style::ClassMethodsDefinitions < ::RuboCop::Cop::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle include ::RuboCop::Cop::CommentsHelp @@ -33566,46 +33950,46 @@ class RuboCop::Cop::Style::ClassMethodsDefinitions < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/class_methods_definitions.rb#81 + # source://rubocop/lib/rubocop/cop/style/class_methods_definitions.rb#81 def on_defs(node); end - # source://rubocop//lib/rubocop/cop/style/class_methods_definitions.rb#71 + # source://rubocop/lib/rubocop/cop/style/class_methods_definitions.rb#71 def on_sclass(node); end private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/class_methods_definitions.rb#95 + # source://rubocop/lib/rubocop/cop/style/class_methods_definitions.rb#95 def all_methods_public?(sclass_node); end - # source://rubocop//lib/rubocop/cop/style/class_methods_definitions.rb#115 + # source://rubocop/lib/rubocop/cop/style/class_methods_definitions.rb#115 def autocorrect_sclass(node, corrector); end - # source://rubocop//lib/rubocop/cop/style/class_methods_definitions.rb#102 + # source://rubocop/lib/rubocop/cop/style/class_methods_definitions.rb#102 def def_nodes(sclass_node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/class_methods_definitions.rb#91 + # source://rubocop/lib/rubocop/cop/style/class_methods_definitions.rb#91 def def_self_style?; end - # source://rubocop//lib/rubocop/cop/style/class_methods_definitions.rb#141 + # source://rubocop/lib/rubocop/cop/style/class_methods_definitions.rb#141 def extract_def_from_sclass(def_node, sclass_node); end - # source://rubocop//lib/rubocop/cop/style/class_methods_definitions.rb#152 + # source://rubocop/lib/rubocop/cop/style/class_methods_definitions.rb#152 def indentation_diff(node1, node2); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/class_methods_definitions.rb#137 + # source://rubocop/lib/rubocop/cop/style/class_methods_definitions.rb#137 def sclass_only_has_methods?(node); end end -# source://rubocop//lib/rubocop/cop/style/class_methods_definitions.rb#68 +# source://rubocop/lib/rubocop/cop/style/class_methods_definitions.rb#68 RuboCop::Cop::Style::ClassMethodsDefinitions::MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/class_methods_definitions.rb#69 +# source://rubocop/lib/rubocop/cop/style/class_methods_definitions.rb#69 RuboCop::Cop::Style::ClassMethodsDefinitions::MSG_SCLASS = T.let(T.unsafe(nil), String) # Checks for uses of class variables. Offenses @@ -33650,19 +34034,19 @@ RuboCop::Cop::Style::ClassMethodsDefinitions::MSG_SCLASS = T.let(T.unsafe(nil), # end # end # -# source://rubocop//lib/rubocop/cop/style/class_vars.rb#48 +# source://rubocop/lib/rubocop/cop/style/class_vars.rb#48 class RuboCop::Cop::Style::ClassVars < ::RuboCop::Cop::Base - # source://rubocop//lib/rubocop/cop/style/class_vars.rb#52 + # source://rubocop/lib/rubocop/cop/style/class_vars.rb#52 def on_cvasgn(node); end - # source://rubocop//lib/rubocop/cop/style/class_vars.rb#56 + # source://rubocop/lib/rubocop/cop/style/class_vars.rb#56 def on_send(node); end end -# source://rubocop//lib/rubocop/cop/style/class_vars.rb#49 +# source://rubocop/lib/rubocop/cop/style/class_vars.rb#49 RuboCop::Cop::Style::ClassVars::MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/class_vars.rb#50 +# source://rubocop/lib/rubocop/cop/style/class_vars.rb#50 RuboCop::Cop::Style::ClassVars::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Checks for places where custom logic on rejection nils from arrays @@ -33692,58 +34076,58 @@ RuboCop::Cop::Style::ClassVars::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # # good # params.reject(&:nil?) # -# source://rubocop//lib/rubocop/cop/style/collection_compact.rb#44 +# source://rubocop/lib/rubocop/cop/style/collection_compact.rb#44 class RuboCop::Cop::Style::CollectionCompact < ::RuboCop::Cop::Base include ::RuboCop::Cop::AllowedReceivers include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector extend ::RuboCop::Cop::TargetRubyVersion - # source://rubocop//lib/rubocop/cop/style/collection_compact.rb#86 + # source://rubocop/lib/rubocop/cop/style/collection_compact.rb#86 def grep_v_with_nil?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/style/collection_compact.rb#90 + # source://rubocop/lib/rubocop/cop/style/collection_compact.rb#90 def on_csend(node); end - # source://rubocop//lib/rubocop/cop/style/collection_compact.rb#90 + # source://rubocop/lib/rubocop/cop/style/collection_compact.rb#90 def on_send(node); end - # source://rubocop//lib/rubocop/cop/style/collection_compact.rb#65 + # source://rubocop/lib/rubocop/cop/style/collection_compact.rb#65 def reject_method?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/style/collection_compact.rb#58 + # source://rubocop/lib/rubocop/cop/style/collection_compact.rb#58 def reject_method_with_block_pass?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/style/collection_compact.rb#75 + # source://rubocop/lib/rubocop/cop/style/collection_compact.rb#75 def select_method?(param0 = T.unsafe(nil)); end private - # source://rubocop//lib/rubocop/cop/style/collection_compact.rb#129 + # source://rubocop/lib/rubocop/cop/style/collection_compact.rb#129 def good_method_name(node); end - # source://rubocop//lib/rubocop/cop/style/collection_compact.rb#106 + # source://rubocop/lib/rubocop/cop/style/collection_compact.rb#106 def offense_range(node); end - # source://rubocop//lib/rubocop/cop/style/collection_compact.rb#137 + # source://rubocop/lib/rubocop/cop/style/collection_compact.rb#137 def range(begin_pos_node, end_pos_node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/collection_compact.rb#123 + # source://rubocop/lib/rubocop/cop/style/collection_compact.rb#123 def to_enum_method?(node); end end -# source://rubocop//lib/rubocop/cop/style/collection_compact.rb#53 +# source://rubocop/lib/rubocop/cop/style/collection_compact.rb#53 RuboCop::Cop::Style::CollectionCompact::FILTER_METHODS = T.let(T.unsafe(nil), Array) -# source://rubocop//lib/rubocop/cop/style/collection_compact.rb#50 +# source://rubocop/lib/rubocop/cop/style/collection_compact.rb#50 RuboCop::Cop::Style::CollectionCompact::MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/collection_compact.rb#51 +# source://rubocop/lib/rubocop/cop/style/collection_compact.rb#51 RuboCop::Cop::Style::CollectionCompact::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) -# source://rubocop//lib/rubocop/cop/style/collection_compact.rb#52 +# source://rubocop/lib/rubocop/cop/style/collection_compact.rb#52 RuboCop::Cop::Style::CollectionCompact::TO_ENUM_METHODS = T.let(T.unsafe(nil), Array) # Enforces the use of consistent method names @@ -33778,41 +34162,41 @@ RuboCop::Cop::Style::CollectionCompact::TO_ENUM_METHODS = T.let(T.unsafe(nil), A # items.select # items.include? # -# source://rubocop//lib/rubocop/cop/style/collection_methods.rb#43 +# source://rubocop/lib/rubocop/cop/style/collection_methods.rb#43 class RuboCop::Cop::Style::CollectionMethods < ::RuboCop::Cop::Base include ::RuboCop::Cop::MethodPreference extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/collection_methods.rb#49 + # source://rubocop/lib/rubocop/cop/style/collection_methods.rb#49 def on_block(node); end - # source://rubocop//lib/rubocop/cop/style/collection_methods.rb#49 + # source://rubocop/lib/rubocop/cop/style/collection_methods.rb#49 def on_numblock(node); end - # source://rubocop//lib/rubocop/cop/style/collection_methods.rb#55 + # source://rubocop/lib/rubocop/cop/style/collection_methods.rb#55 def on_send(node); end private - # source://rubocop//lib/rubocop/cop/style/collection_methods.rb#63 + # source://rubocop/lib/rubocop/cop/style/collection_methods.rb#63 def check_method_node(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/collection_methods.rb#72 + # source://rubocop/lib/rubocop/cop/style/collection_methods.rb#72 def implicit_block?(node); end - # source://rubocop//lib/rubocop/cop/style/collection_methods.rb#80 + # source://rubocop/lib/rubocop/cop/style/collection_methods.rb#80 def message(node); end # Some enumerable methods accept a bare symbol (ie. _not_ Symbol#to_proc) instead # of a block. # - # source://rubocop//lib/rubocop/cop/style/collection_methods.rb#86 + # source://rubocop/lib/rubocop/cop/style/collection_methods.rb#86 def methods_accepting_symbol; end end -# source://rubocop//lib/rubocop/cop/style/collection_methods.rb#47 +# source://rubocop/lib/rubocop/cop/style/collection_methods.rb#47 RuboCop::Cop::Style::CollectionMethods::MSG = T.let(T.unsafe(nil), String) # Checks for methods invoked via the `::` operator instead @@ -33829,23 +34213,23 @@ RuboCop::Cop::Style::CollectionMethods::MSG = T.let(T.unsafe(nil), String) # FileUtils.rmdir(dir) # Marshal.dump(obj) # -# source://rubocop//lib/rubocop/cop/style/colon_method_call.rb#20 +# source://rubocop/lib/rubocop/cop/style/colon_method_call.rb#20 class RuboCop::Cop::Style::ColonMethodCall < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/colon_method_call.rb#26 + # source://rubocop/lib/rubocop/cop/style/colon_method_call.rb#26 def java_type_node?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/style/colon_method_call.rb#35 + # source://rubocop/lib/rubocop/cop/style/colon_method_call.rb#35 def on_send(node); end class << self - # source://rubocop//lib/rubocop/cop/style/colon_method_call.rb#31 + # source://rubocop/lib/rubocop/cop/style/colon_method_call.rb#31 def autocorrect_incompatible_with; end end end -# source://rubocop//lib/rubocop/cop/style/colon_method_call.rb#23 +# source://rubocop/lib/rubocop/cop/style/colon_method_call.rb#23 RuboCop::Cop::Style::ColonMethodCall::MSG = T.let(T.unsafe(nil), String) # Checks for class methods that are defined using the `::` @@ -33864,15 +34248,15 @@ RuboCop::Cop::Style::ColonMethodCall::MSG = T.let(T.unsafe(nil), String) # end # end # -# source://rubocop//lib/rubocop/cop/style/colon_method_definition.rb#22 +# source://rubocop/lib/rubocop/cop/style/colon_method_definition.rb#22 class RuboCop::Cop::Style::ColonMethodDefinition < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/colon_method_definition.rb#27 + # source://rubocop/lib/rubocop/cop/style/colon_method_definition.rb#27 def on_defs(node); end end -# source://rubocop//lib/rubocop/cop/style/colon_method_definition.rb#25 +# 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 @@ -33894,45 +34278,45 @@ RuboCop::Cop::Style::ColonMethodDefinition::MSG = T.let(T.unsafe(nil), String) # # good # defined?(foo.bar.baz) # -# source://rubocop//lib/rubocop/cop/style/combinable_defined.rb#24 +# 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 + # 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 + # 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 + # 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 + # source://rubocop/lib/rubocop/cop/style/combinable_defined.rb#62 def namespaces(nodes); end - # source://rubocop//lib/rubocop/cop/style/combinable_defined.rb#72 + # 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 + # 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 + # 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 +# 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 +# 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 @@ -33987,44 +34371,44 @@ RuboCop::Cop::Style::CombinableDefined::OPERATORS = T.let(T.unsafe(nil), Array) # each_slice(3) { |slice| do_something(slice) } # end # -# source://rubocop//lib/rubocop/cop/style/combinable_loops.rb#62 +# source://rubocop/lib/rubocop/cop/style/combinable_loops.rb#62 class RuboCop::Cop::Style::CombinableLoops < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/combinable_loops.rb#68 + # source://rubocop/lib/rubocop/cop/style/combinable_loops.rb#68 def on_block(node); end - # source://rubocop//lib/rubocop/cop/style/combinable_loops.rb#84 + # source://rubocop/lib/rubocop/cop/style/combinable_loops.rb#84 def on_for(node); end - # source://rubocop//lib/rubocop/cop/style/combinable_loops.rb#68 + # source://rubocop/lib/rubocop/cop/style/combinable_loops.rb#68 def on_numblock(node); end private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/combinable_loops.rb#95 + # source://rubocop/lib/rubocop/cop/style/combinable_loops.rb#95 def collection_looping_method?(node); end - # source://rubocop//lib/rubocop/cop/style/combinable_loops.rb#112 + # source://rubocop/lib/rubocop/cop/style/combinable_loops.rb#112 def combine_with_left_sibling(corrector, node); end - # source://rubocop//lib/rubocop/cop/style/combinable_loops.rb#119 + # source://rubocop/lib/rubocop/cop/style/combinable_loops.rb#119 def correct_end_of_block(corrector, node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/combinable_loops.rb#100 + # source://rubocop/lib/rubocop/cop/style/combinable_loops.rb#100 def same_collection_looping_block?(node, sibling); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/combinable_loops.rb#108 + # source://rubocop/lib/rubocop/cop/style/combinable_loops.rb#108 def same_collection_looping_for?(node, sibling); end end -# source://rubocop//lib/rubocop/cop/style/combinable_loops.rb#65 +# source://rubocop/lib/rubocop/cop/style/combinable_loops.rb#65 RuboCop::Cop::Style::CombinableLoops::MSG = T.let(T.unsafe(nil), String) # Enforces using `` or %x around command literals. @@ -34096,75 +34480,75 @@ RuboCop::Cop::Style::CombinableLoops::MSG = T.let(T.unsafe(nil), String) # # good # `echo \`ls\`` # -# source://rubocop//lib/rubocop/cop/style/command_literal.rb#78 +# source://rubocop/lib/rubocop/cop/style/command_literal.rb#78 class RuboCop::Cop::Style::CommandLiteral < ::RuboCop::Cop::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/command_literal.rb#85 + # source://rubocop/lib/rubocop/cop/style/command_literal.rb#85 def on_xstr(node); end private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/command_literal.rb#146 + # source://rubocop/lib/rubocop/cop/style/command_literal.rb#146 def allow_inner_backticks?; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/command_literal.rb#122 + # source://rubocop/lib/rubocop/cop/style/command_literal.rb#122 def allowed_backtick_literal?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/command_literal.rb#131 + # source://rubocop/lib/rubocop/cop/style/command_literal.rb#131 def allowed_percent_x_literal?(node); end - # source://rubocop//lib/rubocop/cop/style/command_literal.rb#109 + # source://rubocop/lib/rubocop/cop/style/command_literal.rb#109 def autocorrect(corrector, node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/command_literal.rb#159 + # source://rubocop/lib/rubocop/cop/style/command_literal.rb#159 def backtick_literal?(node); end - # source://rubocop//lib/rubocop/cop/style/command_literal.rb#97 + # source://rubocop/lib/rubocop/cop/style/command_literal.rb#97 def check_backtick_literal(node, message); end - # source://rubocop//lib/rubocop/cop/style/command_literal.rb#103 + # source://rubocop/lib/rubocop/cop/style/command_literal.rb#103 def check_percent_x_literal(node, message); end - # source://rubocop//lib/rubocop/cop/style/command_literal.rb#167 + # source://rubocop/lib/rubocop/cop/style/command_literal.rb#167 def command_delimiter; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/command_literal.rb#150 + # source://rubocop/lib/rubocop/cop/style/command_literal.rb#150 def contains_backtick?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/command_literal.rb#142 + # source://rubocop/lib/rubocop/cop/style/command_literal.rb#142 def contains_disallowed_backtick?(node); end - # source://rubocop//lib/rubocop/cop/style/command_literal.rb#171 + # source://rubocop/lib/rubocop/cop/style/command_literal.rb#171 def default_delimiter; end - # source://rubocop//lib/rubocop/cop/style/command_literal.rb#154 + # source://rubocop/lib/rubocop/cop/style/command_literal.rb#154 def node_body(node); end - # source://rubocop//lib/rubocop/cop/style/command_literal.rb#163 + # source://rubocop/lib/rubocop/cop/style/command_literal.rb#163 def preferred_delimiter; end - # source://rubocop//lib/rubocop/cop/style/command_literal.rb#175 + # source://rubocop/lib/rubocop/cop/style/command_literal.rb#175 def preferred_delimiters_config; end end -# source://rubocop//lib/rubocop/cop/style/command_literal.rb#82 +# source://rubocop/lib/rubocop/cop/style/command_literal.rb#82 RuboCop::Cop::Style::CommandLiteral::MSG_USE_BACKTICKS = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/command_literal.rb#83 +# source://rubocop/lib/rubocop/cop/style/command_literal.rb#83 RuboCop::Cop::Style::CommandLiteral::MSG_USE_PERCENT_X = T.let(T.unsafe(nil), String) # Checks that comment annotation keywords are written according @@ -34222,51 +34606,51 @@ RuboCop::Cop::Style::CommandLiteral::MSG_USE_PERCENT_X = T.let(T.unsafe(nil), St # # good # # OPTIMIZE does not work # -# source://rubocop//lib/rubocop/cop/style/comment_annotation.rb#61 +# source://rubocop/lib/rubocop/cop/style/comment_annotation.rb#61 class RuboCop::Cop::Style::CommentAnnotation < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/comment_annotation.rb#73 + # source://rubocop/lib/rubocop/cop/style/comment_annotation.rb#73 def on_new_investigation; end private - # source://rubocop//lib/rubocop/cop/style/comment_annotation.rb#110 + # source://rubocop/lib/rubocop/cop/style/comment_annotation.rb#110 def annotation_range(annotation); end - # source://rubocop//lib/rubocop/cop/style/comment_annotation.rb#114 + # source://rubocop/lib/rubocop/cop/style/comment_annotation.rb#114 def correct_offense(corrector, range, keyword); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/comment_annotation.rb#102 + # source://rubocop/lib/rubocop/cop/style/comment_annotation.rb#102 def first_comment_line?(comments, index); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/comment_annotation.rb#106 + # source://rubocop/lib/rubocop/cop/style/comment_annotation.rb#106 def inline_comment?(comment); end - # source://rubocop//lib/rubocop/cop/style/comment_annotation.rb#124 + # source://rubocop/lib/rubocop/cop/style/comment_annotation.rb#124 def keywords; end - # source://rubocop//lib/rubocop/cop/style/comment_annotation.rb#87 + # source://rubocop/lib/rubocop/cop/style/comment_annotation.rb#87 def register_offense(annotation); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/comment_annotation.rb#120 + # source://rubocop/lib/rubocop/cop/style/comment_annotation.rb#120 def requires_colon?; end end -# source://rubocop//lib/rubocop/cop/style/comment_annotation.rb#71 +# source://rubocop/lib/rubocop/cop/style/comment_annotation.rb#71 RuboCop::Cop::Style::CommentAnnotation::MISSING_NOTE = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/comment_annotation.rb#65 +# source://rubocop/lib/rubocop/cop/style/comment_annotation.rb#65 RuboCop::Cop::Style::CommentAnnotation::MSG_COLON_STYLE = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/comment_annotation.rb#68 +# source://rubocop/lib/rubocop/cop/style/comment_annotation.rb#68 RuboCop::Cop::Style::CommentAnnotation::MSG_SPACE_STYLE = T.let(T.unsafe(nil), String) # Checks for comments put on the same line as some keywords. @@ -34302,51 +34686,57 @@ RuboCop::Cop::Style::CommentAnnotation::MSG_SPACE_STYLE = T.let(T.unsafe(nil), S # y # end # -# source://rubocop//lib/rubocop/cop/style/commented_keyword.rb#45 +# source://rubocop/lib/rubocop/cop/style/commented_keyword.rb#45 class RuboCop::Cop::Style::CommentedKeyword < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/commented_keyword.rb#60 + # source://rubocop/lib/rubocop/cop/style/commented_keyword.rb#63 def on_new_investigation; end private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/commented_keyword.rb#83 + # source://rubocop/lib/rubocop/cop/style/commented_keyword.rb#86 def offensive?(comment); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/commented_keyword.rb#95 + # source://rubocop/lib/rubocop/cop/style/commented_keyword.rb#98 def rbs_inline_annotation?(line, comment); end - # source://rubocop//lib/rubocop/cop/style/commented_keyword.rb#70 + # source://rubocop/lib/rubocop/cop/style/commented_keyword.rb#73 def register_offense(comment, matched_keyword); end - # source://rubocop//lib/rubocop/cop/style/commented_keyword.rb#91 + # source://rubocop/lib/rubocop/cop/style/commented_keyword.rb#94 def source_line(comment); end end -# source://rubocop//lib/rubocop/cop/style/commented_keyword.rb#54 +# source://rubocop/lib/rubocop/cop/style/commented_keyword.rb#54 RuboCop::Cop::Style::CommentedKeyword::ALLOWED_COMMENTS = T.let(T.unsafe(nil), Array) -# source://rubocop//lib/rubocop/cop/style/commented_keyword.rb#55 +# source://rubocop/lib/rubocop/cop/style/commented_keyword.rb#55 RuboCop::Cop::Style::CommentedKeyword::ALLOWED_COMMENT_REGEXES = T.let(T.unsafe(nil), Array) -# source://rubocop//lib/rubocop/cop/style/commented_keyword.rb#51 +# source://rubocop/lib/rubocop/cop/style/commented_keyword.rb#51 RuboCop::Cop::Style::CommentedKeyword::KEYWORDS = T.let(T.unsafe(nil), Array) -# source://rubocop//lib/rubocop/cop/style/commented_keyword.rb#52 +# source://rubocop/lib/rubocop/cop/style/commented_keyword.rb#52 RuboCop::Cop::Style::CommentedKeyword::KEYWORD_REGEXES = T.let(T.unsafe(nil), Array) -# source://rubocop//lib/rubocop/cop/style/commented_keyword.rb#49 +# source://rubocop/lib/rubocop/cop/style/commented_keyword.rb#61 +RuboCop::Cop::Style::CommentedKeyword::METHOD_DEFINITION = T.let(T.unsafe(nil), Regexp) + +# source://rubocop/lib/rubocop/cop/style/commented_keyword.rb#49 RuboCop::Cop::Style::CommentedKeyword::MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/commented_keyword.rb#58 +# source://rubocop/lib/rubocop/cop/style/commented_keyword.rb#58 RuboCop::Cop::Style::CommentedKeyword::REGEXP = T.let(T.unsafe(nil), Regexp) +# source://rubocop/lib/rubocop/cop/style/commented_keyword.rb#60 +RuboCop::Cop::Style::CommentedKeyword::SUBCLASS_DEFINITION = T.let(T.unsafe(nil), Regexp) + # Enforces the use of `Comparable#clamp` instead of comparison by minimum and maximum. # # This cop supports autocorrection for `if/elsif/else` bad style only. @@ -34376,42 +34766,42 @@ RuboCop::Cop::Style::CommentedKeyword::REGEXP = T.let(T.unsafe(nil), Regexp) # # good # x.clamp(low, high) # -# source://rubocop//lib/rubocop/cop/style/comparable_clamp.rb#35 +# source://rubocop/lib/rubocop/cop/style/comparable_clamp.rb#35 class RuboCop::Cop::Style::ComparableClamp < ::RuboCop::Cop::Base include ::RuboCop::Cop::Alignment extend ::RuboCop::Cop::AutoCorrector extend ::RuboCop::Cop::TargetRubyVersion - # source://rubocop//lib/rubocop/cop/style/comparable_clamp.rb#61 + # source://rubocop/lib/rubocop/cop/style/comparable_clamp.rb#61 def array_min_max?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/style/comparable_clamp.rb#47 + # source://rubocop/lib/rubocop/cop/style/comparable_clamp.rb#47 def if_elsif_else_condition?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/style/comparable_clamp.rb#78 + # source://rubocop/lib/rubocop/cop/style/comparable_clamp.rb#78 def on_if(node); end - # source://rubocop//lib/rubocop/cop/style/comparable_clamp.rb#100 + # source://rubocop/lib/rubocop/cop/style/comparable_clamp.rb#100 def on_send(node); end private - # source://rubocop//lib/rubocop/cop/style/comparable_clamp.rb#108 + # source://rubocop/lib/rubocop/cop/style/comparable_clamp.rb#108 def autocorrect(corrector, node, prefer); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/comparable_clamp.rb#117 + # source://rubocop/lib/rubocop/cop/style/comparable_clamp.rb#117 def min_condition?(if_condition, else_body); end end -# source://rubocop//lib/rubocop/cop/style/comparable_clamp.rb#42 +# source://rubocop/lib/rubocop/cop/style/comparable_clamp.rb#42 RuboCop::Cop::Style::ComparableClamp::MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/comparable_clamp.rb#43 +# source://rubocop/lib/rubocop/cop/style/comparable_clamp.rb#43 RuboCop::Cop::Style::ComparableClamp::MSG_MIN_MAX = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/comparable_clamp.rb#44 +# source://rubocop/lib/rubocop/cop/style/comparable_clamp.rb#44 RuboCop::Cop::Style::ComparableClamp::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Enforces the use of `Array#push(item)` instead of `Array#concat([item])` @@ -34429,37 +34819,37 @@ RuboCop::Cop::Style::ComparableClamp::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Ar # list.push(bar, baz) # list.push(qux, quux, corge) # -# source://rubocop//lib/rubocop/cop/style/concat_array_literals.rb#25 +# source://rubocop/lib/rubocop/cop/style/concat_array_literals.rb#25 class RuboCop::Cop::Style::ConcatArrayLiterals < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/concat_array_literals.rb#34 + # source://rubocop/lib/rubocop/cop/style/concat_array_literals.rb#34 def on_csend(node); end - # source://rubocop//lib/rubocop/cop/style/concat_array_literals.rb#34 + # source://rubocop/lib/rubocop/cop/style/concat_array_literals.rb#34 def on_send(node); end private - # source://rubocop//lib/rubocop/cop/style/concat_array_literals.rb#70 + # source://rubocop/lib/rubocop/cop/style/concat_array_literals.rb#70 def offense_range(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/concat_array_literals.rb#87 + # source://rubocop/lib/rubocop/cop/style/concat_array_literals.rb#87 def percent_literals_includes_only_basic_literals?(node); end - # source://rubocop//lib/rubocop/cop/style/concat_array_literals.rb#74 + # source://rubocop/lib/rubocop/cop/style/concat_array_literals.rb#74 def preferred_method(node); end end -# source://rubocop//lib/rubocop/cop/style/concat_array_literals.rb#28 +# source://rubocop/lib/rubocop/cop/style/concat_array_literals.rb#28 RuboCop::Cop::Style::ConcatArrayLiterals::MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/concat_array_literals.rb#29 +# source://rubocop/lib/rubocop/cop/style/concat_array_literals.rb#29 RuboCop::Cop::Style::ConcatArrayLiterals::MSG_FOR_PERCENT_LITERALS = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/concat_array_literals.rb#31 +# source://rubocop/lib/rubocop/cop/style/concat_array_literals.rb#31 RuboCop::Cop::Style::ConcatArrayLiterals::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Check for `if` and `case` statements where each branch is used for @@ -34555,7 +34945,7 @@ RuboCop::Cop::Style::ConcatArrayLiterals::RESTRICT_ON_SEND = T.let(T.unsafe(nil) # bar = 2 # end # -# source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#210 +# source://rubocop/lib/rubocop/cop/style/conditional_assignment.rb#207 class RuboCop::Cop::Style::ConditionalAssignment < ::RuboCop::Cop::Base include ::RuboCop::Cop::Style::ConditionalAssignmentHelper include ::RuboCop::Cop::ConfigurableEnforcedStyle @@ -34564,88 +34954,88 @@ class RuboCop::Cop::Style::ConditionalAssignment < ::RuboCop::Cop::Base # The shovel operator `<<` does not have its own type. It is a `send` # type. # - # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#228 + # source://rubocop/lib/rubocop/cop/style/conditional_assignment.rb#224 def assignment_type?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#309 + # source://rubocop/lib/rubocop/cop/style/conditional_assignment.rb#305 def candidate_condition?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#236 + # source://rubocop/lib/rubocop/cop/style/conditional_assignment.rb#232 def on_and_asgn(node); end - # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#264 + # source://rubocop/lib/rubocop/cop/style/conditional_assignment.rb#260 def on_case(node); end - # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#274 + # source://rubocop/lib/rubocop/cop/style/conditional_assignment.rb#270 def on_case_match(node); end - # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#236 + # source://rubocop/lib/rubocop/cop/style/conditional_assignment.rb#232 def on_casgn(node); end - # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#236 + # source://rubocop/lib/rubocop/cop/style/conditional_assignment.rb#232 def on_cvasgn(node); end - # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#236 + # source://rubocop/lib/rubocop/cop/style/conditional_assignment.rb#232 def on_gvasgn(node); end - # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#250 + # source://rubocop/lib/rubocop/cop/style/conditional_assignment.rb#246 def on_if(node); end - # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#236 + # source://rubocop/lib/rubocop/cop/style/conditional_assignment.rb#232 def on_ivasgn(node); end - # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#236 + # source://rubocop/lib/rubocop/cop/style/conditional_assignment.rb#232 def on_lvasgn(node); end - # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#236 + # source://rubocop/lib/rubocop/cop/style/conditional_assignment.rb#232 def on_masgn(node); end - # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#236 + # source://rubocop/lib/rubocop/cop/style/conditional_assignment.rb#232 def on_op_asgn(node); end - # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#236 + # source://rubocop/lib/rubocop/cop/style/conditional_assignment.rb#232 def on_or_asgn(node); end - # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#244 + # source://rubocop/lib/rubocop/cop/style/conditional_assignment.rb#240 def on_send(node); end private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#315 + # source://rubocop/lib/rubocop/cop/style/conditional_assignment.rb#311 def allowed_single_line?(branches); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#386 + # source://rubocop/lib/rubocop/cop/style/conditional_assignment.rb#384 def allowed_statements?(branches); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#311 + # source://rubocop/lib/rubocop/cop/style/conditional_assignment.rb#307 def allowed_ternary?(assignment); end - # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#319 + # source://rubocop/lib/rubocop/cop/style/conditional_assignment.rb#315 def assignment_node(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#363 + # source://rubocop/lib/rubocop/cop/style/conditional_assignment.rb#361 def assignment_types_match?(*nodes); end - # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#378 + # source://rubocop/lib/rubocop/cop/style/conditional_assignment.rb#376 def autocorrect(corrector, node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#304 + # source://rubocop/lib/rubocop/cop/style/conditional_assignment.rb#300 def candidate_node?(node); end - # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#286 + # source://rubocop/lib/rubocop/cop/style/conditional_assignment.rb#282 def check_assignment_to_condition(node); end - # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#369 + # source://rubocop/lib/rubocop/cop/style/conditional_assignment.rb#367 def check_node(node, branches); end # If `Layout/LineLength` is enabled, we do not want to introduce an @@ -34658,86 +35048,86 @@ class RuboCop::Cop::Style::ConditionalAssignment < ::RuboCop::Cop::Base # # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#402 + # source://rubocop/lib/rubocop/cop/style/conditional_assignment.rb#400 def correction_exceeds_line_limit?(node, branches); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#433 + # source://rubocop/lib/rubocop/cop/style/conditional_assignment.rb#431 def include_ternary?; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#356 + # source://rubocop/lib/rubocop/cop/style/conditional_assignment.rb#354 def lhs_all_match?(branches); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#421 + # source://rubocop/lib/rubocop/cop/style/conditional_assignment.rb#419 def line_length_cop_enabled?; end - # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#414 + # source://rubocop/lib/rubocop/cop/style/conditional_assignment.rb#412 def longest_line(node, assignment); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#410 + # source://rubocop/lib/rubocop/cop/style/conditional_assignment.rb#408 def longest_line_exceeds_line_limit?(node, assignment); end - # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#425 + # source://rubocop/lib/rubocop/cop/style/conditional_assignment.rb#423 def max_line_length; end - # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#340 + # source://rubocop/lib/rubocop/cop/style/conditional_assignment.rb#338 def move_assignment_inside_condition(corrector, node); end - # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#330 + # source://rubocop/lib/rubocop/cop/style/conditional_assignment.rb#328 def move_assignment_outside_condition(corrector, node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#429 + # source://rubocop/lib/rubocop/cop/style/conditional_assignment.rb#427 def single_line_conditions_only?; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#352 + # source://rubocop/lib/rubocop/cop/style/conditional_assignment.rb#350 def ternary_condition?(node); end end -# source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#219 +# source://rubocop/lib/rubocop/cop/style/conditional_assignment.rb#215 RuboCop::Cop::Style::ConditionalAssignment::ASSIGNMENT_TYPES = T.let(T.unsafe(nil), Array) -# source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#217 +# source://rubocop/lib/rubocop/cop/style/conditional_assignment.rb#213 RuboCop::Cop::Style::ConditionalAssignment::ASSIGN_TO_CONDITION_MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#221 +# source://rubocop/lib/rubocop/cop/style/conditional_assignment.rb#217 RuboCop::Cop::Style::ConditionalAssignment::ENABLED = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#220 +# source://rubocop/lib/rubocop/cop/style/conditional_assignment.rb#216 RuboCop::Cop::Style::ConditionalAssignment::LINE_LENGTH = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#222 +# source://rubocop/lib/rubocop/cop/style/conditional_assignment.rb#218 RuboCop::Cop::Style::ConditionalAssignment::MAX = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#216 +# source://rubocop/lib/rubocop/cop/style/conditional_assignment.rb#212 RuboCop::Cop::Style::ConditionalAssignment::MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#223 +# source://rubocop/lib/rubocop/cop/style/conditional_assignment.rb#219 RuboCop::Cop::Style::ConditionalAssignment::SINGLE_LINE_CONDITIONS_ONLY = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#218 +# source://rubocop/lib/rubocop/cop/style/conditional_assignment.rb#214 RuboCop::Cop::Style::ConditionalAssignment::VARIABLE_ASSIGNMENT_TYPES = T.let(T.unsafe(nil), Array) # Helper module to provide common methods to classes needed for the # ConditionalAssignment Cop. # -# source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#8 +# source://rubocop/lib/rubocop/cop/style/conditional_assignment.rb#8 module RuboCop::Cop::Style::ConditionalAssignmentHelper extend ::RuboCop::AST::NodePattern::Macros # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#64 + # source://rubocop/lib/rubocop/cop/style/conditional_assignment.rb#60 def end_with_eq?(sym); end # `elsif` branches show up in the `node` as an `else`. We need @@ -34745,79 +35135,79 @@ module RuboCop::Cop::Style::ConditionalAssignmentHelper # but the last `node` an `elsif` branch and consider the last `node` # the actual `else` branch. # - # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#20 + # source://rubocop/lib/rubocop/cop/style/conditional_assignment.rb#20 def expand_elses(branch); end # `when` nodes contain the entire branch including the condition. # We only need the contents of the branch, not the condition. # - # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#28 + # source://rubocop/lib/rubocop/cop/style/conditional_assignment.rb#28 def expand_when_branches(when_branches); end - # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#55 + # source://rubocop/lib/rubocop/cop/style/conditional_assignment.rb#51 def indent(cop, source); end - # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#37 + # source://rubocop/lib/rubocop/cop/style/conditional_assignment.rb#36 def lhs(node); end - # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#32 + # source://rubocop/lib/rubocop/cop/style/conditional_assignment.rb#32 def tail(branch); end private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#109 + # source://rubocop/lib/rubocop/cop/style/conditional_assignment.rb#106 def assignment_rhs_exist?(node); end - # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#70 + # source://rubocop/lib/rubocop/cop/style/conditional_assignment.rb#66 def expand_elsif(node, elsif_branches = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#96 + # source://rubocop/lib/rubocop/cop/style/conditional_assignment.rb#92 def lhs_for_casgn(node); end - # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#83 + # source://rubocop/lib/rubocop/cop/style/conditional_assignment.rb#79 def lhs_for_send(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#105 + # source://rubocop/lib/rubocop/cop/style/conditional_assignment.rb#102 def setter_method?(method_name); end end -# source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#13 +# source://rubocop/lib/rubocop/cop/style/conditional_assignment.rb#13 RuboCop::Cop::Style::ConditionalAssignmentHelper::ALIGN_WITH = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#12 +# source://rubocop/lib/rubocop/cop/style/conditional_assignment.rb#12 RuboCop::Cop::Style::ConditionalAssignmentHelper::END_ALIGNMENT = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#11 +# source://rubocop/lib/rubocop/cop/style/conditional_assignment.rb#11 RuboCop::Cop::Style::ConditionalAssignmentHelper::EQUAL = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#14 +# source://rubocop/lib/rubocop/cop/style/conditional_assignment.rb#14 RuboCop::Cop::Style::ConditionalAssignmentHelper::KEYWORD = T.let(T.unsafe(nil), String) # Helper module to provide common methods to ConditionalAssignment # correctors # -# source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#440 +# source://rubocop/lib/rubocop/cop/style/conditional_assignment.rb#438 module RuboCop::Cop::Style::ConditionalCorrectorHelper - # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#461 + # source://rubocop/lib/rubocop/cop/style/conditional_assignment.rb#459 def assignment(node); end - # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#490 + # source://rubocop/lib/rubocop/cop/style/conditional_assignment.rb#488 def correct_branches(corrector, branches); end - # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#467 + # source://rubocop/lib/rubocop/cop/style/conditional_assignment.rb#465 def correct_if_branches(corrector, cop, node); end - # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#441 + # source://rubocop/lib/rubocop/cop/style/conditional_assignment.rb#439 def remove_whitespace_in_branches(corrector, branch, condition, column); end - # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#477 + # source://rubocop/lib/rubocop/cop/style/conditional_assignment.rb#475 def replace_branch_assignment(corrector, branch); end - # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#454 + # source://rubocop/lib/rubocop/cop/style/conditional_assignment.rb#452 def white_space_range(node, column); end end @@ -34860,95 +35250,92 @@ end # MyClass = Struct.new() # end # -# source://rubocop//lib/rubocop/cop/style/constant_visibility.rb#47 +# source://rubocop/lib/rubocop/cop/style/constant_visibility.rb#47 class RuboCop::Cop::Style::ConstantVisibility < ::RuboCop::Cop::Base - # source://rubocop//lib/rubocop/cop/style/constant_visibility.rb#51 + # source://rubocop/lib/rubocop/cop/style/constant_visibility.rb#51 def on_casgn(node); end - # source://rubocop//lib/rubocop/cop/style/constant_visibility.rb#96 + # source://rubocop/lib/rubocop/cop/style/constant_visibility.rb#87 def visibility_declaration_for?(param0 = T.unsafe(nil), param1); end private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/constant_visibility.rb#76 + # source://rubocop/lib/rubocop/cop/style/constant_visibility.rb#69 def class_or_module_scope?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/constant_visibility.rb#62 + # source://rubocop/lib/rubocop/cop/style/constant_visibility.rb#61 def ignore_modules?; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/constant_visibility.rb#100 + # source://rubocop/lib/rubocop/cop/style/constant_visibility.rb#91 def match_name?(name, constant_name); end - # source://rubocop//lib/rubocop/cop/style/constant_visibility.rb#70 - def message(node); end - # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/constant_visibility.rb#66 + # source://rubocop/lib/rubocop/cop/style/constant_visibility.rb#65 def module?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/constant_visibility.rb#87 + # source://rubocop/lib/rubocop/cop/style/constant_visibility.rb#80 def visibility_declaration?(node); end end -# source://rubocop//lib/rubocop/cop/style/constant_visibility.rb#48 +# source://rubocop/lib/rubocop/cop/style/constant_visibility.rb#48 RuboCop::Cop::Style::ConstantVisibility::MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/copyright.rb#21 +# source://rubocop/lib/rubocop/cop/style/copyright.rb#21 class RuboCop::Cop::Style::Copyright < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/copyright.rb#28 + # source://rubocop/lib/rubocop/cop/style/copyright.rb#28 def on_new_investigation; end private - # source://rubocop//lib/rubocop/cop/style/copyright.rb#45 + # source://rubocop/lib/rubocop/cop/style/copyright.rb#45 def autocorrect(corrector); end - # source://rubocop//lib/rubocop/cop/style/copyright.rb#56 + # source://rubocop/lib/rubocop/cop/style/copyright.rb#56 def autocorrect_notice; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/copyright.rb#86 + # source://rubocop/lib/rubocop/cop/style/copyright.rb#86 def encoding_token?(processed_source, token_index); end - # source://rubocop//lib/rubocop/cop/style/copyright.rb#72 + # source://rubocop/lib/rubocop/cop/style/copyright.rb#72 def insert_notice_before(processed_source); end - # source://rubocop//lib/rubocop/cop/style/copyright.rb#52 + # source://rubocop/lib/rubocop/cop/style/copyright.rb#52 def notice; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/copyright.rb#93 + # source://rubocop/lib/rubocop/cop/style/copyright.rb#93 def notice_found?(processed_source); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/copyright.rb#79 + # source://rubocop/lib/rubocop/cop/style/copyright.rb#79 def shebang_token?(processed_source, token_index); end # @raise [Warning] # - # source://rubocop//lib/rubocop/cop/style/copyright.rb#60 + # source://rubocop/lib/rubocop/cop/style/copyright.rb#60 def verify_autocorrect_notice!; end end -# source://rubocop//lib/rubocop/cop/style/copyright.rb#26 +# source://rubocop/lib/rubocop/cop/style/copyright.rb#26 RuboCop::Cop::Style::Copyright::AUTOCORRECT_EMPTY_WARNING = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/copyright.rb#25 +# source://rubocop/lib/rubocop/cop/style/copyright.rb#25 RuboCop::Cop::Style::Copyright::MSG = T.let(T.unsafe(nil), String) # Checks for inheritance from `Data.define` to avoid creating the anonymous parent class. @@ -34968,28 +35355,28 @@ RuboCop::Cop::Style::Copyright::MSG = T.let(T.unsafe(nil), String) # end # end # -# source://rubocop//lib/rubocop/cop/style/data_inheritance.rb#26 +# source://rubocop/lib/rubocop/cop/style/data_inheritance.rb#26 class RuboCop::Cop::Style::DataInheritance < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector extend ::RuboCop::Cop::TargetRubyVersion - # source://rubocop//lib/rubocop/cop/style/data_inheritance.rb#48 + # source://rubocop/lib/rubocop/cop/style/data_inheritance.rb#48 def data_define?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/style/data_inheritance.rb#36 + # source://rubocop/lib/rubocop/cop/style/data_inheritance.rb#36 def on_class(node); end private - # source://rubocop//lib/rubocop/cop/style/data_inheritance.rb#55 + # source://rubocop/lib/rubocop/cop/style/data_inheritance.rb#55 def correct_parent(parent, corrector); end - # source://rubocop//lib/rubocop/cop/style/data_inheritance.rb#65 + # source://rubocop/lib/rubocop/cop/style/data_inheritance.rb#65 def range_for_empty_class_body(class_node, data_define); end end -# source://rubocop//lib/rubocop/cop/style/data_inheritance.rb#31 +# source://rubocop/lib/rubocop/cop/style/data_inheritance.rb#31 RuboCop::Cop::Style::DataInheritance::MSG = T.let(T.unsafe(nil), String) # Checks for consistent usage of the `DateTime` class over the @@ -35029,40 +35416,40 @@ RuboCop::Cop::Style::DataInheritance::MSG = T.let(T.unsafe(nil), String) # # good # something.to_time # -# source://rubocop//lib/rubocop/cop/style/date_time.rb#49 +# source://rubocop/lib/rubocop/cop/style/date_time.rb#49 class RuboCop::Cop::Style::DateTime < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/date_time.rb#56 + # source://rubocop/lib/rubocop/cop/style/date_time.rb#56 def date_time?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/style/date_time.rb#61 + # source://rubocop/lib/rubocop/cop/style/date_time.rb#61 def historic_date?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/style/date_time.rb#70 + # source://rubocop/lib/rubocop/cop/style/date_time.rb#70 def on_csend(node); end - # source://rubocop//lib/rubocop/cop/style/date_time.rb#70 + # source://rubocop/lib/rubocop/cop/style/date_time.rb#70 def on_send(node); end - # source://rubocop//lib/rubocop/cop/style/date_time.rb#66 + # source://rubocop/lib/rubocop/cop/style/date_time.rb#66 def to_datetime?(param0 = T.unsafe(nil)); end private - # source://rubocop//lib/rubocop/cop/style/date_time.rb#86 + # source://rubocop/lib/rubocop/cop/style/date_time.rb#86 def autocorrect(corrector, node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/date_time.rb#82 + # source://rubocop/lib/rubocop/cop/style/date_time.rb#82 def disallow_coercion?; end end -# source://rubocop//lib/rubocop/cop/style/date_time.rb#52 +# source://rubocop/lib/rubocop/cop/style/date_time.rb#52 RuboCop::Cop::Style::DateTime::CLASS_MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/date_time.rb#53 +# source://rubocop/lib/rubocop/cop/style/date_time.rb#53 RuboCop::Cop::Style::DateTime::COERCION_MSG = T.let(T.unsafe(nil), String) # Checks for parentheses in the definition of a method, @@ -35100,20 +35487,68 @@ RuboCop::Cop::Style::DateTime::COERCION_MSG = T.let(T.unsafe(nil), String) # do_something # end # -# source://rubocop//lib/rubocop/cop/style/def_with_parentheses.rb#40 +# source://rubocop/lib/rubocop/cop/style/def_with_parentheses.rb#40 class RuboCop::Cop::Style::DefWithParentheses < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/def_with_parentheses.rb#45 + # source://rubocop/lib/rubocop/cop/style/def_with_parentheses.rb#45 def on_def(node); end - # source://rubocop//lib/rubocop/cop/style/def_with_parentheses.rb#45 + # source://rubocop/lib/rubocop/cop/style/def_with_parentheses.rb#45 def on_defs(node); end end -# source://rubocop//lib/rubocop/cop/style/def_with_parentheses.rb#43 +# source://rubocop/lib/rubocop/cop/style/def_with_parentheses.rb#43 RuboCop::Cop::Style::DefWithParentheses::MSG = T.let(T.unsafe(nil), String) +# Check for chained `dig` calls that can be collapsed into a single `dig`. +# +# @example +# # bad +# x.dig(:foo).dig(:bar).dig(:baz) +# x.dig(:foo, :bar).dig(:baz) +# x.dig(:foo, :bar)&.dig(:baz) +# +# # good +# x.dig(:foo, :bar, :baz) +# +# # good - `dig`s cannot be combined +# x.dig(:foo).bar.dig(:baz) +# +# source://rubocop/lib/rubocop/cop/style/dig_chain.rb#25 +class RuboCop::Cop::Style::DigChain < ::RuboCop::Cop::Base + include ::RuboCop::Cop::CommentsHelp + include ::RuboCop::Cop::DigHelp + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop/lib/rubocop/cop/style/dig_chain.rb#33 + def on_csend(node); end + + # source://rubocop/lib/rubocop/cop/style/dig_chain.rb#33 + def on_send(node); end + + private + + # Walk up the method chain while the receiver is `dig` with arguments. + # + # source://rubocop/lib/rubocop/cop/style/dig_chain.rb#49 + def inspect_chain(node); end + + # @return [Boolean] + # + # source://rubocop/lib/rubocop/cop/style/dig_chain.rb#64 + def invalid_arguments?(arguments); end + + # source://rubocop/lib/rubocop/cop/style/dig_chain.rb#74 + def register_offense(node, range, arguments); end +end + +# source://rubocop/lib/rubocop/cop/style/dig_chain.rb#30 +RuboCop::Cop::Style::DigChain::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop/lib/rubocop/cop/style/dig_chain.rb#31 +RuboCop::Cop::Style::DigChain::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + # Checks for places where the `#\_\_dir\_\_` method can replace more # complex constructs to retrieve a canonicalized absolute path to the # current file. @@ -35128,29 +35563,29 @@ RuboCop::Cop::Style::DefWithParentheses::MSG = T.let(T.unsafe(nil), String) # # good # path = __dir__ # -# source://rubocop//lib/rubocop/cop/style/dir.rb#19 +# source://rubocop/lib/rubocop/cop/style/dir.rb#19 class RuboCop::Cop::Style::Dir < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector extend ::RuboCop::Cop::TargetRubyVersion - # source://rubocop//lib/rubocop/cop/style/dir.rb#29 + # source://rubocop/lib/rubocop/cop/style/dir.rb#29 def dir_replacement?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/style/dir.rb#34 + # source://rubocop/lib/rubocop/cop/style/dir.rb#34 def on_send(node); end private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/dir.rb#44 + # source://rubocop/lib/rubocop/cop/style/dir.rb#44 def file_keyword?(node); end end -# source://rubocop//lib/rubocop/cop/style/dir.rb#25 +# source://rubocop/lib/rubocop/cop/style/dir.rb#25 RuboCop::Cop::Style::Dir::MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/dir.rb#26 +# source://rubocop/lib/rubocop/cop/style/dir.rb#26 RuboCop::Cop::Style::Dir::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Prefer to use `Dir.empty?('path/to/dir')` when checking if a directory is empty. @@ -35165,27 +35600,27 @@ RuboCop::Cop::Style::Dir::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # # good # Dir.empty?('path/to/dir') # -# source://rubocop//lib/rubocop/cop/style/dir_empty.rb#18 +# source://rubocop/lib/rubocop/cop/style/dir_empty.rb#18 class RuboCop::Cop::Style::DirEmpty < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector extend ::RuboCop::Cop::TargetRubyVersion - # source://rubocop//lib/rubocop/cop/style/dir_empty.rb#28 + # source://rubocop/lib/rubocop/cop/style/dir_empty.rb#28 def offensive?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/style/dir_empty.rb#37 + # source://rubocop/lib/rubocop/cop/style/dir_empty.rb#37 def on_send(node); end private - # source://rubocop//lib/rubocop/cop/style/dir_empty.rb#48 + # source://rubocop/lib/rubocop/cop/style/dir_empty.rb#48 def bang(node); end end -# source://rubocop//lib/rubocop/cop/style/dir_empty.rb#22 +# source://rubocop/lib/rubocop/cop/style/dir_empty.rb#22 RuboCop::Cop::Style::DirEmpty::MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/dir_empty.rb#23 +# source://rubocop/lib/rubocop/cop/style/dir_empty.rb#23 RuboCop::Cop::Style::DirEmpty::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Detects comments to enable/disable RuboCop. @@ -35211,34 +35646,34 @@ RuboCop::Cop::Style::DirEmpty::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # end # # rubocop:enable Metrics/AbcSize # -# source://rubocop//lib/rubocop/cop/style/disable_cops_within_source_code_directive.rb#33 +# source://rubocop/lib/rubocop/cop/style/disable_cops_within_source_code_directive.rb#33 class RuboCop::Cop::Style::DisableCopsWithinSourceCodeDirective < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/disable_cops_within_source_code_directive.rb#40 + # source://rubocop/lib/rubocop/cop/style/disable_cops_within_source_code_directive.rb#40 def on_new_investigation; end private - # source://rubocop//lib/rubocop/cop/style/disable_cops_within_source_code_directive.rb#77 + # source://rubocop/lib/rubocop/cop/style/disable_cops_within_source_code_directive.rb#77 def allowed_cops; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/disable_cops_within_source_code_directive.rb#81 + # source://rubocop/lib/rubocop/cop/style/disable_cops_within_source_code_directive.rb#81 def any_cops_allowed?; end - # source://rubocop//lib/rubocop/cop/style/disable_cops_within_source_code_directive.rb#72 + # source://rubocop/lib/rubocop/cop/style/disable_cops_within_source_code_directive.rb#72 def directive_cops(comment); end - # source://rubocop//lib/rubocop/cop/style/disable_cops_within_source_code_directive.rb#53 + # source://rubocop/lib/rubocop/cop/style/disable_cops_within_source_code_directive.rb#53 def register_offense(comment, directive_cops, disallowed_cops); end end -# source://rubocop//lib/rubocop/cop/style/disable_cops_within_source_code_directive.rb#37 +# source://rubocop/lib/rubocop/cop/style/disable_cops_within_source_code_directive.rb#37 RuboCop::Cop::Style::DisableCopsWithinSourceCodeDirective::MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/disable_cops_within_source_code_directive.rb#38 +# source://rubocop/lib/rubocop/cop/style/disable_cops_within_source_code_directive.rb#38 RuboCop::Cop::Style::DisableCopsWithinSourceCodeDirective::MSG_FOR_COPS = T.let(T.unsafe(nil), String) # When using `class_eval` (or other `eval`) with string interpolation, @@ -35313,54 +35748,54 @@ RuboCop::Cop::Style::DisableCopsWithinSourceCodeDirective::MSG_FOR_COPS = T.let( # # good - with inline comment or replace it with block comment using heredoc # class_eval("def #{unsafe_method}!(*params); end # def capitalize!(*params); end") # -# source://rubocop//lib/rubocop/cop/style/document_dynamic_eval_definition.rb#77 +# source://rubocop/lib/rubocop/cop/style/document_dynamic_eval_definition.rb#77 class RuboCop::Cop::Style::DocumentDynamicEvalDefinition < ::RuboCop::Cop::Base - # source://rubocop//lib/rubocop/cop/style/document_dynamic_eval_definition.rb#84 + # source://rubocop/lib/rubocop/cop/style/document_dynamic_eval_definition.rb#84 def on_send(node); end private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/document_dynamic_eval_definition.rb#107 + # source://rubocop/lib/rubocop/cop/style/document_dynamic_eval_definition.rb#107 def comment_block_docs?(arg_node); end - # source://rubocop//lib/rubocop/cop/style/document_dynamic_eval_definition.rb#147 + # source://rubocop/lib/rubocop/cop/style/document_dynamic_eval_definition.rb#147 def comment_regexp(arg_node); end - # source://rubocop//lib/rubocop/cop/style/document_dynamic_eval_definition.rb#126 + # source://rubocop/lib/rubocop/cop/style/document_dynamic_eval_definition.rb#126 def heredoc_comment_blocks(heredoc_body); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/document_dynamic_eval_definition.rb#100 + # source://rubocop/lib/rubocop/cop/style/document_dynamic_eval_definition.rb#100 def inline_comment_docs?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/document_dynamic_eval_definition.rb#96 + # source://rubocop/lib/rubocop/cop/style/document_dynamic_eval_definition.rb#96 def interpolated?(arg_node); end - # source://rubocop//lib/rubocop/cop/style/document_dynamic_eval_definition.rb#136 + # source://rubocop/lib/rubocop/cop/style/document_dynamic_eval_definition.rb#136 def merge_adjacent_comments(line, index, hash); end - # source://rubocop//lib/rubocop/cop/style/document_dynamic_eval_definition.rb#117 + # source://rubocop/lib/rubocop/cop/style/document_dynamic_eval_definition.rb#117 def preceding_comment_blocks(node); end - # source://rubocop//lib/rubocop/cop/style/document_dynamic_eval_definition.rb#156 + # source://rubocop/lib/rubocop/cop/style/document_dynamic_eval_definition.rb#156 def source_to_regexp(source); end end -# source://rubocop//lib/rubocop/cop/style/document_dynamic_eval_definition.rb#78 +# source://rubocop/lib/rubocop/cop/style/document_dynamic_eval_definition.rb#78 RuboCop::Cop::Style::DocumentDynamicEvalDefinition::BLOCK_COMMENT_REGEXP = T.let(T.unsafe(nil), Regexp) -# source://rubocop//lib/rubocop/cop/style/document_dynamic_eval_definition.rb#79 +# source://rubocop/lib/rubocop/cop/style/document_dynamic_eval_definition.rb#79 RuboCop::Cop::Style::DocumentDynamicEvalDefinition::COMMENT_REGEXP = T.let(T.unsafe(nil), Regexp) -# source://rubocop//lib/rubocop/cop/style/document_dynamic_eval_definition.rb#80 +# source://rubocop/lib/rubocop/cop/style/document_dynamic_eval_definition.rb#80 RuboCop::Cop::Style::DocumentDynamicEvalDefinition::MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/document_dynamic_eval_definition.rb#82 +# source://rubocop/lib/rubocop/cop/style/document_dynamic_eval_definition.rb#82 RuboCop::Cop::Style::DocumentDynamicEvalDefinition::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Checks for missing top-level documentation of classes and @@ -35427,71 +35862,71 @@ RuboCop::Cop::Style::DocumentDynamicEvalDefinition::RESTRICT_ON_SEND = T.let(T.u # end # end # -# source://rubocop//lib/rubocop/cop/style/documentation.rb#72 +# source://rubocop/lib/rubocop/cop/style/documentation.rb#72 class RuboCop::Cop::Style::Documentation < ::RuboCop::Cop::Base include ::RuboCop::Cop::DocumentationComment include ::RuboCop::Cop::RangeHelp - # source://rubocop//lib/rubocop/cop/style/documentation.rb#79 + # source://rubocop/lib/rubocop/cop/style/documentation.rb#79 def constant_definition?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/style/documentation.rb#85 + # source://rubocop/lib/rubocop/cop/style/documentation.rb#85 def constant_visibility_declaration?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/style/documentation.rb#90 + # source://rubocop/lib/rubocop/cop/style/documentation.rb#90 def include_statement?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/style/documentation.rb#94 + # source://rubocop/lib/rubocop/cop/style/documentation.rb#94 def on_class(node); end - # source://rubocop//lib/rubocop/cop/style/documentation.rb#100 + # source://rubocop/lib/rubocop/cop/style/documentation.rb#100 def on_module(node); end - # source://rubocop//lib/rubocop/cop/style/documentation.rb#82 + # source://rubocop/lib/rubocop/cop/style/documentation.rb#82 def outer_module(param0); end private - # source://rubocop//lib/rubocop/cop/style/documentation.rb#174 + # source://rubocop/lib/rubocop/cop/style/documentation.rb#174 def allowed_constants; end - # source://rubocop//lib/rubocop/cop/style/documentation.rb#106 + # source://rubocop/lib/rubocop/cop/style/documentation.rb#106 def check(node, body); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/documentation.rb#147 + # source://rubocop/lib/rubocop/cop/style/documentation.rb#147 def compact_namespace?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/documentation.rb#143 + # source://rubocop/lib/rubocop/cop/style/documentation.rb#143 def constant_allowed?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/documentation.rb#139 + # source://rubocop/lib/rubocop/cop/style/documentation.rb#139 def constant_declaration?(node); end - # source://rubocop//lib/rubocop/cop/style/documentation.rb#178 + # source://rubocop/lib/rubocop/cop/style/documentation.rb#178 def identifier(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/documentation.rb#123 + # source://rubocop/lib/rubocop/cop/style/documentation.rb#123 def include_statement_only?(body); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/documentation.rb#129 + # source://rubocop/lib/rubocop/cop/style/documentation.rb#129 def namespace?(node); end - # source://rubocop//lib/rubocop/cop/style/documentation.rb#170 + # source://rubocop/lib/rubocop/cop/style/documentation.rb#170 def nodoc(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/documentation.rb#166 + # source://rubocop/lib/rubocop/cop/style/documentation.rb#166 def nodoc?(comment, require_all: T.unsafe(nil)); end # Note: How end-of-line comments are associated with code changed in @@ -35499,19 +35934,19 @@ class RuboCop::Cop::Style::Documentation < ::RuboCop::Cop::Base # # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/documentation.rb#156 + # source://rubocop/lib/rubocop/cop/style/documentation.rb#156 def nodoc_comment?(node, require_all: T.unsafe(nil)); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/documentation.rb#118 + # source://rubocop/lib/rubocop/cop/style/documentation.rb#118 def nodoc_self_or_outer_module?(node); end - # source://rubocop//lib/rubocop/cop/style/documentation.rb#186 + # source://rubocop/lib/rubocop/cop/style/documentation.rb#186 def qualify_const(node); end end -# source://rubocop//lib/rubocop/cop/style/documentation.rb#76 +# source://rubocop/lib/rubocop/cop/style/documentation.rb#76 RuboCop::Cop::Style::Documentation::MSG = T.let(T.unsafe(nil), String) # Checks for missing documentation comment for public methods. @@ -35614,41 +36049,41 @@ RuboCop::Cop::Style::Documentation::MSG = T.let(T.unsafe(nil), String) # end # end # -# source://rubocop//lib/rubocop/cop/style/documentation_method.rb#109 +# source://rubocop/lib/rubocop/cop/style/documentation_method.rb#109 class RuboCop::Cop::Style::DocumentationMethod < ::RuboCop::Cop::Base include ::RuboCop::Cop::DocumentationComment include ::RuboCop::Cop::VisibilityHelp include ::RuboCop::Cop::DefNode - # source://rubocop//lib/rubocop/cop/style/documentation_method.rb#116 + # source://rubocop/lib/rubocop/cop/style/documentation_method.rb#116 def modifier_node?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/style/documentation_method.rb#120 + # source://rubocop/lib/rubocop/cop/style/documentation_method.rb#120 def on_def(node); end - # source://rubocop//lib/rubocop/cop/style/documentation_method.rb#120 + # source://rubocop/lib/rubocop/cop/style/documentation_method.rb#120 def on_defs(node); end private - # source://rubocop//lib/rubocop/cop/style/documentation_method.rb#146 + # source://rubocop/lib/rubocop/cop/style/documentation_method.rb#146 def allowed_methods; end - # source://rubocop//lib/rubocop/cop/style/documentation_method.rb#130 + # source://rubocop/lib/rubocop/cop/style/documentation_method.rb#130 def check(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/documentation_method.rb#142 + # source://rubocop/lib/rubocop/cop/style/documentation_method.rb#142 def method_allowed?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/documentation_method.rb#138 + # source://rubocop/lib/rubocop/cop/style/documentation_method.rb#138 def require_for_non_public_methods?; end end -# source://rubocop//lib/rubocop/cop/style/documentation_method.rb#113 +# source://rubocop/lib/rubocop/cop/style/documentation_method.rb#113 RuboCop::Cop::Style::DocumentationMethod::MSG = T.let(T.unsafe(nil), String) # Detects double disable comments on one line. This is mostly to catch @@ -35669,15 +36104,15 @@ RuboCop::Cop::Style::DocumentationMethod::MSG = T.let(T.unsafe(nil), String) # def f # rubocop:disable Style/For, Metrics/AbcSize # end # -# source://rubocop//lib/rubocop/cop/style/double_cop_disable_directive.rb#27 +# source://rubocop/lib/rubocop/cop/style/double_cop_disable_directive.rb#27 class RuboCop::Cop::Style::DoubleCopDisableDirective < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/double_cop_disable_directive.rb#34 + # source://rubocop/lib/rubocop/cop/style/double_cop_disable_directive.rb#34 def on_new_investigation; end end -# source://rubocop//lib/rubocop/cop/style/double_cop_disable_directive.rb#32 +# source://rubocop/lib/rubocop/cop/style/double_cop_disable_directive.rb#32 RuboCop::Cop::Style::DoubleCopDisableDirective::MSG = T.let(T.unsafe(nil), String) # Checks for uses of double negation (`!!`) to convert something to a boolean value. @@ -35724,56 +36159,56 @@ RuboCop::Cop::Style::DoubleCopDisableDirective::MSG = T.let(T.unsafe(nil), Strin # !!return_value # end # -# source://rubocop//lib/rubocop/cop/style/double_negation.rb#61 +# source://rubocop/lib/rubocop/cop/style/double_negation.rb#61 class RuboCop::Cop::Style::DoubleNegation < ::RuboCop::Cop::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/double_negation.rb#69 + # source://rubocop/lib/rubocop/cop/style/double_negation.rb#69 def double_negative?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/style/double_negation.rb#71 + # source://rubocop/lib/rubocop/cop/style/double_negation.rb#71 def on_send(node); end private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/double_negation.rb#84 + # source://rubocop/lib/rubocop/cop/style/double_negation.rb#84 def allowed_in_returns?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/double_negation.rb#111 + # source://rubocop/lib/rubocop/cop/style/double_negation.rb#111 def define_method?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/double_negation.rb#138 + # source://rubocop/lib/rubocop/cop/style/double_negation.rb#138 def double_negative_condition_return_value?(node, last_child, conditional_node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/double_negation.rb#88 + # source://rubocop/lib/rubocop/cop/style/double_negation.rb#88 def end_of_method_definition?(node); end - # source://rubocop//lib/rubocop/cop/style/double_negation.rb#120 + # source://rubocop/lib/rubocop/cop/style/double_negation.rb#120 def find_conditional_node_from_ascendant(node); end - # source://rubocop//lib/rubocop/cop/style/double_negation.rb#103 + # source://rubocop/lib/rubocop/cop/style/double_negation.rb#103 def find_def_node_from_ascendant(node); end - # source://rubocop//lib/rubocop/cop/style/double_negation.rb#127 + # source://rubocop/lib/rubocop/cop/style/double_negation.rb#127 def find_last_child(node); end - # source://rubocop//lib/rubocop/cop/style/double_negation.rb#147 + # source://rubocop/lib/rubocop/cop/style/double_negation.rb#147 def find_parent_not_enumerable(node); end end -# source://rubocop//lib/rubocop/cop/style/double_negation.rb#65 +# source://rubocop/lib/rubocop/cop/style/double_negation.rb#65 RuboCop::Cop::Style::DoubleNegation::MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/double_negation.rb#66 +# source://rubocop/lib/rubocop/cop/style/double_negation.rb#66 RuboCop::Cop::Style::DoubleNegation::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Checks for loops which iterate a constant number of times, @@ -35795,31 +36230,31 @@ RuboCop::Cop::Style::DoubleNegation::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Arr # # good # 10.times {} # -# source://rubocop//lib/rubocop/cop/style/each_for_simple_loop.rb#24 +# source://rubocop/lib/rubocop/cop/style/each_for_simple_loop.rb#24 class RuboCop::Cop::Style::EachForSimpleLoop < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/each_for_simple_loop.rb#52 + # source://rubocop/lib/rubocop/cop/style/each_for_simple_loop.rb#52 def each_range(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/style/each_for_simple_loop.rb#64 + # source://rubocop/lib/rubocop/cop/style/each_for_simple_loop.rb#64 def each_range_with_zero_origin?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/style/each_for_simple_loop.rb#76 + # source://rubocop/lib/rubocop/cop/style/each_for_simple_loop.rb#76 def each_range_without_block_argument?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/style/each_for_simple_loop.rb#29 + # source://rubocop/lib/rubocop/cop/style/each_for_simple_loop.rb#29 def on_block(node); end private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/each_for_simple_loop.rb#45 + # source://rubocop/lib/rubocop/cop/style/each_for_simple_loop.rb#45 def offending?(node); end end -# source://rubocop//lib/rubocop/cop/style/each_for_simple_loop.rb#27 +# source://rubocop/lib/rubocop/cop/style/each_for_simple_loop.rb#27 RuboCop::Cop::Style::EachForSimpleLoop::MSG = T.let(T.unsafe(nil), String) # Looks for inject / reduce calls where the passed in object is @@ -35836,21 +36271,21 @@ RuboCop::Cop::Style::EachForSimpleLoop::MSG = T.let(T.unsafe(nil), String) # # good # [1, 2].each_with_object({}) { |e, a| a[e] = e } # -# source://rubocop//lib/rubocop/cop/style/each_with_object.rb#19 +# source://rubocop/lib/rubocop/cop/style/each_with_object.rb#19 class RuboCop::Cop::Style::EachWithObject < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/each_with_object.rb#60 + # source://rubocop/lib/rubocop/cop/style/each_with_object.rb#60 def each_with_object_block_candidate?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/style/each_with_object.rb#65 + # source://rubocop/lib/rubocop/cop/style/each_with_object.rb#65 def each_with_object_numblock_candidate?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/style/each_with_object.rb#26 + # source://rubocop/lib/rubocop/cop/style/each_with_object.rb#26 def on_block(node); end - # source://rubocop//lib/rubocop/cop/style/each_with_object.rb#43 + # source://rubocop/lib/rubocop/cop/style/each_with_object.rb#43 def on_numblock(node); end private @@ -35860,41 +36295,41 @@ class RuboCop::Cop::Style::EachWithObject < ::RuboCop::Cop::Base # # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/each_with_object.rb#102 + # source://rubocop/lib/rubocop/cop/style/each_with_object.rb#102 def accumulator_param_assigned_to?(body, args); end - # source://rubocop//lib/rubocop/cop/style/each_with_object.rb#69 + # source://rubocop/lib/rubocop/cop/style/each_with_object.rb#69 def autocorrect_block(corrector, node, return_value); end - # source://rubocop//lib/rubocop/cop/style/each_with_object.rb#84 + # source://rubocop/lib/rubocop/cop/style/each_with_object.rb#84 def autocorrect_numblock(corrector, node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/each_with_object.rb#121 + # source://rubocop/lib/rubocop/cop/style/each_with_object.rb#121 def first_argument_returned?(args, return_value); end - # source://rubocop//lib/rubocop/cop/style/each_with_object.rb#114 + # source://rubocop/lib/rubocop/cop/style/each_with_object.rb#114 def return_value(body); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/each_with_object.rb#129 + # source://rubocop/lib/rubocop/cop/style/each_with_object.rb#129 def return_value_occupies_whole_line?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/each_with_object.rb#96 + # source://rubocop/lib/rubocop/cop/style/each_with_object.rb#96 def simple_method_arg?(method_arg); end - # source://rubocop//lib/rubocop/cop/style/each_with_object.rb#133 + # source://rubocop/lib/rubocop/cop/style/each_with_object.rb#133 def whole_line_expression(node); end end -# source://rubocop//lib/rubocop/cop/style/each_with_object.rb#24 +# source://rubocop/lib/rubocop/cop/style/each_with_object.rb#24 RuboCop::Cop::Style::EachWithObject::METHODS = T.let(T.unsafe(nil), Array) -# source://rubocop//lib/rubocop/cop/style/each_with_object.rb#23 +# source://rubocop/lib/rubocop/cop/style/each_with_object.rb#23 RuboCop::Cop::Style::EachWithObject::MSG = T.let(T.unsafe(nil), String) # Checks for pipes for empty block parameters. Pipes for empty @@ -35916,22 +36351,22 @@ RuboCop::Cop::Style::EachWithObject::MSG = T.let(T.unsafe(nil), String) # # good # a { do_something } # -# source://rubocop//lib/rubocop/cop/style/empty_block_parameter.rb#24 +# source://rubocop/lib/rubocop/cop/style/empty_block_parameter.rb#24 class RuboCop::Cop::Style::EmptyBlockParameter < ::RuboCop::Cop::Base include ::RuboCop::Cop::EmptyParameter include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/empty_block_parameter.rb#31 + # source://rubocop/lib/rubocop/cop/style/empty_block_parameter.rb#31 def on_block(node); end private - # source://rubocop//lib/rubocop/cop/style/empty_block_parameter.rb#38 + # source://rubocop/lib/rubocop/cop/style/empty_block_parameter.rb#38 def autocorrect(corrector, node); end end -# source://rubocop//lib/rubocop/cop/style/empty_block_parameter.rb#29 +# source://rubocop/lib/rubocop/cop/style/empty_block_parameter.rb#29 RuboCop::Cop::Style::EmptyBlockParameter::MSG = T.let(T.unsafe(nil), String) # Checks for case statements with an empty condition. @@ -35967,36 +36402,36 @@ RuboCop::Cop::Style::EmptyBlockParameter::MSG = T.let(T.unsafe(nil), String) # puts 'more' # end # -# source://rubocop//lib/rubocop/cop/style/empty_case_condition.rb#38 +# source://rubocop/lib/rubocop/cop/style/empty_case_condition.rb#38 class RuboCop::Cop::Style::EmptyCaseCondition < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/empty_case_condition.rb#46 + # source://rubocop/lib/rubocop/cop/style/empty_case_condition.rb#46 def on_case(case_node); end private - # source://rubocop//lib/rubocop/cop/style/empty_case_condition.rb#63 + # source://rubocop/lib/rubocop/cop/style/empty_case_condition.rb#63 def autocorrect(corrector, case_node); end - # source://rubocop//lib/rubocop/cop/style/empty_case_condition.rb#70 + # source://rubocop/lib/rubocop/cop/style/empty_case_condition.rb#70 def correct_case_when(corrector, case_node, when_nodes); end - # source://rubocop//lib/rubocop/cop/style/empty_case_condition.rb#82 + # source://rubocop/lib/rubocop/cop/style/empty_case_condition.rb#82 def correct_when_conditions(corrector, when_nodes); end - # source://rubocop//lib/rubocop/cop/style/empty_case_condition.rb#97 + # source://rubocop/lib/rubocop/cop/style/empty_case_condition.rb#97 def keep_first_when_comment(case_range, corrector); end - # source://rubocop//lib/rubocop/cop/style/empty_case_condition.rb#107 + # source://rubocop/lib/rubocop/cop/style/empty_case_condition.rb#107 def replace_then_with_line_break(corrector, conditions, when_node); end end -# source://rubocop//lib/rubocop/cop/style/empty_case_condition.rb#42 +# source://rubocop/lib/rubocop/cop/style/empty_case_condition.rb#42 RuboCop::Cop::Style::EmptyCaseCondition::MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/empty_case_condition.rb#43 +# source://rubocop/lib/rubocop/cop/style/empty_case_condition.rb#43 RuboCop::Cop::Style::EmptyCaseCondition::NOT_SUPPORTED_PARENT_TYPES = T.let(T.unsafe(nil), Array) # Checks for empty else-clauses, possibly including comments and/or an @@ -36116,61 +36551,61 @@ RuboCop::Cop::Style::EmptyCaseCondition::NOT_SUPPORTED_PARENT_TYPES = T.let(T.un # # something comment # end # -# source://rubocop//lib/rubocop/cop/style/empty_else.rb#127 +# source://rubocop/lib/rubocop/cop/style/empty_else.rb#127 class RuboCop::Cop::Style::EmptyElse < ::RuboCop::Cop::Base include ::RuboCop::Cop::OnNormalIfUnless include ::RuboCop::Cop::ConfigurableEnforcedStyle include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/empty_else.rb#139 + # source://rubocop/lib/rubocop/cop/style/empty_else.rb#139 def on_case(node); end - # source://rubocop//lib/rubocop/cop/style/empty_else.rb#135 + # source://rubocop/lib/rubocop/cop/style/empty_else.rb#135 def on_normal_if_unless(node); end private - # source://rubocop//lib/rubocop/cop/style/empty_else.rb#172 + # source://rubocop/lib/rubocop/cop/style/empty_else.rb#172 def autocorrect(corrector, node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/empty_else.rb#194 + # source://rubocop/lib/rubocop/cop/style/empty_else.rb#194 def autocorrect_forbidden?(type); end - # source://rubocop//lib/rubocop/cop/style/empty_else.rb#187 + # source://rubocop/lib/rubocop/cop/style/empty_else.rb#187 def base_node(node); end - # source://rubocop//lib/rubocop/cop/style/empty_else.rb#145 + # source://rubocop/lib/rubocop/cop/style/empty_else.rb#145 def check(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/empty_else.rb#180 + # source://rubocop/lib/rubocop/cop/style/empty_else.rb#180 def comment_in_else?(node); end - # source://rubocop//lib/rubocop/cop/style/empty_else.rb#160 + # source://rubocop/lib/rubocop/cop/style/empty_else.rb#160 def empty_check(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/empty_else.rb#156 + # source://rubocop/lib/rubocop/cop/style/empty_else.rb#156 def empty_style?; end - # source://rubocop//lib/rubocop/cop/style/empty_else.rb#198 + # source://rubocop/lib/rubocop/cop/style/empty_else.rb#198 def missing_else_style; end - # source://rubocop//lib/rubocop/cop/style/empty_else.rb#166 + # source://rubocop/lib/rubocop/cop/style/empty_else.rb#166 def nil_check(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/empty_else.rb#152 + # source://rubocop/lib/rubocop/cop/style/empty_else.rb#152 def nil_style?; end end -# source://rubocop//lib/rubocop/cop/style/empty_else.rb#133 +# source://rubocop/lib/rubocop/cop/style/empty_else.rb#133 RuboCop::Cop::Style::EmptyElse::MSG = T.let(T.unsafe(nil), String) # Checks for using empty heredoc to reduce redundancy. @@ -36203,18 +36638,18 @@ RuboCop::Cop::Style::EmptyElse::MSG = T.let(T.unsafe(nil), String) # # good # do_something('') # -# source://rubocop//lib/rubocop/cop/style/empty_heredoc.rb#36 +# source://rubocop/lib/rubocop/cop/style/empty_heredoc.rb#36 class RuboCop::Cop::Style::EmptyHeredoc < ::RuboCop::Cop::Base include ::RuboCop::Cop::Heredoc include ::RuboCop::Cop::RangeHelp include ::RuboCop::Cop::StringLiteralsHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/empty_heredoc.rb#44 + # source://rubocop/lib/rubocop/cop/style/empty_heredoc.rb#44 def on_heredoc(node); end end -# source://rubocop//lib/rubocop/cop/style/empty_heredoc.rb#42 +# source://rubocop/lib/rubocop/cop/style/empty_heredoc.rb#42 RuboCop::Cop::Style::EmptyHeredoc::MSG = T.let(T.unsafe(nil), String) # Checks for parentheses for empty lambda parameters. Parentheses @@ -36231,22 +36666,22 @@ RuboCop::Cop::Style::EmptyHeredoc::MSG = T.let(T.unsafe(nil), String) # # good # -> (arg) { do_something(arg) } # -# source://rubocop//lib/rubocop/cop/style/empty_lambda_parameter.rb#19 +# source://rubocop/lib/rubocop/cop/style/empty_lambda_parameter.rb#19 class RuboCop::Cop::Style::EmptyLambdaParameter < ::RuboCop::Cop::Base include ::RuboCop::Cop::EmptyParameter include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/empty_lambda_parameter.rb#26 + # source://rubocop/lib/rubocop/cop/style/empty_lambda_parameter.rb#26 def on_block(node); end private - # source://rubocop//lib/rubocop/cop/style/empty_lambda_parameter.rb#35 + # source://rubocop/lib/rubocop/cop/style/empty_lambda_parameter.rb#35 def autocorrect(corrector, node); end end -# source://rubocop//lib/rubocop/cop/style/empty_lambda_parameter.rb#24 +# source://rubocop/lib/rubocop/cop/style/empty_lambda_parameter.rb#24 RuboCop::Cop::Style::EmptyLambdaParameter::MSG = T.let(T.unsafe(nil), String) # Checks for the use of a method, the result of which @@ -36265,79 +36700,79 @@ RuboCop::Cop::Style::EmptyLambdaParameter::MSG = T.let(T.unsafe(nil), String) # h = {} # s = '' # -# source://rubocop//lib/rubocop/cop/style/empty_literal.rb#21 +# source://rubocop/lib/rubocop/cop/style/empty_literal.rb#21 class RuboCop::Cop::Style::EmptyLiteral < ::RuboCop::Cop::Base include ::RuboCop::Cop::FrozenStringLiteral include ::RuboCop::Cop::RangeHelp include ::RuboCop::Cop::StringLiteralsHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/empty_literal.rb#34 + # source://rubocop/lib/rubocop/cop/style/empty_literal.rb#34 def array_node(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/style/empty_literal.rb#43 + # source://rubocop/lib/rubocop/cop/style/empty_literal.rb#43 def array_with_block(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/style/empty_literal.rb#54 + # source://rubocop/lib/rubocop/cop/style/empty_literal.rb#54 def array_with_index(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/style/empty_literal.rb#37 + # source://rubocop/lib/rubocop/cop/style/empty_literal.rb#37 def hash_node(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/style/empty_literal.rb#46 + # source://rubocop/lib/rubocop/cop/style/empty_literal.rb#46 def hash_with_block(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/style/empty_literal.rb#62 + # source://rubocop/lib/rubocop/cop/style/empty_literal.rb#62 def hash_with_index(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/style/empty_literal.rb#69 + # source://rubocop/lib/rubocop/cop/style/empty_literal.rb#69 def on_send(node); end - # source://rubocop//lib/rubocop/cop/style/empty_literal.rb#40 + # source://rubocop/lib/rubocop/cop/style/empty_literal.rb#40 def str_node(param0 = T.unsafe(nil)); end private - # source://rubocop//lib/rubocop/cop/style/empty_literal.rb#118 + # source://rubocop/lib/rubocop/cop/style/empty_literal.rb#118 def correction(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/empty_literal.rb#89 + # source://rubocop/lib/rubocop/cop/style/empty_literal.rb#89 def first_argument_unparenthesized?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/empty_literal.rb#136 + # source://rubocop/lib/rubocop/cop/style/empty_literal.rb#136 def frozen_strings?; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/empty_literal.rb#109 + # source://rubocop/lib/rubocop/cop/style/empty_literal.rb#109 def offense_array_node?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/empty_literal.rb#113 + # source://rubocop/lib/rubocop/cop/style/empty_literal.rb#113 def offense_hash_node?(node); end - # source://rubocop//lib/rubocop/cop/style/empty_literal.rb#79 + # source://rubocop/lib/rubocop/cop/style/empty_literal.rb#79 def offense_message(node); end - # source://rubocop//lib/rubocop/cop/style/empty_literal.rb#96 + # source://rubocop/lib/rubocop/cop/style/empty_literal.rb#96 def replacement_range(node); end end -# source://rubocop//lib/rubocop/cop/style/empty_literal.rb#27 +# source://rubocop/lib/rubocop/cop/style/empty_literal.rb#27 RuboCop::Cop::Style::EmptyLiteral::ARR_MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/empty_literal.rb#28 +# source://rubocop/lib/rubocop/cop/style/empty_literal.rb#28 RuboCop::Cop::Style::EmptyLiteral::HASH_MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/empty_literal.rb#31 +# source://rubocop/lib/rubocop/cop/style/empty_literal.rb#31 RuboCop::Cop::Style::EmptyLiteral::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) -# source://rubocop//lib/rubocop/cop/style/empty_literal.rb#29 +# source://rubocop/lib/rubocop/cop/style/empty_literal.rb#29 RuboCop::Cop::Style::EmptyLiteral::STR_MSG = T.let(T.unsafe(nil), String) # Checks for the formatting of empty method definitions. @@ -36381,61 +36816,61 @@ RuboCop::Cop::Style::EmptyLiteral::STR_MSG = T.let(T.unsafe(nil), String) # def self.foo(bar) # end # -# source://rubocop//lib/rubocop/cop/style/empty_method.rb#47 +# source://rubocop/lib/rubocop/cop/style/empty_method.rb#47 class RuboCop::Cop::Style::EmptyMethod < ::RuboCop::Cop::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/empty_method.rb#54 + # source://rubocop/lib/rubocop/cop/style/empty_method.rb#54 def on_def(node); end - # source://rubocop//lib/rubocop/cop/style/empty_method.rb#54 + # source://rubocop/lib/rubocop/cop/style/empty_method.rb#54 def on_defs(node); end private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/empty_method.rb#95 + # source://rubocop/lib/rubocop/cop/style/empty_method.rb#95 def compact?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/empty_method.rb#103 + # source://rubocop/lib/rubocop/cop/style/empty_method.rb#103 def compact_style?; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/empty_method.rb#73 + # source://rubocop/lib/rubocop/cop/style/empty_method.rb#73 def correct_style?(node); end - # source://rubocop//lib/rubocop/cop/style/empty_method.rb#77 + # source://rubocop/lib/rubocop/cop/style/empty_method.rb#77 def corrected(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/empty_method.rb#99 + # source://rubocop/lib/rubocop/cop/style/empty_method.rb#99 def expanded?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/empty_method.rb#107 + # source://rubocop/lib/rubocop/cop/style/empty_method.rb#107 def expanded_style?; end - # source://rubocop//lib/rubocop/cop/style/empty_method.rb#89 + # source://rubocop/lib/rubocop/cop/style/empty_method.rb#89 def joint(node); end - # source://rubocop//lib/rubocop/cop/style/empty_method.rb#111 + # source://rubocop/lib/rubocop/cop/style/empty_method.rb#111 def max_line_length; end - # source://rubocop//lib/rubocop/cop/style/empty_method.rb#69 + # source://rubocop/lib/rubocop/cop/style/empty_method.rb#69 def message(_range); end end -# source://rubocop//lib/rubocop/cop/style/empty_method.rb#51 +# source://rubocop/lib/rubocop/cop/style/empty_method.rb#51 RuboCop::Cop::Style::EmptyMethod::MSG_COMPACT = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/empty_method.rb#52 +# source://rubocop/lib/rubocop/cop/style/empty_method.rb#52 RuboCop::Cop::Style::EmptyMethod::MSG_EXPANDED = T.let(T.unsafe(nil), String) # Checks ensures source files have no utf-8 encoding comments. @@ -36446,35 +36881,35 @@ RuboCop::Cop::Style::EmptyMethod::MSG_EXPANDED = T.let(T.unsafe(nil), String) # # coding: UTF-8 # # -*- coding: UTF-8 -*- # -# source://rubocop//lib/rubocop/cop/style/encoding.rb#12 +# source://rubocop/lib/rubocop/cop/style/encoding.rb#12 class RuboCop::Cop::Style::Encoding < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/encoding.rb#20 + # source://rubocop/lib/rubocop/cop/style/encoding.rb#20 def on_new_investigation; end private - # source://rubocop//lib/rubocop/cop/style/encoding.rb#32 + # source://rubocop/lib/rubocop/cop/style/encoding.rb#32 def comments; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/encoding.rb#43 + # source://rubocop/lib/rubocop/cop/style/encoding.rb#43 def offense?(comment); end - # source://rubocop//lib/rubocop/cop/style/encoding.rb#47 + # source://rubocop/lib/rubocop/cop/style/encoding.rb#47 def register_offense(line_number, comment); end end -# source://rubocop//lib/rubocop/cop/style/encoding.rb#17 +# source://rubocop/lib/rubocop/cop/style/encoding.rb#17 RuboCop::Cop::Style::Encoding::ENCODING_PATTERN = T.let(T.unsafe(nil), Regexp) -# source://rubocop//lib/rubocop/cop/style/encoding.rb#16 +# source://rubocop/lib/rubocop/cop/style/encoding.rb#16 RuboCop::Cop::Style::Encoding::MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/encoding.rb#18 +# source://rubocop/lib/rubocop/cop/style/encoding.rb#18 RuboCop::Cop::Style::Encoding::SHEBANG = T.let(T.unsafe(nil), String) # Checks for END blocks. @@ -36486,15 +36921,15 @@ RuboCop::Cop::Style::Encoding::SHEBANG = T.let(T.unsafe(nil), String) # # good # at_exit { puts 'Goodbye!' } # -# source://rubocop//lib/rubocop/cop/style/end_block.rb#15 +# source://rubocop/lib/rubocop/cop/style/end_block.rb#15 class RuboCop::Cop::Style::EndBlock < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/end_block.rb#20 + # source://rubocop/lib/rubocop/cop/style/end_block.rb#20 def on_postexe(node); end end -# source://rubocop//lib/rubocop/cop/style/end_block.rb#18 +# source://rubocop/lib/rubocop/cop/style/end_block.rb#18 RuboCop::Cop::Style::EndBlock::MSG = T.let(T.unsafe(nil), String) # Checks for endless methods. @@ -36538,32 +36973,32 @@ RuboCop::Cop::Style::EndBlock::MSG = T.let(T.unsafe(nil), String) # .bar # .baz # -# source://rubocop//lib/rubocop/cop/style/endless_method.rb#49 +# 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#61 + # 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#71 + # 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#80 + # 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#57 +# 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#58 +# 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#59 +# 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 @@ -36581,21 +37016,21 @@ RuboCop::Cop::Style::EndlessMethod::MSG_MULTI_LINE = T.let(T.unsafe(nil), String # # good # ENV.fetch('HOME', default) # -# source://rubocop//lib/rubocop/cop/style/env_home.rb#31 +# source://rubocop/lib/rubocop/cop/style/env_home.rb#31 class RuboCop::Cop::Style::EnvHome < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/env_home.rb#38 + # source://rubocop/lib/rubocop/cop/style/env_home.rb#38 def env_home?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/style/env_home.rb#45 + # source://rubocop/lib/rubocop/cop/style/env_home.rb#45 def on_send(node); end end -# source://rubocop//lib/rubocop/cop/style/env_home.rb#34 +# source://rubocop/lib/rubocop/cop/style/env_home.rb#34 RuboCop::Cop::Style::EnvHome::MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/env_home.rb#35 +# source://rubocop/lib/rubocop/cop/style/env_home.rb#35 RuboCop::Cop::Style::EnvHome::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Ensures that eval methods (`eval`, `instance_eval`, `class_eval` @@ -36649,92 +37084,92 @@ RuboCop::Cop::Style::EnvHome::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # end # RUBY # -# source://rubocop//lib/rubocop/cop/style/eval_with_location.rb#57 +# source://rubocop/lib/rubocop/cop/style/eval_with_location.rb#57 class RuboCop::Cop::Style::EvalWithLocation < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/eval_with_location.rb#75 + # source://rubocop/lib/rubocop/cop/style/eval_with_location.rb#75 def line_with_offset?(param0 = T.unsafe(nil), param1, param2); end - # source://rubocop//lib/rubocop/cop/style/eval_with_location.rb#82 + # source://rubocop/lib/rubocop/cop/style/eval_with_location.rb#82 def on_send(node); end - # source://rubocop//lib/rubocop/cop/style/eval_with_location.rb#70 + # source://rubocop/lib/rubocop/cop/style/eval_with_location.rb#70 def valid_eval_receiver?(param0 = T.unsafe(nil)); end private - # source://rubocop//lib/rubocop/cop/style/eval_with_location.rb#187 + # source://rubocop/lib/rubocop/cop/style/eval_with_location.rb#187 def add_offense_for_different_line(node, line_node, line_diff); end - # source://rubocop//lib/rubocop/cop/style/eval_with_location.rb#132 + # source://rubocop/lib/rubocop/cop/style/eval_with_location.rb#132 def add_offense_for_incorrect_line(method_name, line_node, sign, line_diff); end - # source://rubocop//lib/rubocop/cop/style/eval_with_location.rb#202 + # source://rubocop/lib/rubocop/cop/style/eval_with_location.rb#202 def add_offense_for_missing_line(node, code); end - # source://rubocop//lib/rubocop/cop/style/eval_with_location.rb#209 + # source://rubocop/lib/rubocop/cop/style/eval_with_location.rb#209 def add_offense_for_missing_location(node, code); end - # source://rubocop//lib/rubocop/cop/style/eval_with_location.rb#181 + # source://rubocop/lib/rubocop/cop/style/eval_with_location.rb#181 def add_offense_for_same_line(node, line_node); end - # source://rubocop//lib/rubocop/cop/style/eval_with_location.rb#144 + # source://rubocop/lib/rubocop/cop/style/eval_with_location.rb#144 def check_file(node, file_node); end - # source://rubocop//lib/rubocop/cop/style/eval_with_location.rb#157 + # source://rubocop/lib/rubocop/cop/style/eval_with_location.rb#157 def check_line(node, code); end - # source://rubocop//lib/rubocop/cop/style/eval_with_location.rb#96 + # source://rubocop/lib/rubocop/cop/style/eval_with_location.rb#96 def check_location(node, code); end - # source://rubocop//lib/rubocop/cop/style/eval_with_location.rb#194 + # source://rubocop/lib/rubocop/cop/style/eval_with_location.rb#194 def expected_line(sign, line_diff); end - # source://rubocop//lib/rubocop/cop/style/eval_with_location.rb#123 + # source://rubocop/lib/rubocop/cop/style/eval_with_location.rb#123 def file_and_line(node); end - # source://rubocop//lib/rubocop/cop/style/eval_with_location.rb#169 + # source://rubocop/lib/rubocop/cop/style/eval_with_location.rb#169 def line_difference(line_node, code); end - # source://rubocop//lib/rubocop/cop/style/eval_with_location.rb#221 + # source://rubocop/lib/rubocop/cop/style/eval_with_location.rb#221 def missing_line(node, code); end - # source://rubocop//lib/rubocop/cop/style/eval_with_location.rb#110 + # source://rubocop/lib/rubocop/cop/style/eval_with_location.rb#110 def register_offense(node, &block); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/eval_with_location.rb#115 + # source://rubocop/lib/rubocop/cop/style/eval_with_location.rb#115 def special_file_keyword?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/eval_with_location.rb#119 + # source://rubocop/lib/rubocop/cop/style/eval_with_location.rb#119 def special_line_keyword?(node); end - # source://rubocop//lib/rubocop/cop/style/eval_with_location.rb#173 + # source://rubocop/lib/rubocop/cop/style/eval_with_location.rb#173 def string_first_line(str_node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/eval_with_location.rb#128 + # source://rubocop/lib/rubocop/cop/style/eval_with_location.rb#128 def with_binding?(node); end end -# source://rubocop//lib/rubocop/cop/style/eval_with_location.rb#60 +# source://rubocop/lib/rubocop/cop/style/eval_with_location.rb#60 RuboCop::Cop::Style::EvalWithLocation::MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/eval_with_location.rb#61 +# source://rubocop/lib/rubocop/cop/style/eval_with_location.rb#61 RuboCop::Cop::Style::EvalWithLocation::MSG_EVAL = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/eval_with_location.rb#62 +# source://rubocop/lib/rubocop/cop/style/eval_with_location.rb#62 RuboCop::Cop::Style::EvalWithLocation::MSG_INCORRECT_FILE = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/eval_with_location.rb#64 +# source://rubocop/lib/rubocop/cop/style/eval_with_location.rb#64 RuboCop::Cop::Style::EvalWithLocation::MSG_INCORRECT_LINE = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/eval_with_location.rb#67 +# source://rubocop/lib/rubocop/cop/style/eval_with_location.rb#67 RuboCop::Cop::Style::EvalWithLocation::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Checks for places where `Integer#even?` or `Integer#odd?` @@ -36750,26 +37185,26 @@ RuboCop::Cop::Style::EvalWithLocation::RESTRICT_ON_SEND = T.let(T.unsafe(nil), A # if x.even? # end # -# source://rubocop//lib/rubocop/cop/style/even_odd.rb#18 +# source://rubocop/lib/rubocop/cop/style/even_odd.rb#18 class RuboCop::Cop::Style::EvenOdd < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/even_odd.rb#25 + # source://rubocop/lib/rubocop/cop/style/even_odd.rb#25 def even_odd_candidate?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/style/even_odd.rb#33 + # source://rubocop/lib/rubocop/cop/style/even_odd.rb#33 def on_send(node); end private - # source://rubocop//lib/rubocop/cop/style/even_odd.rb#45 + # source://rubocop/lib/rubocop/cop/style/even_odd.rb#45 def replacement_method(arg, method); end end -# source://rubocop//lib/rubocop/cop/style/even_odd.rb#21 +# source://rubocop/lib/rubocop/cop/style/even_odd.rb#21 RuboCop::Cop::Style::EvenOdd::MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/even_odd.rb#22 +# source://rubocop/lib/rubocop/cop/style/even_odd.rb#22 RuboCop::Cop::Style::EvenOdd::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Checks for exact regexp match inside Regexp literals. @@ -36791,34 +37226,34 @@ RuboCop::Cop::Style::EvenOdd::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # # good # string != 'string' # -# source://rubocop//lib/rubocop/cop/style/exact_regexp_match.rb#25 +# source://rubocop/lib/rubocop/cop/style/exact_regexp_match.rb#25 class RuboCop::Cop::Style::ExactRegexpMatch < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/exact_regexp_match.rb#32 + # source://rubocop/lib/rubocop/cop/style/exact_regexp_match.rb#32 def exact_regexp_match(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/style/exact_regexp_match.rb#40 + # source://rubocop/lib/rubocop/cop/style/exact_regexp_match.rb#40 def on_csend(node); end - # source://rubocop//lib/rubocop/cop/style/exact_regexp_match.rb#40 + # source://rubocop/lib/rubocop/cop/style/exact_regexp_match.rb#40 def on_send(node); end private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/exact_regexp_match.rb#57 + # source://rubocop/lib/rubocop/cop/style/exact_regexp_match.rb#63 def exact_match_pattern?(parsed_regexp); end - # source://rubocop//lib/rubocop/cop/style/exact_regexp_match.rb#64 + # source://rubocop/lib/rubocop/cop/style/exact_regexp_match.rb#70 def new_method(node); end end -# source://rubocop//lib/rubocop/cop/style/exact_regexp_match.rb#28 +# source://rubocop/lib/rubocop/cop/style/exact_regexp_match.rb#28 RuboCop::Cop::Style::ExactRegexpMatch::MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/exact_regexp_match.rb#29 +# source://rubocop/lib/rubocop/cop/style/exact_regexp_match.rb#29 RuboCop::Cop::Style::ExactRegexpMatch::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Checks for use of the `File.expand_path` arguments. @@ -36858,65 +37293,65 @@ RuboCop::Cop::Style::ExactRegexpMatch::RESTRICT_ON_SEND = T.let(T.unsafe(nil), A # # good # Pathname.new(__dir__).expand_path # -# source://rubocop//lib/rubocop/cop/style/expand_path_arguments.rb#43 +# source://rubocop/lib/rubocop/cop/style/expand_path_arguments.rb#43 class RuboCop::Cop::Style::ExpandPathArguments < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/expand_path_arguments.rb#58 + # source://rubocop/lib/rubocop/cop/style/expand_path_arguments.rb#58 def file_expand_path(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/style/expand_path_arguments.rb#82 + # source://rubocop/lib/rubocop/cop/style/expand_path_arguments.rb#82 def on_send(node); end - # source://rubocop//lib/rubocop/cop/style/expand_path_arguments.rb#74 + # source://rubocop/lib/rubocop/cop/style/expand_path_arguments.rb#74 def pathname_new_parent_expand_path(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/style/expand_path_arguments.rb#66 + # source://rubocop/lib/rubocop/cop/style/expand_path_arguments.rb#66 def pathname_parent_expand_path(param0 = T.unsafe(nil)); end private - # source://rubocop//lib/rubocop/cop/style/expand_path_arguments.rb#189 + # source://rubocop/lib/rubocop/cop/style/expand_path_arguments.rb#189 def arguments_range(node); end - # source://rubocop//lib/rubocop/cop/style/expand_path_arguments.rb#100 + # source://rubocop/lib/rubocop/cop/style/expand_path_arguments.rb#100 def autocorrect(corrector, node); end - # source://rubocop//lib/rubocop/cop/style/expand_path_arguments.rb#135 + # source://rubocop/lib/rubocop/cop/style/expand_path_arguments.rb#135 def autocorrect_expand_path(corrector, current_path, default_dir); end - # source://rubocop//lib/rubocop/cop/style/expand_path_arguments.rb#162 + # source://rubocop/lib/rubocop/cop/style/expand_path_arguments.rb#162 def depth(current_path); end - # source://rubocop//lib/rubocop/cop/style/expand_path_arguments.rb#113 + # source://rubocop/lib/rubocop/cop/style/expand_path_arguments.rb#113 def inspect_offense_for_expand_path(node, current_path, default_dir); end - # source://rubocop//lib/rubocop/cop/style/expand_path_arguments.rb#168 + # source://rubocop/lib/rubocop/cop/style/expand_path_arguments.rb#168 def parent_path(current_path); end - # source://rubocop//lib/rubocop/cop/style/expand_path_arguments.rb#182 + # source://rubocop/lib/rubocop/cop/style/expand_path_arguments.rb#182 def remove_parent_method(corrector, default_dir); end - # source://rubocop//lib/rubocop/cop/style/expand_path_arguments.rb#155 + # source://rubocop/lib/rubocop/cop/style/expand_path_arguments.rb#155 def strip_surrounded_quotes!(path_string); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/expand_path_arguments.rb#109 + # source://rubocop/lib/rubocop/cop/style/expand_path_arguments.rb#109 def unrecommended_argument?(default_dir); end end -# source://rubocop//lib/rubocop/cop/style/expand_path_arguments.rb#47 +# source://rubocop/lib/rubocop/cop/style/expand_path_arguments.rb#47 RuboCop::Cop::Style::ExpandPathArguments::MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/expand_path_arguments.rb#49 +# source://rubocop/lib/rubocop/cop/style/expand_path_arguments.rb#49 RuboCop::Cop::Style::ExpandPathArguments::PATHNAME_MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/expand_path_arguments.rb#51 +# source://rubocop/lib/rubocop/cop/style/expand_path_arguments.rb#51 RuboCop::Cop::Style::ExpandPathArguments::PATHNAME_NEW_MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/expand_path_arguments.rb#55 +# source://rubocop/lib/rubocop/cop/style/expand_path_arguments.rb#55 RuboCop::Cop::Style::ExpandPathArguments::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Enforces the use of explicit block argument to avoid writing @@ -36954,61 +37389,61 @@ RuboCop::Cop::Style::ExpandPathArguments::RESTRICT_ON_SEND = T.let(T.unsafe(nil) # 9.times(&block) # end # -# source://rubocop//lib/rubocop/cop/style/explicit_block_argument.rb#41 +# source://rubocop/lib/rubocop/cop/style/explicit_block_argument.rb#41 class RuboCop::Cop::Style::ExplicitBlockArgument < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector # @return [ExplicitBlockArgument] a new instance of ExplicitBlockArgument # - # source://rubocop//lib/rubocop/cop/style/explicit_block_argument.rb#57 + # source://rubocop/lib/rubocop/cop/style/explicit_block_argument.rb#57 def initialize(config = T.unsafe(nil), options = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/style/explicit_block_argument.rb#62 + # source://rubocop/lib/rubocop/cop/style/explicit_block_argument.rb#62 def on_yield(node); end - # source://rubocop//lib/rubocop/cop/style/explicit_block_argument.rb#49 + # source://rubocop/lib/rubocop/cop/style/explicit_block_argument.rb#49 def yielding_block?(param0 = T.unsafe(nil)); end private - # source://rubocop//lib/rubocop/cop/style/explicit_block_argument.rb#108 + # source://rubocop/lib/rubocop/cop/style/explicit_block_argument.rb#108 def add_block_argument(node, corrector, block_name); end - # source://rubocop//lib/rubocop/cop/style/explicit_block_argument.rb#147 + # source://rubocop/lib/rubocop/cop/style/explicit_block_argument.rb#147 def block_body_range(block_node, send_node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/explicit_block_argument.rb#125 + # source://rubocop/lib/rubocop/cop/style/explicit_block_argument.rb#125 def call_like?(node); end - # source://rubocop//lib/rubocop/cop/style/explicit_block_argument.rb#137 + # source://rubocop/lib/rubocop/cop/style/explicit_block_argument.rb#137 def correct_call_node(node, corrector, block_name); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/explicit_block_argument.rb#120 + # source://rubocop/lib/rubocop/cop/style/explicit_block_argument.rb#120 def empty_arguments?(node); end - # source://rubocop//lib/rubocop/cop/style/explicit_block_argument.rb#87 + # source://rubocop/lib/rubocop/cop/style/explicit_block_argument.rb#87 def extract_block_name(def_node); end - # source://rubocop//lib/rubocop/cop/style/explicit_block_argument.rb#129 + # source://rubocop/lib/rubocop/cop/style/explicit_block_argument.rb#129 def insert_argument(node, corrector, block_name); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/explicit_block_argument.rb#95 + # source://rubocop/lib/rubocop/cop/style/explicit_block_argument.rb#95 def yielding_arguments?(block_args, yield_args); end class << self - # source://rubocop//lib/rubocop/cop/style/explicit_block_argument.rb#53 + # source://rubocop/lib/rubocop/cop/style/explicit_block_argument.rb#53 def autocorrect_incompatible_with; end end end -# source://rubocop//lib/rubocop/cop/style/explicit_block_argument.rb#45 +# source://rubocop/lib/rubocop/cop/style/explicit_block_argument.rb#45 RuboCop::Cop::Style::ExplicitBlockArgument::MSG = T.let(T.unsafe(nil), String) # Enforces consistency when using exponential notation @@ -37063,38 +37498,38 @@ RuboCop::Cop::Style::ExplicitBlockArgument::MSG = T.let(T.unsafe(nil), String) # 1e4 # 12e5 # -# source://rubocop//lib/rubocop/cop/style/exponential_notation.rb#60 +# source://rubocop/lib/rubocop/cop/style/exponential_notation.rb#60 class RuboCop::Cop::Style::ExponentialNotation < ::RuboCop::Cop::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle - # source://rubocop//lib/rubocop/cop/style/exponential_notation.rb#68 + # source://rubocop/lib/rubocop/cop/style/exponential_notation.rb#68 def on_float(node); end private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/exponential_notation.rb#79 + # source://rubocop/lib/rubocop/cop/style/exponential_notation.rb#79 def engineering?(node); end - # source://rubocop//lib/rubocop/cop/style/exponential_notation.rb#90 + # source://rubocop/lib/rubocop/cop/style/exponential_notation.rb#90 def integral(node); end - # source://rubocop//lib/rubocop/cop/style/exponential_notation.rb#110 + # source://rubocop/lib/rubocop/cop/style/exponential_notation.rb#110 def message(_node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/exponential_notation.rb#95 + # source://rubocop/lib/rubocop/cop/style/exponential_notation.rb#95 def offense?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/exponential_notation.rb#74 + # source://rubocop/lib/rubocop/cop/style/exponential_notation.rb#74 def scientific?(node); end end -# source://rubocop//lib/rubocop/cop/style/exponential_notation.rb#62 +# source://rubocop/lib/rubocop/cop/style/exponential_notation.rb#62 RuboCop::Cop::Style::ExponentialNotation::MESSAGES = T.let(T.unsafe(nil), Hash) # Suggests `ENV.fetch` for the replacement of `ENV[]`. @@ -37116,14 +37551,14 @@ RuboCop::Cop::Style::ExponentialNotation::MESSAGES = T.let(T.unsafe(nil), Hash) # !ENV['X'] # ENV['X'].some_method # (e.g. `.nil?`) # -# source://rubocop//lib/rubocop/cop/style/fetch_env_var.rb#25 +# source://rubocop/lib/rubocop/cop/style/fetch_env_var.rb#25 class RuboCop::Cop::Style::FetchEnvVar < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/fetch_env_var.rb#31 + # source://rubocop/lib/rubocop/cop/style/fetch_env_var.rb#32 def env_with_bracket?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/style/fetch_env_var.rb#35 + # source://rubocop/lib/rubocop/cop/style/fetch_env_var.rb#36 def on_send(node); end private @@ -37138,12 +37573,12 @@ class RuboCop::Cop::Style::FetchEnvVar < ::RuboCop::Cop::Base # # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/fetch_env_var.rb#105 + # source://rubocop/lib/rubocop/cop/style/fetch_env_var.rb#106 def allowable_use?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/fetch_env_var.rb#48 + # source://rubocop/lib/rubocop/cop/style/fetch_env_var.rb#49 def allowed_var?(node); end # The following are allowed cases: @@ -37153,27 +37588,27 @@ class RuboCop::Cop::Style::FetchEnvVar < ::RuboCop::Cop::Base # # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/fetch_env_var.rb#113 + # source://rubocop/lib/rubocop/cop/style/fetch_env_var.rb#114 def assigned?(node); end # Check if the node is a receiver and receives a message with dot syntax. # # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/fetch_env_var.rb#89 + # source://rubocop/lib/rubocop/cop/style/fetch_env_var.rb#90 def message_chained_with_dot?(node); end - # source://rubocop//lib/rubocop/cop/style/fetch_env_var.rb#126 + # source://rubocop/lib/rubocop/cop/style/fetch_env_var.rb#127 def new_code(name_node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/fetch_env_var.rb#84 + # source://rubocop/lib/rubocop/cop/style/fetch_env_var.rb#85 def offensive?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/fetch_env_var.rb#120 + # source://rubocop/lib/rubocop/cop/style/fetch_env_var.rb#121 def or_lhs?(node); end # Avoid offending in the following cases: @@ -37181,26 +37616,29 @@ class RuboCop::Cop::Style::FetchEnvVar < ::RuboCop::Cop::Base # # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/fetch_env_var.rb#80 + # source://rubocop/lib/rubocop/cop/style/fetch_env_var.rb#81 def partial_matched?(node, condition); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/fetch_env_var.rb#53 + # source://rubocop/lib/rubocop/cop/style/fetch_env_var.rb#54 def used_as_flag?(node); end - # source://rubocop//lib/rubocop/cop/style/fetch_env_var.rb#60 + # source://rubocop/lib/rubocop/cop/style/fetch_env_var.rb#61 def used_if_condition_in_body(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/fetch_env_var.rb#69 + # source://rubocop/lib/rubocop/cop/style/fetch_env_var.rb#70 def used_in_condition?(node, condition); end end -# source://rubocop//lib/rubocop/cop/style/fetch_env_var.rb#28 +# source://rubocop/lib/rubocop/cop/style/fetch_env_var.rb#28 RuboCop::Cop::Style::FetchEnvVar::MSG = T.let(T.unsafe(nil), String) +# source://rubocop/lib/rubocop/cop/style/fetch_env_var.rb#29 +RuboCop::Cop::Style::FetchEnvVar::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + # Prefer to use `File.empty?('path/to/file')` when checking if a file is empty. # # @example @@ -37217,29 +37655,86 @@ RuboCop::Cop::Style::FetchEnvVar::MSG = T.let(T.unsafe(nil), String) # File.empty?('path/to/file') # FileTest.empty?('path/to/file') # -# source://rubocop//lib/rubocop/cop/style/file_empty.rb#27 +# source://rubocop/lib/rubocop/cop/style/file_empty.rb#27 class RuboCop::Cop::Style::FileEmpty < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector extend ::RuboCop::Cop::TargetRubyVersion - # source://rubocop//lib/rubocop/cop/style/file_empty.rb#37 + # source://rubocop/lib/rubocop/cop/style/file_empty.rb#37 def offensive?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/style/file_empty.rb#49 + # source://rubocop/lib/rubocop/cop/style/file_empty.rb#49 def on_send(node); end private - # source://rubocop//lib/rubocop/cop/style/file_empty.rb#62 + # source://rubocop/lib/rubocop/cop/style/file_empty.rb#62 def bang(node); end end -# source://rubocop//lib/rubocop/cop/style/file_empty.rb#31 +# source://rubocop/lib/rubocop/cop/style/file_empty.rb#31 RuboCop::Cop::Style::FileEmpty::MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/file_empty.rb#32 +# source://rubocop/lib/rubocop/cop/style/file_empty.rb#32 RuboCop::Cop::Style::FileEmpty::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) +# Use `File::NULL` instead of hardcoding the null device (`/dev/null` on Unix-like +# OSes, `NUL` or `NUL:` on Windows), so that code is platform independent. +# Only looks for full string matches, substrings within a longer string are not +# considered. +# +# However, only files that use the string `'/dev/null'` are targeted for detection. +# This is because the string `'NUL'` is not limited to the null device. +# This behavior results in false negatives when the `'/dev/null'` string is not used, +# but it is a trade-off to avoid false positives. `NULL:` +# Unlike `'NUL'`, `'NUL:'` is regarded as something like `C:` and is always detected. +# +# NOTE: Uses inside arrays and hashes are ignored. +# +# @example +# # bad +# '/dev/null' +# 'NUL' +# 'NUL:' +# +# # good +# File::NULL +# +# # ok - inside an array +# null_devices = %w[/dev/null nul] +# +# # ok - inside a hash +# { unix: "/dev/null", windows: "nul" } +# +# source://rubocop/lib/rubocop/cop/style/file_null.rb#45 +class RuboCop::Cop::Style::FileNull < ::RuboCop::Cop::Base + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop/lib/rubocop/cop/style/file_null.rb#51 + def on_new_investigation; end + + # source://rubocop/lib/rubocop/cop/style/file_null.rb#61 + def on_str(node); end + + private + + # @return [Boolean] + # + # source://rubocop/lib/rubocop/cop/style/file_null.rb#79 + def acceptable?(node); end + + # @return [Boolean] + # + # source://rubocop/lib/rubocop/cop/style/file_null.rb#75 + def valid_string?(value); end +end + +# source://rubocop/lib/rubocop/cop/style/file_null.rb#49 +RuboCop::Cop::Style::FileNull::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop/lib/rubocop/cop/style/file_null.rb#48 +RuboCop::Cop::Style::FileNull::REGEXP = T.let(T.unsafe(nil), Regexp) + # Favor `File.(bin)read` convenience methods. # # @example @@ -37269,51 +37764,104 @@ RuboCop::Cop::Style::FileEmpty::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # # good # File.binread(filename) # -# source://rubocop//lib/rubocop/cop/style/file_read.rb#35 +# source://rubocop/lib/rubocop/cop/style/file_read.rb#35 class RuboCop::Cop::Style::FileRead < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/file_read.rb#62 + # source://rubocop/lib/rubocop/cop/style/file_read.rb#62 def block_read?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/style/file_read.rb#46 + # source://rubocop/lib/rubocop/cop/style/file_read.rb#46 def file_open?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/style/file_read.rb#66 + # source://rubocop/lib/rubocop/cop/style/file_read.rb#66 def on_send(node); end - # source://rubocop//lib/rubocop/cop/style/file_read.rb#57 + # source://rubocop/lib/rubocop/cop/style/file_read.rb#57 def send_read?(param0 = T.unsafe(nil)); end private - # source://rubocop//lib/rubocop/cop/style/file_read.rb#81 + # source://rubocop/lib/rubocop/cop/style/file_read.rb#81 def evidence(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/file_read.rb#97 + # source://rubocop/lib/rubocop/cop/style/file_read.rb#97 def file_open_read?(node); end - # source://rubocop//lib/rubocop/cop/style/file_read.rb#103 + # source://rubocop/lib/rubocop/cop/style/file_read.rb#103 def read_method(mode); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/file_read.rb#89 + # source://rubocop/lib/rubocop/cop/style/file_read.rb#89 def read_node?(node, block_pass); end end -# source://rubocop//lib/rubocop/cop/style/file_read.rb#39 +# source://rubocop/lib/rubocop/cop/style/file_read.rb#39 RuboCop::Cop::Style::FileRead::MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/file_read.rb#43 +# source://rubocop/lib/rubocop/cop/style/file_read.rb#43 RuboCop::Cop::Style::FileRead::READ_FILE_START_TO_FINISH_MODES = T.let(T.unsafe(nil), Set) -# source://rubocop//lib/rubocop/cop/style/file_read.rb#41 +# source://rubocop/lib/rubocop/cop/style/file_read.rb#41 RuboCop::Cop::Style::FileRead::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) +# Checks for usage of `File.open` in append mode with empty block. +# +# Such a usage only creates a new file, but it doesn't update +# timestamps for an existing file, which might have been the intention. +# +# For example, for an existing file `foo.txt`: +# +# ruby -e "puts File.mtime('foo.txt')" +# # 2024-11-26 12:17:23 +0100 +# +# ruby -e "File.open('foo.txt', 'a') {}" +# +# ruby -e "puts File.mtime('foo.txt')" +# # 2024-11-26 12:17:23 +0100 -> unchanged +# +# If the intention was to update timestamps, `FileUtils.touch('foo.txt')` +# should be used instead. +# +# @example +# # bad +# File.open(filename, 'a') {} +# File.open(filename, 'a+') {} +# +# # good +# FileUtils.touch(filename) +# +# source://rubocop/lib/rubocop/cop/style/file_touch.rb#36 +class RuboCop::Cop::Style::FileTouch < ::RuboCop::Cop::Base + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop/lib/rubocop/cop/style/file_touch.rb#47 + def file_open?(param0 = T.unsafe(nil)); end + + # source://rubocop/lib/rubocop/cop/style/file_touch.rb#54 + def on_send(node); end + + private + + # @return [Boolean] + # + # source://rubocop/lib/rubocop/cop/style/file_touch.rb#69 + def empty_block?(node); end +end + +# source://rubocop/lib/rubocop/cop/style/file_touch.rb#44 +RuboCop::Cop::Style::FileTouch::APPEND_FILE_MODES = T.let(T.unsafe(nil), Set) + +# source://rubocop/lib/rubocop/cop/style/file_touch.rb#39 +RuboCop::Cop::Style::FileTouch::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop/lib/rubocop/cop/style/file_touch.rb#42 +RuboCop::Cop::Style::FileTouch::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + # Favor `File.(bin)write` convenience methods. # # NOTE: There are different method signatures between `File.write` (class method) @@ -37346,24 +37894,24 @@ RuboCop::Cop::Style::FileRead::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # # good # File.binwrite(filename, content) # -# source://rubocop//lib/rubocop/cop/style/file_write.rb#38 +# source://rubocop/lib/rubocop/cop/style/file_write.rb#38 class RuboCop::Cop::Style::FileWrite < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/file_write.rb#65 + # source://rubocop/lib/rubocop/cop/style/file_write.rb#65 def block_write?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/style/file_write.rb#82 + # source://rubocop/lib/rubocop/cop/style/file_write.rb#82 def evidence(node); end - # source://rubocop//lib/rubocop/cop/style/file_write.rb#49 + # source://rubocop/lib/rubocop/cop/style/file_write.rb#49 def file_open?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/style/file_write.rb#69 + # source://rubocop/lib/rubocop/cop/style/file_write.rb#69 def on_send(node); end - # source://rubocop//lib/rubocop/cop/style/file_write.rb#60 + # source://rubocop/lib/rubocop/cop/style/file_write.rb#60 def send_write?(param0 = T.unsafe(nil)); end private @@ -37371,31 +37919,31 @@ class RuboCop::Cop::Style::FileWrite < ::RuboCop::Cop::Base # @return [Boolean] # @yield [content] # - # source://rubocop//lib/rubocop/cop/style/file_write.rb#92 + # source://rubocop/lib/rubocop/cop/style/file_write.rb#92 def file_open_write?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/file_write.rb#120 + # source://rubocop/lib/rubocop/cop/style/file_write.rb#120 def heredoc?(write_node); end - # source://rubocop//lib/rubocop/cop/style/file_write.rb#125 + # source://rubocop/lib/rubocop/cop/style/file_write.rb#125 def heredoc_range(first_argument); end - # source://rubocop//lib/rubocop/cop/style/file_write.rb#105 + # source://rubocop/lib/rubocop/cop/style/file_write.rb#105 def replacement(mode, filename, content, write_node); end - # source://rubocop//lib/rubocop/cop/style/file_write.rb#101 + # source://rubocop/lib/rubocop/cop/style/file_write.rb#101 def write_method(mode); end end -# source://rubocop//lib/rubocop/cop/style/file_write.rb#42 +# source://rubocop/lib/rubocop/cop/style/file_write.rb#42 RuboCop::Cop::Style::FileWrite::MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/file_write.rb#44 +# source://rubocop/lib/rubocop/cop/style/file_write.rb#44 RuboCop::Cop::Style::FileWrite::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Set) -# source://rubocop//lib/rubocop/cop/style/file_write.rb#46 +# source://rubocop/lib/rubocop/cop/style/file_write.rb#46 RuboCop::Cop::Style::FileWrite::TRUNCATING_WRITE_MODES = T.let(T.unsafe(nil), Set) # Checks for division with integers coerced to floats. @@ -37432,53 +37980,53 @@ RuboCop::Cop::Style::FileWrite::TRUNCATING_WRITE_MODES = T.let(T.unsafe(nil), Se # # good # a.fdiv(b) # -# source://rubocop//lib/rubocop/cop/style/float_division.rb#53 +# source://rubocop/lib/rubocop/cop/style/float_division.rb#53 class RuboCop::Cop::Style::FloatDivision < ::RuboCop::Cop::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/float_division.rb#79 + # source://rubocop/lib/rubocop/cop/style/float_division.rb#79 def any_coerce?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/style/float_division.rb#75 + # source://rubocop/lib/rubocop/cop/style/float_division.rb#75 def both_coerce?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/style/float_division.rb#71 + # source://rubocop/lib/rubocop/cop/style/float_division.rb#71 def left_coerce?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/style/float_division.rb#83 + # source://rubocop/lib/rubocop/cop/style/float_division.rb#83 def on_send(node); end - # source://rubocop//lib/rubocop/cop/style/float_division.rb#67 + # source://rubocop/lib/rubocop/cop/style/float_division.rb#67 def right_coerce?(param0 = T.unsafe(nil)); end private - # source://rubocop//lib/rubocop/cop/style/float_division.rb#121 + # source://rubocop/lib/rubocop/cop/style/float_division.rb#121 def add_to_f_method(corrector, node); end - # source://rubocop//lib/rubocop/cop/style/float_division.rb#130 + # source://rubocop/lib/rubocop/cop/style/float_division.rb#130 def correct_from_slash_to_fdiv(corrector, node, receiver, argument); end - # source://rubocop//lib/rubocop/cop/style/float_division.rb#141 + # source://rubocop/lib/rubocop/cop/style/float_division.rb#141 def extract_receiver_source(node); end - # source://rubocop//lib/rubocop/cop/style/float_division.rb#117 + # source://rubocop/lib/rubocop/cop/style/float_division.rb#117 def message(_node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/float_division.rb#102 + # source://rubocop/lib/rubocop/cop/style/float_division.rb#102 def offense_condition?(node); end - # source://rubocop//lib/rubocop/cop/style/float_division.rb#125 + # source://rubocop/lib/rubocop/cop/style/float_division.rb#125 def remove_to_f_method(corrector, send_node); end end -# source://rubocop//lib/rubocop/cop/style/float_division.rb#57 +# source://rubocop/lib/rubocop/cop/style/float_division.rb#57 RuboCop::Cop::Style::FloatDivision::MESSAGES = T.let(T.unsafe(nil), Hash) -# source://rubocop//lib/rubocop/cop/style/float_division.rb#64 +# source://rubocop/lib/rubocop/cop/style/float_division.rb#64 RuboCop::Cop::Style::FloatDivision::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Looks for uses of the `for` keyword or `each` method. The @@ -37515,36 +38063,35 @@ RuboCop::Cop::Style::FloatDivision::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Arra # end # end # -# source://rubocop//lib/rubocop/cop/style/for.rb#45 +# source://rubocop/lib/rubocop/cop/style/for.rb#45 class RuboCop::Cop::Style::For < ::RuboCop::Cop::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle - include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/for.rb#65 + # source://rubocop/lib/rubocop/cop/style/for.rb#64 def on_block(node); end - # source://rubocop//lib/rubocop/cop/style/for.rb#54 + # source://rubocop/lib/rubocop/cop/style/for.rb#53 def on_for(node); end - # source://rubocop//lib/rubocop/cop/style/for.rb#65 + # source://rubocop/lib/rubocop/cop/style/for.rb#64 def on_numblock(node); end private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/for.rb#84 + # source://rubocop/lib/rubocop/cop/style/for.rb#83 def suspect_enumerable?(node); end end -# source://rubocop//lib/rubocop/cop/style/for.rb#50 +# source://rubocop/lib/rubocop/cop/style/for.rb#49 RuboCop::Cop::Style::For::EACH_LENGTH = T.let(T.unsafe(nil), Integer) -# source://rubocop//lib/rubocop/cop/style/for.rb#51 +# source://rubocop/lib/rubocop/cop/style/for.rb#50 RuboCop::Cop::Style::For::PREFER_EACH = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/for.rb#52 +# source://rubocop/lib/rubocop/cop/style/for.rb#51 RuboCop::Cop::Style::For::PREFER_FOR = T.let(T.unsafe(nil), String) # Enforces the use of a single string formatting utility. @@ -37589,55 +38136,55 @@ RuboCop::Cop::Style::For::PREFER_FOR = T.let(T.unsafe(nil), String) # # good # puts '%10s' % 'foo' # -# source://rubocop//lib/rubocop/cop/style/format_string.rb#50 +# source://rubocop/lib/rubocop/cop/style/format_string.rb#50 class RuboCop::Cop::Style::FormatString < ::RuboCop::Cop::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/format_string.rb#61 + # source://rubocop/lib/rubocop/cop/style/format_string.rb#61 def formatter(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/style/format_string.rb#74 + # source://rubocop/lib/rubocop/cop/style/format_string.rb#74 def on_send(node); end - # source://rubocop//lib/rubocop/cop/style/format_string.rb#70 + # source://rubocop/lib/rubocop/cop/style/format_string.rb#70 def variable_argument?(param0 = T.unsafe(nil)); end private - # source://rubocop//lib/rubocop/cop/style/format_string.rb#102 + # source://rubocop/lib/rubocop/cop/style/format_string.rb#102 def autocorrect(corrector, node); end - # source://rubocop//lib/rubocop/cop/style/format_string.rb#118 + # source://rubocop/lib/rubocop/cop/style/format_string.rb#118 def autocorrect_from_percent(corrector, node); end - # source://rubocop//lib/rubocop/cop/style/format_string.rb#132 + # source://rubocop/lib/rubocop/cop/style/format_string.rb#132 def autocorrect_to_percent(corrector, node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/format_string.rb#88 + # source://rubocop/lib/rubocop/cop/style/format_string.rb#88 def autocorrectable?(node); end - # source://rubocop//lib/rubocop/cop/style/format_string.rb#145 + # source://rubocop/lib/rubocop/cop/style/format_string.rb#145 def format_single_parameter(arg); end - # source://rubocop//lib/rubocop/cop/style/format_string.rb#94 + # source://rubocop/lib/rubocop/cop/style/format_string.rb#94 def message(detected_style); end - # source://rubocop//lib/rubocop/cop/style/format_string.rb#98 + # source://rubocop/lib/rubocop/cop/style/format_string.rb#98 def method_name(style_name); end end # Known conversion methods whose return value is not an array. # -# source://rubocop//lib/rubocop/cop/style/format_string.rb#58 +# source://rubocop/lib/rubocop/cop/style/format_string.rb#58 RuboCop::Cop::Style::FormatString::AUTOCORRECTABLE_METHODS = T.let(T.unsafe(nil), Array) -# source://rubocop//lib/rubocop/cop/style/format_string.rb#54 +# source://rubocop/lib/rubocop/cop/style/format_string.rb#54 RuboCop::Cop::Style::FormatString::MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/format_string.rb#55 +# source://rubocop/lib/rubocop/cop/style/format_string.rb#55 RuboCop::Cop::Style::FormatString::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Use a consistent style for named format string tokens. @@ -37711,71 +38258,71 @@ RuboCop::Cop::Style::FormatString::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array # # good # format('%s', greeting: 'Hello') # -# source://rubocop//lib/rubocop/cop/style/format_string_token.rb#85 +# source://rubocop/lib/rubocop/cop/style/format_string_token.rb#85 class RuboCop::Cop::Style::FormatStringToken < ::RuboCop::Cop::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle include ::RuboCop::Cop::AllowedMethods include ::RuboCop::Cop::AllowedPattern extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/format_string_token.rb#106 + # source://rubocop/lib/rubocop/cop/style/format_string_token.rb#106 def format_string_in_typical_context?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/style/format_string_token.rb#91 + # source://rubocop/lib/rubocop/cop/style/format_string_token.rb#91 def on_str(node); end private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/format_string_token.rb#213 + # source://rubocop/lib/rubocop/cop/style/format_string_token.rb#213 def allowed_unannotated?(detections); end - # source://rubocop//lib/rubocop/cop/style/format_string_token.rb#139 + # source://rubocop/lib/rubocop/cop/style/format_string_token.rb#139 def autocorrect_sequence(corrector, detected_sequence, token_range); end - # source://rubocop//lib/rubocop/cop/style/format_string_token.rb#124 + # source://rubocop/lib/rubocop/cop/style/format_string_token.rb#124 def check_sequence(detected_sequence, token_range); end - # source://rubocop//lib/rubocop/cop/style/format_string_token.rb#203 + # source://rubocop/lib/rubocop/cop/style/format_string_token.rb#203 def collect_detections(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/format_string_token.rb#135 + # source://rubocop/lib/rubocop/cop/style/format_string_token.rb#135 def correctable_sequence?(detected_type); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/format_string_token.rb#113 + # source://rubocop/lib/rubocop/cop/style/format_string_token.rb#113 def format_string_token?(node); end - # source://rubocop//lib/rubocop/cop/style/format_string_token.rb#222 + # source://rubocop/lib/rubocop/cop/style/format_string_token.rb#222 def max_unannotated_placeholders_allowed; end - # source://rubocop//lib/rubocop/cop/style/format_string_token.rb#160 + # source://rubocop/lib/rubocop/cop/style/format_string_token.rb#160 def message(detected_style); end - # source://rubocop//lib/rubocop/cop/style/format_string_token.rb#165 + # source://rubocop/lib/rubocop/cop/style/format_string_token.rb#165 def message_text(style); end - # source://rubocop//lib/rubocop/cop/style/format_string_token.rb#180 + # source://rubocop/lib/rubocop/cop/style/format_string_token.rb#180 def str_contents(source_map); end - # source://rubocop//lib/rubocop/cop/style/format_string_token.rb#190 + # source://rubocop/lib/rubocop/cop/style/format_string_token.rb#190 def token_ranges(contents); end - # source://rubocop//lib/rubocop/cop/style/format_string_token.rb#174 + # source://rubocop/lib/rubocop/cop/style/format_string_token.rb#174 def tokens(str_node, &block); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/format_string_token.rb#156 + # source://rubocop/lib/rubocop/cop/style/format_string_token.rb#156 def unannotated_format?(node, detected_style); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/format_string_token.rb#117 + # source://rubocop/lib/rubocop/cop/style/format_string_token.rb#117 def use_allowed_method?(node); end end @@ -37850,7 +38397,7 @@ end # # ... # end # -# source://rubocop//lib/rubocop/cop/style/frozen_string_literal_comment.rb#84 +# source://rubocop/lib/rubocop/cop/style/frozen_string_literal_comment.rb#84 class RuboCop::Cop::Style::FrozenStringLiteralComment < ::RuboCop::Cop::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle include ::RuboCop::Cop::FrozenStringLiteral @@ -37858,70 +38405,70 @@ class RuboCop::Cop::Style::FrozenStringLiteralComment < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector extend ::RuboCop::Cop::TargetRubyVersion - # source://rubocop//lib/rubocop/cop/style/frozen_string_literal_comment.rb#99 + # source://rubocop/lib/rubocop/cop/style/frozen_string_literal_comment.rb#99 def on_new_investigation; end private - # source://rubocop//lib/rubocop/cop/style/frozen_string_literal_comment.rb#178 + # source://rubocop/lib/rubocop/cop/style/frozen_string_literal_comment.rb#178 def disabled_offense(processed_source); end - # source://rubocop//lib/rubocop/cop/style/frozen_string_literal_comment.rb#190 + # source://rubocop/lib/rubocop/cop/style/frozen_string_literal_comment.rb#190 def enable_comment(corrector); end - # source://rubocop//lib/rubocop/cop/style/frozen_string_literal_comment.rb#120 + # source://rubocop/lib/rubocop/cop/style/frozen_string_literal_comment.rb#120 def ensure_comment(processed_source); end - # source://rubocop//lib/rubocop/cop/style/frozen_string_literal_comment.rb#126 + # source://rubocop/lib/rubocop/cop/style/frozen_string_literal_comment.rb#126 def ensure_enabled_comment(processed_source); end - # source://rubocop//lib/rubocop/cop/style/frozen_string_literal_comment.rb#114 + # source://rubocop/lib/rubocop/cop/style/frozen_string_literal_comment.rb#114 def ensure_no_comment(processed_source); end - # source://rubocop//lib/rubocop/cop/style/frozen_string_literal_comment.rb#214 + # source://rubocop/lib/rubocop/cop/style/frozen_string_literal_comment.rb#214 def following_comment; end - # source://rubocop//lib/rubocop/cop/style/frozen_string_literal_comment.rb#152 + # source://rubocop/lib/rubocop/cop/style/frozen_string_literal_comment.rb#152 def frozen_string_literal_comment(processed_source); end - # source://rubocop//lib/rubocop/cop/style/frozen_string_literal_comment.rb#196 + # source://rubocop/lib/rubocop/cop/style/frozen_string_literal_comment.rb#196 def insert_comment(corrector); end - # source://rubocop//lib/rubocop/cop/style/frozen_string_literal_comment.rb#137 + # source://rubocop/lib/rubocop/cop/style/frozen_string_literal_comment.rb#137 def last_special_comment(processed_source); end - # source://rubocop//lib/rubocop/cop/style/frozen_string_literal_comment.rb#206 + # source://rubocop/lib/rubocop/cop/style/frozen_string_literal_comment.rb#206 def line_range(line); end - # source://rubocop//lib/rubocop/cop/style/frozen_string_literal_comment.rb#158 + # source://rubocop/lib/rubocop/cop/style/frozen_string_literal_comment.rb#158 def missing_offense(processed_source); end - # source://rubocop//lib/rubocop/cop/style/frozen_string_literal_comment.rb#164 + # source://rubocop/lib/rubocop/cop/style/frozen_string_literal_comment.rb#164 def missing_true_offense(processed_source); end - # source://rubocop//lib/rubocop/cop/style/frozen_string_literal_comment.rb#210 + # source://rubocop/lib/rubocop/cop/style/frozen_string_literal_comment.rb#210 def preceding_comment; end - # source://rubocop//lib/rubocop/cop/style/frozen_string_literal_comment.rb#186 + # source://rubocop/lib/rubocop/cop/style/frozen_string_literal_comment.rb#186 def remove_comment(corrector, node); end - # source://rubocop//lib/rubocop/cop/style/frozen_string_literal_comment.rb#170 + # source://rubocop/lib/rubocop/cop/style/frozen_string_literal_comment.rb#170 def unnecessary_comment_offense(processed_source); end end -# source://rubocop//lib/rubocop/cop/style/frozen_string_literal_comment.rb#96 +# source://rubocop/lib/rubocop/cop/style/frozen_string_literal_comment.rb#96 RuboCop::Cop::Style::FrozenStringLiteralComment::MSG_DISABLED = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/frozen_string_literal_comment.rb#94 +# source://rubocop/lib/rubocop/cop/style/frozen_string_literal_comment.rb#94 RuboCop::Cop::Style::FrozenStringLiteralComment::MSG_MISSING = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/frozen_string_literal_comment.rb#93 +# source://rubocop/lib/rubocop/cop/style/frozen_string_literal_comment.rb#93 RuboCop::Cop::Style::FrozenStringLiteralComment::MSG_MISSING_TRUE = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/frozen_string_literal_comment.rb#95 +# source://rubocop/lib/rubocop/cop/style/frozen_string_literal_comment.rb#95 RuboCop::Cop::Style::FrozenStringLiteralComment::MSG_UNNECESSARY = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/frozen_string_literal_comment.rb#97 +# source://rubocop/lib/rubocop/cop/style/frozen_string_literal_comment.rb#97 RuboCop::Cop::Style::FrozenStringLiteralComment::SHEBANG = T.let(T.unsafe(nil), String) # Enforces the use of `$stdout/$stderr/$stdin` instead of `STDOUT/STDERR/STDIN`. @@ -37948,34 +38495,34 @@ RuboCop::Cop::Style::FrozenStringLiteralComment::SHEBANG = T.let(T.unsafe(nil), # out.puts('hello') # end # -# source://rubocop//lib/rubocop/cop/style/global_std_stream.rb#34 +# source://rubocop/lib/rubocop/cop/style/global_std_stream.rb#34 class RuboCop::Cop::Style::GlobalStdStream < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/global_std_stream.rb#42 + # source://rubocop/lib/rubocop/cop/style/global_std_stream.rb#42 def const_to_gvar_assignment?(param0 = T.unsafe(nil), param1); end - # source://rubocop//lib/rubocop/cop/style/global_std_stream.rb#46 + # source://rubocop/lib/rubocop/cop/style/global_std_stream.rb#46 def on_const(node); end private - # source://rubocop//lib/rubocop/cop/style/global_std_stream.rb#70 + # source://rubocop/lib/rubocop/cop/style/global_std_stream.rb#70 def gvar_name(const_name); end - # source://rubocop//lib/rubocop/cop/style/global_std_stream.rb#62 + # source://rubocop/lib/rubocop/cop/style/global_std_stream.rb#62 def message(const_name); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/global_std_stream.rb#66 + # source://rubocop/lib/rubocop/cop/style/global_std_stream.rb#66 def namespaced?(node); end end -# source://rubocop//lib/rubocop/cop/style/global_std_stream.rb#37 +# source://rubocop/lib/rubocop/cop/style/global_std_stream.rb#37 RuboCop::Cop::Style::GlobalStdStream::MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/global_std_stream.rb#39 +# source://rubocop/lib/rubocop/cop/style/global_std_stream.rb#39 RuboCop::Cop::Style::GlobalStdStream::STD_STREAMS = T.let(T.unsafe(nil), Set) # Looks for uses of global variables. @@ -37995,33 +38542,33 @@ RuboCop::Cop::Style::GlobalStdStream::STD_STREAMS = T.let(T.unsafe(nil), Set) # foo = 2 # $stdin.read # -# source://rubocop//lib/rubocop/cop/style/global_vars.rb#22 +# source://rubocop/lib/rubocop/cop/style/global_vars.rb#22 class RuboCop::Cop::Style::GlobalVars < ::RuboCop::Cop::Base # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/global_vars.rb#60 + # source://rubocop/lib/rubocop/cop/style/global_vars.rb#60 def allowed_var?(global_var); end - # source://rubocop//lib/rubocop/cop/style/global_vars.rb#72 + # source://rubocop/lib/rubocop/cop/style/global_vars.rb#72 def check(node); end - # source://rubocop//lib/rubocop/cop/style/global_vars.rb#64 + # source://rubocop/lib/rubocop/cop/style/global_vars.rb#64 def on_gvar(node); end - # source://rubocop//lib/rubocop/cop/style/global_vars.rb#68 + # source://rubocop/lib/rubocop/cop/style/global_vars.rb#68 def on_gvasgn(node); end - # source://rubocop//lib/rubocop/cop/style/global_vars.rb#56 + # source://rubocop/lib/rubocop/cop/style/global_vars.rb#56 def user_vars; end end # built-in global variables and their English aliases # https://www.zenspider.com/ruby/quickref.html # -# source://rubocop//lib/rubocop/cop/style/global_vars.rb#27 +# source://rubocop/lib/rubocop/cop/style/global_vars.rb#27 RuboCop::Cop::Style::GlobalVars::BUILT_IN_VARS = T.let(T.unsafe(nil), Array) -# source://rubocop//lib/rubocop/cop/style/global_vars.rb#23 +# source://rubocop/lib/rubocop/cop/style/global_vars.rb#23 RuboCop::Cop::Style::GlobalVars::MSG = T.let(T.unsafe(nil), String) # Use a guard clause instead of wrapping the code inside a conditional @@ -38130,7 +38677,7 @@ RuboCop::Cop::Style::GlobalVars::MSG = T.let(T.unsafe(nil), String) # end # end # -# source://rubocop//lib/rubocop/cop/style/guard_clause.rb#114 +# source://rubocop/lib/rubocop/cop/style/guard_clause.rb#114 class RuboCop::Cop::Style::GuardClause < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp include ::RuboCop::Cop::MinBodyLength @@ -38139,94 +38686,94 @@ class RuboCop::Cop::Style::GuardClause < ::RuboCop::Cop::Base include ::RuboCop::Cop::StatementModifier extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/guard_clause.rb#132 + # source://rubocop/lib/rubocop/cop/style/guard_clause.rb#132 def on_block(node); end - # source://rubocop//lib/rubocop/cop/style/guard_clause.rb#123 + # source://rubocop/lib/rubocop/cop/style/guard_clause.rb#123 def on_def(node); end - # source://rubocop//lib/rubocop/cop/style/guard_clause.rb#123 + # source://rubocop/lib/rubocop/cop/style/guard_clause.rb#123 def on_defs(node); end - # source://rubocop//lib/rubocop/cop/style/guard_clause.rb#139 + # source://rubocop/lib/rubocop/cop/style/guard_clause.rb#139 def on_if(node); end - # source://rubocop//lib/rubocop/cop/style/guard_clause.rb#132 + # source://rubocop/lib/rubocop/cop/style/guard_clause.rb#132 def on_numblock(node); end private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/guard_clause.rb#275 + # source://rubocop/lib/rubocop/cop/style/guard_clause.rb#275 def accepted_form?(node, ending: T.unsafe(nil)); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/guard_clause.rb#285 + # source://rubocop/lib/rubocop/cop/style/guard_clause.rb#285 def accepted_if?(node, ending); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/guard_clause.rb#312 + # source://rubocop/lib/rubocop/cop/style/guard_clause.rb#312 def allowed_consecutive_conditionals?; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/guard_clause.rb#265 + # 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 + # 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 + # source://rubocop/lib/rubocop/cop/style/guard_clause.rb#210 def autocorrect(corrector, node, condition, replacement, guard); end - # source://rubocop//lib/rubocop/cop/style/guard_clause.rb#236 + # source://rubocop/lib/rubocop/cop/style/guard_clause.rb#236 def autocorrect_heredoc_argument(corrector, node, heredoc_branch, leave_branch, guard); end - # source://rubocop//lib/rubocop/cop/style/guard_clause.rb#159 + # source://rubocop/lib/rubocop/cop/style/guard_clause.rb#159 def check_ending_body(body); end - # source://rubocop//lib/rubocop/cop/style/guard_clause.rb#170 + # source://rubocop/lib/rubocop/cop/style/guard_clause.rb#170 def check_ending_if(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/guard_clause.rb#180 + # source://rubocop/lib/rubocop/cop/style/guard_clause.rb#180 def consecutive_conditionals?(parent, node); end - # source://rubocop//lib/rubocop/cop/style/guard_clause.rb#257 + # source://rubocop/lib/rubocop/cop/style/guard_clause.rb#257 def guard_clause_source(guard_clause); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/guard_clause.rb#232 + # source://rubocop/lib/rubocop/cop/style/guard_clause.rb#232 def heredoc?(argument); end - # source://rubocop//lib/rubocop/cop/style/guard_clause.rb#248 + # source://rubocop/lib/rubocop/cop/style/guard_clause.rb#248 def range_of_branch_to_remove(node, guard); end - # source://rubocop//lib/rubocop/cop/style/guard_clause.rb#188 + # 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#308 + # source://rubocop/lib/rubocop/cop/style/guard_clause.rb#308 def remove_whole_lines(corrector, range); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/guard_clause.rb#270 + # source://rubocop/lib/rubocop/cop/style/guard_clause.rb#270 def too_long_for_single_line?(node, example); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/guard_clause.rb#279 + # source://rubocop/lib/rubocop/cop/style/guard_clause.rb#279 def trivial?(node); end end -# source://rubocop//lib/rubocop/cop/style/guard_clause.rb#120 +# source://rubocop/lib/rubocop/cop/style/guard_clause.rb#120 RuboCop::Cop::Style::GuardClause::MSG = T.let(T.unsafe(nil), String) # Checks for presence or absence of braces around hash literal as a last @@ -38254,42 +38801,42 @@ RuboCop::Cop::Style::GuardClause::MSG = T.let(T.unsafe(nil), String) # # good # [{ one: 1 }, { two: 2 }] # -# source://rubocop//lib/rubocop/cop/style/hash_as_last_array_item.rb#31 +# source://rubocop/lib/rubocop/cop/style/hash_as_last_array_item.rb#31 class RuboCop::Cop::Style::HashAsLastArrayItem < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp include ::RuboCop::Cop::ConfigurableEnforcedStyle extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/hash_as_last_array_item.rb#36 + # source://rubocop/lib/rubocop/cop/style/hash_as_last_array_item.rb#36 def on_hash(node); end private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/hash_as_last_array_item.rb#85 + # source://rubocop/lib/rubocop/cop/style/hash_as_last_array_item.rb#85 def braces_style?; end - # source://rubocop//lib/rubocop/cop/style/hash_as_last_array_item.rb#66 + # source://rubocop/lib/rubocop/cop/style/hash_as_last_array_item.rb#66 def check_braces(node); end - # source://rubocop//lib/rubocop/cop/style/hash_as_last_array_item.rb#74 + # source://rubocop/lib/rubocop/cop/style/hash_as_last_array_item.rb#74 def check_no_braces(node); end - # source://rubocop//lib/rubocop/cop/style/hash_as_last_array_item.rb#50 + # source://rubocop/lib/rubocop/cop/style/hash_as_last_array_item.rb#50 def containing_array(hash_node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/hash_as_last_array_item.rb#61 + # source://rubocop/lib/rubocop/cop/style/hash_as_last_array_item.rb#61 def explicit_array?(array); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/hash_as_last_array_item.rb#55 + # source://rubocop/lib/rubocop/cop/style/hash_as_last_array_item.rb#55 def last_array_item?(array, node); end - # source://rubocop//lib/rubocop/cop/style/hash_as_last_array_item.rb#89 + # source://rubocop/lib/rubocop/cop/style/hash_as_last_array_item.rb#89 def remove_last_element_trailing_comma(corrector, node); end end @@ -38319,62 +38866,62 @@ end # # bad # Hash[*ary] # -# source://rubocop//lib/rubocop/cop/style/hash_conversion.rb#44 +# source://rubocop/lib/rubocop/cop/style/hash_conversion.rb#44 class RuboCop::Cop::Style::HashConversion < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/hash_conversion.rb#54 + # source://rubocop/lib/rubocop/cop/style/hash_conversion.rb#54 def hash_from_array?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/style/hash_conversion.rb#56 + # source://rubocop/lib/rubocop/cop/style/hash_conversion.rb#56 def on_send(node); end private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/hash_conversion.rb#138 + # source://rubocop/lib/rubocop/cop/style/hash_conversion.rb#137 def allowed_splat_argument?; end - # source://rubocop//lib/rubocop/cop/style/hash_conversion.rb#131 + # source://rubocop/lib/rubocop/cop/style/hash_conversion.rb#130 def args_to_hash(args); end - # source://rubocop//lib/rubocop/cop/style/hash_conversion.rb#118 + # source://rubocop/lib/rubocop/cop/style/hash_conversion.rb#117 def multi_argument(node); end - # source://rubocop//lib/rubocop/cop/style/hash_conversion.rb#94 + # source://rubocop/lib/rubocop/cop/style/hash_conversion.rb#94 def register_offense_for_hash(node, hash_argument); end - # source://rubocop//lib/rubocop/cop/style/hash_conversion.rb#103 + # source://rubocop/lib/rubocop/cop/style/hash_conversion.rb#103 def register_offense_for_zip_method(node, zip_method); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/hash_conversion.rb#113 + # source://rubocop/lib/rubocop/cop/style/hash_conversion.rb#113 def requires_parens?(node); end - # source://rubocop//lib/rubocop/cop/style/hash_conversion.rb#71 + # source://rubocop/lib/rubocop/cop/style/hash_conversion.rb#71 def single_argument(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/hash_conversion.rb#88 + # source://rubocop/lib/rubocop/cop/style/hash_conversion.rb#88 def use_zip_method_without_argument?(first_argument); end end -# source://rubocop//lib/rubocop/cop/style/hash_conversion.rb#49 +# source://rubocop/lib/rubocop/cop/style/hash_conversion.rb#49 RuboCop::Cop::Style::HashConversion::MSG_LITERAL_HASH_ARG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/hash_conversion.rb#48 +# source://rubocop/lib/rubocop/cop/style/hash_conversion.rb#48 RuboCop::Cop::Style::HashConversion::MSG_LITERAL_MULTI_ARG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/hash_conversion.rb#50 +# source://rubocop/lib/rubocop/cop/style/hash_conversion.rb#50 RuboCop::Cop::Style::HashConversion::MSG_SPLAT = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/hash_conversion.rb#47 +# source://rubocop/lib/rubocop/cop/style/hash_conversion.rb#47 RuboCop::Cop::Style::HashConversion::MSG_TO_H = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/hash_conversion.rb#51 +# source://rubocop/lib/rubocop/cop/style/hash_conversion.rb#51 RuboCop::Cop::Style::HashConversion::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Checks for uses of `each_key` and `each_value` Hash methods. @@ -38402,99 +38949,99 @@ RuboCop::Cop::Style::HashConversion::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Arr # execute(sql).keys.each { |v| p v } # execute(sql).values.each { |v| p v } # -# source://rubocop//lib/rubocop/cop/style/hash_each_methods.rb#36 +# source://rubocop/lib/rubocop/cop/style/hash_each_methods.rb#36 class RuboCop::Cop::Style::HashEachMethods < ::RuboCop::Cop::Base include ::RuboCop::Cop::AllowedReceivers include ::RuboCop::Cop::Lint::UnusedArgument extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/hash_each_methods.rb#79 + # source://rubocop/lib/rubocop/cop/style/hash_each_methods.rb#79 def check_unused_block_args(node, key, value); end - # source://rubocop//lib/rubocop/cop/style/hash_each_methods.rb#51 + # source://rubocop/lib/rubocop/cop/style/hash_each_methods.rb#51 def each_arguments(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/style/hash_each_methods.rb#61 + # source://rubocop/lib/rubocop/cop/style/hash_each_methods.rb#61 def hash_mutated?(param0 = T.unsafe(nil), param1); end - # source://rubocop//lib/rubocop/cop/style/hash_each_methods.rb#46 + # source://rubocop/lib/rubocop/cop/style/hash_each_methods.rb#46 def kv_each(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/style/hash_each_methods.rb#56 + # source://rubocop/lib/rubocop/cop/style/hash_each_methods.rb#56 def kv_each_with_block_pass(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/style/hash_each_methods.rb#65 + # source://rubocop/lib/rubocop/cop/style/hash_each_methods.rb#65 def on_block(node); end - # source://rubocop//lib/rubocop/cop/style/hash_each_methods.rb#100 + # source://rubocop/lib/rubocop/cop/style/hash_each_methods.rb#100 def on_block_pass(node); end - # source://rubocop//lib/rubocop/cop/style/hash_each_methods.rb#65 + # source://rubocop/lib/rubocop/cop/style/hash_each_methods.rb#65 def on_numblock(node); end private - # source://rubocop//lib/rubocop/cop/style/hash_each_methods.rb#186 + # source://rubocop/lib/rubocop/cop/style/hash_each_methods.rb#186 def check_argument(variable); end - # source://rubocop//lib/rubocop/cop/style/hash_each_methods.rb#210 + # source://rubocop/lib/rubocop/cop/style/hash_each_methods.rb#210 def correct_args(node, corrector); end - # source://rubocop//lib/rubocop/cop/style/hash_each_methods.rb#196 + # source://rubocop/lib/rubocop/cop/style/hash_each_methods.rb#196 def correct_implicit(node, corrector, method_name); end - # source://rubocop//lib/rubocop/cop/style/hash_each_methods.rb#201 + # source://rubocop/lib/rubocop/cop/style/hash_each_methods.rb#201 def correct_key_value_each(node, corrector); end - # source://rubocop//lib/rubocop/cop/style/hash_each_methods.rb#182 + # source://rubocop/lib/rubocop/cop/style/hash_each_methods.rb#182 def format_message(method_name, current); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/hash_each_methods.rb#108 + # source://rubocop/lib/rubocop/cop/style/hash_each_methods.rb#108 def handleable?(node); end - # source://rubocop//lib/rubocop/cop/style/hash_each_methods.rb#217 + # source://rubocop/lib/rubocop/cop/style/hash_each_methods.rb#217 def kv_range(outer_node); end - # source://rubocop//lib/rubocop/cop/style/hash_each_methods.rb#139 + # source://rubocop/lib/rubocop/cop/style/hash_each_methods.rb#139 def message(prefer, method_name, unused_code); end - # source://rubocop//lib/rubocop/cop/style/hash_each_methods.rb#145 + # source://rubocop/lib/rubocop/cop/style/hash_each_methods.rb#145 def register_each_args_offense(node, message, prefer, unused_range); end - # source://rubocop//lib/rubocop/cop/style/hash_each_methods.rb#116 + # source://rubocop/lib/rubocop/cop/style/hash_each_methods.rb#116 def register_kv_offense(target, method); end - # source://rubocop//lib/rubocop/cop/style/hash_each_methods.rb#152 + # source://rubocop/lib/rubocop/cop/style/hash_each_methods.rb#152 def register_kv_with_block_pass_offense(node, target, method); end - # source://rubocop//lib/rubocop/cop/style/hash_each_methods.rb#173 + # source://rubocop/lib/rubocop/cop/style/hash_each_methods.rb#173 def root_receiver(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/hash_each_methods.rb#127 + # source://rubocop/lib/rubocop/cop/style/hash_each_methods.rb#127 def unused_block_arg_exist?(node, block_arg); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/hash_each_methods.rb#163 + # source://rubocop/lib/rubocop/cop/style/hash_each_methods.rb#163 def use_array_converter_method_as_preceding?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/hash_each_methods.rb#192 + # source://rubocop/lib/rubocop/cop/style/hash_each_methods.rb#192 def used?(arg); end end -# source://rubocop//lib/rubocop/cop/style/hash_each_methods.rb#43 +# source://rubocop/lib/rubocop/cop/style/hash_each_methods.rb#43 RuboCop::Cop::Style::HashEachMethods::ARRAY_CONVERTER_METHODS = T.let(T.unsafe(nil), Array) -# source://rubocop//lib/rubocop/cop/style/hash_each_methods.rb#41 +# source://rubocop/lib/rubocop/cop/style/hash_each_methods.rb#41 RuboCop::Cop::Style::HashEachMethods::MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/hash_each_methods.rb#42 +# source://rubocop/lib/rubocop/cop/style/hash_each_methods.rb#42 RuboCop::Cop::Style::HashEachMethods::UNUSED_BLOCK_ARG_MSG = T.let(T.unsafe(nil), String) # Checks for usages of `Hash#reject`, `Hash#select`, and `Hash#filter` methods @@ -38513,78 +39060,89 @@ RuboCop::Cop::Style::HashEachMethods::UNUSED_BLOCK_ARG_MSG = T.let(T.unsafe(nil) # {foo: 1, bar: 2, baz: 3}.reject {|k, v| k == :bar } # {foo: 1, bar: 2, baz: 3}.select {|k, v| k != :bar } # {foo: 1, bar: 2, baz: 3}.filter {|k, v| k != :bar } +# {foo: 1, bar: 2, baz: 3}.reject {|k, v| k.eql?(:bar) } +# +# # bad # {foo: 1, bar: 2, baz: 3}.reject {|k, v| %i[bar].include?(k) } # {foo: 1, bar: 2, baz: 3}.select {|k, v| !%i[bar].include?(k) } # {foo: 1, bar: 2, baz: 3}.filter {|k, v| !%i[bar].include?(k) } # +# # bad +# {foo: 1, bar: 2, baz: 3}.reject {|k, v| !%i[bar].exclude?(k) } +# {foo: 1, bar: 2, baz: 3}.select {|k, v| %i[bar].exclude?(k) } +# +# # bad +# {foo: 1, bar: 2, baz: 3}.reject {|k, v| k.in?(%i[bar]) } +# {foo: 1, bar: 2, baz: 3}.select {|k, v| !k.in?(%i[bar]) } +# # # good # {foo: 1, bar: 2, baz: 3}.except(:bar) # -# source://rubocop//lib/rubocop/cop/style/hash_except.rb#33 +# source://rubocop/lib/rubocop/cop/style/hash_except.rb#44 class RuboCop::Cop::Style::HashExcept < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::TargetRubyVersion extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/hash_except.rb#60 + # source://rubocop/lib/rubocop/cop/style/hash_except.rb#71 def bad_method_with_active_support?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/style/hash_except.rb#44 + # source://rubocop/lib/rubocop/cop/style/hash_except.rb#55 def bad_method_with_poro?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/style/hash_except.rb#75 + # source://rubocop/lib/rubocop/cop/style/hash_except.rb#86 def on_csend(node); end - # source://rubocop//lib/rubocop/cop/style/hash_except.rb#75 + # source://rubocop/lib/rubocop/cop/style/hash_except.rb#86 def on_send(node); end private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/hash_except.rb#95 - def bad_method?(method_name, block); end + # source://rubocop/lib/rubocop/cop/style/hash_except.rb#105 + def bad_method?(block); end - # source://rubocop//lib/rubocop/cop/style/hash_except.rb#169 + # source://rubocop/lib/rubocop/cop/style/hash_except.rb#181 def decorate_source(value); end - # source://rubocop//lib/rubocop/cop/style/hash_except.rb#177 + # source://rubocop/lib/rubocop/cop/style/hash_except.rb#189 def except_key(node); end - # source://rubocop//lib/rubocop/cop/style/hash_except.rb#156 + # source://rubocop/lib/rubocop/cop/style/hash_except.rb#168 def except_key_source(key); end - # source://rubocop//lib/rubocop/cop/style/hash_except.rb#150 + # source://rubocop/lib/rubocop/cop/style/hash_except.rb#162 def extract_body_if_negated(body); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/hash_except.rb#131 + # source://rubocop/lib/rubocop/cop/style/hash_except.rb#139 def included?(negated, body); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/hash_except.rb#135 + # source://rubocop/lib/rubocop/cop/style/hash_except.rb#147 def not_included?(negated, body); end - # source://rubocop//lib/rubocop/cop/style/hash_except.rb#186 + # source://rubocop/lib/rubocop/cop/style/hash_except.rb#198 def offense_range(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/hash_except.rb#139 + # source://rubocop/lib/rubocop/cop/style/hash_except.rb#151 def safe_to_register_offense?(block, except_key); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/hash_except.rb#115 + # source://rubocop/lib/rubocop/cop/style/hash_except.rb#123 def semantically_except_method?(send, block); end end -# source://rubocop//lib/rubocop/cop/style/hash_except.rb#40 +# source://rubocop/lib/rubocop/cop/style/hash_except.rb#51 RuboCop::Cop::Style::HashExcept::MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/hash_except.rb#41 +# source://rubocop/lib/rubocop/cop/style/hash_except.rb#52 RuboCop::Cop::Style::HashExcept::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Checks for places where `case-when` represents a simple 1:1 @@ -38619,25 +39177,25 @@ RuboCop::Cop::Style::HashExcept::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # 'http://au.example.com' # end # -# source://rubocop//lib/rubocop/cop/style/hash_like_case.rb#39 +# source://rubocop/lib/rubocop/cop/style/hash_like_case.rb#39 class RuboCop::Cop::Style::HashLikeCase < ::RuboCop::Cop::Base include ::RuboCop::Cop::MinBranchesCount - # source://rubocop//lib/rubocop/cop/style/hash_like_case.rb#45 + # source://rubocop/lib/rubocop/cop/style/hash_like_case.rb#45 def hash_like_case?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/style/hash_like_case.rb#53 + # source://rubocop/lib/rubocop/cop/style/hash_like_case.rb#53 def on_case(node); end private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/hash_like_case.rb#65 + # source://rubocop/lib/rubocop/cop/style/hash_like_case.rb#65 def nodes_of_same_type?(nodes); end end -# source://rubocop//lib/rubocop/cop/style/hash_like_case.rb#42 +# source://rubocop/lib/rubocop/cop/style/hash_like_case.rb#42 RuboCop::Cop::Style::HashLikeCase::MSG = T.let(T.unsafe(nil), String) # Checks hash literal syntax. @@ -38758,84 +39316,84 @@ RuboCop::Cop::Style::HashLikeCase::MSG = T.let(T.unsafe(nil), String) # {:c => 2, 'd' => 2} # acceptable since 'd' isn't a symbol # {d: 1, 'e' => 2} # technically not forbidden # -# source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#131 +# source://rubocop/lib/rubocop/cop/style/hash_syntax.rb#131 class RuboCop::Cop::Style::HashSyntax < ::RuboCop::Cop::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle include ::RuboCop::Cop::HashShorthandSyntax include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#185 + # source://rubocop/lib/rubocop/cop/style/hash_syntax.rb#185 def alternative_style; end - # source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#163 + # source://rubocop/lib/rubocop/cop/style/hash_syntax.rb#163 def hash_rockets_check(pairs); end - # source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#177 + # source://rubocop/lib/rubocop/cop/style/hash_syntax.rb#177 def no_mixed_keys_check(pairs); end - # source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#141 + # source://rubocop/lib/rubocop/cop/style/hash_syntax.rb#141 def on_hash(node); end - # source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#159 + # source://rubocop/lib/rubocop/cop/style/hash_syntax.rb#159 def ruby19_check(pairs); end - # source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#167 + # source://rubocop/lib/rubocop/cop/style/hash_syntax.rb#167 def ruby19_no_mixed_keys_check(pairs); end private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#217 + # source://rubocop/lib/rubocop/cop/style/hash_syntax.rb#217 def acceptable_19_syntax_symbol?(sym_name); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#274 + # source://rubocop/lib/rubocop/cop/style/hash_syntax.rb#274 def argument_without_space?(node); end - # source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#196 + # source://rubocop/lib/rubocop/cop/style/hash_syntax.rb#196 def autocorrect(corrector, node); end - # source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#278 + # source://rubocop/lib/rubocop/cop/style/hash_syntax.rb#278 def autocorrect_hash_rockets(corrector, pair_node); end - # source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#287 + # source://rubocop/lib/rubocop/cop/style/hash_syntax.rb#287 def autocorrect_no_mixed_keys(corrector, pair_node); end - # source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#253 + # source://rubocop/lib/rubocop/cop/style/hash_syntax.rb#253 def autocorrect_ruby19(corrector, pair_node); end - # source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#238 + # source://rubocop/lib/rubocop/cop/style/hash_syntax.rb#238 def check(pairs, delim, msg); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#295 + # source://rubocop/lib/rubocop/cop/style/hash_syntax.rb#295 def force_hash_rockets?(pairs); end - # source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#266 + # source://rubocop/lib/rubocop/cop/style/hash_syntax.rb#266 def range_for_autocorrect_ruby19(pair_node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#206 + # source://rubocop/lib/rubocop/cop/style/hash_syntax.rb#206 def sym_indices?(pairs); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#210 + # source://rubocop/lib/rubocop/cop/style/hash_syntax.rb#210 def word_symbol_pair?(pair); end end -# source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#137 +# source://rubocop/lib/rubocop/cop/style/hash_syntax.rb#137 RuboCop::Cop::Style::HashSyntax::MSG_19 = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#139 +# source://rubocop/lib/rubocop/cop/style/hash_syntax.rb#139 RuboCop::Cop::Style::HashSyntax::MSG_HASH_ROCKETS = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#138 +# source://rubocop/lib/rubocop/cop/style/hash_syntax.rb#138 RuboCop::Cop::Style::HashSyntax::MSG_NO_MIXED_KEYS = T.let(T.unsafe(nil), String) # Looks for uses of `\_.each_with_object({}) {...}`, @@ -38856,30 +39414,30 @@ RuboCop::Cop::Style::HashSyntax::MSG_NO_MIXED_KEYS = T.let(T.unsafe(nil), String # {a: 1, b: 2}.transform_keys { |k| foo(k) } # {a: 1, b: 2}.transform_keys { |k| k.to_s } # -# source://rubocop//lib/rubocop/cop/style/hash_transform_keys.rb#28 +# source://rubocop/lib/rubocop/cop/style/hash_transform_keys.rb#28 class RuboCop::Cop::Style::HashTransformKeys < ::RuboCop::Cop::Base include ::RuboCop::Cop::HashTransformMethod extend ::RuboCop::Cop::AutoCorrector extend ::RuboCop::Cop::TargetRubyVersion - # source://rubocop//lib/rubocop/cop/style/hash_transform_keys.rb#36 + # source://rubocop/lib/rubocop/cop/style/hash_transform_keys.rb#36 def on_bad_each_with_object(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/style/hash_transform_keys.rb#48 + # source://rubocop/lib/rubocop/cop/style/hash_transform_keys.rb#48 def on_bad_hash_brackets_map(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/style/hash_transform_keys.rb#61 + # source://rubocop/lib/rubocop/cop/style/hash_transform_keys.rb#61 def on_bad_map_to_h(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/style/hash_transform_keys.rb#73 + # source://rubocop/lib/rubocop/cop/style/hash_transform_keys.rb#73 def on_bad_to_h(param0 = T.unsafe(nil)); end private - # source://rubocop//lib/rubocop/cop/style/hash_transform_keys.rb#84 + # source://rubocop/lib/rubocop/cop/style/hash_transform_keys.rb#84 def extract_captures(match); end - # source://rubocop//lib/rubocop/cop/style/hash_transform_keys.rb#89 + # source://rubocop/lib/rubocop/cop/style/hash_transform_keys.rb#89 def new_method_name; end end @@ -38899,30 +39457,30 @@ end # {a: 1, b: 2}.transform_values { |v| foo(v) } # {a: 1, b: 2}.transform_values { |v| v * v } # -# source://rubocop//lib/rubocop/cop/style/hash_transform_values.rb#26 +# source://rubocop/lib/rubocop/cop/style/hash_transform_values.rb#26 class RuboCop::Cop::Style::HashTransformValues < ::RuboCop::Cop::Base include ::RuboCop::Cop::HashTransformMethod extend ::RuboCop::Cop::AutoCorrector extend ::RuboCop::Cop::TargetRubyVersion - # source://rubocop//lib/rubocop/cop/style/hash_transform_values.rb#34 + # source://rubocop/lib/rubocop/cop/style/hash_transform_values.rb#34 def on_bad_each_with_object(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/style/hash_transform_values.rb#46 + # source://rubocop/lib/rubocop/cop/style/hash_transform_values.rb#46 def on_bad_hash_brackets_map(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/style/hash_transform_values.rb#59 + # source://rubocop/lib/rubocop/cop/style/hash_transform_values.rb#59 def on_bad_map_to_h(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/style/hash_transform_values.rb#71 + # source://rubocop/lib/rubocop/cop/style/hash_transform_values.rb#71 def on_bad_to_h(param0 = T.unsafe(nil)); end private - # source://rubocop//lib/rubocop/cop/style/hash_transform_values.rb#82 + # source://rubocop/lib/rubocop/cop/style/hash_transform_values.rb#82 def extract_captures(match); end - # source://rubocop//lib/rubocop/cop/style/hash_transform_values.rb#87 + # source://rubocop/lib/rubocop/cop/style/hash_transform_values.rb#87 def new_method_name; end end @@ -39013,85 +39571,85 @@ end # do_z # end # -# source://rubocop//lib/rubocop/cop/style/identical_conditional_branches.rb#110 +# source://rubocop/lib/rubocop/cop/style/identical_conditional_branches.rb#110 class RuboCop::Cop::Style::IdenticalConditionalBranches < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/identical_conditional_branches.rb#123 + # source://rubocop/lib/rubocop/cop/style/identical_conditional_branches.rb#123 def on_case(node); end - # source://rubocop//lib/rubocop/cop/style/identical_conditional_branches.rb#130 + # source://rubocop/lib/rubocop/cop/style/identical_conditional_branches.rb#130 def on_case_match(node); end - # source://rubocop//lib/rubocop/cop/style/identical_conditional_branches.rb#116 + # source://rubocop/lib/rubocop/cop/style/identical_conditional_branches.rb#116 def on_if(node); end private - # source://rubocop//lib/rubocop/cop/style/identical_conditional_branches.rb#184 + # source://rubocop/lib/rubocop/cop/style/identical_conditional_branches.rb#184 def assignable_condition_value(node); end - # source://rubocop//lib/rubocop/cop/style/identical_conditional_branches.rb#140 + # source://rubocop/lib/rubocop/cop/style/identical_conditional_branches.rb#140 def check_branches(node, branches); end - # source://rubocop//lib/rubocop/cop/style/identical_conditional_branches.rb#193 + # source://rubocop/lib/rubocop/cop/style/identical_conditional_branches.rb#193 def check_expressions(node, expressions, insert_position); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/identical_conditional_branches.rb#173 + # source://rubocop/lib/rubocop/cop/style/identical_conditional_branches.rb#173 def duplicated_expressions?(node, expressions); end # `elsif` branches show up in the if node as nested `else` branches. We # need to recursively iterate over all `else` branches. # - # source://rubocop//lib/rubocop/cop/style/identical_conditional_branches.rb#233 + # source://rubocop/lib/rubocop/cop/style/identical_conditional_branches.rb#233 def expand_elses(branch); end - # source://rubocop//lib/rubocop/cop/style/identical_conditional_branches.rb#248 + # source://rubocop/lib/rubocop/cop/style/identical_conditional_branches.rb#248 def head(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/identical_conditional_branches.rb#217 + # source://rubocop/lib/rubocop/cop/style/identical_conditional_branches.rb#217 def last_child_of_parent?(node); end - # source://rubocop//lib/rubocop/cop/style/identical_conditional_branches.rb#227 + # source://rubocop/lib/rubocop/cop/style/identical_conditional_branches.rb#227 def message(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/identical_conditional_branches.rb#223 + # source://rubocop/lib/rubocop/cop/style/identical_conditional_branches.rb#223 def single_child_branch?(branch_node); end - # source://rubocop//lib/rubocop/cop/style/identical_conditional_branches.rb#244 + # source://rubocop/lib/rubocop/cop/style/identical_conditional_branches.rb#244 def tail(node); end end -# source://rubocop//lib/rubocop/cop/style/identical_conditional_branches.rb#114 +# source://rubocop/lib/rubocop/cop/style/identical_conditional_branches.rb#114 RuboCop::Cop::Style::IdenticalConditionalBranches::MSG = T.let(T.unsafe(nil), String) # Corrector to correct conditional assignment in `if` statements. # -# source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#559 +# source://rubocop/lib/rubocop/cop/style/conditional_assignment.rb#557 class RuboCop::Cop::Style::IfCorrector extend ::RuboCop::Cop::Style::ConditionalAssignmentHelper extend ::RuboCop::Cop::Style::ConditionalCorrectorHelper class << self - # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#564 + # source://rubocop/lib/rubocop/cop/style/conditional_assignment.rb#562 def correct(corrector, cop, node); end - # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#568 + # source://rubocop/lib/rubocop/cop/style/conditional_assignment.rb#566 def move_assignment_inside_condition(corrector, node); end private - # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#582 + # source://rubocop/lib/rubocop/cop/style/conditional_assignment.rb#580 def extract_tail_branches(node); end - # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#589 + # source://rubocop/lib/rubocop/cop/style/conditional_assignment.rb#587 def move_branch_inside_condition(corrector, branch, condition, assignment, column); end end end @@ -39149,48 +39707,48 @@ end # action_b # end # -# source://rubocop//lib/rubocop/cop/style/if_inside_else.rb#61 +# source://rubocop/lib/rubocop/cop/style/if_inside_else.rb#61 class RuboCop::Cop::Style::IfInsideElse < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/if_inside_else.rb#69 + # source://rubocop/lib/rubocop/cop/style/if_inside_else.rb#68 def on_if(node); end private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/if_inside_else.rb#150 + # source://rubocop/lib/rubocop/cop/style/if_inside_else.rb#149 def allow_if_modifier?; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/if_inside_else.rb#146 + # source://rubocop/lib/rubocop/cop/style/if_inside_else.rb#145 def allow_if_modifier_in_else_branch?(else_branch); end - # source://rubocop//lib/rubocop/cop/style/if_inside_else.rb#88 + # source://rubocop/lib/rubocop/cop/style/if_inside_else.rb#87 def autocorrect(corrector, node); end - # source://rubocop//lib/rubocop/cop/style/if_inside_else.rb#117 + # source://rubocop/lib/rubocop/cop/style/if_inside_else.rb#116 def correct_to_elsif_from_if_inside_else_form(corrector, node, condition); end - # source://rubocop//lib/rubocop/cop/style/if_inside_else.rb#109 + # source://rubocop/lib/rubocop/cop/style/if_inside_else.rb#108 def correct_to_elsif_from_modifier_form(corrector, node); end - # source://rubocop//lib/rubocop/cop/style/if_inside_else.rb#135 + # source://rubocop/lib/rubocop/cop/style/if_inside_else.rb#134 def find_end_range(node); end - # source://rubocop//lib/rubocop/cop/style/if_inside_else.rb#142 + # source://rubocop/lib/rubocop/cop/style/if_inside_else.rb#141 def if_condition_range(node, condition); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/if_inside_else.rb#131 + # source://rubocop/lib/rubocop/cop/style/if_inside_else.rb#130 def then?(node); end end -# source://rubocop//lib/rubocop/cop/style/if_inside_else.rb#66 +# source://rubocop/lib/rubocop/cop/style/if_inside_else.rb#65 RuboCop::Cop::Style::IfInsideElse::MSG = T.let(T.unsafe(nil), String) # Checks for `if` and `unless` statements that would fit on one line if @@ -39251,7 +39809,7 @@ RuboCop::Cop::Style::IfInsideElse::MSG = T.let(T.unsafe(nil), String) # do_something # end # -# source://rubocop//lib/rubocop/cop/style/if_unless_modifier.rb#63 +# source://rubocop/lib/rubocop/cop/style/if_unless_modifier.rb#63 class RuboCop::Cop::Style::IfUnlessModifier < ::RuboCop::Cop::Base include ::RuboCop::Cop::Alignment include ::RuboCop::Cop::LineLengthHelp @@ -39261,120 +39819,120 @@ class RuboCop::Cop::Style::IfUnlessModifier < ::RuboCop::Cop::Base include ::RuboCop::Cop::CommentsHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/if_unless_modifier.rb#80 + # source://rubocop/lib/rubocop/cop/style/if_unless_modifier.rb#80 def on_if(node); end private - # source://rubocop//lib/rubocop/cop/style/if_unless_modifier.rb#171 + # source://rubocop/lib/rubocop/cop/style/if_unless_modifier.rb#171 def allowed_patterns; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/if_unless_modifier.rb#231 + # source://rubocop/lib/rubocop/cop/style/if_unless_modifier.rb#231 def another_statement_on_same_line?(node); end - # source://rubocop//lib/rubocop/cop/style/if_unless_modifier.rb#132 + # source://rubocop/lib/rubocop/cop/style/if_unless_modifier.rb#132 def autocorrect(corrector, node); end - # source://rubocop//lib/rubocop/cop/style/if_unless_modifier.rb#285 + # source://rubocop/lib/rubocop/cop/style/if_unless_modifier.rb#285 def comment_on_node_line(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/if_unless_modifier.rb#104 + # source://rubocop/lib/rubocop/cop/style/if_unless_modifier.rb#104 def defined_argument_is_undefined?(if_node, defined_node); end - # source://rubocop//lib/rubocop/cop/style/if_unless_modifier.rb#96 + # source://rubocop/lib/rubocop/cop/style/if_unless_modifier.rb#96 def defined_nodes(condition); end - # source://rubocop//lib/rubocop/cop/style/if_unless_modifier.rb#272 + # source://rubocop/lib/rubocop/cop/style/if_unless_modifier.rb#272 def extract_heredoc_from(last_argument); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/if_unless_modifier.rb#215 + # source://rubocop/lib/rubocop/cop/style/if_unless_modifier.rb#215 def line_length_enabled_at_line?(line); end - # source://rubocop//lib/rubocop/cop/style/if_unless_modifier.rb#124 + # source://rubocop/lib/rubocop/cop/style/if_unless_modifier.rb#124 def message(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/if_unless_modifier.rb#219 + # source://rubocop/lib/rubocop/cop/style/if_unless_modifier.rb#219 def named_capture_in_condition?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/if_unless_modifier.rb#223 + # source://rubocop/lib/rubocop/cop/style/if_unless_modifier.rb#223 def non_eligible_node?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/if_unless_modifier.rb#227 + # source://rubocop/lib/rubocop/cop/style/if_unless_modifier.rb#227 def non_simple_if_unless?(node); end - # source://rubocop//lib/rubocop/cop/style/if_unless_modifier.rb#114 + # source://rubocop/lib/rubocop/cop/style/if_unless_modifier.rb#114 def pattern_matching_nodes(condition); end - # source://rubocop//lib/rubocop/cop/style/if_unless_modifier.rb#289 + # source://rubocop/lib/rubocop/cop/style/if_unless_modifier.rb#289 def remove_comment(corrector, _node, comment); end - # source://rubocop//lib/rubocop/cop/style/if_unless_modifier.rb#279 + # source://rubocop/lib/rubocop/cop/style/if_unless_modifier.rb#279 def remove_heredoc(corrector, heredoc); end - # source://rubocop//lib/rubocop/cop/style/if_unless_modifier.rb#141 + # source://rubocop/lib/rubocop/cop/style/if_unless_modifier.rb#141 def replacement_for_modifier_form(corrector, node); end - # source://rubocop//lib/rubocop/cop/style/if_unless_modifier.rb#265 + # source://rubocop/lib/rubocop/cop/style/if_unless_modifier.rb#265 def to_modifier_form_with_move_comment(node, indentation, comment); end - # source://rubocop//lib/rubocop/cop/style/if_unless_modifier.rb#245 + # source://rubocop/lib/rubocop/cop/style/if_unless_modifier.rb#245 def to_normal_form(node, indentation); end - # source://rubocop//lib/rubocop/cop/style/if_unless_modifier.rb#253 + # source://rubocop/lib/rubocop/cop/style/if_unless_modifier.rb#253 def to_normal_form_with_heredoc(node, indentation, heredoc); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/if_unless_modifier.rb#165 + # source://rubocop/lib/rubocop/cop/style/if_unless_modifier.rb#165 def too_long_due_to_comment_after_modifier?(node, comment); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/if_unless_modifier.rb#160 + # source://rubocop/lib/rubocop/cop/style/if_unless_modifier.rb#160 def too_long_due_to_modifier?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/if_unless_modifier.rb#206 + # source://rubocop/lib/rubocop/cop/style/if_unless_modifier.rb#206 def too_long_line_based_on_allow_uri?(line); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/if_unless_modifier.rb#189 + # source://rubocop/lib/rubocop/cop/style/if_unless_modifier.rb#189 def too_long_line_based_on_config?(range, line); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/if_unless_modifier.rb#198 + # source://rubocop/lib/rubocop/cop/style/if_unless_modifier.rb#198 def too_long_line_based_on_ignore_cop_directives?(range, line); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/if_unless_modifier.rb#176 + # source://rubocop/lib/rubocop/cop/style/if_unless_modifier.rb#176 def too_long_single_line?(node); end class << self - # source://rubocop//lib/rubocop/cop/style/if_unless_modifier.rb#76 + # source://rubocop/lib/rubocop/cop/style/if_unless_modifier.rb#76 def autocorrect_incompatible_with; end end end -# source://rubocop//lib/rubocop/cop/style/if_unless_modifier.rb#71 +# source://rubocop/lib/rubocop/cop/style/if_unless_modifier.rb#71 RuboCop::Cop::Style::IfUnlessModifier::MSG_USE_MODIFIER = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/if_unless_modifier.rb#74 +# source://rubocop/lib/rubocop/cop/style/if_unless_modifier.rb#74 RuboCop::Cop::Style::IfUnlessModifier::MSG_USE_NORMAL = T.let(T.unsafe(nil), String) # Checks for if and unless statements used as modifiers of other if or @@ -39397,18 +39955,18 @@ RuboCop::Cop::Style::IfUnlessModifier::MSG_USE_NORMAL = T.let(T.unsafe(nil), Str # tired? ? 'stop' : 'go faster' # end # -# source://rubocop//lib/rubocop/cop/style/if_unless_modifier_of_if_unless.rb#25 +# source://rubocop/lib/rubocop/cop/style/if_unless_modifier_of_if_unless.rb#25 class RuboCop::Cop::Style::IfUnlessModifierOfIfUnless < ::RuboCop::Cop::Base include ::RuboCop::Cop::Alignment include ::RuboCop::Cop::LineLengthHelp include ::RuboCop::Cop::StatementModifier extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/if_unless_modifier_of_if_unless.rb#31 + # source://rubocop/lib/rubocop/cop/style/if_unless_modifier_of_if_unless.rb#31 def on_if(node); end end -# source://rubocop//lib/rubocop/cop/style/if_unless_modifier_of_if_unless.rb#29 +# source://rubocop/lib/rubocop/cop/style/if_unless_modifier_of_if_unless.rb#29 RuboCop::Cop::Style::IfUnlessModifierOfIfUnless::MSG = T.let(T.unsafe(nil), String) # Checks for redundant `if` with boolean literal branches. @@ -39461,61 +40019,61 @@ RuboCop::Cop::Style::IfUnlessModifierOfIfUnless::MSG = T.let(T.unsafe(nil), Stri # # good # num.nonzero? ? true : false # -# source://rubocop//lib/rubocop/cop/style/if_with_boolean_literal_branches.rb#61 +# source://rubocop/lib/rubocop/cop/style/if_with_boolean_literal_branches.rb#61 class RuboCop::Cop::Style::IfWithBooleanLiteralBranches < ::RuboCop::Cop::Base include ::RuboCop::Cop::AllowedMethods extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/if_with_boolean_literal_branches.rb#73 + # source://rubocop/lib/rubocop/cop/style/if_with_boolean_literal_branches.rb#73 def double_negative?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/style/if_with_boolean_literal_branches.rb#69 + # source://rubocop/lib/rubocop/cop/style/if_with_boolean_literal_branches.rb#69 def if_with_boolean_literal_branches?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/style/if_with_boolean_literal_branches.rb#75 + # source://rubocop/lib/rubocop/cop/style/if_with_boolean_literal_branches.rb#75 def on_if(node); end private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/if_with_boolean_literal_branches.rb#135 + # source://rubocop/lib/rubocop/cop/style/if_with_boolean_literal_branches.rb#135 def assume_boolean_value?(condition); end - # source://rubocop//lib/rubocop/cop/style/if_with_boolean_literal_branches.rb#113 + # source://rubocop/lib/rubocop/cop/style/if_with_boolean_literal_branches.rb#113 def message(node, keyword); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/if_with_boolean_literal_branches.rb#95 + # source://rubocop/lib/rubocop/cop/style/if_with_boolean_literal_branches.rb#95 def multiple_elsif?(node); end - # source://rubocop//lib/rubocop/cop/style/if_with_boolean_literal_branches.rb#101 + # source://rubocop/lib/rubocop/cop/style/if_with_boolean_literal_branches.rb#101 def offense_range_with_keyword(node, condition); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/if_with_boolean_literal_branches.rb#152 + # source://rubocop/lib/rubocop/cop/style/if_with_boolean_literal_branches.rb#152 def opposite_condition?(node); end - # source://rubocop//lib/rubocop/cop/style/if_with_boolean_literal_branches.rb#142 + # source://rubocop/lib/rubocop/cop/style/if_with_boolean_literal_branches.rb#142 def replacement_condition(node, condition); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/if_with_boolean_literal_branches.rb#157 + # source://rubocop/lib/rubocop/cop/style/if_with_boolean_literal_branches.rb#157 def require_parentheses?(condition); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/if_with_boolean_literal_branches.rb#121 + # source://rubocop/lib/rubocop/cop/style/if_with_boolean_literal_branches.rb#121 def return_boolean_value?(condition); end end -# source://rubocop//lib/rubocop/cop/style/if_with_boolean_literal_branches.rb#65 +# source://rubocop/lib/rubocop/cop/style/if_with_boolean_literal_branches.rb#65 RuboCop::Cop::Style::IfWithBooleanLiteralBranches::MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/if_with_boolean_literal_branches.rb#66 +# source://rubocop/lib/rubocop/cop/style/if_with_boolean_literal_branches.rb#66 RuboCop::Cop::Style::IfWithBooleanLiteralBranches::MSG_FOR_ELSIF = T.let(T.unsafe(nil), String) # Checks for uses of semicolon in if statements. @@ -39528,52 +40086,62 @@ RuboCop::Cop::Style::IfWithBooleanLiteralBranches::MSG_FOR_ELSIF = T.let(T.unsaf # # good # result = some_condition ? something : another_thing # -# source://rubocop//lib/rubocop/cop/style/if_with_semicolon.rb#16 +# source://rubocop/lib/rubocop/cop/style/if_with_semicolon.rb#16 class RuboCop::Cop::Style::IfWithSemicolon < ::RuboCop::Cop::Base include ::RuboCop::Cop::OnNormalIfUnless extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/if_with_semicolon.rb#24 + # source://rubocop/lib/rubocop/cop/style/if_with_semicolon.rb#24 def on_normal_if_unless(node); end private - # source://rubocop//lib/rubocop/cop/style/if_with_semicolon.rb#54 + # source://rubocop/lib/rubocop/cop/style/if_with_semicolon.rb#55 def autocorrect(corrector, node); end - # source://rubocop//lib/rubocop/cop/style/if_with_semicolon.rb#93 + # source://rubocop/lib/rubocop/cop/style/if_with_semicolon.rb#104 def build_else_branch(second_condition); end - # source://rubocop//lib/rubocop/cop/style/if_with_semicolon.rb#84 + # source://rubocop/lib/rubocop/cop/style/if_with_semicolon.rb#95 def build_expression(expr); end - # source://rubocop//lib/rubocop/cop/style/if_with_semicolon.rb#75 + # source://rubocop/lib/rubocop/cop/style/if_with_semicolon.rb#86 def correct_elsif(node); end - # source://rubocop//lib/rubocop/cop/style/if_with_semicolon.rb#40 + # source://rubocop/lib/rubocop/cop/style/if_with_semicolon.rb#42 def message(node); end - # source://rubocop//lib/rubocop/cop/style/if_with_semicolon.rb#66 + # source://rubocop/lib/rubocop/cop/style/if_with_semicolon.rb#77 def replacement(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/if_with_semicolon.rb#113 + # source://rubocop/lib/rubocop/cop/style/if_with_semicolon.rb#124 def require_argument_parentheses?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/if_with_semicolon.rb#62 - def use_block_in_branches?(node); end + # source://rubocop/lib/rubocop/cop/style/if_with_semicolon.rb#63 + def require_newline?(node); end + + # @return [Boolean] + # + # source://rubocop/lib/rubocop/cop/style/if_with_semicolon.rb#67 + def use_masgn_or_block_in_branches?(node); end + + # @return [Boolean] + # + # source://rubocop/lib/rubocop/cop/style/if_with_semicolon.rb#73 + def use_return_with_argument?(node); end end -# source://rubocop//lib/rubocop/cop/style/if_with_semicolon.rb#20 +# source://rubocop/lib/rubocop/cop/style/if_with_semicolon.rb#20 RuboCop::Cop::Style::IfWithSemicolon::MSG_IF_ELSE = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/if_with_semicolon.rb#21 +# source://rubocop/lib/rubocop/cop/style/if_with_semicolon.rb#21 RuboCop::Cop::Style::IfWithSemicolon::MSG_NEWLINE = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/if_with_semicolon.rb#22 +# source://rubocop/lib/rubocop/cop/style/if_with_semicolon.rb#22 RuboCop::Cop::Style::IfWithSemicolon::MSG_TERNARY = T.let(T.unsafe(nil), String) # Checks for `raise` or `fail` statements which do not specify an @@ -39588,19 +40156,19 @@ RuboCop::Cop::Style::IfWithSemicolon::MSG_TERNARY = T.let(T.unsafe(nil), String) # # good # raise ArgumentError, 'Error message here' # -# source://rubocop//lib/rubocop/cop/style/implicit_runtime_error.rb#17 +# source://rubocop/lib/rubocop/cop/style/implicit_runtime_error.rb#17 class RuboCop::Cop::Style::ImplicitRuntimeError < ::RuboCop::Cop::Base - # source://rubocop//lib/rubocop/cop/style/implicit_runtime_error.rb#23 + # source://rubocop/lib/rubocop/cop/style/implicit_runtime_error.rb#23 def implicit_runtime_error_raise_or_fail(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/style/implicit_runtime_error.rb#26 + # source://rubocop/lib/rubocop/cop/style/implicit_runtime_error.rb#26 def on_send(node); end end -# source://rubocop//lib/rubocop/cop/style/implicit_runtime_error.rb#18 +# source://rubocop/lib/rubocop/cop/style/implicit_runtime_error.rb#18 RuboCop::Cop::Style::ImplicitRuntimeError::MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/implicit_runtime_error.rb#20 +# source://rubocop/lib/rubocop/cop/style/implicit_runtime_error.rb#20 RuboCop::Cop::Style::ImplicitRuntimeError::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Checks for `in;` uses in `case` expressions. @@ -39618,24 +40186,24 @@ RuboCop::Cop::Style::ImplicitRuntimeError::RESTRICT_ON_SEND = T.let(T.unsafe(nil # in pattern_b then bar # end # -# source://rubocop//lib/rubocop/cop/style/in_pattern_then.rb#21 +# source://rubocop/lib/rubocop/cop/style/in_pattern_then.rb#21 class RuboCop::Cop::Style::InPatternThen < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector extend ::RuboCop::Cop::TargetRubyVersion - # source://rubocop//lib/rubocop/cop/style/in_pattern_then.rb#29 + # source://rubocop/lib/rubocop/cop/style/in_pattern_then.rb#29 def on_in_pattern(node); end private - # source://rubocop//lib/rubocop/cop/style/in_pattern_then.rb#46 + # source://rubocop/lib/rubocop/cop/style/in_pattern_then.rb#46 def alternative_pattern_source(pattern); end - # source://rubocop//lib/rubocop/cop/style/in_pattern_then.rb#50 + # source://rubocop/lib/rubocop/cop/style/in_pattern_then.rb#50 def collect_alternative_patterns(pattern); end end -# source://rubocop//lib/rubocop/cop/style/in_pattern_then.rb#27 +# source://rubocop/lib/rubocop/cop/style/in_pattern_then.rb#27 RuboCop::Cop::Style::InPatternThen::MSG = T.let(T.unsafe(nil), String) # Use `Kernel#loop` for infinite loops. @@ -39651,71 +40219,71 @@ RuboCop::Cop::Style::InPatternThen::MSG = T.let(T.unsafe(nil), String) # work # end # -# source://rubocop//lib/rubocop/cop/style/infinite_loop.rb#23 +# source://rubocop/lib/rubocop/cop/style/infinite_loop.rb#23 class RuboCop::Cop::Style::InfiniteLoop < ::RuboCop::Cop::Base include ::RuboCop::Cop::Alignment extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/infinite_loop.rb#35 + # source://rubocop/lib/rubocop/cop/style/infinite_loop.rb#35 def after_leaving_scope(scope, _variable_table); end - # source://rubocop//lib/rubocop/cop/style/infinite_loop.rb#44 + # source://rubocop/lib/rubocop/cop/style/infinite_loop.rb#44 def on_until(node); end - # source://rubocop//lib/rubocop/cop/style/infinite_loop.rb#44 + # source://rubocop/lib/rubocop/cop/style/infinite_loop.rb#44 def on_until_post(node); end - # source://rubocop//lib/rubocop/cop/style/infinite_loop.rb#40 + # source://rubocop/lib/rubocop/cop/style/infinite_loop.rb#40 def on_while(node); end - # source://rubocop//lib/rubocop/cop/style/infinite_loop.rb#40 + # source://rubocop/lib/rubocop/cop/style/infinite_loop.rb#40 def on_while_post(node); end private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/infinite_loop.rb#84 + # source://rubocop/lib/rubocop/cop/style/infinite_loop.rb#84 def assigned_before_loop?(var, range); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/infinite_loop.rb#80 + # source://rubocop/lib/rubocop/cop/style/infinite_loop.rb#80 def assigned_inside_loop?(var, range); end - # source://rubocop//lib/rubocop/cop/style/infinite_loop.rb#70 + # source://rubocop/lib/rubocop/cop/style/infinite_loop.rb#70 def autocorrect(corrector, node); end - # source://rubocop//lib/rubocop/cop/style/infinite_loop.rb#103 + # source://rubocop/lib/rubocop/cop/style/infinite_loop.rb#103 def modifier_replacement(node); end - # source://rubocop//lib/rubocop/cop/style/infinite_loop.rb#114 + # source://rubocop/lib/rubocop/cop/style/infinite_loop.rb#114 def non_modifier_range(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/infinite_loop.rb#89 + # source://rubocop/lib/rubocop/cop/style/infinite_loop.rb#89 def referenced_after_loop?(var, range); end - # source://rubocop//lib/rubocop/cop/style/infinite_loop.rb#94 + # source://rubocop/lib/rubocop/cop/style/infinite_loop.rb#94 def replace_begin_end_with_modifier(corrector, node); end - # source://rubocop//lib/rubocop/cop/style/infinite_loop.rb#99 + # source://rubocop/lib/rubocop/cop/style/infinite_loop.rb#99 def replace_source(corrector, range, replacement); end - # source://rubocop//lib/rubocop/cop/style/infinite_loop.rb#53 + # source://rubocop/lib/rubocop/cop/style/infinite_loop.rb#53 def while_or_until(node); end class << self - # source://rubocop//lib/rubocop/cop/style/infinite_loop.rb#31 + # source://rubocop/lib/rubocop/cop/style/infinite_loop.rb#31 def joining_forces; end end end -# source://rubocop//lib/rubocop/cop/style/infinite_loop.rb#27 +# source://rubocop/lib/rubocop/cop/style/infinite_loop.rb#27 RuboCop::Cop::Style::InfiniteLoop::LEADING_SPACE = T.let(T.unsafe(nil), Regexp) -# source://rubocop//lib/rubocop/cop/style/infinite_loop.rb#29 +# source://rubocop/lib/rubocop/cop/style/infinite_loop.rb#29 RuboCop::Cop::Style::InfiniteLoop::MSG = T.let(T.unsafe(nil), String) # Checks for trailing inline comments. @@ -39733,13 +40301,13 @@ RuboCop::Cop::Style::InfiniteLoop::MSG = T.let(T.unsafe(nil), String) # f.bar # Trailing inline comment # end # -# source://rubocop//lib/rubocop/cop/style/inline_comment.rb#20 +# source://rubocop/lib/rubocop/cop/style/inline_comment.rb#20 class RuboCop::Cop::Style::InlineComment < ::RuboCop::Cop::Base - # source://rubocop//lib/rubocop/cop/style/inline_comment.rb#23 + # source://rubocop/lib/rubocop/cop/style/inline_comment.rb#23 def on_new_investigation; end end -# source://rubocop//lib/rubocop/cop/style/inline_comment.rb#21 +# source://rubocop/lib/rubocop/cop/style/inline_comment.rb#21 RuboCop::Cop::Style::InlineComment::MSG = T.let(T.unsafe(nil), String) # Check for usages of not (`not` or `!`) called on a method @@ -39775,66 +40343,66 @@ RuboCop::Cop::Style::InlineComment::MSG = T.let(T.unsafe(nil), String) # f != 1 # end # -# source://rubocop//lib/rubocop/cop/style/inverse_methods.rb#43 +# source://rubocop/lib/rubocop/cop/style/inverse_methods.rb#43 class RuboCop::Cop::Style::InverseMethods < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/inverse_methods.rb#70 + # source://rubocop/lib/rubocop/cop/style/inverse_methods.rb#69 def inverse_block?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/style/inverse_methods.rb#61 + # source://rubocop/lib/rubocop/cop/style/inverse_methods.rb#60 def inverse_candidate?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/style/inverse_methods.rb#92 + # source://rubocop/lib/rubocop/cop/style/inverse_methods.rb#91 def on_block(node); end - # source://rubocop//lib/rubocop/cop/style/inverse_methods.rb#78 + # source://rubocop/lib/rubocop/cop/style/inverse_methods.rb#77 def on_csend(node); end - # source://rubocop//lib/rubocop/cop/style/inverse_methods.rb#92 + # source://rubocop/lib/rubocop/cop/style/inverse_methods.rb#91 def on_numblock(node); end - # source://rubocop//lib/rubocop/cop/style/inverse_methods.rb#78 + # source://rubocop/lib/rubocop/cop/style/inverse_methods.rb#77 def on_send(node); end private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/inverse_methods.rb#177 + # source://rubocop/lib/rubocop/cop/style/inverse_methods.rb#176 def camel_case_constant?(node); end - # source://rubocop//lib/rubocop/cop/style/inverse_methods.rb#121 + # source://rubocop/lib/rubocop/cop/style/inverse_methods.rb#120 def correct_inverse_block(corrector, node); end - # source://rubocop//lib/rubocop/cop/style/inverse_methods.rb#112 + # source://rubocop/lib/rubocop/cop/style/inverse_methods.rb#111 def correct_inverse_method(corrector, node); end - # source://rubocop//lib/rubocop/cop/style/inverse_methods.rb#128 + # source://rubocop/lib/rubocop/cop/style/inverse_methods.rb#127 def correct_inverse_selector(block, corrector); end - # source://rubocop//lib/rubocop/cop/style/inverse_methods.rb#181 + # source://rubocop/lib/rubocop/cop/style/inverse_methods.rb#180 def dot_range(loc); end - # source://rubocop//lib/rubocop/cop/style/inverse_methods.rb#166 + # source://rubocop/lib/rubocop/cop/style/inverse_methods.rb#165 def end_parentheses(node, method_call); end - # source://rubocop//lib/rubocop/cop/style/inverse_methods.rb#150 + # source://rubocop/lib/rubocop/cop/style/inverse_methods.rb#149 def inverse_blocks; end - # source://rubocop//lib/rubocop/cop/style/inverse_methods.rb#145 + # source://rubocop/lib/rubocop/cop/style/inverse_methods.rb#144 def inverse_methods; end - # source://rubocop//lib/rubocop/cop/style/inverse_methods.rb#191 + # source://rubocop/lib/rubocop/cop/style/inverse_methods.rb#190 def message(method, inverse); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/inverse_methods.rb#154 + # source://rubocop/lib/rubocop/cop/style/inverse_methods.rb#153 def negated?(node); end - # source://rubocop//lib/rubocop/cop/style/inverse_methods.rb#162 + # source://rubocop/lib/rubocop/cop/style/inverse_methods.rb#161 def not_to_receiver(node, method_call); end # When comparing classes, `!(Integer < Numeric)` is not the same as @@ -39842,39 +40410,39 @@ class RuboCop::Cop::Style::InverseMethods < ::RuboCop::Cop::Base # # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/inverse_methods.rb#172 + # source://rubocop/lib/rubocop/cop/style/inverse_methods.rb#171 def possible_class_hierarchy_check?(lhs, rhs, method); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/inverse_methods.rb#158 + # source://rubocop/lib/rubocop/cop/style/inverse_methods.rb#157 def relational_comparison_with_safe_navigation?(node); end - # source://rubocop//lib/rubocop/cop/style/inverse_methods.rb#185 + # source://rubocop/lib/rubocop/cop/style/inverse_methods.rb#184 def remove_end_parenthesis(corrector, node, method, method_call); end class << self - # source://rubocop//lib/rubocop/cop/style/inverse_methods.rb#56 + # source://rubocop/lib/rubocop/cop/style/inverse_methods.rb#55 def autocorrect_incompatible_with; end end end -# source://rubocop//lib/rubocop/cop/style/inverse_methods.rb#52 +# source://rubocop/lib/rubocop/cop/style/inverse_methods.rb#51 RuboCop::Cop::Style::InverseMethods::CAMEL_CASE = T.let(T.unsafe(nil), Regexp) -# source://rubocop//lib/rubocop/cop/style/inverse_methods.rb#49 +# source://rubocop/lib/rubocop/cop/style/inverse_methods.rb#48 RuboCop::Cop::Style::InverseMethods::CLASS_COMPARISON_METHODS = T.let(T.unsafe(nil), Array) -# source://rubocop//lib/rubocop/cop/style/inverse_methods.rb#50 +# source://rubocop/lib/rubocop/cop/style/inverse_methods.rb#49 RuboCop::Cop::Style::InverseMethods::EQUALITY_METHODS = T.let(T.unsafe(nil), Array) -# source://rubocop//lib/rubocop/cop/style/inverse_methods.rb#48 +# source://rubocop/lib/rubocop/cop/style/inverse_methods.rb#47 RuboCop::Cop::Style::InverseMethods::MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/inverse_methods.rb#51 +# source://rubocop/lib/rubocop/cop/style/inverse_methods.rb#50 RuboCop::Cop::Style::InverseMethods::NEGATED_EQUALITY_METHODS = T.let(T.unsafe(nil), Array) -# source://rubocop//lib/rubocop/cop/style/inverse_methods.rb#54 +# source://rubocop/lib/rubocop/cop/style/inverse_methods.rb#53 RuboCop::Cop::Style::InverseMethods::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Checks for usages of `unless` which can be replaced by `if` with inverted condition. @@ -39919,45 +40487,45 @@ RuboCop::Cop::Style::InverseMethods::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Arr # # good (if) # foo if !condition # -# source://rubocop//lib/rubocop/cop/style/invertible_unless_condition.rb#53 +# source://rubocop/lib/rubocop/cop/style/invertible_unless_condition.rb#53 class RuboCop::Cop::Style::InvertibleUnlessCondition < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/invertible_unless_condition.rb#58 + # source://rubocop/lib/rubocop/cop/style/invertible_unless_condition.rb#58 def on_if(node); end private - # source://rubocop//lib/rubocop/cop/style/invertible_unless_condition.rb#133 + # source://rubocop/lib/rubocop/cop/style/invertible_unless_condition.rb#133 def autocorrect(corrector, node); end - # source://rubocop//lib/rubocop/cop/style/invertible_unless_condition.rb#146 + # source://rubocop/lib/rubocop/cop/style/invertible_unless_condition.rb#146 def autocorrect_send_node(corrector, node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/invertible_unless_condition.rb#90 + # source://rubocop/lib/rubocop/cop/style/invertible_unless_condition.rb#90 def inheritance_check?(node); end - # source://rubocop//lib/rubocop/cop/style/invertible_unless_condition.rb#154 + # source://rubocop/lib/rubocop/cop/style/invertible_unless_condition.rb#154 def inverse_methods; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/invertible_unless_condition.rb#75 + # source://rubocop/lib/rubocop/cop/style/invertible_unless_condition.rb#75 def invertible?(node); end - # source://rubocop//lib/rubocop/cop/style/invertible_unless_condition.rb#96 + # source://rubocop/lib/rubocop/cop/style/invertible_unless_condition.rb#96 def preferred_condition(node); end - # source://rubocop//lib/rubocop/cop/style/invertible_unless_condition.rb#126 + # source://rubocop/lib/rubocop/cop/style/invertible_unless_condition.rb#126 def preferred_logical_condition(node); end - # source://rubocop//lib/rubocop/cop/style/invertible_unless_condition.rb#104 + # source://rubocop/lib/rubocop/cop/style/invertible_unless_condition.rb#104 def preferred_send_condition(node); end end -# source://rubocop//lib/rubocop/cop/style/invertible_unless_condition.rb#56 +# source://rubocop/lib/rubocop/cop/style/invertible_unless_condition.rb#56 RuboCop::Cop::Style::InvertibleUnlessCondition::MSG = T.let(T.unsafe(nil), String) # Checks for hardcoded IP addresses, which can make code @@ -39974,61 +40542,61 @@ RuboCop::Cop::Style::InvertibleUnlessCondition::MSG = T.let(T.unsafe(nil), Strin # # good # ip_address = ENV['DEPLOYMENT_IP_ADDRESS'] # -# source://rubocop//lib/rubocop/cop/style/ip_addresses.rb#21 +# source://rubocop/lib/rubocop/cop/style/ip_addresses.rb#21 class RuboCop::Cop::Style::IpAddresses < ::RuboCop::Cop::Base include ::RuboCop::Cop::StringHelp # Dummy implementation of method in ConfigurableEnforcedStyle that is # called from StringHelp. # - # source://rubocop//lib/rubocop/cop/style/ip_addresses.rb#46 + # source://rubocop/lib/rubocop/cop/style/ip_addresses.rb#46 def correct_style_detected; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/ip_addresses.rb#27 + # source://rubocop/lib/rubocop/cop/style/ip_addresses.rb#27 def offense?(node); end # Dummy implementation of method in ConfigurableEnforcedStyle that is # called from StringHelp. # - # source://rubocop//lib/rubocop/cop/style/ip_addresses.rb#42 + # source://rubocop/lib/rubocop/cop/style/ip_addresses.rb#42 def opposite_style_detected; end private - # source://rubocop//lib/rubocop/cop/style/ip_addresses.rb#50 + # source://rubocop/lib/rubocop/cop/style/ip_addresses.rb#50 def allowed_addresses; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/ip_addresses.rb#55 + # source://rubocop/lib/rubocop/cop/style/ip_addresses.rb#55 def could_be_ip?(str); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/ip_addresses.rb#68 + # source://rubocop/lib/rubocop/cop/style/ip_addresses.rb#68 def starts_with_hex_or_colon?(str); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/ip_addresses.rb#64 + # source://rubocop/lib/rubocop/cop/style/ip_addresses.rb#64 def too_long?(str); end end # IPv4-mapped IPv6 is the longest # -# source://rubocop//lib/rubocop/cop/style/ip_addresses.rb#24 +# source://rubocop/lib/rubocop/cop/style/ip_addresses.rb#24 RuboCop::Cop::Style::IpAddresses::IPV6_MAX_SIZE = T.let(T.unsafe(nil), Integer) -# source://rubocop//lib/rubocop/cop/style/ip_addresses.rb#25 +# 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. +# Providing arguments directly is more performant than using `merge`, and +# also leads to shorter and simpler code. # # @example # # bad @@ -40039,23 +40607,23 @@ RuboCop::Cop::Style::IpAddresses::MSG = T.let(T.unsafe(nil), String) # some_method(**opts, foo: true) # some_method(**opts, **other_opts) # -# source://rubocop//lib/rubocop/cop/style/keyword_arguments_merging.rb#21 +# 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 + # 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 + # 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 + # 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 +# 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 @@ -40086,24 +40654,24 @@ RuboCop::Cop::Style::KeywordArgumentsMerging::MSG = T.let(T.unsafe(nil), String) # # body omitted # end # -# source://rubocop//lib/rubocop/cop/style/keyword_parameters_order.rb#34 +# source://rubocop/lib/rubocop/cop/style/keyword_parameters_order.rb#34 class RuboCop::Cop::Style::KeywordParametersOrder < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/keyword_parameters_order.rb#40 + # source://rubocop/lib/rubocop/cop/style/keyword_parameters_order.rb#40 def on_kwoptarg(node); end private - # source://rubocop//lib/rubocop/cop/style/keyword_parameters_order.rb#58 + # source://rubocop/lib/rubocop/cop/style/keyword_parameters_order.rb#58 def append_newline_to_last_kwoptarg(arguments, corrector); end - # source://rubocop//lib/rubocop/cop/style/keyword_parameters_order.rb#66 + # source://rubocop/lib/rubocop/cop/style/keyword_parameters_order.rb#66 def remove_kwargs(kwarg_nodes, corrector); end end -# source://rubocop//lib/rubocop/cop/style/keyword_parameters_order.rb#38 +# source://rubocop/lib/rubocop/cop/style/keyword_parameters_order.rb#38 RuboCop::Cop::Style::KeywordParametersOrder::MSG = T.let(T.unsafe(nil), String) # (by default) checks for uses of the lambda literal syntax for @@ -40148,47 +40716,47 @@ RuboCop::Cop::Style::KeywordParametersOrder::MSG = T.let(T.unsafe(nil), String) # x # end # -# source://rubocop//lib/rubocop/cop/style/lambda.rb#49 +# source://rubocop/lib/rubocop/cop/style/lambda.rb#49 class RuboCop::Cop::Style::Lambda < ::RuboCop::Cop::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/lambda.rb#64 + # source://rubocop/lib/rubocop/cop/style/lambda.rb#64 def on_block(node); end - # source://rubocop//lib/rubocop/cop/style/lambda.rb#64 + # source://rubocop/lib/rubocop/cop/style/lambda.rb#64 def on_numblock(node); end private - # source://rubocop//lib/rubocop/cop/style/lambda.rb#115 + # source://rubocop/lib/rubocop/cop/style/lambda.rb#115 def arguments_with_whitespace(node); end - # source://rubocop//lib/rubocop/cop/style/lambda.rb#104 + # source://rubocop/lib/rubocop/cop/style/lambda.rb#104 def autocorrect_method_to_literal(corrector, node); end - # source://rubocop//lib/rubocop/cop/style/lambda.rb#119 + # source://rubocop/lib/rubocop/cop/style/lambda.rb#119 def lambda_arg_string(args); end - # source://rubocop//lib/rubocop/cop/style/lambda.rb#89 + # source://rubocop/lib/rubocop/cop/style/lambda.rb#89 def message(node, selector); end - # source://rubocop//lib/rubocop/cop/style/lambda.rb#95 + # source://rubocop/lib/rubocop/cop/style/lambda.rb#95 def message_line_modifier(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/lambda.rb#83 + # source://rubocop/lib/rubocop/cop/style/lambda.rb#83 def offending_selector?(node, selector); end end -# source://rubocop//lib/rubocop/cop/style/lambda.rb#53 +# source://rubocop/lib/rubocop/cop/style/lambda.rb#53 RuboCop::Cop::Style::Lambda::LITERAL_MESSAGE = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/lambda.rb#54 +# source://rubocop/lib/rubocop/cop/style/lambda.rb#54 RuboCop::Cop::Style::Lambda::METHOD_MESSAGE = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/lambda.rb#56 +# source://rubocop/lib/rubocop/cop/style/lambda.rb#56 RuboCop::Cop::Style::Lambda::OFFENDING_SELECTORS = T.let(T.unsafe(nil), Hash) # Checks for use of the lambda.(args) syntax. @@ -40206,39 +40774,42 @@ RuboCop::Cop::Style::Lambda::OFFENDING_SELECTORS = T.let(T.unsafe(nil), Hash) # # good # lambda.(x, y) # -# source://rubocop//lib/rubocop/cop/style/lambda_call.rb#21 +# source://rubocop/lib/rubocop/cop/style/lambda_call.rb#21 class RuboCop::Cop::Style::LambdaCall < ::RuboCop::Cop::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/lambda_call.rb#29 + # source://rubocop/lib/rubocop/cop/style/lambda_call.rb#28 + def on_csend(node); end + + # source://rubocop/lib/rubocop/cop/style/lambda_call.rb#28 def on_send(node); end private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/lambda_call.rb#67 + # source://rubocop/lib/rubocop/cop/style/lambda_call.rb#68 def explicit_style?; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/lambda_call.rb#63 + # source://rubocop/lib/rubocop/cop/style/lambda_call.rb#64 def implicit_style?; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/lambda_call.rb#51 + # source://rubocop/lib/rubocop/cop/style/lambda_call.rb#51 def offense?(node); end - # source://rubocop//lib/rubocop/cop/style/lambda_call.rb#55 + # source://rubocop/lib/rubocop/cop/style/lambda_call.rb#55 def prefer(node); end end -# source://rubocop//lib/rubocop/cop/style/lambda_call.rb#26 +# source://rubocop/lib/rubocop/cop/style/lambda_call.rb#25 RuboCop::Cop::Style::LambdaCall::MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/lambda_call.rb#27 +# source://rubocop/lib/rubocop/cop/style/lambda_call.rb#26 RuboCop::Cop::Style::LambdaCall::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Checks for string literal concatenation at @@ -40257,80 +40828,80 @@ RuboCop::Cop::Style::LambdaCall::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # some_str = 'ala' \ # 'bala' # -# source://rubocop//lib/rubocop/cop/style/line_end_concatenation.rb#35 +# source://rubocop/lib/rubocop/cop/style/line_end_concatenation.rb#35 class RuboCop::Cop::Style::LineEndConcatenation < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/line_end_concatenation.rb#51 + # source://rubocop/lib/rubocop/cop/style/line_end_concatenation.rb#51 def on_new_investigation; end private - # source://rubocop//lib/rubocop/cop/style/line_end_concatenation.rb#74 + # source://rubocop/lib/rubocop/cop/style/line_end_concatenation.rb#74 def autocorrect(corrector, operator_range); end - # source://rubocop//lib/rubocop/cop/style/line_end_concatenation.rb#57 + # source://rubocop/lib/rubocop/cop/style/line_end_concatenation.rb#57 def check_token_set(index); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/line_end_concatenation.rb#101 + # source://rubocop/lib/rubocop/cop/style/line_end_concatenation.rb#101 def eligible_next_successor?(next_successor); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/line_end_concatenation.rb#97 + # source://rubocop/lib/rubocop/cop/style/line_end_concatenation.rb#97 def eligible_operator?(operator); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/line_end_concatenation.rb#105 + # source://rubocop/lib/rubocop/cop/style/line_end_concatenation.rb#105 def eligible_predecessor?(predecessor); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/line_end_concatenation.rb#93 + # source://rubocop/lib/rubocop/cop/style/line_end_concatenation.rb#93 def eligible_successor?(successor); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/line_end_concatenation.rb#87 + # source://rubocop/lib/rubocop/cop/style/line_end_concatenation.rb#87 def eligible_token_set?(predecessor, operator, successor); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/line_end_concatenation.rb#124 + # source://rubocop/lib/rubocop/cop/style/line_end_concatenation.rb#124 def standard_string_literal?(token); end - # source://rubocop//lib/rubocop/cop/style/line_end_concatenation.rb#109 + # source://rubocop/lib/rubocop/cop/style/line_end_concatenation.rb#109 def token_after_last_string(successor, base_index); end class << self - # source://rubocop//lib/rubocop/cop/style/line_end_concatenation.rb#47 + # source://rubocop/lib/rubocop/cop/style/line_end_concatenation.rb#47 def autocorrect_incompatible_with; end end end -# source://rubocop//lib/rubocop/cop/style/line_end_concatenation.rb#42 +# source://rubocop/lib/rubocop/cop/style/line_end_concatenation.rb#42 RuboCop::Cop::Style::LineEndConcatenation::COMPLEX_STRING_BEGIN_TOKEN = T.let(T.unsafe(nil), Symbol) -# source://rubocop//lib/rubocop/cop/style/line_end_concatenation.rb#43 +# source://rubocop/lib/rubocop/cop/style/line_end_concatenation.rb#43 RuboCop::Cop::Style::LineEndConcatenation::COMPLEX_STRING_END_TOKEN = T.let(T.unsafe(nil), Symbol) -# source://rubocop//lib/rubocop/cop/style/line_end_concatenation.rb#40 +# source://rubocop/lib/rubocop/cop/style/line_end_concatenation.rb#40 RuboCop::Cop::Style::LineEndConcatenation::CONCAT_TOKEN_TYPES = T.let(T.unsafe(nil), Array) -# source://rubocop//lib/rubocop/cop/style/line_end_concatenation.rb#44 +# source://rubocop/lib/rubocop/cop/style/line_end_concatenation.rb#44 RuboCop::Cop::Style::LineEndConcatenation::HIGH_PRECEDENCE_OP_TOKEN_TYPES = T.let(T.unsafe(nil), Array) -# source://rubocop//lib/rubocop/cop/style/line_end_concatenation.rb#39 +# source://rubocop/lib/rubocop/cop/style/line_end_concatenation.rb#39 RuboCop::Cop::Style::LineEndConcatenation::MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/line_end_concatenation.rb#45 +# source://rubocop/lib/rubocop/cop/style/line_end_concatenation.rb#45 RuboCop::Cop::Style::LineEndConcatenation::QUOTE_DELIMITERS = T.let(T.unsafe(nil), Array) -# source://rubocop//lib/rubocop/cop/style/line_end_concatenation.rb#41 +# source://rubocop/lib/rubocop/cop/style/line_end_concatenation.rb#41 RuboCop::Cop::Style::LineEndConcatenation::SIMPLE_STRING_TOKEN_TYPE = T.let(T.unsafe(nil), Symbol) # Ensures magic comments are written consistently throughout your code base. @@ -40417,133 +40988,133 @@ RuboCop::Cop::Style::LineEndConcatenation::SIMPLE_STRING_TOKEN_TYPE = T.let(T.un # # ... # end # -# source://rubocop//lib/rubocop/cop/style/magic_comment_format.rb#97 +# source://rubocop/lib/rubocop/cop/style/magic_comment_format.rb#97 class RuboCop::Cop::Style::MagicCommentFormat < ::RuboCop::Cop::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/magic_comment_format.rb#156 + # source://rubocop/lib/rubocop/cop/style/magic_comment_format.rb#156 def on_new_investigation; end private - # source://rubocop//lib/rubocop/cop/style/magic_comment_format.rb#241 + # source://rubocop/lib/rubocop/cop/style/magic_comment_format.rb#241 def correct_separator; end - # source://rubocop//lib/rubocop/cop/style/magic_comment_format.rb#279 + # source://rubocop/lib/rubocop/cop/style/magic_comment_format.rb#279 def directive_capitalization; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/magic_comment_format.rb#197 + # source://rubocop/lib/rubocop/cop/style/magic_comment_format.rb#197 def directive_offends?(directive); end - # source://rubocop//lib/rubocop/cop/style/magic_comment_format.rb#233 + # source://rubocop/lib/rubocop/cop/style/magic_comment_format.rb#233 def expected_style; end - # source://rubocop//lib/rubocop/cop/style/magic_comment_format.rb#183 + # source://rubocop/lib/rubocop/cop/style/magic_comment_format.rb#183 def find_issues(comment); end - # source://rubocop//lib/rubocop/cop/style/magic_comment_format.rb#207 + # source://rubocop/lib/rubocop/cop/style/magic_comment_format.rb#207 def fix_directives(issues); end - # source://rubocop//lib/rubocop/cop/style/magic_comment_format.rb#221 + # source://rubocop/lib/rubocop/cop/style/magic_comment_format.rb#221 def fix_values(issues); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/magic_comment_format.rb#245 + # source://rubocop/lib/rubocop/cop/style/magic_comment_format.rb#245 def incorrect_separator?(text); end - # source://rubocop//lib/rubocop/cop/style/magic_comment_format.rb#173 + # source://rubocop/lib/rubocop/cop/style/magic_comment_format.rb#173 def leading_comment_lines; end - # source://rubocop//lib/rubocop/cop/style/magic_comment_format.rb#275 + # source://rubocop/lib/rubocop/cop/style/magic_comment_format.rb#275 def line_range(line); end - # source://rubocop//lib/rubocop/cop/style/magic_comment_format.rb#167 + # source://rubocop/lib/rubocop/cop/style/magic_comment_format.rb#167 def magic_comments; end - # source://rubocop//lib/rubocop/cop/style/magic_comment_format.rb#202 + # source://rubocop/lib/rubocop/cop/style/magic_comment_format.rb#202 def register_offenses(issues); end - # source://rubocop//lib/rubocop/cop/style/magic_comment_format.rb#264 + # source://rubocop/lib/rubocop/cop/style/magic_comment_format.rb#264 def replace_capitalization(text, style); end - # source://rubocop//lib/rubocop/cop/style/magic_comment_format.rb#260 + # source://rubocop/lib/rubocop/cop/style/magic_comment_format.rb#260 def replace_separator(text); end - # source://rubocop//lib/rubocop/cop/style/magic_comment_format.rb#301 + # source://rubocop/lib/rubocop/cop/style/magic_comment_format.rb#301 def supported_capitalizations; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/magic_comment_format.rb#295 + # source://rubocop/lib/rubocop/cop/style/magic_comment_format.rb#295 def valid_capitalization?(style); end - # source://rubocop//lib/rubocop/cop/style/magic_comment_format.rb#287 + # source://rubocop/lib/rubocop/cop/style/magic_comment_format.rb#287 def value_capitalization; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/magic_comment_format.rb#249 + # source://rubocop/lib/rubocop/cop/style/magic_comment_format.rb#249 def wrong_capitalization?(text, expected_case); end - # source://rubocop//lib/rubocop/cop/style/magic_comment_format.rb#237 + # source://rubocop/lib/rubocop/cop/style/magic_comment_format.rb#237 def wrong_separator; end end # Value object to extract source ranges for the different parts of a magic comment # -# source://rubocop//lib/rubocop/cop/style/magic_comment_format.rb#107 +# source://rubocop/lib/rubocop/cop/style/magic_comment_format.rb#107 class RuboCop::Cop::Style::MagicCommentFormat::CommentRange extend ::RuboCop::SimpleForwardable # @return [CommentRange] a new instance of CommentRange # - # source://rubocop//lib/rubocop/cop/style/magic_comment_format.rb#119 + # source://rubocop/lib/rubocop/cop/style/magic_comment_format.rb#119 def initialize(comment); end # Returns the value of attribute comment. # - # source://rubocop//lib/rubocop/cop/style/magic_comment_format.rb#117 + # source://rubocop/lib/rubocop/cop/style/magic_comment_format.rb#117 def comment; end # A magic comment can contain one directive (normal style) or # multiple directives (emacs style) # - # source://rubocop//lib/rubocop/cop/style/magic_comment_format.rb#125 + # source://rubocop/lib/rubocop/cop/style/magic_comment_format.rb#125 def directives; end - # source://rubocop-ast/1.34.0/lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/1.37.0lib/rubocop/ast/utilities/simple_forwardable.rb#9 def loc(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast/1.34.0/lib/rubocop/ast/utilities/simple_forwardable.rb#9 + # source://rubocop-ast/1.37.0lib/rubocop/ast/utilities/simple_forwardable.rb#9 def text(*_arg0, **_arg1, &_arg2); end # A magic comment can contain one value (normal style) or # multiple directives (emacs style) # - # source://rubocop//lib/rubocop/cop/style/magic_comment_format.rb#141 + # source://rubocop/lib/rubocop/cop/style/magic_comment_format.rb#141 def values; end end -# source://rubocop//lib/rubocop/cop/style/magic_comment_format.rb#110 +# source://rubocop/lib/rubocop/cop/style/magic_comment_format.rb#110 RuboCop::Cop::Style::MagicCommentFormat::CommentRange::DIRECTIVE_REGEXP = T.let(T.unsafe(nil), Regexp) -# source://rubocop//lib/rubocop/cop/style/magic_comment_format.rb#114 +# source://rubocop/lib/rubocop/cop/style/magic_comment_format.rb#114 RuboCop::Cop::Style::MagicCommentFormat::CommentRange::VALUE_REGEXP = T.let(T.unsafe(nil), Regexp) -# source://rubocop//lib/rubocop/cop/style/magic_comment_format.rb#102 +# source://rubocop/lib/rubocop/cop/style/magic_comment_format.rb#102 RuboCop::Cop::Style::MagicCommentFormat::KEBAB_SEPARATOR = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/magic_comment_format.rb#103 +# source://rubocop/lib/rubocop/cop/style/magic_comment_format.rb#103 RuboCop::Cop::Style::MagicCommentFormat::MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/magic_comment_format.rb#104 +# source://rubocop/lib/rubocop/cop/style/magic_comment_format.rb#104 RuboCop::Cop::Style::MagicCommentFormat::MSG_VALUE = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/magic_comment_format.rb#101 +# source://rubocop/lib/rubocop/cop/style/magic_comment_format.rb#101 RuboCop::Cop::Style::MagicCommentFormat::SNAKE_SEPARATOR = T.let(T.unsafe(nil), String) # Prefer `select` or `reject` over `map { ... }.compact`. @@ -40584,58 +41155,58 @@ RuboCop::Cop::Style::MagicCommentFormat::SNAKE_SEPARATOR = T.let(T.unsafe(nil), # # good # array.reject { |e| some_condition? } # -# source://rubocop//lib/rubocop/cop/style/map_compact_with_conditional_block.rb#44 +# source://rubocop/lib/rubocop/cop/style/map_compact_with_conditional_block.rb#44 class RuboCop::Cop::Style::MapCompactWithConditionalBlock < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/map_compact_with_conditional_block.rb#51 + # source://rubocop/lib/rubocop/cop/style/map_compact_with_conditional_block.rb#51 def conditional_block(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/style/map_compact_with_conditional_block.rb#76 + # source://rubocop/lib/rubocop/cop/style/map_compact_with_conditional_block.rb#76 def on_csend(node); end - # source://rubocop//lib/rubocop/cop/style/map_compact_with_conditional_block.rb#76 + # source://rubocop/lib/rubocop/cop/style/map_compact_with_conditional_block.rb#76 def on_send(node); end private - # source://rubocop//lib/rubocop/cop/style/map_compact_with_conditional_block.rb#148 + # source://rubocop/lib/rubocop/cop/style/map_compact_with_conditional_block.rb#148 def current(node); end - # source://rubocop//lib/rubocop/cop/style/map_compact_with_conditional_block.rb#162 + # source://rubocop/lib/rubocop/cop/style/map_compact_with_conditional_block.rb#162 def filter_map_range(node); end - # source://rubocop//lib/rubocop/cop/style/map_compact_with_conditional_block.rb#96 + # source://rubocop/lib/rubocop/cop/style/map_compact_with_conditional_block.rb#96 def inspect(node, block_argument_node, condition_node, return_value_node, range); end - # source://rubocop//lib/rubocop/cop/style/map_compact_with_conditional_block.rb#158 + # source://rubocop/lib/rubocop/cop/style/map_compact_with_conditional_block.rb#158 def map_with_compact_range(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/map_compact_with_conditional_block.rb#114 + # source://rubocop/lib/rubocop/cop/style/map_compact_with_conditional_block.rb#114 def returns_block_argument?(block_argument_node, return_value_node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/map_compact_with_conditional_block.rb#118 + # source://rubocop/lib/rubocop/cop/style/map_compact_with_conditional_block.rb#118 def truthy_branch?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/map_compact_with_conditional_block.rb#138 + # source://rubocop/lib/rubocop/cop/style/map_compact_with_conditional_block.rb#138 def truthy_branch_for_guard?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/map_compact_with_conditional_block.rb#128 + # source://rubocop/lib/rubocop/cop/style/map_compact_with_conditional_block.rb#128 def truthy_branch_for_if?(node); end end -# source://rubocop//lib/rubocop/cop/style/map_compact_with_conditional_block.rb#47 +# source://rubocop/lib/rubocop/cop/style/map_compact_with_conditional_block.rb#47 RuboCop::Cop::Style::MapCompactWithConditionalBlock::MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/map_compact_with_conditional_block.rb#48 +# source://rubocop/lib/rubocop/cop/style/map_compact_with_conditional_block.rb#48 RuboCop::Cop::Style::MapCompactWithConditionalBlock::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Checks for usages of `each` with `<<`, `push`, or `append` which @@ -40686,83 +41257,83 @@ RuboCop::Cop::Style::MapCompactWithConditionalBlock::RESTRICT_ON_SEND = T.let(T. # src.each { |e| dest << e * 2; puts e } # dest # -# source://rubocop//lib/rubocop/cop/style/map_into_array.rb#60 +# source://rubocop/lib/rubocop/cop/style/map_into_array.rb#60 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#109 + # 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#72 + # 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#81 + # 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#93 + # 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#103 + # 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#113 + # 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#113 + # 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 + # 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#213 + # 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#221 + # 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#156 + # 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#150 + # 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#133 + # 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#181 + # 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#141 + # 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#164 + # 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#200 + # 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#207 + # 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#187 + # 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#105 + # source://rubocop/lib/rubocop/cop/style/map_into_array.rb#105 def joining_forces; end end end -# source://rubocop//lib/rubocop/cop/style/map_into_array.rb#64 +# source://rubocop/lib/rubocop/cop/style/map_into_array.rb#64 RuboCop::Cop::Style::MapIntoArray::MSG = T.let(T.unsafe(nil), String) # Looks for uses of `map.to_h` or `collect.to_h` that could be @@ -40785,36 +41356,36 @@ RuboCop::Cop::Style::MapIntoArray::MSG = T.let(T.unsafe(nil), String) # # good # {foo: bar}.to_h { |k, v| [k.to_s, v.do_something] } # -# source://rubocop//lib/rubocop/cop/style/map_to_hash.rb#30 +# source://rubocop/lib/rubocop/cop/style/map_to_hash.rb#30 class RuboCop::Cop::Style::MapToHash < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector extend ::RuboCop::Cop::TargetRubyVersion - # source://rubocop//lib/rubocop/cop/style/map_to_hash.rb#41 + # source://rubocop/lib/rubocop/cop/style/map_to_hash.rb#41 def map_to_h(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/style/map_to_hash.rb#52 + # source://rubocop/lib/rubocop/cop/style/map_to_hash.rb#52 def on_csend(node); end - # source://rubocop//lib/rubocop/cop/style/map_to_hash.rb#52 + # source://rubocop/lib/rubocop/cop/style/map_to_hash.rb#52 def on_send(node); end private - # source://rubocop//lib/rubocop/cop/style/map_to_hash.rb#68 + # source://rubocop/lib/rubocop/cop/style/map_to_hash.rb#68 def autocorrect(corrector, to_h, map); end class << self - # source://rubocop//lib/rubocop/cop/style/map_to_hash.rb#48 + # source://rubocop/lib/rubocop/cop/style/map_to_hash.rb#48 def autocorrect_incompatible_with; end end end -# source://rubocop//lib/rubocop/cop/style/map_to_hash.rb#37 +# source://rubocop/lib/rubocop/cop/style/map_to_hash.rb#37 RuboCop::Cop::Style::MapToHash::MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/map_to_hash.rb#38 +# source://rubocop/lib/rubocop/cop/style/map_to_hash.rb#38 RuboCop::Cop::Style::MapToHash::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Looks for uses of `map.to_set` or `collect.to_set` that could be @@ -40833,27 +41404,27 @@ RuboCop::Cop::Style::MapToHash::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # # good # [1, 2, 3].to_set { |i| i.to_s } # -# source://rubocop//lib/rubocop/cop/style/map_to_set.rb#26 +# source://rubocop/lib/rubocop/cop/style/map_to_set.rb#26 class RuboCop::Cop::Style::MapToSet < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/map_to_set.rb#34 + # source://rubocop/lib/rubocop/cop/style/map_to_set.rb#34 def map_to_set?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/style/map_to_set.rb#41 + # source://rubocop/lib/rubocop/cop/style/map_to_set.rb#41 def on_send(node); end private - # source://rubocop//lib/rubocop/cop/style/map_to_set.rb#55 + # source://rubocop/lib/rubocop/cop/style/map_to_set.rb#55 def autocorrect(corrector, to_set, map); end end -# source://rubocop//lib/rubocop/cop/style/map_to_set.rb#30 +# source://rubocop/lib/rubocop/cop/style/map_to_set.rb#30 RuboCop::Cop::Style::MapToSet::MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/map_to_set.rb#31 +# source://rubocop/lib/rubocop/cop/style/map_to_set.rb#31 RuboCop::Cop::Style::MapToSet::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Enforces the presence (default) or absence of parentheses in @@ -41042,7 +41613,7 @@ RuboCop::Cop::Style::MapToSet::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # # okay with `^assert` listed in `AllowedPatterns` # assert_equal 'test', x # -# source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses.rb#202 +# source://rubocop/lib/rubocop/cop/style/method_call_with_args_parentheses.rb#202 class RuboCop::Cop::Style::MethodCallWithArgsParentheses < ::RuboCop::Cop::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle include ::RuboCop::Cop::AllowedMethods @@ -41052,37 +41623,37 @@ class RuboCop::Cop::Style::MethodCallWithArgsParentheses < ::RuboCop::Cop::Base include ::RuboCop::Cop::Style::MethodCallWithArgsParentheses::OmitParentheses extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses.rb#217 + # source://rubocop/lib/rubocop/cop/style/method_call_with_args_parentheses.rb#217 def on_csend(node); end - # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses.rb#217 + # source://rubocop/lib/rubocop/cop/style/method_call_with_args_parentheses.rb#217 def on_send(node); end - # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses.rb#217 + # source://rubocop/lib/rubocop/cop/style/method_call_with_args_parentheses.rb#217 def on_yield(node); end private - # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses.rb#225 + # source://rubocop/lib/rubocop/cop/style/method_call_with_args_parentheses.rb#225 def args_begin(node); end - # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses.rb#233 + # source://rubocop/lib/rubocop/cop/style/method_call_with_args_parentheses.rb#233 def args_end(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses.rb#237 + # source://rubocop/lib/rubocop/cop/style/method_call_with_args_parentheses.rb#237 def args_parenthesized?(node); end class << self - # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses.rb#213 + # source://rubocop/lib/rubocop/cop/style/method_call_with_args_parentheses.rb#213 def autocorrect_incompatible_with; end end end # Style omit_parentheses # -# source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#9 +# source://rubocop/lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#9 module RuboCop::Cop::Style::MethodCallWithArgsParentheses::OmitParentheses include ::RuboCop::Cop::RangeHelp @@ -41090,110 +41661,110 @@ module RuboCop::Cop::Style::MethodCallWithArgsParentheses::OmitParentheses # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#80 + # source://rubocop/lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#80 def allowed_camel_case_method_call?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#184 + # source://rubocop/lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#184 def allowed_chained_call_with_parentheses?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#180 + # source://rubocop/lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#180 def allowed_multiline_call_with_parentheses?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#85 + # source://rubocop/lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#85 def allowed_string_interpolation_method_call?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#193 + # source://rubocop/lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#193 def ambiguous_literal?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#222 + # source://rubocop/lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#222 def assigned_before?(node, target); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#230 + # source://rubocop/lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#230 def assignment_in_condition?(node); end - # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#34 + # source://rubocop/lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#34 def autocorrect(corrector, node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#161 + # source://rubocop/lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#161 def call_as_argument_or_chain?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#154 + # source://rubocop/lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#154 def call_in_argument_with_block?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#110 + # source://rubocop/lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#110 def call_in_literals?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#121 + # source://rubocop/lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#121 def call_in_logical_operators?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#167 + # source://rubocop/lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#167 def call_in_match_pattern?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#130 + # source://rubocop/lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#130 def call_in_optional_arguments?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#134 + # source://rubocop/lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#134 def call_in_single_line_inheritance?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#138 + # source://rubocop/lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#138 def call_with_ambiguous_arguments?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#150 + # source://rubocop/lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#150 def call_with_braced_block?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#240 + # source://rubocop/lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#240 def forwards_anonymous_rest_arguments?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#209 + # source://rubocop/lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#209 def hash_literal?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#173 + # source://rubocop/lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#173 def hash_literal_in_arguments?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#50 + # source://rubocop/lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#50 def inside_endless_method_def?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#226 + # source://rubocop/lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#226 def inside_string_interpolation?(node); end # Require hash value omission be enclosed in parentheses to prevent the following issue: @@ -41201,106 +41772,106 @@ module RuboCop::Cop::Style::MethodCallWithArgsParentheses::OmitParentheses # # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#64 + # source://rubocop/lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#64 def last_expression?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#97 + # source://rubocop/lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#97 def legitimate_call_with_parentheses?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#205 + # source://rubocop/lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#205 def logical_operator?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#72 + # source://rubocop/lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#72 def method_call_before_constant_resolution?(node); end - # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#46 + # source://rubocop/lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#46 def offense_range(node); end - # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#18 + # source://rubocop/lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#18 def omit_parentheses(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#90 + # source://rubocop/lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#90 def parentheses_at_the_end_of_multiline_call?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#213 + # source://rubocop/lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#213 def regexp_slash_literal?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#55 + # source://rubocop/lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#55 def require_parentheses_for_hash_value_omission?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#197 + # source://rubocop/lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#197 def splat?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#76 + # source://rubocop/lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#76 def super_call_without_arguments?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#68 + # source://rubocop/lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#68 def syntax_like_method_call?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#201 + # source://rubocop/lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#201 def ternary_if?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#217 + # source://rubocop/lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#217 def unary_literal?(node); end end -# source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#13 +# source://rubocop/lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#13 RuboCop::Cop::Style::MethodCallWithArgsParentheses::OmitParentheses::OMIT_MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#12 +# source://rubocop/lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#12 RuboCop::Cop::Style::MethodCallWithArgsParentheses::OmitParentheses::TRAILING_WHITESPACE_REGEX = T.let(T.unsafe(nil), Regexp) # Style require_parentheses # -# source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/require_parentheses.rb#8 +# source://rubocop/lib/rubocop/cop/style/method_call_with_args_parentheses/require_parentheses.rb#8 module RuboCop::Cop::Style::MethodCallWithArgsParentheses::RequireParentheses private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/require_parentheses.rb#27 + # source://rubocop/lib/rubocop/cop/style/method_call_with_args_parentheses/require_parentheses.rb#27 def allowed_method_name?(name); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/require_parentheses.rb#31 + # source://rubocop/lib/rubocop/cop/style/method_call_with_args_parentheses/require_parentheses.rb#31 def eligible_for_parentheses_omission?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/require_parentheses.rb#39 + # source://rubocop/lib/rubocop/cop/style/method_call_with_args_parentheses/require_parentheses.rb#39 def ignored_macro?(node); end - # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/require_parentheses.rb#35 + # source://rubocop/lib/rubocop/cop/style/method_call_with_args_parentheses/require_parentheses.rb#35 def included_macros_list; end - # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/require_parentheses.rb#14 + # source://rubocop/lib/rubocop/cop/style/method_call_with_args_parentheses/require_parentheses.rb#14 def require_parentheses(node); end end -# source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/require_parentheses.rb#9 +# source://rubocop/lib/rubocop/cop/style/method_call_with_args_parentheses/require_parentheses.rb#9 RuboCop::Cop::Style::MethodCallWithArgsParentheses::RequireParentheses::REQUIRE_MSG = T.let(T.unsafe(nil), String) # Checks for unwanted parentheses in parameterless method calls. @@ -41324,38 +41895,38 @@ RuboCop::Cop::Style::MethodCallWithArgsParentheses::RequireParentheses::REQUIRE_ # # good # object.foo() # -# source://rubocop//lib/rubocop/cop/style/method_call_without_args_parentheses.rb#29 +# source://rubocop/lib/rubocop/cop/style/method_call_without_args_parentheses.rb#29 class RuboCop::Cop::Style::MethodCallWithoutArgsParentheses < ::RuboCop::Cop::Base include ::RuboCop::Cop::AllowedMethods include ::RuboCop::Cop::AllowedPattern extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/method_call_without_args_parentheses.rb#37 + # source://rubocop/lib/rubocop/cop/style/method_call_without_args_parentheses.rb#37 def on_send(node); end private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/method_call_without_args_parentheses.rb#66 + # source://rubocop/lib/rubocop/cop/style/method_call_without_args_parentheses.rb#66 def allowed_method_name?(name); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/method_call_without_args_parentheses.rb#94 + # source://rubocop/lib/rubocop/cop/style/method_call_without_args_parentheses.rb#96 def any_assignment?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/method_call_without_args_parentheses.rb#62 + # source://rubocop/lib/rubocop/cop/style/method_call_without_args_parentheses.rb#62 def default_argument?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/method_call_without_args_parentheses.rb#58 + # source://rubocop/lib/rubocop/cop/style/method_call_without_args_parentheses.rb#58 def ineligible_node?(node); end - # source://rubocop//lib/rubocop/cop/style/method_call_without_args_parentheses.rb#117 + # source://rubocop/lib/rubocop/cop/style/method_call_without_args_parentheses.rb#113 def offense_range(node); end # Respects `Lint/ItWithoutArgumentsInBlock` cop and the following Ruby 3.3's warning: @@ -41366,24 +41937,24 @@ class RuboCop::Cop::Style::MethodCallWithoutArgsParentheses < ::RuboCop::Cop::Ba # # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/method_call_without_args_parentheses.rb#86 + # source://rubocop/lib/rubocop/cop/style/method_call_without_args_parentheses.rb#88 def parenthesized_it_method_in_block?(node); end - # source://rubocop//lib/rubocop/cop/style/method_call_without_args_parentheses.rb#51 + # source://rubocop/lib/rubocop/cop/style/method_call_without_args_parentheses.rb#51 def register_offense(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/method_call_without_args_parentheses.rb#70 + # source://rubocop/lib/rubocop/cop/style/method_call_without_args_parentheses.rb#70 def same_name_assignment?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/method_call_without_args_parentheses.rb#110 + # source://rubocop/lib/rubocop/cop/style/method_call_without_args_parentheses.rb#109 def variable_in_mass_assignment?(variable_name, node); end end -# source://rubocop//lib/rubocop/cop/style/method_call_without_args_parentheses.rb#34 +# source://rubocop/lib/rubocop/cop/style/method_call_without_args_parentheses.rb#34 RuboCop::Cop::Style::MethodCallWithoutArgsParentheses::MSG = T.let(T.unsafe(nil), String) # Checks for methods called on a do...end block. The point of @@ -41405,24 +41976,24 @@ RuboCop::Cop::Style::MethodCallWithoutArgsParentheses::MSG = T.let(T.unsafe(nil) # end # foo.c # -# source://rubocop//lib/rubocop/cop/style/method_called_on_do_end_block.rb#24 +# source://rubocop/lib/rubocop/cop/style/method_called_on_do_end_block.rb#24 class RuboCop::Cop::Style::MethodCalledOnDoEndBlock < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp - # source://rubocop//lib/rubocop/cop/style/method_called_on_do_end_block.rb#29 + # source://rubocop/lib/rubocop/cop/style/method_called_on_do_end_block.rb#29 def on_block(node); end - # source://rubocop//lib/rubocop/cop/style/method_called_on_do_end_block.rb#40 + # source://rubocop/lib/rubocop/cop/style/method_called_on_do_end_block.rb#40 def on_csend(node); end - # source://rubocop//lib/rubocop/cop/style/method_called_on_do_end_block.rb#29 + # source://rubocop/lib/rubocop/cop/style/method_called_on_do_end_block.rb#29 def on_numblock(node); end - # source://rubocop//lib/rubocop/cop/style/method_called_on_do_end_block.rb#40 + # source://rubocop/lib/rubocop/cop/style/method_called_on_do_end_block.rb#40 def on_send(node); end end -# source://rubocop//lib/rubocop/cop/style/method_called_on_do_end_block.rb#27 +# source://rubocop/lib/rubocop/cop/style/method_called_on_do_end_block.rb#27 RuboCop::Cop::Style::MethodCalledOnDoEndBlock::MSG = T.let(T.unsafe(nil), String) # Checks for parentheses around the arguments in method @@ -41515,54 +42086,54 @@ RuboCop::Cop::Style::MethodCalledOnDoEndBlock::MSG = T.let(T.unsafe(nil), String # do_something # end # -# source://rubocop//lib/rubocop/cop/style/method_def_parentheses.rb#97 +# source://rubocop/lib/rubocop/cop/style/method_def_parentheses.rb#97 class RuboCop::Cop::Style::MethodDefParentheses < ::RuboCop::Cop::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/method_def_parentheses.rb#105 + # source://rubocop/lib/rubocop/cop/style/method_def_parentheses.rb#105 def on_def(node); end - # source://rubocop//lib/rubocop/cop/style/method_def_parentheses.rb#105 + # source://rubocop/lib/rubocop/cop/style/method_def_parentheses.rb#105 def on_defs(node); end private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/method_def_parentheses.rb#169 + # source://rubocop/lib/rubocop/cop/style/method_def_parentheses.rb#169 def anonymous_arguments?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/method_def_parentheses.rb#147 + # source://rubocop/lib/rubocop/cop/style/method_def_parentheses.rb#147 def arguments_without_parentheses?(node); end - # source://rubocop//lib/rubocop/cop/style/method_def_parentheses.rb#126 + # source://rubocop/lib/rubocop/cop/style/method_def_parentheses.rb#126 def correct_arguments(arg_node, corrector); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/method_def_parentheses.rb#131 + # source://rubocop/lib/rubocop/cop/style/method_def_parentheses.rb#131 def forced_parentheses?(node); end - # source://rubocop//lib/rubocop/cop/style/method_def_parentheses.rb#151 + # source://rubocop/lib/rubocop/cop/style/method_def_parentheses.rb#151 def missing_parentheses(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/method_def_parentheses.rb#142 + # source://rubocop/lib/rubocop/cop/style/method_def_parentheses.rb#142 def require_parentheses?(args); end - # source://rubocop//lib/rubocop/cop/style/method_def_parentheses.rb#161 + # source://rubocop/lib/rubocop/cop/style/method_def_parentheses.rb#161 def unwanted_parentheses(args); end end -# source://rubocop//lib/rubocop/cop/style/method_def_parentheses.rb#103 +# source://rubocop/lib/rubocop/cop/style/method_def_parentheses.rb#103 RuboCop::Cop::Style::MethodDefParentheses::MSG_MISSING = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/method_def_parentheses.rb#102 +# source://rubocop/lib/rubocop/cop/style/method_def_parentheses.rb#102 RuboCop::Cop::Style::MethodDefParentheses::MSG_PRESENT = T.let(T.unsafe(nil), String) # Checks for potential uses of `Enumerable#minmax`. @@ -41577,32 +42148,32 @@ RuboCop::Cop::Style::MethodDefParentheses::MSG_PRESENT = T.let(T.unsafe(nil), St # bar = foo.minmax # return foo.minmax # -# source://rubocop//lib/rubocop/cop/style/min_max.rb#17 +# source://rubocop/lib/rubocop/cop/style/min_max.rb#17 class RuboCop::Cop::Style::MinMax < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/min_max.rb#38 + # source://rubocop/lib/rubocop/cop/style/min_max.rb#38 def min_max_candidate(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/style/min_max.rb#22 + # source://rubocop/lib/rubocop/cop/style/min_max.rb#22 def on_array(node); end - # source://rubocop//lib/rubocop/cop/style/min_max.rb#22 + # source://rubocop/lib/rubocop/cop/style/min_max.rb#22 def on_return(node); end private - # source://rubocop//lib/rubocop/cop/style/min_max.rb#55 + # source://rubocop/lib/rubocop/cop/style/min_max.rb#55 def argument_range(node); end - # source://rubocop//lib/rubocop/cop/style/min_max.rb#42 + # source://rubocop/lib/rubocop/cop/style/min_max.rb#42 def message(offender, receiver); end - # source://rubocop//lib/rubocop/cop/style/min_max.rb#46 + # source://rubocop/lib/rubocop/cop/style/min_max.rb#46 def offending_range(node); end end -# source://rubocop//lib/rubocop/cop/style/min_max.rb#20 +# source://rubocop/lib/rubocop/cop/style/min_max.rb#20 RuboCop::Cop::Style::MinMax::MSG = T.let(T.unsafe(nil), String) # Enforces the use of `max` or `min` instead of comparison for greater or less. @@ -41632,33 +42203,33 @@ RuboCop::Cop::Style::MinMax::MSG = T.let(T.unsafe(nil), String) # # good # [a, b].min # -# source://rubocop//lib/rubocop/cop/style/min_max_comparison.rb#37 +# source://rubocop/lib/rubocop/cop/style/min_max_comparison.rb#37 class RuboCop::Cop::Style::MinMaxComparison < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/min_max_comparison.rb#46 + # source://rubocop/lib/rubocop/cop/style/min_max_comparison.rb#46 def on_if(node); end private - # source://rubocop//lib/rubocop/cop/style/min_max_comparison.rb#72 + # source://rubocop/lib/rubocop/cop/style/min_max_comparison.rb#72 def autocorrect(corrector, node, replacement); end - # source://rubocop//lib/rubocop/cop/style/min_max_comparison.rb#64 + # source://rubocop/lib/rubocop/cop/style/min_max_comparison.rb#64 def preferred_method(operator, lhs, rhs, if_branch, else_branch); end end -# source://rubocop//lib/rubocop/cop/style/min_max_comparison.rb#44 +# source://rubocop/lib/rubocop/cop/style/min_max_comparison.rb#44 RuboCop::Cop::Style::MinMaxComparison::COMPARISON_OPERATORS = T.let(T.unsafe(nil), Array) -# source://rubocop//lib/rubocop/cop/style/min_max_comparison.rb#42 +# source://rubocop/lib/rubocop/cop/style/min_max_comparison.rb#42 RuboCop::Cop::Style::MinMaxComparison::GRATER_OPERATORS = T.let(T.unsafe(nil), Array) -# source://rubocop//lib/rubocop/cop/style/min_max_comparison.rb#43 +# source://rubocop/lib/rubocop/cop/style/min_max_comparison.rb#43 RuboCop::Cop::Style::MinMaxComparison::LESS_OPERATORS = T.let(T.unsafe(nil), Array) -# source://rubocop//lib/rubocop/cop/style/min_max_comparison.rb#41 +# source://rubocop/lib/rubocop/cop/style/min_max_comparison.rb#41 RuboCop::Cop::Style::MinMaxComparison::MSG = T.let(T.unsafe(nil), String) # Checks for `if` expressions that do not have an `else` branch. @@ -41753,101 +42324,131 @@ RuboCop::Cop::Style::MinMaxComparison::MSG = T.let(T.unsafe(nil), String) # # the content of `else` branch will be determined by Style/EmptyElse # end # -# source://rubocop//lib/rubocop/cop/style/missing_else.rb#99 +# source://rubocop/lib/rubocop/cop/style/missing_else.rb#99 class RuboCop::Cop::Style::MissingElse < ::RuboCop::Cop::Base include ::RuboCop::Cop::OnNormalIfUnless include ::RuboCop::Cop::ConfigurableEnforcedStyle extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/missing_else.rb#115 + # source://rubocop/lib/rubocop/cop/style/missing_else.rb#115 def on_case(node); end - # source://rubocop//lib/rubocop/cop/style/missing_else.rb#121 + # source://rubocop/lib/rubocop/cop/style/missing_else.rb#121 def on_case_match(node); end - # source://rubocop//lib/rubocop/cop/style/missing_else.rb#108 + # source://rubocop/lib/rubocop/cop/style/missing_else.rb#108 def on_normal_if_unless(node); end private - # source://rubocop//lib/rubocop/cop/style/missing_else.rb#146 + # source://rubocop/lib/rubocop/cop/style/missing_else.rb#146 def autocorrect(corrector, node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/missing_else.rb#159 + # source://rubocop/lib/rubocop/cop/style/missing_else.rb#159 def case_style?; end - # source://rubocop//lib/rubocop/cop/style/missing_else.rb#127 + # source://rubocop/lib/rubocop/cop/style/missing_else.rb#127 def check(node); end - # source://rubocop//lib/rubocop/cop/style/missing_else.rb#177 + # source://rubocop/lib/rubocop/cop/style/missing_else.rb#177 def empty_else_config; end - # source://rubocop//lib/rubocop/cop/style/missing_else.rb#171 + # source://rubocop/lib/rubocop/cop/style/missing_else.rb#171 def empty_else_style; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/missing_else.rb#155 + # source://rubocop/lib/rubocop/cop/style/missing_else.rb#155 def if_style?; end - # source://rubocop//lib/rubocop/cop/style/missing_else.rb#135 + # source://rubocop/lib/rubocop/cop/style/missing_else.rb#135 def message_template; end - # source://rubocop//lib/rubocop/cop/style/missing_else.rb#167 + # source://rubocop/lib/rubocop/cop/style/missing_else.rb#167 def unless_else_config; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/missing_else.rb#163 + # source://rubocop/lib/rubocop/cop/style/missing_else.rb#163 def unless_else_cop_enabled?; end end -# source://rubocop//lib/rubocop/cop/style/missing_else.rb#104 +# source://rubocop/lib/rubocop/cop/style/missing_else.rb#104 RuboCop::Cop::Style::MissingElse::MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/missing_else.rb#106 +# source://rubocop/lib/rubocop/cop/style/missing_else.rb#106 RuboCop::Cop::Style::MissingElse::MSG_EMPTY = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/missing_else.rb#105 +# source://rubocop/lib/rubocop/cop/style/missing_else.rb#105 RuboCop::Cop::Style::MissingElse::MSG_NIL = T.let(T.unsafe(nil), String) # Checks for the presence of `method_missing` without also # defining `respond_to_missing?`. # +# Not defining `respond_to_missing?` will cause metaprogramming +# methods like `respond_to?` to behave unexpectedly: +# +# [source,ruby] +# ---- +# class StringDelegator +# def initialize(string) +# @string = string +# end +# +# def method_missing(name, *args) +# @string.send(name, *args) +# end +# end +# +# delegator = StringDelegator.new("foo") +# # Claims to not respond to `upcase`. +# delegator.respond_to?(:upcase) # => false +# # But you can call it. +# delegator.upcase # => FOO +# ---- +# # @example # # bad # def method_missing(name, *args) -# # ... +# if @delegate.respond_to?(name) +# @delegate.send(name, *args) +# else +# super +# end # end # # # good # def respond_to_missing?(name, include_private) -# # ... +# @delegate.respond_to?(name) || super # end # # def method_missing(name, *args) -# # ... +# if @delegate.respond_to?(name) +# @delegate.send(name, *args) +# else +# super +# end # end # -# source://rubocop//lib/rubocop/cop/style/missing_respond_to_missing.rb#24 +# source://rubocop/lib/rubocop/cop/style/missing_respond_to_missing.rb#54 class RuboCop::Cop::Style::MissingRespondToMissing < ::RuboCop::Cop::Base - # source://rubocop//lib/rubocop/cop/style/missing_respond_to_missing.rb#27 + # source://rubocop/lib/rubocop/cop/style/missing_respond_to_missing.rb#57 def on_def(node); end - # source://rubocop//lib/rubocop/cop/style/missing_respond_to_missing.rb#27 + # source://rubocop/lib/rubocop/cop/style/missing_respond_to_missing.rb#57 def on_defs(node); end private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/missing_respond_to_missing.rb#37 + # source://rubocop/lib/rubocop/cop/style/missing_respond_to_missing.rb#67 def implements_respond_to_missing?(node); end end -# source://rubocop//lib/rubocop/cop/style/missing_respond_to_missing.rb#25 +# source://rubocop/lib/rubocop/cop/style/missing_respond_to_missing.rb#55 RuboCop::Cop::Style::MissingRespondToMissing::MSG = T.let(T.unsafe(nil), String) # Checks for grouping of mixins in `class` and `module` bodies. @@ -41877,55 +42478,55 @@ RuboCop::Cop::Style::MissingRespondToMissing::MSG = T.let(T.unsafe(nil), String) # extend Qox, Bar # end # -# source://rubocop//lib/rubocop/cop/style/mixin_grouping.rb#33 +# source://rubocop/lib/rubocop/cop/style/mixin_grouping.rb#33 class RuboCop::Cop::Style::MixinGrouping < ::RuboCop::Cop::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/mixin_grouping.rb#40 + # source://rubocop/lib/rubocop/cop/style/mixin_grouping.rb#40 def on_class(node); end - # source://rubocop//lib/rubocop/cop/style/mixin_grouping.rb#40 + # source://rubocop/lib/rubocop/cop/style/mixin_grouping.rb#40 def on_module(node); end private - # source://rubocop//lib/rubocop/cop/style/mixin_grouping.rb#64 + # source://rubocop/lib/rubocop/cop/style/mixin_grouping.rb#64 def check(send_node); end - # source://rubocop//lib/rubocop/cop/style/mixin_grouping.rb#72 + # source://rubocop/lib/rubocop/cop/style/mixin_grouping.rb#72 def check_grouped_style(send_node); end - # source://rubocop//lib/rubocop/cop/style/mixin_grouping.rb#91 + # source://rubocop/lib/rubocop/cop/style/mixin_grouping.rb#91 def check_separated_style(send_node); end - # source://rubocop//lib/rubocop/cop/style/mixin_grouping.rb#127 + # source://rubocop/lib/rubocop/cop/style/mixin_grouping.rb#127 def group_mixins(node, mixins); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/mixin_grouping.rb#110 + # source://rubocop/lib/rubocop/cop/style/mixin_grouping.rb#110 def grouped_style?; end - # source://rubocop//lib/rubocop/cop/style/mixin_grouping.rb#53 + # source://rubocop/lib/rubocop/cop/style/mixin_grouping.rb#53 def range_to_remove_for_subsequent_mixin(mixins, node); end - # source://rubocop//lib/rubocop/cop/style/mixin_grouping.rb#118 + # source://rubocop/lib/rubocop/cop/style/mixin_grouping.rb#118 def separate_mixins(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/mixin_grouping.rb#114 + # source://rubocop/lib/rubocop/cop/style/mixin_grouping.rb#114 def separated_style?; end - # source://rubocop//lib/rubocop/cop/style/mixin_grouping.rb#104 + # source://rubocop/lib/rubocop/cop/style/mixin_grouping.rb#104 def sibling_mixins(send_node); end end -# source://rubocop//lib/rubocop/cop/style/mixin_grouping.rb#37 +# source://rubocop/lib/rubocop/cop/style/mixin_grouping.rb#37 RuboCop::Cop::Style::MixinGrouping::MIXIN_METHODS = T.let(T.unsafe(nil), Array) -# source://rubocop//lib/rubocop/cop/style/mixin_grouping.rb#38 +# source://rubocop/lib/rubocop/cop/style/mixin_grouping.rb#38 RuboCop::Cop::Style::MixinGrouping::MSG = T.let(T.unsafe(nil), String) # Checks that `include`, `extend` and `prepend` statements appear @@ -41966,22 +42567,22 @@ RuboCop::Cop::Style::MixinGrouping::MSG = T.let(T.unsafe(nil), String) # prepend M # end # -# source://rubocop//lib/rubocop/cop/style/mixin_usage.rb#43 +# source://rubocop/lib/rubocop/cop/style/mixin_usage.rb#43 class RuboCop::Cop::Style::MixinUsage < ::RuboCop::Cop::Base - # source://rubocop//lib/rubocop/cop/style/mixin_usage.rb#54 + # source://rubocop/lib/rubocop/cop/style/mixin_usage.rb#54 def in_top_level_scope?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/style/mixin_usage.rb#48 + # source://rubocop/lib/rubocop/cop/style/mixin_usage.rb#48 def include_statement(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/style/mixin_usage.rb#62 + # source://rubocop/lib/rubocop/cop/style/mixin_usage.rb#62 def on_send(node); end end -# source://rubocop//lib/rubocop/cop/style/mixin_usage.rb#44 +# source://rubocop/lib/rubocop/cop/style/mixin_usage.rb#44 RuboCop::Cop::Style::MixinUsage::MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/mixin_usage.rb#45 +# source://rubocop/lib/rubocop/cop/style/mixin_usage.rb#45 RuboCop::Cop::Style::MixinUsage::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Checks for use of `extend self` or `module_function` in a module. @@ -42068,48 +42669,48 @@ RuboCop::Cop::Style::MixinUsage::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # end # end # -# source://rubocop//lib/rubocop/cop/style/module_function.rb#95 +# source://rubocop/lib/rubocop/cop/style/module_function.rb#95 class RuboCop::Cop::Style::ModuleFunction < ::RuboCop::Cop::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/module_function.rb#107 + # source://rubocop/lib/rubocop/cop/style/module_function.rb#107 def extend_self_node?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/style/module_function.rb#104 + # source://rubocop/lib/rubocop/cop/style/module_function.rb#104 def module_function_node?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/style/module_function.rb#112 + # source://rubocop/lib/rubocop/cop/style/module_function.rb#112 def on_module(node); end - # source://rubocop//lib/rubocop/cop/style/module_function.rb#110 + # source://rubocop/lib/rubocop/cop/style/module_function.rb#110 def private_directive?(param0 = T.unsafe(nil)); end private - # source://rubocop//lib/rubocop/cop/style/module_function.rb#149 + # source://rubocop/lib/rubocop/cop/style/module_function.rb#149 def check_extend_self(nodes); end - # source://rubocop//lib/rubocop/cop/style/module_function.rb#155 + # source://rubocop/lib/rubocop/cop/style/module_function.rb#155 def check_forbidden(nodes); end - # source://rubocop//lib/rubocop/cop/style/module_function.rb#141 + # source://rubocop/lib/rubocop/cop/style/module_function.rb#141 def check_module_function(nodes); end - # source://rubocop//lib/rubocop/cop/style/module_function.rb#130 + # source://rubocop/lib/rubocop/cop/style/module_function.rb#130 def each_wrong_style(nodes, &block); end - # source://rubocop//lib/rubocop/cop/style/module_function.rb#162 + # source://rubocop/lib/rubocop/cop/style/module_function.rb#162 def message(_range); end end -# source://rubocop//lib/rubocop/cop/style/module_function.rb#100 +# source://rubocop/lib/rubocop/cop/style/module_function.rb#100 RuboCop::Cop::Style::ModuleFunction::EXTEND_SELF_MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/module_function.rb#101 +# source://rubocop/lib/rubocop/cop/style/module_function.rb#101 RuboCop::Cop::Style::ModuleFunction::FORBIDDEN_MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/module_function.rb#99 +# source://rubocop/lib/rubocop/cop/style/module_function.rb#99 RuboCop::Cop::Style::ModuleFunction::MODULE_FUNCTION_MSG = T.let(T.unsafe(nil), String) # Checks for chaining of a block after another block that spans @@ -42132,18 +42733,18 @@ RuboCop::Cop::Style::ModuleFunction::MODULE_FUNCTION_MSG = T.let(T.unsafe(nil), # t.object_id # end # -# source://rubocop//lib/rubocop/cop/style/multiline_block_chain.rb#25 +# source://rubocop/lib/rubocop/cop/style/multiline_block_chain.rb#25 class RuboCop::Cop::Style::MultilineBlockChain < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp - # source://rubocop//lib/rubocop/cop/style/multiline_block_chain.rb#30 + # source://rubocop/lib/rubocop/cop/style/multiline_block_chain.rb#30 def on_block(node); end - # source://rubocop//lib/rubocop/cop/style/multiline_block_chain.rb#30 + # source://rubocop/lib/rubocop/cop/style/multiline_block_chain.rb#30 def on_numblock(node); end end -# source://rubocop//lib/rubocop/cop/style/multiline_block_chain.rb#28 +# source://rubocop/lib/rubocop/cop/style/multiline_block_chain.rb#28 RuboCop::Cop::Style::MultilineBlockChain::MSG = T.let(T.unsafe(nil), String) # Checks for uses of if/unless modifiers with multiple-lines bodies. @@ -42158,26 +42759,26 @@ RuboCop::Cop::Style::MultilineBlockChain::MSG = T.let(T.unsafe(nil), String) # # good # { result: 'ok' } if cond # -# source://rubocop//lib/rubocop/cop/style/multiline_if_modifier.rb#17 +# source://rubocop/lib/rubocop/cop/style/multiline_if_modifier.rb#17 class RuboCop::Cop::Style::MultilineIfModifier < ::RuboCop::Cop::Base include ::RuboCop::Cop::Alignment include ::RuboCop::Cop::LineLengthHelp include ::RuboCop::Cop::StatementModifier extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/multiline_if_modifier.rb#25 + # source://rubocop/lib/rubocop/cop/style/multiline_if_modifier.rb#25 def on_if(node); end private - # source://rubocop//lib/rubocop/cop/style/multiline_if_modifier.rb#43 + # source://rubocop/lib/rubocop/cop/style/multiline_if_modifier.rb#43 def indented_body(body, node); end - # source://rubocop//lib/rubocop/cop/style/multiline_if_modifier.rb#35 + # source://rubocop/lib/rubocop/cop/style/multiline_if_modifier.rb#35 def to_normal_if(node); end end -# source://rubocop//lib/rubocop/cop/style/multiline_if_modifier.rb#22 +# source://rubocop/lib/rubocop/cop/style/multiline_if_modifier.rb#22 RuboCop::Cop::Style::MultilineIfModifier::MSG = T.let(T.unsafe(nil), String) # Checks for uses of the `then` keyword in multi-line if statements. @@ -42194,27 +42795,27 @@ RuboCop::Cop::Style::MultilineIfModifier::MSG = T.let(T.unsafe(nil), String) # elsif cond then b # end # -# source://rubocop//lib/rubocop/cop/style/multiline_if_then.rb#19 +# source://rubocop/lib/rubocop/cop/style/multiline_if_then.rb#19 class RuboCop::Cop::Style::MultilineIfThen < ::RuboCop::Cop::Base include ::RuboCop::Cop::OnNormalIfUnless include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/multiline_if_then.rb#28 + # source://rubocop/lib/rubocop/cop/style/multiline_if_then.rb#28 def on_normal_if_unless(node); end private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/multiline_if_then.rb#38 + # source://rubocop/lib/rubocop/cop/style/multiline_if_then.rb#38 def non_modifier_then?(node); end end -# source://rubocop//lib/rubocop/cop/style/multiline_if_then.rb#26 +# source://rubocop/lib/rubocop/cop/style/multiline_if_then.rb#26 RuboCop::Cop::Style::MultilineIfThen::MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/multiline_if_then.rb#24 +# source://rubocop/lib/rubocop/cop/style/multiline_if_then.rb#24 RuboCop::Cop::Style::MultilineIfThen::NON_MODIFIER_THEN = T.let(T.unsafe(nil), Regexp) # Checks uses of the `then` keyword in multi-line `in` statement. @@ -42241,13 +42842,13 @@ RuboCop::Cop::Style::MultilineIfThen::NON_MODIFIER_THEN = T.let(T.unsafe(nil), R # arg2) # end # -# source://rubocop//lib/rubocop/cop/style/multiline_in_pattern_then.rb#30 +# source://rubocop/lib/rubocop/cop/style/multiline_in_pattern_then.rb#30 class RuboCop::Cop::Style::MultilineInPatternThen < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector extend ::RuboCop::Cop::TargetRubyVersion - # source://rubocop//lib/rubocop/cop/style/multiline_in_pattern_then.rb#39 + # source://rubocop/lib/rubocop/cop/style/multiline_in_pattern_then.rb#39 def on_in_pattern(node); end private @@ -42256,11 +42857,11 @@ class RuboCop::Cop::Style::MultilineInPatternThen < ::RuboCop::Cop::Base # # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/multiline_in_pattern_then.rb#51 + # source://rubocop/lib/rubocop/cop/style/multiline_in_pattern_then.rb#51 def require_then?(in_pattern_node); end end -# source://rubocop//lib/rubocop/cop/style/multiline_in_pattern_then.rb#37 +# source://rubocop/lib/rubocop/cop/style/multiline_in_pattern_then.rb#37 RuboCop::Cop::Style::MultilineInPatternThen::MSG = T.let(T.unsafe(nil), String) # Checks expressions wrapping styles for multiline memoization. @@ -42290,39 +42891,39 @@ RuboCop::Cop::Style::MultilineInPatternThen::MSG = T.let(T.unsafe(nil), String) # baz # ) # -# source://rubocop//lib/rubocop/cop/style/multiline_memoization.rb#33 +# source://rubocop/lib/rubocop/cop/style/multiline_memoization.rb#33 class RuboCop::Cop::Style::MultilineMemoization < ::RuboCop::Cop::Base include ::RuboCop::Cop::Alignment include ::RuboCop::Cop::ConfigurableEnforcedStyle extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/multiline_memoization.rb#56 + # source://rubocop/lib/rubocop/cop/style/multiline_memoization.rb#56 def message(_node); end - # source://rubocop//lib/rubocop/cop/style/multiline_memoization.rb#41 + # source://rubocop/lib/rubocop/cop/style/multiline_memoization.rb#41 def on_or_asgn(node); end private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/multiline_memoization.rb#62 + # source://rubocop/lib/rubocop/cop/style/multiline_memoization.rb#62 def bad_rhs?(rhs); end - # source://rubocop//lib/rubocop/cop/style/multiline_memoization.rb#72 + # source://rubocop/lib/rubocop/cop/style/multiline_memoization.rb#72 def keyword_autocorrect(node, corrector); end - # source://rubocop//lib/rubocop/cop/style/multiline_memoization.rb#78 + # source://rubocop/lib/rubocop/cop/style/multiline_memoization.rb#78 def keyword_begin_str(node, node_buf); end - # source://rubocop//lib/rubocop/cop/style/multiline_memoization.rb#86 + # source://rubocop/lib/rubocop/cop/style/multiline_memoization.rb#86 def keyword_end_str(node, node_buf); end end -# source://rubocop//lib/rubocop/cop/style/multiline_memoization.rb#39 +# source://rubocop/lib/rubocop/cop/style/multiline_memoization.rb#39 RuboCop::Cop::Style::MultilineMemoization::BRACES_MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/multiline_memoization.rb#38 +# source://rubocop/lib/rubocop/cop/style/multiline_memoization.rb#38 RuboCop::Cop::Style::MultilineMemoization::KEYWORD_MSG = T.let(T.unsafe(nil), String) # Checks for method signatures that span multiple lines. @@ -42340,50 +42941,50 @@ RuboCop::Cop::Style::MultilineMemoization::KEYWORD_MSG = T.let(T.unsafe(nil), St # baz) # end # -# source://rubocop//lib/rubocop/cop/style/multiline_method_signature.rb#21 +# source://rubocop/lib/rubocop/cop/style/multiline_method_signature.rb#21 class RuboCop::Cop::Style::MultilineMethodSignature < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/multiline_method_signature.rb#27 + # source://rubocop/lib/rubocop/cop/style/multiline_method_signature.rb#27 def on_def(node); end - # source://rubocop//lib/rubocop/cop/style/multiline_method_signature.rb#27 + # source://rubocop/lib/rubocop/cop/style/multiline_method_signature.rb#27 def on_defs(node); end private - # source://rubocop//lib/rubocop/cop/style/multiline_method_signature.rb#69 + # source://rubocop/lib/rubocop/cop/style/multiline_method_signature.rb#69 def arguments_range(node); end - # source://rubocop//lib/rubocop/cop/style/multiline_method_signature.rb#42 + # source://rubocop/lib/rubocop/cop/style/multiline_method_signature.rb#42 def autocorrect(corrector, node, begin_of_arguments); end - # source://rubocop//lib/rubocop/cop/style/multiline_method_signature.rb#81 + # source://rubocop/lib/rubocop/cop/style/multiline_method_signature.rb#81 def closing_line(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/multiline_method_signature.rb#85 + # source://rubocop/lib/rubocop/cop/style/multiline_method_signature.rb#85 def correction_exceeds_max_line_length?(node); end - # source://rubocop//lib/rubocop/cop/style/multiline_method_signature.rb#93 + # source://rubocop/lib/rubocop/cop/style/multiline_method_signature.rb#93 def definition_width(node); end - # source://rubocop//lib/rubocop/cop/style/multiline_method_signature.rb#89 + # source://rubocop/lib/rubocop/cop/style/multiline_method_signature.rb#89 def indentation_width(node); end - # source://rubocop//lib/rubocop/cop/style/multiline_method_signature.rb#65 + # source://rubocop/lib/rubocop/cop/style/multiline_method_signature.rb#65 def last_line_source_of_arguments(arguments); end - # source://rubocop//lib/rubocop/cop/style/multiline_method_signature.rb#97 + # source://rubocop/lib/rubocop/cop/style/multiline_method_signature.rb#97 def max_line_length; end - # source://rubocop//lib/rubocop/cop/style/multiline_method_signature.rb#77 + # source://rubocop/lib/rubocop/cop/style/multiline_method_signature.rb#77 def opening_line(node); end end -# source://rubocop//lib/rubocop/cop/style/multiline_method_signature.rb#25 +# source://rubocop/lib/rubocop/cop/style/multiline_method_signature.rb#25 RuboCop::Cop::Style::MultilineMethodSignature::MSG = T.let(T.unsafe(nil), String) # Checks for multi-line ternary op expressions. @@ -42416,48 +43017,48 @@ RuboCop::Cop::Style::MultilineMethodSignature::MSG = T.let(T.unsafe(nil), String # # return cond ? b : c # -# source://rubocop//lib/rubocop/cop/style/multiline_ternary_operator.rb#36 +# source://rubocop/lib/rubocop/cop/style/multiline_ternary_operator.rb#36 class RuboCop::Cop::Style::MultilineTernaryOperator < ::RuboCop::Cop::Base include ::RuboCop::Cop::CommentsHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/multiline_ternary_operator.rb#44 + # source://rubocop/lib/rubocop/cop/style/multiline_ternary_operator.rb#44 def on_if(node); end private - # source://rubocop//lib/rubocop/cop/style/multiline_ternary_operator.rb#64 + # source://rubocop/lib/rubocop/cop/style/multiline_ternary_operator.rb#64 def autocorrect(corrector, node); end - # source://rubocop//lib/rubocop/cop/style/multiline_ternary_operator.rb#86 + # source://rubocop/lib/rubocop/cop/style/multiline_ternary_operator.rb#86 def comments_in_condition(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/multiline_ternary_operator.rb#92 + # source://rubocop/lib/rubocop/cop/style/multiline_ternary_operator.rb#92 def enforce_single_line_ternary_operator?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/multiline_ternary_operator.rb#60 + # source://rubocop/lib/rubocop/cop/style/multiline_ternary_operator.rb#60 def offense?(node); end - # source://rubocop//lib/rubocop/cop/style/multiline_ternary_operator.rb#72 + # source://rubocop/lib/rubocop/cop/style/multiline_ternary_operator.rb#72 def replacement(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/multiline_ternary_operator.rb#96 + # source://rubocop/lib/rubocop/cop/style/multiline_ternary_operator.rb#96 def use_assignment_method?(node); end end -# source://rubocop//lib/rubocop/cop/style/multiline_ternary_operator.rb#40 +# source://rubocop/lib/rubocop/cop/style/multiline_ternary_operator.rb#40 RuboCop::Cop::Style::MultilineTernaryOperator::MSG_IF = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/multiline_ternary_operator.rb#41 +# source://rubocop/lib/rubocop/cop/style/multiline_ternary_operator.rb#41 RuboCop::Cop::Style::MultilineTernaryOperator::MSG_SINGLE_LINE = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/multiline_ternary_operator.rb#42 +# source://rubocop/lib/rubocop/cop/style/multiline_ternary_operator.rb#42 RuboCop::Cop::Style::MultilineTernaryOperator::SINGLE_LINE_TYPES = T.let(T.unsafe(nil), Array) # Checks uses of the `then` keyword @@ -42485,12 +43086,12 @@ RuboCop::Cop::Style::MultilineTernaryOperator::SINGLE_LINE_TYPES = T.let(T.unsaf # arg2) # end # -# source://rubocop//lib/rubocop/cop/style/multiline_when_then.rb#31 +# source://rubocop/lib/rubocop/cop/style/multiline_when_then.rb#31 class RuboCop::Cop::Style::MultilineWhenThen < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/multiline_when_then.rb#37 + # source://rubocop/lib/rubocop/cop/style/multiline_when_then.rb#37 def on_when(node); end private @@ -42499,11 +43100,11 @@ class RuboCop::Cop::Style::MultilineWhenThen < ::RuboCop::Cop::Base # # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/multiline_when_then.rb#49 + # source://rubocop/lib/rubocop/cop/style/multiline_when_then.rb#49 def require_then?(when_node); end end -# source://rubocop//lib/rubocop/cop/style/multiline_when_then.rb#35 +# source://rubocop/lib/rubocop/cop/style/multiline_when_then.rb#35 RuboCop::Cop::Style::MultilineWhenThen::MSG = T.let(T.unsafe(nil), String) # Checks against comparing a variable with multiple items, where @@ -42548,58 +43149,61 @@ RuboCop::Cop::Style::MultilineWhenThen::MSG = T.let(T.unsafe(nil), String) # # good # foo if a == 'a' || a == 'b' # -# source://rubocop//lib/rubocop/cop/style/multiple_comparison.rb#52 +# source://rubocop/lib/rubocop/cop/style/multiple_comparison.rb#52 class RuboCop::Cop::Style::MultipleComparison < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/multiple_comparison.rb#58 + # source://rubocop/lib/rubocop/cop/style/multiple_comparison.rb#58 def on_or(node); end - # source://rubocop//lib/rubocop/cop/style/multiple_comparison.rb#80 + # source://rubocop/lib/rubocop/cop/style/multiple_comparison.rb#82 def simple_comparison_lhs?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/style/multiple_comparison.rb#85 + # source://rubocop/lib/rubocop/cop/style/multiple_comparison.rb#87 def simple_comparison_rhs?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/style/multiple_comparison.rb#77 + # source://rubocop/lib/rubocop/cop/style/multiple_comparison.rb#79 def simple_double_comparison?(param0 = T.unsafe(nil)); end private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/multiple_comparison.rb#142 + # source://rubocop/lib/rubocop/cop/style/multiple_comparison.rb#148 def allow_method_comparison?; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/multiple_comparison.rb#121 + # source://rubocop/lib/rubocop/cop/style/multiple_comparison.rb#127 def comparison?(node); end - # source://rubocop//lib/rubocop/cop/style/multiple_comparison.rb#146 + # source://rubocop/lib/rubocop/cop/style/multiple_comparison.rb#152 def comparisons_threshold; end - # source://rubocop//lib/rubocop/cop/style/multiple_comparison.rb#90 + # source://rubocop/lib/rubocop/cop/style/multiple_comparison.rb#92 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#113 + # source://rubocop/lib/rubocop/cop/style/multiple_comparison.rb#119 def nested_comparison?(node); end - # source://rubocop//lib/rubocop/cop/style/multiple_comparison.rb#132 + # source://rubocop/lib/rubocop/cop/style/multiple_comparison.rb#111 + def offense_range(values); end + + # source://rubocop/lib/rubocop/cop/style/multiple_comparison.rb#138 def root_of_or_node(or_node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/multiple_comparison.rb#125 + # source://rubocop/lib/rubocop/cop/style/multiple_comparison.rb#131 def simple_comparison?(node); end - # source://rubocop//lib/rubocop/cop/style/multiple_comparison.rb#109 + # source://rubocop/lib/rubocop/cop/style/multiple_comparison.rb#115 def variable_name(node); end end -# source://rubocop//lib/rubocop/cop/style/multiple_comparison.rb#55 +# source://rubocop/lib/rubocop/cop/style/multiple_comparison.rb#55 RuboCop::Cop::Style::MultipleComparison::MSG = T.let(T.unsafe(nil), String) # Checks whether some constant value isn't a @@ -42671,75 +43275,75 @@ RuboCop::Cop::Style::MultipleComparison::MSG = T.let(T.unsafe(nil), String) # # shareable_constant_value: literal # CONST = [1, 2, 3] # -# source://rubocop//lib/rubocop/cop/style/mutable_constant.rb#83 +# source://rubocop/lib/rubocop/cop/style/mutable_constant.rb#83 class RuboCop::Cop::Style::MutableConstant < ::RuboCop::Cop::Base include ::RuboCop::Cop::Style::MutableConstant::ShareableConstantValue include ::RuboCop::Cop::FrozenStringLiteral include ::RuboCop::Cop::ConfigurableEnforcedStyle extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-sorbet/0.8.7/lib/rubocop/cop/sorbet/mutable_constant_sorbet_aware_behaviour.rb#18 + # source://rubocop-sorbet/0.8.7lib/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 + # source://rubocop/lib/rubocop/cop/style/mutable_constant.rb#127 def on_casgn(node); end # Some of these patterns may not actually return an immutable object, # but we want to consider them immutable for this cop. # - # source://rubocop//lib/rubocop/cop/style/mutable_constant.rb#224 + # source://rubocop/lib/rubocop/cop/style/mutable_constant.rb#223 def operation_produces_immutable_object?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/style/mutable_constant.rb#241 + # source://rubocop/lib/rubocop/cop/style/mutable_constant.rb#240 def range_enclosed_in_parentheses?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/style/mutable_constant.rb#217 + # source://rubocop/lib/rubocop/cop/style/mutable_constant.rb#216 def splat_value(param0 = T.unsafe(nil)); end - # source://rubocop-sorbet/0.8.7/lib/rubocop/cop/sorbet/mutable_constant_sorbet_aware_behaviour.rb#12 + # source://rubocop-sorbet/0.8.7lib/rubocop/cop/sorbet/mutable_constant_sorbet_aware_behaviour.rb#12 def t_let(param0 = T.unsafe(nil)); end private - # source://rubocop//lib/rubocop/cop/style/mutable_constant.rb#169 + # source://rubocop/lib/rubocop/cop/style/mutable_constant.rb#168 def autocorrect(corrector, node); end - # source://rubocop//lib/rubocop/cop/style/mutable_constant.rb#158 + # source://rubocop/lib/rubocop/cop/style/mutable_constant.rb#157 def check(value); end - # source://rubocop//lib/rubocop/cop/style/mutable_constant.rb#208 + # source://rubocop/lib/rubocop/cop/style/mutable_constant.rb#207 def correct_splat_expansion(corrector, expr, splat_value); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/mutable_constant.rb#200 + # source://rubocop/lib/rubocop/cop/style/mutable_constant.rb#199 def frozen_regexp_or_range_literals?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/mutable_constant.rb#190 + # source://rubocop/lib/rubocop/cop/style/mutable_constant.rb#189 def immutable_literal?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/mutable_constant.rb#184 + # source://rubocop/lib/rubocop/cop/style/mutable_constant.rb#183 def mutable_literal?(value); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/mutable_constant.rb#204 + # source://rubocop/lib/rubocop/cop/style/mutable_constant.rb#203 def requires_parentheses?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/mutable_constant.rb#194 + # source://rubocop/lib/rubocop/cop/style/mutable_constant.rb#193 def shareable_constant_value?(node); end - # source://rubocop//lib/rubocop/cop/style/mutable_constant.rb#149 + # source://rubocop/lib/rubocop/cop/style/mutable_constant.rb#148 def strict_check(value); end end -# source://rubocop//lib/rubocop/cop/style/mutable_constant.rb#125 +# source://rubocop/lib/rubocop/cop/style/mutable_constant.rb#125 RuboCop::Cop::Style::MutableConstant::MSG = T.let(T.unsafe(nil), String) # Handles magic comment shareable_constant_value with O(n ^ 2) complexity @@ -42747,35 +43351,35 @@ RuboCop::Cop::Style::MutableConstant::MSG = T.let(T.unsafe(nil), String) # Iterates over all lines before a CONSTANT # until it reaches shareable_constant_value # -# source://rubocop//lib/rubocop/cop/style/mutable_constant.rb#88 +# source://rubocop/lib/rubocop/cop/style/mutable_constant.rb#88 module RuboCop::Cop::Style::MutableConstant::ShareableConstantValue private # Identifies the most recent magic comment with valid shareable constant values # that's in scope for this node # - # source://rubocop//lib/rubocop/cop/style/mutable_constant.rb#102 + # source://rubocop/lib/rubocop/cop/style/mutable_constant.rb#102 def magic_comment_in_scope(node); end - # source://rubocop//lib/rubocop/cop/style/mutable_constant.rb#110 + # source://rubocop/lib/rubocop/cop/style/mutable_constant.rb#110 def processed_source_till_node(node); end - # source://rubocop//lib/rubocop/cop/style/mutable_constant.rb#91 + # source://rubocop/lib/rubocop/cop/style/mutable_constant.rb#91 def recent_shareable_value?(node); end - # source://rubocop//lib/rubocop/cop/style/mutable_constant.rb#114 + # source://rubocop/lib/rubocop/cop/style/mutable_constant.rb#114 def shareable_constant_value_enabled?(value); end class << self # Identifies the most recent magic comment with valid shareable constant values # that's in scope for this node # - # source://rubocop//lib/rubocop/cop/style/mutable_constant.rb#102 + # source://rubocop/lib/rubocop/cop/style/mutable_constant.rb#102 def magic_comment_in_scope(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/mutable_constant.rb#91 + # source://rubocop/lib/rubocop/cop/style/mutable_constant.rb#91 def recent_shareable_value?(node); end end end @@ -42844,23 +43448,23 @@ end # bar # end # -# source://rubocop//lib/rubocop/cop/style/negated_if.rb#71 +# source://rubocop/lib/rubocop/cop/style/negated_if.rb#71 class RuboCop::Cop::Style::NegatedIf < ::RuboCop::Cop::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle include ::RuboCop::Cop::NegativeConditional extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/negated_if.rb#76 + # source://rubocop/lib/rubocop/cop/style/negated_if.rb#76 def on_if(node); end private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/negated_if.rb#92 + # source://rubocop/lib/rubocop/cop/style/negated_if.rb#92 def correct_style?(node); end - # source://rubocop//lib/rubocop/cop/style/negated_if.rb#88 + # source://rubocop/lib/rubocop/cop/style/negated_if.rb#88 def message(node); end end @@ -42888,69 +43492,69 @@ end # # good # x ? do_something_else : do_something # -# source://rubocop//lib/rubocop/cop/style/negated_if_else_condition.rb#30 +# source://rubocop/lib/rubocop/cop/style/negated_if_else_condition.rb#30 class RuboCop::Cop::Style::NegatedIfElseCondition < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/negated_if_else_condition.rb#39 + # source://rubocop/lib/rubocop/cop/style/negated_if_else_condition.rb#39 def double_negation?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/style/negated_if_else_condition.rb#49 + # source://rubocop/lib/rubocop/cop/style/negated_if_else_condition.rb#50 def on_if(node); end - # source://rubocop//lib/rubocop/cop/style/negated_if_else_condition.rb#45 + # source://rubocop/lib/rubocop/cop/style/negated_if_else_condition.rb#45 def on_new_investigation; end private - # source://rubocop//lib/rubocop/cop/style/negated_if_else_condition.rb#94 + # source://rubocop/lib/rubocop/cop/style/negated_if_else_condition.rb#97 def correct_negated_condition(corrector, node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/negated_if_else_condition.rb#90 + # source://rubocop/lib/rubocop/cop/style/negated_if_else_condition.rb#93 def corrected_ancestor?(node); end # Collect the entire else branch, including whitespace and comments # - # source://rubocop//lib/rubocop/cop/style/negated_if_else_condition.rb#125 + # source://rubocop/lib/rubocop/cop/style/negated_if_else_condition.rb#127 def else_range(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/negated_if_else_condition.rb#68 + # source://rubocop/lib/rubocop/cop/style/negated_if_else_condition.rb#71 def if_else?(node); end # Collect the entire if branch, including whitespace and comments # - # source://rubocop//lib/rubocop/cop/style/negated_if_else_condition.rb#116 + # source://rubocop/lib/rubocop/cop/style/negated_if_else_condition.rb#118 def if_range(node); end - # source://rubocop//lib/rubocop/cop/style/negated_if_else_condition.rb#84 + # source://rubocop/lib/rubocop/cop/style/negated_if_else_condition.rb#87 def message(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/negated_if_else_condition.rb#79 + # source://rubocop/lib/rubocop/cop/style/negated_if_else_condition.rb#82 def negated_condition?(node); end - # source://rubocop//lib/rubocop/cop/style/negated_if_else_condition.rb#107 + # source://rubocop/lib/rubocop/cop/style/negated_if_else_condition.rb#109 def swap_branches(corrector, node); end - # source://rubocop//lib/rubocop/cop/style/negated_if_else_condition.rb#73 + # source://rubocop/lib/rubocop/cop/style/negated_if_else_condition.rb#76 def unwrap_begin_nodes(node); end class << self - # source://rubocop//lib/rubocop/cop/style/negated_if_else_condition.rb#41 + # source://rubocop/lib/rubocop/cop/style/negated_if_else_condition.rb#41 def autocorrect_incompatible_with; end end end -# source://rubocop//lib/rubocop/cop/style/negated_if_else_condition.rb#34 +# source://rubocop/lib/rubocop/cop/style/negated_if_else_condition.rb#34 RuboCop::Cop::Style::NegatedIfElseCondition::MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/negated_if_else_condition.rb#36 +# source://rubocop/lib/rubocop/cop/style/negated_if_else_condition.rb#36 RuboCop::Cop::Style::NegatedIfElseCondition::NEGATED_EQUALITY_METHODS = T.let(T.unsafe(nil), Array) # Checks for uses of unless with a negated condition. Only unless @@ -43007,23 +43611,23 @@ RuboCop::Cop::Style::NegatedIfElseCondition::NEGATED_EQUALITY_METHODS = T.let(T. # bar # end # -# source://rubocop//lib/rubocop/cop/style/negated_unless.rb#61 +# source://rubocop/lib/rubocop/cop/style/negated_unless.rb#61 class RuboCop::Cop::Style::NegatedUnless < ::RuboCop::Cop::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle include ::RuboCop::Cop::NegativeConditional extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/negated_unless.rb#66 + # source://rubocop/lib/rubocop/cop/style/negated_unless.rb#66 def on_if(node); end private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/negated_unless.rb#82 + # source://rubocop/lib/rubocop/cop/style/negated_unless.rb#82 def correct_style?(node); end - # source://rubocop//lib/rubocop/cop/style/negated_unless.rb#78 + # source://rubocop/lib/rubocop/cop/style/negated_unless.rb#78 def message(node); end end @@ -43047,15 +43651,15 @@ end # bar while foo # bar while !foo && baz # -# source://rubocop//lib/rubocop/cop/style/negated_while.rb#25 +# source://rubocop/lib/rubocop/cop/style/negated_while.rb#25 class RuboCop::Cop::Style::NegatedWhile < ::RuboCop::Cop::Base include ::RuboCop::Cop::NegativeConditional extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/negated_while.rb#29 + # source://rubocop/lib/rubocop/cop/style/negated_while.rb#29 def on_until(node); end - # source://rubocop//lib/rubocop/cop/style/negated_while.rb#29 + # source://rubocop/lib/rubocop/cop/style/negated_while.rb#29 def on_while(node); end end @@ -43070,31 +43674,31 @@ end # # good # File.dirname(path, 2) # -# source://rubocop//lib/rubocop/cop/style/nested_file_dirname.rb#17 +# source://rubocop/lib/rubocop/cop/style/nested_file_dirname.rb#17 class RuboCop::Cop::Style::NestedFileDirname < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector extend ::RuboCop::Cop::TargetRubyVersion - # source://rubocop//lib/rubocop/cop/style/nested_file_dirname.rb#28 + # source://rubocop/lib/rubocop/cop/style/nested_file_dirname.rb#28 def file_dirname?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/style/nested_file_dirname.rb#33 + # source://rubocop/lib/rubocop/cop/style/nested_file_dirname.rb#33 def on_send(node); end private - # source://rubocop//lib/rubocop/cop/style/nested_file_dirname.rb#60 + # source://rubocop/lib/rubocop/cop/style/nested_file_dirname.rb#60 def offense_range(node); end - # source://rubocop//lib/rubocop/cop/style/nested_file_dirname.rb#49 + # source://rubocop/lib/rubocop/cop/style/nested_file_dirname.rb#49 def path_with_dir_level(node, level); end end -# source://rubocop//lib/rubocop/cop/style/nested_file_dirname.rb#22 +# source://rubocop/lib/rubocop/cop/style/nested_file_dirname.rb#22 RuboCop::Cop::Style::NestedFileDirname::MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/nested_file_dirname.rb#23 +# source://rubocop/lib/rubocop/cop/style/nested_file_dirname.rb#23 RuboCop::Cop::Style::NestedFileDirname::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Checks for nested use of if, unless, while and until in their @@ -43108,55 +43712,55 @@ RuboCop::Cop::Style::NestedFileDirname::RESTRICT_ON_SEND = T.let(T.unsafe(nil), # # good # something if b && a # -# source://rubocop//lib/rubocop/cop/style/nested_modifier.rb#16 +# source://rubocop/lib/rubocop/cop/style/nested_modifier.rb#16 class RuboCop::Cop::Style::NestedModifier < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/nested_modifier.rb#22 + # source://rubocop/lib/rubocop/cop/style/nested_modifier.rb#22 def on_if(node); end - # source://rubocop//lib/rubocop/cop/style/nested_modifier.rb#22 + # source://rubocop/lib/rubocop/cop/style/nested_modifier.rb#22 def on_until(node); end - # source://rubocop//lib/rubocop/cop/style/nested_modifier.rb#22 + # source://rubocop/lib/rubocop/cop/style/nested_modifier.rb#22 def on_while(node); end private - # source://rubocop//lib/rubocop/cop/style/nested_modifier.rb#85 + # source://rubocop/lib/rubocop/cop/style/nested_modifier.rb#85 def add_parentheses_to_method_arguments(send_node); end - # source://rubocop//lib/rubocop/cop/style/nested_modifier.rb#42 + # source://rubocop/lib/rubocop/cop/style/nested_modifier.rb#42 def autocorrect(corrector, node); end - # source://rubocop//lib/rubocop/cop/style/nested_modifier.rb#30 + # source://rubocop/lib/rubocop/cop/style/nested_modifier.rb#30 def check(node); end - # source://rubocop//lib/rubocop/cop/style/nested_modifier.rb#65 + # source://rubocop/lib/rubocop/cop/style/nested_modifier.rb#65 def left_hand_operand(node, operator); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/nested_modifier.rb#38 + # source://rubocop/lib/rubocop/cop/style/nested_modifier.rb#38 def modifier?(node); end - # source://rubocop//lib/rubocop/cop/style/nested_modifier.rb#51 + # source://rubocop/lib/rubocop/cop/style/nested_modifier.rb#51 def new_expression(inner_node); end - # source://rubocop//lib/rubocop/cop/style/nested_modifier.rb#61 + # source://rubocop/lib/rubocop/cop/style/nested_modifier.rb#61 def replacement_operator(keyword); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/nested_modifier.rb#94 + # source://rubocop/lib/rubocop/cop/style/nested_modifier.rb#94 def requires_parens?(node); end - # source://rubocop//lib/rubocop/cop/style/nested_modifier.rb#71 + # source://rubocop/lib/rubocop/cop/style/nested_modifier.rb#71 def right_hand_operand(node, left_hand_keyword); end end -# source://rubocop//lib/rubocop/cop/style/nested_modifier.rb#20 +# source://rubocop/lib/rubocop/cop/style/nested_modifier.rb#20 RuboCop::Cop::Style::NestedModifier::MSG = T.let(T.unsafe(nil), String) # Checks for unparenthesized method calls in the argument list @@ -43176,40 +43780,40 @@ RuboCop::Cop::Style::NestedModifier::MSG = T.let(T.unsafe(nil), String) # # good # method1(foo arg) # -# source://rubocop//lib/rubocop/cop/style/nested_parenthesized_calls.rb#24 +# source://rubocop/lib/rubocop/cop/style/nested_parenthesized_calls.rb#24 class RuboCop::Cop::Style::NestedParenthesizedCalls < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp include ::RuboCop::Cop::AllowedMethods extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/nested_parenthesized_calls.rb#35 + # source://rubocop/lib/rubocop/cop/style/nested_parenthesized_calls.rb#35 def on_csend(node); end - # source://rubocop//lib/rubocop/cop/style/nested_parenthesized_calls.rb#35 + # source://rubocop/lib/rubocop/cop/style/nested_parenthesized_calls.rb#35 def on_send(node); end private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/nested_parenthesized_calls.rb#71 + # source://rubocop/lib/rubocop/cop/style/nested_parenthesized_calls.rb#71 def allowed?(send_node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/nested_parenthesized_calls.rb#65 + # source://rubocop/lib/rubocop/cop/style/nested_parenthesized_calls.rb#65 def allowed_omission?(send_node); end - # source://rubocop//lib/rubocop/cop/style/nested_parenthesized_calls.rb#51 + # source://rubocop/lib/rubocop/cop/style/nested_parenthesized_calls.rb#51 def autocorrect(corrector, nested); end class << self - # source://rubocop//lib/rubocop/cop/style/nested_parenthesized_calls.rb#31 + # source://rubocop/lib/rubocop/cop/style/nested_parenthesized_calls.rb#31 def autocorrect_incompatible_with; end end end -# source://rubocop//lib/rubocop/cop/style/nested_parenthesized_calls.rb#29 +# source://rubocop/lib/rubocop/cop/style/nested_parenthesized_calls.rb#29 RuboCop::Cop::Style::NestedParenthesizedCalls::MSG = T.let(T.unsafe(nil), String) # Checks for nested ternary op expressions. @@ -43225,27 +43829,27 @@ RuboCop::Cop::Style::NestedParenthesizedCalls::MSG = T.let(T.unsafe(nil), String # a2 # end # -# source://rubocop//lib/rubocop/cop/style/nested_ternary_operator.rb#18 +# source://rubocop/lib/rubocop/cop/style/nested_ternary_operator.rb#18 class RuboCop::Cop::Style::NestedTernaryOperator < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/nested_ternary_operator.rb#25 + # source://rubocop/lib/rubocop/cop/style/nested_ternary_operator.rb#24 def on_if(node); end private - # source://rubocop//lib/rubocop/cop/style/nested_ternary_operator.rb#40 + # source://rubocop/lib/rubocop/cop/style/nested_ternary_operator.rb#39 def autocorrect(corrector, if_node); end - # source://rubocop//lib/rubocop/cop/style/nested_ternary_operator.rb#47 + # source://rubocop/lib/rubocop/cop/style/nested_ternary_operator.rb#46 def remove_parentheses(source); end - # source://rubocop//lib/rubocop/cop/style/nested_ternary_operator.rb#53 + # source://rubocop/lib/rubocop/cop/style/nested_ternary_operator.rb#54 def replace_loc_and_whitespace(corrector, range, replacement); end end -# source://rubocop//lib/rubocop/cop/style/nested_ternary_operator.rb#23 +# source://rubocop/lib/rubocop/cop/style/nested_ternary_operator.rb#22 RuboCop::Cop::Style::NestedTernaryOperator::MSG = T.let(T.unsafe(nil), String) # Use `next` to skip iteration instead of a condition at the end. @@ -43291,116 +43895,116 @@ RuboCop::Cop::Style::NestedTernaryOperator::MSG = T.let(T.unsafe(nil), String) # puts a # end # -# source://rubocop//lib/rubocop/cop/style/next.rb#49 +# source://rubocop/lib/rubocop/cop/style/next.rb#49 class RuboCop::Cop::Style::Next < ::RuboCop::Cop::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle include ::RuboCop::Cop::MinBodyLength include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/next.rb#68 + # source://rubocop/lib/rubocop/cop/style/next.rb#68 def on_block(node); end - # source://rubocop//lib/rubocop/cop/style/next.rb#76 + # source://rubocop/lib/rubocop/cop/style/next.rb#76 def on_for(node); end - # source://rubocop//lib/rubocop/cop/style/next.rb#62 + # source://rubocop/lib/rubocop/cop/style/next.rb#62 def on_new_investigation; end - # source://rubocop//lib/rubocop/cop/style/next.rb#68 + # source://rubocop/lib/rubocop/cop/style/next.rb#68 def on_numblock(node); end - # source://rubocop//lib/rubocop/cop/style/next.rb#76 + # source://rubocop/lib/rubocop/cop/style/next.rb#76 def on_until(node); end - # source://rubocop//lib/rubocop/cop/style/next.rb#76 + # source://rubocop/lib/rubocop/cop/style/next.rb#76 def on_while(node); end private - # source://rubocop//lib/rubocop/cop/style/next.rb#213 + # source://rubocop/lib/rubocop/cop/style/next.rb#213 def actual_indent(lines, buffer); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/next.rb#112 + # source://rubocop/lib/rubocop/cop/style/next.rb#112 def allowed_modifier_if?(node); end - # source://rubocop//lib/rubocop/cop/style/next.rb#155 + # source://rubocop/lib/rubocop/cop/style/next.rb#155 def autocorrect_block(corrector, node); end - # source://rubocop//lib/rubocop/cop/style/next.rb#145 + # source://rubocop/lib/rubocop/cop/style/next.rb#145 def autocorrect_modifier(corrector, node); end - # source://rubocop//lib/rubocop/cop/style/next.rb#84 + # source://rubocop/lib/rubocop/cop/style/next.rb#84 def check(node); end - # source://rubocop//lib/rubocop/cop/style/next.rb#170 + # source://rubocop/lib/rubocop/cop/style/next.rb#170 def cond_range(node, cond); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/next.rb#189 + # source://rubocop/lib/rubocop/cop/style/next.rb#189 def end_followed_by_whitespace_only?(source_buffer, end_pos); end - # source://rubocop//lib/rubocop/cop/style/next.rb#180 + # source://rubocop/lib/rubocop/cop/style/next.rb#180 def end_range(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/next.rb#98 + # source://rubocop/lib/rubocop/cop/style/next.rb#98 def ends_with_condition?(body); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/next.rb#128 + # source://rubocop/lib/rubocop/cop/style/next.rb#128 def exit_body_type?(node); end - # source://rubocop//lib/rubocop/cop/style/next.rb#217 + # source://rubocop/lib/rubocop/cop/style/next.rb#217 def heredoc_lines(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/next.rb#120 + # source://rubocop/lib/rubocop/cop/style/next.rb#120 def if_else_children?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/next.rb#124 + # source://rubocop/lib/rubocop/cop/style/next.rb#124 def if_without_else?(node); end - # source://rubocop//lib/rubocop/cop/style/next.rb#140 + # source://rubocop/lib/rubocop/cop/style/next.rb#140 def offense_location(offense_node); end - # source://rubocop//lib/rubocop/cop/style/next.rb#134 + # source://rubocop/lib/rubocop/cop/style/next.rb#134 def offense_node(body); end # Adjust indentation of `lines` to match `node` # - # source://rubocop//lib/rubocop/cop/style/next.rb#204 + # source://rubocop/lib/rubocop/cop/style/next.rb#204 def reindent(lines, node, corrector); end - # source://rubocop//lib/rubocop/cop/style/next.rb#224 + # source://rubocop/lib/rubocop/cop/style/next.rb#224 def reindent_line(corrector, lineno, delta, buffer); end - # source://rubocop//lib/rubocop/cop/style/next.rb#193 + # source://rubocop/lib/rubocop/cop/style/next.rb#193 def reindentable_lines(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/next.rb#104 + # source://rubocop/lib/rubocop/cop/style/next.rb#104 def simple_if_without_break?(node); end class << self - # source://rubocop//lib/rubocop/cop/style/next.rb#58 + # source://rubocop/lib/rubocop/cop/style/next.rb#58 def autocorrect_incompatible_with; end end end -# source://rubocop//lib/rubocop/cop/style/next.rb#56 +# source://rubocop/lib/rubocop/cop/style/next.rb#56 RuboCop::Cop::Style::Next::EXIT_TYPES = T.let(T.unsafe(nil), Array) -# source://rubocop//lib/rubocop/cop/style/next.rb#55 +# source://rubocop/lib/rubocop/cop/style/next.rb#55 RuboCop::Cop::Style::Next::MSG = T.let(T.unsafe(nil), String) # Checks for comparison of something with nil using `==` and @@ -43427,43 +44031,43 @@ RuboCop::Cop::Style::Next::MSG = T.let(T.unsafe(nil), String) # if x == nil # end # -# source://rubocop//lib/rubocop/cop/style/nil_comparison.rb#31 +# source://rubocop/lib/rubocop/cop/style/nil_comparison.rb#31 class RuboCop::Cop::Style::NilComparison < ::RuboCop::Cop::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/nil_comparison.rb#44 + # source://rubocop/lib/rubocop/cop/style/nil_comparison.rb#44 def nil_check?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/style/nil_comparison.rb#41 + # source://rubocop/lib/rubocop/cop/style/nil_comparison.rb#41 def nil_comparison?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/style/nil_comparison.rb#46 + # source://rubocop/lib/rubocop/cop/style/nil_comparison.rb#46 def on_send(node); end private - # source://rubocop//lib/rubocop/cop/style/nil_comparison.rb#67 + # source://rubocop/lib/rubocop/cop/style/nil_comparison.rb#67 def message(_node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/nil_comparison.rb#79 + # source://rubocop/lib/rubocop/cop/style/nil_comparison.rb#79 def prefer_comparison?; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/nil_comparison.rb#71 + # source://rubocop/lib/rubocop/cop/style/nil_comparison.rb#71 def style_check?(node, &block); end end -# source://rubocop//lib/rubocop/cop/style/nil_comparison.rb#36 +# source://rubocop/lib/rubocop/cop/style/nil_comparison.rb#36 RuboCop::Cop::Style::NilComparison::EXPLICIT_MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/nil_comparison.rb#35 +# source://rubocop/lib/rubocop/cop/style/nil_comparison.rb#35 RuboCop::Cop::Style::NilComparison::PREDICATE_MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/nil_comparison.rb#38 +# source://rubocop/lib/rubocop/cop/style/nil_comparison.rb#38 RuboCop::Cop::Style::NilComparison::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Checks for lambdas and procs that always return nil, @@ -43495,24 +44099,24 @@ RuboCop::Cop::Style::NilComparison::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Arra # # Proc.new { nil if x } # -# source://rubocop//lib/rubocop/cop/style/nil_lambda.rb#35 +# source://rubocop/lib/rubocop/cop/style/nil_lambda.rb#35 class RuboCop::Cop::Style::NilLambda < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/nil_lambda.rb#42 + # source://rubocop/lib/rubocop/cop/style/nil_lambda.rb#42 def nil_return?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/style/nil_lambda.rb#46 + # source://rubocop/lib/rubocop/cop/style/nil_lambda.rb#46 def on_block(node); end private - # source://rubocop//lib/rubocop/cop/style/nil_lambda.rb#58 + # source://rubocop/lib/rubocop/cop/style/nil_lambda.rb#58 def autocorrect(corrector, node); end end -# source://rubocop//lib/rubocop/cop/style/nil_lambda.rb#39 +# source://rubocop/lib/rubocop/cop/style/nil_lambda.rb#39 RuboCop::Cop::Style::NilLambda::MSG = T.let(T.unsafe(nil), String) # Checks for non-nil checks, which are usually redundant. @@ -43551,74 +44155,74 @@ RuboCop::Cop::Style::NilLambda::MSG = T.let(T.unsafe(nil), String) # if !x.nil? # end # -# source://rubocop//lib/rubocop/cop/style/non_nil_check.rb#44 +# source://rubocop/lib/rubocop/cop/style/non_nil_check.rb#44 class RuboCop::Cop::Style::NonNilCheck < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/non_nil_check.rb#59 + # source://rubocop/lib/rubocop/cop/style/non_nil_check.rb#59 def nil_check?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/style/non_nil_check.rb#62 + # source://rubocop/lib/rubocop/cop/style/non_nil_check.rb#62 def not_and_nil_check?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/style/non_nil_check.rb#53 + # source://rubocop/lib/rubocop/cop/style/non_nil_check.rb#53 def not_equal_to_nil?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/style/non_nil_check.rb#73 + # source://rubocop/lib/rubocop/cop/style/non_nil_check.rb#73 def on_def(node); end - # source://rubocop//lib/rubocop/cop/style/non_nil_check.rb#73 + # source://rubocop/lib/rubocop/cop/style/non_nil_check.rb#73 def on_defs(node); end - # source://rubocop//lib/rubocop/cop/style/non_nil_check.rb#64 + # source://rubocop/lib/rubocop/cop/style/non_nil_check.rb#64 def on_send(node); end - # source://rubocop//lib/rubocop/cop/style/non_nil_check.rb#56 + # source://rubocop/lib/rubocop/cop/style/non_nil_check.rb#56 def unless_check?(param0 = T.unsafe(nil)); end private - # source://rubocop//lib/rubocop/cop/style/non_nil_check.rb#93 + # source://rubocop/lib/rubocop/cop/style/non_nil_check.rb#93 def autocorrect(corrector, node); end - # source://rubocop//lib/rubocop/cop/style/non_nil_check.rb#123 + # source://rubocop/lib/rubocop/cop/style/non_nil_check.rb#123 def autocorrect_comparison(corrector, node); end - # source://rubocop//lib/rubocop/cop/style/non_nil_check.rb#137 + # source://rubocop/lib/rubocop/cop/style/non_nil_check.rb#137 def autocorrect_non_nil(corrector, node, inner_node); end - # source://rubocop//lib/rubocop/cop/style/non_nil_check.rb#145 + # source://rubocop/lib/rubocop/cop/style/non_nil_check.rb#145 def autocorrect_unless_nil(corrector, node, receiver); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/non_nil_check.rb#119 + # source://rubocop/lib/rubocop/cop/style/non_nil_check.rb#119 def include_semantic_changes?; end - # source://rubocop//lib/rubocop/cop/style/non_nil_check.rb#110 + # source://rubocop/lib/rubocop/cop/style/non_nil_check.rb#110 def message(node); end - # source://rubocop//lib/rubocop/cop/style/non_nil_check.rb#150 + # source://rubocop/lib/rubocop/cop/style/non_nil_check.rb#150 def nil_comparison_style; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/non_nil_check.rb#88 + # source://rubocop/lib/rubocop/cop/style/non_nil_check.rb#88 def register_offense?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/non_nil_check.rb#104 + # source://rubocop/lib/rubocop/cop/style/non_nil_check.rb#104 def unless_and_nil_check?(send_node); end end -# source://rubocop//lib/rubocop/cop/style/non_nil_check.rb#48 +# source://rubocop/lib/rubocop/cop/style/non_nil_check.rb#48 RuboCop::Cop::Style::NonNilCheck::MSG_FOR_REDUNDANCY = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/non_nil_check.rb#47 +# source://rubocop/lib/rubocop/cop/style/non_nil_check.rb#47 RuboCop::Cop::Style::NonNilCheck::MSG_FOR_REPLACEMENT = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/non_nil_check.rb#50 +# source://rubocop/lib/rubocop/cop/style/non_nil_check.rb#50 RuboCop::Cop::Style::NonNilCheck::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Checks for uses of the keyword `not` instead of `!`. @@ -43631,43 +44235,43 @@ RuboCop::Cop::Style::NonNilCheck::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # # good # x = !something # -# source://rubocop//lib/rubocop/cop/style/not.rb#16 +# source://rubocop/lib/rubocop/cop/style/not.rb#16 class RuboCop::Cop::Style::Not < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/not.rb#32 + # source://rubocop/lib/rubocop/cop/style/not.rb#32 def on_send(node); end private - # source://rubocop//lib/rubocop/cop/style/not.rb#60 + # source://rubocop/lib/rubocop/cop/style/not.rb#60 def correct_opposite_method(corrector, range, child); end - # source://rubocop//lib/rubocop/cop/style/not.rb#65 + # source://rubocop/lib/rubocop/cop/style/not.rb#65 def correct_with_parens(corrector, range, node); end - # source://rubocop//lib/rubocop/cop/style/not.rb#70 + # source://rubocop/lib/rubocop/cop/style/not.rb#70 def correct_without_parens(corrector, range); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/not.rb#50 + # source://rubocop/lib/rubocop/cop/style/not.rb#50 def opposite_method?(child); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/not.rb#54 + # source://rubocop/lib/rubocop/cop/style/not.rb#54 def requires_parens?(child); end end -# source://rubocop//lib/rubocop/cop/style/not.rb#20 +# source://rubocop/lib/rubocop/cop/style/not.rb#20 RuboCop::Cop::Style::Not::MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/not.rb#23 +# source://rubocop/lib/rubocop/cop/style/not.rb#23 RuboCop::Cop::Style::Not::OPPOSITE_METHODS = T.let(T.unsafe(nil), Hash) -# source://rubocop//lib/rubocop/cop/style/not.rb#21 +# source://rubocop/lib/rubocop/cop/style/not.rb#21 RuboCop::Cop::Style::Not::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Checks for numbered parameters. @@ -43690,19 +44294,19 @@ RuboCop::Cop::Style::Not::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # # good # collection.each { |item| puts item } # -# source://rubocop//lib/rubocop/cop/style/numbered_parameters.rb#27 +# source://rubocop/lib/rubocop/cop/style/numbered_parameters.rb#27 class RuboCop::Cop::Style::NumberedParameters < ::RuboCop::Cop::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle extend ::RuboCop::Cop::TargetRubyVersion - # source://rubocop//lib/rubocop/cop/style/numbered_parameters.rb#36 + # source://rubocop/lib/rubocop/cop/style/numbered_parameters.rb#36 def on_numblock(node); end end -# source://rubocop//lib/rubocop/cop/style/numbered_parameters.rb#31 +# source://rubocop/lib/rubocop/cop/style/numbered_parameters.rb#31 RuboCop::Cop::Style::NumberedParameters::MSG_DISALLOW = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/numbered_parameters.rb#32 +# source://rubocop/lib/rubocop/cop/style/numbered_parameters.rb#32 RuboCop::Cop::Style::NumberedParameters::MSG_MULTI_LINE = T.let(T.unsafe(nil), String) # Detects use of an excessive amount of numbered parameters in a @@ -43720,32 +44324,32 @@ RuboCop::Cop::Style::NumberedParameters::MSG_MULTI_LINE = T.let(T.unsafe(nil), S # array.each { use_array_element_as_numbered_parameter(_1) } # hash.each { use_only_hash_value_as_numbered_parameter(_2) } # -# source://rubocop//lib/rubocop/cop/style/numbered_parameters_limit.rb#20 +# source://rubocop/lib/rubocop/cop/style/numbered_parameters_limit.rb#20 class RuboCop::Cop::Style::NumberedParametersLimit < ::RuboCop::Cop::Base extend ::RuboCop::Cop::TargetRubyVersion - # source://rubocop//lib/rubocop/cop/exclude_limit.rb#11 + # source://rubocop/lib/rubocop/cop/exclude_limit.rb#11 def max=(value); end - # source://rubocop//lib/rubocop/cop/style/numbered_parameters_limit.rb#32 + # source://rubocop/lib/rubocop/cop/style/numbered_parameters_limit.rb#32 def on_numblock(node); end private - # source://rubocop//lib/rubocop/cop/style/numbered_parameters_limit.rb#49 + # source://rubocop/lib/rubocop/cop/style/numbered_parameters_limit.rb#49 def max_count; end - # source://rubocop//lib/rubocop/cop/style/numbered_parameters_limit.rb#43 + # source://rubocop/lib/rubocop/cop/style/numbered_parameters_limit.rb#43 def numbered_parameter_nodes(node); end end -# source://rubocop//lib/rubocop/cop/style/numbered_parameters_limit.rb#24 +# source://rubocop/lib/rubocop/cop/style/numbered_parameters_limit.rb#24 RuboCop::Cop::Style::NumberedParametersLimit::DEFAULT_MAX_VALUE = T.let(T.unsafe(nil), Integer) -# source://rubocop//lib/rubocop/cop/style/numbered_parameters_limit.rb#29 +# source://rubocop/lib/rubocop/cop/style/numbered_parameters_limit.rb#29 RuboCop::Cop::Style::NumberedParametersLimit::MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/numbered_parameters_limit.rb#30 +# source://rubocop/lib/rubocop/cop/style/numbered_parameters_limit.rb#30 RuboCop::Cop::Style::NumberedParametersLimit::NUMBERED_PARAMETER_PATTERN = T.let(T.unsafe(nil), Regexp) # Checks for octal, hex, binary, and decimal literals using @@ -43778,77 +44382,77 @@ RuboCop::Cop::Style::NumberedParametersLimit::NUMBERED_PARAMETER_PATTERN = T.let # # good # num = 01234 # -# source://rubocop//lib/rubocop/cop/style/numeric_literal_prefix.rb#36 +# source://rubocop/lib/rubocop/cop/style/numeric_literal_prefix.rb#36 class RuboCop::Cop::Style::NumericLiteralPrefix < ::RuboCop::Cop::Base include ::RuboCop::Cop::IntegerNode extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/numeric_literal_prefix.rb#52 + # source://rubocop/lib/rubocop/cop/style/numeric_literal_prefix.rb#52 def on_int(node); end private - # source://rubocop//lib/rubocop/cop/style/numeric_literal_prefix.rb#109 + # source://rubocop/lib/rubocop/cop/style/numeric_literal_prefix.rb#109 def format_binary(source); end - # source://rubocop//lib/rubocop/cop/style/numeric_literal_prefix.rb#113 + # source://rubocop/lib/rubocop/cop/style/numeric_literal_prefix.rb#113 def format_decimal(source); end - # source://rubocop//lib/rubocop/cop/style/numeric_literal_prefix.rb#105 + # source://rubocop/lib/rubocop/cop/style/numeric_literal_prefix.rb#105 def format_hex(source); end - # source://rubocop//lib/rubocop/cop/style/numeric_literal_prefix.rb#97 + # source://rubocop/lib/rubocop/cop/style/numeric_literal_prefix.rb#97 def format_octal(source); end - # source://rubocop//lib/rubocop/cop/style/numeric_literal_prefix.rb#101 + # source://rubocop/lib/rubocop/cop/style/numeric_literal_prefix.rb#101 def format_octal_zero_only(source); end - # source://rubocop//lib/rubocop/cop/style/numeric_literal_prefix.rb#82 + # source://rubocop/lib/rubocop/cop/style/numeric_literal_prefix.rb#82 def hex_bin_dec_literal_type(literal); end - # source://rubocop//lib/rubocop/cop/style/numeric_literal_prefix.rb#68 + # source://rubocop/lib/rubocop/cop/style/numeric_literal_prefix.rb#68 def literal_type(node); end - # source://rubocop//lib/rubocop/cop/style/numeric_literal_prefix.rb#64 + # source://rubocop/lib/rubocop/cop/style/numeric_literal_prefix.rb#64 def message(node); end - # source://rubocop//lib/rubocop/cop/style/numeric_literal_prefix.rb#74 + # source://rubocop/lib/rubocop/cop/style/numeric_literal_prefix.rb#74 def octal_literal_type(literal); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/numeric_literal_prefix.rb#93 + # source://rubocop/lib/rubocop/cop/style/numeric_literal_prefix.rb#93 def octal_zero_only?; end end -# source://rubocop//lib/rubocop/cop/style/numeric_literal_prefix.rb#49 +# source://rubocop/lib/rubocop/cop/style/numeric_literal_prefix.rb#49 RuboCop::Cop::Style::NumericLiteralPrefix::BINARY_MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/numeric_literal_prefix.rb#43 +# source://rubocop/lib/rubocop/cop/style/numeric_literal_prefix.rb#43 RuboCop::Cop::Style::NumericLiteralPrefix::BINARY_REGEX = T.let(T.unsafe(nil), Regexp) -# source://rubocop//lib/rubocop/cop/style/numeric_literal_prefix.rb#50 +# source://rubocop/lib/rubocop/cop/style/numeric_literal_prefix.rb#50 RuboCop::Cop::Style::NumericLiteralPrefix::DECIMAL_MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/numeric_literal_prefix.rb#44 +# source://rubocop/lib/rubocop/cop/style/numeric_literal_prefix.rb#44 RuboCop::Cop::Style::NumericLiteralPrefix::DECIMAL_REGEX = T.let(T.unsafe(nil), Regexp) -# source://rubocop//lib/rubocop/cop/style/numeric_literal_prefix.rb#48 +# source://rubocop/lib/rubocop/cop/style/numeric_literal_prefix.rb#48 RuboCop::Cop::Style::NumericLiteralPrefix::HEX_MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/numeric_literal_prefix.rb#42 +# source://rubocop/lib/rubocop/cop/style/numeric_literal_prefix.rb#42 RuboCop::Cop::Style::NumericLiteralPrefix::HEX_REGEX = T.let(T.unsafe(nil), Regexp) -# source://rubocop//lib/rubocop/cop/style/numeric_literal_prefix.rb#47 +# source://rubocop/lib/rubocop/cop/style/numeric_literal_prefix.rb#47 RuboCop::Cop::Style::NumericLiteralPrefix::OCTAL_MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/numeric_literal_prefix.rb#41 +# source://rubocop/lib/rubocop/cop/style/numeric_literal_prefix.rb#41 RuboCop::Cop::Style::NumericLiteralPrefix::OCTAL_REGEX = T.let(T.unsafe(nil), Regexp) -# source://rubocop//lib/rubocop/cop/style/numeric_literal_prefix.rb#46 +# source://rubocop/lib/rubocop/cop/style/numeric_literal_prefix.rb#46 RuboCop::Cop::Style::NumericLiteralPrefix::OCTAL_ZERO_ONLY_MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/numeric_literal_prefix.rb#40 +# source://rubocop/lib/rubocop/cop/style/numeric_literal_prefix.rb#40 RuboCop::Cop::Style::NumericLiteralPrefix::OCTAL_ZERO_ONLY_REGEX = T.let(T.unsafe(nil), Regexp) # Checks for big numeric literals without `_` between groups @@ -43885,54 +44489,54 @@ RuboCop::Cop::Style::NumericLiteralPrefix::OCTAL_ZERO_ONLY_REGEX = T.let(T.unsaf # # good # 3000 # You can specify allowed numbers. (e.g. port number) # -# source://rubocop//lib/rubocop/cop/style/numeric_literals.rb#43 +# source://rubocop/lib/rubocop/cop/style/numeric_literals.rb#43 class RuboCop::Cop::Style::NumericLiterals < ::RuboCop::Cop::Base include ::RuboCop::Cop::IntegerNode include ::RuboCop::Cop::AllowedPattern extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/exclude_limit.rb#11 + # source://rubocop/lib/rubocop/cop/exclude_limit.rb#11 def min_digits=(value); end - # source://rubocop//lib/rubocop/cop/style/numeric_literals.rb#60 + # source://rubocop/lib/rubocop/cop/style/numeric_literals.rb#60 def on_float(node); end - # source://rubocop//lib/rubocop/cop/style/numeric_literals.rb#56 + # source://rubocop/lib/rubocop/cop/style/numeric_literals.rb#56 def on_int(node); end private - # source://rubocop//lib/rubocop/cop/style/numeric_literals.rb#118 + # source://rubocop/lib/rubocop/cop/style/numeric_literals.rb#118 def allowed_numbers; end - # source://rubocop//lib/rubocop/cop/style/numeric_literals.rb#122 + # source://rubocop/lib/rubocop/cop/style/numeric_literals.rb#122 def allowed_patterns; end - # source://rubocop//lib/rubocop/cop/style/numeric_literals.rb#66 + # source://rubocop/lib/rubocop/cop/style/numeric_literals.rb#66 def check(node); end # @param int_part [String] # - # source://rubocop//lib/rubocop/cop/style/numeric_literals.rb#107 + # source://rubocop/lib/rubocop/cop/style/numeric_literals.rb#107 def format_int_part(int_part); end - # source://rubocop//lib/rubocop/cop/style/numeric_literals.rb#93 + # source://rubocop/lib/rubocop/cop/style/numeric_literals.rb#93 def format_number(node); end - # source://rubocop//lib/rubocop/cop/style/numeric_literals.rb#114 + # source://rubocop/lib/rubocop/cop/style/numeric_literals.rb#114 def min_digits; end - # source://rubocop//lib/rubocop/cop/style/numeric_literals.rb#82 + # source://rubocop/lib/rubocop/cop/style/numeric_literals.rb#82 def register_offense(node, &_block); end - # source://rubocop//lib/rubocop/cop/style/numeric_literals.rb#89 + # source://rubocop/lib/rubocop/cop/style/numeric_literals.rb#89 def short_group_regex; end end -# source://rubocop//lib/rubocop/cop/style/numeric_literals.rb#49 +# source://rubocop/lib/rubocop/cop/style/numeric_literals.rb#49 RuboCop::Cop::Style::NumericLiterals::DELIMITER_REGEXP = T.let(T.unsafe(nil), Regexp) -# source://rubocop//lib/rubocop/cop/style/numeric_literals.rb#48 +# source://rubocop/lib/rubocop/cop/style/numeric_literals.rb#48 RuboCop::Cop::Style::NumericLiterals::MSG = T.let(T.unsafe(nil), String) # Checks for usage of comparison operators (`==`, @@ -43997,67 +44601,67 @@ RuboCop::Cop::Style::NumericLiterals::MSG = T.let(T.unsafe(nil), String) # foo.negative? # bar.baz.positive? # -# source://rubocop//lib/rubocop/cop/style/numeric_predicate.rb#78 +# source://rubocop/lib/rubocop/cop/style/numeric_predicate.rb#78 class RuboCop::Cop::Style::NumericPredicate < ::RuboCop::Cop::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle include ::RuboCop::Cop::AllowedMethods include ::RuboCop::Cop::AllowedPattern extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/numeric_predicate.rb#174 + # source://rubocop/lib/rubocop/cop/style/numeric_predicate.rb#174 def comparison(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/style/numeric_predicate.rb#179 + # source://rubocop/lib/rubocop/cop/style/numeric_predicate.rb#179 def inverted_comparison(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/style/numeric_predicate.rb#90 + # source://rubocop/lib/rubocop/cop/style/numeric_predicate.rb#90 def on_send(node); end - # source://rubocop//lib/rubocop/cop/style/numeric_predicate.rb#169 + # source://rubocop/lib/rubocop/cop/style/numeric_predicate.rb#169 def predicate(param0 = T.unsafe(nil)); end private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/numeric_predicate.rb#107 + # source://rubocop/lib/rubocop/cop/style/numeric_predicate.rb#107 def allowed_method_name?(name); end - # source://rubocop//lib/rubocop/cop/style/numeric_predicate.rb#111 + # source://rubocop/lib/rubocop/cop/style/numeric_predicate.rb#111 def check(node); end - # source://rubocop//lib/rubocop/cop/style/numeric_predicate.rb#154 + # source://rubocop/lib/rubocop/cop/style/numeric_predicate.rb#154 def invert; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/numeric_predicate.rb#162 + # source://rubocop/lib/rubocop/cop/style/numeric_predicate.rb#162 def negated?(node); end - # source://rubocop//lib/rubocop/cop/style/numeric_predicate.rb#134 + # source://rubocop/lib/rubocop/cop/style/numeric_predicate.rb#134 def parenthesized_source(node); end - # source://rubocop//lib/rubocop/cop/style/numeric_predicate.rb#124 + # source://rubocop/lib/rubocop/cop/style/numeric_predicate.rb#124 def replacement(node, numeric, operation); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/numeric_predicate.rb#146 + # source://rubocop/lib/rubocop/cop/style/numeric_predicate.rb#146 def replacement_supported?(operator); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/numeric_predicate.rb#142 + # source://rubocop/lib/rubocop/cop/style/numeric_predicate.rb#142 def require_parentheses?(node); end end -# source://rubocop//lib/rubocop/cop/style/numeric_predicate.rb#84 +# source://rubocop/lib/rubocop/cop/style/numeric_predicate.rb#84 RuboCop::Cop::Style::NumericPredicate::MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/numeric_predicate.rb#86 +# source://rubocop/lib/rubocop/cop/style/numeric_predicate.rb#86 RuboCop::Cop::Style::NumericPredicate::REPLACEMENTS = T.let(T.unsafe(nil), Hash) -# source://rubocop//lib/rubocop/cop/style/numeric_predicate.rb#88 +# source://rubocop/lib/rubocop/cop/style/numeric_predicate.rb#88 RuboCop::Cop::Style::NumericPredicate::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Enforces the use of consistent method names @@ -44078,41 +44682,44 @@ RuboCop::Cop::Style::NumericPredicate::RESTRICT_ON_SEND = T.let(T.unsafe(nil), A # # good # obj.yield_self { |x| x.do_something } # -# source://rubocop//lib/rubocop/cop/style/object_then.rb#25 +# source://rubocop/lib/rubocop/cop/style/object_then.rb#25 class RuboCop::Cop::Style::ObjectThen < ::RuboCop::Cop::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle extend ::RuboCop::Cop::AutoCorrector extend ::RuboCop::Cop::TargetRubyVersion - # source://rubocop//lib/rubocop/cop/style/object_then.rb#34 + # source://rubocop/lib/rubocop/cop/style/object_then.rb#35 def on_block(node); end - # source://rubocop//lib/rubocop/cop/style/object_then.rb#34 + # source://rubocop/lib/rubocop/cop/style/object_then.rb#35 def on_numblock(node); end - # source://rubocop//lib/rubocop/cop/style/object_then.rb#40 + # source://rubocop/lib/rubocop/cop/style/object_then.rb#41 def on_send(node); end private - # source://rubocop//lib/rubocop/cop/style/object_then.rb#48 + # source://rubocop/lib/rubocop/cop/style/object_then.rb#49 def check_method_node(node); end - # source://rubocop//lib/rubocop/cop/style/object_then.rb#70 + # source://rubocop/lib/rubocop/cop/style/object_then.rb#71 def message(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/object_then.rb#59 + # source://rubocop/lib/rubocop/cop/style/object_then.rb#60 def preferred_method?(node); end end -# source://rubocop//lib/rubocop/cop/style/object_then.rb#32 +# source://rubocop/lib/rubocop/cop/style/object_then.rb#32 RuboCop::Cop::Style::ObjectThen::MSG = T.let(T.unsafe(nil), String) +# source://rubocop/lib/rubocop/cop/style/object_then.rb#33 +RuboCop::Cop::Style::ObjectThen::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + # Checks for uses of if/then/else/end constructs on a single line. -# AlwaysCorrectToMultiline config option can be set to true to auto-convert all offenses to -# multi-line constructs. When AlwaysCorrectToMultiline is false (default case) the +# `AlwaysCorrectToMultiline` config option can be set to true to autocorrect all offenses to +# multi-line constructs. When `AlwaysCorrectToMultiline` is false (default case) the # autocorrect will first try converting them to ternary operators. # # @example @@ -44137,61 +44744,77 @@ RuboCop::Cop::Style::ObjectThen::MSG = T.let(T.unsafe(nil), String) # else # baz # end +# @example AlwaysCorrectToMultiline: false (default) +# # bad +# if cond then run else dont end # -# source://rubocop//lib/rubocop/cop/style/one_line_conditional.rb#33 +# # good +# cond ? run : dont +# @example AlwaysCorrectToMultiline: true +# # bad +# if cond then run else dont end +# +# # good +# if cond +# run +# else +# dont +# end +# +# source://rubocop/lib/rubocop/cop/style/one_line_conditional.rb#52 class RuboCop::Cop::Style::OneLineConditional < ::RuboCop::Cop::Base include ::RuboCop::Cop::Alignment include ::RuboCop::Cop::ConfigurableEnforcedStyle include ::RuboCop::Cop::OnNormalIfUnless extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/one_line_conditional.rb#42 + # source://rubocop/lib/rubocop/cop/style/one_line_conditional.rb#61 def on_normal_if_unless(node); end private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/one_line_conditional.rb#81 + # source://rubocop/lib/rubocop/cop/style/one_line_conditional.rb#100 def always_multiline?; end - # source://rubocop//lib/rubocop/cop/style/one_line_conditional.rb#63 + # source://rubocop/lib/rubocop/cop/style/one_line_conditional.rb#82 def autocorrect(corrector, node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/one_line_conditional.rb#85 + # source://rubocop/lib/rubocop/cop/style/one_line_conditional.rb#104 def cannot_replace_to_ternary?(node); end - # source://rubocop//lib/rubocop/cop/style/one_line_conditional.rb#97 + # source://rubocop/lib/rubocop/cop/style/one_line_conditional.rb#118 def expr_replacement(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/one_line_conditional.rb#118 + # source://rubocop/lib/rubocop/cop/style/one_line_conditional.rb#139 def keyword_with_changed_precedence?(node); end - # source://rubocop//lib/rubocop/cop/style/one_line_conditional.rb#59 + # source://rubocop/lib/rubocop/cop/style/one_line_conditional.rb#78 def message(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/one_line_conditional.rb#111 + # source://rubocop/lib/rubocop/cop/style/one_line_conditional.rb#132 def method_call_with_changed_precedence?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/one_line_conditional.rb#103 + # source://rubocop/lib/rubocop/cop/style/one_line_conditional.rb#124 def requires_parentheses?(node); end - # source://rubocop//lib/rubocop/cop/style/one_line_conditional.rb#71 + # source://rubocop/lib/rubocop/cop/style/one_line_conditional.rb#90 def ternary_correction(node); end - # source://rubocop//lib/rubocop/cop/style/one_line_conditional.rb#89 + # source://rubocop/lib/rubocop/cop/style/one_line_conditional.rb#110 def ternary_replacement(node); end end -# source://rubocop//lib/rubocop/cop/style/one_line_conditional.rb#39 +# source://rubocop/lib/rubocop/cop/style/one_line_conditional.rb#58 RuboCop::Cop::Style::OneLineConditional::MSG = T.let(T.unsafe(nil), String) # Flags uses of OpenStruct, as it is now officially discouraged @@ -44216,23 +44839,23 @@ RuboCop::Cop::Style::OneLineConditional::MSG = T.let(T.unsafe(nil), String) # test_double = double # allow(test_double).to receive(:a).and_return('b') # -# source://rubocop//lib/rubocop/cop/style/open_struct_use.rb#44 +# source://rubocop/lib/rubocop/cop/style/open_struct_use.rb#44 class RuboCop::Cop::Style::OpenStructUse < ::RuboCop::Cop::Base - # source://rubocop//lib/rubocop/cop/style/open_struct_use.rb#52 + # source://rubocop/lib/rubocop/cop/style/open_struct_use.rb#52 def on_const(node); end - # source://rubocop//lib/rubocop/cop/style/open_struct_use.rb#48 + # source://rubocop/lib/rubocop/cop/style/open_struct_use.rb#48 def uses_open_struct?(param0 = T.unsafe(nil)); end private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/open_struct_use.rb#61 + # source://rubocop/lib/rubocop/cop/style/open_struct_use.rb#61 def custom_class_or_module_definition?(node); end end -# source://rubocop//lib/rubocop/cop/style/open_struct_use.rb#45 +# source://rubocop/lib/rubocop/cop/style/open_struct_use.rb#45 RuboCop::Cop::Style::OpenStructUse::MSG = T.let(T.unsafe(nil), String) # Checks for redundant dot before operator method call. @@ -44249,43 +44872,43 @@ RuboCop::Cop::Style::OpenStructUse::MSG = T.let(T.unsafe(nil), String) # foo + bar # foo & bar # -# source://rubocop//lib/rubocop/cop/style/operator_method_call.rb#20 +# source://rubocop/lib/rubocop/cop/style/operator_method_call.rb#20 class RuboCop::Cop::Style::OperatorMethodCall < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/operator_method_call.rb#30 + # source://rubocop/lib/rubocop/cop/style/operator_method_call.rb#30 def on_send(node); end private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/operator_method_call.rb#75 + # source://rubocop/lib/rubocop/cop/style/operator_method_call.rb#74 def insert_space_after?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/operator_method_call.rb#58 + # source://rubocop/lib/rubocop/cop/style/operator_method_call.rb#57 def invalid_syntax_argument?(argument); end # Checks for an acceptable case of `foo.+(bar).baz`. # # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/operator_method_call.rb#52 + # source://rubocop/lib/rubocop/cop/style/operator_method_call.rb#51 def method_call_with_parenthesized_arg?(argument); end - # source://rubocop//lib/rubocop/cop/style/operator_method_call.rb#64 + # source://rubocop/lib/rubocop/cop/style/operator_method_call.rb#63 def wrap_in_parentheses_if_chained(corrector, node); end end -# source://rubocop//lib/rubocop/cop/style/operator_method_call.rb#25 +# source://rubocop/lib/rubocop/cop/style/operator_method_call.rb#25 RuboCop::Cop::Style::OperatorMethodCall::INVALID_SYNTAX_ARG_TYPES = T.let(T.unsafe(nil), Array) -# source://rubocop//lib/rubocop/cop/style/operator_method_call.rb#23 +# source://rubocop/lib/rubocop/cop/style/operator_method_call.rb#23 RuboCop::Cop::Style::OperatorMethodCall::MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/operator_method_call.rb#24 +# source://rubocop/lib/rubocop/cop/style/operator_method_call.rb#24 RuboCop::Cop::Style::OperatorMethodCall::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Checks for options hashes and discourages them if the @@ -44304,31 +44927,31 @@ RuboCop::Cop::Style::OperatorMethodCall::RESTRICT_ON_SEND = T.let(T.unsafe(nil), # # ... # end # -# source://rubocop//lib/rubocop/cop/style/option_hash.rb#22 +# source://rubocop/lib/rubocop/cop/style/option_hash.rb#22 class RuboCop::Cop::Style::OptionHash < ::RuboCop::Cop::Base - # source://rubocop//lib/rubocop/cop/style/option_hash.rb#30 + # source://rubocop/lib/rubocop/cop/style/option_hash.rb#30 def on_args(node); end - # source://rubocop//lib/rubocop/cop/style/option_hash.rb#26 + # source://rubocop/lib/rubocop/cop/style/option_hash.rb#26 def option_hash(param0 = T.unsafe(nil)); end private - # source://rubocop//lib/rubocop/cop/style/option_hash.rb#39 + # source://rubocop/lib/rubocop/cop/style/option_hash.rb#39 def allowlist; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/option_hash.rb#48 + # source://rubocop/lib/rubocop/cop/style/option_hash.rb#48 def super_used?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/option_hash.rb#43 + # source://rubocop/lib/rubocop/cop/style/option_hash.rb#43 def suspicious_name?(arg_name); end end -# source://rubocop//lib/rubocop/cop/style/option_hash.rb#23 +# source://rubocop/lib/rubocop/cop/style/option_hash.rb#23 RuboCop::Cop::Style::OptionHash::MSG = T.let(T.unsafe(nil), String) # Checks for optional arguments to methods @@ -44346,21 +44969,21 @@ RuboCop::Cop::Style::OptionHash::MSG = T.let(T.unsafe(nil), String) # def foobar(a = 1, b = 2, c = 3) # end # -# source://rubocop//lib/rubocop/cop/style/optional_arguments.rb#24 +# source://rubocop/lib/rubocop/cop/style/optional_arguments.rb#24 class RuboCop::Cop::Style::OptionalArguments < ::RuboCop::Cop::Base - # source://rubocop//lib/rubocop/cop/style/optional_arguments.rb#27 + # source://rubocop/lib/rubocop/cop/style/optional_arguments.rb#27 def on_def(node); end private - # source://rubocop//lib/rubocop/cop/style/optional_arguments.rb#45 + # source://rubocop/lib/rubocop/cop/style/optional_arguments.rb#45 def argument_positions(arguments); end - # source://rubocop//lib/rubocop/cop/style/optional_arguments.rb#33 + # source://rubocop/lib/rubocop/cop/style/optional_arguments.rb#33 def each_misplaced_optional_arg(arguments); end end -# source://rubocop//lib/rubocop/cop/style/optional_arguments.rb#25 +# source://rubocop/lib/rubocop/cop/style/optional_arguments.rb#25 RuboCop::Cop::Style::OptionalArguments::MSG = T.let(T.unsafe(nil), String) # Checks for places where keyword arguments can be used instead of @@ -44389,23 +45012,23 @@ RuboCop::Cop::Style::OptionalArguments::MSG = T.let(T.unsafe(nil), String) # puts bar # end # -# source://rubocop//lib/rubocop/cop/style/optional_boolean_parameter.rb#37 +# source://rubocop/lib/rubocop/cop/style/optional_boolean_parameter.rb#37 class RuboCop::Cop::Style::OptionalBooleanParameter < ::RuboCop::Cop::Base include ::RuboCop::Cop::AllowedMethods - # source://rubocop//lib/rubocop/cop/style/optional_boolean_parameter.rb#43 + # source://rubocop/lib/rubocop/cop/style/optional_boolean_parameter.rb#43 def on_def(node); end - # source://rubocop//lib/rubocop/cop/style/optional_boolean_parameter.rb#43 + # source://rubocop/lib/rubocop/cop/style/optional_boolean_parameter.rb#43 def on_defs(node); end private - # source://rubocop//lib/rubocop/cop/style/optional_boolean_parameter.rb#56 + # source://rubocop/lib/rubocop/cop/style/optional_boolean_parameter.rb#56 def format_message(argument); end end -# source://rubocop//lib/rubocop/cop/style/optional_boolean_parameter.rb#40 +# source://rubocop/lib/rubocop/cop/style/optional_boolean_parameter.rb#40 RuboCop::Cop::Style::OptionalBooleanParameter::MSG = T.let(T.unsafe(nil), String) # Checks for potential usage of the `||=` operator. @@ -44432,44 +45055,44 @@ RuboCop::Cop::Style::OptionalBooleanParameter::MSG = T.let(T.unsafe(nil), String # # good - set name to 'Bozhidar', only if it's nil or false # name ||= 'Bozhidar' # -# source://rubocop//lib/rubocop/cop/style/or_assignment.rb#29 +# source://rubocop/lib/rubocop/cop/style/or_assignment.rb#29 class RuboCop::Cop::Style::OrAssignment < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/or_assignment.rb#57 + # source://rubocop/lib/rubocop/cop/style/or_assignment.rb#57 def on_cvasgn(node); end - # source://rubocop//lib/rubocop/cop/style/or_assignment.rb#57 + # source://rubocop/lib/rubocop/cop/style/or_assignment.rb#57 def on_gvasgn(node); end - # source://rubocop//lib/rubocop/cop/style/or_assignment.rb#51 + # source://rubocop/lib/rubocop/cop/style/or_assignment.rb#51 def on_if(node); end - # source://rubocop//lib/rubocop/cop/style/or_assignment.rb#57 + # source://rubocop/lib/rubocop/cop/style/or_assignment.rb#57 def on_ivasgn(node); end - # source://rubocop//lib/rubocop/cop/style/or_assignment.rb#57 + # source://rubocop/lib/rubocop/cop/style/or_assignment.rb#57 def on_lvasgn(node); end - # source://rubocop//lib/rubocop/cop/style/or_assignment.rb#35 + # source://rubocop/lib/rubocop/cop/style/or_assignment.rb#35 def ternary_assignment?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/style/or_assignment.rb#44 + # source://rubocop/lib/rubocop/cop/style/or_assignment.rb#44 def unless_assignment?(param0 = T.unsafe(nil)); end private - # source://rubocop//lib/rubocop/cop/style/or_assignment.rb#70 + # source://rubocop/lib/rubocop/cop/style/or_assignment.rb#70 def autocorrect(corrector, node); end - # source://rubocop//lib/rubocop/cop/style/or_assignment.rb#80 + # source://rubocop/lib/rubocop/cop/style/or_assignment.rb#80 def take_variable_and_default_from_ternary(node); end - # source://rubocop//lib/rubocop/cop/style/or_assignment.rb#85 + # source://rubocop/lib/rubocop/cop/style/or_assignment.rb#84 def take_variable_and_default_from_unless(node); end end -# source://rubocop//lib/rubocop/cop/style/or_assignment.rb#32 +# source://rubocop/lib/rubocop/cop/style/or_assignment.rb#32 RuboCop::Cop::Style::OrAssignment::MSG = T.let(T.unsafe(nil), String) # Checks for simple usages of parallel assignment. @@ -44490,15 +45113,15 @@ RuboCop::Cop::Style::OrAssignment::MSG = T.let(T.unsafe(nil), String) # b = 2 # c = 3 # -# source://rubocop//lib/rubocop/cop/style/parallel_assignment.rb#25 +# source://rubocop/lib/rubocop/cop/style/parallel_assignment.rb#25 class RuboCop::Cop::Style::ParallelAssignment < ::RuboCop::Cop::Base include ::RuboCop::Cop::RescueNode extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/parallel_assignment.rb#124 + # source://rubocop/lib/rubocop/cop/style/parallel_assignment.rb#119 def implicit_self_getter?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/style/parallel_assignment.rb#31 + # source://rubocop/lib/rubocop/cop/style/parallel_assignment.rb#31 def on_masgn(node); end private @@ -44507,55 +45130,55 @@ class RuboCop::Cop::Style::ParallelAssignment < ::RuboCop::Cop::Base # This makes the sorting algorithm work for expressions such as # `self.a, self.b = b, a`. # - # source://rubocop//lib/rubocop/cop/style/parallel_assignment.rb#117 + # source://rubocop/lib/rubocop/cop/style/parallel_assignment.rb#112 def add_self_to_getters(right_elements); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/parallel_assignment.rb#64 - def allowed_lhs?(node); end + # source://rubocop/lib/rubocop/cop/style/parallel_assignment.rb#61 + def allowed_lhs?(elements); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/parallel_assignment.rb#58 + # source://rubocop/lib/rubocop/cop/style/parallel_assignment.rb#55 def allowed_masign?(lhs_elements, rhs_elements); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/parallel_assignment.rb#72 + # source://rubocop/lib/rubocop/cop/style/parallel_assignment.rb#67 def allowed_rhs?(node); end - # source://rubocop//lib/rubocop/cop/style/parallel_assignment.rb#84 + # source://rubocop/lib/rubocop/cop/style/parallel_assignment.rb#79 def assignment_corrector(node, rhs, order); end - # source://rubocop//lib/rubocop/cop/style/parallel_assignment.rb#49 - def autocorrect(corrector, node, lhs, rhs); end + # source://rubocop/lib/rubocop/cop/style/parallel_assignment.rb#48 + def autocorrect(corrector, node, rhs); end - # source://rubocop//lib/rubocop/cop/style/parallel_assignment.rb#100 + # source://rubocop/lib/rubocop/cop/style/parallel_assignment.rb#95 def find_valid_order(left_elements, right_elements); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/parallel_assignment.rb#183 + # source://rubocop/lib/rubocop/cop/style/parallel_assignment.rb#178 def modifier_statement?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/parallel_assignment.rb#80 + # source://rubocop/lib/rubocop/cop/style/parallel_assignment.rb#75 def return_of_method_call?(node); end end # Helper class necessitated by silly design of TSort prior to Ruby 2.1 # Newer versions have a better API, but that doesn't help us # -# source://rubocop//lib/rubocop/cop/style/parallel_assignment.rb#128 +# source://rubocop/lib/rubocop/cop/style/parallel_assignment.rb#123 class RuboCop::Cop::Style::ParallelAssignment::AssignmentSorter include ::TSort extend ::RuboCop::AST::NodePattern::Macros # @return [AssignmentSorter] a new instance of AssignmentSorter # - # source://rubocop//lib/rubocop/cop/style/parallel_assignment.rb#141 + # source://rubocop/lib/rubocop/cop/style/parallel_assignment.rb#136 def initialize(assignments); end # `lhs` is an assignment method call like `obj.attr=` or `ary[idx]=`. @@ -44563,121 +45186,121 @@ class RuboCop::Cop::Style::ParallelAssignment::AssignmentSorter # # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/parallel_assignment.rb#170 + # source://rubocop/lib/rubocop/cop/style/parallel_assignment.rb#165 def accesses?(rhs, lhs); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/parallel_assignment.rb#163 + # source://rubocop/lib/rubocop/cop/style/parallel_assignment.rb#158 def dependency?(lhs, rhs); end - # source://rubocop//lib/rubocop/cop/style/parallel_assignment.rb#139 + # source://rubocop/lib/rubocop/cop/style/parallel_assignment.rb#134 def matching_calls(param0, param1, param2); end - # source://rubocop//lib/rubocop/cop/style/parallel_assignment.rb#149 + # source://rubocop/lib/rubocop/cop/style/parallel_assignment.rb#144 def tsort_each_child(assignment); end - # source://rubocop//lib/rubocop/cop/style/parallel_assignment.rb#145 + # source://rubocop/lib/rubocop/cop/style/parallel_assignment.rb#140 def tsort_each_node(*_arg0, **_arg1, &_arg2); end - # source://rubocop//lib/rubocop/cop/style/parallel_assignment.rb#136 + # source://rubocop/lib/rubocop/cop/style/parallel_assignment.rb#131 def uses_var?(param0, param1); end - # source://rubocop//lib/rubocop/cop/style/parallel_assignment.rb#133 + # source://rubocop/lib/rubocop/cop/style/parallel_assignment.rb#128 def var_name(param0 = T.unsafe(nil)); end end # An internal class for correcting parallel assignment # -# source://rubocop//lib/rubocop/cop/style/parallel_assignment.rb#190 +# source://rubocop/lib/rubocop/cop/style/parallel_assignment.rb#185 class RuboCop::Cop::Style::ParallelAssignment::GenericCorrector include ::RuboCop::Cop::Alignment # @return [GenericCorrector] a new instance of GenericCorrector # - # source://rubocop//lib/rubocop/cop/style/parallel_assignment.rb#195 + # source://rubocop/lib/rubocop/cop/style/parallel_assignment.rb#190 def initialize(node, rhs, modifier, config, new_elements); end # Returns the value of attribute config. # - # source://rubocop//lib/rubocop/cop/style/parallel_assignment.rb#193 + # source://rubocop/lib/rubocop/cop/style/parallel_assignment.rb#188 def config; end - # source://rubocop//lib/rubocop/cop/style/parallel_assignment.rb#203 + # source://rubocop/lib/rubocop/cop/style/parallel_assignment.rb#198 def correction; end - # source://rubocop//lib/rubocop/cop/style/parallel_assignment.rb#207 + # source://rubocop/lib/rubocop/cop/style/parallel_assignment.rb#202 def correction_range; end # Returns the value of attribute node. # - # source://rubocop//lib/rubocop/cop/style/parallel_assignment.rb#193 + # source://rubocop/lib/rubocop/cop/style/parallel_assignment.rb#188 def node; end # Returns the value of attribute rescue_result. # - # source://rubocop//lib/rubocop/cop/style/parallel_assignment.rb#193 + # source://rubocop/lib/rubocop/cop/style/parallel_assignment.rb#188 def rescue_result; end # Returns the value of attribute rhs. # - # source://rubocop//lib/rubocop/cop/style/parallel_assignment.rb#193 + # source://rubocop/lib/rubocop/cop/style/parallel_assignment.rb#188 def rhs; end protected - # source://rubocop//lib/rubocop/cop/style/parallel_assignment.rb#213 + # source://rubocop/lib/rubocop/cop/style/parallel_assignment.rb#208 def assignment; end private - # source://rubocop//lib/rubocop/cop/style/parallel_assignment.rb#234 + # source://rubocop/lib/rubocop/cop/style/parallel_assignment.rb#229 def cop_config; end - # source://rubocop//lib/rubocop/cop/style/parallel_assignment.rb#230 + # source://rubocop/lib/rubocop/cop/style/parallel_assignment.rb#225 def extract_sources(node); end - # source://rubocop//lib/rubocop/cop/style/parallel_assignment.rb#219 + # source://rubocop/lib/rubocop/cop/style/parallel_assignment.rb#214 def source(node, loc); end end -# source://rubocop//lib/rubocop/cop/style/parallel_assignment.rb#29 +# source://rubocop/lib/rubocop/cop/style/parallel_assignment.rb#29 RuboCop::Cop::Style::ParallelAssignment::MSG = T.let(T.unsafe(nil), String) # An internal class for correcting parallel assignment # guarded by if, unless, while, or until # -# source://rubocop//lib/rubocop/cop/style/parallel_assignment.rb#276 +# source://rubocop/lib/rubocop/cop/style/parallel_assignment.rb#271 class RuboCop::Cop::Style::ParallelAssignment::ModifierCorrector < ::RuboCop::Cop::Style::ParallelAssignment::GenericCorrector - # source://rubocop//lib/rubocop/cop/style/parallel_assignment.rb#277 + # source://rubocop/lib/rubocop/cop/style/parallel_assignment.rb#272 def correction; end - # source://rubocop//lib/rubocop/cop/style/parallel_assignment.rb#286 + # source://rubocop/lib/rubocop/cop/style/parallel_assignment.rb#281 def correction_range; end private - # source://rubocop//lib/rubocop/cop/style/parallel_assignment.rb#292 + # source://rubocop/lib/rubocop/cop/style/parallel_assignment.rb#287 def modifier_range(node); end end # An internal class for correcting parallel assignment # protected by rescue # -# source://rubocop//lib/rubocop/cop/style/parallel_assignment.rb#241 +# source://rubocop/lib/rubocop/cop/style/parallel_assignment.rb#236 class RuboCop::Cop::Style::ParallelAssignment::RescueCorrector < ::RuboCop::Cop::Style::ParallelAssignment::GenericCorrector - # source://rubocop//lib/rubocop/cop/style/parallel_assignment.rb#242 + # source://rubocop/lib/rubocop/cop/style/parallel_assignment.rb#237 def correction; end - # source://rubocop//lib/rubocop/cop/style/parallel_assignment.rb#253 + # source://rubocop/lib/rubocop/cop/style/parallel_assignment.rb#248 def correction_range; end private - # source://rubocop//lib/rubocop/cop/style/parallel_assignment.rb#264 + # source://rubocop/lib/rubocop/cop/style/parallel_assignment.rb#259 def begin_correction(rescue_result); end - # source://rubocop//lib/rubocop/cop/style/parallel_assignment.rb#259 + # source://rubocop/lib/rubocop/cop/style/parallel_assignment.rb#254 def def_correction(rescue_result); end end @@ -44727,56 +45350,56 @@ end # y > 10) # end # -# source://rubocop//lib/rubocop/cop/style/parentheses_around_condition.rb#56 +# source://rubocop/lib/rubocop/cop/style/parentheses_around_condition.rb#56 class RuboCop::Cop::Style::ParenthesesAroundCondition < ::RuboCop::Cop::Base include ::RuboCop::Cop::SafeAssignment include ::RuboCop::Cop::Parentheses include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/parentheses_around_condition.rb#76 + # source://rubocop/lib/rubocop/cop/style/parentheses_around_condition.rb#76 def control_op_condition(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/style/parentheses_around_condition.rb#62 + # source://rubocop/lib/rubocop/cop/style/parentheses_around_condition.rb#62 def on_if(node); end - # source://rubocop//lib/rubocop/cop/style/parentheses_around_condition.rb#68 + # source://rubocop/lib/rubocop/cop/style/parentheses_around_condition.rb#68 def on_until(node); end - # source://rubocop//lib/rubocop/cop/style/parentheses_around_condition.rb#68 + # source://rubocop/lib/rubocop/cop/style/parentheses_around_condition.rb#68 def on_while(node); end private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/parentheses_around_condition.rb#130 + # source://rubocop/lib/rubocop/cop/style/parentheses_around_condition.rb#130 def allow_multiline_conditions?; end - # source://rubocop//lib/rubocop/cop/style/parentheses_around_condition.rb#118 + # source://rubocop/lib/rubocop/cop/style/parentheses_around_condition.rb#118 def message(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/parentheses_around_condition.rb#111 + # source://rubocop/lib/rubocop/cop/style/parentheses_around_condition.rb#111 def modifier_op?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/parentheses_around_condition.rb#124 + # source://rubocop/lib/rubocop/cop/style/parentheses_around_condition.rb#124 def parens_allowed?(node); end - # source://rubocop//lib/rubocop/cop/style/parentheses_around_condition.rb#80 + # source://rubocop/lib/rubocop/cop/style/parentheses_around_condition.rb#80 def process_control_op(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/parentheses_around_condition.rb#96 + # source://rubocop/lib/rubocop/cop/style/parentheses_around_condition.rb#96 def require_parentheses?(node, condition_body); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/parentheses_around_condition.rb#103 + # source://rubocop/lib/rubocop/cop/style/parentheses_around_condition.rb#103 def semicolon_separated_expressions?(first_exp, rest_exps); end end @@ -44801,65 +45424,65 @@ end # # bad # %I(alpha beta) # -# source://rubocop//lib/rubocop/cop/style/percent_literal_delimiters.rb#26 +# source://rubocop/lib/rubocop/cop/style/percent_literal_delimiters.rb#26 class RuboCop::Cop::Style::PercentLiteralDelimiters < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp include ::RuboCop::Cop::PercentLiteral extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/percent_literal_delimiters.rb#30 + # source://rubocop/lib/rubocop/cop/style/percent_literal_delimiters.rb#30 def on_array(node); end - # source://rubocop//lib/rubocop/cop/style/percent_literal_delimiters.rb#38 + # source://rubocop/lib/rubocop/cop/style/percent_literal_delimiters.rb#38 def on_dstr(node); end - # source://rubocop//lib/rubocop/cop/style/percent_literal_delimiters.rb#34 + # source://rubocop/lib/rubocop/cop/style/percent_literal_delimiters.rb#34 def on_regexp(node); end - # source://rubocop//lib/rubocop/cop/style/percent_literal_delimiters.rb#38 + # source://rubocop/lib/rubocop/cop/style/percent_literal_delimiters.rb#38 def on_str(node); end - # source://rubocop//lib/rubocop/cop/style/percent_literal_delimiters.rb#43 + # source://rubocop/lib/rubocop/cop/style/percent_literal_delimiters.rb#43 def on_sym(node); end - # source://rubocop//lib/rubocop/cop/style/percent_literal_delimiters.rb#47 + # source://rubocop/lib/rubocop/cop/style/percent_literal_delimiters.rb#47 def on_xstr(node); end private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/percent_literal_delimiters.rb#93 + # source://rubocop/lib/rubocop/cop/style/percent_literal_delimiters.rb#93 def contains_delimiter?(node, delimiters); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/percent_literal_delimiters.rb#82 + # source://rubocop/lib/rubocop/cop/style/percent_literal_delimiters.rb#82 def contains_preferred_delimiter?(node, type); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/percent_literal_delimiters.rb#86 + # source://rubocop/lib/rubocop/cop/style/percent_literal_delimiters.rb#86 def include_same_character_as_used_for_delimiter?(node, type); end - # source://rubocop//lib/rubocop/cop/style/percent_literal_delimiters.rb#107 + # source://rubocop/lib/rubocop/cop/style/percent_literal_delimiters.rb#107 def matchpairs(begin_delimiter); end - # source://rubocop//lib/rubocop/cop/style/percent_literal_delimiters.rb#67 + # source://rubocop/lib/rubocop/cop/style/percent_literal_delimiters.rb#67 def message(type); end - # source://rubocop//lib/rubocop/cop/style/percent_literal_delimiters.rb#53 + # source://rubocop/lib/rubocop/cop/style/percent_literal_delimiters.rb#53 def on_percent_literal(node); end - # source://rubocop//lib/rubocop/cop/style/percent_literal_delimiters.rb#74 + # source://rubocop/lib/rubocop/cop/style/percent_literal_delimiters.rb#74 def preferred_delimiters_for(type); end - # source://rubocop//lib/rubocop/cop/style/percent_literal_delimiters.rb#99 + # source://rubocop/lib/rubocop/cop/style/percent_literal_delimiters.rb#99 def string_source(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/percent_literal_delimiters.rb#78 + # source://rubocop/lib/rubocop/cop/style/percent_literal_delimiters.rb#78 def uses_preferred_delimiter?(node, type); end end @@ -44885,37 +45508,37 @@ end # %Q/Mix the foo into the baz./ # %Q{They all said: 'Hooray!'} # -# source://rubocop//lib/rubocop/cop/style/percent_q_literals.rb#28 +# source://rubocop/lib/rubocop/cop/style/percent_q_literals.rb#28 class RuboCop::Cop::Style::PercentQLiterals < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp include ::RuboCop::Cop::PercentLiteral include ::RuboCop::Cop::ConfigurableEnforcedStyle extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/percent_q_literals.rb#36 + # source://rubocop/lib/rubocop/cop/style/percent_q_literals.rb#36 def on_str(node); end private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/percent_q_literals.rb#55 + # source://rubocop/lib/rubocop/cop/style/percent_q_literals.rb#55 def correct_literal_style?(node); end - # source://rubocop//lib/rubocop/cop/style/percent_q_literals.rb#64 + # source://rubocop/lib/rubocop/cop/style/percent_q_literals.rb#64 def corrected(src); end - # source://rubocop//lib/rubocop/cop/style/percent_q_literals.rb#60 + # source://rubocop/lib/rubocop/cop/style/percent_q_literals.rb#60 def message(_range); end - # source://rubocop//lib/rubocop/cop/style/percent_q_literals.rb#42 + # source://rubocop/lib/rubocop/cop/style/percent_q_literals.rb#42 def on_percent_literal(node); end end -# source://rubocop//lib/rubocop/cop/style/percent_q_literals.rb#33 +# source://rubocop/lib/rubocop/cop/style/percent_q_literals.rb#33 RuboCop::Cop::Style::PercentQLiterals::LOWER_CASE_Q_MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/percent_q_literals.rb#34 +# source://rubocop/lib/rubocop/cop/style/percent_q_literals.rb#34 RuboCop::Cop::Style::PercentQLiterals::UPPER_CASE_Q_MSG = T.let(T.unsafe(nil), String) # Looks for uses of Perl-style regexp match @@ -44929,17 +45552,17 @@ RuboCop::Cop::Style::PercentQLiterals::UPPER_CASE_Q_MSG = T.let(T.unsafe(nil), S # # good # puts Regexp.last_match(1) # -# source://rubocop//lib/rubocop/cop/style/perl_backrefs.rb#16 +# source://rubocop/lib/rubocop/cop/style/perl_backrefs.rb#16 class RuboCop::Cop::Style::PerlBackrefs < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/perl_backrefs.rb#21 + # source://rubocop/lib/rubocop/cop/style/perl_backrefs.rb#21 def on_back_ref(node); end - # source://rubocop//lib/rubocop/cop/style/perl_backrefs.rb#25 + # source://rubocop/lib/rubocop/cop/style/perl_backrefs.rb#25 def on_gvar(node); end - # source://rubocop//lib/rubocop/cop/style/perl_backrefs.rb#29 + # source://rubocop/lib/rubocop/cop/style/perl_backrefs.rb#29 def on_nth_ref(node); end private @@ -44948,14 +45571,14 @@ class RuboCop::Cop::Style::PerlBackrefs < ::RuboCop::Cop::Base # @private # @return [String] # - # source://rubocop//lib/rubocop/cop/style/perl_backrefs.rb#99 + # source://rubocop/lib/rubocop/cop/style/perl_backrefs.rb#99 def constant_prefix(node); end # @param node [RuboCop::AST::Node] # @private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/perl_backrefs.rb#38 + # source://rubocop/lib/rubocop/cop/style/perl_backrefs.rb#38 def derived_from_braceless_interpolation?(node); end # @param node [RuboCop::AST::Node] @@ -44963,38 +45586,38 @@ class RuboCop::Cop::Style::PerlBackrefs < ::RuboCop::Cop::Base # @private # @return [String] # - # source://rubocop//lib/rubocop/cop/style/perl_backrefs.rb#46 + # source://rubocop/lib/rubocop/cop/style/perl_backrefs.rb#46 def format_message(node:, preferred_expression:); end # @param node [RuboCop::AST::Node] # @private # - # source://rubocop//lib/rubocop/cop/style/perl_backrefs.rb#109 + # source://rubocop/lib/rubocop/cop/style/perl_backrefs.rb#109 def on_back_ref_or_gvar_or_nth_ref(node); end # @param node [RuboCop::AST::Node] # @private # @return [String] # - # source://rubocop//lib/rubocop/cop/style/perl_backrefs.rb#58 + # source://rubocop/lib/rubocop/cop/style/perl_backrefs.rb#58 def original_expression_of(node); end # @param node [RuboCop::AST::Node] # @private # @return [String, nil] # - # source://rubocop//lib/rubocop/cop/style/perl_backrefs.rb#70 + # source://rubocop/lib/rubocop/cop/style/perl_backrefs.rb#70 def preferred_expression_to(node); end # @param node [RuboCop::AST::Node] # @private # @return [String, nil] # - # source://rubocop//lib/rubocop/cop/style/perl_backrefs.rb#89 + # source://rubocop/lib/rubocop/cop/style/perl_backrefs.rb#89 def preferred_expression_to_node_with_constant_prefix(node); end end -# source://rubocop//lib/rubocop/cop/style/perl_backrefs.rb#19 +# source://rubocop/lib/rubocop/cop/style/perl_backrefs.rb#19 RuboCop::Cop::Style::PerlBackrefs::MESSAGE_FORMAT = T.let(T.unsafe(nil), String) # Checks for uses of methods `Hash#has_key?` and @@ -45020,38 +45643,38 @@ RuboCop::Cop::Style::PerlBackrefs::MESSAGE_FORMAT = T.let(T.unsafe(nil), String) # Hash#has_key? # Hash#has_value? # -# source://rubocop//lib/rubocop/cop/style/preferred_hash_methods.rb#33 +# source://rubocop/lib/rubocop/cop/style/preferred_hash_methods.rb#33 class RuboCop::Cop::Style::PreferredHashMethods < ::RuboCop::Cop::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/preferred_hash_methods.rb#43 + # source://rubocop/lib/rubocop/cop/style/preferred_hash_methods.rb#43 def on_csend(node); end - # source://rubocop//lib/rubocop/cop/style/preferred_hash_methods.rb#43 + # source://rubocop/lib/rubocop/cop/style/preferred_hash_methods.rb#43 def on_send(node); end private - # source://rubocop//lib/rubocop/cop/style/preferred_hash_methods.rb#56 + # source://rubocop/lib/rubocop/cop/style/preferred_hash_methods.rb#56 def message(method_name); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/preferred_hash_methods.rb#68 + # source://rubocop/lib/rubocop/cop/style/preferred_hash_methods.rb#68 def offending_selector?(method_name); end - # source://rubocop//lib/rubocop/cop/style/preferred_hash_methods.rb#60 + # source://rubocop/lib/rubocop/cop/style/preferred_hash_methods.rb#60 def proper_method_name(method_name); end end -# source://rubocop//lib/rubocop/cop/style/preferred_hash_methods.rb#37 +# source://rubocop/lib/rubocop/cop/style/preferred_hash_methods.rb#37 RuboCop::Cop::Style::PreferredHashMethods::MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/preferred_hash_methods.rb#39 +# source://rubocop/lib/rubocop/cop/style/preferred_hash_methods.rb#39 RuboCop::Cop::Style::PreferredHashMethods::OFFENDING_SELECTORS = T.let(T.unsafe(nil), Hash) -# source://rubocop//lib/rubocop/cop/style/preferred_hash_methods.rb#41 +# source://rubocop/lib/rubocop/cop/style/preferred_hash_methods.rb#41 RuboCop::Cop::Style::PreferredHashMethods::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Checks for uses of Proc.new where Kernel#proc @@ -45064,21 +45687,21 @@ RuboCop::Cop::Style::PreferredHashMethods::RESTRICT_ON_SEND = T.let(T.unsafe(nil # # good # p = proc { |n| puts n } # -# source://rubocop//lib/rubocop/cop/style/proc.rb#16 +# source://rubocop/lib/rubocop/cop/style/proc.rb#16 class RuboCop::Cop::Style::Proc < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/proc.rb#25 + # source://rubocop/lib/rubocop/cop/style/proc.rb#25 def on_block(node); end - # source://rubocop//lib/rubocop/cop/style/proc.rb#25 + # source://rubocop/lib/rubocop/cop/style/proc.rb#25 def on_numblock(node); end - # source://rubocop//lib/rubocop/cop/style/proc.rb#22 + # source://rubocop/lib/rubocop/cop/style/proc.rb#22 def proc_new?(param0 = T.unsafe(nil)); end end -# source://rubocop//lib/rubocop/cop/style/proc.rb#19 +# source://rubocop/lib/rubocop/cop/style/proc.rb#19 RuboCop::Cop::Style::Proc::MSG = T.let(T.unsafe(nil), String) # Checks if the quotes used for quoted symbols match the configured defaults. @@ -45108,55 +45731,55 @@ RuboCop::Cop::Style::Proc::MSG = T.let(T.unsafe(nil), String) # :"#{str}" # :"a\'b" # -# source://rubocop//lib/rubocop/cop/style/quoted_symbols.rb#33 +# source://rubocop/lib/rubocop/cop/style/quoted_symbols.rb#33 class RuboCop::Cop::Style::QuotedSymbols < ::RuboCop::Cop::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle include ::RuboCop::Cop::SymbolHelp include ::RuboCop::Cop::StringLiteralsHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/quoted_symbols.rb#44 + # source://rubocop/lib/rubocop/cop/style/quoted_symbols.rb#44 def on_sym(node); end private - # source://rubocop//lib/rubocop/cop/style/quoted_symbols.rb#106 + # source://rubocop/lib/rubocop/cop/style/quoted_symbols.rb#106 def alternative_style; end - # source://rubocop//lib/rubocop/cop/style/quoted_symbols.rb#71 + # source://rubocop/lib/rubocop/cop/style/quoted_symbols.rb#71 def autocorrect(corrector, node); end - # source://rubocop//lib/rubocop/cop/style/quoted_symbols.rb#88 + # source://rubocop/lib/rubocop/cop/style/quoted_symbols.rb#88 def correct_quotes(str); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/quoted_symbols.rb#83 + # source://rubocop/lib/rubocop/cop/style/quoted_symbols.rb#83 def hash_colon_key?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/quoted_symbols.rb#61 + # source://rubocop/lib/rubocop/cop/style/quoted_symbols.rb#61 def invalid_double_quotes?(source); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/quoted_symbols.rb#110 + # source://rubocop/lib/rubocop/cop/style/quoted_symbols.rb#110 def quoted?(sym_node); end - # source://rubocop//lib/rubocop/cop/style/quoted_symbols.rb#99 + # source://rubocop/lib/rubocop/cop/style/quoted_symbols.rb#99 def style; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/quoted_symbols.rb#114 + # source://rubocop/lib/rubocop/cop/style/quoted_symbols.rb#114 def wrong_quotes?(node); end end -# source://rubocop//lib/rubocop/cop/style/quoted_symbols.rb#41 +# source://rubocop/lib/rubocop/cop/style/quoted_symbols.rb#41 RuboCop::Cop::Style::QuotedSymbols::MSG_DOUBLE = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/quoted_symbols.rb#39 +# source://rubocop/lib/rubocop/cop/style/quoted_symbols.rb#39 RuboCop::Cop::Style::QuotedSymbols::MSG_SINGLE = T.let(T.unsafe(nil), String) # Checks the args passed to `fail` and `raise`. For exploded @@ -45197,56 +45820,56 @@ RuboCop::Cop::Style::QuotedSymbols::MSG_SINGLE = T.let(T.unsafe(nil), String) # raise MyCustomError.new(arg1, arg2, arg3) # fail 'message' # -# source://rubocop//lib/rubocop/cop/style/raise_args.rb#47 +# source://rubocop/lib/rubocop/cop/style/raise_args.rb#47 class RuboCop::Cop::Style::RaiseArgs < ::RuboCop::Cop::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/raise_args.rb#56 + # source://rubocop/lib/rubocop/cop/style/raise_args.rb#56 def on_send(node); end private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/raise_args.rb#132 + # source://rubocop/lib/rubocop/cop/style/raise_args.rb#132 def acceptable_exploded_args?(args); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/raise_args.rb#146 + # source://rubocop/lib/rubocop/cop/style/raise_args.rb#146 def allowed_non_exploded_type?(arg); end - # source://rubocop//lib/rubocop/cop/style/raise_args.rb#95 + # source://rubocop/lib/rubocop/cop/style/raise_args.rb#95 def check_compact(node); end - # source://rubocop//lib/rubocop/cop/style/raise_args.rb#111 + # source://rubocop/lib/rubocop/cop/style/raise_args.rb#111 def check_exploded(node); end - # source://rubocop//lib/rubocop/cop/style/raise_args.rb#69 + # source://rubocop/lib/rubocop/cop/style/raise_args.rb#69 def correction_compact_to_exploded(node); end - # source://rubocop//lib/rubocop/cop/style/raise_args.rb#81 + # source://rubocop/lib/rubocop/cop/style/raise_args.rb#81 def correction_exploded_to_compact(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/raise_args.rb#152 + # source://rubocop/lib/rubocop/cop/style/raise_args.rb#152 def requires_parens?(parent); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/raise_args.rb#128 + # source://rubocop/lib/rubocop/cop/style/raise_args.rb#128 def use_new_method?(first_arg); end end -# source://rubocop//lib/rubocop/cop/style/raise_args.rb#52 +# source://rubocop/lib/rubocop/cop/style/raise_args.rb#52 RuboCop::Cop::Style::RaiseArgs::COMPACT_MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/raise_args.rb#51 +# source://rubocop/lib/rubocop/cop/style/raise_args.rb#51 RuboCop::Cop::Style::RaiseArgs::EXPLODED_MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/raise_args.rb#54 +# source://rubocop/lib/rubocop/cop/style/raise_args.rb#54 RuboCop::Cop::Style::RaiseArgs::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Checks for the use of randomly generated numbers, @@ -45270,53 +45893,53 @@ RuboCop::Cop::Style::RaiseArgs::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # rand(1..6) # rand(1...7) # -# source://rubocop//lib/rubocop/cop/style/random_with_offset.rb#26 +# source://rubocop/lib/rubocop/cop/style/random_with_offset.rb#26 class RuboCop::Cop::Style::RandomWithOffset < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/random_with_offset.rb#33 + # source://rubocop/lib/rubocop/cop/style/random_with_offset.rb#33 def integer_op_rand?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/style/random_with_offset.rb#63 + # source://rubocop/lib/rubocop/cop/style/random_with_offset.rb#63 def on_send(node); end - # source://rubocop//lib/rubocop/cop/style/random_with_offset.rb#54 + # source://rubocop/lib/rubocop/cop/style/random_with_offset.rb#54 def rand_modified?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/style/random_with_offset.rb#43 + # source://rubocop/lib/rubocop/cop/style/random_with_offset.rb#43 def rand_op_integer?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/style/random_with_offset.rb#73 + # source://rubocop/lib/rubocop/cop/style/random_with_offset.rb#73 def random_call(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/style/random_with_offset.rb#147 + # source://rubocop/lib/rubocop/cop/style/random_with_offset.rb#147 def to_int(param0 = T.unsafe(nil)); end private - # source://rubocop//lib/rubocop/cop/style/random_with_offset.rb#78 + # source://rubocop/lib/rubocop/cop/style/random_with_offset.rb#78 def autocorrect(corrector, node); end - # source://rubocop//lib/rubocop/cop/style/random_with_offset.rb#135 + # source://rubocop/lib/rubocop/cop/style/random_with_offset.rb#135 def boundaries_from_random_node(random_node); end - # source://rubocop//lib/rubocop/cop/style/random_with_offset.rb#88 + # source://rubocop/lib/rubocop/cop/style/random_with_offset.rb#88 def corrected_integer_op_rand(node); end - # source://rubocop//lib/rubocop/cop/style/random_with_offset.rb#118 + # source://rubocop/lib/rubocop/cop/style/random_with_offset.rb#118 def corrected_rand_modified(node); end - # source://rubocop//lib/rubocop/cop/style/random_with_offset.rb#103 + # source://rubocop/lib/rubocop/cop/style/random_with_offset.rb#103 def corrected_rand_op_integer(node); end - # source://rubocop//lib/rubocop/cop/style/random_with_offset.rb#131 + # source://rubocop/lib/rubocop/cop/style/random_with_offset.rb#131 def prefix_from_prefix_node(node); end end -# source://rubocop//lib/rubocop/cop/style/random_with_offset.rb#29 +# source://rubocop/lib/rubocop/cop/style/random_with_offset.rb#29 RuboCop::Cop::Style::RandomWithOffset::MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/random_with_offset.rb#30 +# source://rubocop/lib/rubocop/cop/style/random_with_offset.rb#30 RuboCop::Cop::Style::RandomWithOffset::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Checks for a redundant argument passed to certain methods. @@ -45361,45 +45984,45 @@ RuboCop::Cop::Style::RandomWithOffset::RESTRICT_ON_SEND = T.let(T.unsafe(nil), A # string.chomp! # A.foo # -# source://rubocop//lib/rubocop/cop/style/redundant_argument.rb#57 +# source://rubocop/lib/rubocop/cop/style/redundant_argument.rb#57 class RuboCop::Cop::Style::RedundantArgument < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/redundant_argument.rb#64 + # source://rubocop/lib/rubocop/cop/style/redundant_argument.rb#64 def on_csend(node); end - # source://rubocop//lib/rubocop/cop/style/redundant_argument.rb#64 + # source://rubocop/lib/rubocop/cop/style/redundant_argument.rb#64 def on_send(node); end private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_argument.rb#108 + # source://rubocop/lib/rubocop/cop/style/redundant_argument.rb#108 def argument_matched?(target_argument, redundant_argument); end - # source://rubocop//lib/rubocop/cop/style/redundant_argument.rb#100 + # source://rubocop/lib/rubocop/cop/style/redundant_argument.rb#100 def argument_range(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_argument.rb#120 + # source://rubocop/lib/rubocop/cop/style/redundant_argument.rb#120 def exclude_cntrl_character?(target_argument, redundant_argument); end - # source://rubocop//lib/rubocop/cop/style/redundant_argument.rb#93 + # source://rubocop/lib/rubocop/cop/style/redundant_argument.rb#93 def redundant_arg_for_method(method_name); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_argument.rb#80 + # source://rubocop/lib/rubocop/cop/style/redundant_argument.rb#80 def redundant_argument?(node); end end -# source://rubocop//lib/rubocop/cop/style/redundant_argument.rb#61 +# source://rubocop/lib/rubocop/cop/style/redundant_argument.rb#61 RuboCop::Cop::Style::RedundantArgument::MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/redundant_argument.rb#62 +# source://rubocop/lib/rubocop/cop/style/redundant_argument.rb#62 RuboCop::Cop::Style::RedundantArgument::NO_RECEIVER_METHODS = T.let(T.unsafe(nil), Array) # Checks for the instantiation of array using redundant `Array` constructor. @@ -45421,26 +46044,26 @@ RuboCop::Cop::Style::RedundantArgument::NO_RECEIVER_METHODS = T.let(T.unsafe(nil # Array.new(3, 'foo') # Array.new(3) { 'foo' } # -# source://rubocop//lib/rubocop/cop/style/redundant_array_constructor.rb#25 +# source://rubocop/lib/rubocop/cop/style/redundant_array_constructor.rb#25 class RuboCop::Cop::Style::RedundantArrayConstructor < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/redundant_array_constructor.rb#47 + # source://rubocop/lib/rubocop/cop/style/redundant_array_constructor.rb#47 def on_send(node); end - # source://rubocop//lib/rubocop/cop/style/redundant_array_constructor.rb#33 + # source://rubocop/lib/rubocop/cop/style/redundant_array_constructor.rb#33 def redundant_array_constructor(param0 = T.unsafe(nil)); end private - # source://rubocop//lib/rubocop/cop/style/redundant_array_constructor.rb#69 + # source://rubocop/lib/rubocop/cop/style/redundant_array_constructor.rb#69 def register_offense(range, node, replacement); end end -# source://rubocop//lib/rubocop/cop/style/redundant_array_constructor.rb#28 +# source://rubocop/lib/rubocop/cop/style/redundant_array_constructor.rb#28 RuboCop::Cop::Style::RedundantArrayConstructor::MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/redundant_array_constructor.rb#30 +# source://rubocop/lib/rubocop/cop/style/redundant_array_constructor.rb#30 RuboCop::Cop::Style::RedundantArrayConstructor::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Checks for redundant assignment before returning. @@ -45477,44 +46100,44 @@ RuboCop::Cop::Style::RedundantArrayConstructor::RESTRICT_ON_SEND = T.let(T.unsaf # end # end # -# source://rubocop//lib/rubocop/cop/style/redundant_assignment.rb#40 +# source://rubocop/lib/rubocop/cop/style/redundant_assignment.rb#40 class RuboCop::Cop::Style::RedundantAssignment < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/redundant_assignment.rb#50 + # source://rubocop/lib/rubocop/cop/style/redundant_assignment.rb#50 def on_def(node); end - # source://rubocop//lib/rubocop/cop/style/redundant_assignment.rb#50 + # source://rubocop/lib/rubocop/cop/style/redundant_assignment.rb#50 def on_defs(node); end - # source://rubocop//lib/rubocop/cop/style/redundant_assignment.rb#46 + # source://rubocop/lib/rubocop/cop/style/redundant_assignment.rb#46 def redundant_assignment?(param0 = T.unsafe(nil)); end private - # source://rubocop//lib/rubocop/cop/style/redundant_assignment.rb#99 + # source://rubocop/lib/rubocop/cop/style/redundant_assignment.rb#99 def check_begin_node(node); end - # source://rubocop//lib/rubocop/cop/style/redundant_assignment.rb#58 + # source://rubocop/lib/rubocop/cop/style/redundant_assignment.rb#58 def check_branch(node); end - # source://rubocop//lib/rubocop/cop/style/redundant_assignment.rb#79 + # source://rubocop/lib/rubocop/cop/style/redundant_assignment.rb#79 def check_case_match_node(node); end - # source://rubocop//lib/rubocop/cop/style/redundant_assignment.rb#74 + # source://rubocop/lib/rubocop/cop/style/redundant_assignment.rb#74 def check_case_node(node); end - # source://rubocop//lib/rubocop/cop/style/redundant_assignment.rb#95 + # source://rubocop/lib/rubocop/cop/style/redundant_assignment.rb#95 def check_ensure_node(node); end - # source://rubocop//lib/rubocop/cop/style/redundant_assignment.rb#84 + # source://rubocop/lib/rubocop/cop/style/redundant_assignment.rb#84 def check_if_node(node); end - # source://rubocop//lib/rubocop/cop/style/redundant_assignment.rb#91 + # source://rubocop/lib/rubocop/cop/style/redundant_assignment.rb#91 def check_rescue_node(node); end end -# source://rubocop//lib/rubocop/cop/style/redundant_assignment.rb#43 +# source://rubocop/lib/rubocop/cop/style/redundant_assignment.rb#43 RuboCop::Cop::Style::RedundantAssignment::MSG = T.let(T.unsafe(nil), String) # Checks for redundant `begin` blocks. @@ -45577,94 +46200,94 @@ RuboCop::Cop::Style::RedundantAssignment::MSG = T.let(T.unsafe(nil), String) # end # end # -# source://rubocop//lib/rubocop/cop/style/redundant_begin.rb#65 +# source://rubocop/lib/rubocop/cop/style/redundant_begin.rb#65 class RuboCop::Cop::Style::RedundantBegin < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/redundant_begin.rb#76 + # source://rubocop/lib/rubocop/cop/style/redundant_begin.rb#76 def offensive_kwbegins(param0); end - # source://rubocop//lib/rubocop/cop/style/redundant_begin.rb#88 + # source://rubocop/lib/rubocop/cop/style/redundant_begin.rb#88 def on_block(node); end - # source://rubocop//lib/rubocop/cop/style/redundant_begin.rb#80 + # source://rubocop/lib/rubocop/cop/style/redundant_begin.rb#80 def on_def(node); end - # source://rubocop//lib/rubocop/cop/style/redundant_begin.rb#80 + # source://rubocop/lib/rubocop/cop/style/redundant_begin.rb#80 def on_defs(node); end - # source://rubocop//lib/rubocop/cop/style/redundant_begin.rb#99 + # source://rubocop/lib/rubocop/cop/style/redundant_begin.rb#99 def on_kwbegin(node); end - # source://rubocop//lib/rubocop/cop/style/redundant_begin.rb#88 + # source://rubocop/lib/rubocop/cop/style/redundant_begin.rb#88 def on_numblock(node); end private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_begin.rb#107 + # source://rubocop/lib/rubocop/cop/style/redundant_begin.rb#107 def allowable_kwbegin?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_begin.rb#181 + # source://rubocop/lib/rubocop/cop/style/redundant_begin.rb#181 def begin_block_has_multiline_statements?(node); end - # source://rubocop//lib/rubocop/cop/style/redundant_begin.rb#173 + # source://rubocop/lib/rubocop/cop/style/redundant_begin.rb#173 def condition_range(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_begin.rb#185 + # source://rubocop/lib/rubocop/cop/style/redundant_begin.rb#185 def contain_rescue_or_ensure?(node); end - # source://rubocop//lib/rubocop/cop/style/redundant_begin.rb#166 + # source://rubocop/lib/rubocop/cop/style/redundant_begin.rb#166 def correct_modifier_form_after_multiline_begin_block(corrector, node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_begin.rb#177 + # source://rubocop/lib/rubocop/cop/style/redundant_begin.rb#177 def empty_begin?(node); end - # source://rubocop//lib/rubocop/cop/style/redundant_begin.rb#114 + # source://rubocop/lib/rubocop/cop/style/redundant_begin.rb#114 def register_offense(node); end - # source://rubocop//lib/rubocop/cop/style/redundant_begin.rb#143 + # source://rubocop/lib/rubocop/cop/style/redundant_begin.rb#143 def remove_begin(corrector, offense_range, node); end - # source://rubocop//lib/rubocop/cop/style/redundant_begin.rb#131 + # source://rubocop/lib/rubocop/cop/style/redundant_begin.rb#131 def replace_begin_with_statement(corrector, offense_range, node); end # Restore comments that occur between "begin" and "first_child". # These comments will be moved to above the assignment line. # - # source://rubocop//lib/rubocop/cop/style/redundant_begin.rb#153 + # source://rubocop/lib/rubocop/cop/style/redundant_begin.rb#153 def restore_removed_comments(corrector, offense_range, node, first_child); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_begin.rb#160 + # source://rubocop/lib/rubocop/cop/style/redundant_begin.rb#160 def use_modifier_form_after_multiline_begin_block?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_begin.rb#198 + # source://rubocop/lib/rubocop/cop/style/redundant_begin.rb#198 def valid_begin_assignment?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_begin.rb#191 + # source://rubocop/lib/rubocop/cop/style/redundant_begin.rb#191 def valid_context_using_only_begin?(node); end class << self - # source://rubocop//lib/rubocop/cop/style/redundant_begin.rb#71 + # source://rubocop/lib/rubocop/cop/style/redundant_begin.rb#71 def autocorrect_incompatible_with; end end end -# source://rubocop//lib/rubocop/cop/style/redundant_begin.rb#69 +# source://rubocop/lib/rubocop/cop/style/redundant_begin.rb#69 RuboCop::Cop::Style::RedundantBegin::MSG = T.let(T.unsafe(nil), String) # Checks for usage of the %W() syntax when %w() would do. @@ -45679,31 +46302,44 @@ RuboCop::Cop::Style::RedundantBegin::MSG = T.let(T.unsafe(nil), String) # %w[shirt pants shoes] # %W(apple #{fruit} grape) # -# source://rubocop//lib/rubocop/cop/style/redundant_capital_w.rb#17 +# source://rubocop/lib/rubocop/cop/style/redundant_capital_w.rb#17 class RuboCop::Cop::Style::RedundantCapitalW < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp include ::RuboCop::Cop::PercentLiteral extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/redundant_capital_w.rb#23 + # source://rubocop/lib/rubocop/cop/style/redundant_capital_w.rb#23 def on_array(node); end private - # source://rubocop//lib/rubocop/cop/style/redundant_capital_w.rb#29 + # source://rubocop/lib/rubocop/cop/style/redundant_capital_w.rb#29 def on_percent_literal(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_capital_w.rb#38 + # source://rubocop/lib/rubocop/cop/style/redundant_capital_w.rb#38 def requires_interpolation?(node); end end -# source://rubocop//lib/rubocop/cop/style/redundant_capital_w.rb#21 +# source://rubocop/lib/rubocop/cop/style/redundant_capital_w.rb#21 RuboCop::Cop::Style::RedundantCapitalW::MSG = T.let(T.unsafe(nil), String) # Checks for unnecessary conditional expressions. # +# NOTE: Since the intention of the comment cannot be automatically determined, +# autocorrection is not applied when a comment is used, as shown below: +# +# [source,ruby] +# ----- +# if b +# # Important note. +# b +# else +# c +# end +# ----- +# # @example # # bad # a = b ? b : c @@ -45728,12 +46364,13 @@ RuboCop::Cop::Style::RedundantCapitalW::MSG = T.let(T.unsafe(nil), String) # c # end # -# source://rubocop//lib/rubocop/cop/style/redundant_condition.rb#32 +# source://rubocop/lib/rubocop/cop/style/redundant_condition.rb#45 class RuboCop::Cop::Style::RedundantCondition < ::RuboCop::Cop::Base + include ::RuboCop::Cop::CommentsHelp include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/redundant_condition.rb#43 + # source://rubocop/lib/rubocop/cop/style/redundant_condition.rb#56 def on_if(node); end private @@ -45743,116 +46380,119 @@ class RuboCop::Cop::Style::RedundantCondition < ::RuboCop::Cop::Base # # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_condition.rb#167 + # source://rubocop/lib/rubocop/cop/style/redundant_condition.rb#182 def argument_with_operator?(argument); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_condition.rb#142 + # source://rubocop/lib/rubocop/cop/style/redundant_condition.rb#159 def asgn_type?(node); end + # source://rubocop/lib/rubocop/cop/style/redundant_condition.rb#76 + def autocorrect(corrector, node); end + # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_condition.rb#132 + # source://rubocop/lib/rubocop/cop/style/redundant_condition.rb#149 def branches_have_assignment?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_condition.rb#146 + # source://rubocop/lib/rubocop/cop/style/redundant_condition.rb#163 def branches_have_method?(node); end - # source://rubocop//lib/rubocop/cop/style/redundant_condition.rb#240 + # source://rubocop/lib/rubocop/cop/style/redundant_condition.rb#255 def correct_ternary(corrector, node); end - # source://rubocop//lib/rubocop/cop/style/redundant_condition.rb#187 + # source://rubocop/lib/rubocop/cop/style/redundant_condition.rb#202 def else_source(else_branch, arithmetic_operation); end - # source://rubocop//lib/rubocop/cop/style/redundant_condition.rb#213 + # source://rubocop/lib/rubocop/cop/style/redundant_condition.rb#228 def else_source_if_has_assignment(else_branch); end - # source://rubocop//lib/rubocop/cop/style/redundant_condition.rb#203 + # source://rubocop/lib/rubocop/cop/style/redundant_condition.rb#218 def else_source_if_has_method(else_branch); end - # source://rubocop//lib/rubocop/cop/style/redundant_condition.rb#175 + # source://rubocop/lib/rubocop/cop/style/redundant_condition.rb#190 def if_source(if_branch, arithmetic_operation); end - # source://rubocop//lib/rubocop/cop/style/redundant_condition.rb#223 + # source://rubocop/lib/rubocop/cop/style/redundant_condition.rb#238 def make_ternary_form(node); end - # source://rubocop//lib/rubocop/cop/style/redundant_condition.rb#64 + # source://rubocop/lib/rubocop/cop/style/redundant_condition.rb#68 def message(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_condition.rb#79 + # source://rubocop/lib/rubocop/cop/style/redundant_condition.rb#97 def offense?(node); end - # source://rubocop//lib/rubocop/cop/style/redundant_condition.rb#72 + # source://rubocop/lib/rubocop/cop/style/redundant_condition.rb#90 def range_of_offense(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_condition.rb#88 + # source://rubocop/lib/rubocop/cop/style/redundant_condition.rb#105 def redundant_condition?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_condition.rb#255 + # source://rubocop/lib/rubocop/cop/style/redundant_condition.rb#270 def require_braces?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_condition.rb#248 + # source://rubocop/lib/rubocop/cop/style/redundant_condition.rb#263 def require_parentheses?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_condition.rb#161 + # source://rubocop/lib/rubocop/cop/style/redundant_condition.rb#176 def same_method?(if_branch, else_branch); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_condition.rb#155 + # source://rubocop/lib/rubocop/cop/style/redundant_condition.rb#170 def single_argument_method?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_condition.rb#104 + # source://rubocop/lib/rubocop/cop/style/redundant_condition.rb#121 def synonymous_condition_and_branch?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_condition.rb#259 + # source://rubocop/lib/rubocop/cop/style/redundant_condition.rb#274 def use_arithmetic_operation?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_condition.rb#100 + # source://rubocop/lib/rubocop/cop/style/redundant_condition.rb#117 def use_hash_key_access?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_condition.rb#96 + # source://rubocop/lib/rubocop/cop/style/redundant_condition.rb#113 def use_hash_key_assignment?(else_branch); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_condition.rb#92 + # source://rubocop/lib/rubocop/cop/style/redundant_condition.rb#109 def use_if_branch?(else_branch); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_condition.rb#263 + # source://rubocop/lib/rubocop/cop/style/redundant_condition.rb#278 def without_argument_parentheses_method?(node); end end -# source://rubocop//lib/rubocop/cop/style/redundant_condition.rb#38 +# source://rubocop/lib/rubocop/cop/style/redundant_condition.rb#52 RuboCop::Cop::Style::RedundantCondition::ARGUMENT_WITH_OPERATOR_TYPES = T.let(T.unsafe(nil), Array) -# source://rubocop//lib/rubocop/cop/style/redundant_condition.rb#36 +# source://rubocop/lib/rubocop/cop/style/redundant_condition.rb#50 RuboCop::Cop::Style::RedundantCondition::MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/redundant_condition.rb#37 +# source://rubocop/lib/rubocop/cop/style/redundant_condition.rb#51 RuboCop::Cop::Style::RedundantCondition::REDUNDANT_CONDITION = T.let(T.unsafe(nil), String) # Checks for redundant returning of true/false in conditionals. @@ -45877,41 +46517,41 @@ RuboCop::Cop::Style::RedundantCondition::REDUNDANT_CONDITION = T.let(T.unsafe(ni # # good # x != y # -# source://rubocop//lib/rubocop/cop/style/redundant_conditional.rb#27 +# source://rubocop/lib/rubocop/cop/style/redundant_conditional.rb#27 class RuboCop::Cop::Style::RedundantConditional < ::RuboCop::Cop::Base include ::RuboCop::Cop::Alignment extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/redundant_conditional.rb#36 + # source://rubocop/lib/rubocop/cop/style/redundant_conditional.rb#36 def on_if(node); end - # source://rubocop//lib/rubocop/cop/style/redundant_conditional.rb#56 + # source://rubocop/lib/rubocop/cop/style/redundant_conditional.rb#56 def redundant_condition?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/style/redundant_conditional.rb#61 + # source://rubocop/lib/rubocop/cop/style/redundant_conditional.rb#61 def redundant_condition_inverted?(param0 = T.unsafe(nil)); end private - # source://rubocop//lib/rubocop/cop/style/redundant_conditional.rb#78 + # source://rubocop/lib/rubocop/cop/style/redundant_conditional.rb#78 def indented_else_node(expression, node); end - # source://rubocop//lib/rubocop/cop/style/redundant_conditional.rb#48 + # source://rubocop/lib/rubocop/cop/style/redundant_conditional.rb#48 def message(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_conditional.rb#65 + # source://rubocop/lib/rubocop/cop/style/redundant_conditional.rb#65 def offense?(node); end - # source://rubocop//lib/rubocop/cop/style/redundant_conditional.rb#71 + # source://rubocop/lib/rubocop/cop/style/redundant_conditional.rb#71 def replacement_condition(node); end end -# source://rubocop//lib/rubocop/cop/style/redundant_conditional.rb#32 +# source://rubocop/lib/rubocop/cop/style/redundant_conditional.rb#32 RuboCop::Cop::Style::RedundantConditional::COMPARISON_OPERATOR_MATCHER = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/redundant_conditional.rb#34 +# source://rubocop/lib/rubocop/cop/style/redundant_conditional.rb#34 RuboCop::Cop::Style::RedundantConditional::MSG = T.let(T.unsafe(nil), String) # Avoid redundant `::` prefix on constant. @@ -45952,38 +46592,38 @@ RuboCop::Cop::Style::RedundantConditional::MSG = T.let(T.unsafe(nil), String) # ::Const # end # -# source://rubocop//lib/rubocop/cop/style/redundant_constant_base.rb#43 +# source://rubocop/lib/rubocop/cop/style/redundant_constant_base.rb#43 class RuboCop::Cop::Style::RedundantConstantBase < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/redundant_constant_base.rb#48 + # source://rubocop/lib/rubocop/cop/style/redundant_constant_base.rb#48 def on_cbase(node); end private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_constant_base.rb#67 + # source://rubocop/lib/rubocop/cop/style/redundant_constant_base.rb#67 def bad?(node); end - # source://rubocop//lib/rubocop/cop/style/redundant_constant_base.rb#63 + # source://rubocop/lib/rubocop/cop/style/redundant_constant_base.rb#63 def lint_constant_resolution_config; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_constant_base.rb#59 + # source://rubocop/lib/rubocop/cop/style/redundant_constant_base.rb#59 def lint_constant_resolution_cop_enabled?; end - # source://rubocop//lib/rubocop/cop/style/redundant_constant_base.rb#71 + # source://rubocop/lib/rubocop/cop/style/redundant_constant_base.rb#71 def module_nesting_ancestors_of(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_constant_base.rb#77 + # source://rubocop/lib/rubocop/cop/style/redundant_constant_base.rb#77 def used_in_super_class_part?(node, class_node:); end end -# source://rubocop//lib/rubocop/cop/style/redundant_constant_base.rb#46 +# source://rubocop/lib/rubocop/cop/style/redundant_constant_base.rb#46 RuboCop::Cop::Style::RedundantConstantBase::MSG = T.let(T.unsafe(nil), String) # Checks for uses a redundant current directory in path. @@ -45996,22 +46636,22 @@ RuboCop::Cop::Style::RedundantConstantBase::MSG = T.let(T.unsafe(nil), String) # # good # require_relative 'path/to/feature' # -# source://rubocop//lib/rubocop/cop/style/redundant_current_directory_in_path.rb#16 +# source://rubocop/lib/rubocop/cop/style/redundant_current_directory_in_path.rb#16 class RuboCop::Cop::Style::RedundantCurrentDirectoryInPath < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/redundant_current_directory_in_path.rb#24 + # source://rubocop/lib/rubocop/cop/style/redundant_current_directory_in_path.rb#24 def on_send(node); end end -# source://rubocop//lib/rubocop/cop/style/redundant_current_directory_in_path.rb#22 +# source://rubocop/lib/rubocop/cop/style/redundant_current_directory_in_path.rb#22 RuboCop::Cop::Style::RedundantCurrentDirectoryInPath::CURRENT_DIRECTORY_PATH = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/redundant_current_directory_in_path.rb#20 +# source://rubocop/lib/rubocop/cop/style/redundant_current_directory_in_path.rb#20 RuboCop::Cop::Style::RedundantCurrentDirectoryInPath::MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/redundant_current_directory_in_path.rb#21 +# source://rubocop/lib/rubocop/cop/style/redundant_current_directory_in_path.rb#21 RuboCop::Cop::Style::RedundantCurrentDirectoryInPath::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Checks for redundant uses of double splat hash braces. @@ -46030,57 +46670,57 @@ RuboCop::Cop::Style::RedundantCurrentDirectoryInPath::RESTRICT_ON_SEND = T.let(T # # good # do_something(foo: bar, baz: qux, **options) # -# source://rubocop//lib/rubocop/cop/style/redundant_double_splat_hash_braces.rb#22 +# source://rubocop/lib/rubocop/cop/style/redundant_double_splat_hash_braces.rb#22 class RuboCop::Cop::Style::RedundantDoubleSplatHashBraces < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/redundant_double_splat_hash_braces.rb#29 + # source://rubocop/lib/rubocop/cop/style/redundant_double_splat_hash_braces.rb#29 def on_hash(node); end private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_double_splat_hash_braces.rb#45 + # source://rubocop/lib/rubocop/cop/style/redundant_double_splat_hash_braces.rb#45 def allowed_double_splat_receiver?(kwsplat); end - # source://rubocop//lib/rubocop/cop/style/redundant_double_splat_hash_braces.rb#55 + # source://rubocop/lib/rubocop/cop/style/redundant_double_splat_hash_braces.rb#55 def autocorrect(corrector, node, kwsplat); end - # source://rubocop//lib/rubocop/cop/style/redundant_double_splat_hash_braces.rb#89 + # source://rubocop/lib/rubocop/cop/style/redundant_double_splat_hash_braces.rb#89 def autocorrect_merge_methods(corrector, merge_methods, kwsplat); end - # source://rubocop//lib/rubocop/cop/style/redundant_double_splat_hash_braces.rb#85 + # source://rubocop/lib/rubocop/cop/style/redundant_double_splat_hash_braces.rb#85 def closing_brace(node); end - # source://rubocop//lib/rubocop/cop/style/redundant_double_splat_hash_braces.rb#111 + # source://rubocop/lib/rubocop/cop/style/redundant_double_splat_hash_braces.rb#111 def convert_to_new_arguments(node); end - # source://rubocop//lib/rubocop/cop/style/redundant_double_splat_hash_braces.rb#107 + # source://rubocop/lib/rubocop/cop/style/redundant_double_splat_hash_braces.rb#107 def extract_send_methods(kwsplat); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_double_splat_hash_braces.rb#123 + # source://rubocop/lib/rubocop/cop/style/redundant_double_splat_hash_braces.rb#123 def mergeable?(node); end - # source://rubocop//lib/rubocop/cop/style/redundant_double_splat_hash_braces.rb#81 + # source://rubocop/lib/rubocop/cop/style/redundant_double_splat_hash_braces.rb#81 def opening_brace(node); end - # source://rubocop//lib/rubocop/cop/style/redundant_double_splat_hash_braces.rb#100 + # source://rubocop/lib/rubocop/cop/style/redundant_double_splat_hash_braces.rb#100 def range_of_merge_methods(merge_methods); end - # source://rubocop//lib/rubocop/cop/style/redundant_double_splat_hash_braces.rb#66 + # source://rubocop/lib/rubocop/cop/style/redundant_double_splat_hash_braces.rb#66 def root_receiver(node); end - # source://rubocop//lib/rubocop/cop/style/redundant_double_splat_hash_braces.rb#75 + # source://rubocop/lib/rubocop/cop/style/redundant_double_splat_hash_braces.rb#75 def select_merge_method_nodes(kwsplat); end end -# source://rubocop//lib/rubocop/cop/style/redundant_double_splat_hash_braces.rb#26 +# source://rubocop/lib/rubocop/cop/style/redundant_double_splat_hash_braces.rb#26 RuboCop::Cop::Style::RedundantDoubleSplatHashBraces::MERGE_METHODS = T.let(T.unsafe(nil), Array) -# source://rubocop//lib/rubocop/cop/style/redundant_double_splat_hash_braces.rb#25 +# source://rubocop/lib/rubocop/cop/style/redundant_double_splat_hash_braces.rb#25 RuboCop::Cop::Style::RedundantDoubleSplatHashBraces::MSG = T.let(T.unsafe(nil), String) # Checks for redundant `each`. @@ -46107,41 +46747,41 @@ RuboCop::Cop::Style::RedundantDoubleSplatHashBraces::MSG = T.let(T.unsafe(nil), # array.each.with_object { |v, o| do_something(v, o) } # array.each_with_object { |v, o| do_something(v, o) } # -# source://rubocop//lib/rubocop/cop/style/redundant_each.rb#34 +# source://rubocop/lib/rubocop/cop/style/redundant_each.rb#34 class RuboCop::Cop::Style::RedundantEach < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/redundant_each.rb#43 + # source://rubocop/lib/rubocop/cop/style/redundant_each.rb#43 def on_csend(node); end - # source://rubocop//lib/rubocop/cop/style/redundant_each.rb#43 + # source://rubocop/lib/rubocop/cop/style/redundant_each.rb#43 def on_send(node); end private - # source://rubocop//lib/rubocop/cop/style/redundant_each.rb#96 + # source://rubocop/lib/rubocop/cop/style/redundant_each.rb#96 def message(node); end - # source://rubocop//lib/rubocop/cop/style/redundant_each.rb#86 + # source://rubocop/lib/rubocop/cop/style/redundant_each.rb#86 def range(node); end - # source://rubocop//lib/rubocop/cop/style/redundant_each.rb#64 + # source://rubocop/lib/rubocop/cop/style/redundant_each.rb#64 def redundant_each_method(node); end - # source://rubocop//lib/rubocop/cop/style/redundant_each.rb#107 + # source://rubocop/lib/rubocop/cop/style/redundant_each.rb#107 def remove_redundant_each(corrector, range, redundant_node); end end -# source://rubocop//lib/rubocop/cop/style/redundant_each.rb#37 +# source://rubocop/lib/rubocop/cop/style/redundant_each.rb#37 RuboCop::Cop::Style::RedundantEach::MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/redundant_each.rb#38 +# source://rubocop/lib/rubocop/cop/style/redundant_each.rb#38 RuboCop::Cop::Style::RedundantEach::MSG_WITH_INDEX = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/redundant_each.rb#39 +# source://rubocop/lib/rubocop/cop/style/redundant_each.rb#39 RuboCop::Cop::Style::RedundantEach::MSG_WITH_OBJECT = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/redundant_each.rb#41 +# source://rubocop/lib/rubocop/cop/style/redundant_each.rb#41 RuboCop::Cop::Style::RedundantEach::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Checks for RuntimeError as the argument of raise/fail. @@ -46161,49 +46801,49 @@ RuboCop::Cop::Style::RedundantEach::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Arra # # good # raise Object.new.to_s # -# source://rubocop//lib/rubocop/cop/style/redundant_exception.rb#23 +# source://rubocop/lib/rubocop/cop/style/redundant_exception.rb#23 class RuboCop::Cop::Style::RedundantException < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/redundant_exception.rb#79 + # source://rubocop/lib/rubocop/cop/style/redundant_exception.rb#79 def compact?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/style/redundant_exception.rb#74 + # source://rubocop/lib/rubocop/cop/style/redundant_exception.rb#74 def exploded?(param0 = T.unsafe(nil)); end # Switch `raise RuntimeError, 'message'` to `raise 'message'`, and # `raise RuntimeError.new('message')` to `raise 'message'`. # - # source://rubocop//lib/rubocop/cop/style/redundant_exception.rb#33 + # source://rubocop/lib/rubocop/cop/style/redundant_exception.rb#33 def on_send(node); end private - # source://rubocop//lib/rubocop/cop/style/redundant_exception.rb#57 + # source://rubocop/lib/rubocop/cop/style/redundant_exception.rb#57 def fix_compact(node); end - # source://rubocop//lib/rubocop/cop/style/redundant_exception.rb#39 + # source://rubocop/lib/rubocop/cop/style/redundant_exception.rb#39 def fix_exploded(node); end - # source://rubocop//lib/rubocop/cop/style/redundant_exception.rb#65 + # source://rubocop/lib/rubocop/cop/style/redundant_exception.rb#65 def replaced_compact(message); end - # source://rubocop//lib/rubocop/cop/style/redundant_exception.rb#47 + # source://rubocop/lib/rubocop/cop/style/redundant_exception.rb#47 def replaced_exploded(node, command, message); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_exception.rb#53 + # source://rubocop/lib/rubocop/cop/style/redundant_exception.rb#53 def string_message?(message); end end -# source://rubocop//lib/rubocop/cop/style/redundant_exception.rb#26 +# source://rubocop/lib/rubocop/cop/style/redundant_exception.rb#26 RuboCop::Cop::Style::RedundantException::MSG_1 = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/redundant_exception.rb#27 +# source://rubocop/lib/rubocop/cop/style/redundant_exception.rb#27 RuboCop::Cop::Style::RedundantException::MSG_2 = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/redundant_exception.rb#29 +# source://rubocop/lib/rubocop/cop/style/redundant_exception.rb#29 RuboCop::Cop::Style::RedundantException::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Identifies places where `fetch(key) { value }` can be replaced by `fetch(key, value)`. @@ -46234,59 +46874,59 @@ RuboCop::Cop::Style::RedundantException::RESTRICT_ON_SEND = T.let(T.unsafe(nil), # # good # ENV.fetch(:key, VALUE) # -# source://rubocop//lib/rubocop/cop/style/redundant_fetch_block.rb#40 +# source://rubocop/lib/rubocop/cop/style/redundant_fetch_block.rb#40 class RuboCop::Cop::Style::RedundantFetchBlock < ::RuboCop::Cop::Base include ::RuboCop::Cop::FrozenStringLiteral include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/redundant_fetch_block.rb#55 + # source://rubocop/lib/rubocop/cop/style/redundant_fetch_block.rb#55 def on_block(node); end - # source://rubocop//lib/rubocop/cop/style/redundant_fetch_block.rb#89 + # source://rubocop/lib/rubocop/cop/style/redundant_fetch_block.rb#89 def rails_cache?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/style/redundant_fetch_block.rb#48 + # source://rubocop/lib/rubocop/cop/style/redundant_fetch_block.rb#48 def redundant_fetch_block_candidate?(param0 = T.unsafe(nil)); end private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_fetch_block.rb#74 + # source://rubocop/lib/rubocop/cop/style/redundant_fetch_block.rb#74 def basic_literal?(node); end - # source://rubocop//lib/rubocop/cop/style/redundant_fetch_block.rb#104 + # source://rubocop/lib/rubocop/cop/style/redundant_fetch_block.rb#104 def build_bad_method(send, body); end - # source://rubocop//lib/rubocop/cop/style/redundant_fetch_block.rb#97 + # source://rubocop/lib/rubocop/cop/style/redundant_fetch_block.rb#97 def build_good_method(send, body); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_fetch_block.rb#111 + # source://rubocop/lib/rubocop/cop/style/redundant_fetch_block.rb#111 def check_for_constant?; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_fetch_block.rb#115 + # source://rubocop/lib/rubocop/cop/style/redundant_fetch_block.rb#115 def check_for_string?; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_fetch_block.rb#78 + # source://rubocop/lib/rubocop/cop/style/redundant_fetch_block.rb#78 def const_type?(node); end - # source://rubocop//lib/rubocop/cop/style/redundant_fetch_block.rb#93 + # source://rubocop/lib/rubocop/cop/style/redundant_fetch_block.rb#93 def fetch_range(send, node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_fetch_block.rb#82 + # source://rubocop/lib/rubocop/cop/style/redundant_fetch_block.rb#82 def should_not_check?(send, body); end end -# source://rubocop//lib/rubocop/cop/style/redundant_fetch_block.rb#45 +# source://rubocop/lib/rubocop/cop/style/redundant_fetch_block.rb#45 RuboCop::Cop::Style::RedundantFetchBlock::MSG = T.let(T.unsafe(nil), String) # Checks for the presence of superfluous `.rb` extension in @@ -46310,27 +46950,27 @@ RuboCop::Cop::Style::RedundantFetchBlock::MSG = T.let(T.unsafe(nil), String) # require_relative '../foo' # require_relative '../foo.so' # -# source://rubocop//lib/rubocop/cop/style/redundant_file_extension_in_require.rb#27 +# source://rubocop/lib/rubocop/cop/style/redundant_file_extension_in_require.rb#27 class RuboCop::Cop::Style::RedundantFileExtensionInRequire < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/redundant_file_extension_in_require.rb#39 + # source://rubocop/lib/rubocop/cop/style/redundant_file_extension_in_require.rb#39 def on_send(node); end - # source://rubocop//lib/rubocop/cop/style/redundant_file_extension_in_require.rb#35 + # source://rubocop/lib/rubocop/cop/style/redundant_file_extension_in_require.rb#35 def require_call?(param0 = T.unsafe(nil)); end private - # source://rubocop//lib/rubocop/cop/style/redundant_file_extension_in_require.rb#53 + # source://rubocop/lib/rubocop/cop/style/redundant_file_extension_in_require.rb#53 def extension_range(name_node); end end -# source://rubocop//lib/rubocop/cop/style/redundant_file_extension_in_require.rb#31 +# source://rubocop/lib/rubocop/cop/style/redundant_file_extension_in_require.rb#31 RuboCop::Cop::Style::RedundantFileExtensionInRequire::MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/redundant_file_extension_in_require.rb#32 +# source://rubocop/lib/rubocop/cop/style/redundant_file_extension_in_require.rb#32 RuboCop::Cop::Style::RedundantFileExtensionInRequire::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Identifies usages of `any?`, `empty?` or `none?` predicate methods @@ -46372,41 +47012,41 @@ RuboCop::Cop::Style::RedundantFileExtensionInRequire::RESTRICT_ON_SEND = T.let(T # # good # arr.any? { |x| x > 1 } # -# source://rubocop//lib/rubocop/cop/style/redundant_filter_chain.rb#53 +# source://rubocop/lib/rubocop/cop/style/redundant_filter_chain.rb#53 class RuboCop::Cop::Style::RedundantFilterChain < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/redundant_filter_chain.rb#81 + # source://rubocop/lib/rubocop/cop/style/redundant_filter_chain.rb#81 def on_csend(node); end - # source://rubocop//lib/rubocop/cop/style/redundant_filter_chain.rb#81 + # source://rubocop/lib/rubocop/cop/style/redundant_filter_chain.rb#81 def on_send(node); end - # source://rubocop//lib/rubocop/cop/style/redundant_filter_chain.rb#62 + # source://rubocop/lib/rubocop/cop/style/redundant_filter_chain.rb#62 def select_predicate?(param0 = T.unsafe(nil)); end private - # source://rubocop//lib/rubocop/cop/style/redundant_filter_chain.rb#108 + # source://rubocop/lib/rubocop/cop/style/redundant_filter_chain.rb#108 def offense_range(select_node, predicate_node); end - # source://rubocop//lib/rubocop/cop/style/redundant_filter_chain.rb#112 + # source://rubocop/lib/rubocop/cop/style/redundant_filter_chain.rb#112 def predicate_range(predicate_node); end - # source://rubocop//lib/rubocop/cop/style/redundant_filter_chain.rb#94 + # source://rubocop/lib/rubocop/cop/style/redundant_filter_chain.rb#94 def register_offense(select_node, predicate_node); end end -# source://rubocop//lib/rubocop/cop/style/redundant_filter_chain.rb#56 +# source://rubocop/lib/rubocop/cop/style/redundant_filter_chain.rb#56 RuboCop::Cop::Style::RedundantFilterChain::MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/redundant_filter_chain.rb#58 +# source://rubocop/lib/rubocop/cop/style/redundant_filter_chain.rb#58 RuboCop::Cop::Style::RedundantFilterChain::RAILS_METHODS = T.let(T.unsafe(nil), Array) -# source://rubocop//lib/rubocop/cop/style/redundant_filter_chain.rb#71 +# source://rubocop/lib/rubocop/cop/style/redundant_filter_chain.rb#71 RuboCop::Cop::Style::RedundantFilterChain::REPLACEMENT_METHODS = T.let(T.unsafe(nil), Hash) -# source://rubocop//lib/rubocop/cop/style/redundant_filter_chain.rb#59 +# source://rubocop/lib/rubocop/cop/style/redundant_filter_chain.rb#59 RuboCop::Cop::Style::RedundantFilterChain::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Check for uses of `Object#freeze` on immutable objects. @@ -46423,32 +47063,32 @@ RuboCop::Cop::Style::RedundantFilterChain::RESTRICT_ON_SEND = T.let(T.unsafe(nil # # good # CONST = 1 # -# source://rubocop//lib/rubocop/cop/style/redundant_freeze.rb#19 +# source://rubocop/lib/rubocop/cop/style/redundant_freeze.rb#19 class RuboCop::Cop::Style::RedundantFreeze < ::RuboCop::Cop::Base include ::RuboCop::Cop::FrozenStringLiteral extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/redundant_freeze.rb#26 + # source://rubocop/lib/rubocop/cop/style/redundant_freeze.rb#26 def on_send(node); end - # source://rubocop//lib/rubocop/cop/style/redundant_freeze.rb#57 + # source://rubocop/lib/rubocop/cop/style/redundant_freeze.rb#57 def operation_produces_immutable_object?(param0 = T.unsafe(nil)); end private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_freeze.rb#39 + # source://rubocop/lib/rubocop/cop/style/redundant_freeze.rb#39 def immutable_literal?(node); end - # source://rubocop//lib/rubocop/cop/style/redundant_freeze.rb#48 + # source://rubocop/lib/rubocop/cop/style/redundant_freeze.rb#48 def strip_parenthesis(node); end end -# source://rubocop//lib/rubocop/cop/style/redundant_freeze.rb#23 +# source://rubocop/lib/rubocop/cop/style/redundant_freeze.rb#23 RuboCop::Cop::Style::RedundantFreeze::MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/redundant_freeze.rb#24 +# source://rubocop/lib/rubocop/cop/style/redundant_freeze.rb#24 RuboCop::Cop::Style::RedundantFreeze::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Checks for redundant heredoc delimiter quotes. @@ -46474,26 +47114,26 @@ RuboCop::Cop::Style::RedundantFreeze::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Ar # newlines # EOS # -# source://rubocop//lib/rubocop/cop/style/redundant_heredoc_delimiter_quotes.rb#29 +# source://rubocop/lib/rubocop/cop/style/redundant_heredoc_delimiter_quotes.rb#29 class RuboCop::Cop::Style::RedundantHeredocDelimiterQuotes < ::RuboCop::Cop::Base include ::RuboCop::Cop::Heredoc extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/redundant_heredoc_delimiter_quotes.rb#36 + # source://rubocop/lib/rubocop/cop/style/redundant_heredoc_delimiter_quotes.rb#36 def on_heredoc(node); end private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_heredoc_delimiter_quotes.rb#48 + # source://rubocop/lib/rubocop/cop/style/redundant_heredoc_delimiter_quotes.rb#48 def need_heredoc_delimiter_quotes?(node); end end -# source://rubocop//lib/rubocop/cop/style/redundant_heredoc_delimiter_quotes.rb#33 +# source://rubocop/lib/rubocop/cop/style/redundant_heredoc_delimiter_quotes.rb#33 RuboCop::Cop::Style::RedundantHeredocDelimiterQuotes::MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/redundant_heredoc_delimiter_quotes.rb#34 +# source://rubocop/lib/rubocop/cop/style/redundant_heredoc_delimiter_quotes.rb#34 RuboCop::Cop::Style::RedundantHeredocDelimiterQuotes::STRING_INTERPOLATION_OR_ESCAPED_CHARACTER_PATTERN = T.let(T.unsafe(nil), Regexp) # Checks for `initialize` methods that are redundant. @@ -46581,48 +47221,48 @@ RuboCop::Cop::Style::RedundantHeredocDelimiterQuotes::STRING_INTERPOLATION_OR_ES # # Overriding to negate superclass `initialize` method. # end # -# source://rubocop//lib/rubocop/cop/style/redundant_initialize.rb#97 +# source://rubocop/lib/rubocop/cop/style/redundant_initialize.rb#97 class RuboCop::Cop::Style::RedundantInitialize < ::RuboCop::Cop::Base include ::RuboCop::Cop::CommentsHelp include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/redundant_initialize.rb#106 + # source://rubocop/lib/rubocop/cop/style/redundant_initialize.rb#106 def initialize_forwards?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/style/redundant_initialize.rb#110 + # source://rubocop/lib/rubocop/cop/style/redundant_initialize.rb#110 def on_def(node); end private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_initialize.rb#134 + # source://rubocop/lib/rubocop/cop/style/redundant_initialize.rb#134 def acceptable?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_initialize.rb#142 + # source://rubocop/lib/rubocop/cop/style/redundant_initialize.rb#142 def allow_comments?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_initialize.rb#138 + # source://rubocop/lib/rubocop/cop/style/redundant_initialize.rb#138 def forwards?(node); end - # source://rubocop//lib/rubocop/cop/style/redundant_initialize.rb#128 + # source://rubocop/lib/rubocop/cop/style/redundant_initialize.rb#128 def register_offense(node, message); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_initialize.rb#148 + # source://rubocop/lib/rubocop/cop/style/redundant_initialize.rb#148 def same_args?(super_node, args); end end -# source://rubocop//lib/rubocop/cop/style/redundant_initialize.rb#102 +# source://rubocop/lib/rubocop/cop/style/redundant_initialize.rb#102 RuboCop::Cop::Style::RedundantInitialize::MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/redundant_initialize.rb#103 +# source://rubocop/lib/rubocop/cop/style/redundant_initialize.rb#103 RuboCop::Cop::Style::RedundantInitialize::MSG_EMPTY = T.let(T.unsafe(nil), String) # Checks for strings that are just an interpolated expression. @@ -46638,68 +47278,68 @@ RuboCop::Cop::Style::RedundantInitialize::MSG_EMPTY = T.let(T.unsafe(nil), Strin # # good if @var is already a String # @var # -# source://rubocop//lib/rubocop/cop/style/redundant_interpolation.rb#39 +# source://rubocop/lib/rubocop/cop/style/redundant_interpolation.rb#39 class RuboCop::Cop::Style::RedundantInterpolation < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp include ::RuboCop::Cop::PercentLiteral extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/redundant_interpolation.rb#49 + # source://rubocop/lib/rubocop/cop/style/redundant_interpolation.rb#49 def on_dstr(node); end private - # source://rubocop//lib/rubocop/cop/style/redundant_interpolation.rb#122 + # source://rubocop/lib/rubocop/cop/style/redundant_interpolation.rb#122 def autocorrect_other(corrector, embedded_node, node); end - # source://rubocop//lib/rubocop/cop/style/redundant_interpolation.rb#105 + # source://rubocop/lib/rubocop/cop/style/redundant_interpolation.rb#105 def autocorrect_single_variable_interpolation(corrector, embedded_node, node); end - # source://rubocop//lib/rubocop/cop/style/redundant_interpolation.rb#99 + # source://rubocop/lib/rubocop/cop/style/redundant_interpolation.rb#99 def autocorrect_variable_interpolation(corrector, embedded_node, node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_interpolation.rb#95 + # source://rubocop/lib/rubocop/cop/style/redundant_interpolation.rb#95 def embedded_in_percent_array?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_interpolation.rb#91 + # source://rubocop/lib/rubocop/cop/style/redundant_interpolation.rb#91 def implicit_concatenation?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_interpolation.rb#83 + # source://rubocop/lib/rubocop/cop/style/redundant_interpolation.rb#83 def interpolation?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_interpolation.rb#132 + # source://rubocop/lib/rubocop/cop/style/redundant_interpolation.rb#132 def require_parentheses?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_interpolation.rb#67 + # source://rubocop/lib/rubocop/cop/style/redundant_interpolation.rb#67 def single_interpolation?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_interpolation.rb#74 + # source://rubocop/lib/rubocop/cop/style/redundant_interpolation.rb#74 def single_variable_interpolation?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_interpolation.rb#87 + # source://rubocop/lib/rubocop/cop/style/redundant_interpolation.rb#87 def variable_interpolation?(node); end class << self - # source://rubocop//lib/rubocop/cop/style/redundant_interpolation.rb#45 + # source://rubocop/lib/rubocop/cop/style/redundant_interpolation.rb#45 def autocorrect_incompatible_with; end end end -# source://rubocop//lib/rubocop/cop/style/redundant_interpolation.rb#43 +# source://rubocop/lib/rubocop/cop/style/redundant_interpolation.rb#43 RuboCop::Cop::Style::RedundantInterpolation::MSG = T.let(T.unsafe(nil), String) # Before Ruby 3.0, interpolated strings followed the frozen string literal @@ -46717,20 +47357,20 @@ RuboCop::Cop::Style::RedundantInterpolation::MSG = T.let(T.unsafe(nil), String) # # good # "#{foo} bar" # -# source://rubocop//lib/rubocop/cop/style/redundant_interpolation_unfreeze.rb#21 +# source://rubocop/lib/rubocop/cop/style/redundant_interpolation_unfreeze.rb#21 class RuboCop::Cop::Style::RedundantInterpolationUnfreeze < ::RuboCop::Cop::Base include ::RuboCop::Cop::FrozenStringLiteral extend ::RuboCop::Cop::AutoCorrector extend ::RuboCop::Cop::TargetRubyVersion - # source://rubocop//lib/rubocop/cop/style/redundant_interpolation_unfreeze.rb#32 + # source://rubocop/lib/rubocop/cop/style/redundant_interpolation_unfreeze.rb#32 def on_send(node); end end -# source://rubocop//lib/rubocop/cop/style/redundant_interpolation_unfreeze.rb#26 +# source://rubocop/lib/rubocop/cop/style/redundant_interpolation_unfreeze.rb#26 RuboCop::Cop::Style::RedundantInterpolationUnfreeze::MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/redundant_interpolation_unfreeze.rb#28 +# source://rubocop/lib/rubocop/cop/style/redundant_interpolation_unfreeze.rb#28 RuboCop::Cop::Style::RedundantInterpolationUnfreeze::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Check for redundant line continuation. @@ -46794,56 +47434,56 @@ RuboCop::Cop::Style::RedundantInterpolationUnfreeze::RESTRICT_ON_SEND = T.let(T. # some_method \ # (argument) # -# source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#67 +# source://rubocop/lib/rubocop/cop/style/redundant_line_continuation.rb#67 class RuboCop::Cop::Style::RedundantLineContinuation < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp include ::RuboCop::Cop::MatchRange extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#81 + # 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#201 + # 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#165 + # 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#106 + # 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#181 + # 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#150 + # 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#114 + # 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 + # source://rubocop/lib/rubocop/cop/style/redundant_line_continuation.rb#138 + def inspect_end_of_ruby_code_line_continuation; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#122 + # 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#208 + # 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 `\`: @@ -46853,51 +47493,51 @@ class RuboCop::Cop::Style::RedundantLineContinuation < ::RuboCop::Cop::Base # # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#158 + # 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#128 + # 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#98 + # 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#187 + # 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#212 + # 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#110 + # 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#74 +# 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#79 +# 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#75 +# 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 +# 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 +# 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 +# source://rubocop/lib/rubocop/cop/style/redundant_line_continuation.rb#71 RuboCop::Cop::Style::RedundantLineContinuation::MSG = T.let(T.unsafe(nil), String) # Checks for redundant parentheses. @@ -46910,170 +47550,170 @@ RuboCop::Cop::Style::RedundantLineContinuation::MSG = T.let(T.unsafe(nil), Strin # # good # x if y.z.nil? # -# source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#16 +# source://rubocop/lib/rubocop/cop/style/redundant_parentheses.rb#16 class RuboCop::Cop::Style::RedundantParentheses < ::RuboCop::Cop::Base include ::RuboCop::Cop::Parentheses extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#32 + # 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#261 + # 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#266 + # 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#271 + # 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#166 + # 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 + # 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#34 + # 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 + # source://rubocop/lib/rubocop/cop/style/redundant_parentheses.rb#29 def rescue?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#23 + # source://rubocop/lib/rubocop/cop/style/redundant_parentheses.rb#23 def square_brackets?(param0 = T.unsafe(nil)); end private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#168 + # 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#64 + # 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#57 + # 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#69 + # 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#78 + # 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#275 + # 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#127 + # source://rubocop/lib/rubocop/cop/style/redundant_parentheses.rb#127 def check(begin_node); end - # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#175 + # 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#185 + # 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#209 + # 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#281 + # 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 + # source://rubocop/lib/rubocop/cop/style/redundant_parentheses.rb#105 def empty_parentheses?(node); end - # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#138 + # 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#110 + # 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#250 + # 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#50 + # 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#205 + # 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#224 + # 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#91 + # 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#237 + # 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#119 + # 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#98 + # 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#195 + # 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#246 + # 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#42 + # 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#213 + # 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#201 + # 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#84 + # source://rubocop/lib/rubocop/cop/style/redundant_parentheses.rb#84 def ternary_parentheses_required?; end end -# source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#20 +# source://rubocop/lib/rubocop/cop/style/redundant_parentheses.rb#20 RuboCop::Cop::Style::RedundantParentheses::ALLOWED_NODE_TYPES = T.let(T.unsafe(nil), Array) # Checks for usage of the %q/%Q syntax when '' or "" would do. @@ -47090,80 +47730,80 @@ RuboCop::Cop::Style::RedundantParentheses::ALLOWED_NODE_TYPES = T.let(T.unsafe(n # time = "8 o'clock" # question = '"What did you say?"' # -# source://rubocop//lib/rubocop/cop/style/redundant_percent_q.rb#20 +# source://rubocop/lib/rubocop/cop/style/redundant_percent_q.rb#20 class RuboCop::Cop::Style::RedundantPercentQ < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/redundant_percent_q.rb#34 + # source://rubocop/lib/rubocop/cop/style/redundant_percent_q.rb#34 def on_dstr(node); end - # source://rubocop//lib/rubocop/cop/style/redundant_percent_q.rb#40 + # source://rubocop/lib/rubocop/cop/style/redundant_percent_q.rb#40 def on_str(node); end private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_percent_q.rb#99 + # source://rubocop/lib/rubocop/cop/style/redundant_percent_q.rb#99 def acceptable_capital_q?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_percent_q.rb#91 + # source://rubocop/lib/rubocop/cop/style/redundant_percent_q.rb#91 def acceptable_q?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_percent_q.rb#67 + # source://rubocop/lib/rubocop/cop/style/redundant_percent_q.rb#67 def allowed_percent_q?(node); end - # source://rubocop//lib/rubocop/cop/style/redundant_percent_q.rb#51 + # source://rubocop/lib/rubocop/cop/style/redundant_percent_q.rb#51 def check(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_percent_q.rb#63 + # source://rubocop/lib/rubocop/cop/style/redundant_percent_q.rb#63 def interpolated_quotes?(node); end - # source://rubocop//lib/rubocop/cop/style/redundant_percent_q.rb#72 + # source://rubocop/lib/rubocop/cop/style/redundant_percent_q.rb#72 def message(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_percent_q.rb#87 + # source://rubocop/lib/rubocop/cop/style/redundant_percent_q.rb#87 def start_with_percent_q_variant?(string); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_percent_q.rb#82 + # source://rubocop/lib/rubocop/cop/style/redundant_percent_q.rb#82 def string_literal?(node); end end -# source://rubocop//lib/rubocop/cop/style/redundant_percent_q.rb#25 +# source://rubocop/lib/rubocop/cop/style/redundant_percent_q.rb#25 RuboCop::Cop::Style::RedundantPercentQ::DYNAMIC_MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/redundant_percent_q.rb#28 +# source://rubocop/lib/rubocop/cop/style/redundant_percent_q.rb#28 RuboCop::Cop::Style::RedundantPercentQ::EMPTY = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/redundant_percent_q.rb#32 +# source://rubocop/lib/rubocop/cop/style/redundant_percent_q.rb#32 RuboCop::Cop::Style::RedundantPercentQ::ESCAPED_NON_BACKSLASH = T.let(T.unsafe(nil), Regexp) -# source://rubocop//lib/rubocop/cop/style/redundant_percent_q.rb#23 +# source://rubocop/lib/rubocop/cop/style/redundant_percent_q.rb#23 RuboCop::Cop::Style::RedundantPercentQ::MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/redundant_percent_q.rb#30 +# source://rubocop/lib/rubocop/cop/style/redundant_percent_q.rb#30 RuboCop::Cop::Style::RedundantPercentQ::PERCENT_CAPITAL_Q = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/redundant_percent_q.rb#29 +# source://rubocop/lib/rubocop/cop/style/redundant_percent_q.rb#29 RuboCop::Cop::Style::RedundantPercentQ::PERCENT_Q = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/redundant_percent_q.rb#27 +# source://rubocop/lib/rubocop/cop/style/redundant_percent_q.rb#27 RuboCop::Cop::Style::RedundantPercentQ::QUOTE = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/redundant_percent_q.rb#26 +# source://rubocop/lib/rubocop/cop/style/redundant_percent_q.rb#26 RuboCop::Cop::Style::RedundantPercentQ::SINGLE_QUOTE = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/redundant_percent_q.rb#31 +# source://rubocop/lib/rubocop/cop/style/redundant_percent_q.rb#31 RuboCop::Cop::Style::RedundantPercentQ::STRING_INTERPOLATION_REGEXP = T.let(T.unsafe(nil), Regexp) # Identifies places where argument can be replaced from @@ -47196,41 +47836,41 @@ RuboCop::Cop::Style::RedundantPercentQ::STRING_INTERPOLATION_REGEXP = T.let(T.un # 'foo'.sub('f', 'x') # 'foo'.sub!('f', 'x') # -# source://rubocop//lib/rubocop/cop/style/redundant_regexp_argument.rb#35 +# source://rubocop/lib/rubocop/cop/style/redundant_regexp_argument.rb#35 class RuboCop::Cop::Style::RedundantRegexpArgument < ::RuboCop::Cop::Base include ::RuboCop::Cop::StringLiteralsHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/redundant_regexp_argument.rb#48 + # source://rubocop/lib/rubocop/cop/style/redundant_regexp_argument.rb#48 def on_csend(node); end - # source://rubocop//lib/rubocop/cop/style/redundant_regexp_argument.rb#48 + # source://rubocop/lib/rubocop/cop/style/redundant_regexp_argument.rb#48 def on_send(node); end private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_regexp_argument.rb#65 + # source://rubocop/lib/rubocop/cop/style/redundant_regexp_argument.rb#65 def determinist_regexp?(regexp_node); end - # source://rubocop//lib/rubocop/cop/style/redundant_regexp_argument.rb#69 + # source://rubocop/lib/rubocop/cop/style/redundant_regexp_argument.rb#69 def preferred_argument(regexp_node); end - # source://rubocop//lib/rubocop/cop/style/redundant_regexp_argument.rb#84 + # source://rubocop/lib/rubocop/cop/style/redundant_regexp_argument.rb#85 def replacement(regexp_node); end end -# source://rubocop//lib/rubocop/cop/style/redundant_regexp_argument.rb#43 +# source://rubocop/lib/rubocop/cop/style/redundant_regexp_argument.rb#43 RuboCop::Cop::Style::RedundantRegexpArgument::DETERMINISTIC_REGEX = T.let(T.unsafe(nil), Regexp) -# source://rubocop//lib/rubocop/cop/style/redundant_regexp_argument.rb#39 +# source://rubocop/lib/rubocop/cop/style/redundant_regexp_argument.rb#39 RuboCop::Cop::Style::RedundantRegexpArgument::MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/redundant_regexp_argument.rb#40 +# source://rubocop/lib/rubocop/cop/style/redundant_regexp_argument.rb#40 RuboCop::Cop::Style::RedundantRegexpArgument::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) -# source://rubocop//lib/rubocop/cop/style/redundant_regexp_argument.rb#44 +# source://rubocop/lib/rubocop/cop/style/redundant_regexp_argument.rb#44 RuboCop::Cop::Style::RedundantRegexpArgument::STR_SPECIAL_CHARS = T.let(T.unsafe(nil), Array) # Checks for unnecessary single-element Regexp character classes. @@ -47258,59 +47898,59 @@ RuboCop::Cop::Style::RedundantRegexpArgument::STR_SPECIAL_CHARS = T.let(T.unsafe # # good # r = /[ab]/ # -# source://rubocop//lib/rubocop/cop/style/redundant_regexp_character_class.rb#30 +# source://rubocop/lib/rubocop/cop/style/redundant_regexp_character_class.rb#30 class RuboCop::Cop::Style::RedundantRegexpCharacterClass < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/redundant_regexp_character_class.rb#37 + # source://rubocop/lib/rubocop/cop/style/redundant_regexp_character_class.rb#37 def on_regexp(node); end private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_regexp_character_class.rb#101 + # source://rubocop/lib/rubocop/cop/style/redundant_regexp_character_class.rb#101 def backslash_b?(elem); end - # source://rubocop//lib/rubocop/cop/style/redundant_regexp_character_class.rb#53 + # source://rubocop/lib/rubocop/cop/style/redundant_regexp_character_class.rb#53 def each_redundant_character_class(node); end - # source://rubocop//lib/rubocop/cop/style/redundant_regexp_character_class.rb#61 + # source://rubocop/lib/rubocop/cop/style/redundant_regexp_character_class.rb#61 def each_single_element_character_class(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_regexp_character_class.rb#83 + # source://rubocop/lib/rubocop/cop/style/redundant_regexp_character_class.rb#83 def multiple_codepoints?(expression); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_regexp_character_class.rb#107 + # source://rubocop/lib/rubocop/cop/style/redundant_regexp_character_class.rb#107 def octal_requiring_char_class?(elem); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_regexp_character_class.rb#72 + # source://rubocop/lib/rubocop/cop/style/redundant_regexp_character_class.rb#72 def redundant_single_element_character_class?(node, char_class); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_regexp_character_class.rb#113 + # source://rubocop/lib/rubocop/cop/style/redundant_regexp_character_class.rb#113 def requires_escape_outside_char_class?(elem); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_regexp_character_class.rb#95 + # source://rubocop/lib/rubocop/cop/style/redundant_regexp_character_class.rb#95 def whitespace_in_free_space_mode?(node, elem); end - # source://rubocop//lib/rubocop/cop/style/redundant_regexp_character_class.rb#87 + # source://rubocop/lib/rubocop/cop/style/redundant_regexp_character_class.rb#87 def without_character_class(loc); end end -# source://rubocop//lib/rubocop/cop/style/redundant_regexp_character_class.rb#34 +# source://rubocop/lib/rubocop/cop/style/redundant_regexp_character_class.rb#34 RuboCop::Cop::Style::RedundantRegexpCharacterClass::MSG_REDUNDANT_CHARACTER_CLASS = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/redundant_regexp_character_class.rb#33 +# source://rubocop/lib/rubocop/cop/style/redundant_regexp_character_class.rb#33 RuboCop::Cop::Style::RedundantRegexpCharacterClass::REQUIRES_ESCAPE_OUTSIDE_CHAR_CLASS_CHARS = T.let(T.unsafe(nil), Array) # Checks for the instantiation of regexp using redundant `Regexp.new` or `Regexp.compile`. @@ -47327,21 +47967,21 @@ RuboCop::Cop::Style::RedundantRegexpCharacterClass::REQUIRES_ESCAPE_OUTSIDE_CHAR # Regexp.new('regexp') # Regexp.compile('regexp') # -# source://rubocop//lib/rubocop/cop/style/redundant_regexp_constructor.rb#20 +# source://rubocop/lib/rubocop/cop/style/redundant_regexp_constructor.rb#20 class RuboCop::Cop::Style::RedundantRegexpConstructor < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/redundant_regexp_constructor.rb#33 + # source://rubocop/lib/rubocop/cop/style/redundant_regexp_constructor.rb#33 def on_send(node); end - # source://rubocop//lib/rubocop/cop/style/redundant_regexp_constructor.rb#27 + # source://rubocop/lib/rubocop/cop/style/redundant_regexp_constructor.rb#27 def redundant_regexp_constructor(param0 = T.unsafe(nil)); end end -# source://rubocop//lib/rubocop/cop/style/redundant_regexp_constructor.rb#23 +# source://rubocop/lib/rubocop/cop/style/redundant_regexp_constructor.rb#23 RuboCop::Cop::Style::RedundantRegexpConstructor::MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/redundant_regexp_constructor.rb#24 +# source://rubocop/lib/rubocop/cop/style/redundant_regexp_constructor.rb#24 RuboCop::Cop::Style::RedundantRegexpConstructor::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Checks for redundant escapes inside Regexp literals. @@ -47374,48 +48014,48 @@ RuboCop::Cop::Style::RedundantRegexpConstructor::RESTRICT_ON_SEND = T.let(T.unsa # # good # /[+\-]\d/ # -# source://rubocop//lib/rubocop/cop/style/redundant_regexp_escape.rb#35 +# source://rubocop/lib/rubocop/cop/style/redundant_regexp_escape.rb#35 class RuboCop::Cop::Style::RedundantRegexpEscape < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/redundant_regexp_escape.rb#45 + # source://rubocop/lib/rubocop/cop/style/redundant_regexp_escape.rb#45 def on_regexp(node); end private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_regexp_escape.rb#60 + # source://rubocop/lib/rubocop/cop/style/redundant_regexp_escape.rb#60 def allowed_escape?(node, char, index, within_character_class); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_regexp_escape.rb#76 + # source://rubocop/lib/rubocop/cop/style/redundant_regexp_escape.rb#76 def char_class_begins_or_ends_with_escaped_hyphen?(node, index); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_regexp_escape.rb#92 + # source://rubocop/lib/rubocop/cop/style/redundant_regexp_escape.rb#92 def delimiter?(node, char); end - # source://rubocop//lib/rubocop/cop/style/redundant_regexp_escape.rb#98 + # source://rubocop/lib/rubocop/cop/style/redundant_regexp_escape.rb#98 def each_escape(node); end - # source://rubocop//lib/rubocop/cop/style/redundant_regexp_escape.rb#110 + # source://rubocop/lib/rubocop/cop/style/redundant_regexp_escape.rb#110 def escape_range_at_index(node, index); end end -# source://rubocop//lib/rubocop/cop/style/redundant_regexp_escape.rb#41 +# source://rubocop/lib/rubocop/cop/style/redundant_regexp_escape.rb#41 RuboCop::Cop::Style::RedundantRegexpEscape::ALLOWED_ALWAYS_ESCAPES = T.let(T.unsafe(nil), Array) -# source://rubocop//lib/rubocop/cop/style/redundant_regexp_escape.rb#43 +# source://rubocop/lib/rubocop/cop/style/redundant_regexp_escape.rb#43 RuboCop::Cop::Style::RedundantRegexpEscape::ALLOWED_OUTSIDE_CHAR_CLASS_METACHAR_ESCAPES = T.let(T.unsafe(nil), Array) -# source://rubocop//lib/rubocop/cop/style/redundant_regexp_escape.rb#42 +# source://rubocop/lib/rubocop/cop/style/redundant_regexp_escape.rb#42 RuboCop::Cop::Style::RedundantRegexpEscape::ALLOWED_WITHIN_CHAR_CLASS_METACHAR_ESCAPES = T.let(T.unsafe(nil), Array) -# source://rubocop//lib/rubocop/cop/style/redundant_regexp_escape.rb#39 +# source://rubocop/lib/rubocop/cop/style/redundant_regexp_escape.rb#39 RuboCop::Cop::Style::RedundantRegexpEscape::MSG_REDUNDANT_ESCAPE = T.let(T.unsafe(nil), String) # Checks for redundant `return` expressions. @@ -47465,82 +48105,82 @@ RuboCop::Cop::Style::RedundantRegexpEscape::MSG_REDUNDANT_ESCAPE = T.let(T.unsaf # return x, y # end # -# source://rubocop//lib/rubocop/cop/style/redundant_return.rb#55 +# source://rubocop/lib/rubocop/cop/style/redundant_return.rb#55 class RuboCop::Cop::Style::RedundantReturn < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/redundant_return.rb#69 + # source://rubocop/lib/rubocop/cop/style/redundant_return.rb#69 def on_def(node); end - # source://rubocop//lib/rubocop/cop/style/redundant_return.rb#69 + # source://rubocop/lib/rubocop/cop/style/redundant_return.rb#69 def on_defs(node); end - # source://rubocop//lib/rubocop/cop/style/redundant_return.rb#63 + # source://rubocop/lib/rubocop/cop/style/redundant_return.rb#63 def on_send(node); end private - # source://rubocop//lib/rubocop/cop/style/redundant_return.rb#104 + # source://rubocop/lib/rubocop/cop/style/redundant_return.rb#104 def add_braces(corrector, node); end - # source://rubocop//lib/rubocop/cop/style/redundant_return.rb#99 + # source://rubocop/lib/rubocop/cop/style/redundant_return.rb#99 def add_brackets(corrector, node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_return.rb#175 + # source://rubocop/lib/rubocop/cop/style/redundant_return.rb#175 def allow_multiple_return_values?; end - # source://rubocop//lib/rubocop/cop/style/redundant_return.rb#170 + # source://rubocop/lib/rubocop/cop/style/redundant_return.rb#170 def check_begin_node(node); end - # source://rubocop//lib/rubocop/cop/style/redundant_return.rb#110 + # source://rubocop/lib/rubocop/cop/style/redundant_return.rb#110 def check_branch(node); end - # source://rubocop//lib/rubocop/cop/style/redundant_return.rb#144 + # source://rubocop/lib/rubocop/cop/style/redundant_return.rb#144 def check_case_match_node(node); end - # source://rubocop//lib/rubocop/cop/style/redundant_return.rb#139 + # source://rubocop/lib/rubocop/cop/style/redundant_return.rb#139 def check_case_node(node); end - # source://rubocop//lib/rubocop/cop/style/redundant_return.rb#165 + # source://rubocop/lib/rubocop/cop/style/redundant_return.rb#165 def check_ensure_node(node); end - # source://rubocop//lib/rubocop/cop/style/redundant_return.rb#149 + # source://rubocop/lib/rubocop/cop/style/redundant_return.rb#149 def check_if_node(node); end - # source://rubocop//lib/rubocop/cop/style/redundant_return.rb#161 + # source://rubocop/lib/rubocop/cop/style/redundant_return.rb#161 def check_resbody_node(node); end - # source://rubocop//lib/rubocop/cop/style/redundant_return.rb#156 + # source://rubocop/lib/rubocop/cop/style/redundant_return.rb#156 def check_rescue_node(node); end - # source://rubocop//lib/rubocop/cop/style/redundant_return.rb#127 + # source://rubocop/lib/rubocop/cop/style/redundant_return.rb#127 def check_return_node(node); end - # source://rubocop//lib/rubocop/cop/style/redundant_return.rb#80 + # source://rubocop/lib/rubocop/cop/style/redundant_return.rb#80 def correct_with_arguments(return_node, corrector); end - # source://rubocop//lib/rubocop/cop/style/redundant_return.rb#76 + # source://rubocop/lib/rubocop/cop/style/redundant_return.rb#76 def correct_without_arguments(return_node, corrector); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_return.rb#95 + # source://rubocop/lib/rubocop/cop/style/redundant_return.rb#95 def hash_without_braces?(node); end - # source://rubocop//lib/rubocop/cop/style/redundant_return.rb#179 + # source://rubocop/lib/rubocop/cop/style/redundant_return.rb#179 def message(node); end end -# source://rubocop//lib/rubocop/cop/style/redundant_return.rb#59 +# source://rubocop/lib/rubocop/cop/style/redundant_return.rb#59 RuboCop::Cop::Style::RedundantReturn::MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/redundant_return.rb#60 +# source://rubocop/lib/rubocop/cop/style/redundant_return.rb#60 RuboCop::Cop::Style::RedundantReturn::MULTI_RETURN_MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/redundant_return.rb#61 +# source://rubocop/lib/rubocop/cop/style/redundant_return.rb#61 RuboCop::Cop::Style::RedundantReturn::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Checks for redundant uses of `self`. @@ -47583,91 +48223,91 @@ RuboCop::Cop::Style::RedundantReturn::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Ar # end # end # -# source://rubocop//lib/rubocop/cop/style/redundant_self.rb#45 +# source://rubocop/lib/rubocop/cop/style/redundant_self.rb#45 class RuboCop::Cop::Style::RedundantSelf < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector # @return [RedundantSelf] a new instance of RedundantSelf # - # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#60 + # source://rubocop/lib/rubocop/cop/style/redundant_self.rb#60 def initialize(config = T.unsafe(nil), options = T.unsafe(nil)); end # Assignment of self.x # - # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#68 + # source://rubocop/lib/rubocop/cop/style/redundant_self.rb#68 def on_and_asgn(node); end - # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#86 + # source://rubocop/lib/rubocop/cop/style/redundant_self.rb#84 def on_args(node); end - # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#120 + # source://rubocop/lib/rubocop/cop/style/redundant_self.rb#116 def on_block(node); end - # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#90 + # source://rubocop/lib/rubocop/cop/style/redundant_self.rb#88 def on_blockarg(node); end # Using self.x to distinguish from local variable x # - # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#81 + # source://rubocop/lib/rubocop/cop/style/redundant_self.rb#79 def on_def(node); end # Using self.x to distinguish from local variable x # - # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#81 + # source://rubocop/lib/rubocop/cop/style/redundant_self.rb#79 def on_defs(node); end - # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#126 + # source://rubocop/lib/rubocop/cop/style/redundant_self.rb#122 def on_if(node); end - # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#104 + # source://rubocop/lib/rubocop/cop/style/redundant_self.rb#100 def on_in_pattern(node); end - # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#99 + # source://rubocop/lib/rubocop/cop/style/redundant_self.rb#96 def on_lvasgn(node); end - # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#94 + # source://rubocop/lib/rubocop/cop/style/redundant_self.rb#92 def on_masgn(node); end - # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#120 + # source://rubocop/lib/rubocop/cop/style/redundant_self.rb#116 def on_numblock(node); end - # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#74 + # source://rubocop/lib/rubocop/cop/style/redundant_self.rb#73 def on_op_asgn(node); end # Assignment of self.x # - # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#68 + # source://rubocop/lib/rubocop/cop/style/redundant_self.rb#68 def on_or_asgn(node); end - # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#108 + # source://rubocop/lib/rubocop/cop/style/redundant_self.rb#104 def on_send(node); end - # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#126 + # source://rubocop/lib/rubocop/cop/style/redundant_self.rb#122 def on_until(node); end - # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#126 + # source://rubocop/lib/rubocop/cop/style/redundant_self.rb#122 def on_while(node); end private - # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#196 + # source://rubocop/lib/rubocop/cop/style/redundant_self.rb#189 def add_lhs_to_local_variables_scopes(rhs, lhs); end - # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#204 + # source://rubocop/lib/rubocop/cop/style/redundant_self.rb#197 def add_masgn_lhs_variables(rhs, lhs); end - # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#210 + # source://rubocop/lib/rubocop/cop/style/redundant_self.rb#203 def add_match_var_scopes(in_pattern_node); end - # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#144 + # source://rubocop/lib/rubocop/cop/style/redundant_self.rb#138 def add_scope(node, local_variables = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#190 + # source://rubocop/lib/rubocop/cop/style/redundant_self.rb#183 def allow_self(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#150 + # source://rubocop/lib/rubocop/cop/style/redundant_self.rb#144 def allowed_send_node?(node); end # Respects `Lint/ItWithoutArgumentsInBlock` cop and the following Ruby 3.3's warning: @@ -47678,30 +48318,30 @@ class RuboCop::Cop::Style::RedundantSelf < ::RuboCop::Cop::Base # # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#165 + # source://rubocop/lib/rubocop/cop/style/redundant_self.rb#159 def it_method_in_block?(node); end - # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#181 + # source://rubocop/lib/rubocop/cop/style/redundant_self.rb#175 def on_argument(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#173 + # source://rubocop/lib/rubocop/cop/style/redundant_self.rb#167 def regular_method_call?(node); end class << self - # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#56 + # source://rubocop/lib/rubocop/cop/style/redundant_self.rb#56 def autocorrect_incompatible_with; end end end -# source://rubocop//lib/rubocop/cop/style/redundant_self.rb#49 +# source://rubocop/lib/rubocop/cop/style/redundant_self.rb#49 RuboCop::Cop::Style::RedundantSelf::KERNEL_METHODS = T.let(T.unsafe(nil), Array) -# source://rubocop//lib/rubocop/cop/style/redundant_self.rb#50 +# source://rubocop/lib/rubocop/cop/style/redundant_self.rb#50 RuboCop::Cop::Style::RedundantSelf::KEYWORDS = T.let(T.unsafe(nil), Array) -# source://rubocop//lib/rubocop/cop/style/redundant_self.rb#48 +# source://rubocop/lib/rubocop/cop/style/redundant_self.rb#48 RuboCop::Cop::Style::RedundantSelf::MSG = T.let(T.unsafe(nil), String) # Checks for places where redundant assignments are made for in place @@ -47724,55 +48364,55 @@ RuboCop::Cop::Style::RedundantSelf::MSG = T.let(T.unsafe(nil), String) # foo.concat(ary) # self.foo += ary # -# source://rubocop//lib/rubocop/cop/style/redundant_self_assignment.rb#31 +# source://rubocop/lib/rubocop/cop/style/redundant_self_assignment.rb#31 class RuboCop::Cop::Style::RedundantSelfAssignment < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/redundant_self_assignment.rb#52 + # source://rubocop/lib/rubocop/cop/style/redundant_self_assignment.rb#53 def on_cvasgn(node); end - # source://rubocop//lib/rubocop/cop/style/redundant_self_assignment.rb#52 + # source://rubocop/lib/rubocop/cop/style/redundant_self_assignment.rb#53 def on_gvasgn(node); end - # source://rubocop//lib/rubocop/cop/style/redundant_self_assignment.rb#52 + # source://rubocop/lib/rubocop/cop/style/redundant_self_assignment.rb#53 def on_ivasgn(node); end - # source://rubocop//lib/rubocop/cop/style/redundant_self_assignment.rb#52 + # source://rubocop/lib/rubocop/cop/style/redundant_self_assignment.rb#53 def on_lvasgn(node); end - # source://rubocop//lib/rubocop/cop/style/redundant_self_assignment.rb#69 + # source://rubocop/lib/rubocop/cop/style/redundant_self_assignment.rb#71 def on_send(node); end - # source://rubocop//lib/rubocop/cop/style/redundant_self_assignment.rb#96 + # source://rubocop/lib/rubocop/cop/style/redundant_self_assignment.rb#98 def redundant_nonself_assignment?(param0 = T.unsafe(nil), param1, param2); end - # source://rubocop//lib/rubocop/cop/style/redundant_self_assignment.rb#86 + # source://rubocop/lib/rubocop/cop/style/redundant_self_assignment.rb#88 def redundant_self_assignment?(param0 = T.unsafe(nil), param1); end private - # source://rubocop//lib/rubocop/cop/style/redundant_self_assignment.rb#112 + # source://rubocop/lib/rubocop/cop/style/redundant_self_assignment.rb#114 def correction_range(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_self_assignment.rb#81 + # source://rubocop/lib/rubocop/cop/style/redundant_self_assignment.rb#83 def method_returning_self?(method_name); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_self_assignment.rb#105 + # source://rubocop/lib/rubocop/cop/style/redundant_self_assignment.rb#107 def redundant_assignment?(node); end end -# source://rubocop//lib/rubocop/cop/style/redundant_self_assignment.rb#45 +# source://rubocop/lib/rubocop/cop/style/redundant_self_assignment.rb#45 RuboCop::Cop::Style::RedundantSelfAssignment::ASSIGNMENT_TYPE_TO_RECEIVER_TYPE = T.let(T.unsafe(nil), Hash) -# source://rubocop//lib/rubocop/cop/style/redundant_self_assignment.rb#38 +# source://rubocop/lib/rubocop/cop/style/redundant_self_assignment.rb#38 RuboCop::Cop::Style::RedundantSelfAssignment::METHODS_RETURNING_SELF = T.let(T.unsafe(nil), Set) -# source://rubocop//lib/rubocop/cop/style/redundant_self_assignment.rb#35 +# source://rubocop/lib/rubocop/cop/style/redundant_self_assignment.rb#35 RuboCop::Cop::Style::RedundantSelfAssignment::MSG = T.let(T.unsafe(nil), String) # Checks for places where conditional branch makes redundant self-assignment. @@ -47794,44 +48434,43 @@ RuboCop::Cop::Style::RedundantSelfAssignment::MSG = T.let(T.unsafe(nil), String) # # good # foo = bar unless condition # -# source://rubocop//lib/rubocop/cop/style/redundant_self_assignment_branch.rb#25 +# source://rubocop/lib/rubocop/cop/style/redundant_self_assignment_branch.rb#25 class RuboCop::Cop::Style::RedundantSelfAssignmentBranch < ::RuboCop::Cop::Base - include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/redundant_self_assignment_branch.rb#32 + # source://rubocop/lib/rubocop/cop/style/redundant_self_assignment_branch.rb#31 def bad_method?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/style/redundant_self_assignment_branch.rb#36 + # source://rubocop/lib/rubocop/cop/style/redundant_self_assignment_branch.rb#35 def on_lvasgn(node); end private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_self_assignment_branch.rb#59 + # source://rubocop/lib/rubocop/cop/style/redundant_self_assignment_branch.rb#59 def inconvertible_to_modifier?(if_branch, else_branch); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_self_assignment_branch.rb#64 + # source://rubocop/lib/rubocop/cop/style/redundant_self_assignment_branch.rb#64 def multiple_statements?(branch); end - # source://rubocop//lib/rubocop/cop/style/redundant_self_assignment_branch.rb#74 + # source://rubocop/lib/rubocop/cop/style/redundant_self_assignment_branch.rb#74 def register_offense(if_node, offense_branch, opposite_branch, keyword); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_self_assignment_branch.rb#70 + # source://rubocop/lib/rubocop/cop/style/redundant_self_assignment_branch.rb#70 def self_assign?(variable, branch); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_self_assignment_branch.rb#53 + # source://rubocop/lib/rubocop/cop/style/redundant_self_assignment_branch.rb#53 def use_if_and_else_branch?(expression); end end -# source://rubocop//lib/rubocop/cop/style/redundant_self_assignment_branch.rb#29 +# source://rubocop/lib/rubocop/cop/style/redundant_self_assignment_branch.rb#28 RuboCop::Cop::Style::RedundantSelfAssignmentBranch::MSG = T.let(T.unsafe(nil), String) # Identifies instances of sorting and then @@ -47880,18 +48519,18 @@ RuboCop::Cop::Style::RedundantSelfAssignmentBranch::MSG = T.let(T.unsafe(nil), S # # good # arr.max_by(&:foo) # -# source://rubocop//lib/rubocop/cop/style/redundant_sort.rb#79 +# source://rubocop/lib/rubocop/cop/style/redundant_sort.rb#79 class RuboCop::Cop::Style::RedundantSort < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/redundant_sort.rb#104 + # source://rubocop/lib/rubocop/cop/style/redundant_sort.rb#104 def on_csend(node); end - # source://rubocop//lib/rubocop/cop/style/redundant_sort.rb#104 + # source://rubocop/lib/rubocop/cop/style/redundant_sort.rb#104 def on_send(node); end - # source://rubocop//lib/rubocop/cop/style/redundant_sort.rb#88 + # source://rubocop/lib/rubocop/cop/style/redundant_sort.rb#88 def redundant_sort?(param0 = T.unsafe(nil)); end private @@ -47899,52 +48538,52 @@ class RuboCop::Cop::Style::RedundantSort < ::RuboCop::Cop::Base # This gets the start of the accessor whether it has a dot # (e.g. `.first`) or doesn't (e.g. `[0]`) # - # source://rubocop//lib/rubocop/cop/style/redundant_sort.rb#193 + # source://rubocop/lib/rubocop/cop/style/redundant_sort.rb#193 def accessor_start(node); end - # source://rubocop//lib/rubocop/cop/style/redundant_sort.rb#183 + # source://rubocop/lib/rubocop/cop/style/redundant_sort.rb#183 def arg_node(node); end - # source://rubocop//lib/rubocop/cop/style/redundant_sort.rb#187 + # source://rubocop/lib/rubocop/cop/style/redundant_sort.rb#187 def arg_value(node); end - # source://rubocop//lib/rubocop/cop/style/redundant_sort.rb#148 + # source://rubocop/lib/rubocop/cop/style/redundant_sort.rb#148 def autocorrect(corrector, node, sort_node, sorter, accessor); end - # source://rubocop//lib/rubocop/cop/style/redundant_sort.rb#166 + # source://rubocop/lib/rubocop/cop/style/redundant_sort.rb#166 def base(accessor, arg); end - # source://rubocop//lib/rubocop/cop/style/redundant_sort.rb#115 + # source://rubocop/lib/rubocop/cop/style/redundant_sort.rb#115 def find_redundant_sort(*nodes); end - # source://rubocop//lib/rubocop/cop/style/redundant_sort.rb#136 + # source://rubocop/lib/rubocop/cop/style/redundant_sort.rb#136 def message(node, sorter, accessor); end - # source://rubocop//lib/rubocop/cop/style/redundant_sort.rb#132 + # source://rubocop/lib/rubocop/cop/style/redundant_sort.rb#132 def offense_range(sort_node, node); end - # source://rubocop//lib/rubocop/cop/style/redundant_sort.rb#125 + # source://rubocop/lib/rubocop/cop/style/redundant_sort.rb#125 def register_offense(node, sort_node, sorter, accessor); end - # source://rubocop//lib/rubocop/cop/style/redundant_sort.rb#157 + # source://rubocop/lib/rubocop/cop/style/redundant_sort.rb#157 def replace_with_logical_operator(corrector, node); end - # source://rubocop//lib/rubocop/cop/style/redundant_sort.rb#174 + # source://rubocop/lib/rubocop/cop/style/redundant_sort.rb#174 def suffix(sorter); end - # source://rubocop//lib/rubocop/cop/style/redundant_sort.rb#162 + # source://rubocop/lib/rubocop/cop/style/redundant_sort.rb#162 def suggestion(sorter, accessor, arg); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_sort.rb#201 + # source://rubocop/lib/rubocop/cop/style/redundant_sort.rb#201 def with_logical_operator?(node); end end -# source://rubocop//lib/rubocop/cop/style/redundant_sort.rb#83 +# source://rubocop/lib/rubocop/cop/style/redundant_sort.rb#83 RuboCop::Cop::Style::RedundantSort::MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/redundant_sort.rb#85 +# source://rubocop/lib/rubocop/cop/style/redundant_sort.rb#85 RuboCop::Cop::Style::RedundantSort::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Identifies places where `sort_by { ... }` can be replaced by @@ -47960,33 +48599,33 @@ RuboCop::Cop::Style::RedundantSort::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Arra # # good # array.sort # -# source://rubocop//lib/rubocop/cop/style/redundant_sort_by.rb#18 +# source://rubocop/lib/rubocop/cop/style/redundant_sort_by.rb#18 class RuboCop::Cop::Style::RedundantSortBy < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/redundant_sort_by.rb#25 + # source://rubocop/lib/rubocop/cop/style/redundant_sort_by.rb#25 def on_block(node); end - # source://rubocop//lib/rubocop/cop/style/redundant_sort_by.rb#35 + # source://rubocop/lib/rubocop/cop/style/redundant_sort_by.rb#35 def on_numblock(node); end - # source://rubocop//lib/rubocop/cop/style/redundant_sort_by.rb#48 + # source://rubocop/lib/rubocop/cop/style/redundant_sort_by.rb#48 def redundant_sort_by_block(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/style/redundant_sort_by.rb#53 + # source://rubocop/lib/rubocop/cop/style/redundant_sort_by.rb#53 def redundant_sort_by_numblock(param0 = T.unsafe(nil)); end private - # source://rubocop//lib/rubocop/cop/style/redundant_sort_by.rb#57 + # source://rubocop/lib/rubocop/cop/style/redundant_sort_by.rb#57 def sort_by_range(send, node); end end -# source://rubocop//lib/rubocop/cop/style/redundant_sort_by.rb#22 +# source://rubocop/lib/rubocop/cop/style/redundant_sort_by.rb#22 RuboCop::Cop::Style::RedundantSortBy::MSG_BLOCK = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/redundant_sort_by.rb#23 +# source://rubocop/lib/rubocop/cop/style/redundant_sort_by.rb#23 RuboCop::Cop::Style::RedundantSortBy::MSG_NUMBLOCK = T.let(T.unsafe(nil), String) # Checks for redundant escapes in string literals. @@ -48021,95 +48660,95 @@ RuboCop::Cop::Style::RedundantSortBy::MSG_NUMBLOCK = T.let(T.unsafe(nil), String # #foo "foo" # STR # -# source://rubocop//lib/rubocop/cop/style/redundant_string_escape.rb#37 +# source://rubocop/lib/rubocop/cop/style/redundant_string_escape.rb#37 class RuboCop::Cop::Style::RedundantStringEscape < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp include ::RuboCop::Cop::MatchRange extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/redundant_string_escape.rb#43 + # source://rubocop/lib/rubocop/cop/style/redundant_string_escape.rb#43 def on_str(node); end private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_string_escape.rb#79 + # source://rubocop/lib/rubocop/cop/style/redundant_string_escape.rb#79 def allowed_escape?(node, range); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_string_escape.rb#119 + # source://rubocop/lib/rubocop/cop/style/redundant_string_escape.rb#119 def array_literal?(node, prefix); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_string_escape.rb#73 + # source://rubocop/lib/rubocop/cop/style/redundant_string_escape.rb#73 def begin_loc_present?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_string_escape.rb#153 + # source://rubocop/lib/rubocop/cop/style/redundant_string_escape.rb#153 def delimiter?(node, char); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_string_escape.rb#171 + # source://rubocop/lib/rubocop/cop/style/redundant_string_escape.rb#171 def disabling_interpolation?(range); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_string_escape.rb#149 + # source://rubocop/lib/rubocop/cop/style/redundant_string_escape.rb#149 def heredoc?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_string_escape.rb#139 + # source://rubocop/lib/rubocop/cop/style/redundant_string_escape.rb#139 def heredoc_with_disabled_interpolation?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_string_escape.rb#100 + # source://rubocop/lib/rubocop/cop/style/redundant_string_escape.rb#100 def interpolation_not_enabled?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_string_escape.rb#167 + # source://rubocop/lib/rubocop/cop/style/redundant_string_escape.rb#167 def literal_in_interpolated_or_multiline_string?(node); end - # source://rubocop//lib/rubocop/cop/style/redundant_string_escape.rb#59 + # source://rubocop/lib/rubocop/cop/style/redundant_string_escape.rb#59 def message(range); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_string_escape.rb#135 + # source://rubocop/lib/rubocop/cop/style/redundant_string_escape.rb#135 def percent_array_literal?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_string_escape.rb#111 + # source://rubocop/lib/rubocop/cop/style/redundant_string_escape.rb#111 def percent_q_literal?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_string_escape.rb#127 + # source://rubocop/lib/rubocop/cop/style/redundant_string_escape.rb#127 def percent_w_literal?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_string_escape.rb#131 + # source://rubocop/lib/rubocop/cop/style/redundant_string_escape.rb#131 def percent_w_upper_literal?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/redundant_string_escape.rb#107 + # source://rubocop/lib/rubocop/cop/style/redundant_string_escape.rb#107 def single_quoted?(node); end - # source://rubocop//lib/rubocop/cop/style/redundant_string_escape.rb#63 + # source://rubocop/lib/rubocop/cop/style/redundant_string_escape.rb#63 def str_contents_range(node); end end -# source://rubocop//lib/rubocop/cop/style/redundant_string_escape.rb#41 +# source://rubocop/lib/rubocop/cop/style/redundant_string_escape.rb#41 RuboCop::Cop::Style::RedundantStringEscape::MSG = T.let(T.unsafe(nil), String) # Enforces using `//` or `%r` around regular expressions. @@ -48196,94 +48835,94 @@ RuboCop::Cop::Style::RedundantStringEscape::MSG = T.let(T.unsafe(nil), String) # # good # x =~ /home\// # -# source://rubocop//lib/rubocop/cop/style/regexp_literal.rb#93 +# source://rubocop/lib/rubocop/cop/style/regexp_literal.rb#93 class RuboCop::Cop::Style::RegexpLiteral < ::RuboCop::Cop::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/regexp_literal.rb#101 + # source://rubocop/lib/rubocop/cop/style/regexp_literal.rb#101 def on_regexp(node); end private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/regexp_literal.rb#144 + # source://rubocop/lib/rubocop/cop/style/regexp_literal.rb#144 def allow_inner_slashes?; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/regexp_literal.rb#132 + # source://rubocop/lib/rubocop/cop/style/regexp_literal.rb#132 def allowed_mixed_percent_r?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/regexp_literal.rb#122 + # source://rubocop/lib/rubocop/cop/style/regexp_literal.rb#122 def allowed_mixed_slash?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/regexp_literal.rb#161 + # source://rubocop/lib/rubocop/cop/style/regexp_literal.rb#161 def allowed_omit_parentheses_with_percent_r_literal?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/regexp_literal.rb#126 + # source://rubocop/lib/rubocop/cop/style/regexp_literal.rb#126 def allowed_percent_r_literal?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/regexp_literal.rb#118 + # source://rubocop/lib/rubocop/cop/style/regexp_literal.rb#118 def allowed_slash_literal?(node); end - # source://rubocop//lib/rubocop/cop/style/regexp_literal.rb#221 + # source://rubocop/lib/rubocop/cop/style/regexp_literal.rb#221 def calculate_replacement(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/regexp_literal.rb#136 + # source://rubocop/lib/rubocop/cop/style/regexp_literal.rb#136 def contains_disallowed_slash?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/regexp_literal.rb#140 + # source://rubocop/lib/rubocop/cop/style/regexp_literal.rb#140 def contains_slash?(node); end - # source://rubocop//lib/rubocop/cop/style/regexp_literal.rb#170 + # source://rubocop/lib/rubocop/cop/style/regexp_literal.rb#170 def correct_delimiters(node, corrector); end - # source://rubocop//lib/rubocop/cop/style/regexp_literal.rb#176 + # source://rubocop/lib/rubocop/cop/style/regexp_literal.rb#176 def correct_inner_slashes(node, corrector); end - # source://rubocop//lib/rubocop/cop/style/regexp_literal.rb#209 + # source://rubocop/lib/rubocop/cop/style/regexp_literal.rb#209 def inner_slash_after_correction(node); end - # source://rubocop//lib/rubocop/cop/style/regexp_literal.rb#205 + # source://rubocop/lib/rubocop/cop/style/regexp_literal.rb#205 def inner_slash_before_correction(node); end - # source://rubocop//lib/rubocop/cop/style/regexp_literal.rb#213 + # source://rubocop/lib/rubocop/cop/style/regexp_literal.rb#213 def inner_slash_for(opening_delimiter); end - # source://rubocop//lib/rubocop/cop/style/regexp_literal.rb#192 + # source://rubocop/lib/rubocop/cop/style/regexp_literal.rb#192 def inner_slash_indices(node); end - # source://rubocop//lib/rubocop/cop/style/regexp_literal.rb#148 + # source://rubocop/lib/rubocop/cop/style/regexp_literal.rb#148 def node_body(node, include_begin_nodes: T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/style/regexp_literal.rb#157 + # source://rubocop/lib/rubocop/cop/style/regexp_literal.rb#157 def preferred_delimiters; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/regexp_literal.rb#153 + # source://rubocop/lib/rubocop/cop/style/regexp_literal.rb#153 def slash_literal?(node); end end -# source://rubocop//lib/rubocop/cop/style/regexp_literal.rb#99 +# source://rubocop/lib/rubocop/cop/style/regexp_literal.rb#99 RuboCop::Cop::Style::RegexpLiteral::MSG_USE_PERCENT_R = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/regexp_literal.rb#98 +# source://rubocop/lib/rubocop/cop/style/regexp_literal.rb#98 RuboCop::Cop::Style::RegexpLiteral::MSG_USE_SLASHES = T.let(T.unsafe(nil), String) # Sort `require` and `require_relative` in alphabetical order. @@ -48343,46 +48982,46 @@ RuboCop::Cop::Style::RegexpLiteral::MSG_USE_SLASHES = T.let(T.unsafe(nil), Strin # end # require 'a' # -# source://rubocop//lib/rubocop/cop/style/require_order.rb#66 +# source://rubocop/lib/rubocop/cop/style/require_order.rb#66 class RuboCop::Cop::Style::RequireOrder < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/require_order.rb#76 + # source://rubocop/lib/rubocop/cop/style/require_order.rb#76 def if_inside_only_require(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/style/require_order.rb#83 + # source://rubocop/lib/rubocop/cop/style/require_order.rb#83 def on_send(node); end private - # source://rubocop//lib/rubocop/cop/style/require_order.rb#115 + # source://rubocop/lib/rubocop/cop/style/require_order.rb#115 def autocorrect(corrector, node, previous_older_sibling); end - # source://rubocop//lib/rubocop/cop/style/require_order.rb#101 + # source://rubocop/lib/rubocop/cop/style/require_order.rb#101 def find_previous_older_sibling(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/require_order.rb#133 + # source://rubocop/lib/rubocop/cop/style/require_order.rb#133 def in_same_section?(node1, node2); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/require_order.rb#97 + # source://rubocop/lib/rubocop/cop/style/require_order.rb#97 def not_modifier_form?(node); end - # source://rubocop//lib/rubocop/cop/style/require_order.rb#123 + # source://rubocop/lib/rubocop/cop/style/require_order.rb#123 def search_node(node); end - # source://rubocop//lib/rubocop/cop/style/require_order.rb#127 + # source://rubocop/lib/rubocop/cop/style/require_order.rb#127 def sibling_node(node); end end -# source://rubocop//lib/rubocop/cop/style/require_order.rb#73 +# source://rubocop/lib/rubocop/cop/style/require_order.rb#73 RuboCop::Cop::Style::RequireOrder::MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/require_order.rb#71 +# source://rubocop/lib/rubocop/cop/style/require_order.rb#71 RuboCop::Cop::Style::RequireOrder::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Checks for uses of `rescue` in its modifier form is added for following @@ -48420,39 +49059,39 @@ RuboCop::Cop::Style::RequireOrder::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array # handle_error # end # -# source://rubocop//lib/rubocop/cop/style/rescue_modifier.rb#40 +# source://rubocop/lib/rubocop/cop/style/rescue_modifier.rb#40 class RuboCop::Cop::Style::RescueModifier < ::RuboCop::Cop::Base include ::RuboCop::Cop::Alignment include ::RuboCop::Cop::RangeHelp include ::RuboCop::Cop::RescueNode extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/rescue_modifier.rb#52 + # source://rubocop/lib/rubocop/cop/style/rescue_modifier.rb#52 def on_resbody(node); end private - # source://rubocop//lib/rubocop/cop/style/rescue_modifier.rb#70 + # source://rubocop/lib/rubocop/cop/style/rescue_modifier.rb#70 def correct_rescue_block(corrector, node, parenthesized); end - # source://rubocop//lib/rubocop/cop/style/rescue_modifier.rb#96 + # source://rubocop/lib/rubocop/cop/style/rescue_modifier.rb#95 def heredoc_end(node); end - # source://rubocop//lib/rubocop/cop/style/rescue_modifier.rb#86 + # source://rubocop/lib/rubocop/cop/style/rescue_modifier.rb#85 def indentation_and_offset(node, parenthesized); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/rescue_modifier.rb#66 + # source://rubocop/lib/rubocop/cop/style/rescue_modifier.rb#66 def parenthesized?(node); end class << self - # source://rubocop//lib/rubocop/cop/style/rescue_modifier.rb#48 + # source://rubocop/lib/rubocop/cop/style/rescue_modifier.rb#48 def autocorrect_incompatible_with; end end end -# source://rubocop//lib/rubocop/cop/style/rescue_modifier.rb#46 +# source://rubocop/lib/rubocop/cop/style/rescue_modifier.rb#46 RuboCop::Cop::Style::RescueModifier::MSG = T.let(T.unsafe(nil), String) # Checks for rescuing `StandardError`. There are two supported @@ -48522,35 +49161,35 @@ RuboCop::Cop::Style::RescueModifier::MSG = T.let(T.unsafe(nil), String) # bar # end # -# source://rubocop//lib/rubocop/cop/style/rescue_standard_error.rb#73 +# source://rubocop/lib/rubocop/cop/style/rescue_standard_error.rb#73 class RuboCop::Cop::Style::RescueStandardError < ::RuboCop::Cop::Base include ::RuboCop::Cop::RescueNode include ::RuboCop::Cop::ConfigurableEnforcedStyle include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/rescue_standard_error.rb#92 + # source://rubocop/lib/rubocop/cop/style/rescue_standard_error.rb#92 def on_resbody(node); end - # source://rubocop//lib/rubocop/cop/style/rescue_standard_error.rb#88 + # source://rubocop/lib/rubocop/cop/style/rescue_standard_error.rb#88 def rescue_standard_error?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/style/rescue_standard_error.rb#83 + # source://rubocop/lib/rubocop/cop/style/rescue_standard_error.rb#83 def rescue_without_error_class?(param0 = T.unsafe(nil)); end private - # source://rubocop//lib/rubocop/cop/style/rescue_standard_error.rb#118 + # source://rubocop/lib/rubocop/cop/style/rescue_standard_error.rb#118 def offense_for_explicit_enforced_style(node); end - # source://rubocop//lib/rubocop/cop/style/rescue_standard_error.rb#107 + # source://rubocop/lib/rubocop/cop/style/rescue_standard_error.rb#107 def offense_for_implicit_enforced_style(node, error); end end -# source://rubocop//lib/rubocop/cop/style/rescue_standard_error.rb#80 +# source://rubocop/lib/rubocop/cop/style/rescue_standard_error.rb#80 RuboCop::Cop::Style::RescueStandardError::MSG_EXPLICIT = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/rescue_standard_error.rb#79 +# source://rubocop/lib/rubocop/cop/style/rescue_standard_error.rb#79 RuboCop::Cop::Style::RescueStandardError::MSG_IMPLICIT = T.let(T.unsafe(nil), String) # Enforces consistency between `return nil` and `return`. @@ -48582,46 +49221,46 @@ RuboCop::Cop::Style::RescueStandardError::MSG_IMPLICIT = T.let(T.unsafe(nil), St # return nil if arg # end # -# source://rubocop//lib/rubocop/cop/style/return_nil.rb#35 +# source://rubocop/lib/rubocop/cop/style/return_nil.rb#35 class RuboCop::Cop::Style::ReturnNil < ::RuboCop::Cop::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/return_nil.rb#90 + # source://rubocop/lib/rubocop/cop/style/return_nil.rb#90 def chained_send?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/style/return_nil.rb#93 + # source://rubocop/lib/rubocop/cop/style/return_nil.rb#93 def define_method?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/style/return_nil.rb#48 + # source://rubocop/lib/rubocop/cop/style/return_nil.rb#48 def on_return(node); end - # source://rubocop//lib/rubocop/cop/style/return_nil.rb#46 + # source://rubocop/lib/rubocop/cop/style/return_nil.rb#46 def return_nil_node?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/style/return_nil.rb#43 + # source://rubocop/lib/rubocop/cop/style/return_nil.rb#43 def return_node?(param0 = T.unsafe(nil)); end private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/return_nil.rb#80 + # source://rubocop/lib/rubocop/cop/style/return_nil.rb#80 def correct_style?(node); end - # source://rubocop//lib/rubocop/cop/style/return_nil.rb#76 + # source://rubocop/lib/rubocop/cop/style/return_nil.rb#76 def message(_node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/return_nil.rb#85 + # source://rubocop/lib/rubocop/cop/style/return_nil.rb#85 def scoped_node?(node); end end -# source://rubocop//lib/rubocop/cop/style/return_nil.rb#39 +# source://rubocop/lib/rubocop/cop/style/return_nil.rb#39 RuboCop::Cop::Style::ReturnNil::RETURN_MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/return_nil.rb#40 +# source://rubocop/lib/rubocop/cop/style/return_nil.rb#40 RuboCop::Cop::Style::ReturnNil::RETURN_NIL_MSG = T.let(T.unsafe(nil), String) # Checks for predicate method definitions that return `nil`. @@ -48681,48 +49320,48 @@ RuboCop::Cop::Style::ReturnNil::RETURN_NIL_MSG = T.let(T.unsafe(nil), String) # do_something? # end # -# source://rubocop//lib/rubocop/cop/style/return_nil_in_predicate_method_definition.rb#69 +# source://rubocop/lib/rubocop/cop/style/return_nil_in_predicate_method_definition.rb#69 class RuboCop::Cop::Style::ReturnNilInPredicateMethodDefinition < ::RuboCop::Cop::Base include ::RuboCop::Cop::AllowedMethods include ::RuboCop::Cop::AllowedPattern extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/return_nil_in_predicate_method_definition.rb#81 + # source://rubocop/lib/rubocop/cop/style/return_nil_in_predicate_method_definition.rb#81 def on_def(node); end - # source://rubocop//lib/rubocop/cop/style/return_nil_in_predicate_method_definition.rb#81 + # source://rubocop/lib/rubocop/cop/style/return_nil_in_predicate_method_definition.rb#81 def on_defs(node); end - # source://rubocop//lib/rubocop/cop/style/return_nil_in_predicate_method_definition.rb#77 + # source://rubocop/lib/rubocop/cop/style/return_nil_in_predicate_method_definition.rb#77 def return_nil?(param0 = T.unsafe(nil)); end private - # source://rubocop//lib/rubocop/cop/style/return_nil_in_predicate_method_definition.rb#128 + # source://rubocop/lib/rubocop/cop/style/return_nil_in_predicate_method_definition.rb#128 def handle_if(if_node); end - # source://rubocop//lib/rubocop/cop/style/return_nil_in_predicate_method_definition.rb#113 + # source://rubocop/lib/rubocop/cop/style/return_nil_in_predicate_method_definition.rb#113 def handle_implicit_return_values(node); end - # source://rubocop//lib/rubocop/cop/style/return_nil_in_predicate_method_definition.rb#122 + # source://rubocop/lib/rubocop/cop/style/return_nil_in_predicate_method_definition.rb#122 def handle_nil(nil_node); end - # source://rubocop//lib/rubocop/cop/style/return_nil_in_predicate_method_definition.rb#118 + # source://rubocop/lib/rubocop/cop/style/return_nil_in_predicate_method_definition.rb#118 def handle_return(return_node); end - # source://rubocop//lib/rubocop/cop/style/return_nil_in_predicate_method_definition.rb#94 + # source://rubocop/lib/rubocop/cop/style/return_nil_in_predicate_method_definition.rb#94 def last_node_of_type(node, type); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/return_nil_in_predicate_method_definition.rb#103 + # source://rubocop/lib/rubocop/cop/style/return_nil_in_predicate_method_definition.rb#103 def node_type?(node, type); end - # source://rubocop//lib/rubocop/cop/style/return_nil_in_predicate_method_definition.rb#107 + # source://rubocop/lib/rubocop/cop/style/return_nil_in_predicate_method_definition.rb#107 def register_offense(offense_node, replacement); end end -# source://rubocop//lib/rubocop/cop/style/return_nil_in_predicate_method_definition.rb#74 +# source://rubocop/lib/rubocop/cop/style/return_nil_in_predicate_method_definition.rb#74 RuboCop::Cop::Style::ReturnNilInPredicateMethodDefinition::MSG = T.let(T.unsafe(nil), String) # Transforms usages of a method call safeguarded by a non `nil` @@ -48798,7 +49437,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#89 +# 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 @@ -48806,126 +49445,126 @@ 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#136 + # 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 + # 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#104 + # 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#133 + # 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#157 + # source://rubocop/lib/rubocop/cop/style/safe_navigation.rb#157 def on_and(node); end - # source://rubocop//lib/rubocop/cop/style/safe_navigation.rb#141 + # source://rubocop/lib/rubocop/cop/style/safe_navigation.rb#141 def on_if(node); end - # source://rubocop//lib/rubocop/cop/style/safe_navigation.rb#181 + # 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#139 + # 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#119 + # 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#360 + # 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#277 + # 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#222 + # source://rubocop/lib/rubocop/cop/style/safe_navigation.rb#222 def and_parts(node); end - # source://rubocop//lib/rubocop/cop/style/safe_navigation.rb#352 + # 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#314 + # 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#204 + # 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#258 + # source://rubocop/lib/rubocop/cop/style/safe_navigation.rb#258 def comments(node); end - # source://rubocop//lib/rubocop/cop/style/safe_navigation.rb#216 + # 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#356 + # 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#296 + # 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#243 + # 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#281 + # 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#304 + # 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#198 + # 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#251 + # 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#374 + # 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#348 + # 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#340 + # 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#229 + # 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#264 + # 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#334 + # 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#322 + # 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#239 + # 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#97 +# 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#95 +# 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. @@ -48948,21 +49587,21 @@ RuboCop::Cop::Style::SafeNavigation::MSG = T.let(T.unsafe(nil), String) # user&.address&.zip # user.address.zip if user # -# source://rubocop//lib/rubocop/cop/style/safe_navigation_chain_length.rb#26 +# 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 + # 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 + # 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 + # 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 +# 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`, @@ -48990,61 +49629,61 @@ RuboCop::Cop::Style::SafeNavigationChainLength::MSG = T.let(T.unsafe(nil), Strin # [1, 2, 3].shuffle[foo, bar] # [1, 2, 3].shuffle(random: Random.new) # -# source://rubocop//lib/rubocop/cop/style/sample.rb#30 +# source://rubocop/lib/rubocop/cop/style/sample.rb#30 class RuboCop::Cop::Style::Sample < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/sample.rb#41 + # source://rubocop/lib/rubocop/cop/style/sample.rb#41 def on_csend(node); end - # source://rubocop//lib/rubocop/cop/style/sample.rb#41 + # source://rubocop/lib/rubocop/cop/style/sample.rb#41 def on_send(node); end - # source://rubocop//lib/rubocop/cop/style/sample.rb#37 + # source://rubocop/lib/rubocop/cop/style/sample.rb#37 def sample_candidate?(param0 = T.unsafe(nil)); end private - # source://rubocop//lib/rubocop/cop/style/sample.rb#122 + # source://rubocop/lib/rubocop/cop/style/sample.rb#122 def correction(shuffle_arg, method, method_args); end - # source://rubocop//lib/rubocop/cop/style/sample.rb#138 + # source://rubocop/lib/rubocop/cop/style/sample.rb#138 def extract_source(args); end - # source://rubocop//lib/rubocop/cop/style/sample.rb#116 + # source://rubocop/lib/rubocop/cop/style/sample.rb#116 def message(shuffle_arg, method, method_args, range); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/sample.rb#59 + # source://rubocop/lib/rubocop/cop/style/sample.rb#59 def offensive?(method, method_args); end - # source://rubocop//lib/rubocop/cop/style/sample.rb#96 + # source://rubocop/lib/rubocop/cop/style/sample.rb#96 def range_size(range_node); end - # source://rubocop//lib/rubocop/cop/style/sample.rb#129 + # source://rubocop/lib/rubocop/cop/style/sample.rb#129 def sample_arg(method, method_args); end - # source://rubocop//lib/rubocop/cop/style/sample.rb#70 + # source://rubocop/lib/rubocop/cop/style/sample.rb#70 def sample_size(method_args); end - # source://rubocop//lib/rubocop/cop/style/sample.rb#79 + # source://rubocop/lib/rubocop/cop/style/sample.rb#79 def sample_size_for_one_arg(arg); end - # source://rubocop//lib/rubocop/cop/style/sample.rb#89 + # source://rubocop/lib/rubocop/cop/style/sample.rb#89 def sample_size_for_two_args(first, second); end - # source://rubocop//lib/rubocop/cop/style/sample.rb#112 + # source://rubocop/lib/rubocop/cop/style/sample.rb#112 def source_range(shuffle_node, node); end end -# source://rubocop//lib/rubocop/cop/style/sample.rb#33 +# source://rubocop/lib/rubocop/cop/style/sample.rb#33 RuboCop::Cop::Style::Sample::MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/sample.rb#34 +# source://rubocop/lib/rubocop/cop/style/sample.rb#34 RuboCop::Cop::Style::Sample::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) -# Looks for places where an subset of an Enumerable (array, +# Looks for places where a subset of an Enumerable (array, # range, set, etc.; see note below) is calculated based on a `Regexp` # match, and suggests `grep` or `grep_v` instead. # @@ -49075,74 +49714,74 @@ RuboCop::Cop::Style::Sample::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # array.grep(regexp) # array.grep_v(regexp) # -# source://rubocop//lib/rubocop/cop/style/select_by_regexp.rb#45 +# source://rubocop/lib/rubocop/cop/style/select_by_regexp.rb#45 class RuboCop::Cop::Style::SelectByRegexp < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/select_by_regexp.rb#81 + # source://rubocop/lib/rubocop/cop/style/select_by_regexp.rb#81 def calls_lvar?(param0 = T.unsafe(nil), param1); end # Returns true if a node appears to return a hash # - # source://rubocop//lib/rubocop/cop/style/select_by_regexp.rb#67 + # source://rubocop/lib/rubocop/cop/style/select_by_regexp.rb#67 def creates_hash?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/style/select_by_regexp.rb#76 + # source://rubocop/lib/rubocop/cop/style/select_by_regexp.rb#76 def env_const?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/style/select_by_regexp.rb#90 + # source://rubocop/lib/rubocop/cop/style/select_by_regexp.rb#90 def on_csend(node); end - # source://rubocop//lib/rubocop/cop/style/select_by_regexp.rb#90 + # source://rubocop/lib/rubocop/cop/style/select_by_regexp.rb#90 def on_send(node); end - # source://rubocop//lib/rubocop/cop/style/select_by_regexp.rb#58 + # source://rubocop/lib/rubocop/cop/style/select_by_regexp.rb#58 def regexp_match?(param0 = T.unsafe(nil)); end private - # source://rubocop//lib/rubocop/cop/style/select_by_regexp.rb#136 + # source://rubocop/lib/rubocop/cop/style/select_by_regexp.rb#136 def extract_send_node(block_node); end - # source://rubocop//lib/rubocop/cop/style/select_by_regexp.rb#149 + # source://rubocop/lib/rubocop/cop/style/select_by_regexp.rb#149 def find_regexp(node, block); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/select_by_regexp.rb#160 + # source://rubocop/lib/rubocop/cop/style/select_by_regexp.rb#160 def match_predicate_without_receiver?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/select_by_regexp.rb#145 + # source://rubocop/lib/rubocop/cop/style/select_by_regexp.rb#145 def opposite?(regexp_method_send_node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/select_by_regexp.rb#110 + # source://rubocop/lib/rubocop/cop/style/select_by_regexp.rb#110 def receiver_allowed?(node); end - # source://rubocop//lib/rubocop/cop/style/select_by_regexp.rb#124 + # source://rubocop/lib/rubocop/cop/style/select_by_regexp.rb#124 def register_offense(node, block_node, regexp, replacement); end - # source://rubocop//lib/rubocop/cop/style/select_by_regexp.rb#116 + # source://rubocop/lib/rubocop/cop/style/select_by_regexp.rb#116 def replacement(regexp_method_send_node, node); end end -# source://rubocop//lib/rubocop/cop/style/select_by_regexp.rb#49 +# source://rubocop/lib/rubocop/cop/style/select_by_regexp.rb#49 RuboCop::Cop::Style::SelectByRegexp::MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/select_by_regexp.rb#52 +# source://rubocop/lib/rubocop/cop/style/select_by_regexp.rb#52 RuboCop::Cop::Style::SelectByRegexp::OPPOSITE_REPLACEMENTS = T.let(T.unsafe(nil), Hash) -# source://rubocop//lib/rubocop/cop/style/select_by_regexp.rb#55 +# source://rubocop/lib/rubocop/cop/style/select_by_regexp.rb#55 RuboCop::Cop::Style::SelectByRegexp::REGEXP_METHODS = T.let(T.unsafe(nil), Set) -# source://rubocop//lib/rubocop/cop/style/select_by_regexp.rb#51 +# source://rubocop/lib/rubocop/cop/style/select_by_regexp.rb#51 RuboCop::Cop::Style::SelectByRegexp::REPLACEMENTS = T.let(T.unsafe(nil), Hash) -# source://rubocop//lib/rubocop/cop/style/select_by_regexp.rb#50 +# source://rubocop/lib/rubocop/cop/style/select_by_regexp.rb#50 RuboCop::Cop::Style::SelectByRegexp::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Enforces the use the shorthand for self-assignment. @@ -49155,52 +49794,52 @@ RuboCop::Cop::Style::SelectByRegexp::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Arr # # good # x += 1 # -# source://rubocop//lib/rubocop/cop/style/self_assignment.rb#15 +# source://rubocop/lib/rubocop/cop/style/self_assignment.rb#15 class RuboCop::Cop::Style::SelfAssignment < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/self_assignment.rb#33 + # source://rubocop/lib/rubocop/cop/style/self_assignment.rb#33 def on_cvasgn(node); end - # source://rubocop//lib/rubocop/cop/style/self_assignment.rb#29 + # source://rubocop/lib/rubocop/cop/style/self_assignment.rb#29 def on_ivasgn(node); end - # source://rubocop//lib/rubocop/cop/style/self_assignment.rb#25 + # source://rubocop/lib/rubocop/cop/style/self_assignment.rb#25 def on_lvasgn(node); end private - # source://rubocop//lib/rubocop/cop/style/self_assignment.rb#94 + # source://rubocop/lib/rubocop/cop/style/self_assignment.rb#88 def apply_autocorrect(corrector, node, rhs, operator, new_rhs); end - # source://rubocop//lib/rubocop/cop/style/self_assignment.rb#74 + # source://rubocop/lib/rubocop/cop/style/self_assignment.rb#70 def autocorrect(corrector, node); end - # source://rubocop//lib/rubocop/cop/style/self_assignment.rb#89 + # source://rubocop/lib/rubocop/cop/style/self_assignment.rb#84 def autocorrect_boolean_node(corrector, node, rhs); end - # source://rubocop//lib/rubocop/cop/style/self_assignment.rb#84 + # source://rubocop/lib/rubocop/cop/style/self_assignment.rb#80 def autocorrect_send_node(corrector, node, rhs); end - # source://rubocop//lib/rubocop/cop/style/self_assignment.rb#39 + # source://rubocop/lib/rubocop/cop/style/self_assignment.rb#39 def check(node, var_type); end - # source://rubocop//lib/rubocop/cop/style/self_assignment.rb#62 + # source://rubocop/lib/rubocop/cop/style/self_assignment.rb#60 def check_boolean_node(node, rhs, var_name, var_type); end - # source://rubocop//lib/rubocop/cop/style/self_assignment.rb#50 + # source://rubocop/lib/rubocop/cop/style/self_assignment.rb#49 def check_send_node(node, rhs, var_name, var_type); end class << self - # source://rubocop//lib/rubocop/cop/style/self_assignment.rb#21 + # source://rubocop/lib/rubocop/cop/style/self_assignment.rb#21 def autocorrect_incompatible_with; end end end -# source://rubocop//lib/rubocop/cop/style/self_assignment.rb#18 +# source://rubocop/lib/rubocop/cop/style/self_assignment.rb#18 RuboCop::Cop::Style::SelfAssignment::MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/self_assignment.rb#19 +# source://rubocop/lib/rubocop/cop/style/self_assignment.rb#19 RuboCop::Cop::Style::SelfAssignment::OPS = T.let(T.unsafe(nil), Array) # Checks for multiple expressions placed on the same line. @@ -49225,78 +49864,78 @@ RuboCop::Cop::Style::SelfAssignment::OPS = T.let(T.unsafe(nil), Array) # # good # foo = 1; bar = 2 # -# source://rubocop//lib/rubocop/cop/style/semicolon.rb#29 +# source://rubocop/lib/rubocop/cop/style/semicolon.rb#29 class RuboCop::Cop::Style::Semicolon < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/semicolon.rb#45 + # source://rubocop/lib/rubocop/cop/style/semicolon.rb#45 def on_begin(node); end - # source://rubocop//lib/rubocop/cop/style/semicolon.rb#39 + # source://rubocop/lib/rubocop/cop/style/semicolon.rb#39 def on_new_investigation; end private - # source://rubocop//lib/rubocop/cop/style/semicolon.rb#64 + # source://rubocop/lib/rubocop/cop/style/semicolon.rb#64 def check_for_line_terminator_or_opener; end - # source://rubocop//lib/rubocop/cop/style/semicolon.rb#70 + # source://rubocop/lib/rubocop/cop/style/semicolon.rb#70 def each_semicolon; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/semicolon.rb#106 + # source://rubocop/lib/rubocop/cop/style/semicolon.rb#106 def exist_semicolon_after_left_curly_brace?(tokens); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/semicolon.rb#110 + # source://rubocop/lib/rubocop/cop/style/semicolon.rb#110 def exist_semicolon_after_left_lambda_curly_brace?(tokens); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/semicolon.rb#118 + # source://rubocop/lib/rubocop/cop/style/semicolon.rb#118 def exist_semicolon_after_left_string_interpolation_brace?(tokens); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/semicolon.rb#102 + # source://rubocop/lib/rubocop/cop/style/semicolon.rb#102 def exist_semicolon_before_right_curly_brace?(tokens); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/semicolon.rb#114 + # source://rubocop/lib/rubocop/cop/style/semicolon.rb#114 def exist_semicolon_before_right_string_interpolation_brace?(tokens); end - # source://rubocop//lib/rubocop/cop/style/semicolon.rb#142 + # source://rubocop/lib/rubocop/cop/style/semicolon.rb#142 def expressions_per_line(exprs); end - # source://rubocop//lib/rubocop/cop/style/semicolon.rb#156 + # source://rubocop/lib/rubocop/cop/style/semicolon.rb#156 def find_range_node(token_before_semicolon); end - # source://rubocop//lib/rubocop/cop/style/semicolon.rb#148 + # source://rubocop/lib/rubocop/cop/style/semicolon.rb#148 def find_semicolon_positions(line); end - # source://rubocop//lib/rubocop/cop/style/semicolon.rb#162 + # source://rubocop/lib/rubocop/cop/style/semicolon.rb#162 def range_nodes; end - # source://rubocop//lib/rubocop/cop/style/semicolon.rb#122 + # source://rubocop/lib/rubocop/cop/style/semicolon.rb#122 def register_semicolon(line, column, after_expression, token_before_semicolon = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/style/semicolon.rb#84 + # source://rubocop/lib/rubocop/cop/style/semicolon.rb#84 def semicolon_position(tokens); end - # source://rubocop//lib/rubocop/cop/style/semicolon.rb#79 + # source://rubocop/lib/rubocop/cop/style/semicolon.rb#79 def tokens_for_lines; end class << self - # source://rubocop//lib/rubocop/cop/style/semicolon.rb#35 + # source://rubocop/lib/rubocop/cop/style/semicolon.rb#35 def autocorrect_incompatible_with; end end end -# source://rubocop//lib/rubocop/cop/style/semicolon.rb#33 +# source://rubocop/lib/rubocop/cop/style/semicolon.rb#33 RuboCop::Cop::Style::Semicolon::MSG = T.let(T.unsafe(nil), String) # Checks for the use of the send method. @@ -49310,19 +49949,19 @@ RuboCop::Cop::Style::Semicolon::MSG = T.let(T.unsafe(nil), String) # Foo.__send__(bar) # quuz.public_send(fred) # -# source://rubocop//lib/rubocop/cop/style/send.rb#16 +# source://rubocop/lib/rubocop/cop/style/send.rb#16 class RuboCop::Cop::Style::Send < ::RuboCop::Cop::Base - # source://rubocop//lib/rubocop/cop/style/send.rb#20 + # source://rubocop/lib/rubocop/cop/style/send.rb#20 def on_csend(node); end - # source://rubocop//lib/rubocop/cop/style/send.rb#20 + # source://rubocop/lib/rubocop/cop/style/send.rb#20 def on_send(node); end end -# source://rubocop//lib/rubocop/cop/style/send.rb#17 +# source://rubocop/lib/rubocop/cop/style/send.rb#17 RuboCop::Cop::Style::Send::MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/send.rb#18 +# source://rubocop/lib/rubocop/cop/style/send.rb#18 RuboCop::Cop::Style::Send::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Detects the use of the `public_send` method with a literal method name argument. @@ -49366,40 +50005,40 @@ RuboCop::Cop::Style::Send::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # # good # obj.method_name # -# source://rubocop//lib/rubocop/cop/style/send_with_literal_method_name.rb#54 +# source://rubocop/lib/rubocop/cop/style/send_with_literal_method_name.rb#54 class RuboCop::Cop::Style::SendWithLiteralMethodName < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/send_with_literal_method_name.rb#68 + # source://rubocop/lib/rubocop/cop/style/send_with_literal_method_name.rb#68 def on_send(node); end private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/send_with_literal_method_name.rb#90 + # source://rubocop/lib/rubocop/cop/style/send_with_literal_method_name.rb#90 def allow_send?; end - # source://rubocop//lib/rubocop/cop/style/send_with_literal_method_name.rb#94 + # source://rubocop/lib/rubocop/cop/style/send_with_literal_method_name.rb#94 def offense_range(node); end - # source://rubocop//lib/rubocop/cop/style/send_with_literal_method_name.rb#98 + # source://rubocop/lib/rubocop/cop/style/send_with_literal_method_name.rb#98 def removal_argument_range(first_argument, second_argument); end end -# source://rubocop//lib/rubocop/cop/style/send_with_literal_method_name.rb#60 +# source://rubocop/lib/rubocop/cop/style/send_with_literal_method_name.rb#60 RuboCop::Cop::Style::SendWithLiteralMethodName::METHOD_NAME_PATTERN = T.let(T.unsafe(nil), Regexp) -# source://rubocop//lib/rubocop/cop/style/send_with_literal_method_name.rb#57 +# source://rubocop/lib/rubocop/cop/style/send_with_literal_method_name.rb#57 RuboCop::Cop::Style::SendWithLiteralMethodName::MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/send_with_literal_method_name.rb#61 +# source://rubocop/lib/rubocop/cop/style/send_with_literal_method_name.rb#61 RuboCop::Cop::Style::SendWithLiteralMethodName::RESERVED_WORDS = T.let(T.unsafe(nil), Array) -# source://rubocop//lib/rubocop/cop/style/send_with_literal_method_name.rb#58 +# source://rubocop/lib/rubocop/cop/style/send_with_literal_method_name.rb#58 RuboCop::Cop::Style::SendWithLiteralMethodName::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) -# source://rubocop//lib/rubocop/cop/style/send_with_literal_method_name.rb#59 +# source://rubocop/lib/rubocop/cop/style/send_with_literal_method_name.rb#59 RuboCop::Cop::Style::SendWithLiteralMethodName::STATIC_METHOD_NAME_NODE_TYPES = T.let(T.unsafe(nil), Array) # Checks for uses of `fail` and `raise`. @@ -49502,61 +50141,61 @@ RuboCop::Cop::Style::SendWithLiteralMethodName::STATIC_METHOD_NAME_NODE_TYPES = # explicit_receiver.fail # explicit_receiver.raise # -# source://rubocop//lib/rubocop/cop/style/signal_exception.rb#107 +# source://rubocop/lib/rubocop/cop/style/signal_exception.rb#107 class RuboCop::Cop::Style::SignalException < ::RuboCop::Cop::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/signal_exception.rb#120 + # source://rubocop/lib/rubocop/cop/style/signal_exception.rb#120 def custom_fail_methods(param0); end - # source://rubocop//lib/rubocop/cop/style/signal_exception.rb#117 + # source://rubocop/lib/rubocop/cop/style/signal_exception.rb#117 def kernel_call?(param0 = T.unsafe(nil), param1); end - # source://rubocop//lib/rubocop/cop/style/signal_exception.rb#122 + # source://rubocop/lib/rubocop/cop/style/signal_exception.rb#122 def on_rescue(node); end - # source://rubocop//lib/rubocop/cop/style/signal_exception.rb#134 + # source://rubocop/lib/rubocop/cop/style/signal_exception.rb#133 def on_send(node); end private - # source://rubocop//lib/rubocop/cop/style/signal_exception.rb#206 + # source://rubocop/lib/rubocop/cop/style/signal_exception.rb#205 def allow(method_name, node); end - # source://rubocop//lib/rubocop/cop/style/signal_exception.rb#188 + # source://rubocop/lib/rubocop/cop/style/signal_exception.rb#187 def autocorrect(corrector, node); end - # source://rubocop//lib/rubocop/cop/style/signal_exception.rb#167 + # source://rubocop/lib/rubocop/cop/style/signal_exception.rb#166 def check_scope(method_name, node); end - # source://rubocop//lib/rubocop/cop/style/signal_exception.rb#180 + # source://rubocop/lib/rubocop/cop/style/signal_exception.rb#179 def check_send(method_name, node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/signal_exception.rb#200 + # source://rubocop/lib/rubocop/cop/style/signal_exception.rb#199 def command_or_kernel_call?(name, node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/signal_exception.rb#149 + # source://rubocop/lib/rubocop/cop/style/signal_exception.rb#148 def custom_fail_defined?; end - # source://rubocop//lib/rubocop/cop/style/signal_exception.rb#210 + # source://rubocop/lib/rubocop/cop/style/signal_exception.rb#209 def each_command_or_kernel_call(method_name, node); end - # source://rubocop//lib/rubocop/cop/style/signal_exception.rb#156 + # source://rubocop/lib/rubocop/cop/style/signal_exception.rb#155 def message(method_name); end end -# source://rubocop//lib/rubocop/cop/style/signal_exception.rb#111 +# source://rubocop/lib/rubocop/cop/style/signal_exception.rb#111 RuboCop::Cop::Style::SignalException::FAIL_MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/signal_exception.rb#112 +# source://rubocop/lib/rubocop/cop/style/signal_exception.rb#112 RuboCop::Cop::Style::SignalException::RAISE_MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/signal_exception.rb#114 +# source://rubocop/lib/rubocop/cop/style/signal_exception.rb#114 RuboCop::Cop::Style::SignalException::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Sometimes using `dig` method ends up with just a single @@ -49582,24 +50221,29 @@ RuboCop::Cop::Style::SignalException::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Ar # keys = %i[key1 key2] # { key1: { key2: 'value' } }.dig(*keys) # -# source://rubocop//lib/rubocop/cop/style/single_argument_dig.rb#34 +# source://rubocop/lib/rubocop/cop/style/single_argument_dig.rb#34 class RuboCop::Cop::Style::SingleArgumentDig < ::RuboCop::Cop::Base + include ::RuboCop::Cop::DigHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/single_argument_dig.rb#46 + # source://rubocop/lib/rubocop/cop/style/single_argument_dig.rb#42 def on_send(node); end - # source://rubocop//lib/rubocop/cop/style/single_argument_dig.rb#42 - def single_argument_dig?(param0 = T.unsafe(nil)); end + private + + # @return [Boolean] + # + # source://rubocop/lib/rubocop/cop/style/single_argument_dig.rb#66 + def ignore_dig_chain?(node); end end -# source://rubocop//lib/rubocop/cop/style/single_argument_dig.rb#39 +# source://rubocop/lib/rubocop/cop/style/single_argument_dig.rb#40 RuboCop::Cop::Style::SingleArgumentDig::IGNORED_ARGUMENT_TYPES = T.let(T.unsafe(nil), Array) -# source://rubocop//lib/rubocop/cop/style/single_argument_dig.rb#37 +# source://rubocop/lib/rubocop/cop/style/single_argument_dig.rb#38 RuboCop::Cop::Style::SingleArgumentDig::MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/single_argument_dig.rb#38 +# source://rubocop/lib/rubocop/cop/style/single_argument_dig.rb#39 RuboCop::Cop::Style::SingleArgumentDig::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Checks whether the block parameters of a single-line @@ -49628,57 +50272,62 @@ RuboCop::Cop::Style::SingleArgumentDig::RESTRICT_ON_SEND = T.let(T.unsafe(nil), # c + d # end # -# source://rubocop//lib/rubocop/cop/style/single_line_block_params.rb#31 +# source://rubocop/lib/rubocop/cop/style/single_line_block_params.rb#31 class RuboCop::Cop::Style::SingleLineBlockParams < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/single_line_block_params.rb#36 + # source://rubocop/lib/rubocop/cop/style/single_line_block_params.rb#36 def on_block(node); end private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/single_line_block_params.rb#105 + # source://rubocop/lib/rubocop/cop/style/single_line_block_params.rb#105 def args_match?(method_name, args); end - # source://rubocop//lib/rubocop/cop/style/single_line_block_params.rb#69 + # source://rubocop/lib/rubocop/cop/style/single_line_block_params.rb#69 def autocorrect(corrector, node, preferred_block_arguments, joined_block_arguments); end - # source://rubocop//lib/rubocop/cop/style/single_line_block_params.rb#57 + # source://rubocop/lib/rubocop/cop/style/single_line_block_params.rb#57 def build_preferred_arguments_map(node, preferred_arguments); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/single_line_block_params.rb#79 + # source://rubocop/lib/rubocop/cop/style/single_line_block_params.rb#79 def eligible_arguments?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/single_line_block_params.rb#83 + # source://rubocop/lib/rubocop/cop/style/single_line_block_params.rb#83 def eligible_method?(node); end - # source://rubocop//lib/rubocop/cop/style/single_line_block_params.rb#95 + # source://rubocop/lib/rubocop/cop/style/single_line_block_params.rb#95 def method_name(method); end - # source://rubocop//lib/rubocop/cop/style/single_line_block_params.rb#91 + # source://rubocop/lib/rubocop/cop/style/single_line_block_params.rb#91 def method_names; end - # source://rubocop//lib/rubocop/cop/style/single_line_block_params.rb#87 + # source://rubocop/lib/rubocop/cop/style/single_line_block_params.rb#87 def methods; end - # source://rubocop//lib/rubocop/cop/style/single_line_block_params.rb#99 + # source://rubocop/lib/rubocop/cop/style/single_line_block_params.rb#99 def target_args(method_name); end end -# source://rubocop//lib/rubocop/cop/style/single_line_block_params.rb#34 +# source://rubocop/lib/rubocop/cop/style/single_line_block_params.rb#34 RuboCop::Cop::Style::SingleLineBlockParams::MSG = T.let(T.unsafe(nil), String) # Checks for single-line `do`...`end` block. # # In practice a single line `do`...`end` is autocorrected when `EnforcedStyle: semantic` -# in `Style/BlockDelimiters`. The autocorrection maintains the `do` ... `end` syntax to -# preserve semantics and does not change it to `{`...`}` block. +# is configured for `Style/BlockDelimiters`. The autocorrection maintains the +# `do` ... `end` syntax to preserve semantics and does not change it to `{`...`}` block. +# +# NOTE: If `InspectBlocks` is set to `true` for `Layout/RedundantLineBreak`, blocks will +# be autocorrected to be on a single line if possible. This cop respects that configuration +# by not registering an offense if it would subsequently cause a +# `Layout/RedundantLineBreak` offense. # # @example # @@ -49696,26 +50345,29 @@ RuboCop::Cop::Style::SingleLineBlockParams::MSG = T.let(T.unsafe(nil), String) # # good # ->(arg) { bar(arg) } # -# source://rubocop//lib/rubocop/cop/style/single_line_do_end_block.rb#28 +# source://rubocop/lib/rubocop/cop/style/single_line_do_end_block.rb#33 class RuboCop::Cop::Style::SingleLineDoEndBlock < ::RuboCop::Cop::Base + include ::RuboCop::Cop::CheckSingleLineSuitability extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/single_line_do_end_block.rb#34 + # source://rubocop/lib/rubocop/cop/style/single_line_do_end_block.rb#40 def on_block(node); end - # source://rubocop//lib/rubocop/cop/style/single_line_do_end_block.rb#34 + # source://rubocop/lib/rubocop/cop/style/single_line_do_end_block.rb#40 def on_numblock(node); end private - # source://rubocop//lib/rubocop/cop/style/single_line_do_end_block.rb#55 + # source://rubocop/lib/rubocop/cop/style/single_line_do_end_block.rb#62 def do_line(node); end - # source://rubocop//lib/rubocop/cop/style/single_line_do_end_block.rb#63 - def x(corrector, node); end + # @return [Boolean] + # + # source://rubocop/lib/rubocop/cop/style/single_line_do_end_block.rb#70 + def single_line_blocks_preferred?; end end -# source://rubocop//lib/rubocop/cop/style/single_line_do_end_block.rb#31 +# source://rubocop/lib/rubocop/cop/style/single_line_do_end_block.rb#37 RuboCop::Cop::Style::SingleLineDoEndBlock::MSG = T.let(T.unsafe(nil), String) # Checks for single-line method definitions that contain a body. @@ -49744,65 +50396,65 @@ RuboCop::Cop::Style::SingleLineDoEndBlock::MSG = T.let(T.unsafe(nil), String) # # bad # def no_op; end # -# source://rubocop//lib/rubocop/cop/style/single_line_methods.rb#34 +# source://rubocop/lib/rubocop/cop/style/single_line_methods.rb#34 class RuboCop::Cop::Style::SingleLineMethods < ::RuboCop::Cop::Base include ::RuboCop::Cop::Alignment extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/single_line_methods.rb#41 + # source://rubocop/lib/rubocop/cop/style/single_line_methods.rb#41 def on_def(node); end - # source://rubocop//lib/rubocop/cop/style/single_line_methods.rb#41 + # source://rubocop/lib/rubocop/cop/style/single_line_methods.rb#41 def on_defs(node); end private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/single_line_methods.rb#60 + # source://rubocop/lib/rubocop/cop/style/single_line_methods.rb#60 def allow_empty?; end - # source://rubocop//lib/rubocop/cop/style/single_line_methods.rb#52 + # source://rubocop/lib/rubocop/cop/style/single_line_methods.rb#52 def autocorrect(corrector, node); end - # source://rubocop//lib/rubocop/cop/style/single_line_methods.rb#97 + # source://rubocop/lib/rubocop/cop/style/single_line_methods.rb#97 def break_line_before(corrector, node, range, indent_steps: T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/style/single_line_methods.rb#88 + # source://rubocop/lib/rubocop/cop/style/single_line_methods.rb#88 def correct_to_endless(corrector, node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/single_line_methods.rb#64 + # source://rubocop/lib/rubocop/cop/style/single_line_methods.rb#64 def correct_to_endless?(body_node); end - # source://rubocop//lib/rubocop/cop/style/single_line_methods.rb#74 + # source://rubocop/lib/rubocop/cop/style/single_line_methods.rb#74 def correct_to_multiline(corrector, node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/single_line_methods.rb#136 + # source://rubocop/lib/rubocop/cop/style/single_line_methods.rb#136 def disallow_endless_method_style?; end - # source://rubocop//lib/rubocop/cop/style/single_line_methods.rb#104 + # source://rubocop/lib/rubocop/cop/style/single_line_methods.rb#104 def each_part(body); end - # source://rubocop//lib/rubocop/cop/style/single_line_methods.rb#121 + # source://rubocop/lib/rubocop/cop/style/single_line_methods.rb#121 def method_body_source(method_body); end - # source://rubocop//lib/rubocop/cop/style/single_line_methods.rb#114 + # source://rubocop/lib/rubocop/cop/style/single_line_methods.rb#114 def move_comment(node, corrector); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/single_line_methods.rb#132 + # source://rubocop/lib/rubocop/cop/style/single_line_methods.rb#132 def require_parentheses?(method_body); end end -# source://rubocop//lib/rubocop/cop/style/single_line_methods.rb#38 +# source://rubocop/lib/rubocop/cop/style/single_line_methods.rb#38 RuboCop::Cop::Style::SingleLineMethods::MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/single_line_methods.rb#39 +# source://rubocop/lib/rubocop/cop/style/single_line_methods.rb#39 RuboCop::Cop::Style::SingleLineMethods::NOT_SUPPORTED_ENDLESS_METHOD_BODY_TYPES = T.let(T.unsafe(nil), Array) # Checks that arrays are not sliced with the redundant `ary[0..-1]`, replacing it with `ary`, @@ -49832,42 +50484,42 @@ RuboCop::Cop::Style::SingleLineMethods::NOT_SUPPORTED_ENDLESS_METHOD_BODY_TYPES # items[..42] # Ruby 2.7+ # items[0..42] # Ruby 2.7+ # -# source://rubocop//lib/rubocop/cop/style/slicing_with_range.rb#46 +# source://rubocop/lib/rubocop/cop/style/slicing_with_range.rb#46 class RuboCop::Cop::Style::SlicingWithRange < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector extend ::RuboCop::Cop::TargetRubyVersion - # source://rubocop//lib/rubocop/cop/style/slicing_with_range.rb#77 + # source://rubocop/lib/rubocop/cop/style/slicing_with_range.rb#77 def on_send(node); end - # source://rubocop//lib/rubocop/cop/style/slicing_with_range.rb#73 + # source://rubocop/lib/rubocop/cop/style/slicing_with_range.rb#73 def range_from_zero?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/style/slicing_with_range.rb#57 + # source://rubocop/lib/rubocop/cop/style/slicing_with_range.rb#57 def range_from_zero_till_minus_one?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/style/slicing_with_range.rb#65 + # source://rubocop/lib/rubocop/cop/style/slicing_with_range.rb#65 def range_till_minus_one?(param0 = T.unsafe(nil)); end private - # source://rubocop//lib/rubocop/cop/style/slicing_with_range.rb#111 + # source://rubocop/lib/rubocop/cop/style/slicing_with_range.rb#111 def beginless(range_node); end - # source://rubocop//lib/rubocop/cop/style/slicing_with_range.rb#107 + # source://rubocop/lib/rubocop/cop/style/slicing_with_range.rb#107 def endless(range_node); end - # source://rubocop//lib/rubocop/cop/style/slicing_with_range.rb#93 + # source://rubocop/lib/rubocop/cop/style/slicing_with_range.rb#93 def offense_message_with_removal_range(range_node, selector); end end -# source://rubocop//lib/rubocop/cop/style/slicing_with_range.rb#52 +# source://rubocop/lib/rubocop/cop/style/slicing_with_range.rb#52 RuboCop::Cop::Style::SlicingWithRange::MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/slicing_with_range.rb#53 +# source://rubocop/lib/rubocop/cop/style/slicing_with_range.rb#53 RuboCop::Cop::Style::SlicingWithRange::MSG_USELESS_RANGE = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/slicing_with_range.rb#54 +# source://rubocop/lib/rubocop/cop/style/slicing_with_range.rb#54 RuboCop::Cop::Style::SlicingWithRange::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # If the branch of a conditional consists solely of a conditional node, @@ -49912,101 +50564,101 @@ RuboCop::Cop::Style::SlicingWithRange::RESTRICT_ON_SEND = T.let(T.unsafe(nil), A # do_something # end if condition_a # -# source://rubocop//lib/rubocop/cop/style/sole_nested_conditional.rb#49 +# source://rubocop/lib/rubocop/cop/style/sole_nested_conditional.rb#49 class RuboCop::Cop::Style::SoleNestedConditional < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/sole_nested_conditional.rb#59 + # source://rubocop/lib/rubocop/cop/style/sole_nested_conditional.rb#59 def on_if(node); end private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/sole_nested_conditional.rb#261 + # source://rubocop/lib/rubocop/cop/style/sole_nested_conditional.rb#260 def allow_modifier?; end - # source://rubocop//lib/rubocop/cop/style/sole_nested_conditional.rb#233 + # source://rubocop/lib/rubocop/cop/style/sole_nested_conditional.rb#233 def arguments_range(node); end - # source://rubocop//lib/rubocop/cop/style/sole_nested_conditional.rb#81 + # source://rubocop/lib/rubocop/cop/style/sole_nested_conditional.rb#81 def assigned_variables(condition); end - # source://rubocop//lib/rubocop/cop/style/sole_nested_conditional.rb#98 + # source://rubocop/lib/rubocop/cop/style/sole_nested_conditional.rb#98 def autocorrect(corrector, node, if_branch); end - # source://rubocop//lib/rubocop/cop/style/sole_nested_conditional.rb#110 + # source://rubocop/lib/rubocop/cop/style/sole_nested_conditional.rb#110 def autocorrect_outer_condition_basic(corrector, node, if_branch); end - # source://rubocop//lib/rubocop/cop/style/sole_nested_conditional.rb#125 + # source://rubocop/lib/rubocop/cop/style/sole_nested_conditional.rb#125 def autocorrect_outer_condition_modify_form(corrector, node, if_branch); end - # source://rubocop//lib/rubocop/cop/style/sole_nested_conditional.rb#145 + # source://rubocop/lib/rubocop/cop/style/sole_nested_conditional.rb#145 def correct_for_basic_condition_style(corrector, node, if_branch, and_operator); end - # source://rubocop//lib/rubocop/cop/style/sole_nested_conditional.rb#181 + # source://rubocop/lib/rubocop/cop/style/sole_nested_conditional.rb#181 def correct_for_comment(corrector, node, if_branch); end - # source://rubocop//lib/rubocop/cop/style/sole_nested_conditional.rb#136 + # source://rubocop/lib/rubocop/cop/style/sole_nested_conditional.rb#136 def correct_for_guard_condition_style(corrector, outer_condition, if_branch, and_operator); end - # source://rubocop//lib/rubocop/cop/style/sole_nested_conditional.rb#171 + # source://rubocop/lib/rubocop/cop/style/sole_nested_conditional.rb#171 def correct_for_outer_condition_modify_form_style(corrector, node, if_branch); end - # source://rubocop//lib/rubocop/cop/style/sole_nested_conditional.rb#130 + # source://rubocop/lib/rubocop/cop/style/sole_nested_conditional.rb#130 def correct_from_unless_to_if(corrector, node, is_modify_form: T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/style/sole_nested_conditional.rb#190 + # source://rubocop/lib/rubocop/cop/style/sole_nested_conditional.rb#190 def correct_outer_condition(corrector, condition); end - # source://rubocop//lib/rubocop/cop/style/sole_nested_conditional.rb#203 + # source://rubocop/lib/rubocop/cop/style/sole_nested_conditional.rb#203 def insert_bang(corrector, node, is_modify_form); end - # source://rubocop//lib/rubocop/cop/style/sole_nested_conditional.rb#216 + # source://rubocop/lib/rubocop/cop/style/sole_nested_conditional.rb#216 def insert_bang_for_and(corrector, node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/sole_nested_conditional.rb#89 + # source://rubocop/lib/rubocop/cop/style/sole_nested_conditional.rb#89 def offending_branch?(node, branch); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/sole_nested_conditional.rb#265 + # source://rubocop/lib/rubocop/cop/style/sole_nested_conditional.rb#264 def outer_condition_modify_form?(node, if_branch); end - # source://rubocop//lib/rubocop/cop/style/sole_nested_conditional.rb#254 + # source://rubocop/lib/rubocop/cop/style/sole_nested_conditional.rb#253 def parenthesized_method_arguments(node); end - # source://rubocop//lib/rubocop/cop/style/sole_nested_conditional.rb#244 + # source://rubocop/lib/rubocop/cop/style/sole_nested_conditional.rb#243 def replace_condition(condition); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/sole_nested_conditional.rb#228 + # source://rubocop/lib/rubocop/cop/style/sole_nested_conditional.rb#228 def require_parentheses?(condition); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/sole_nested_conditional.rb#74 + # source://rubocop/lib/rubocop/cop/style/sole_nested_conditional.rb#74 def use_variable_assignment_in_condition?(condition, if_branch); end - # source://rubocop//lib/rubocop/cop/style/sole_nested_conditional.rb#155 + # source://rubocop/lib/rubocop/cop/style/sole_nested_conditional.rb#155 def wrap_condition(corrector, condition); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/sole_nested_conditional.rb#239 + # source://rubocop/lib/rubocop/cop/style/sole_nested_conditional.rb#239 def wrap_condition?(node); end class << self - # source://rubocop//lib/rubocop/cop/style/sole_nested_conditional.rb#55 + # source://rubocop/lib/rubocop/cop/style/sole_nested_conditional.rb#55 def autocorrect_incompatible_with; end end end -# source://rubocop//lib/rubocop/cop/style/sole_nested_conditional.rb#53 +# source://rubocop/lib/rubocop/cop/style/sole_nested_conditional.rb#53 RuboCop::Cop::Style::SoleNestedConditional::MSG = T.let(T.unsafe(nil), String) # Looks for uses of Perl-style global variables. @@ -50083,88 +50735,88 @@ RuboCop::Cop::Style::SoleNestedConditional::MSG = T.let(T.unsafe(nil), String) # puts $= # puts $* # -# source://rubocop//lib/rubocop/cop/style/special_global_vars.rb#86 +# source://rubocop/lib/rubocop/cop/style/special_global_vars.rb#86 class RuboCop::Cop::Style::SpecialGlobalVars < ::RuboCop::Cop::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle include ::RuboCop::Cop::RangeHelp include ::RuboCop::Cop::RequireLibrary extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/special_global_vars.rb#175 + # source://rubocop/lib/rubocop/cop/style/special_global_vars.rb#175 def autocorrect(corrector, node, global_var); end - # source://rubocop//lib/rubocop/cop/style/special_global_vars.rb#167 + # source://rubocop/lib/rubocop/cop/style/special_global_vars.rb#167 def message(global_var); end - # source://rubocop//lib/rubocop/cop/style/special_global_vars.rb#151 + # source://rubocop/lib/rubocop/cop/style/special_global_vars.rb#151 def on_gvar(node); end - # source://rubocop//lib/rubocop/cop/style/special_global_vars.rb#146 + # source://rubocop/lib/rubocop/cop/style/special_global_vars.rb#146 def on_new_investigation; end private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/special_global_vars.rb#246 + # source://rubocop/lib/rubocop/cop/style/special_global_vars.rb#246 def add_require_english?; end - # source://rubocop//lib/rubocop/cop/style/special_global_vars.rb#240 + # source://rubocop/lib/rubocop/cop/style/special_global_vars.rb#240 def english_name_replacement(preferred_name, node); end - # source://rubocop//lib/rubocop/cop/style/special_global_vars.rb#189 + # source://rubocop/lib/rubocop/cop/style/special_global_vars.rb#189 def format_english_message(global_var); end # For now, we assume that lists are 2 items or less. Easy grammar! # - # source://rubocop//lib/rubocop/cop/style/special_global_vars.rb#211 + # source://rubocop/lib/rubocop/cop/style/special_global_vars.rb#211 def format_list(items); end - # source://rubocop//lib/rubocop/cop/style/special_global_vars.rb#197 + # source://rubocop/lib/rubocop/cop/style/special_global_vars.rb#197 def format_message(english, regular, global); end - # source://rubocop//lib/rubocop/cop/style/special_global_vars.rb#234 + # source://rubocop/lib/rubocop/cop/style/special_global_vars.rb#234 def matching_styles(global); end - # source://rubocop//lib/rubocop/cop/style/special_global_vars.rb#226 + # source://rubocop/lib/rubocop/cop/style/special_global_vars.rb#226 def preferred_names(global); end - # source://rubocop//lib/rubocop/cop/style/special_global_vars.rb#215 + # source://rubocop/lib/rubocop/cop/style/special_global_vars.rb#215 def replacement(node, global_var); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/special_global_vars.rb#250 + # source://rubocop/lib/rubocop/cop/style/special_global_vars.rb#250 def should_require_english?(global_var); end end -# source://rubocop//lib/rubocop/cop/style/special_global_vars.rb#127 +# source://rubocop/lib/rubocop/cop/style/special_global_vars.rb#127 RuboCop::Cop::Style::SpecialGlobalVars::BUILTIN_VARS = T.let(T.unsafe(nil), Hash) -# source://rubocop//lib/rubocop/cop/style/special_global_vars.rb#99 +# source://rubocop/lib/rubocop/cop/style/special_global_vars.rb#99 RuboCop::Cop::Style::SpecialGlobalVars::ENGLISH_VARS = T.let(T.unsafe(nil), Hash) -# source://rubocop//lib/rubocop/cop/style/special_global_vars.rb#144 +# source://rubocop/lib/rubocop/cop/style/special_global_vars.rb#144 RuboCop::Cop::Style::SpecialGlobalVars::LIBRARY_NAME = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/special_global_vars.rb#92 +# source://rubocop/lib/rubocop/cop/style/special_global_vars.rb#92 RuboCop::Cop::Style::SpecialGlobalVars::MSG_BOTH = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/special_global_vars.rb#95 +# source://rubocop/lib/rubocop/cop/style/special_global_vars.rb#95 RuboCop::Cop::Style::SpecialGlobalVars::MSG_ENGLISH = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/special_global_vars.rb#97 +# source://rubocop/lib/rubocop/cop/style/special_global_vars.rb#97 RuboCop::Cop::Style::SpecialGlobalVars::MSG_REGULAR = T.let(T.unsafe(nil), String) # Anything *not* in this set is provided by the English library. # -# source://rubocop//lib/rubocop/cop/style/special_global_vars.rb#121 +# source://rubocop/lib/rubocop/cop/style/special_global_vars.rb#121 RuboCop::Cop::Style::SpecialGlobalVars::NON_ENGLISH_VARS = T.let(T.unsafe(nil), Set) -# source://rubocop//lib/rubocop/cop/style/special_global_vars.rb#123 +# source://rubocop/lib/rubocop/cop/style/special_global_vars.rb#123 RuboCop::Cop::Style::SpecialGlobalVars::PERL_VARS = T.let(T.unsafe(nil), Hash) -# source://rubocop//lib/rubocop/cop/style/special_global_vars.rb#138 +# source://rubocop/lib/rubocop/cop/style/special_global_vars.rb#138 RuboCop::Cop::Style::SpecialGlobalVars::STYLE_VARS_MAP = T.let(T.unsafe(nil), Hash) # Check for parentheses around stabby lambda arguments. @@ -50183,50 +50835,50 @@ RuboCop::Cop::Style::SpecialGlobalVars::STYLE_VARS_MAP = T.let(T.unsafe(nil), Ha # # good # ->a,b,c { a + b + c} # -# source://rubocop//lib/rubocop/cop/style/stabby_lambda_parentheses.rb#22 +# source://rubocop/lib/rubocop/cop/style/stabby_lambda_parentheses.rb#22 class RuboCop::Cop::Style::StabbyLambdaParentheses < ::RuboCop::Cop::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/stabby_lambda_parentheses.rb#28 + # source://rubocop/lib/rubocop/cop/style/stabby_lambda_parentheses.rb#28 def on_send(node); end private - # source://rubocop//lib/rubocop/cop/style/stabby_lambda_parentheses.rb#54 + # source://rubocop/lib/rubocop/cop/style/stabby_lambda_parentheses.rb#54 def message(_node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/stabby_lambda_parentheses.rb#46 + # source://rubocop/lib/rubocop/cop/style/stabby_lambda_parentheses.rb#46 def missing_parentheses?(node); end - # source://rubocop//lib/rubocop/cop/style/stabby_lambda_parentheses.rb#58 + # source://rubocop/lib/rubocop/cop/style/stabby_lambda_parentheses.rb#58 def missing_parentheses_corrector(corrector, node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/stabby_lambda_parentheses.rb#73 + # source://rubocop/lib/rubocop/cop/style/stabby_lambda_parentheses.rb#73 def parentheses?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/stabby_lambda_parentheses.rb#50 + # source://rubocop/lib/rubocop/cop/style/stabby_lambda_parentheses.rb#50 def redundant_parentheses?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/stabby_lambda_parentheses.rb#69 + # source://rubocop/lib/rubocop/cop/style/stabby_lambda_parentheses.rb#69 def stabby_lambda_with_args?(node); end - # source://rubocop//lib/rubocop/cop/style/stabby_lambda_parentheses.rb#62 + # source://rubocop/lib/rubocop/cop/style/stabby_lambda_parentheses.rb#62 def unwanted_parentheses_corrector(corrector, node); end end -# source://rubocop//lib/rubocop/cop/style/stabby_lambda_parentheses.rb#27 +# source://rubocop/lib/rubocop/cop/style/stabby_lambda_parentheses.rb#27 RuboCop::Cop::Style::StabbyLambdaParentheses::MSG_NO_REQUIRE = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/stabby_lambda_parentheses.rb#26 +# source://rubocop/lib/rubocop/cop/style/stabby_lambda_parentheses.rb#26 RuboCop::Cop::Style::StabbyLambdaParentheses::MSG_REQUIRE = T.let(T.unsafe(nil), String) # Checks for places where classes with only class methods can be @@ -50264,46 +50916,46 @@ RuboCop::Cop::Style::StabbyLambdaParentheses::MSG_REQUIRE = T.let(T.unsafe(nil), # def self.class_method; end # end # -# source://rubocop//lib/rubocop/cop/style/static_class.rb#46 +# source://rubocop/lib/rubocop/cop/style/static_class.rb#46 class RuboCop::Cop::Style::StaticClass < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp include ::RuboCop::Cop::VisibilityHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/static_class.rb#53 + # source://rubocop/lib/rubocop/cop/style/static_class.rb#53 def on_class(class_node); end private - # source://rubocop//lib/rubocop/cop/style/static_class.rb#64 + # source://rubocop/lib/rubocop/cop/style/static_class.rb#64 def autocorrect(corrector, class_node); end - # source://rubocop//lib/rubocop/cop/style/static_class.rb#77 + # source://rubocop/lib/rubocop/cop/style/static_class.rb#77 def autocorrect_def(corrector, node); end - # source://rubocop//lib/rubocop/cop/style/static_class.rb#83 + # source://rubocop/lib/rubocop/cop/style/static_class.rb#83 def autocorrect_sclass(corrector, node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/static_class.rb#90 + # source://rubocop/lib/rubocop/cop/style/static_class.rb#90 def class_convertible_to_module?(class_node); end - # source://rubocop//lib/rubocop/cop/style/static_class.rb#114 + # source://rubocop/lib/rubocop/cop/style/static_class.rb#114 def class_elements(class_node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/static_class.rb#102 + # source://rubocop/lib/rubocop/cop/style/static_class.rb#102 def extend_call?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/static_class.rb#106 + # source://rubocop/lib/rubocop/cop/style/static_class.rb#106 def sclass_convertible_to_module?(node); end end -# source://rubocop//lib/rubocop/cop/style/static_class.rb#51 +# source://rubocop/lib/rubocop/cop/style/static_class.rb#51 RuboCop::Cop::Style::StaticClass::MSG = T.let(T.unsafe(nil), String) # Identifies places where `$stderr.puts` can be replaced by @@ -50317,35 +50969,35 @@ RuboCop::Cop::Style::StaticClass::MSG = T.let(T.unsafe(nil), String) # # good # warn('hello') # -# source://rubocop//lib/rubocop/cop/style/stderr_puts.rb#17 +# source://rubocop/lib/rubocop/cop/style/stderr_puts.rb#17 class RuboCop::Cop::Style::StderrPuts < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/stderr_puts.rb#32 + # source://rubocop/lib/rubocop/cop/style/stderr_puts.rb#32 def on_send(node); end - # source://rubocop//lib/rubocop/cop/style/stderr_puts.rb#25 + # source://rubocop/lib/rubocop/cop/style/stderr_puts.rb#25 def stderr_puts?(param0 = T.unsafe(nil)); end private - # source://rubocop//lib/rubocop/cop/style/stderr_puts.rb#43 + # source://rubocop/lib/rubocop/cop/style/stderr_puts.rb#43 def message(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/stderr_puts.rb#47 + # source://rubocop/lib/rubocop/cop/style/stderr_puts.rb#47 def stderr_gvar?(sym); end - # source://rubocop//lib/rubocop/cop/style/stderr_puts.rb#51 + # source://rubocop/lib/rubocop/cop/style/stderr_puts.rb#51 def stderr_puts_range(send); end end -# source://rubocop//lib/rubocop/cop/style/stderr_puts.rb#21 +# source://rubocop/lib/rubocop/cop/style/stderr_puts.rb#21 RuboCop::Cop::Style::StderrPuts::MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/stderr_puts.rb#22 +# source://rubocop/lib/rubocop/cop/style/stderr_puts.rb#22 RuboCop::Cop::Style::StderrPuts::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Checks for uses of `String#split` with empty string or regexp literal argument. @@ -50358,25 +51010,25 @@ RuboCop::Cop::Style::StderrPuts::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # # good # string.chars # -# source://rubocop//lib/rubocop/cop/style/string_chars.rb#21 +# source://rubocop/lib/rubocop/cop/style/string_chars.rb#21 class RuboCop::Cop::Style::StringChars < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/string_chars.rb#29 + # source://rubocop/lib/rubocop/cop/style/string_chars.rb#29 def on_csend(node); end - # source://rubocop//lib/rubocop/cop/style/string_chars.rb#29 + # source://rubocop/lib/rubocop/cop/style/string_chars.rb#29 def on_send(node); end end -# source://rubocop//lib/rubocop/cop/style/string_chars.rb#27 +# source://rubocop/lib/rubocop/cop/style/string_chars.rb#27 RuboCop::Cop::Style::StringChars::BAD_ARGUMENTS = T.let(T.unsafe(nil), Array) -# source://rubocop//lib/rubocop/cop/style/string_chars.rb#25 +# source://rubocop/lib/rubocop/cop/style/string_chars.rb#25 RuboCop::Cop::Style::StringChars::MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/string_chars.rb#26 +# source://rubocop/lib/rubocop/cop/style/string_chars.rb#26 RuboCop::Cop::Style::StringChars::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Checks for places where string concatenation @@ -50421,75 +51073,78 @@ RuboCop::Cop::Style::StringChars::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # user.name + '!!' # Pathname.new('/') + 'test' # -# source://rubocop//lib/rubocop/cop/style/string_concatenation.rb#53 +# source://rubocop/lib/rubocop/cop/style/string_concatenation.rb#53 class RuboCop::Cop::Style::StringConcatenation < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/string_concatenation.rb#69 + # source://rubocop/lib/rubocop/cop/style/string_concatenation.rb#68 def on_new_investigation; end - # source://rubocop//lib/rubocop/cop/style/string_concatenation.rb#73 + # source://rubocop/lib/rubocop/cop/style/string_concatenation.rb#72 def on_send(node); end - # source://rubocop//lib/rubocop/cop/style/string_concatenation.rb#62 + # source://rubocop/lib/rubocop/cop/style/string_concatenation.rb#61 def string_concatenation?(param0 = T.unsafe(nil)); end private - # source://rubocop//lib/rubocop/cop/style/string_concatenation.rb#116 + # source://rubocop/lib/rubocop/cop/style/string_concatenation.rb#159 + def adjust_str(node); end + + # source://rubocop/lib/rubocop/cop/style/string_concatenation.rb#115 def collect_parts(node, parts = T.unsafe(nil)); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/string_concatenation.rb#141 + # source://rubocop/lib/rubocop/cop/style/string_concatenation.rb#140 def corrected_ancestor?(node); end - # source://rubocop//lib/rubocop/cop/style/string_concatenation.rb#108 + # source://rubocop/lib/rubocop/cop/style/string_concatenation.rb#107 def find_topmost_plus_node(node); end - # source://rubocop//lib/rubocop/cop/style/string_concatenation.rb#162 + # source://rubocop/lib/rubocop/cop/style/string_concatenation.rb#163 def handle_quotes(parts); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/string_concatenation.rb#135 + # source://rubocop/lib/rubocop/cop/style/string_concatenation.rb#134 def heredoc?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/string_concatenation.rb#98 + # source://rubocop/lib/rubocop/cop/style/string_concatenation.rb#97 def line_end_concatenation?(node); end - # source://rubocop//lib/rubocop/cop/style/string_concatenation.rb#172 + # source://rubocop/lib/rubocop/cop/style/string_concatenation.rb#173 def mode; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/string_concatenation.rb#127 + # source://rubocop/lib/rubocop/cop/style/string_concatenation.rb#126 def plus_node?(node); end - # source://rubocop//lib/rubocop/cop/style/string_concatenation.rb#86 + # source://rubocop/lib/rubocop/cop/style/string_concatenation.rb#85 def register_offense(topmost_plus_node, parts); end - # source://rubocop//lib/rubocop/cop/style/string_concatenation.rb#145 + # source://rubocop/lib/rubocop/cop/style/string_concatenation.rb#144 def replacement(parts); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/string_concatenation.rb#168 + # source://rubocop/lib/rubocop/cop/style/string_concatenation.rb#169 def single_quoted?(str_node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/string_concatenation.rb#131 + # source://rubocop/lib/rubocop/cop/style/string_concatenation.rb#130 def uncorrectable?(part); end end -# source://rubocop//lib/rubocop/cop/style/string_concatenation.rb#58 +# source://rubocop/lib/rubocop/cop/style/string_concatenation.rb#57 RuboCop::Cop::Style::StringConcatenation::MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/string_concatenation.rb#59 +# source://rubocop/lib/rubocop/cop/style/string_concatenation.rb#58 RuboCop::Cop::Style::StringConcatenation::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Checks for the use of strings as keys in hashes. The use of @@ -50502,21 +51157,21 @@ RuboCop::Cop::Style::StringConcatenation::RESTRICT_ON_SEND = T.let(T.unsafe(nil) # # good # { one: 1, two: 2, three: 3 } # -# source://rubocop//lib/rubocop/cop/style/string_hash_keys.rb#19 +# source://rubocop/lib/rubocop/cop/style/string_hash_keys.rb#19 class RuboCop::Cop::Style::StringHashKeys < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/string_hash_keys.rb#42 + # source://rubocop/lib/rubocop/cop/style/string_hash_keys.rb#42 def on_pair(node); end - # source://rubocop//lib/rubocop/cop/style/string_hash_keys.rb#30 + # source://rubocop/lib/rubocop/cop/style/string_hash_keys.rb#30 def receive_environments_method?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/style/string_hash_keys.rb#25 + # source://rubocop/lib/rubocop/cop/style/string_hash_keys.rb#25 def string_hash_key?(param0 = T.unsafe(nil)); end end -# source://rubocop//lib/rubocop/cop/style/string_hash_keys.rb#22 +# source://rubocop/lib/rubocop/cop/style/string_hash_keys.rb#22 RuboCop::Cop::Style::StringHashKeys::MSG = T.let(T.unsafe(nil), String) # Checks if uses of quotes match the configured preference. @@ -50542,65 +51197,65 @@ RuboCop::Cop::Style::StringHashKeys::MSG = T.let(T.unsafe(nil), String) # "No special chars or interpolation" # "Every string in #{project} uses double_quotes" # -# source://rubocop//lib/rubocop/cop/style/string_literals.rb#29 +# source://rubocop/lib/rubocop/cop/style/string_literals.rb#29 class RuboCop::Cop::Style::StringLiterals < ::RuboCop::Cop::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle include ::RuboCop::Cop::StringLiteralsHelp include ::RuboCop::Cop::StringHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/string_literals.rb#37 + # source://rubocop/lib/rubocop/cop/style/string_literals.rb#37 def on_dstr(node); end private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/string_literals.rb#123 + # source://rubocop/lib/rubocop/cop/style/string_literals.rb#123 def accept_child_double_quotes?(nodes); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/string_literals.rb#71 + # source://rubocop/lib/rubocop/cop/style/string_literals.rb#71 def all_string_literals?(nodes); end - # source://rubocop//lib/rubocop/cop/style/string_literals.rb#61 + # source://rubocop/lib/rubocop/cop/style/string_literals.rb#61 def autocorrect(corrector, node); end - # source://rubocop//lib/rubocop/cop/style/string_literals.rb#105 + # source://rubocop/lib/rubocop/cop/style/string_literals.rb#105 def check_multiline_quote_style(node, quote); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/string_literals.rb#101 + # source://rubocop/lib/rubocop/cop/style/string_literals.rb#101 def consistent_multiline?; end - # source://rubocop//lib/rubocop/cop/style/string_literals.rb#75 + # source://rubocop/lib/rubocop/cop/style/string_literals.rb#75 def detect_quote_styles(node); end - # source://rubocop//lib/rubocop/cop/style/string_literals.rb#87 + # source://rubocop/lib/rubocop/cop/style/string_literals.rb#87 def message(_node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/string_literals.rb#97 + # source://rubocop/lib/rubocop/cop/style/string_literals.rb#97 def offense?(node); end - # source://rubocop//lib/rubocop/cop/style/string_literals.rb#65 + # source://rubocop/lib/rubocop/cop/style/string_literals.rb#65 def register_offense(node, message: T.unsafe(nil)); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/string_literals.rb#119 + # source://rubocop/lib/rubocop/cop/style/string_literals.rb#119 def unexpected_double_quotes?(quote); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/string_literals.rb#115 + # source://rubocop/lib/rubocop/cop/style/string_literals.rb#115 def unexpected_single_quotes?(quote); end end -# source://rubocop//lib/rubocop/cop/style/string_literals.rb#35 +# source://rubocop/lib/rubocop/cop/style/string_literals.rb#35 RuboCop::Cop::Style::StringLiterals::MSG_INCONSISTENT = T.let(T.unsafe(nil), String) # Checks that quotes inside string, symbol, and regexp interpolations @@ -50639,31 +51294,31 @@ RuboCop::Cop::Style::StringLiterals::MSG_INCONSISTENT = T.let(T.unsafe(nil), Str # TEXT # regexp = /Tests #{success ? "PASS" : "FAIL"}/ # -# source://rubocop//lib/rubocop/cop/style/string_literals_in_interpolation.rb#42 +# source://rubocop/lib/rubocop/cop/style/string_literals_in_interpolation.rb#42 class RuboCop::Cop::Style::StringLiteralsInInterpolation < ::RuboCop::Cop::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle include ::RuboCop::Cop::StringLiteralsHelp include ::RuboCop::Cop::StringHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/string_literals_in_interpolation.rb#48 + # source://rubocop/lib/rubocop/cop/style/string_literals_in_interpolation.rb#48 def autocorrect(corrector, node); end # Cop classes that include the StringHelp module usually ignore regexp # nodes. Not so for this cop, which is why we override the on_regexp # definition with an empty one. # - # source://rubocop//lib/rubocop/cop/style/string_literals_in_interpolation.rb#55 + # source://rubocop/lib/rubocop/cop/style/string_literals_in_interpolation.rb#55 def on_regexp(node); end private - # source://rubocop//lib/rubocop/cop/style/string_literals_in_interpolation.rb#59 + # source://rubocop/lib/rubocop/cop/style/string_literals_in_interpolation.rb#59 def message(_node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/string_literals_in_interpolation.rb#66 + # source://rubocop/lib/rubocop/cop/style/string_literals_in_interpolation.rb#66 def offense?(node); end end @@ -50679,19 +51334,19 @@ end # 'name'.to_sym # 'var'.preferred_method # -# source://rubocop//lib/rubocop/cop/style/string_methods.rb#17 +# source://rubocop/lib/rubocop/cop/style/string_methods.rb#17 class RuboCop::Cop::Style::StringMethods < ::RuboCop::Cop::Base include ::RuboCop::Cop::MethodPreference extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/string_methods.rb#23 + # source://rubocop/lib/rubocop/cop/style/string_methods.rb#23 def on_csend(node); end - # source://rubocop//lib/rubocop/cop/style/string_methods.rb#23 + # source://rubocop/lib/rubocop/cop/style/string_methods.rb#23 def on_send(node); end end -# source://rubocop//lib/rubocop/cop/style/string_methods.rb#21 +# source://rubocop/lib/rubocop/cop/style/string_methods.rb#21 RuboCop::Cop::Style::StringMethods::MSG = T.let(T.unsafe(nil), String) # Identifies places where `lstrip.rstrip` can be replaced by @@ -50705,25 +51360,25 @@ RuboCop::Cop::Style::StringMethods::MSG = T.let(T.unsafe(nil), String) # # good # 'abc'.strip # -# source://rubocop//lib/rubocop/cop/style/strip.rb#16 +# source://rubocop/lib/rubocop/cop/style/strip.rb#16 class RuboCop::Cop::Style::Strip < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/strip.rb#24 + # source://rubocop/lib/rubocop/cop/style/strip.rb#24 def lstrip_rstrip(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/style/strip.rb#31 + # source://rubocop/lib/rubocop/cop/style/strip.rb#31 def on_csend(node); end - # source://rubocop//lib/rubocop/cop/style/strip.rb#31 + # source://rubocop/lib/rubocop/cop/style/strip.rb#31 def on_send(node); end end -# source://rubocop//lib/rubocop/cop/style/strip.rb#20 +# source://rubocop/lib/rubocop/cop/style/strip.rb#20 RuboCop::Cop::Style::Strip::MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/strip.rb#21 +# source://rubocop/lib/rubocop/cop/style/strip.rb#21 RuboCop::Cop::Style::Strip::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Checks for inheritance from Struct.new. @@ -50743,27 +51398,27 @@ RuboCop::Cop::Style::Strip::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # end # end # -# source://rubocop//lib/rubocop/cop/style/struct_inheritance.rb#26 +# source://rubocop/lib/rubocop/cop/style/struct_inheritance.rb#26 class RuboCop::Cop::Style::StructInheritance < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/struct_inheritance.rb#33 + # source://rubocop/lib/rubocop/cop/style/struct_inheritance.rb#33 def on_class(node); end - # source://rubocop//lib/rubocop/cop/style/struct_inheritance.rb#45 + # source://rubocop/lib/rubocop/cop/style/struct_inheritance.rb#45 def struct_constructor?(param0 = T.unsafe(nil)); end private - # source://rubocop//lib/rubocop/cop/style/struct_inheritance.rb#52 + # source://rubocop/lib/rubocop/cop/style/struct_inheritance.rb#52 def correct_parent(parent, corrector); end - # source://rubocop//lib/rubocop/cop/style/struct_inheritance.rb#62 + # source://rubocop/lib/rubocop/cop/style/struct_inheritance.rb#62 def range_for_empty_class_body(class_node, struct_new); end end -# source://rubocop//lib/rubocop/cop/style/struct_inheritance.rb#30 +# source://rubocop/lib/rubocop/cop/style/struct_inheritance.rb#30 RuboCop::Cop::Style::StructInheritance::MSG = T.let(T.unsafe(nil), String) # Checks for redundant argument forwarding when calling super with arguments identical to @@ -50815,23 +51470,23 @@ RuboCop::Cop::Style::StructInheritance::MSG = T.let(T.unsafe(nil), String) # super(&block) # end # -# source://rubocop//lib/rubocop/cop/style/super_arguments.rb#54 +# source://rubocop/lib/rubocop/cop/style/super_arguments.rb#54 class RuboCop::Cop::Style::SuperArguments < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/super_arguments.rb#62 + # source://rubocop/lib/rubocop/cop/style/super_arguments.rb#62 def on_super(super_node); end private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/super_arguments.rb#81 + # source://rubocop/lib/rubocop/cop/style/super_arguments.rb#81 def arguments_identical?(def_node, def_args, super_args); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/super_arguments.rb#136 + # source://rubocop/lib/rubocop/cop/style/super_arguments.rb#136 def block_arg_same?(def_node, def_arg, super_arg); end # Reassigning the block argument will still pass along the original block to super @@ -50839,43 +51494,43 @@ class RuboCop::Cop::Style::SuperArguments < ::RuboCop::Cop::Base # # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/super_arguments.rb#147 + # source://rubocop/lib/rubocop/cop/style/super_arguments.rb#147 def block_reassigned?(def_node, block_arg_name); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/super_arguments.rb#158 + # source://rubocop/lib/rubocop/cop/style/super_arguments.rb#158 def forward_arg_same?(def_arg, super_arg); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/super_arguments.rb#116 + # source://rubocop/lib/rubocop/cop/style/super_arguments.rb#116 def keyword_arg_same?(def_arg, super_arg); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/super_arguments.rb#126 + # source://rubocop/lib/rubocop/cop/style/super_arguments.rb#126 def keyword_rest_arg_same?(def_arg, super_arg); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/super_arguments.rb#99 + # source://rubocop/lib/rubocop/cop/style/super_arguments.rb#99 def positional_arg_same?(def_arg, super_arg); end - # source://rubocop//lib/rubocop/cop/style/super_arguments.rb#106 + # source://rubocop/lib/rubocop/cop/style/super_arguments.rb#106 def positional_rest_arg_same(def_arg, super_arg); end - # source://rubocop//lib/rubocop/cop/style/super_arguments.rb#162 + # source://rubocop/lib/rubocop/cop/style/super_arguments.rb#162 def preprocess_super_args(super_args); end end -# source://rubocop//lib/rubocop/cop/style/super_arguments.rb#58 +# source://rubocop/lib/rubocop/cop/style/super_arguments.rb#58 RuboCop::Cop::Style::SuperArguments::ASSIGN_TYPES = T.let(T.unsafe(nil), Array) -# source://rubocop//lib/rubocop/cop/style/super_arguments.rb#57 +# source://rubocop/lib/rubocop/cop/style/super_arguments.rb#57 RuboCop::Cop::Style::SuperArguments::DEF_TYPES = T.let(T.unsafe(nil), Array) -# source://rubocop//lib/rubocop/cop/style/super_arguments.rb#60 +# source://rubocop/lib/rubocop/cop/style/super_arguments.rb#60 RuboCop::Cop::Style::SuperArguments::MSG = T.let(T.unsafe(nil), String) # Enforces the presence of parentheses in `super` containing arguments. @@ -50890,15 +51545,15 @@ RuboCop::Cop::Style::SuperArguments::MSG = T.let(T.unsafe(nil), String) # # good # super(name, age) # -# source://rubocop//lib/rubocop/cop/style/super_with_args_parentheses.rb#18 +# source://rubocop/lib/rubocop/cop/style/super_with_args_parentheses.rb#18 class RuboCop::Cop::Style::SuperWithArgsParentheses < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/super_with_args_parentheses.rb#23 + # source://rubocop/lib/rubocop/cop/style/super_with_args_parentheses.rb#23 def on_super(node); end end -# source://rubocop//lib/rubocop/cop/style/super_with_args_parentheses.rb#21 +# source://rubocop/lib/rubocop/cop/style/super_with_args_parentheses.rb#21 RuboCop::Cop::Style::SuperWithArgsParentheses::MSG = T.let(T.unsafe(nil), String) # Enforces the use of shorthand-style swapping of 2 variables. @@ -50912,66 +51567,66 @@ RuboCop::Cop::Style::SuperWithArgsParentheses::MSG = T.let(T.unsafe(nil), String # # good # x, y = y, x # -# source://rubocop//lib/rubocop/cop/style/swap_values.rb#21 +# source://rubocop/lib/rubocop/cop/style/swap_values.rb#21 class RuboCop::Cop::Style::SwapValues < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/swap_values.rb#30 + # source://rubocop/lib/rubocop/cop/style/swap_values.rb#30 def on_asgn(node); end - # source://rubocop//lib/rubocop/cop/style/swap_values.rb#30 + # source://rubocop/lib/rubocop/cop/style/swap_values.rb#30 def on_casgn(node); end - # source://rubocop//lib/rubocop/cop/style/swap_values.rb#30 + # source://rubocop/lib/rubocop/cop/style/swap_values.rb#30 def on_cvasgn(node); end - # source://rubocop//lib/rubocop/cop/style/swap_values.rb#30 + # source://rubocop/lib/rubocop/cop/style/swap_values.rb#30 def on_gvasgn(node); end - # source://rubocop//lib/rubocop/cop/style/swap_values.rb#30 + # source://rubocop/lib/rubocop/cop/style/swap_values.rb#30 def on_ivasgn(node); end - # source://rubocop//lib/rubocop/cop/style/swap_values.rb#30 + # source://rubocop/lib/rubocop/cop/style/swap_values.rb#30 def on_lvasgn(node); end private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/swap_values.rb#47 + # source://rubocop/lib/rubocop/cop/style/swap_values.rb#47 def allowed_assignment?(node); end - # source://rubocop//lib/rubocop/cop/style/swap_values.rb#104 + # source://rubocop/lib/rubocop/cop/style/swap_values.rb#93 def correction_range(tmp_assign, y_assign); end - # source://rubocop//lib/rubocop/cop/style/swap_values.rb#81 + # source://rubocop/lib/rubocop/cop/style/swap_values.rb#81 def lhs(node); end - # source://rubocop//lib/rubocop/cop/style/swap_values.rb#66 + # source://rubocop/lib/rubocop/cop/style/swap_values.rb#66 def message(x_assign, y_assign); end - # source://rubocop//lib/rubocop/cop/style/swap_values.rb#75 + # source://rubocop/lib/rubocop/cop/style/swap_values.rb#75 def replacement(x_assign); end - # source://rubocop//lib/rubocop/cop/style/swap_values.rb#95 + # source://rubocop/lib/rubocop/cop/style/swap_values.rb#89 def rhs(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/swap_values.rb#60 + # source://rubocop/lib/rubocop/cop/style/swap_values.rb#60 def simple_assignment?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/swap_values.rb#51 + # source://rubocop/lib/rubocop/cop/style/swap_values.rb#51 def swapping_values?(tmp_assign, x_assign, y_assign); end end -# source://rubocop//lib/rubocop/cop/style/swap_values.rb#25 +# source://rubocop/lib/rubocop/cop/style/swap_values.rb#25 RuboCop::Cop::Style::SwapValues::MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/swap_values.rb#28 +# source://rubocop/lib/rubocop/cop/style/swap_values.rb#28 RuboCop::Cop::Style::SwapValues::SIMPLE_ASSIGNMENT_TYPES = T.let(T.unsafe(nil), Set) # Checks for array literals made up of symbols that are not @@ -51008,7 +51663,7 @@ RuboCop::Cop::Style::SwapValues::SIMPLE_ASSIGNMENT_TYPES = T.let(T.unsafe(nil), # # bad # %i[foo bar baz] # -# source://rubocop//lib/rubocop/cop/style/symbol_array.rb#40 +# source://rubocop/lib/rubocop/cop/style/symbol_array.rb#40 class RuboCop::Cop::Style::SymbolArray < ::RuboCop::Cop::Base include ::RuboCop::Cop::ArrayMinSize include ::RuboCop::Cop::ArraySyntax @@ -51017,60 +51672,60 @@ class RuboCop::Cop::Style::SymbolArray < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector extend ::RuboCop::Cop::TargetRubyVersion - # source://rubocop//lib/rubocop/cop/style/symbol_array.rb#66 + # source://rubocop/lib/rubocop/cop/style/symbol_array.rb#66 def on_array(node); end private - # source://rubocop//lib/rubocop/cop/style/symbol_array.rb#96 + # source://rubocop/lib/rubocop/cop/style/symbol_array.rb#96 def build_bracketed_array(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/symbol_array.rb#78 + # source://rubocop/lib/rubocop/cop/style/symbol_array.rb#78 def complex_content?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/symbol_array.rb#92 + # source://rubocop/lib/rubocop/cop/style/symbol_array.rb#92 def invalid_percent_array_contents?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/symbol_array.rb#119 + # source://rubocop/lib/rubocop/cop/style/symbol_array.rb#119 def symbol_without_quote?(string); end - # source://rubocop//lib/rubocop/cop/style/symbol_array.rb#111 + # source://rubocop/lib/rubocop/cop/style/symbol_array.rb#111 def to_symbol_literal(string); end class << self # Returns the value of attribute largest_brackets. # - # source://rubocop//lib/rubocop/cop/style/symbol_array.rb#63 + # source://rubocop/lib/rubocop/cop/style/symbol_array.rb#63 def largest_brackets; end # Sets the attribute largest_brackets # # @param value the value to set the attribute largest_brackets to. # - # source://rubocop//lib/rubocop/cop/style/symbol_array.rb#63 + # source://rubocop/lib/rubocop/cop/style/symbol_array.rb#63 def largest_brackets=(_arg0); end end end -# source://rubocop//lib/rubocop/cop/style/symbol_array.rb#51 +# source://rubocop/lib/rubocop/cop/style/symbol_array.rb#51 RuboCop::Cop::Style::SymbolArray::ARRAY_MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/symbol_array.rb#52 +# source://rubocop/lib/rubocop/cop/style/symbol_array.rb#52 RuboCop::Cop::Style::SymbolArray::DELIMITERS = T.let(T.unsafe(nil), Array) -# source://rubocop//lib/rubocop/cop/style/symbol_array.rb#50 +# source://rubocop/lib/rubocop/cop/style/symbol_array.rb#50 RuboCop::Cop::Style::SymbolArray::PERCENT_MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/symbol_array.rb#57 +# source://rubocop/lib/rubocop/cop/style/symbol_array.rb#57 RuboCop::Cop::Style::SymbolArray::REDEFINABLE_OPERATORS = T.let(T.unsafe(nil), Array) -# source://rubocop//lib/rubocop/cop/style/symbol_array.rb#53 +# source://rubocop/lib/rubocop/cop/style/symbol_array.rb#53 RuboCop::Cop::Style::SymbolArray::SPECIAL_GVARS = T.let(T.unsafe(nil), Array) # Checks symbol literal syntax. @@ -51083,15 +51738,15 @@ RuboCop::Cop::Style::SymbolArray::SPECIAL_GVARS = T.let(T.unsafe(nil), Array) # # good # :symbol # -# source://rubocop//lib/rubocop/cop/style/symbol_literal.rb#15 +# source://rubocop/lib/rubocop/cop/style/symbol_literal.rb#15 class RuboCop::Cop::Style::SymbolLiteral < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/symbol_literal.rb#20 + # source://rubocop/lib/rubocop/cop/style/symbol_literal.rb#20 def on_sym(node); end end -# source://rubocop//lib/rubocop/cop/style/symbol_literal.rb#18 +# source://rubocop/lib/rubocop/cop/style/symbol_literal.rb#18 RuboCop::Cop::Style::SymbolLiteral::MSG = T.let(T.unsafe(nil), String) # Use symbols as procs when possible. @@ -51156,7 +51811,7 @@ RuboCop::Cop::Style::SymbolLiteral::MSG = T.let(T.unsafe(nil), String) # # good # something.map(&:upcase) # -# source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#140 +# source://rubocop/lib/rubocop/cop/style/symbol_proc.rb#140 class RuboCop::Cop::Style::SymbolProc < ::RuboCop::Cop::Base include ::RuboCop::Cop::CommentsHelp include ::RuboCop::Cop::RangeHelp @@ -51166,123 +51821,123 @@ class RuboCop::Cop::Style::SymbolProc < ::RuboCop::Cop::Base # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#189 + # source://rubocop/lib/rubocop/cop/style/symbol_proc.rb#189 def destructuring_block_argument?(argument_node); end - # source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#170 + # source://rubocop/lib/rubocop/cop/style/symbol_proc.rb#170 def on_block(node); end - # source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#170 + # source://rubocop/lib/rubocop/cop/style/symbol_proc.rb#170 def on_numblock(node); end - # source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#152 + # source://rubocop/lib/rubocop/cop/style/symbol_proc.rb#152 def proc_node?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#158 + # source://rubocop/lib/rubocop/cop/style/symbol_proc.rb#158 def symbol_proc?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#155 + # source://rubocop/lib/rubocop/cop/style/symbol_proc.rb#155 def symbol_proc_receiver?(param0 = T.unsafe(nil)); end private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#274 + # source://rubocop/lib/rubocop/cop/style/symbol_proc.rb#274 def allow_comments?; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#270 + # source://rubocop/lib/rubocop/cop/style/symbol_proc.rb#270 def allow_if_method_has_argument?(send_node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#204 + # source://rubocop/lib/rubocop/cop/style/symbol_proc.rb#204 def allowed_method_name?(name); end - # source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#217 + # source://rubocop/lib/rubocop/cop/style/symbol_proc.rb#217 def autocorrect(corrector, node); end - # source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#247 + # source://rubocop/lib/rubocop/cop/style/symbol_proc.rb#247 def autocorrect_lambda_block(corrector, node); end - # source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#238 + # source://rubocop/lib/rubocop/cop/style/symbol_proc.rb#238 def autocorrect_with_args(corrector, node, args, method_name); end - # source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#225 + # source://rubocop/lib/rubocop/cop/style/symbol_proc.rb#225 def autocorrect_without_args(corrector, node); end - # source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#260 + # source://rubocop/lib/rubocop/cop/style/symbol_proc.rb#260 def begin_pos_for_replacement(node); end - # source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#255 + # source://rubocop/lib/rubocop/cop/style/symbol_proc.rb#255 def block_range_with_space(node); end - # source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#208 + # source://rubocop/lib/rubocop/cop/style/symbol_proc.rb#208 def register_offense(node, method_name, block_method_name); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#200 + # source://rubocop/lib/rubocop/cop/style/symbol_proc.rb#200 def unsafe_array_usage?(node); end # See: https://github.com/rubocop/rubocop/issues/10864 # # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#196 + # source://rubocop/lib/rubocop/cop/style/symbol_proc.rb#196 def unsafe_hash_usage?(node); end class << self - # source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#165 + # source://rubocop/lib/rubocop/cop/style/symbol_proc.rb#165 def autocorrect_incompatible_with; end end end -# source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#149 +# source://rubocop/lib/rubocop/cop/style/symbol_proc.rb#149 RuboCop::Cop::Style::SymbolProc::LAMBDA_OR_PROC = T.let(T.unsafe(nil), Array) -# source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#147 +# source://rubocop/lib/rubocop/cop/style/symbol_proc.rb#147 RuboCop::Cop::Style::SymbolProc::MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#148 +# source://rubocop/lib/rubocop/cop/style/symbol_proc.rb#148 RuboCop::Cop::Style::SymbolProc::SUPER_TYPES = T.let(T.unsafe(nil), Array) # Corrector to correct conditional assignment in ternary conditions. # -# source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#499 +# source://rubocop/lib/rubocop/cop/style/conditional_assignment.rb#497 class RuboCop::Cop::Style::TernaryCorrector extend ::RuboCop::Cop::Style::ConditionalAssignmentHelper extend ::RuboCop::Cop::Style::ConditionalCorrectorHelper class << self - # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#504 + # source://rubocop/lib/rubocop/cop/style/conditional_assignment.rb#502 def correct(corrector, node); end - # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#508 + # source://rubocop/lib/rubocop/cop/style/conditional_assignment.rb#506 def move_assignment_inside_condition(corrector, node); end private - # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#522 + # source://rubocop/lib/rubocop/cop/style/conditional_assignment.rb#520 def correction(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#535 + # source://rubocop/lib/rubocop/cop/style/conditional_assignment.rb#533 def element_assignment?(node); end - # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#539 + # source://rubocop/lib/rubocop/cop/style/conditional_assignment.rb#537 def extract_branches(node); end - # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#552 + # source://rubocop/lib/rubocop/cop/style/conditional_assignment.rb#550 def move_branch_inside_condition(corrector, branch, assignment); end - # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#547 + # source://rubocop/lib/rubocop/cop/style/conditional_assignment.rb#545 def remove_parentheses(corrector, node); end - # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#526 + # source://rubocop/lib/rubocop/cop/style/conditional_assignment.rb#524 def ternary(node); end end end @@ -51334,7 +51989,7 @@ end # # bad # foo = (bar = baz) ? a : b # -# source://rubocop//lib/rubocop/cop/style/ternary_parentheses.rb#57 +# source://rubocop/lib/rubocop/cop/style/ternary_parentheses.rb#57 class RuboCop::Cop::Style::TernaryParentheses < ::RuboCop::Cop::Base include ::RuboCop::Cop::SafeAssignment include ::RuboCop::Cop::ConfigurableEnforcedStyle @@ -51342,20 +51997,20 @@ 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#191 + # 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 + # source://rubocop/lib/rubocop/cop/style/ternary_parentheses.rb#69 def on_if(node); end private - # source://rubocop//lib/rubocop/cop/style/ternary_parentheses.rb#100 + # source://rubocop/lib/rubocop/cop/style/ternary_parentheses.rb#100 def autocorrect(corrector, node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/ternary_parentheses.rb#181 + # 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 @@ -51363,31 +52018,31 @@ class RuboCop::Cop::Style::TernaryParentheses < ::RuboCop::Cop::Base # # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/ternary_parentheses.rb#131 + # source://rubocop/lib/rubocop/cop/style/ternary_parentheses.rb#131 def complex_condition?(condition); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/ternary_parentheses.rb#89 + # 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#196 + # 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#210 + # 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 + # 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 + # 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 + # 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 @@ -51395,68 +52050,68 @@ class RuboCop::Cop::Style::TernaryParentheses < ::RuboCop::Cop::Base # # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/ternary_parentheses.rb#141 + # source://rubocop/lib/rubocop/cop/style/ternary_parentheses.rb#141 def non_complex_expression?(condition); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/ternary_parentheses.rb#145 + # source://rubocop/lib/rubocop/cop/style/ternary_parentheses.rb#145 def non_complex_send?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/ternary_parentheses.rb#113 + # source://rubocop/lib/rubocop/cop/style/ternary_parentheses.rb#113 def offense?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/ternary_parentheses.rb#85 + # 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 + # 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 + # source://rubocop/lib/rubocop/cop/style/ternary_parentheses.rb#169 def parenthesized?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/ternary_parentheses.rb#161 + # source://rubocop/lib/rubocop/cop/style/ternary_parentheses.rb#161 def require_parentheses?; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/ternary_parentheses.rb#165 + # source://rubocop/lib/rubocop/cop/style/ternary_parentheses.rb#165 def require_parentheses_when_complex?; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/ternary_parentheses.rb#177 + # source://rubocop/lib/rubocop/cop/style/ternary_parentheses.rb#177 def unparenthesized_method_call?(child); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/ternary_parentheses.rb#173 + # source://rubocop/lib/rubocop/cop/style/ternary_parentheses.rb#173 def unsafe_autocorrect?(condition); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/ternary_parentheses.rb#222 + # source://rubocop/lib/rubocop/cop/style/ternary_parentheses.rb#222 def whitespace_after?(node); end end -# source://rubocop//lib/rubocop/cop/style/ternary_parentheses.rb#66 +# source://rubocop/lib/rubocop/cop/style/ternary_parentheses.rb#66 RuboCop::Cop::Style::TernaryParentheses::MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/ternary_parentheses.rb#67 +# source://rubocop/lib/rubocop/cop/style/ternary_parentheses.rb#67 RuboCop::Cop::Style::TernaryParentheses::MSG_COMPLEX = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/ternary_parentheses.rb#64 +# source://rubocop/lib/rubocop/cop/style/ternary_parentheses.rb#64 RuboCop::Cop::Style::TernaryParentheses::NON_COMPLEX_TYPES = T.let(T.unsafe(nil), Array) -# source://rubocop//lib/rubocop/cop/style/ternary_parentheses.rb#63 +# source://rubocop/lib/rubocop/cop/style/ternary_parentheses.rb#63 RuboCop::Cop::Style::TernaryParentheses::VARIABLE_TYPES = T.let(T.unsafe(nil), Set) # Newcomers to ruby applications may write top-level methods, @@ -51501,38 +52156,38 @@ RuboCop::Cop::Style::TernaryParentheses::VARIABLE_TYPES = T.let(T.unsafe(nil), S # define_method(:foo) { puts 1 } # end # -# source://rubocop//lib/rubocop/cop/style/top_level_method_definition.rb#47 +# source://rubocop/lib/rubocop/cop/style/top_level_method_definition.rb#47 class RuboCop::Cop::Style::TopLevelMethodDefinition < ::RuboCop::Cop::Base - # source://rubocop//lib/rubocop/cop/style/top_level_method_definition.rb#79 + # source://rubocop/lib/rubocop/cop/style/top_level_method_definition.rb#79 def define_method_block?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/style/top_level_method_definition.rb#60 + # source://rubocop/lib/rubocop/cop/style/top_level_method_definition.rb#60 def on_block(node); end - # source://rubocop//lib/rubocop/cop/style/top_level_method_definition.rb#52 + # source://rubocop/lib/rubocop/cop/style/top_level_method_definition.rb#52 def on_def(node); end - # source://rubocop//lib/rubocop/cop/style/top_level_method_definition.rb#52 + # source://rubocop/lib/rubocop/cop/style/top_level_method_definition.rb#52 def on_defs(node); end - # source://rubocop//lib/rubocop/cop/style/top_level_method_definition.rb#60 + # source://rubocop/lib/rubocop/cop/style/top_level_method_definition.rb#60 def on_numblock(node); end - # source://rubocop//lib/rubocop/cop/style/top_level_method_definition.rb#52 + # source://rubocop/lib/rubocop/cop/style/top_level_method_definition.rb#52 def on_send(node); end private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/top_level_method_definition.rb#70 + # source://rubocop/lib/rubocop/cop/style/top_level_method_definition.rb#70 def top_level_method_definition?(node); end end -# source://rubocop//lib/rubocop/cop/style/top_level_method_definition.rb#48 +# source://rubocop/lib/rubocop/cop/style/top_level_method_definition.rb#48 RuboCop::Cop::Style::TopLevelMethodDefinition::MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/top_level_method_definition.rb#50 +# source://rubocop/lib/rubocop/cop/style/top_level_method_definition.rb#50 RuboCop::Cop::Style::TopLevelMethodDefinition::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Checks for trailing code after the class definition. @@ -51547,20 +52202,20 @@ RuboCop::Cop::Style::TopLevelMethodDefinition::RESTRICT_ON_SEND = T.let(T.unsafe # def foo; end # end # -# source://rubocop//lib/rubocop/cop/style/trailing_body_on_class.rb#18 +# source://rubocop/lib/rubocop/cop/style/trailing_body_on_class.rb#18 class RuboCop::Cop::Style::TrailingBodyOnClass < ::RuboCop::Cop::Base include ::RuboCop::Cop::Alignment include ::RuboCop::Cop::TrailingBody extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/trailing_body_on_class.rb#25 + # source://rubocop/lib/rubocop/cop/style/trailing_body_on_class.rb#25 def on_class(node); end - # source://rubocop//lib/rubocop/cop/style/trailing_body_on_class.rb#25 + # source://rubocop/lib/rubocop/cop/style/trailing_body_on_class.rb#25 def on_sclass(node); end end -# source://rubocop//lib/rubocop/cop/style/trailing_body_on_class.rb#23 +# source://rubocop/lib/rubocop/cop/style/trailing_body_on_class.rb#23 RuboCop::Cop::Style::TrailingBodyOnClass::MSG = T.let(T.unsafe(nil), String) # Checks for trailing code after the method definition. @@ -51588,20 +52243,20 @@ RuboCop::Cop::Style::TrailingBodyOnClass::MSG = T.let(T.unsafe(nil), String) # # def endless_method = do_stuff # -# source://rubocop//lib/rubocop/cop/style/trailing_body_on_method_definition.rb#31 +# source://rubocop/lib/rubocop/cop/style/trailing_body_on_method_definition.rb#31 class RuboCop::Cop::Style::TrailingBodyOnMethodDefinition < ::RuboCop::Cop::Base include ::RuboCop::Cop::Alignment include ::RuboCop::Cop::TrailingBody extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/trailing_body_on_method_definition.rb#38 + # source://rubocop/lib/rubocop/cop/style/trailing_body_on_method_definition.rb#38 def on_def(node); end - # source://rubocop//lib/rubocop/cop/style/trailing_body_on_method_definition.rb#38 + # source://rubocop/lib/rubocop/cop/style/trailing_body_on_method_definition.rb#38 def on_defs(node); end end -# source://rubocop//lib/rubocop/cop/style/trailing_body_on_method_definition.rb#36 +# source://rubocop/lib/rubocop/cop/style/trailing_body_on_method_definition.rb#36 RuboCop::Cop::Style::TrailingBodyOnMethodDefinition::MSG = T.let(T.unsafe(nil), String) # Checks for trailing code after the module definition. @@ -51616,17 +52271,17 @@ RuboCop::Cop::Style::TrailingBodyOnMethodDefinition::MSG = T.let(T.unsafe(nil), # extend self # end # -# source://rubocop//lib/rubocop/cop/style/trailing_body_on_module.rb#18 +# source://rubocop/lib/rubocop/cop/style/trailing_body_on_module.rb#18 class RuboCop::Cop::Style::TrailingBodyOnModule < ::RuboCop::Cop::Base include ::RuboCop::Cop::Alignment include ::RuboCop::Cop::TrailingBody extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/trailing_body_on_module.rb#25 + # source://rubocop/lib/rubocop/cop/style/trailing_body_on_module.rb#25 def on_module(node); end end -# source://rubocop//lib/rubocop/cop/style/trailing_body_on_module.rb#23 +# source://rubocop/lib/rubocop/cop/style/trailing_body_on_module.rb#23 RuboCop::Cop::Style::TrailingBodyOnModule::MSG = T.let(T.unsafe(nil), String) # Checks for trailing comma in argument lists. @@ -51709,21 +52364,21 @@ RuboCop::Cop::Style::TrailingBodyOnModule::MSG = T.let(T.unsafe(nil), String) # 2 # ) # -# source://rubocop//lib/rubocop/cop/style/trailing_comma_in_arguments.rb#87 +# source://rubocop/lib/rubocop/cop/style/trailing_comma_in_arguments.rb#87 class RuboCop::Cop::Style::TrailingCommaInArguments < ::RuboCop::Cop::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle include ::RuboCop::Cop::RangeHelp include ::RuboCop::Cop::TrailingComma extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/trailing_comma_in_arguments.rb#95 + # source://rubocop/lib/rubocop/cop/style/trailing_comma_in_arguments.rb#95 def on_csend(node); end - # source://rubocop//lib/rubocop/cop/style/trailing_comma_in_arguments.rb#95 + # source://rubocop/lib/rubocop/cop/style/trailing_comma_in_arguments.rb#95 def on_send(node); end class << self - # source://rubocop//lib/rubocop/cop/style/trailing_comma_in_arguments.rb#91 + # source://rubocop/lib/rubocop/cop/style/trailing_comma_in_arguments.rb#91 def autocorrect_incompatible_with; end end end @@ -51805,14 +52460,14 @@ end # 2 # ] # -# source://rubocop//lib/rubocop/cop/style/trailing_comma_in_array_literal.rb#84 +# source://rubocop/lib/rubocop/cop/style/trailing_comma_in_array_literal.rb#84 class RuboCop::Cop::Style::TrailingCommaInArrayLiteral < ::RuboCop::Cop::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle include ::RuboCop::Cop::RangeHelp include ::RuboCop::Cop::TrailingComma extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/trailing_comma_in_array_literal.rb#88 + # source://rubocop/lib/rubocop/cop/style/trailing_comma_in_array_literal.rb#88 def on_array(node); end end @@ -51854,36 +52509,36 @@ end # foo + bar # end # -# source://rubocop//lib/rubocop/cop/style/trailing_comma_in_block_args.rb#62 +# source://rubocop/lib/rubocop/cop/style/trailing_comma_in_block_args.rb#62 class RuboCop::Cop::Style::TrailingCommaInBlockArgs < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/trailing_comma_in_block_args.rb#67 + # source://rubocop/lib/rubocop/cop/style/trailing_comma_in_block_args.rb#67 def on_block(node); end private - # source://rubocop//lib/rubocop/cop/style/trailing_comma_in_block_args.rb#83 + # source://rubocop/lib/rubocop/cop/style/trailing_comma_in_block_args.rb#83 def arg_count(node); end - # source://rubocop//lib/rubocop/cop/style/trailing_comma_in_block_args.rb#95 + # source://rubocop/lib/rubocop/cop/style/trailing_comma_in_block_args.rb#95 def argument_tokens(node); end - # source://rubocop//lib/rubocop/cop/style/trailing_comma_in_block_args.rb#91 + # source://rubocop/lib/rubocop/cop/style/trailing_comma_in_block_args.rb#91 def last_comma(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/trailing_comma_in_block_args.rb#87 + # source://rubocop/lib/rubocop/cop/style/trailing_comma_in_block_args.rb#87 def trailing_comma?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/trailing_comma_in_block_args.rb#79 + # source://rubocop/lib/rubocop/cop/style/trailing_comma_in_block_args.rb#79 def useless_trailing_comma?(node); end end -# source://rubocop//lib/rubocop/cop/style/trailing_comma_in_block_args.rb#65 +# source://rubocop/lib/rubocop/cop/style/trailing_comma_in_block_args.rb#65 RuboCop::Cop::Style::TrailingCommaInBlockArgs::MSG = T.let(T.unsafe(nil), String) # Checks for trailing comma in hash literals. @@ -51966,14 +52621,14 @@ RuboCop::Cop::Style::TrailingCommaInBlockArgs::MSG = T.let(T.unsafe(nil), String # bar: 2 # } # -# source://rubocop//lib/rubocop/cop/style/trailing_comma_in_hash_literal.rb#87 +# source://rubocop/lib/rubocop/cop/style/trailing_comma_in_hash_literal.rb#87 class RuboCop::Cop::Style::TrailingCommaInHashLiteral < ::RuboCop::Cop::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle include ::RuboCop::Cop::RangeHelp include ::RuboCop::Cop::TrailingComma extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/trailing_comma_in_hash_literal.rb#91 + # source://rubocop/lib/rubocop/cop/style/trailing_comma_in_hash_literal.rb#91 def on_hash(node); end end @@ -52007,27 +52662,27 @@ end # end # end # -# source://rubocop//lib/rubocop/cop/style/trailing_method_end_statement.rb#36 +# source://rubocop/lib/rubocop/cop/style/trailing_method_end_statement.rb#36 class RuboCop::Cop::Style::TrailingMethodEndStatement < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/trailing_method_end_statement.rb#41 + # source://rubocop/lib/rubocop/cop/style/trailing_method_end_statement.rb#41 def on_def(node); end private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/trailing_method_end_statement.rb#55 + # source://rubocop/lib/rubocop/cop/style/trailing_method_end_statement.rb#55 def body_and_end_on_same_line?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/trailing_method_end_statement.rb#51 + # source://rubocop/lib/rubocop/cop/style/trailing_method_end_statement.rb#51 def trailing_end?(node); end end -# source://rubocop//lib/rubocop/cop/style/trailing_method_end_statement.rb#39 +# source://rubocop/lib/rubocop/cop/style/trailing_method_end_statement.rb#39 RuboCop::Cop::Style::TrailingMethodEndStatement::MSG = T.let(T.unsafe(nil), String) # Checks for extra underscores in variable assignment. @@ -52053,62 +52708,62 @@ RuboCop::Cop::Style::TrailingMethodEndStatement::MSG = T.let(T.unsafe(nil), Stri # # bad # a, b, _something = foo() # -# source://rubocop//lib/rubocop/cop/style/trailing_underscore_variable.rb#31 +# source://rubocop/lib/rubocop/cop/style/trailing_underscore_variable.rb#31 class RuboCop::Cop::Style::TrailingUnderscoreVariable < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp include ::RuboCop::Cop::SurroundingSpace extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/trailing_underscore_variable.rb#41 + # source://rubocop/lib/rubocop/cop/style/trailing_underscore_variable.rb#41 def on_masgn(node); end private - # source://rubocop//lib/rubocop/cop/style/trailing_underscore_variable.rb#92 + # source://rubocop/lib/rubocop/cop/style/trailing_underscore_variable.rb#92 def allow_named_underscore_variables; end - # source://rubocop//lib/rubocop/cop/style/trailing_underscore_variable.rb#125 + # source://rubocop/lib/rubocop/cop/style/trailing_underscore_variable.rb#125 def children_offenses(variables); end - # source://rubocop//lib/rubocop/cop/style/trailing_underscore_variable.rb#57 + # source://rubocop/lib/rubocop/cop/style/trailing_underscore_variable.rb#57 def find_first_offense(variables); end - # source://rubocop//lib/rubocop/cop/style/trailing_underscore_variable.rb#66 + # source://rubocop/lib/rubocop/cop/style/trailing_underscore_variable.rb#66 def find_first_possible_offense(variables); end - # source://rubocop//lib/rubocop/cop/style/trailing_underscore_variable.rb#108 + # source://rubocop/lib/rubocop/cop/style/trailing_underscore_variable.rb#108 def main_node_offense(node); end - # source://rubocop//lib/rubocop/cop/style/trailing_underscore_variable.rb#146 + # source://rubocop/lib/rubocop/cop/style/trailing_underscore_variable.rb#146 def range_for_parentheses(offense, left); end - # source://rubocop//lib/rubocop/cop/style/trailing_underscore_variable.rb#88 + # source://rubocop/lib/rubocop/cop/style/trailing_underscore_variable.rb#88 def reverse_index(collection, item); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/trailing_underscore_variable.rb#80 + # source://rubocop/lib/rubocop/cop/style/trailing_underscore_variable.rb#80 def splat_variable_before?(first_offense, variables); end - # source://rubocop//lib/rubocop/cop/style/trailing_underscore_variable.rb#96 + # source://rubocop/lib/rubocop/cop/style/trailing_underscore_variable.rb#96 def unneeded_ranges(node); end - # source://rubocop//lib/rubocop/cop/style/trailing_underscore_variable.rb#133 + # source://rubocop/lib/rubocop/cop/style/trailing_underscore_variable.rb#133 def unused_range(node_type, mlhs_node, right); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/trailing_underscore_variable.rb#129 + # source://rubocop/lib/rubocop/cop/style/trailing_underscore_variable.rb#129 def unused_variables_only?(offense, variables); end end -# source://rubocop//lib/rubocop/cop/style/trailing_underscore_variable.rb#38 +# source://rubocop/lib/rubocop/cop/style/trailing_underscore_variable.rb#38 RuboCop::Cop::Style::TrailingUnderscoreVariable::DISALLOW = T.let(T.unsafe(nil), Array) -# source://rubocop//lib/rubocop/cop/style/trailing_underscore_variable.rb#36 +# source://rubocop/lib/rubocop/cop/style/trailing_underscore_variable.rb#36 RuboCop::Cop::Style::TrailingUnderscoreVariable::MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/trailing_underscore_variable.rb#37 +# source://rubocop/lib/rubocop/cop/style/trailing_underscore_variable.rb#37 RuboCop::Cop::Style::TrailingUnderscoreVariable::UNDERSCORE = T.let(T.unsafe(nil), String) # Looks for trivial reader/writer methods, that could @@ -52195,115 +52850,115 @@ RuboCop::Cop::Style::TrailingUnderscoreVariable::UNDERSCORE = T.let(T.unsafe(nil # attr_reader :baz # end # -# source://rubocop//lib/rubocop/cop/style/trivial_accessors.rb#98 +# source://rubocop/lib/rubocop/cop/style/trivial_accessors.rb#98 class RuboCop::Cop::Style::TrivialAccessors < ::RuboCop::Cop::Base include ::RuboCop::Cop::AllowedMethods extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/trivial_accessors.rb#190 + # source://rubocop/lib/rubocop/cop/style/trivial_accessors.rb#190 def looks_like_trivial_writer?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/style/trivial_accessors.rb#104 + # source://rubocop/lib/rubocop/cop/style/trivial_accessors.rb#104 def on_def(node); end - # source://rubocop//lib/rubocop/cop/style/trivial_accessors.rb#104 + # source://rubocop/lib/rubocop/cop/style/trivial_accessors.rb#104 def on_defs(node); end private - # source://rubocop//lib/rubocop/cop/style/trivial_accessors.rb#222 + # source://rubocop/lib/rubocop/cop/style/trivial_accessors.rb#222 def accessor(kind, method_name); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/trivial_accessors.rb#161 + # source://rubocop/lib/rubocop/cop/style/trivial_accessors.rb#161 def allow_dsl_writers?; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/trivial_accessors.rb#157 + # source://rubocop/lib/rubocop/cop/style/trivial_accessors.rb#157 def allow_predicates?; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/trivial_accessors.rb#195 + # source://rubocop/lib/rubocop/cop/style/trivial_accessors.rb#195 def allowed_method_name?(node); end - # source://rubocop//lib/rubocop/cop/style/trivial_accessors.rb#169 + # source://rubocop/lib/rubocop/cop/style/trivial_accessors.rb#169 def allowed_method_names; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/trivial_accessors.rb#204 + # source://rubocop/lib/rubocop/cop/style/trivial_accessors.rb#204 def allowed_reader?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/trivial_accessors.rb#200 + # source://rubocop/lib/rubocop/cop/style/trivial_accessors.rb#200 def allowed_writer?(node); end - # source://rubocop//lib/rubocop/cop/style/trivial_accessors.rb#142 + # source://rubocop/lib/rubocop/cop/style/trivial_accessors.rb#142 def autocorrect(corrector, node); end - # source://rubocop//lib/rubocop/cop/style/trivial_accessors.rb#234 + # source://rubocop/lib/rubocop/cop/style/trivial_accessors.rb#234 def autocorrect_class(corrector, node); end - # source://rubocop//lib/rubocop/cop/style/trivial_accessors.rb#226 + # source://rubocop/lib/rubocop/cop/style/trivial_accessors.rb#226 def autocorrect_instance(corrector, node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/trivial_accessors.rb#173 + # source://rubocop/lib/rubocop/cop/style/trivial_accessors.rb#173 def dsl_writer?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/trivial_accessors.rb#153 + # source://rubocop/lib/rubocop/cop/style/trivial_accessors.rb#153 def exact_name_match?; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/trivial_accessors.rb#165 + # source://rubocop/lib/rubocop/cop/style/trivial_accessors.rb#165 def ignore_class_methods?; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/trivial_accessors.rb#115 + # source://rubocop/lib/rubocop/cop/style/trivial_accessors.rb#115 def in_module_or_instance_eval?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/trivial_accessors.rb#181 + # source://rubocop/lib/rubocop/cop/style/trivial_accessors.rb#181 def looks_like_trivial_reader?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/trivial_accessors.rb#208 + # source://rubocop/lib/rubocop/cop/style/trivial_accessors.rb#208 def names_match?(node); end - # source://rubocop//lib/rubocop/cop/style/trivial_accessors.rb#129 + # source://rubocop/lib/rubocop/cop/style/trivial_accessors.rb#129 def on_method_def(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/trivial_accessors.rb#248 + # source://rubocop/lib/rubocop/cop/style/trivial_accessors.rb#248 def top_level_node?(node); end - # source://rubocop//lib/rubocop/cop/style/trivial_accessors.rb#214 + # source://rubocop/lib/rubocop/cop/style/trivial_accessors.rb#214 def trivial_accessor_kind(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/trivial_accessors.rb#177 + # source://rubocop/lib/rubocop/cop/style/trivial_accessors.rb#177 def trivial_reader?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/trivial_accessors.rb#185 + # source://rubocop/lib/rubocop/cop/style/trivial_accessors.rb#185 def trivial_writer?(node); end end -# source://rubocop//lib/rubocop/cop/style/trivial_accessors.rb#102 +# source://rubocop/lib/rubocop/cop/style/trivial_accessors.rb#102 RuboCop::Cop::Style::TrivialAccessors::MSG = T.let(T.unsafe(nil), String) # Looks for `unless` expressions with `else` clauses. @@ -52323,22 +52978,22 @@ RuboCop::Cop::Style::TrivialAccessors::MSG = T.let(T.unsafe(nil), String) # # do a different thing... # end # -# source://rubocop//lib/rubocop/cop/style/unless_else.rb#22 +# source://rubocop/lib/rubocop/cop/style/unless_else.rb#22 class RuboCop::Cop::Style::UnlessElse < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/unless_else.rb#28 + # source://rubocop/lib/rubocop/cop/style/unless_else.rb#28 def on_if(node); end - # source://rubocop//lib/rubocop/cop/style/unless_else.rb#45 + # source://rubocop/lib/rubocop/cop/style/unless_else.rb#45 def range_between_condition_and_else(node, condition); end - # source://rubocop//lib/rubocop/cop/style/unless_else.rb#49 + # source://rubocop/lib/rubocop/cop/style/unless_else.rb#49 def range_between_else_and_end(node); end end -# source://rubocop//lib/rubocop/cop/style/unless_else.rb#26 +# source://rubocop/lib/rubocop/cop/style/unless_else.rb#26 RuboCop::Cop::Style::UnlessElse::MSG = T.let(T.unsafe(nil), String) # Checks for the use of logical operators in an `unless` condition. @@ -52385,44 +53040,44 @@ RuboCop::Cop::Style::UnlessElse::MSG = T.let(T.unsafe(nil), String) # return unless a # return unless a? # -# source://rubocop//lib/rubocop/cop/style/unless_logical_operators.rb#50 +# source://rubocop/lib/rubocop/cop/style/unless_logical_operators.rb#50 class RuboCop::Cop::Style::UnlessLogicalOperators < ::RuboCop::Cop::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle - # source://rubocop//lib/rubocop/cop/style/unless_logical_operators.rb#62 + # source://rubocop/lib/rubocop/cop/style/unless_logical_operators.rb#62 def and_with_or?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/style/unless_logical_operators.rb#67 + # source://rubocop/lib/rubocop/cop/style/unless_logical_operators.rb#67 def logical_operator?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/style/unless_logical_operators.rb#71 + # source://rubocop/lib/rubocop/cop/style/unless_logical_operators.rb#71 def on_if(node); end - # source://rubocop//lib/rubocop/cop/style/unless_logical_operators.rb#57 + # source://rubocop/lib/rubocop/cop/style/unless_logical_operators.rb#57 def or_with_and?(param0 = T.unsafe(nil)); end private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/unless_logical_operators.rb#83 + # source://rubocop/lib/rubocop/cop/style/unless_logical_operators.rb#83 def mixed_logical_operator?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/unless_logical_operators.rb#90 + # source://rubocop/lib/rubocop/cop/style/unless_logical_operators.rb#90 def mixed_precedence_and?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/unless_logical_operators.rb#97 + # source://rubocop/lib/rubocop/cop/style/unless_logical_operators.rb#97 def mixed_precedence_or?(node); end end -# source://rubocop//lib/rubocop/cop/style/unless_logical_operators.rb#54 +# source://rubocop/lib/rubocop/cop/style/unless_logical_operators.rb#54 RuboCop::Cop::Style::UnlessLogicalOperators::FORBID_LOGICAL_OPERATORS = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/unless_logical_operators.rb#53 +# source://rubocop/lib/rubocop/cop/style/unless_logical_operators.rb#53 RuboCop::Cop::Style::UnlessLogicalOperators::FORBID_MIXED_LOGICAL_OPERATORS = T.let(T.unsafe(nil), String) # Checks for accessing the first element of `String#unpack` @@ -52439,30 +53094,30 @@ RuboCop::Cop::Style::UnlessLogicalOperators::FORBID_MIXED_LOGICAL_OPERATORS = T. # # good # 'foo'.unpack1('h*') # -# source://rubocop//lib/rubocop/cop/style/unpack_first.rb#20 +# source://rubocop/lib/rubocop/cop/style/unpack_first.rb#20 class RuboCop::Cop::Style::UnpackFirst < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector extend ::RuboCop::Cop::TargetRubyVersion - # source://rubocop//lib/rubocop/cop/style/unpack_first.rb#37 + # source://rubocop/lib/rubocop/cop/style/unpack_first.rb#37 def on_csend(node); end - # source://rubocop//lib/rubocop/cop/style/unpack_first.rb#37 + # source://rubocop/lib/rubocop/cop/style/unpack_first.rb#37 def on_send(node); end - # source://rubocop//lib/rubocop/cop/style/unpack_first.rb#30 + # source://rubocop/lib/rubocop/cop/style/unpack_first.rb#30 def unpack_and_first_element?(param0 = T.unsafe(nil)); end private - # source://rubocop//lib/rubocop/cop/style/unpack_first.rb#53 + # source://rubocop/lib/rubocop/cop/style/unpack_first.rb#53 def first_element_range(node, unpack_call); end end -# source://rubocop//lib/rubocop/cop/style/unpack_first.rb#26 +# source://rubocop/lib/rubocop/cop/style/unpack_first.rb#26 RuboCop::Cop::Style::UnpackFirst::MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/unpack_first.rb#27 +# source://rubocop/lib/rubocop/cop/style/unpack_first.rb#27 RuboCop::Cop::Style::UnpackFirst::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Checks for variable interpolation (like "#@ivar"). @@ -52478,24 +53133,24 @@ RuboCop::Cop::Style::UnpackFirst::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # /check #{$pattern}/ # "Let's go to the #{@store}" # -# source://rubocop//lib/rubocop/cop/style/variable_interpolation.rb#18 +# source://rubocop/lib/rubocop/cop/style/variable_interpolation.rb#18 class RuboCop::Cop::Style::VariableInterpolation < ::RuboCop::Cop::Base include ::RuboCop::Cop::Interpolation extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/variable_interpolation.rb#25 + # source://rubocop/lib/rubocop/cop/style/variable_interpolation.rb#24 def on_node_with_interpolations(node); end private - # source://rubocop//lib/rubocop/cop/style/variable_interpolation.rb#35 + # source://rubocop/lib/rubocop/cop/style/variable_interpolation.rb#34 def message(range); end - # source://rubocop//lib/rubocop/cop/style/variable_interpolation.rb#39 + # source://rubocop/lib/rubocop/cop/style/variable_interpolation.rb#38 def var_nodes(nodes); end end -# source://rubocop//lib/rubocop/cop/style/variable_interpolation.rb#22 +# source://rubocop/lib/rubocop/cop/style/variable_interpolation.rb#22 RuboCop::Cop::Style::VariableInterpolation::MSG = T.let(T.unsafe(nil), String) # Checks for `when;` uses in `case` expressions. @@ -52513,15 +53168,15 @@ RuboCop::Cop::Style::VariableInterpolation::MSG = T.let(T.unsafe(nil), String) # when 2 then 'bar' # end # -# source://rubocop//lib/rubocop/cop/style/when_then.rb#20 +# source://rubocop/lib/rubocop/cop/style/when_then.rb#20 class RuboCop::Cop::Style::WhenThen < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/when_then.rb#25 + # source://rubocop/lib/rubocop/cop/style/when_then.rb#25 def on_when(node); end end -# source://rubocop//lib/rubocop/cop/style/when_then.rb#23 +# source://rubocop/lib/rubocop/cop/style/when_then.rb#23 RuboCop::Cop::Style::WhenThen::MSG = T.let(T.unsafe(nil), String) # Checks for uses of `do` in multi-line `while/until` statements. @@ -52548,18 +53203,18 @@ RuboCop::Cop::Style::WhenThen::MSG = T.let(T.unsafe(nil), String) # do_something(x.pop) # end # -# source://rubocop//lib/rubocop/cop/style/while_until_do.rb#29 +# source://rubocop/lib/rubocop/cop/style/while_until_do.rb#29 class RuboCop::Cop::Style::WhileUntilDo < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/while_until_do.rb#34 + # source://rubocop/lib/rubocop/cop/style/while_until_do.rb#34 def on_until(node); end - # source://rubocop//lib/rubocop/cop/style/while_until_do.rb#34 + # source://rubocop/lib/rubocop/cop/style/while_until_do.rb#34 def on_while(node); end end -# source://rubocop//lib/rubocop/cop/style/while_until_do.rb#32 +# source://rubocop/lib/rubocop/cop/style/while_until_do.rb#32 RuboCop::Cop::Style::WhileUntilDo::MSG = T.let(T.unsafe(nil), String) # Checks for while and until statements that would fit on one line @@ -52591,21 +53246,21 @@ RuboCop::Cop::Style::WhileUntilDo::MSG = T.let(T.unsafe(nil), String) # x += 100 # end # -# source://rubocop//lib/rubocop/cop/style/while_until_modifier.rb#35 +# source://rubocop/lib/rubocop/cop/style/while_until_modifier.rb#35 class RuboCop::Cop::Style::WhileUntilModifier < ::RuboCop::Cop::Base include ::RuboCop::Cop::Alignment include ::RuboCop::Cop::LineLengthHelp include ::RuboCop::Cop::StatementModifier extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/while_until_modifier.rb#41 + # source://rubocop/lib/rubocop/cop/style/while_until_modifier.rb#41 def on_until(node); end - # source://rubocop//lib/rubocop/cop/style/while_until_modifier.rb#41 + # source://rubocop/lib/rubocop/cop/style/while_until_modifier.rb#41 def on_while(node); end end -# source://rubocop//lib/rubocop/cop/style/while_until_modifier.rb#39 +# source://rubocop/lib/rubocop/cop/style/while_until_modifier.rb#39 RuboCop::Cop::Style::WhileUntilModifier::MSG = T.let(T.unsafe(nil), String) # Checks for array literals made up of word-like @@ -52672,7 +53327,7 @@ RuboCop::Cop::Style::WhileUntilModifier::MSG = T.let(T.unsafe(nil), String) # %w[two Two] # ] # -# source://rubocop//lib/rubocop/cop/style/word_array.rb#71 +# source://rubocop/lib/rubocop/cop/style/word_array.rb#71 class RuboCop::Cop::Style::WordArray < ::RuboCop::Cop::Base include ::RuboCop::Cop::ArrayMinSize include ::RuboCop::Cop::ArraySyntax @@ -52680,59 +53335,59 @@ class RuboCop::Cop::Style::WordArray < ::RuboCop::Cop::Base include ::RuboCop::Cop::PercentArray extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/word_array.rb#94 + # source://rubocop/lib/rubocop/cop/style/word_array.rb#94 def on_array(node); end - # source://rubocop//lib/rubocop/cop/style/word_array.rb#85 + # source://rubocop/lib/rubocop/cop/style/word_array.rb#85 def on_new_investigation; end private - # source://rubocop//lib/rubocop/cop/style/word_array.rb#138 + # source://rubocop/lib/rubocop/cop/style/word_array.rb#138 def build_bracketed_array(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/word_array.rb#118 + # source://rubocop/lib/rubocop/cop/style/word_array.rb#118 def complex_content?(strings, complex_regex: T.unsafe(nil)); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/word_array.rb#129 + # source://rubocop/lib/rubocop/cop/style/word_array.rb#129 def invalid_percent_array_contents?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/word_array.rb#113 + # source://rubocop/lib/rubocop/cop/style/word_array.rb#113 def matrix_of_complex_content?(array); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/word_array.rb#107 + # source://rubocop/lib/rubocop/cop/style/word_array.rb#107 def within_matrix_of_complex_content?(node); end - # source://rubocop//lib/rubocop/cop/style/word_array.rb#134 + # source://rubocop/lib/rubocop/cop/style/word_array.rb#134 def word_regex; end class << self # Returns the value of attribute largest_brackets. # - # source://rubocop//lib/rubocop/cop/style/word_array.rb#82 + # source://rubocop/lib/rubocop/cop/style/word_array.rb#82 def largest_brackets; end # Sets the attribute largest_brackets # # @param value the value to set the attribute largest_brackets to. # - # source://rubocop//lib/rubocop/cop/style/word_array.rb#82 + # source://rubocop/lib/rubocop/cop/style/word_array.rb#82 def largest_brackets=(_arg0); end end end -# source://rubocop//lib/rubocop/cop/style/word_array.rb#79 +# source://rubocop/lib/rubocop/cop/style/word_array.rb#79 RuboCop::Cop::Style::WordArray::ARRAY_MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/word_array.rb#78 +# source://rubocop/lib/rubocop/cop/style/word_array.rb#78 RuboCop::Cop::Style::WordArray::PERCENT_MSG = T.let(T.unsafe(nil), String) # Checks for the use of `YAML.load`, `YAML.safe_load`, and `YAML.parse` with @@ -52756,26 +53411,26 @@ RuboCop::Cop::Style::WordArray::PERCENT_MSG = T.let(T.unsafe(nil), String) # # good # YAML.safe_load_file(path) # Ruby 3.0 and newer # -# source://rubocop//lib/rubocop/cop/style/yaml_file_read.rb#27 +# source://rubocop/lib/rubocop/cop/style/yaml_file_read.rb#27 class RuboCop::Cop::Style::YAMLFileRead < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/yaml_file_read.rb#41 + # source://rubocop/lib/rubocop/cop/style/yaml_file_read.rb#41 def on_send(node); end - # source://rubocop//lib/rubocop/cop/style/yaml_file_read.rb#34 + # source://rubocop/lib/rubocop/cop/style/yaml_file_read.rb#34 def yaml_file_read?(param0 = T.unsafe(nil)); end private - # source://rubocop//lib/rubocop/cop/style/yaml_file_read.rb#60 + # source://rubocop/lib/rubocop/cop/style/yaml_file_read.rb#60 def offense_range(node); end end -# source://rubocop//lib/rubocop/cop/style/yaml_file_read.rb#30 +# source://rubocop/lib/rubocop/cop/style/yaml_file_read.rb#30 RuboCop::Cop::Style::YAMLFileRead::MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/yaml_file_read.rb#31 +# source://rubocop/lib/rubocop/cop/style/yaml_file_read.rb#31 RuboCop::Cop::Style::YAMLFileRead::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Enforces or forbids Yoda conditions, @@ -52827,99 +53482,99 @@ RuboCop::Cop::Style::YAMLFileRead::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array # 99 == foo # "bar" != foo # -# source://rubocop//lib/rubocop/cop/style/yoda_condition.rb#77 +# source://rubocop/lib/rubocop/cop/style/yoda_condition.rb#77 class RuboCop::Cop::Style::YodaCondition < ::RuboCop::Cop::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/yoda_condition.rb#90 + # source://rubocop/lib/rubocop/cop/style/yoda_condition.rb#90 def file_constant_equal_program_name?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/style/yoda_condition.rb#94 + # source://rubocop/lib/rubocop/cop/style/yoda_condition.rb#94 def on_send(node); end private - # source://rubocop//lib/rubocop/cop/style/yoda_condition.rb#149 + # source://rubocop/lib/rubocop/cop/style/yoda_condition.rb#149 def actual_code_range(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/yoda_condition.rb#145 + # source://rubocop/lib/rubocop/cop/style/yoda_condition.rb#145 def constant_portion?(node); end - # source://rubocop//lib/rubocop/cop/style/yoda_condition.rb#138 + # source://rubocop/lib/rubocop/cop/style/yoda_condition.rb#138 def corrected_code(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/yoda_condition.rb#107 + # source://rubocop/lib/rubocop/cop/style/yoda_condition.rb#107 def enforce_yoda?; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/yoda_condition.rb#112 + # source://rubocop/lib/rubocop/cop/style/yoda_condition.rb#112 def equality_only?; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/yoda_condition.rb#173 + # source://rubocop/lib/rubocop/cop/style/yoda_condition.rb#173 def interpolation?(node); end - # source://rubocop//lib/rubocop/cop/style/yoda_condition.rb#134 + # source://rubocop/lib/rubocop/cop/style/yoda_condition.rb#134 def message(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/yoda_condition.rb#157 + # source://rubocop/lib/rubocop/cop/style/yoda_condition.rb#157 def non_equality_operator?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/yoda_condition.rb#161 + # source://rubocop/lib/rubocop/cop/style/yoda_condition.rb#161 def noncommutative_operator?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/yoda_condition.rb#169 + # source://rubocop/lib/rubocop/cop/style/yoda_condition.rb#169 def program_name?(name); end - # source://rubocop//lib/rubocop/cop/style/yoda_condition.rb#153 + # source://rubocop/lib/rubocop/cop/style/yoda_condition.rb#153 def reverse_comparison(operator); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/yoda_condition.rb#165 + # source://rubocop/lib/rubocop/cop/style/yoda_condition.rb#165 def source_file_path_constant?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/yoda_condition.rb#122 + # source://rubocop/lib/rubocop/cop/style/yoda_condition.rb#122 def valid_yoda?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/yoda_condition.rb#117 + # source://rubocop/lib/rubocop/cop/style/yoda_condition.rb#117 def yoda_compatible_condition?(node); end end -# source://rubocop//lib/rubocop/cop/style/yoda_condition.rb#84 +# source://rubocop/lib/rubocop/cop/style/yoda_condition.rb#84 RuboCop::Cop::Style::YodaCondition::EQUALITY_OPERATORS = T.let(T.unsafe(nil), Array) -# source://rubocop//lib/rubocop/cop/style/yoda_condition.rb#82 +# source://rubocop/lib/rubocop/cop/style/yoda_condition.rb#82 RuboCop::Cop::Style::YodaCondition::MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/yoda_condition.rb#85 +# source://rubocop/lib/rubocop/cop/style/yoda_condition.rb#85 RuboCop::Cop::Style::YodaCondition::NONCOMMUTATIVE_OPERATORS = T.let(T.unsafe(nil), Array) -# source://rubocop//lib/rubocop/cop/style/yoda_condition.rb#86 +# source://rubocop/lib/rubocop/cop/style/yoda_condition.rb#86 RuboCop::Cop::Style::YodaCondition::PROGRAM_NAMES = T.let(T.unsafe(nil), Array) -# source://rubocop//lib/rubocop/cop/style/yoda_condition.rb#87 +# source://rubocop/lib/rubocop/cop/style/yoda_condition.rb#87 RuboCop::Cop::Style::YodaCondition::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Set) -# source://rubocop//lib/rubocop/cop/style/yoda_condition.rb#83 +# source://rubocop/lib/rubocop/cop/style/yoda_condition.rb#83 RuboCop::Cop::Style::YodaCondition::REVERSE_COMPARISON = T.let(T.unsafe(nil), Hash) # Forbids Yoda expressions, i.e. binary operations (using `*`, `+`, `&`, `|`, @@ -52951,44 +53606,44 @@ RuboCop::Cop::Style::YodaCondition::REVERSE_COMPARISON = T.let(T.unsafe(nil), Ha # CONST + 1 # 60 * 24 # -# source://rubocop//lib/rubocop/cop/style/yoda_expression.rb#40 +# source://rubocop/lib/rubocop/cop/style/yoda_expression.rb#40 class RuboCop::Cop::Style::YodaExpression < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop//lib/rubocop/cop/style/yoda_expression.rb#47 + # source://rubocop/lib/rubocop/cop/style/yoda_expression.rb#47 def on_new_investigation; end - # source://rubocop//lib/rubocop/cop/style/yoda_expression.rb#51 + # source://rubocop/lib/rubocop/cop/style/yoda_expression.rb#51 def on_send(node); end private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/yoda_expression.rb#73 + # source://rubocop/lib/rubocop/cop/style/yoda_expression.rb#73 def constant_portion?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/yoda_expression.rb#81 + # source://rubocop/lib/rubocop/cop/style/yoda_expression.rb#81 def offended_ancestor?(node); end - # source://rubocop//lib/rubocop/cop/style/yoda_expression.rb#85 + # source://rubocop/lib/rubocop/cop/style/yoda_expression.rb#85 def offended_nodes; end - # source://rubocop//lib/rubocop/cop/style/yoda_expression.rb#77 + # source://rubocop/lib/rubocop/cop/style/yoda_expression.rb#77 def supported_operators; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/style/yoda_expression.rb#69 + # source://rubocop/lib/rubocop/cop/style/yoda_expression.rb#69 def yoda_expression_constant?(lhs, rhs); end end -# source://rubocop//lib/rubocop/cop/style/yoda_expression.rb#43 +# source://rubocop/lib/rubocop/cop/style/yoda_expression.rb#43 RuboCop::Cop::Style::YodaExpression::MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/yoda_expression.rb#45 +# source://rubocop/lib/rubocop/cop/style/yoda_expression.rb#45 RuboCop::Cop::Style::YodaExpression::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Checks for numeric comparisons that can be replaced @@ -53017,7 +53672,7 @@ RuboCop::Cop::Style::YodaExpression::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Arr # !string.empty? # !hash.empty? # -# source://rubocop//lib/rubocop/cop/style/zero_length_predicate.rb#37 +# source://rubocop/lib/rubocop/cop/style/zero_length_predicate.rb#37 class RuboCop::Cop::Style::ZeroLengthPredicate < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector @@ -53025,57 +53680,57 @@ class RuboCop::Cop::Style::ZeroLengthPredicate < ::RuboCop::Cop::Base # implement `#size`, but not `#empty`. We ignore those to # reduce false positives. # - # source://rubocop//lib/rubocop/cop/style/zero_length_predicate.rb#147 + # source://rubocop/lib/rubocop/cop/style/zero_length_predicate.rb#147 def non_polymorphic_collection?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/style/zero_length_predicate.rb#114 + # source://rubocop/lib/rubocop/cop/style/zero_length_predicate.rb#114 def nonzero_length_comparison(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/style/zero_length_predicate.rb#51 + # source://rubocop/lib/rubocop/cop/style/zero_length_predicate.rb#51 def on_csend(node); end - # source://rubocop//lib/rubocop/cop/style/zero_length_predicate.rb#45 + # source://rubocop/lib/rubocop/cop/style/zero_length_predicate.rb#45 def on_send(node); end - # source://rubocop//lib/rubocop/cop/style/zero_length_predicate.rb#138 + # source://rubocop/lib/rubocop/cop/style/zero_length_predicate.rb#138 def other_length_node(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/style/zero_length_predicate.rb#106 + # source://rubocop/lib/rubocop/cop/style/zero_length_predicate.rb#106 def zero_length_comparison(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/style/zero_length_predicate.rb#130 + # source://rubocop/lib/rubocop/cop/style/zero_length_predicate.rb#130 def zero_length_node(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/style/zero_length_predicate.rb#101 + # source://rubocop/lib/rubocop/cop/style/zero_length_predicate.rb#101 def zero_length_predicate?(param0 = T.unsafe(nil)); end private - # source://rubocop//lib/rubocop/cop/style/zero_length_predicate.rb#85 + # source://rubocop/lib/rubocop/cop/style/zero_length_predicate.rb#85 def check_nonzero_length_comparison(node); end - # source://rubocop//lib/rubocop/cop/style/zero_length_predicate.rb#70 + # source://rubocop/lib/rubocop/cop/style/zero_length_predicate.rb#70 def check_zero_length_comparison(node); end - # source://rubocop//lib/rubocop/cop/style/zero_length_predicate.rb#58 + # source://rubocop/lib/rubocop/cop/style/zero_length_predicate.rb#58 def check_zero_length_predicate(node); end - # source://rubocop//lib/rubocop/cop/style/zero_length_predicate.rb#119 + # source://rubocop/lib/rubocop/cop/style/zero_length_predicate.rb#119 def replacement(node); end end -# source://rubocop//lib/rubocop/cop/style/zero_length_predicate.rb#41 +# source://rubocop/lib/rubocop/cop/style/zero_length_predicate.rb#41 RuboCop::Cop::Style::ZeroLengthPredicate::NONZERO_MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/style/zero_length_predicate.rb#43 +# source://rubocop/lib/rubocop/cop/style/zero_length_predicate.rb#43 RuboCop::Cop::Style::ZeroLengthPredicate::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) -# source://rubocop//lib/rubocop/cop/style/zero_length_predicate.rb#40 +# source://rubocop/lib/rubocop/cop/style/zero_length_predicate.rb#40 RuboCop::Cop::Style::ZeroLengthPredicate::ZERO_MSG = T.let(T.unsafe(nil), String) # Common functionality for checking and correcting surrounding whitespace. # -# source://rubocop//lib/rubocop/cop/mixin/surrounding_space.rb#6 +# source://rubocop/lib/rubocop/cop/mixin/surrounding_space.rb#6 module RuboCop::Cop::SurroundingSpace include ::RuboCop::Cop::RangeHelp @@ -53083,92 +53738,98 @@ module RuboCop::Cop::SurroundingSpace # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/mixin/surrounding_space.rb#110 + # source://rubocop/lib/rubocop/cop/mixin/surrounding_space.rb#110 def empty_brackets?(left_bracket_token, right_bracket_token, tokens: T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/mixin/surrounding_space.rb#104 + # source://rubocop/lib/rubocop/cop/mixin/surrounding_space.rb#104 def empty_offense(node, range, message, command); end - # source://rubocop//lib/rubocop/cop/mixin/surrounding_space.rb#94 + # source://rubocop/lib/rubocop/cop/mixin/surrounding_space.rb#94 def empty_offenses(node, left, right, message); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/mixin/surrounding_space.rb#68 + # source://rubocop/lib/rubocop/cop/mixin/surrounding_space.rb#68 def extra_space?(token, side); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/mixin/surrounding_space.rb#129 + # source://rubocop/lib/rubocop/cop/mixin/surrounding_space.rb#129 def no_character_between?(left_bracket_token, right_bracket_token); end - # source://rubocop//lib/rubocop/cop/mixin/surrounding_space.rb#38 + # source://rubocop/lib/rubocop/cop/mixin/surrounding_space.rb#38 def no_space_offenses(node, left_token, right_token, message, start_ok: T.unsafe(nil), end_ok: T.unsafe(nil)); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/mixin/surrounding_space.rb#120 + # source://rubocop/lib/rubocop/cop/mixin/surrounding_space.rb#120 def offending_empty_no_space?(config, left_token, right_token); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/mixin/surrounding_space.rb#116 + # source://rubocop/lib/rubocop/cop/mixin/surrounding_space.rb#116 def offending_empty_space?(config, left_token, right_token); end - # source://rubocop//lib/rubocop/cop/mixin/surrounding_space.rb#33 + # source://rubocop/lib/rubocop/cop/mixin/surrounding_space.rb#33 def on_new_investigation; end - # source://rubocop//lib/rubocop/cop/mixin/surrounding_space.rb#78 + # source://rubocop/lib/rubocop/cop/mixin/surrounding_space.rb#78 def reposition(src, pos, step, include_newlines: T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/mixin/surrounding_space.rb#16 + # source://rubocop/lib/rubocop/cop/mixin/surrounding_space.rb#16 def side_space_range(range:, side:, include_newlines: T.unsafe(nil)); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/mixin/surrounding_space.rb#124 + # source://rubocop/lib/rubocop/cop/mixin/surrounding_space.rb#124 def space_between?(left_bracket_token, right_bracket_token); end - # source://rubocop//lib/rubocop/cop/mixin/surrounding_space.rb#85 + # source://rubocop/lib/rubocop/cop/mixin/surrounding_space.rb#85 def space_offense(node, token, side, message, command); end - # source://rubocop//lib/rubocop/cop/mixin/surrounding_space.rb#53 + # source://rubocop/lib/rubocop/cop/mixin/surrounding_space.rb#53 def space_offenses(node, left_token, right_token, message, start_ok: T.unsafe(nil), end_ok: T.unsafe(nil)); end end -# source://rubocop//lib/rubocop/cop/mixin/surrounding_space.rb#9 +# source://rubocop/lib/rubocop/cop/mixin/surrounding_space.rb#9 RuboCop::Cop::SurroundingSpace::NO_SPACE_COMMAND = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/mixin/surrounding_space.rb#12 +# source://rubocop/lib/rubocop/cop/mixin/surrounding_space.rb#12 RuboCop::Cop::SurroundingSpace::SINGLE_SPACE_REGEXP = T.let(T.unsafe(nil), Regexp) -# source://rubocop//lib/rubocop/cop/mixin/surrounding_space.rb#10 +# source://rubocop/lib/rubocop/cop/mixin/surrounding_space.rb#10 RuboCop::Cop::SurroundingSpace::SPACE_COMMAND = T.let(T.unsafe(nil), String) # Classes that include this module just implement functions for working # with symbol nodes. # -# source://rubocop//lib/rubocop/cop/mixin/symbol_help.rb#7 +# source://rubocop/lib/rubocop/cop/mixin/symbol_help.rb#7 module RuboCop::Cop::SymbolHelp # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/mixin/symbol_help.rb#8 + # source://rubocop/lib/rubocop/cop/mixin/symbol_help.rb#8 def hash_key?(node); end end # Common functionality for checking target ruby version. # -# source://rubocop//lib/rubocop/cop/mixin/target_ruby_version.rb#6 +# source://rubocop/lib/rubocop/cop/mixin/target_ruby_version.rb#6 module RuboCop::Cop::TargetRubyVersion - # source://rubocop//lib/rubocop/cop/mixin/target_ruby_version.rb#11 + # source://rubocop/lib/rubocop/cop/mixin/target_ruby_version.rb#19 + def maximum_target_ruby_version(version); end + + # source://rubocop/lib/rubocop/cop/mixin/target_ruby_version.rb#15 def minimum_target_ruby_version(version); end - # source://rubocop//lib/rubocop/cop/mixin/target_ruby_version.rb#7 + # source://rubocop/lib/rubocop/cop/mixin/target_ruby_version.rb#11 + def required_maximum_ruby_version; end + + # source://rubocop/lib/rubocop/cop/mixin/target_ruby_version.rb#7 def required_minimum_ruby_version; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/mixin/target_ruby_version.rb#15 + # source://rubocop/lib/rubocop/cop/mixin/target_ruby_version.rb#23 def support_target_ruby_version?(version); end end @@ -53180,164 +53841,164 @@ end # first the ones needed for autocorrection (if any), then the rest # (unless autocorrections happened). # -# source://rubocop//lib/rubocop/cop/team.rb#13 +# source://rubocop/lib/rubocop/cop/team.rb#13 class RuboCop::Cop::Team # @return [Team] a new instance of Team # - # source://rubocop//lib/rubocop/cop/team.rb#61 + # source://rubocop/lib/rubocop/cop/team.rb#61 def initialize(cops, config = T.unsafe(nil), options = T.unsafe(nil)); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/team.rb#72 + # source://rubocop/lib/rubocop/cop/team.rb#72 def autocorrect?; end # Returns the value of attribute cops. # - # source://rubocop//lib/rubocop/cop/team.rb#57 + # source://rubocop/lib/rubocop/cop/team.rb#57 def cops; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/team.rb#76 + # source://rubocop/lib/rubocop/cop/team.rb#76 def debug?; end # Returns the value of attribute errors. # - # source://rubocop//lib/rubocop/cop/team.rb#57 + # source://rubocop/lib/rubocop/cop/team.rb#57 def errors; end - # source://rubocop//lib/rubocop/cop/team.rb#128 + # source://rubocop/lib/rubocop/cop/team.rb#128 def external_dependency_checksum; end # @deprecated # - # source://rubocop//lib/rubocop/cop/team.rb#120 + # source://rubocop/lib/rubocop/cop/team.rb#120 def forces; end - # source://rubocop//lib/rubocop/cop/team.rb#82 + # source://rubocop/lib/rubocop/cop/team.rb#82 def inspect_file(processed_source); end # @return [Commissioner::InvestigationReport] # - # source://rubocop//lib/rubocop/cop/team.rb#91 + # source://rubocop/lib/rubocop/cop/team.rb#91 def investigate(processed_source, offset: T.unsafe(nil), original: T.unsafe(nil)); end # Returns the value of attribute updated_source_file. # - # source://rubocop//lib/rubocop/cop/team.rb#57 + # source://rubocop/lib/rubocop/cop/team.rb#57 def updated_source_file; end # Returns the value of attribute updated_source_file. # - # source://rubocop//lib/rubocop/cop/team.rb#57 + # source://rubocop/lib/rubocop/cop/team.rb#57 def updated_source_file?; end # Returns the value of attribute warnings. # - # source://rubocop//lib/rubocop/cop/team.rb#57 + # source://rubocop/lib/rubocop/cop/team.rb#57 def warnings; end private - # source://rubocop//lib/rubocop/cop/team.rb#139 + # source://rubocop/lib/rubocop/cop/team.rb#139 def autocorrect(processed_source, report, original:, offset:); end - # source://rubocop//lib/rubocop/cop/team.rb#203 + # source://rubocop/lib/rubocop/cop/team.rb#203 def autocorrect_report(report, offset:, original:); end - # source://rubocop//lib/rubocop/cop/team.rb#158 + # source://rubocop/lib/rubocop/cop/team.rb#158 def be_ready; end - # source://rubocop//lib/rubocop/cop/team.rb#209 + # source://rubocop/lib/rubocop/cop/team.rb#209 def collate_corrections(report, offset:, original:); end - # source://rubocop//lib/rubocop/cop/team.rb#225 + # source://rubocop/lib/rubocop/cop/team.rb#225 def each_corrector(report); end - # source://rubocop//lib/rubocop/cop/team.rb#277 + # source://rubocop/lib/rubocop/cop/team.rb#277 def handle_error(error, location, cop); end - # source://rubocop//lib/rubocop/cop/team.rb#269 + # source://rubocop/lib/rubocop/cop/team.rb#269 def handle_warning(error, location); end # @return [Commissioner::InvestigationReport] # - # source://rubocop//lib/rubocop/cop/team.rb#172 + # source://rubocop/lib/rubocop/cop/team.rb#172 def investigate_partial(cops, processed_source, offset:, original:); end - # source://rubocop//lib/rubocop/cop/team.rb#252 + # source://rubocop/lib/rubocop/cop/team.rb#252 def process_errors(file, errors); end - # source://rubocop//lib/rubocop/cop/team.rb#166 + # source://rubocop/lib/rubocop/cop/team.rb#166 def reset; end # @return [Array] # - # source://rubocop//lib/rubocop/cop/team.rb#178 + # source://rubocop/lib/rubocop/cop/team.rb#178 def roundup_relevant_cops(processed_source); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/team.rb#194 + # source://rubocop/lib/rubocop/cop/team.rb#194 def support_target_rails_version?(cop); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/team.rb#188 + # source://rubocop/lib/rubocop/cop/team.rb#188 def support_target_ruby_version?(cop); end - # source://rubocop//lib/rubocop/cop/team.rb#240 + # source://rubocop/lib/rubocop/cop/team.rb#240 def suppress_clobbering; end - # source://rubocop//lib/rubocop/cop/team.rb#246 + # source://rubocop/lib/rubocop/cop/team.rb#246 def validate_config; end class << self # @return [Array] needed for the given cops # - # source://rubocop//lib/rubocop/cop/team.rb#43 + # source://rubocop/lib/rubocop/cop/team.rb#43 def forces_for(cops); end # @return [Team] with cops assembled from the given `cop_classes` # - # source://rubocop//lib/rubocop/cop/team.rb#28 + # source://rubocop/lib/rubocop/cop/team.rb#28 def mobilize(cop_classes, config, options = T.unsafe(nil)); end # @return [Array] # - # source://rubocop//lib/rubocop/cop/team.rb#34 + # source://rubocop/lib/rubocop/cop/team.rb#34 def mobilize_cops(cop_classes, config, options = T.unsafe(nil)); end # @return [Team] # - # source://rubocop//lib/rubocop/cop/team.rb#15 + # source://rubocop/lib/rubocop/cop/team.rb#15 def new(cop_or_classes, config, options = T.unsafe(nil)); end end end # Common methods shared by TrailingBody cops # -# source://rubocop//lib/rubocop/cop/mixin/trailing_body.rb#6 +# source://rubocop/lib/rubocop/cop/mixin/trailing_body.rb#6 module RuboCop::Cop::TrailingBody # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/mixin/trailing_body.rb#12 + # source://rubocop/lib/rubocop/cop/mixin/trailing_body.rb#12 def body_on_first_line?(node, body); end - # source://rubocop//lib/rubocop/cop/mixin/trailing_body.rb#16 + # source://rubocop/lib/rubocop/cop/mixin/trailing_body.rb#16 def first_part_of(body); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/mixin/trailing_body.rb#7 + # source://rubocop/lib/rubocop/cop/mixin/trailing_body.rb#7 def trailing_body?(node); end end # Common methods shared by Style/TrailingCommaInArguments and # Style/TrailingCommaInLiteral # -# source://rubocop//lib/rubocop/cop/mixin/trailing_comma.rb#7 +# source://rubocop/lib/rubocop/cop/mixin/trailing_comma.rb#7 module RuboCop::Cop::TrailingComma include ::RuboCop::Cop::ConfigurableEnforcedStyle include ::RuboCop::Cop::RangeHelp @@ -53350,63 +54011,63 @@ module RuboCop::Cop::TrailingComma # # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/mixin/trailing_comma.rb#104 + # source://rubocop/lib/rubocop/cop/mixin/trailing_comma.rb#104 def allowed_multiline_argument?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/mixin/trailing_comma.rb#167 + # source://rubocop/lib/rubocop/cop/mixin/trailing_comma.rb#167 def any_heredoc?(items); end - # source://rubocop//lib/rubocop/cop/mixin/trailing_comma.rb#159 + # source://rubocop/lib/rubocop/cop/mixin/trailing_comma.rb#159 def autocorrect_range(item); end - # source://rubocop//lib/rubocop/cop/mixin/trailing_comma.rb#133 + # source://rubocop/lib/rubocop/cop/mixin/trailing_comma.rb#133 def avoid_comma(kind, comma_begin_pos, extra_info); end # Returns true if the node has round/square/curly brackets. # # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/mixin/trailing_comma.rb#82 + # source://rubocop/lib/rubocop/cop/mixin/trailing_comma.rb#82 def brackets?(node); end - # source://rubocop//lib/rubocop/cop/mixin/trailing_comma.rb#19 + # source://rubocop/lib/rubocop/cop/mixin/trailing_comma.rb#19 def check(node, items, kind, begin_pos, end_pos); end - # source://rubocop//lib/rubocop/cop/mixin/trailing_comma.rb#37 + # source://rubocop/lib/rubocop/cop/mixin/trailing_comma.rb#37 def check_comma(node, kind, comma_pos); end - # source://rubocop//lib/rubocop/cop/mixin/trailing_comma.rb#43 + # source://rubocop/lib/rubocop/cop/mixin/trailing_comma.rb#43 def check_literal(node, kind); end - # source://rubocop//lib/rubocop/cop/mixin/trailing_comma.rb#30 + # source://rubocop/lib/rubocop/cop/mixin/trailing_comma.rb#30 def comma_offset(items, range); end - # source://rubocop//lib/rubocop/cop/mixin/trailing_comma.rb#108 + # source://rubocop/lib/rubocop/cop/mixin/trailing_comma.rb#108 def elements(node); end - # source://rubocop//lib/rubocop/cop/mixin/trailing_comma.rb#54 + # source://rubocop/lib/rubocop/cop/mixin/trailing_comma.rb#54 def extra_avoid_comma_info; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/mixin/trailing_comma.rb#171 + # source://rubocop/lib/rubocop/cop/mixin/trailing_comma.rb#171 def heredoc?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/mixin/trailing_comma.rb#189 + # source://rubocop/lib/rubocop/cop/mixin/trailing_comma.rb#189 def heredoc_send?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/mixin/trailing_comma.rb#76 + # source://rubocop/lib/rubocop/cop/mixin/trailing_comma.rb#76 def inside_comment?(range, comma_offset); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/mixin/trailing_comma.rb#93 + # source://rubocop/lib/rubocop/cop/mixin/trailing_comma.rb#93 def method_name_and_arguments_on_same_line?(node); end # Returns true if the round/square/curly brackets of the given node are @@ -53415,242 +54076,242 @@ module RuboCop::Cop::TrailingComma # # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/mixin/trailing_comma.rb#89 + # source://rubocop/lib/rubocop/cop/mixin/trailing_comma.rb#89 def multiline?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/mixin/trailing_comma.rb#123 + # source://rubocop/lib/rubocop/cop/mixin/trailing_comma.rb#123 def no_elements_on_same_line?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/mixin/trailing_comma.rb#129 + # source://rubocop/lib/rubocop/cop/mixin/trailing_comma.rb#129 def on_same_line?(range1, range2); end - # source://rubocop//lib/rubocop/cop/mixin/trailing_comma.rb#147 + # source://rubocop/lib/rubocop/cop/mixin/trailing_comma.rb#147 def put_comma(items, kind); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/mixin/trailing_comma.rb#65 + # source://rubocop/lib/rubocop/cop/mixin/trailing_comma.rb#65 def should_have_comma?(style, node); end - # source://rubocop//lib/rubocop/cop/mixin/trailing_comma.rb#15 + # source://rubocop/lib/rubocop/cop/mixin/trailing_comma.rb#15 def style_parameter_name; end end -# source://rubocop//lib/rubocop/cop/mixin/trailing_comma.rb#11 +# source://rubocop/lib/rubocop/cop/mixin/trailing_comma.rb#11 RuboCop::Cop::TrailingComma::MSG = T.let(T.unsafe(nil), String) # Common functionality shared by Uncommunicative cops # -# source://rubocop//lib/rubocop/cop/mixin/uncommunicative_name.rb#6 +# source://rubocop/lib/rubocop/cop/mixin/uncommunicative_name.rb#6 module RuboCop::Cop::UncommunicativeName - # source://rubocop//lib/rubocop/cop/mixin/uncommunicative_name.rb#12 + # source://rubocop/lib/rubocop/cop/mixin/uncommunicative_name.rb#12 def check(node, args); end private - # source://rubocop//lib/rubocop/cop/mixin/uncommunicative_name.rb#95 + # source://rubocop/lib/rubocop/cop/mixin/uncommunicative_name.rb#95 def allow_nums; end - # source://rubocop//lib/rubocop/cop/mixin/uncommunicative_name.rb#87 + # source://rubocop/lib/rubocop/cop/mixin/uncommunicative_name.rb#87 def allowed_names; end - # source://rubocop//lib/rubocop/cop/mixin/uncommunicative_name.rb#78 + # source://rubocop/lib/rubocop/cop/mixin/uncommunicative_name.rb#78 def arg_range(arg, length); end - # source://rubocop//lib/rubocop/cop/mixin/uncommunicative_name.rb#45 + # source://rubocop/lib/rubocop/cop/mixin/uncommunicative_name.rb#45 def case_offense(node, range); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/mixin/uncommunicative_name.rb#64 + # source://rubocop/lib/rubocop/cop/mixin/uncommunicative_name.rb#64 def ends_with_num?(name); end - # source://rubocop//lib/rubocop/cop/mixin/uncommunicative_name.rb#91 + # source://rubocop/lib/rubocop/cop/mixin/uncommunicative_name.rb#91 def forbidden_names; end - # source://rubocop//lib/rubocop/cop/mixin/uncommunicative_name.rb#83 + # source://rubocop/lib/rubocop/cop/mixin/uncommunicative_name.rb#83 def forbidden_offense(node, range, name); end - # source://rubocop//lib/rubocop/cop/mixin/uncommunicative_name.rb#36 + # source://rubocop/lib/rubocop/cop/mixin/uncommunicative_name.rb#36 def issue_offenses(node, range, name); end - # source://rubocop//lib/rubocop/cop/mixin/uncommunicative_name.rb#68 + # source://rubocop/lib/rubocop/cop/mixin/uncommunicative_name.rb#68 def length_offense(node, range); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/mixin/uncommunicative_name.rb#74 + # source://rubocop/lib/rubocop/cop/mixin/uncommunicative_name.rb#74 def long_enough?(name); end - # source://rubocop//lib/rubocop/cop/mixin/uncommunicative_name.rb#99 + # source://rubocop/lib/rubocop/cop/mixin/uncommunicative_name.rb#99 def min_length; end - # source://rubocop//lib/rubocop/cop/mixin/uncommunicative_name.rb#53 + # source://rubocop/lib/rubocop/cop/mixin/uncommunicative_name.rb#53 def name_type(node); end - # source://rubocop//lib/rubocop/cop/mixin/uncommunicative_name.rb#60 + # source://rubocop/lib/rubocop/cop/mixin/uncommunicative_name.rb#60 def num_offense(node, range); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/mixin/uncommunicative_name.rb#49 + # source://rubocop/lib/rubocop/cop/mixin/uncommunicative_name.rb#49 def uppercase?(name); end end -# source://rubocop//lib/rubocop/cop/mixin/uncommunicative_name.rb#7 +# source://rubocop/lib/rubocop/cop/mixin/uncommunicative_name.rb#7 RuboCop::Cop::UncommunicativeName::CASE_MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/mixin/uncommunicative_name.rb#10 +# source://rubocop/lib/rubocop/cop/mixin/uncommunicative_name.rb#10 RuboCop::Cop::UncommunicativeName::FORBIDDEN_MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/mixin/uncommunicative_name.rb#9 +# source://rubocop/lib/rubocop/cop/mixin/uncommunicative_name.rb#9 RuboCop::Cop::UncommunicativeName::LENGTH_MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/cop/mixin/uncommunicative_name.rb#8 +# source://rubocop/lib/rubocop/cop/mixin/uncommunicative_name.rb#8 RuboCop::Cop::UncommunicativeName::NUM_MSG = T.let(T.unsafe(nil), String) # This autocorrects unused arguments. # -# source://rubocop//lib/rubocop/cop/correctors/unused_arg_corrector.rb#6 +# source://rubocop/lib/rubocop/cop/correctors/unused_arg_corrector.rb#6 class RuboCop::Cop::UnusedArgCorrector extend ::RuboCop::Cop::RangeHelp class << self - # source://rubocop//lib/rubocop/cop/correctors/unused_arg_corrector.rb#12 + # source://rubocop/lib/rubocop/cop/correctors/unused_arg_corrector.rb#12 def correct(corrector, processed_source, node); end - # source://rubocop//lib/rubocop/cop/correctors/unused_arg_corrector.rb#31 + # source://rubocop/lib/rubocop/cop/correctors/unused_arg_corrector.rb#31 def correct_for_blockarg_type(corrector, node); end # Returns the value of attribute processed_source. # - # source://rubocop//lib/rubocop/cop/correctors/unused_arg_corrector.rb#10 + # source://rubocop/lib/rubocop/cop/correctors/unused_arg_corrector.rb#10 def processed_source; end end end # This module contains a collection of useful utility methods. # -# source://rubocop//lib/rubocop/cop/util.rb#7 +# source://rubocop/lib/rubocop/cop/util.rb#7 module RuboCop::Cop::Util include ::RuboCop::PathUtil private - # source://rubocop//lib/rubocop/cop/util.rb#39 + # source://rubocop/lib/rubocop/cop/util.rb#39 def add_parentheses(node, corrector); end - # source://rubocop//lib/rubocop/cop/util.rb#60 + # source://rubocop/lib/rubocop/cop/util.rb#60 def any_descendant?(node, *types); end - # source://rubocop//lib/rubocop/cop/util.rb#75 + # source://rubocop/lib/rubocop/cop/util.rb#75 def args_begin(node); end - # source://rubocop//lib/rubocop/cop/util.rb#87 + # source://rubocop/lib/rubocop/cop/util.rb#87 def args_end(node); end - # source://rubocop//lib/rubocop/cop/util.rb#108 + # source://rubocop/lib/rubocop/cop/util.rb#108 def begins_its_line?(range); end # This is a bad API # - # source://rubocop//lib/rubocop/cop/util.rb#17 + # source://rubocop/lib/rubocop/cop/util.rb#17 def comment_line?(line_source); end # @deprecated Use `ProcessedSource#line_with_comment?`, `contains_comment?` or similar # - # source://rubocop//lib/rubocop/cop/util.rb#22 + # source://rubocop/lib/rubocop/cop/util.rb#22 def comment_lines?(node); end - # source://rubocop//lib/rubocop/cop/util.rb#198 + # source://rubocop/lib/rubocop/cop/util.rb#198 def compatible_external_encoding_for?(src); end # If converting a string to Ruby string literal source code, must # double quotes be used? # - # source://rubocop//lib/rubocop/cop/util.rb#134 + # source://rubocop/lib/rubocop/cop/util.rb#134 def double_quotes_required?(string); end - # source://rubocop//lib/rubocop/cop/util.rb#148 + # source://rubocop/lib/rubocop/cop/util.rb#148 def escape_string(string); end # Returns, for example, a bare `if` node if the given node is an `if` # with calls chained to the end of it. # - # source://rubocop//lib/rubocop/cop/util.rb#118 + # source://rubocop/lib/rubocop/cop/util.rb#118 def first_part_of_call_chain(node); end - # source://rubocop//lib/rubocop/cop/util.rb#203 + # source://rubocop/lib/rubocop/cop/util.rb#203 def include_or_equal?(source, target); end - # source://rubocop//lib/rubocop/cop/util.rb#185 + # source://rubocop/lib/rubocop/cop/util.rb#185 def indent(node, offset: T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/util.rb#165 + # source://rubocop/lib/rubocop/cop/util.rb#165 def interpret_string_escapes(string); end - # source://rubocop//lib/rubocop/cop/util.rb#169 + # source://rubocop/lib/rubocop/cop/util.rb#169 def line(node_or_range); end - # source://rubocop//lib/rubocop/cop/util.rb#30 + # source://rubocop/lib/rubocop/cop/util.rb#30 def line_range(node); end - # source://rubocop//lib/rubocop/cop/util.rb#144 + # source://rubocop/lib/rubocop/cop/util.rb#144 def needs_escaping?(string); end - # source://rubocop//lib/rubocop/cop/util.rb#91 + # source://rubocop/lib/rubocop/cop/util.rb#91 def on_node(syms, sexp, excludes = T.unsafe(nil), &block); end - # source://rubocop//lib/rubocop/cop/util.rb#34 + # source://rubocop/lib/rubocop/cop/util.rb#34 def parentheses?(node); end - # source://rubocop//lib/rubocop/cop/util.rb#177 + # source://rubocop/lib/rubocop/cop/util.rb#177 def same_line?(node1, node2); end - # source://rubocop//lib/rubocop/cop/util.rb#152 + # source://rubocop/lib/rubocop/cop/util.rb#152 def to_string_literal(string); end - # source://rubocop//lib/rubocop/cop/util.rb#191 + # source://rubocop/lib/rubocop/cop/util.rb#191 def to_supported_styles(enforced_style); end - # source://rubocop//lib/rubocop/cop/util.rb#161 + # source://rubocop/lib/rubocop/cop/util.rb#161 def trim_string_interpolation_escape_character(str); end class << self - # source://rubocop//lib/rubocop/cop/util.rb#39 + # source://rubocop/lib/rubocop/cop/util.rb#39 def add_parentheses(node, corrector); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/util.rb#60 + # source://rubocop/lib/rubocop/cop/util.rb#60 def any_descendant?(node, *types); end - # source://rubocop//lib/rubocop/cop/util.rb#75 + # source://rubocop/lib/rubocop/cop/util.rb#75 def args_begin(node); end - # source://rubocop//lib/rubocop/cop/util.rb#87 + # source://rubocop/lib/rubocop/cop/util.rb#87 def args_end(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/util.rb#108 + # source://rubocop/lib/rubocop/cop/util.rb#108 def begins_its_line?(range); end # This is a bad API # # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/util.rb#17 + # source://rubocop/lib/rubocop/cop/util.rb#17 def comment_line?(line_source); end # @deprecated Use `ProcessedSource#line_with_comment?`, `contains_comment?` or similar # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/util.rb#22 + # source://rubocop/lib/rubocop/cop/util.rb#22 def comment_lines?(node); end # If converting a string to Ruby string literal source code, must @@ -53658,119 +54319,119 @@ module RuboCop::Cop::Util # # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/util.rb#134 + # source://rubocop/lib/rubocop/cop/util.rb#134 def double_quotes_required?(string); end - # source://rubocop//lib/rubocop/cop/util.rb#148 + # source://rubocop/lib/rubocop/cop/util.rb#148 def escape_string(string); end # Returns, for example, a bare `if` node if the given node is an `if` # with calls chained to the end of it. # - # source://rubocop//lib/rubocop/cop/util.rb#118 + # source://rubocop/lib/rubocop/cop/util.rb#118 def first_part_of_call_chain(node); end - # source://rubocop//lib/rubocop/cop/util.rb#185 + # source://rubocop/lib/rubocop/cop/util.rb#185 def indent(node, offset: T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/util.rb#165 + # source://rubocop/lib/rubocop/cop/util.rb#165 def interpret_string_escapes(string); end - # source://rubocop//lib/rubocop/cop/util.rb#169 + # source://rubocop/lib/rubocop/cop/util.rb#169 def line(node_or_range); end - # source://rubocop//lib/rubocop/cop/util.rb#30 + # source://rubocop/lib/rubocop/cop/util.rb#30 def line_range(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/util.rb#144 + # source://rubocop/lib/rubocop/cop/util.rb#144 def needs_escaping?(string); end # @yield [sexp] # - # source://rubocop//lib/rubocop/cop/util.rb#91 + # source://rubocop/lib/rubocop/cop/util.rb#91 def on_node(syms, sexp, excludes = T.unsafe(nil), &block); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/util.rb#34 + # source://rubocop/lib/rubocop/cop/util.rb#34 def parentheses?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/util.rb#177 + # source://rubocop/lib/rubocop/cop/util.rb#177 def same_line?(node1, node2); end - # source://rubocop//lib/rubocop/cop/util.rb#152 + # source://rubocop/lib/rubocop/cop/util.rb#152 def to_string_literal(string); end - # source://rubocop//lib/rubocop/cop/util.rb#191 + # source://rubocop/lib/rubocop/cop/util.rb#191 def to_supported_styles(enforced_style); end - # source://rubocop//lib/rubocop/cop/util.rb#161 + # source://rubocop/lib/rubocop/cop/util.rb#161 def trim_string_interpolation_escape_character(str); end end end -# source://rubocop//lib/rubocop/cop/util.rb#103 +# source://rubocop/lib/rubocop/cop/util.rb#103 RuboCop::Cop::Util::LINE_BEGINS_REGEX_CACHE = T.let(T.unsafe(nil), Hash) # Match literal regex characters, not including anchors, character # classes, alternatives, groups, repetitions, references, etc # -# source://rubocop//lib/rubocop/cop/util.rb#12 +# source://rubocop/lib/rubocop/cop/util.rb#12 RuboCop::Cop::Util::LITERAL_REGEX = T.let(T.unsafe(nil), Regexp) # Arbitrarily chosen value, should be enough to cover # the most nested source code in real world projects. # -# source://rubocop//lib/rubocop/cop/util.rb#102 +# source://rubocop/lib/rubocop/cop/util.rb#102 RuboCop::Cop::Util::MAX_LINE_BEGINS_REGEX_INDEX = T.let(T.unsafe(nil), Integer) -# source://rubocop//lib/rubocop/cop/utils/format_string.rb#5 +# source://rubocop/lib/rubocop/cop/utils/format_string.rb#5 module RuboCop::Cop::Utils; end # Parses {Kernel#sprintf} format strings. # -# source://rubocop//lib/rubocop/cop/utils/format_string.rb#7 +# source://rubocop/lib/rubocop/cop/utils/format_string.rb#7 class RuboCop::Cop::Utils::FormatString # @return [FormatString] a new instance of FormatString # - # source://rubocop//lib/rubocop/cop/utils/format_string.rb#89 + # source://rubocop/lib/rubocop/cop/utils/format_string.rb#89 def initialize(string); end - # source://rubocop//lib/rubocop/cop/utils/format_string.rb#93 + # source://rubocop/lib/rubocop/cop/utils/format_string.rb#93 def format_sequences; end - # source://rubocop//lib/rubocop/cop/utils/format_string.rb#105 + # source://rubocop/lib/rubocop/cop/utils/format_string.rb#105 def max_digit_dollar_num; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/utils/format_string.rb#101 + # source://rubocop/lib/rubocop/cop/utils/format_string.rb#101 def named_interpolation?; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/utils/format_string.rb#97 + # source://rubocop/lib/rubocop/cop/utils/format_string.rb#97 def valid?; end private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/utils/format_string.rb#117 + # source://rubocop/lib/rubocop/cop/utils/format_string.rb#117 def mixed_formats?; end - # source://rubocop//lib/rubocop/cop/utils/format_string.rb#111 + # source://rubocop/lib/rubocop/cop/utils/format_string.rb#111 def parse; end end -# source://rubocop//lib/rubocop/cop/utils/format_string.rb#8 +# source://rubocop/lib/rubocop/cop/utils/format_string.rb#8 RuboCop::Cop::Utils::FormatString::DIGIT_DOLLAR = T.let(T.unsafe(nil), Regexp) -# source://rubocop//lib/rubocop/cop/utils/format_string.rb#9 +# source://rubocop/lib/rubocop/cop/utils/format_string.rb#9 RuboCop::Cop::Utils::FormatString::FLAG = T.let(T.unsafe(nil), Regexp) # The syntax of a format sequence is as follows. @@ -53787,145 +54448,145 @@ RuboCop::Cop::Utils::FormatString::FLAG = T.let(T.unsafe(nil), Regexp) # # @see https://ruby-doc.org/core-2.6.3/Kernel.html#method-i-format # -# source://rubocop//lib/rubocop/cop/utils/format_string.rb#43 +# source://rubocop/lib/rubocop/cop/utils/format_string.rb#43 class RuboCop::Cop::Utils::FormatString::FormatSequence # @return [FormatSequence] a new instance of FormatSequence # - # source://rubocop//lib/rubocop/cop/utils/format_string.rb#46 + # source://rubocop/lib/rubocop/cop/utils/format_string.rb#46 def initialize(match); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/utils/format_string.rb#61 + # source://rubocop/lib/rubocop/cop/utils/format_string.rb#61 def annotated?; end # Number of arguments required for the format sequence # - # source://rubocop//lib/rubocop/cop/utils/format_string.rb#70 + # source://rubocop/lib/rubocop/cop/utils/format_string.rb#70 def arity; end # Returns the value of attribute begin_pos. # - # source://rubocop//lib/rubocop/cop/utils/format_string.rb#44 + # source://rubocop/lib/rubocop/cop/utils/format_string.rb#44 def begin_pos; end # Returns the value of attribute end_pos. # - # source://rubocop//lib/rubocop/cop/utils/format_string.rb#44 + # source://rubocop/lib/rubocop/cop/utils/format_string.rb#44 def end_pos; end # Returns the value of attribute flags. # - # source://rubocop//lib/rubocop/cop/utils/format_string.rb#44 + # source://rubocop/lib/rubocop/cop/utils/format_string.rb#44 def flags; end - # source://rubocop//lib/rubocop/cop/utils/format_string.rb#74 + # source://rubocop/lib/rubocop/cop/utils/format_string.rb#74 def max_digit_dollar_num; end # Returns the value of attribute name. # - # source://rubocop//lib/rubocop/cop/utils/format_string.rb#44 + # source://rubocop/lib/rubocop/cop/utils/format_string.rb#44 def name; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/utils/format_string.rb#57 + # source://rubocop/lib/rubocop/cop/utils/format_string.rb#57 def percent?; end # Returns the value of attribute precision. # - # source://rubocop//lib/rubocop/cop/utils/format_string.rb#44 + # source://rubocop/lib/rubocop/cop/utils/format_string.rb#44 def precision; end - # source://rubocop//lib/rubocop/cop/utils/format_string.rb#78 + # source://rubocop/lib/rubocop/cop/utils/format_string.rb#78 def style; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/utils/format_string.rb#65 + # source://rubocop/lib/rubocop/cop/utils/format_string.rb#65 def template?; end # Returns the value of attribute type. # - # source://rubocop//lib/rubocop/cop/utils/format_string.rb#44 + # source://rubocop/lib/rubocop/cop/utils/format_string.rb#44 def type; end # Returns the value of attribute width. # - # source://rubocop//lib/rubocop/cop/utils/format_string.rb#44 + # source://rubocop/lib/rubocop/cop/utils/format_string.rb#44 def width; end end -# source://rubocop//lib/rubocop/cop/utils/format_string.rb#15 +# source://rubocop/lib/rubocop/cop/utils/format_string.rb#15 RuboCop::Cop::Utils::FormatString::NAME = T.let(T.unsafe(nil), Regexp) -# source://rubocop//lib/rubocop/cop/utils/format_string.rb#11 +# source://rubocop/lib/rubocop/cop/utils/format_string.rb#11 RuboCop::Cop::Utils::FormatString::NUMBER = T.let(T.unsafe(nil), Regexp) -# source://rubocop//lib/rubocop/cop/utils/format_string.rb#10 +# source://rubocop/lib/rubocop/cop/utils/format_string.rb#10 RuboCop::Cop::Utils::FormatString::NUMBER_ARG = T.let(T.unsafe(nil), Regexp) -# source://rubocop//lib/rubocop/cop/utils/format_string.rb#13 +# source://rubocop/lib/rubocop/cop/utils/format_string.rb#13 RuboCop::Cop::Utils::FormatString::PRECISION = T.let(T.unsafe(nil), Regexp) -# source://rubocop//lib/rubocop/cop/utils/format_string.rb#18 +# source://rubocop/lib/rubocop/cop/utils/format_string.rb#18 RuboCop::Cop::Utils::FormatString::SEQUENCE = T.let(T.unsafe(nil), Regexp) -# source://rubocop//lib/rubocop/cop/utils/format_string.rb#16 +# source://rubocop/lib/rubocop/cop/utils/format_string.rb#16 RuboCop::Cop::Utils::FormatString::TEMPLATE_NAME = T.let(T.unsafe(nil), Regexp) -# source://rubocop//lib/rubocop/cop/utils/format_string.rb#14 +# source://rubocop/lib/rubocop/cop/utils/format_string.rb#14 RuboCop::Cop::Utils::FormatString::TYPE = T.let(T.unsafe(nil), Regexp) -# source://rubocop//lib/rubocop/cop/utils/format_string.rb#12 +# source://rubocop/lib/rubocop/cop/utils/format_string.rb#12 RuboCop::Cop::Utils::FormatString::WIDTH = T.let(T.unsafe(nil), Regexp) # Helper to abstract complexity of building range pairs # with octal escape reconstruction (needed for regexp_parser < 2.7). # -# source://rubocop//lib/rubocop/cop/utils/regexp_ranges.rb#8 +# source://rubocop/lib/rubocop/cop/utils/regexp_ranges.rb#8 class RuboCop::Cop::Utils::RegexpRanges # @return [RegexpRanges] a new instance of RegexpRanges # - # source://rubocop//lib/rubocop/cop/utils/regexp_ranges.rb#11 + # source://rubocop/lib/rubocop/cop/utils/regexp_ranges.rb#11 def initialize(root); end - # source://rubocop//lib/rubocop/cop/utils/regexp_ranges.rb#18 + # source://rubocop/lib/rubocop/cop/utils/regexp_ranges.rb#18 def compound_token; end - # source://rubocop//lib/rubocop/cop/utils/regexp_ranges.rb#24 + # source://rubocop/lib/rubocop/cop/utils/regexp_ranges.rb#24 def pairs; end # Returns the value of attribute root. # - # source://rubocop//lib/rubocop/cop/utils/regexp_ranges.rb#9 + # source://rubocop/lib/rubocop/cop/utils/regexp_ranges.rb#9 def root; end private - # source://rubocop//lib/rubocop/cop/utils/regexp_ranges.rb#78 + # source://rubocop/lib/rubocop/cop/utils/regexp_ranges.rb#78 def compose_range(expressions, current); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/utils/regexp_ranges.rb#90 + # source://rubocop/lib/rubocop/cop/utils/regexp_ranges.rb#90 def escaped_octal?(expr); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/utils/regexp_ranges.rb#94 + # source://rubocop/lib/rubocop/cop/utils/regexp_ranges.rb#94 def octal_digit?(char); end - # source://rubocop//lib/rubocop/cop/utils/regexp_ranges.rb#98 + # source://rubocop/lib/rubocop/cop/utils/regexp_ranges.rb#98 def pop_octal_digits(expressions); end - # source://rubocop//lib/rubocop/cop/utils/regexp_ranges.rb#44 + # source://rubocop/lib/rubocop/cop/utils/regexp_ranges.rb#44 def populate(expr); end - # source://rubocop//lib/rubocop/cop/utils/regexp_ranges.rb#32 + # source://rubocop/lib/rubocop/cop/utils/regexp_ranges.rb#32 def populate_all; end - # source://rubocop//lib/rubocop/cop/utils/regexp_ranges.rb#63 + # source://rubocop/lib/rubocop/cop/utils/regexp_ranges.rb#63 def process_set(expressions, current); end end @@ -53952,65 +54613,65 @@ end # # @api private # -# source://rubocop//lib/rubocop/cop/variable_force.rb#27 +# source://rubocop/lib/rubocop/cop/variable_force.rb#27 class RuboCop::Cop::VariableForce < ::RuboCop::Cop::Force # Starting point. # # @api private # - # source://rubocop//lib/rubocop/cop/variable_force.rb#79 + # source://rubocop/lib/rubocop/cop/variable_force.rb#79 def investigate(processed_source); end # @api private # - # source://rubocop//lib/rubocop/cop/variable_force.rb#88 + # source://rubocop/lib/rubocop/cop/variable_force.rb#88 def process_node(node); end # @api private # - # source://rubocop//lib/rubocop/cop/variable_force.rb#74 + # source://rubocop/lib/rubocop/cop/variable_force.rb#74 def variable_table; end private - # source://rubocop//lib/rubocop/cop/variable_force.rb#380 + # source://rubocop/lib/rubocop/cop/variable_force.rb#374 def after_declaring_variable(arg); end - # source://rubocop//lib/rubocop/cop/variable_force.rb#380 + # source://rubocop/lib/rubocop/cop/variable_force.rb#374 def after_entering_scope(arg); end - # source://rubocop//lib/rubocop/cop/variable_force.rb#380 + # source://rubocop/lib/rubocop/cop/variable_force.rb#374 def after_leaving_scope(arg); end - # source://rubocop//lib/rubocop/cop/variable_force.rb#380 + # source://rubocop/lib/rubocop/cop/variable_force.rb#374 def before_declaring_variable(arg); end - # source://rubocop//lib/rubocop/cop/variable_force.rb#380 + # source://rubocop/lib/rubocop/cop/variable_force.rb#374 def before_entering_scope(arg); end - # source://rubocop//lib/rubocop/cop/variable_force.rb#380 + # source://rubocop/lib/rubocop/cop/variable_force.rb#374 def before_leaving_scope(arg); end # @api private # - # source://rubocop//lib/rubocop/cop/variable_force.rb#351 + # source://rubocop/lib/rubocop/cop/variable_force.rb#346 def descendant_reference(node); end # @api private # - # source://rubocop//lib/rubocop/cop/variable_force.rb#341 + # source://rubocop/lib/rubocop/cop/variable_force.rb#336 def each_descendant_reference(loop_node); end # @api private # - # source://rubocop//lib/rubocop/cop/variable_force.rb#326 + # source://rubocop/lib/rubocop/cop/variable_force.rb#321 def find_variables_in_loop(loop_node); end # This is called for each scope recursively. # # @api private # - # source://rubocop//lib/rubocop/cop/variable_force.rb#97 + # source://rubocop/lib/rubocop/cop/variable_force.rb#97 def inspect_variables_in_scope(scope_node); end # Mark all assignments which are referenced in the same loop @@ -54019,239 +54680,239 @@ class RuboCop::Cop::VariableForce < ::RuboCop::Cop::Force # # @api private # - # source://rubocop//lib/rubocop/cop/variable_force.rb#307 + # source://rubocop/lib/rubocop/cop/variable_force.rb#302 def mark_assignments_as_referenced_in_loop(node); end # @api private # - # source://rubocop//lib/rubocop/cop/variable_force.rb#130 + # source://rubocop/lib/rubocop/cop/variable_force.rb#130 def node_handler_method_name(node); end # @api private # - # source://rubocop//lib/rubocop/cop/variable_force.rb#103 + # source://rubocop/lib/rubocop/cop/variable_force.rb#103 def process_children(origin_node); end # @api private # - # source://rubocop//lib/rubocop/cop/variable_force.rb#243 + # source://rubocop/lib/rubocop/cop/variable_force.rb#238 def process_loop(node); end # @api private # - # source://rubocop//lib/rubocop/cop/variable_force.rb#182 + # source://rubocop/lib/rubocop/cop/variable_force.rb#182 def process_pattern_match_variable(node); end # @api private # - # source://rubocop//lib/rubocop/cop/variable_force.rb#164 + # source://rubocop/lib/rubocop/cop/variable_force.rb#164 def process_regexp_named_captures(node); end # @api private # - # source://rubocop//lib/rubocop/cop/variable_force.rb#258 + # source://rubocop/lib/rubocop/cop/variable_force.rb#253 def process_rescue(node); end # @api private # - # source://rubocop//lib/rubocop/cop/variable_force.rb#277 + # source://rubocop/lib/rubocop/cop/variable_force.rb#272 def process_scope(node); end # @api private # - # source://rubocop//lib/rubocop/cop/variable_force.rb#296 + # source://rubocop/lib/rubocop/cop/variable_force.rb#291 def process_send(node); end # @api private # - # source://rubocop//lib/rubocop/cop/variable_force.rb#146 + # source://rubocop/lib/rubocop/cop/variable_force.rb#146 def process_variable_assignment(node); end # @api private # - # source://rubocop//lib/rubocop/cop/variable_force.rb#134 + # source://rubocop/lib/rubocop/cop/variable_force.rb#134 def process_variable_declaration(node); end # @api private # - # source://rubocop//lib/rubocop/cop/variable_force.rb#231 + # source://rubocop/lib/rubocop/cop/variable_force.rb#226 def process_variable_multiple_assignment(node); end # @api private # - # source://rubocop//lib/rubocop/cop/variable_force.rb#196 + # source://rubocop/lib/rubocop/cop/variable_force.rb#196 def process_variable_operator_assignment(node); end # @api private # - # source://rubocop//lib/rubocop/cop/variable_force.rb#238 + # source://rubocop/lib/rubocop/cop/variable_force.rb#233 def process_variable_referencing(node); end # @api private # - # source://rubocop//lib/rubocop/cop/variable_force.rb#269 + # source://rubocop/lib/rubocop/cop/variable_force.rb#264 def process_zero_arity_super(node); end # @api private # - # source://rubocop//lib/rubocop/cop/variable_force.rb#190 + # source://rubocop/lib/rubocop/cop/variable_force.rb#190 def regexp_captured_names(node); end # @api private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/variable_force.rb#363 + # source://rubocop/lib/rubocop/cop/variable_force.rb#357 def scanned_node?(node); end # @api private # - # source://rubocop//lib/rubocop/cop/variable_force.rb#367 + # source://rubocop/lib/rubocop/cop/variable_force.rb#361 def scanned_nodes; end # @api private # - # source://rubocop//lib/rubocop/cop/variable_force.rb#111 + # source://rubocop/lib/rubocop/cop/variable_force.rb#111 def skip_children!; end # @api private # - # source://rubocop//lib/rubocop/cop/variable_force.rb#290 + # source://rubocop/lib/rubocop/cop/variable_force.rb#285 def twisted_nodes(node); end end # @api private # -# source://rubocop//lib/rubocop/cop/variable_force.rb#35 +# source://rubocop/lib/rubocop/cop/variable_force.rb#35 RuboCop::Cop::VariableForce::ARGUMENT_DECLARATION_TYPES = T.let(T.unsafe(nil), Array) # This class represents each assignment of a variable. # -# source://rubocop//lib/rubocop/cop/variable_force/assignment.rb#7 +# source://rubocop/lib/rubocop/cop/variable_force/assignment.rb#7 class RuboCop::Cop::VariableForce::Assignment include ::RuboCop::Cop::VariableForce::Branchable # @return [Assignment] a new instance of Assignment # - # source://rubocop//lib/rubocop/cop/variable_force/assignment.rb#17 + # 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#58 + # 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#80 + # source://rubocop/lib/rubocop/cop/variable_force/assignment.rb#80 def for_assignment?; end - # source://rubocop//lib/rubocop/cop/variable_force/assignment.rb#91 + # 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#68 + # source://rubocop/lib/rubocop/cop/variable_force/assignment.rb#68 def multiple_assignment?; end - # source://rubocop//lib/rubocop/cop/variable_force/assignment.rb#31 + # source://rubocop/lib/rubocop/cop/variable_force/assignment.rb#31 def name; end # Returns the value of attribute node. # - # source://rubocop//lib/rubocop/cop/variable_force/assignment.rb#12 + # source://rubocop/lib/rubocop/cop/variable_force/assignment.rb#12 def node; end - # source://rubocop//lib/rubocop/cop/variable_force/assignment.rb#86 + # source://rubocop/lib/rubocop/cop/variable_force/assignment.rb#86 def operator; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/variable_force/assignment.rb#62 + # source://rubocop/lib/rubocop/cop/variable_force/assignment.rb#62 def operator_assignment?; end # Returns the value of attribute reassigned. # - # source://rubocop//lib/rubocop/cop/variable_force/assignment.rb#12 + # source://rubocop/lib/rubocop/cop/variable_force/assignment.rb#12 def reassigned; end - # source://rubocop//lib/rubocop/cop/variable_force/assignment.rb#44 + # 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 + # source://rubocop/lib/rubocop/cop/variable_force/assignment.rb#12 def reassigned?; end - # source://rubocop//lib/rubocop/cop/variable_force/assignment.rb#39 + # source://rubocop/lib/rubocop/cop/variable_force/assignment.rb#39 def reference!(node); end # Returns the value of attribute referenced. # - # source://rubocop//lib/rubocop/cop/variable_force/assignment.rb#12 + # source://rubocop/lib/rubocop/cop/variable_force/assignment.rb#12 def referenced; end # Returns the value of attribute referenced. # - # source://rubocop//lib/rubocop/cop/variable_force/assignment.rb#12 + # source://rubocop/lib/rubocop/cop/variable_force/assignment.rb#12 def referenced?; end # Returns the value of attribute references. # - # source://rubocop//lib/rubocop/cop/variable_force/assignment.rb#12 + # source://rubocop/lib/rubocop/cop/variable_force/assignment.rb#12 def references; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/variable_force/assignment.rb#54 + # 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#74 + # source://rubocop/lib/rubocop/cop/variable_force/assignment.rb#74 def rest_assignment?; end - # source://rubocop//lib/rubocop/cop/variable_force/assignment.rb#35 + # source://rubocop/lib/rubocop/cop/variable_force/assignment.rb#35 def scope; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/variable_force/assignment.rb#50 + # source://rubocop/lib/rubocop/cop/variable_force/assignment.rb#50 def used?; end # Returns the value of attribute variable. # - # source://rubocop//lib/rubocop/cop/variable_force/assignment.rb#12 + # source://rubocop/lib/rubocop/cop/variable_force/assignment.rb#12 def variable; end private - # source://rubocop//lib/rubocop/cop/variable_force/assignment.rb#140 + # 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#130 + # source://rubocop/lib/rubocop/cop/variable_force/assignment.rb#130 def for_assignment_node; end - # source://rubocop//lib/rubocop/cop/variable_force/assignment.rb#112 + # source://rubocop/lib/rubocop/cop/variable_force/assignment.rb#112 def multiple_assignment_node; end - # source://rubocop//lib/rubocop/cop/variable_force/assignment.rb#104 + # source://rubocop/lib/rubocop/cop/variable_force/assignment.rb#104 def operator_assignment_node; end - # source://rubocop//lib/rubocop/cop/variable_force/assignment.rb#123 + # source://rubocop/lib/rubocop/cop/variable_force/assignment.rb#123 def rest_assignment_node; end end -# source://rubocop//lib/rubocop/cop/variable_force/assignment.rb#10 +# source://rubocop/lib/rubocop/cop/variable_force/assignment.rb#10 RuboCop::Cop::VariableForce::Assignment::MULTIPLE_LEFT_HAND_SIDE_TYPE = T.let(T.unsafe(nil), Symbol) # @api private # -# source://rubocop//lib/rubocop/cop/variable_force.rb#68 +# source://rubocop/lib/rubocop/cop/variable_force.rb#68 class RuboCop::Cop::VariableForce::AssignmentReference < ::Struct # @api private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/variable_force.rb#69 + # source://rubocop/lib/rubocop/cop/variable_force.rb#69 def assignment?; end # Returns the value of attribute node @@ -54276,24 +54937,24 @@ end # Namespace for branch classes for each control structure. # -# source://rubocop//lib/rubocop/cop/variable_force/branch.rb#7 +# source://rubocop/lib/rubocop/cop/variable_force/branch.rb#7 module RuboCop::Cop::VariableForce::Branch class << self - # source://rubocop//lib/rubocop/cop/variable_force/branch.rb#8 + # source://rubocop/lib/rubocop/cop/variable_force/branch.rb#8 def of(target_node, scope: T.unsafe(nil)); end end end # left_body && right_body # -# source://rubocop//lib/rubocop/cop/variable_force/branch.rb#265 +# source://rubocop/lib/rubocop/cop/variable_force/branch.rb#265 class RuboCop::Cop::VariableForce::Branch::And < ::RuboCop::Cop::VariableForce::Branch::Base include ::RuboCop::Cop::VariableForce::Branch::LogicalOperator - # source://rubocop//lib/rubocop/cop/variable_force/branch.rb#57 + # source://rubocop/lib/rubocop/cop/variable_force/branch.rb#57 def left_body?; end - # source://rubocop//lib/rubocop/cop/variable_force/branch.rb#57 + # source://rubocop/lib/rubocop/cop/variable_force/branch.rb#57 def right_body?; end end @@ -54317,20 +54978,20 @@ end # do_something # no branch # end # -# source://rubocop//lib/rubocop/cop/variable_force/branch.rb#42 +# source://rubocop/lib/rubocop/cop/variable_force/branch.rb#42 class RuboCop::Cop::VariableForce::Branch::Base < ::Struct - # source://rubocop//lib/rubocop/cop/variable_force/branch.rb#121 + # source://rubocop/lib/rubocop/cop/variable_force/branch.rb#121 def ==(other); end # @raise [NotImplementedError] # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/variable_force/branch.rb#92 + # source://rubocop/lib/rubocop/cop/variable_force/branch.rb#92 def always_run?; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/variable_force/branch.rb#88 + # source://rubocop/lib/rubocop/cop/variable_force/branch.rb#88 def branched?; end # Returns the value of attribute child_node @@ -54344,37 +55005,37 @@ class RuboCop::Cop::VariableForce::Branch::Base < ::Struct # @return [Object] the newly set value def child_node=(_); end - # source://rubocop//lib/rubocop/cop/variable_force/branch.rb#70 + # source://rubocop/lib/rubocop/cop/variable_force/branch.rb#70 def control_node; end # @yield [_self] # @yieldparam _self [RuboCop::Cop::VariableForce::Branch::Base] the object that the method was called on # - # source://rubocop//lib/rubocop/cop/variable_force/branch.rb#80 + # source://rubocop/lib/rubocop/cop/variable_force/branch.rb#80 def each_ancestor(include_self: T.unsafe(nil), &block); end - # source://rubocop//lib/rubocop/cop/variable_force/branch.rb#121 + # source://rubocop/lib/rubocop/cop/variable_force/branch.rb#121 def eql?(other); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/variable_force/branch.rb#104 + # source://rubocop/lib/rubocop/cop/variable_force/branch.rb#104 def exclusive_with?(other); end - # source://rubocop//lib/rubocop/cop/variable_force/branch.rb#129 + # source://rubocop/lib/rubocop/cop/variable_force/branch.rb#129 def hash; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/variable_force/branch.rb#96 + # source://rubocop/lib/rubocop/cop/variable_force/branch.rb#96 def may_jump_to_other_branch?; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/variable_force/branch.rb#100 + # source://rubocop/lib/rubocop/cop/variable_force/branch.rb#100 def may_run_incompletely?; end - # source://rubocop//lib/rubocop/cop/variable_force/branch.rb#74 + # source://rubocop/lib/rubocop/cop/variable_force/branch.rb#74 def parent; end # Returns the value of attribute scope @@ -54390,21 +55051,21 @@ class RuboCop::Cop::VariableForce::Branch::Base < ::Struct private - # source://rubocop//lib/rubocop/cop/variable_force/branch.rb#135 + # source://rubocop/lib/rubocop/cop/variable_force/branch.rb#135 def scan_ancestors; end class << self def [](*_arg0); end - # source://rubocop//lib/rubocop/cop/variable_force/branch.rb#43 + # source://rubocop/lib/rubocop/cop/variable_force/branch.rb#43 def classes; end - # source://rubocop//lib/rubocop/cop/variable_force/branch.rb#56 + # source://rubocop/lib/rubocop/cop/variable_force/branch.rb#56 def define_predicate(name, child_index: T.unsafe(nil)); end # @private # - # source://rubocop//lib/rubocop/cop/variable_force/branch.rb#47 + # source://rubocop/lib/rubocop/cop/variable_force/branch.rb#47 def inherited(subclass); end def inspect; end @@ -54412,12 +55073,12 @@ class RuboCop::Cop::VariableForce::Branch::Base < ::Struct def members; end def new(*_arg0); end - # source://rubocop//lib/rubocop/cop/variable_force/branch.rb#52 + # source://rubocop/lib/rubocop/cop/variable_force/branch.rb#52 def type; end end end -# source://rubocop//lib/rubocop/cop/variable_force/branch.rb#325 +# source://rubocop/lib/rubocop/cop/variable_force/branch.rb#325 RuboCop::Cop::VariableForce::Branch::CLASSES_BY_TYPE = T.let(T.unsafe(nil), Hash) # case target @@ -54426,20 +55087,20 @@ RuboCop::Cop::VariableForce::Branch::CLASSES_BY_TYPE = T.let(T.unsafe(nil), Hash # else_body # end # -# source://rubocop//lib/rubocop/cop/variable_force/branch.rb#219 +# source://rubocop/lib/rubocop/cop/variable_force/branch.rb#219 class RuboCop::Cop::VariableForce::Branch::Case < ::RuboCop::Cop::VariableForce::Branch::Base # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/variable_force/branch.rb#224 + # source://rubocop/lib/rubocop/cop/variable_force/branch.rb#224 def always_run?; end - # source://rubocop//lib/rubocop/cop/variable_force/branch.rb#57 + # source://rubocop/lib/rubocop/cop/variable_force/branch.rb#57 def else_body?; end - # source://rubocop//lib/rubocop/cop/variable_force/branch.rb#57 + # source://rubocop/lib/rubocop/cop/variable_force/branch.rb#57 def target?; end - # source://rubocop//lib/rubocop/cop/variable_force/branch.rb#57 + # source://rubocop/lib/rubocop/cop/variable_force/branch.rb#57 def when_clause?; end end @@ -54449,20 +55110,20 @@ end # else_body # end # -# source://rubocop//lib/rubocop/cop/variable_force/branch.rb#234 +# source://rubocop/lib/rubocop/cop/variable_force/branch.rb#234 class RuboCop::Cop::VariableForce::Branch::CaseMatch < ::RuboCop::Cop::VariableForce::Branch::Base # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/variable_force/branch.rb#239 + # source://rubocop/lib/rubocop/cop/variable_force/branch.rb#239 def always_run?; end - # source://rubocop//lib/rubocop/cop/variable_force/branch.rb#57 + # source://rubocop/lib/rubocop/cop/variable_force/branch.rb#57 def else_body?; end - # source://rubocop//lib/rubocop/cop/variable_force/branch.rb#57 + # source://rubocop/lib/rubocop/cop/variable_force/branch.rb#57 def in_pattern?; end - # source://rubocop//lib/rubocop/cop/variable_force/branch.rb#57 + # source://rubocop/lib/rubocop/cop/variable_force/branch.rb#57 def target?; end end @@ -54472,34 +55133,34 @@ end # ensure_body # end # -# source://rubocop//lib/rubocop/cop/variable_force/branch.rb#314 +# source://rubocop/lib/rubocop/cop/variable_force/branch.rb#314 class RuboCop::Cop::VariableForce::Branch::Ensure < ::RuboCop::Cop::VariableForce::Branch::Base include ::RuboCop::Cop::VariableForce::Branch::ExceptionHandler # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/variable_force/branch.rb#320 + # source://rubocop/lib/rubocop/cop/variable_force/branch.rb#320 def always_run?; end - # source://rubocop//lib/rubocop/cop/variable_force/branch.rb#57 + # source://rubocop/lib/rubocop/cop/variable_force/branch.rb#57 def ensure_body?; end - # source://rubocop//lib/rubocop/cop/variable_force/branch.rb#57 + # source://rubocop/lib/rubocop/cop/variable_force/branch.rb#57 def main_body?; end end # Mix-in module for exception handling control structures. # -# source://rubocop//lib/rubocop/cop/variable_force/branch.rb#281 +# source://rubocop/lib/rubocop/cop/variable_force/branch.rb#281 module RuboCop::Cop::VariableForce::Branch::ExceptionHandler # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/variable_force/branch.rb#282 + # source://rubocop/lib/rubocop/cop/variable_force/branch.rb#282 def may_jump_to_other_branch?; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/variable_force/branch.rb#286 + # source://rubocop/lib/rubocop/cop/variable_force/branch.rb#286 def may_run_incompletely?; end end @@ -54507,20 +55168,20 @@ end # loop_body # end # -# source://rubocop//lib/rubocop/cop/variable_force/branch.rb#247 +# source://rubocop/lib/rubocop/cop/variable_force/branch.rb#247 class RuboCop::Cop::VariableForce::Branch::For < ::RuboCop::Cop::VariableForce::Branch::Base # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/variable_force/branch.rb#252 + # source://rubocop/lib/rubocop/cop/variable_force/branch.rb#252 def always_run?; end - # source://rubocop//lib/rubocop/cop/variable_force/branch.rb#57 + # source://rubocop/lib/rubocop/cop/variable_force/branch.rb#57 def collection?; end - # source://rubocop//lib/rubocop/cop/variable_force/branch.rb#57 + # source://rubocop/lib/rubocop/cop/variable_force/branch.rb#57 def element?; end - # source://rubocop//lib/rubocop/cop/variable_force/branch.rb#57 + # source://rubocop/lib/rubocop/cop/variable_force/branch.rb#57 def loop_body?; end end @@ -54536,40 +55197,40 @@ end # truthy_body # end # -# source://rubocop//lib/rubocop/cop/variable_force/branch.rb#166 +# source://rubocop/lib/rubocop/cop/variable_force/branch.rb#166 class RuboCop::Cop::VariableForce::Branch::If < ::RuboCop::Cop::VariableForce::Branch::Base include ::RuboCop::Cop::VariableForce::Branch::SimpleConditional - # source://rubocop//lib/rubocop/cop/variable_force/branch.rb#57 + # source://rubocop/lib/rubocop/cop/variable_force/branch.rb#57 def conditional_clause?; end - # source://rubocop//lib/rubocop/cop/variable_force/branch.rb#57 + # source://rubocop/lib/rubocop/cop/variable_force/branch.rb#57 def falsey_body?; end - # source://rubocop//lib/rubocop/cop/variable_force/branch.rb#57 + # source://rubocop/lib/rubocop/cop/variable_force/branch.rb#57 def truthy_body?; end end # Mix-in module for logical operator control structures. # -# source://rubocop//lib/rubocop/cop/variable_force/branch.rb#258 +# source://rubocop/lib/rubocop/cop/variable_force/branch.rb#258 module RuboCop::Cop::VariableForce::Branch::LogicalOperator # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/variable_force/branch.rb#259 + # source://rubocop/lib/rubocop/cop/variable_force/branch.rb#259 def always_run?; end end # left_body || right_body # -# source://rubocop//lib/rubocop/cop/variable_force/branch.rb#273 +# source://rubocop/lib/rubocop/cop/variable_force/branch.rb#273 class RuboCop::Cop::VariableForce::Branch::Or < ::RuboCop::Cop::VariableForce::Branch::Base include ::RuboCop::Cop::VariableForce::Branch::LogicalOperator - # source://rubocop//lib/rubocop/cop/variable_force/branch.rb#57 + # source://rubocop/lib/rubocop/cop/variable_force/branch.rb#57 def left_body?; end - # source://rubocop//lib/rubocop/cop/variable_force/branch.rb#57 + # source://rubocop/lib/rubocop/cop/variable_force/branch.rb#57 def right_body?; end end @@ -54580,38 +55241,38 @@ end # else_body # end # -# source://rubocop//lib/rubocop/cop/variable_force/branch.rb#297 +# source://rubocop/lib/rubocop/cop/variable_force/branch.rb#297 class RuboCop::Cop::VariableForce::Branch::Rescue < ::RuboCop::Cop::VariableForce::Branch::Base include ::RuboCop::Cop::VariableForce::Branch::ExceptionHandler # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/variable_force/branch.rb#304 + # source://rubocop/lib/rubocop/cop/variable_force/branch.rb#304 def always_run?; end - # source://rubocop//lib/rubocop/cop/variable_force/branch.rb#57 + # source://rubocop/lib/rubocop/cop/variable_force/branch.rb#57 def else_body?; end - # source://rubocop//lib/rubocop/cop/variable_force/branch.rb#57 + # source://rubocop/lib/rubocop/cop/variable_force/branch.rb#57 def main_body?; end - # source://rubocop//lib/rubocop/cop/variable_force/branch.rb#57 + # source://rubocop/lib/rubocop/cop/variable_force/branch.rb#57 def rescue_clause?; end end # Mix-in module for simple conditional control structures. # -# source://rubocop//lib/rubocop/cop/variable_force/branch.rb#145 +# source://rubocop/lib/rubocop/cop/variable_force/branch.rb#145 module RuboCop::Cop::VariableForce::Branch::SimpleConditional # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/variable_force/branch.rb#150 + # source://rubocop/lib/rubocop/cop/variable_force/branch.rb#150 def always_run?; end # @raise [NotImplementedError] # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/variable_force/branch.rb#146 + # source://rubocop/lib/rubocop/cop/variable_force/branch.rb#146 def conditional_clause?; end end @@ -54619,14 +55280,14 @@ end # loop_body # end # -# source://rubocop//lib/rubocop/cop/variable_force/branch.rb#187 +# source://rubocop/lib/rubocop/cop/variable_force/branch.rb#187 class RuboCop::Cop::VariableForce::Branch::Until < ::RuboCop::Cop::VariableForce::Branch::Base include ::RuboCop::Cop::VariableForce::Branch::SimpleConditional - # source://rubocop//lib/rubocop/cop/variable_force/branch.rb#57 + # source://rubocop/lib/rubocop/cop/variable_force/branch.rb#57 def conditional_clause?; end - # source://rubocop//lib/rubocop/cop/variable_force/branch.rb#57 + # source://rubocop/lib/rubocop/cop/variable_force/branch.rb#57 def loop_body?; end end @@ -54634,14 +55295,14 @@ end # loop_body # end until conditional_clause # -# source://rubocop//lib/rubocop/cop/variable_force/branch.rb#207 +# source://rubocop/lib/rubocop/cop/variable_force/branch.rb#207 class RuboCop::Cop::VariableForce::Branch::UntilPost < ::RuboCop::Cop::VariableForce::Branch::Base include ::RuboCop::Cop::VariableForce::Branch::SimpleConditional - # source://rubocop//lib/rubocop/cop/variable_force/branch.rb#57 + # source://rubocop/lib/rubocop/cop/variable_force/branch.rb#57 def conditional_clause?; end - # source://rubocop//lib/rubocop/cop/variable_force/branch.rb#57 + # source://rubocop/lib/rubocop/cop/variable_force/branch.rb#57 def loop_body?; end end @@ -54649,14 +55310,14 @@ end # loop_body # end # -# source://rubocop//lib/rubocop/cop/variable_force/branch.rb#177 +# source://rubocop/lib/rubocop/cop/variable_force/branch.rb#177 class RuboCop::Cop::VariableForce::Branch::While < ::RuboCop::Cop::VariableForce::Branch::Base include ::RuboCop::Cop::VariableForce::Branch::SimpleConditional - # source://rubocop//lib/rubocop/cop/variable_force/branch.rb#57 + # source://rubocop/lib/rubocop/cop/variable_force/branch.rb#57 def conditional_clause?; end - # source://rubocop//lib/rubocop/cop/variable_force/branch.rb#57 + # source://rubocop/lib/rubocop/cop/variable_force/branch.rb#57 def loop_body?; end end @@ -54664,90 +55325,90 @@ end # loop_body # end while conditional_clause # -# source://rubocop//lib/rubocop/cop/variable_force/branch.rb#197 +# source://rubocop/lib/rubocop/cop/variable_force/branch.rb#197 class RuboCop::Cop::VariableForce::Branch::WhilePost < ::RuboCop::Cop::VariableForce::Branch::Base include ::RuboCop::Cop::VariableForce::Branch::SimpleConditional - # source://rubocop//lib/rubocop/cop/variable_force/branch.rb#57 + # source://rubocop/lib/rubocop/cop/variable_force/branch.rb#57 def conditional_clause?; end - # source://rubocop//lib/rubocop/cop/variable_force/branch.rb#57 + # source://rubocop/lib/rubocop/cop/variable_force/branch.rb#57 def loop_body?; end end # Mix-in module for classes which own a node and need branch information # of the node. The user classes must implement #node and #scope. # -# source://rubocop//lib/rubocop/cop/variable_force/branchable.rb#8 +# source://rubocop/lib/rubocop/cop/variable_force/branchable.rb#8 module RuboCop::Cop::VariableForce::Branchable - # source://rubocop//lib/rubocop/cop/variable_force/branchable.rb#9 + # source://rubocop/lib/rubocop/cop/variable_force/branchable.rb#9 def branch; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/variable_force/branchable.rb#15 + # source://rubocop/lib/rubocop/cop/variable_force/branchable.rb#15 def run_exclusively_with?(other); end end # @api private # -# source://rubocop//lib/rubocop/cop/variable_force.rb#42 +# source://rubocop/lib/rubocop/cop/variable_force.rb#42 RuboCop::Cop::VariableForce::LOGICAL_OPERATOR_ASSIGNMENT_TYPES = T.let(T.unsafe(nil), Array) # @api private # -# source://rubocop//lib/rubocop/cop/variable_force.rb#51 +# source://rubocop/lib/rubocop/cop/variable_force.rb#51 RuboCop::Cop::VariableForce::LOOP_TYPES = T.let(T.unsafe(nil), Array) # @api private # -# source://rubocop//lib/rubocop/cop/variable_force.rb#45 +# source://rubocop/lib/rubocop/cop/variable_force.rb#45 RuboCop::Cop::VariableForce::MULTIPLE_ASSIGNMENT_TYPE = T.let(T.unsafe(nil), Symbol) # @api private # -# source://rubocop//lib/rubocop/cop/variable_force.rb#115 +# source://rubocop/lib/rubocop/cop/variable_force.rb#115 RuboCop::Cop::VariableForce::NODE_HANDLER_METHOD_NAMES = T.let(T.unsafe(nil), Hash) # @api private # -# source://rubocop//lib/rubocop/cop/variable_force.rb#43 +# source://rubocop/lib/rubocop/cop/variable_force.rb#43 RuboCop::Cop::VariableForce::OPERATOR_ASSIGNMENT_TYPES = T.let(T.unsafe(nil), Array) # @api private # -# source://rubocop//lib/rubocop/cop/variable_force.rb#30 +# source://rubocop/lib/rubocop/cop/variable_force.rb#30 RuboCop::Cop::VariableForce::PATTERN_MATCH_VARIABLE_TYPE = T.let(T.unsafe(nil), Symbol) # @api private # -# source://rubocop//lib/rubocop/cop/variable_force.rb#50 +# source://rubocop/lib/rubocop/cop/variable_force.rb#50 RuboCop::Cop::VariableForce::POST_CONDITION_LOOP_TYPES = T.let(T.unsafe(nil), Array) # @api private # -# source://rubocop//lib/rubocop/cop/variable_force.rb#29 +# source://rubocop/lib/rubocop/cop/variable_force.rb#29 RuboCop::Cop::VariableForce::REGEXP_NAMED_CAPTURE_TYPE = T.let(T.unsafe(nil), Symbol) # @api private # -# source://rubocop//lib/rubocop/cop/variable_force.rb#53 +# source://rubocop/lib/rubocop/cop/variable_force.rb#53 RuboCop::Cop::VariableForce::RESCUE_TYPE = T.let(T.unsafe(nil), Symbol) # @api private # -# source://rubocop//lib/rubocop/cop/variable_force.rb#46 +# source://rubocop/lib/rubocop/cop/variable_force.rb#46 RuboCop::Cop::VariableForce::REST_ASSIGNMENT_TYPE = T.let(T.unsafe(nil), Symbol) # This class represents each reference of a variable. # -# source://rubocop//lib/rubocop/cop/variable_force/reference.rb#7 +# source://rubocop/lib/rubocop/cop/variable_force/reference.rb#7 class RuboCop::Cop::VariableForce::Reference include ::RuboCop::Cop::VariableForce::Branchable # @return [Reference] a new instance of Reference # - # source://rubocop//lib/rubocop/cop/variable_force/reference.rb#16 + # source://rubocop/lib/rubocop/cop/variable_force/reference.rb#16 def initialize(node, scope); end # There's an implicit variable reference by the zero-arity `super`: @@ -54767,219 +55428,219 @@ class RuboCop::Cop::VariableForce::Reference # # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/variable_force/reference.rb#41 + # source://rubocop/lib/rubocop/cop/variable_force/reference.rb#41 def explicit?; end # Returns the value of attribute node. # - # source://rubocop//lib/rubocop/cop/variable_force/reference.rb#14 + # source://rubocop/lib/rubocop/cop/variable_force/reference.rb#14 def node; end # Returns the value of attribute scope. # - # source://rubocop//lib/rubocop/cop/variable_force/reference.rb#14 + # source://rubocop/lib/rubocop/cop/variable_force/reference.rb#14 def scope; end end -# source://rubocop//lib/rubocop/cop/variable_force/reference.rb#10 +# source://rubocop/lib/rubocop/cop/variable_force/reference.rb#10 RuboCop::Cop::VariableForce::Reference::VARIABLE_REFERENCE_TYPES = T.let(T.unsafe(nil), Array) # @api private # -# source://rubocop//lib/rubocop/cop/variable_force.rb#58 +# source://rubocop/lib/rubocop/cop/variable_force.rb#58 RuboCop::Cop::VariableForce::SCOPE_TYPES = T.let(T.unsafe(nil), Array) # @api private # -# source://rubocop//lib/rubocop/cop/variable_force.rb#60 +# source://rubocop/lib/rubocop/cop/variable_force.rb#60 RuboCop::Cop::VariableForce::SEND_TYPE = T.let(T.unsafe(nil), Symbol) # A Scope represents a context of local variable visibility. # This is a place where local variables belong to. # A scope instance holds a scope node and variable entries. # -# source://rubocop//lib/rubocop/cop/variable_force/scope.rb#9 +# source://rubocop/lib/rubocop/cop/variable_force/scope.rb#9 class RuboCop::Cop::VariableForce::Scope # @return [Scope] a new instance of Scope # - # source://rubocop//lib/rubocop/cop/variable_force/scope.rb#22 + # source://rubocop/lib/rubocop/cop/variable_force/scope.rb#22 def initialize(node); end - # source://rubocop//lib/rubocop/cop/variable_force/scope.rb#35 + # source://rubocop/lib/rubocop/cop/variable_force/scope.rb#35 def ==(other); end - # source://rubocop//lib/rubocop/cop/variable_force/scope.rb#43 + # source://rubocop/lib/rubocop/cop/variable_force/scope.rb#43 def body_node; end # @yield [node] # - # source://rubocop//lib/rubocop/cop/variable_force/scope.rb#61 + # source://rubocop/lib/rubocop/cop/variable_force/scope.rb#61 def each_node(&block); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/variable_force/scope.rb#57 + # source://rubocop/lib/rubocop/cop/variable_force/scope.rb#57 def include?(target_node); end # Returns the value of attribute naked_top_level. # - # source://rubocop//lib/rubocop/cop/variable_force/scope.rb#18 + # source://rubocop/lib/rubocop/cop/variable_force/scope.rb#18 def naked_top_level; end # Returns the value of attribute naked_top_level. # - # source://rubocop//lib/rubocop/cop/variable_force/scope.rb#18 + # source://rubocop/lib/rubocop/cop/variable_force/scope.rb#18 def naked_top_level?; end - # source://rubocop//lib/rubocop/cop/variable_force/scope.rb#39 + # source://rubocop/lib/rubocop/cop/variable_force/scope.rb#39 def name; end # Returns the value of attribute node. # - # source://rubocop//lib/rubocop/cop/variable_force/scope.rb#18 + # source://rubocop/lib/rubocop/cop/variable_force/scope.rb#18 def node; end # Returns the value of attribute variables. # - # source://rubocop//lib/rubocop/cop/variable_force/scope.rb#18 + # source://rubocop/lib/rubocop/cop/variable_force/scope.rb#18 def variables; end private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/variable_force/scope.rb#100 + # source://rubocop/lib/rubocop/cop/variable_force/scope.rb#100 def ancestor_node?(target_node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/variable_force/scope.rb#90 + # source://rubocop/lib/rubocop/cop/variable_force/scope.rb#90 def belong_to_inner_scope?(target_node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/variable_force/scope.rb#79 + # source://rubocop/lib/rubocop/cop/variable_force/scope.rb#79 def belong_to_outer_scope?(target_node); end - # source://rubocop//lib/rubocop/cop/variable_force/scope.rb#70 + # source://rubocop/lib/rubocop/cop/variable_force/scope.rb#70 def scan_node(node, &block); end end -# source://rubocop//lib/rubocop/cop/variable_force/scope.rb#10 +# source://rubocop/lib/rubocop/cop/variable_force/scope.rb#10 RuboCop::Cop::VariableForce::Scope::OUTER_SCOPE_CHILD_INDICES = T.let(T.unsafe(nil), Hash) # @api private # -# source://rubocop//lib/rubocop/cop/variable_force.rb#57 +# source://rubocop/lib/rubocop/cop/variable_force.rb#57 RuboCop::Cop::VariableForce::TWISTED_SCOPE_TYPES = T.let(T.unsafe(nil), Array) # @api private # -# source://rubocop//lib/rubocop/cop/variable_force.rb#28 +# source://rubocop/lib/rubocop/cop/variable_force.rb#28 RuboCop::Cop::VariableForce::VARIABLE_ASSIGNMENT_TYPE = T.let(T.unsafe(nil), Symbol) # @api private # -# source://rubocop//lib/rubocop/cop/variable_force.rb#31 +# source://rubocop/lib/rubocop/cop/variable_force.rb#31 RuboCop::Cop::VariableForce::VARIABLE_ASSIGNMENT_TYPES = T.let(T.unsafe(nil), Array) # @api private # -# source://rubocop//lib/rubocop/cop/variable_force.rb#48 +# source://rubocop/lib/rubocop/cop/variable_force.rb#48 RuboCop::Cop::VariableForce::VARIABLE_REFERENCE_TYPE = T.let(T.unsafe(nil), Symbol) # A Variable represents existence of a local variable. # This holds a variable declaration node and some states of the variable. # -# source://rubocop//lib/rubocop/cop/variable_force/variable.rb#8 +# source://rubocop/lib/rubocop/cop/variable_force/variable.rb#8 class RuboCop::Cop::VariableForce::Variable # @return [Variable] a new instance of Variable # - # source://rubocop//lib/rubocop/cop/variable_force/variable.rb#15 + # source://rubocop/lib/rubocop/cop/variable_force/variable.rb#15 def initialize(name, declaration_node, scope); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/variable_force/variable.rb#98 + # source://rubocop/lib/rubocop/cop/variable_force/variable.rb#98 def argument?; end - # source://rubocop//lib/rubocop/cop/variable_force/variable.rb#31 + # source://rubocop/lib/rubocop/cop/variable_force/variable.rb#31 def assign(node); end # Returns the value of attribute assignments. # - # source://rubocop//lib/rubocop/cop/variable_force/variable.rb#11 + # source://rubocop/lib/rubocop/cop/variable_force/variable.rb#11 def assignments; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/variable_force/variable.rb#106 + # source://rubocop/lib/rubocop/cop/variable_force/variable.rb#106 def block_argument?; end - # source://rubocop//lib/rubocop/cop/variable_force/variable.rb#78 + # source://rubocop/lib/rubocop/cop/variable_force/variable.rb#78 def capture_with_block!; end # Returns the value of attribute captured_by_block. # - # source://rubocop//lib/rubocop/cop/variable_force/variable.rb#11 + # source://rubocop/lib/rubocop/cop/variable_force/variable.rb#11 def captured_by_block; end # Returns the value of attribute captured_by_block. # - # source://rubocop//lib/rubocop/cop/variable_force/variable.rb#11 + # source://rubocop/lib/rubocop/cop/variable_force/variable.rb#11 def captured_by_block?; end # Returns the value of attribute declaration_node. # - # source://rubocop//lib/rubocop/cop/variable_force/variable.rb#11 + # source://rubocop/lib/rubocop/cop/variable_force/variable.rb#11 def declaration_node; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/variable_force/variable.rb#114 + # 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#70 + # 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#110 + # 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#102 + # source://rubocop/lib/rubocop/cop/variable_force/variable.rb#102 def method_argument?; end # Returns the value of attribute name. # - # source://rubocop//lib/rubocop/cop/variable_force/variable.rb#11 + # source://rubocop/lib/rubocop/cop/variable_force/variable.rb#11 def name; end - # source://rubocop//lib/rubocop/cop/variable_force/variable.rb#44 + # 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#39 + # source://rubocop/lib/rubocop/cop/variable_force/variable.rb#39 def referenced?; end # Returns the value of attribute references. # - # source://rubocop//lib/rubocop/cop/variable_force/variable.rb#11 + # source://rubocop/lib/rubocop/cop/variable_force/variable.rb#11 def references; end # Returns the value of attribute scope. # - # source://rubocop//lib/rubocop/cop/variable_force/variable.rb#11 + # source://rubocop/lib/rubocop/cop/variable_force/variable.rb#11 def scope; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/variable_force/variable.rb#94 + # 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 @@ -54993,21 +55654,21 @@ 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#90 def used?; end end -# source://rubocop//lib/rubocop/cop/variable_force/variable.rb#9 +# source://rubocop/lib/rubocop/cop/variable_force/variable.rb#9 RuboCop::Cop::VariableForce::Variable::VARIABLE_DECLARATION_TYPES = T.let(T.unsafe(nil), Array) # @api private # -# source://rubocop//lib/rubocop/cop/variable_force.rb#62 +# source://rubocop/lib/rubocop/cop/variable_force.rb#62 class RuboCop::Cop::VariableForce::VariableReference < ::Struct # @api private # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/variable_force.rb#63 + # source://rubocop/lib/rubocop/cop/variable_force.rb#63 def assignment?; end # Returns the value of attribute name @@ -55036,287 +55697,287 @@ end # variables to current scope, and find local variables by considering # variable visibility of the current scope. # -# source://rubocop//lib/rubocop/cop/variable_force/variable_table.rb#11 +# source://rubocop/lib/rubocop/cop/variable_force/variable_table.rb#11 class RuboCop::Cop::VariableForce::VariableTable # @return [VariableTable] a new instance of VariableTable # - # source://rubocop//lib/rubocop/cop/variable_force/variable_table.rb#12 + # source://rubocop/lib/rubocop/cop/variable_force/variable_table.rb#12 def initialize(hook_receiver = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/variable_force/variable_table.rb#113 + # source://rubocop/lib/rubocop/cop/variable_force/variable_table.rb#113 def accessible_variables; end - # source://rubocop//lib/rubocop/cop/variable_force/variable_table.rb#56 + # source://rubocop/lib/rubocop/cop/variable_force/variable_table.rb#56 def assign_to_variable(name, node); end - # source://rubocop//lib/rubocop/cop/variable_force/variable_table.rb#40 + # source://rubocop/lib/rubocop/cop/variable_force/variable_table.rb#40 def current_scope; end - # source://rubocop//lib/rubocop/cop/variable_force/variable_table.rb#44 + # source://rubocop/lib/rubocop/cop/variable_force/variable_table.rb#44 def current_scope_level; end - # source://rubocop//lib/rubocop/cop/variable_force/variable_table.rb#48 + # source://rubocop/lib/rubocop/cop/variable_force/variable_table.rb#48 def declare_variable(name, node); end - # source://rubocop//lib/rubocop/cop/variable_force/variable_table.rb#94 + # source://rubocop/lib/rubocop/cop/variable_force/variable_table.rb#94 def find_variable(name); end - # source://rubocop//lib/rubocop/cop/variable_force/variable_table.rb#16 + # source://rubocop/lib/rubocop/cop/variable_force/variable_table.rb#16 def invoke_hook(hook_name, *args); end - # source://rubocop//lib/rubocop/cop/variable_force/variable_table.rb#32 + # source://rubocop/lib/rubocop/cop/variable_force/variable_table.rb#32 def pop_scope; end - # source://rubocop//lib/rubocop/cop/variable_force/variable_table.rb#24 + # source://rubocop/lib/rubocop/cop/variable_force/variable_table.rb#24 def push_scope(scope_node); end - # source://rubocop//lib/rubocop/cop/variable_force/variable_table.rb#68 + # source://rubocop/lib/rubocop/cop/variable_force/variable_table.rb#68 def reference_variable(name, node); end - # source://rubocop//lib/rubocop/cop/variable_force/variable_table.rb#20 + # source://rubocop/lib/rubocop/cop/variable_force/variable_table.rb#20 def scope_stack; end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/variable_force/variable_table.rb#109 + # source://rubocop/lib/rubocop/cop/variable_force/variable_table.rb#109 def variable_exist?(name); end private - # source://rubocop//lib/rubocop/cop/variable_force/variable_table.rb#122 + # source://rubocop/lib/rubocop/cop/variable_force/variable_table.rb#122 def mark_variable_as_captured_by_block_if_so(variable); end end # @api private # -# source://rubocop//lib/rubocop/cop/variable_force.rb#55 +# source://rubocop/lib/rubocop/cop/variable_force.rb#55 RuboCop::Cop::VariableForce::ZERO_ARITY_SUPER_TYPE = T.let(T.unsafe(nil), Symbol) # Help methods for determining node visibility. # -# source://rubocop//lib/rubocop/cop/mixin/visibility_help.rb#8 +# source://rubocop/lib/rubocop/cop/mixin/visibility_help.rb#8 module RuboCop::Cop::VisibilityHelp extend ::RuboCop::AST::NodePattern::Macros - # source://rubocop//lib/rubocop/cop/mixin/visibility_help.rb#57 + # source://rubocop/lib/rubocop/cop/mixin/visibility_help.rb#57 def visibility_block?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/mixin/visibility_help.rb#62 + # source://rubocop/lib/rubocop/cop/mixin/visibility_help.rb#62 def visibility_inline_on_def?(param0 = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/mixin/visibility_help.rb#67 + # source://rubocop/lib/rubocop/cop/mixin/visibility_help.rb#67 def visibility_inline_on_method_name?(param0 = T.unsafe(nil), method_name:); end private # Navigate to find the last protected method # - # source://rubocop//lib/rubocop/cop/mixin/visibility_help.rb#48 + # source://rubocop/lib/rubocop/cop/mixin/visibility_help.rb#48 def find_visibility_end(node); end - # source://rubocop//lib/rubocop/cop/mixin/visibility_help.rb#43 + # source://rubocop/lib/rubocop/cop/mixin/visibility_help.rb#43 def find_visibility_start(node); end - # source://rubocop//lib/rubocop/cop/mixin/visibility_help.rb#15 + # source://rubocop/lib/rubocop/cop/mixin/visibility_help.rb#15 def node_visibility(node); end - # source://rubocop//lib/rubocop/cop/mixin/visibility_help.rb#39 + # source://rubocop/lib/rubocop/cop/mixin/visibility_help.rb#39 def node_visibility_from_visibility_block(node); end - # source://rubocop//lib/rubocop/cop/mixin/visibility_help.rb#21 + # source://rubocop/lib/rubocop/cop/mixin/visibility_help.rb#21 def node_visibility_from_visibility_inline(node); end - # source://rubocop//lib/rubocop/cop/mixin/visibility_help.rb#28 + # source://rubocop/lib/rubocop/cop/mixin/visibility_help.rb#28 def node_visibility_from_visibility_inline_on_def(node); end - # source://rubocop//lib/rubocop/cop/mixin/visibility_help.rb#33 + # source://rubocop/lib/rubocop/cop/mixin/visibility_help.rb#33 def node_visibility_from_visibility_inline_on_method_name(node); end end -# source://rubocop//lib/rubocop/cop/mixin/visibility_help.rb#11 +# source://rubocop/lib/rubocop/cop/mixin/visibility_help.rb#11 RuboCop::Cop::VisibilityHelp::VISIBILITY_SCOPES = T.let(T.unsafe(nil), Set) # This class wraps the `Parser::Source::Comment` object that represents a # cops it contains. # -# source://rubocop//lib/rubocop/directive_comment.rb#7 +# source://rubocop/lib/rubocop/directive_comment.rb#7 class RuboCop::DirectiveComment # @return [DirectiveComment] a new instance of DirectiveComment # - # source://rubocop//lib/rubocop/directive_comment.rb#32 + # source://rubocop/lib/rubocop/directive_comment.rb#32 def initialize(comment, cop_registry = T.unsafe(nil)); end # Checks if all cops specified in this directive # # @return [Boolean] # - # source://rubocop//lib/rubocop/directive_comment.rb#82 + # source://rubocop/lib/rubocop/directive_comment.rb#82 def all_cops?; end # Returns the value of attribute comment. # - # source://rubocop//lib/rubocop/directive_comment.rb#30 + # source://rubocop/lib/rubocop/directive_comment.rb#30 def comment; end # Returns array of specified in this directive cop names # - # source://rubocop//lib/rubocop/directive_comment.rb#87 + # source://rubocop/lib/rubocop/directive_comment.rb#87 def cop_names; end # Returns the value of attribute cop_registry. # - # source://rubocop//lib/rubocop/directive_comment.rb#30 + # source://rubocop/lib/rubocop/directive_comment.rb#30 def cop_registry; end # Returns the value of attribute cops. # - # source://rubocop//lib/rubocop/directive_comment.rb#30 + # source://rubocop/lib/rubocop/directive_comment.rb#30 def cops; end # Returns array of specified in this directive department names # when all department disabled # - # source://rubocop//lib/rubocop/directive_comment.rb#93 + # source://rubocop/lib/rubocop/directive_comment.rb#93 def department_names; end - # source://rubocop//lib/rubocop/directive_comment.rb#107 + # source://rubocop/lib/rubocop/directive_comment.rb#107 def directive_count; end # Checks if this directive disables cops # # @return [Boolean] # - # source://rubocop//lib/rubocop/directive_comment.rb#62 + # source://rubocop/lib/rubocop/directive_comment.rb#62 def disabled?; end # Checks if this directive disables all cops # # @return [Boolean] # - # source://rubocop//lib/rubocop/directive_comment.rb#77 + # source://rubocop/lib/rubocop/directive_comment.rb#77 def disabled_all?; end # Checks if this directive enables cops # # @return [Boolean] # - # source://rubocop//lib/rubocop/directive_comment.rb#67 + # source://rubocop/lib/rubocop/directive_comment.rb#67 def enabled?; end # Checks if this directive enables all cops # # @return [Boolean] # - # source://rubocop//lib/rubocop/directive_comment.rb#72 + # source://rubocop/lib/rubocop/directive_comment.rb#72 def enabled_all?; end # Checks if directive departments include cop # # @return [Boolean] # - # source://rubocop//lib/rubocop/directive_comment.rb#98 + # source://rubocop/lib/rubocop/directive_comment.rb#98 def in_directive_department?(cop); end # Returns line number for directive # - # source://rubocop//lib/rubocop/directive_comment.rb#112 + # source://rubocop/lib/rubocop/directive_comment.rb#112 def line_number; end # Checks if this directive contains all the given cop names # # @return [Boolean] # - # source://rubocop//lib/rubocop/directive_comment.rb#44 + # source://rubocop/lib/rubocop/directive_comment.rb#44 def match?(cop_names); end # Returns match captures to directive comment pattern # - # source://rubocop//lib/rubocop/directive_comment.rb#57 + # source://rubocop/lib/rubocop/directive_comment.rb#57 def match_captures; end # Returns the value of attribute mode. # - # source://rubocop//lib/rubocop/directive_comment.rb#30 + # source://rubocop/lib/rubocop/directive_comment.rb#30 def mode; end # Checks if cop department has already used in directive comment # # @return [Boolean] # - # source://rubocop//lib/rubocop/directive_comment.rb#103 + # source://rubocop/lib/rubocop/directive_comment.rb#103 def overridden_by_department?(cop); end - # source://rubocop//lib/rubocop/directive_comment.rb#48 + # source://rubocop/lib/rubocop/directive_comment.rb#48 def range; end # Checks if this directive relates to single line # # @return [Boolean] # - # source://rubocop//lib/rubocop/directive_comment.rb#39 + # source://rubocop/lib/rubocop/directive_comment.rb#39 def single_line?; end private - # source://rubocop//lib/rubocop/directive_comment.rb#133 + # source://rubocop/lib/rubocop/directive_comment.rb#133 def all_cop_names; end - # source://rubocop//lib/rubocop/directive_comment.rb#137 + # source://rubocop/lib/rubocop/directive_comment.rb#137 def cop_names_for_department(department); end # @return [Boolean] # - # source://rubocop//lib/rubocop/directive_comment.rb#129 + # source://rubocop/lib/rubocop/directive_comment.rb#129 def department?(name); end - # source://rubocop//lib/rubocop/directive_comment.rb#142 + # source://rubocop/lib/rubocop/directive_comment.rb#142 def exclude_lint_department_cops(cops); end - # source://rubocop//lib/rubocop/directive_comment.rb#122 + # source://rubocop/lib/rubocop/directive_comment.rb#122 def parsed_cop_names; end - # source://rubocop//lib/rubocop/directive_comment.rb#118 + # source://rubocop/lib/rubocop/directive_comment.rb#118 def splitted_cops_string; end class << self - # source://rubocop//lib/rubocop/directive_comment.rb#26 + # source://rubocop/lib/rubocop/directive_comment.rb#26 def before_comment(line); end end end # @api private # -# source://rubocop//lib/rubocop/directive_comment.rb#19 +# source://rubocop/lib/rubocop/directive_comment.rb#19 RuboCop::DirectiveComment::COPS_PATTERN = T.let(T.unsafe(nil), String) # @api private # -# source://rubocop//lib/rubocop/directive_comment.rb#17 +# source://rubocop/lib/rubocop/directive_comment.rb#17 RuboCop::DirectiveComment::COP_NAMES_PATTERN = T.let(T.unsafe(nil), String) # @api private # -# source://rubocop//lib/rubocop/directive_comment.rb#15 +# source://rubocop/lib/rubocop/directive_comment.rb#15 RuboCop::DirectiveComment::COP_NAME_PATTERN = T.let(T.unsafe(nil), String) # @api private # -# source://rubocop//lib/rubocop/directive_comment.rb#21 +# source://rubocop/lib/rubocop/directive_comment.rb#21 RuboCop::DirectiveComment::DIRECTIVE_COMMENT_REGEXP = T.let(T.unsafe(nil), Regexp) # @api private # -# source://rubocop//lib/rubocop/directive_comment.rb#9 +# source://rubocop/lib/rubocop/directive_comment.rb#9 RuboCop::DirectiveComment::LINT_DEPARTMENT = T.let(T.unsafe(nil), String) # @api private # -# source://rubocop//lib/rubocop/directive_comment.rb#11 +# source://rubocop/lib/rubocop/directive_comment.rb#11 RuboCop::DirectiveComment::LINT_REDUNDANT_DIRECTIVE_COP = T.let(T.unsafe(nil), String) # @api private # -# source://rubocop//lib/rubocop/directive_comment.rb#13 +# source://rubocop/lib/rubocop/directive_comment.rb#13 RuboCop::DirectiveComment::LINT_SYNTAX_COP = T.let(T.unsafe(nil), String) # An Error exception is different from an Offense with severity 'error' @@ -55324,125 +55985,125 @@ RuboCop::DirectiveComment::LINT_SYNTAX_COP = T.let(T.unsafe(nil), String) # a requested action (probably due to misconfiguration) and must stop # immediately, rather than carrying on # -# source://rubocop//lib/rubocop/error.rb#8 +# source://rubocop/lib/rubocop/error.rb#8 class RuboCop::Error < ::StandardError; end # A wrapper to display errored location of analyzed file. # -# source://rubocop//lib/rubocop/error.rb#13 +# source://rubocop/lib/rubocop/error.rb#13 class RuboCop::ErrorWithAnalyzedFileLocation < ::RuboCop::Error # @return [ErrorWithAnalyzedFileLocation] a new instance of ErrorWithAnalyzedFileLocation # - # source://rubocop//lib/rubocop/error.rb#14 + # source://rubocop/lib/rubocop/error.rb#14 def initialize(cause:, node:, cop:); end # Returns the value of attribute cause. # - # source://rubocop//lib/rubocop/error.rb#21 + # source://rubocop/lib/rubocop/error.rb#21 def cause; end - # source://rubocop//lib/rubocop/error.rb#27 + # source://rubocop/lib/rubocop/error.rb#27 def column; end # Returns the value of attribute cop. # - # source://rubocop//lib/rubocop/error.rb#21 + # source://rubocop/lib/rubocop/error.rb#21 def cop; end - # source://rubocop//lib/rubocop/error.rb#23 + # source://rubocop/lib/rubocop/error.rb#23 def line; end - # source://rubocop//lib/rubocop/error.rb#31 + # source://rubocop/lib/rubocop/error.rb#31 def message; end end # Allows specified configuration options to have an exclude limit # ie. a maximum value tracked that it can be used by `--auto-gen-config`. # -# source://rubocop//lib/rubocop/cop/exclude_limit.rb#6 +# source://rubocop/lib/rubocop/cop/exclude_limit.rb#6 module RuboCop::ExcludeLimit # Sets up a configuration option to have an exclude limit tracked. # The parameter name given is transformed into a method name (eg. `Max` # becomes `self.max=` and `MinDigits` becomes `self.min_digits=`). # - # source://rubocop//lib/rubocop/cop/exclude_limit.rb#10 + # source://rubocop/lib/rubocop/cop/exclude_limit.rb#10 def exclude_limit(parameter_name, method_name: T.unsafe(nil)); end private - # source://rubocop//lib/rubocop/cop/exclude_limit.rb#22 + # source://rubocop/lib/rubocop/cop/exclude_limit.rb#22 def transform(parameter_name); end end -# source://rubocop//lib/rubocop/ext/comment.rb#4 +# source://rubocop/lib/rubocop/ext/comment.rb#4 module RuboCop::Ext; end # Extensions to `Parser::Source::Comment`. # -# source://rubocop//lib/rubocop/ext/comment.rb#6 +# source://rubocop/lib/rubocop/ext/comment.rb#6 module RuboCop::Ext::Comment - # source://rubocop//lib/rubocop/ext/comment.rb#7 + # source://rubocop/lib/rubocop/ext/comment.rb#7 def source; end - # source://rubocop//lib/rubocop/ext/comment.rb#11 + # source://rubocop/lib/rubocop/ext/comment.rb#11 def source_range; end end # Extensions to AST::ProcessedSource for our cached comment_config # -# source://rubocop//lib/rubocop/ext/processed_source.rb#6 +# source://rubocop/lib/rubocop/ext/processed_source.rb#6 module RuboCop::Ext::ProcessedSource - # source://rubocop//lib/rubocop/ext/processed_source.rb#9 + # source://rubocop/lib/rubocop/ext/processed_source.rb#9 def comment_config; end # Returns the value of attribute config. # - # source://rubocop//lib/rubocop/ext/processed_source.rb#7 + # source://rubocop/lib/rubocop/ext/processed_source.rb#7 def config; end # Sets the attribute config # # @param value the value to set the attribute config to. # - # source://rubocop//lib/rubocop/ext/processed_source.rb#7 + # source://rubocop/lib/rubocop/ext/processed_source.rb#7 def config=(_arg0); end - # source://rubocop//lib/rubocop/ext/processed_source.rb#13 + # source://rubocop/lib/rubocop/ext/processed_source.rb#13 def disabled_line_ranges; end # Returns the value of attribute registry. # - # source://rubocop//lib/rubocop/ext/processed_source.rb#7 + # source://rubocop/lib/rubocop/ext/processed_source.rb#7 def registry; end # Sets the attribute registry # # @param value the value to set the attribute registry to. # - # source://rubocop//lib/rubocop/ext/processed_source.rb#7 + # source://rubocop/lib/rubocop/ext/processed_source.rb#7 def registry=(_arg0); end end # Extensions to Parser::Source::Range # -# source://rubocop//lib/rubocop/ext/range.rb#6 +# source://rubocop/lib/rubocop/ext/range.rb#6 module RuboCop::Ext::Range # Adds `Range#single_line?` to parallel `Node#single_line?` # # @return [Boolean] # - # source://rubocop//lib/rubocop/ext/range.rb#8 + # source://rubocop/lib/rubocop/ext/range.rb#8 def single_line?; end end # Extensions to AST::RegexpNode for our cached parsed regexp info # -# source://rubocop//lib/rubocop/ext/regexp_node.rb#6 +# source://rubocop/lib/rubocop/ext/regexp_node.rb#6 module RuboCop::Ext::RegexpNode - # source://rubocop//lib/rubocop/ext/regexp_node.rb#18 + # source://rubocop/lib/rubocop/ext/regexp_node.rb#18 def assign_properties(*_arg0); end - # source://rubocop//lib/rubocop/ext/regexp_node.rb#31 + # source://rubocop/lib/rubocop/ext/regexp_node.rb#31 def each_capture(named: T.unsafe(nil)); end # Note: we extend Regexp nodes to provide `loc` and `expression` @@ -55450,38 +56111,38 @@ module RuboCop::Ext::RegexpNode # # @return [Regexp::Expression::Root, nil] # - # source://rubocop//lib/rubocop/ext/regexp_node.rb#16 + # source://rubocop/lib/rubocop/ext/regexp_node.rb#16 def parsed_tree; end private # @return [Boolean] # - # source://rubocop//lib/rubocop/ext/regexp_node.rb#43 + # source://rubocop/lib/rubocop/ext/regexp_node.rb#43 def named_capturing?(exp, event, named); end - # source://rubocop//lib/rubocop/ext/regexp_node.rb#51 + # source://rubocop/lib/rubocop/ext/regexp_node.rb#51 def with_interpolations_blanked; end end -# source://rubocop//lib/rubocop/ext/regexp_node.rb#7 +# source://rubocop/lib/rubocop/ext/regexp_node.rb#7 RuboCop::Ext::RegexpNode::ANY = T.let(T.unsafe(nil), Object) # Extensions for `regexp_parser` gem # -# source://rubocop//lib/rubocop/ext/regexp_parser.rb#6 +# source://rubocop/lib/rubocop/ext/regexp_parser.rb#6 module RuboCop::Ext::RegexpParser; end -# source://rubocop//lib/rubocop/ext/regexp_parser.rb#20 +# source://rubocop/lib/rubocop/ext/regexp_parser.rb#20 module RuboCop::Ext::RegexpParser::Expression; end # Add `expression` and `loc` to all `regexp_parser` nodes # -# source://rubocop//lib/rubocop/ext/regexp_parser.rb#22 +# source://rubocop/lib/rubocop/ext/regexp_parser.rb#22 module RuboCop::Ext::RegexpParser::Expression::Base # Shortcut to `loc.expression` # - # source://rubocop//lib/rubocop/ext/regexp_parser.rb#26 + # source://rubocop/lib/rubocop/ext/regexp_parser.rb#26 def expression; end # E.g. @@ -55494,62 +56155,62 @@ module RuboCop::Ext::RegexpParser::Expression::Base # # Please open issue if you need other locations # - # source://rubocop//lib/rubocop/ext/regexp_parser.rb#44 + # source://rubocop/lib/rubocop/ext/regexp_parser.rb#44 def loc; end # Returns the value of attribute origin. # - # source://rubocop//lib/rubocop/ext/regexp_parser.rb#23 + # source://rubocop/lib/rubocop/ext/regexp_parser.rb#23 def origin; end # Sets the attribute origin # # @param value the value to set the attribute origin to. # - # source://rubocop//lib/rubocop/ext/regexp_parser.rb#23 + # source://rubocop/lib/rubocop/ext/regexp_parser.rb#23 def origin=(_arg0); end private - # source://rubocop//lib/rubocop/ext/regexp_parser.rb#50 + # source://rubocop/lib/rubocop/ext/regexp_parser.rb#50 def build_location; end end # Provide `CharacterSet` with `begin` and `end` locations. # -# source://rubocop//lib/rubocop/ext/regexp_parser.rb#62 +# source://rubocop/lib/rubocop/ext/regexp_parser.rb#62 module RuboCop::Ext::RegexpParser::Expression::CharacterSet - # source://rubocop//lib/rubocop/ext/regexp_parser.rb#63 + # source://rubocop/lib/rubocop/ext/regexp_parser.rb#63 def build_location; end end # Source map for RegexpParser nodes # -# source://rubocop//lib/rubocop/ext/regexp_parser.rb#8 +# source://rubocop/lib/rubocop/ext/regexp_parser.rb#8 class RuboCop::Ext::RegexpParser::Map < ::Parser::Source::Map # @return [Map] a new instance of Map # - # source://rubocop//lib/rubocop/ext/regexp_parser.rb#11 + # source://rubocop/lib/rubocop/ext/regexp_parser.rb#11 def initialize(expression, body:, quantifier: T.unsafe(nil), begin_l: T.unsafe(nil), end_l: T.unsafe(nil)); end # Returns the value of attribute begin. # - # source://rubocop//lib/rubocop/ext/regexp_parser.rb#9 + # source://rubocop/lib/rubocop/ext/regexp_parser.rb#9 def begin; end # Returns the value of attribute body. # - # source://rubocop//lib/rubocop/ext/regexp_parser.rb#9 + # source://rubocop/lib/rubocop/ext/regexp_parser.rb#9 def body; end # Returns the value of attribute end. # - # source://rubocop//lib/rubocop/ext/regexp_parser.rb#9 + # source://rubocop/lib/rubocop/ext/regexp_parser.rb#9 def end; end # Returns the value of attribute quantifier. # - # source://rubocop//lib/rubocop/ext/regexp_parser.rb#9 + # source://rubocop/lib/rubocop/ext/regexp_parser.rb#9 def quantifier; end end @@ -55566,19 +56227,19 @@ end # # @api private # -# source://rubocop//lib/rubocop/feature_loader.rb#16 +# source://rubocop/lib/rubocop/feature_loader.rb#16 class RuboCop::FeatureLoader # @api private # @param config_directory_path [String] # @param feature [String] # @return [FeatureLoader] a new instance of FeatureLoader # - # source://rubocop//lib/rubocop/feature_loader.rb#27 + # source://rubocop/lib/rubocop/feature_loader.rb#27 def initialize(config_directory_path:, feature:); end # @api private # - # source://rubocop//lib/rubocop/feature_loader.rb#32 + # source://rubocop/lib/rubocop/feature_loader.rb#32 def load; end private @@ -55586,39 +56247,39 @@ class RuboCop::FeatureLoader # @api private # @return [String] # - # source://rubocop//lib/rubocop/feature_loader.rb#55 + # source://rubocop/lib/rubocop/feature_loader.rb#55 def namespaced_feature; end # @api private # @return [String] # - # source://rubocop//lib/rubocop/feature_loader.rb#60 + # source://rubocop/lib/rubocop/feature_loader.rb#60 def namespaced_target; end # @api private # @param [String] # @return [String] # - # source://rubocop//lib/rubocop/feature_loader.rb#70 + # source://rubocop/lib/rubocop/feature_loader.rb#70 def relative(feature); end # @api private # @return [Boolean] # - # source://rubocop//lib/rubocop/feature_loader.rb#75 + # source://rubocop/lib/rubocop/feature_loader.rb#75 def relative?; end # @api private # @param error [LoadError] # @return [Boolean] # - # source://rubocop//lib/rubocop/feature_loader.rb#81 + # source://rubocop/lib/rubocop/feature_loader.rb#81 def seems_cannot_load_such_file_error?(error); end # @api private # @return [String] # - # source://rubocop//lib/rubocop/feature_loader.rb#86 + # source://rubocop/lib/rubocop/feature_loader.rb#86 def target; end class << self @@ -55626,7 +56287,7 @@ class RuboCop::FeatureLoader # @param config_directory_path [String] # @param feature [String] # - # source://rubocop//lib/rubocop/feature_loader.rb#20 + # source://rubocop/lib/rubocop/feature_loader.rb#20 def load(config_directory_path:, feature:); end end end @@ -55635,39 +56296,39 @@ end # # @api private # -# source://rubocop//lib/rubocop/file_finder.rb#8 +# source://rubocop/lib/rubocop/file_finder.rb#8 module RuboCop::FileFinder # @api private # - # source://rubocop//lib/rubocop/file_finder.rb#13 + # source://rubocop/lib/rubocop/file_finder.rb#13 def find_file_upwards(filename, start_dir, stop_dir = T.unsafe(nil)); end # @api private # - # source://rubocop//lib/rubocop/file_finder.rb#20 + # source://rubocop/lib/rubocop/file_finder.rb#20 def find_last_file_upwards(filename, start_dir, stop_dir = T.unsafe(nil)); end # @api private # - # source://rubocop//lib/rubocop/file_finder.rb#26 + # source://rubocop/lib/rubocop/file_finder.rb#26 def traverse_directories_upwards(start_dir, stop_dir = T.unsafe(nil)); end private # @api private # - # source://rubocop//lib/rubocop/file_finder.rb#36 + # source://rubocop/lib/rubocop/file_finder.rb#36 def traverse_files_upwards(filename, start_dir, stop_dir); end class << self # @api private # - # source://rubocop//lib/rubocop/file_finder.rb#10 + # source://rubocop/lib/rubocop/file_finder.rb#10 def root_level; end # @api private # - # source://rubocop//lib/rubocop/file_finder.rb#10 + # source://rubocop/lib/rubocop/file_finder.rb#10 def root_level=(_arg0); end end end @@ -55684,45 +56345,45 @@ end # # @api private # -# source://rubocop//lib/rubocop/file_patterns.rb#14 +# source://rubocop/lib/rubocop/file_patterns.rb#14 class RuboCop::FilePatterns # @api private # @return [FilePatterns] a new instance of FilePatterns # - # source://rubocop//lib/rubocop/file_patterns.rb#21 + # source://rubocop/lib/rubocop/file_patterns.rb#21 def initialize(patterns); end # @api private # @return [Boolean] # - # source://rubocop//lib/rubocop/file_patterns.rb#27 + # source://rubocop/lib/rubocop/file_patterns.rb#27 def match?(path); end private # @api private # - # source://rubocop//lib/rubocop/file_patterns.rb#33 + # source://rubocop/lib/rubocop/file_patterns.rb#33 def partition_patterns(patterns); end class << self # @api private # - # source://rubocop//lib/rubocop/file_patterns.rb#17 + # source://rubocop/lib/rubocop/file_patterns.rb#17 def from(patterns); end end end # The bootstrap module for formatter. # -# source://rubocop//lib/rubocop/formatter.rb#5 +# source://rubocop/lib/rubocop/formatter.rb#5 module RuboCop::Formatter; end # Does not show individual offenses in the console. # -# source://rubocop//lib/rubocop/formatter/auto_gen_config_formatter.rb#6 +# source://rubocop/lib/rubocop/formatter/auto_gen_config_formatter.rb#6 class RuboCop::Formatter::AutoGenConfigFormatter < ::RuboCop::Formatter::ProgressFormatter - # source://rubocop//lib/rubocop/formatter/auto_gen_config_formatter.rb#7 + # source://rubocop/lib/rubocop/formatter/auto_gen_config_formatter.rb#7 def finished(inspected_files); end end @@ -55762,13 +56423,13 @@ end # * `#file_finished` # * `#finished` # -# source://rubocop//lib/rubocop/formatter/base_formatter.rb#41 +# source://rubocop/lib/rubocop/formatter/base_formatter.rb#41 class RuboCop::Formatter::BaseFormatter # @api public # @param output [IO] `$stdout` or opened file # @return [BaseFormatter] a new instance of BaseFormatter # - # source://rubocop//lib/rubocop/formatter/base_formatter.rb#63 + # source://rubocop/lib/rubocop/formatter/base_formatter.rb#63 def initialize(output, options = T.unsafe(nil)); end # Invoked at the end of inspecting each files. @@ -55779,7 +56440,7 @@ class RuboCop::Formatter::BaseFormatter # @return [void] # @see RuboCop::Cop::Offense # - # source://rubocop//lib/rubocop/formatter/base_formatter.rb#104 + # source://rubocop/lib/rubocop/formatter/base_formatter.rb#104 def file_finished(file, offenses); end # Invoked at the beginning of inspecting each files. @@ -55789,7 +56450,7 @@ class RuboCop::Formatter::BaseFormatter # @param options [Hash] file specific information, currently this is always empty. # @return [void] # - # source://rubocop//lib/rubocop/formatter/base_formatter.rb#89 + # source://rubocop/lib/rubocop/formatter/base_formatter.rb#89 def file_started(file, options); end # Invoked after all files are inspected or interrupted by user. @@ -55800,20 +56461,20 @@ class RuboCop::Formatter::BaseFormatter # unless RuboCop is interrupted by user. # @return [void] # - # source://rubocop//lib/rubocop/formatter/base_formatter.rb#116 + # source://rubocop/lib/rubocop/formatter/base_formatter.rb#116 def finished(inspected_files); end # @api public # @return [Hash] # - # source://rubocop//lib/rubocop/formatter/base_formatter.rb#57 + # source://rubocop/lib/rubocop/formatter/base_formatter.rb#57 def options; end # @api public # @return [IO] the IO object passed to `#initialize` # @see #initialize # - # source://rubocop//lib/rubocop/formatter/base_formatter.rb#50 + # source://rubocop/lib/rubocop/formatter/base_formatter.rb#50 def output; end # Invoked once before any files are inspected. @@ -55822,7 +56483,7 @@ class RuboCop::Formatter::BaseFormatter # @param target_files [Array(String)] all target file paths to be inspected # @return [void] # - # source://rubocop//lib/rubocop/formatter/base_formatter.rb#76 + # source://rubocop/lib/rubocop/formatter/base_formatter.rb#76 def started(target_files); end end @@ -55830,109 +56491,109 @@ end # The precise location of the problem is shown together with the # relevant source code. # -# source://rubocop//lib/rubocop/formatter/clang_style_formatter.rb#8 +# source://rubocop/lib/rubocop/formatter/clang_style_formatter.rb#8 class RuboCop::Formatter::ClangStyleFormatter < ::RuboCop::Formatter::SimpleTextFormatter - # source://rubocop//lib/rubocop/formatter/clang_style_formatter.rb#11 + # source://rubocop/lib/rubocop/formatter/clang_style_formatter.rb#11 def report_file(file, offenses); end private - # source://rubocop//lib/rubocop/formatter/clang_style_formatter.rb#47 + # source://rubocop/lib/rubocop/formatter/clang_style_formatter.rb#47 def report_highlighted_area(highlighted_area); end - # source://rubocop//lib/rubocop/formatter/clang_style_formatter.rb#37 + # source://rubocop/lib/rubocop/formatter/clang_style_formatter.rb#37 def report_line(location); end - # source://rubocop//lib/rubocop/formatter/clang_style_formatter.rb#17 + # source://rubocop/lib/rubocop/formatter/clang_style_formatter.rb#17 def report_offense(file, offense); end # @return [Boolean] # - # source://rubocop//lib/rubocop/formatter/clang_style_formatter.rb#33 + # source://rubocop/lib/rubocop/formatter/clang_style_formatter.rb#33 def valid_line?(offense); end end -# source://rubocop//lib/rubocop/formatter/clang_style_formatter.rb#9 +# source://rubocop/lib/rubocop/formatter/clang_style_formatter.rb#9 RuboCop::Formatter::ClangStyleFormatter::ELLIPSES = T.let(T.unsafe(nil), String) # This mix-in module provides string coloring methods for terminals. # It automatically disables coloring if coloring is disabled in the process # globally or the formatter's output is not a terminal. # -# source://rubocop//lib/rubocop/formatter/colorizable.rb#8 +# source://rubocop/lib/rubocop/formatter/colorizable.rb#8 module RuboCop::Formatter::Colorizable - # source://rubocop//lib/rubocop/formatter/colorizable.rb#35 + # source://rubocop/lib/rubocop/formatter/colorizable.rb#35 def black(string); end - # source://rubocop//lib/rubocop/formatter/colorizable.rb#35 + # source://rubocop/lib/rubocop/formatter/colorizable.rb#35 def blue(string); end - # source://rubocop//lib/rubocop/formatter/colorizable.rb#21 + # source://rubocop/lib/rubocop/formatter/colorizable.rb#21 def colorize(string, *args); end - # source://rubocop//lib/rubocop/formatter/colorizable.rb#35 + # source://rubocop/lib/rubocop/formatter/colorizable.rb#35 def cyan(string); end - # source://rubocop//lib/rubocop/formatter/colorizable.rb#35 + # source://rubocop/lib/rubocop/formatter/colorizable.rb#35 def green(string); end - # source://rubocop//lib/rubocop/formatter/colorizable.rb#35 + # source://rubocop/lib/rubocop/formatter/colorizable.rb#35 def magenta(string); end - # source://rubocop//lib/rubocop/formatter/colorizable.rb#9 + # source://rubocop/lib/rubocop/formatter/colorizable.rb#9 def rainbow; end - # source://rubocop//lib/rubocop/formatter/colorizable.rb#35 + # source://rubocop/lib/rubocop/formatter/colorizable.rb#35 def red(string); end - # source://rubocop//lib/rubocop/formatter/colorizable.rb#35 + # source://rubocop/lib/rubocop/formatter/colorizable.rb#35 def white(string); end - # source://rubocop//lib/rubocop/formatter/colorizable.rb#35 + # source://rubocop/lib/rubocop/formatter/colorizable.rb#35 def yellow(string); end end # This formatter displays a YAML configuration file where all cops that # detected any offenses are configured to not detect the offense. # -# source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#7 +# source://rubocop/lib/rubocop/formatter/disabled_config_formatter.rb#7 class RuboCop::Formatter::DisabledConfigFormatter < ::RuboCop::Formatter::BaseFormatter include ::RuboCop::PathUtil # @return [DisabledConfigFormatter] a new instance of DisabledConfigFormatter # - # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#27 + # source://rubocop/lib/rubocop/formatter/disabled_config_formatter.rb#27 def initialize(output, options = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#40 + # source://rubocop/lib/rubocop/formatter/disabled_config_formatter.rb#40 def file_finished(file, offenses); end - # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#33 + # source://rubocop/lib/rubocop/formatter/disabled_config_formatter.rb#33 def file_started(_file, options); end - # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#48 + # source://rubocop/lib/rubocop/formatter/disabled_config_formatter.rb#48 def finished(_inspected_files); end private # @return [Boolean] # - # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#69 + # source://rubocop/lib/rubocop/formatter/disabled_config_formatter.rb#69 def auto_gen_enforced_style?; end - # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#73 + # source://rubocop/lib/rubocop/formatter/disabled_config_formatter.rb#73 def command; end - # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#165 + # source://rubocop/lib/rubocop/formatter/disabled_config_formatter.rb#165 def cop_config_params(default_cfg, cfg); end - # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#185 + # source://rubocop/lib/rubocop/formatter/disabled_config_formatter.rb#185 def default_config(cop_name); end - # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#229 + # source://rubocop/lib/rubocop/formatter/disabled_config_formatter.rb#229 def excludes(offending_files, cop_name, parent); end - # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#200 + # source://rubocop/lib/rubocop/formatter/disabled_config_formatter.rb#200 def filtered_config(cfg); end # Returns true if the given arr include the given elm or if any of the @@ -55940,121 +56601,121 @@ class RuboCop::Formatter::DisabledConfigFormatter < ::RuboCop::Formatter::BaseFo # # @return [Boolean] # - # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#277 + # source://rubocop/lib/rubocop/formatter/disabled_config_formatter.rb#277 def include_or_match?(arr, elm); end # @return [Boolean] # - # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#250 + # source://rubocop/lib/rubocop/formatter/disabled_config_formatter.rb#250 def merge_mode_for_exclude?(cfg); end # @return [Boolean] # - # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#271 + # source://rubocop/lib/rubocop/formatter/disabled_config_formatter.rb#271 def no_exclude_limit?; end - # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#102 + # source://rubocop/lib/rubocop/formatter/disabled_config_formatter.rb#102 def output_cop(cop_name, offense_count); end - # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#137 + # source://rubocop/lib/rubocop/formatter/disabled_config_formatter.rb#137 def output_cop_comments(output_buffer, cfg, cop_name, offense_count); end - # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#189 + # source://rubocop/lib/rubocop/formatter/disabled_config_formatter.rb#189 def output_cop_config(output_buffer, cfg, cop_name); end - # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#172 + # source://rubocop/lib/rubocop/formatter/disabled_config_formatter.rb#172 def output_cop_param_comments(output_buffer, params, default_cfg); end - # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#219 + # source://rubocop/lib/rubocop/formatter/disabled_config_formatter.rb#219 def output_exclude_list(output_buffer, offending_files, cop_name); end - # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#254 + # source://rubocop/lib/rubocop/formatter/disabled_config_formatter.rb#254 def output_exclude_path(output_buffer, exclude_path, parent); end - # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#208 + # source://rubocop/lib/rubocop/formatter/disabled_config_formatter.rb#208 def output_offending_files(output_buffer, cfg, cop_name); end - # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#96 + # source://rubocop/lib/rubocop/formatter/disabled_config_formatter.rb#96 def output_offenses; end # @return [Boolean] # - # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#267 + # source://rubocop/lib/rubocop/formatter/disabled_config_formatter.rb#267 def safe_autocorrect?(config); end - # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#116 + # source://rubocop/lib/rubocop/formatter/disabled_config_formatter.rb#116 def set_max(cfg, cop_name); end # @return [Boolean] # - # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#125 + # source://rubocop/lib/rubocop/formatter/disabled_config_formatter.rb#125 def should_set_max?(cop_name); end # @return [Boolean] # - # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#65 + # source://rubocop/lib/rubocop/formatter/disabled_config_formatter.rb#65 def show_offense_counts?; end # @return [Boolean] # - # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#61 + # source://rubocop/lib/rubocop/formatter/disabled_config_formatter.rb#61 def show_timestamp?; end # @return [Boolean] # - # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#157 + # source://rubocop/lib/rubocop/formatter/disabled_config_formatter.rb#157 def supports_safe_autocorrect?(cop_class, default_cfg); end # @return [Boolean] # - # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#161 + # source://rubocop/lib/rubocop/formatter/disabled_config_formatter.rb#161 def supports_unsafe_autocorrect?(cop_class, default_cfg); end - # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#92 + # source://rubocop/lib/rubocop/formatter/disabled_config_formatter.rb#92 def timestamp; end class << self # Returns the value of attribute config_to_allow_offenses. # - # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#24 + # source://rubocop/lib/rubocop/formatter/disabled_config_formatter.rb#24 def config_to_allow_offenses; end # Sets the attribute config_to_allow_offenses # # @param value the value to set the attribute config_to_allow_offenses to. # - # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#24 + # source://rubocop/lib/rubocop/formatter/disabled_config_formatter.rb#24 def config_to_allow_offenses=(_arg0); end # Returns the value of attribute detected_styles. # - # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#24 + # source://rubocop/lib/rubocop/formatter/disabled_config_formatter.rb#24 def detected_styles; end # Sets the attribute detected_styles # # @param value the value to set the attribute detected_styles to. # - # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#24 + # source://rubocop/lib/rubocop/formatter/disabled_config_formatter.rb#24 def detected_styles=(_arg0); end end end -# source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#10 +# source://rubocop/lib/rubocop/formatter/disabled_config_formatter.rb#10 RuboCop::Formatter::DisabledConfigFormatter::HEADING = T.let(T.unsafe(nil), String) # This formatter displays the report data in format that's # easy to process in the Emacs text editor. # The output is machine-parsable. # -# source://rubocop//lib/rubocop/formatter/emacs_style_formatter.rb#8 +# source://rubocop/lib/rubocop/formatter/emacs_style_formatter.rb#8 class RuboCop::Formatter::EmacsStyleFormatter < ::RuboCop::Formatter::BaseFormatter - # source://rubocop//lib/rubocop/formatter/emacs_style_formatter.rb#9 + # source://rubocop/lib/rubocop/formatter/emacs_style_formatter.rb#9 def file_finished(file, offenses); end private - # source://rubocop//lib/rubocop/formatter/emacs_style_formatter.rb#24 + # source://rubocop/lib/rubocop/formatter/emacs_style_formatter.rb#24 def message(offense); end end @@ -56066,9 +56727,9 @@ end # /some/file # /some/other/file # -# source://rubocop//lib/rubocop/formatter/file_list_formatter.rb#12 +# source://rubocop/lib/rubocop/formatter/file_list_formatter.rb#12 class RuboCop::Formatter::FileListFormatter < ::RuboCop::Formatter::BaseFormatter - # source://rubocop//lib/rubocop/formatter/file_list_formatter.rb#13 + # source://rubocop/lib/rubocop/formatter/file_list_formatter.rb#13 def file_finished(file, offenses); end end @@ -56076,50 +56737,50 @@ end # formatter instances and provides transparent formatter API methods # which invoke same method of each formatters. # -# source://rubocop//lib/rubocop/formatter/formatter_set.rb#10 +# source://rubocop/lib/rubocop/formatter/formatter_set.rb#10 class RuboCop::Formatter::FormatterSet < ::Array # @return [FormatterSet] a new instance of FormatterSet # - # source://rubocop//lib/rubocop/formatter/formatter_set.rb#40 + # source://rubocop/lib/rubocop/formatter/formatter_set.rb#40 def initialize(options = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/formatter/formatter_set.rb#56 + # source://rubocop/lib/rubocop/formatter/formatter_set.rb#56 def add_formatter(formatter_type, output_path = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/formatter/formatter_set.rb#68 + # source://rubocop/lib/rubocop/formatter/formatter_set.rb#68 def close_output_files; end - # source://rubocop//lib/rubocop/formatter/formatter_set.rb#51 + # source://rubocop/lib/rubocop/formatter/formatter_set.rb#51 def file_finished(file, offenses); end - # source://rubocop//lib/rubocop/formatter/formatter_set.rb#45 + # source://rubocop/lib/rubocop/formatter/formatter_set.rb#45 def file_started(file, options); end - # source://rubocop//lib/rubocop/formatter/formatter_set.rb#35 + # source://rubocop/lib/rubocop/formatter/formatter_set.rb#35 def finished(*args); end - # source://rubocop//lib/rubocop/formatter/formatter_set.rb#35 + # source://rubocop/lib/rubocop/formatter/formatter_set.rb#35 def started(*args); end private - # source://rubocop//lib/rubocop/formatter/formatter_set.rb#87 + # source://rubocop/lib/rubocop/formatter/formatter_set.rb#87 def builtin_formatter_class(specified_key); end - # source://rubocop//lib/rubocop/formatter/formatter_set.rb#105 + # source://rubocop/lib/rubocop/formatter/formatter_set.rb#105 def custom_formatter_class(specified_class_name); end - # source://rubocop//lib/rubocop/formatter/formatter_set.rb#76 + # source://rubocop/lib/rubocop/formatter/formatter_set.rb#76 def formatter_class(formatter_type); end end -# source://rubocop//lib/rubocop/formatter/formatter_set.rb#11 +# source://rubocop/lib/rubocop/formatter/formatter_set.rb#11 RuboCop::Formatter::FormatterSet::BUILTIN_FORMATTERS_FOR_KEYS = T.let(T.unsafe(nil), Hash) -# source://rubocop//lib/rubocop/formatter/formatter_set.rb#30 +# source://rubocop/lib/rubocop/formatter/formatter_set.rb#30 RuboCop::Formatter::FormatterSet::BUILTIN_FORMATTER_NAMES = T.let(T.unsafe(nil), Array) -# source://rubocop//lib/rubocop/formatter/formatter_set.rb#32 +# source://rubocop/lib/rubocop/formatter/formatter_set.rb#32 RuboCop::Formatter::FormatterSet::FORMATTER_APIS = T.let(T.unsafe(nil), Array) # This formatter displays a progress bar and shows details of offenses as @@ -56127,113 +56788,113 @@ RuboCop::Formatter::FormatterSet::FORMATTER_APIS = T.let(T.unsafe(nil), Array) # This is inspired by the Fuubar formatter for RSpec by Jeff Kreeftmeijer. # https://github.com/jeffkreeftmeijer/fuubar # -# source://rubocop//lib/rubocop/formatter/fuubar_style_formatter.rb#11 +# source://rubocop/lib/rubocop/formatter/fuubar_style_formatter.rb#11 class RuboCop::Formatter::FuubarStyleFormatter < ::RuboCop::Formatter::ClangStyleFormatter # @return [FuubarStyleFormatter] a new instance of FuubarStyleFormatter # - # source://rubocop//lib/rubocop/formatter/fuubar_style_formatter.rb#14 + # source://rubocop/lib/rubocop/formatter/fuubar_style_formatter.rb#14 def initialize(*output); end - # source://rubocop//lib/rubocop/formatter/fuubar_style_formatter.rb#51 + # source://rubocop/lib/rubocop/formatter/fuubar_style_formatter.rb#51 def count_stats(offenses); end - # source://rubocop//lib/rubocop/formatter/fuubar_style_formatter.rb#40 + # source://rubocop/lib/rubocop/formatter/fuubar_style_formatter.rb#40 def file_finished(file, offenses); end - # source://rubocop//lib/rubocop/formatter/fuubar_style_formatter.rb#71 + # source://rubocop/lib/rubocop/formatter/fuubar_style_formatter.rb#71 def progressbar_color; end - # source://rubocop//lib/rubocop/formatter/fuubar_style_formatter.rb#20 + # source://rubocop/lib/rubocop/formatter/fuubar_style_formatter.rb#20 def started(target_files); end - # source://rubocop//lib/rubocop/formatter/fuubar_style_formatter.rb#61 + # source://rubocop/lib/rubocop/formatter/fuubar_style_formatter.rb#61 def with_color; end end -# source://rubocop//lib/rubocop/formatter/fuubar_style_formatter.rb#12 +# source://rubocop/lib/rubocop/formatter/fuubar_style_formatter.rb#12 RuboCop::Formatter::FuubarStyleFormatter::RESET_SEQUENCE = T.let(T.unsafe(nil), String) # This formatter formats report data as GitHub Workflow commands resulting # in GitHub check annotations when run within GitHub Actions. # -# source://rubocop//lib/rubocop/formatter/github_actions_formatter.rb#7 +# source://rubocop/lib/rubocop/formatter/github_actions_formatter.rb#7 class RuboCop::Formatter::GitHubActionsFormatter < ::RuboCop::Formatter::BaseFormatter - # source://rubocop//lib/rubocop/formatter/github_actions_formatter.rb#14 + # source://rubocop/lib/rubocop/formatter/github_actions_formatter.rb#14 def file_finished(file, offenses); end - # source://rubocop//lib/rubocop/formatter/github_actions_formatter.rb#18 + # source://rubocop/lib/rubocop/formatter/github_actions_formatter.rb#18 def finished(_inspected_files); end - # source://rubocop//lib/rubocop/formatter/github_actions_formatter.rb#10 + # source://rubocop/lib/rubocop/formatter/github_actions_formatter.rb#10 def started(_target_files); end private - # source://rubocop//lib/rubocop/formatter/github_actions_formatter.rb#29 + # source://rubocop/lib/rubocop/formatter/github_actions_formatter.rb#29 def github_escape(string); end - # source://rubocop//lib/rubocop/formatter/github_actions_formatter.rb#41 + # source://rubocop/lib/rubocop/formatter/github_actions_formatter.rb#41 def github_severity(offense); end - # source://rubocop//lib/rubocop/formatter/github_actions_formatter.rb#33 + # source://rubocop/lib/rubocop/formatter/github_actions_formatter.rb#33 def minimum_severity_to_fail; end - # source://rubocop//lib/rubocop/formatter/github_actions_formatter.rb#45 + # source://rubocop/lib/rubocop/formatter/github_actions_formatter.rb#45 def report_offense(file, offense); end end -# source://rubocop//lib/rubocop/formatter/github_actions_formatter.rb#8 +# source://rubocop/lib/rubocop/formatter/github_actions_formatter.rb#8 RuboCop::Formatter::GitHubActionsFormatter::ESCAPE_MAP = T.let(T.unsafe(nil), Hash) # This formatter saves the output as an html file. # -# source://rubocop//lib/rubocop/formatter/html_formatter.rb#9 +# source://rubocop/lib/rubocop/formatter/html_formatter.rb#9 class RuboCop::Formatter::HTMLFormatter < ::RuboCop::Formatter::BaseFormatter # @return [HTMLFormatter] a new instance of HTMLFormatter # - # source://rubocop//lib/rubocop/formatter/html_formatter.rb#29 + # source://rubocop/lib/rubocop/formatter/html_formatter.rb#29 def initialize(output, options = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/formatter/html_formatter.rb#39 + # source://rubocop/lib/rubocop/formatter/html_formatter.rb#39 def file_finished(file, offenses); end # Returns the value of attribute files. # - # source://rubocop//lib/rubocop/formatter/html_formatter.rb#27 + # source://rubocop/lib/rubocop/formatter/html_formatter.rb#27 def files; end - # source://rubocop//lib/rubocop/formatter/html_formatter.rb#44 + # source://rubocop/lib/rubocop/formatter/html_formatter.rb#44 def finished(inspected_files); end - # source://rubocop//lib/rubocop/formatter/html_formatter.rb#50 + # source://rubocop/lib/rubocop/formatter/html_formatter.rb#50 def render_html; end - # source://rubocop//lib/rubocop/formatter/html_formatter.rb#35 + # source://rubocop/lib/rubocop/formatter/html_formatter.rb#35 def started(target_files); end # Returns the value of attribute summary. # - # source://rubocop//lib/rubocop/formatter/html_formatter.rb#27 + # source://rubocop/lib/rubocop/formatter/html_formatter.rb#27 def summary; end end # This class provides helper methods used in the ERB CSS template. # -# source://rubocop//lib/rubocop/formatter/html_formatter.rb#137 +# source://rubocop/lib/rubocop/formatter/html_formatter.rb#137 class RuboCop::Formatter::HTMLFormatter::CSSContext # Make Kernel#binding public. # - # source://rubocop//lib/rubocop/formatter/html_formatter.rb#148 + # source://rubocop/lib/rubocop/formatter/html_formatter.rb#148 def binding; end end -# source://rubocop//lib/rubocop/formatter/html_formatter.rb#138 +# source://rubocop/lib/rubocop/formatter/html_formatter.rb#138 RuboCop::Formatter::HTMLFormatter::CSSContext::SEVERITY_COLORS = T.let(T.unsafe(nil), Hash) -# source://rubocop//lib/rubocop/formatter/html_formatter.rb#12 +# source://rubocop/lib/rubocop/formatter/html_formatter.rb#12 RuboCop::Formatter::HTMLFormatter::CSS_PATH = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/formatter/html_formatter.rb#14 +# source://rubocop/lib/rubocop/formatter/html_formatter.rb#14 class RuboCop::Formatter::HTMLFormatter::Color < ::Struct # Returns the value of attribute alpha # @@ -56257,7 +56918,7 @@ class RuboCop::Formatter::HTMLFormatter::Color < ::Struct # @return [Object] the newly set value def blue=(_); end - # source://rubocop//lib/rubocop/formatter/html_formatter.rb#19 + # source://rubocop/lib/rubocop/formatter/html_formatter.rb#19 def fade_out(amount); end # Returns the value of attribute green @@ -56282,7 +56943,7 @@ class RuboCop::Formatter::HTMLFormatter::Color < ::Struct # @return [Object] the newly set value def red=(_); end - # source://rubocop//lib/rubocop/formatter/html_formatter.rb#15 + # source://rubocop/lib/rubocop/formatter/html_formatter.rb#15 def to_s; end class << self @@ -56294,68 +56955,68 @@ class RuboCop::Formatter::HTMLFormatter::Color < ::Struct end end -# source://rubocop//lib/rubocop/formatter/html_formatter.rb#10 +# source://rubocop/lib/rubocop/formatter/html_formatter.rb#10 RuboCop::Formatter::HTMLFormatter::ELLIPSES = T.let(T.unsafe(nil), String) # This class provides helper methods used in the ERB template. # -# source://rubocop//lib/rubocop/formatter/html_formatter.rb#63 +# source://rubocop/lib/rubocop/formatter/html_formatter.rb#63 class RuboCop::Formatter::HTMLFormatter::ERBContext include ::RuboCop::PathUtil include ::RuboCop::Formatter::TextUtil # @return [ERBContext] a new instance of ERBContext # - # source://rubocop//lib/rubocop/formatter/html_formatter.rb#71 + # source://rubocop/lib/rubocop/formatter/html_formatter.rb#71 def initialize(files, summary); end - # source://rubocop//lib/rubocop/formatter/html_formatter.rb#118 + # source://rubocop/lib/rubocop/formatter/html_formatter.rb#118 def base64_encoded_logo_image; end # Make Kernel#binding public. # - # source://rubocop//lib/rubocop/formatter/html_formatter.rb#78 + # source://rubocop/lib/rubocop/formatter/html_formatter.rb#78 def binding; end - # source://rubocop//lib/rubocop/formatter/html_formatter.rb#83 + # source://rubocop/lib/rubocop/formatter/html_formatter.rb#83 def decorated_message(offense); end - # source://rubocop//lib/rubocop/formatter/html_formatter.rb#114 + # source://rubocop/lib/rubocop/formatter/html_formatter.rb#114 def escape(string); end # Returns the value of attribute files. # - # source://rubocop//lib/rubocop/formatter/html_formatter.rb#69 + # source://rubocop/lib/rubocop/formatter/html_formatter.rb#69 def files; end - # source://rubocop//lib/rubocop/formatter/html_formatter.rb#94 + # source://rubocop/lib/rubocop/formatter/html_formatter.rb#94 def highlight_source_tag(offense); end - # source://rubocop//lib/rubocop/formatter/html_formatter.rb#87 + # source://rubocop/lib/rubocop/formatter/html_formatter.rb#87 def highlighted_source_line(offense); end - # source://rubocop//lib/rubocop/formatter/html_formatter.rb#110 + # source://rubocop/lib/rubocop/formatter/html_formatter.rb#110 def possible_ellipses(location); end - # source://rubocop//lib/rubocop/formatter/html_formatter.rb#126 + # source://rubocop/lib/rubocop/formatter/html_formatter.rb#126 def render_css; end - # source://rubocop//lib/rubocop/formatter/html_formatter.rb#105 + # source://rubocop/lib/rubocop/formatter/html_formatter.rb#105 def source_after_highlight(offense); end - # source://rubocop//lib/rubocop/formatter/html_formatter.rb#100 + # source://rubocop/lib/rubocop/formatter/html_formatter.rb#100 def source_before_highlight(offense); end # Returns the value of attribute summary. # - # source://rubocop//lib/rubocop/formatter/html_formatter.rb#69 + # source://rubocop/lib/rubocop/formatter/html_formatter.rb#69 def summary; end end -# source://rubocop//lib/rubocop/formatter/html_formatter.rb#67 +# source://rubocop/lib/rubocop/formatter/html_formatter.rb#67 RuboCop::Formatter::HTMLFormatter::ERBContext::LOGO_IMAGE_PATH = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/formatter/html_formatter.rb#25 +# source://rubocop/lib/rubocop/formatter/html_formatter.rb#25 class RuboCop::Formatter::HTMLFormatter::FileOffenses < ::Struct # Returns the value of attribute offenses # @@ -56388,7 +57049,7 @@ class RuboCop::Formatter::HTMLFormatter::FileOffenses < ::Struct end end -# source://rubocop//lib/rubocop/formatter/html_formatter.rb#24 +# source://rubocop/lib/rubocop/formatter/html_formatter.rb#24 class RuboCop::Formatter::HTMLFormatter::Summary < ::Struct # Returns the value of attribute inspected_files # @@ -56432,27 +57093,27 @@ class RuboCop::Formatter::HTMLFormatter::Summary < ::Struct end end -# source://rubocop//lib/rubocop/formatter/html_formatter.rb#11 +# source://rubocop/lib/rubocop/formatter/html_formatter.rb#11 RuboCop::Formatter::HTMLFormatter::TEMPLATE_PATH = T.let(T.unsafe(nil), String) # This formatter formats the report data in JSON format. # -# source://rubocop//lib/rubocop/formatter/json_formatter.rb#8 +# source://rubocop/lib/rubocop/formatter/json_formatter.rb#8 class RuboCop::Formatter::JSONFormatter < ::RuboCop::Formatter::BaseFormatter include ::RuboCop::PathUtil # @return [JSONFormatter] a new instance of JSONFormatter # - # source://rubocop//lib/rubocop/formatter/json_formatter.rb#13 + # source://rubocop/lib/rubocop/formatter/json_formatter.rb#13 def initialize(output, options = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/formatter/json_formatter.rb#22 + # source://rubocop/lib/rubocop/formatter/json_formatter.rb#22 def file_finished(file, offenses); end - # source://rubocop//lib/rubocop/formatter/json_formatter.rb#27 + # source://rubocop/lib/rubocop/formatter/json_formatter.rb#27 def finished(inspected_files); end - # source://rubocop//lib/rubocop/formatter/json_formatter.rb#42 + # source://rubocop/lib/rubocop/formatter/json_formatter.rb#42 def hash_for_file(file, offenses); end # TODO: Consider better solution for Offense#real_column. @@ -56460,163 +57121,163 @@ class RuboCop::Formatter::JSONFormatter < ::RuboCop::Formatter::BaseFormatter # So, the minimum value of `last_column` should be 1. # And non-zero value of `last_column` should be used as is. # - # source://rubocop//lib/rubocop/formatter/json_formatter.rb#64 + # source://rubocop/lib/rubocop/formatter/json_formatter.rb#64 def hash_for_location(offense); end - # source://rubocop//lib/rubocop/formatter/json_formatter.rb#49 + # source://rubocop/lib/rubocop/formatter/json_formatter.rb#49 def hash_for_offense(offense); end - # source://rubocop//lib/rubocop/formatter/json_formatter.rb#32 + # source://rubocop/lib/rubocop/formatter/json_formatter.rb#32 def metadata_hash; end # Returns the value of attribute output_hash. # - # source://rubocop//lib/rubocop/formatter/json_formatter.rb#11 + # source://rubocop/lib/rubocop/formatter/json_formatter.rb#11 def output_hash; end - # source://rubocop//lib/rubocop/formatter/json_formatter.rb#18 + # source://rubocop/lib/rubocop/formatter/json_formatter.rb#18 def started(target_files); end end # This formatter formats the report data in JUnit format. # -# source://rubocop//lib/rubocop/formatter/junit_formatter.rb#15 +# source://rubocop/lib/rubocop/formatter/junit_formatter.rb#15 class RuboCop::Formatter::JUnitFormatter < ::RuboCop::Formatter::BaseFormatter # @return [JUnitFormatter] a new instance of JUnitFormatter # - # source://rubocop//lib/rubocop/formatter/junit_formatter.rb#24 + # source://rubocop/lib/rubocop/formatter/junit_formatter.rb#24 def initialize(output, options = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/formatter/junit_formatter.rb#32 + # source://rubocop/lib/rubocop/formatter/junit_formatter.rb#32 def file_finished(file, offenses); end - # source://rubocop//lib/rubocop/formatter/junit_formatter.rb#51 + # source://rubocop/lib/rubocop/formatter/junit_formatter.rb#51 def finished(_inspected_files); end private - # source://rubocop//lib/rubocop/formatter/junit_formatter.rb#106 + # source://rubocop/lib/rubocop/formatter/junit_formatter.rb#106 def add_failure_to(testcase, offenses, cop_name); end - # source://rubocop//lib/rubocop/formatter/junit_formatter.rb#85 + # source://rubocop/lib/rubocop/formatter/junit_formatter.rb#85 def add_testcase_element_to_testsuite_element(file, target_offenses, cop); end - # source://rubocop//lib/rubocop/formatter/junit_formatter.rb#94 + # source://rubocop/lib/rubocop/formatter/junit_formatter.rb#94 def classname_attribute_value(file); end - # source://rubocop//lib/rubocop/formatter/junit_formatter.rb#81 + # source://rubocop/lib/rubocop/formatter/junit_formatter.rb#81 def offenses_for_cop(all_offenses, cop); end # @return [Boolean] # - # source://rubocop//lib/rubocop/formatter/junit_formatter.rb#77 + # source://rubocop/lib/rubocop/formatter/junit_formatter.rb#77 def relevant_for_output?(options, target_offenses); end - # source://rubocop//lib/rubocop/formatter/junit_formatter.rb#101 + # source://rubocop/lib/rubocop/formatter/junit_formatter.rb#101 def reset_count; end - # source://rubocop//lib/rubocop/formatter/junit_formatter.rb#118 + # source://rubocop/lib/rubocop/formatter/junit_formatter.rb#118 def xml_escape(string); end end -# source://rubocop//lib/rubocop/formatter/junit_formatter.rb#16 +# source://rubocop/lib/rubocop/formatter/junit_formatter.rb#16 RuboCop::Formatter::JUnitFormatter::ESCAPE_MAP = T.let(T.unsafe(nil), Hash) -# source://rubocop//lib/rubocop/formatter/junit_formatter.rb#132 +# source://rubocop/lib/rubocop/formatter/junit_formatter.rb#132 class RuboCop::Formatter::JUnitFormatter::FailureElement # @return [FailureElement] a new instance of FailureElement # - # source://rubocop//lib/rubocop/formatter/junit_formatter.rb#135 + # source://rubocop/lib/rubocop/formatter/junit_formatter.rb#135 def initialize(type:, message:, text:); end # Returns the value of attribute message. # - # source://rubocop//lib/rubocop/formatter/junit_formatter.rb#133 + # source://rubocop/lib/rubocop/formatter/junit_formatter.rb#133 def message; end # Returns the value of attribute text. # - # source://rubocop//lib/rubocop/formatter/junit_formatter.rb#133 + # source://rubocop/lib/rubocop/formatter/junit_formatter.rb#133 def text; end # Returns the value of attribute type. # - # source://rubocop//lib/rubocop/formatter/junit_formatter.rb#133 + # source://rubocop/lib/rubocop/formatter/junit_formatter.rb#133 def type; end end -# source://rubocop//lib/rubocop/formatter/junit_formatter.rb#122 +# source://rubocop/lib/rubocop/formatter/junit_formatter.rb#122 class RuboCop::Formatter::JUnitFormatter::TestCaseElement # @return [TestCaseElement] a new instance of TestCaseElement # - # source://rubocop//lib/rubocop/formatter/junit_formatter.rb#125 + # source://rubocop/lib/rubocop/formatter/junit_formatter.rb#125 def initialize(classname:, name:); end # Returns the value of attribute classname. # - # source://rubocop//lib/rubocop/formatter/junit_formatter.rb#123 + # source://rubocop/lib/rubocop/formatter/junit_formatter.rb#123 def classname; end # Returns the value of attribute failures. # - # source://rubocop//lib/rubocop/formatter/junit_formatter.rb#123 + # source://rubocop/lib/rubocop/formatter/junit_formatter.rb#123 def failures; end # Returns the value of attribute name. # - # source://rubocop//lib/rubocop/formatter/junit_formatter.rb#123 + # source://rubocop/lib/rubocop/formatter/junit_formatter.rb#123 def name; end end # This formatter displays the report data in markdown # -# source://rubocop//lib/rubocop/formatter/markdown_formatter.rb#6 +# source://rubocop/lib/rubocop/formatter/markdown_formatter.rb#6 class RuboCop::Formatter::MarkdownFormatter < ::RuboCop::Formatter::BaseFormatter include ::RuboCop::Formatter::TextUtil include ::RuboCop::PathUtil # @return [MarkdownFormatter] a new instance of MarkdownFormatter # - # source://rubocop//lib/rubocop/formatter/markdown_formatter.rb#11 + # source://rubocop/lib/rubocop/formatter/markdown_formatter.rb#11 def initialize(output, options = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/formatter/markdown_formatter.rb#21 + # source://rubocop/lib/rubocop/formatter/markdown_formatter.rb#21 def file_finished(file, offenses); end # Returns the value of attribute files. # - # source://rubocop//lib/rubocop/formatter/markdown_formatter.rb#9 + # source://rubocop/lib/rubocop/formatter/markdown_formatter.rb#9 def files; end - # source://rubocop//lib/rubocop/formatter/markdown_formatter.rb#26 + # source://rubocop/lib/rubocop/formatter/markdown_formatter.rb#26 def finished(inspected_files); end - # source://rubocop//lib/rubocop/formatter/markdown_formatter.rb#17 + # source://rubocop/lib/rubocop/formatter/markdown_formatter.rb#17 def started(target_files); end # Returns the value of attribute summary. # - # source://rubocop//lib/rubocop/formatter/markdown_formatter.rb#9 + # source://rubocop/lib/rubocop/formatter/markdown_formatter.rb#9 def summary; end private - # source://rubocop//lib/rubocop/formatter/markdown_formatter.rb#73 + # source://rubocop/lib/rubocop/formatter/markdown_formatter.rb#73 def possible_ellipses(location); end - # source://rubocop//lib/rubocop/formatter/markdown_formatter.rb#33 + # source://rubocop/lib/rubocop/formatter/markdown_formatter.rb#33 def render_markdown; end - # source://rubocop//lib/rubocop/formatter/markdown_formatter.rb#67 + # source://rubocop/lib/rubocop/formatter/markdown_formatter.rb#67 def write_code(offense); end - # source://rubocop//lib/rubocop/formatter/markdown_formatter.rb#61 + # source://rubocop/lib/rubocop/formatter/markdown_formatter.rb#61 def write_context(offense); end - # source://rubocop//lib/rubocop/formatter/markdown_formatter.rb#42 + # source://rubocop/lib/rubocop/formatter/markdown_formatter.rb#42 def write_file_messages; end - # source://rubocop//lib/rubocop/formatter/markdown_formatter.rb#54 + # source://rubocop/lib/rubocop/formatter/markdown_formatter.rb#54 def write_heading(file); end end @@ -56630,32 +57291,32 @@ end # -- # 29 Total in 5 files # -# source://rubocop//lib/rubocop/formatter/offense_count_formatter.rb#16 +# source://rubocop/lib/rubocop/formatter/offense_count_formatter.rb#16 class RuboCop::Formatter::OffenseCountFormatter < ::RuboCop::Formatter::BaseFormatter - # source://rubocop//lib/rubocop/formatter/offense_count_formatter.rb#81 + # source://rubocop/lib/rubocop/formatter/offense_count_formatter.rb#81 def cop_information(cop_name); end - # source://rubocop//lib/rubocop/formatter/offense_count_formatter.rb#42 + # source://rubocop/lib/rubocop/formatter/offense_count_formatter.rb#42 def file_finished(_file, offenses); end - # source://rubocop//lib/rubocop/formatter/offense_count_formatter.rb#51 + # source://rubocop/lib/rubocop/formatter/offense_count_formatter.rb#51 def finished(_inspected_files); end # Returns the value of attribute offense_counts. # - # source://rubocop//lib/rubocop/formatter/offense_count_formatter.rb#17 + # source://rubocop/lib/rubocop/formatter/offense_count_formatter.rb#17 def offense_counts; end - # source://rubocop//lib/rubocop/formatter/offense_count_formatter.rb#73 + # source://rubocop/lib/rubocop/formatter/offense_count_formatter.rb#73 def ordered_offense_counts(offense_counts); end - # source://rubocop//lib/rubocop/formatter/offense_count_formatter.rb#56 + # source://rubocop/lib/rubocop/formatter/offense_count_formatter.rb#56 def report_summary(offense_counts, offending_files_count); end - # source://rubocop//lib/rubocop/formatter/offense_count_formatter.rb#19 + # source://rubocop/lib/rubocop/formatter/offense_count_formatter.rb#19 def started(target_files); end - # source://rubocop//lib/rubocop/formatter/offense_count_formatter.rb#77 + # source://rubocop/lib/rubocop/formatter/offense_count_formatter.rb#77 def total_offense_count(offense_counts); end end @@ -56665,99 +57326,99 @@ end # This is inspired by the Pacman formatter for RSpec by Carlos Rojas. # https://github.com/go-labs/rspec_pacman_formatter # -# source://rubocop//lib/rubocop/formatter/pacman_formatter.rb#10 +# source://rubocop/lib/rubocop/formatter/pacman_formatter.rb#10 class RuboCop::Formatter::PacmanFormatter < ::RuboCop::Formatter::ClangStyleFormatter include ::RuboCop::Formatter::TextUtil # @return [PacmanFormatter] a new instance of PacmanFormatter # - # source://rubocop//lib/rubocop/formatter/pacman_formatter.rb#19 + # source://rubocop/lib/rubocop/formatter/pacman_formatter.rb#19 def initialize(output, options = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/formatter/pacman_formatter.rb#50 + # source://rubocop/lib/rubocop/formatter/pacman_formatter.rb#50 def cols; end - # source://rubocop//lib/rubocop/formatter/pacman_formatter.rb#37 + # source://rubocop/lib/rubocop/formatter/pacman_formatter.rb#37 def file_finished(file, offenses); end - # source://rubocop//lib/rubocop/formatter/pacman_formatter.rb#33 + # source://rubocop/lib/rubocop/formatter/pacman_formatter.rb#33 def file_started(_file, _options); end - # source://rubocop//lib/rubocop/formatter/pacman_formatter.rb#43 + # source://rubocop/lib/rubocop/formatter/pacman_formatter.rb#43 def next_step(offenses); end - # source://rubocop//lib/rubocop/formatter/pacman_formatter.rb#64 + # source://rubocop/lib/rubocop/formatter/pacman_formatter.rb#64 def pacdots(number); end # Returns the value of attribute progress_line. # - # source://rubocop//lib/rubocop/formatter/pacman_formatter.rb#12 + # source://rubocop/lib/rubocop/formatter/pacman_formatter.rb#12 def progress_line; end # Sets the attribute progress_line # # @param value the value to set the attribute progress_line to. # - # source://rubocop//lib/rubocop/formatter/pacman_formatter.rb#12 + # source://rubocop/lib/rubocop/formatter/pacman_formatter.rb#12 def progress_line=(_arg0); end - # source://rubocop//lib/rubocop/formatter/pacman_formatter.rb#26 + # source://rubocop/lib/rubocop/formatter/pacman_formatter.rb#26 def started(target_files); end - # source://rubocop//lib/rubocop/formatter/pacman_formatter.rb#68 + # source://rubocop/lib/rubocop/formatter/pacman_formatter.rb#68 def step(character); end - # source://rubocop//lib/rubocop/formatter/pacman_formatter.rb#57 + # source://rubocop/lib/rubocop/formatter/pacman_formatter.rb#57 def update_progress_line; end end -# source://rubocop//lib/rubocop/formatter/pacman_formatter.rb#14 +# source://rubocop/lib/rubocop/formatter/pacman_formatter.rb#14 RuboCop::Formatter::PacmanFormatter::FALLBACK_TERMINAL_WIDTH = T.let(T.unsafe(nil), Integer) -# source://rubocop//lib/rubocop/formatter/pacman_formatter.rb#15 +# source://rubocop/lib/rubocop/formatter/pacman_formatter.rb#15 RuboCop::Formatter::PacmanFormatter::GHOST = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/formatter/pacman_formatter.rb#17 +# source://rubocop/lib/rubocop/formatter/pacman_formatter.rb#17 RuboCop::Formatter::PacmanFormatter::PACDOT = T.let(T.unsafe(nil), Rainbow::Presenter) -# source://rubocop//lib/rubocop/formatter/pacman_formatter.rb#16 +# source://rubocop/lib/rubocop/formatter/pacman_formatter.rb#16 RuboCop::Formatter::PacmanFormatter::PACMAN = T.let(T.unsafe(nil), Rainbow::Presenter) # This formatter display dots for files with no offenses and # letters for files with problems in the them. In the end it # appends the regular report data in the clang style format. # -# source://rubocop//lib/rubocop/formatter/progress_formatter.rb#8 +# source://rubocop/lib/rubocop/formatter/progress_formatter.rb#8 class RuboCop::Formatter::ProgressFormatter < ::RuboCop::Formatter::ClangStyleFormatter include ::RuboCop::Formatter::TextUtil # @return [ProgressFormatter] a new instance of ProgressFormatter # - # source://rubocop//lib/rubocop/formatter/progress_formatter.rb#13 + # source://rubocop/lib/rubocop/formatter/progress_formatter.rb#13 def initialize(output, options = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/formatter/progress_formatter.rb#24 + # source://rubocop/lib/rubocop/formatter/progress_formatter.rb#24 def file_finished(file, offenses); end - # source://rubocop//lib/rubocop/formatter/progress_formatter.rb#33 + # source://rubocop/lib/rubocop/formatter/progress_formatter.rb#33 def finished(inspected_files); end - # source://rubocop//lib/rubocop/formatter/progress_formatter.rb#50 + # source://rubocop/lib/rubocop/formatter/progress_formatter.rb#50 def report_file_as_mark(offenses); end - # source://rubocop//lib/rubocop/formatter/progress_formatter.rb#18 + # source://rubocop/lib/rubocop/formatter/progress_formatter.rb#18 def started(target_files); end end -# source://rubocop//lib/rubocop/formatter/progress_formatter.rb#11 +# source://rubocop/lib/rubocop/formatter/progress_formatter.rb#11 RuboCop::Formatter::ProgressFormatter::DOT = T.let(T.unsafe(nil), String) # If no offenses are found, no output is displayed. # Otherwise, SimpleTextFormatter's output is displayed. # -# source://rubocop//lib/rubocop/formatter/quiet_formatter.rb#7 +# source://rubocop/lib/rubocop/formatter/quiet_formatter.rb#7 class RuboCop::Formatter::QuietFormatter < ::RuboCop::Formatter::SimpleTextFormatter - # source://rubocop//lib/rubocop/formatter/quiet_formatter.rb#8 + # source://rubocop/lib/rubocop/formatter/quiet_formatter.rb#8 def report_summary(file_count, offense_count, correction_count, correctable_count); end end @@ -56765,119 +57426,119 @@ end # Offenses are displayed at compact form - just the # location of the problem and the associated message. # -# source://rubocop//lib/rubocop/formatter/simple_text_formatter.rb#10 +# source://rubocop/lib/rubocop/formatter/simple_text_formatter.rb#10 class RuboCop::Formatter::SimpleTextFormatter < ::RuboCop::Formatter::BaseFormatter include ::RuboCop::Formatter::Colorizable include ::RuboCop::PathUtil - # source://rubocop//lib/rubocop/formatter/simple_text_formatter.rb#29 + # source://rubocop/lib/rubocop/formatter/simple_text_formatter.rb#29 def file_finished(file, offenses); end - # source://rubocop//lib/rubocop/formatter/simple_text_formatter.rb#36 + # source://rubocop/lib/rubocop/formatter/simple_text_formatter.rb#36 def finished(inspected_files); end - # source://rubocop//lib/rubocop/formatter/simple_text_formatter.rb#43 + # source://rubocop/lib/rubocop/formatter/simple_text_formatter.rb#43 def report_file(file, offenses); end - # source://rubocop//lib/rubocop/formatter/simple_text_formatter.rb#57 + # source://rubocop/lib/rubocop/formatter/simple_text_formatter.rb#57 def report_summary(file_count, offense_count, correction_count, correctable_count); end - # source://rubocop//lib/rubocop/formatter/simple_text_formatter.rb#23 + # source://rubocop/lib/rubocop/formatter/simple_text_formatter.rb#23 def started(_target_files); end private - # source://rubocop//lib/rubocop/formatter/simple_text_formatter.rb#85 + # source://rubocop/lib/rubocop/formatter/simple_text_formatter.rb#85 def annotate_message(msg); end - # source://rubocop//lib/rubocop/formatter/simple_text_formatter.rb#80 + # source://rubocop/lib/rubocop/formatter/simple_text_formatter.rb#80 def colored_severity_code(offense); end - # source://rubocop//lib/rubocop/formatter/simple_text_formatter.rb#73 + # source://rubocop/lib/rubocop/formatter/simple_text_formatter.rb#73 def count_stats(offenses); end - # source://rubocop//lib/rubocop/formatter/simple_text_formatter.rb#89 + # source://rubocop/lib/rubocop/formatter/simple_text_formatter.rb#89 def message(offense); end end -# source://rubocop//lib/rubocop/formatter/simple_text_formatter.rb#14 +# source://rubocop/lib/rubocop/formatter/simple_text_formatter.rb#14 RuboCop::Formatter::SimpleTextFormatter::COLOR_FOR_SEVERITY = T.let(T.unsafe(nil), Hash) # A helper class for building the report summary text. # -# source://rubocop//lib/rubocop/formatter/simple_text_formatter.rb#105 +# source://rubocop/lib/rubocop/formatter/simple_text_formatter.rb#105 class RuboCop::Formatter::SimpleTextFormatter::Report include ::RuboCop::Formatter::Colorizable include ::RuboCop::Formatter::TextUtil # @return [Report] a new instance of Report # - # source://rubocop//lib/rubocop/formatter/simple_text_formatter.rb#110 + # source://rubocop/lib/rubocop/formatter/simple_text_formatter.rb#110 def initialize(file_count, offense_count, correction_count, correctable_count, rainbow, safe_autocorrect: T.unsafe(nil)); end - # source://rubocop//lib/rubocop/formatter/simple_text_formatter.rb#123 + # source://rubocop/lib/rubocop/formatter/simple_text_formatter.rb#123 def summary; end private - # source://rubocop//lib/rubocop/formatter/simple_text_formatter.rb#160 + # source://rubocop/lib/rubocop/formatter/simple_text_formatter.rb#160 def correctable; end - # source://rubocop//lib/rubocop/formatter/simple_text_formatter.rb#153 + # source://rubocop/lib/rubocop/formatter/simple_text_formatter.rb#153 def corrections; end - # source://rubocop//lib/rubocop/formatter/simple_text_formatter.rb#142 + # source://rubocop/lib/rubocop/formatter/simple_text_formatter.rb#142 def files; end - # source://rubocop//lib/rubocop/formatter/simple_text_formatter.rb#146 + # source://rubocop/lib/rubocop/formatter/simple_text_formatter.rb#146 def offenses; end # Returns the value of attribute rainbow. # - # source://rubocop//lib/rubocop/formatter/simple_text_formatter.rb#140 + # source://rubocop/lib/rubocop/formatter/simple_text_formatter.rb#140 def rainbow; end end # This formatter formats report data using the Test Anything Protocol. # TAP allows for to communicate tests results in a language agnostics way. # -# source://rubocop//lib/rubocop/formatter/tap_formatter.rb#7 +# source://rubocop/lib/rubocop/formatter/tap_formatter.rb#7 class RuboCop::Formatter::TapFormatter < ::RuboCop::Formatter::ClangStyleFormatter - # source://rubocop//lib/rubocop/formatter/tap_formatter.rb#14 + # source://rubocop/lib/rubocop/formatter/tap_formatter.rb#14 def file_finished(file, offenses); end - # source://rubocop//lib/rubocop/formatter/tap_formatter.rb#8 + # source://rubocop/lib/rubocop/formatter/tap_formatter.rb#8 def started(target_files); end private - # source://rubocop//lib/rubocop/formatter/tap_formatter.rb#62 + # source://rubocop/lib/rubocop/formatter/tap_formatter.rb#62 def annotate_message(msg); end - # source://rubocop//lib/rubocop/formatter/tap_formatter.rb#66 + # source://rubocop/lib/rubocop/formatter/tap_formatter.rb#66 def message(offense); end - # source://rubocop//lib/rubocop/formatter/tap_formatter.rb#39 + # source://rubocop/lib/rubocop/formatter/tap_formatter.rb#39 def report_highlighted_area(highlighted_area); end - # source://rubocop//lib/rubocop/formatter/tap_formatter.rb#29 + # source://rubocop/lib/rubocop/formatter/tap_formatter.rb#29 def report_line(location); end - # source://rubocop//lib/rubocop/formatter/tap_formatter.rb#46 + # source://rubocop/lib/rubocop/formatter/tap_formatter.rb#46 def report_offense(file, offense); end end # Common logic for UI texts. # -# source://rubocop//lib/rubocop/formatter/text_util.rb#6 +# source://rubocop/lib/rubocop/formatter/text_util.rb#6 module RuboCop::Formatter::TextUtil private - # source://rubocop//lib/rubocop/formatter/text_util.rb#9 + # source://rubocop/lib/rubocop/formatter/text_util.rb#9 def pluralize(number, thing, options = T.unsafe(nil)); end class << self - # source://rubocop//lib/rubocop/formatter/text_util.rb#9 + # source://rubocop/lib/rubocop/formatter/text_util.rb#9 def pluralize(number, thing, options = T.unsafe(nil)); end end end @@ -56892,38 +57553,38 @@ end # -- # 29 Total in 2 files # -# source://rubocop//lib/rubocop/formatter/worst_offenders_formatter.rb#16 +# source://rubocop/lib/rubocop/formatter/worst_offenders_formatter.rb#16 class RuboCop::Formatter::WorstOffendersFormatter < ::RuboCop::Formatter::BaseFormatter - # source://rubocop//lib/rubocop/formatter/worst_offenders_formatter.rb#24 + # source://rubocop/lib/rubocop/formatter/worst_offenders_formatter.rb#24 def file_finished(file, offenses); end - # source://rubocop//lib/rubocop/formatter/worst_offenders_formatter.rb#31 + # source://rubocop/lib/rubocop/formatter/worst_offenders_formatter.rb#31 def finished(_inspected_files); end # Returns the value of attribute offense_counts. # - # source://rubocop//lib/rubocop/formatter/worst_offenders_formatter.rb#17 + # source://rubocop/lib/rubocop/formatter/worst_offenders_formatter.rb#17 def offense_counts; end - # source://rubocop//lib/rubocop/formatter/worst_offenders_formatter.rb#55 + # source://rubocop/lib/rubocop/formatter/worst_offenders_formatter.rb#55 def ordered_offense_counts(offense_counts); end - # source://rubocop//lib/rubocop/formatter/worst_offenders_formatter.rb#36 + # source://rubocop/lib/rubocop/formatter/worst_offenders_formatter.rb#36 def report_summary(offense_counts); end - # source://rubocop//lib/rubocop/formatter/worst_offenders_formatter.rb#19 + # source://rubocop/lib/rubocop/formatter/worst_offenders_formatter.rb#19 def started(target_files); end - # source://rubocop//lib/rubocop/formatter/worst_offenders_formatter.rb#59 + # source://rubocop/lib/rubocop/formatter/worst_offenders_formatter.rb#59 def total_offense_count(offense_counts); end end -# source://rubocop//lib/rubocop/options.rb#8 +# source://rubocop/lib/rubocop/options.rb#8 class RuboCop::IncorrectCopNameError < ::StandardError; end # The RuboCop's built-in LSP module. # -# source://rubocop//lib/rubocop/lsp.rb#5 +# source://rubocop/lib/rubocop/lsp.rb#5 module RuboCop::LSP private @@ -56931,21 +57592,21 @@ module RuboCop::LSP # # @return [void] # - # source://rubocop//lib/rubocop/lsp.rb#25 + # source://rubocop/lib/rubocop/lsp.rb#25 def disable(&block); end # Enable LSP. # # @return [void] # - # source://rubocop//lib/rubocop/lsp.rb#18 + # source://rubocop/lib/rubocop/lsp.rb#18 def enable; end # Returns true when LSP is enabled, false when disabled. # # @return [Boolean] # - # source://rubocop//lib/rubocop/lsp.rb#11 + # source://rubocop/lib/rubocop/lsp.rb#11 def enabled?; end class << self @@ -56953,21 +57614,21 @@ module RuboCop::LSP # # @return [void] # - # source://rubocop//lib/rubocop/lsp.rb#25 + # source://rubocop/lib/rubocop/lsp.rb#25 def disable(&block); end # Enable LSP. # # @return [void] # - # source://rubocop//lib/rubocop/lsp.rb#18 + # source://rubocop/lib/rubocop/lsp.rb#18 def enable; end # Returns true when LSP is enabled, false when disabled. # # @return [Boolean] # - # source://rubocop//lib/rubocop/lsp.rb#11 + # source://rubocop/lib/rubocop/lsp.rb#11 def enabled?; end end end @@ -56977,13 +57638,13 @@ end # # @api private # -# source://rubocop//lib/rubocop/lockfile.rb#15 +# source://rubocop/lib/rubocop/lockfile.rb#15 class RuboCop::Lockfile # @api private # @param lockfile_path [String, Pathname, nil] # @return [Lockfile] a new instance of Lockfile # - # source://rubocop//lib/rubocop/lockfile.rb#17 + # source://rubocop/lib/rubocop/lockfile.rb#17 def initialize(lockfile_path = T.unsafe(nil)); end # Gems that the bundle directly depends on. @@ -56991,7 +57652,7 @@ class RuboCop::Lockfile # @api private # @return [Array, nil] # - # source://rubocop//lib/rubocop/lockfile.rb#29 + # source://rubocop/lib/rubocop/lockfile.rb#29 def dependencies; end # Returns the locked versions of gems from this lockfile. @@ -57000,7 +57661,7 @@ class RuboCop::Lockfile # @param include_transitive_dependencies: [Boolean] When false, only direct dependencies # are returned, i.e. those listed explicitly in the `Gemfile`. # - # source://rubocop//lib/rubocop/lockfile.rb#49 + # source://rubocop/lib/rubocop/lockfile.rb#49 def gem_versions(include_transitive_dependencies: T.unsafe(nil)); end # All activated gems, including transitive dependencies. @@ -57008,7 +57669,7 @@ class RuboCop::Lockfile # @api private # @return [Array, nil] # - # source://rubocop//lib/rubocop/lockfile.rb#37 + # source://rubocop/lib/rubocop/lockfile.rb#37 def gems; end # Whether this lockfile includes the named gem, directly or indirectly. @@ -57017,7 +57678,7 @@ class RuboCop::Lockfile # @param name [String] # @return [Boolean] # - # source://rubocop//lib/rubocop/lockfile.rb#65 + # source://rubocop/lib/rubocop/lockfile.rb#65 def includes_gem?(name); end private @@ -57025,13 +57686,13 @@ class RuboCop::Lockfile # @api private # @return [Bundler::LockfileParser, nil] # - # source://rubocop//lib/rubocop/lockfile.rb#72 + # source://rubocop/lib/rubocop/lockfile.rb#72 def parser; end # @api private # @return [Boolean] # - # source://rubocop//lib/rubocop/lockfile.rb#85 + # source://rubocop/lib/rubocop/lockfile.rb#85 def use_bundler_lock_parser?; end end @@ -57039,30 +57700,30 @@ end # # @abstract parent of three different magic comment handlers # -# source://rubocop//lib/rubocop/magic_comment.rb#7 +# source://rubocop/lib/rubocop/magic_comment.rb#7 class RuboCop::MagicComment # @return [MagicComment] a new instance of MagicComment # - # source://rubocop//lib/rubocop/magic_comment.rb#32 + # source://rubocop/lib/rubocop/magic_comment.rb#32 def initialize(comment); end # @return [Boolean] # - # source://rubocop//lib/rubocop/magic_comment.rb#36 + # source://rubocop/lib/rubocop/magic_comment.rb#36 def any?; end # @return [Boolean] # - # source://rubocop//lib/rubocop/magic_comment.rb#104 + # source://rubocop/lib/rubocop/magic_comment.rb#104 def encoding_specified?; end # Expose the `frozen_string_literal` value coerced to a boolean if possible. # - # @return [Boolean] if value is `true` or `false` + # @return [Boolean] if value is `true` or `false` in any case # @return [nil] if frozen_string_literal comment isn't found # @return [String] if comment is found but isn't true or false # - # source://rubocop//lib/rubocop/magic_comment.rb#86 + # source://rubocop/lib/rubocop/magic_comment.rb#86 def frozen_string_literal; end # Does the magic comment enable the frozen string literal feature. @@ -57073,53 +57734,53 @@ class RuboCop::MagicComment # # @return [Boolean] # - # source://rubocop//lib/rubocop/magic_comment.rb#55 + # source://rubocop/lib/rubocop/magic_comment.rb#55 def frozen_string_literal?; end # Was a magic comment for the frozen string literal found? # # @return [Boolean] # - # source://rubocop//lib/rubocop/magic_comment.rb#70 + # source://rubocop/lib/rubocop/magic_comment.rb#70 def frozen_string_literal_specified?; end # Expose the `shareable_constant_value` value coerced to a boolean if possible. # # @return [String] for shareable_constant_value config # - # source://rubocop//lib/rubocop/magic_comment.rb#100 + # source://rubocop/lib/rubocop/magic_comment.rb#100 def shareable_constant_value; end # Was a shareable_constant_value specified? # # @return [Boolean] # - # source://rubocop//lib/rubocop/magic_comment.rb#77 + # source://rubocop/lib/rubocop/magic_comment.rb#77 def shareable_constant_value_specified?; end - # source://rubocop//lib/rubocop/magic_comment.rb#115 + # source://rubocop/lib/rubocop/magic_comment.rb#115 def typed; end # Was the Sorbet `typed` sigil specified? # # @return [Boolean] # - # source://rubocop//lib/rubocop/magic_comment.rb#111 + # source://rubocop/lib/rubocop/magic_comment.rb#111 def typed_specified?; end # @return [Boolean] # - # source://rubocop//lib/rubocop/magic_comment.rb#43 + # source://rubocop/lib/rubocop/magic_comment.rb#43 def valid?; end # @return [Boolean] # - # source://rubocop//lib/rubocop/magic_comment.rb#59 + # source://rubocop/lib/rubocop/magic_comment.rb#59 def valid_literal_value?; end # @return [Boolean] # - # source://rubocop//lib/rubocop/magic_comment.rb#63 + # source://rubocop/lib/rubocop/magic_comment.rb#63 def valid_shareable_constant_value?; end private @@ -57130,12 +57791,12 @@ class RuboCop::MagicComment # @return [String] if pattern matched # @return [nil] otherwise # - # source://rubocop//lib/rubocop/magic_comment.rb#131 + # source://rubocop/lib/rubocop/magic_comment.rb#131 def extract(pattern); end # @return [Boolean] # - # source://rubocop//lib/rubocop/magic_comment.rb#121 + # source://rubocop/lib/rubocop/magic_comment.rb#121 def specified?(value); end class << self @@ -57144,7 +57805,7 @@ class RuboCop::MagicComment # @param comment [String] # @return [RuboCop::MagicComment] # - # source://rubocop//lib/rubocop/magic_comment.rb#23 + # source://rubocop/lib/rubocop/magic_comment.rb#23 def parse(comment); end end end @@ -57153,14 +57814,14 @@ end # # @abstract # -# source://rubocop//lib/rubocop/magic_comment.rb#138 +# source://rubocop/lib/rubocop/magic_comment.rb#138 class RuboCop::MagicComment::EditorComment < ::RuboCop::MagicComment - # source://rubocop//lib/rubocop/magic_comment.rb#139 + # source://rubocop/lib/rubocop/magic_comment.rb#139 def encoding; end # Rewrite the comment without a given token type # - # source://rubocop//lib/rubocop/magic_comment.rb#144 + # source://rubocop/lib/rubocop/magic_comment.rb#144 def without(type); end private @@ -57171,14 +57832,14 @@ class RuboCop::MagicComment::EditorComment < ::RuboCop::MagicComment # @return [String] extracted value if it is found # @return [nil] otherwise # - # source://rubocop//lib/rubocop/magic_comment.rb#159 + # source://rubocop/lib/rubocop/magic_comment.rb#159 def match(keyword); end # Individual tokens composing an editor specific comment string. # # @return [Array] # - # source://rubocop//lib/rubocop/magic_comment.rb#174 + # source://rubocop/lib/rubocop/magic_comment.rb#174 def tokens; end end @@ -57193,35 +57854,35 @@ end # @see https://www.gnu.org/software/emacs/manual/html_node/emacs/Specify-Coding.html # @see https://github.com/ruby/ruby/blob/3f306dc/parse.y#L6873-L6892 Emacs handling in parse.y # -# source://rubocop//lib/rubocop/magic_comment.rb#190 +# source://rubocop/lib/rubocop/magic_comment.rb#190 class RuboCop::MagicComment::EmacsComment < ::RuboCop::MagicComment::EditorComment private - # source://rubocop//lib/rubocop/magic_comment.rb#198 + # source://rubocop/lib/rubocop/magic_comment.rb#198 def extract_frozen_string_literal; end - # source://rubocop//lib/rubocop/magic_comment.rb#202 + # source://rubocop/lib/rubocop/magic_comment.rb#202 def extract_shareable_constant_value; end # Emacs comments cannot specify Sorbet typechecking behavior. # - # source://rubocop//lib/rubocop/magic_comment.rb#207 + # source://rubocop/lib/rubocop/magic_comment.rb#207 def extract_typed; end end -# source://rubocop//lib/rubocop/magic_comment.rb#192 +# source://rubocop/lib/rubocop/magic_comment.rb#192 RuboCop::MagicComment::EmacsComment::FORMAT = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/magic_comment.rb#194 +# source://rubocop/lib/rubocop/magic_comment.rb#194 RuboCop::MagicComment::EmacsComment::OPERATOR = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/magic_comment.rb#191 +# source://rubocop/lib/rubocop/magic_comment.rb#191 RuboCop::MagicComment::EmacsComment::REGEXP = T.let(T.unsafe(nil), Regexp) -# source://rubocop//lib/rubocop/magic_comment.rb#193 +# source://rubocop/lib/rubocop/magic_comment.rb#193 RuboCop::MagicComment::EmacsComment::SEPARATOR = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/magic_comment.rb#11 +# source://rubocop/lib/rubocop/magic_comment.rb#11 RuboCop::MagicComment::KEYWORDS = T.let(T.unsafe(nil), Hash) # Wrapper for regular magic comments not bound to an editor. @@ -57237,16 +57898,16 @@ RuboCop::MagicComment::KEYWORDS = T.let(T.unsafe(nil), Hash) # comment2.frozen_string_literal # => nil # comment2.encoding # => 'utf-8' # -# source://rubocop//lib/rubocop/magic_comment.rb#261 +# source://rubocop/lib/rubocop/magic_comment.rb#261 class RuboCop::MagicComment::SimpleComment < ::RuboCop::MagicComment # Match `encoding` or `coding` # - # source://rubocop//lib/rubocop/magic_comment.rb#265 + # source://rubocop/lib/rubocop/magic_comment.rb#265 def encoding; end # Rewrite the comment without a given token type # - # source://rubocop//lib/rubocop/magic_comment.rb#270 + # source://rubocop/lib/rubocop/magic_comment.rb#270 def without(type); end private @@ -57258,26 +57919,26 @@ class RuboCop::MagicComment::SimpleComment < ::RuboCop::MagicComment # # Case-insensitive and dashes/underscores are acceptable. # - # @see https://github.com/ruby/ruby/blob/78b95b4/parse.y#L7134-L7138 + # @see https://github.com/ruby/ruby/blob/78b95b49f8/parse.y#L7134-L7138 # - # source://rubocop//lib/rubocop/magic_comment.rb#287 + # source://rubocop/lib/rubocop/magic_comment.rb#287 def extract_frozen_string_literal; end - # source://rubocop//lib/rubocop/magic_comment.rb#291 + # source://rubocop/lib/rubocop/magic_comment.rb#291 def extract_shareable_constant_value; end - # source://rubocop//lib/rubocop/magic_comment.rb#295 + # source://rubocop/lib/rubocop/magic_comment.rb#295 def extract_typed; end end -# source://rubocop//lib/rubocop/magic_comment.rb#262 +# source://rubocop/lib/rubocop/magic_comment.rb#262 RuboCop::MagicComment::SimpleComment::FSTRING_LITERAL_COMMENT = T.let(T.unsafe(nil), String) # IRB's pattern for matching magic comment tokens. # # @see https://github.com/ruby/ruby/blob/b4a55c1/lib/irb/magic-file.rb#L5 # -# source://rubocop//lib/rubocop/magic_comment.rb#10 +# source://rubocop/lib/rubocop/magic_comment.rb#10 RuboCop::MagicComment::TOKEN = T.let(T.unsafe(nil), String) # Wrapper for Vim style magic comments. @@ -57289,7 +57950,7 @@ RuboCop::MagicComment::TOKEN = T.let(T.unsafe(nil), String) # # comment.encoding # => 'ascii-8bit' # -# source://rubocop//lib/rubocop/magic_comment.rb#218 +# source://rubocop/lib/rubocop/magic_comment.rb#218 class RuboCop::MagicComment::VimComment < ::RuboCop::MagicComment::EditorComment # For some reason the fileencoding keyword only works if there # is at least one other token included in the string. For example @@ -57300,99 +57961,99 @@ class RuboCop::MagicComment::VimComment < ::RuboCop::MagicComment::EditorComment # # does nothing # # vim: foo=bar, fileencoding=ascii-8bit # - # source://rubocop//lib/rubocop/magic_comment.rb#234 + # source://rubocop/lib/rubocop/magic_comment.rb#234 def encoding; end # Vim comments cannot specify Sorbet typechecking behavior. # - # source://rubocop//lib/rubocop/magic_comment.rb#245 + # source://rubocop/lib/rubocop/magic_comment.rb#245 def extract_typed; end # Vim comments cannot specify frozen string literal behavior. # - # source://rubocop//lib/rubocop/magic_comment.rb#239 + # source://rubocop/lib/rubocop/magic_comment.rb#239 def frozen_string_literal; end # Vim comments cannot specify shareable constant values behavior. # - # source://rubocop//lib/rubocop/magic_comment.rb#242 + # source://rubocop/lib/rubocop/magic_comment.rb#242 def shareable_constant_value; end end -# source://rubocop//lib/rubocop/magic_comment.rb#220 +# source://rubocop/lib/rubocop/magic_comment.rb#220 RuboCop::MagicComment::VimComment::FORMAT = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/magic_comment.rb#223 +# source://rubocop/lib/rubocop/magic_comment.rb#223 RuboCop::MagicComment::VimComment::KEYWORDS = T.let(T.unsafe(nil), Hash) -# source://rubocop//lib/rubocop/magic_comment.rb#222 +# source://rubocop/lib/rubocop/magic_comment.rb#222 RuboCop::MagicComment::VimComment::OPERATOR = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/magic_comment.rb#219 +# source://rubocop/lib/rubocop/magic_comment.rb#219 RuboCop::MagicComment::VimComment::REGEXP = T.let(T.unsafe(nil), Regexp) -# source://rubocop//lib/rubocop/magic_comment.rb#221 +# source://rubocop/lib/rubocop/magic_comment.rb#221 RuboCop::MagicComment::VimComment::SEPARATOR = T.let(T.unsafe(nil), String) # Common functionality for finding names that are similar to a given name. # # @api private # -# source://rubocop//lib/rubocop/name_similarity.rb#6 +# source://rubocop/lib/rubocop/name_similarity.rb#6 module RuboCop::NameSimilarity private # @api private # - # source://rubocop//lib/rubocop/name_similarity.rb#9 + # source://rubocop/lib/rubocop/name_similarity.rb#9 def find_similar_name(target_name, names); end # @api private # - # source://rubocop//lib/rubocop/name_similarity.rb#15 + # source://rubocop/lib/rubocop/name_similarity.rb#15 def find_similar_names(target_name, names); end class << self # @api private # - # source://rubocop//lib/rubocop/name_similarity.rb#9 + # source://rubocop/lib/rubocop/name_similarity.rb#9 def find_similar_name(target_name, names); end # @api private # - # source://rubocop//lib/rubocop/name_similarity.rb#15 + # source://rubocop/lib/rubocop/name_similarity.rb#15 def find_similar_names(target_name, names); end end end -# source://rubocop//lib/rubocop/ast_aliases.rb#5 +# source://rubocop/lib/rubocop/ast_aliases.rb#5 RuboCop::NodePattern = RuboCop::AST::NodePattern -# source://rubocop//lib/rubocop/options.rb#10 +# source://rubocop/lib/rubocop/options.rb#10 class RuboCop::OptionArgumentError < ::StandardError; end # This class handles command line options. # # @api private # -# source://rubocop//lib/rubocop/options.rb#14 +# source://rubocop/lib/rubocop/options.rb#14 class RuboCop::Options # @api private # @return [Options] a new instance of Options # - # source://rubocop//lib/rubocop/options.rb#22 + # source://rubocop/lib/rubocop/options.rb#22 def initialize; end # @api private # - # source://rubocop//lib/rubocop/options.rb#27 + # source://rubocop/lib/rubocop/options.rb#27 def parse(command_line_args); end private # @api private # - # source://rubocop//lib/rubocop/options.rb#229 + # source://rubocop/lib/rubocop/options.rb#229 def add_additional_modes(opts); end # the autocorrect command-line arguments map to the autocorrect @options values like so: @@ -57404,67 +58065,67 @@ class RuboCop::Options # # @api private # - # source://rubocop//lib/rubocop/options.rb#140 + # source://rubocop/lib/rubocop/options.rb#140 def add_autocorrection_options(opts); end # @api private # - # source://rubocop//lib/rubocop/options.rb#205 + # source://rubocop/lib/rubocop/options.rb#205 def add_cache_options(opts); end # @api private # - # source://rubocop//lib/rubocop/options.rb#73 + # source://rubocop/lib/rubocop/options.rb#73 def add_check_options(opts); end # @api private # - # source://rubocop//lib/rubocop/options.rb#163 + # source://rubocop/lib/rubocop/options.rb#163 def add_config_generation_options(opts); end # @api private # - # source://rubocop//lib/rubocop/options.rb#181 + # source://rubocop/lib/rubocop/options.rb#181 def add_cop_selection_csv_option(option, opts); end # @api private # - # source://rubocop//lib/rubocop/options.rb#241 + # source://rubocop/lib/rubocop/options.rb#241 def add_general_options(opts); end # @api private # - # source://rubocop//lib/rubocop/options.rb#212 + # source://rubocop/lib/rubocop/options.rb#212 def add_lsp_option(opts); end # @api private # - # source://rubocop//lib/rubocop/options.rb#105 + # source://rubocop/lib/rubocop/options.rb#105 def add_output_options(opts); end # @api private # - # source://rubocop//lib/rubocop/options.rb#253 + # source://rubocop/lib/rubocop/options.rb#253 def add_profile_options(opts); end # @api private # - # source://rubocop//lib/rubocop/options.rb#218 + # source://rubocop/lib/rubocop/options.rb#218 def add_server_options(opts); end # @api private # - # source://rubocop//lib/rubocop/options.rb#196 + # source://rubocop/lib/rubocop/options.rb#196 def add_severity_option(opts); end # @api private # - # source://rubocop//lib/rubocop/options.rb#53 + # source://rubocop/lib/rubocop/options.rb#53 def define_options; end # @api private # - # source://rubocop//lib/rubocop/options.rb#263 + # source://rubocop/lib/rubocop/options.rb#263 def handle_deprecated_option(old_option, new_option); end # Finds the option in `args` starting with -- and converts it to a symbol, @@ -57472,7 +58133,7 @@ class RuboCop::Options # # @api private # - # source://rubocop//lib/rubocop/options.rb#297 + # source://rubocop/lib/rubocop/options.rb#297 def long_opt_symbol(args); end # Sets a value in the @options hash, based on the given long option and its @@ -57480,17 +58141,17 @@ class RuboCop::Options # # @api private # - # source://rubocop//lib/rubocop/options.rb#286 + # source://rubocop/lib/rubocop/options.rb#286 def option(opts, *args); end # @api private # - # source://rubocop//lib/rubocop/options.rb#268 + # source://rubocop/lib/rubocop/options.rb#268 def rainbow; end # @api private # - # source://rubocop//lib/rubocop/options.rb#302 + # source://rubocop/lib/rubocop/options.rb#302 def require_feature(file); end # Creates a section of options in order to separate them visually when @@ -57498,148 +58159,148 @@ class RuboCop::Options # # @api private # - # source://rubocop//lib/rubocop/options.rb#278 + # source://rubocop/lib/rubocop/options.rb#278 def section(opts, heading, &_block); end end # @api private # -# source://rubocop//lib/rubocop/options.rb#20 +# source://rubocop/lib/rubocop/options.rb#20 RuboCop::Options::DEFAULT_MAXIMUM_EXCLUSION_ITEMS = T.let(T.unsafe(nil), Integer) # @api private # -# source://rubocop//lib/rubocop/options.rb#19 +# source://rubocop/lib/rubocop/options.rb#19 RuboCop::Options::EXITING_OPTIONS = T.let(T.unsafe(nil), Array) # @api private # -# source://rubocop//lib/rubocop/options.rb#15 +# source://rubocop/lib/rubocop/options.rb#15 RuboCop::Options::E_STDIN_NO_PATH = T.let(T.unsafe(nil), String) # This module contains help texts for command line options. # # @api private # -# source://rubocop//lib/rubocop/options.rb#498 +# source://rubocop/lib/rubocop/options.rb#498 module RuboCop::OptionsHelp; end # @api private # -# source://rubocop//lib/rubocop/options.rb#500 +# source://rubocop/lib/rubocop/options.rb#500 RuboCop::OptionsHelp::FORMATTER_OPTION_LIST = T.let(T.unsafe(nil), Array) # @api private # -# source://rubocop//lib/rubocop/options.rb#499 +# source://rubocop/lib/rubocop/options.rb#499 RuboCop::OptionsHelp::MAX_EXCL = T.let(T.unsafe(nil), String) # @api private # -# source://rubocop//lib/rubocop/options.rb#502 +# source://rubocop/lib/rubocop/options.rb#502 RuboCop::OptionsHelp::TEXT = T.let(T.unsafe(nil), Hash) # Validates option arguments and the options' compatibility with each other. # # @api private # -# source://rubocop//lib/rubocop/options.rb#312 +# source://rubocop/lib/rubocop/options.rb#312 class RuboCop::OptionsValidator # @api private # @return [OptionsValidator] a new instance of OptionsValidator # - # source://rubocop//lib/rubocop/options.rb#350 + # source://rubocop/lib/rubocop/options.rb#350 def initialize(options); end # @api private # @return [Boolean] # - # source://rubocop//lib/rubocop/options.rb#472 + # source://rubocop/lib/rubocop/options.rb#472 def boolean_or_empty_cache?; end # @api private # - # source://rubocop//lib/rubocop/options.rb#442 + # source://rubocop/lib/rubocop/options.rb#442 def disable_parallel_when_invalid_option_combo; end # @api private # @return [Boolean] # - # source://rubocop//lib/rubocop/options.rb#468 + # source://rubocop/lib/rubocop/options.rb#468 def except_syntax?; end # @api private # - # source://rubocop//lib/rubocop/options.rb#476 + # source://rubocop/lib/rubocop/options.rb#476 def incompatible_options; end # @api private # - # source://rubocop//lib/rubocop/options.rb#455 + # source://rubocop/lib/rubocop/options.rb#455 def invalid_arguments_for_parallel; end # @api private # @return [Boolean] # - # source://rubocop//lib/rubocop/options.rb#463 + # source://rubocop/lib/rubocop/options.rb#463 def only_includes_redundant_disable?; end # @api private # - # source://rubocop//lib/rubocop/options.rb#382 + # source://rubocop/lib/rubocop/options.rb#382 def validate_auto_gen_config; end # @api private # @raise [OptionArgumentError] # - # source://rubocop//lib/rubocop/options.rb#428 + # source://rubocop/lib/rubocop/options.rb#428 def validate_autocorrect; end # @api private # @raise [OptionArgumentError] # - # source://rubocop//lib/rubocop/options.rb#488 + # source://rubocop/lib/rubocop/options.rb#488 def validate_cache_enabled_for_cache_root; end # @api private # @raise [OptionArgumentError] # - # source://rubocop//lib/rubocop/options.rb#359 + # source://rubocop/lib/rubocop/options.rb#359 def validate_compatibility; end # @api private # - # source://rubocop//lib/rubocop/options.rb#354 + # source://rubocop/lib/rubocop/options.rb#354 def validate_cop_options; end # @api private # @raise [OptionArgumentError] # - # source://rubocop//lib/rubocop/options.rb#403 + # source://rubocop/lib/rubocop/options.rb#403 def validate_display_only_correctable_and_autocorrect; end # @api private # @raise [OptionArgumentError] # - # source://rubocop//lib/rubocop/options.rb#395 + # source://rubocop/lib/rubocop/options.rb#395 def validate_display_only_failed; end # @api private # @raise [OptionArgumentError] # - # source://rubocop//lib/rubocop/options.rb#412 + # source://rubocop/lib/rubocop/options.rb#412 def validate_display_only_failed_and_display_only_correctable; end # @api private # @raise [OptionParser::MissingArgument] # - # source://rubocop//lib/rubocop/options.rb#480 + # source://rubocop/lib/rubocop/options.rb#480 def validate_exclude_limit_option; end # @api private # @raise [OptionArgumentError] # - # source://rubocop//lib/rubocop/options.rb#421 + # source://rubocop/lib/rubocop/options.rb#421 def validate_lsp_and_editor_mode; end class << self @@ -57648,55 +58309,55 @@ class RuboCop::OptionsValidator # # @api private # - # source://rubocop//lib/rubocop/options.rb#319 + # source://rubocop/lib/rubocop/options.rb#319 def validate_cop_list(names); end private # @api private # - # source://rubocop//lib/rubocop/options.rb#336 + # source://rubocop/lib/rubocop/options.rb#336 def format_message_from(name, cop_names); end end end # Common methods and behaviors for dealing with paths. # -# source://rubocop//lib/rubocop/path_util.rb#5 +# source://rubocop/lib/rubocop/path_util.rb#5 module RuboCop::PathUtil private # Returns true for an absolute Unix or Windows path. # - # source://rubocop//lib/rubocop/path_util.rb#76 + # source://rubocop/lib/rubocop/path_util.rb#76 def absolute?(path); end # Returns true for a glob # - # source://rubocop//lib/rubocop/path_util.rb#81 + # source://rubocop/lib/rubocop/path_util.rb#81 def glob?(path); end - # source://rubocop//lib/rubocop/path_util.rb#111 + # source://rubocop/lib/rubocop/path_util.rb#111 def hidden_dir?(path); end - # source://rubocop//lib/rubocop/path_util.rb#94 + # source://rubocop/lib/rubocop/path_util.rb#94 def hidden_file?(path); end - # source://rubocop//lib/rubocop/path_util.rb#85 + # source://rubocop/lib/rubocop/path_util.rb#85 def hidden_file_in_not_hidden_dir?(pattern, path); end - # source://rubocop//lib/rubocop/path_util.rb#48 + # source://rubocop/lib/rubocop/path_util.rb#48 def match_path?(pattern, path); end # Loose check to reduce memory allocations # - # source://rubocop//lib/rubocop/path_util.rb#101 + # source://rubocop/lib/rubocop/path_util.rb#101 def maybe_hidden_file?(path); end - # source://rubocop//lib/rubocop/path_util.rb#13 + # source://rubocop/lib/rubocop/path_util.rb#13 def relative_path(path, base_dir = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/path_util.rb#34 + # source://rubocop/lib/rubocop/path_util.rb#34 def smart_path(path); end class << self @@ -57704,83 +58365,83 @@ module RuboCop::PathUtil # # @return [Boolean] # - # source://rubocop//lib/rubocop/path_util.rb#76 + # source://rubocop/lib/rubocop/path_util.rb#76 def absolute?(path); end # Returns true for a glob # # @return [Boolean] # - # source://rubocop//lib/rubocop/path_util.rb#81 + # source://rubocop/lib/rubocop/path_util.rb#81 def glob?(path); end # @return [Boolean] # - # source://rubocop//lib/rubocop/path_util.rb#111 + # source://rubocop/lib/rubocop/path_util.rb#111 def hidden_dir?(path); end # @return [Boolean] # - # source://rubocop//lib/rubocop/path_util.rb#94 + # source://rubocop/lib/rubocop/path_util.rb#94 def hidden_file?(path); end # @return [Boolean] # - # source://rubocop//lib/rubocop/path_util.rb#85 + # source://rubocop/lib/rubocop/path_util.rb#85 def hidden_file_in_not_hidden_dir?(pattern, path); end # @return [Boolean] # - # source://rubocop//lib/rubocop/path_util.rb#48 + # source://rubocop/lib/rubocop/path_util.rb#48 def match_path?(pattern, path); end # Loose check to reduce memory allocations # # @return [Boolean] # - # source://rubocop//lib/rubocop/path_util.rb#101 + # source://rubocop/lib/rubocop/path_util.rb#101 def maybe_hidden_file?(path); end - # source://rubocop//lib/rubocop/path_util.rb#13 + # source://rubocop/lib/rubocop/path_util.rb#13 def relative_path(path, base_dir = T.unsafe(nil)); end # Returns the value of attribute relative_paths_cache. # - # source://rubocop//lib/rubocop/path_util.rb#7 + # source://rubocop/lib/rubocop/path_util.rb#7 def relative_paths_cache; end # Sets the attribute relative_paths_cache # # @param value the value to set the attribute relative_paths_cache to. # - # source://rubocop//lib/rubocop/path_util.rb#7 + # source://rubocop/lib/rubocop/path_util.rb#7 def relative_paths_cache=(_arg0); end - # source://rubocop//lib/rubocop/path_util.rb#34 + # source://rubocop/lib/rubocop/path_util.rb#34 def smart_path(path); end end end -# source://rubocop//lib/rubocop/path_util.rb#98 +# source://rubocop/lib/rubocop/path_util.rb#98 RuboCop::PathUtil::HIDDEN_FILE_PATTERN = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/path_util.rb#31 +# source://rubocop/lib/rubocop/path_util.rb#31 RuboCop::PathUtil::SMART_PATH_CACHE = T.let(T.unsafe(nil), Hash) # This module provides information on the platform that RuboCop is being run # on. # -# source://rubocop//lib/rubocop/platform.rb#6 +# source://rubocop/lib/rubocop/platform.rb#6 module RuboCop::Platform class << self # @return [Boolean] # - # source://rubocop//lib/rubocop/platform.rb#7 + # source://rubocop/lib/rubocop/platform.rb#7 def windows?; end end end -# source://rubocop//lib/rubocop/ast_aliases.rb#6 +# source://rubocop/lib/rubocop/ast_aliases.rb#6 RuboCop::ProcessedSource = RuboCop::AST::ProcessedSource # Provides a custom rake task. @@ -57791,112 +58452,112 @@ RuboCop::ProcessedSource = RuboCop::AST::ProcessedSource # Use global Rake namespace here to avoid namespace issues with custom # rubocop-rake tasks # -# source://rubocop//lib/rubocop/rake_task.rb#14 +# source://rubocop/lib/rubocop/rake_task.rb#14 class RuboCop::RakeTask < ::Rake::TaskLib # @return [RakeTask] a new instance of RakeTask # - # source://rubocop//lib/rubocop/rake_task.rb#17 + # source://rubocop/lib/rubocop/rake_task.rb#17 def initialize(name = T.unsafe(nil), *args, &task_block); end # Returns the value of attribute fail_on_error. # - # source://rubocop//lib/rubocop/rake_task.rb#15 + # source://rubocop/lib/rubocop/rake_task.rb#15 def fail_on_error; end # Sets the attribute fail_on_error # # @param value the value to set the attribute fail_on_error to. # - # source://rubocop//lib/rubocop/rake_task.rb#15 + # source://rubocop/lib/rubocop/rake_task.rb#15 def fail_on_error=(_arg0); end # Returns the value of attribute formatters. # - # source://rubocop//lib/rubocop/rake_task.rb#15 + # source://rubocop/lib/rubocop/rake_task.rb#15 def formatters; end # Sets the attribute formatters # # @param value the value to set the attribute formatters to. # - # source://rubocop//lib/rubocop/rake_task.rb#15 + # source://rubocop/lib/rubocop/rake_task.rb#15 def formatters=(_arg0); end # Returns the value of attribute name. # - # source://rubocop//lib/rubocop/rake_task.rb#15 + # source://rubocop/lib/rubocop/rake_task.rb#15 def name; end # Sets the attribute name # # @param value the value to set the attribute name to. # - # source://rubocop//lib/rubocop/rake_task.rb#15 + # source://rubocop/lib/rubocop/rake_task.rb#15 def name=(_arg0); end # Returns the value of attribute options. # - # source://rubocop//lib/rubocop/rake_task.rb#15 + # source://rubocop/lib/rubocop/rake_task.rb#15 def options; end # Sets the attribute options # # @param value the value to set the attribute options to. # - # source://rubocop//lib/rubocop/rake_task.rb#15 + # source://rubocop/lib/rubocop/rake_task.rb#15 def options=(_arg0); end # Returns the value of attribute patterns. # - # source://rubocop//lib/rubocop/rake_task.rb#15 + # source://rubocop/lib/rubocop/rake_task.rb#15 def patterns; end # Sets the attribute patterns # # @param value the value to set the attribute patterns to. # - # source://rubocop//lib/rubocop/rake_task.rb#15 + # source://rubocop/lib/rubocop/rake_task.rb#15 def patterns=(_arg0); end # Returns the value of attribute requires. # - # source://rubocop//lib/rubocop/rake_task.rb#15 + # source://rubocop/lib/rubocop/rake_task.rb#15 def requires; end # Sets the attribute requires # # @param value the value to set the attribute requires to. # - # source://rubocop//lib/rubocop/rake_task.rb#15 + # source://rubocop/lib/rubocop/rake_task.rb#15 def requires=(_arg0); end # Returns the value of attribute verbose. # - # source://rubocop//lib/rubocop/rake_task.rb#15 + # source://rubocop/lib/rubocop/rake_task.rb#15 def verbose; end # Sets the attribute verbose # # @param value the value to set the attribute verbose to. # - # source://rubocop//lib/rubocop/rake_task.rb#15 + # source://rubocop/lib/rubocop/rake_task.rb#15 def verbose=(_arg0); end private - # source://rubocop//lib/rubocop/rake_task.rb#55 + # source://rubocop/lib/rubocop/rake_task.rb#55 def full_options; end - # source://rubocop//lib/rubocop/rake_task.rb#35 + # source://rubocop/lib/rubocop/rake_task.rb#35 def perform(option); end - # source://rubocop//lib/rubocop/rake_task.rb#44 + # source://rubocop/lib/rubocop/rake_task.rb#44 def run_cli(verbose, options); end - # source://rubocop//lib/rubocop/rake_task.rb#62 + # source://rubocop/lib/rubocop/rake_task.rb#62 def setup_ivars(name); end - # source://rubocop//lib/rubocop/rake_task.rb#72 + # source://rubocop/lib/rubocop/rake_task.rb#72 def setup_subtasks(name, *args, &task_block); end end @@ -57904,118 +58565,118 @@ end # # @api private # -# source://rubocop//lib/rubocop/remote_config.rb#9 +# source://rubocop/lib/rubocop/remote_config.rb#9 class RuboCop::RemoteConfig # @api private # @return [RemoteConfig] a new instance of RemoteConfig # - # source://rubocop//lib/rubocop/remote_config.rb#14 + # source://rubocop/lib/rubocop/remote_config.rb#14 def initialize(url, base_dir); end # @api private # - # source://rubocop//lib/rubocop/remote_config.rb#23 + # source://rubocop/lib/rubocop/remote_config.rb#23 def file; end # @api private # - # source://rubocop//lib/rubocop/remote_config.rb#36 + # source://rubocop/lib/rubocop/remote_config.rb#36 def inherit_from_remote(file, path); end # @api private # - # source://rubocop//lib/rubocop/remote_config.rb#10 + # source://rubocop/lib/rubocop/remote_config.rb#10 def uri; end private # @api private # - # source://rubocop//lib/rubocop/remote_config.rb#99 + # source://rubocop/lib/rubocop/remote_config.rb#99 def cache_name_from_uri; end # @api private # - # source://rubocop//lib/rubocop/remote_config.rb#82 + # source://rubocop/lib/rubocop/remote_config.rb#82 def cache_path; end # @api private # @return [Boolean] # - # source://rubocop//lib/rubocop/remote_config.rb#86 + # source://rubocop/lib/rubocop/remote_config.rb#86 def cache_path_exists?; end # @api private # @return [Boolean] # - # source://rubocop//lib/rubocop/remote_config.rb#90 + # source://rubocop/lib/rubocop/remote_config.rb#90 def cache_path_expired?; end # @api private # - # source://rubocop//lib/rubocop/remote_config.rb#105 + # source://rubocop/lib/rubocop/remote_config.rb#105 def cloned_url; end # @api private # @yield [request] # - # source://rubocop//lib/rubocop/remote_config.rb#57 + # source://rubocop/lib/rubocop/remote_config.rb#57 def generate_request(uri); end # @api private # - # source://rubocop//lib/rubocop/remote_config.rb#66 + # source://rubocop/lib/rubocop/remote_config.rb#66 def handle_response(response, limit, &block); end # @api private # @raise [ArgumentError] # - # source://rubocop//lib/rubocop/remote_config.rb#44 + # source://rubocop/lib/rubocop/remote_config.rb#44 def request(uri = T.unsafe(nil), limit = T.unsafe(nil), &block); end end # @api private # -# source://rubocop//lib/rubocop/remote_config.rb#12 +# source://rubocop/lib/rubocop/remote_config.rb#12 RuboCop::RemoteConfig::CACHE_LIFETIME = T.let(T.unsafe(nil), Integer) # Provides functionality for caching RuboCop runs. # # @api private # -# source://rubocop//lib/rubocop/result_cache.rb#11 +# source://rubocop/lib/rubocop/result_cache.rb#11 class RuboCop::ResultCache # @api private # @return [ResultCache] a new instance of ResultCache # - # source://rubocop//lib/rubocop/result_cache.rb#87 + # source://rubocop/lib/rubocop/result_cache.rb#87 def initialize(file, team, options, config_store, cache_root = T.unsafe(nil)); end # @api private # @return [Boolean] # - # source://rubocop//lib/rubocop/result_cache.rb#100 + # source://rubocop/lib/rubocop/result_cache.rb#100 def debug?; end # @api private # - # source://rubocop//lib/rubocop/result_cache.rb#108 + # source://rubocop/lib/rubocop/result_cache.rb#108 def load; end # @api private # - # source://rubocop//lib/rubocop/result_cache.rb#85 + # source://rubocop/lib/rubocop/result_cache.rb#85 def path; end # @api private # - # source://rubocop//lib/rubocop/result_cache.rb#113 + # source://rubocop/lib/rubocop/result_cache.rb#113 def save(offenses); end # @api private # @return [Boolean] # - # source://rubocop//lib/rubocop/result_cache.rb#104 + # source://rubocop/lib/rubocop/result_cache.rb#104 def valid?; end private @@ -58023,7 +58684,7 @@ class RuboCop::ResultCache # @api private # @return [Boolean] # - # source://rubocop//lib/rubocop/result_cache.rb#146 + # source://rubocop/lib/rubocop/result_cache.rb#146 def any_symlink?(path); end # We combine team and options into a single "context" checksum to avoid @@ -58033,17 +58694,17 @@ class RuboCop::ResultCache # # @api private # - # source://rubocop//lib/rubocop/result_cache.rb#229 + # source://rubocop/lib/rubocop/result_cache.rb#229 def context_checksum(team, options); end # @api private # - # source://rubocop//lib/rubocop/result_cache.rb#189 + # source://rubocop/lib/rubocop/result_cache.rb#189 def digest(path); end # @api private # - # source://rubocop//lib/rubocop/result_cache.rb#157 + # source://rubocop/lib/rubocop/result_cache.rb#157 def file_checksum(file, config_store); end # Return a hash of the options given at invocation, minus the ones that have @@ -58052,37 +58713,37 @@ class RuboCop::ResultCache # # @api private # - # source://rubocop//lib/rubocop/result_cache.rb#220 + # source://rubocop/lib/rubocop/result_cache.rb#220 def relevant_options_digest(options); end # The checksum of the RuboCop program running the inspection. # # @api private # - # source://rubocop//lib/rubocop/result_cache.rb#174 + # source://rubocop/lib/rubocop/result_cache.rb#174 def rubocop_checksum; end # @api private # - # source://rubocop//lib/rubocop/result_cache.rb#200 + # source://rubocop/lib/rubocop/result_cache.rb#200 def rubocop_extra_features; end # @api private # @return [Boolean] # - # source://rubocop//lib/rubocop/result_cache.rb#142 + # source://rubocop/lib/rubocop/result_cache.rb#142 def symlink_protection_triggered?(path); end class << self # @api private # @return [Boolean] # - # source://rubocop//lib/rubocop/result_cache.rb#81 + # source://rubocop/lib/rubocop/result_cache.rb#81 def allow_symlinks_in_cache_location?(config_store); end # @api private # - # source://rubocop//lib/rubocop/result_cache.rb#75 + # source://rubocop/lib/rubocop/result_cache.rb#75 def cache_root(config_store); end # Remove old files so that the cache doesn't grow too big. When the @@ -58094,220 +58755,220 @@ class RuboCop::ResultCache # # @api private # - # source://rubocop//lib/rubocop/result_cache.rb#28 + # source://rubocop/lib/rubocop/result_cache.rb#28 def cleanup(config_store, verbose, cache_root = T.unsafe(nil)); end # @api private # - # source://rubocop//lib/rubocop/result_cache.rb#170 + # source://rubocop/lib/rubocop/result_cache.rb#170 def inhibit_cleanup; end # @api private # - # source://rubocop//lib/rubocop/result_cache.rb#170 + # source://rubocop/lib/rubocop/result_cache.rb#170 def inhibit_cleanup=(_arg0); end # @api private # - # source://rubocop//lib/rubocop/result_cache.rb#42 + # source://rubocop/lib/rubocop/result_cache.rb#42 def rubocop_required_features; end # @api private # - # source://rubocop//lib/rubocop/result_cache.rb#42 + # source://rubocop/lib/rubocop/result_cache.rb#42 def rubocop_required_features=(_arg0); end # @api private # - # source://rubocop//lib/rubocop/result_cache.rb#170 + # source://rubocop/lib/rubocop/result_cache.rb#170 def source_checksum; end # @api private # - # source://rubocop//lib/rubocop/result_cache.rb#170 + # source://rubocop/lib/rubocop/result_cache.rb#170 def source_checksum=(_arg0); end private # @api private # - # source://rubocop//lib/rubocop/result_cache.rb#65 + # source://rubocop/lib/rubocop/result_cache.rb#65 def remove_files(files, dirs, remove_count); end # @api private # - # source://rubocop//lib/rubocop/result_cache.rb#52 + # source://rubocop/lib/rubocop/result_cache.rb#52 def remove_oldest_files(files, dirs, cache_root, verbose); end # @api private # @return [Boolean] # - # source://rubocop//lib/rubocop/result_cache.rb#48 + # source://rubocop/lib/rubocop/result_cache.rb#48 def requires_file_removal?(file_count, config_store); end end end # @api private # -# source://rubocop//lib/rubocop/result_cache.rb#16 +# source://rubocop/lib/rubocop/result_cache.rb#16 RuboCop::ResultCache::DL_EXTENSIONS = T.let(T.unsafe(nil), Array) # @api private # -# source://rubocop//lib/rubocop/result_cache.rb#12 +# source://rubocop/lib/rubocop/result_cache.rb#12 RuboCop::ResultCache::NON_CHANGING = T.let(T.unsafe(nil), Array) # This class handles the processing of files, which includes dealing with # formatters and letting cops inspect the files. # -# source://rubocop//lib/rubocop/runner.rb#8 +# source://rubocop/lib/rubocop/runner.rb#8 class RuboCop::Runner # @return [Runner] a new instance of Runner # - # source://rubocop//lib/rubocop/runner.rb#63 + # source://rubocop/lib/rubocop/runner.rb#63 def initialize(options, config_store); end # Sets the attribute aborting # # @param value the value to set the attribute aborting to. # - # source://rubocop//lib/rubocop/runner.rb#61 + # source://rubocop/lib/rubocop/runner.rb#61 def aborting=(_arg0); end # @return [Boolean] # - # source://rubocop//lib/rubocop/runner.rb#87 + # source://rubocop/lib/rubocop/runner.rb#87 def aborting?; end # Returns the value of attribute errors. # - # source://rubocop//lib/rubocop/runner.rb#60 + # source://rubocop/lib/rubocop/runner.rb#60 def errors; end - # source://rubocop//lib/rubocop/runner.rb#71 + # source://rubocop/lib/rubocop/runner.rb#71 def run(paths); end # Returns the value of attribute warnings. # - # source://rubocop//lib/rubocop/runner.rb#60 + # source://rubocop/lib/rubocop/runner.rb#60 def warnings; end private - # source://rubocop//lib/rubocop/runner.rb#200 + # source://rubocop/lib/rubocop/runner.rb#200 def add_redundant_disables(file, offenses, source); end - # source://rubocop//lib/rubocop/runner.rb#174 + # source://rubocop/lib/rubocop/runner.rb#174 def cached_result(file, team); end # @return [Boolean] # - # source://rubocop//lib/rubocop/runner.rb#254 + # source://rubocop/lib/rubocop/runner.rb#254 def cached_run?; end # Check whether a run created source identical to a previous run, which # means that we definitely have an infinite loop. # - # source://rubocop//lib/rubocop/runner.rb#332 + # source://rubocop/lib/rubocop/runner.rb#332 def check_for_infinite_loop(processed_source, offenses_by_iteration); end # @return [Boolean] # - # source://rubocop//lib/rubocop/runner.rb#226 + # source://rubocop/lib/rubocop/runner.rb#226 def check_for_redundant_disables?(source); end # @return [Boolean] # - # source://rubocop//lib/rubocop/runner.rb#434 + # source://rubocop/lib/rubocop/runner.rb#434 def considered_failure?(offense); end - # source://rubocop//lib/rubocop/runner.rb#471 + # source://rubocop/lib/rubocop/runner.rb#471 def default_config(cop_name); end - # source://rubocop//lib/rubocop/runner.rb#276 + # source://rubocop/lib/rubocop/runner.rb#276 def do_inspection_loop(file); end - # source://rubocop//lib/rubocop/runner.rb#137 + # source://rubocop/lib/rubocop/runner.rb#137 def each_inspected_file(files); end # @return [Boolean] # - # source://rubocop//lib/rubocop/runner.rb#240 + # source://rubocop/lib/rubocop/runner.rb#240 def except_redundant_cop_disable_directive?; end - # source://rubocop//lib/rubocop/runner.rb#361 + # source://rubocop/lib/rubocop/runner.rb#361 def extract_ruby_sources(processed_source); end - # source://rubocop//lib/rubocop/runner.rb#249 + # source://rubocop/lib/rubocop/runner.rb#249 def file_finished(file, offenses); end - # source://rubocop//lib/rubocop/runner.rb#178 + # source://rubocop/lib/rubocop/runner.rb#178 def file_offense_cache(file); end - # source://rubocop//lib/rubocop/runner.rb#166 + # source://rubocop/lib/rubocop/runner.rb#166 def file_offenses(file); end - # source://rubocop//lib/rubocop/runner.rb#244 + # source://rubocop/lib/rubocop/runner.rb#244 def file_started(file); end - # source://rubocop//lib/rubocop/runner.rb#414 + # source://rubocop/lib/rubocop/runner.rb#414 def filter_cop_classes(cop_classes, config); end - # source://rubocop//lib/rubocop/runner.rb#108 + # source://rubocop/lib/rubocop/runner.rb#108 def find_target_files(paths); end - # source://rubocop//lib/rubocop/runner.rb#425 + # source://rubocop/lib/rubocop/runner.rb#425 def formatter_set; end - # source://rubocop//lib/rubocop/runner.rb#486 + # source://rubocop/lib/rubocop/runner.rb#486 def get_processed_source(file); end - # source://rubocop//lib/rubocop/runner.rb#346 + # source://rubocop/lib/rubocop/runner.rb#346 def inspect_file(processed_source, team = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/runner.rb#119 + # source://rubocop/lib/rubocop/runner.rb#119 def inspect_files(files); end - # source://rubocop//lib/rubocop/runner.rb#307 + # source://rubocop/lib/rubocop/runner.rb#307 def iterate_until_no_changes(source, offenses_by_iteration); end - # source://rubocop//lib/rubocop/runner.rb#152 + # source://rubocop/lib/rubocop/runner.rb#152 def list_files(paths); end # @return [Boolean] # - # source://rubocop//lib/rubocop/runner.rb#467 + # source://rubocop/lib/rubocop/runner.rb#467 def mark_as_safe_by_config?(config); end - # source://rubocop//lib/rubocop/runner.rb#475 + # source://rubocop/lib/rubocop/runner.rb#475 def minimum_severity_to_fail; end - # source://rubocop//lib/rubocop/runner.rb#375 + # source://rubocop/lib/rubocop/runner.rb#375 def mobilize_team(processed_source); end - # source://rubocop//lib/rubocop/runner.rb#380 + # source://rubocop/lib/rubocop/runner.rb#380 def mobilized_cop_classes(config); end # @return [Boolean] # - # source://rubocop//lib/rubocop/runner.rb#443 + # source://rubocop/lib/rubocop/runner.rb#443 def offense_displayed?(offense); end - # source://rubocop//lib/rubocop/runner.rb#455 + # source://rubocop/lib/rubocop/runner.rb#455 def offenses_to_report(offenses); end - # source://rubocop//lib/rubocop/runner.rb#156 + # source://rubocop/lib/rubocop/runner.rb#156 def process_file(file); end - # source://rubocop//lib/rubocop/runner.rb#404 + # source://rubocop/lib/rubocop/runner.rb#404 def qualify_option_cop_names; end # @yield [cop] # - # source://rubocop//lib/rubocop/runner.rb#232 + # source://rubocop/lib/rubocop/runner.rb#232 def redundant_cop_disable_directive(file); end - # source://rubocop//lib/rubocop/runner.rb#266 + # source://rubocop/lib/rubocop/runner.rb#266 def save_in_cache(cache, offenses); end # A Cop::Team instance is stateful and may change when inspecting. @@ -58315,41 +58976,41 @@ class RuboCop::Runner # otherwise dormant team that can be used for config- and option- # level caching in ResultCache. # - # source://rubocop//lib/rubocop/runner.rb#514 + # source://rubocop/lib/rubocop/runner.rb#514 def standby_team(config); end # @return [Boolean] # - # source://rubocop//lib/rubocop/runner.rb#421 + # source://rubocop/lib/rubocop/runner.rb#421 def style_guide_cops_only?(config); end # @return [Boolean] # - # source://rubocop//lib/rubocop/runner.rb#459 + # source://rubocop/lib/rubocop/runner.rb#459 def supports_safe_autocorrect?(offense); end # @yield [team] # - # source://rubocop//lib/rubocop/runner.rb#215 + # source://rubocop/lib/rubocop/runner.rb#215 def team_for_redundant_disables(file, offenses, source); end # Warms up the RuboCop cache by forking a suitable number of RuboCop # instances that each inspects its allotted group of files. # - # source://rubocop//lib/rubocop/runner.rb#95 + # source://rubocop/lib/rubocop/runner.rb#95 def warm_cache(target_files); end class << self # @return [Array<#call>] # - # source://rubocop//lib/rubocop/runner.rb#33 + # source://rubocop/lib/rubocop/runner.rb#33 def ruby_extractors; end private # @return [#call] # - # source://rubocop//lib/rubocop/runner.rb#40 + # source://rubocop/lib/rubocop/runner.rb#40 def default_ruby_extractor; end end end @@ -58357,71 +59018,71 @@ end # An exception indicating that the inspection loop got stuck correcting # offenses back and forth. # -# source://rubocop//lib/rubocop/runner.rb#11 +# source://rubocop/lib/rubocop/runner.rb#11 class RuboCop::Runner::InfiniteCorrectionLoop < ::StandardError # @return [InfiniteCorrectionLoop] a new instance of InfiniteCorrectionLoop # - # source://rubocop//lib/rubocop/runner.rb#14 + # source://rubocop/lib/rubocop/runner.rb#14 def initialize(path, offenses_by_iteration, loop_start: T.unsafe(nil)); end # Returns the value of attribute offenses. # - # source://rubocop//lib/rubocop/runner.rb#12 + # source://rubocop/lib/rubocop/runner.rb#12 def offenses; end end # @api private # -# source://rubocop//lib/rubocop/runner.rb#53 +# source://rubocop/lib/rubocop/runner.rb#53 RuboCop::Runner::MAX_ITERATIONS = T.let(T.unsafe(nil), Integer) # @api private # -# source://rubocop//lib/rubocop/runner.rb#56 +# source://rubocop/lib/rubocop/runner.rb#56 RuboCop::Runner::REDUNDANT_COP_DISABLE_DIRECTIVE_RULES = T.let(T.unsafe(nil), Array) # Take a string with embedded escapes, and convert the escapes as the Ruby # interpreter would when reading a double-quoted string literal. # For example, "\\n" will be converted to "\n". # -# source://rubocop//lib/rubocop/string_interpreter.rb#7 +# source://rubocop/lib/rubocop/string_interpreter.rb#7 class RuboCop::StringInterpreter class << self - # source://rubocop//lib/rubocop/string_interpreter.rb#24 + # source://rubocop/lib/rubocop/string_interpreter.rb#24 def interpret(string); end private - # source://rubocop//lib/rubocop/string_interpreter.rb#51 + # source://rubocop/lib/rubocop/string_interpreter.rb#51 def interpret_hex(escape); end - # source://rubocop//lib/rubocop/string_interpreter.rb#55 + # source://rubocop/lib/rubocop/string_interpreter.rb#55 def interpret_octal(escape); end - # source://rubocop//lib/rubocop/string_interpreter.rb#33 + # source://rubocop/lib/rubocop/string_interpreter.rb#33 def interpret_string_escape(escape); end - # source://rubocop//lib/rubocop/string_interpreter.rb#43 + # source://rubocop/lib/rubocop/string_interpreter.rb#43 def interpret_unicode(escape); end end end -# source://rubocop//lib/rubocop/string_interpreter.rb#8 +# source://rubocop/lib/rubocop/string_interpreter.rb#8 RuboCop::StringInterpreter::STRING_ESCAPES = T.let(T.unsafe(nil), Hash) -# source://rubocop//lib/rubocop/string_interpreter.rb#12 +# source://rubocop/lib/rubocop/string_interpreter.rb#12 RuboCop::StringInterpreter::STRING_ESCAPE_REGEX = T.let(T.unsafe(nil), Regexp) # This class finds target files to inspect by scanning the directory tree and picking ruby files. # # @api private # -# source://rubocop//lib/rubocop/target_finder.rb#6 +# source://rubocop/lib/rubocop/target_finder.rb#6 class RuboCop::TargetFinder # @api private # @return [TargetFinder] a new instance of TargetFinder # - # source://rubocop//lib/rubocop/target_finder.rb#9 + # source://rubocop/lib/rubocop/target_finder.rb#9 def initialize(config_store, options = T.unsafe(nil)); end # Generate a list of target files by expanding globbing patterns (if any). If args is empty, @@ -58430,7 +59091,7 @@ class RuboCop::TargetFinder # @api private # @return [Array] array of file paths # - # source://rubocop//lib/rubocop/target_finder.rb#17 + # source://rubocop/lib/rubocop/target_finder.rb#17 def find(args, mode); end # Search for files recursively starting at the given base directory using the given flags that @@ -58440,7 +59101,7 @@ class RuboCop::TargetFinder # # @api private # - # source://rubocop//lib/rubocop/target_finder.rb#58 + # source://rubocop/lib/rubocop/target_finder.rb#58 def find_files(base_dir, flags); end # Finds all Ruby source files under the current or other supplied directory. A Ruby source file @@ -58454,177 +59115,177 @@ class RuboCop::TargetFinder # ruby source files # @return [Array] Array of filenames # - # source://rubocop//lib/rubocop/target_finder.rb#41 + # source://rubocop/lib/rubocop/target_finder.rb#41 def target_files_in_dir(base_dir = T.unsafe(nil)); end private # @api private # - # source://rubocop//lib/rubocop/target_finder.rb#120 + # source://rubocop/lib/rubocop/target_finder.rb#120 def all_cops_include; end # @api private # - # source://rubocop//lib/rubocop/target_finder.rb#106 + # source://rubocop/lib/rubocop/target_finder.rb#106 def combined_exclude_glob_patterns(base_dir); end # @api private # @return [Boolean] # - # source://rubocop//lib/rubocop/target_finder.rb#172 + # source://rubocop/lib/rubocop/target_finder.rb#172 def configured_include?(file); end # @api private # @return [Boolean] # - # source://rubocop//lib/rubocop/target_finder.rb#208 + # source://rubocop/lib/rubocop/target_finder.rb#208 def debug?; end # @api private # @return [Boolean] # - # source://rubocop//lib/rubocop/target_finder.rb#212 + # source://rubocop/lib/rubocop/target_finder.rb#212 def fail_fast?; end # @api private # @return [Boolean] # - # source://rubocop//lib/rubocop/target_finder.rb#200 + # source://rubocop/lib/rubocop/target_finder.rb#200 def force_exclusion?; end # @api private # @return [Boolean] # - # source://rubocop//lib/rubocop/target_finder.rb#204 + # source://rubocop/lib/rubocop/target_finder.rb#204 def ignore_parent_exclusion?; end # @api private # @return [Boolean] # - # source://rubocop//lib/rubocop/target_finder.rb#145 + # source://rubocop/lib/rubocop/target_finder.rb#145 def included_file?(file); end # @api private # - # source://rubocop//lib/rubocop/target_finder.rb#191 + # source://rubocop/lib/rubocop/target_finder.rb#191 def order; end # @api private # - # source://rubocop//lib/rubocop/target_finder.rb#124 + # source://rubocop/lib/rubocop/target_finder.rb#124 def process_explicit_path(path, mode); end # @api private # @return [Boolean] # - # source://rubocop//lib/rubocop/target_finder.rb#176 + # source://rubocop/lib/rubocop/target_finder.rb#176 def ruby_executable?(file); end # @api private # @return [Boolean] # - # source://rubocop//lib/rubocop/target_finder.rb#157 + # source://rubocop/lib/rubocop/target_finder.rb#157 def ruby_extension?(file); end # @api private # - # source://rubocop//lib/rubocop/target_finder.rb#161 + # source://rubocop/lib/rubocop/target_finder.rb#161 def ruby_extensions; end # @api private # @return [Boolean] # - # source://rubocop//lib/rubocop/target_finder.rb#149 + # source://rubocop/lib/rubocop/target_finder.rb#149 def ruby_file?(file); end # @api private # @return [Boolean] # - # source://rubocop//lib/rubocop/target_finder.rb#168 + # source://rubocop/lib/rubocop/target_finder.rb#168 def ruby_filename?(file); end # @api private # - # source://rubocop//lib/rubocop/target_finder.rb#113 + # source://rubocop/lib/rubocop/target_finder.rb#113 def ruby_filenames; end # @api private # - # source://rubocop//lib/rubocop/target_finder.rb#187 + # source://rubocop/lib/rubocop/target_finder.rb#187 def ruby_interpreters(file); end # @api private # @return [Boolean] # - # source://rubocop//lib/rubocop/target_finder.rb#153 + # source://rubocop/lib/rubocop/target_finder.rb#153 def stdin?; end # @api private # @return [Boolean] # - # source://rubocop//lib/rubocop/target_finder.rb#98 + # source://rubocop/lib/rubocop/target_finder.rb#98 def symlink_excluded_or_infinite_loop?(base_dir, current_dir, exclude_pattern, flags); end # @api private # @return [Boolean] # - # source://rubocop//lib/rubocop/target_finder.rb#73 + # source://rubocop/lib/rubocop/target_finder.rb#73 def to_inspect?(file, hidden_files, base_dir_config); end # @api private # - # source://rubocop//lib/rubocop/target_finder.rb#82 + # source://rubocop/lib/rubocop/target_finder.rb#82 def wanted_dir_patterns(base_dir, exclude_pattern, flags); end # @api private # - # source://rubocop//lib/rubocop/target_finder.rb#134 + # source://rubocop/lib/rubocop/target_finder.rb#134 def without_excluded(files); end end # @api private # -# source://rubocop//lib/rubocop/target_finder.rb#7 +# source://rubocop/lib/rubocop/target_finder.rb#7 RuboCop::TargetFinder::HIDDEN_PATH_SUBSTRING = T.let(T.unsafe(nil), String) # The kind of Ruby that code inspected by RuboCop is written in. # # @api private # -# source://rubocop//lib/rubocop/target_ruby.rb#6 +# source://rubocop/lib/rubocop/target_ruby.rb#6 class RuboCop::TargetRuby # @api private # @return [TargetRuby] a new instance of TargetRuby # - # source://rubocop//lib/rubocop/target_ruby.rb#258 + # source://rubocop/lib/rubocop/target_ruby.rb#258 def initialize(config); end # @api private # - # source://rubocop//lib/rubocop/target_ruby.rb#274 + # source://rubocop/lib/rubocop/target_ruby.rb#274 def rubocop_version_with_support; end # @api private # - # source://rubocop//lib/rubocop/target_ruby.rb#262 + # source://rubocop/lib/rubocop/target_ruby.rb#262 def source; end # @api private # @return [Boolean] # - # source://rubocop//lib/rubocop/target_ruby.rb#270 + # source://rubocop/lib/rubocop/target_ruby.rb#270 def supported?; end # @api private # - # source://rubocop//lib/rubocop/target_ruby.rb#266 + # source://rubocop/lib/rubocop/target_ruby.rb#266 def version; end class << self # @api private # - # source://rubocop//lib/rubocop/target_ruby.rb#244 + # source://rubocop/lib/rubocop/target_ruby.rb#244 def supported_versions; end end end @@ -58633,47 +59294,47 @@ end # # @api private # -# source://rubocop//lib/rubocop/target_ruby.rb#191 +# source://rubocop/lib/rubocop/target_ruby.rb#191 class RuboCop::TargetRuby::BundlerLockFile < ::RuboCop::TargetRuby::Source # @api private # - # source://rubocop//lib/rubocop/target_ruby.rb#192 + # source://rubocop/lib/rubocop/target_ruby.rb#192 def name; end private # @api private # - # source://rubocop//lib/rubocop/target_ruby.rb#225 + # source://rubocop/lib/rubocop/target_ruby.rb#225 def bundler_lock_file_path; end # @api private # - # source://rubocop//lib/rubocop/target_ruby.rb#198 + # source://rubocop/lib/rubocop/target_ruby.rb#198 def find_version; end end # @api private # -# source://rubocop//lib/rubocop/target_ruby.rb#8 +# source://rubocop/lib/rubocop/target_ruby.rb#8 RuboCop::TargetRuby::DEFAULT_VERSION = T.let(T.unsafe(nil), Float) # If all else fails, a default version will be picked. # # @api private # -# source://rubocop//lib/rubocop/target_ruby.rb#232 +# source://rubocop/lib/rubocop/target_ruby.rb#232 class RuboCop::TargetRuby::Default < ::RuboCop::TargetRuby::Source # @api private # - # source://rubocop//lib/rubocop/target_ruby.rb#233 + # source://rubocop/lib/rubocop/target_ruby.rb#233 def name; end private # @api private # - # source://rubocop//lib/rubocop/target_ruby.rb#239 + # source://rubocop/lib/rubocop/target_ruby.rb#239 def find_version; end end @@ -58681,80 +59342,80 @@ end # # @api private # -# source://rubocop//lib/rubocop/target_ruby.rb#53 +# source://rubocop/lib/rubocop/target_ruby.rb#53 class RuboCop::TargetRuby::GemspecFile < ::RuboCop::TargetRuby::Source extend ::RuboCop::AST::NodePattern::Macros - # source://rubocop//lib/rubocop/target_ruby.rb#62 + # source://rubocop/lib/rubocop/target_ruby.rb#62 def gem_requirement_versions(param0 = T.unsafe(nil)); end # @api private # - # source://rubocop//lib/rubocop/target_ruby.rb#68 + # source://rubocop/lib/rubocop/target_ruby.rb#68 def name; end - # source://rubocop//lib/rubocop/target_ruby.rb#57 + # source://rubocop/lib/rubocop/target_ruby.rb#57 def required_ruby_version(param0); end private # @api private # - # source://rubocop//lib/rubocop/target_ruby.rb#123 + # source://rubocop/lib/rubocop/target_ruby.rb#123 def find_minimal_known_ruby(right_hand_side); end # @api private # - # source://rubocop//lib/rubocop/target_ruby.rb#74 + # source://rubocop/lib/rubocop/target_ruby.rb#74 def find_version; end # @api private # - # source://rubocop//lib/rubocop/target_ruby.rb#84 + # source://rubocop/lib/rubocop/target_ruby.rb#84 def gemspec_filepath; end # @api private # - # source://rubocop//lib/rubocop/target_ruby.rb#119 + # source://rubocop/lib/rubocop/target_ruby.rb#119 def version_from_array(array); end # @api private # - # source://rubocop//lib/rubocop/target_ruby.rb#98 + # source://rubocop/lib/rubocop/target_ruby.rb#98 def version_from_gemspec_file(file); end # @api private # - # source://rubocop//lib/rubocop/target_ruby.rb#107 + # source://rubocop/lib/rubocop/target_ruby.rb#107 def version_from_right_hand_side(right_hand_side); end end # @api private # -# source://rubocop//lib/rubocop/target_ruby.rb#7 +# source://rubocop/lib/rubocop/target_ruby.rb#7 RuboCop::TargetRuby::KNOWN_RUBIES = T.let(T.unsafe(nil), Array) # @api private # -# source://rubocop//lib/rubocop/target_ruby.rb#10 +# source://rubocop/lib/rubocop/target_ruby.rb#10 RuboCop::TargetRuby::OBSOLETE_RUBIES = T.let(T.unsafe(nil), Hash) # The target ruby version may be configured in RuboCop's config. # # @api private # -# source://rubocop//lib/rubocop/target_ruby.rb#39 +# source://rubocop/lib/rubocop/target_ruby.rb#39 class RuboCop::TargetRuby::RuboCopConfig < ::RuboCop::TargetRuby::Source # @api private # - # source://rubocop//lib/rubocop/target_ruby.rb#40 + # source://rubocop/lib/rubocop/target_ruby.rb#40 def name; end private # @api private # - # source://rubocop//lib/rubocop/target_ruby.rb#46 + # source://rubocop/lib/rubocop/target_ruby.rb#46 def find_version; end end @@ -58762,76 +59423,76 @@ end # # @api private # -# source://rubocop//lib/rubocop/target_ruby.rb#137 +# source://rubocop/lib/rubocop/target_ruby.rb#137 class RuboCop::TargetRuby::RubyVersionFile < ::RuboCop::TargetRuby::Source # @api private # - # source://rubocop//lib/rubocop/target_ruby.rb#141 + # source://rubocop/lib/rubocop/target_ruby.rb#141 def name; end private # @api private # - # source://rubocop//lib/rubocop/target_ruby.rb#147 + # source://rubocop/lib/rubocop/target_ruby.rb#147 def filename; end # @api private # - # source://rubocop//lib/rubocop/target_ruby.rb#155 + # source://rubocop/lib/rubocop/target_ruby.rb#155 def find_version; end # @api private # - # source://rubocop//lib/rubocop/target_ruby.rb#151 + # source://rubocop/lib/rubocop/target_ruby.rb#151 def pattern; end # @api private # - # source://rubocop//lib/rubocop/target_ruby.rb#162 + # source://rubocop/lib/rubocop/target_ruby.rb#162 def version_file; end end # @api private # -# source://rubocop//lib/rubocop/target_ruby.rb#138 +# source://rubocop/lib/rubocop/target_ruby.rb#138 RuboCop::TargetRuby::RubyVersionFile::RUBY_VERSION_FILENAME = T.let(T.unsafe(nil), String) # @api private # -# source://rubocop//lib/rubocop/target_ruby.rb#139 +# source://rubocop/lib/rubocop/target_ruby.rb#139 RuboCop::TargetRuby::RubyVersionFile::RUBY_VERSION_PATTERN = T.let(T.unsafe(nil), Regexp) # @api private # -# source://rubocop//lib/rubocop/target_ruby.rb#248 +# source://rubocop/lib/rubocop/target_ruby.rb#248 RuboCop::TargetRuby::SOURCES = T.let(T.unsafe(nil), Array) # A place where information about a target ruby version is found. # # @api private # -# source://rubocop//lib/rubocop/target_ruby.rb#24 +# source://rubocop/lib/rubocop/target_ruby.rb#24 class RuboCop::TargetRuby::Source # @api private # @return [Source] a new instance of Source # - # source://rubocop//lib/rubocop/target_ruby.rb#27 + # source://rubocop/lib/rubocop/target_ruby.rb#27 def initialize(config); end # @api private # - # source://rubocop//lib/rubocop/target_ruby.rb#25 + # source://rubocop/lib/rubocop/target_ruby.rb#25 def name; end # @api private # - # source://rubocop//lib/rubocop/target_ruby.rb#32 + # source://rubocop/lib/rubocop/target_ruby.rb#32 def to_s; end # @api private # - # source://rubocop//lib/rubocop/target_ruby.rb#25 + # source://rubocop/lib/rubocop/target_ruby.rb#25 def version; end end @@ -58840,70 +59501,70 @@ end # # @api private # -# source://rubocop//lib/rubocop/target_ruby.rb#170 +# source://rubocop/lib/rubocop/target_ruby.rb#170 class RuboCop::TargetRuby::ToolVersionsFile < ::RuboCop::TargetRuby::RubyVersionFile # @api private # - # source://rubocop//lib/rubocop/target_ruby.rb#174 + # source://rubocop/lib/rubocop/target_ruby.rb#174 def name; end private # @api private # - # source://rubocop//lib/rubocop/target_ruby.rb#180 + # source://rubocop/lib/rubocop/target_ruby.rb#180 def filename; end # @api private # - # source://rubocop//lib/rubocop/target_ruby.rb#184 + # source://rubocop/lib/rubocop/target_ruby.rb#184 def pattern; end end # @api private # -# source://rubocop//lib/rubocop/target_ruby.rb#171 +# source://rubocop/lib/rubocop/target_ruby.rb#171 RuboCop::TargetRuby::ToolVersionsFile::TOOL_VERSIONS_FILENAME = T.let(T.unsafe(nil), String) # @api private # -# source://rubocop//lib/rubocop/target_ruby.rb#172 +# source://rubocop/lib/rubocop/target_ruby.rb#172 RuboCop::TargetRuby::ToolVersionsFile::TOOL_VERSIONS_PATTERN = T.let(T.unsafe(nil), Regexp) -# source://rubocop//lib/rubocop/ast_aliases.rb#7 +# source://rubocop/lib/rubocop/ast_aliases.rb#7 RuboCop::Token = RuboCop::AST::Token # This module contains a collection of useful utility methods. # -# source://rubocop//lib/rubocop/util.rb#5 +# source://rubocop/lib/rubocop/util.rb#5 module RuboCop::Util class << self - # source://rubocop//lib/rubocop/util.rb#6 + # source://rubocop/lib/rubocop/util.rb#6 def silence_warnings; end end end -# source://rubocop//lib/rubocop/error.rb#10 +# source://rubocop/lib/rubocop/error.rb#10 class RuboCop::ValidationError < ::RuboCop::Error; end # This module holds the RuboCop version information. # -# source://rubocop//lib/rubocop/version.rb#5 +# source://rubocop/lib/rubocop/version.rb#5 module RuboCop::Version class << self # @api private # - # source://rubocop//lib/rubocop/version.rb#99 + # source://rubocop/lib/rubocop/version.rb#99 def config_for_pwd(env); end # @api private # - # source://rubocop//lib/rubocop/version.rb#129 + # source://rubocop/lib/rubocop/version.rb#129 def document_version; end # @api private # - # source://rubocop//lib/rubocop/version.rb#66 + # source://rubocop/lib/rubocop/version.rb#66 def extension_versions(env); end # Returns feature version in one of two ways: @@ -58913,48 +59574,48 @@ module RuboCop::Version # # @api private # - # source://rubocop//lib/rubocop/version.rb#113 + # source://rubocop/lib/rubocop/version.rb#113 def feature_version(feature); end # @api private # - # source://rubocop//lib/rubocop/version.rb#51 + # source://rubocop/lib/rubocop/version.rb#51 def parser_version; end # @api private # - # source://rubocop//lib/rubocop/version.rb#134 + # source://rubocop/lib/rubocop/version.rb#134 def server_mode; end # @api private # - # source://rubocop//lib/rubocop/version.rb#90 + # source://rubocop/lib/rubocop/version.rb#90 def target_ruby_version(env); end # @api private # - # source://rubocop//lib/rubocop/version.rb#46 + # 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 + # source://rubocop/lib/rubocop/version.rb#23 def version(debug: T.unsafe(nil), env: T.unsafe(nil)); end end end -# source://rubocop//lib/rubocop/version.rb#13 +# source://rubocop/lib/rubocop/version.rb#13 RuboCop::Version::CANONICAL_FEATURE_NAMES = T.let(T.unsafe(nil), Hash) -# source://rubocop//lib/rubocop/version.rb#17 +# source://rubocop/lib/rubocop/version.rb#17 RuboCop::Version::EXTENSION_PATH_NAMES = T.let(T.unsafe(nil), Hash) -# source://rubocop//lib/rubocop/version.rb#8 +# source://rubocop/lib/rubocop/version.rb#8 RuboCop::Version::MSG = T.let(T.unsafe(nil), String) -# source://rubocop//lib/rubocop/version.rb#6 +# source://rubocop/lib/rubocop/version.rb#6 RuboCop::Version::STRING = T.let(T.unsafe(nil), String) # A Warning exception is different from an Offense with severity 'warning' @@ -58963,42 +59624,42 @@ RuboCop::Version::STRING = T.let(T.unsafe(nil), String) # user error # For example, a configuration value in .rubocop.yml might be malformed # -# source://rubocop//lib/rubocop/warning.rb#9 +# source://rubocop/lib/rubocop/warning.rb#9 class RuboCop::Warning < ::StandardError; end # Find duplicated keys from YAML. # # @api private # -# source://rubocop//lib/rubocop/yaml_duplication_checker.rb#6 +# source://rubocop/lib/rubocop/yaml_duplication_checker.rb#6 module RuboCop::YAMLDuplicationChecker class << self # @api private # - # source://rubocop//lib/rubocop/yaml_duplication_checker.rb#7 + # source://rubocop/lib/rubocop/yaml_duplication_checker.rb#7 def check(yaml_string, filename, &on_duplicated); end end end # @api private # -# source://rubocop//lib/rubocop/yaml_duplication_checker.rb#14 +# source://rubocop/lib/rubocop/yaml_duplication_checker.rb#14 class RuboCop::YAMLDuplicationChecker::DuplicationCheckHandler < ::Psych::TreeBuilder # @api private # @return [DuplicationCheckHandler] a new instance of DuplicationCheckHandler # - # source://rubocop//lib/rubocop/yaml_duplication_checker.rb#15 + # source://rubocop/lib/rubocop/yaml_duplication_checker.rb#15 def initialize(&block); end # @api private # - # source://rubocop//lib/rubocop/yaml_duplication_checker.rb#20 + # source://rubocop/lib/rubocop/yaml_duplication_checker.rb#20 def end_mapping; end end # Extensions to the core String class # -# source://rubocop//lib/rubocop/core_ext/string.rb#4 +# source://rubocop/lib/rubocop/core_ext/string.rb#4 class String include ::Comparable end diff --git a/sorbet/rbi/gems/stringio@3.1.1.rbi b/sorbet/rbi/gems/stringio@3.1.2.rbi similarity index 100% rename from sorbet/rbi/gems/stringio@3.1.1.rbi rename to sorbet/rbi/gems/stringio@3.1.2.rbi diff --git a/sorbet/rbi/gems/unicode-display_width@2.6.0.rbi b/sorbet/rbi/gems/unicode-display_width@2.6.0.rbi deleted file mode 100644 index 2aaad2329..000000000 --- a/sorbet/rbi/gems/unicode-display_width@2.6.0.rbi +++ /dev/null @@ -1,66 +0,0 @@ -# typed: true - -# DO NOT EDIT MANUALLY -# This is an autogenerated file for types exported from the `unicode-display_width` gem. -# Please instead update this file by running `bin/tapioca gem unicode-display_width`. - - -# source://unicode-display_width//lib/unicode/display_width/constants.rb#3 -module Unicode; end - -# source://unicode-display_width//lib/unicode/display_width/constants.rb#4 -class Unicode::DisplayWidth - # @return [DisplayWidth] a new instance of DisplayWidth - # - # source://unicode-display_width//lib/unicode/display_width.rb#104 - def initialize(ambiguous: T.unsafe(nil), overwrite: T.unsafe(nil), emoji: T.unsafe(nil)); end - - # source://unicode-display_width//lib/unicode/display_width.rb#110 - def get_config(**kwargs); end - - # source://unicode-display_width//lib/unicode/display_width.rb#118 - def of(string, **kwargs); end - - class << self - # source://unicode-display_width//lib/unicode/display_width/index.rb#14 - def decompress_index(index, level); end - - # source://unicode-display_width//lib/unicode/display_width.rb#86 - def emoji_extra_width_of(string, ambiguous = T.unsafe(nil), overwrite = T.unsafe(nil), _ = T.unsafe(nil)); end - - # source://unicode-display_width//lib/unicode/display_width.rb#12 - def of(string, ambiguous = T.unsafe(nil), overwrite = T.unsafe(nil), options = T.unsafe(nil)); end - - # Same as .width_no_overwrite - but with applying overwrites for each char - # - # source://unicode-display_width//lib/unicode/display_width.rb#57 - def width_all_features(string, ambiguous, overwrite, options); end - - # source://unicode-display_width//lib/unicode/display_width.rb#30 - def width_no_overwrite(string, ambiguous, options = T.unsafe(nil)); end - end -end - -# source://unicode-display_width//lib/unicode/display_width.rb#9 -Unicode::DisplayWidth::ASCII_NON_ZERO_REGEX = T.let(T.unsafe(nil), Regexp) - -# source://unicode-display_width//lib/unicode/display_width/constants.rb#7 -Unicode::DisplayWidth::DATA_DIRECTORY = T.let(T.unsafe(nil), String) - -# source://unicode-display_width//lib/unicode/display_width.rb#10 -Unicode::DisplayWidth::FIRST_4096 = T.let(T.unsafe(nil), Array) - -# source://unicode-display_width//lib/unicode/display_width/index.rb#11 -Unicode::DisplayWidth::INDEX = T.let(T.unsafe(nil), Array) - -# source://unicode-display_width//lib/unicode/display_width/constants.rb#8 -Unicode::DisplayWidth::INDEX_FILENAME = T.let(T.unsafe(nil), String) - -# source://unicode-display_width//lib/unicode/display_width.rb#8 -Unicode::DisplayWidth::INITIAL_DEPTH = T.let(T.unsafe(nil), Integer) - -# source://unicode-display_width//lib/unicode/display_width/constants.rb#6 -Unicode::DisplayWidth::UNICODE_VERSION = T.let(T.unsafe(nil), String) - -# source://unicode-display_width//lib/unicode/display_width/constants.rb#5 -Unicode::DisplayWidth::VERSION = T.let(T.unsafe(nil), String) diff --git a/sorbet/rbi/gems/unicode-display_width@3.1.2.rbi b/sorbet/rbi/gems/unicode-display_width@3.1.2.rbi new file mode 100644 index 000000000..3651a9231 --- /dev/null +++ b/sorbet/rbi/gems/unicode-display_width@3.1.2.rbi @@ -0,0 +1,130 @@ +# typed: true + +# DO NOT EDIT MANUALLY +# This is an autogenerated file for types exported from the `unicode-display_width` gem. +# Please instead update this file by running `bin/tapioca gem unicode-display_width`. + + +# require "rbconfig" +# RbConfig::CONFIG["host_os"] =~ /mswin|mingw/ # windows +# +# source://unicode-display_width/lib/unicode/display_width/constants.rb#3 +module Unicode; end + +# source://unicode-display_width/lib/unicode/display_width/constants.rb#4 +class Unicode::DisplayWidth + # @return [DisplayWidth] a new instance of DisplayWidth + # + # source://unicode-display_width/lib/unicode/display_width.rb#220 + def initialize(ambiguous: T.unsafe(nil), overwrite: T.unsafe(nil), emoji: T.unsafe(nil)); end + + # source://unicode-display_width/lib/unicode/display_width.rb#226 + def get_config(**kwargs); end + + # source://unicode-display_width/lib/unicode/display_width.rb#234 + def of(string, **kwargs); end + + class << self + # source://unicode-display_width/lib/unicode/display_width/index.rb#14 + def decompress_index(index, level); end + + # Returns width of all considered Emoji and remaining string + # + # source://unicode-display_width/lib/unicode/display_width.rb#134 + def emoji_width(string, mode = T.unsafe(nil), ambiguous = T.unsafe(nil)); end + + # Match possible Emoji first, then refine + # + # source://unicode-display_width/lib/unicode/display_width.rb#164 + def emoji_width_via_possible(string, emoji_set_regex, strict_eaw = T.unsafe(nil), ambiguous = T.unsafe(nil)); end + + # source://unicode-display_width/lib/unicode/display_width.rb#192 + def normalize_options(string, ambiguous = T.unsafe(nil), overwrite = T.unsafe(nil), old_options = T.unsafe(nil), **options); end + + # Returns monospace display width of string + # + # source://unicode-display_width/lib/unicode/display_width.rb#49 + def of(string, ambiguous = T.unsafe(nil), overwrite = T.unsafe(nil), old_options = T.unsafe(nil), **options); end + + # Returns width for ASCII-only strings. Will consider zero-width control symbols. + # + # source://unicode-display_width/lib/unicode/display_width.rb#124 + def width_ascii(string); end + + # Returns width of custom overwrites and remaining string + # + # source://unicode-display_width/lib/unicode/display_width.rb#108 + def width_custom(string, overwrite); end + end +end + +# source://unicode-display_width/lib/unicode/display_width.rb#16 +Unicode::DisplayWidth::AMBIGUOUS_MAP = T.let(T.unsafe(nil), Hash) + +# source://unicode-display_width/lib/unicode/display_width.rb#15 +Unicode::DisplayWidth::ASCII_BACKSPACE = T.let(T.unsafe(nil), String) + +# source://unicode-display_width/lib/unicode/display_width.rb#13 +Unicode::DisplayWidth::ASCII_NON_ZERO_REGEX = T.let(T.unsafe(nil), Regexp) + +# source://unicode-display_width/lib/unicode/display_width.rb#14 +Unicode::DisplayWidth::ASCII_NON_ZERO_STRING = T.let(T.unsafe(nil), String) + +# source://unicode-display_width/lib/unicode/display_width/constants.rb#7 +Unicode::DisplayWidth::DATA_DIRECTORY = T.let(T.unsafe(nil), String) + +# source://unicode-display_width/lib/unicode/display_width.rb#11 +Unicode::DisplayWidth::DEFAULT_AMBIGUOUS = T.let(T.unsafe(nil), Integer) + +# source://unicode-display_width/lib/unicode/display_width.rb#32 +Unicode::DisplayWidth::EMOJI_SEQUENCES_REGEX_MAPPING = T.let(T.unsafe(nil), Hash) + +# source://unicode-display_width/lib/unicode/display_width/emoji_support.rb#6 +module Unicode::DisplayWidth::EmojiSupport + class << self + # Tries to find out which terminal emulator is used to + # set emoji: config to best suiting value + # + # Please also see section in README.md and + # misc/terminal-emoji-width.rb + # + # Please note: Many terminals do not set any ENV vars, + # maybe CSI queries can help? + # + # source://unicode-display_width/lib/unicode/display_width/emoji_support.rb#15 + def recommended; end + end +end + +# source://unicode-display_width/lib/unicode/display_width.rb#28 +Unicode::DisplayWidth::FIRST_4096 = T.let(T.unsafe(nil), Hash) + +# source://unicode-display_width/lib/unicode/display_width.rb#20 +Unicode::DisplayWidth::FIRST_AMBIGUOUS = T.let(T.unsafe(nil), Hash) + +# source://unicode-display_width/lib/unicode/display_width/index.rb#11 +Unicode::DisplayWidth::INDEX = T.let(T.unsafe(nil), Hash) + +# source://unicode-display_width/lib/unicode/display_width/constants.rb#8 +Unicode::DisplayWidth::INDEX_FILENAME = T.let(T.unsafe(nil), String) + +# source://unicode-display_width/lib/unicode/display_width.rb#12 +Unicode::DisplayWidth::INITIAL_DEPTH = T.let(T.unsafe(nil), Integer) + +# source://unicode-display_width/lib/unicode/display_width.rb#24 +Unicode::DisplayWidth::NOT_COMMON_NARROW_REGEX = T.let(T.unsafe(nil), Hash) + +# source://unicode-display_width/lib/unicode/display_width.rb#45 +Unicode::DisplayWidth::REGEX_EMOJI_ALL_SEQUENCES = T.let(T.unsafe(nil), Regexp) + +# source://unicode-display_width/lib/unicode/display_width.rb#46 +Unicode::DisplayWidth::REGEX_EMOJI_ALL_SEQUENCES_AND_VS16 = T.let(T.unsafe(nil), Regexp) + +# source://unicode-display_width/lib/unicode/display_width.rb#37 +Unicode::DisplayWidth::REGEX_EMOJI_VS16 = T.let(T.unsafe(nil), Regexp) + +# source://unicode-display_width/lib/unicode/display_width/constants.rb#6 +Unicode::DisplayWidth::UNICODE_VERSION = T.let(T.unsafe(nil), String) + +# source://unicode-display_width/lib/unicode/display_width/constants.rb#5 +Unicode::DisplayWidth::VERSION = T.let(T.unsafe(nil), String) diff --git a/sorbet/rbi/gems/unicode-emoji@4.0.4.rbi b/sorbet/rbi/gems/unicode-emoji@4.0.4.rbi new file mode 100644 index 000000000..5d551dd6e --- /dev/null +++ b/sorbet/rbi/gems/unicode-emoji@4.0.4.rbi @@ -0,0 +1,251 @@ +# typed: true + +# DO NOT EDIT MANUALLY +# This is an autogenerated file for types exported from the `unicode-emoji` gem. +# Please instead update this file by running `bin/tapioca gem unicode-emoji`. + + +# This file was generated by a script, please do not edit it by hand. +# See `$ rake generate_constants` and data/generate_constants.rb for more info. +# +# source://unicode-emoji/lib/unicode/emoji/constants.rb#3 +module Unicode; end + +# source://unicode-emoji/lib/unicode/emoji/constants.rb#4 +module Unicode::Emoji + class << self + # Returns ordered list of Emoji, categorized in a three-level deep Hash structure + # + # source://unicode-emoji/lib/unicode/emoji.rb#80 + def list(key = T.unsafe(nil), sub_key = T.unsafe(nil)); end + + # Return Emoji properties of character as an Array or nil + # See PROPERTY_NAMES constant for possible properties + # + # Source: see https://www.unicode.org/Public/16.0.0/ucd/emoji/emoji-data.txt + # + # source://unicode-emoji/lib/unicode/emoji.rb#68 + def properties(char); end + + private + + # source://unicode-emoji/lib/unicode/emoji.rb#88 + def get_codepoint_value(char); end + end +end + +# Last codepoint of tag-based subdivision flags +# +# source://unicode-emoji/lib/unicode/emoji/constants.rb#31 +Unicode::Emoji::CANCEL_TAG = T.let(T.unsafe(nil), Integer) + +# source://unicode-emoji/lib/unicode/emoji/constants.rb#7 +Unicode::Emoji::CLDR_VERSION = T.let(T.unsafe(nil), String) + +# source://unicode-emoji/lib/unicode/emoji/constants.rb#8 +Unicode::Emoji::DATA_DIRECTORY = T.let(T.unsafe(nil), String) + +# The current list of codepoints with the "Emoji" property +# Same characters as \p{Emoji} +# (Emoji version of this gem might be more recent than Ruby's Emoji version) +# +# source://unicode-emoji/lib/unicode/emoji/lazy_constants.rb#8 +Unicode::Emoji::EMOJI_CHAR = T.let(T.unsafe(nil), Array) + +# The current list of codepoints with the "Emoji_Component" property +# Same characters as \p{Emoji Component} or \p{EComp} +# (Emoji version of this gem might be more recent than Ruby's Emoji version) +# +# source://unicode-emoji/lib/unicode/emoji/lazy_constants.rb#21 +Unicode::Emoji::EMOJI_COMPONENT = T.let(T.unsafe(nil), Array) + +# The list of characters that can be used as base for keycap sequences +# +# source://unicode-emoji/lib/unicode/emoji/lazy_constants.rb#42 +Unicode::Emoji::EMOJI_KEYCAPS = T.let(T.unsafe(nil), Array) + +# Combining Enclosing Keycap character +# +# source://unicode-emoji/lib/unicode/emoji/constants.rb#37 +Unicode::Emoji::EMOJI_KEYCAP_SUFFIX = T.let(T.unsafe(nil), Integer) + +# The current list of codepoints with the "Emoji_Modifier" property +# Same characters as \p{Emoji Modifier} or \p{EMod} +# (Emoji version of this gem might be more recent than Ruby's Emoji version) +# +# source://unicode-emoji/lib/unicode/emoji/lazy_constants.rb#31 +Unicode::Emoji::EMOJI_MODIFIERS = T.let(T.unsafe(nil), Array) + +# The current list of codepoints with the "Emoji_Modifier_Base" property +# Same characters as \p{Emoji Modifier Base} or \p{EBase} +# (Emoji version of this gem might be more recent than Ruby's Emoji version) +# +# source://unicode-emoji/lib/unicode/emoji/lazy_constants.rb#26 +Unicode::Emoji::EMOJI_MODIFIER_BASES = T.let(T.unsafe(nil), Array) + +# The current list of codepoints with the "Emoji_Presentation" property +# Same characters as \p{Emoji Presentation} or \p{EPres} +# (Emoji version of this gem might be more recent than Ruby's Emoji version) +# +# source://unicode-emoji/lib/unicode/emoji/lazy_constants.rb#13 +Unicode::Emoji::EMOJI_PRESENTATION = T.let(T.unsafe(nil), Array) + +# First codepoint of tag-based subdivision flags +# +# source://unicode-emoji/lib/unicode/emoji/constants.rb#28 +Unicode::Emoji::EMOJI_TAG_BASE_FLAG = T.let(T.unsafe(nil), Integer) + +# Variation Selector 16 (VS16), enables emoji presentation mode for preceding codepoint +# +# source://unicode-emoji/lib/unicode/emoji/constants.rb#22 +Unicode::Emoji::EMOJI_VARIATION_SELECTOR = T.let(T.unsafe(nil), Integer) + +# source://unicode-emoji/lib/unicode/emoji/constants.rb#6 +Unicode::Emoji::EMOJI_VERSION = T.let(T.unsafe(nil), String) + +# The current list of codepoints with the "Extended_Pictographic" property +# Same characters as \p{Extended Pictographic} or \p{ExtPict} +# (Emoji version of this gem might be more recent than Ruby's Emoji version) +# +# source://unicode-emoji/lib/unicode/emoji/lazy_constants.rb#36 +Unicode::Emoji::EXTENDED_PICTOGRAPHIC = T.let(T.unsafe(nil), Array) + +# The current list of codepoints with the "Extended_Pictographic" property that don't have the "Emoji" property +# +# source://unicode-emoji/lib/unicode/emoji/lazy_constants.rb#39 +Unicode::Emoji::EXTENDED_PICTOGRAPHIC_NO_EMOJI = T.let(T.unsafe(nil), Array) + +# source://unicode-emoji/lib/unicode/emoji/index.rb#11 +Unicode::Emoji::INDEX = T.let(T.unsafe(nil), Hash) + +# source://unicode-emoji/lib/unicode/emoji/constants.rb#9 +Unicode::Emoji::INDEX_FILENAME = T.let(T.unsafe(nil), String) + +# Contains an ordered and group list of all currently recommended Emoji (RGI/FQE) +# +# source://unicode-emoji/lib/unicode/emoji/list.rb#6 +Unicode::Emoji::LIST = T.let(T.unsafe(nil), Hash) + +# Sometimes, categories change, we issue a warning in these cases +# +# source://unicode-emoji/lib/unicode/emoji/list.rb#9 +Unicode::Emoji::LIST_REMOVED_KEYS = T.let(T.unsafe(nil), Array) + +# Unicode properties, see https://www.unicode.org/Public/16.0.0/ucd/emoji/emoji-data.txt +# +# source://unicode-emoji/lib/unicode/emoji/constants.rb#12 +Unicode::Emoji::PROPERTY_NAMES = T.let(T.unsafe(nil), Hash) + +# The list RGI tag sequence flags +# +# source://unicode-emoji/lib/unicode/emoji/lazy_constants.rb#51 +Unicode::Emoji::RECOMMENDED_SUBDIVISION_FLAGS = T.let(T.unsafe(nil), Array) + +# The list of fully-qualified RGI Emoji ZWJ sequences +# +# source://unicode-emoji/lib/unicode/emoji/lazy_constants.rb#54 +Unicode::Emoji::RECOMMENDED_ZWJ_SEQUENCES = T.let(T.unsafe(nil), Array) + +# source://unicode-emoji/lib/unicode/emoji/generated/regex.rb#6 +Unicode::Emoji::REGEX = T.let(T.unsafe(nil), Regexp) + +# source://unicode-emoji/lib/unicode/emoji/generated/regex_basic.rb#6 +Unicode::Emoji::REGEX_BASIC = T.let(T.unsafe(nil), Regexp) + +# source://unicode-emoji/lib/unicode/emoji/generated/regex_emoji_keycap.rb#6 +Unicode::Emoji::REGEX_EMOJI_KEYCAP = T.let(T.unsafe(nil), Regexp) + +# source://unicode-emoji/lib/unicode/emoji/generated/regex_include_mqe.rb#6 +Unicode::Emoji::REGEX_INCLUDE_MQE = T.let(T.unsafe(nil), Regexp) + +# source://unicode-emoji/lib/unicode/emoji/generated/regex_include_mqe_uqe.rb#6 +Unicode::Emoji::REGEX_INCLUDE_MQE_UQE = T.let(T.unsafe(nil), Regexp) + +# source://unicode-emoji/lib/unicode/emoji/generated/regex_include_text.rb#6 +Unicode::Emoji::REGEX_INCLUDE_TEXT = T.let(T.unsafe(nil), Regexp) + +# source://unicode-emoji/lib/unicode/emoji/generated/regex_picto.rb#6 +Unicode::Emoji::REGEX_PICTO = T.let(T.unsafe(nil), Regexp) + +# source://unicode-emoji/lib/unicode/emoji/generated/regex_picto_no_emoji.rb#6 +Unicode::Emoji::REGEX_PICTO_NO_EMOJI = T.let(T.unsafe(nil), Regexp) + +# source://unicode-emoji/lib/unicode/emoji/generated/regex_possible.rb#6 +Unicode::Emoji::REGEX_POSSIBLE = T.let(T.unsafe(nil), Regexp) + +# source://unicode-emoji/lib/unicode/emoji/generated/regex_prop_component.rb#6 +Unicode::Emoji::REGEX_PROP_COMPONENT = T.let(T.unsafe(nil), Regexp) + +# source://unicode-emoji/lib/unicode/emoji/generated/regex_prop_emoji.rb#6 +Unicode::Emoji::REGEX_PROP_EMOJI = T.let(T.unsafe(nil), Regexp) + +# source://unicode-emoji/lib/unicode/emoji/generated/regex_prop_modifier.rb#6 +Unicode::Emoji::REGEX_PROP_MODIFIER = T.let(T.unsafe(nil), Regexp) + +# source://unicode-emoji/lib/unicode/emoji/generated/regex_prop_modifier_base.rb#6 +Unicode::Emoji::REGEX_PROP_MODIFIER_BASE = T.let(T.unsafe(nil), Regexp) + +# source://unicode-emoji/lib/unicode/emoji/generated/regex_prop_presentation.rb#6 +Unicode::Emoji::REGEX_PROP_PRESENTATION = T.let(T.unsafe(nil), Regexp) + +# source://unicode-emoji/lib/unicode/emoji/generated/regex_text.rb#6 +Unicode::Emoji::REGEX_TEXT = T.let(T.unsafe(nil), Regexp) + +# source://unicode-emoji/lib/unicode/emoji/generated/regex_text_presentation.rb#6 +Unicode::Emoji::REGEX_TEXT_PRESENTATION = T.let(T.unsafe(nil), Regexp) + +# source://unicode-emoji/lib/unicode/emoji/generated/regex_valid.rb#6 +Unicode::Emoji::REGEX_VALID = T.let(T.unsafe(nil), Regexp) + +# source://unicode-emoji/lib/unicode/emoji/generated/regex_valid_include_text.rb#6 +Unicode::Emoji::REGEX_VALID_INCLUDE_TEXT = T.let(T.unsafe(nil), Regexp) + +# source://unicode-emoji/lib/unicode/emoji/generated/regex_well_formed.rb#6 +Unicode::Emoji::REGEX_WELL_FORMED = T.let(T.unsafe(nil), Regexp) + +# source://unicode-emoji/lib/unicode/emoji/generated/regex_well_formed_include_text.rb#6 +Unicode::Emoji::REGEX_WELL_FORMED_INCLUDE_TEXT = T.let(T.unsafe(nil), Regexp) + +# Two regional indicators make up a region +# +# source://unicode-emoji/lib/unicode/emoji/constants.rb#43 +Unicode::Emoji::REGIONAL_INDICATORS = T.let(T.unsafe(nil), Array) + +# Tags characters allowed in tag-based subdivision flags +# +# source://unicode-emoji/lib/unicode/emoji/constants.rb#34 +Unicode::Emoji::SPEC_TAGS = T.let(T.unsafe(nil), Array) + +# The current list of codepoints with the "Emoji" property that lack the "Emoji Presentation" property +# +# source://unicode-emoji/lib/unicode/emoji/lazy_constants.rb#16 +Unicode::Emoji::TEXT_PRESENTATION = T.let(T.unsafe(nil), Array) + +# Variation Selector 15 (VS15), enables text presentation mode for preceding codepoint +# +# source://unicode-emoji/lib/unicode/emoji/constants.rb#25 +Unicode::Emoji::TEXT_VARIATION_SELECTOR = T.let(T.unsafe(nil), Integer) + +# The list of valid regions +# +# source://unicode-emoji/lib/unicode/emoji/lazy_constants.rb#45 +Unicode::Emoji::VALID_REGION_FLAGS = T.let(T.unsafe(nil), Array) + +# The list of valid subdivisions in regex character class syntax +# +# source://unicode-emoji/lib/unicode/emoji/lazy_constants.rb#48 +Unicode::Emoji::VALID_SUBDIVISIONS = T.let(T.unsafe(nil), Array) + +# source://unicode-emoji/lib/unicode/emoji/constants.rb#5 +Unicode::Emoji::VERSION = T.let(T.unsafe(nil), String) + +# The current list of Emoji components that should have a visual representation +# Currently skin tone modifiers + hair components +# +# source://unicode-emoji/lib/unicode/emoji/constants.rb#47 +Unicode::Emoji::VISUAL_COMPONENT = T.let(T.unsafe(nil), Array) + +# Zero-width-joiner to enable combination of multiple Emoji in a sequence +# +# source://unicode-emoji/lib/unicode/emoji/constants.rb#40 +Unicode::Emoji::ZWJ = T.let(T.unsafe(nil), Integer)