Module: RuboCop::Cop

Defined in:
lib/rubocop/cop/cop.rb,
lib/rubocop/cop/base.rb,
lib/rubocop/cop/team.rb,
lib/rubocop/cop/util.rb,
lib/rubocop/cop/badge.rb,
lib/rubocop/cop/force.rb,
lib/rubocop/cop/offense.rb,
lib/rubocop/cop/registry.rb,
lib/rubocop/cop/severity.rb,
lib/rubocop/cop/corrector.rb,
lib/rubocop/cop/generator.rb,
lib/rubocop/cop/lint/loop.rb,
lib/rubocop/cop/lint/void.rb,
lib/rubocop/cop/style/dir.rb,
lib/rubocop/cop/style/for.rb,
lib/rubocop/cop/style/not.rb,
lib/rubocop/cop/style/attr.rb,
lib/rubocop/cop/style/next.rb,
lib/rubocop/cop/style/proc.rb,
lib/rubocop/cop/style/send.rb,
lib/rubocop/cop/lint/syntax.rb,
lib/rubocop/cop/style/alias.rb,
lib/rubocop/cop/style/strip.rb,
lib/rubocop/cop/commissioner.rb,
lib/rubocop/cop/ignored_node.rb,
lib/rubocop/cop/lint/to_json.rb,
lib/rubocop/cop/style/and_or.rb,
lib/rubocop/cop/style/lambda.rb,
lib/rubocop/cop/style/sample.rb,
lib/rubocop/rspec/cop_helper.rb,
lib/rubocop/cop/documentation.rb,
lib/rubocop/cop/lint/debugger.rb,
lib/rubocop/cop/lint/rand_one.rb,
lib/rubocop/cop/mixin/heredoc.rb,
lib/rubocop/cop/security/eval.rb,
lib/rubocop/cop/security/open.rb,
lib/rubocop/cop/style/min_max.rb,
lib/rubocop/cop/lint/flip_flop.rb,
lib/rubocop/cop/mixin/def_node.rb,
lib/rubocop/cop/style/encoding.rb,
lib/rubocop/cop/style/env_home.rb,
lib/rubocop/cop/style/even_odd.rb,
lib/rubocop/cop/variable_force.rb,
lib/rubocop/cop/lint/empty_file.rb,
lib/rubocop/cop/lint/empty_when.rb,
lib/rubocop/cop/lint/uri_regexp.rb,
lib/rubocop/cop/mixin/alignment.rb,
lib/rubocop/cop/style/copyright.rb,
lib/rubocop/cop/style/date_time.rb,
lib/rubocop/cop/style/dir_empty.rb,
lib/rubocop/cop/style/end_block.rb,
lib/rubocop/cop/style/file_read.rb,
lib/rubocop/cop/style/semicolon.rb,
lib/rubocop/cop/style/when_then.rb,
lib/rubocop/cop/legacy/corrector.rb,
lib/rubocop/cop/lint/else_layout.rb,
lib/rubocop/cop/lint/empty_block.rb,
lib/rubocop/cop/lint/empty_class.rb,
lib/rubocop/cop/lint/rescue_type.rb,
lib/rubocop/cop/metrics/abc_size.rb,
lib/rubocop/cop/mixin/range_help.rb,
lib/rubocop/cop/naming/file_name.rb,
lib/rubocop/cop/style/array_join.rb,
lib/rubocop/cop/style/class_vars.rb,
lib/rubocop/cop/style/empty_else.rb,
lib/rubocop/cop/style/file_empty.rb,
lib/rubocop/cop/style/file_write.rb,
lib/rubocop/cop/style/map_to_set.rb,
lib/rubocop/cop/style/negated_if.rb,
lib/rubocop/cop/style/nil_lambda.rb,
lib/rubocop/cop/style/raise_args.rb,
lib/rubocop/cop/style/return_nil.rb,
lib/rubocop/cop/style/word_array.rb,
lib/rubocop/cop/autocorrect_logic.rb,
lib/rubocop/cop/lint/empty_ensure.rb,
lib/rubocop/cop/message_annotator.rb,
lib/rubocop/cop/mixin/code_length.rb,
lib/rubocop/cop/mixin/duplication.rb,
lib/rubocop/cop/mixin/match_range.rb,
lib/rubocop/cop/mixin/nil_methods.rb,
lib/rubocop/cop/mixin/parentheses.rb,
lib/rubocop/cop/mixin/rescue_node.rb,
lib/rubocop/cop/mixin/string_help.rb,
lib/rubocop/cop/mixin/symbol_help.rb,
lib/rubocop/cop/style/begin_block.rb,
lib/rubocop/cop/style/class_check.rb,
lib/rubocop/cop/style/global_vars.rb,
lib/rubocop/cop/style/hash_except.rb,
lib/rubocop/cop/style/hash_syntax.rb,
lib/rubocop/cop/style/lambda_call.rb,
lib/rubocop/cop/style/map_to_hash.rb,
lib/rubocop/cop/style/mixin_usage.rb,
lib/rubocop/cop/style/object_then.rb,
lib/rubocop/cop/style/option_hash.rb,
lib/rubocop/cop/style/stderr_puts.rb,
lib/rubocop/cop/style/swap_values.rb,
lib/rubocop/cop/style/symbol_proc.rb,
lib/rubocop/cop/style/unless_else.rb,
lib/rubocop/cop/layout/empty_lines.rb,
lib/rubocop/cop/layout/end_of_line.rb,
lib/rubocop/cop/layout/line_length.rb,
lib/rubocop/cop/lint/ensure_return.rb,
lib/rubocop/cop/lint/missing_super.rb,
lib/rubocop/cop/lint/triple_quotes.rb,
lib/rubocop/cop/lint/useless_times.rb,
lib/rubocop/cop/mixin/array_syntax.rb,
lib/rubocop/cop/mixin/gemspec_help.rb,
lib/rubocop/cop/mixin/integer_node.rb,
lib/rubocop/cop/naming/method_name.rb,
lib/rubocop/cop/security/json_load.rb,
lib/rubocop/cop/security/yaml_load.rb,
lib/rubocop/cop/style/case_like_if.rb,
lib/rubocop/cop/style/empty_method.rb,
lib/rubocop/cop/style/guard_clause.rb,
lib/rubocop/cop/style/ip_addresses.rb,
lib/rubocop/cop/style/missing_else.rb,
lib/rubocop/cop/style/static_class.rb,
lib/rubocop/cop/style/string_chars.rb,
lib/rubocop/cop/style/symbol_array.rb,
lib/rubocop/cop/style/unpack_first.rb,
lib/rubocop/cop/bundler/gem_comment.rb,
lib/rubocop/cop/bundler/gem_version.rb,
lib/rubocop/cop/gemspec/require_mfa.rb,
lib/rubocop/cop/layout/dot_position.rb,
lib/rubocop/cop/lint/boolean_symbol.rb,
lib/rubocop/cop/lint/useless_rescue.rb,
lib/rubocop/cop/mixin/comments_help.rb,
lib/rubocop/cop/mixin/interpolation.rb,
lib/rubocop/cop/mixin/percent_array.rb,
lib/rubocop/cop/mixin/trailing_body.rb,
lib/rubocop/cop/security/io_methods.rb,
lib/rubocop/cop/style/case_equality.rb,
lib/rubocop/cop/style/class_methods.rb,
lib/rubocop/cop/style/documentation.rb,
lib/rubocop/cop/style/empty_heredoc.rb,
lib/rubocop/cop/style/empty_literal.rb,
lib/rubocop/cop/style/fetch_env_var.rb,
lib/rubocop/cop/style/format_string.rb,
lib/rubocop/cop/style/infinite_loop.rb,
lib/rubocop/cop/style/negated_while.rb,
lib/rubocop/cop/style/non_nil_check.rb,
lib/rubocop/cop/style/or_assignment.rb,
lib/rubocop/cop/style/perl_backrefs.rb,
lib/rubocop/cop/style/require_order.rb,
lib/rubocop/cop/utils/format_string.rb,
lib/rubocop/cop/utils/regexp_ranges.rb,
lib/rubocop/cop/bundler/gem_filename.rb,
lib/rubocop/cop/bundler/ordered_gems.rb,
lib/rubocop/cop/layout/empty_comment.rb,
lib/rubocop/cop/layout/end_alignment.rb,
lib/rubocop/cop/layout/extra_spacing.rb,
lib/rubocop/cop/lint/ambiguous_range.rb,
lib/rubocop/cop/lint/big_decimal_new.rb,
lib/rubocop/cop/lint/raise_exception.rb,
lib/rubocop/cop/lint/self_assignment.rb,
lib/rubocop/cop/lint/unified_integer.rb,
lib/rubocop/cop/metrics/block_length.rb,
lib/rubocop/cop/metrics/class_length.rb,
lib/rubocop/cop/mixin/array_min_size.rb,
lib/rubocop/cop/mixin/auto_corrector.rb,
lib/rubocop/cop/mixin/trailing_comma.rb,
lib/rubocop/cop/naming/constant_name.rb,
lib/rubocop/cop/naming/variable_name.rb,
lib/rubocop/cop/style/array_coercion.rb,
lib/rubocop/cop/style/ascii_comments.rb,
lib/rubocop/cop/style/block_comments.rb,
lib/rubocop/cop/style/endless_method.rb,
lib/rubocop/cop/style/float_division.rb,
lib/rubocop/cop/style/hash_like_case.rb,
lib/rubocop/cop/style/if_inside_else.rb,
lib/rubocop/cop/style/inline_comment.rb,
lib/rubocop/cop/style/map_into_array.rb,
lib/rubocop/cop/style/mixin_grouping.rb,
lib/rubocop/cop/style/negated_unless.rb,
lib/rubocop/cop/style/nil_comparison.rb,
lib/rubocop/cop/style/quoted_symbols.rb,
lib/rubocop/cop/style/redundant_each.rb,
lib/rubocop/cop/style/redundant_self.rb,
lib/rubocop/cop/style/redundant_sort.rb,
lib/rubocop/cop/style/regexp_literal.rb,
lib/rubocop/cop/style/string_methods.rb,
lib/rubocop/cop/style/symbol_literal.rb,
lib/rubocop/cop/style/while_until_do.rb,
lib/rubocop/cop/style/yaml_file_read.rb,
lib/rubocop/cop/style/yoda_condition.rb,
lib/rubocop/cop/variable_force/scope.rb,
lib/rubocop/cop/layout/else_alignment.rb,
lib/rubocop/cop/layout/hash_alignment.rb,
lib/rubocop/cop/lint/duplicate_branch.rb,
lib/rubocop/cop/lint/empty_expression.rb,
lib/rubocop/cop/lint/empty_in_pattern.rb,
lib/rubocop/cop/lint/float_comparison.rb,
lib/rubocop/cop/lint/mixed_case_range.rb,
lib/rubocop/cop/lint/rescue_exception.rb,
lib/rubocop/cop/lint/unreachable_code.rb,
lib/rubocop/cop/lint/unreachable_loop.rb,
lib/rubocop/cop/metrics/block_nesting.rb,
lib/rubocop/cop/metrics/method_length.rb,
lib/rubocop/cop/metrics/module_length.rb,
lib/rubocop/cop/mixin/allowed_methods.rb,
lib/rubocop/cop/mixin/allowed_pattern.rb,
lib/rubocop/cop/mixin/empty_parameter.rb,
lib/rubocop/cop/mixin/gem_declaration.rb,
lib/rubocop/cop/mixin/min_body_length.rb,
lib/rubocop/cop/mixin/percent_literal.rb,
lib/rubocop/cop/mixin/require_library.rb,
lib/rubocop/cop/mixin/safe_assignment.rb,
lib/rubocop/cop/mixin/unused_argument.rb,
lib/rubocop/cop/mixin/visibility_help.rb,
lib/rubocop/cop/naming/predicate_name.rb,
lib/rubocop/cop/security/marshal_load.rb,
lib/rubocop/cop/style/array_intersect.rb,
lib/rubocop/cop/style/command_literal.rb,
lib/rubocop/cop/style/double_negation.rb,
lib/rubocop/cop/style/hash_conversion.rb,
lib/rubocop/cop/style/in_pattern_then.rb,
lib/rubocop/cop/style/inverse_methods.rb,
lib/rubocop/cop/style/module_function.rb,
lib/rubocop/cop/style/nested_modifier.rb,
lib/rubocop/cop/style/open_struct_use.rb,
lib/rubocop/cop/style/redundant_begin.rb,
lib/rubocop/cop/style/rescue_modifier.rb,
lib/rubocop/cop/style/safe_navigation.rb,
lib/rubocop/cop/style/self_assignment.rb,
lib/rubocop/cop/style/string_literals.rb,
lib/rubocop/cop/style/super_arguments.rb,
lib/rubocop/cop/style/yoda_expression.rb,
lib/rubocop/cop/variable_force/branch.rb,
lib/rubocop/cop/bundler/duplicated_gem.rb,
lib/rubocop/cop/layout/array_alignment.rb,
lib/rubocop/cop/layout/block_alignment.rb,
lib/rubocop/cop/layout/class_structure.rb,
lib/rubocop/cop/layout/space_after_not.rb,
lib/rubocop/cop/lint/duplicate_methods.rb,
lib/rubocop/cop/lint/duplicate_require.rb,
lib/rubocop/cop/lint/erb_new_arguments.rb,
lib/rubocop/cop/lint/inherit_exception.rb,
lib/rubocop/cop/lint/number_conversion.rb,
lib/rubocop/cop/lint/script_permission.rb,
lib/rubocop/cop/lint/shadowed_argument.rb,
lib/rubocop/cop/lint/symbol_conversion.rb,
lib/rubocop/cop/lint/to_enum_arguments.rb,
lib/rubocop/cop/mixin/check_assignment.rb,
lib/rubocop/cop/mixin/configurable_max.rb,
lib/rubocop/cop/mixin/line_length_help.rb,
lib/rubocop/cop/mixin/ordered_gem_node.rb,
lib/rubocop/cop/mixin/rational_literal.rb,
lib/rubocop/cop/naming/variable_number.rb,
lib/rubocop/cop/security/compound_hash.rb,
lib/rubocop/cop/style/array_first_last.rb,
lib/rubocop/cop/style/block_delimiters.rb,
lib/rubocop/cop/style/combinable_loops.rb,
lib/rubocop/cop/style/comparable_clamp.rb,
lib/rubocop/cop/style/data_inheritance.rb,
lib/rubocop/cop/style/each_with_object.rb,
lib/rubocop/cop/style/mutable_constant.rb,
lib/rubocop/cop/style/numeric_literals.rb,
lib/rubocop/cop/style/redundant_freeze.rb,
lib/rubocop/cop/style/redundant_return.rb,
lib/rubocop/cop/style/select_by_regexp.rb,
lib/rubocop/cop/style/signal_exception.rb,
lib/rubocop/cop/style/string_hash_keys.rb,
lib/rubocop/cop/layout/case_indentation.rb,
lib/rubocop/cop/lint/ambiguous_operator.rb,
lib/rubocop/cop/lint/duplicate_hash_key.rb,
lib/rubocop/cop/lint/float_out_of_range.rb,
lib/rubocop/cop/lint/shadowed_exception.rb,
lib/rubocop/cop/lint/useless_assignment.rb,
lib/rubocop/cop/metrics/parameter_lists.rb,
lib/rubocop/cop/mixin/allowed_receivers.rb,
lib/rubocop/cop/mixin/method_complexity.rb,
lib/rubocop/cop/mixin/method_preference.rb,
lib/rubocop/cop/mixin/surrounding_space.rb,
lib/rubocop/cop/naming/block_forwarding.rb,
lib/rubocop/cop/style/accessor_grouping.rb,
lib/rubocop/cop/style/bitwise_predicate.rb,
lib/rubocop/cop/style/character_literal.rb,
lib/rubocop/cop/style/colon_method_call.rb,
lib/rubocop/cop/style/commented_keyword.rb,
lib/rubocop/cop/style/global_std_stream.rb,
lib/rubocop/cop/style/hash_each_methods.rb,
lib/rubocop/cop/style/if_with_semicolon.rb,
lib/rubocop/cop/style/multiline_if_then.rb,
lib/rubocop/cop/style/numeric_predicate.rb,
lib/rubocop/cop/style/redundant_sort_by.rb,
lib/rubocop/cop/style/trivial_accessors.rb,
lib/rubocop/cop/variable_force/variable.rb,
lib/rubocop/cop/bundler/duplicated_group.rb,
lib/rubocop/cop/layout/block_end_newline.rb,
lib/rubocop/cop/layout/def_end_alignment.rb,
lib/rubocop/cop/layout/indentation_style.rb,
lib/rubocop/cop/layout/indentation_width.rb,
lib/rubocop/cop/layout/space_after_colon.rb,
lib/rubocop/cop/layout/space_after_comma.rb,
lib/rubocop/cop/legacy/corrections_proxy.rb,
lib/rubocop/cop/lint/constant_resolution.rb,
lib/rubocop/cop/lint/empty_interpolation.rb,
lib/rubocop/cop/lint/identity_comparison.rb,
lib/rubocop/cop/lint/interpolation_check.rb,
lib/rubocop/cop/lint/multiple_comparison.rb,
lib/rubocop/cop/lint/regexp_as_condition.rb,
lib/rubocop/cop/lint/require_parentheses.rb,
lib/rubocop/cop/lint/struct_new_override.rb,
lib/rubocop/cop/lint/uri_escape_unescape.rb,
lib/rubocop/cop/lint/useless_setter_call.rb,
lib/rubocop/cop/mixin/annotation_comment.rb,
lib/rubocop/cop/mixin/enforce_superclass.rb,
lib/rubocop/cop/mixin/min_branches_count.rb,
lib/rubocop/cop/mixin/statement_modifier.rb,
lib/rubocop/cop/naming/ascii_identifiers.rb,
lib/rubocop/cop/style/collection_compact.rb,
lib/rubocop/cop/style/collection_methods.rb,
lib/rubocop/cop/style/combinable_defined.rb,
lib/rubocop/cop/style/comment_annotation.rb,
lib/rubocop/cop/style/eval_with_location.rb,
lib/rubocop/cop/style/exact_regexp_match.rb,
lib/rubocop/cop/style/if_unless_modifier.rb,
lib/rubocop/cop/style/min_max_comparison.rb,
lib/rubocop/cop/style/optional_arguments.rb,
lib/rubocop/cop/style/percent_q_literals.rb,
lib/rubocop/cop/style/random_with_offset.rb,
lib/rubocop/cop/style/redundant_argument.rb,
lib/rubocop/cop/style/slicing_with_range.rb,
lib/rubocop/cop/style/struct_inheritance.rb,
lib/rubocop/cop/variable_force/reference.rb,
lib/rubocop/cop/layout/argument_alignment.rb,
lib/rubocop/cop/layout/condition_position.rb,
lib/rubocop/cop/layout/space_before_comma.rb,
lib/rubocop/cop/lint/ambiguous_assignment.rb,
lib/rubocop/cop/lint/deprecated_constants.rb,
lib/rubocop/cop/lint/literal_as_condition.rb,
lib/rubocop/cop/lint/percent_string_array.rb,
lib/rubocop/cop/lint/percent_symbol_array.rb,
lib/rubocop/cop/lint/redundant_with_index.rb,
lib/rubocop/cop/lint/suppressed_exception.rb,
lib/rubocop/cop/migration/department_name.rb,
lib/rubocop/cop/mixin/allowed_identifiers.rb,
lib/rubocop/cop/mixin/configurable_naming.rb,
lib/rubocop/cop/mixin/on_normal_if_unless.rb,
lib/rubocop/cop/mixin/target_ruby_version.rb,
lib/rubocop/cop/naming/inclusive_language.rb,
lib/rubocop/cop/style/constant_visibility.rb,
lib/rubocop/cop/style/format_string_token.rb,
lib/rubocop/cop/style/hash_transform_keys.rb,
lib/rubocop/cop/style/multiline_when_then.rb,
lib/rubocop/cop/style/multiple_comparison.rb,
lib/rubocop/cop/style/nested_file_dirname.rb,
lib/rubocop/cop/style/numbered_parameters.rb,
lib/rubocop/cop/style/parallel_assignment.rb,
lib/rubocop/cop/style/redundant_capital_w.rb,
lib/rubocop/cop/style/redundant_condition.rb,
lib/rubocop/cop/style/redundant_exception.rb,
lib/rubocop/cop/style/redundant_percent_q.rb,
lib/rubocop/cop/style/single_argument_dig.rb,
lib/rubocop/cop/style/single_line_methods.rb,
lib/rubocop/cop/style/special_global_vars.rb,
lib/rubocop/cop/style/ternary_parentheses.rb,
lib/rubocop/cop/variable_force/assignment.rb,
lib/rubocop/cop/variable_force/branchable.rb,
lib/rubocop/cop/correctors/space_corrector.rb,
lib/rubocop/cop/gemspec/dependency_version.rb,
lib/rubocop/cop/layout/begin_end_alignment.rb,
lib/rubocop/cop/layout/comment_indentation.rb,
lib/rubocop/cop/layout/heredoc_indentation.rb,
lib/rubocop/cop/layout/initial_indentation.rb,
lib/rubocop/cop/layout/leading_empty_lines.rb,
lib/rubocop/cop/layout/parameter_alignment.rb,
lib/rubocop/cop/layout/space_inside_parens.rb,
lib/rubocop/cop/layout/trailing_whitespace.rb,
lib/rubocop/cop/lint/duplicate_set_element.rb,
lib/rubocop/cop/lint/redundant_with_object.rb,
lib/rubocop/cop/lint/safe_navigation_chain.rb,
lib/rubocop/cop/lint/unused_block_argument.rb,
lib/rubocop/cop/mixin/check_line_breakable.rb,
lib/rubocop/cop/mixin/negative_conditional.rb,
lib/rubocop/cop/mixin/preferred_delimiters.rb,
lib/rubocop/cop/mixin/string_literals_help.rb,
lib/rubocop/cop/mixin/uncommunicative_name.rb,
lib/rubocop/cop/style/arguments_forwarding.rb,
lib/rubocop/cop/style/def_with_parentheses.rb,
lib/rubocop/cop/style/documentation_method.rb,
lib/rubocop/cop/style/each_for_simple_loop.rb,
lib/rubocop/cop/style/empty_case_condition.rb,
lib/rubocop/cop/style/exponential_notation.rb,
lib/rubocop/cop/style/magic_comment_format.rb,
lib/rubocop/cop/style/one_line_conditional.rb,
lib/rubocop/cop/style/operator_method_call.rb,
lib/rubocop/cop/style/redundant_assignment.rb,
lib/rubocop/cop/style/redundant_initialize.rb,
lib/rubocop/cop/style/string_concatenation.rb,
lib/rubocop/cop/style/while_until_modifier.rb,
lib/rubocop/cop/layout/redundant_line_break.rb,
lib/rubocop/cop/layout/space_around_keyword.rb,
lib/rubocop/cop/layout/space_before_comment.rb,
lib/rubocop/cop/layout/trailing_empty_lines.rb,
lib/rubocop/cop/lint/empty_conditional_body.rb,
lib/rubocop/cop/lint/nested_percent_literal.rb,
lib/rubocop/cop/lint/ordered_magic_comments.rb,
lib/rubocop/cop/lint/return_in_void_context.rb,
lib/rubocop/cop/lint/unexpected_block_arity.rb,
lib/rubocop/cop/lint/unused_method_argument.rb,
lib/rubocop/cop/lint/useless_ruby2_keywords.rb,
lib/rubocop/cop/mixin/documentation_comment.rb,
lib/rubocop/cop/mixin/end_keyword_alignment.rb,
lib/rubocop/cop/mixin/frozen_string_literal.rb,
lib/rubocop/cop/mixin/hash_alignment_styles.rb,
lib/rubocop/cop/mixin/hash_shorthand_syntax.rb,
lib/rubocop/cop/mixin/hash_transform_method.rb,
lib/rubocop/cop/naming/accessor_method_name.rb,
lib/rubocop/cop/naming/block_parameter_name.rb,
lib/rubocop/cop/style/auto_resource_cleanup.rb,
lib/rubocop/cop/style/bare_percent_literals.rb,
lib/rubocop/cop/style/concat_array_literals.rb,
lib/rubocop/cop/style/empty_block_parameter.rb,
lib/rubocop/cop/style/expand_path_arguments.rb,
lib/rubocop/cop/style/hash_transform_values.rb,
lib/rubocop/cop/style/multiline_block_chain.rb,
lib/rubocop/cop/style/multiline_if_modifier.rb,
lib/rubocop/cop/style/multiline_memoization.rb,
lib/rubocop/cop/style/redundant_conditional.rb,
lib/rubocop/cop/style/redundant_fetch_block.rb,
lib/rubocop/cop/style/redundant_parentheses.rb,
lib/rubocop/cop/style/rescue_standard_error.rb,
lib/rubocop/cop/style/zero_length_predicate.rb,
lib/rubocop/cop/correctors/if_then_corrector.rb,
lib/rubocop/cop/gemspec/ordered_dependencies.rb,
lib/rubocop/cop/layout/leading_comment_space.rb,
lib/rubocop/cop/layout/space_after_semicolon.rb,
lib/rubocop/cop/layout/space_before_brackets.rb,
lib/rubocop/cop/lint/assignment_in_condition.rb,
lib/rubocop/cop/lint/duplicate_magic_comment.rb,
lib/rubocop/cop/lint/duplicate_match_pattern.rb,
lib/rubocop/cop/lint/out_of_range_regexp_ref.rb,
lib/rubocop/cop/lint/redundant_dir_glob_sort.rb,
lib/rubocop/cop/lint/useless_access_modifier.rb,
lib/rubocop/cop/metrics/perceived_complexity.rb,
lib/rubocop/cop/mixin/configurable_numbering.rb,
lib/rubocop/cop/naming/method_parameter_name.rb,
lib/rubocop/cop/style/bisected_attr_accessor.rb,
lib/rubocop/cop/style/conditional_assignment.rb,
lib/rubocop/cop/style/empty_lambda_parameter.rb,
lib/rubocop/cop/style/implicit_runtime_error.rb,
lib/rubocop/cop/style/line_end_concatenation.rb,
lib/rubocop/cop/style/method_def_parentheses.rb,
lib/rubocop/cop/style/numeric_literal_prefix.rb,
lib/rubocop/cop/style/preferred_hash_methods.rb,
lib/rubocop/cop/style/redundant_filter_chain.rb,
lib/rubocop/cop/style/trailing_body_on_class.rb,
lib/rubocop/cop/style/variable_interpolation.rb,
lib/rubocop/cop/gemspec/duplicated_assignment.rb,
lib/rubocop/cop/gemspec/required_ruby_version.rb,
lib/rubocop/cop/layout/assignment_indentation.rb,
lib/rubocop/cop/layout/multiline_block_layout.rb,
lib/rubocop/cop/layout/space_around_operators.rb,
lib/rubocop/cop/layout/space_before_first_arg.rb,
lib/rubocop/cop/layout/space_before_semicolon.rb,
lib/rubocop/cop/lint/ambiguous_regexp_literal.rb,
lib/rubocop/cop/lint/deprecated_class_methods.rb,
lib/rubocop/cop/lint/duplicate_case_condition.rb,
lib/rubocop/cop/lint/hash_compare_by_identity.rb,
lib/rubocop/cop/lint/literal_in_interpolation.rb,
lib/rubocop/cop/lint/nested_method_definition.rb,
lib/rubocop/cop/lint/next_without_accumulator.rb,
lib/rubocop/cop/lint/send_with_mixin_argument.rb,
lib/rubocop/cop/metrics/cyclomatic_complexity.rb,
lib/rubocop/cop/metrics/utils/iterating_block.rb,
lib/rubocop/cop/mixin/configurable_formatting.rb,
lib/rubocop/cop/mixin/empty_lines_around_body.rb,
lib/rubocop/cop/mixin/endless_method_rewriter.rb,
lib/rubocop/cop/mixin/space_after_punctuation.rb,
lib/rubocop/cop/naming/heredoc_delimiter_case.rb,
lib/rubocop/cop/style/colon_method_definition.rb,
lib/rubocop/cop/style/explicit_block_argument.rb,
lib/rubocop/cop/style/hash_as_last_array_item.rb,
lib/rubocop/cop/style/nested_ternary_operator.rb,
lib/rubocop/cop/style/redundant_constant_base.rb,
lib/rubocop/cop/style/redundant_interpolation.rb,
lib/rubocop/cop/style/redundant_regexp_escape.rb,
lib/rubocop/cop/style/redundant_string_escape.rb,
lib/rubocop/cop/style/sole_nested_conditional.rb,
lib/rubocop/cop/style/trailing_body_on_module.rb,
lib/rubocop/cop/variable_force/variable_table.rb,
lib/rubocop/cop/correctors/alignment_corrector.rb,
lib/rubocop/cop/correctors/condition_corrector.rb,
lib/rubocop/cop/gemspec/add_runtime_dependency.rb,
lib/rubocop/cop/layout/empty_line_between_defs.rb,
lib/rubocop/cop/layout/indentation_consistency.rb,
lib/rubocop/cop/layout/rescue_ensure_alignment.rb,
lib/rubocop/cop/layout/single_line_block_chain.rb,
lib/rubocop/cop/layout/space_after_method_name.rb,
lib/rubocop/cop/layout/space_in_lambda_literal.rb,
lib/rubocop/cop/lint/duplicate_elsif_condition.rb,
lib/rubocop/cop/lint/each_with_object_argument.rb,
lib/rubocop/cop/lint/format_parameter_mismatch.rb,
lib/rubocop/cop/lint/non_atomic_file_operation.rb,
lib/rubocop/cop/lint/or_assignment_to_constant.rb,
lib/rubocop/cop/lint/redundant_safe_navigation.rb,
lib/rubocop/cop/lint/redundant_splat_expansion.rb,
lib/rubocop/cop/lint/redundant_string_coercion.rb,
lib/rubocop/cop/lint/refinement_import_methods.rb,
lib/rubocop/cop/lint/require_range_parentheses.rb,
lib/rubocop/cop/lint/useless_method_definition.rb,
lib/rubocop/cop/lint/useless_numeric_operation.rb,
lib/rubocop/cop/mixin/first_element_line_break.rb,
lib/rubocop/cop/mixin/space_before_punctuation.rb,
lib/rubocop/cop/style/keyword_parameters_order.rb,
lib/rubocop/cop/style/single_line_block_params.rb,
lib/rubocop/cop/style/single_line_do_end_block.rb,
lib/rubocop/cop/style/unless_logical_operators.rb,
lib/rubocop/cop/correctors/empty_line_corrector.rb,
lib/rubocop/cop/correctors/line_break_corrector.rb,
lib/rubocop/cop/correctors/unused_arg_corrector.rb,
lib/rubocop/cop/generator/require_file_injector.rb,
lib/rubocop/cop/internal_affairs/lambda_or_proc.rb,
lib/rubocop/cop/lint/duplicate_rescue_exception.rb,
lib/rubocop/cop/lint/mixed_regexp_capture_types.rb,
lib/rubocop/cop/lint/require_relative_self_path.rb,
lib/rubocop/cop/lint/safe_navigation_with_empty.rb,
lib/rubocop/cop/naming/heredoc_delimiter_naming.rb,
lib/rubocop/cop/style/class_and_module_children.rb,
lib/rubocop/cop/style/class_equality_comparison.rb,
lib/rubocop/cop/style/class_methods_definitions.rb,
lib/rubocop/cop/style/keyword_arguments_merging.rb,
lib/rubocop/cop/style/multiline_in_pattern_then.rb,
lib/rubocop/cop/style/negated_if_else_condition.rb,
lib/rubocop/cop/style/numbered_parameters_limit.rb,
lib/rubocop/cop/style/redundant_regexp_argument.rb,
lib/rubocop/cop/style/redundant_self_assignment.rb,
lib/rubocop/cop/style/stabby_lambda_parentheses.rb,
lib/rubocop/cop/bundler/insecure_protocol_source.rb,
lib/rubocop/cop/correctors/each_to_for_corrector.rb,
lib/rubocop/cop/correctors/for_to_each_corrector.rb,
lib/rubocop/cop/correctors/ordered_gem_corrector.rb,
lib/rubocop/cop/correctors/parentheses_corrector.rb,
lib/rubocop/cop/correctors/punctuation_corrector.rb,
lib/rubocop/cop/gemspec/development_dependencies.rb,
lib/rubocop/cop/generator/configuration_injector.rb,
lib/rubocop/cop/internal_affairs/cop_description.rb,
lib/rubocop/cop/layout/line_continuation_spacing.rb,
lib/rubocop/cop/layout/space_before_block_braces.rb,
lib/rubocop/cop/layout/space_inside_block_braces.rb,
lib/rubocop/cop/lint/ambiguous_block_association.rb,
lib/rubocop/cop/lint/circular_argument_reference.rb,
lib/rubocop/cop/lint/ineffective_access_modifier.rb,
lib/rubocop/cop/lint/redundant_require_statement.rb,
lib/rubocop/cop/lint/safe_navigation_consistency.rb,
lib/rubocop/cop/lint/unescaped_bracket_in_regexp.rb,
lib/rubocop/cop/lint/useless_else_without_rescue.rb,
lib/rubocop/cop/style/missing_respond_to_missing.rb,
lib/rubocop/cop/style/multiline_method_signature.rb,
lib/rubocop/cop/style/multiline_ternary_operator.rb,
lib/rubocop/cop/style/nested_parenthesized_calls.rb,
lib/rubocop/cop/style/optional_boolean_parameter.rb,
lib/rubocop/cop/style/percent_literal_delimiters.rb,
lib/rubocop/cop/internal_affairs/numblock_handler.rb,
lib/rubocop/cop/internal_affairs/undefined_config.rb,
lib/rubocop/cop/layout/first_argument_indentation.rb,
lib/rubocop/cop/layout/space_inside_range_literal.rb,
lib/rubocop/cop/lint/constant_definition_in_block.rb,
lib/rubocop/cop/lint/deprecated_open_ssl_constant.rb,
lib/rubocop/cop/lint/heredoc_method_call_position.rb,
lib/rubocop/cop/lint/lambda_without_literal_block.rb,
lib/rubocop/cop/lint/missing_cop_enable_directive.rb,
lib/rubocop/cop/lint/non_local_exit_from_iterator.rb,
lib/rubocop/cop/lint/redundant_regexp_quantifiers.rb,
lib/rubocop/cop/metrics/collection_literal_length.rb,
lib/rubocop/cop/metrics/utils/abc_size_calculator.rb,
lib/rubocop/cop/mixin/configurable_enforced_style.rb,
lib/rubocop/cop/style/invertible_unless_condition.rb,
lib/rubocop/cop/style/redundant_array_constructor.rb,
lib/rubocop/cop/style/redundant_line_continuation.rb,
lib/rubocop/cop/style/super_with_args_parentheses.rb,
lib/rubocop/cop/style/top_level_method_definition.rb,
lib/rubocop/cop/style/trailing_comma_in_arguments.rb,
lib/rubocop/cop/gemspec/ruby_version_globals_usage.rb,
lib/rubocop/cop/internal_affairs/create_empty_file.rb,
lib/rubocop/cop/internal_affairs/method_name_equal.rb,
lib/rubocop/cop/layout/access_modifier_indentation.rb,
lib/rubocop/cop/layout/closing_heredoc_indentation.rb,
lib/rubocop/cop/layout/first_parameter_indentation.rb,
lib/rubocop/cop/layout/multiline_array_line_breaks.rb,
lib/rubocop/cop/layout/multiline_assignment_layout.rb,
lib/rubocop/cop/layout/multiline_hash_brace_layout.rb,
lib/rubocop/cop/lint/ambiguous_operator_precedence.rb,
lib/rubocop/cop/lint/implicit_string_concatenation.rb,
lib/rubocop/cop/lint/it_without_arguments_in_block.rb,
lib/rubocop/cop/lint/no_return_in_begin_end_blocks.rb,
lib/rubocop/cop/lint/numbered_parameter_assignment.rb,
lib/rubocop/cop/lint/unmodified_reduce_accumulator.rb,
lib/rubocop/cop/naming/class_and_module_camel_case.rb,
lib/rubocop/cop/style/access_modifier_declarations.rb,
lib/rubocop/cop/style/bisected_attr_accessor/macro.rb,
lib/rubocop/cop/style/double_cop_disable_directive.rb,
lib/rubocop/cop/style/parentheses_around_condition.rb,
lib/rubocop/cop/style/redundant_regexp_constructor.rb,
lib/rubocop/cop/style/safe_navigation_chain_length.rb,
lib/rubocop/cop/style/trailing_comma_in_block_args.rb,
lib/rubocop/cop/style/trailing_underscore_variable.rb,
lib/rubocop/cop/correctors/string_literal_corrector.rb,
lib/rubocop/cop/internal_affairs/node_destructuring.rb,
lib/rubocop/cop/layout/empty_lines_around_arguments.rb,
lib/rubocop/cop/layout/multiline_array_brace_layout.rb,
lib/rubocop/cop/lint/constant_overwritten_in_rescue.rb,
lib/rubocop/cop/lint/redundant_cop_enable_directive.rb,
lib/rubocop/cop/lint/shadowing_outer_local_variable.rb,
lib/rubocop/cop/lint/top_level_return_with_argument.rb,
lib/rubocop/cop/mixin/multiline_element_indentation.rb,
lib/rubocop/cop/mixin/multiline_element_line_breaks.rb,
lib/rubocop/cop/mixin/preceding_following_alignment.rb,
lib/rubocop/cop/style/frozen_string_literal_comment.rb,
lib/rubocop/cop/style/method_called_on_do_end_block.rb,
lib/rubocop/cop/style/send_with_literal_method_name.rb,
lib/rubocop/cop/style/trailing_method_end_statement.rb,
lib/rubocop/cop/correctors/percent_literal_corrector.rb,
lib/rubocop/cop/correctors/require_library_corrector.rb,
lib/rubocop/cop/internal_affairs/example_description.rb,
lib/rubocop/cop/internal_affairs/location_expression.rb,
lib/rubocop/cop/internal_affairs/node_type_predicate.rb,
lib/rubocop/cop/layout/empty_line_after_guard_clause.rb,
lib/rubocop/cop/layout/empty_lines_around_begin_body.rb,
lib/rubocop/cop/layout/empty_lines_around_block_body.rb,
lib/rubocop/cop/layout/empty_lines_around_class_body.rb,
lib/rubocop/cop/layout/first_hash_element_line_break.rb,
lib/rubocop/cop/layout/space_around_block_parameters.rb,
lib/rubocop/cop/lint/literal_assignment_in_condition.rb,
lib/rubocop/cop/lint/non_deterministic_require_order.rb,
lib/rubocop/cop/lint/redundant_cop_disable_directive.rb,
lib/rubocop/cop/metrics/utils/code_length_calculator.rb,
lib/rubocop/cop/mixin/multiline_literal_brace_layout.rb,
lib/rubocop/cop/style/identical_conditional_branches.rb,
lib/rubocop/cop/style/trailing_comma_in_hash_literal.rb,
lib/rubocop/cop/internal_affairs/method_name_end_with.rb,
lib/rubocop/cop/layout/empty_line_after_magic_comment.rb,
lib/rubocop/cop/layout/empty_lines_around_method_body.rb,
lib/rubocop/cop/layout/empty_lines_around_module_body.rb,
lib/rubocop/cop/layout/first_array_element_line_break.rb,
lib/rubocop/cop/layout/first_hash_element_indentation.rb,
lib/rubocop/cop/layout/multiline_hash_key_line_breaks.rb,
lib/rubocop/cop/metrics/utils/repeated_csend_discount.rb,
lib/rubocop/cop/naming/binary_operator_parameter_name.rb,
lib/rubocop/cop/style/if_unless_modifier_of_if_unless.rb,
lib/rubocop/cop/style/trailing_comma_in_array_literal.rb,
lib/rubocop/cop/layout/closing_parenthesis_indentation.rb,
lib/rubocop/cop/layout/first_array_element_indentation.rb,
lib/rubocop/cop/layout/line_continuation_leading_space.rb,
lib/rubocop/cop/layout/multiline_operation_indentation.rb,
lib/rubocop/cop/layout/space_inside_reference_brackets.rb,
lib/rubocop/cop/lint/parentheses_as_grouped_expression.rb,
lib/rubocop/cop/lint/underscore_prefixed_variable_name.rb,
lib/rubocop/cop/mixin/multiline_expression_indentation.rb,
lib/rubocop/cop/naming/memoized_instance_variable_name.rb,
lib/rubocop/cop/style/document_dynamic_eval_definition.rb,
lib/rubocop/cop/style/if_with_boolean_literal_branches.rb,
lib/rubocop/cop/style/redundant_interpolation_unfreeze.rb,
lib/rubocop/cop/style/redundant_regexp_character_class.rb,
lib/rubocop/cop/style/redundant_self_assignment_branch.rb,
lib/rubocop/cop/style/string_literals_in_interpolation.rb,
lib/rubocop/cop/gemspec/deprecated_attribute_assignment.rb,
lib/rubocop/cop/internal_affairs/node_matcher_directive.rb,
lib/rubocop/cop/internal_affairs/redundant_source_range.rb,
lib/rubocop/cop/internal_affairs/single_line_comparison.rb,
lib/rubocop/cop/internal_affairs/style_detected_api_use.rb,
lib/rubocop/cop/layout/first_method_argument_line_break.rb,
lib/rubocop/cop/layout/space_inside_hash_literal_braces.rb,
lib/rubocop/cop/naming/rescued_exceptions_variable_name.rb,
lib/rubocop/cop/style/method_call_with_args_parentheses.rb,
lib/rubocop/cop/layout/first_method_parameter_line_break.rb,
lib/rubocop/cop/layout/multiline_method_call_indentation.rb,
lib/rubocop/cop/layout/space_around_method_call_operator.rb,
lib/rubocop/cop/layout/space_inside_string_interpolation.rb,
lib/rubocop/cop/style/map_compact_with_conditional_block.rb,
lib/rubocop/cop/style/redundant_double_splat_hash_braces.rb,
lib/rubocop/cop/style/redundant_heredoc_delimiter_quotes.rb,
lib/rubocop/cop/style/trailing_body_on_method_definition.rb,
lib/rubocop/cop/internal_affairs/offense_location_keyword.rb,
lib/rubocop/cop/internal_affairs/useless_restrict_on_send.rb,
lib/rubocop/cop/layout/empty_lines_around_access_modifier.rb,
lib/rubocop/cop/layout/multiline_method_call_brace_layout.rb,
lib/rubocop/cop/layout/space_inside_array_percent_literal.rb,
lib/rubocop/cop/metrics/utils/repeated_attribute_discount.rb,
lib/rubocop/cop/style/ambiguous_endless_method_definition.rb,
lib/rubocop/cop/style/redundant_current_directory_in_path.rb,
lib/rubocop/cop/style/redundant_file_extension_in_require.rb,
lib/rubocop/cop/internal_affairs/example_heredoc_delimiter.rb,
lib/rubocop/cop/internal_affairs/useless_message_assertion.rb,
lib/rubocop/cop/layout/space_inside_array_literal_brackets.rb,
lib/rubocop/cop/lint/disjunctive_assignment_in_constructor.rb,
lib/rubocop/cop/style/method_call_without_args_parentheses.rb,
lib/rubocop/cop/internal_affairs/redundant_message_argument.rb,
lib/rubocop/cop/layout/empty_line_after_multiline_condition.rb,
lib/rubocop/cop/layout/heredoc_argument_closing_parenthesis.rb,
lib/rubocop/cop/correctors/multiline_literal_brace_corrector.rb,
lib/rubocop/cop/internal_affairs/node_first_or_last_argument.rb,
lib/rubocop/cop/internal_affairs/redundant_location_argument.rb,
lib/rubocop/cop/layout/empty_lines_around_attribute_accessor.rb,
lib/rubocop/cop/layout/multiline_method_argument_line_breaks.rb,
lib/rubocop/cop/lint/binary_operator_with_identical_operands.rb,
lib/rubocop/cop/lint/trailing_comma_in_attribute_declaration.rb,
lib/rubocop/cop/correctors/lambda_literal_to_method_corrector.rb,
lib/rubocop/cop/internal_affairs/inherit_deprecated_cop_class.rb,
lib/rubocop/cop/internal_affairs/processed_source_buffer_name.rb,
lib/rubocop/cop/layout/multiline_method_parameter_line_breaks.rb,
lib/rubocop/cop/lint/duplicate_regexp_character_class_element.rb,
lib/rubocop/cop/layout/space_inside_percent_literal_delimiters.rb,
lib/rubocop/cop/internal_affairs/redundant_method_dispatch_node.rb,
lib/rubocop/cop/layout/multiline_method_definition_brace_layout.rb,
lib/rubocop/cop/layout/space_around_equals_in_parameter_default.rb,
lib/rubocop/cop/style/disable_cops_within_source_code_directive.rb,
lib/rubocop/cop/style/return_nil_in_predicate_method_definition.rb,
lib/rubocop/cop/layout/line_end_string_concatenation_indentation.rb,
lib/rubocop/cop/lint/incompatible_io_select_with_fiber_scheduler.rb,
lib/rubocop/cop/internal_affairs/redundant_let_rubocop_config_new.rb,
lib/rubocop/cop/internal_affairs/location_line_equality_comparison.rb,
lib/rubocop/cop/internal_affairs/redundant_context_config_parameter.rb,
lib/rubocop/cop/internal_affairs/redundant_expect_offense_arguments.rb,
lib/rubocop/cop/internal_affairs/redundant_described_class_as_subject.rb,
lib/rubocop/cop/layout/empty_lines_around_exception_handling_keywords.rb,
lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb,
lib/rubocop/cop/style/method_call_with_args_parentheses/require_parentheses.rb,
lib/rubocop/cop/internal_affairs/empty_line_between_expect_offense_and_correction.rb

