brew/Library/Homebrew/sorbet/rbi/gems/rubocop@0.85.1.rbi

10472 lines
297 KiB
Plaintext
Raw Normal View History

# This file is autogenerated. Do not edit it by hand. Regenerate it with:
# tapioca sync
# typed: true
module RuboCop
end
class RuboCop::CLI
def initialize; end
def config_store; end
def options; end
def run(args = _); end
private
def act_on_options; end
def apply_default_formatter; end
def execute_runners; end
def handle_exiting_options; end
def run_command(name); end
def set_options_to_config_loader; end
def validate_options_vs_config; end
end
module RuboCop::CLI::Command
def self.run(env, name); end
end
class RuboCop::CLI::Command::AutoGenerateConfig < ::RuboCop::CLI::Command::Base
def run; end
private
def add_formatter; end
def execute_runner; end
def line_length_cop(config); end
def line_length_enabled?(config); end
def max_line_length(config); end
def maybe_run_line_length_cop; end
def reset_config_and_auto_gen_file; end
def run_all_cops(line_length_contents); end
def run_line_length_cop; end
def same_max_line_length?(config1, config2); end
def skip_line_length_cop(reason); end
end
RuboCop::CLI::Command::AutoGenerateConfig::PHASE_1 = T.let(T.unsafe(nil), String)
RuboCop::CLI::Command::AutoGenerateConfig::PHASE_1_DISABLED = T.let(T.unsafe(nil), String)
RuboCop::CLI::Command::AutoGenerateConfig::PHASE_1_OVERRIDDEN = T.let(T.unsafe(nil), String)
RuboCop::CLI::Command::AutoGenerateConfig::PHASE_2 = T.let(T.unsafe(nil), String)
class RuboCop::CLI::Command::Base
def initialize(env); end
def env; end
def self.by_command_name(name); end
def self.command_name; end
def self.command_name=(_); end
def self.inherited(subclass); end
end
class RuboCop::CLI::Command::ExecuteRunner < ::RuboCop::CLI::Command::Base
include(::RuboCop::Formatter::TextUtil)
def run; end
private
def display_error_summary(errors); end
def display_warning_summary(warnings); end
def execute_runner(paths); end
def maybe_print_corrected_source; end
end
class RuboCop::CLI::Command::InitDotfile < ::RuboCop::CLI::Command::Base
def run; end
end
RuboCop::CLI::Command::InitDotfile::DOTFILE = T.let(T.unsafe(nil), String)
class RuboCop::CLI::Command::ShowCops < ::RuboCop::CLI::Command::Base
def initialize(env); end
def run; end
private
def config_lines(cop); end
def cops_of_department(cops, department); end
def print_available_cops; end
def print_cop_details(cops); end
def print_cops_of_department(registry, department, show_all); end
def selected_cops_of_department(cops, department); end
end
class RuboCop::CLI::Command::Version < ::RuboCop::CLI::Command::Base
def run; end
end
class RuboCop::CLI::Environment
def initialize(options, config_store, paths); end
def config_store; end
def options; end
def paths; end
def run(name); end
end
class RuboCop::CLI::Finished < ::RuntimeError
end
RuboCop::CLI::STATUS_ERROR = T.let(T.unsafe(nil), Integer)
RuboCop::CLI::STATUS_INTERRUPTED = T.let(T.unsafe(nil), Integer)
RuboCop::CLI::STATUS_OFFENSES = T.let(T.unsafe(nil), Integer)
RuboCop::CLI::STATUS_SUCCESS = T.let(T.unsafe(nil), Integer)
class RuboCop::CachedData
def initialize(filename); end
def from_json(text); end
def to_json(offenses); end
private
def deserialize_offenses(offenses); end
def message(offense); end
def serialize_offense(offense); end
end
class RuboCop::CommentConfig
def initialize(processed_source); end
def cop_disabled_line_ranges; end
def cop_enabled_at_line?(cop, line_number); end
def extra_enabled_comments; end
def processed_source; end
private
def all_cop_names; end
def analyze; end
def analyze_cop(analysis, disabled, line, single_line); end
def analyze_disabled(analysis, line); end
def analyze_rest(analysis, line); end
def analyze_single_line(analysis, line, disabled); end
def comment_only_line?(line_number); end
def cop_line_ranges(analysis); end
def directive_on_comment_line?(comment); end
def directive_parts(comment); end
def each_directive; end
def each_mentioned_cop; end
def enable_all?(comment); end
def extra_enabled_comments_with_names(extras, names); end
def handle_enable_all(names, extras, comment); end
def handle_switch(cop_names, names, disabled, extras, comment); end
def non_comment_token_line_numbers; end
def qualified_cop_name(cop_name); end
end
RuboCop::CommentConfig::COMMENT_DIRECTIVE_REGEXP = T.let(T.unsafe(nil), Regexp)
RuboCop::CommentConfig::COPS_PATTERN = T.let(T.unsafe(nil), String)
RuboCop::CommentConfig::COP_NAMES_PATTERN = T.let(T.unsafe(nil), String)
RuboCop::CommentConfig::COP_NAME_PATTERN = T.let(T.unsafe(nil), String)
class RuboCop::CommentConfig::CopAnalysis < ::Struct
def line_ranges; end
def line_ranges=(_); end
def start_line_number; end
def start_line_number=(_); end
def self.[](*_); end
def self.inspect; end
def self.members; end
def self.new(*_); end
end
RuboCop::CommentConfig::REDUNDANT_DISABLE = T.let(T.unsafe(nil), String)
class RuboCop::Config
include(::RuboCop::PathUtil)
include(::RuboCop::FileFinder)
extend(::Forwardable)
def initialize(hash = _, loaded_path = _); end
def [](*args, &block); end
def []=(*args, &block); end
def add_excludes_from_higher_level(highest_config); end
def allowed_camel_case_file?(file); end
def base_dir_for_path_parameters; end
def bundler_lock_file_path; end
def check; end
def delete(*args, &block); end
def deprecation_check; end
def disabled_new_cops?; end
def each(*args, &block); end
def each_key(*args, &block); end
def enabled_new_cops?; end
def file_to_exclude?(file); end
def file_to_include?(file); end
def for_all_cops; end
def for_cop(cop); end
def for_department(department_name); end
def internal?; end
def key?(*args, &block); end
def keys(*args, &block); end
def loaded_path; end
def make_excludes_absolute; end
def map(*args, &block); end
def merge(*args, &block); end
def path_relative_to_config(path); end
def patterns_to_exclude; end
def patterns_to_include; end
def pending_cops; end
def possibly_include_hidden?; end
def signature; end
def smart_loaded_path; end
def target_rails_version; end
def target_ruby_version(*args, &block); end
def to_h(*args, &block); end
def to_hash(*args, &block); end
def to_s; end
def transform_values(*args, &block); end
def validate(*args, &block); end
private
def department_of(qualified_cop_name); end
def enable_cop?(qualified_cop_name, cop_options); end
def read_rails_version_from_bundler_lock_file; end
def target_rails_version_from_bundler_lock_file; end
def self.create(hash, path); end
end
class RuboCop::Config::CopConfig < ::Struct
def metadata; end
def metadata=(_); end
def name; end
def name=(_); end
def self.[](*_); end
def self.inspect; end
def self.members; end
def self.new(*_); end
end
RuboCop::Config::DEFAULT_RAILS_VERSION = T.let(T.unsafe(nil), Float)
class RuboCop::ConfigLoader
extend(::RuboCop::FileFinder)
def self.add_excludes_from_files(config, config_file); end
def self.add_inheritance_from_auto_generated_file; end
def self.add_missing_namespaces(path, hash); end
def self.auto_gen_config; end
def self.auto_gen_config=(_); end
def self.auto_gen_config?; end
def self.clear_options; end
def self.configuration_file_for(target_dir); end
def self.configuration_from_file(config_file); end
def self.debug; end
def self.debug=(_); end
def self.debug?; end
def self.default_configuration; end
def self.default_configuration=(_); end
def self.disable_pending_cops; end
def self.disable_pending_cops=(_); end
def self.enable_pending_cops; end
def self.enable_pending_cops=(_); end
def self.ignore_parent_exclusion; end
def self.ignore_parent_exclusion=(_); end
def self.ignore_parent_exclusion?; end
def self.load_file(file); end
def self.merge(base_hash, derived_hash); end
def self.merge_with_default(config, config_file, unset_nil: _); end
def self.options_config; end
def self.options_config=(_); end
def self.possible_new_cops?(config); end
def self.warn_on_pending_cops(pending_cops); end
end
RuboCop::ConfigLoader::AUTO_GENERATED_FILE = T.let(T.unsafe(nil), String)
RuboCop::ConfigLoader::DEFAULT_FILE = T.let(T.unsafe(nil), String)
RuboCop::ConfigLoader::DOTFILE = T.let(T.unsafe(nil), String)
RuboCop::ConfigLoader::RUBOCOP_HOME = T.let(T.unsafe(nil), String)
RuboCop::ConfigLoader::XDG_CONFIG = T.let(T.unsafe(nil), String)
class RuboCop::ConfigLoaderResolver
def merge(base_hash, derived_hash, **opts); end
def merge_with_default(config, config_file, unset_nil:); end
def override_department_setting_for_cops(base_hash, derived_hash); end
def resolve_inheritance(path, hash, file, debug); end
def resolve_inheritance_from_gems(hash); end
def resolve_requires(path, hash); end
private
def base_configs(path, inherit_from, file); end
def determine_inherit_mode(hash, key); end
def disabled?(hash, department); end
def duplicate_setting?(base_hash, derived_hash, key, inherited_file); end
def gem_config_path(gem_name, relative_config_path); end
def handle_disabled_by_default(config, new_default_configuration); end
def inherited_file(path, inherit_from, file); end
def remote_file?(uri); end
def should_union?(base_hash, key, inherit_mode); end
def transform(config); end
def warn_on_duplicate_setting(base_hash, derived_hash, key, **opts); end
end
class RuboCop::ConfigNotFoundError < ::RuboCop::Error
end
class RuboCop::ConfigObsoletion
def initialize(config); end
def reject_obsolete_cops_and_parameters; end
private
def obsolete_cops; end
def obsolete_enforced_style; end
def obsolete_enforced_style_message(cop, param, enforced_style, alternative); end
def obsolete_parameter_message(cops, parameters, alternative); end
def obsolete_parameters; end
def smart_loaded_path; end
end
RuboCop::ConfigObsoletion::MOVED_COPS = T.let(T.unsafe(nil), Array)
RuboCop::ConfigObsoletion::OBSOLETE_COPS = T.let(T.unsafe(nil), Hash)
RuboCop::ConfigObsoletion::OBSOLETE_ENFORCED_STYLES = T.let(T.unsafe(nil), Array)
RuboCop::ConfigObsoletion::OBSOLETE_PARAMETERS = T.let(T.unsafe(nil), Array)
RuboCop::ConfigObsoletion::REMOVED_COPS = T.let(T.unsafe(nil), Array)
RuboCop::ConfigObsoletion::REMOVED_COPS_WITH_REASON = T.let(T.unsafe(nil), Array)
RuboCop::ConfigObsoletion::RENAMED_COPS = T.let(T.unsafe(nil), Array)
RuboCop::ConfigObsoletion::SPLIT_COPS = T.let(T.unsafe(nil), Array)
class RuboCop::ConfigStore
def initialize; end
def for(file_or_dir); end
def for_dir(dir); end
def for_file(file); end
def force_default_config!; end
def options_config=(options_config); end
end
class RuboCop::ConfigValidator
extend(::Forwardable)
def initialize(config); end
def for_all_cops(*args, &block); end
def smart_loaded_path(*args, &block); end
def target_ruby_version; end
def validate; end
def validate_section_presence(name); end
private
def alert_about_unrecognized_cops(invalid_cop_names); end
def check_cop_config_value(hash, parent = _); end
def check_target_ruby; end
def each_invalid_parameter(cop_name); end
def msg_not_boolean(parent, key, value); end
def reject_conflicting_safe_settings; end
def reject_mutually_exclusive_defaults; end
def target_ruby; end
def validate_enforced_styles(valid_cop_names); end
def validate_new_cops_parameter; end
def validate_parameter_names(valid_cop_names); end
def validate_support_and_has_list(name, formats, valid); end
def validate_syntax_cop; end
end
RuboCop::ConfigValidator::COMMON_PARAMS = T.let(T.unsafe(nil), Array)
RuboCop::ConfigValidator::INTERNAL_PARAMS = T.let(T.unsafe(nil), Array)
RuboCop::ConfigValidator::NEW_COPS_VALUES = T.let(T.unsafe(nil), Array)
module RuboCop::Cop
end
module RuboCop::Cop::Alignment
private
def check_alignment(items, base_column = _); end
def column_delta; end
def configured_indentation_width; end
def display_column(range); end
def each_bad_alignment(items, base_column); end
def end_of_line_comment(line); end
def indentation(node); end
def offset(node); end
def within?(inner, outer); end
end
RuboCop::Cop::Alignment::SPACE = T.let(T.unsafe(nil), String)
class RuboCop::Cop::AlignmentCorrector
extend(::RuboCop::Cop::RangeHelp)
extend(::RuboCop::Cop::Alignment)
def self.align_end(processed_source, node, align_to); end
def self.correct(processed_source, node, column_delta); end
def self.processed_source; end
end
class RuboCop::Cop::AmbiguousCopName < ::RuboCop::Error
def initialize(name, origin, badges); end
end
RuboCop::Cop::AmbiguousCopName::MSG = T.let(T.unsafe(nil), String)
module RuboCop::Cop::ArrayMinSize
private
def array_style_detected(style, ary_size); end
def below_array_length?(node); end
def largest_brackets_size(style, ary_size); end
def min_size_config; end
def smallest_percent_size(style, ary_size); end
end
module RuboCop::Cop::ArraySyntax
private
def bracketed_array_of?(element_type, node); end
end
module RuboCop::Cop::AutocorrectLogic
def autocorrect?; end
def autocorrect_enabled?; end
def autocorrect_requested?; end
def correctable?; end
def disable_offense(node); end
def disable_uncorrectable?; end
def safe_autocorrect?; end
def support_autocorrect?; end
private
def disable_offense_at_end_of_line(range, eol_comment); end
def disable_offense_before_and_after(range_by_lines); end
def max_line_length; end
def range_by_lines(range); end
def range_of_first_line(range); end
end
class RuboCop::Cop::Badge
def initialize(department, cop_name); end
def ==(other); end
def cop_name; end
def department; end
def eql?(other); end
def hash; end
def match?(other); end
def qualified?; end
def to_s; end
def with_department(department); end
def self.for(class_name); end
def self.parse(identifier); end
end
class RuboCop::Cop::Badge::InvalidBadge < ::RuboCop::Error
def initialize(token); end
end
RuboCop::Cop::Badge::InvalidBadge::MSG = T.let(T.unsafe(nil), String)
module RuboCop::Cop::Bundler
end
class RuboCop::Cop::Bundler::DuplicatedGem < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::RangeHelp)
def gem_declarations(node0); end
def investigate(processed_source); end
private
def duplicated_gem_nodes; end
def register_offense(node, gem_name, line_of_first_occurrence); end
end
RuboCop::Cop::Bundler::DuplicatedGem::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Bundler::GemComment < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::DefNode)
def gem_declaration?(node = _); end
def on_send(node); end
private
def checked_options_present?(node); end
def commented?(node); end
def contains_checked_options?(node); end
def gem_options(node); end
def ignored_gem?(node); end
def precede?(node1, node2); end
def preceding_comment?(node1, node2); end
def preceding_lines(node); end
def version_specified_gem?(node); end
end
RuboCop::Cop::Bundler::GemComment::CHECKED_OPTIONS_CONFIG = T.let(T.unsafe(nil), String)
RuboCop::Cop::Bundler::GemComment::MSG = T.let(T.unsafe(nil), String)
RuboCop::Cop::Bundler::GemComment::VERSION_SPECIFIERS_OPTION = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Bundler::InsecureProtocolSource < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::RangeHelp)
def autocorrect(node); end
def insecure_protocol_source?(node = _); end
def on_send(node); end
private
def range(node); end
end
RuboCop::Cop::Bundler::InsecureProtocolSource::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Bundler::OrderedGems < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::ConfigurableEnforcedStyle)
include(::RuboCop::Cop::OrderedGemNode)
def autocorrect(node); end
def gem_declarations(node0); end
def investigate(processed_source); end
private
def previous_declaration(node); end
end
RuboCop::Cop::Bundler::OrderedGems::MSG = T.let(T.unsafe(nil), String)
module RuboCop::Cop::CheckAssignment
def on_and_asgn(node); end
def on_casgn(node); end
def on_cvasgn(node); end
def on_gvasgn(node); end
def on_ivasgn(node); end
def on_lvasgn(node); end
def on_masgn(node); end
def on_op_asgn(node); end
def on_or_asgn(node); end
def on_send(node); end
private
def extract_rhs(node); end
def self.extract_rhs(node); end
end
module RuboCop::Cop::CheckLineBreakable
def extract_breakable_node(node, max); end
private
def all_on_same_line?(nodes); end
def already_on_multiple_lines?(node); end
def breakable_collection?(node, elements); end
def children_could_be_broken_up?(children); end
def contained_by_breakable_collection_on_same_line?(node); end
def contained_by_multiline_collection_that_could_be_broken_up?(node); end
def extract_breakable_node_from_elements(node, elements, max); end
def extract_first_element_over_column_limit(node, elements, max); end
def process_args(args); end
def safe_to_ignore?(node); end
def within_column_limit?(element, max, line); end
end
module RuboCop::Cop::ClassishLength
include(::RuboCop::Cop::ConfigurableMax)
include(::RuboCop::Cop::CodeLength)
private
def code_length(node); end
def line_numbers_of_inner_nodes(node, *types); end
end
module RuboCop::Cop::CodeLength
include(::RuboCop::Cop::ConfigurableMax)
private
def check_code_length(node); end
def count_comments?; end
def irrelevant_line(source_line); end
def max_length; end
end
class RuboCop::Cop::Commissioner
include(::RuboCop::AST::Traversal)
def initialize(cops, forces = _, options = _); end
def errors; end
def investigate(processed_source); end
def on_alias(node); end
def on_and(node); end
def on_and_asgn(node); end
def on_arg(node); end
def on_arg_expr(node); end
def on_args(node); end
def on_array(node); end
def on_array_pattern(node); end
def on_array_pattern_with_tail(node); end
def on_back_ref(node); end
def on_begin(node); end
def on_block(node); end
def on_block_pass(node); end
def on_blockarg(node); end
def on_break(node); end
def on_case(node); end
def on_case_match(node); end
def on_casgn(node); end
def on_cbase(node); end
def on_class(node); end
def on_complex(node); end
def on_const(node); end
def on_const_pattern(node); end
def on_csend(node); end
def on_cvar(node); end
def on_cvasgn(node); end
def on_def(node); end
def on_defined?(node); end
def on_defs(node); end
def on_dstr(node); end
def on_dsym(node); end
def on_eflipflop(node); end
def on_empty_else(node); end
def on_ensure(node); end
def on_erange(node); end
def on_false(node); end
def on_float(node); end
def on_for(node); end
def on_forward_args(node); end
def on_forwarded_args(node); end
def on_gvar(node); end
def on_gvasgn(node); end
def on_hash(node); end
def on_hash_pattern(node); end
def on_if(node); end
def on_if_guard(node); end
def on_iflipflop(node); end
def on_in_match(node); end
def on_in_pattern(node); end
def on_int(node); end
def on_irange(node); end
def on_ivar(node); end
def on_ivasgn(node); end
def on_kwarg(node); end
def on_kwbegin(node); end
def on_kwoptarg(node); end
def on_kwrestarg(node); end
def on_kwsplat(node); end
def on_lambda(node); end
def on_lvar(node); end
def on_lvasgn(node); end
def on_masgn(node); end
def on_match_alt(node); end
def on_match_as(node); end
def on_match_current_line(node); end
def on_match_nil_pattern(node); end
def on_match_rest(node); end
def on_match_var(node); end
def on_match_with_lvasgn(node); end
def on_match_with_trailing_comma(node); end
def on_mlhs(node); end
def on_module(node); end
def on_next(node); end
def on_nil(node); end
def on_not(node); end
def on_nth_ref(node); end
def on_numblock(node); end
def on_op_asgn(node); end
def on_optarg(node); end
def on_or(node); end
def on_or_asgn(node); end
def on_pair(node); end
def on_pin(node); end
def on_postexe(node); end
def on_preexe(node); end
def on_rational(node); end
def on_redo(node); end
def on_regexp(node); end
def on_regopt(node); end
def on_resbody(node); end
def on_rescue(node); end
def on_restarg(node); end
def on_retry(node); end
def on_return(node); end
def on_sclass(node); end
def on_self(node); end
def on_send(node); end
def on_shadowarg(node); end
def on_splat(node); end
def on_str(node); end
def on_super(node); end
def on_sym(node); end
def on_true(node); end
def on_undef(node); end
def on_unless_guard(node); end
def on_until(node); end
def on_until_post(node); end
def on_when(node); end
def on_while(node); end
def on_while_post(node); end
def on_xstr(node); end
def on_yield(node); end
def on_zsuper(node); end
private
def invoke_custom_post_walk_processing(cops, processed_source); end
def invoke_custom_processing(cops_or_forces, processed_source); end
def prepare(processed_source); end
def reset_callbacks; end
def reset_errors; end
def trigger_responding_cops(callback, node); end
def with_cop_error_handling(cop, node = _); end
end
class RuboCop::Cop::ConditionCorrector
def self.correct_negative_condition(node); end
end
module RuboCop::Cop::ConfigurableEnforcedStyle
def alternative_style; end
def alternative_styles; end
def ambiguous_style_detected(*possibilities); end
def conflicting_styles_detected; end
def correct_style_detected; end
def detected_style; end
def detected_style=(style); end
def no_acceptable_style!; end
def no_acceptable_style?; end
def opposite_style_detected; end
def style; end
def style_configured?; end
def style_detected(detected); end
def style_parameter_name; end
def supported_styles; end
def unexpected_style_detected(unexpected); end
def unrecognized_style_detected; end
end
module RuboCop::Cop::ConfigurableFormatting
include(::RuboCop::Cop::ConfigurableEnforcedStyle)
def check_name(node, name, name_range); end
def class_emitter_method?(node, name); end
def report_opposing_styles(node, name); end
def valid_name?(node, name, given_style = _); end
end
module RuboCop::Cop::ConfigurableMax
private
def max=(value); end
def max_parameter_name; end
end
module RuboCop::Cop::ConfigurableNaming
include(::RuboCop::Cop::ConfigurableEnforcedStyle)
include(::RuboCop::Cop::ConfigurableFormatting)
end
RuboCop::Cop::ConfigurableNaming::FORMATS = T.let(T.unsafe(nil), Hash)
module RuboCop::Cop::ConfigurableNumbering
include(::RuboCop::Cop::ConfigurableEnforcedStyle)
include(::RuboCop::Cop::ConfigurableFormatting)
end
RuboCop::Cop::ConfigurableNumbering::FORMATS = T.let(T.unsafe(nil), Hash)
class RuboCop::Cop::Cop
include(::RuboCop::AST::Sexp)
include(::RuboCop::PathUtil)
include(::RuboCop::Cop::Util)
include(::RuboCop::Cop::IgnoredNode)
include(::RuboCop::Cop::AutocorrectLogic)
extend(::RuboCop::AST::Sexp)
extend(::RuboCop::AST::NodePattern::Macros)
def initialize(config = _, options = _); end
def add_offense(node, location: _, message: _, severity: _); end
def config; end
def config_to_allow_offenses; end
def config_to_allow_offenses=(hash); end
def cop_config; end
def cop_name; end
def correct(node); end
def corrections; end
def disable_uncorrectable(node); end
def duplicate_location?(location); end
def excluded_file?(file); end
def external_dependency_checksum; end
def find_location(node, loc); end
def join_force?(_force_class); end
def message(_node = _); end
def name; end
def offenses; end
def parse(source, path = _); end
def processed_source; end
def processed_source=(_); end
def reason_to_not_correct(node); end
def relevant_file?(file); end
def target_rails_version; end
def target_ruby_version; end
private
def annotate(message); end
def custom_severity; end
def default_severity; end
def enabled_line?(line_number); end
def file_name_matches_any?(file, parameter, default_result); end
def find_message(node, message); end
def find_severity(_node, severity); end
def self.all; end
def self.autocorrect_incompatible_with; end
def self.badge; end
def self.cop_name; end
def self.department; end
def self.exclude_from_registry; end
def self.inherited(subclass); end
def self.lint?; end
def self.match?(given_names); end
def self.qualified_cop_name(name, origin); end
def self.registry; end
end
class RuboCop::Cop::Cop::Correction < ::Struct
def call(corrector); end
def cop; end
def cop=(_); end
def lambda; end
def lambda=(_); end
def node; end
def node=(_); end
def self.[](*_); end
def self.inspect; end
def self.members; end
def self.new(*_); end
end
class RuboCop::Cop::Corrector
def initialize(source_buffer, corrections = _); end
def corrections; end
def diagnostics; end
def insert_after(node_or_range, content); end
def insert_before(node_or_range, content); end
def remove(node_or_range); end
def remove_leading(node_or_range, size); end
def remove_preceding(node_or_range, size); end
def remove_trailing(node_or_range, size); end
def replace(node_or_range, content); end
def rewrite; end
def wrap(node_or_range, before, after); end
private
def to_range(node_or_range); end
def validate_buffer(buffer); end
end
module RuboCop::Cop::DefNode
extend(::RuboCop::AST::NodePattern::Macros)
def non_public_modifier?(node = _); end
private
def non_public?(node); end
def preceding_non_public_modifier?(node); end
def stripped_source_upto(index); end
end
RuboCop::Cop::DefNode::NON_PUBLIC_MODIFIERS = T.let(T.unsafe(nil), Array)
module RuboCop::Cop::DocumentationComment
include(::RuboCop::Cop::Style::AnnotationComment)
extend(::RuboCop::AST::NodePattern::Macros)
private
def documentation_comment?(node); end
def interpreter_directive_comment?(comment); end
def precede?(node1, node2); end
def preceding_comment?(node1, node2); end
def preceding_lines(node); end
def rubocop_directive_comment?(comment); end
end
module RuboCop::Cop::Duplication
private
def consecutive_duplicates(collection); end
def duplicates(collection); end
def duplicates?(collection); end
def grouped_duplicates(collection); end
end
class RuboCop::Cop::EachToForCorrector
extend(::RuboCop::AST::NodePattern::Macros)
def initialize(block_node); end
def call(corrector); end
private
def argument_node; end
def block_node; end
def collection_node; end
def correction; end
def offending_range; end
def replacement_range(end_pos); end
end
RuboCop::Cop::EachToForCorrector::CORRECTION_WITHOUT_ARGUMENTS = T.let(T.unsafe(nil), String)
RuboCop::Cop::EachToForCorrector::CORRECTION_WITH_ARGUMENTS = T.let(T.unsafe(nil), String)
class RuboCop::Cop::EmptyLineCorrector
def self.correct(node); end
def self.insert_before(node); end
end
module RuboCop::Cop::EmptyParameter
extend(::RuboCop::AST::NodePattern::Macros)
def empty_arguments?(node = _); end
private
def check(node); end
end
module RuboCop::Cop::EndKeywordAlignment
include(::RuboCop::Cop::ConfigurableEnforcedStyle)
include(::RuboCop::Cop::RangeHelp)
private
def accept_end_kw_alignment?(end_loc); end
def add_offense_for_misalignment(node, align_with); end
def check_end_kw_alignment(node, align_ranges); end
def check_end_kw_in_node(node); end
def line_break_before_keyword?(whole_expression, rhs); end
def matching_ranges(end_loc, align_ranges); end
def style_parameter_name; end
def variable_alignment?(whole_expression, rhs, end_alignment_style); end
end
RuboCop::Cop::EndKeywordAlignment::MSG = T.let(T.unsafe(nil), String)
module RuboCop::Cop::EnforceSuperclass
def on_class(node); end
def on_send(node); end
def self.included(base); end
end
module RuboCop::Cop::FirstElementLineBreak
private
def check_children_line_break(node, children, start = _); end
def check_method_line_break(node, children); end
def first_by_line(nodes); end
def last_by_line(nodes); end
def method_uses_parens?(node, limit); end
end
class RuboCop::Cop::ForToEachCorrector
extend(::RuboCop::AST::NodePattern::Macros)
def initialize(for_node); end
def call(corrector); end
private
def collection_end; end
def collection_node; end
def collection_source; end
def correction; end
def end_position; end
def for_node; end
def keyword_begin; end
def offending_range; end
def replacement_range(end_pos); end
def requires_parentheses?; end
def variable_node; end
end
RuboCop::Cop::ForToEachCorrector::CORRECTION = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Force
def initialize(cops); end
def cops; end
def investigate(_processed_source); end
def name; end
def run_hook(method_name, *args); end
def self.all; end
def self.force_name; end
def self.inherited(subclass); end
end
module RuboCop::Cop::FrozenStringLiteral
private
def frozen_string_literal_comment_exists?; end
def frozen_string_literal_specified?; end
def frozen_string_literals_enabled?; end
def leading_comment_lines; end
def self.frozen_string_literal_comment_exists?; end
end
RuboCop::Cop::FrozenStringLiteral::FROZEN_STRING_LITERAL = T.let(T.unsafe(nil), String)
RuboCop::Cop::FrozenStringLiteral::FROZEN_STRING_LITERAL_ENABLED = T.let(T.unsafe(nil), String)
RuboCop::Cop::FrozenStringLiteral::FROZEN_STRING_LITERAL_TYPES = T.let(T.unsafe(nil), Array)
module RuboCop::Cop::Gemspec
end
class RuboCop::Cop::Gemspec::DuplicatedAssignment < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::RangeHelp)
def assignment_method_declarations(node0); end
def gem_specification(node0); end
def investigate(processed_source); end
private
def assignment_method?(method_name); end
def duplicated_assignment_method_nodes; end
def match_block_variable_name?(receiver_name); end
def register_offense(node, assignment, line_of_first_occurrence); end
end
RuboCop::Cop::Gemspec::DuplicatedAssignment::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Gemspec::OrderedDependencies < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::ConfigurableEnforcedStyle)
include(::RuboCop::Cop::OrderedGemNode)
def autocorrect(node); end
def dependency_declarations(node0); end
def investigate(processed_source); end
private
def get_dependency_name(node); end
def previous_declaration(node); end
end
RuboCop::Cop::Gemspec::OrderedDependencies::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Gemspec::RequiredRubyVersion < ::RuboCop::Cop::Cop
def investigate(processed_source); end
def required_ruby_version(node0); end
private
def extract_ruby_version(required_ruby_version); end
def message(required_ruby_version, target_ruby_version); end
end
RuboCop::Cop::Gemspec::RequiredRubyVersion::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Gemspec::RubyVersionGlobalsUsage < ::RuboCop::Cop::Cop
def gem_specification?(node0); end
def on_const(node); end
def ruby_version?(node = _); end
private
def gem_spec_with_ruby_version?(node); end
end
RuboCop::Cop::Gemspec::RubyVersionGlobalsUsage::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Generator
def initialize(name, github_user, output: _); end
def inject_config(config_file_path: _, version_added: _); end
def inject_require(root_file_path: _); end
def todo; end
def write_source; end
def write_spec; end
private
def badge; end
def bump_minor_version; end
def generate(template); end
def generated_source; end
def generated_spec; end
def github_user; end
def output; end
def snake_case(camel_case_string); end
def source_path; end
def spec_path; end
def write_unless_file_exists(path, contents); end
end
RuboCop::Cop::Generator::CONFIGURATION_ADDED_MESSAGE = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Generator::ConfigurationInjector
def initialize(configuration_file_path:, badge:, version_added:); end
def inject; end
private
def badge; end
def configuration_entries; end
def configuration_file_path; end
def cop_name_line?(yaml); end
def find_target_line; end
def new_configuration_entry; end
def output; end
def version_added; end
end
RuboCop::Cop::Generator::ConfigurationInjector::TEMPLATE = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Generator::RequireFileInjector
def initialize(source_path:, root_file_path:, output: _); end
def inject; end
private
def injectable_require_directive; end
def output; end
def require_entries; end
def require_exists?; end
def require_path; end
def require_path_fragments(require_directove); end
def root_file_path; end
def source_path; end
def target_line; end
def updated_directives; end
end
RuboCop::Cop::Generator::RequireFileInjector::REQUIRE_PATH = T.let(T.unsafe(nil), Regexp)
RuboCop::Cop::Generator::SOURCE_TEMPLATE = T.let(T.unsafe(nil), String)
RuboCop::Cop::Generator::SPEC_TEMPLATE = T.let(T.unsafe(nil), String)
module RuboCop::Cop::HashAlignmentStyles
end
class RuboCop::Cop::HashAlignmentStyles::KeyAlignment
def checkable_layout?(_node); end
def deltas(first_pair, current_pair); end
def deltas_for_first_pair(first_pair, _node); end
private
def separator_delta(pair); end
def value_delta(pair); end
end
class RuboCop::Cop::HashAlignmentStyles::SeparatorAlignment
include(::RuboCop::Cop::HashAlignmentStyles::ValueAlignment)
def deltas_for_first_pair(*_nodes); end
private
def hash_rocket_delta(first_pair, current_pair); end
def key_delta(first_pair, current_pair); end
def value_delta(first_pair, current_pair); end
end
class RuboCop::Cop::HashAlignmentStyles::TableAlignment
include(::RuboCop::Cop::HashAlignmentStyles::ValueAlignment)
def initialize; end
def deltas_for_first_pair(first_pair, node); end
private
def hash_rocket_delta(first_pair, current_pair); end
def key_delta(first_pair, current_pair); end
def max_key_width; end
def max_key_width=(_); end
def value_delta(first_pair, current_pair); end
end
module RuboCop::Cop::HashAlignmentStyles::ValueAlignment
def checkable_layout?(node); end
def deltas(first_pair, current_pair); end
private
def separator_delta(first_pair, current_pair, key_delta); end
end
module RuboCop::Cop::HashTransformMethod
def autocorrect(node); end
def on_block(node); end
def on_csend(node); end
def on_send(node); end
private
def execute_correction(corrector, node, correction); end
def extract_captures(_match); end
def handle_possible_offense(node, match, match_desc); end
def new_method_name; end
def on_bad_each_with_object(_node); end
def on_bad_hash_brackets_map(_node); end
def on_bad_map_to_h(_node); end
def prepare_correction(node); end
end
class RuboCop::Cop::HashTransformMethod::Autocorrection < ::Struct
def block_node; end
def block_node=(_); end
def leading; end
def leading=(_); end
def match; end
def match=(_); end
def set_new_arg_name(transformed_argname, corrector); end
def set_new_body_expression(transforming_body_expr, corrector); end
def set_new_method_name(new_method_name, corrector); end
def strip_prefix_and_suffix(node, corrector); end
def trailing; end
def trailing=(_); end
def self.[](*_); end
def self.from_each_with_object(node, match); end
def self.from_hash_brackets_map(node, match); end
def self.from_map_to_h(node, match); end
def self.inspect; end
def self.members; end
def self.new(*_); end
end
class RuboCop::Cop::HashTransformMethod::Captures < ::Struct
def noop_transformation?; end
def transformation_uses_both_args?; end
def transformed_argname; end
def transformed_argname=(_); end
def transforming_body_expr; end
def transforming_body_expr=(_); end
def unchanged_body_expr; end
def unchanged_body_expr=(_); end
def self.[](*_); end
def self.inspect; end
def self.members; end
def self.new(*_); end
end
module RuboCop::Cop::Heredoc
def on_dstr(node); end
def on_heredoc(_node); end
def on_str(node); end
def on_xstr(node); end
private
def delimiter_string(node); end
def heredoc_type(node); end
end
RuboCop::Cop::Heredoc::OPENING_DELIMITER = T.let(T.unsafe(nil), Regexp)
module RuboCop::Cop::IgnoredMethods
private
def ignored_method?(name); end
def ignored_methods; end
end
module RuboCop::Cop::IgnoredNode
def ignore_node(node); end
def ignored_node?(node); end
def part_of_ignored_node?(node); end
private
def ignored_nodes; end
end
module RuboCop::Cop::IgnoredPattern
private
def ignored_line?(line); end
def ignored_patterns; end
def matches_ignored_pattern?(line); end
end
module RuboCop::Cop::IntegerNode
private
def integer_part(node); end
end
module RuboCop::Cop::Interpolation
def on_dstr(node); end
def on_dsym(node); end
def on_node_with_interpolations(node); end
def on_regexp(node); end
def on_xstr(node); end
end
class RuboCop::Cop::LambdaLiteralToMethodCorrector
def initialize(block_node); end
def call(corrector); end
private
def arg_to_unparenthesized_call?; end
def arguments; end
def arguments_begin_pos; end
def arguments_end_pos; end
def block_begin; end
def block_end; end
def block_node; end
def insert_arguments(corrector); end
def insert_separating_space(corrector); end
def lambda_arg_string; end
def method; end
def needs_separating_space?; end
def remove_arguments(corrector); end
def remove_leading_whitespace(corrector); end
def remove_trailing_whitespace(corrector); end
def remove_unparenthesized_whitespace(corrector); end
def replace_delimiters(corrector); end
def replace_selector(corrector); end
def selector_end; end
def separating_space?; end
end
module RuboCop::Cop::Layout
end
class RuboCop::Cop::Layout::AccessModifierIndentation < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::Alignment)
include(::RuboCop::Cop::ConfigurableEnforcedStyle)
include(::RuboCop::Cop::RangeHelp)
def autocorrect(node); end
def on_block(node); end
def on_class(node); end
def on_module(node); end
def on_sclass(node); end
private
def check_body(body, node); end
def check_modifier(send_node, end_range); end
def expected_indent_offset; end
def message(node); end
def unexpected_indent_offset; end
end
RuboCop::Cop::Layout::AccessModifierIndentation::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Layout::ArgumentAlignment < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::Alignment)
def autocorrect(node); end
def on_csend(node); end
def on_send(node); end
private
def base_column(node, args); end
def fixed_indentation?; end
def message(_node); end
def target_method_lineno(node); end
end
RuboCop::Cop::Layout::ArgumentAlignment::ALIGN_PARAMS_MSG = T.let(T.unsafe(nil), String)
RuboCop::Cop::Layout::ArgumentAlignment::FIXED_INDENT_MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Layout::ArrayAlignment < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::Alignment)
def autocorrect(node); end
def on_array(node); end
private
def base_column(node, args); end
def fixed_indentation?; end
def message(_node); end
def target_method_lineno(node); end
end
RuboCop::Cop::Layout::ArrayAlignment::ALIGN_ELEMENTS_MSG = T.let(T.unsafe(nil), String)
RuboCop::Cop::Layout::ArrayAlignment::FIXED_INDENT_MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Layout::AssignmentIndentation < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::CheckAssignment)
include(::RuboCop::Cop::Alignment)
def autocorrect(node); end
def check_assignment(node, rhs); end
def leftmost_multiple_assignment(node); end
end
RuboCop::Cop::Layout::AssignmentIndentation::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Layout::BlockAlignment < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::ConfigurableEnforcedStyle)
include(::RuboCop::Cop::RangeHelp)
def autocorrect(node); end
def block_end_align_target?(node = _, param1); end
def on_block(node); end
def style_parameter_name; end
private
def add_space_before(loc, delta); end
def alt_start_msg(start_loc, source_line_column); end
def block_end_align_target(node); end
def check_block_alignment(start_node, block_node); end
def compute_do_source_line_column(node, end_loc); end
def compute_start_col(ancestor_node, node); end
def disqualified_parent?(parent, node); end
def end_align_target?(node, parent); end
def format_message(start_loc, end_loc, do_source_line_column, error_source_line_column); end
def format_source_line_column(source_line_column); end
def loc_to_source_line_column(loc); end
def register_offense(block_node, start_loc, end_loc, do_source_line_column); end
def remove_space_before(end_pos, delta); end
def start_for_block_node(block_node); end
end
RuboCop::Cop::Layout::BlockAlignment::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Layout::BlockEndNewline < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::Alignment)
def autocorrect(node); end
def on_block(node); end
private
def delimiter_range(node); end
def message(node); end
end
RuboCop::Cop::Layout::BlockEndNewline::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Layout::CaseIndentation < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::Alignment)
include(::RuboCop::Cop::ConfigurableEnforcedStyle)
include(::RuboCop::Cop::RangeHelp)
def autocorrect(node); end
def on_case(case_node); end
private
def base_column(case_node, base); end
def check_when(when_node); end
def incorrect_style(when_node); end
def indent_one_step?; end
def indentation_width; end
def message(base); end
def replacement(node); end
def whitespace_range(node); end
end
RuboCop::Cop::Layout::CaseIndentation::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Layout::ClassStructure < ::RuboCop::Cop::Cop
def autocorrect(node); end
def on_class(class_node); end
def visibility_block?(node = _); end
private
def begin_pos_with_comment(node); end
def buffer; end
def categories; end
def class_elements(class_node); end
def classify(node); end
def end_position_for(node); end
def expected_order; end
def find_category(node); end
def find_visibility_end(node); end
def find_visibility_start(node); end
def humanize_node(node); end
def ignore?(classification); end
def left_siblings_of(node); end
def node_visibility(node); end
def right_siblings_of(node); end
def siblings_of(node); end
def source_range_with_comment(node); end
def start_line_position(node); end
def walk_over_nested_class_definition(class_node); end
end
RuboCop::Cop::Layout::ClassStructure::HUMANIZED_NODE_TYPE = T.let(T.unsafe(nil), Hash)
RuboCop::Cop::Layout::ClassStructure::MSG = T.let(T.unsafe(nil), String)
RuboCop::Cop::Layout::ClassStructure::VISIBILITY_SCOPES = T.let(T.unsafe(nil), Array)
class RuboCop::Cop::Layout::ClosingHeredocIndentation < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::Heredoc)
def autocorrect(node); end
def on_heredoc(node); end
private
def argument_indentation_correct?(node); end
def closing_indentation(node); end
def find_node_used_heredoc_argument(node); end
def heredoc_closing(node); end
def heredoc_opening(node); end
def indent_level(source_line); end
def indented_end(node); end
def message(node); end
def opening_indentation(node); end
end
RuboCop::Cop::Layout::ClosingHeredocIndentation::MSG = T.let(T.unsafe(nil), String)
RuboCop::Cop::Layout::ClosingHeredocIndentation::MSG_ARG = T.let(T.unsafe(nil), String)
RuboCop::Cop::Layout::ClosingHeredocIndentation::SIMPLE_HEREDOC = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Layout::ClosingParenthesisIndentation < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::Alignment)
def autocorrect(node); end
def on_begin(node); end
def on_csend(node); end
def on_def(node); end
def on_defs(node); end
def on_send(node); end
private
def all_elements_aligned?(elements); end
def check(node, elements); end
def check_for_elements(node, elements); end
def check_for_no_elements(node); end
def correct_column_candidates(node, left_paren); end
def expected_column(left_paren, elements); end
def first_argument_line(elements); end
def indentation_width; end
def line_break_after_left_paren?(left_paren, elements); end
def message(correct_column, left_paren, right_paren); end
end
RuboCop::Cop::Layout::ClosingParenthesisIndentation::MSG_ALIGN = T.let(T.unsafe(nil), String)
RuboCop::Cop::Layout::ClosingParenthesisIndentation::MSG_INDENT = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Layout::CommentIndentation < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::Alignment)
def autocorrect(comment); end
def investigate(processed_source); end
private
def autocorrect_one(comment); end
def autocorrect_preceding_comments(comment); end
def check(comment); end
def correct_indentation(next_line); end
def less_indented?(line); end
def line_after_comment(comment); end
def message(column, correct_comment_indentation); end
def own_line_comment?(comment); end
def should_correct?(preceding_comment, reference_comment); end
def two_alternatives?(line); end
end
RuboCop::Cop::Layout::CommentIndentation::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Layout::ConditionPosition < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::RangeHelp)
def autocorrect(node); end
def on_if(node); end
def on_until(node); end
def on_while(node); end
private
def check(node); end
def message(node); end
end
RuboCop::Cop::Layout::ConditionPosition::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Layout::DefEndAlignment < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::ConfigurableEnforcedStyle)
include(::RuboCop::Cop::RangeHelp)
include(::RuboCop::Cop::EndKeywordAlignment)
def autocorrect(node); end
def on_def(node); end
def on_defs(node); end
def on_send(node); end
end
RuboCop::Cop::Layout::DefEndAlignment::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Layout::DotPosition < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::ConfigurableEnforcedStyle)
def autocorrect(node); end
def on_csend(node); end
def on_send(node); end
private
def ampersand_dot?(node); end
def correct_dot_position_style?(dot_line, selector_line); end
def line_between?(first_line, second_line); end
def message(node); end
def proper_dot_position?(node); end
def selector_range(node); end
end
class RuboCop::Cop::Layout::ElseAlignment < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::ConfigurableEnforcedStyle)
include(::RuboCop::Cop::RangeHelp)
include(::RuboCop::Cop::EndKeywordAlignment)
include(::RuboCop::Cop::Alignment)
include(::RuboCop::Cop::CheckAssignment)
def autocorrect(node); end
def on_case(node); end
def on_case_match(node); end
def on_if(node, base = _); end
def on_rescue(node); end
private
def base_for_method_definition(node); end
def base_range_of_if(node, base); end
def base_range_of_rescue(node); end
def check_alignment(base_range, else_range); end
def check_assignment(node, rhs); end
def check_nested(node, base); end
end
RuboCop::Cop::Layout::ElseAlignment::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Layout::EmptyComment < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::RangeHelp)
def autocorrect(node); end
def investigate(processed_source); end
private
def allow_border_comment?; end
def allow_margin_comment?; end
def comment_text(comment); end
def concat_consecutive_comments(comments); end
def current_token(comment); end
def empty_comment_only?(comment_text); end
def previous_token(node); end
end
RuboCop::Cop::Layout::EmptyComment::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Layout::EmptyLineAfterGuardClause < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::RangeHelp)
def autocorrect(node); end
def on_if(node); end
private
def contains_guard_clause?(node); end
def correct_style?(node); end
def heredoc?(node); end
def heredoc_line(node, heredoc_node); end
def last_argument_is_heredoc?(node); end
def last_heredoc_argument(node); end
def next_line_empty?(line); end
def next_line_rescue_or_ensure?(node); end
def next_sibling_empty_or_guard_clause?(node); end
def next_sibling_parent_empty_or_else?(node); end
def offense_location(node); end
end
RuboCop::Cop::Layout::EmptyLineAfterGuardClause::END_OF_HEREDOC_LINE = T.let(T.unsafe(nil), Integer)
RuboCop::Cop::Layout::EmptyLineAfterGuardClause::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Layout::EmptyLineAfterMagicComment < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::RangeHelp)
def autocorrect(token); end
def investigate(source); end
private
def last_magic_comment(source); end
end
RuboCop::Cop::Layout::EmptyLineAfterMagicComment::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Layout::EmptyLineBetweenDefs < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::RangeHelp)
def autocorrect(node); end
def check_defs(nodes); end
def on_begin(node); end
private
def autocorrect_insert_lines(newline_pos, count); end
def autocorrect_remove_lines(newline_pos, count); end
def blank_lines_between?(first_def_node, second_def_node); end
def blank_lines_count_between(first_def_node, second_def_node); end
def def_end(node); end
def def_node?(node); end
def def_start(node); end
def lines_between_defs(first_def_node, second_def_node); end
def maximum_empty_lines; end
def minimum_empty_lines; end
def multiple_blank_lines_groups?(first_def_node, second_def_node); end
def prev_node(node); end
def self.autocorrect_incompatible_with; end
end
RuboCop::Cop::Layout::EmptyLineBetweenDefs::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Layout::EmptyLines < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::RangeHelp)
def autocorrect(range); end
def investigate(processed_source); end
private
def each_extra_empty_line(lines); end
def exceeds_line_offset?(line_diff); end
def previous_and_current_lines_empty?(line); end
end
RuboCop::Cop::Layout::EmptyLines::LINE_OFFSET = T.let(T.unsafe(nil), Integer)
RuboCop::Cop::Layout::EmptyLines::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Layout::EmptyLinesAroundAccessModifier < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::ConfigurableEnforcedStyle)
include(::RuboCop::Cop::RangeHelp)
def initialize(config = _, options = _); end
def autocorrect(node); end
def on_block(node); end
def on_class(node); end
def on_module(node); end
def on_sclass(node); end
def on_send(node); end
private
def allowed_only_before_style?(node); end
def block_start?(line); end
def body_end?(line); end
def class_def?(line); end
def correct_next_line_if_denied_style(corrector, node, line); end
def empty_lines_around?(node); end
def message(node); end
def message_for_around_style(node); end
def message_for_only_before_style(node); end
def next_empty_line_range(node); end
def next_line_empty?(last_send_line); end
def previous_line_empty?(send_line); end
def previous_line_ignoring_comments(processed_source, send_line); end
end
RuboCop::Cop::Layout::EmptyLinesAroundAccessModifier::MSG_AFTER = T.let(T.unsafe(nil), String)
RuboCop::Cop::Layout::EmptyLinesAroundAccessModifier::MSG_AFTER_FOR_ONLY_BEFORE = T.let(T.unsafe(nil), String)
RuboCop::Cop::Layout::EmptyLinesAroundAccessModifier::MSG_BEFORE_AND_AFTER = T.let(T.unsafe(nil), String)
RuboCop::Cop::Layout::EmptyLinesAroundAccessModifier::MSG_BEFORE_FOR_ONLY_BEFORE = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Layout::EmptyLinesAroundArguments < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::RangeHelp)
def autocorrect(node); end
def on_csend(node); end
def on_send(node); end
private
def empty_lines(node); end
def extra_lines(node); end
def inner_lines(node); end
def line_numbers(node); end
def outer_lines(node); end
def processed_lines(node); end
end
RuboCop::Cop::Layout::EmptyLinesAroundArguments::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Layout::EmptyLinesAroundAttributeAccessor < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::RangeHelp)
def autocorrect(node); end
def on_send(node); end
private
def allow_alias?(node); end
def allow_alias_syntax?; end
def allowed_method?(name); end
def allowed_methods; end
def attribute_or_allowed_method?(node); end
def next_line_empty?(line); end
def next_line_node(node); end
def require_empty_line?(node); end
end
RuboCop::Cop::Layout::EmptyLinesAroundAttributeAccessor::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Layout::EmptyLinesAroundBeginBody < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::ConfigurableEnforcedStyle)
include(::RuboCop::Cop::RangeHelp)
include(::RuboCop::Cop::Layout::EmptyLinesAroundBody)
def autocorrect(node); end
def on_kwbegin(node); end
private
def style; end
end
RuboCop::Cop::Layout::EmptyLinesAroundBeginBody::KIND = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Layout::EmptyLinesAroundBlockBody < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::ConfigurableEnforcedStyle)
include(::RuboCop::Cop::RangeHelp)
include(::RuboCop::Cop::Layout::EmptyLinesAroundBody)
def autocorrect(node); end
def on_block(node); end
end
RuboCop::Cop::Layout::EmptyLinesAroundBlockBody::KIND = T.let(T.unsafe(nil), String)
module RuboCop::Cop::Layout::EmptyLinesAroundBody
include(::RuboCop::Cop::ConfigurableEnforcedStyle)
include(::RuboCop::Cop::RangeHelp)
extend(::RuboCop::AST::NodePattern::Macros)
def constant_definition?(node = _); end
def empty_line_required?(node = _); end
private
def check(node, body, adjusted_first_line: _); end
def check_beginning(style, first_line); end
def check_both(style, first_line, last_line); end
def check_deferred_empty_line(body); end
def check_empty_lines_except_namespace(body, first_line, last_line); end
def check_empty_lines_special(body, first_line, last_line); end
def check_ending(style, last_line); end
def check_line(style, line, msg); end
def check_source(style, line_no, desc); end
def deferred_message(node); end
def first_child_requires_empty_line?(body); end
def first_empty_line_required_child(body); end
def message(type, desc); end
def namespace?(body, with_one_child: _); end
def previous_line_ignoring_comments(send_line); end
def valid_body_style?(body); end
end
RuboCop::Cop::Layout::EmptyLinesAroundBody::MSG_DEFERRED = T.let(T.unsafe(nil), String)
RuboCop::Cop::Layout::EmptyLinesAroundBody::MSG_EXTRA = T.let(T.unsafe(nil), String)
RuboCop::Cop::Layout::EmptyLinesAroundBody::MSG_MISSING = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Layout::EmptyLinesAroundClassBody < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::ConfigurableEnforcedStyle)
include(::RuboCop::Cop::RangeHelp)
include(::RuboCop::Cop::Layout::EmptyLinesAroundBody)
def autocorrect(node); end
def on_class(node); end
def on_sclass(node); end
end
RuboCop::Cop::Layout::EmptyLinesAroundClassBody::KIND = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Layout::EmptyLinesAroundExceptionHandlingKeywords < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::ConfigurableEnforcedStyle)
include(::RuboCop::Cop::RangeHelp)
include(::RuboCop::Cop::Layout::EmptyLinesAroundBody)
def autocorrect(node); end
def on_def(node); end
def on_defs(node); end
def on_kwbegin(node); end
private
def check_body(node); end
def keyword_locations(node); end
def keyword_locations_in_ensure(node); end
def keyword_locations_in_rescue(node); end
def message(location, keyword); end
def style; end
end
RuboCop::Cop::Layout::EmptyLinesAroundExceptionHandlingKeywords::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Layout::EmptyLinesAroundMethodBody < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::ConfigurableEnforcedStyle)
include(::RuboCop::Cop::RangeHelp)
include(::RuboCop::Cop::Layout::EmptyLinesAroundBody)
def autocorrect(node); end
def on_def(node); end
def on_defs(node); end
private
def style; end
end
RuboCop::Cop::Layout::EmptyLinesAroundMethodBody::KIND = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Layout::EmptyLinesAroundModuleBody < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::ConfigurableEnforcedStyle)
include(::RuboCop::Cop::RangeHelp)
include(::RuboCop::Cop::Layout::EmptyLinesAroundBody)
def autocorrect(node); end
def on_module(node); end
end
RuboCop::Cop::Layout::EmptyLinesAroundModuleBody::KIND = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Layout::EndAlignment < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::CheckAssignment)
include(::RuboCop::Cop::ConfigurableEnforcedStyle)
include(::RuboCop::Cop::RangeHelp)
include(::RuboCop::Cop::EndKeywordAlignment)
def autocorrect(node); end
def on_case(node); end
def on_class(node); end
def on_if(node); end
def on_module(node); end
def on_until(node); end
def on_while(node); end
private
def alignment_node(node); end
def alignment_node_for_variable_style(node); end
def asgn_variable_align_with(outer_node, inner_node); end
def check_asgn_alignment(outer_node, inner_node); end
def check_assignment(node, rhs); end
def check_other_alignment(node); end
def start_line_range(node); end
end
class RuboCop::Cop::Layout::EndOfLine < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::ConfigurableEnforcedStyle)
include(::RuboCop::Cop::RangeHelp)
def investigate(processed_source); end
def offense_message(line); end
def unimportant_missing_cr?(index, last_line, line); end
private
def last_line(processed_source); end
end
RuboCop::Cop::Layout::EndOfLine::MSG_DETECTED = T.let(T.unsafe(nil), String)
RuboCop::Cop::Layout::EndOfLine::MSG_MISSING = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Layout::ExtraSpacing < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::PrecedingFollowingAlignment)
include(::RuboCop::Cop::RangeHelp)
def autocorrect(range); end
def investigate(processed_source); end
private
def align_column(asgn_token); end
def align_equal_sign(corrector, token, align_to); end
def align_equal_signs(range, corrector); end
def aligned_comments?(comment_token); end
def aligned_tok?(token); end
def aligned_with_next_comment?(index); end
def aligned_with_previous_comment?(index); end
def all_relevant_assignment_lines(line_number); end
def allow_for_trailing_comments?; end
def check_assignment(token); end
def check_other(token1, token2, ast); end
def check_tokens(ast, token1, token2); end
def comment_column(index); end
def extra_space_range(token1, token2); end
def force_equal_sign_alignment?; end
def ignored_range?(ast, start_pos); end
def ignored_ranges(ast); end
def self.autocorrect_incompatible_with; end
end
RuboCop::Cop::Layout::ExtraSpacing::MSG_UNALIGNED_ASGN = T.let(T.unsafe(nil), String)
RuboCop::Cop::Layout::ExtraSpacing::MSG_UNNECESSARY = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Layout::FirstArgumentIndentation < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::Alignment)
include(::RuboCop::Cop::ConfigurableEnforcedStyle)
include(::RuboCop::Cop::RangeHelp)
def autocorrect(node); end
def eligible_method_call?(node = _); end
def on_csend(node); end
def on_send(node); end
private
def base_indentation(node); end
def base_range(send_node, arg_node); end
def column_of(range); end
def comment_lines; end
def message(arg_node); end
def previous_code_line(line_number); end
def special_inner_call_indentation?(node); end
end
RuboCop::Cop::Layout::FirstArgumentIndentation::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Layout::FirstArrayElementIndentation < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::Alignment)
include(::RuboCop::Cop::ConfigurableEnforcedStyle)
include(::RuboCop::Cop::MultilineElementIndentation)
def autocorrect(node); end
def on_array(node); end
def on_csend(node); end
def on_send(node); end
private
def base_description(left_parenthesis); end
def brace_alignment_style; end
def check(array_node, left_parenthesis); end
def check_right_bracket(right_bracket, left_bracket, left_parenthesis); end
def message(base_description); end
def msg(left_parenthesis); end
end
RuboCop::Cop::Layout::FirstArrayElementIndentation::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Layout::FirstArrayElementLineBreak < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::FirstElementLineBreak)
def autocorrect(node); end
def on_array(node); end
private
def assignment_on_same_line?(node); end
end
RuboCop::Cop::Layout::FirstArrayElementLineBreak::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Layout::FirstHashElementIndentation < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::Alignment)
include(::RuboCop::Cop::ConfigurableEnforcedStyle)
include(::RuboCop::Cop::MultilineElementIndentation)
def autocorrect(node); end
def on_csend(node); end
def on_hash(node); end
def on_send(node); end
private
def base_description(left_parenthesis); end
def brace_alignment_style; end
def check(hash_node, left_parenthesis); end
def check_based_on_longest_key(hash_node, left_brace, left_parenthesis); end
def check_right_brace(right_brace, left_brace, left_parenthesis); end
def message(base_description); end
def separator_style?(first_pair); end
end
RuboCop::Cop::Layout::FirstHashElementIndentation::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Layout::FirstHashElementLineBreak < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::FirstElementLineBreak)
def autocorrect(node); end
def on_hash(node); end
end
RuboCop::Cop::Layout::FirstHashElementLineBreak::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Layout::FirstMethodArgumentLineBreak < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::FirstElementLineBreak)
def autocorrect(node); end
def on_csend(node); end
def on_send(node); end
def on_super(node); end
end
RuboCop::Cop::Layout::FirstMethodArgumentLineBreak::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Layout::FirstMethodParameterLineBreak < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::FirstElementLineBreak)
def autocorrect(node); end
def on_def(node); end
def on_defs(node); end
end
RuboCop::Cop::Layout::FirstMethodParameterLineBreak::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Layout::FirstParameterIndentation < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::Alignment)
include(::RuboCop::Cop::ConfigurableEnforcedStyle)
include(::RuboCop::Cop::MultilineElementIndentation)
def autocorrect(node); end
def on_def(node); end
def on_defs(node); end
private
def base_description(_); end
def brace_alignment_style; end
def check(def_node); end
def message(base_description); end
end
RuboCop::Cop::Layout::FirstParameterIndentation::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Layout::HashAlignment < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::HashAlignmentStyles)
include(::RuboCop::Cop::RangeHelp)
def autocorrect(node); end
def column_deltas; end
def column_deltas=(_); end
def offences_by; end
def offences_by=(_); end
def on_hash(node); end
def on_send(node); end
def on_super(node); end
def on_yield(node); end
private
def add_offences; end
def adjust(corrector, delta, range); end
def alignment_for(pair); end
def alignment_for_colons; end
def alignment_for_hash_rockets; end
def check_delta(delta, node:, alignment:); end
def check_pairs(node); end
def correct_key_value(delta, key, value, separator); end
def correct_no_value(key_delta, key); end
def correct_node(node, delta); end
def double_splat?(node); end
def good_alignment?(column_deltas); end
def ignore_hash_argument?(node); end
def new_alignment(key); end
def reset!; end
end
RuboCop::Cop::Layout::HashAlignment::MESSAGES = T.let(T.unsafe(nil), Hash)
class RuboCop::Cop::Layout::HeredocArgumentClosingParenthesis < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::RangeHelp)
def autocorrect(node); end
def on_send(node); end
private
def add_correct_closing_paren(node, corrector); end
def add_correct_external_trailing_comma(node, corrector); end
def external_trailing_comma?(node); end
def external_trailing_comma_offset_from_loc_end(node); end
def extract_heredoc(node); end
def extract_heredoc_argument(node); end
def fix_closing_parenthesis(node, corrector); end
def fix_external_trailing_comma(node, corrector); end
def heredoc_node?(node); end
def incorrect_parenthesis_removal_begin(node); end
def incorrect_parenthesis_removal_end(node); end
def internal_trailing_comma?(node); end
def internal_trailing_comma_offset_from_last_arg(node); end
def outermost_send_on_same_line(heredoc); end
def remove_incorrect_closing_paren(node, corrector); end
def remove_incorrect_external_trailing_comma(node, corrector); end
def remove_internal_trailing_comma(node, corrector); end
def safe_to_remove_line_containing_closing_paren?(node); end
def send_missing_closing_parens?(parent, child, heredoc); end
def single_line_send_with_heredoc_receiver?(node); end
def space?(pos); end
def self.autocorrect_incompatible_with; end
end
RuboCop::Cop::Layout::HeredocArgumentClosingParenthesis::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Layout::HeredocIndentation < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::Heredoc)
def autocorrect(node); end
def on_heredoc(node); end
private
def adjust_minus(corrector, node); end
def adjust_squiggly(corrector, node); end
def base_indent_level(node); end
def heredoc_body(node); end
def heredoc_end(node); end
def heredoc_indent_type(node); end
def indent_level(str); end
def indentation_width; end
def indented_body(node); end
def indented_end(node); end
def line_too_long?(node); end
def longest_line(lines); end
def max_line_length; end
def message(node); end
def type_message(indentation_width, current_indent_type); end
def unlimited_heredoc_length?; end
def width_message(indentation_width); end
end
RuboCop::Cop::Layout::HeredocIndentation::TYPE_MSG = T.let(T.unsafe(nil), String)
RuboCop::Cop::Layout::HeredocIndentation::WIDTH_MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Layout::IndentationConsistency < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::Alignment)
include(::RuboCop::Cop::ConfigurableEnforcedStyle)
def autocorrect(node); end
def on_begin(node); end
def on_kwbegin(node); end
private
def bare_access_modifier?(node); end
def base_column_for_normal_style(node); end
def check(node); end
def check_indented_internal_methods_style(node); end
def check_normal_style(node); end
end
RuboCop::Cop::Layout::IndentationConsistency::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Layout::IndentationStyle < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::Alignment)
include(::RuboCop::Cop::ConfigurableEnforcedStyle)
include(::RuboCop::Cop::RangeHelp)
def autocorrect(range); end
def investigate(processed_source); end
private
def autocorrect_lambda_for_spaces(range); end
def autocorrect_lambda_for_tabs(range); end
def find_offence(line); end
def in_string_literal?(ranges, tabs_range); end
def message(_node); end
def string_literal_ranges(ast); end
end
RuboCop::Cop::Layout::IndentationStyle::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Layout::IndentationWidth < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::ConfigurableEnforcedStyle)
include(::RuboCop::Cop::RangeHelp)
include(::RuboCop::Cop::EndKeywordAlignment)
include(::RuboCop::Cop::Alignment)
include(::RuboCop::Cop::CheckAssignment)
include(::RuboCop::Cop::IgnoredPattern)
def access_modifier?(node = _); end
def autocorrect(node); end
def on_block(node); end
def on_case(case_node); end
def on_class(node); end
def on_csend(node); end
def on_def(node); end
def on_defs(node); end
def on_ensure(node); end
def on_for(node); end
def on_if(node, base = _); end
def on_kwbegin(node); end
def on_module(node); end
def on_resbody(node); end
def on_rescue(node); end
def on_sclass(node); end
def on_send(node); end
def on_until(node, base = _); end
def on_while(node, base = _); end
private
def access_modifier_indentation_style; end
def check_assignment(node, rhs); end
def check_if(node, body, else_clause, base_loc); end
def check_indentation(base_loc, body_node, style = _); end
def check_members(base, members); end
def check_members_for_indented_internal_methods_style(members); end
def check_members_for_normal_style(base, members); end
def configured_indentation_width; end
def each_member(members); end
def indentation_consistency_style; end
def indentation_to_check?(base_loc, body_node); end
def indented_internal_methods_style?; end
def leftmost_modifier_of(node); end
def message(configured_indentation_width, indentation, name); end
def offending_range(body_node, indentation); end
def offense(body_node, indentation, style); end
def other_offense_in_same_range?(node); end
def select_check_member(member); end
def skip_check?(base_loc, body_node); end
def special_modifier?(node); end
def starts_with_access_modifier?(body_node); end
end
RuboCop::Cop::Layout::IndentationWidth::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Layout::InitialIndentation < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::RangeHelp)
def autocorrect(range); end
def investigate(_processed_source); end
private
def first_token; end
def space_before(token); end
end
RuboCop::Cop::Layout::InitialIndentation::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Layout::LeadingCommentSpace < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::RangeHelp)
def autocorrect(comment); end
def investigate(processed_source); end
private
def allow_doxygen_comment?; end
def allow_gemfile_ruby_comment?; end
def allowed_on_first_line?(comment); end
def doxygen_comment_style?(comment); end
def gemfile?; end
def gemfile_ruby_comment?(comment); end
def rackup_config_file?; end
def rackup_options?(comment); end
def ruby_comment_in_gemfile?(comment); end
def shebang?(comment); end
end
RuboCop::Cop::Layout::LeadingCommentSpace::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Layout::LeadingEmptyLines < ::RuboCop::Cop::Cop
def autocorrect(node); end
def investigate(processed_source); end
end
RuboCop::Cop::Layout::LeadingEmptyLines::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Layout::LineLength < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::CheckLineBreakable)
include(::RuboCop::Cop::ConfigurableMax)
include(::RuboCop::Cop::IgnoredPattern)
include(::RuboCop::Cop::RangeHelp)
include(::RuboCop::Cop::LineLengthHelp)
def autocorrect(range); end
def investigate(processed_source); end
def investigate_post_walk(processed_source); end
def on_array(node); end
def on_block(node); end
def on_hash(node); end
def on_potential_breakable_node(node); end
def on_send(node); end
private
def allow_heredoc?; end
def allowed_heredoc; end
def breakable_block_range(block_node); end
def breakable_range_after_semicolon(semicolon_token); end
def breakable_range_by_line_index; end
def check_directive_line(line, line_index); end
def check_for_breakable_block(block_node); end
def check_for_breakable_node(node); end
def check_for_breakable_semicolons(processed_source); end
def check_line(line, line_index); end
def check_uri_line(line, line_index); end
def excess_range(uri_range, line, line_index); end
def extract_heredocs(ast); end
def heredocs; end
def highlight_start(line); end
def ignored_line?(line, line_index); end
def line_in_heredoc?(line_number); end
def line_in_permitted_heredoc?(line_number); end
def max; end
def register_offense(loc, line, line_index); end
def shebang?(line, line_index); end
end
RuboCop::Cop::Layout::LineLength::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Layout::MultilineArrayBraceLayout < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::ConfigurableEnforcedStyle)
include(::RuboCop::Cop::MultilineLiteralBraceLayout)
def autocorrect(node); end
def on_array(node); end
end
RuboCop::Cop::Layout::MultilineArrayBraceLayout::ALWAYS_NEW_LINE_MESSAGE = T.let(T.unsafe(nil), String)
RuboCop::Cop::Layout::MultilineArrayBraceLayout::ALWAYS_SAME_LINE_MESSAGE = T.let(T.unsafe(nil), String)
RuboCop::Cop::Layout::MultilineArrayBraceLayout::NEW_LINE_MESSAGE = T.let(T.unsafe(nil), String)
RuboCop::Cop::Layout::MultilineArrayBraceLayout::SAME_LINE_MESSAGE = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Layout::MultilineArrayLineBreaks < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::MultilineElementLineBreaks)
def autocorrect(node); end
def on_array(node); end
end
RuboCop::Cop::Layout::MultilineArrayLineBreaks::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Layout::MultilineAssignmentLayout < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::CheckAssignment)
include(::RuboCop::Cop::ConfigurableEnforcedStyle)
include(::RuboCop::Cop::RangeHelp)
def autocorrect(node); end
def check_assignment(node, rhs); end
def check_by_enforced_style(node, rhs); end
def check_new_line_offense(node, rhs); end
def check_same_line_offense(node, rhs); end
private
def supported_types; end
end
RuboCop::Cop::Layout::MultilineAssignmentLayout::NEW_LINE_OFFENSE = T.let(T.unsafe(nil), String)
RuboCop::Cop::Layout::MultilineAssignmentLayout::SAME_LINE_OFFENSE = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Layout::MultilineBlockLayout < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::RangeHelp)
def autocorrect(node); end
def on_block(node); end
private
def add_offense_for_expression(node, expr, msg); end
def args_on_beginning_line?(node); end
def autocorrect_arguments(corrector, node); end
def autocorrect_body(corrector, node, block_body); end
def block_arg_string(node, args); end
def include_trailing_comma?(args); end
def line_break_necessary_in_args?(node); end
end
RuboCop::Cop::Layout::MultilineBlockLayout::ARG_MSG = T.let(T.unsafe(nil), String)
RuboCop::Cop::Layout::MultilineBlockLayout::MSG = T.let(T.unsafe(nil), String)
RuboCop::Cop::Layout::MultilineBlockLayout::PIPE_SIZE = T.let(T.unsafe(nil), Integer)
class RuboCop::Cop::Layout::MultilineHashBraceLayout < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::ConfigurableEnforcedStyle)
include(::RuboCop::Cop::MultilineLiteralBraceLayout)
def autocorrect(node); end
def on_hash(node); end
end
RuboCop::Cop::Layout::MultilineHashBraceLayout::ALWAYS_NEW_LINE_MESSAGE = T.let(T.unsafe(nil), String)
RuboCop::Cop::Layout::MultilineHashBraceLayout::ALWAYS_SAME_LINE_MESSAGE = T.let(T.unsafe(nil), String)
RuboCop::Cop::Layout::MultilineHashBraceLayout::NEW_LINE_MESSAGE = T.let(T.unsafe(nil), String)
RuboCop::Cop::Layout::MultilineHashBraceLayout::SAME_LINE_MESSAGE = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Layout::MultilineHashKeyLineBreaks < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::MultilineElementLineBreaks)
def autocorrect(node); end
def on_hash(node); end
private
def starts_with_curly_brace?(node); end
end
RuboCop::Cop::Layout::MultilineHashKeyLineBreaks::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Layout::MultilineMethodArgumentLineBreaks < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::MultilineElementLineBreaks)
def autocorrect(node); end
def on_send(node); end
end
RuboCop::Cop::Layout::MultilineMethodArgumentLineBreaks::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Layout::MultilineMethodCallBraceLayout < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::ConfigurableEnforcedStyle)
include(::RuboCop::Cop::MultilineLiteralBraceLayout)
def autocorrect(node); end
def on_send(node); end
private
def children(node); end
def ignored_literal?(node); end
def single_line_ignoring_receiver?(node); end
end
RuboCop::Cop::Layout::MultilineMethodCallBraceLayout::ALWAYS_NEW_LINE_MESSAGE = T.let(T.unsafe(nil), String)
RuboCop::Cop::Layout::MultilineMethodCallBraceLayout::ALWAYS_SAME_LINE_MESSAGE = T.let(T.unsafe(nil), String)
RuboCop::Cop::Layout::MultilineMethodCallBraceLayout::NEW_LINE_MESSAGE = T.let(T.unsafe(nil), String)
RuboCop::Cop::Layout::MultilineMethodCallBraceLayout::SAME_LINE_MESSAGE = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Layout::MultilineMethodCallIndentation < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::ConfigurableEnforcedStyle)
include(::RuboCop::Cop::Alignment)
include(::RuboCop::Cop::MultilineExpressionIndentation)
def autocorrect(node); end
def validate_config; end
private
def align_with_base_message(rhs); end
def alignment_base(node, rhs, given_style); end
def base_source; end
def extra_indentation(given_style); end
def message(node, lhs, rhs); end
def no_base_message(lhs, rhs, node); end
def offending_range(node, lhs, rhs, given_style); end
def operation_rhs(node); end
def operator_rhs?(node, receiver); end
def receiver_alignment_base(node); end
def relative_to_receiver_message(rhs); end
def relevant_node?(send_node); end
def semantic_alignment_base(node, rhs); end
def semantic_alignment_node(node); end
def should_align_with_base?; end
def should_indent_relative_to_receiver?; end
def syntactic_alignment_base(lhs, rhs); end
end
class RuboCop::Cop::Layout::MultilineMethodDefinitionBraceLayout < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::ConfigurableEnforcedStyle)
include(::RuboCop::Cop::MultilineLiteralBraceLayout)
def autocorrect(node); end
def on_def(node); end
def on_defs(node); end
end
RuboCop::Cop::Layout::MultilineMethodDefinitionBraceLayout::ALWAYS_NEW_LINE_MESSAGE = T.let(T.unsafe(nil), String)
RuboCop::Cop::Layout::MultilineMethodDefinitionBraceLayout::ALWAYS_SAME_LINE_MESSAGE = T.let(T.unsafe(nil), String)
RuboCop::Cop::Layout::MultilineMethodDefinitionBraceLayout::NEW_LINE_MESSAGE = T.let(T.unsafe(nil), String)
RuboCop::Cop::Layout::MultilineMethodDefinitionBraceLayout::SAME_LINE_MESSAGE = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Layout::MultilineOperationIndentation < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::ConfigurableEnforcedStyle)
include(::RuboCop::Cop::Alignment)
include(::RuboCop::Cop::MultilineExpressionIndentation)
def autocorrect(node); end
def on_and(node); end
def on_or(node); end
def validate_config; end
private
def check_and_or(node); end
def message(node, lhs, rhs); end
def offending_range(node, lhs, rhs, given_style); end
def relevant_node?(node); end
def should_align?(node, rhs, given_style); end
end
class RuboCop::Cop::Layout::ParameterAlignment < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::Alignment)
def autocorrect(node); end
def on_def(node); end
def on_defs(node); end
private
def base_column(node, args); end
def fixed_indentation?; end
def message(_node); end
def target_method_lineno(node); end
end
RuboCop::Cop::Layout::ParameterAlignment::ALIGN_PARAMS_MSG = T.let(T.unsafe(nil), String)
RuboCop::Cop::Layout::ParameterAlignment::FIXED_INDENT_MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Layout::RescueEnsureAlignment < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::RangeHelp)
def autocorrect(node); end
def investigate(processed_source); end
def on_ensure(node); end
def on_resbody(node); end
private
def access_modifier?(node); end
def access_modifier_node(node); end
def alignment_node(node); end
def alignment_source(node, starting_loc); end
def ancestor_node(node); end
def assignment_node(node); end
def check(node); end
def format_message(alignment_node, alignment_loc, kw_loc); end
def modifier?(node); end
def whitespace_range(node); end
end
RuboCop::Cop::Layout::RescueEnsureAlignment::ALTERNATIVE_ACCESS_MODIFIERS = T.let(T.unsafe(nil), Array)
RuboCop::Cop::Layout::RescueEnsureAlignment::ANCESTOR_TYPES = T.let(T.unsafe(nil), Array)
RuboCop::Cop::Layout::RescueEnsureAlignment::ANCESTOR_TYPES_WITH_ACCESS_MODIFIERS = T.let(T.unsafe(nil), Array)
RuboCop::Cop::Layout::RescueEnsureAlignment::MSG = T.let(T.unsafe(nil), String)
RuboCop::Cop::Layout::RescueEnsureAlignment::RUBY_2_5_ANCESTOR_TYPES = T.let(T.unsafe(nil), Array)
class RuboCop::Cop::Layout::SpaceAfterColon < ::RuboCop::Cop::Cop
def autocorrect(range); end
def on_kwoptarg(node); end
def on_pair(node); end
private
def followed_by_space?(colon); end
end
RuboCop::Cop::Layout::SpaceAfterColon::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Layout::SpaceAfterComma < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::SpaceAfterPunctuation)
def autocorrect(comma); end
def kind(token); end
def space_style_before_rcurly; end
end
class RuboCop::Cop::Layout::SpaceAfterMethodName < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::RangeHelp)
def autocorrect(pos_before_left_paren); end
def on_def(node); end
def on_defs(node); end
end
RuboCop::Cop::Layout::SpaceAfterMethodName::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Layout::SpaceAfterNot < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::RangeHelp)
def autocorrect(node); end
def on_send(node); end
def whitespace_after_operator?(node); end
end
RuboCop::Cop::Layout::SpaceAfterNot::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Layout::SpaceAfterSemicolon < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::SpaceAfterPunctuation)
def autocorrect(semicolon); end
def kind(token); end
def space_style_before_rcurly; end
end
class RuboCop::Cop::Layout::SpaceAroundBlockParameters < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::ConfigurableEnforcedStyle)
include(::RuboCop::Cop::RangeHelp)
def autocorrect(target); end
def on_block(node); end
private
def check_after_closing_pipe(arguments); end
def check_arg(arg); end
def check_closing_pipe_space(args, closing_pipe); end
def check_each_arg(args); end
def check_inside_pipes(arguments); end
def check_no_space(space_begin_pos, space_end_pos, msg); end
def check_no_space_style_inside_pipes(args, opening_pipe, closing_pipe); end
def check_opening_pipe_space(args, opening_pipe); end
def check_space(space_begin_pos, space_end_pos, range, msg, node = _); end
def check_space_style_inside_pipes(args, opening_pipe, closing_pipe); end
def last_end_pos_inside_pipes(pos); end
def pipes(arguments); end
def pipes?(arguments); end
def style_parameter_name; end
end
class RuboCop::Cop::Layout::SpaceAroundEqualsInParameterDefault < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::RangeHelp)
include(::RuboCop::Cop::SurroundingSpace)
include(::RuboCop::Cop::ConfigurableEnforcedStyle)
def autocorrect(range); end
def on_optarg(node); end
private
def check_optarg(arg, equals, value); end
def incorrect_style_detected(arg, value, space_on_both_sides, no_surrounding_space); end
def message(_node); end
def no_surrounding_space?(arg, equals); end
def space_on_both_sides?(arg, equals); end
end
RuboCop::Cop::Layout::SpaceAroundEqualsInParameterDefault::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Layout::SpaceAroundKeyword < ::RuboCop::Cop::Cop
def autocorrect(range); end
def on_and(node); end
def on_block(node); end
def on_break(node); end
def on_case(node); end
def on_defined?(node); end
def on_ensure(node); end
def on_for(node); end
def on_if(node); end
def on_kwbegin(node); end
def on_next(node); end
def on_or(node); end
def on_postexe(node); end
def on_preexe(node); end
def on_resbody(node); end
def on_rescue(node); end
def on_return(node); end
def on_send(node); end
def on_super(node); end
def on_until(node); end
def on_when(node); end
def on_while(node); end
def on_yield(node); end
def on_zsuper(node); end
private
def accept_left_parenthesis?(range); end
def accept_left_square_bracket?(range); end
def accept_namespace_operator?(range); end
def accepted_opening_delimiter?(range, char); end
def check(node, locations, begin_keyword = _); end
def check_begin(node, range, begin_keyword); end
def check_end(node, range, begin_keyword); end
def check_keyword(node, range); end
def do?(node); end
def namespace_operator?(range, pos); end
def offense(range, msg); end
def preceded_by_operator?(node, _range); end
def safe_navigation_call?(range, pos); end
def space_after_missing?(range); end
def space_before_missing?(range); end
end
RuboCop::Cop::Layout::SpaceAroundKeyword::ACCEPT_LEFT_PAREN = T.let(T.unsafe(nil), Array)
RuboCop::Cop::Layout::SpaceAroundKeyword::ACCEPT_LEFT_SQUARE_BRACKET = T.let(T.unsafe(nil), Array)
RuboCop::Cop::Layout::SpaceAroundKeyword::ACCEPT_NAMESPACE_OPERATOR = T.let(T.unsafe(nil), String)
RuboCop::Cop::Layout::SpaceAroundKeyword::DO = T.let(T.unsafe(nil), String)
RuboCop::Cop::Layout::SpaceAroundKeyword::MSG_AFTER = T.let(T.unsafe(nil), String)
RuboCop::Cop::Layout::SpaceAroundKeyword::MSG_BEFORE = T.let(T.unsafe(nil), String)
RuboCop::Cop::Layout::SpaceAroundKeyword::NAMESPACE_OPERATOR = T.let(T.unsafe(nil), String)
RuboCop::Cop::Layout::SpaceAroundKeyword::SAFE_NAVIGATION = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Layout::SpaceAroundMethodCallOperator < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::RangeHelp)
include(::RuboCop::Cop::SurroundingSpace)
def autocorrect(node); end
def on_const(node); end
def on_csend(node); end
def on_send(node); end
private
def check_and_add_offense(node, add_left_offense = _); end
def dot_or_safe_navigation_operator?(node); end
def left_token_for_auto_correction(node, operator); end
def next_token(current_token); end
def operator_token(node); end
def previous_token(current_token); end
def right_token_for_auto_correction(operator); end
def valid_left_token?(left, operator); end
def valid_right_token?(right, operator); end
end
RuboCop::Cop::Layout::SpaceAroundMethodCallOperator::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Layout::SpaceAroundOperators < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::PrecedingFollowingAlignment)
include(::RuboCop::Cop::RangeHelp)
include(::RuboCop::Cop::RationalLiteral)
def autocorrect(range); end
def on_and(node); end
def on_and_asgn(node); end
def on_assignment(node); end
def on_binary(node); end
def on_casgn(node); end
def on_class(node); end
def on_cvasgn(node); end
def on_gvasgn(node); end
def on_if(node); end
def on_ivasgn(node); end
def on_lvasgn(node); end
def on_masgn(node); end
def on_op_asgn(node); end
def on_or(node); end
def on_or_asgn(node); end
def on_pair(node); end
def on_resbody(node); end
def on_send(node); end
def on_special_asgn(node); end
private
def align_hash_cop_config; end
def check_operator(type, operator, right_operand); end
def enclose_operator_with_space(corrector, range); end
def excess_leading_space?(type, operator, with_space); end
def excess_trailing_space?(right_operand, with_space); end
def force_equal_sign_alignment?; end
def hash_table_style?; end
def offense(type, operator, with_space, right_operand); end
def offense_message(type, operator, with_space, right_operand); end
def operator_with_regular_syntax?(send_node); end
def regular_operator?(send_node); end
def should_not_have_surrounding_space?(operator); end
def space_around_exponent_operator?; end
def self.autocorrect_incompatible_with; end
end
RuboCop::Cop::Layout::SpaceAroundOperators::EXCESSIVE_SPACE = T.let(T.unsafe(nil), String)
RuboCop::Cop::Layout::SpaceAroundOperators::IRREGULAR_METHODS = T.let(T.unsafe(nil), Array)
class RuboCop::Cop::Layout::SpaceBeforeBlockBraces < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::ConfigurableEnforcedStyle)
include(::RuboCop::Cop::RangeHelp)
def autocorrect(range); end
def on_block(node); end
private
def block_delimiters_style; end
def check_empty(left_brace, space_plus_brace, used_style); end
def check_non_empty(left_brace, space_plus_brace, used_style); end
def conflict_with_block_delimiters?(node); end
def empty_braces?(loc); end
def space_detected(left_brace, space_plus_brace); end
def space_missing(left_brace); end
def style_for_empty_braces; end
def self.autocorrect_incompatible_with; end
end
RuboCop::Cop::Layout::SpaceBeforeBlockBraces::DETECTED_MSG = T.let(T.unsafe(nil), String)
RuboCop::Cop::Layout::SpaceBeforeBlockBraces::MISSING_MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Layout::SpaceBeforeComma < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::RangeHelp)
include(::RuboCop::Cop::SpaceBeforePunctuation)
def autocorrect(space); end
def kind(token); end
end
class RuboCop::Cop::Layout::SpaceBeforeComment < ::RuboCop::Cop::Cop
def autocorrect(range); end
def investigate(processed_source); end
end
RuboCop::Cop::Layout::SpaceBeforeComment::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Layout::SpaceBeforeFirstArg < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::PrecedingFollowingAlignment)
include(::RuboCop::Cop::RangeHelp)
def autocorrect(range); end
def on_csend(node); end
def on_send(node); end
private
def expect_params_after_method_name?(node); end
def no_space_between_method_name_and_first_argument?(node); end
def regular_method_call_with_arguments?(node); end
end
RuboCop::Cop::Layout::SpaceBeforeFirstArg::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Layout::SpaceBeforeSemicolon < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::RangeHelp)
include(::RuboCop::Cop::SpaceBeforePunctuation)
def autocorrect(space); end
def kind(token); end
end
class RuboCop::Cop::Layout::SpaceInLambdaLiteral < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::ConfigurableEnforcedStyle)
include(::RuboCop::Cop::RangeHelp)
def autocorrect(lambda_node); end
def on_send(node); end
private
def arrow_lambda_with_args?(node); end
def range_of_offense(node); end
def space_after_arrow(lambda_node); end
def space_after_arrow?(lambda_node); end
end
RuboCop::Cop::Layout::SpaceInLambdaLiteral::MSG_REQUIRE_NO_SPACE = T.let(T.unsafe(nil), String)
RuboCop::Cop::Layout::SpaceInLambdaLiteral::MSG_REQUIRE_SPACE = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Layout::SpaceInsideArrayLiteralBrackets < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::RangeHelp)
include(::RuboCop::Cop::SurroundingSpace)
include(::RuboCop::Cop::ConfigurableEnforcedStyle)
def autocorrect(node); end
def on_array(node); end
private
def array_brackets(node); end
def compact(corrector, bracket, side); end
def compact_corrections(corrector, node, left, right); end
def compact_offense(node, token, side: _); end
def compact_offenses(node, left, right, start_ok, end_ok); end
def empty_config; end
def end_has_own_line?(token); end
def index_for(node, token); end
def issue_offenses(node, left, right, start_ok, end_ok); end
def left_array_bracket(node); end
def line_and_column_for(token); end
def multi_dimensional_array?(node, token, side: _); end
def next_to_bracket?(token, side: _); end
def next_to_comment?(node, token); end
def next_to_newline?(node, token); end
def qualifies_for_compact?(node, token, side: _); end
def right_array_bracket(node); end
end
RuboCop::Cop::Layout::SpaceInsideArrayLiteralBrackets::EMPTY_MSG = T.let(T.unsafe(nil), String)
RuboCop::Cop::Layout::SpaceInsideArrayLiteralBrackets::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Layout::SpaceInsideArrayPercentLiteral < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::RangeHelp)
include(::RuboCop::Cop::MatchRange)
include(::RuboCop::Cop::PercentLiteral)
def autocorrect(node); end
def on_array(node); end
def on_percent_literal(node); end
private
def each_unnecessary_space_match(node, &blk); end
end
RuboCop::Cop::Layout::SpaceInsideArrayPercentLiteral::MSG = T.let(T.unsafe(nil), String)
RuboCop::Cop::Layout::SpaceInsideArrayPercentLiteral::MULTIPLE_SPACES_BETWEEN_ITEMS_REGEX = T.let(T.unsafe(nil), Regexp)
class RuboCop::Cop::Layout::SpaceInsideBlockBraces < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::ConfigurableEnforcedStyle)
include(::RuboCop::Cop::RangeHelp)
include(::RuboCop::Cop::SurroundingSpace)
def autocorrect(range); end
def on_block(node); end
private
def adjacent_braces(left_brace, right_brace); end
def aligned_braces?(left_brace, right_brace); end
def braces_with_contents_inside(node, inner); end
def check_inside(node, left_brace, right_brace); end
def check_left_brace(inner, left_brace, args_delimiter); end
def check_right_brace(inner, left_brace, right_brace, single_line); end
def multiline_block?(left_brace, right_brace); end
def no_space(begin_pos, end_pos, msg); end
def no_space_inside_left_brace(left_brace, args_delimiter); end
def offense(begin_pos, end_pos, msg, &block); end
def pipe?(args_delimiter); end
def space(begin_pos, end_pos, msg); end
def space_inside_left_brace(left_brace, args_delimiter); end
def space_inside_right_brace(right_brace); end
def style_for_empty_braces; end
end
class RuboCop::Cop::Layout::SpaceInsideHashLiteralBraces < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::RangeHelp)
include(::RuboCop::Cop::SurroundingSpace)
include(::RuboCop::Cop::ConfigurableEnforcedStyle)
def autocorrect(range); end
def on_hash(node); end
private
def ambiguous_or_unexpected_style_detected(style, is_match); end
def check(token1, token2); end
def expect_space?(token1, token2); end
def hash_literal_with_braces(node); end
def incorrect_style_detected(token1, token2, expect_space, is_empty_braces); end
def message(brace, is_empty_braces, expect_space); end
def offense?(token1, expect_space); end
def range_of_space_to_the_left(range); end
def range_of_space_to_the_right(range); end
def space_range(token_range); end
end
RuboCop::Cop::Layout::SpaceInsideHashLiteralBraces::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Layout::SpaceInsideParens < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::RangeHelp)
include(::RuboCop::Cop::SurroundingSpace)
include(::RuboCop::Cop::ConfigurableEnforcedStyle)
def autocorrect(range); end
def investigate(processed_source); end
private
def can_be_ignored?(token1, token2); end
def each_extraneous_space(tokens); end
def each_missing_space(tokens); end
def parens?(token1, token2); end
def same_line?(token1, token2); end
end
RuboCop::Cop::Layout::SpaceInsideParens::MSG = T.let(T.unsafe(nil), String)
RuboCop::Cop::Layout::SpaceInsideParens::MSG_SPACE = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Layout::SpaceInsidePercentLiteralDelimiters < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::RangeHelp)
include(::RuboCop::Cop::MatchRange)
include(::RuboCop::Cop::PercentLiteral)
def autocorrect(node); end
def on_array(node); end
def on_percent_literal(node); end
def on_xstr(node); end
private
def add_offenses_for_unnecessary_spaces(node); end
def regex_matches(node, &blk); end
end
RuboCop::Cop::Layout::SpaceInsidePercentLiteralDelimiters::BEGIN_REGEX = T.let(T.unsafe(nil), Regexp)
RuboCop::Cop::Layout::SpaceInsidePercentLiteralDelimiters::END_REGEX = T.let(T.unsafe(nil), Regexp)
RuboCop::Cop::Layout::SpaceInsidePercentLiteralDelimiters::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Layout::SpaceInsideRangeLiteral < ::RuboCop::Cop::Cop
def autocorrect(node); end
def on_erange(node); end
def on_irange(node); end
private
def check(node); end
end
RuboCop::Cop::Layout::SpaceInsideRangeLiteral::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Layout::SpaceInsideReferenceBrackets < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::RangeHelp)
include(::RuboCop::Cop::SurroundingSpace)
include(::RuboCop::Cop::ConfigurableEnforcedStyle)
def autocorrect(node); end
def on_send(node); end
private
def bracket_method?(node); end
def closing_bracket(tokens, opening_bracket); end
def empty_config; end
def left_ref_bracket(node, tokens); end
def previous_token(current_token); end
def reference_brackets(node); end
end
RuboCop::Cop::Layout::SpaceInsideReferenceBrackets::BRACKET_METHODS = T.let(T.unsafe(nil), Array)
RuboCop::Cop::Layout::SpaceInsideReferenceBrackets::EMPTY_MSG = T.let(T.unsafe(nil), String)
RuboCop::Cop::Layout::SpaceInsideReferenceBrackets::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Layout::SpaceInsideStringInterpolation < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::Interpolation)
include(::RuboCop::Cop::RangeHelp)
include(::RuboCop::Cop::SurroundingSpace)
include(::RuboCop::Cop::ConfigurableEnforcedStyle)
def autocorrect(begin_node); end
def on_interpolation(begin_node); end
private
def delimiters(begin_node); end
end
RuboCop::Cop::Layout::SpaceInsideStringInterpolation::NO_SPACE_MSG = T.let(T.unsafe(nil), String)
RuboCop::Cop::Layout::SpaceInsideStringInterpolation::SPACE_MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Layout::TrailingEmptyLines < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::ConfigurableEnforcedStyle)
include(::RuboCop::Cop::RangeHelp)
def autocorrect(range); end
def investigate(processed_source); end
private
def ends_in_end?(processed_source); end
def message(wanted_blank_lines, blank_lines); end
def offense_detected(buffer, wanted_blank_lines, blank_lines, whitespace_at_end); end
end
class RuboCop::Cop::Layout::TrailingWhitespace < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::RangeHelp)
def autocorrect(range); end
def investigate(processed_source); end
private
def extract_heredoc_ranges(ast); end
def inside_heredoc?(heredoc_ranges, line_number); end
def skip_heredoc?; end
end
RuboCop::Cop::Layout::TrailingWhitespace::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::LineBreakCorrector
extend(::RuboCop::Cop::Alignment)
extend(::RuboCop::Cop::TrailingBody)
extend(::RuboCop::PathUtil)
extend(::RuboCop::Cop::Util)
def self.break_line_before(range:, node:, corrector:, configured_width:, indent_steps: _); end
def self.correct_trailing_body(configured_width:, corrector:, node:, processed_source:); end
def self.move_comment(eol_comment:, node:, corrector:); end
def self.processed_source; end
end
module RuboCop::Cop::LineLengthHelp
private
def allow_uri?; end
def allowed_uri_position?(line, uri_range); end
def directive_on_source_line?(line_index); end
def find_excessive_uri_range(line); end
def ignore_cop_directives?; end
def indentation_difference(line); end
def line_length(line); end
def line_length_without_directive(line); end
def match_uris(string); end
def tab_indentation_width; end
def uri_regexp; end
def valid_uri?(uri_ish_string); end
end
module RuboCop::Cop::Lint
end
class RuboCop::Cop::Lint::AmbiguousBlockAssociation < ::RuboCop::Cop::Cop
def on_csend(node); end
def on_send(node); end
private
def allowed_method?(node); end
def ambiguous_block_association?(send_node); end
def message(send_node); end
end
RuboCop::Cop::Lint::AmbiguousBlockAssociation::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Lint::AmbiguousOperator < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::ParserDiagnostic)
def autocorrect(node); end
private
def alternative_message(diagnostic); end
def find_offense_node_by(diagnostic); end
def offense_node(node); end
def offense_position?(node, diagnostic); end
def relevant_diagnostic?(diagnostic); end
def unary_operator?(node, diagnostic); end
end
RuboCop::Cop::Lint::AmbiguousOperator::AMBIGUITIES = T.let(T.unsafe(nil), Hash)
RuboCop::Cop::Lint::AmbiguousOperator::MSG_FORMAT = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Lint::AmbiguousRegexpLiteral < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::ParserDiagnostic)
def autocorrect(node); end
private
def alternative_message(_diagnostic); end
def find_offense_node_by(diagnostic); end
def relevant_diagnostic?(diagnostic); end
end
RuboCop::Cop::Lint::AmbiguousRegexpLiteral::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Lint::AssignmentInCondition < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::SafeAssignment)
def on_if(node); end
def on_until(node); end
def on_while(node); end
private
def allowed_construct?(asgn_node); end
def conditional_assignment?(asgn_node); end
def message(_node); end
def skip_children?(asgn_node); end
def traverse_node(node, types, &block); end
end
RuboCop::Cop::Lint::AssignmentInCondition::ASGN_TYPES = T.let(T.unsafe(nil), Array)
RuboCop::Cop::Lint::AssignmentInCondition::MSG_WITHOUT_SAFE_ASSIGNMENT_ALLOWED = T.let(T.unsafe(nil), String)
RuboCop::Cop::Lint::AssignmentInCondition::MSG_WITH_SAFE_ASSIGNMENT_ALLOWED = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Lint::BigDecimalNew < ::RuboCop::Cop::Cop
def autocorrect(node); end
def big_decimal_new(node = _); end
def on_send(node); end
end
RuboCop::Cop::Lint::BigDecimalNew::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Lint::BooleanSymbol < ::RuboCop::Cop::Cop
def autocorrect(node); end
def boolean_symbol?(node = _); end
def on_sym(node); end
end
RuboCop::Cop::Lint::BooleanSymbol::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Lint::CircularArgumentReference < ::RuboCop::Cop::Cop
def on_kwoptarg(node); end
def on_optarg(node); end
private
def check_for_circular_argument_references(arg_name, arg_value); end
end
RuboCop::Cop::Lint::CircularArgumentReference::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Lint::Debugger < ::RuboCop::Cop::Cop
def binding_irb_call?(node = _); end
def debugger_call?(node = _); end
def kernel?(node = _); end
def on_send(node); end
private
def binding_irb?(node); end
def message(node); end
end
RuboCop::Cop::Lint::Debugger::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Lint::DeprecatedClassMethods < ::RuboCop::Cop::Cop
def autocorrect(node); end
def on_send(node); end
private
def check(node); end
def deprecated_method(data); end
def method_call(class_constant, method); end
def replacement_method(data); end
end
RuboCop::Cop::Lint::DeprecatedClassMethods::DEPRECATED_METHODS_OBJECT = T.let(T.unsafe(nil), Array)
class RuboCop::Cop::Lint::DeprecatedClassMethods::DeprecatedClassMethod
include(::RuboCop::AST::Sexp)
def initialize(deprecated:, replacement:, class_constant: _); end
def class_constant; end
def class_nodes; end
def deprecated_method; end
def replacement_method; end
end
RuboCop::Cop::Lint::DeprecatedClassMethods::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Lint::DeprecatedOpenSSLConstant < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::RangeHelp)
def algorithm_const(node = _); end
def autocorrect(node); end
def on_send(node); end
private
def algorithm_name(node); end
def build_cipher_arguments(node, algorithm_name); end
def correction_range(node); end
def message(node); end
def openssl_class(node); end
def replacement_args(node); end
def sanitize_arguments(arguments); end
end
RuboCop::Cop::Lint::DeprecatedOpenSSLConstant::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Lint::DisjunctiveAssignmentInConstructor < ::RuboCop::Cop::Cop
def on_def(node); end
private
def check(node); end
def check_body(body); end
def check_body_lines(lines); end
def check_disjunctive_assignment(node); end
end
RuboCop::Cop::Lint::DisjunctiveAssignmentInConstructor::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Lint::DuplicateCaseCondition < ::RuboCop::Cop::Cop
def on_case(case_node); end
private
def repeated_condition?(previous, condition); end
end
RuboCop::Cop::Lint::DuplicateCaseCondition::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Lint::DuplicateHashKey < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::Duplication)
def on_hash(node); end
end
RuboCop::Cop::Lint::DuplicateHashKey::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Lint::DuplicateMethods < ::RuboCop::Cop::Cop
def initialize(config = _, options = _); end
def alias_method?(node = _); end
def method_alias?(node = _); end
def on_alias(node); end
def on_def(node); end
def on_defs(node); end
def on_send(node); end
def sym_name(node = _); end
private
def check_const_receiver(node, name, const_name); end
def check_self_receiver(node, name); end
def found_attr(node, args, readable: _, writable: _); end
def found_instance_method(node, name); end
def found_method(node, method_name); end
def lookup_constant(node, const_name); end
def message_for_dup(node, method_name); end
def on_attr(node, attr_name, args); end
def possible_dsl?(node); end
def qualified_name(enclosing, namespace, mod_name); end
def source_location(node); end
end
RuboCop::Cop::Lint::DuplicateMethods::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Lint::EachWithObjectArgument < ::RuboCop::Cop::Cop
def each_with_object?(node = _); end
def on_csend(node); end
def on_send(node); end
end
RuboCop::Cop::Lint::EachWithObjectArgument::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Lint::ElseLayout < ::RuboCop::Cop::Cop
def on_if(node); end
private
def check(node); end
def check_else(node); end
end
RuboCop::Cop::Lint::ElseLayout::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Lint::EmptyEnsure < ::RuboCop::Cop::Cop
def autocorrect(node); end
def on_ensure(node); end
end
RuboCop::Cop::Lint::EmptyEnsure::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Lint::EmptyExpression < ::RuboCop::Cop::Cop
def on_begin(node); end
private
def empty_expression?(begin_node); end
end
RuboCop::Cop::Lint::EmptyExpression::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Lint::EmptyInterpolation < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::Interpolation)
def autocorrect(node); end
def on_interpolation(begin_node); end
end
RuboCop::Cop::Lint::EmptyInterpolation::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Lint::EmptyWhen < ::RuboCop::Cop::Cop
def on_case(node); end
end
RuboCop::Cop::Lint::EmptyWhen::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Lint::EnsureReturn < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::RangeHelp)
def autocorrect(node); end
def on_ensure(node); end
end
RuboCop::Cop::Lint::EnsureReturn::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Lint::ErbNewArguments < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::RangeHelp)
extend(::RuboCop::Cop::TargetRubyVersion)
def autocorrect(node); end
def erb_new_with_non_keyword_arguments(node = _); end
def on_send(node); end
private
def arguments_range(node); end
def build_kwargs(node); end
def correct_arguments?(arguments); end
def override_by_legacy_args(kwargs, node); end
end
RuboCop::Cop::Lint::ErbNewArguments::MESSAGES = T.let(T.unsafe(nil), Array)
class RuboCop::Cop::Lint::FlipFlop < ::RuboCop::Cop::Cop
def on_eflipflop(node); end
def on_iflipflop(node); end
end
RuboCop::Cop::Lint::FlipFlop::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Lint::FloatOutOfRange < ::RuboCop::Cop::Cop
def on_float(node); end
end
RuboCop::Cop::Lint::FloatOutOfRange::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Lint::FormatParameterMismatch < ::RuboCop::Cop::Cop
def called_on_string?(node = _); end
def on_send(node); end
private
def count_format_matches(node); end
def count_matches(node); end
def count_percent_matches(node); end
def countable_format?(node); end
def countable_percent?(node); end
def expected_fields_count(node); end
def format?(node); end
def format_method?(name, node); end
def format_string?(node); end
def heredoc?(node); end
def invalid_format_string?(node); end
def matched_arguments_count?(expected, passed); end
def message(node); end
def method_with_format_args?(node); end
def offending_node?(node); end
def percent?(node); end
def splat_args?(node); end
def sprintf?(node); end
end
RuboCop::Cop::Lint::FormatParameterMismatch::KERNEL = T.let(T.unsafe(nil), String)
RuboCop::Cop::Lint::FormatParameterMismatch::MSG = T.let(T.unsafe(nil), String)
RuboCop::Cop::Lint::FormatParameterMismatch::MSG_INVALID = T.let(T.unsafe(nil), String)
RuboCop::Cop::Lint::FormatParameterMismatch::SHOVEL = T.let(T.unsafe(nil), String)
RuboCop::Cop::Lint::FormatParameterMismatch::STRING_TYPES = T.let(T.unsafe(nil), Array)
class RuboCop::Cop::Lint::HeredocMethodCallPosition < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::RangeHelp)
def autocorrect(node); end
def on_csend(node); end
def on_send(node); end
private
def all_on_same_line?(nodes); end
def call_after_heredoc_range(heredoc); end
def call_end_pos(node); end
def call_line_range(node); end
def call_range_to_safely_reposition(node, heredoc); end
def calls_on_multiple_lines?(node, _heredoc); end
def correctly_positioned?(node, heredoc); end
def heredoc_begin_line_range(heredoc); end
def heredoc_end_pos(heredoc); end
def heredoc_node?(node); end
def heredoc_node_descendent_receiver(node); end
def send_node?(node); end
def trailing_comma?(call_source, call_line_source); end
end
RuboCop::Cop::Lint::HeredocMethodCallPosition::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Lint::ImplicitStringConcatenation < ::RuboCop::Cop::Cop
def on_dstr(node); end
private
def display_str(node); end
def each_bad_cons(node); end
def ending_delimiter(str); end
def str_content(node); end
def string_literal?(node); end
def string_literals?(node1, node2); end
end
RuboCop::Cop::Lint::ImplicitStringConcatenation::FOR_ARRAY = T.let(T.unsafe(nil), String)
RuboCop::Cop::Lint::ImplicitStringConcatenation::FOR_METHOD = T.let(T.unsafe(nil), String)
RuboCop::Cop::Lint::ImplicitStringConcatenation::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Lint::IneffectiveAccessModifier < ::RuboCop::Cop::Cop
def on_class(node); end
def on_module(node); end
def private_class_methods(node0); end
private
def access_modifier?(node); end
def check_node(node); end
def correct_visibility?(node, modifier, ignored_methods); end
def format_message(modifier); end
def ineffective_modifier(node, ignored_methods, modifier = _, &block); end
def private_class_method_names(node); end
end
RuboCop::Cop::Lint::IneffectiveAccessModifier::ALTERNATIVE_PRIVATE = T.let(T.unsafe(nil), String)
RuboCop::Cop::Lint::IneffectiveAccessModifier::ALTERNATIVE_PROTECTED = T.let(T.unsafe(nil), String)
RuboCop::Cop::Lint::IneffectiveAccessModifier::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Lint::InheritException < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::ConfigurableEnforcedStyle)
def autocorrect(node); end
def class_new_call?(node = _); end
def on_class(node); end
def on_send(node); end
private
def illegal_class_name?(class_node); end
def message(node); end
def preferred_base_class; end
end
RuboCop::Cop::Lint::InheritException::ILLEGAL_CLASSES = T.let(T.unsafe(nil), Array)
RuboCop::Cop::Lint::InheritException::MSG = T.let(T.unsafe(nil), String)
RuboCop::Cop::Lint::InheritException::PREFERRED_BASE_CLASS = T.let(T.unsafe(nil), Hash)
class RuboCop::Cop::Lint::InterpolationCheck < ::RuboCop::Cop::Cop
def heredoc?(node); end
def on_str(node); end
end
RuboCop::Cop::Lint::InterpolationCheck::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Lint::LiteralAsCondition < ::RuboCop::Cop::Cop
def message(node); end
def on_case(case_node); end
def on_if(node); end
def on_send(node); end
def on_until(node); end
def on_until_post(node); end
def on_while(node); end
def on_while_post(node); end
private
def basic_literal?(node); end
def check_case(case_node); end
def check_for_literal(node); end
def check_node(node); end
def condition(node); end
def handle_node(node); end
def primitive_array?(node); end
end
RuboCop::Cop::Lint::LiteralAsCondition::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Lint::LiteralInInterpolation < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::Interpolation)
include(::RuboCop::Cop::RangeHelp)
include(::RuboCop::Cop::PercentLiteral)
def autocorrect(node); end
def on_interpolation(begin_node); end
private
def autocorrected_value(node); end
def autocorrected_value_for_array(node); end
def autocorrected_value_for_string(node); end
def autocorrected_value_for_symbol(node); end
def prints_as_self?(node); end
def special_keyword?(node); end
end
RuboCop::Cop::Lint::LiteralInInterpolation::COMPOSITE = T.let(T.unsafe(nil), Array)
RuboCop::Cop::Lint::LiteralInInterpolation::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Lint::Loop < ::RuboCop::Cop::Cop
def on_until_post(node); end
def on_while_post(node); end
private
def register_offense(node); end
end
RuboCop::Cop::Lint::Loop::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Lint::MissingCopEnableDirective < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::RangeHelp)
def investigate(processed_source); end
private
def message(max_range:, cop:); end
end
RuboCop::Cop::Lint::MissingCopEnableDirective::MSG = T.let(T.unsafe(nil), String)
RuboCop::Cop::Lint::MissingCopEnableDirective::MSG_BOUND = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Lint::MixedRegexpCaptureTypes < ::RuboCop::Cop::Cop
def on_regexp(node); end
private
def contain_non_literal?(node); end
def named_capture?(tree); end
def numbered_capture?(tree); end
end
RuboCop::Cop::Lint::MixedRegexpCaptureTypes::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Lint::MultipleComparison < ::RuboCop::Cop::Cop
def autocorrect(node); end
def multiple_compare?(node = _); end
def on_send(node); end
end
RuboCop::Cop::Lint::MultipleComparison::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Lint::NestedMethodDefinition < ::RuboCop::Cop::Cop
def class_or_module_or_struct_new_call?(node = _); end
def eval_call?(node = _); end
def exec_call?(node = _); end
def on_def(node); end
def on_defs(node); end
private
def find_nested_defs(node, &block); end
def scoping_method_call?(child); end
end
RuboCop::Cop::Lint::NestedMethodDefinition::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Lint::NestedPercentLiteral < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::RangeHelp)
include(::RuboCop::Cop::PercentLiteral)
def on_array(node); end
def on_percent_literal(node); end
private
def contains_percent_literals?(node); end
end
RuboCop::Cop::Lint::NestedPercentLiteral::MSG = T.let(T.unsafe(nil), String)
RuboCop::Cop::Lint::NestedPercentLiteral::PERCENT_LITERAL_TYPES = T.let(T.unsafe(nil), Array)
RuboCop::Cop::Lint::NestedPercentLiteral::REGEXES = T.let(T.unsafe(nil), Array)
class RuboCop::Cop::Lint::NextWithoutAccumulator < ::RuboCop::Cop::Cop
def on_block(node); end
def on_body_of_reduce(node = _); end
private
def parent_block_node(node); end
end
RuboCop::Cop::Lint::NextWithoutAccumulator::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Lint::NonDeterministicRequireOrder < ::RuboCop::Cop::Cop
def autocorrect(node); end
def loop_variable(node = _); end
def on_block(node); end
def unsorted_dir_block?(node = _); end
def unsorted_dir_each?(node = _); end
def var_is_required?(node0, param1); end
private
def unsorted_dir_loop?(node); end
end
RuboCop::Cop::Lint::NonDeterministicRequireOrder::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Lint::NonLocalExitFromIterator < ::RuboCop::Cop::Cop
def chained_send?(node = _); end
def define_method?(node = _); end
def on_return(return_node); end
private
def return_value?(return_node); end
def scoped_node?(node); end
end
RuboCop::Cop::Lint::NonLocalExitFromIterator::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Lint::NumberConversion < ::RuboCop::Cop::Cop
def autocorrect(node); end
def datetime?(node = _); end
def on_send(node); end
def to_method(node = _); end
private
def correct_method(node, receiver); end
def date_time_object?(node); end
end
RuboCop::Cop::Lint::NumberConversion::CONVERSION_METHOD_CLASS_MAPPING = T.let(T.unsafe(nil), Hash)
RuboCop::Cop::Lint::NumberConversion::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Lint::OrderedMagicComments < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::FrozenStringLiteral)
def autocorrect(_node); end
def investigate(processed_source); end
private
def magic_comment_lines; end
def magic_comments; end
end
RuboCop::Cop::Lint::OrderedMagicComments::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Lint::ParenthesesAsGroupedExpression < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::RangeHelp)
def autocorrect(node); end
def on_csend(node); end
def on_send(node); end
private
def first_argument_starts_with_left_parenthesis?(node); end
def grouped_parentheses?(node); end
def space_range(expr, space_length); end
def spaces_before_left_parenthesis(node); end
def valid_context?(node); end
end
RuboCop::Cop::Lint::ParenthesesAsGroupedExpression::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Lint::PercentStringArray < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::RangeHelp)
include(::RuboCop::Cop::PercentLiteral)
def autocorrect(node); end
def on_array(node); end
def on_percent_literal(node); end
private
def contains_quotes_or_commas?(node); end
end
RuboCop::Cop::Lint::PercentStringArray::LEADING_QUOTE = T.let(T.unsafe(nil), Regexp)
RuboCop::Cop::Lint::PercentStringArray::MSG = T.let(T.unsafe(nil), String)
RuboCop::Cop::Lint::PercentStringArray::QUOTES_AND_COMMAS = T.let(T.unsafe(nil), Array)
RuboCop::Cop::Lint::PercentStringArray::TRAILING_QUOTE = T.let(T.unsafe(nil), Regexp)
class RuboCop::Cop::Lint::PercentSymbolArray < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::RangeHelp)
include(::RuboCop::Cop::PercentLiteral)
def autocorrect(node); end
def on_array(node); end
def on_percent_literal(node); end
private
def contains_colons_or_commas?(node); end
def non_alphanumeric_literal?(literal); end
end
RuboCop::Cop::Lint::PercentSymbolArray::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Lint::RaiseException < ::RuboCop::Cop::Cop
def exception?(node = _); end
def exception_new_with_message?(node = _); end
def on_send(node); end
private
def allow_implicit_namespaces; end
def check(node); end
def implicit_namespace?(node); end
end
RuboCop::Cop::Lint::RaiseException::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Lint::RandOne < ::RuboCop::Cop::Cop
def on_send(node); end
def rand_one?(node = _); end
private
def message(node); end
end
RuboCop::Cop::Lint::RandOne::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Lint::RedundantCopDisableDirective < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::RangeHelp)
def autocorrect(args); end
def check(offenses, cop_disabled_line_ranges, comments); end
private
def add_offense_for_entire_comment(comment, cops); end
def add_offense_for_some_cops(comment, cops); end
def add_offenses(redundant_cops); end
def all_cop_names; end
def all_disabled?(comment); end
def comment_range_with_surrounding_space(range); end
def cop_range(comment, cop); end
def describe(cop); end
def directive_count(comment); end
def directive_range_in_list(range, ranges); end
def each_already_disabled(line_ranges, disabled_ranges, comments); end
def each_line_range(line_ranges, disabled_ranges, offenses, comments, cop); end
def each_redundant_disable(cop_disabled_line_ranges, offenses, comments, &block); end
def ends_its_line?(range); end
def find_redundant(comment, offenses, cop, line_range, next_line_range); end
def ignore_offense?(disabled_ranges, line_range); end
def matching_range(haystack, needle); end
def trailing_range?(ranges, range); end
end
RuboCop::Cop::Lint::RedundantCopDisableDirective::COP_NAME = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Lint::RedundantCopEnableDirective < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::RangeHelp)
include(::RuboCop::Cop::SurroundingSpace)
def autocorrect(comment_and_name); end
def investigate(processed_source); end
private
def all_or_name(name); end
def comment_start(comment); end
def cop_name_indention(comment, name); end
def range_of_offense(comment, name); end
def range_to_remove(begin_pos, end_pos, comma_pos, comment); end
def range_with_comma(comment, name); end
end
RuboCop::Cop::Lint::RedundantCopEnableDirective::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Lint::RedundantRequireStatement < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::RangeHelp)
def autocorrect(node); end
def on_send(node); end
def unnecessary_require_statement?(node = _); end
end
RuboCop::Cop::Lint::RedundantRequireStatement::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Lint::RedundantSplatExpansion < ::RuboCop::Cop::Cop
def array_new?(node = _); end
def autocorrect(node); end
def literal_expansion(node = _); end
def on_splat(node); end
private
def array_new_inside_array_literal?(array_new_node); end
def array_splat?(node); end
def method_argument?(node); end
def part_of_an_array?(node); end
def redundant_brackets?(node); end
def redundant_splat_expansion(node); end
def remove_brackets(array); end
def replacement_range_and_content(node); end
end
RuboCop::Cop::Lint::RedundantSplatExpansion::ARRAY_PARAM_MSG = T.let(T.unsafe(nil), String)
RuboCop::Cop::Lint::RedundantSplatExpansion::ASSIGNMENT_TYPES = T.let(T.unsafe(nil), Array)
RuboCop::Cop::Lint::RedundantSplatExpansion::MSG = T.let(T.unsafe(nil), String)
RuboCop::Cop::Lint::RedundantSplatExpansion::PERCENT_CAPITAL_I = T.let(T.unsafe(nil), String)
RuboCop::Cop::Lint::RedundantSplatExpansion::PERCENT_CAPITAL_W = T.let(T.unsafe(nil), String)
RuboCop::Cop::Lint::RedundantSplatExpansion::PERCENT_I = T.let(T.unsafe(nil), String)
RuboCop::Cop::Lint::RedundantSplatExpansion::PERCENT_W = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Lint::RedundantStringCoercion < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::Interpolation)
def autocorrect(node); end
def on_interpolation(begin_node); end
def to_s_without_args?(node = _); end
private
def message(node); end
end
RuboCop::Cop::Lint::RedundantStringCoercion::MSG_DEFAULT = T.let(T.unsafe(nil), String)
RuboCop::Cop::Lint::RedundantStringCoercion::MSG_SELF = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Lint::RedundantWithIndex < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::RangeHelp)
def autocorrect(node); end
def on_block(node); end
def redundant_with_index?(node = _); end
private
def message(node); end
def with_index_range(send); end
end
RuboCop::Cop::Lint::RedundantWithIndex::MSG_EACH_WITH_INDEX = T.let(T.unsafe(nil), String)
RuboCop::Cop::Lint::RedundantWithIndex::MSG_WITH_INDEX = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Lint::RedundantWithObject < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::RangeHelp)
def autocorrect(node); end
def on_block(node); end
def redundant_with_object?(node = _); end
private
def message(node); end
def with_object_range(send); end
end
RuboCop::Cop::Lint::RedundantWithObject::MSG_EACH_WITH_OBJECT = T.let(T.unsafe(nil), String)
RuboCop::Cop::Lint::RedundantWithObject::MSG_WITH_OBJECT = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Lint::RegexpAsCondition < ::RuboCop::Cop::Cop
def on_match_current_line(node); end
end
RuboCop::Cop::Lint::RegexpAsCondition::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Lint::RequireParentheses < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::RangeHelp)
def on_csend(node); end
def on_send(node); end
private
def check_predicate(predicate, node); end
def check_ternary(ternary, node); end
end
RuboCop::Cop::Lint::RequireParentheses::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Lint::RescueException < ::RuboCop::Cop::Cop
def on_resbody(node); end
def targets_exception?(rescue_arg_node); end
end
RuboCop::Cop::Lint::RescueException::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Lint::RescueType < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::RescueNode)
def autocorrect(node); end
def on_resbody(node); end
private
def correction(*exceptions); end
def invalid_exceptions(exceptions); end
def valid_exceptions(exceptions); end
end
RuboCop::Cop::Lint::RescueType::INVALID_TYPES = T.let(T.unsafe(nil), Array)
RuboCop::Cop::Lint::RescueType::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Lint::ReturnInVoidContext < ::RuboCop::Cop::Cop
def on_return(return_node); end
private
def method_name(context_node); end
def non_void_context(return_node); end
def setter_method?(method_name); end
def void_context_method?(method_name); end
end
RuboCop::Cop::Lint::ReturnInVoidContext::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Lint::SafeNavigationChain < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::NilMethods)
def bad_method?(node = _); end
def on_send(node); end
private
def method_chain(node); end
end
RuboCop::Cop::Lint::SafeNavigationChain::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Lint::SafeNavigationConsistency < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::NilMethods)
def autocorrect(node); end
def check(node); end
def on_csend(node); end
private
def top_conditional_ancestor(node); end
def unsafe_method_calls(method_calls, safe_nav_receiver); end
end
RuboCop::Cop::Lint::SafeNavigationConsistency::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Lint::SafeNavigationWithEmpty < ::RuboCop::Cop::Cop
def on_if(node); end
def safe_navigation_empty_in_conditional?(node = _); end
end
RuboCop::Cop::Lint::SafeNavigationWithEmpty::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Lint::ScriptPermission < ::RuboCop::Cop::Cop
def autocorrect(node); end
def investigate(processed_source); end
private
def executable?(processed_source); end
def format_message_from(processed_source); end
end
RuboCop::Cop::Lint::ScriptPermission::MSG = T.let(T.unsafe(nil), String)
RuboCop::Cop::Lint::ScriptPermission::SHEBANG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Lint::SendWithMixinArgument < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::RangeHelp)
def autocorrect(node); end
def on_send(node); end
def send_with_mixin_argument?(node = _); end
private
def bad_location(node); end
def message(method, module_name, bad_method); end
def mixin_method?(node); end
end
RuboCop::Cop::Lint::SendWithMixinArgument::MIXIN_METHODS = T.let(T.unsafe(nil), Array)
RuboCop::Cop::Lint::SendWithMixinArgument::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Lint::ShadowedArgument < ::RuboCop::Cop::Cop
def after_leaving_scope(scope, _variable_table); end
def join_force?(force_class); end
def uses_var?(node0, param1); end
private
def argument_references(argument); end
def assignment_without_argument_usage(argument); end
def check_argument(argument); end
def ignore_implicit_references?; end
def node_within_block_or_conditional?(node, stop_search_node); end
def reference_pos(node); end
def shadowing_assignment(argument); end
end
RuboCop::Cop::Lint::ShadowedArgument::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Lint::ShadowedException < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::RescueNode)
include(::RuboCop::Cop::RangeHelp)
def on_rescue(node); end
private
def compare_exceptions(exception, other_exception); end
def contains_multiple_levels_of_exceptions?(group); end
def evaluate_exceptions(rescue_group); end
def find_shadowing_rescue(rescues); end
def offense_range(rescues); end
def rescued_exceptions(rescue_group); end
def rescued_groups_for(rescues); end
def silence_warnings; end
def sorted?(rescued_groups); end
def system_call_err?(error); end
end
RuboCop::Cop::Lint::ShadowedException::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Lint::ShadowingOuterLocalVariable < ::RuboCop::Cop::Cop
def before_declaring_variable(variable, variable_table); end
def join_force?(force_class); end
end
RuboCop::Cop::Lint::ShadowingOuterLocalVariable::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Lint::StructNewOverride < ::RuboCop::Cop::Cop
def on_send(node); end
def struct_new(node = _); end
end
RuboCop::Cop::Lint::StructNewOverride::MSG = T.let(T.unsafe(nil), String)
RuboCop::Cop::Lint::StructNewOverride::STRUCT_MEMBER_NAME_TYPES = T.let(T.unsafe(nil), Array)
RuboCop::Cop::Lint::StructNewOverride::STRUCT_METHOD_NAMES = T.let(T.unsafe(nil), Array)
class RuboCop::Cop::Lint::SuppressedException < ::RuboCop::Cop::Cop
def on_resbody(node); end
private
def comment_between_rescue_and_end?(node); end
end
RuboCop::Cop::Lint::SuppressedException::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Lint::Syntax < ::RuboCop::Cop::Cop
def add_offense_from_diagnostic(diagnostic, ruby_version); end
def add_offense_from_error(error); end
private
def beautify_message(message); end
def self.offenses_from_processed_source(processed_source, config, options); end
end
RuboCop::Cop::Lint::Syntax::ERROR_SOURCE_RANGE = T.let(T.unsafe(nil), RuboCop::Cop::Lint::Syntax::PseudoSourceRange)
class RuboCop::Cop::Lint::Syntax::PseudoSourceRange < ::Struct
def begin_pos; end
def begin_pos=(_); end
def column; end
def column=(_); end
def end_pos; end
def end_pos=(_); end
def line; end
def line=(_); end
def source_line; end
def source_line=(_); end
def self.[](*_); end
def self.inspect; end
def self.members; end
def self.new(*_); end
end
class RuboCop::Cop::Lint::ToJSON < ::RuboCop::Cop::Cop
def autocorrect(node); end
def on_def(node); end
end
RuboCop::Cop::Lint::ToJSON::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Lint::UnderscorePrefixedVariableName < ::RuboCop::Cop::Cop
def after_leaving_scope(scope, _variable_table); end
def check_variable(variable); end
def join_force?(force_class); end
private
def allowed_keyword_block_argument?(variable); end
end
RuboCop::Cop::Lint::UnderscorePrefixedVariableName::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Lint::UnifiedInteger < ::RuboCop::Cop::Cop
def autocorrect(node); end
def fixnum_or_bignum_const(node = _); end
def on_const(node); end
end
RuboCop::Cop::Lint::UnifiedInteger::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Lint::UnreachableCode < ::RuboCop::Cop::Cop
def flow_command?(node = _); end
def on_begin(node); end
def on_kwbegin(node); end
private
def check_case(node); end
def check_if(node); end
def flow_expression?(node); end
end
RuboCop::Cop::Lint::UnreachableCode::MSG = T.let(T.unsafe(nil), String)
module RuboCop::Cop::Lint::UnusedArgument
extend(::RuboCop::AST::NodePattern::Macros)
def after_leaving_scope(scope, _variable_table); end
def join_force?(force_class); end
private
def check_argument(variable); end
end
class RuboCop::Cop::Lint::UnusedBlockArgument < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::Lint::UnusedArgument)
def autocorrect(node); end
private
def allow_unused_keyword_arguments?; end
def allowed_block?(variable); end
def allowed_keyword_argument?(variable); end
def augment_message(message, variable); end
def check_argument(variable); end
def define_method_call?(variable); end
def empty_block?(variable); end
def ignore_empty_blocks?; end
def message(variable); end
def message_for_lambda(variable, all_arguments); end
def message_for_normal_block(variable, all_arguments); end
def message_for_underscore_prefix(variable); end
def variable_type(variable); end
end
class RuboCop::Cop::Lint::UnusedMethodArgument < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::Lint::UnusedArgument)
def autocorrect(node); end
def not_implemented?(node = _); end
private
def check_argument(variable); end
def ignored_method?(body); end
def message(variable); end
end
class RuboCop::Cop::Lint::UriEscapeUnescape < ::RuboCop::Cop::Cop
def on_send(node); end
def uri_escape_unescape?(node = _); end
end
RuboCop::Cop::Lint::UriEscapeUnescape::ALTERNATE_METHODS_OF_URI_ESCAPE = T.let(T.unsafe(nil), Array)
RuboCop::Cop::Lint::UriEscapeUnescape::ALTERNATE_METHODS_OF_URI_UNESCAPE = T.let(T.unsafe(nil), Array)
RuboCop::Cop::Lint::UriEscapeUnescape::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Lint::UriRegexp < ::RuboCop::Cop::Cop
def autocorrect(node); end
def on_send(node); end
def uri_regexp_with_argument?(node = _); end
def uri_regexp_without_argument?(node = _); end
private
def register_offense(node, top_level: _, arg: _); end
end
RuboCop::Cop::Lint::UriRegexp::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Lint::UselessAccessModifier < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::RangeHelp)
def autocorrect(node); end
def class_or_instance_eval?(node = _); end
def class_or_module_or_struct_new_call?(node = _); end
def dynamic_method_definition?(node = _); end
def on_block(node); end
def on_class(node); end
def on_module(node); end
def on_sclass(node); end
def static_method_definition?(node = _); end
private
def access_modifier?(node); end
def any_context_creating_methods?(child); end
def any_method_definition?(child); end
def check_child_nodes(node, unused, cur_vis); end
def check_new_visibility(node, unused, new_vis, cur_vis); end
def check_node(node); end
def check_scope(node); end
def check_send_node(node, cur_vis, unused); end
def eval_call?(child); end
def method_definition?(child); end
def start_of_new_scope?(child); end
end
RuboCop::Cop::Lint::UselessAccessModifier::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Lint::UselessAssignment < ::RuboCop::Cop::Cop
def after_leaving_scope(scope, _variable_table); end
def check_for_unused_assignments(variable); end
def collect_variable_like_names(scope); end
def join_force?(force_class); end
def message_for_useless_assignment(assignment); end
def message_specification(assignment, variable); end
def multiple_assignment_message(variable_name); end
def operator_assignment_message(scope, assignment); end
def return_value_node_of_scope(scope); end
def similar_name_message(variable); end
def variable_like_method_invocation?(node); end
end
RuboCop::Cop::Lint::UselessAssignment::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Lint::UselessComparison < ::RuboCop::Cop::Cop
def on_send(node); end
def useless_comparison?(node = _); end
end
RuboCop::Cop::Lint::UselessComparison::MSG = T.let(T.unsafe(nil), String)
RuboCop::Cop::Lint::UselessComparison::OPS = T.let(T.unsafe(nil), Array)
class RuboCop::Cop::Lint::UselessElseWithoutRescue < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::ParserDiagnostic)
private
def alternative_message(_diagnostic); end
def find_offense_node_by(diagnostic); end
def relevant_diagnostic?(diagnostic); end
end
RuboCop::Cop::Lint::UselessElseWithoutRescue::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Lint::UselessSetterCall < ::RuboCop::Cop::Cop
def on_def(node); end
def on_defs(node); end
def setter_call_to_local_variable?(node = _); end
private
def last_expression(body); end
end
RuboCop::Cop::Lint::UselessSetterCall::ASSIGNMENT_TYPES = T.let(T.unsafe(nil), Array)
RuboCop::Cop::Lint::UselessSetterCall::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Lint::UselessSetterCall::MethodVariableTracker
def initialize(body_node); end
def constructor?(node); end
def contain_local_object?(variable_name); end
def process_assignment(asgn_node, rhs_node); end
def process_assignment_node(node); end
def process_binary_operator_assignment(op_asgn_node); end
def process_logical_operator_assignment(asgn_node); end
def process_multiple_assignment(masgn_node); end
def scan(node, &block); end
end
class RuboCop::Cop::Lint::Void < ::RuboCop::Cop::Cop
def on_begin(node); end
def on_block(node); end
def on_kwbegin(node); end
private
def check_begin(node); end
def check_defined(node); end
def check_expression(expr); end
def check_literal(node); end
def check_nonmutating(node); end
def check_self(node); end
def check_var(node); end
def check_void_op(node); end
def in_void_context?(node); end
end
RuboCop::Cop::Lint::Void::BINARY_OPERATORS = T.let(T.unsafe(nil), Array)
RuboCop::Cop::Lint::Void::DEFINED_MSG = T.let(T.unsafe(nil), String)
RuboCop::Cop::Lint::Void::LIT_MSG = T.let(T.unsafe(nil), String)
RuboCop::Cop::Lint::Void::NONMUTATING_METHODS = T.let(T.unsafe(nil), Array)
RuboCop::Cop::Lint::Void::NONMUTATING_MSG = T.let(T.unsafe(nil), String)
RuboCop::Cop::Lint::Void::OPERATORS = T.let(T.unsafe(nil), Array)
RuboCop::Cop::Lint::Void::OP_MSG = T.let(T.unsafe(nil), String)
RuboCop::Cop::Lint::Void::SELF_MSG = T.let(T.unsafe(nil), String)
RuboCop::Cop::Lint::Void::UNARY_OPERATORS = T.let(T.unsafe(nil), Array)
RuboCop::Cop::Lint::Void::VAR_MSG = T.let(T.unsafe(nil), String)
RuboCop::Cop::Lint::Void::VOID_CONTEXT_TYPES = T.let(T.unsafe(nil), Array)
module RuboCop::Cop::MatchRange
include(::RuboCop::Cop::RangeHelp)
private
def each_match_range(range, regex); end
def match_range(range, match); end
end
class RuboCop::Cop::MessageAnnotator
def initialize(config, cop_name, cop_config, options); end
def annotate(message); end
def config; end
def cop_config; end
def cop_name; end
def options; end
def urls; end
private
def debug?; end
def details; end
def display_cop_names?; end
def display_style_guide?; end
def extra_details?; end
def reference_urls; end
def style_guide_base_url; end
def style_guide_url; end
def self.style_guide_urls; end
end
module RuboCop::Cop::MethodComplexity
include(::RuboCop::Cop::ConfigurableMax)
include(::RuboCop::Cop::IgnoredMethods)
extend(::RuboCop::AST::NodePattern::Macros)
def define_method?(node = _); end
def on_block(node); end
def on_def(node); end
def on_defs(node); end
private
def check_complexity(node, method_name); end
def complexity(body); end
end
module RuboCop::Cop::MethodPreference
private
def default_cop_config; end
def preferred_method(method); end
def preferred_methods; end
end
module RuboCop::Cop::Metrics
end
class RuboCop::Cop::Metrics::AbcSize < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::ConfigurableMax)
include(::RuboCop::Cop::IgnoredMethods)
include(::RuboCop::Cop::MethodComplexity)
private
def complexity(node); end
end
RuboCop::Cop::Metrics::AbcSize::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Metrics::BlockLength < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::ConfigurableMax)
include(::RuboCop::Cop::CodeLength)
include(::RuboCop::Cop::TooManyLines)
def on_block(node); end
private
def cop_label; end
def excluded_method?(node); end
def excluded_methods; end
end
RuboCop::Cop::Metrics::BlockLength::LABEL = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Metrics::BlockNesting < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::ConfigurableMax)
def investigate(processed_source); end
private
def check_nesting_level(node, max, current_level); end
def consider_node?(node); end
def count_blocks?; end
def message(max); end
end
RuboCop::Cop::Metrics::BlockNesting::NESTING_BLOCKS = T.let(T.unsafe(nil), Array)
class RuboCop::Cop::Metrics::ClassLength < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::ConfigurableMax)
include(::RuboCop::Cop::CodeLength)
include(::RuboCop::Cop::ClassishLength)
def class_definition?(node = _); end
def on_casgn(node); end
def on_class(node); end
private
def message(length, max_length); end
end
class RuboCop::Cop::Metrics::CyclomaticComplexity < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::ConfigurableMax)
include(::RuboCop::Cop::IgnoredMethods)
include(::RuboCop::Cop::MethodComplexity)
private
def complexity_score_for(_node); end
end
RuboCop::Cop::Metrics::CyclomaticComplexity::COUNTED_NODES = T.let(T.unsafe(nil), Array)
RuboCop::Cop::Metrics::CyclomaticComplexity::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Metrics::MethodLength < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::ConfigurableMax)
include(::RuboCop::Cop::CodeLength)
include(::RuboCop::Cop::TooManyLines)
def on_block(node); end
def on_def(node); end
def on_defs(node); end
private
def cop_label; end
end
RuboCop::Cop::Metrics::MethodLength::LABEL = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Metrics::ModuleLength < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::ConfigurableMax)
include(::RuboCop::Cop::CodeLength)
include(::RuboCop::Cop::ClassishLength)
def module_definition?(node = _); end
def on_casgn(node); end
def on_module(node); end
private
def message(length, max_length); end
end
class RuboCop::Cop::Metrics::ParameterLists < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::ConfigurableMax)
def argument_to_lambda_or_proc?(node = _); end
def on_args(node); end
private
def args_count(node); end
def count_keyword_args?; end
def max_params; end
def message(node); end
end
RuboCop::Cop::Metrics::ParameterLists::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Metrics::PerceivedComplexity < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::ConfigurableMax)
include(::RuboCop::Cop::IgnoredMethods)
include(::RuboCop::Cop::MethodComplexity)
private
def complexity_score_for(node); end
end
RuboCop::Cop::Metrics::PerceivedComplexity::COUNTED_NODES = T.let(T.unsafe(nil), Array)
RuboCop::Cop::Metrics::PerceivedComplexity::MSG = T.let(T.unsafe(nil), String)
module RuboCop::Cop::Metrics::Utils
end
class RuboCop::Cop::Metrics::Utils::AbcSizeCalculator
def initialize(node); end
def calculate; end
def else_branch?(node); end
def evaluate_branch_nodes(node); end
def evaluate_condition_node(node); end
private
def branch?(node); end
def condition?(node); end
def self.calculate(node); end
end
RuboCop::Cop::Metrics::Utils::AbcSizeCalculator::BRANCH_NODES = T.let(T.unsafe(nil), Array)
RuboCop::Cop::Metrics::Utils::AbcSizeCalculator::CONDITION_NODES = T.let(T.unsafe(nil), Array)
module RuboCop::Cop::Migration
end
class RuboCop::Cop::Migration::DepartmentName < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::RangeHelp)
def autocorrect(range); end
def investigate(processed_source); end
private
def check_cop_name(name, comment, offset); end
def contain_unexpected_character_for_department_name?(name); end
def disable_comment_offset; end
def qualified_legacy_cop_name(cop_name); end
def valid_content_token?(content_token); end
end
RuboCop::Cop::Migration::DepartmentName::DISABLE_COMMENT_FORMAT = T.let(T.unsafe(nil), Regexp)
RuboCop::Cop::Migration::DepartmentName::DISABLING_COPS_CONTENT_TOKEN = T.let(T.unsafe(nil), Regexp)
RuboCop::Cop::Migration::DepartmentName::MSG = T.let(T.unsafe(nil), String)
module RuboCop::Cop::MinBodyLength
private
def min_body_length; end
def min_body_length?(node); end
end
module RuboCop::Cop::MultilineElementIndentation
private
def base_column(left_brace, left_parenthesis); end
def check_expected_style(styles); end
def check_first(first, left_brace, left_parenthesis, offset); end
def detected_styles(actual_column, offset, left_parenthesis, left_brace); end
def detected_styles_for_column(column, left_parenthesis, left_brace); end
def each_argument_node(node, type); end
def incorrect_style_detected(styles, first, left_parenthesis); end
end
module RuboCop::Cop::MultilineElementLineBreaks
private
def all_on_same_line?(nodes); end
def check_line_breaks(_node, children); end
end
module RuboCop::Cop::MultilineExpressionIndentation
def on_send(node); end
private
def argument_in_method_call(node, kind); end
def assignment_rhs(node); end
def check(range, node, lhs, rhs); end
def correct_indentation(node); end
def disqualified_rhs?(candidate, ancestor); end
def grouped_expression?(node); end
def incorrect_style_detected(range, node, lhs, rhs); end
def indentation(node); end
def indented_keyword_expression(node); end
def inside_arg_list_parentheses?(node, ancestor); end
def keyword_message_tail(node); end
def kw_node_with_special_indentation(node); end
def left_hand_side(lhs); end
def not_for_this_cop?(node); end
def operation_description(node, rhs); end
def part_of_assignment_rhs(node, candidate); end
def part_of_block_body?(candidate, block_node); end
def postfix_conditional?(node); end
def regular_method_right_hand_side(send_node); end
def right_hand_side(send_node); end
def valid_method_rhs_candidate?(candidate, node); end
def valid_rhs?(candidate, ancestor); end
def valid_rhs_candidate?(candidate, node); end
def within_node?(inner, outer); end
end
RuboCop::Cop::MultilineExpressionIndentation::ASSIGNMENT_MESSAGE_TAIL = T.let(T.unsafe(nil), String)
RuboCop::Cop::MultilineExpressionIndentation::DEFAULT_MESSAGE_TAIL = T.let(T.unsafe(nil), String)
RuboCop::Cop::MultilineExpressionIndentation::KEYWORD_ANCESTOR_TYPES = T.let(T.unsafe(nil), Array)
RuboCop::Cop::MultilineExpressionIndentation::KEYWORD_MESSAGE_TAIL = T.let(T.unsafe(nil), String)
RuboCop::Cop::MultilineExpressionIndentation::UNALIGNED_RHS_TYPES = T.let(T.unsafe(nil), Array)
class RuboCop::Cop::MultilineLiteralBraceCorrector
include(::RuboCop::Cop::ConfigurableEnforcedStyle)
include(::RuboCop::Cop::MultilineLiteralBraceLayout)
include(::RuboCop::Cop::RangeHelp)
def initialize(node, processed_source); end
def call(corrector); end
private
def correct_next_line_brace(corrector); end
def correct_same_line_brace(corrector); end
def last_element_range_with_trailing_comma(node); end
def last_element_trailing_comma_range(node); end
def node; end
def processed_source; end
end
module RuboCop::Cop::MultilineLiteralBraceLayout
include(::RuboCop::Cop::ConfigurableEnforcedStyle)
private
def check(node); end
def check_brace_layout(node); end
def check_new_line(node); end
def check_same_line(node); end
def check_symmetrical(node); end
def children(node); end
def closing_brace_on_same_line?(node); end
def empty_literal?(node); end
def ignored_literal?(node); end
def implicit_literal?(node); end
def last_line_heredoc?(node, parent = _); end
def new_line_needed_before_closing_brace?(node); end
def opening_brace_on_same_line?(node); end
end
module RuboCop::Cop::Naming
end
class RuboCop::Cop::Naming::AccessorMethodName < ::RuboCop::Cop::Cop
def on_def(node); end
def on_defs(node); end
private
def bad_reader_name?(node); end
def bad_writer_name?(node); end
def message(node); end
end
RuboCop::Cop::Naming::AccessorMethodName::MSG_READER = T.let(T.unsafe(nil), String)
RuboCop::Cop::Naming::AccessorMethodName::MSG_WRITER = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Naming::AsciiIdentifiers < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::RangeHelp)
def investigate(processed_source); end
private
def first_non_ascii_chars(string); end
def first_offense_range(identifier); end
end
RuboCop::Cop::Naming::AsciiIdentifiers::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Naming::BinaryOperatorParameterName < ::RuboCop::Cop::Cop
def on_def(node); end
def op_method_candidate?(node = _); end
private
def op_method?(name); end
end
RuboCop::Cop::Naming::BinaryOperatorParameterName::BLACKLISTED = T.let(T.unsafe(nil), Array)
RuboCop::Cop::Naming::BinaryOperatorParameterName::MSG = T.let(T.unsafe(nil), String)
RuboCop::Cop::Naming::BinaryOperatorParameterName::OP_LIKE_METHODS = T.let(T.unsafe(nil), Array)
class RuboCop::Cop::Naming::BlockParameterName < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::UncommunicativeName)
def on_block(node); end
end
class RuboCop::Cop::Naming::ClassAndModuleCamelCase < ::RuboCop::Cop::Cop
def on_class(node); end
def on_module(node); end
end
RuboCop::Cop::Naming::ClassAndModuleCamelCase::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Naming::ConstantName < ::RuboCop::Cop::Cop
def class_or_struct_return_method?(node = _); end
def literal_receiver?(node = _); end
def on_casgn(node); end
private
def allowed_assignment?(value); end
def allowed_conditional_expression_on_rhs?(node); end
def allowed_method_call_on_rhs?(node); end
def contains_contant?(node); end
end
RuboCop::Cop::Naming::ConstantName::MSG = T.let(T.unsafe(nil), String)
RuboCop::Cop::Naming::ConstantName::SNAKE_CASE = T.let(T.unsafe(nil), Regexp)
class RuboCop::Cop::Naming::FileName < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::RangeHelp)
def investigate(processed_source); end
private
def allowed_acronyms; end
def bad_filename_allowed?; end
def check_definition_path_hierarchy?; end
def expect_matching_definition?; end
def filename_good?(basename); end
def find_class_or_module(node, namespace); end
def for_bad_filename(file_path); end
def ignore_executable_scripts?; end
def match?(expected); end
def match_acronym?(expected, name); end
def match_namespace(node, namespace, expected); end
def matching_class?(file_name); end
def matching_definition?(file_path); end
def no_definition_message(basename, file_path); end
def other_message(basename); end
def partial_matcher!(expected); end
def perform_class_and_module_naming_checks(file_path, basename); end
def regex; end
def to_module_name(basename); end
def to_namespace(path); end
end
RuboCop::Cop::Naming::FileName::MSG_NO_DEFINITION = T.let(T.unsafe(nil), String)
RuboCop::Cop::Naming::FileName::MSG_REGEX = T.let(T.unsafe(nil), String)
RuboCop::Cop::Naming::FileName::MSG_SNAKE_CASE = T.let(T.unsafe(nil), String)
RuboCop::Cop::Naming::FileName::SNAKE_CASE = T.let(T.unsafe(nil), Regexp)
class RuboCop::Cop::Naming::HeredocDelimiterCase < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::Heredoc)
include(::RuboCop::Cop::ConfigurableEnforcedStyle)
def on_heredoc(node); end
private
def correct_case_delimiters?(node); end
def correct_delimiters(node); end
def message(_node); end
end
RuboCop::Cop::Naming::HeredocDelimiterCase::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Naming::HeredocDelimiterNaming < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::Heredoc)
def on_heredoc(node); end
private
def forbidden_delimiters; end
def meaningful_delimiters?(node); end
end
RuboCop::Cop::Naming::HeredocDelimiterNaming::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Naming::MemoizedInstanceVariableName < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::ConfigurableEnforcedStyle)
def memoized?(node = _); end
def on_def(node); end
def on_defs(node); end
private
def matches?(method_name, ivar_assign); end
def message(variable); end
def style_parameter_name; end
def suggested_var(method_name); end
def variable_name_candidates(method_name); end
end
RuboCop::Cop::Naming::MemoizedInstanceVariableName::MSG = T.let(T.unsafe(nil), String)
RuboCop::Cop::Naming::MemoizedInstanceVariableName::UNDERSCORE_REQUIRED = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Naming::MethodName < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::ConfigurableEnforcedStyle)
include(::RuboCop::Cop::ConfigurableFormatting)
include(::RuboCop::Cop::ConfigurableNaming)
include(::RuboCop::Cop::IgnoredPattern)
include(::RuboCop::Cop::RangeHelp)
def on_def(node); end
def on_defs(node); end
def on_send(node); end
def str_name(node = _); end
def sym_name(node = _); end
private
def attr_name(name_item); end
def message(style); end
def range_position(node); end
end
RuboCop::Cop::Naming::MethodName::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Naming::MethodParameterName < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::UncommunicativeName)
def on_def(node); end
def on_defs(node); end
end
class RuboCop::Cop::Naming::PredicateName < ::RuboCop::Cop::Cop
def dynamic_method_define(node = _); end
def on_def(node); end
def on_defs(node); end
def on_send(node); end
private
def allowed_method_name?(method_name, prefix); end
def allowed_methods; end
def expected_name(method_name, prefix); end
def forbidden_prefixes; end
def message(method_name, new_name); end
def method_definition_macros(macro_name); end
def predicate_prefixes; end
end
class RuboCop::Cop::Naming::RescuedExceptionsVariableName < ::RuboCop::Cop::Cop
def autocorrect(node); end
def on_resbody(node); end
private
def message(node); end
def offense_range(resbody); end
def preferred_name(variable_name); end
def variable_name(node); end
end
RuboCop::Cop::Naming::RescuedExceptionsVariableName::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Naming::VariableName < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::ConfigurableEnforcedStyle)
include(::RuboCop::Cop::ConfigurableFormatting)
include(::RuboCop::Cop::ConfigurableNaming)
def on_arg(node); end
def on_blockarg(node); end
def on_cvasgn(node); end
def on_ivasgn(node); end
def on_kwarg(node); end
def on_kwoptarg(node); end
def on_kwrestarg(node); end
def on_lvar(node); end
def on_lvasgn(node); end
def on_optarg(node); end
def on_restarg(node); end
private
def message(style); end
end
RuboCop::Cop::Naming::VariableName::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Naming::VariableNumber < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::ConfigurableEnforcedStyle)
include(::RuboCop::Cop::ConfigurableFormatting)
include(::RuboCop::Cop::ConfigurableNumbering)
def on_arg(node); end
def on_cvasgn(node); end
def on_ivasgn(node); end
def on_lvasgn(node); end
private
def message(style); end
end
RuboCop::Cop::Naming::VariableNumber::MSG = T.let(T.unsafe(nil), String)
module RuboCop::Cop::NegativeConditional
extend(::RuboCop::AST::NodePattern::Macros)
def empty_condition?(node = _); end
def single_negative?(node = _); end
private
def check_negative_conditional(node); end
end
RuboCop::Cop::NegativeConditional::MSG = T.let(T.unsafe(nil), String)
module RuboCop::Cop::NilMethods
private
def allowed_methods; end
def nil_methods; end
def other_stdlib_methods; end
end
class RuboCop::Cop::Offense
include(::Comparable)
def initialize(severity, location, message, cop_name, status = _); end
def <=>(other); end
def ==(other); end
def column; end
def column_length; end
def column_range; end
def cop_name; end
def correctable?; end
def corrected?; end
def corrected_with_todo?; end
def disabled?; end
def eql?(other); end
def first_line; end
def hash; end
def highlighted_area; end
def last_column; end
def last_line; end
def line; end
def location; end
def message; end
def real_column; end
def severity; end
def source_line; end
def status; end
def to_s; end
end
RuboCop::Cop::Offense::COMPARISON_ATTRIBUTES = T.let(T.unsafe(nil), Array)
module RuboCop::Cop::OnNormalIfUnless
def on_if(node); end
end
class RuboCop::Cop::OrderedGemCorrector
extend(::RuboCop::Cop::OrderedGemNode)
def self.comments_as_separators; end
def self.correct(processed_source, node, previous_declaration, comments_as_separators); end
def self.processed_source; end
end
module RuboCop::Cop::OrderedGemNode
private
def case_insensitive_out_of_order?(string_a, string_b); end
def consecutive_lines(previous, current); end
def find_gem_name(gem_node); end
def gem_name(declaration_node); end
def get_source_range(node, comments_as_separators); end
def register_offense(previous, current); end
def treat_comments_as_separators; end
end
module RuboCop::Cop::Parentheses
private
def parens_required?(node); end
end
class RuboCop::Cop::ParenthesesCorrector
def self.correct(node); end
end
module RuboCop::Cop::ParserDiagnostic
def investigate(processed_source); end
end
module RuboCop::Cop::PercentArray
private
def allowed_bracket_array?(node); end
def check_bracketed_array(node); end
def check_percent_array(node); end
def comments_in_array?(node); end
def invalid_percent_array_context?(node); end
def message(_node); end
end
module RuboCop::Cop::PercentLiteral
include(::RuboCop::Cop::RangeHelp)
private
def begin_source(node); end
def contents_range(node); end
def percent_literal?(node); end
def process(node, *types); end
def type(node); end
end
class RuboCop::Cop::PercentLiteralCorrector
include(::RuboCop::PathUtil)
include(::RuboCop::Cop::Util)
def initialize(config, preferred_delimiters); end
def config; end
def correct(node, char); end
def preferred_delimiters; end
private
def autocorrect_multiline_words(node, escape, delimiters); end
def autocorrect_words(node, escape, delimiters); end
def delimiters_for(type); end
def end_content(source); end
def escape_words?(node); end
def first_line?(node, previous_line_num); end
def fix_escaped_content(word_node, escape, delimiters); end
def line_breaks(node, source, previous_line_num, base_line_num, node_indx); end
def new_contents(node, escape, delimiters); end
def process_lines(node, previous_line_num, base_line_num, source_in_lines); end
def process_multiline_words(node, escape, delimiters); end
def substitute_escaped_delimiters(content, delimiters); end
def wrap_contents(node, contents, char, delimiters); end
end
module RuboCop::Cop::PrecedingFollowingAlignment
private
def aligned_assignment?(range, line); end
def aligned_char?(range, line); end
def aligned_comment_lines; end
def aligned_identical?(range, line); end
def aligned_operator?(range, line); end
def aligned_token?(range, line); end
def aligned_with_adjacent_line?(range, predicate); end
def aligned_with_any_line?(line_ranges, range, indent = _, &predicate); end
def aligned_with_any_line_range?(line_ranges, range, &predicate); end
def aligned_with_assignment(token, line_range); end
def aligned_with_line?(line_nos, range, indent = _); end
def aligned_with_operator?(range); end
def aligned_with_preceding_assignment(token); end
def aligned_with_something?(range); end
def aligned_with_subsequent_assignment(token); end
def aligned_words?(range, line); end
def allow_for_alignment?; end
def assignment_lines; end
def assignment_tokens; end
def relevant_assignment_lines(line_range); end
def remove_optarg_equals(asgn_tokens, processed_source); end
end
class RuboCop::Cop::PreferredDelimiters
def initialize(type, config, preferred_delimiters); end
def config; end
def delimiters; end
def type; end
private
def ensure_valid_preferred_delimiters; end
def preferred_delimiters; end
def preferred_delimiters_config; end
end
RuboCop::Cop::PreferredDelimiters::PERCENT_LITERAL_TYPES = T.let(T.unsafe(nil), Array)
class RuboCop::Cop::PunctuationCorrector
def self.add_space(token); end
def self.remove_space(space_before); end
def self.swap_comma(range); end
end
module RuboCop::Cop::RangeHelp
private
def column_offset_between(base_range, range); end
def directions(side); end
def effective_column(range); end
def final_pos(src, pos, increment, newlines, whitespace); end
def move_pos(src, pos, step, condition, regexp); end
def range_between(start_pos, end_pos); end
def range_by_whole_lines(range, include_final_newline: _); end
def range_with_surrounding_comma(range, side = _); end
def range_with_surrounding_space(range:, side: _, newlines: _, whitespace: _); end
def source_range(source_buffer, line_number, column, length = _); end
end
RuboCop::Cop::RangeHelp::BYTE_ORDER_MARK = T.let(T.unsafe(nil), Integer)
module RuboCop::Cop::RationalLiteral
extend(::RuboCop::AST::NodePattern::Macros)
def rational_literal?(node = _); end
end
module RuboCop::Cop::RegexpLiteralHelp
private
def freespace_mode_regexp?(node); end
end
class RuboCop::Cop::Registry
include(::Enumerable)
def initialize(cops = _, options = _); end
def ==(other); end
def contains_cop_matching?(names); end
def cops; end
def department_missing?(badge, name); end
def departments; end
def dismiss(cop); end
def each(&block); end
def enabled(config, only = _, only_safe = _); end
def enabled?(cop, config, only_safe); end
def enabled_pending_cop?(cop_cfg, config); end
def enlist(cop); end
def find_by_cop_name(cop_name); end
def length; end
def names; end
def options; end
def print_warning(name, path); end
def qualified_cop_name(name, path, shall_warn = _); end
def select(&block); end
def sort!; end
def to_h; end
def unqualified_cop_names; end
def with_department(department); end
def without_department(department); end
private
def clear_enrollment_queue; end
def initialize_copy(reg); end
def qualify_badge(badge); end
def registered?(badge); end
def resolve_badge(given_badge, real_badge, source_path); end
def with(cops); end
def self.all; end
def self.global; end
def self.qualified_cop_name(name, origin); end
def self.with_temporary_global(temp_global = _); end
end
module RuboCop::Cop::RescueNode
def investigate(processed_source); end
private
def rescue_modifier?(node); end
end
module RuboCop::Cop::SafeAssignment
extend(::RuboCop::AST::NodePattern::Macros)
def empty_condition?(node = _); end
def safe_assignment?(node = _); end
def setter_method?(node = _); end
private
def safe_assignment_allowed?; end
end
module RuboCop::Cop::Security
end
class RuboCop::Cop::Security::Eval < ::RuboCop::Cop::Cop
def eval?(node = _); end
def on_send(node); end
end
RuboCop::Cop::Security::Eval::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Security::JSONLoad < ::RuboCop::Cop::Cop
def autocorrect(node); end
def json_load(node = _); end
def on_send(node); end
end
RuboCop::Cop::Security::JSONLoad::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Security::MarshalLoad < ::RuboCop::Cop::Cop
def marshal_load(node = _); end
def on_send(node); end
end
RuboCop::Cop::Security::MarshalLoad::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Security::Open < ::RuboCop::Cop::Cop
def on_send(node); end
def open?(node = _); end
private
def composite_string?(node); end
def concatenated_string?(node); end
def interpolated_string?(node); end
def safe?(node); end
def safe_argument?(argument); end
def simple_string?(node); end
end
RuboCop::Cop::Security::Open::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Security::YAMLLoad < ::RuboCop::Cop::Cop
def autocorrect(node); end
def on_send(node); end
def yaml_load(node = _); end
end
RuboCop::Cop::Security::YAMLLoad::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Severity
include(::Comparable)
def initialize(name_or_code); end
def <=>(other); end
def ==(other); end
def code; end
def hash; end
def level; end
def name; end
def to_s; end
def self.name_from_code(code); end
end
RuboCop::Cop::Severity::CODE_TABLE = T.let(T.unsafe(nil), Hash)
RuboCop::Cop::Severity::NAMES = T.let(T.unsafe(nil), Array)
module RuboCop::Cop::SpaceAfterPunctuation
def investigate(processed_source); end
private
def allowed_type?(token); end
def each_missing_space(tokens); end
def offset; end
def space_forbidden_before_rcurly?; end
def space_missing?(token1, token2); end
def space_required_before?(token); end
end
RuboCop::Cop::SpaceAfterPunctuation::MSG = T.let(T.unsafe(nil), String)
module RuboCop::Cop::SpaceBeforePunctuation
include(::RuboCop::Cop::RangeHelp)
def investigate(processed_source); end
private
def each_missing_space(tokens); end
def space_missing?(token1, token2); end
def space_required_after?(token); end
def space_required_after_lcurly?; end
end
RuboCop::Cop::SpaceBeforePunctuation::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::SpaceCorrector
extend(::RuboCop::Cop::RangeHelp)
extend(::RuboCop::Cop::SurroundingSpace)
def self.add_space(processed_source, corrector, left_token, right_token); end
def self.empty_corrections(processed_source, corrector, empty_config, left_token, right_token); end
def self.processed_source; end
def self.remove_space(processed_source, corrector, left_token, right_token); end
end
module RuboCop::Cop::StatementModifier
include(::RuboCop::Cop::LineLengthHelp)
private
def length_in_modifier_form(node, cond); end
def max_line_length; end
def modifier_fits_on_single_line?(node); end
def non_eligible_body?(body); end
def non_eligible_condition?(condition); end
def non_eligible_node?(node); end
def single_line_as_modifier?(node); end
end
module RuboCop::Cop::StringHelp
def on_regexp(node); end
def on_str(node); end
private
def inside_interpolation?(node); end
end
class RuboCop::Cop::StringLiteralCorrector
extend(::RuboCop::PathUtil)
extend(::RuboCop::Cop::Util)
def self.correct(node, style); end
end
module RuboCop::Cop::StringLiteralsHelp
include(::RuboCop::Cop::StringHelp)
private
def wrong_quotes?(node); end
end
module RuboCop::Cop::Style
end
class RuboCop::Cop::Style::AccessModifierDeclarations < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::ConfigurableEnforcedStyle)
def access_modifier_with_symbol?(node = _); end
def on_send(node); end
private
def access_modifier_is_inlined?(node); end
def access_modifier_is_not_inlined?(node); end
def group_style?; end
def inline_style?; end
def message(node); end
def offense?(node); end
end
RuboCop::Cop::Style::AccessModifierDeclarations::GROUP_STYLE_MESSAGE = T.let(T.unsafe(nil), String)
RuboCop::Cop::Style::AccessModifierDeclarations::INLINE_STYLE_MESSAGE = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Style::Alias < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::ConfigurableEnforcedStyle)
def autocorrect(node); end
def identifier(node = _); end
def on_alias(node); end
def on_send(node); end
private
def add_offense_for_args(node); end
def alias_keyword_possible?(node); end
def alias_method_possible?(node); end
def bareword?(sym_node); end
def correct_alias_method_to_alias(send_node); end
def correct_alias_to_alias_method(node); end
def correct_alias_with_symbol_args(node); end
def lexical_scope_type(node); end
def scope_type(node); end
end
RuboCop::Cop::Style::Alias::MSG_ALIAS = T.let(T.unsafe(nil), String)
RuboCop::Cop::Style::Alias::MSG_ALIAS_METHOD = T.let(T.unsafe(nil), String)
RuboCop::Cop::Style::Alias::MSG_SYMBOL_ARGS = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Style::AndOr < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::ConfigurableEnforcedStyle)
include(::RuboCop::Cop::RangeHelp)
def autocorrect(node); end
def on_and(node); end
def on_if(node); end
def on_or(node); end
def on_until(node); end
def on_until_post(node); end
def on_while(node); end
def on_while_post(node); end
private
def correct_not(node, receiver, corrector); end
def correct_other(node, corrector); end
def correct_send(node, corrector); end
def correct_setter(node, corrector); end
def correctable_send?(node); end
def message(node); end
def on_conditionals(node); end
def process_logical_operator(node); end
def whitespace_before_arg(node); end
end
RuboCop::Cop::Style::AndOr::MSG = T.let(T.unsafe(nil), String)
module RuboCop::Cop::Style::AnnotationComment
private
def annotation?(comment); end
def just_first_word_of_sentence?(first_word, colon, space, note); end
def keyword?(word); end
def keyword_appearance?(first_word, colon, space); end
def split_comment(comment); end
end
class RuboCop::Cop::Style::ArrayJoin < ::RuboCop::Cop::Cop
def autocorrect(node); end
def join_candidate?(node = _); end
def on_send(node); end
end
RuboCop::Cop::Style::ArrayJoin::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Style::AsciiComments < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::RangeHelp)
def investigate(processed_source); end
private
def allowed_non_ascii_chars; end
def first_non_ascii_chars(string); end
def first_offense_range(comment); end
def only_allowed_non_ascii_chars?(string); end
end
RuboCop::Cop::Style::AsciiComments::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Style::Attr < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::RangeHelp)
def autocorrect(node); end
def class_eval?(node = _); end
def on_send(node); end
private
def message(node); end
def replacement_method(node); end
end
RuboCop::Cop::Style::Attr::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Style::AutoResourceCleanup < ::RuboCop::Cop::Cop
def on_send(node); end
private
def cleanup?(node); end
end
RuboCop::Cop::Style::AutoResourceCleanup::MSG = T.let(T.unsafe(nil), String)
RuboCop::Cop::Style::AutoResourceCleanup::TARGET_METHODS = T.let(T.unsafe(nil), Hash)
class RuboCop::Cop::Style::BarePercentLiterals < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::ConfigurableEnforcedStyle)
def autocorrect(node); end
def on_dstr(node); end
def on_str(node); end
private
def add_offense_for_wrong_style(node, good, bad); end
def check(node); end
def requires_bare_percent?(source); end
def requires_percent_q?(source); end
end
RuboCop::Cop::Style::BarePercentLiterals::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Style::BeginBlock < ::RuboCop::Cop::Cop
def on_preexe(node); end
end
RuboCop::Cop::Style::BeginBlock::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Style::BlockComments < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::RangeHelp)
def autocorrect(comment); end
def investigate(processed_source); end
private
def eq_end_part(comment, expr); end
def parts(comment); end
end
RuboCop::Cop::Style::BlockComments::BEGIN_LENGTH = T.let(T.unsafe(nil), Integer)
RuboCop::Cop::Style::BlockComments::END_LENGTH = T.let(T.unsafe(nil), Integer)
RuboCop::Cop::Style::BlockComments::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Style::BlockDelimiters < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::ConfigurableEnforcedStyle)
include(::RuboCop::Cop::IgnoredMethods)
def autocorrect(node); end
def on_block(node); end
def on_send(node); end
private
def array_or_range?(node); end
def braces_for_chaining_message(node); end
def braces_for_chaining_style?(node); end
def braces_required_message(node); end
def braces_required_method?(method_name); end
def braces_required_methods; end
def braces_style?(node); end
def conditional?(node); end
def correction_would_break_code?(node); end
def functional_block?(node); end
def functional_method?(method_name); end
def get_blocks(node, &block); end
def line_count_based_block_style?(node); end
def line_count_based_message(node); end
def message(node); end
def procedural_method?(method_name); end
def procedural_oneliners_may_have_braces?; end
def proper_block_style?(node); end
def replace_braces_with_do_end(loc); end
def replace_do_end_with_braces(loc); end
def return_value_of_scope?(node); end
def return_value_used?(node); end
def semantic_block_style?(node); end
def semantic_message(node); end
def special_method?(method_name); end
def special_method_proper_block_style?(node); end
def whitespace_after?(range, length = _); end
def whitespace_before?(range); end
end
RuboCop::Cop::Style::BlockDelimiters::ALWAYS_BRACES_MESSAGE = T.let(T.unsafe(nil), String)
RuboCop::Cop::Style::BlockDelimiters::BRACES_REQUIRED_MESSAGE = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Style::CaseCorrector
extend(::RuboCop::Cop::Style::ConditionalAssignmentHelper)
extend(::RuboCop::Cop::Style::ConditionalCorrectorHelper)
def self.correct(cop, node); end
def self.move_assignment_inside_condition(node); end
end
class RuboCop::Cop::Style::CaseEquality < ::RuboCop::Cop::Cop
def case_equality?(node = _); end
def on_send(node); end
private
def const?(node); end
end
RuboCop::Cop::Style::CaseEquality::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Style::CharacterLiteral < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::StringHelp)
def autocorrect(node); end
def correct_style_detected; end
def offense?(node); end
def opposite_style_detected; end
end
RuboCop::Cop::Style::CharacterLiteral::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Style::ClassAndModuleChildren < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::ConfigurableEnforcedStyle)
include(::RuboCop::Cop::RangeHelp)
def autocorrect(node); end
def on_class(node); end
def on_module(node); end
private
def add_trailing_end(corrector, node, padding); end
def check_compact_style(node, body); end
def check_nested_style(node); end
def check_style(node, body); end
def compact_definition(corrector, node); end
def compact_identifier_name(node); end
def compact_node(corrector, node); end
def compact_node_name?(node); end
def indent_width; end
def leading_spaces(node); end
def nest_definition(corrector, node); end
def nest_or_compact(corrector, node); end
def one_child?(body); end
def remove_end(corrector, body); end
def replace_keyword_with_module(corrector, node); end
def split_on_double_colon(corrector, node, padding); end
end
RuboCop::Cop::Style::ClassAndModuleChildren::COMPACT_MSG = T.let(T.unsafe(nil), String)
RuboCop::Cop::Style::ClassAndModuleChildren::NESTED_MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Style::ClassCheck < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::ConfigurableEnforcedStyle)
def autocorrect(node); end
def class_check?(node = _); end
def message(node); end
def on_send(node); end
end
RuboCop::Cop::Style::ClassCheck::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Style::ClassMethods < ::RuboCop::Cop::Cop
def autocorrect(node); end
def on_class(node); end
def on_module(node); end
private
def check_defs(name, node); end
def message(node); end
end
RuboCop::Cop::Style::ClassMethods::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Style::ClassVars < ::RuboCop::Cop::Cop
def message(node); end
def on_cvasgn(node); end
end
RuboCop::Cop::Style::ClassVars::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Style::CollectionMethods < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::MethodPreference)
def autocorrect(node); end
def on_block(node); end
def on_send(node); end
private
def check_method_node(node); end
def message(node); end
end
RuboCop::Cop::Style::CollectionMethods::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Style::ColonMethodCall < ::RuboCop::Cop::Cop
def autocorrect(node); end
def java_type_node?(node = _); end
def on_send(node); end
def self.autocorrect_incompatible_with; end
end
RuboCop::Cop::Style::ColonMethodCall::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Style::ColonMethodDefinition < ::RuboCop::Cop::Cop
def autocorrect(node); end
def on_defs(node); end
end
RuboCop::Cop::Style::ColonMethodDefinition::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Style::CommandLiteral < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::ConfigurableEnforcedStyle)
def autocorrect(node); end
def on_xstr(node); end
private
def allow_inner_backticks?; end
def allowed_backtick_literal?(node); end
def allowed_percent_x_literal?(node); end
def backtick_literal?(node); end
def check_backtick_literal(node); end
def check_percent_x_literal(node); end
def command_delimiter; end
def contains_backtick?(node); end
def contains_disallowed_backtick?(node); end
def default_delimiter; end
def message(node); end
def node_body(node); end
def preferred_delimiter; end
def preferred_delimiters_config; end
end
RuboCop::Cop::Style::CommandLiteral::MSG_USE_BACKTICKS = T.let(T.unsafe(nil), String)
RuboCop::Cop::Style::CommandLiteral::MSG_USE_PERCENT_X = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Style::CommentAnnotation < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::Style::AnnotationComment)
include(::RuboCop::Cop::RangeHelp)
def autocorrect(comment); end
def investigate(processed_source); end
private
def annotation_range(comment, margin, first_word, colon, space); end
def concat_length(*args); end
def correct_annotation?(first_word, colon, space, note); end
def first_comment_line?(comments, index); end
def inline_comment?(comment); end
end
RuboCop::Cop::Style::CommentAnnotation::MISSING_NOTE = T.let(T.unsafe(nil), String)
RuboCop::Cop::Style::CommentAnnotation::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Style::CommentedKeyword < ::RuboCop::Cop::Cop
def investigate(processed_source); end
private
def line(comment); end
def message(comment); end
def offensive?(comment); end
end
RuboCop::Cop::Style::CommentedKeyword::ALLOWED_COMMENTS = T.let(T.unsafe(nil), Array)
RuboCop::Cop::Style::CommentedKeyword::KEYWORDS = T.let(T.unsafe(nil), Array)
RuboCop::Cop::Style::CommentedKeyword::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Style::ConditionalAssignment < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::Style::ConditionalAssignmentHelper)
include(::RuboCop::Cop::ConfigurableEnforcedStyle)
def assignment_type?(node = _); end
def autocorrect(node); end
def candidate_condition?(node = _); end
def on_and_asgn(node); end
def on_case(node); end
def on_casgn(node); end
def on_cvasgn(node); end
def on_gvasgn(node); end
def on_if(node); end
def on_ivasgn(node); end
def on_lvasgn(node); end
def on_masgn(node); end
def on_op_asgn(node); end
def on_or_asgn(node); end
def on_send(node); end
private
def allowed_single_line?(branches); end
def allowed_statements?(branches); end
def allowed_ternary?(assignment); end
def assignment_node(node); end
def assignment_types_match?(*nodes); end
def candidate_node?(node); end
def check_assignment_to_condition(node); end
def check_node(node, branches); end
def correction_exceeds_line_limit?(node, branches); end
def include_ternary?; end
def indentation_width; end
def lhs_all_match?(branches); end
def line_length_cop_enabled?; end
def longest_line(node, assignment); end
def longest_line_exceeds_line_limit?(node, assignment); end
def max_line_length; end
def move_assignment_inside_condition(node); end
def move_assignment_outside_condition(node); end
def single_line_conditions_only?; end
def ternary_condition?(node); end
end
RuboCop::Cop::Style::ConditionalAssignment::ASSIGNMENT_TYPES = T.let(T.unsafe(nil), Array)
RuboCop::Cop::Style::ConditionalAssignment::ASSIGN_TO_CONDITION_MSG = T.let(T.unsafe(nil), String)
RuboCop::Cop::Style::ConditionalAssignment::ENABLED = T.let(T.unsafe(nil), String)
RuboCop::Cop::Style::ConditionalAssignment::INDENTATION_WIDTH = T.let(T.unsafe(nil), String)
RuboCop::Cop::Style::ConditionalAssignment::LINE_LENGTH = T.let(T.unsafe(nil), String)
RuboCop::Cop::Style::ConditionalAssignment::MAX = T.let(T.unsafe(nil), String)
RuboCop::Cop::Style::ConditionalAssignment::MSG = T.let(T.unsafe(nil), String)
RuboCop::Cop::Style::ConditionalAssignment::SINGLE_LINE_CONDITIONS_ONLY = T.let(T.unsafe(nil), String)
RuboCop::Cop::Style::ConditionalAssignment::VARIABLE_ASSIGNMENT_TYPES = T.let(T.unsafe(nil), Array)
RuboCop::Cop::Style::ConditionalAssignment::WIDTH = T.let(T.unsafe(nil), String)
module RuboCop::Cop::Style::ConditionalAssignmentHelper
extend(::RuboCop::AST::NodePattern::Macros)
def end_with_eq?(sym); end
def expand_elses(branch); end
def expand_when_branches(when_branches); end
def indent(cop, source); end
def lhs(node); end
def tail(branch); end
private
def assignment_rhs_exist?(node); end
def expand_elsif(node, elsif_branches = _); end
def lhs_for_send(node); end
def setter_method?(method_name); end
end
RuboCop::Cop::Style::ConditionalAssignmentHelper::ALIGN_WITH = T.let(T.unsafe(nil), String)
RuboCop::Cop::Style::ConditionalAssignmentHelper::END_ALIGNMENT = T.let(T.unsafe(nil), String)
RuboCop::Cop::Style::ConditionalAssignmentHelper::EQUAL = T.let(T.unsafe(nil), String)
RuboCop::Cop::Style::ConditionalAssignmentHelper::KEYWORD = T.let(T.unsafe(nil), String)
module RuboCop::Cop::Style::ConditionalCorrectorHelper
def assignment(node); end
def correct_branches(corrector, branches); end
def correct_if_branches(corrector, cop, node); end
def remove_whitespace_in_branches(corrector, branch, condition, column); end
def replace_branch_assignment(corrector, branch); end
def white_space_range(node, column); end
end
class RuboCop::Cop::Style::ConstantVisibility < ::RuboCop::Cop::Cop
def on_casgn(node); end
def visibility_declaration_for?(node = _, param1); end
private
def class_or_module_scope?(node); end
def match_name?(name, constant_name); end
def message(node); end
def visibility_declaration?(node); end
end
RuboCop::Cop::Style::ConstantVisibility::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Style::Copyright < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::RangeHelp)
def autocorrect(token); end
def investigate(processed_source); end
private
def autocorrect_notice; end
def encoding_token?(processed_source, token_index); end
def insert_notice_before(processed_source); end
def notice; end
def notice_found?(processed_source); end
def shebang_token?(processed_source, token_index); end
def verify_autocorrect_notice!; end
end
RuboCop::Cop::Style::Copyright::AUTOCORRECT_EMPTY_WARNING = T.let(T.unsafe(nil), String)
RuboCop::Cop::Style::Copyright::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Style::DateTime < ::RuboCop::Cop::Cop
def date_time?(node = _); end
def historic_date?(node = _); end
def on_send(node); end
def to_datetime?(node = _); end
private
def disallow_coercion?; end
end
RuboCop::Cop::Style::DateTime::CLASS_MSG = T.let(T.unsafe(nil), String)
RuboCop::Cop::Style::DateTime::COERCION_MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Style::DefWithParentheses < ::RuboCop::Cop::Cop
def autocorrect(node); end
def on_def(node); end
def on_defs(node); end
end
RuboCop::Cop::Style::DefWithParentheses::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Style::Dir < ::RuboCop::Cop::Cop
def autocorrect(node); end
def dir_replacement?(node = _); end
def on_send(node); end
private
def file_keyword?(node); end
end
RuboCop::Cop::Style::Dir::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Style::DisableCopsWithinSourceCodeDirective < ::RuboCop::Cop::Cop
def autocorrect(comment); end
def investigate(processed_source); end
private
def rubocop_directive_comment?(comment); end
end
RuboCop::Cop::Style::DisableCopsWithinSourceCodeDirective::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Style::Documentation < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::Style::AnnotationComment)
include(::RuboCop::Cop::DocumentationComment)
def constant_definition?(node = _); end
def constant_visibility_declaration?(node = _); end
def on_class(node); end
def on_module(node); end
def outer_module(node0); end
private
def check(node, body, type); end
def compact_namespace?(node); end
def constant_declaration?(node); end
def namespace?(node); end
def nodoc(node); end
def nodoc?(comment, require_all = _); end
def nodoc_comment?(node, require_all = _); end
end
RuboCop::Cop::Style::Documentation::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Style::DocumentationMethod < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::Style::AnnotationComment)
include(::RuboCop::Cop::DocumentationComment)
include(::RuboCop::Cop::DefNode)
def module_function_node?(node = _); end
def on_def(node); end
def on_defs(node); end
private
def check(node); end
def require_for_non_public_methods?; end
end
RuboCop::Cop::Style::DocumentationMethod::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Style::DoubleCopDisableDirective < ::RuboCop::Cop::Cop
def autocorrect(comment); end
def investigate(processed_source); end
end
RuboCop::Cop::Style::DoubleCopDisableDirective::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Style::DoubleNegation < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::ConfigurableEnforcedStyle)
def double_negative?(node = _); end
def on_send(node); end
private
def allowed_in_returns?(node); end
def end_of_method_definition?(node); end
def find_def_node_from_ascendant(node); end
end
RuboCop::Cop::Style::DoubleNegation::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Style::EachForSimpleLoop < ::RuboCop::Cop::Cop
def autocorrect(node); end
def offending_each_range(node = _); end
def on_block(node); end
end
RuboCop::Cop::Style::EachForSimpleLoop::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Style::EachWithObject < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::RangeHelp)
def autocorrect(node); end
def each_with_object_candidate?(node = _); end
def on_block(node); end
private
def accumulator_param_assigned_to?(body, args); end
def first_argument_returned?(args, return_value); end
def return_value(body); end
def return_value_occupies_whole_line?(node); end
def simple_method_arg?(method_arg); end
def whole_line_expression(node); end
end
RuboCop::Cop::Style::EachWithObject::METHODS = T.let(T.unsafe(nil), Array)
RuboCop::Cop::Style::EachWithObject::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Style::EmptyBlockParameter < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::EmptyParameter)
include(::RuboCop::Cop::RangeHelp)
def autocorrect(node); end
def on_block(node); end
end
RuboCop::Cop::Style::EmptyBlockParameter::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Style::EmptyCaseCondition < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::RangeHelp)
def autocorrect(case_node); end
def on_case(case_node); end
private
def correct_case_when(corrector, case_node, when_nodes); end
def correct_when_conditions(corrector, when_nodes); end
def keep_first_when_comment(case_node, first_when_node, corrector); end
end
RuboCop::Cop::Style::EmptyCaseCondition::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Style::EmptyElse < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::OnNormalIfUnless)
include(::RuboCop::Cop::ConfigurableEnforcedStyle)
include(::RuboCop::Cop::RangeHelp)
def autocorrect(node); end
def on_case(node); end
def on_normal_if_unless(node); end
private
def autocorrect_forbidden?(type); end
def base_node(node); end
def check(node); end
def comment_in_else?(node); end
def else_line_range(loc); end
def empty_check(node); end
def empty_style?; end
def missing_else_style; end
def nil_check(node); end
def nil_style?; end
end
RuboCop::Cop::Style::EmptyElse::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Style::EmptyLambdaParameter < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::EmptyParameter)
include(::RuboCop::Cop::RangeHelp)
def autocorrect(node); end
def on_block(node); end
end
RuboCop::Cop::Style::EmptyLambdaParameter::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Style::EmptyLiteral < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::FrozenStringLiteral)
include(::RuboCop::Cop::RangeHelp)
def array_node(node = _); end
def array_with_block(node = _); end
def autocorrect(node); end
def hash_node(node = _); end
def hash_with_block(node = _); end
def on_send(node); end
def str_node(node = _); end
private
def correction(node); end
def enforce_double_quotes?; end
def first_argument_unparenthesized?(node); end
def offense_array_node?(node); end
def offense_hash_node?(node); end
def preferred_string_literal; end
def replacement_range(node); end
def string_literals_config; end
end
RuboCop::Cop::Style::EmptyLiteral::ARR_MSG = T.let(T.unsafe(nil), String)
RuboCop::Cop::Style::EmptyLiteral::HASH_MSG = T.let(T.unsafe(nil), String)
RuboCop::Cop::Style::EmptyLiteral::STR_MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Style::EmptyMethod < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::ConfigurableEnforcedStyle)
def autocorrect(node); end
def on_def(node); end
def on_defs(node); end
private
def compact?(node); end
def compact_style?; end
def correct_style?(node); end
def corrected(node); end
def expanded?(node); end
def expanded_style?; end
def joint(node); end
def message(_node); end
end
RuboCop::Cop::Style::EmptyMethod::MSG_COMPACT = T.let(T.unsafe(nil), String)
RuboCop::Cop::Style::EmptyMethod::MSG_EXPANDED = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Style::Encoding < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::RangeHelp)
def autocorrect(range); end
def investigate(processed_source); end
private
def encoding_line_number(processed_source); end
def encoding_omitable?(line); end
def offense(processed_source, line_number); end
end
RuboCop::Cop::Style::Encoding::ENCODING_PATTERN = T.let(T.unsafe(nil), Regexp)
RuboCop::Cop::Style::Encoding::MSG_UNNECESSARY = T.let(T.unsafe(nil), String)
RuboCop::Cop::Style::Encoding::SHEBANG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Style::EndBlock < ::RuboCop::Cop::Cop
def autocorrect(node); end
def on_postexe(node); end
end
RuboCop::Cop::Style::EndBlock::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Style::EvalWithLocation < ::RuboCop::Cop::Cop
def eval_without_location?(node = _); end
def line_with_offset?(node = _, param1, param2); end
def on_send(node); end
private
def add_offense_for_different_line(node, line_node, line_diff); end
def add_offense_for_same_line(node, line_node); end
def message_incorrect_line(actual, sign, line_diff); end
def on_with_lineno(node, code); end
def special_file_keyword?(node); end
def special_line_keyword?(node); end
def string_first_line(str_node); end
def with_lineno?(node); end
end
RuboCop::Cop::Style::EvalWithLocation::MSG = T.let(T.unsafe(nil), String)
RuboCop::Cop::Style::EvalWithLocation::MSG_INCORRECT_LINE = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Style::EvenOdd < ::RuboCop::Cop::Cop
def autocorrect(node); end
def even_odd_candidate?(node = _); end
def on_send(node); end
private
def replacement_method(arg, method); end
end
RuboCop::Cop::Style::EvenOdd::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Style::ExpandPathArguments < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::RangeHelp)
def autocorrect(node); end
def file_expand_path(node = _); end
def on_send(node); end
def pathname_new_parent_expand_path(node = _); end
def pathname_parent_expand_path(node = _); end
private
def arguments_range(node); end
def autocorrect_expand_path(corrector, current_path, default_dir); end
def depth(current_path); end
def inspect_offense_for_expand_path(node, current_path, default_dir); end
def parent_path(current_path); end
def remove_parent_method(corrector, default_dir); end
def strip_surrounded_quotes!(path_string); end
def unrecommended_argument?(default_dir); end
end
RuboCop::Cop::Style::ExpandPathArguments::MSG = T.let(T.unsafe(nil), String)
RuboCop::Cop::Style::ExpandPathArguments::PATHNAME_MSG = T.let(T.unsafe(nil), String)
RuboCop::Cop::Style::ExpandPathArguments::PATHNAME_NEW_MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Style::ExponentialNotation < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::ConfigurableEnforcedStyle)
def on_float(node); end
private
def engineering?(node); end
def integral(node); end
def message(_node); end
def offense?(node); end
def scientific?(node); end
end
class RuboCop::Cop::Style::FloatDivision < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::ConfigurableEnforcedStyle)
def any_coerce?(node = _); end
def both_coerce?(node = _); end
def left_coerce?(node = _); end
def on_send(node); end
def right_coerce?(node = _); end
private
def message(_node); end
def offense_condition?(node); end
end
class RuboCop::Cop::Style::For < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::ConfigurableEnforcedStyle)
include(::RuboCop::Cop::RangeHelp)
def autocorrect(node); end
def on_block(node); end
def on_for(node); end
private
def suspect_enumerable?(node); end
end
RuboCop::Cop::Style::For::EACH_LENGTH = T.let(T.unsafe(nil), Integer)
RuboCop::Cop::Style::For::PREFER_EACH = T.let(T.unsafe(nil), String)
RuboCop::Cop::Style::For::PREFER_FOR = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Style::FormatString < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::ConfigurableEnforcedStyle)
def autocorrect(node); end
def formatter(node = _); end
def message(detected_style); end
def method_name(style_name); end
def on_send(node); end
def variable_argument?(node = _); end
private
def autocorrect_from_percent(corrector, node); end
def autocorrect_to_percent(corrector, node); end
end
RuboCop::Cop::Style::FormatString::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Style::FormatStringToken < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::ConfigurableEnforcedStyle)
def format_string_in_typical_context?(node = _); end
def on_str(node); end
private
def message(detected_style); end
def message_text(style); end
def str_contents(source_map); end
def token_ranges(contents); end
def tokens(str_node, &block); end
def unannotated_format?(node, detected_style); end
end
class RuboCop::Cop::Style::FrozenStringLiteralComment < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::ConfigurableEnforcedStyle)
include(::RuboCop::Cop::FrozenStringLiteral)
include(::RuboCop::Cop::RangeHelp)
def autocorrect(node); end
def investigate(processed_source); end
private
def disabled_offense(processed_source); end
def enable_comment(corrector); end
def ensure_comment(processed_source); end
def ensure_enabled_comment(processed_source); end
def ensure_no_comment(processed_source); end
def following_comment; end
def frozen_string_literal_comment(processed_source); end
def insert_comment(corrector); end
def last_special_comment(processed_source); end
def line_range(line); end
def missing_offense(processed_source); end
def missing_true_offense(processed_source); end
def preceding_comment; end
def remove_comment(corrector, node); end
def unnecessary_comment_offense(processed_source); end
end
RuboCop::Cop::Style::FrozenStringLiteralComment::MSG_DISABLED = T.let(T.unsafe(nil), String)
RuboCop::Cop::Style::FrozenStringLiteralComment::MSG_MISSING = T.let(T.unsafe(nil), String)
RuboCop::Cop::Style::FrozenStringLiteralComment::MSG_MISSING_TRUE = T.let(T.unsafe(nil), String)
RuboCop::Cop::Style::FrozenStringLiteralComment::MSG_UNNECESSARY = T.let(T.unsafe(nil), String)
RuboCop::Cop::Style::FrozenStringLiteralComment::SHEBANG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Style::GlobalVars < ::RuboCop::Cop::Cop
def allowed_var?(global_var); end
def check(node); end
def on_gvar(node); end
def on_gvasgn(node); end
def user_vars; end
end
RuboCop::Cop::Style::GlobalVars::BUILT_IN_VARS = T.let(T.unsafe(nil), Array)
RuboCop::Cop::Style::GlobalVars::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Style::GuardClause < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::MinBodyLength)
include(::RuboCop::Cop::LineLengthHelp)
include(::RuboCop::Cop::StatementModifier)
def on_def(node); end
def on_defs(node); end
def on_if(node); end
private
def accepted_form?(node, ending = _); end
def accepted_if?(node, ending); end
def check_ending_if(node); end
def guard_clause_source(guard_clause); end
def opposite_keyword(node); end
def register_offense(node, scope_exiting_keyword, conditional_keyword); end
def too_long_for_single_line?(node, example); end
end
RuboCop::Cop::Style::GuardClause::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Style::HashEachMethods < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::Lint::UnusedArgument)
def autocorrect(node); end
def kv_each(node = _); end
def on_block(node); end
private
def check_argument(variable); end
def correct_args(node, corrector); end
def correct_implicit(node, corrector, method_name); end
def correct_key_value_each(node, corrector); end
def kv_range(outer_node); end
def register_kv_offense(node); end
def used?(arg); end
end
RuboCop::Cop::Style::HashEachMethods::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Style::HashSyntax < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::ConfigurableEnforcedStyle)
include(::RuboCop::Cop::RangeHelp)
def alternative_style; end
def autocorrect(node); end
def hash_rockets_check(pairs); end
def no_mixed_keys_check(pairs); end
def on_hash(node); end
def ruby19_check(pairs); end
def ruby19_no_mixed_keys_check(pairs); end
private
def acceptable_19_syntax_symbol?(sym_name); end
def argument_without_space?(node); end
def autocorrect_hash_rockets(corrector, pair_node); end
def autocorrect_no_mixed_keys(corrector, pair_node); end
def autocorrect_ruby19(corrector, pair_node); end
def check(pairs, delim, msg); end
def force_hash_rockets?(pairs); end
def range_for_autocorrect_ruby19(pair_node); end
def sym_indices?(pairs); end
def word_symbol_pair?(pair); end
end
RuboCop::Cop::Style::HashSyntax::MSG_19 = T.let(T.unsafe(nil), String)
RuboCop::Cop::Style::HashSyntax::MSG_HASH_ROCKETS = T.let(T.unsafe(nil), String)
RuboCop::Cop::Style::HashSyntax::MSG_NO_MIXED_KEYS = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Style::HashTransformKeys < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::HashTransformMethod)
extend(::RuboCop::Cop::TargetRubyVersion)
def on_bad_each_with_object(node = _); end
def on_bad_hash_brackets_map(node = _); end
def on_bad_map_to_h(node = _); end
private
def extract_captures(match); end
def new_method_name; end
end
class RuboCop::Cop::Style::HashTransformValues < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::HashTransformMethod)
def on_bad_each_with_object(node = _); end
def on_bad_hash_brackets_map(node = _); end
def on_bad_map_to_h(node = _); end
private
def extract_captures(match); end
def new_method_name; end
end
class RuboCop::Cop::Style::IdenticalConditionalBranches < ::RuboCop::Cop::Cop
def on_case(node); end
def on_if(node); end
private
def check_branches(branches); end
def check_expressions(expressions); end
def expand_elses(branch); end
def head(node); end
def message(node); end
def tail(node); end
end
RuboCop::Cop::Style::IdenticalConditionalBranches::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Style::IfCorrector
extend(::RuboCop::Cop::Style::ConditionalAssignmentHelper)
extend(::RuboCop::Cop::Style::ConditionalCorrectorHelper)
def self.correct(cop, node); end
def self.move_assignment_inside_condition(node); end
end
class RuboCop::Cop::Style::IfInsideElse < ::RuboCop::Cop::Cop
def on_if(node); end
private
def allow_if_modifier?; end
def allow_if_modifier_in_else_branch?(else_branch); end
end
RuboCop::Cop::Style::IfInsideElse::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Style::IfUnlessModifier < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::LineLengthHelp)
include(::RuboCop::Cop::StatementModifier)
include(::RuboCop::Cop::IgnoredPattern)
def autocorrect(node); end
def on_if(node); end
private
def another_statement_on_same_line?(node); end
def eligible_node?(node); end
def first_line_comment(node); end
def ignored_patterns; end
def line_length_enabled_at_line?(line); end
def named_capture_in_condition?(node); end
def non_eligible_if?(node); end
def parenthesize?(node); end
def to_modifier_form(node); end
def to_normal_form(node); end
def too_long_due_to_modifier?(node); end
def too_long_line_based_on_allow_uri?(line); end
def too_long_line_based_on_config?(range, line); end
def too_long_line_based_on_ignore_cop_directives?(range, line); end
def too_long_single_line?(node); end
end
RuboCop::Cop::Style::IfUnlessModifier::ASSIGNMENT_TYPES = T.let(T.unsafe(nil), Array)
RuboCop::Cop::Style::IfUnlessModifier::MSG_USE_MODIFIER = T.let(T.unsafe(nil), String)
RuboCop::Cop::Style::IfUnlessModifier::MSG_USE_NORMAL = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Style::IfUnlessModifierOfIfUnless < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::LineLengthHelp)
include(::RuboCop::Cop::StatementModifier)
def on_if(node); end
end
RuboCop::Cop::Style::IfUnlessModifierOfIfUnless::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Style::IfWithSemicolon < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::OnNormalIfUnless)
def autocorrect(node); end
def on_normal_if_unless(node); end
private
def correct_to_ternary(node); end
end
RuboCop::Cop::Style::IfWithSemicolon::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Style::ImplicitRuntimeError < ::RuboCop::Cop::Cop
def implicit_runtime_error_raise_or_fail(node = _); end
def on_send(node); end
end
RuboCop::Cop::Style::ImplicitRuntimeError::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Style::InfiniteLoop < ::RuboCop::Cop::Cop
def after_leaving_scope(scope, _variable_table); end
def autocorrect(node); end
def join_force?(force_class); end
def on_until(node); end
def on_until_post(node); end
def on_while(node); end
def on_while_post(node); end
private
def assigned_before_loop?(var, range); end
def assigned_inside_loop?(var, range); end
def configured_indent; end
def modifier_replacement(node); end
def non_modifier_range(node); end
def referenced_after_loop?(var, range); end
def replace_begin_end_with_modifier(node); end
def replace_source(range, replacement); end
def while_or_until(node); end
end
RuboCop::Cop::Style::InfiniteLoop::LEADING_SPACE = T.let(T.unsafe(nil), Regexp)
RuboCop::Cop::Style::InfiniteLoop::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Style::InlineComment < ::RuboCop::Cop::Cop
def investigate(processed_source); end
end
RuboCop::Cop::Style::InlineComment::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Style::InverseMethods < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::RangeHelp)
def autocorrect(node); end
def correct_inverse_block(node); end
def correct_inverse_method(node); end
def correct_inverse_selector(block, corrector); end
def inverse_block?(node = _); end
def inverse_candidate?(node = _); end
def on_block(node); end
def on_send(node); end
private
def camel_case_constant?(node); end
def dot_range(loc); end
def end_parentheses(node, method_call); end
def inverse_blocks; end
def inverse_methods; end
def negated?(node); end
def not_to_receiver(node, method_call); end
def possible_class_hierarchy_check?(lhs, rhs, method); end
def remove_end_parenthesis(corrector, node, method, method_call); end
def self.autocorrect_incompatible_with; end
end
RuboCop::Cop::Style::InverseMethods::CAMEL_CASE = T.let(T.unsafe(nil), Regexp)
RuboCop::Cop::Style::InverseMethods::CLASS_COMPARISON_METHODS = T.let(T.unsafe(nil), Array)
RuboCop::Cop::Style::InverseMethods::EQUALITY_METHODS = T.let(T.unsafe(nil), Array)
RuboCop::Cop::Style::InverseMethods::MSG = T.let(T.unsafe(nil), String)
RuboCop::Cop::Style::InverseMethods::NEGATED_EQUALITY_METHODS = T.let(T.unsafe(nil), Array)
class RuboCop::Cop::Style::IpAddresses < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::StringHelp)
def correct_style_detected; end
def offense?(node); end
def opposite_style_detected; end
private
def allowed_addresses; end
def could_be_ip?(str); end
def starts_with_hex_or_colon?(str); end
def too_long?(str); end
end
RuboCop::Cop::Style::IpAddresses::IPV6_MAX_SIZE = T.let(T.unsafe(nil), Integer)
RuboCop::Cop::Style::IpAddresses::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Style::Lambda < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::ConfigurableEnforcedStyle)
def autocorrect(node); end
def on_block(node); end
def on_numblock(node); end
private
def arguments_with_whitespace(node); end
def autocorrect_method_to_literal(corrector, node); end
def lambda_arg_string(args); end
def message(node, selector); end
def message_line_modifier(node); end
def offending_selector?(node, selector); end
end
RuboCop::Cop::Style::Lambda::LITERAL_MESSAGE = T.let(T.unsafe(nil), String)
RuboCop::Cop::Style::Lambda::METHOD_MESSAGE = T.let(T.unsafe(nil), String)
RuboCop::Cop::Style::Lambda::OFFENDING_SELECTORS = T.let(T.unsafe(nil), Hash)
class RuboCop::Cop::Style::LambdaCall < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::ConfigurableEnforcedStyle)
def autocorrect(node); end
def on_send(node); end
private
def explicit_style?; end
def implicit_style?; end
def message(_node); end
def offense?(node); end
end
class RuboCop::Cop::Style::LineEndConcatenation < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::RangeHelp)
def autocorrect(operator_range); end
def investigate(processed_source); end
private
def check_token_set(index); end
def eligible_next_successor?(next_successor); end
def eligible_operator?(operator); end
def eligible_predecessor?(predecessor); end
def eligible_successor?(successor); end
def eligible_token_set?(predecessor, operator, successor); end
def standard_string_literal?(token); end
def token_after_last_string(successor, base_index); end
def self.autocorrect_incompatible_with; end
end
RuboCop::Cop::Style::LineEndConcatenation::COMPLEX_STRING_BEGIN_TOKEN = T.let(T.unsafe(nil), Symbol)
RuboCop::Cop::Style::LineEndConcatenation::COMPLEX_STRING_END_TOKEN = T.let(T.unsafe(nil), Symbol)
RuboCop::Cop::Style::LineEndConcatenation::CONCAT_TOKEN_TYPES = T.let(T.unsafe(nil), Array)
RuboCop::Cop::Style::LineEndConcatenation::HIGH_PRECEDENCE_OP_TOKEN_TYPES = T.let(T.unsafe(nil), Array)
RuboCop::Cop::Style::LineEndConcatenation::MSG = T.let(T.unsafe(nil), String)
RuboCop::Cop::Style::LineEndConcatenation::QUOTE_DELIMITERS = T.let(T.unsafe(nil), Array)
RuboCop::Cop::Style::LineEndConcatenation::SIMPLE_STRING_TOKEN_TYPE = T.let(T.unsafe(nil), Symbol)
class RuboCop::Cop::Style::MethodCallWithArgsParentheses < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::ConfigurableEnforcedStyle)
include(::RuboCop::Cop::IgnoredMethods)
include(::RuboCop::Cop::IgnoredPattern)
def initialize(*_); end
def autocorrect(_node); end
private
def args_begin(node); end
def args_end(node); end
def args_parenthesized?(node); end
end
module RuboCop::Cop::Style::MethodCallWithArgsParentheses::OmitParentheses
def autocorrect(node); end
def message(_node = _); end
def on_csend(node); end
def on_send(node); end
def on_super(node); end
def on_yield(node); end
private
def allowed_camel_case_method_call?(node); end
def allowed_chained_call_with_parentheses?(node); end
def allowed_multiline_call_with_parentheses?(node); end
def ambigious_literal?(node); end
def assigned_before?(node, target); end
def call_as_argument_or_chain?(node); end
def call_in_literals?(node); end
def call_in_logical_operators?(node); end
def call_in_optional_arguments?(node); end
def call_with_ambiguous_arguments?(node); end
def call_with_braced_block?(node); end
def hash_literal?(node); end
def hash_literal_in_arguments?(node); end
def legitimate_call_with_parentheses?(node); end
def logical_operator?(node); end
def parentheses_at_the_end_of_multiline_call?(node); end
def regexp_slash_literal?(node); end
def splat?(node); end
def super_call_without_arguments?(node); end
def ternary_if?(node); end
def unary_literal?(node); end
end
RuboCop::Cop::Style::MethodCallWithArgsParentheses::OmitParentheses::TRAILING_WHITESPACE_REGEX = T.let(T.unsafe(nil), Regexp)
module RuboCop::Cop::Style::MethodCallWithArgsParentheses::RequireParentheses
def autocorrect(node); end
def message(_node = _); end
def on_csend(node); end
def on_send(node); end
def on_super(node); end
def on_yield(node); end
private
def eligible_for_parentheses_omission?(node); end
def ignored_macro?(node); end
def included_macros_list; end
end
class RuboCop::Cop::Style::MethodCallWithoutArgsParentheses < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::IgnoredMethods)
def autocorrect(node); end
def on_send(node); end
private
def any_assignment?(node); end
def ineligible_node?(node); end
def same_name_assignment?(node); end
def variable_in_mass_assignment?(variable_name, node); end
end
RuboCop::Cop::Style::MethodCallWithoutArgsParentheses::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Style::MethodCalledOnDoEndBlock < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::RangeHelp)
def on_block(node); end
def on_csend(node); end
def on_send(node); end
end
RuboCop::Cop::Style::MethodCalledOnDoEndBlock::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Style::MethodDefParentheses < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::ConfigurableEnforcedStyle)
include(::RuboCop::Cop::RangeHelp)
def autocorrect(node); end
def on_def(node); end
def on_defs(node); end
private
def arguments_without_parentheses?(node); end
def correct_arguments(arg_node, corrector); end
def correct_definition(def_node, corrector); end
def missing_parentheses(node); end
def require_parentheses?(args); end
def unwanted_parentheses(args); end
end
RuboCop::Cop::Style::MethodDefParentheses::MSG_MISSING = T.let(T.unsafe(nil), String)
RuboCop::Cop::Style::MethodDefParentheses::MSG_PRESENT = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Style::MethodMissingSuper < ::RuboCop::Cop::Cop
def on_def(node); end
def on_defs(node); end
end
RuboCop::Cop::Style::MethodMissingSuper::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Style::MinMax < ::RuboCop::Cop::Cop
def autocorrect(node); end
def min_max_candidate(node = _); end
def on_array(node); end
def on_return(node); end
private
def argument_range(node); end
def message(offender, receiver); end
def offending_range(node); end
end
RuboCop::Cop::Style::MinMax::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Style::MissingElse < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::OnNormalIfUnless)
include(::RuboCop::Cop::ConfigurableEnforcedStyle)
def on_case(node); end
def on_normal_if_unless(node); end
private
def case_style?; end
def check(node); end
def empty_else_config; end
def empty_else_cop_enabled?; end
def empty_else_style; end
def if_style?; end
def message(node); end
def unless_else_config; end
def unless_else_cop_enabled?; end
end
RuboCop::Cop::Style::MissingElse::MSG = T.let(T.unsafe(nil), String)
RuboCop::Cop::Style::MissingElse::MSG_EMPTY = T.let(T.unsafe(nil), String)
RuboCop::Cop::Style::MissingElse::MSG_NIL = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Style::MissingRespondToMissing < ::RuboCop::Cop::Cop
def on_def(node); end
def on_defs(node); end
private
def implements_respond_to_missing?(node); end
end
RuboCop::Cop::Style::MissingRespondToMissing::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Style::MixinGrouping < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::ConfigurableEnforcedStyle)
def autocorrect(node); end
def on_class(node); end
def on_module(node); end
private
def check(send_node); end
def check_grouped_style(send_node); end
def check_separated_style(send_node); end
def group_mixins(node, mixins); end
def grouped_style?; end
def indent(node); end
def message(send_node); end
def range_to_remove_for_subsequent_mixin(mixins, node); end
def separate_mixins(node); end
def separated_style?; end
def sibling_mixins(send_node); end
end
RuboCop::Cop::Style::MixinGrouping::MIXIN_METHODS = T.let(T.unsafe(nil), Array)
RuboCop::Cop::Style::MixinGrouping::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Style::MixinUsage < ::RuboCop::Cop::Cop
def include_statement(node = _); end
def on_send(node); end
def wrapped_macro_scope?(node = _); end
private
def accepted_include?(node); end
def ascend_macro_scope?(ancestor); end
def belongs_to_class_or_module?(node); end
end
RuboCop::Cop::Style::MixinUsage::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Style::ModuleFunction < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::ConfigurableEnforcedStyle)
def autocorrect(node); end
def extend_self_node?(node = _); end
def module_function_node?(node = _); end
def on_module(node); end
def private_directive?(node = _); end
private
def check_extend_self(nodes); end
def check_forbidden(nodes); end
def check_module_function(nodes); end
def each_wrong_style(nodes, &block); end
def message(_node); end
end
RuboCop::Cop::Style::ModuleFunction::EXTEND_SELF_MSG = T.let(T.unsafe(nil), String)
RuboCop::Cop::Style::ModuleFunction::FORBIDDEN_MSG = T.let(T.unsafe(nil), String)
RuboCop::Cop::Style::ModuleFunction::MODULE_FUNCTION_MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Style::MultilineBlockChain < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::RangeHelp)
def on_block(node); end
end
RuboCop::Cop::Style::MultilineBlockChain::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Style::MultilineIfModifier < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::LineLengthHelp)
include(::RuboCop::Cop::StatementModifier)
include(::RuboCop::Cop::Alignment)
def autocorrect(node); end
def on_if(node); end
private
def configured_indentation_width; end
def indented_body(body, node); end
def message(node); end
def to_normal_if(node); end
end
RuboCop::Cop::Style::MultilineIfModifier::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Style::MultilineIfThen < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::OnNormalIfUnless)
include(::RuboCop::Cop::RangeHelp)
def autocorrect(node); end
def on_normal_if_unless(node); end
private
def non_modifier_then?(node); end
end
RuboCop::Cop::Style::MultilineIfThen::MSG = T.let(T.unsafe(nil), String)
RuboCop::Cop::Style::MultilineIfThen::NON_MODIFIER_THEN = T.let(T.unsafe(nil), Regexp)
class RuboCop::Cop::Style::MultilineMemoization < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::ConfigurableEnforcedStyle)
def autocorrect(node); end
def on_or_asgn(node); end
private
def bad_rhs?(rhs); end
def keyword_autocorrect(node, corrector); end
def keyword_begin_str(node, node_buf); end
def keyword_end_str(node, node_buf); end
end
RuboCop::Cop::Style::MultilineMemoization::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Style::MultilineMethodSignature < ::RuboCop::Cop::Cop
def on_def(node); end
def on_defs(node); end
private
def closing_line(node); end
def correction_exceeds_max_line_length?(node); end
def definition_width(node); end
def indentation_width(node); end
def max_line_length; end
def opening_line(node); end
end
RuboCop::Cop::Style::MultilineMethodSignature::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Style::MultilineTernaryOperator < ::RuboCop::Cop::Cop
def on_if(node); end
end
RuboCop::Cop::Style::MultilineTernaryOperator::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Style::MultilineWhenThen < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::RangeHelp)
def accept_node_type?(node); end
def autocorrect(node); end
def on_when(node); end
def require_then?(when_node); end
end
RuboCop::Cop::Style::MultilineWhenThen::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Style::MultipleComparison < ::RuboCop::Cop::Cop
def on_or(node); end
def simple_comparison?(node = _); end
def simple_double_comparison?(node = _); end
private
def comparison?(node); end
def nested_comparison?(node); end
def nested_variable_comparison?(node); end
def root_of_or_node(or_node); end
def variable_name(node); end
def variables_in_node(node); end
def variables_in_simple_node(node); end
end
RuboCop::Cop::Style::MultipleComparison::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Style::MutableConstant < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::FrozenStringLiteral)
include(::RuboCop::Cop::ConfigurableEnforcedStyle)
def autocorrect(node); end
def on_casgn(node); end
def on_or_asgn(node); end
def operation_produces_immutable_object?(node = _); end
def range_enclosed_in_parentheses?(node = _); end
def splat_value(node = _); end
private
def check(value); end
def correct_splat_expansion(corrector, expr, splat_value); end
def frozen_string_literal?(node); end
def immutable_literal?(node); end
def mutable_literal?(value); end
def on_assignment(value); end
def requires_parentheses?(node); end
def strict_check(value); end
end
RuboCop::Cop::Style::MutableConstant::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Style::NegatedIf < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::ConfigurableEnforcedStyle)
include(::RuboCop::Cop::NegativeConditional)
def autocorrect(node); end
def on_if(node); end
private
def correct_style?(node); end
def message(node); end
end
class RuboCop::Cop::Style::NegatedUnless < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::ConfigurableEnforcedStyle)
include(::RuboCop::Cop::NegativeConditional)
def autocorrect(node); end
def on_if(node); end
private
def correct_style?(node); end
def message(node); end
end
class RuboCop::Cop::Style::NegatedWhile < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::NegativeConditional)
def autocorrect(node); end
def on_until(node); end
def on_while(node); end
private
def message(node); end
end
class RuboCop::Cop::Style::NestedModifier < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::RangeHelp)
def add_parentheses_to_method_arguments(send_node); end
def autocorrect(node); end
def check(node); end
def left_hand_operand(node, operator); end
def modifier?(node); end
def new_expression(inner_node); end
def on_if(node); end
def on_until(node); end
def on_while(node); end
def replacement_operator(keyword); end
def requires_parens?(node); end
def right_hand_operand(node, left_hand_keyword); end
end
RuboCop::Cop::Style::NestedModifier::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Style::NestedParenthesizedCalls < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::RangeHelp)
def autocorrect(nested); end
def on_csend(node); end
def on_send(node); end
private
def allowed?(send_node); end
def allowed_methods; end
def allowed_omission?(send_node); end
end
RuboCop::Cop::Style::NestedParenthesizedCalls::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Style::NestedTernaryOperator < ::RuboCop::Cop::Cop
def on_if(node); end
end
RuboCop::Cop::Style::NestedTernaryOperator::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Style::Next < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::ConfigurableEnforcedStyle)
include(::RuboCop::Cop::MinBodyLength)
include(::RuboCop::Cop::RangeHelp)
def autocorrect(node); end
def investigate(_processed_source); end
def on_block(node); end
def on_for(node); end
def on_until(node); end
def on_while(node); end
private
def actual_indent(lines, buffer); end
def allowed_modifier_if?(node); end
def autocorrect_block(corrector, node); end
def autocorrect_modifier(corrector, node); end
def check(node); end
def cond_range(node, cond); end
def end_followed_by_whitespace_only?(source_buffer, end_pos); end
def end_range(node); end
def ends_with_condition?(body); end
def exit_body_type?(node); end
def heredoc_lines(node); end
def if_else_children?(node); end
def if_without_else?(node); end
def offense_location(offense_node); end
def offense_node(body); end
def reindent(lines, node, corrector); end
def reindent_line(corrector, lineno, delta, buffer); end
def reindentable_lines(node); end
def simple_if_without_break?(node); end
def self.autocorrect_incompatible_with; end
end
RuboCop::Cop::Style::Next::EXIT_TYPES = T.let(T.unsafe(nil), Array)
RuboCop::Cop::Style::Next::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Style::NilComparison < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::ConfigurableEnforcedStyle)
def autocorrect(node); end
def nil_check?(node = _); end
def nil_comparison?(node = _); end
def on_send(node); end
private
def message(_node); end
def prefer_comparison?; end
def style_check?(node, &block); end
end
RuboCop::Cop::Style::NilComparison::EXPLICIT_MSG = T.let(T.unsafe(nil), String)
RuboCop::Cop::Style::NilComparison::PREDICATE_MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Style::NonNilCheck < ::RuboCop::Cop::Cop
def autocorrect(node); end
def nil_check?(node = _); end
def not_and_nil_check?(node = _); end
def not_equal_to_nil?(node = _); end
def on_def(node); end
def on_defs(node); end
def on_send(node); end
def unless_check?(node = _); end
private
def autocorrect_comparison(node); end
def autocorrect_non_nil(node, inner_node); end
def autocorrect_unless_nil(node, receiver); end
def include_semantic_changes?; end
def message(node); end
def unless_and_nil_check?(send_node); end
end
class RuboCop::Cop::Style::Not < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::RangeHelp)
def autocorrect(node); end
def on_send(node); end
private
def correct_opposite_method(range, child); end
def correct_with_parens(range, node); end
def correct_without_parens(range); end
def opposite_method?(child); end
def requires_parens?(child); end
end
RuboCop::Cop::Style::Not::MSG = T.let(T.unsafe(nil), String)
RuboCop::Cop::Style::Not::OPPOSITE_METHODS = T.let(T.unsafe(nil), Hash)
class RuboCop::Cop::Style::NumericLiteralPrefix < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::IntegerNode)
def autocorrect(node); end
def on_int(node); end
private
def format_binary(source); end
def format_decimal(source); end
def format_hex(source); end
def format_octal(source); end
def format_octal_zero_only(source); end
def hex_bin_dec_literal_type(literal); end
def literal_type(node); end
def message(node); end
def octal_literal_type(literal); end
def octal_zero_only?; end
end
RuboCop::Cop::Style::NumericLiteralPrefix::BINARY_MSG = T.let(T.unsafe(nil), String)
RuboCop::Cop::Style::NumericLiteralPrefix::BINARY_REGEX = T.let(T.unsafe(nil), Regexp)
RuboCop::Cop::Style::NumericLiteralPrefix::DECIMAL_MSG = T.let(T.unsafe(nil), String)
RuboCop::Cop::Style::NumericLiteralPrefix::DECIMAL_REGEX = T.let(T.unsafe(nil), Regexp)
RuboCop::Cop::Style::NumericLiteralPrefix::HEX_MSG = T.let(T.unsafe(nil), String)
RuboCop::Cop::Style::NumericLiteralPrefix::HEX_REGEX = T.let(T.unsafe(nil), Regexp)
RuboCop::Cop::Style::NumericLiteralPrefix::OCTAL_MSG = T.let(T.unsafe(nil), String)
RuboCop::Cop::Style::NumericLiteralPrefix::OCTAL_REGEX = T.let(T.unsafe(nil), Regexp)
RuboCop::Cop::Style::NumericLiteralPrefix::OCTAL_ZERO_ONLY_MSG = T.let(T.unsafe(nil), String)
RuboCop::Cop::Style::NumericLiteralPrefix::OCTAL_ZERO_ONLY_REGEX = T.let(T.unsafe(nil), Regexp)
class RuboCop::Cop::Style::NumericLiterals < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::ConfigurableMax)
include(::RuboCop::Cop::IntegerNode)
def autocorrect(node); end
def on_float(node); end
def on_int(node); end
private
def check(node); end
def format_int_part(int_part); end
def format_number(node); end
def max_parameter_name; end
def min_digits; end
def short_group_regex; end
end
RuboCop::Cop::Style::NumericLiterals::DELIMITER_REGEXP = T.let(T.unsafe(nil), Regexp)
RuboCop::Cop::Style::NumericLiterals::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Style::NumericPredicate < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::ConfigurableEnforcedStyle)
include(::RuboCop::Cop::IgnoredMethods)
def autocorrect(node); end
def comparison(node = _); end
def inverted_comparison(node = _); end
def on_send(node); end
def predicate(node = _); end
private
def check(node); end
def invert; end
def parenthesized_source(node); end
def replacement(numeric, operation); end
def require_parentheses?(node); end
end
RuboCop::Cop::Style::NumericPredicate::MSG = T.let(T.unsafe(nil), String)
RuboCop::Cop::Style::NumericPredicate::REPLACEMENTS = T.let(T.unsafe(nil), Hash)
class RuboCop::Cop::Style::OneLineConditional < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::OnNormalIfUnless)
def autocorrect(node); end
def on_normal_if_unless(node); end
private
def expr_replacement(node); end
def keyword_with_changed_precedence?(node); end
def message(node); end
def method_call_with_changed_precedence?(node); end
def replacement(node); end
def requires_parentheses?(node); end
def to_ternary(node); end
end
RuboCop::Cop::Style::OneLineConditional::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Style::OptionHash < ::RuboCop::Cop::Cop
def on_args(node); end
def option_hash(node = _); end
private
def allowlist; end
def super_used?(node); end
def suspicious_name?(arg_name); end
end
RuboCop::Cop::Style::OptionHash::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Style::OptionalArguments < ::RuboCop::Cop::Cop
def on_def(node); end
private
def argument_positions(arguments); end
def each_misplaced_optional_arg(arguments); end
end
RuboCop::Cop::Style::OptionalArguments::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Style::OrAssignment < ::RuboCop::Cop::Cop
def autocorrect(node); end
def on_cvasgn(node); end
def on_gvasgn(node); end
def on_if(node); end
def on_ivasgn(node); end
def on_lvasgn(node); end
def ternary_assignment?(node = _); end
def unless_assignment?(node = _); end
private
def take_variable_and_default_from_ternary(node); end
def take_variable_and_default_from_unless(node); end
end
RuboCop::Cop::Style::OrAssignment::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Style::ParallelAssignment < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::RescueNode)
def autocorrect(node); end
def implicit_self_getter?(node = _); end
def on_masgn(node); end
private
def add_self_to_getters(right_elements); end
def allowed_lhs?(node); end
def allowed_masign?(lhs_elements, rhs_elements); end
def allowed_rhs?(node); end
def assignment_corrector(node, order); end
def find_valid_order(left_elements, right_elements); end
def modifier_statement?(node); end
def return_of_method_call?(node); end
end
class RuboCop::Cop::Style::ParallelAssignment::AssignmentSorter
include(::TSort)
extend(::RuboCop::AST::NodePattern::Macros)
def initialize(assignments); end
def accesses?(rhs, lhs); end
def dependency?(lhs, rhs); end
def matching_calls(node0, param1, param2); end
def tsort_each_child(assignment); end
def tsort_each_node; end
def uses_var?(node0, param1); end
def var_name(node = _); end
end
class RuboCop::Cop::Style::ParallelAssignment::GenericCorrector
include(::RuboCop::Cop::Alignment)
def initialize(node, config, new_elements); end
def config; end
def correction; end
def correction_range; end
def node; end
protected
def assignment; end
private
def cop_config; end
def extract_sources(node); end
def source(node); end
end
RuboCop::Cop::Style::ParallelAssignment::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Style::ParallelAssignment::ModifierCorrector < ::RuboCop::Cop::Style::ParallelAssignment::GenericCorrector
def correction; end
def correction_range; end
private
def modifier_range(node); end
end
class RuboCop::Cop::Style::ParallelAssignment::RescueCorrector < ::RuboCop::Cop::Style::ParallelAssignment::GenericCorrector
def correction; end
def correction_range; end
private
def begin_correction(rescue_result); end
def def_correction(rescue_result); end
end
class RuboCop::Cop::Style::ParenthesesAroundCondition < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::SafeAssignment)
include(::RuboCop::Cop::Parentheses)
def autocorrect(node); end
def control_op_condition(node = _); end
def on_if(node); end
def on_until(node); end
def on_while(node); end
private
def allow_multiline_conditions?; end
def message(node); end
def modifier_op?(node); end
def parens_allowed?(node); end
def process_control_op(node); end
end
class RuboCop::Cop::Style::PercentLiteralDelimiters < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::RangeHelp)
include(::RuboCop::Cop::PercentLiteral)
def autocorrect(node); end
def message(node); end
def on_array(node); end
def on_dstr(node); end
def on_regexp(node); end
def on_str(node); end
def on_sym(node); end
def on_xstr(node); end
private
def contains_delimiter?(node, delimiters); end
def contains_preferred_delimiter?(node, type); end
def include_same_character_as_used_for_delimiter?(node, type); end
def matchpairs(begin_delimiter); end
def on_percent_literal(node); end
def preferred_delimiters_for(type); end
def string_source(node); end
def uses_preferred_delimiter?(node, type); end
end
class RuboCop::Cop::Style::PercentQLiterals < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::RangeHelp)
include(::RuboCop::Cop::PercentLiteral)
include(::RuboCop::Cop::ConfigurableEnforcedStyle)
def autocorrect(node); end
def on_str(node); end
private
def correct_literal_style?(node); end
def corrected(src); end
def message(_node); end
def on_percent_literal(node); end
end
RuboCop::Cop::Style::PercentQLiterals::LOWER_CASE_Q_MSG = T.let(T.unsafe(nil), String)
RuboCop::Cop::Style::PercentQLiterals::UPPER_CASE_Q_MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Style::PerlBackrefs < ::RuboCop::Cop::Cop
def autocorrect(node); end
def on_nth_ref(node); end
end
RuboCop::Cop::Style::PerlBackrefs::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Style::PreferredHashMethods < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::ConfigurableEnforcedStyle)
def autocorrect(node); end
def on_csend(node); end
def on_send(node); end
private
def message(node); end
def offending_selector?(method_name); end
def proper_method_name(method_name); end
end
RuboCop::Cop::Style::PreferredHashMethods::MSG = T.let(T.unsafe(nil), String)
RuboCop::Cop::Style::PreferredHashMethods::OFFENDING_SELECTORS = T.let(T.unsafe(nil), Hash)
class RuboCop::Cop::Style::Proc < ::RuboCop::Cop::Cop
def autocorrect(node); end
def on_block(node); end
def proc_new?(node = _); end
end
RuboCop::Cop::Style::Proc::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Style::RaiseArgs < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::ConfigurableEnforcedStyle)
def autocorrect(node); end
def on_send(node); end
private
def acceptable_exploded_args?(args); end
def check_compact(node); end
def check_exploded(node); end
def correction_compact_to_exploded(node); end
def correction_exploded_to_compact(node); end
def message(node); end
def requires_parens?(parent); end
end
RuboCop::Cop::Style::RaiseArgs::COMPACT_MSG = T.let(T.unsafe(nil), String)
RuboCop::Cop::Style::RaiseArgs::EXPLODED_MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Style::RandomWithOffset < ::RuboCop::Cop::Cop
def autocorrect(node); end
def integer_op_rand?(node = _); end
def namespace(node = _); end
def on_send(node); end
def rand_modified?(node = _); end
def rand_op_integer?(node = _); end
def random_call(node = _); end
def to_int(node = _); end
private
def boundaries_from_random_node(random_node); end
def corrected_integer_op_rand(node); end
def corrected_rand_modified(node); end
def corrected_rand_op_integer(node); end
def prefix_from_prefix_node(node); end
end
RuboCop::Cop::Style::RandomWithOffset::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Style::RedundantBegin < ::RuboCop::Cop::Cop
def autocorrect(node); end
def on_block(node); end
def on_def(node); end
def on_defs(node); end
private
def check(node); end
end
RuboCop::Cop::Style::RedundantBegin::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Style::RedundantCapitalW < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::RangeHelp)
include(::RuboCop::Cop::PercentLiteral)
def autocorrect(node); end
def on_array(node); end
private
def on_percent_literal(node); end
def requires_interpolation?(node); end
end
RuboCop::Cop::Style::RedundantCapitalW::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Style::RedundantCondition < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::RangeHelp)
def autocorrect(node); end
def on_if(node); end
private
def correct_ternary(corrector, node); end
def else_source(else_branch); end
def make_ternary_form(node); end
def message(node); end
def offense?(node); end
def range_of_offense(node); end
def use_if_branch?(else_branch); end
end
RuboCop::Cop::Style::RedundantCondition::MSG = T.let(T.unsafe(nil), String)
RuboCop::Cop::Style::RedundantCondition::REDUNDANT_CONDITION = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Style::RedundantConditional < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::Alignment)
def autocorrect(node); end
def on_if(node); end
def redundant_condition?(node = _); end
def redundant_condition_inverted?(node = _); end
private
def configured_indentation_width; end
def indented_else_node(expression, node); end
def invert_expression?(node); end
def message(node); end
def offense?(node); end
def replacement_condition(node); end
end
RuboCop::Cop::Style::RedundantConditional::COMPARISON_OPERATOR_MATCHER = T.let(T.unsafe(nil), String)
RuboCop::Cop::Style::RedundantConditional::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Style::RedundantException < ::RuboCop::Cop::Cop
def autocorrect(node); end
def compact?(node = _); end
def exploded?(node = _); end
def on_send(node); end
end
RuboCop::Cop::Style::RedundantException::MSG_1 = T.let(T.unsafe(nil), String)
RuboCop::Cop::Style::RedundantException::MSG_2 = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Style::RedundantFreeze < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::FrozenStringLiteral)
def autocorrect(node); end
def on_send(node); end
def operation_produces_immutable_object?(node = _); end
private
def immutable_literal?(node); end
def strip_parenthesis(node); end
end
RuboCop::Cop::Style::RedundantFreeze::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Style::RedundantInterpolation < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::RangeHelp)
include(::RuboCop::Cop::PercentLiteral)
def autocorrect(node); end
def on_dstr(node); end
private
def autocorrect_other(embedded_node, node); end
def autocorrect_single_variable_interpolation(embedded_node, node); end
def autocorrect_variable_interpolation(embedded_node, node); end
def embedded_in_percent_array?(node); end
def implicit_concatenation?(node); end
def interpolation?(node); end
def single_interpolation?(node); end
def single_variable_interpolation?(node); end
def variable_interpolation?(node); end
def self.autocorrect_incompatible_with; end
end
RuboCop::Cop::Style::RedundantInterpolation::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Style::RedundantParentheses < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::Parentheses)
def arg_in_call_with_block?(node = _); end
def autocorrect(node); end
def first_send_argument?(node = _); end
def first_super_argument?(node = _); end
def method_node_and_args(node = _); end
def on_begin(node); end
def range_end?(node = _); end
def rescue?(node = _); end
def square_brackets?(node = _); end
private
def allowed_ancestor?(node); end
def allowed_array_or_hash_element?(node); end
def allowed_expression?(node); end
def allowed_method_call?(node); end
def allowed_multiple_expression?(node); end
def array_element?(node); end
def call_chain_starts_with_int?(begin_node, send_node); end
def check(begin_node); end
def check_send(begin_node, node); end
def check_unary(begin_node, node); end
def disallowed_literal?(begin_node, node); end
def empty_parentheses?(node); end
def first_arg_begins_with_hash_literal?(node); end
def first_argument?(node); end
def hash_element?(node); end
def keyword_ancestor?(node); end
def keyword_with_redundant_parentheses?(node); end
def method_call_with_redundant_parentheses?(node); end
def method_chain_begins_with_hash_literal?(node); end
def offense(node, msg); end
def only_begin_arg?(args); end
def only_closing_paren_before_comma?(node); end
def parens_allowed?(node); end
def raised_to_power_negative_numeric?(begin_node, node); end
def suspect_unary?(node); end
end
class RuboCop::Cop::Style::RedundantPercentQ < ::RuboCop::Cop::Cop
def autocorrect(node); end
def on_dstr(node); end
def on_str(node); end
private
def acceptable_capital_q?(node); end
def acceptable_q?(node); end
def allowed_percent_q?(node); end
def check(node); end
def interpolated_quotes?(node); end
def message(node); end
def start_with_percent_q_variant?(string); end
def string_literal?(node); end
end
RuboCop::Cop::Style::RedundantPercentQ::DYNAMIC_MSG = T.let(T.unsafe(nil), String)
RuboCop::Cop::Style::RedundantPercentQ::EMPTY = T.let(T.unsafe(nil), String)
RuboCop::Cop::Style::RedundantPercentQ::ESCAPED_NON_BACKSLASH = T.let(T.unsafe(nil), Regexp)
RuboCop::Cop::Style::RedundantPercentQ::MSG = T.let(T.unsafe(nil), String)
RuboCop::Cop::Style::RedundantPercentQ::PERCENT_CAPITAL_Q = T.let(T.unsafe(nil), String)
RuboCop::Cop::Style::RedundantPercentQ::PERCENT_Q = T.let(T.unsafe(nil), String)
RuboCop::Cop::Style::RedundantPercentQ::QUOTE = T.let(T.unsafe(nil), String)
RuboCop::Cop::Style::RedundantPercentQ::SINGLE_QUOTE = T.let(T.unsafe(nil), String)
RuboCop::Cop::Style::RedundantPercentQ::STRING_INTERPOLATION_REGEXP = T.let(T.unsafe(nil), Regexp)
class RuboCop::Cop::Style::RedundantRegexpCharacterClass < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::RangeHelp)
include(::RuboCop::Cop::MatchRange)
include(::RuboCop::Cop::RegexpLiteralHelp)
def autocorrect(node); end
def each_redundant_character_class(node); end
def on_regexp(node); end
private
def whitespace_in_free_space_mode?(node, loc); end
def without_character_class(loc); end
end
RuboCop::Cop::Style::RedundantRegexpCharacterClass::MSG_REDUNDANT_CHARACTER_CLASS = T.let(T.unsafe(nil), String)
RuboCop::Cop::Style::RedundantRegexpCharacterClass::PATTERN = T.let(T.unsafe(nil), Regexp)
class RuboCop::Cop::Style::RedundantRegexpEscape < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::RangeHelp)
include(::RuboCop::Cop::RegexpLiteralHelp)
def autocorrect(node); end
def on_regexp(node); end
private
def allowed_escape?(node, char, within_character_class); end
def each_escape(node); end
def escape_range_at_index(node, index); end
def pattern_source(node); end
def slash_literal?(node); end
end
RuboCop::Cop::Style::RedundantRegexpEscape::ALLOWED_ALWAYS_ESCAPES = T.let(T.unsafe(nil), Array)
RuboCop::Cop::Style::RedundantRegexpEscape::ALLOWED_OUTSIDE_CHAR_CLASS_METACHAR_ESCAPES = T.let(T.unsafe(nil), Array)
RuboCop::Cop::Style::RedundantRegexpEscape::ALLOWED_WITHIN_CHAR_CLASS_METACHAR_ESCAPES = T.let(T.unsafe(nil), Array)
RuboCop::Cop::Style::RedundantRegexpEscape::MSG_REDUNDANT_ESCAPE = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Style::RedundantReturn < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::RangeHelp)
def autocorrect(node); end
def on_def(node); end
def on_defs(node); end
private
def add_braces(corrector, node); end
def add_brackets(corrector, node); end
def allow_multiple_return_values?; end
def check_begin_node(node); end
def check_branch(node); end
def check_case_node(node); end
def check_ensure_node(node); end
def check_if_node(node); end
def check_rescue_node(node); end
def check_return_node(node); end
def correct_with_arguments(return_node, corrector); end
def correct_without_arguments(return_node, corrector); end
def hash_without_braces?(node); end
def message(node); end
end
RuboCop::Cop::Style::RedundantReturn::MSG = T.let(T.unsafe(nil), String)
RuboCop::Cop::Style::RedundantReturn::MULTI_RETURN_MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Style::RedundantSelf < ::RuboCop::Cop::Cop
def initialize(config = _, options = _); end
def autocorrect(node); end
def on_and_asgn(node); end
def on_args(node); end
def on_block(node); end
def on_blockarg(node); end
def on_def(node); end
def on_defs(node); end
def on_lvasgn(node); end
def on_masgn(node); end
def on_op_asgn(node); end
def on_or_asgn(node); end
def on_send(node); end
private
def add_lhs_to_local_variables_scopes(rhs, lhs); end
def add_scope(node, local_variables = _); end
def allow_self(node); end
def allowed_send_node?(node); end
def keyword?(method_name); end
def on_argument(node); end
def regular_method_call?(node); end
def self.autocorrect_incompatible_with; end
end
RuboCop::Cop::Style::RedundantSelf::KERNEL_METHODS = T.let(T.unsafe(nil), Array)
RuboCop::Cop::Style::RedundantSelf::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Style::RedundantSort < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::RangeHelp)
def autocorrect(node); end
def on_send(node); end
def redundant_sort?(node = _); end
private
def accessor_start(node); end
def arg_node(node); end
def arg_value(node); end
def base(accessor, arg); end
def message(node, sorter, accessor); end
def suffix(sorter); end
def suggestion(sorter, accessor, arg); end
end
RuboCop::Cop::Style::RedundantSort::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Style::RedundantSortBy < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::RangeHelp)
def autocorrect(node); end
def on_block(node); end
def redundant_sort_by(node = _); end
private
def sort_by_range(send, node); end
end
RuboCop::Cop::Style::RedundantSortBy::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Style::RegexpLiteral < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::ConfigurableEnforcedStyle)
include(::RuboCop::Cop::RangeHelp)
def autocorrect(node); end
def on_regexp(node); end
private
def allow_inner_slashes?; end
def allowed_mixed_percent_r?(node); end
def allowed_mixed_slash?(node); end
def allowed_percent_r_literal?(node); end
def allowed_slash_literal?(node); end
def calculate_replacement(node); end
def check_percent_r_literal(node); end
def check_slash_literal(node); end
def contains_disallowed_slash?(node); end
def contains_slash?(node); end
def correct_delimiters(node, corrector); end
def correct_inner_slashes(node, corrector); end
def inner_slash_after_correction(node); end
def inner_slash_before_correction(node); end
def inner_slash_for(opening_delimiter); end
def inner_slash_indices(node); end
def node_body(node, include_begin_nodes: _); end
def preferred_delimiters; end
def slash_literal?(node); end
end
RuboCop::Cop::Style::RegexpLiteral::MSG_USE_PERCENT_R = T.let(T.unsafe(nil), String)
RuboCop::Cop::Style::RegexpLiteral::MSG_USE_SLASHES = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Style::RescueModifier < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::Alignment)
include(::RuboCop::Cop::RescueNode)
def autocorrect(node); end
def on_resbody(node); end
end
RuboCop::Cop::Style::RescueModifier::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Style::RescueStandardError < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::RescueNode)
include(::RuboCop::Cop::ConfigurableEnforcedStyle)
include(::RuboCop::Cop::RangeHelp)
def autocorrect(node); end
def on_resbody(node); end
def rescue_standard_error?(node = _); end
def rescue_without_error_class?(node = _); end
end
RuboCop::Cop::Style::RescueStandardError::MSG_EXPLICIT = T.let(T.unsafe(nil), String)
RuboCop::Cop::Style::RescueStandardError::MSG_IMPLICIT = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Style::ReturnNil < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::ConfigurableEnforcedStyle)
def autocorrect(node); end
def chained_send?(node = _); end
def define_method?(node = _); end
def on_return(node); end
def return_nil_node?(node = _); end
def return_node?(node = _); end
private
def correct_style?(node); end
def message(_node); end
def scoped_node?(node); end
end
RuboCop::Cop::Style::ReturnNil::RETURN_MSG = T.let(T.unsafe(nil), String)
RuboCop::Cop::Style::ReturnNil::RETURN_NIL_MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Style::SafeNavigation < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::NilMethods)
include(::RuboCop::Cop::RangeHelp)
def autocorrect(node); end
def check_node(node); end
def modifier_if_safe_navigation_candidate(node = _); end
def not_nil_check?(node = _); end
def on_and(node); end
def on_if(node); end
def use_var_only_in_unless_modifier?(node, variable); end
private
def add_safe_nav_to_all_methods_in_chain(corrector, start_method, method_chain); end
def allowed_if_condition?(node); end
def begin_range(node, method_call); end
def chain_size(method_chain, method); end
def comments(node); end
def end_range(node, method_call); end
def extract_common_parts(method_chain, checked_variable); end
def extract_parts(node); end
def extract_parts_from_and(node); end
def extract_parts_from_if(node); end
def find_matching_receiver_invocation(method_chain, checked_variable); end
def handle_comments(corrector, node, method_call); end
def method_call(node); end
def method_called?(send_node); end
def negated?(send_node); end
def unsafe_method?(send_node); end
def unsafe_method_used?(method_chain, method); end
end
RuboCop::Cop::Style::SafeNavigation::LOGIC_JUMP_KEYWORDS = T.let(T.unsafe(nil), Array)
RuboCop::Cop::Style::SafeNavigation::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Style::Sample < ::RuboCop::Cop::Cop
def autocorrect(node); end
def on_send(node); end
def sample_candidate?(node = _); end
private
def correction(shuffle_arg, method, method_args); end
def extract_source(args); end
def message(shuffle_arg, method, method_args, range); end
def offensive?(method, method_args); end
def range_size(range_node); end
def sample_arg(method, method_args); end
def sample_size(method_args); end
def sample_size_for_one_arg(arg); end
def sample_size_for_two_args(first, second); end
def source_range(shuffle_node, node); end
end
RuboCop::Cop::Style::Sample::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Style::SelfAssignment < ::RuboCop::Cop::Cop
def autocorrect(node); end
def on_cvasgn(node); end
def on_ivasgn(node); end
def on_lvasgn(node); end
private
def apply_autocorrect(node, rhs, operator, new_rhs); end
def autocorrect_boolean_node(node, rhs); end
def autocorrect_send_node(node, rhs); end
def check(node, var_type); end
def check_boolean_node(node, rhs, var_name, var_type); end
def check_send_node(node, rhs, var_name, var_type); end
def self.autocorrect_incompatible_with; end
end
RuboCop::Cop::Style::SelfAssignment::MSG = T.let(T.unsafe(nil), String)
RuboCop::Cop::Style::SelfAssignment::OPS = T.let(T.unsafe(nil), Array)
class RuboCop::Cop::Style::Semicolon < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::RangeHelp)
def autocorrect(range); end
def investigate(processed_source); end
def on_begin(node); end
private
def check_for_line_terminator_or_opener; end
def convention_on(line, column, autocorrect); end
def each_semicolon; end
def tokens_for_lines; end
end
RuboCop::Cop::Style::Semicolon::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Style::Send < ::RuboCop::Cop::Cop
def on_csend(node); end
def on_send(node); end
def sending?(node = _); end
end
RuboCop::Cop::Style::Send::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Style::SignalException < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::ConfigurableEnforcedStyle)
def autocorrect(node); end
def custom_fail_methods(node0); end
def investigate(processed_source); end
def kernel_call?(node = _, param1); end
def on_rescue(node); end
def on_send(node); end
private
def allow(method_name, node); end
def check_scope(method_name, node); end
def check_send(method_name, node); end
def command_or_kernel_call?(name, node); end
def each_command_or_kernel_call(method_name, node); end
def message(method_name); end
end
RuboCop::Cop::Style::SignalException::FAIL_MSG = T.let(T.unsafe(nil), String)
RuboCop::Cop::Style::SignalException::RAISE_MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Style::SingleLineBlockParams < ::RuboCop::Cop::Cop
def on_block(node); end
private
def args_match?(method_name, args); end
def eligible_arguments?(node); end
def eligible_method?(node); end
def message(node); end
def method_name(method); end
def method_names; end
def methods; end
def target_args(method_name); end
end
RuboCop::Cop::Style::SingleLineBlockParams::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Style::SingleLineMethods < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::Alignment)
def autocorrect(node); end
def on_def(node); end
def on_defs(node); end
private
def allow_empty?; end
def each_part(body); end
def move_comment(node, corrector); end
end
RuboCop::Cop::Style::SingleLineMethods::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Style::SlicingWithRange < ::RuboCop::Cop::Cop
extend(::RuboCop::Cop::TargetRubyVersion)
def autocorrect(node); end
def on_send(node); end
def range_till_minus_one?(node = _); end
end
RuboCop::Cop::Style::SlicingWithRange::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Style::SpecialGlobalVars < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::ConfigurableEnforcedStyle)
def autocorrect(node); end
def message(node); end
def on_gvar(node); end
private
def english_name_replacement(preferred_name, node); end
def format_english_message(global_var); end
def format_list(items); end
def format_message(english, regular, global); end
def preferred_names(global); end
def replacement(node, global_var); end
end
RuboCop::Cop::Style::SpecialGlobalVars::ENGLISH_VARS = T.let(T.unsafe(nil), Hash)
RuboCop::Cop::Style::SpecialGlobalVars::MSG_BOTH = T.let(T.unsafe(nil), String)
RuboCop::Cop::Style::SpecialGlobalVars::MSG_ENGLISH = T.let(T.unsafe(nil), String)
RuboCop::Cop::Style::SpecialGlobalVars::MSG_REGULAR = T.let(T.unsafe(nil), String)
RuboCop::Cop::Style::SpecialGlobalVars::NON_ENGLISH_VARS = T.let(T.unsafe(nil), Set)
RuboCop::Cop::Style::SpecialGlobalVars::PERL_VARS = T.let(T.unsafe(nil), Hash)
class RuboCop::Cop::Style::StabbyLambdaParentheses < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::ConfigurableEnforcedStyle)
def autocorrect(node); end
def on_send(node); end
private
def message(_node); end
def missing_parentheses?(node); end
def missing_parentheses_corrector(node); end
def parentheses?(node); end
def redundant_parentheses?(node); end
def stabby_lambda_with_args?(node); end
def unwanted_parentheses_corrector(node); end
end
RuboCop::Cop::Style::StabbyLambdaParentheses::MSG_NO_REQUIRE = T.let(T.unsafe(nil), String)
RuboCop::Cop::Style::StabbyLambdaParentheses::MSG_REQUIRE = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Style::StderrPuts < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::RangeHelp)
def autocorrect(node); end
def on_send(node); end
def stderr_puts?(node = _); end
private
def message(node); end
def stderr_gvar?(sym); end
def stderr_puts_range(send); end
end
RuboCop::Cop::Style::StderrPuts::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Style::StringHashKeys < ::RuboCop::Cop::Cop
def autocorrect(node); end
def on_pair(node); end
def receive_environments_method?(node = _); end
def string_hash_key?(node = _); end
end
RuboCop::Cop::Style::StringHashKeys::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Style::StringLiterals < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::ConfigurableEnforcedStyle)
include(::RuboCop::Cop::StringHelp)
include(::RuboCop::Cop::StringLiteralsHelp)
def autocorrect(node); end
def on_dstr(node); end
private
def accept_child_double_quotes?(nodes); end
def all_string_literals?(nodes); end
def check_multiline_quote_style(node, quote); end
def consistent_multiline?; end
def detect_quote_styles(node); end
def message(_node); end
def offense?(node); end
def unexpected_double_quotes?(quote); end
def unexpected_single_quotes?(quote); end
end
RuboCop::Cop::Style::StringLiterals::MSG_INCONSISTENT = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Style::StringLiteralsInInterpolation < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::ConfigurableEnforcedStyle)
include(::RuboCop::Cop::StringHelp)
include(::RuboCop::Cop::StringLiteralsHelp)
def autocorrect(node); end
private
def message(_node); end
def offense?(node); end
end
class RuboCop::Cop::Style::StringMethods < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::MethodPreference)
def autocorrect(node); end
def on_csend(node); end
def on_send(node); end
private
def message(node); end
end
RuboCop::Cop::Style::StringMethods::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Style::Strip < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::RangeHelp)
def autocorrect(node); end
def lstrip_rstrip(node = _); end
def on_send(node); end
end
RuboCop::Cop::Style::Strip::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Style::StructInheritance < ::RuboCop::Cop::Cop
def on_class(node); end
def struct_constructor?(node = _); end
end
RuboCop::Cop::Style::StructInheritance::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Style::SymbolArray < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::ArrayMinSize)
include(::RuboCop::Cop::ArraySyntax)
include(::RuboCop::Cop::ConfigurableEnforcedStyle)
include(::RuboCop::Cop::PercentArray)
def autocorrect(node); end
def on_array(node); end
private
def correct_bracketed(node); end
def symbol_without_quote?(string); end
def symbols_contain_spaces?(node); end
def to_symbol_literal(string); end
def self.largest_brackets; end
def self.largest_brackets=(_); end
end
RuboCop::Cop::Style::SymbolArray::ARRAY_MSG = T.let(T.unsafe(nil), String)
RuboCop::Cop::Style::SymbolArray::PERCENT_MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Style::SymbolLiteral < ::RuboCop::Cop::Cop
def autocorrect(node); end
def on_sym(node); end
end
RuboCop::Cop::Style::SymbolLiteral::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Style::SymbolProc < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::RangeHelp)
include(::RuboCop::Cop::IgnoredMethods)
def autocorrect(node); end
def destructuring_block_argument?(argument_node); end
def on_block(node); end
def proc_node?(node = _); end
def symbol_proc?(node = _); end
private
def autocorrect_with_args(corrector, node, args, method_name); end
def autocorrect_without_args(corrector, node); end
def begin_pos_for_replacement(node); end
def block_range_with_space(node); end
def register_offense(node, method_name, block_method_name); end
def self.autocorrect_incompatible_with; end
end
RuboCop::Cop::Style::SymbolProc::MSG = T.let(T.unsafe(nil), String)
RuboCop::Cop::Style::SymbolProc::SUPER_TYPES = T.let(T.unsafe(nil), Array)
class RuboCop::Cop::Style::TernaryCorrector
extend(::RuboCop::Cop::Style::ConditionalAssignmentHelper)
extend(::RuboCop::Cop::Style::ConditionalCorrectorHelper)
def self.correct(node); end
def self.move_assignment_inside_condition(node); end
end
class RuboCop::Cop::Style::TernaryParentheses < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::SafeAssignment)
include(::RuboCop::Cop::ConfigurableEnforcedStyle)
include(::RuboCop::Cop::RangeHelp)
include(::RuboCop::Cop::SurroundingSpace)
def autocorrect(node); end
def method_name(node = _); end
def on_if(node); end
def only_closing_parenthesis_is_last_line?(condition); end
private
def below_ternary_precedence?(child); end
def complex_condition?(condition); end
def correct_parenthesized(condition); end
def correct_unparenthesized(condition); end
def infinite_loop?; end
def message(node); end
def non_complex_expression?(condition); end
def non_complex_send?(node); end
def offense?(node); end
def parenthesized?(node); end
def redundant_parentheses_enabled?; end
def require_parentheses?; end
def require_parentheses_when_complex?; end
def unparenthesized_method_call?(child); end
def unsafe_autocorrect?(condition); end
def whitespace_after?(node); end
end
RuboCop::Cop::Style::TernaryParentheses::MSG = T.let(T.unsafe(nil), String)
RuboCop::Cop::Style::TernaryParentheses::MSG_COMPLEX = T.let(T.unsafe(nil), String)
RuboCop::Cop::Style::TernaryParentheses::NON_COMPLEX_TYPES = T.let(T.unsafe(nil), Array)
RuboCop::Cop::Style::TernaryParentheses::VARIABLE_TYPES = T.let(T.unsafe(nil), Array)
class RuboCop::Cop::Style::TrailingBodyOnClass < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::Alignment)
include(::RuboCop::Cop::TrailingBody)
def autocorrect(node); end
def on_class(node); end
end
RuboCop::Cop::Style::TrailingBodyOnClass::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Style::TrailingBodyOnMethodDefinition < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::Alignment)
include(::RuboCop::Cop::TrailingBody)
def autocorrect(node); end
def on_def(node); end
def on_defs(node); end
end
RuboCop::Cop::Style::TrailingBodyOnMethodDefinition::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Style::TrailingBodyOnModule < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::Alignment)
include(::RuboCop::Cop::TrailingBody)
def autocorrect(node); end
def on_module(node); end
end
RuboCop::Cop::Style::TrailingBodyOnModule::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Style::TrailingCommaInArguments < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::ConfigurableEnforcedStyle)
include(::RuboCop::Cop::RangeHelp)
include(::RuboCop::Cop::TrailingComma)
def autocorrect(range); end
def on_csend(node); end
def on_send(node); end
def self.autocorrect_incompatible_with; end
end
class RuboCop::Cop::Style::TrailingCommaInArrayLiteral < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::ConfigurableEnforcedStyle)
include(::RuboCop::Cop::RangeHelp)
include(::RuboCop::Cop::TrailingComma)
def autocorrect(range); end
def on_array(node); end
end
class RuboCop::Cop::Style::TrailingCommaInBlockArgs < ::RuboCop::Cop::Cop
def autocorrect(node); end
def on_block(node); end
private
def arg_count(node); end
def argument_tokens(node); end
def last_comma(node); end
def trailing_comma?(node); end
def useless_trailing_comma?(node); end
end
RuboCop::Cop::Style::TrailingCommaInBlockArgs::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Style::TrailingCommaInHashLiteral < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::ConfigurableEnforcedStyle)
include(::RuboCop::Cop::RangeHelp)
include(::RuboCop::Cop::TrailingComma)
def autocorrect(range); end
def on_hash(node); end
end
class RuboCop::Cop::Style::TrailingMethodEndStatement < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::Alignment)
def autocorrect(node); end
def on_def(node); end
private
def body_and_end_on_same_line?(node); end
def break_line_before_end(node, corrector); end
def end_token(node); end
def remove_semicolon(node, corrector); end
def token_before_end(node); end
def trailing_end?(node); end
end
RuboCop::Cop::Style::TrailingMethodEndStatement::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Style::TrailingUnderscoreVariable < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::RangeHelp)
include(::RuboCop::Cop::SurroundingSpace)
def autocorrect(node); end
def on_masgn(node); end
private
def allow_named_underscore_variables; end
def children_offenses(variables); end
def find_first_offense(variables); end
def find_first_possible_offense(variables); end
def main_node_offense(node); end
def range_for_parentheses(offense, left); end
def reverse_index(collection, item); end
def splat_variable_before?(first_offense, variables); end
def unneeded_ranges(node); end
def unused_range(node_type, mlhs_node, right); end
def unused_variables_only?(offense, variables); end
end
RuboCop::Cop::Style::TrailingUnderscoreVariable::MSG = T.let(T.unsafe(nil), String)
RuboCop::Cop::Style::TrailingUnderscoreVariable::UNDERSCORE = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Style::TrivialAccessors < ::RuboCop::Cop::Cop
def autocorrect(node); end
def looks_like_trivial_writer?(node = _); end
def on_def(node); end
def on_defs(node); end
private
def accessor(kind, method_name); end
def allow_dsl_writers?; end
def allow_predicates?; end
def allowed_method?(node); end
def allowed_methods; end
def allowed_reader?(node); end
def allowed_writer?(method_name); end
def autocorrect_class(node); end
def autocorrect_instance(node); end
def dsl_writer?(method_name); end
def exact_name_match?; end
def ignore_class_methods?; end
def in_module_or_instance_eval?(node); end
def looks_like_trivial_reader?(node); end
def names_match?(node); end
def on_method_def(node); end
def top_level_node?(node); end
def trivial_accessor_kind(node); end
def trivial_reader?(node); end
def trivial_writer?(node); end
end
RuboCop::Cop::Style::TrivialAccessors::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Style::UnlessElse < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::RangeHelp)
def autocorrect(node); end
def on_if(node); end
def range_between_condition_and_else(node, condition); end
def range_between_else_and_end(node); end
end
RuboCop::Cop::Style::UnlessElse::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Style::UnpackFirst < ::RuboCop::Cop::Cop
def autocorrect(node); end
def on_send(node); end
def unpack_and_first_element?(node = _); end
private
def first_element_range(node, unpack_call); end
end
RuboCop::Cop::Style::UnpackFirst::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Style::VariableInterpolation < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::Interpolation)
def autocorrect(node); end
def on_node_with_interpolations(node); end
private
def message(node); end
def var_nodes(nodes); end
end
RuboCop::Cop::Style::VariableInterpolation::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Style::WhenThen < ::RuboCop::Cop::Cop
def autocorrect(node); end
def on_when(node); end
end
RuboCop::Cop::Style::WhenThen::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Style::WhileUntilDo < ::RuboCop::Cop::Cop
def autocorrect(node); end
def handle(node); end
def on_until(node); end
def on_while(node); end
end
RuboCop::Cop::Style::WhileUntilDo::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Style::WhileUntilModifier < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::LineLengthHelp)
include(::RuboCop::Cop::StatementModifier)
def autocorrect(node); end
def on_until(node); end
def on_while(node); end
private
def check(node); end
end
RuboCop::Cop::Style::WhileUntilModifier::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Style::WordArray < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::ArrayMinSize)
include(::RuboCop::Cop::ArraySyntax)
include(::RuboCop::Cop::ConfigurableEnforcedStyle)
include(::RuboCop::Cop::PercentArray)
def autocorrect(node); end
def on_array(node); end
private
def check_bracketed_array(node); end
def complex_content?(strings); end
def correct_bracketed(node); end
def word_regex; end
def self.largest_brackets; end
def self.largest_brackets=(_); end
end
RuboCop::Cop::Style::WordArray::ARRAY_MSG = T.let(T.unsafe(nil), String)
RuboCop::Cop::Style::WordArray::PERCENT_MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Style::YodaCondition < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::ConfigurableEnforcedStyle)
include(::RuboCop::Cop::RangeHelp)
def autocorrect(node); end
def file_constant_equal_program_name?(node = _); end
def on_send(node); end
private
def actual_code_range(node); end
def corrected_code(node); end
def enforce_yoda?; end
def equality_only?; end
def message(node); end
def non_equality_operator?(node); end
def noncommutative_operator?(node); end
def program_name?(name); end
def reverse_comparison(operator); end
def source_file_path_constant?(node); end
def valid_yoda?(node); end
def yoda_compatible_condition?(node); end
end
RuboCop::Cop::Style::YodaCondition::EQUALITY_OPERATORS = T.let(T.unsafe(nil), Array)
RuboCop::Cop::Style::YodaCondition::MSG = T.let(T.unsafe(nil), String)
RuboCop::Cop::Style::YodaCondition::NONCOMMUTATIVE_OPERATORS = T.let(T.unsafe(nil), Array)
RuboCop::Cop::Style::YodaCondition::PROGRAM_NAMES = T.let(T.unsafe(nil), Array)
RuboCop::Cop::Style::YodaCondition::REVERSE_COMPARISON = T.let(T.unsafe(nil), Hash)
class RuboCop::Cop::Style::ZeroLengthPredicate < ::RuboCop::Cop::Cop
def autocorrect(node); end
def non_polymorphic_collection?(node = _); end
def nonzero_length_predicate(node = _); end
def on_send(node); end
def other_receiver(node = _); end
def zero_length_predicate(node = _); end
def zero_length_receiver(node = _); end
private
def check_nonzero_length_predicate(node); end
def check_zero_length_predicate(node); end
def replacement(node); end
end
RuboCop::Cop::Style::ZeroLengthPredicate::NONZERO_MSG = T.let(T.unsafe(nil), String)
RuboCop::Cop::Style::ZeroLengthPredicate::ZERO_MSG = T.let(T.unsafe(nil), String)
module RuboCop::Cop::SurroundingSpace
include(::RuboCop::Cop::RangeHelp)
private
def empty_brackets?(left_bracket_token, right_bracket_token); end
def empty_offense(node, range, message, command); end
def empty_offenses(node, left, right, message); end
def extra_space?(token, side); end
def index_of_first_token(node); end
def index_of_last_token(node); end
def no_space_between?(left_bracket_token, right_bracket_token); end
def no_space_offenses(node, left_token, right_token, message, start_ok: _, end_ok: _); end
def offending_empty_no_space?(config, left_token, right_token); end
def offending_empty_space?(config, left_token, right_token); end
def reposition(src, pos, step); end
def side_space_range(range:, side:); end
def space_between?(left_bracket_token, right_bracket_token); end
def space_offense(node, token, side, message, command); end
def space_offenses(node, left_token, right_token, message, start_ok: _, end_ok: _); end
def token_table; end
end
RuboCop::Cop::SurroundingSpace::NO_SPACE_COMMAND = T.let(T.unsafe(nil), String)
RuboCop::Cop::SurroundingSpace::SINGLE_SPACE_REGEXP = T.let(T.unsafe(nil), Regexp)
RuboCop::Cop::SurroundingSpace::SPACE_COMMAND = T.let(T.unsafe(nil), String)
module RuboCop::Cop::TargetRubyVersion
def minimum_target_ruby_version(version); end
def required_minimum_ruby_version; end
def support_target_ruby_version?(version); end
end
class RuboCop::Cop::Team
def initialize(cops, config = _, options = _); end
def autocorrect(buffer, cops); end
def autocorrect?; end
def cops; end
def debug?; end
def errors; end
def external_dependency_checksum; end
def forces; end
def forces_for(cops); end
def inspect_file(processed_source); end
def updated_source_file; end
def updated_source_file?; end
def warnings; end
private
def autocorrect_all_cops(buffer, cops); end
def collate_corrections(corrector, cops); end
def handle_error(error, location, cop); end
def handle_warning(error, location); end
def investigate(cops, processed_source); end
def offenses(processed_source); end
def process_errors(file, errors); end
def roundup_relevant_cops(filename); end
def support_target_rails_version?(cop); end
def support_target_ruby_version?(cop); end
def validate_config; end
def self.mobilize(cop_classes, config, options = _); end
def self.mobilize_cops(cop_classes, config, options = _); end
def self.new(cop_or_classes, config, options = _); end
end
RuboCop::Cop::Team::DEFAULT_OPTIONS = T.let(T.unsafe(nil), Hash)
class RuboCop::Cop::Team::Investigation < ::Struct
def errors; end
def errors=(_); end
def offenses; end
def offenses=(_); end
def self.[](*_); end
def self.inspect; end
def self.members; end
def self.new(*_); end
end
module RuboCop::Cop::TooManyLines
include(::RuboCop::Cop::ConfigurableMax)
include(::RuboCop::Cop::CodeLength)
private
def code_length(node); end
def extract_body(node); end
def message(length, max_length); end
end
RuboCop::Cop::TooManyLines::MSG = T.let(T.unsafe(nil), String)
module RuboCop::Cop::TrailingBody
def body_on_first_line?(node, body); end
def first_part_of(body); end
def trailing_body?(node); end
end
module RuboCop::Cop::TrailingComma
include(::RuboCop::Cop::ConfigurableEnforcedStyle)
include(::RuboCop::Cop::RangeHelp)
private
def allowed_multiline_argument?(node); end
def any_heredoc?(items); end
def autocorrect_range(item); end
def avoid_comma(kind, comma_begin_pos, extra_info); end
def brackets?(node); end
def check(node, items, kind, begin_pos, end_pos); end
def check_comma(node, kind, comma_pos); end
def check_literal(node, kind); end
def comma_offset(items, range); end
def elements(node); end
def extra_avoid_comma_info; end
def heredoc?(node); end
def heredoc_send?(node); end
def inside_comment?(range, comma_offset); end
def method_name_and_arguments_on_same_line?(node); end
def multiline?(node); end
def no_elements_on_same_line?(node); end
def on_same_line?(range1, range2); end
def put_comma(items, kind); end
def should_have_comma?(style, node); end
def style_parameter_name; end
end
RuboCop::Cop::TrailingComma::MSG = T.let(T.unsafe(nil), String)
module RuboCop::Cop::UncommunicativeName
def check(node, args); end
private
def allow_nums; end
def allowed_names; end
def arg_range(arg, length); end
def case_offense(node, range); end
def ends_with_num?(name); end
def forbidden_names; end
def forbidden_offense(node, range, name); end
def issue_offenses(node, range, name); end
def length_offense(node, range); end
def long_enough?(name); end
def min_length; end
def name_type(node); end
def num_offense(node, range); end
def uppercase?(name); end
end
RuboCop::Cop::UncommunicativeName::CASE_MSG = T.let(T.unsafe(nil), String)
RuboCop::Cop::UncommunicativeName::FORBIDDEN_MSG = T.let(T.unsafe(nil), String)
RuboCop::Cop::UncommunicativeName::LENGTH_MSG = T.let(T.unsafe(nil), String)
RuboCop::Cop::UncommunicativeName::NUM_MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::UnusedArgCorrector
extend(::RuboCop::Cop::RangeHelp)
def self.correct(processed_source, node); end
def self.correct_for_blockarg_type(node); end
def self.processed_source; end
end
module RuboCop::Cop::Util
include(::RuboCop::PathUtil)
private
def add_parentheses(node, corrector); end
def args_begin(node); end
def args_end(node); end
def begins_its_line?(range); end
def comment_line?(line_source); end
def comment_lines?(node); end
def compatible_external_encoding_for?(src); end
def double_quotes_required?(string); end
def escape_string(string); end
def first_part_of_call_chain(node); end
def interpret_string_escapes(string); end
def line_range(node); end
def needs_escaping?(string); end
def on_node(syms, sexp, excludes = _, &block); end
def parentheses?(node); end
def same_line?(node1, node2); end
def to_string_literal(string); end
def to_supported_styles(enforced_style); end
def tokens(node); end
def trim_string_interporation_escape_character(str); end
def self.add_parentheses(node, corrector); end
def self.args_begin(node); end
def self.args_end(node); end
def self.begins_its_line?(range); end
def self.comment_line?(line_source); end
def self.comment_lines?(node); end
def self.double_quotes_required?(string); end
def self.escape_string(string); end
def self.first_part_of_call_chain(node); end
def self.interpret_string_escapes(string); end
def self.line_range(node); end
def self.needs_escaping?(string); end
def self.on_node(syms, sexp, excludes = _, &block); end
def self.parentheses?(node); end
def self.same_line?(node1, node2); end
def self.to_string_literal(string); end
def self.to_supported_styles(enforced_style); end
def self.tokens(node); end
def self.trim_string_interporation_escape_character(str); end
end
RuboCop::Cop::Util::LITERAL_REGEX = T.let(T.unsafe(nil), Regexp)
module RuboCop::Cop::Utils
end
class RuboCop::Cop::Utils::FormatString
def initialize(string); end
def format_sequences; end
def max_digit_dollar_num; end
def named_interpolation?; end
def valid?; end
private
def mixed_formats?; end
def parse; end
end
RuboCop::Cop::Utils::FormatString::DIGIT_DOLLAR = T.let(T.unsafe(nil), Regexp)
RuboCop::Cop::Utils::FormatString::FLAG = T.let(T.unsafe(nil), Regexp)
class RuboCop::Cop::Utils::FormatString::FormatSequence
def initialize(match); end
def annotated?; end
def arity; end
def begin_pos; end
def end_pos; end
def flags; end
def max_digit_dollar_num; end
def name; end
def percent?; end
def precision; end
def style; end
def template?; end
def type; end
def width; end
end
RuboCop::Cop::Utils::FormatString::NAME = T.let(T.unsafe(nil), Regexp)
RuboCop::Cop::Utils::FormatString::NUMBER = T.let(T.unsafe(nil), Regexp)
RuboCop::Cop::Utils::FormatString::NUMBER_ARG = T.let(T.unsafe(nil), Regexp)
RuboCop::Cop::Utils::FormatString::PRECISION = T.let(T.unsafe(nil), Regexp)
RuboCop::Cop::Utils::FormatString::SEQUENCE = T.let(T.unsafe(nil), Regexp)
RuboCop::Cop::Utils::FormatString::TEMPLATE_NAME = T.let(T.unsafe(nil), Regexp)
RuboCop::Cop::Utils::FormatString::TYPE = T.let(T.unsafe(nil), Regexp)
RuboCop::Cop::Utils::FormatString::WIDTH = T.let(T.unsafe(nil), Regexp)
class RuboCop::Cop::VariableForce < ::RuboCop::Cop::Force
def investigate(processed_source); end
def process_node(node); end
def variable_table; end
private
def after_declaring_variable(arg); end
def after_entering_scope(arg); end
def after_leaving_scope(arg); end
def before_declaring_variable(arg); end
def before_entering_scope(arg); end
def before_leaving_scope(arg); end
def descendant_reference(node); end
def each_descendant_reference(loop_node); end
def find_variables_in_loop(loop_node); end
def inspect_variables_in_scope(scope_node); end
def mark_assignments_as_referenced_in_loop(node); end
def node_handler_method_name(node); end
def process_children(origin_node); end
def process_loop(node); end
def process_regexp_named_captures(node); end
def process_rescue(node); end
def process_scope(node); end
def process_send(node); end
def process_variable_assignment(node); end
def process_variable_declaration(node); end
def process_variable_multiple_assignment(node); end
def process_variable_operator_assignment(node); end
def process_variable_referencing(node); end
def process_zero_arity_super(node); end
def regexp_captured_names(node); end
def scanned_node?(node); end
def scanned_nodes; end
def skip_children!; end
def twisted_nodes(node); end
end
RuboCop::Cop::VariableForce::ARGUMENT_DECLARATION_TYPES = T.let(T.unsafe(nil), Array)
class RuboCop::Cop::VariableForce::Assignment
include(::RuboCop::Cop::VariableForce::Branchable)
def initialize(node, variable); end
def meta_assignment_node; end
def multiple_assignment?; end
def name; end
def node; end
def operator; end
def operator_assignment?; end
def reference!(node); end
def referenced; end
def referenced?; end
def references; end
def regexp_named_capture?; end
def scope; end
def used?; end
def variable; end
private
def multiple_assignment_node; end
def operator_assignment_node; end
end
RuboCop::Cop::VariableForce::Assignment::MULTIPLE_LEFT_HAND_SIDE_TYPE = T.let(T.unsafe(nil), Symbol)
class RuboCop::Cop::VariableForce::AssignmentReference < ::Struct
def assignment?; end
def node; end
def node=(_); end
def self.[](*_); end
def self.inspect; end
def self.members; end
def self.new(*_); end
end
module RuboCop::Cop::VariableForce::Branch
def self.of(target_node, scope: _); end
end
class RuboCop::Cop::VariableForce::Branch::And < ::RuboCop::Cop::VariableForce::Branch::Base
include(::RuboCop::Cop::VariableForce::Branch::LogicalOperator)
def left_body?; end
def right_body?; end
end
class RuboCop::Cop::VariableForce::Branch::Base < ::Struct
def ==(other); end
def always_run?; end
def branched?; end
def child_node; end
def child_node=(_); end
def control_node; end
def each_ancestor(include_self: _, &block); end
def eql?(other); end
def exclusive_with?(other); end
def hash; end
def may_jump_to_other_branch?; end
def may_run_incompletely?; end
def parent; end
def scope; end
def scope=(_); end
private
def scan_ancestors; end
def self.[](*_); end
def self.classes; end
def self.define_predicate(name, child_index: _); end
def self.inherited(subclass); end
def self.inspect; end
def self.members; end
def self.new(*_); end
def self.type; end
end
RuboCop::Cop::VariableForce::Branch::CLASSES_BY_TYPE = T.let(T.unsafe(nil), Hash)
class RuboCop::Cop::VariableForce::Branch::Case < ::RuboCop::Cop::VariableForce::Branch::Base
def always_run?; end
def else_body?; end
def target?; end
def when_clause?; end
end
class RuboCop::Cop::VariableForce::Branch::Ensure < ::RuboCop::Cop::VariableForce::Branch::Base
include(::RuboCop::Cop::VariableForce::Branch::ExceptionHandler)
def always_run?; end
def ensure_body?; end
def main_body?; end
end
module RuboCop::Cop::VariableForce::Branch::ExceptionHandler
def may_jump_to_other_branch?; end
def may_run_incompletely?; end
end
class RuboCop::Cop::VariableForce::Branch::For < ::RuboCop::Cop::VariableForce::Branch::Base
def always_run?; end
def collection?; end
def element?; end
def loop_body?; end
end
class RuboCop::Cop::VariableForce::Branch::If < ::RuboCop::Cop::VariableForce::Branch::Base
include(::RuboCop::Cop::VariableForce::Branch::SimpleConditional)
def conditional_clause?; end
def falsey_body?; end
def truthy_body?; end
end
module RuboCop::Cop::VariableForce::Branch::LogicalOperator
def always_run?; end
end
class RuboCop::Cop::VariableForce::Branch::Or < ::RuboCop::Cop::VariableForce::Branch::Base
include(::RuboCop::Cop::VariableForce::Branch::LogicalOperator)
def left_body?; end
def right_body?; end
end
class RuboCop::Cop::VariableForce::Branch::Rescue < ::RuboCop::Cop::VariableForce::Branch::Base
include(::RuboCop::Cop::VariableForce::Branch::ExceptionHandler)
def always_run?; end
def else_body?; end
def main_body?; end
def rescue_clause?; end
end
module RuboCop::Cop::VariableForce::Branch::SimpleConditional
def always_run?; end
def conditional_clause?; end
end
class RuboCop::Cop::VariableForce::Branch::Until < ::RuboCop::Cop::VariableForce::Branch::Base
include(::RuboCop::Cop::VariableForce::Branch::SimpleConditional)
def conditional_clause?; end
def loop_body?; end
end
class RuboCop::Cop::VariableForce::Branch::UntilPost < ::RuboCop::Cop::VariableForce::Branch::Base
include(::RuboCop::Cop::VariableForce::Branch::SimpleConditional)
def conditional_clause?; end
def loop_body?; end
end
class RuboCop::Cop::VariableForce::Branch::While < ::RuboCop::Cop::VariableForce::Branch::Base
include(::RuboCop::Cop::VariableForce::Branch::SimpleConditional)
def conditional_clause?; end
def loop_body?; end
end
class RuboCop::Cop::VariableForce::Branch::WhilePost < ::RuboCop::Cop::VariableForce::Branch::Base
include(::RuboCop::Cop::VariableForce::Branch::SimpleConditional)
def conditional_clause?; end
def loop_body?; end
end
module RuboCop::Cop::VariableForce::Branchable
def branch; end
def run_exclusively_with?(other); end
end
RuboCop::Cop::VariableForce::LOGICAL_OPERATOR_ASSIGNMENT_TYPES = T.let(T.unsafe(nil), Array)
RuboCop::Cop::VariableForce::LOOP_TYPES = T.let(T.unsafe(nil), Array)
RuboCop::Cop::VariableForce::MULTIPLE_ASSIGNMENT_TYPE = T.let(T.unsafe(nil), Symbol)
RuboCop::Cop::VariableForce::OPERATOR_ASSIGNMENT_TYPES = T.let(T.unsafe(nil), Array)
RuboCop::Cop::VariableForce::POST_CONDITION_LOOP_TYPES = T.let(T.unsafe(nil), Array)
RuboCop::Cop::VariableForce::REGEXP_NAMED_CAPTURE_TYPE = T.let(T.unsafe(nil), Symbol)
RuboCop::Cop::VariableForce::RESCUE_TYPE = T.let(T.unsafe(nil), Symbol)
class RuboCop::Cop::VariableForce::Reference
include(::RuboCop::Cop::VariableForce::Branchable)
def initialize(node, scope); end
def explicit?; end
def node; end
def scope; end
end
RuboCop::Cop::VariableForce::Reference::VARIABLE_REFERENCE_TYPES = T.let(T.unsafe(nil), Array)
RuboCop::Cop::VariableForce::SCOPE_TYPES = T.let(T.unsafe(nil), Array)
RuboCop::Cop::VariableForce::SEND_TYPE = T.let(T.unsafe(nil), Symbol)
class RuboCop::Cop::VariableForce::Scope
def initialize(node); end
def ==(other); end
def body_node; end
def each_node(&block); end
def include?(target_node); end
def naked_top_level; end
def naked_top_level?; end
def name; end
def node; end
def variables; end
private
def ancestor_node?(target_node); end
def belong_to_inner_scope?(target_node); end
def belong_to_outer_scope?(target_node); end
def scan_node(node, &block); end
end
RuboCop::Cop::VariableForce::Scope::OUTER_SCOPE_CHILD_INDICES = T.let(T.unsafe(nil), Hash)
RuboCop::Cop::VariableForce::TWISTED_SCOPE_TYPES = T.let(T.unsafe(nil), Array)
RuboCop::Cop::VariableForce::VARIABLE_ASSIGNMENT_TYPE = T.let(T.unsafe(nil), Symbol)
RuboCop::Cop::VariableForce::VARIABLE_ASSIGNMENT_TYPES = T.let(T.unsafe(nil), Array)
RuboCop::Cop::VariableForce::VARIABLE_REFERENCE_TYPE = T.let(T.unsafe(nil), Symbol)
class RuboCop::Cop::VariableForce::Variable
def initialize(name, declaration_node, scope); end
def argument?; end
def assign(node); end
def assignments; end
def block_argument?; end
def capture_with_block!; end
def captured_by_block; end
def captured_by_block?; end
def declaration_node; end
def explicit_block_local_variable?; end
def in_modifier_if?(assignment); end
def keyword_argument?; end
def method_argument?; end
def name; end
def reference!(node); end
def referenced?; end
def references; end
def scope; end
def should_be_unused?; end
def used?; end
end
RuboCop::Cop::VariableForce::Variable::VARIABLE_DECLARATION_TYPES = T.let(T.unsafe(nil), Array)
class RuboCop::Cop::VariableForce::VariableReference < ::Struct
def assignment?; end
def name; end
def name=(_); end
def self.[](*_); end
def self.inspect; end
def self.members; end
def self.new(*_); end
end
class RuboCop::Cop::VariableForce::VariableTable
def initialize(hook_receiver = _); end
def accessible_variables; end
def assign_to_variable(name, node); end
def current_scope; end
def current_scope_level; end
def declare_variable(name, node); end
def find_variable(name); end
def invoke_hook(hook_name, *args); end
def pop_scope; end
def push_scope(scope_node); end
def reference_variable(name, node); end
def scope_stack; end
def variable_exist?(name); end
private
def mark_variable_as_captured_by_block_if_so(variable); end
end
RuboCop::Cop::VariableForce::ZERO_ARITY_SUPER_TYPE = T.let(T.unsafe(nil), Symbol)
class RuboCop::Error < ::StandardError
end
class RuboCop::ErrorWithAnalyzedFileLocation < ::RuboCop::Error
def initialize(cause:, node:, cop:); end
def cause; end
def column; end
def cop; end
def line; end
def message; end
end
module RuboCop::Ext
end
module RuboCop::Ext::ProcessedSource
def comment_config; end
def disabled_line_ranges; end
end
module RuboCop::FileFinder
def find_file_upwards(filename, start_dir); end
def find_files_upwards(filename, start_dir); end
private
def traverse_files_upwards(filename, start_dir); end
def self.root_level=(level); end
def self.root_level?(path); end
end
module RuboCop::Formatter
end
class RuboCop::Formatter::AutoGenConfigFormatter < ::RuboCop::Formatter::ProgressFormatter
def finished(inspected_files); end
end
class RuboCop::Formatter::BaseFormatter
def initialize(output, options = _); end
def file_finished(file, offenses); end
def file_started(file, options); end
def finished(inspected_files); end
def options; end
def output; end
def started(target_files); end
end
class RuboCop::Formatter::ClangStyleFormatter < ::RuboCop::Formatter::SimpleTextFormatter
def report_file(file, offenses); end
private
def report_highlighted_area(highlighted_area); end
def report_line(location); end
def report_offense(file, offense); end
def valid_line?(offense); end
end
RuboCop::Formatter::ClangStyleFormatter::ELLIPSES = T.let(T.unsafe(nil), String)
module RuboCop::Formatter::Colorizable
def black(string); end
def blue(string); end
def colorize(string, *args); end
def cyan(string); end
def green(string); end
def magenta(string); end
def rainbow; end
def red(string); end
def white(string); end
def yellow(string); end
end
class RuboCop::Formatter::DisabledConfigFormatter < ::RuboCop::Formatter::BaseFormatter
def initialize(output, options = _); end
def file_finished(file, offenses); end
def file_started(_file, _file_info); end
def finished(_inspected_files); end
private
def command; end
def cop_config_params(default_cfg, cfg); end
def default_config(cop_name); end
def excludes(offending_files, cop_name, parent); end
def output_cop(cop_name, offense_count); end
def output_cop_comments(output_buffer, cfg, cop_name, offense_count); end
def output_cop_config(output_buffer, cfg, cop_name); end
def output_cop_param_comments(output_buffer, params, default_cfg); end
def output_exclude_list(output_buffer, offending_files, cop_name); end
def output_exclude_path(output_buffer, exclude_path, parent); end
def output_offending_files(output_buffer, cfg, cop_name); end
def output_offenses; end
def set_max(cfg, cop_name); end
def timestamp; end
def self.config_to_allow_offenses; end
def self.config_to_allow_offenses=(_); end
def self.detected_styles; end
def self.detected_styles=(_); end
end
RuboCop::Formatter::DisabledConfigFormatter::HEADING = T.let(T.unsafe(nil), String)
class RuboCop::Formatter::EmacsStyleFormatter < ::RuboCop::Formatter::BaseFormatter
def file_finished(file, offenses); end
private
def message(offense); end
end
class RuboCop::Formatter::FileListFormatter < ::RuboCop::Formatter::BaseFormatter
def file_finished(file, offenses); end
end
class RuboCop::Formatter::FormatterSet < ::Array
def initialize(options = _); end
def add_formatter(formatter_type, output_path = _); end
def close_output_files; end
def file_finished(file, offenses); end
def file_started(file, options); end
def finished(*args); end
def started(*args); end
private
def builtin_formatter_class(specified_key); end
def custom_formatter_class(specified_class_name); end
def formatter_class(formatter_type); end
end
RuboCop::Formatter::FormatterSet::BUILTIN_FORMATTERS_FOR_KEYS = T.let(T.unsafe(nil), Hash)
RuboCop::Formatter::FormatterSet::FORMATTER_APIS = T.let(T.unsafe(nil), Array)
class RuboCop::Formatter::FuubarStyleFormatter < ::RuboCop::Formatter::ClangStyleFormatter
def initialize(*output); end
def count_stats(offenses); end
def file_finished(file, offenses); end
def progressbar_color; end
def started(target_files); end
def with_color; end
end
RuboCop::Formatter::FuubarStyleFormatter::RESET_SEQUENCE = T.let(T.unsafe(nil), String)
class RuboCop::Formatter::HTMLFormatter < ::RuboCop::Formatter::BaseFormatter
def initialize(output, options = _); end
def file_finished(file, offenses); end
def files; end
def finished(inspected_files); end
def render_html; end
def started(target_files); end
def summary; end
end
class RuboCop::Formatter::HTMLFormatter::Color < ::Struct
def alpha; end
def alpha=(_); end
def blue; end
def blue=(_); end
def fade_out(amount); end
def green; end
def green=(_); end
def red; end
def red=(_); end
def to_s; end
def self.[](*_); end
def self.inspect; end
def self.members; end
def self.new(*_); end
end
RuboCop::Formatter::HTMLFormatter::ELLIPSES = T.let(T.unsafe(nil), String)
class RuboCop::Formatter::HTMLFormatter::ERBContext
include(::RuboCop::PathUtil)
include(::RuboCop::Formatter::TextUtil)
def initialize(files, summary); end
def base64_encoded_logo_image; end
def binding; end
def decorated_message(offense); end
def escape(string); end
def files; end
def highlighted_source_line(offense); end
def hightlight_source_tag(offense); end
def possible_ellipses(location); end
def source_after_highlight(offense); end
def source_before_highlight(offense); end
def summary; end
end
RuboCop::Formatter::HTMLFormatter::ERBContext::LOGO_IMAGE_PATH = T.let(T.unsafe(nil), String)
RuboCop::Formatter::HTMLFormatter::ERBContext::SEVERITY_COLORS = T.let(T.unsafe(nil), Hash)
RuboCop::Formatter::HTMLFormatter::TEMPLATE_PATH = T.let(T.unsafe(nil), String)
class RuboCop::Formatter::JSONFormatter < ::RuboCop::Formatter::BaseFormatter
include(::RuboCop::PathUtil)
def initialize(output, options = _); end
def file_finished(file, offenses); end
def finished(inspected_files); end
def hash_for_file(file, offenses); end
def hash_for_location(offense); end
def hash_for_offense(offense); end
def metadata_hash; end
def output_hash; end
def started(target_files); end
end
class RuboCop::Formatter::JUnitFormatter < ::RuboCop::Formatter::BaseFormatter
def initialize(output, options = _); end
def classname_attribute_value(file); end
def file_finished(file, offenses); end
def finished(_inspected_files); end
def offenses_for_cop(all_offenses, cop); end
def relevant_for_output?(options, target_offenses); end
private
def add_failure_to(testcase, offenses, cop_name); end
end
class RuboCop::Formatter::OffenseCountFormatter < ::RuboCop::Formatter::BaseFormatter
def file_finished(_file, offenses); end
def finished(_inspected_files); end
def offense_counts; end
def ordered_offense_counts(offense_counts); end
def report_summary(offense_counts); end
def started(target_files); end
def total_offense_count(offense_counts); end
end
class RuboCop::Formatter::PacmanFormatter < ::RuboCop::Formatter::ClangStyleFormatter
include(::RuboCop::Formatter::TextUtil)
def initialize(output, options = _); end
def cols; end
def file_finished(file, offenses); end
def file_started(_file, _options); end
def next_step(offenses); end
def pacdots(number); end
def progress_line; end
def progress_line=(_); end
def started(target_files); end
def step(character); end
def update_progress_line; end
end
RuboCop::Formatter::PacmanFormatter::FALLBACK_TERMINAL_WIDTH = T.let(T.unsafe(nil), Integer)
RuboCop::Formatter::PacmanFormatter::GHOST = T.let(T.unsafe(nil), String)
RuboCop::Formatter::PacmanFormatter::PACDOT = T.let(T.unsafe(nil), Rainbow::Presenter)
RuboCop::Formatter::PacmanFormatter::PACMAN = T.let(T.unsafe(nil), Rainbow::Presenter)
class RuboCop::Formatter::ProgressFormatter < ::RuboCop::Formatter::ClangStyleFormatter
include(::RuboCop::Formatter::TextUtil)
def initialize(output, options = _); end
def file_finished(file, offenses); end
def finished(inspected_files); end
def report_file_as_mark(offenses); end
def started(target_files); end
end
RuboCop::Formatter::ProgressFormatter::DOT = T.let(T.unsafe(nil), String)
class RuboCop::Formatter::QuietFormatter < ::RuboCop::Formatter::SimpleTextFormatter
def report_summary(file_count, offense_count, correction_count); end
end
class RuboCop::Formatter::SimpleTextFormatter < ::RuboCop::Formatter::BaseFormatter
include(::RuboCop::Formatter::Colorizable)
include(::RuboCop::PathUtil)
def file_finished(file, offenses); end
def finished(inspected_files); end
def report_file(file, offenses); end
def report_summary(file_count, offense_count, correction_count); end
def started(_target_files); end
private
def annotate_message(msg); end
def colored_severity_code(offense); end
def count_stats(offenses); end
def message(offense); end
end
RuboCop::Formatter::SimpleTextFormatter::COLOR_FOR_SEVERITY = T.let(T.unsafe(nil), Hash)
class RuboCop::Formatter::SimpleTextFormatter::Report
include(::RuboCop::Formatter::Colorizable)
include(::RuboCop::Formatter::TextUtil)
def initialize(file_count, offense_count, correction_count, rainbow); end
def summary; end
private
def corrections; end
def files; end
def offenses; end
def rainbow; end
end
class RuboCop::Formatter::TapFormatter < ::RuboCop::Formatter::ClangStyleFormatter
def file_finished(file, offenses); end
def started(target_files); end
private
def annotate_message(msg); end
def message(offense); end
def report_highlighted_area(highlighted_area); end
def report_line(location); end
def report_offense(file, offense); end
end
module RuboCop::Formatter::TextUtil
private
def pluralize(number, thing, options = _); end
def self.pluralize(number, thing, options = _); end
end
class RuboCop::Formatter::WorstOffendersFormatter < ::RuboCop::Formatter::BaseFormatter
def file_finished(file, offenses); end
def finished(_inspected_files); end
def offense_counts; end
def ordered_offense_counts(offense_counts); end
def report_summary(offense_counts); end
def started(target_files); end
def total_offense_count(offense_counts); end
end
class RuboCop::IncorrectCopNameError < ::StandardError
end
class RuboCop::MagicComment
def initialize(comment); end
def any?; end
def encoding_specified?; end
def frozen_string_literal; end
def frozen_string_literal?; end
def frozen_string_literal_specified?; end
def valid_literal_value?; end
private
def extract(pattern); end
def specified?(value); end
def self.parse(comment); end
end
class RuboCop::MagicComment::EditorComment < ::RuboCop::MagicComment
private
def match(keyword); end
def tokens; end
end
class RuboCop::MagicComment::EmacsComment < ::RuboCop::MagicComment::EditorComment
def encoding; end
private
def extract_frozen_string_literal; end
end
RuboCop::MagicComment::EmacsComment::FORMAT = T.let(T.unsafe(nil), Regexp)
RuboCop::MagicComment::EmacsComment::OPERATOR = T.let(T.unsafe(nil), String)
RuboCop::MagicComment::EmacsComment::SEPARATOR = T.let(T.unsafe(nil), String)
class RuboCop::MagicComment::SimpleComment < ::RuboCop::MagicComment
def encoding; end
private
def extract_frozen_string_literal; end
end
RuboCop::MagicComment::TOKEN = T.let(T.unsafe(nil), Regexp)
class RuboCop::MagicComment::VimComment < ::RuboCop::MagicComment::EditorComment
def encoding; end
def frozen_string_literal; end
end
RuboCop::MagicComment::VimComment::FORMAT = T.let(T.unsafe(nil), Regexp)
RuboCop::MagicComment::VimComment::OPERATOR = T.let(T.unsafe(nil), String)
RuboCop::MagicComment::VimComment::SEPARATOR = T.let(T.unsafe(nil), String)
module RuboCop::NameSimilarity
private
def find_similar_name(target_name, names); end
def find_similar_names(target_name, names); end
def self.find_similar_name(target_name, names); end
def self.find_similar_names(target_name, names); end
end
RuboCop::NodePattern = RuboCop::AST::NodePattern
class RuboCop::OptionArgumentError < ::StandardError
end
class RuboCop::Options
def initialize; end
def parse(command_line_args); end
private
def add_aliases(opts); end
def add_auto_gen_options(opts); end
def add_boolean_flags(opts); end
def add_configuration_options(opts); end
def add_cop_selection_csv_option(option, opts); end
def add_flags_with_optional_args(opts); end
def add_formatting_options(opts); end
def add_list_options(opts); end
def add_only_options(opts); end
def add_severity_option(opts); end
def args_from_env; end
def args_from_file; end
def define_options; end
def long_opt_symbol(args); end
def option(opts, *args); end
end
RuboCop::Options::DEFAULT_MAXIMUM_EXCLUSION_ITEMS = T.let(T.unsafe(nil), Integer)
RuboCop::Options::EXITING_OPTIONS = T.let(T.unsafe(nil), Array)
RuboCop::Options::E_STDIN_NO_PATH = T.let(T.unsafe(nil), String)
module RuboCop::OptionsHelp
end
RuboCop::OptionsHelp::FORMATTER_OPTION_LIST = T.let(T.unsafe(nil), Array)
RuboCop::OptionsHelp::MAX_EXCL = T.let(T.unsafe(nil), String)
RuboCop::OptionsHelp::TEXT = T.let(T.unsafe(nil), Hash)
class RuboCop::OptionsValidator
def initialize(options); end
def boolean_or_empty_cache?; end
def display_only_fail_level_offenses_with_autocorrect?; end
def except_syntax?; end
def incompatible_options; end
def only_includes_redundant_disable?; end
def validate_auto_correct; end
def validate_auto_gen_config; end
def validate_compatibility; end
def validate_cop_options; end
def validate_display_only_failed; end
def validate_exclude_limit_option; end
def validate_parallel; end
def validate_parallel_with_combo_option; end
def self.validate_cop_list(names); end
end
module RuboCop::PathUtil
private
def absolute?(path); end
def hidden_dir?(path); end
def hidden_file_in_not_hidden_dir?(pattern, path); end
def match_path?(pattern, path); end
def relative_path(path, base_dir = _); end
def smart_path(path); end
def self.absolute?(path); end
def self.chdir(dir, &block); end
def self.hidden_dir?(path); end
def self.hidden_file_in_not_hidden_dir?(pattern, path); end
def self.match_path?(pattern, path); end
def self.pwd; end
def self.relative_path(path, base_dir = _); end
def self.reset_pwd; end
def self.smart_path(path); end
end
module RuboCop::Platform
def self.windows?; end
end
RuboCop::ProcessedSource = RuboCop::AST::ProcessedSource
class RuboCop::RemoteConfig
def initialize(url, base_dir); end
def file; end
def inherit_from_remote(file, path); end
def uri; end
private
def cache_name_from_uri; end
def cache_path; end
def cache_path_exists?; end
def cache_path_expired?; end
def generate_request(uri); end
def handle_response(response, limit, &block); end
def request(uri = _, limit = _, &block); end
end
RuboCop::RemoteConfig::CACHE_LIFETIME = T.let(T.unsafe(nil), Integer)
class RuboCop::ResultCache
def initialize(file, team, options, config_store, cache_root = _); end
def load; end
def save(offenses); end
def valid?; end
private
def any_symlink?(path); end
def context_checksum(team, options); end
def file_checksum(file, config_store); end
def relevant_options_digest(options); end
def rubocop_checksum; end
def symlink_protection_triggered?(path); end
def team_checksum(team); end
def self.allow_symlinks_in_cache_location?(config_store); end
def self.cache_root(config_store); end
def self.cleanup(config_store, verbose, cache_root = _); end
def self.inhibit_cleanup; end
def self.inhibit_cleanup=(_); end
def self.source_checksum; end
def self.source_checksum=(_); end
end
RuboCop::ResultCache::NON_CHANGING = T.let(T.unsafe(nil), Array)
class RuboCop::Runner
def initialize(options, config_store); end
def aborting=(_); end
def aborting?; end
def errors; end
def run(paths); end
def warnings; end
private
def add_redundant_disables(file, offenses, source); end
def autocorrect_redundant_disables(file, source, cop, offenses); end
def cached_result(file, team); end
def cached_run?; end
def check_for_infinite_loop(processed_source, offenses); end
def check_for_redundant_disables?(source); end
def considered_failure?(offense); end
def do_inspection_loop(file, processed_source); end
def each_inspected_file(files); end
def file_finished(file, offenses); end
def file_offense_cache(file); end
def file_offenses(file); end
def file_started(file); end
def filter_cop_classes(cop_classes, config); end
def filtered_run?; end
def find_target_files(paths); end
def formatter_set; end
def get_processed_source(file); end
def inspect_file(processed_source); end
def inspect_files(files); end
def iterate_until_no_changes(source, offenses); end
def list_files(paths); end
def minimum_severity_to_fail; end
def mobilized_cop_classes(config); end
def process_file(file); end
def redundant_cop_disable_directive(file); end
def save_in_cache(cache, offenses); end
def standby_team(config); end
def style_guide_cops_only?(config); end
def warm_cache(target_files); end
end
class RuboCop::Runner::InfiniteCorrectionLoop < ::RuntimeError
def initialize(path, offenses); end
def offenses; end
end
RuboCop::Runner::MAX_ITERATIONS = T.let(T.unsafe(nil), Integer)
class RuboCop::StringInterpreter
def self.interpret(string); end
end
RuboCop::StringInterpreter::STRING_ESCAPES = T.let(T.unsafe(nil), Hash)
RuboCop::StringInterpreter::STRING_ESCAPE_REGEX = T.let(T.unsafe(nil), Regexp)
class RuboCop::TargetFinder
def initialize(config_store, options = _); end
def all_cops_include; end
def configured_include?(file); end
def debug?; end
def excluded_dirs(base_dir); end
def fail_fast?; end
def find(args, mode); end
def find_files(base_dir, flags); end
def force_exclusion?; end
def included_file?(file); end
def process_explicit_path(path, mode); end
def ruby_executable?(file); end
def ruby_extension?(file); end
def ruby_extensions; end
def ruby_file?(file); end
def ruby_filename?(file); end
def ruby_filenames; end
def ruby_interpreters(file); end
def stdin?; end
def target_files_in_dir(base_dir = _); end
def to_inspect?(file, hidden_files, base_dir_config); end
def toplevel_dirs(base_dir, flags); end
private
def order; end
end
class RuboCop::TargetRuby
def initialize(config); end
def rubocop_version_with_support; end
def source; end
def supported?; end
def version; end
def self.supported_versions; end
end
class RuboCop::TargetRuby::BundlerLockFile < ::RuboCop::TargetRuby::Source
def name; end
private
def bundler_lock_file_path; end
def find_version; end
end
RuboCop::TargetRuby::DEFAULT_VERSION = T.let(T.unsafe(nil), Float)
class RuboCop::TargetRuby::Default < ::RuboCop::TargetRuby::Source
def name; end
private
def find_version; end
end
class RuboCop::TargetRuby::RuboCopConfig < ::RuboCop::TargetRuby::Source
def name; end
private
def find_version; end
end
class RuboCop::TargetRuby::RubyVersionFile < ::RuboCop::TargetRuby::Source
def name; end
private
def find_version; end
def ruby_version_file; end
end
RuboCop::TargetRuby::RubyVersionFile::FILENAME = T.let(T.unsafe(nil), String)
class RuboCop::TargetRuby::Source
def initialize(config); end
def name; end
def to_s; end
def version; end
end
RuboCop::Token = RuboCop::AST::Token
class RuboCop::ValidationError < ::RuboCop::Error
end
module RuboCop::Version
def self.version(debug = _); end
end
RuboCop::Version::MSG = T.let(T.unsafe(nil), String)
RuboCop::Version::STRING = T.let(T.unsafe(nil), String)
class RuboCop::Warning < ::StandardError
end
module RuboCop::YAMLDuplicationChecker
def self.check(yaml_string, filename, &on_duplicated); end
end
class String
include(::Comparable)
include(::JSON::Ext::Generator::GeneratorMethods::String)
extend(::JSON::Ext::Generator::GeneratorMethods::String::Extend)
def blank?; end
end