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