Defined Under Namespace

Modules: Alignment, AllowedIdentifiers, AllowedMethods, AllowedPattern, AllowedReceivers, ArrayMinSize, ArraySyntax, AutoCorrector, AutocorrectLogic, Bundler, CheckAssignment, CheckLineBreakable, CodeLength, CommentsHelp, ConfigurableEnforcedStyle, ConfigurableFormatting, ConfigurableMax, ConfigurableNaming, ConfigurableNumbering, DefNode, Documentation, DocumentationComment, Duplication, EmptyParameter, EndKeywordAlignment, EndlessMethodRewriter, EnforceSuperclass, FirstElementLineBreak, FrozenStringLiteral, GemDeclaration, Gemspec, GemspecHelp, HashAlignmentStyles, HashShorthandSyntax, HashTransformMethod, Heredoc, IgnoredNode, IntegerNode, InternalAffairs, Interpolation, Layout, Legacy, LineLengthHelp, Lint, MatchRange, MethodComplexity, MethodPreference, Metrics, Migration, MinBodyLength, MinBranchesCount, MultilineElementIndentation, MultilineElementLineBreaks, MultilineExpressionIndentation, MultilineLiteralBraceLayout, Naming, NegativeConditional, NilMethods, OnNormalIfUnless, OrderedGemNode, Parentheses, PercentArray, PercentLiteral, PrecedingFollowingAlignment, RangeHelp, RationalLiteral, RequireLibrary, RescueNode, SafeAssignment, Security, SpaceAfterPunctuation, SpaceBeforePunctuation, StatementModifier, StringHelp, StringLiteralsHelp, Style, SurroundingSpace, SymbolHelp, TargetRubyVersion, TrailingBody, TrailingComma, UncommunicativeName, Util, Utils, VisibilityHelp Classes: AlignmentCorrector, AmbiguousCopName, AnnotationComment, Badge, Base, Commissioner, ConditionCorrector, Cop, Corrector, EachToForCorrector, EmptyLineCorrector, ForToEachCorrector, Force, Generator, IfThenCorrector, LambdaLiteralToMethodCorrector, LineBreakCorrector, MessageAnnotator, MultilineLiteralBraceCorrector, Offense, OrderedGemCorrector, ParenthesesCorrector, PercentLiteralCorrector, PreferredDelimiters, PunctuationCorrector, Registry, RequireLibraryCorrector, Severity, SpaceCorrector, StringLiteralCorrector, Team, UnusedArgCorrector, VariableForce

Constant Summary collapse

IgnoredMethods =
Deprecated.

IgnoredMethods class has been replaced with AllowedMethods.

AllowedMethods
IgnoredPattern =
Deprecated.

IgnoredPattern class has been replaced with AllowedPattern.

AllowedPattern