Skip to content

Instantly share code, notes, and snippets.

@pocke
Created February 22, 2020 06:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pocke/6fa639fc7549c90a852da769cbcd65b1 to your computer and use it in GitHub Desktop.
Save pocke/6fa639fc7549c90a852da769cbcd65b1 to your computer and use it in GitHub Desktop.
diff --git a/tmp/before.rbs b/tmp/after.rbs
index b67bb830f..49b9c3bdf 100644
--- a/tmp/before.rbs
+++ b/tmp/after.rbs
@@ -271,7 +271,7 @@ class RuboCop::AST::CaseNode < Node
# Returns the keyword of the `case` statement as a string.
#
# @return [String] the keyword of the `case` statement
- def keyword: () -> untyped
+ def keyword: () -> "case"
# Calls the given block for each `when` node in the `case` statement.
# If no block is given, an `Enumerator` is returned.
@@ -452,7 +452,7 @@ class RuboCop::AST::ForNode < Node
# Returns the keyword of the `for` statement as a string.
#
# @return [String] the keyword of the `until` statement
- def keyword: () -> untyped
+ def keyword: () -> "for"
# Checks whether the `for` node has a `do` keyword.
#
@@ -463,7 +463,7 @@ class RuboCop::AST::ForNode < Node
# Always `true` for `for`.
#
# @return [true] whether the `for` node body is a void context
- def void_context?: () -> untyped
+ def void_context?: () -> ::TrueClass
# Returns the iteration variable of the `for` loop.
#
@@ -715,13 +715,13 @@ class RuboCop::AST::KeywordSplatNode < Node
# `hash` elements.
#
# @return [false]
- def hash_rocket?: () -> untyped
+ def hash_rocket?: () -> ::FalseClass
# This is used for duck typing with `pair` nodes which also appear as
# `hash` elements.
#
# @return [false]
- def colon?: () -> untyped
+ def colon?: () -> ::FalseClass
# Returns the operator for the `kwsplat` as a string.
#
@@ -1896,13 +1896,13 @@ class RuboCop::AST::UntilNode < Node
# Returns the keyword of the `until` statement as a string.
#
# @return [String] the keyword of the `until` statement
- def keyword: () -> untyped
+ def keyword: () -> "until"
# Returns the inverse keyword of the `until` node as a string.
# Returns `while` for `until` nodes and vice versa.
#
# @return [String] the inverse keyword of the `until` statement
- def inverse_keyword: () -> untyped
+ def inverse_keyword: () -> "while"
# Checks whether the `until` node has a `do` keyword.
#
@@ -1965,13 +1965,13 @@ class RuboCop::AST::WhileNode < Node
# Returns the keyword of the `while` statement as a string.
#
# @return [String] the keyword of the `while` statement
- def keyword: () -> untyped
+ def keyword: () -> "while"
# Returns the inverse keyword of the `while` node as a string.
# Returns `until` for `while` nodes and vice versa.
#
# @return [String] the inverse keyword of the `while` statement
- def inverse_keyword: () -> untyped
+ def inverse_keyword: () -> "until"
# Checks whether the `until` node has a `do` keyword.
#
@@ -2073,7 +2073,7 @@ class RuboCop::CachedData
def to_json: (untyped offenses) -> untyped
- def serialize_offense: (untyped offense) -> untyped
+ def serialize_offense: (untyped offense) -> { severity: untyped, location: { begin_pos: untyped, end_pos: untyped }, message: untyped, cop_name: untyped, status: :uncorrected }
def message: (untyped offense) -> untyped
@@ -2695,7 +2695,7 @@ class RuboCop::ConfigValidator
def check_cop_config_value: (untyped hash, ?untyped? parent) -> untyped
# FIXME: Handling colors in exception messages like this is ugly.
- def msg_not_boolean: (untyped parent, untyped key, untyped value) -> untyped
+ def msg_not_boolean: (untyped parent, untyped key, untyped value) -> ::String
end
RuboCop::ConfigValidator::COMMON_PARAMS: untyped
@@ -3089,7 +3089,7 @@ class RuboCop::Cop::Cop
def initialize: (?untyped? config, ?untyped? options) -> untyped
- def join_force?: (untyped _force_class) -> untyped
+ def join_force?: (untyped _force_class) -> ::FalseClass
def cop_config: () -> untyped
@@ -3138,7 +3138,7 @@ class RuboCop::Cop::Cop
# Overriding this method allows the cop to indicate to RuboCop's
# ResultCache system when those external dependencies change,
# ie when the ResultCache should be invalidated.
- def external_dependency_checksum: () -> untyped
+ def external_dependency_checksum: () -> nil
def find_message: (untyped node, untyped message) -> untyped
@@ -3672,7 +3672,7 @@ class RuboCop::Cop::Force
def run_hook: (untyped method_name, *untyped args) -> untyped
- def investigate: (untyped _processed_source) -> untyped
+ def investigate: (untyped _processed_source) -> nil
end
module RuboCop
@@ -3950,7 +3950,7 @@ class RuboCop::Cop::Generator
def inject_config: (?config_file_path: ::String config_file_path) -> untyped
- def todo: () -> untyped
+ def todo: () -> ::String
attr_reader badge: untyped
@@ -4020,7 +4020,7 @@ class RuboCop::Cop::Generator::RequireFileInjector
def require_path_fragments: (untyped require_directove) -> untyped
- def injectable_require_directive: () -> untyped
+ def injectable_require_directive: () -> ::String
def require_path: () -> untyped
end
@@ -4542,7 +4542,7 @@ class RuboCop::Cop::Layout::BlockAlignment < Cop
def on_block: (untyped node) -> untyped
- def style_parameter_name: () -> untyped
+ def style_parameter_name: () -> "EnforcedStyleAlignWith"
def autocorrect: (untyped node) -> untyped
@@ -4562,11 +4562,11 @@ class RuboCop::Cop::Layout::BlockAlignment < Cop
def compute_do_source_line_column: (untyped node, untyped end_loc) -> untyped
- def loc_to_source_line_column: (untyped loc) -> untyped
+ def loc_to_source_line_column: (untyped loc) -> { source: untyped, line: untyped, column: untyped }
def alt_start_msg: (untyped start_loc, untyped source_line_column) -> untyped
- def format_source_line_column: (untyped source_line_column) -> untyped
+ def format_source_line_column: (untyped source_line_column) -> ::String
def compute_start_col: (untyped ancestor_node, untyped node) -> untyped
@@ -5481,7 +5481,7 @@ class RuboCop::Cop::Layout::EmptyComment < Cop
def empty_comment_only?: (untyped comment_text) -> untyped
- def comment_text: (untyped comment) -> untyped
+ def comment_text: (untyped comment) -> ::String
def allow_border_comment?: () -> untyped
@@ -5892,7 +5892,7 @@ class RuboCop::Cop::Layout::EmptyLinesAroundBeginBody < Cop
def autocorrect: (untyped node) -> untyped
- def style: () -> untyped
+ def style: () -> :no_empty_lines
end
RuboCop::Cop::Layout::EmptyLinesAroundBeginBody::KIND: ::String
@@ -6093,7 +6093,7 @@ class RuboCop::Cop::Layout::EmptyLinesAroundExceptionHandlingKeywords < Cop
def message: (untyped location, untyped keyword) -> untyped
- def style: () -> untyped
+ def style: () -> :no_empty_lines
def keyword_locations: (untyped node) -> untyped
@@ -6137,7 +6137,7 @@ class RuboCop::Cop::Layout::EmptyLinesAroundMethodBody < Cop
def autocorrect: (untyped node) -> untyped
- def style: () -> untyped
+ def style: () -> :no_empty_lines
end
RuboCop::Cop::Layout::EmptyLinesAroundMethodBody::KIND: ::String
@@ -6780,7 +6780,7 @@ class RuboCop::Cop::Layout::FirstArrayElementIndentation < Cop
def autocorrect: (untyped node) -> untyped
- def brace_alignment_style: () -> untyped
+ def brace_alignment_style: () -> :align_brackets
def check: (untyped array_node, untyped left_parenthesis) -> untyped
@@ -6925,7 +6925,7 @@ class RuboCop::Cop::Layout::FirstHashElementIndentation < Cop
def autocorrect: (untyped node) -> untyped
- def brace_alignment_style: () -> untyped
+ def brace_alignment_style: () -> :align_braces
def check: (untyped hash_node, untyped left_parenthesis) -> untyped
@@ -7111,7 +7111,7 @@ class RuboCop::Cop::Layout::FirstParameterIndentation < Cop
def autocorrect: (untyped node) -> untyped
- def brace_alignment_style: () -> untyped
+ def brace_alignment_style: () -> :align_parentheses
def check: (untyped def_node) -> untyped
@@ -8845,9 +8845,9 @@ class RuboCop::Cop::Layout::MultilineMethodCallIndentation < Cop
def should_align_with_base?: () -> untyped
- def relative_to_receiver_message: (untyped rhs) -> untyped
+ def relative_to_receiver_message: (untyped rhs) -> ::String
- def align_with_base_message: (untyped rhs) -> untyped
+ def align_with_base_message: (untyped rhs) -> ::String
def base_source: () -> untyped
@@ -9414,7 +9414,7 @@ class RuboCop::Cop::Layout::SpaceAroundBlockParameters < Cop
def pipes?: (untyped arguments) -> untyped
- def style_parameter_name: () -> untyped
+ def style_parameter_name: () -> "EnforcedStyleInsidePipes"
def check_inside_pipes: (untyped arguments) -> untyped
@@ -14423,7 +14423,7 @@ class RuboCop::Cop::Lint::UnusedBlockArgument < Cop
def message_for_lambda: (untyped variable, untyped all_arguments) -> untyped
- def message_for_underscore_prefix: (untyped variable) -> untyped
+ def message_for_underscore_prefix: (untyped variable) -> ::String
def define_method_call?: (untyped variable) -> untyped
@@ -14775,7 +14775,7 @@ class RuboCop::Cop::Lint::UselessAssignment < Cop
def message_specification: (untyped assignment, untyped variable) -> untyped
- def multiple_assignment_message: (untyped variable_name) -> untyped
+ def multiple_assignment_message: (untyped variable_name) -> ::String
def operator_assignment_message: (untyped scope, untyped assignment) -> untyped
@@ -15170,7 +15170,7 @@ class RuboCop::Cop::Metrics::BlockNesting < Cop
def consider_node?: (untyped node) -> untyped
- def message: (untyped max) -> untyped
+ def message: (untyped max) -> ::String
def count_blocks?: () -> untyped
end
@@ -15221,7 +15221,7 @@ end
class RuboCop::Cop::Metrics::CyclomaticComplexity < Cop
include MethodComplexity
- def complexity_score_for: (untyped _node) -> untyped
+ def complexity_score_for: (untyped _node) -> 1
end
RuboCop::Cop::Metrics::CyclomaticComplexity::MSG: ::String
@@ -15666,7 +15666,7 @@ module RuboCop::Cop::ConfigurableEnforcedStyle
def supported_styles: () -> untyped
- def style_parameter_name: () -> untyped
+ def style_parameter_name: () -> "EnforcedStyle"
end
module RuboCop
@@ -15701,7 +15701,7 @@ end
module RuboCop::Cop::ConfigurableMax
def max=: (untyped value) -> untyped
- def max_parameter_name: () -> untyped
+ def max_parameter_name: () -> "Max"
end
module RuboCop
@@ -15907,7 +15907,7 @@ module RuboCop::Cop::EndKeywordAlignment
def add_offense_for_misalignment: (untyped node, untyped align_with) -> untyped
- def style_parameter_name: () -> untyped
+ def style_parameter_name: () -> "EnforcedStyleAlignWith"
def variable_alignment?: (untyped whole_expression, untyped rhs, untyped end_alignment_style) -> untyped
@@ -15986,9 +15986,9 @@ end
# Handles calculation of deltas when the enforced style is 'key'.
class RuboCop::Cop::HashAlignmentStyles::KeyAlignment
- def checkable_layout?: (untyped _node) -> untyped
+ def checkable_layout?: (untyped _node) -> ::TrueClass
- def deltas_for_first_pair: (untyped first_pair, untyped _node) -> untyped
+ def deltas_for_first_pair: (untyped first_pair, untyped _node) -> { separator: untyped, value: untyped }
def deltas: (untyped first_pair, untyped current_pair) -> untyped
@@ -16027,7 +16027,7 @@ end
class RuboCop::Cop::HashAlignmentStyles::SeparatorAlignment
include ValueAlignment
- def deltas_for_first_pair: (*untyped _nodes) -> untyped
+ def deltas_for_first_pair: (*untyped _nodes) -> { }
def key_delta: (untyped first_pair, untyped current_pair) -> untyped
@@ -16790,7 +16790,7 @@ module RuboCop::Cop::SpaceAfterPunctuation
# The normal offset, i.e., the distance from the punctuation
# token where a space should be, is 1.
- def offset: () -> untyped
+ def offset: () -> 1
end
RuboCop::Cop::SpaceAfterPunctuation::MSG: ::String
@@ -16986,7 +16986,7 @@ module RuboCop::Cop::TrailingComma
include RangeHelp
- def style_parameter_name: () -> untyped
+ def style_parameter_name: () -> "EnforcedStyleForMultiline"
def check: (untyped node, untyped items, untyped kind, untyped begin_pos, untyped end_pos) -> untyped
@@ -17611,7 +17611,7 @@ class RuboCop::Cop::Naming::MemoizedInstanceVariableName < Cop
def on_def: (untyped node) -> untyped
- def style_parameter_name: () -> untyped
+ def style_parameter_name: () -> "EnforcedStyleForLeadingUnderscores"
def matches?: (untyped method_name, untyped ivar_assign) -> untyped
@@ -17769,7 +17769,7 @@ class RuboCop::Cop::Naming::PredicateName < Cop
def expected_name: (untyped method_name, untyped prefix) -> untyped
- def message: (untyped method_name, untyped new_name) -> untyped
+ def message: (untyped method_name, untyped new_name) -> ::String
def forbidden_prefixes: () -> untyped
@@ -19144,11 +19144,11 @@ class RuboCop::Cop::Style::CharacterLiteral < Cop
# Dummy implementation of method in ConfigurableEnforcedStyle that is
# called from StringHelp.
- def opposite_style_detected: () -> untyped
+ def opposite_style_detected: () -> nil
# Dummy implementation of method in ConfigurableEnforcedStyle that is
# called from StringHelp.
- def correct_style_detected: () -> untyped
+ def correct_style_detected: () -> nil
end
RuboCop::Cop::Style::CharacterLiteral::MSG: ::String
@@ -19205,7 +19205,7 @@ class RuboCop::Cop::Style::ClassAndModuleChildren < Cop
def compact_node: (untyped corrector, untyped node) -> untyped
- def compact_identifier_name: (untyped node) -> untyped
+ def compact_identifier_name: (untyped node) -> ::String
def remove_end: (untyped corrector, untyped body) -> untyped
@@ -19962,7 +19962,7 @@ class RuboCop::Cop::Style::TernaryCorrector
def self.move_assignment_inside_condition: (untyped node) -> untyped
- def self.correction: (untyped node) -> untyped
+ def self.correction: (untyped node) -> ::String
def self.ternary: (untyped node) -> untyped
@@ -21342,7 +21342,7 @@ class RuboCop::Cop::Style::FormatStringToken < Cop
def unannotated_format?: (untyped node, untyped detected_style) -> untyped
- def message: (untyped detected_style) -> untyped
+ def message: (untyped detected_style) -> ::String
# rubocop:disable Style/FormatStringToken
def message_text: (untyped style) -> untyped
@@ -21535,9 +21535,9 @@ class RuboCop::Cop::Style::FrozenStringLiteralComment < Cop
def line_range: (untyped line) -> untyped
- def preceding_comment: () -> untyped
+ def preceding_comment: () -> ::String
- def following_comment: () -> untyped
+ def following_comment: () -> ::String
end
RuboCop::Cop::Style::FrozenStringLiteralComment::MSG_MISSING_TRUE: ::String
@@ -21845,7 +21845,7 @@ class RuboCop::Cop::Style::HashTransformKeys < Cop
def extract_captures: (untyped match) -> untyped
- def new_method_name: () -> untyped
+ def new_method_name: () -> "transform_keys"
end
module RuboCop
@@ -21884,7 +21884,7 @@ class RuboCop::Cop::Style::HashTransformValues < Cop
def extract_captures: (untyped match) -> untyped
- def new_method_name: () -> untyped
+ def new_method_name: () -> "transform_values"
end
module RuboCop
@@ -22420,11 +22420,11 @@ class RuboCop::Cop::Style::IpAddresses < Cop
# Dummy implementation of method in ConfigurableEnforcedStyle that is
# called from StringHelp.
- def opposite_style_detected: () -> untyped
+ def opposite_style_detected: () -> nil
# Dummy implementation of method in ConfigurableEnforcedStyle that is
# called from StringHelp.
- def correct_style_detected: () -> untyped
+ def correct_style_detected: () -> nil
def allowed_addresses: () -> untyped
@@ -22675,7 +22675,7 @@ module RuboCop::Cop::Style::MethodCallWithArgsParentheses::OmitParentheses
def autocorrect: (untyped node) -> untyped
- def message: (?untyped? _node) -> untyped
+ def message: (?untyped? _node) -> "Omit parentheses for method calls with arguments."
def super_call_without_arguments?: (untyped node) -> untyped
@@ -22881,7 +22881,7 @@ class RuboCop::Cop::Style::MethodCallWithArgsParentheses < Cop
def initialize: () -> untyped
# @abstract Overridden in style modules
- def autocorrect: (untyped _node) -> untyped
+ def autocorrect: (untyped _node) -> nil
def args_begin: (untyped node) -> untyped
@@ -22908,7 +22908,7 @@ module RuboCop::Cop::Style::MethodCallWithArgsParentheses::RequireParentheses
def autocorrect: (untyped node) -> untyped
- def message: (?untyped? _node) -> untyped
+ def message: (?untyped? _node) -> "Use parentheses for method calls with arguments."
def eligible_for_parentheses_omission?: (untyped node) -> untyped
@@ -24620,7 +24620,7 @@ class RuboCop::Cop::Style::NumericLiterals < Cop
def autocorrect: (untyped node) -> untyped
- def max_parameter_name: () -> untyped
+ def max_parameter_name: () -> "MinDigits"
def check: (untyped node) -> untyped
@@ -24982,9 +24982,9 @@ class RuboCop::Cop::Style::ParallelAssignment::RescueCorrector < GenericCorrecto
def correction_range: () -> untyped
- def def_correction: (untyped rescue_result) -> untyped
+ def def_correction: (untyped rescue_result) -> ::String
- def begin_correction: (untyped rescue_result) -> untyped
+ def begin_correction: (untyped rescue_result) -> ::String
end
# An internal class for correcting parallel assignment
@@ -25558,7 +25558,7 @@ class RuboCop::Cop::Style::RedundantConditional < Cop
def invert_expression?: (untyped node) -> untyped
- def indented_else_node: (untyped expression, untyped node) -> untyped
+ def indented_else_node: (untyped expression, untyped node) -> ::String
def configured_indentation_width: () -> untyped
end
@@ -28201,7 +28201,7 @@ class RuboCop::Cop::Style::TrivialAccessors < Cop
def trivial_accessor_kind: (untyped node) -> untyped
- def accessor: (untyped kind, untyped method_name) -> untyped
+ def accessor: (untyped kind, untyped method_name) -> ::String
def autocorrect_instance: (untyped node) -> untyped
@@ -28715,7 +28715,7 @@ module RuboCop::Cop::Util
def comment_line?: (untyped line_source) -> untyped
- def line_range: (untyped node) -> untyped
+ def line_range: (untyped node) -> ::Range[untyped]
def parentheses?: (untyped node) -> untyped
@@ -29037,7 +29037,7 @@ end
class RuboCop::Cop::VariableForce::Branch::Rescue < Base
include ExceptionHandler
- def always_run?: () -> untyped
+ def always_run?: () -> ::FalseClass
end
# begin
@@ -29072,7 +29072,7 @@ class RuboCop::Cop::VariableForce < Force
def process_children: (untyped origin_node) -> untyped
- def skip_children!: () -> untyped
+ def skip_children!: () -> :skip_children
# rubocop:disable Metrics/MethodLength, Metrics/CyclomaticComplexity
def node_handler_method_name: (untyped node) -> untyped
@@ -29405,7 +29405,7 @@ class RuboCop::ErrorWithAnalyzedFileLocation < Error
def column: () -> untyped
- def message: () -> untyped
+ def message: () -> ::String
end
module RuboCop
@@ -29509,7 +29509,7 @@ class RuboCop::Formatter::BaseFormatter
# all target file paths to be inspected
#
# @return [void]
- def started: (untyped target_files) -> untyped
+ def started: (untyped target_files) -> nil
# @api public
#
@@ -29522,7 +29522,7 @@ class RuboCop::Formatter::BaseFormatter
# file specific information, currently this is always empty.
#
# @return [void]
- def file_started: (untyped file, untyped options) -> untyped
+ def file_started: (untyped file, untyped options) -> nil
# @api public
#
@@ -29537,7 +29537,7 @@ class RuboCop::Formatter::BaseFormatter
# @return [void]
#
# @see RuboCop::Cop::Offense
- def file_finished: (untyped file, untyped offenses) -> untyped
+ def file_finished: (untyped file, untyped offenses) -> nil
# @api public
#
@@ -29549,7 +29549,7 @@ class RuboCop::Formatter::BaseFormatter
# unless RuboCop is interrupted by user.
#
# @return [void]
- def finished: (untyped inspected_files) -> untyped
+ def finished: (untyped inspected_files) -> nil
end
module RuboCop
@@ -29805,7 +29805,7 @@ class RuboCop::Formatter::HTMLFormatter::ERBContext
def highlighted_source_line: (untyped offense) -> untyped
- def hightlight_source_tag: (untyped offense) -> untyped
+ def hightlight_source_tag: (untyped offense) -> ::String
def source_before_highlight: (untyped offense) -> untyped
@@ -29842,14 +29842,14 @@ class RuboCop::Formatter::JSONFormatter < BaseFormatter
def finished: (untyped inspected_files) -> untyped
- def metadata_hash: () -> untyped
+ def metadata_hash: () -> { rubocop_version: untyped, ruby_engine: untyped, ruby_version: untyped, ruby_patchlevel: untyped, ruby_platform: untyped }
- def hash_for_file: (untyped file, untyped offenses) -> untyped
+ def hash_for_file: (untyped file, untyped offenses) -> { path: untyped, offenses: untyped }
- def hash_for_offense: (untyped offense) -> untyped
+ def hash_for_offense: (untyped offense) -> { severity: untyped, message: untyped, cop_name: untyped, corrected: untyped, correctable: untyped, location: untyped }
# TODO: Consider better solution for Offense#real_column.
- def hash_for_location: (untyped offense) -> untyped
+ def hash_for_location: (untyped offense) -> { start_line: untyped, start_column: untyped, last_line: untyped, last_column: untyped, length: untyped, line: untyped, column: untyped }
end
#
@@ -30231,7 +30231,7 @@ class RuboCop::MagicComment::VimComment < EditorComment
def encoding: () -> untyped
# Vim comments cannot specify frozen string literal behavior.
- def frozen_string_literal: () -> untyped
+ def frozen_string_literal: () -> nil
end
RuboCop::MagicComment::VimComment::FORMAT: untyped
@@ -30393,7 +30393,7 @@ class RuboCop::NodePattern
def ==: (untyped other) -> untyped
- def to_s: () -> untyped
+ def to_s: () -> ::String
# Yields its argument and any descendants, depth-first.
#
@@ -30423,7 +30423,7 @@ class RuboCop::NodePattern::Compiler
def compile_seq: () -> untyped
- def compile_guard_clause: () -> untyped
+ def compile_guard_clause: () -> ::String
def variadic_seq_term: () -> untyped
@@ -30454,9 +30454,9 @@ class RuboCop::NodePattern::Compiler
def compile_intersect: () -> untyped
- def compile_capture: () -> untyped
+ def compile_capture: () -> ::String
- def compile_negation: () -> untyped
+ def compile_negation: () -> ::String
def compile_ascend: () -> untyped
@@ -30464,15 +30464,15 @@ class RuboCop::NodePattern::Compiler
def compile_wildcard: (untyped name) -> untyped
- def compile_literal: (untyped literal) -> untyped
+ def compile_literal: (untyped literal) -> ::String
def compile_predicate: (untyped predicate) -> untyped
def compile_funcall: (untyped method) -> untyped
- def compile_nodetype: (untyped `type`) -> untyped
+ def compile_nodetype: (untyped `type`) -> ::String
- def compile_param: (untyped number) -> untyped
+ def compile_param: (untyped number) -> ::String
def compile_args: (untyped tokens) -> untyped
@@ -30490,7 +30490,7 @@ class RuboCop::NodePattern::Compiler
def emit_trailing_params: () -> untyped
- def emit_method_code: () -> untyped
+ def emit_method_code: () -> ::String
def fail_due_to: (untyped message) -> untyped
@@ -30498,7 +30498,7 @@ class RuboCop::NodePattern::Compiler
def with_temp_variables: () { (untyped) -> untyped } -> untyped
- def next_temp_variable: (untyped name) -> untyped
+ def next_temp_variable: (untyped name) -> ::String
def next_temp_value: () -> untyped
@@ -30630,7 +30630,7 @@ module RuboCop::NodePattern::Macros
def node_search: (untyped method_name, untyped compiler, untyped on_match, untyped prelude, untyped called_from) -> untyped
- def node_search_body: (untyped method_name, untyped trailing_params, untyped prelude, untyped match_code, untyped on_match) -> untyped
+ def node_search_body: (untyped method_name, untyped trailing_params, untyped prelude, untyped match_code, untyped on_match) -> ::String
end
module RuboCop
@@ -31405,14 +31405,14 @@ end
# The target ruby version may be configured in RuboCop's config.
class RuboCop::TargetRuby::RuboCopConfig < Source
- def name: () -> untyped
+ def name: () -> ::String
def find_version: () -> untyped
end
# The target ruby version may be found in a .ruby-version file.
class RuboCop::TargetRuby::RubyVersionFile < Source
- def name: () -> untyped
+ def name: () -> ::String
def find_version: () -> untyped
@@ -31423,7 +31423,7 @@ RuboCop::TargetRuby::RubyVersionFile::FILENAME: ::String
# The lock file of Bundler may identify the target ruby version.
class RuboCop::TargetRuby::BundlerLockFile < Source
- def name: () -> untyped
+ def name: () -> ::String
def find_version: () -> untyped
@@ -31432,7 +31432,7 @@ end
# If all else fails, a default version will be picked.
class RuboCop::TargetRuby::Default < Source
- def name: () -> untyped
+ def name: () -> "default"
def find_version: () -> untyped
end
@@ -31462,7 +31462,7 @@ class RuboCop::Token
def end_pos: () -> untyped
- def to_s: () -> untyped
+ def to_s: () -> ::String
# Checks if there is whitespace after token
def space_after?: () -> untyped
@pocke
Copy link
Author

pocke commented Feb 22, 2020

There are diffs between before/after of ruby/rbs#209 in rubocop-hq/rubocop repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment