rubocop 0.87.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/LICENSE.txt +20 -0
- data/README.md +225 -0
- data/assets/logo.png +0 -0
- data/assets/output.html.erb +261 -0
- data/bin/console +10 -0
- data/bin/setup +7 -0
- data/config/default.yml +4203 -0
- data/exe/rubocop +17 -0
- data/lib/rubocop.rb +598 -0
- data/lib/rubocop/ast_aliases.rb +8 -0
- data/lib/rubocop/cached_data.rb +58 -0
- data/lib/rubocop/cli.rb +131 -0
- data/lib/rubocop/cli/command.rb +21 -0
- data/lib/rubocop/cli/command/auto_genenerate_config.rb +140 -0
- data/lib/rubocop/cli/command/base.rb +33 -0
- data/lib/rubocop/cli/command/execute_runner.rb +76 -0
- data/lib/rubocop/cli/command/init_dotfile.rb +45 -0
- data/lib/rubocop/cli/command/show_cops.rb +76 -0
- data/lib/rubocop/cli/command/version.rb +17 -0
- data/lib/rubocop/cli/environment.rb +21 -0
- data/lib/rubocop/comment_config.rb +206 -0
- data/lib/rubocop/config.rb +281 -0
- data/lib/rubocop/config_loader.rb +236 -0
- data/lib/rubocop/config_loader_resolver.rb +234 -0
- data/lib/rubocop/config_obsoletion.rb +277 -0
- data/lib/rubocop/config_store.rb +58 -0
- data/lib/rubocop/config_validator.rb +223 -0
- data/lib/rubocop/cop/autocorrect_logic.rb +95 -0
- data/lib/rubocop/cop/badge.rb +73 -0
- data/lib/rubocop/cop/base.rb +399 -0
- data/lib/rubocop/cop/bundler/duplicated_gem.rb +73 -0
- data/lib/rubocop/cop/bundler/gem_comment.rb +133 -0
- data/lib/rubocop/cop/bundler/insecure_protocol_source.rb +59 -0
- data/lib/rubocop/cop/bundler/ordered_gems.rb +73 -0
- data/lib/rubocop/cop/commissioner.rb +122 -0
- data/lib/rubocop/cop/cop.rb +160 -0
- data/lib/rubocop/cop/corrector.rb +119 -0
- data/lib/rubocop/cop/correctors/alignment_corrector.rb +142 -0
- data/lib/rubocop/cop/correctors/condition_corrector.rb +27 -0
- data/lib/rubocop/cop/correctors/each_to_for_corrector.rb +53 -0
- data/lib/rubocop/cop/correctors/empty_line_corrector.rb +26 -0
- data/lib/rubocop/cop/correctors/for_to_each_corrector.rb +73 -0
- data/lib/rubocop/cop/correctors/lambda_literal_to_method_corrector.rb +136 -0
- data/lib/rubocop/cop/correctors/line_break_corrector.rb +61 -0
- data/lib/rubocop/cop/correctors/multiline_literal_brace_corrector.rb +68 -0
- data/lib/rubocop/cop/correctors/ordered_gem_corrector.rb +44 -0
- data/lib/rubocop/cop/correctors/parentheses_corrector.rb +31 -0
- data/lib/rubocop/cop/correctors/percent_literal_corrector.rb +117 -0
- data/lib/rubocop/cop/correctors/punctuation_corrector.rb +29 -0
- data/lib/rubocop/cop/correctors/space_corrector.rb +46 -0
- data/lib/rubocop/cop/correctors/string_literal_corrector.rb +25 -0
- data/lib/rubocop/cop/correctors/unused_arg_corrector.rb +43 -0
- data/lib/rubocop/cop/force.rb +42 -0
- data/lib/rubocop/cop/gemspec/duplicated_assignment.rb +104 -0
- data/lib/rubocop/cop/gemspec/ordered_dependencies.rb +104 -0
- data/lib/rubocop/cop/gemspec/required_ruby_version.rb +85 -0
- data/lib/rubocop/cop/gemspec/ruby_version_globals_usage.rb +55 -0
- data/lib/rubocop/cop/generator.rb +223 -0
- data/lib/rubocop/cop/generator/configuration_injector.rb +66 -0
- data/lib/rubocop/cop/generator/require_file_injector.rb +78 -0
- data/lib/rubocop/cop/ignored_node.rb +36 -0
- data/lib/rubocop/cop/internal_affairs.rb +9 -0
- data/lib/rubocop/cop/internal_affairs/method_name_equal.rb +59 -0
- data/lib/rubocop/cop/internal_affairs/node_destructuring.rb +44 -0
- data/lib/rubocop/cop/internal_affairs/node_type_predicate.rb +41 -0
- data/lib/rubocop/cop/internal_affairs/offense_location_keyword.rb +54 -0
- data/lib/rubocop/cop/internal_affairs/redundant_location_argument.rb +48 -0
- data/lib/rubocop/cop/internal_affairs/redundant_message_argument.rb +73 -0
- data/lib/rubocop/cop/internal_affairs/useless_message_assertion.rb +52 -0
- data/lib/rubocop/cop/layout/access_modifier_indentation.rb +98 -0
- data/lib/rubocop/cop/layout/argument_alignment.rb +93 -0
- data/lib/rubocop/cop/layout/array_alignment.rb +82 -0
- data/lib/rubocop/cop/layout/assignment_indentation.rb +55 -0
- data/lib/rubocop/cop/layout/block_alignment.rb +244 -0
- data/lib/rubocop/cop/layout/block_end_newline.rb +64 -0
- data/lib/rubocop/cop/layout/case_indentation.rb +160 -0
- data/lib/rubocop/cop/layout/class_structure.rb +308 -0
- data/lib/rubocop/cop/layout/closing_heredoc_indentation.rb +126 -0
- data/lib/rubocop/cop/layout/closing_parenthesis_indentation.rb +203 -0
- data/lib/rubocop/cop/layout/comment_indentation.rb +141 -0
- data/lib/rubocop/cop/layout/condition_position.rb +66 -0
- data/lib/rubocop/cop/layout/def_end_alignment.rb +74 -0
- data/lib/rubocop/cop/layout/dot_position.rb +105 -0
- data/lib/rubocop/cop/layout/else_alignment.rb +142 -0
- data/lib/rubocop/cop/layout/empty_comment.rb +151 -0
- data/lib/rubocop/cop/layout/empty_line_after_guard_clause.rb +157 -0
- data/lib/rubocop/cop/layout/empty_line_after_magic_comment.rb +64 -0
- data/lib/rubocop/cop/layout/empty_line_between_defs.rb +152 -0
- data/lib/rubocop/cop/layout/empty_lines.rb +76 -0
- data/lib/rubocop/cop/layout/empty_lines_around_access_modifier.rb +211 -0
- data/lib/rubocop/cop/layout/empty_lines_around_arguments.rb +99 -0
- data/lib/rubocop/cop/layout/empty_lines_around_attribute_accessor.rb +121 -0
- data/lib/rubocop/cop/layout/empty_lines_around_begin_body.rb +45 -0
- data/lib/rubocop/cop/layout/empty_lines_around_block_body.rb +41 -0
- data/lib/rubocop/cop/layout/empty_lines_around_class_body.rb +88 -0
- data/lib/rubocop/cop/layout/empty_lines_around_exception_handling_keywords.rb +136 -0
- data/lib/rubocop/cop/layout/empty_lines_around_method_body.rb +45 -0
- data/lib/rubocop/cop/layout/empty_lines_around_module_body.rb +62 -0
- data/lib/rubocop/cop/layout/end_alignment.rb +189 -0
- data/lib/rubocop/cop/layout/end_of_line.rb +92 -0
- data/lib/rubocop/cop/layout/extra_spacing.rb +201 -0
- data/lib/rubocop/cop/layout/first_argument_indentation.rb +251 -0
- data/lib/rubocop/cop/layout/first_array_element_indentation.rb +171 -0
- data/lib/rubocop/cop/layout/first_array_element_line_break.rb +45 -0
- data/lib/rubocop/cop/layout/first_hash_element_indentation.rb +184 -0
- data/lib/rubocop/cop/layout/first_hash_element_line_break.rb +37 -0
- data/lib/rubocop/cop/layout/first_method_argument_line_break.rb +53 -0
- data/lib/rubocop/cop/layout/first_method_parameter_line_break.rb +46 -0
- data/lib/rubocop/cop/layout/first_parameter_indentation.rb +100 -0
- data/lib/rubocop/cop/layout/hash_alignment.rb +365 -0
- data/lib/rubocop/cop/layout/heredoc_argument_closing_parenthesis.rb +285 -0
- data/lib/rubocop/cop/layout/heredoc_indentation.rb +173 -0
- data/lib/rubocop/cop/layout/indentation_consistency.rb +202 -0
- data/lib/rubocop/cop/layout/indentation_style.rb +117 -0
- data/lib/rubocop/cop/layout/indentation_width.rb +362 -0
- data/lib/rubocop/cop/layout/initial_indentation.rb +59 -0
- data/lib/rubocop/cop/layout/leading_comment_space.rb +119 -0
- data/lib/rubocop/cop/layout/leading_empty_lines.rb +53 -0
- data/lib/rubocop/cop/layout/line_length.rb +280 -0
- data/lib/rubocop/cop/layout/multiline_array_brace_layout.rb +118 -0
- data/lib/rubocop/cop/layout/multiline_array_line_breaks.rb +39 -0
- data/lib/rubocop/cop/layout/multiline_assignment_layout.rb +95 -0
- data/lib/rubocop/cop/layout/multiline_block_layout.rb +154 -0
- data/lib/rubocop/cop/layout/multiline_hash_brace_layout.rb +118 -0
- data/lib/rubocop/cop/layout/multiline_hash_key_line_breaks.rb +50 -0
- data/lib/rubocop/cop/layout/multiline_method_argument_line_breaks.rb +52 -0
- data/lib/rubocop/cop/layout/multiline_method_call_brace_layout.rb +134 -0
- data/lib/rubocop/cop/layout/multiline_method_call_indentation.rb +220 -0
- data/lib/rubocop/cop/layout/multiline_method_definition_brace_layout.rb +131 -0
- data/lib/rubocop/cop/layout/multiline_operation_indentation.rb +123 -0
- data/lib/rubocop/cop/layout/parameter_alignment.rb +118 -0
- data/lib/rubocop/cop/layout/rescue_ensure_alignment.rb +191 -0
- data/lib/rubocop/cop/layout/space_after_colon.rb +47 -0
- data/lib/rubocop/cop/layout/space_after_comma.rb +35 -0
- data/lib/rubocop/cop/layout/space_after_method_name.rb +42 -0
- data/lib/rubocop/cop/layout/space_after_not.rb +40 -0
- data/lib/rubocop/cop/layout/space_after_semicolon.rb +32 -0
- data/lib/rubocop/cop/layout/space_around_block_parameters.rb +163 -0
- data/lib/rubocop/cop/layout/space_around_equals_in_parameter_default.rb +92 -0
- data/lib/rubocop/cop/layout/space_around_keyword.rb +244 -0
- data/lib/rubocop/cop/layout/space_around_method_call_operator.rb +131 -0
- data/lib/rubocop/cop/layout/space_around_operators.rb +242 -0
- data/lib/rubocop/cop/layout/space_before_block_braces.rb +150 -0
- data/lib/rubocop/cop/layout/space_before_comma.rb +31 -0
- data/lib/rubocop/cop/layout/space_before_comment.rb +33 -0
- data/lib/rubocop/cop/layout/space_before_first_arg.rb +75 -0
- data/lib/rubocop/cop/layout/space_before_semicolon.rb +27 -0
- data/lib/rubocop/cop/layout/space_in_lambda_literal.rb +82 -0
- data/lib/rubocop/cop/layout/space_inside_array_literal_brackets.rb +229 -0
- data/lib/rubocop/cop/layout/space_inside_array_percent_literal.rb +53 -0
- data/lib/rubocop/cop/layout/space_inside_block_braces.rb +248 -0
- data/lib/rubocop/cop/layout/space_inside_hash_literal_braces.rb +200 -0
- data/lib/rubocop/cop/layout/space_inside_parens.rb +113 -0
- data/lib/rubocop/cop/layout/space_inside_percent_literal_delimiters.rb +65 -0
- data/lib/rubocop/cop/layout/space_inside_range_literal.rb +63 -0
- data/lib/rubocop/cop/layout/space_inside_reference_brackets.rb +148 -0
- data/lib/rubocop/cop/layout/space_inside_string_interpolation.rb +65 -0
- data/lib/rubocop/cop/layout/trailing_empty_lines.rb +113 -0
- data/lib/rubocop/cop/layout/trailing_whitespace.rb +77 -0
- data/lib/rubocop/cop/legacy/corrections_proxy.rb +49 -0
- data/lib/rubocop/cop/legacy/corrector.rb +29 -0
- data/lib/rubocop/cop/lint/ambiguous_block_association.rb +62 -0
- data/lib/rubocop/cop/lint/ambiguous_operator.rb +96 -0
- data/lib/rubocop/cop/lint/ambiguous_regexp_literal.rb +57 -0
- data/lib/rubocop/cop/lint/assignment_in_condition.rb +97 -0
- data/lib/rubocop/cop/lint/big_decimal_new.rb +44 -0
- data/lib/rubocop/cop/lint/boolean_symbol.rb +50 -0
- data/lib/rubocop/cop/lint/circular_argument_reference.rb +72 -0
- data/lib/rubocop/cop/lint/constant_resolution.rb +89 -0
- data/lib/rubocop/cop/lint/debugger.rb +77 -0
- data/lib/rubocop/cop/lint/deprecated_class_methods.rb +111 -0
- data/lib/rubocop/cop/lint/deprecated_open_ssl_constant.rb +137 -0
- data/lib/rubocop/cop/lint/disjunctive_assignment_in_constructor.rb +81 -0
- data/lib/rubocop/cop/lint/duplicate_case_condition.rb +53 -0
- data/lib/rubocop/cop/lint/duplicate_hash_key.rb +38 -0
- data/lib/rubocop/cop/lint/duplicate_methods.rb +235 -0
- data/lib/rubocop/cop/lint/each_with_object_argument.rb +42 -0
- data/lib/rubocop/cop/lint/else_layout.rb +66 -0
- data/lib/rubocop/cop/lint/empty_ensure.rb +60 -0
- data/lib/rubocop/cop/lint/empty_expression.rb +42 -0
- data/lib/rubocop/cop/lint/empty_interpolation.rb +36 -0
- data/lib/rubocop/cop/lint/empty_when.rb +61 -0
- data/lib/rubocop/cop/lint/ensure_return.rb +63 -0
- data/lib/rubocop/cop/lint/erb_new_arguments.rb +162 -0
- data/lib/rubocop/cop/lint/flip_flop.rb +32 -0
- data/lib/rubocop/cop/lint/float_out_of_range.rb +35 -0
- data/lib/rubocop/cop/lint/format_parameter_mismatch.rb +195 -0
- data/lib/rubocop/cop/lint/heredoc_method_call_position.rb +156 -0
- data/lib/rubocop/cop/lint/implicit_string_concatenation.rb +101 -0
- data/lib/rubocop/cop/lint/ineffective_access_modifier.rb +127 -0
- data/lib/rubocop/cop/lint/inherit_exception.rb +100 -0
- data/lib/rubocop/cop/lint/interpolation_check.rb +53 -0
- data/lib/rubocop/cop/lint/literal_as_condition.rb +135 -0
- data/lib/rubocop/cop/lint/literal_in_interpolation.rb +98 -0
- data/lib/rubocop/cop/lint/loop.rb +65 -0
- data/lib/rubocop/cop/lint/missing_cop_enable_directive.rb +84 -0
- data/lib/rubocop/cop/lint/mixed_regexp_capture_types.rb +69 -0
- data/lib/rubocop/cop/lint/multiple_comparison.rb +48 -0
- data/lib/rubocop/cop/lint/nested_method_definition.rb +104 -0
- data/lib/rubocop/cop/lint/nested_percent_literal.rb +51 -0
- data/lib/rubocop/cop/lint/next_without_accumulator.rb +50 -0
- data/lib/rubocop/cop/lint/non_deterministic_require_order.rb +89 -0
- data/lib/rubocop/cop/lint/non_local_exit_from_iterator.rb +83 -0
- data/lib/rubocop/cop/lint/number_conversion.rb +81 -0
- data/lib/rubocop/cop/lint/ordered_magic_comments.rb +86 -0
- data/lib/rubocop/cop/lint/parentheses_as_grouped_expression.rb +91 -0
- data/lib/rubocop/cop/lint/percent_string_array.rb +71 -0
- data/lib/rubocop/cop/lint/percent_symbol_array.rb +69 -0
- data/lib/rubocop/cop/lint/raise_exception.rb +83 -0
- data/lib/rubocop/cop/lint/rand_one.rb +45 -0
- data/lib/rubocop/cop/lint/redundant_cop_disable_directive.rb +264 -0
- data/lib/rubocop/cop/lint/redundant_cop_enable_directive.rb +119 -0
- data/lib/rubocop/cop/lint/redundant_require_statement.rb +50 -0
- data/lib/rubocop/cop/lint/redundant_splat_expansion.rb +172 -0
- data/lib/rubocop/cop/lint/redundant_string_coercion.rb +59 -0
- data/lib/rubocop/cop/lint/redundant_with_index.rb +82 -0
- data/lib/rubocop/cop/lint/redundant_with_object.rb +83 -0
- data/lib/rubocop/cop/lint/regexp_as_condition.rb +35 -0
- data/lib/rubocop/cop/lint/require_parentheses.rb +66 -0
- data/lib/rubocop/cop/lint/rescue_exception.rb +46 -0
- data/lib/rubocop/cop/lint/rescue_type.rb +94 -0
- data/lib/rubocop/cop/lint/return_in_void_context.rb +74 -0
- data/lib/rubocop/cop/lint/safe_navigation_chain.rb +65 -0
- data/lib/rubocop/cop/lint/safe_navigation_consistency.rb +94 -0
- data/lib/rubocop/cop/lint/safe_navigation_with_empty.rb +46 -0
- data/lib/rubocop/cop/lint/script_permission.rb +70 -0
- data/lib/rubocop/cop/lint/send_with_mixin_argument.rb +91 -0
- data/lib/rubocop/cop/lint/shadowed_argument.rb +182 -0
- data/lib/rubocop/cop/lint/shadowed_exception.rb +178 -0
- data/lib/rubocop/cop/lint/shadowing_outer_local_variable.rb +53 -0
- data/lib/rubocop/cop/lint/struct_new_override.rb +58 -0
- data/lib/rubocop/cop/lint/suppressed_exception.rb +92 -0
- data/lib/rubocop/cop/lint/syntax.rb +42 -0
- data/lib/rubocop/cop/lint/to_json.rb +41 -0
- data/lib/rubocop/cop/lint/underscore_prefixed_variable_name.rb +82 -0
- data/lib/rubocop/cop/lint/unified_integer.rb +43 -0
- data/lib/rubocop/cop/lint/unreachable_code.rb +99 -0
- data/lib/rubocop/cop/lint/unused_block_argument.rb +165 -0
- data/lib/rubocop/cop/lint/unused_method_argument.rb +112 -0
- data/lib/rubocop/cop/lint/uri_escape_unescape.rb +76 -0
- data/lib/rubocop/cop/lint/uri_regexp.rb +73 -0
- data/lib/rubocop/cop/lint/useless_access_modifier.rb +284 -0
- data/lib/rubocop/cop/lint/useless_assignment.rb +130 -0
- data/lib/rubocop/cop/lint/useless_comparison.rb +28 -0
- data/lib/rubocop/cop/lint/useless_else_without_rescue.rb +54 -0
- data/lib/rubocop/cop/lint/useless_setter_call.rb +168 -0
- data/lib/rubocop/cop/lint/void.rb +151 -0
- data/lib/rubocop/cop/message_annotator.rb +129 -0
- data/lib/rubocop/cop/metrics/abc_size.rb +24 -0
- data/lib/rubocop/cop/metrics/block_length.rb +72 -0
- data/lib/rubocop/cop/metrics/block_nesting.rb +65 -0
- data/lib/rubocop/cop/metrics/class_length.rb +59 -0
- data/lib/rubocop/cop/metrics/cyclomatic_complexity.rb +64 -0
- data/lib/rubocop/cop/metrics/method_length.rb +59 -0
- data/lib/rubocop/cop/metrics/module_length.rb +59 -0
- data/lib/rubocop/cop/metrics/parameter_lists.rb +54 -0
- data/lib/rubocop/cop/metrics/perceived_complexity.rb +61 -0
- data/lib/rubocop/cop/metrics/utils/abc_size_calculator.rb +84 -0
- data/lib/rubocop/cop/metrics/utils/code_length_calculator.rb +129 -0
- data/lib/rubocop/cop/metrics/utils/iterating_block.rb +61 -0
- data/lib/rubocop/cop/migration/department_name.rb +85 -0
- data/lib/rubocop/cop/mixin/alignment.rb +72 -0
- data/lib/rubocop/cop/mixin/allowed_methods.rb +19 -0
- data/lib/rubocop/cop/mixin/annotation_comment.rb +37 -0
- data/lib/rubocop/cop/mixin/array_min_size.rb +57 -0
- data/lib/rubocop/cop/mixin/array_syntax.rb +17 -0
- data/lib/rubocop/cop/mixin/auto_corrector.rb +12 -0
- data/lib/rubocop/cop/mixin/check_assignment.rb +44 -0
- data/lib/rubocop/cop/mixin/check_line_breakable.rb +184 -0
- data/lib/rubocop/cop/mixin/code_length.rb +42 -0
- data/lib/rubocop/cop/mixin/configurable_enforced_style.rb +100 -0
- data/lib/rubocop/cop/mixin/configurable_formatting.rb +45 -0
- data/lib/rubocop/cop/mixin/configurable_max.rb +23 -0
- data/lib/rubocop/cop/mixin/configurable_naming.rb +16 -0
- data/lib/rubocop/cop/mixin/configurable_numbering.rb +17 -0
- data/lib/rubocop/cop/mixin/def_node.rb +33 -0
- data/lib/rubocop/cop/mixin/documentation_comment.rb +52 -0
- data/lib/rubocop/cop/mixin/duplication.rb +46 -0
- data/lib/rubocop/cop/mixin/empty_lines_around_body.rb +172 -0
- data/lib/rubocop/cop/mixin/empty_parameter.rb +24 -0
- data/lib/rubocop/cop/mixin/end_keyword_alignment.rb +72 -0
- data/lib/rubocop/cop/mixin/enforce_superclass.rb +32 -0
- data/lib/rubocop/cop/mixin/first_element_line_break.rb +46 -0
- data/lib/rubocop/cop/mixin/frozen_string_literal.rb +62 -0
- data/lib/rubocop/cop/mixin/hash_alignment_styles.rb +147 -0
- data/lib/rubocop/cop/mixin/hash_transform_method.rb +178 -0
- data/lib/rubocop/cop/mixin/heredoc.rb +32 -0
- data/lib/rubocop/cop/mixin/ignored_methods.rb +19 -0
- data/lib/rubocop/cop/mixin/ignored_pattern.rb +29 -0
- data/lib/rubocop/cop/mixin/integer_node.rb +14 -0
- data/lib/rubocop/cop/mixin/interpolation.rb +27 -0
- data/lib/rubocop/cop/mixin/line_length_help.rb +89 -0
- data/lib/rubocop/cop/mixin/match_range.rb +26 -0
- data/lib/rubocop/cop/mixin/method_complexity.rb +62 -0
- data/lib/rubocop/cop/mixin/method_preference.rb +31 -0
- data/lib/rubocop/cop/mixin/min_body_length.rb +21 -0
- data/lib/rubocop/cop/mixin/multiline_element_indentation.rb +86 -0
- data/lib/rubocop/cop/mixin/multiline_element_line_breaks.rb +33 -0
- data/lib/rubocop/cop/mixin/multiline_expression_indentation.rb +255 -0
- data/lib/rubocop/cop/mixin/multiline_literal_brace_layout.rb +141 -0
- data/lib/rubocop/cop/mixin/negative_conditional.rb +32 -0
- data/lib/rubocop/cop/mixin/nil_methods.rb +23 -0
- data/lib/rubocop/cop/mixin/on_normal_if_unless.rb +14 -0
- data/lib/rubocop/cop/mixin/ordered_gem_node.rb +61 -0
- data/lib/rubocop/cop/mixin/parentheses.rb +16 -0
- data/lib/rubocop/cop/mixin/parser_diagnostic.rb +37 -0
- data/lib/rubocop/cop/mixin/percent_array.rb +52 -0
- data/lib/rubocop/cop/mixin/percent_literal.rb +38 -0
- data/lib/rubocop/cop/mixin/preceding_following_alignment.rb +181 -0
- data/lib/rubocop/cop/mixin/preferred_delimiters.rb +53 -0
- data/lib/rubocop/cop/mixin/range_help.rb +117 -0
- data/lib/rubocop/cop/mixin/rational_literal.rb +18 -0
- data/lib/rubocop/cop/mixin/regexp_literal_help.rb +43 -0
- data/lib/rubocop/cop/mixin/rescue_node.rb +22 -0
- data/lib/rubocop/cop/mixin/safe_assignment.rb +23 -0
- data/lib/rubocop/cop/mixin/space_after_punctuation.rb +55 -0
- data/lib/rubocop/cop/mixin/space_before_punctuation.rb +49 -0
- data/lib/rubocop/cop/mixin/statement_modifier.rb +56 -0
- data/lib/rubocop/cop/mixin/string_help.rb +35 -0
- data/lib/rubocop/cop/mixin/string_literals_help.rb +23 -0
- data/lib/rubocop/cop/mixin/surrounding_space.rb +151 -0
- data/lib/rubocop/cop/mixin/target_ruby_version.rb +20 -0
- data/lib/rubocop/cop/mixin/too_many_lines.rb +25 -0
- data/lib/rubocop/cop/mixin/trailing_body.rb +26 -0
- data/lib/rubocop/cop/mixin/trailing_comma.rb +212 -0
- data/lib/rubocop/cop/mixin/uncommunicative_name.rb +113 -0
- data/lib/rubocop/cop/mixin/unused_argument.rb +33 -0
- data/lib/rubocop/cop/mixin/visibility_help.rb +50 -0
- data/lib/rubocop/cop/naming/accessor_method_name.rb +55 -0
- data/lib/rubocop/cop/naming/ascii_identifiers.rb +95 -0
- data/lib/rubocop/cop/naming/binary_operator_parameter_name.rb +43 -0
- data/lib/rubocop/cop/naming/block_parameter_name.rb +49 -0
- data/lib/rubocop/cop/naming/class_and_module_camel_case.rb +43 -0
- data/lib/rubocop/cop/naming/constant_name.rb +82 -0
- data/lib/rubocop/cop/naming/file_name.rb +223 -0
- data/lib/rubocop/cop/naming/heredoc_delimiter_case.rb +62 -0
- data/lib/rubocop/cop/naming/heredoc_delimiter_naming.rb +55 -0
- data/lib/rubocop/cop/naming/memoized_instance_variable_name.rb +171 -0
- data/lib/rubocop/cop/naming/method_name.rb +79 -0
- data/lib/rubocop/cop/naming/method_parameter_name.rb +58 -0
- data/lib/rubocop/cop/naming/predicate_name.rb +106 -0
- data/lib/rubocop/cop/naming/rescued_exceptions_variable_name.rb +112 -0
- data/lib/rubocop/cop/naming/variable_name.rb +52 -0
- data/lib/rubocop/cop/naming/variable_number.rb +61 -0
- data/lib/rubocop/cop/offense.rb +230 -0
- data/lib/rubocop/cop/registry.rb +276 -0
- data/lib/rubocop/cop/security/eval.rb +31 -0
- data/lib/rubocop/cop/security/json_load.rb +46 -0
- data/lib/rubocop/cop/security/marshal_load.rb +39 -0
- data/lib/rubocop/cop/security/open.rb +71 -0
- data/lib/rubocop/cop/security/yaml_load.rb +37 -0
- data/lib/rubocop/cop/severity.rb +75 -0
- data/lib/rubocop/cop/style/access_modifier_declarations.rb +132 -0
- data/lib/rubocop/cop/style/accessor_grouping.rb +140 -0
- data/lib/rubocop/cop/style/alias.rb +147 -0
- data/lib/rubocop/cop/style/and_or.rb +145 -0
- data/lib/rubocop/cop/style/array_join.rb +39 -0
- data/lib/rubocop/cop/style/ascii_comments.rb +61 -0
- data/lib/rubocop/cop/style/attr.rb +68 -0
- data/lib/rubocop/cop/style/auto_resource_cleanup.rb +51 -0
- data/lib/rubocop/cop/style/bare_percent_literals.rb +78 -0
- data/lib/rubocop/cop/style/begin_block.rb +22 -0
- data/lib/rubocop/cop/style/bisected_attr_accessor.rb +145 -0
- data/lib/rubocop/cop/style/block_comments.rb +70 -0
- data/lib/rubocop/cop/style/block_delimiters.rb +382 -0
- data/lib/rubocop/cop/style/case_equality.rb +53 -0
- data/lib/rubocop/cop/style/character_literal.rb +53 -0
- data/lib/rubocop/cop/style/class_and_module_children.rb +151 -0
- data/lib/rubocop/cop/style/class_check.rb +59 -0
- data/lib/rubocop/cop/style/class_methods.rb +60 -0
- data/lib/rubocop/cop/style/class_vars.rb +69 -0
- data/lib/rubocop/cop/style/collection_methods.rb +79 -0
- data/lib/rubocop/cop/style/colon_method_call.rb +48 -0
- data/lib/rubocop/cop/style/colon_method_definition.rb +37 -0
- data/lib/rubocop/cop/style/command_literal.rb +187 -0
- data/lib/rubocop/cop/style/comment_annotation.rb +97 -0
- data/lib/rubocop/cop/style/commented_keyword.rb +73 -0
- data/lib/rubocop/cop/style/conditional_assignment.rb +666 -0
- data/lib/rubocop/cop/style/constant_visibility.rb +77 -0
- data/lib/rubocop/cop/style/copyright.rb +99 -0
- data/lib/rubocop/cop/style/date_time.rb +77 -0
- data/lib/rubocop/cop/style/def_with_parentheses.rb +57 -0
- data/lib/rubocop/cop/style/dir.rb +48 -0
- data/lib/rubocop/cop/style/disable_cops_within_source_code_directive.rb +49 -0
- data/lib/rubocop/cop/style/documentation.rb +135 -0
- data/lib/rubocop/cop/style/documentation_method.rb +125 -0
- data/lib/rubocop/cop/style/double_cop_disable_directive.rb +55 -0
- data/lib/rubocop/cop/style/double_negation.rb +72 -0
- data/lib/rubocop/cop/style/each_for_simple_loop.rb +58 -0
- data/lib/rubocop/cop/style/each_with_object.rb +110 -0
- data/lib/rubocop/cop/style/empty_block_parameter.rb +48 -0
- data/lib/rubocop/cop/style/empty_case_condition.rb +109 -0
- data/lib/rubocop/cop/style/empty_else.rb +175 -0
- data/lib/rubocop/cop/style/empty_lambda_parameter.rb +45 -0
- data/lib/rubocop/cop/style/empty_literal.rb +121 -0
- data/lib/rubocop/cop/style/empty_method.rb +111 -0
- data/lib/rubocop/cop/style/encoding.rb +56 -0
- data/lib/rubocop/cop/style/end_block.rb +31 -0
- data/lib/rubocop/cop/style/eval_with_location.rb +148 -0
- data/lib/rubocop/cop/style/even_odd.rb +58 -0
- data/lib/rubocop/cop/style/expand_path_arguments.rb +194 -0
- data/lib/rubocop/cop/style/exponential_notation.rb +119 -0
- data/lib/rubocop/cop/style/float_division.rb +94 -0
- data/lib/rubocop/cop/style/for.rb +88 -0
- data/lib/rubocop/cop/style/format_string.rb +127 -0
- data/lib/rubocop/cop/style/format_string_token.rb +120 -0
- data/lib/rubocop/cop/style/frozen_string_literal_comment.rb +234 -0
- data/lib/rubocop/cop/style/global_vars.rb +80 -0
- data/lib/rubocop/cop/style/guard_clause.rb +145 -0
- data/lib/rubocop/cop/style/hash_each_methods.rb +89 -0
- data/lib/rubocop/cop/style/hash_syntax.rb +221 -0
- data/lib/rubocop/cop/style/hash_transform_keys.rb +83 -0
- data/lib/rubocop/cop/style/hash_transform_values.rb +80 -0
- data/lib/rubocop/cop/style/identical_conditional_branches.rb +130 -0
- data/lib/rubocop/cop/style/if_inside_else.rb +87 -0
- data/lib/rubocop/cop/style/if_unless_modifier.rb +189 -0
- data/lib/rubocop/cop/style/if_unless_modifier_of_if_unless.rb +51 -0
- data/lib/rubocop/cop/style/if_with_semicolon.rb +46 -0
- data/lib/rubocop/cop/style/implicit_runtime_error.rb +32 -0
- data/lib/rubocop/cop/style/infinite_loop.rb +128 -0
- data/lib/rubocop/cop/style/inline_comment.rb +34 -0
- data/lib/rubocop/cop/style/inverse_methods.rb +197 -0
- data/lib/rubocop/cop/style/ip_addresses.rb +76 -0
- data/lib/rubocop/cop/style/lambda.rb +132 -0
- data/lib/rubocop/cop/style/lambda_call.rb +73 -0
- data/lib/rubocop/cop/style/line_end_concatenation.rb +125 -0
- data/lib/rubocop/cop/style/method_call_with_args_parentheses.rb +190 -0
- data/lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb +169 -0
- data/lib/rubocop/cop/style/method_call_with_args_parentheses/require_parentheses.rb +52 -0
- data/lib/rubocop/cop/style/method_call_without_args_parentheses.rb +75 -0
- data/lib/rubocop/cop/style/method_called_on_do_end_block.rb +46 -0
- data/lib/rubocop/cop/style/method_def_parentheses.rb +166 -0
- data/lib/rubocop/cop/style/method_missing_super.rb +34 -0
- data/lib/rubocop/cop/style/min_max.rb +68 -0
- data/lib/rubocop/cop/style/missing_else.rb +180 -0
- data/lib/rubocop/cop/style/missing_respond_to_missing.rb +46 -0
- data/lib/rubocop/cop/style/mixin_grouping.rb +148 -0
- data/lib/rubocop/cop/style/mixin_usage.rb +90 -0
- data/lib/rubocop/cop/style/module_function.rb +150 -0
- data/lib/rubocop/cop/style/multiline_block_chain.rb +49 -0
- data/lib/rubocop/cop/style/multiline_if_modifier.rb +67 -0
- data/lib/rubocop/cop/style/multiline_if_then.rb +50 -0
- data/lib/rubocop/cop/style/multiline_memoization.rb +94 -0
- data/lib/rubocop/cop/style/multiline_method_signature.rb +61 -0
- data/lib/rubocop/cop/style/multiline_ternary_operator.rb +49 -0
- data/lib/rubocop/cop/style/multiline_when_then.rb +74 -0
- data/lib/rubocop/cop/style/multiple_comparison.rb +92 -0
- data/lib/rubocop/cop/style/mutable_constant.rb +172 -0
- data/lib/rubocop/cop/style/negated_if.rb +99 -0
- data/lib/rubocop/cop/style/negated_unless.rb +89 -0
- data/lib/rubocop/cop/style/negated_while.rb +48 -0
- data/lib/rubocop/cop/style/nested_modifier.rb +107 -0
- data/lib/rubocop/cop/style/nested_parenthesized_calls.rb +64 -0
- data/lib/rubocop/cop/style/nested_ternary_operator.rb +59 -0
- data/lib/rubocop/cop/style/next.rb +244 -0
- data/lib/rubocop/cop/style/nil_comparison.rb +75 -0
- data/lib/rubocop/cop/style/non_nil_check.rb +136 -0
- data/lib/rubocop/cop/style/not.rb +82 -0
- data/lib/rubocop/cop/style/numeric_literal_prefix.rb +124 -0
- data/lib/rubocop/cop/style/numeric_literals.rb +114 -0
- data/lib/rubocop/cop/style/numeric_predicate.rb +138 -0
- data/lib/rubocop/cop/style/one_line_conditional.rb +98 -0
- data/lib/rubocop/cop/style/option_hash.rb +55 -0
- data/lib/rubocop/cop/style/optional_arguments.rb +58 -0
- data/lib/rubocop/cop/style/or_assignment.rb +96 -0
- data/lib/rubocop/cop/style/parallel_assignment.rb +287 -0
- data/lib/rubocop/cop/style/parentheses_around_condition.rb +117 -0
- data/lib/rubocop/cop/style/percent_literal_delimiters.rb +127 -0
- data/lib/rubocop/cop/style/percent_q_literals.rb +73 -0
- data/lib/rubocop/cop/style/perl_backrefs.rb +38 -0
- data/lib/rubocop/cop/style/preferred_hash_methods.rb +75 -0
- data/lib/rubocop/cop/style/proc.rb +34 -0
- data/lib/rubocop/cop/style/raise_args.rb +145 -0
- data/lib/rubocop/cop/style/random_with_offset.rb +152 -0
- data/lib/rubocop/cop/style/redundant_assignment.rb +117 -0
- data/lib/rubocop/cop/style/redundant_begin.rb +91 -0
- data/lib/rubocop/cop/style/redundant_capital_w.rb +51 -0
- data/lib/rubocop/cop/style/redundant_condition.rb +124 -0
- data/lib/rubocop/cop/style/redundant_conditional.rb +98 -0
- data/lib/rubocop/cop/style/redundant_exception.rb +64 -0
- data/lib/rubocop/cop/style/redundant_fetch_block.rb +122 -0
- data/lib/rubocop/cop/style/redundant_freeze.rb +67 -0
- data/lib/rubocop/cop/style/redundant_interpolation.rb +98 -0
- data/lib/rubocop/cop/style/redundant_parentheses.rb +233 -0
- data/lib/rubocop/cop/style/redundant_percent_q.rb +112 -0
- data/lib/rubocop/cop/style/redundant_regexp_character_class.rb +90 -0
- data/lib/rubocop/cop/style/redundant_regexp_escape.rb +121 -0
- data/lib/rubocop/cop/style/redundant_return.rb +169 -0
- data/lib/rubocop/cop/style/redundant_self.rb +168 -0
- data/lib/rubocop/cop/style/redundant_sort.rb +165 -0
- data/lib/rubocop/cop/style/redundant_sort_by.rb +50 -0
- data/lib/rubocop/cop/style/regexp_literal.rb +228 -0
- data/lib/rubocop/cop/style/rescue_modifier.rb +73 -0
- data/lib/rubocop/cop/style/rescue_standard_error.rb +124 -0
- data/lib/rubocop/cop/style/return_nil.rb +89 -0
- data/lib/rubocop/cop/style/safe_navigation.rb +271 -0
- data/lib/rubocop/cop/style/sample.rb +144 -0
- data/lib/rubocop/cop/style/self_assignment.rb +97 -0
- data/lib/rubocop/cop/style/semicolon.rb +101 -0
- data/lib/rubocop/cop/style/send.rb +31 -0
- data/lib/rubocop/cop/style/signal_exception.rb +211 -0
- data/lib/rubocop/cop/style/single_line_block_params.rb +95 -0
- data/lib/rubocop/cop/style/single_line_methods.rb +83 -0
- data/lib/rubocop/cop/style/slicing_with_range.rb +39 -0
- data/lib/rubocop/cop/style/special_global_vars.rb +207 -0
- data/lib/rubocop/cop/style/stabby_lambda_parentheses.rb +83 -0
- data/lib/rubocop/cop/style/stderr_puts.rb +61 -0
- data/lib/rubocop/cop/style/string_hash_keys.rb +50 -0
- data/lib/rubocop/cop/style/string_literals.rb +129 -0
- data/lib/rubocop/cop/style/string_literals_in_interpolation.rb +49 -0
- data/lib/rubocop/cop/style/string_methods.rb +46 -0
- data/lib/rubocop/cop/style/strip.rb +46 -0
- data/lib/rubocop/cop/style/struct_inheritance.rb +60 -0
- data/lib/rubocop/cop/style/symbol_array.rb +119 -0
- data/lib/rubocop/cop/style/symbol_literal.rb +32 -0
- data/lib/rubocop/cop/style/symbol_proc.rb +110 -0
- data/lib/rubocop/cop/style/ternary_parentheses.rb +220 -0
- data/lib/rubocop/cop/style/trailing_body_on_class.rb +43 -0
- data/lib/rubocop/cop/style/trailing_body_on_method_definition.rb +54 -0
- data/lib/rubocop/cop/style/trailing_body_on_module.rb +43 -0
- data/lib/rubocop/cop/style/trailing_comma_in_arguments.rb +109 -0
- data/lib/rubocop/cop/style/trailing_comma_in_array_literal.rb +99 -0
- data/lib/rubocop/cop/style/trailing_comma_in_block_args.rb +88 -0
- data/lib/rubocop/cop/style/trailing_comma_in_hash_literal.rb +100 -0
- data/lib/rubocop/cop/style/trailing_method_end_statement.rb +91 -0
- data/lib/rubocop/cop/style/trailing_underscore_variable.rb +165 -0
- data/lib/rubocop/cop/style/trivial_accessors.rb +192 -0
- data/lib/rubocop/cop/style/unless_else.rb +55 -0
- data/lib/rubocop/cop/style/unpack_first.rb +61 -0
- data/lib/rubocop/cop/style/variable_interpolation.rb +48 -0
- data/lib/rubocop/cop/style/when_then.rb +37 -0
- data/lib/rubocop/cop/style/while_until_do.rb +59 -0
- data/lib/rubocop/cop/style/while_until_modifier.rb +61 -0
- data/lib/rubocop/cop/style/word_array.rb +102 -0
- data/lib/rubocop/cop/style/yoda_condition.rb +173 -0
- data/lib/rubocop/cop/style/zero_length_predicate.rb +117 -0
- data/lib/rubocop/cop/team.rb +256 -0
- data/lib/rubocop/cop/util.rb +151 -0
- data/lib/rubocop/cop/utils/format_string.rb +137 -0
- data/lib/rubocop/cop/variable_force.rb +463 -0
- data/lib/rubocop/cop/variable_force/assignment.rb +97 -0
- data/lib/rubocop/cop/variable_force/branch.rb +320 -0
- data/lib/rubocop/cop/variable_force/branchable.rb +23 -0
- data/lib/rubocop/cop/variable_force/reference.rb +49 -0
- data/lib/rubocop/cop/variable_force/scope.rb +110 -0
- data/lib/rubocop/cop/variable_force/variable.rb +114 -0
- data/lib/rubocop/cop/variable_force/variable_table.rb +129 -0
- data/lib/rubocop/core_ext/string.rb +23 -0
- data/lib/rubocop/error.rb +34 -0
- data/lib/rubocop/ext/processed_source.rb +18 -0
- data/lib/rubocop/file_finder.rb +42 -0
- data/lib/rubocop/formatter/auto_gen_config_formatter.rb +16 -0
- data/lib/rubocop/formatter/base_formatter.rb +119 -0
- data/lib/rubocop/formatter/clang_style_formatter.rb +57 -0
- data/lib/rubocop/formatter/colorizable.rb +41 -0
- data/lib/rubocop/formatter/disabled_config_formatter.rb +216 -0
- data/lib/rubocop/formatter/emacs_style_formatter.rb +37 -0
- data/lib/rubocop/formatter/file_list_formatter.rb +20 -0
- data/lib/rubocop/formatter/formatter_set.rb +104 -0
- data/lib/rubocop/formatter/fuubar_style_formatter.rb +80 -0
- data/lib/rubocop/formatter/html_formatter.rb +141 -0
- data/lib/rubocop/formatter/json_formatter.rb +81 -0
- data/lib/rubocop/formatter/junit_formatter.rb +84 -0
- data/lib/rubocop/formatter/offense_count_formatter.rb +74 -0
- data/lib/rubocop/formatter/pacman_formatter.rb +80 -0
- data/lib/rubocop/formatter/progress_formatter.rb +63 -0
- data/lib/rubocop/formatter/quiet_formatter.rb +13 -0
- data/lib/rubocop/formatter/simple_text_formatter.rb +138 -0
- data/lib/rubocop/formatter/tap_formatter.rb +82 -0
- data/lib/rubocop/formatter/text_util.rb +20 -0
- data/lib/rubocop/formatter/worst_offenders_formatter.rb +62 -0
- data/lib/rubocop/magic_comment.rb +214 -0
- data/lib/rubocop/name_similarity.rb +28 -0
- data/lib/rubocop/options.rb +488 -0
- data/lib/rubocop/path_util.rb +85 -0
- data/lib/rubocop/platform.rb +11 -0
- data/lib/rubocop/rake_task.rb +77 -0
- data/lib/rubocop/remote_config.rb +104 -0
- data/lib/rubocop/result_cache.rb +205 -0
- data/lib/rubocop/rspec/cop_helper.rb +71 -0
- data/lib/rubocop/rspec/expect_offense.rb +288 -0
- data/lib/rubocop/rspec/host_environment_simulation_helper.rb +28 -0
- data/lib/rubocop/rspec/shared_contexts.rb +129 -0
- data/lib/rubocop/rspec/support.rb +13 -0
- data/lib/rubocop/runner.rb +388 -0
- data/lib/rubocop/string_interpreter.rb +57 -0
- data/lib/rubocop/target_finder.rb +196 -0
- data/lib/rubocop/target_ruby.rb +154 -0
- data/lib/rubocop/version.rb +23 -0
- data/lib/rubocop/warning.rb +11 -0
- data/lib/rubocop/yaml_duplication_checker.rb +39 -0
- metadata +795 -0
data/exe/rubocop
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
# frozen_string_literal: true
|
3
|
+
|
4
|
+
$LOAD_PATH.unshift("#{__dir__}/../lib")
|
5
|
+
|
6
|
+
require 'rubocop'
|
7
|
+
require 'benchmark'
|
8
|
+
|
9
|
+
cli = RuboCop::CLI.new
|
10
|
+
result = 0
|
11
|
+
|
12
|
+
time = Benchmark.realtime do
|
13
|
+
result = cli.run
|
14
|
+
end
|
15
|
+
|
16
|
+
puts "Finished in #{time} seconds" if cli.options[:debug]
|
17
|
+
exit result
|
data/lib/rubocop.rb
ADDED
@@ -0,0 +1,598 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'rainbow'
|
4
|
+
|
5
|
+
require 'English'
|
6
|
+
require 'set'
|
7
|
+
require 'forwardable'
|
8
|
+
require 'regexp_parser'
|
9
|
+
require 'unicode/display_width/no_string_ext'
|
10
|
+
require 'rubocop-ast'
|
11
|
+
require_relative 'rubocop/ast_aliases'
|
12
|
+
|
13
|
+
require_relative 'rubocop/version'
|
14
|
+
|
15
|
+
require_relative 'rubocop/core_ext/string'
|
16
|
+
require_relative 'rubocop/ext/processed_source'
|
17
|
+
|
18
|
+
require_relative 'rubocop/path_util'
|
19
|
+
require_relative 'rubocop/file_finder'
|
20
|
+
require_relative 'rubocop/platform'
|
21
|
+
require_relative 'rubocop/name_similarity'
|
22
|
+
require_relative 'rubocop/string_interpreter'
|
23
|
+
require_relative 'rubocop/error'
|
24
|
+
require_relative 'rubocop/warning'
|
25
|
+
|
26
|
+
require_relative 'rubocop/cop/util'
|
27
|
+
require_relative 'rubocop/cop/offense'
|
28
|
+
require_relative 'rubocop/cop/message_annotator'
|
29
|
+
require_relative 'rubocop/cop/ignored_node'
|
30
|
+
require_relative 'rubocop/cop/autocorrect_logic'
|
31
|
+
require_relative 'rubocop/cop/badge'
|
32
|
+
require_relative 'rubocop/cop/registry'
|
33
|
+
require_relative 'rubocop/cop/base'
|
34
|
+
require_relative 'rubocop/cop/cop'
|
35
|
+
require_relative 'rubocop/cop/commissioner'
|
36
|
+
require_relative 'rubocop/cop/corrector'
|
37
|
+
require_relative 'rubocop/cop/force'
|
38
|
+
require_relative 'rubocop/cop/severity'
|
39
|
+
require_relative 'rubocop/cop/generator'
|
40
|
+
require_relative 'rubocop/cop/generator/configuration_injector'
|
41
|
+
require_relative 'rubocop/cop/generator/require_file_injector'
|
42
|
+
|
43
|
+
require_relative 'rubocop/cop/variable_force'
|
44
|
+
require_relative 'rubocop/cop/variable_force/branch'
|
45
|
+
require_relative 'rubocop/cop/variable_force/branchable'
|
46
|
+
require_relative 'rubocop/cop/variable_force/variable'
|
47
|
+
require_relative 'rubocop/cop/variable_force/assignment'
|
48
|
+
require_relative 'rubocop/cop/variable_force/reference'
|
49
|
+
require_relative 'rubocop/cop/variable_force/scope'
|
50
|
+
require_relative 'rubocop/cop/variable_force/variable_table'
|
51
|
+
|
52
|
+
require_relative 'rubocop/cop/mixin/annotation_comment'
|
53
|
+
require_relative 'rubocop/cop/mixin/array_min_size'
|
54
|
+
require_relative 'rubocop/cop/mixin/array_syntax'
|
55
|
+
require_relative 'rubocop/cop/mixin/alignment'
|
56
|
+
require_relative 'rubocop/cop/mixin/allowed_methods'
|
57
|
+
require_relative 'rubocop/cop/mixin/auto_corrector'
|
58
|
+
require_relative 'rubocop/cop/mixin/check_assignment'
|
59
|
+
require_relative 'rubocop/cop/mixin/check_line_breakable'
|
60
|
+
require_relative 'rubocop/cop/mixin/configurable_max'
|
61
|
+
require_relative 'rubocop/cop/mixin/code_length' # relies on configurable_max
|
62
|
+
require_relative 'rubocop/cop/mixin/configurable_enforced_style'
|
63
|
+
require_relative 'rubocop/cop/mixin/configurable_formatting'
|
64
|
+
require_relative 'rubocop/cop/mixin/configurable_naming'
|
65
|
+
require_relative 'rubocop/cop/mixin/configurable_numbering'
|
66
|
+
require_relative 'rubocop/cop/mixin/def_node'
|
67
|
+
require_relative 'rubocop/cop/mixin/documentation_comment'
|
68
|
+
require_relative 'rubocop/cop/mixin/duplication'
|
69
|
+
require_relative 'rubocop/cop/mixin/range_help'
|
70
|
+
require_relative 'rubocop/cop/mixin/empty_lines_around_body' # relies on range
|
71
|
+
require_relative 'rubocop/cop/mixin/empty_parameter'
|
72
|
+
require_relative 'rubocop/cop/mixin/end_keyword_alignment'
|
73
|
+
require_relative 'rubocop/cop/mixin/enforce_superclass'
|
74
|
+
require_relative 'rubocop/cop/mixin/first_element_line_break'
|
75
|
+
require_relative 'rubocop/cop/mixin/frozen_string_literal'
|
76
|
+
require_relative 'rubocop/cop/mixin/hash_alignment_styles'
|
77
|
+
require_relative 'rubocop/cop/mixin/hash_transform_method'
|
78
|
+
require_relative 'rubocop/cop/mixin/ignored_pattern'
|
79
|
+
require_relative 'rubocop/cop/mixin/ignored_methods'
|
80
|
+
require_relative 'rubocop/cop/mixin/integer_node'
|
81
|
+
require_relative 'rubocop/cop/mixin/interpolation'
|
82
|
+
require_relative 'rubocop/cop/mixin/line_length_help'
|
83
|
+
require_relative 'rubocop/cop/mixin/match_range'
|
84
|
+
require_relative 'rubocop/cop/mixin/method_complexity'
|
85
|
+
require_relative 'rubocop/cop/mixin/method_preference'
|
86
|
+
require_relative 'rubocop/cop/mixin/min_body_length'
|
87
|
+
require_relative 'rubocop/cop/mixin/multiline_element_indentation'
|
88
|
+
require_relative 'rubocop/cop/mixin/multiline_element_line_breaks'
|
89
|
+
require_relative 'rubocop/cop/mixin/multiline_expression_indentation'
|
90
|
+
require_relative 'rubocop/cop/mixin/multiline_literal_brace_layout'
|
91
|
+
require_relative 'rubocop/cop/mixin/negative_conditional'
|
92
|
+
require_relative 'rubocop/cop/mixin/heredoc'
|
93
|
+
require_relative 'rubocop/cop/mixin/nil_methods'
|
94
|
+
require_relative 'rubocop/cop/mixin/on_normal_if_unless'
|
95
|
+
require_relative 'rubocop/cop/mixin/ordered_gem_node'
|
96
|
+
require_relative 'rubocop/cop/mixin/parentheses'
|
97
|
+
require_relative 'rubocop/cop/mixin/parser_diagnostic'
|
98
|
+
require_relative 'rubocop/cop/mixin/percent_array'
|
99
|
+
require_relative 'rubocop/cop/mixin/percent_literal'
|
100
|
+
require_relative 'rubocop/cop/mixin/preceding_following_alignment'
|
101
|
+
require_relative 'rubocop/cop/mixin/preferred_delimiters'
|
102
|
+
require_relative 'rubocop/cop/mixin/rational_literal'
|
103
|
+
require_relative 'rubocop/cop/mixin/regexp_literal_help'
|
104
|
+
require_relative 'rubocop/cop/mixin/rescue_node'
|
105
|
+
require_relative 'rubocop/cop/mixin/safe_assignment'
|
106
|
+
require_relative 'rubocop/cop/mixin/space_after_punctuation'
|
107
|
+
require_relative 'rubocop/cop/mixin/space_before_punctuation'
|
108
|
+
require_relative 'rubocop/cop/mixin/surrounding_space'
|
109
|
+
require_relative 'rubocop/cop/mixin/statement_modifier'
|
110
|
+
require_relative 'rubocop/cop/mixin/string_help'
|
111
|
+
require_relative 'rubocop/cop/mixin/string_literals_help'
|
112
|
+
require_relative 'rubocop/cop/mixin/target_ruby_version'
|
113
|
+
require_relative 'rubocop/cop/mixin/too_many_lines'
|
114
|
+
require_relative 'rubocop/cop/mixin/trailing_body'
|
115
|
+
require_relative 'rubocop/cop/mixin/trailing_comma'
|
116
|
+
require_relative 'rubocop/cop/mixin/uncommunicative_name'
|
117
|
+
require_relative 'rubocop/cop/mixin/unused_argument'
|
118
|
+
require_relative 'rubocop/cop/mixin/visibility_help'
|
119
|
+
|
120
|
+
require_relative 'rubocop/cop/utils/format_string'
|
121
|
+
|
122
|
+
require_relative 'rubocop/cop/migration/department_name'
|
123
|
+
|
124
|
+
require_relative 'rubocop/cop/correctors/alignment_corrector'
|
125
|
+
require_relative 'rubocop/cop/correctors/condition_corrector'
|
126
|
+
require_relative 'rubocop/cop/correctors/each_to_for_corrector'
|
127
|
+
require_relative 'rubocop/cop/correctors/empty_line_corrector'
|
128
|
+
require_relative 'rubocop/cop/correctors/for_to_each_corrector'
|
129
|
+
require_relative 'rubocop/cop/correctors/lambda_literal_to_method_corrector'
|
130
|
+
require_relative 'rubocop/cop/correctors/line_break_corrector'
|
131
|
+
require_relative 'rubocop/cop/correctors/multiline_literal_brace_corrector'
|
132
|
+
require_relative 'rubocop/cop/correctors/ordered_gem_corrector'
|
133
|
+
require_relative 'rubocop/cop/correctors/parentheses_corrector'
|
134
|
+
require_relative 'rubocop/cop/correctors/percent_literal_corrector'
|
135
|
+
require_relative 'rubocop/cop/correctors/punctuation_corrector'
|
136
|
+
require_relative 'rubocop/cop/correctors/space_corrector'
|
137
|
+
require_relative 'rubocop/cop/correctors/string_literal_corrector'
|
138
|
+
require_relative 'rubocop/cop/correctors/unused_arg_corrector'
|
139
|
+
|
140
|
+
require_relative 'rubocop/cop/bundler/duplicated_gem'
|
141
|
+
require_relative 'rubocop/cop/bundler/gem_comment'
|
142
|
+
require_relative 'rubocop/cop/bundler/insecure_protocol_source'
|
143
|
+
require_relative 'rubocop/cop/bundler/ordered_gems'
|
144
|
+
|
145
|
+
require_relative 'rubocop/cop/gemspec/duplicated_assignment'
|
146
|
+
require_relative 'rubocop/cop/gemspec/ordered_dependencies'
|
147
|
+
require_relative 'rubocop/cop/gemspec/required_ruby_version'
|
148
|
+
require_relative 'rubocop/cop/gemspec/ruby_version_globals_usage'
|
149
|
+
|
150
|
+
require_relative 'rubocop/cop/layout/access_modifier_indentation'
|
151
|
+
require_relative 'rubocop/cop/layout/argument_alignment'
|
152
|
+
require_relative 'rubocop/cop/layout/array_alignment'
|
153
|
+
require_relative 'rubocop/cop/layout/assignment_indentation'
|
154
|
+
require_relative 'rubocop/cop/layout/block_alignment'
|
155
|
+
require_relative 'rubocop/cop/layout/block_end_newline'
|
156
|
+
require_relative 'rubocop/cop/layout/case_indentation'
|
157
|
+
require_relative 'rubocop/cop/layout/class_structure'
|
158
|
+
require_relative 'rubocop/cop/layout/closing_heredoc_indentation'
|
159
|
+
require_relative 'rubocop/cop/layout/closing_parenthesis_indentation'
|
160
|
+
require_relative 'rubocop/cop/layout/comment_indentation'
|
161
|
+
require_relative 'rubocop/cop/layout/condition_position'
|
162
|
+
require_relative 'rubocop/cop/layout/def_end_alignment'
|
163
|
+
require_relative 'rubocop/cop/layout/dot_position'
|
164
|
+
require_relative 'rubocop/cop/layout/else_alignment'
|
165
|
+
require_relative 'rubocop/cop/layout/empty_comment'
|
166
|
+
require_relative 'rubocop/cop/layout/empty_line_after_guard_clause'
|
167
|
+
require_relative 'rubocop/cop/layout/empty_line_after_magic_comment'
|
168
|
+
require_relative 'rubocop/cop/layout/empty_line_between_defs'
|
169
|
+
require_relative 'rubocop/cop/layout/empty_lines_around_access_modifier'
|
170
|
+
require_relative 'rubocop/cop/layout/empty_lines_around_arguments'
|
171
|
+
require_relative 'rubocop/cop/layout/empty_lines_around_attribute_accessor'
|
172
|
+
require_relative 'rubocop/cop/layout/empty_lines_around_begin_body'
|
173
|
+
require_relative 'rubocop/cop/layout/empty_lines_around_block_body'
|
174
|
+
require_relative 'rubocop/cop/layout/empty_lines_around_class_body'
|
175
|
+
require_relative 'rubocop/cop/layout/empty_lines_around_exception_handling_keywords'
|
176
|
+
require_relative 'rubocop/cop/layout/empty_lines_around_method_body'
|
177
|
+
require_relative 'rubocop/cop/layout/empty_lines_around_module_body'
|
178
|
+
require_relative 'rubocop/cop/layout/empty_lines'
|
179
|
+
require_relative 'rubocop/cop/layout/end_alignment'
|
180
|
+
require_relative 'rubocop/cop/layout/end_of_line'
|
181
|
+
require_relative 'rubocop/cop/layout/extra_spacing'
|
182
|
+
require_relative 'rubocop/cop/layout/first_argument_indentation'
|
183
|
+
require_relative 'rubocop/cop/layout/first_array_element_indentation'
|
184
|
+
require_relative 'rubocop/cop/layout/first_array_element_line_break'
|
185
|
+
require_relative 'rubocop/cop/layout/first_hash_element_indentation'
|
186
|
+
require_relative 'rubocop/cop/layout/first_hash_element_line_break'
|
187
|
+
require_relative 'rubocop/cop/layout/first_method_argument_line_break'
|
188
|
+
require_relative 'rubocop/cop/layout/first_method_parameter_line_break'
|
189
|
+
require_relative 'rubocop/cop/layout/first_parameter_indentation'
|
190
|
+
require_relative 'rubocop/cop/layout/hash_alignment'
|
191
|
+
require_relative 'rubocop/cop/layout/heredoc_argument_closing_parenthesis'
|
192
|
+
require_relative 'rubocop/cop/layout/heredoc_indentation'
|
193
|
+
require_relative 'rubocop/cop/layout/indentation_consistency'
|
194
|
+
require_relative 'rubocop/cop/layout/indentation_style'
|
195
|
+
require_relative 'rubocop/cop/layout/indentation_width'
|
196
|
+
require_relative 'rubocop/cop/layout/initial_indentation'
|
197
|
+
require_relative 'rubocop/cop/layout/leading_comment_space'
|
198
|
+
require_relative 'rubocop/cop/layout/leading_empty_lines'
|
199
|
+
require_relative 'rubocop/cop/layout/line_length'
|
200
|
+
require_relative 'rubocop/cop/layout/multiline_array_brace_layout'
|
201
|
+
require_relative 'rubocop/cop/layout/multiline_array_line_breaks'
|
202
|
+
require_relative 'rubocop/cop/layout/multiline_assignment_layout'
|
203
|
+
require_relative 'rubocop/cop/layout/multiline_block_layout'
|
204
|
+
require_relative 'rubocop/cop/layout/multiline_hash_brace_layout'
|
205
|
+
require_relative 'rubocop/cop/layout/multiline_hash_key_line_breaks'
|
206
|
+
require_relative 'rubocop/cop/layout/multiline_method_argument_line_breaks'
|
207
|
+
require_relative 'rubocop/cop/layout/multiline_method_call_brace_layout'
|
208
|
+
require_relative 'rubocop/cop/layout/multiline_method_call_indentation'
|
209
|
+
require_relative 'rubocop/cop/layout/multiline_method_definition_brace_layout'
|
210
|
+
require_relative 'rubocop/cop/layout/multiline_operation_indentation'
|
211
|
+
require_relative 'rubocop/cop/layout/parameter_alignment'
|
212
|
+
require_relative 'rubocop/cop/layout/rescue_ensure_alignment'
|
213
|
+
require_relative 'rubocop/cop/layout/space_after_colon'
|
214
|
+
require_relative 'rubocop/cop/layout/space_after_comma'
|
215
|
+
require_relative 'rubocop/cop/layout/space_after_method_name'
|
216
|
+
require_relative 'rubocop/cop/layout/space_after_not'
|
217
|
+
require_relative 'rubocop/cop/layout/space_after_semicolon'
|
218
|
+
require_relative 'rubocop/cop/layout/space_around_block_parameters'
|
219
|
+
require_relative 'rubocop/cop/layout/space_around_equals_in_parameter_default'
|
220
|
+
require_relative 'rubocop/cop/layout/space_around_keyword'
|
221
|
+
require_relative 'rubocop/cop/layout/space_around_method_call_operator'
|
222
|
+
require_relative 'rubocop/cop/layout/space_around_operators'
|
223
|
+
require_relative 'rubocop/cop/layout/space_before_block_braces'
|
224
|
+
require_relative 'rubocop/cop/layout/space_before_comma'
|
225
|
+
require_relative 'rubocop/cop/layout/space_before_comment'
|
226
|
+
require_relative 'rubocop/cop/layout/space_before_first_arg'
|
227
|
+
require_relative 'rubocop/cop/layout/space_before_semicolon'
|
228
|
+
require_relative 'rubocop/cop/layout/space_in_lambda_literal'
|
229
|
+
require_relative 'rubocop/cop/layout/space_inside_array_percent_literal'
|
230
|
+
require_relative 'rubocop/cop/layout/space_inside_array_literal_brackets'
|
231
|
+
require_relative 'rubocop/cop/layout/space_inside_block_braces'
|
232
|
+
require_relative 'rubocop/cop/layout/space_inside_hash_literal_braces'
|
233
|
+
require_relative 'rubocop/cop/layout/space_inside_parens'
|
234
|
+
require_relative 'rubocop/cop/layout/space_inside_percent_literal_delimiters'
|
235
|
+
require_relative 'rubocop/cop/layout/space_inside_range_literal'
|
236
|
+
require_relative 'rubocop/cop/layout/space_inside_reference_brackets'
|
237
|
+
require_relative 'rubocop/cop/layout/space_inside_string_interpolation'
|
238
|
+
require_relative 'rubocop/cop/layout/trailing_empty_lines'
|
239
|
+
require_relative 'rubocop/cop/layout/trailing_whitespace'
|
240
|
+
|
241
|
+
require_relative 'rubocop/cop/lint/ambiguous_block_association'
|
242
|
+
require_relative 'rubocop/cop/lint/ambiguous_operator'
|
243
|
+
require_relative 'rubocop/cop/lint/ambiguous_regexp_literal'
|
244
|
+
require_relative 'rubocop/cop/lint/assignment_in_condition'
|
245
|
+
require_relative 'rubocop/cop/lint/big_decimal_new'
|
246
|
+
require_relative 'rubocop/cop/lint/boolean_symbol'
|
247
|
+
require_relative 'rubocop/cop/lint/circular_argument_reference'
|
248
|
+
require_relative 'rubocop/cop/lint/constant_resolution'
|
249
|
+
require_relative 'rubocop/cop/lint/debugger'
|
250
|
+
require_relative 'rubocop/cop/lint/deprecated_class_methods'
|
251
|
+
require_relative 'rubocop/cop/lint/deprecated_open_ssl_constant'
|
252
|
+
require_relative 'rubocop/cop/lint/disjunctive_assignment_in_constructor'
|
253
|
+
require_relative 'rubocop/cop/lint/duplicate_case_condition'
|
254
|
+
require_relative 'rubocop/cop/lint/duplicate_hash_key'
|
255
|
+
require_relative 'rubocop/cop/lint/duplicate_methods'
|
256
|
+
require_relative 'rubocop/cop/lint/each_with_object_argument'
|
257
|
+
require_relative 'rubocop/cop/lint/else_layout'
|
258
|
+
require_relative 'rubocop/cop/lint/empty_ensure'
|
259
|
+
require_relative 'rubocop/cop/lint/empty_expression'
|
260
|
+
require_relative 'rubocop/cop/lint/empty_interpolation'
|
261
|
+
require_relative 'rubocop/cop/lint/empty_when'
|
262
|
+
require_relative 'rubocop/cop/lint/ensure_return'
|
263
|
+
require_relative 'rubocop/cop/lint/erb_new_arguments'
|
264
|
+
require_relative 'rubocop/cop/lint/flip_flop'
|
265
|
+
require_relative 'rubocop/cop/lint/float_out_of_range'
|
266
|
+
require_relative 'rubocop/cop/lint/format_parameter_mismatch'
|
267
|
+
require_relative 'rubocop/cop/lint/heredoc_method_call_position'
|
268
|
+
require_relative 'rubocop/cop/lint/implicit_string_concatenation'
|
269
|
+
require_relative 'rubocop/cop/lint/inherit_exception'
|
270
|
+
require_relative 'rubocop/cop/lint/ineffective_access_modifier'
|
271
|
+
require_relative 'rubocop/cop/lint/interpolation_check'
|
272
|
+
require_relative 'rubocop/cop/lint/literal_as_condition'
|
273
|
+
require_relative 'rubocop/cop/lint/literal_in_interpolation'
|
274
|
+
require_relative 'rubocop/cop/lint/loop'
|
275
|
+
require_relative 'rubocop/cop/lint/missing_cop_enable_directive'
|
276
|
+
require_relative 'rubocop/cop/lint/mixed_regexp_capture_types'
|
277
|
+
require_relative 'rubocop/cop/lint/multiple_comparison'
|
278
|
+
require_relative 'rubocop/cop/lint/nested_method_definition'
|
279
|
+
require_relative 'rubocop/cop/lint/nested_percent_literal'
|
280
|
+
require_relative 'rubocop/cop/lint/next_without_accumulator'
|
281
|
+
require_relative 'rubocop/cop/lint/non_deterministic_require_order'
|
282
|
+
require_relative 'rubocop/cop/lint/non_local_exit_from_iterator'
|
283
|
+
require_relative 'rubocop/cop/lint/number_conversion'
|
284
|
+
require_relative 'rubocop/cop/lint/ordered_magic_comments'
|
285
|
+
require_relative 'rubocop/cop/lint/parentheses_as_grouped_expression'
|
286
|
+
require_relative 'rubocop/cop/lint/percent_string_array'
|
287
|
+
require_relative 'rubocop/cop/lint/percent_symbol_array'
|
288
|
+
require_relative 'rubocop/cop/lint/raise_exception'
|
289
|
+
require_relative 'rubocop/cop/lint/rand_one'
|
290
|
+
require_relative 'rubocop/cop/lint/redundant_cop_disable_directive'
|
291
|
+
require_relative 'rubocop/cop/lint/redundant_cop_enable_directive'
|
292
|
+
require_relative 'rubocop/cop/lint/redundant_require_statement'
|
293
|
+
require_relative 'rubocop/cop/lint/redundant_splat_expansion'
|
294
|
+
require_relative 'rubocop/cop/lint/redundant_string_coercion'
|
295
|
+
require_relative 'rubocop/cop/lint/redundant_with_index'
|
296
|
+
require_relative 'rubocop/cop/lint/redundant_with_object'
|
297
|
+
require_relative 'rubocop/cop/lint/regexp_as_condition'
|
298
|
+
require_relative 'rubocop/cop/lint/require_parentheses'
|
299
|
+
require_relative 'rubocop/cop/lint/rescue_exception'
|
300
|
+
require_relative 'rubocop/cop/lint/rescue_type'
|
301
|
+
require_relative 'rubocop/cop/lint/return_in_void_context'
|
302
|
+
require_relative 'rubocop/cop/lint/safe_navigation_consistency'
|
303
|
+
require_relative 'rubocop/cop/lint/safe_navigation_chain'
|
304
|
+
require_relative 'rubocop/cop/lint/safe_navigation_with_empty'
|
305
|
+
require_relative 'rubocop/cop/lint/script_permission'
|
306
|
+
require_relative 'rubocop/cop/lint/send_with_mixin_argument'
|
307
|
+
require_relative 'rubocop/cop/lint/shadowed_argument'
|
308
|
+
require_relative 'rubocop/cop/lint/shadowed_exception'
|
309
|
+
require_relative 'rubocop/cop/lint/shadowing_outer_local_variable'
|
310
|
+
require_relative 'rubocop/cop/lint/struct_new_override'
|
311
|
+
require_relative 'rubocop/cop/lint/suppressed_exception'
|
312
|
+
require_relative 'rubocop/cop/lint/syntax'
|
313
|
+
require_relative 'rubocop/cop/lint/to_json'
|
314
|
+
require_relative 'rubocop/cop/lint/underscore_prefixed_variable_name'
|
315
|
+
require_relative 'rubocop/cop/lint/unified_integer'
|
316
|
+
require_relative 'rubocop/cop/lint/unreachable_code'
|
317
|
+
require_relative 'rubocop/cop/lint/unused_block_argument'
|
318
|
+
require_relative 'rubocop/cop/lint/unused_method_argument'
|
319
|
+
require_relative 'rubocop/cop/lint/uri_escape_unescape'
|
320
|
+
require_relative 'rubocop/cop/lint/uri_regexp'
|
321
|
+
require_relative 'rubocop/cop/lint/useless_access_modifier'
|
322
|
+
require_relative 'rubocop/cop/lint/useless_assignment'
|
323
|
+
require_relative 'rubocop/cop/lint/useless_comparison'
|
324
|
+
require_relative 'rubocop/cop/lint/useless_else_without_rescue'
|
325
|
+
require_relative 'rubocop/cop/lint/useless_setter_call'
|
326
|
+
require_relative 'rubocop/cop/lint/void'
|
327
|
+
|
328
|
+
require_relative 'rubocop/cop/metrics/utils/iterating_block'
|
329
|
+
require_relative 'rubocop/cop/metrics/cyclomatic_complexity'
|
330
|
+
# relies on cyclomatic_complexity
|
331
|
+
require_relative 'rubocop/cop/metrics/utils/abc_size_calculator'
|
332
|
+
require_relative 'rubocop/cop/metrics/utils/code_length_calculator'
|
333
|
+
require_relative 'rubocop/cop/metrics/abc_size'
|
334
|
+
require_relative 'rubocop/cop/metrics/block_length'
|
335
|
+
require_relative 'rubocop/cop/metrics/block_nesting'
|
336
|
+
require_relative 'rubocop/cop/metrics/class_length'
|
337
|
+
require_relative 'rubocop/cop/metrics/method_length'
|
338
|
+
require_relative 'rubocop/cop/metrics/module_length'
|
339
|
+
require_relative 'rubocop/cop/metrics/parameter_lists'
|
340
|
+
require_relative 'rubocop/cop/metrics/perceived_complexity'
|
341
|
+
|
342
|
+
require_relative 'rubocop/cop/naming/accessor_method_name'
|
343
|
+
require_relative 'rubocop/cop/naming/ascii_identifiers'
|
344
|
+
require_relative 'rubocop/cop/naming/block_parameter_name'
|
345
|
+
require_relative 'rubocop/cop/naming/class_and_module_camel_case'
|
346
|
+
require_relative 'rubocop/cop/naming/constant_name'
|
347
|
+
require_relative 'rubocop/cop/naming/file_name'
|
348
|
+
require_relative 'rubocop/cop/naming/heredoc_delimiter_case'
|
349
|
+
require_relative 'rubocop/cop/naming/heredoc_delimiter_naming'
|
350
|
+
require_relative 'rubocop/cop/naming/memoized_instance_variable_name'
|
351
|
+
require_relative 'rubocop/cop/naming/method_name'
|
352
|
+
require_relative 'rubocop/cop/naming/method_parameter_name'
|
353
|
+
require_relative 'rubocop/cop/naming/binary_operator_parameter_name'
|
354
|
+
require_relative 'rubocop/cop/naming/predicate_name'
|
355
|
+
require_relative 'rubocop/cop/naming/rescued_exceptions_variable_name'
|
356
|
+
require_relative 'rubocop/cop/naming/variable_name'
|
357
|
+
require_relative 'rubocop/cop/naming/variable_number'
|
358
|
+
|
359
|
+
require_relative 'rubocop/cop/style/access_modifier_declarations'
|
360
|
+
require_relative 'rubocop/cop/style/accessor_grouping'
|
361
|
+
require_relative 'rubocop/cop/style/alias'
|
362
|
+
require_relative 'rubocop/cop/style/and_or'
|
363
|
+
require_relative 'rubocop/cop/style/array_join'
|
364
|
+
require_relative 'rubocop/cop/style/ascii_comments'
|
365
|
+
require_relative 'rubocop/cop/style/attr'
|
366
|
+
require_relative 'rubocop/cop/style/auto_resource_cleanup'
|
367
|
+
require_relative 'rubocop/cop/style/bare_percent_literals'
|
368
|
+
require_relative 'rubocop/cop/style/begin_block'
|
369
|
+
require_relative 'rubocop/cop/style/bisected_attr_accessor'
|
370
|
+
require_relative 'rubocop/cop/style/block_comments'
|
371
|
+
require_relative 'rubocop/cop/style/block_delimiters'
|
372
|
+
require_relative 'rubocop/cop/style/case_equality'
|
373
|
+
require_relative 'rubocop/cop/style/character_literal'
|
374
|
+
require_relative 'rubocop/cop/style/class_and_module_children'
|
375
|
+
require_relative 'rubocop/cop/style/class_check'
|
376
|
+
require_relative 'rubocop/cop/style/class_methods'
|
377
|
+
require_relative 'rubocop/cop/style/class_vars'
|
378
|
+
require_relative 'rubocop/cop/style/collection_methods'
|
379
|
+
require_relative 'rubocop/cop/style/colon_method_call'
|
380
|
+
require_relative 'rubocop/cop/style/colon_method_definition'
|
381
|
+
require_relative 'rubocop/cop/style/command_literal'
|
382
|
+
require_relative 'rubocop/cop/style/comment_annotation'
|
383
|
+
require_relative 'rubocop/cop/style/commented_keyword'
|
384
|
+
require_relative 'rubocop/cop/style/conditional_assignment'
|
385
|
+
require_relative 'rubocop/cop/style/constant_visibility'
|
386
|
+
require_relative 'rubocop/cop/style/copyright'
|
387
|
+
require_relative 'rubocop/cop/style/date_time'
|
388
|
+
require_relative 'rubocop/cop/style/def_with_parentheses'
|
389
|
+
require_relative 'rubocop/cop/style/dir'
|
390
|
+
require_relative 'rubocop/cop/style/disable_cops_within_source_code_directive'
|
391
|
+
require_relative 'rubocop/cop/style/documentation_method'
|
392
|
+
require_relative 'rubocop/cop/style/documentation'
|
393
|
+
require_relative 'rubocop/cop/style/double_cop_disable_directive'
|
394
|
+
require_relative 'rubocop/cop/style/double_negation'
|
395
|
+
require_relative 'rubocop/cop/style/each_for_simple_loop'
|
396
|
+
require_relative 'rubocop/cop/style/each_with_object'
|
397
|
+
require_relative 'rubocop/cop/style/empty_block_parameter'
|
398
|
+
require_relative 'rubocop/cop/style/empty_case_condition'
|
399
|
+
require_relative 'rubocop/cop/style/empty_else'
|
400
|
+
require_relative 'rubocop/cop/style/empty_lambda_parameter'
|
401
|
+
require_relative 'rubocop/cop/style/empty_literal'
|
402
|
+
require_relative 'rubocop/cop/style/empty_method'
|
403
|
+
require_relative 'rubocop/cop/style/encoding'
|
404
|
+
require_relative 'rubocop/cop/style/end_block'
|
405
|
+
require_relative 'rubocop/cop/style/eval_with_location'
|
406
|
+
require_relative 'rubocop/cop/style/even_odd'
|
407
|
+
require_relative 'rubocop/cop/style/expand_path_arguments'
|
408
|
+
require_relative 'rubocop/cop/style/exponential_notation'
|
409
|
+
require_relative 'rubocop/cop/style/float_division'
|
410
|
+
require_relative 'rubocop/cop/style/for'
|
411
|
+
require_relative 'rubocop/cop/style/format_string'
|
412
|
+
require_relative 'rubocop/cop/style/format_string_token'
|
413
|
+
require_relative 'rubocop/cop/style/frozen_string_literal_comment'
|
414
|
+
require_relative 'rubocop/cop/style/global_vars'
|
415
|
+
require_relative 'rubocop/cop/style/guard_clause'
|
416
|
+
require_relative 'rubocop/cop/style/hash_each_methods'
|
417
|
+
require_relative 'rubocop/cop/style/hash_syntax'
|
418
|
+
require_relative 'rubocop/cop/style/hash_transform_keys'
|
419
|
+
require_relative 'rubocop/cop/style/hash_transform_values'
|
420
|
+
require_relative 'rubocop/cop/style/identical_conditional_branches'
|
421
|
+
require_relative 'rubocop/cop/style/if_inside_else'
|
422
|
+
require_relative 'rubocop/cop/style/if_unless_modifier'
|
423
|
+
require_relative 'rubocop/cop/style/if_unless_modifier_of_if_unless'
|
424
|
+
require_relative 'rubocop/cop/style/if_with_semicolon'
|
425
|
+
require_relative 'rubocop/cop/style/implicit_runtime_error'
|
426
|
+
require_relative 'rubocop/cop/style/infinite_loop'
|
427
|
+
require_relative 'rubocop/cop/style/inverse_methods'
|
428
|
+
require_relative 'rubocop/cop/style/inline_comment'
|
429
|
+
require_relative 'rubocop/cop/style/ip_addresses'
|
430
|
+
require_relative 'rubocop/cop/style/lambda'
|
431
|
+
require_relative 'rubocop/cop/style/lambda_call'
|
432
|
+
require_relative 'rubocop/cop/style/line_end_concatenation'
|
433
|
+
require_relative 'rubocop/cop/style/method_call_without_args_parentheses'
|
434
|
+
require_relative 'rubocop/cop/style/method_call_with_args_parentheses'
|
435
|
+
require_relative 'rubocop/cop/style/redundant_assignment'
|
436
|
+
require_relative 'rubocop/cop/style/redundant_fetch_block'
|
437
|
+
require_relative 'rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses'
|
438
|
+
require_relative 'rubocop/cop/style/method_call_with_args_parentheses/require_parentheses'
|
439
|
+
require_relative 'rubocop/cop/style/method_called_on_do_end_block'
|
440
|
+
require_relative 'rubocop/cop/style/method_def_parentheses'
|
441
|
+
require_relative 'rubocop/cop/style/method_missing_super'
|
442
|
+
require_relative 'rubocop/cop/style/min_max'
|
443
|
+
require_relative 'rubocop/cop/style/missing_else'
|
444
|
+
require_relative 'rubocop/cop/style/missing_respond_to_missing'
|
445
|
+
require_relative 'rubocop/cop/style/mixin_grouping'
|
446
|
+
require_relative 'rubocop/cop/style/mixin_usage'
|
447
|
+
require_relative 'rubocop/cop/style/module_function'
|
448
|
+
require_relative 'rubocop/cop/style/multiline_block_chain'
|
449
|
+
require_relative 'rubocop/cop/style/multiline_if_then'
|
450
|
+
require_relative 'rubocop/cop/style/multiline_if_modifier'
|
451
|
+
require_relative 'rubocop/cop/style/multiline_method_signature'
|
452
|
+
require_relative 'rubocop/cop/style/multiline_memoization'
|
453
|
+
require_relative 'rubocop/cop/style/multiline_ternary_operator'
|
454
|
+
require_relative 'rubocop/cop/style/multiline_when_then'
|
455
|
+
require_relative 'rubocop/cop/style/multiple_comparison'
|
456
|
+
require_relative 'rubocop/cop/style/mutable_constant'
|
457
|
+
require_relative 'rubocop/cop/style/negated_if'
|
458
|
+
require_relative 'rubocop/cop/style/negated_unless'
|
459
|
+
require_relative 'rubocop/cop/style/negated_while'
|
460
|
+
require_relative 'rubocop/cop/style/nested_modifier'
|
461
|
+
require_relative 'rubocop/cop/style/nested_parenthesized_calls'
|
462
|
+
require_relative 'rubocop/cop/style/nested_ternary_operator'
|
463
|
+
require_relative 'rubocop/cop/style/next'
|
464
|
+
require_relative 'rubocop/cop/style/nil_comparison'
|
465
|
+
require_relative 'rubocop/cop/style/non_nil_check'
|
466
|
+
require_relative 'rubocop/cop/style/not'
|
467
|
+
require_relative 'rubocop/cop/style/numeric_literals'
|
468
|
+
require_relative 'rubocop/cop/style/numeric_literal_prefix'
|
469
|
+
require_relative 'rubocop/cop/style/numeric_predicate'
|
470
|
+
require_relative 'rubocop/cop/style/one_line_conditional'
|
471
|
+
require_relative 'rubocop/cop/style/or_assignment'
|
472
|
+
require_relative 'rubocop/cop/style/option_hash'
|
473
|
+
require_relative 'rubocop/cop/style/optional_arguments'
|
474
|
+
require_relative 'rubocop/cop/style/parallel_assignment'
|
475
|
+
require_relative 'rubocop/cop/style/parentheses_around_condition'
|
476
|
+
require_relative 'rubocop/cop/style/percent_literal_delimiters'
|
477
|
+
require_relative 'rubocop/cop/style/percent_q_literals'
|
478
|
+
require_relative 'rubocop/cop/style/perl_backrefs'
|
479
|
+
require_relative 'rubocop/cop/style/preferred_hash_methods'
|
480
|
+
require_relative 'rubocop/cop/style/proc'
|
481
|
+
require_relative 'rubocop/cop/style/raise_args'
|
482
|
+
require_relative 'rubocop/cop/style/random_with_offset'
|
483
|
+
require_relative 'rubocop/cop/style/redundant_begin'
|
484
|
+
require_relative 'rubocop/cop/style/redundant_capital_w'
|
485
|
+
require_relative 'rubocop/cop/style/redundant_condition'
|
486
|
+
require_relative 'rubocop/cop/style/redundant_conditional'
|
487
|
+
require_relative 'rubocop/cop/style/redundant_exception'
|
488
|
+
require_relative 'rubocop/cop/style/redundant_freeze'
|
489
|
+
require_relative 'rubocop/cop/style/redundant_interpolation'
|
490
|
+
require_relative 'rubocop/cop/style/redundant_parentheses'
|
491
|
+
require_relative 'rubocop/cop/style/redundant_percent_q'
|
492
|
+
require_relative 'rubocop/cop/style/redundant_regexp_character_class'
|
493
|
+
require_relative 'rubocop/cop/style/redundant_regexp_escape'
|
494
|
+
require_relative 'rubocop/cop/style/redundant_return'
|
495
|
+
require_relative 'rubocop/cop/style/redundant_self'
|
496
|
+
require_relative 'rubocop/cop/style/redundant_sort'
|
497
|
+
require_relative 'rubocop/cop/style/redundant_sort_by'
|
498
|
+
require_relative 'rubocop/cop/style/regexp_literal'
|
499
|
+
require_relative 'rubocop/cop/style/rescue_modifier'
|
500
|
+
require_relative 'rubocop/cop/style/rescue_standard_error'
|
501
|
+
require_relative 'rubocop/cop/style/return_nil'
|
502
|
+
require_relative 'rubocop/cop/style/safe_navigation'
|
503
|
+
require_relative 'rubocop/cop/style/sample'
|
504
|
+
require_relative 'rubocop/cop/style/self_assignment'
|
505
|
+
require_relative 'rubocop/cop/style/semicolon'
|
506
|
+
require_relative 'rubocop/cop/style/send'
|
507
|
+
require_relative 'rubocop/cop/style/signal_exception'
|
508
|
+
require_relative 'rubocop/cop/style/single_line_block_params'
|
509
|
+
require_relative 'rubocop/cop/style/single_line_methods'
|
510
|
+
require_relative 'rubocop/cop/style/slicing_with_range'
|
511
|
+
require_relative 'rubocop/cop/style/special_global_vars'
|
512
|
+
require_relative 'rubocop/cop/style/stabby_lambda_parentheses'
|
513
|
+
require_relative 'rubocop/cop/style/stderr_puts'
|
514
|
+
require_relative 'rubocop/cop/style/string_hash_keys'
|
515
|
+
require_relative 'rubocop/cop/style/string_literals'
|
516
|
+
require_relative 'rubocop/cop/style/string_literals_in_interpolation'
|
517
|
+
require_relative 'rubocop/cop/style/string_methods'
|
518
|
+
require_relative 'rubocop/cop/style/strip'
|
519
|
+
require_relative 'rubocop/cop/style/struct_inheritance'
|
520
|
+
require_relative 'rubocop/cop/style/symbol_array'
|
521
|
+
require_relative 'rubocop/cop/style/symbol_literal'
|
522
|
+
require_relative 'rubocop/cop/style/symbol_proc'
|
523
|
+
require_relative 'rubocop/cop/style/ternary_parentheses'
|
524
|
+
require_relative 'rubocop/cop/style/trailing_body_on_class'
|
525
|
+
require_relative 'rubocop/cop/style/trailing_body_on_method_definition'
|
526
|
+
require_relative 'rubocop/cop/style/trailing_body_on_module'
|
527
|
+
require_relative 'rubocop/cop/style/trailing_comma_in_arguments'
|
528
|
+
require_relative 'rubocop/cop/style/trailing_comma_in_array_literal'
|
529
|
+
require_relative 'rubocop/cop/style/trailing_comma_in_block_args'
|
530
|
+
require_relative 'rubocop/cop/style/trailing_comma_in_hash_literal'
|
531
|
+
require_relative 'rubocop/cop/style/trailing_method_end_statement'
|
532
|
+
require_relative 'rubocop/cop/style/trailing_underscore_variable'
|
533
|
+
require_relative 'rubocop/cop/style/trivial_accessors'
|
534
|
+
require_relative 'rubocop/cop/style/unless_else'
|
535
|
+
require_relative 'rubocop/cop/style/unpack_first'
|
536
|
+
require_relative 'rubocop/cop/style/variable_interpolation'
|
537
|
+
require_relative 'rubocop/cop/style/when_then'
|
538
|
+
require_relative 'rubocop/cop/style/while_until_do'
|
539
|
+
require_relative 'rubocop/cop/style/while_until_modifier'
|
540
|
+
require_relative 'rubocop/cop/style/word_array'
|
541
|
+
require_relative 'rubocop/cop/style/yoda_condition'
|
542
|
+
require_relative 'rubocop/cop/style/zero_length_predicate'
|
543
|
+
|
544
|
+
require_relative 'rubocop/cop/security/eval'
|
545
|
+
require_relative 'rubocop/cop/security/json_load'
|
546
|
+
require_relative 'rubocop/cop/security/marshal_load'
|
547
|
+
require_relative 'rubocop/cop/security/open'
|
548
|
+
require_relative 'rubocop/cop/security/yaml_load'
|
549
|
+
|
550
|
+
require_relative 'rubocop/cop/team'
|
551
|
+
|
552
|
+
require_relative 'rubocop/formatter/base_formatter'
|
553
|
+
require_relative 'rubocop/formatter/simple_text_formatter'
|
554
|
+
# relies on simple text
|
555
|
+
require_relative 'rubocop/formatter/clang_style_formatter'
|
556
|
+
require_relative 'rubocop/formatter/disabled_config_formatter'
|
557
|
+
require_relative 'rubocop/formatter/emacs_style_formatter'
|
558
|
+
require_relative 'rubocop/formatter/file_list_formatter'
|
559
|
+
require_relative 'rubocop/formatter/fuubar_style_formatter'
|
560
|
+
require_relative 'rubocop/formatter/html_formatter'
|
561
|
+
require_relative 'rubocop/formatter/json_formatter'
|
562
|
+
require_relative 'rubocop/formatter/junit_formatter'
|
563
|
+
require_relative 'rubocop/formatter/offense_count_formatter'
|
564
|
+
require_relative 'rubocop/formatter/progress_formatter'
|
565
|
+
require_relative 'rubocop/formatter/quiet_formatter'
|
566
|
+
require_relative 'rubocop/formatter/tap_formatter'
|
567
|
+
require_relative 'rubocop/formatter/worst_offenders_formatter'
|
568
|
+
require_relative 'rubocop/formatter/pacman_formatter'
|
569
|
+
# relies on progress formatter
|
570
|
+
require_relative 'rubocop/formatter/auto_gen_config_formatter'
|
571
|
+
|
572
|
+
require_relative 'rubocop/formatter/formatter_set'
|
573
|
+
|
574
|
+
require_relative 'rubocop/cached_data'
|
575
|
+
require_relative 'rubocop/config'
|
576
|
+
require_relative 'rubocop/config_loader_resolver'
|
577
|
+
require_relative 'rubocop/config_loader'
|
578
|
+
require_relative 'rubocop/config_obsoletion'
|
579
|
+
require_relative 'rubocop/config_store'
|
580
|
+
require_relative 'rubocop/config_validator'
|
581
|
+
require_relative 'rubocop/target_finder'
|
582
|
+
require_relative 'rubocop/comment_config'
|
583
|
+
require_relative 'rubocop/magic_comment'
|
584
|
+
require_relative 'rubocop/result_cache'
|
585
|
+
require_relative 'rubocop/runner'
|
586
|
+
require_relative 'rubocop/cli'
|
587
|
+
require_relative 'rubocop/cli/command'
|
588
|
+
require_relative 'rubocop/cli/environment'
|
589
|
+
require_relative 'rubocop/cli/command/base'
|
590
|
+
require_relative 'rubocop/cli/command/auto_genenerate_config'
|
591
|
+
require_relative 'rubocop/cli/command/execute_runner'
|
592
|
+
require_relative 'rubocop/cli/command/init_dotfile'
|
593
|
+
require_relative 'rubocop/cli/command/show_cops'
|
594
|
+
require_relative 'rubocop/cli/command/version'
|
595
|
+
require_relative 'rubocop/options'
|
596
|
+
require_relative 'rubocop/remote_config'
|
597
|
+
require_relative 'rubocop/target_ruby'
|
598
|
+
require_relative 'rubocop/yaml_duplication_checker'
|