rubocop 0.49.1 → 0.52.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +6 -9
- data/bin/rubocop +1 -1
- data/config/default.yml +264 -118
- data/config/disabled.yml +13 -9
- data/config/enabled.yml +1156 -918
- data/lib/rubocop.rb +555 -489
- data/lib/rubocop/ast/builder.rb +6 -1
- data/lib/rubocop/ast/node.rb +68 -52
- data/lib/rubocop/ast/node/args_node.rb +15 -10
- data/lib/rubocop/ast/node/array_node.rb +10 -1
- data/lib/rubocop/ast/node/block_node.rb +9 -0
- data/lib/rubocop/ast/node/def_node.rb +71 -0
- data/lib/rubocop/ast/node/for_node.rb +8 -0
- data/lib/rubocop/ast/node/if_node.rb +10 -2
- data/lib/rubocop/ast/node/mixin/basic_literal_node.rb +16 -0
- data/lib/rubocop/ast/node/mixin/collection_node.rb +15 -0
- data/lib/rubocop/ast/node/mixin/method_dispatch_node.rb +174 -0
- data/lib/rubocop/ast/node/mixin/method_identifier_predicates.rb +89 -0
- data/lib/rubocop/ast/node/mixin/parameterized_node.rb +18 -31
- data/lib/rubocop/ast/node/regexp_node.rb +35 -0
- data/lib/rubocop/ast/node/send_node.rb +21 -150
- data/lib/rubocop/ast/node/str_node.rb +14 -0
- data/lib/rubocop/ast/node/super_node.rb +3 -24
- data/lib/rubocop/ast/node/symbol_node.rb +20 -0
- data/lib/rubocop/ast/node/yield_node.rb +21 -0
- data/lib/rubocop/ast/traversal.rb +7 -7
- data/lib/rubocop/cached_data.rb +1 -6
- data/lib/rubocop/cli.rb +59 -13
- data/lib/rubocop/comment_config.rb +2 -5
- data/lib/rubocop/config.rb +136 -29
- data/lib/rubocop/config_loader.rb +61 -104
- data/lib/rubocop/config_loader_resolver.rb +102 -4
- data/lib/rubocop/cop/autocorrect_logic.rb +1 -1
- data/lib/rubocop/cop/bundler/duplicated_gem.rb +13 -11
- data/lib/rubocop/cop/bundler/insecure_protocol_source.rb +67 -0
- data/lib/rubocop/cop/bundler/ordered_gems.rb +7 -58
- data/lib/rubocop/cop/commissioner.rb +6 -3
- data/lib/rubocop/cop/cop.rb +11 -6
- data/lib/rubocop/cop/gemspec/duplicated_assignment.rb +102 -0
- data/lib/rubocop/cop/gemspec/ordered_dependencies.rb +97 -0
- data/lib/rubocop/cop/gemspec/required_ruby_version.rb +87 -0
- data/lib/rubocop/cop/generator.rb +122 -25
- data/lib/rubocop/cop/internal_affairs.rb +6 -2
- data/lib/rubocop/cop/internal_affairs/node_destructuring.rb +46 -0
- data/lib/rubocop/cop/internal_affairs/node_type_predicate.rb +16 -5
- data/lib/rubocop/cop/internal_affairs/offense_location_keyword.rb +54 -0
- data/lib/rubocop/cop/internal_affairs/redundant_location_argument.rb +59 -0
- data/lib/rubocop/cop/internal_affairs/redundant_message_argument.rb +71 -0
- data/lib/rubocop/cop/internal_affairs/useless_message_assertion.rb +3 -3
- data/lib/rubocop/cop/layout/access_modifier_indentation.rb +6 -10
- data/lib/rubocop/cop/layout/align_array.rb +2 -2
- data/lib/rubocop/cop/layout/align_hash.rb +18 -18
- data/lib/rubocop/cop/layout/align_parameters.rb +11 -23
- data/lib/rubocop/cop/layout/block_end_newline.rb +20 -6
- data/lib/rubocop/cop/layout/case_indentation.rb +15 -18
- data/lib/rubocop/cop/layout/class_structure.rb +306 -0
- data/lib/rubocop/cop/layout/closing_parenthesis_indentation.rb +7 -6
- data/lib/rubocop/cop/layout/comment_indentation.rb +42 -3
- data/lib/rubocop/cop/layout/dot_position.rb +31 -13
- data/lib/rubocop/cop/layout/else_alignment.rb +37 -17
- data/lib/rubocop/cop/layout/empty_line_after_magic_comment.rb +1 -1
- data/lib/rubocop/cop/layout/empty_line_between_defs.rb +22 -18
- data/lib/rubocop/cop/layout/empty_lines.rb +16 -2
- data/lib/rubocop/cop/layout/empty_lines_around_access_modifier.rb +23 -6
- data/lib/rubocop/cop/layout/empty_lines_around_arguments.rb +89 -0
- data/lib/rubocop/cop/layout/empty_lines_around_begin_body.rb +2 -2
- data/lib/rubocop/cop/layout/empty_lines_around_block_body.rb +4 -8
- data/lib/rubocop/cop/layout/empty_lines_around_class_body.rb +30 -5
- data/lib/rubocop/cop/layout/empty_lines_around_exception_handling_keywords.rb +10 -6
- data/lib/rubocop/cop/layout/empty_lines_around_method_body.rb +5 -5
- data/lib/rubocop/cop/layout/empty_lines_around_module_body.rb +22 -7
- data/lib/rubocop/cop/layout/end_of_line.rb +2 -2
- data/lib/rubocop/cop/layout/extra_spacing.rb +23 -26
- data/lib/rubocop/cop/layout/first_method_parameter_line_break.rb +3 -3
- data/lib/rubocop/cop/layout/first_parameter_indentation.rb +9 -3
- data/lib/rubocop/cop/layout/indent_array.rb +68 -21
- data/lib/rubocop/cop/layout/indent_hash.rb +71 -26
- data/lib/rubocop/cop/layout/indent_heredoc.rb +70 -35
- data/lib/rubocop/cop/layout/indentation_consistency.rb +1 -2
- data/lib/rubocop/cop/layout/indentation_width.rb +40 -27
- data/lib/rubocop/cop/layout/initial_indentation.rb +10 -7
- data/lib/rubocop/cop/layout/leading_comment_space.rb +32 -17
- data/lib/rubocop/cop/layout/multiline_array_brace_layout.rb +47 -14
- data/lib/rubocop/cop/layout/multiline_assignment_layout.rb +12 -11
- data/lib/rubocop/cop/layout/multiline_block_layout.rb +19 -16
- data/lib/rubocop/cop/layout/multiline_hash_brace_layout.rb +46 -13
- data/lib/rubocop/cop/layout/multiline_method_call_indentation.rb +29 -27
- data/lib/rubocop/cop/layout/multiline_method_definition_brace_layout.rb +7 -3
- data/lib/rubocop/cop/layout/multiline_operation_indentation.rb +6 -0
- data/lib/rubocop/cop/layout/rescue_ensure_alignment.rb +12 -4
- data/lib/rubocop/cop/layout/space_after_colon.rb +13 -6
- data/lib/rubocop/cop/layout/space_after_comma.rb +11 -1
- data/lib/rubocop/cop/layout/space_after_method_name.rb +8 -6
- data/lib/rubocop/cop/layout/space_after_not.rb +1 -1
- data/lib/rubocop/cop/layout/space_after_semicolon.rb +8 -1
- data/lib/rubocop/cop/layout/space_around_block_parameters.rb +32 -25
- data/lib/rubocop/cop/layout/space_around_equals_in_parameter_default.rb +28 -17
- data/lib/rubocop/cop/layout/space_around_keyword.rb +22 -16
- data/lib/rubocop/cop/layout/space_around_operators.rb +27 -14
- data/lib/rubocop/cop/layout/space_before_block_braces.rb +61 -12
- data/lib/rubocop/cop/layout/space_before_comma.rb +12 -1
- data/lib/rubocop/cop/layout/space_before_comment.rb +10 -5
- data/lib/rubocop/cop/layout/space_before_first_arg.rb +5 -4
- data/lib/rubocop/cop/layout/space_before_semicolon.rb +8 -1
- data/lib/rubocop/cop/layout/space_in_lambda_literal.rb +12 -14
- data/lib/rubocop/cop/layout/space_inside_array_literal_brackets.rb +235 -0
- data/lib/rubocop/cop/layout/space_inside_array_percent_literal.rb +4 -4
- data/lib/rubocop/cop/layout/space_inside_block_braces.rb +89 -18
- data/lib/rubocop/cop/layout/space_inside_hash_literal_braces.rb +62 -36
- data/lib/rubocop/cop/layout/space_inside_parens.rb +40 -3
- data/lib/rubocop/cop/layout/space_inside_percent_literal_delimiters.rb +1 -1
- data/lib/rubocop/cop/layout/space_inside_range_literal.rb +15 -15
- data/lib/rubocop/cop/layout/space_inside_reference_brackets.rb +81 -0
- data/lib/rubocop/cop/layout/space_inside_string_interpolation.rb +32 -17
- data/lib/rubocop/cop/layout/tab.rb +7 -4
- data/lib/rubocop/cop/layout/trailing_blank_lines.rb +11 -9
- data/lib/rubocop/cop/layout/trailing_whitespace.rb +1 -1
- data/lib/rubocop/cop/lint/ambiguous_block_association.rb +12 -19
- data/lib/rubocop/cop/lint/assignment_in_condition.rb +16 -2
- data/lib/rubocop/cop/lint/block_alignment.rb +42 -30
- data/lib/rubocop/cop/lint/boolean_symbol.rb +38 -0
- data/lib/rubocop/cop/lint/circular_argument_reference.rb +3 -14
- data/lib/rubocop/cop/lint/condition_position.rb +5 -1
- data/lib/rubocop/cop/lint/debugger.rb +18 -11
- data/lib/rubocop/cop/lint/def_end_alignment.rb +9 -14
- data/lib/rubocop/cop/lint/deprecated_class_methods.rb +4 -4
- data/lib/rubocop/cop/lint/duplicate_case_condition.rb +3 -3
- data/lib/rubocop/cop/lint/duplicate_methods.rb +75 -5
- data/lib/rubocop/cop/lint/duplicated_key.rb +1 -1
- data/lib/rubocop/cop/lint/each_with_object_argument.rb +1 -1
- data/lib/rubocop/cop/lint/else_layout.rb +3 -3
- data/lib/rubocop/cop/lint/empty_ensure.rb +1 -1
- data/lib/rubocop/cop/lint/empty_expression.rb +1 -1
- data/lib/rubocop/cop/lint/empty_interpolation.rb +1 -1
- data/lib/rubocop/cop/lint/empty_when.rb +1 -1
- data/lib/rubocop/cop/lint/end_alignment.rb +13 -14
- data/lib/rubocop/cop/lint/end_in_method.rb +1 -1
- data/lib/rubocop/cop/lint/ensure_return.rb +1 -1
- data/lib/rubocop/cop/lint/float_out_of_range.rb +5 -5
- data/lib/rubocop/cop/lint/format_parameter_mismatch.rb +36 -41
- data/lib/rubocop/cop/lint/handle_exceptions.rb +1 -1
- data/lib/rubocop/cop/lint/implicit_string_concatenation.rb +1 -1
- data/lib/rubocop/cop/lint/ineffective_access_modifier.rb +25 -20
- data/lib/rubocop/cop/lint/inherit_exception.rb +16 -19
- data/lib/rubocop/cop/lint/interpolation_check.rb +37 -0
- data/lib/rubocop/cop/lint/{literal_in_condition.rb → literal_as_condition.rb} +21 -7
- data/lib/rubocop/cop/lint/literal_in_interpolation.rb +1 -1
- data/lib/rubocop/cop/lint/loop.rb +1 -1
- data/lib/rubocop/cop/lint/missing_cop_enable_directive.rb +81 -0
- data/lib/rubocop/cop/lint/multiple_compare.rb +1 -1
- data/lib/rubocop/cop/lint/nested_method_definition.rb +6 -8
- data/lib/rubocop/cop/lint/nested_percent_literal.rb +58 -0
- data/lib/rubocop/cop/lint/next_without_accumulator.rb +1 -1
- data/lib/rubocop/cop/lint/non_local_exit_from_iterator.rb +4 -4
- data/lib/rubocop/cop/lint/parentheses_as_grouped_expression.rb +4 -3
- data/lib/rubocop/cop/lint/percent_string_array.rb +13 -22
- data/lib/rubocop/cop/lint/percent_symbol_array.rb +12 -12
- data/lib/rubocop/cop/lint/rand_one.rb +8 -2
- data/lib/rubocop/cop/lint/redundant_with_index.rb +80 -0
- data/lib/rubocop/cop/lint/redundant_with_object.rb +81 -0
- data/lib/rubocop/cop/lint/regexp_as_condition.rb +29 -0
- data/lib/rubocop/cop/lint/require_parentheses.rb +5 -3
- data/lib/rubocop/cop/lint/rescue_exception.rb +1 -1
- data/lib/rubocop/cop/lint/rescue_type.rb +18 -9
- data/lib/rubocop/cop/lint/return_in_void_context.rb +74 -0
- data/lib/rubocop/cop/lint/safe_navigation_chain.rb +1 -1
- data/lib/rubocop/cop/lint/script_permission.rb +8 -1
- data/lib/rubocop/cop/lint/shadowed_argument.rb +146 -0
- data/lib/rubocop/cop/lint/shadowed_exception.rb +37 -10
- data/lib/rubocop/cop/lint/shadowing_outer_local_variable.rb +1 -1
- data/lib/rubocop/cop/lint/string_conversion_in_interpolation.rb +7 -7
- data/lib/rubocop/cop/lint/syntax.rb +23 -20
- data/lib/rubocop/cop/lint/underscore_prefixed_variable_name.rb +1 -1
- data/lib/rubocop/cop/lint/unified_integer.rb +5 -4
- data/lib/rubocop/cop/lint/unneeded_disable.rb +41 -16
- data/lib/rubocop/cop/lint/unneeded_require_statement.rb +51 -0
- data/lib/rubocop/cop/lint/unneeded_splat_expansion.rb +45 -19
- data/lib/rubocop/cop/lint/unreachable_code.rb +53 -8
- data/lib/rubocop/cop/lint/unused_method_argument.rb +2 -1
- data/lib/rubocop/cop/lint/uri_escape_unescape.rb +74 -0
- data/lib/rubocop/cop/lint/uri_regexp.rb +73 -0
- data/lib/rubocop/cop/lint/useless_access_modifier.rb +12 -16
- data/lib/rubocop/cop/lint/useless_assignment.rb +1 -1
- data/lib/rubocop/cop/lint/useless_comparison.rb +1 -1
- data/lib/rubocop/cop/lint/useless_setter_call.rb +15 -12
- data/lib/rubocop/cop/lint/void.rb +38 -27
- data/lib/rubocop/cop/message_annotator.rb +4 -2
- data/lib/rubocop/cop/metrics/abc_size.rb +2 -2
- data/lib/rubocop/cop/metrics/block_nesting.rb +1 -1
- data/lib/rubocop/cop/metrics/class_length.rb +3 -1
- data/lib/rubocop/cop/metrics/cyclomatic_complexity.rb +2 -1
- data/lib/rubocop/cop/metrics/line_length.rb +8 -5
- data/lib/rubocop/cop/metrics/method_length.rb +8 -3
- data/lib/rubocop/cop/metrics/module_length.rb +3 -1
- data/lib/rubocop/cop/metrics/parameter_lists.rb +14 -5
- data/lib/rubocop/cop/metrics/perceived_complexity.rb +2 -1
- data/lib/rubocop/cop/mixin/array_hash_indentation.rb +3 -2
- data/lib/rubocop/cop/mixin/autocorrect_alignment.rb +2 -2
- data/lib/rubocop/cop/mixin/code_length.rb +1 -1
- data/lib/rubocop/cop/mixin/configurable_formatting.rb +1 -1
- data/lib/rubocop/cop/mixin/def_node.rb +1 -1
- data/lib/rubocop/cop/mixin/documentation_comment.rb +1 -1
- data/lib/rubocop/cop/mixin/empty_lines_around_body.rb +14 -7
- data/lib/rubocop/cop/mixin/empty_parameter.rb +23 -0
- data/lib/rubocop/cop/mixin/end_keyword_alignment.rb +8 -4
- data/lib/rubocop/cop/mixin/enforce_superclass.rb +3 -3
- data/lib/rubocop/cop/mixin/first_element_line_break.rb +12 -3
- data/lib/rubocop/cop/mixin/heredoc.rb +28 -0
- data/lib/rubocop/cop/mixin/method_complexity.rb +33 -7
- data/lib/rubocop/cop/mixin/multiline_expression_indentation.rb +74 -33
- data/lib/rubocop/cop/mixin/multiline_literal_brace_layout.rb +34 -8
- data/lib/rubocop/cop/mixin/negative_conditional.rb +4 -1
- data/lib/rubocop/cop/mixin/ordered_gem_node.rb +67 -0
- data/lib/rubocop/cop/mixin/parentheses.rb +12 -0
- data/lib/rubocop/cop/mixin/parser_diagnostic.rb +4 -1
- data/lib/rubocop/cop/mixin/percent_array.rb +52 -0
- data/lib/rubocop/cop/mixin/space_after_punctuation.rb +9 -8
- data/lib/rubocop/cop/mixin/space_before_punctuation.rb +11 -10
- data/lib/rubocop/cop/mixin/statement_modifier.rb +7 -17
- data/lib/rubocop/cop/mixin/string_help.rb +1 -1
- data/lib/rubocop/cop/mixin/string_literals_help.rb +1 -1
- data/lib/rubocop/cop/mixin/surrounding_space.rb +95 -8
- data/lib/rubocop/cop/mixin/too_many_lines.rb +2 -2
- data/lib/rubocop/cop/mixin/trailing_comma.rb +25 -17
- data/lib/rubocop/cop/mixin/unused_argument.rb +6 -2
- data/lib/rubocop/cop/naming/accessor_method_name.rb +55 -0
- data/lib/rubocop/cop/{style → naming}/ascii_identifiers.rb +35 -2
- data/lib/rubocop/cop/{style/op_method.rb → naming/binary_operator_parameter_name.rb} +7 -6
- data/lib/rubocop/cop/naming/class_and_module_camel_case.rb +33 -0
- data/lib/rubocop/cop/naming/constant_name.rb +58 -0
- data/lib/rubocop/cop/{style → naming}/file_name.rb +28 -13
- data/lib/rubocop/cop/naming/heredoc_delimiter_case.rb +62 -0
- data/lib/rubocop/cop/naming/heredoc_delimiter_naming.rb +59 -0
- data/lib/rubocop/cop/naming/method_name.rb +40 -0
- data/lib/rubocop/cop/naming/predicate_name.rb +101 -0
- data/lib/rubocop/cop/naming/variable_name.rb +50 -0
- data/lib/rubocop/cop/{style → naming}/variable_number.rb +11 -28
- data/lib/rubocop/cop/offense.rb +6 -1
- data/lib/rubocop/cop/performance/caller.rb +39 -11
- data/lib/rubocop/cop/performance/case_when_splat.rb +3 -7
- data/lib/rubocop/cop/performance/casecmp.rb +9 -8
- data/lib/rubocop/cop/performance/compare_with_block.rb +23 -13
- data/lib/rubocop/cop/performance/count.rb +7 -4
- data/lib/rubocop/cop/performance/detect.rb +9 -6
- data/lib/rubocop/cop/performance/double_start_end_with.rb +12 -20
- data/lib/rubocop/cop/performance/end_with.rb +6 -6
- data/lib/rubocop/cop/performance/fixed_size.rb +1 -1
- data/lib/rubocop/cop/performance/flat_map.rb +5 -2
- data/lib/rubocop/cop/performance/hash_each_methods.rb +85 -40
- data/lib/rubocop/cop/performance/lstrip_rstrip.rb +9 -6
- data/lib/rubocop/cop/performance/range_include.rb +3 -3
- data/lib/rubocop/cop/performance/redundant_block_call.rb +28 -28
- data/lib/rubocop/cop/performance/redundant_match.rb +13 -12
- data/lib/rubocop/cop/performance/redundant_merge.rb +44 -26
- data/lib/rubocop/cop/performance/redundant_sort_by.rb +9 -6
- data/lib/rubocop/cop/performance/regexp_match.rb +19 -10
- data/lib/rubocop/cop/performance/reverse_each.rb +1 -1
- data/lib/rubocop/cop/performance/sample.rb +1 -1
- data/lib/rubocop/cop/performance/size.rb +3 -3
- data/lib/rubocop/cop/performance/start_with.rb +6 -6
- data/lib/rubocop/cop/performance/string_replacement.rb +6 -6
- data/lib/rubocop/cop/performance/times_map.rb +32 -22
- data/lib/rubocop/cop/performance/unfreeze_string.rb +50 -0
- data/lib/rubocop/cop/performance/uri_default_parser.rb +47 -0
- data/lib/rubocop/cop/rails/action_filter.rb +23 -1
- data/lib/rubocop/cop/rails/active_support_aliases.rb +4 -5
- data/lib/rubocop/cop/rails/application_job.rb +5 -3
- data/lib/rubocop/cop/rails/application_record.rb +5 -3
- data/lib/rubocop/cop/rails/blank.rb +20 -17
- data/lib/rubocop/cop/rails/create_table_with_timestamps.rb +82 -0
- data/lib/rubocop/cop/rails/date.rb +7 -6
- data/lib/rubocop/cop/rails/delegate.rb +53 -29
- data/lib/rubocop/cop/rails/delegate_allow_blank.rb +4 -4
- data/lib/rubocop/cop/rails/dynamic_find_by.rb +2 -2
- data/lib/rubocop/cop/rails/enum_uniqueness.rb +4 -4
- data/lib/rubocop/cop/rails/environment_comparison.rb +66 -0
- data/lib/rubocop/cop/rails/exit.rb +8 -1
- data/lib/rubocop/cop/rails/file_path.rb +8 -11
- data/lib/rubocop/cop/rails/find_by.rb +2 -1
- data/lib/rubocop/cop/rails/find_each.rb +1 -1
- data/lib/rubocop/cop/rails/has_and_belongs_to_many.rb +8 -1
- data/lib/rubocop/cop/rails/has_many_or_has_one_dependent.rb +76 -0
- data/lib/rubocop/cop/rails/http_positional_arguments.rb +40 -44
- data/lib/rubocop/cop/rails/inverse_of.rb +96 -0
- data/lib/rubocop/cop/rails/lexically_scoped_action_filter.rb +112 -0
- data/lib/rubocop/cop/rails/not_null_column.rb +6 -6
- data/lib/rubocop/cop/rails/output.rb +11 -2
- data/lib/rubocop/cop/rails/output_safety.rb +16 -21
- data/lib/rubocop/cop/rails/pluralization_grammar.rb +10 -10
- data/lib/rubocop/cop/rails/presence.rb +105 -0
- data/lib/rubocop/cop/rails/present.rb +14 -17
- data/lib/rubocop/cop/rails/read_write_attribute.rb +13 -13
- data/lib/rubocop/cop/rails/redundant_receiver_in_with_options.rb +91 -0
- data/lib/rubocop/cop/rails/relative_date_constant.rb +11 -11
- data/lib/rubocop/cop/rails/request_referer.rb +3 -3
- data/lib/rubocop/cop/rails/reversible_migration.rb +36 -35
- data/lib/rubocop/cop/rails/safe_navigation.rb +7 -8
- data/lib/rubocop/cop/rails/save_bang.rb +19 -17
- data/lib/rubocop/cop/rails/scope_args.rb +2 -2
- data/lib/rubocop/cop/rails/skips_model_validations.rb +2 -2
- data/lib/rubocop/cop/rails/time_zone.rb +3 -2
- data/lib/rubocop/cop/rails/uniq_before_pluck.rb +4 -2
- data/lib/rubocop/cop/rails/unknown_env.rb +63 -0
- data/lib/rubocop/cop/rails/validation.rb +8 -8
- data/lib/rubocop/cop/registry.rb +2 -1
- data/lib/rubocop/cop/security/eval.rb +4 -4
- data/lib/rubocop/cop/security/json_load.rb +7 -5
- data/lib/rubocop/cop/security/marshal_load.rb +8 -6
- data/lib/rubocop/cop/security/yaml_load.rb +4 -4
- data/lib/rubocop/cop/style/alias.rb +49 -27
- data/lib/rubocop/cop/style/and_or.rb +65 -45
- data/lib/rubocop/cop/style/array_join.rb +10 -1
- data/lib/rubocop/cop/style/ascii_comments.rb +24 -4
- data/lib/rubocop/cop/style/attr.rb +15 -5
- data/lib/rubocop/cop/style/auto_resource_cleanup.rb +7 -5
- data/lib/rubocop/cop/style/bare_percent_literals.rb +31 -10
- data/lib/rubocop/cop/style/begin_block.rb +1 -1
- data/lib/rubocop/cop/style/block_comments.rb +17 -3
- data/lib/rubocop/cop/style/block_delimiters.rb +82 -16
- data/lib/rubocop/cop/style/braces_around_hash_parameters.rb +68 -32
- data/lib/rubocop/cop/style/case_equality.rb +13 -1
- data/lib/rubocop/cop/style/character_literal.rb +10 -0
- data/lib/rubocop/cop/style/class_and_module_children.rb +8 -4
- data/lib/rubocop/cop/style/class_check.rb +29 -10
- data/lib/rubocop/cop/style/class_methods.rb +10 -9
- data/lib/rubocop/cop/style/class_vars.rb +5 -4
- data/lib/rubocop/cop/style/collection_methods.rb +5 -3
- data/lib/rubocop/cop/style/colon_method_call.rb +18 -2
- data/lib/rubocop/cop/style/colon_method_definition.rb +36 -0
- data/lib/rubocop/cop/style/command_literal.rb +90 -30
- data/lib/rubocop/cop/style/comment_annotation.rb +39 -11
- data/lib/rubocop/cop/style/commented_keyword.rb +84 -0
- data/lib/rubocop/cop/style/conditional_assignment.rb +41 -41
- data/lib/rubocop/cop/style/copyright.rb +27 -28
- data/lib/rubocop/cop/style/date_time.rb +44 -0
- data/lib/rubocop/cop/style/def_with_parentheses.rb +31 -5
- data/lib/rubocop/cop/style/dir.rb +48 -0
- data/lib/rubocop/cop/style/documentation.rb +17 -2
- data/lib/rubocop/cop/style/documentation_method.rb +2 -6
- data/lib/rubocop/cop/style/double_negation.rb +1 -1
- data/lib/rubocop/cop/style/each_for_simple_loop.rb +8 -8
- data/lib/rubocop/cop/style/each_with_object.rb +6 -5
- data/lib/rubocop/cop/style/empty_block_parameter.rb +47 -0
- data/lib/rubocop/cop/style/empty_case_condition.rb +3 -3
- data/lib/rubocop/cop/style/empty_else.rb +55 -24
- data/lib/rubocop/cop/style/empty_lambda_parameter.rb +43 -0
- data/lib/rubocop/cop/style/empty_literal.rb +25 -14
- data/lib/rubocop/cop/style/empty_method.rb +29 -25
- data/lib/rubocop/cop/style/encoding.rb +8 -51
- data/lib/rubocop/cop/style/end_block.rb +1 -1
- data/lib/rubocop/cop/style/eval_with_location.rb +146 -0
- data/lib/rubocop/cop/style/even_odd.rb +4 -2
- data/lib/rubocop/cop/style/extend_self.rb +92 -0
- data/lib/rubocop/cop/style/flip_flop.rb +13 -2
- data/lib/rubocop/cop/style/for.rb +6 -2
- data/lib/rubocop/cop/style/format_string.rb +33 -5
- data/lib/rubocop/cop/style/format_string_token.rb +17 -15
- data/lib/rubocop/cop/style/frozen_string_literal_comment.rb +7 -6
- data/lib/rubocop/cop/style/global_vars.rb +12 -2
- data/lib/rubocop/cop/style/guard_clause.rb +6 -4
- data/lib/rubocop/cop/style/hash_syntax.rb +56 -56
- data/lib/rubocop/cop/style/identical_conditional_branches.rb +12 -8
- data/lib/rubocop/cop/style/if_inside_else.rb +11 -11
- data/lib/rubocop/cop/style/if_unless_modifier.rb +8 -7
- data/lib/rubocop/cop/style/if_unless_modifier_of_if_unless.rb +3 -2
- data/lib/rubocop/cop/style/if_with_semicolon.rb +10 -1
- data/lib/rubocop/cop/style/implicit_runtime_error.rb +7 -6
- data/lib/rubocop/cop/style/infinite_loop.rb +4 -4
- data/lib/rubocop/cop/style/inline_comment.rb +1 -1
- data/lib/rubocop/cop/style/inverse_methods.rb +24 -14
- data/lib/rubocop/cop/style/lambda.rb +45 -43
- data/lib/rubocop/cop/style/lambda_call.rb +37 -10
- data/lib/rubocop/cop/style/line_end_concatenation.rb +5 -5
- data/lib/rubocop/cop/style/method_call_with_args_parentheses.rb +3 -19
- data/lib/rubocop/cop/style/method_call_without_args_parentheses.rb +6 -4
- data/lib/rubocop/cop/style/method_called_on_do_end_block.rb +1 -1
- data/lib/rubocop/cop/style/method_def_parentheses.rb +20 -25
- data/lib/rubocop/cop/style/method_missing.rb +13 -26
- data/lib/rubocop/cop/style/min_max.rb +68 -0
- data/lib/rubocop/cop/style/missing_else.rb +20 -6
- data/lib/rubocop/cop/style/mixin_grouping.rb +31 -21
- data/lib/rubocop/cop/style/mixin_usage.rb +71 -0
- data/lib/rubocop/cop/style/module_function.rb +27 -11
- data/lib/rubocop/cop/style/multiline_block_chain.rb +1 -1
- data/lib/rubocop/cop/style/multiline_if_modifier.rb +8 -4
- data/lib/rubocop/cop/style/multiline_if_then.rb +15 -13
- data/lib/rubocop/cop/style/multiline_memoization.rb +33 -17
- data/lib/rubocop/cop/style/multiline_ternary_operator.rb +1 -1
- data/lib/rubocop/cop/style/multiple_comparison.rb +1 -1
- data/lib/rubocop/cop/style/mutable_constant.rb +11 -15
- data/lib/rubocop/cop/style/negated_if.rb +27 -31
- data/lib/rubocop/cop/style/negated_while.rb +1 -5
- data/lib/rubocop/cop/style/nested_modifier.rb +1 -1
- data/lib/rubocop/cop/style/nested_parenthesized_calls.rb +26 -23
- data/lib/rubocop/cop/style/nested_ternary_operator.rb +1 -1
- data/lib/rubocop/cop/style/next.rb +41 -12
- data/lib/rubocop/cop/style/nil_comparison.rb +8 -8
- data/lib/rubocop/cop/style/non_nil_check.rb +41 -38
- data/lib/rubocop/cop/style/not.rb +15 -5
- data/lib/rubocop/cop/style/numeric_literal_prefix.rb +8 -4
- data/lib/rubocop/cop/style/numeric_literals.rb +9 -9
- data/lib/rubocop/cop/style/numeric_predicate.rb +21 -21
- data/lib/rubocop/cop/style/one_line_conditional.rb +9 -4
- data/lib/rubocop/cop/style/option_hash.rb +11 -25
- data/lib/rubocop/cop/style/optional_arguments.rb +1 -2
- data/lib/rubocop/cop/style/or_assignment.rb +88 -0
- data/lib/rubocop/cop/style/parallel_assignment.rb +16 -16
- data/lib/rubocop/cop/style/parentheses_around_condition.rb +30 -13
- data/lib/rubocop/cop/style/percent_literal_delimiters.rb +25 -4
- data/lib/rubocop/cop/style/percent_q_literals.rb +29 -8
- data/lib/rubocop/cop/style/perl_backrefs.rb +8 -1
- data/lib/rubocop/cop/style/preferred_hash_methods.rb +7 -11
- data/lib/rubocop/cop/style/proc.rb +10 -2
- data/lib/rubocop/cop/style/raise_args.rb +22 -29
- data/lib/rubocop/cop/style/random_with_offset.rb +160 -0
- data/lib/rubocop/cop/style/redundant_begin.rb +16 -5
- data/lib/rubocop/cop/style/redundant_conditional.rb +96 -0
- data/lib/rubocop/cop/style/redundant_exception.rb +4 -4
- data/lib/rubocop/cop/style/redundant_freeze.rb +1 -1
- data/lib/rubocop/cop/style/redundant_parentheses.rb +14 -12
- data/lib/rubocop/cop/style/redundant_return.rb +28 -15
- data/lib/rubocop/cop/style/redundant_self.rb +35 -27
- data/lib/rubocop/cop/style/regexp_literal.rb +88 -27
- data/lib/rubocop/cop/style/rescue_modifier.rb +12 -1
- data/lib/rubocop/cop/style/rescue_standard_error.rb +122 -0
- data/lib/rubocop/cop/style/return_nil.rb +89 -0
- data/lib/rubocop/cop/style/safe_navigation.rb +100 -48
- data/lib/rubocop/cop/style/self_assignment.rb +13 -13
- data/lib/rubocop/cop/style/semicolon.rb +19 -9
- data/lib/rubocop/cop/style/send.rb +10 -1
- data/lib/rubocop/cop/style/signal_exception.rb +104 -3
- data/lib/rubocop/cop/style/single_line_block_params.rb +16 -15
- data/lib/rubocop/cop/style/single_line_methods.rb +26 -18
- data/lib/rubocop/cop/style/special_global_vars.rb +19 -14
- data/lib/rubocop/cop/style/stabby_lambda_parentheses.rb +23 -50
- data/lib/rubocop/cop/style/stderr_puts.rb +54 -0
- data/lib/rubocop/cop/style/string_hash_keys.rb +36 -0
- data/lib/rubocop/cop/style/string_literals.rb +26 -3
- data/lib/rubocop/cop/style/string_literals_in_interpolation.rb +16 -1
- data/lib/rubocop/cop/style/string_methods.rb +19 -8
- data/lib/rubocop/cop/style/struct_inheritance.rb +3 -3
- data/lib/rubocop/cop/style/symbol_array.rb +7 -35
- data/lib/rubocop/cop/style/symbol_literal.rb +1 -1
- data/lib/rubocop/cop/style/symbol_proc.rb +11 -25
- data/lib/rubocop/cop/style/ternary_parentheses.rb +46 -51
- data/lib/rubocop/cop/style/trailing_body_on_method_definition.rb +101 -0
- data/lib/rubocop/cop/style/trailing_comma_in_arguments.rb +20 -6
- data/lib/rubocop/cop/style/trailing_comma_in_literal.rb +22 -7
- data/lib/rubocop/cop/style/trailing_method_end_statement.rb +95 -0
- data/lib/rubocop/cop/style/trailing_underscore_variable.rb +70 -24
- data/lib/rubocop/cop/style/trivial_accessors.rb +72 -65
- data/lib/rubocop/cop/style/unless_else.rb +16 -1
- data/lib/rubocop/cop/style/unneeded_capital_w.rb +18 -8
- data/lib/rubocop/cop/style/unneeded_interpolation.rb +15 -19
- data/lib/rubocop/cop/style/unneeded_percent_q.rb +14 -13
- data/lib/rubocop/cop/style/variable_interpolation.rb +23 -9
- data/lib/rubocop/cop/style/when_then.rb +14 -1
- data/lib/rubocop/cop/style/while_until_do.rb +27 -4
- data/lib/rubocop/cop/style/while_until_modifier.rb +26 -6
- data/lib/rubocop/cop/style/word_array.rb +9 -30
- data/lib/rubocop/cop/style/yoda_condition.rb +51 -22
- data/lib/rubocop/cop/style/zero_length_predicate.rb +44 -29
- data/lib/rubocop/cop/team.rb +16 -8
- data/lib/rubocop/cop/util.rb +43 -34
- data/lib/rubocop/cop/variable_force.rb +1 -1
- data/lib/rubocop/cop/variable_force/assignment.rb +4 -2
- data/lib/rubocop/cop/variable_force/scope.rb +1 -5
- data/lib/rubocop/cop/variable_force/variable.rb +1 -1
- data/lib/rubocop/formatter/disabled_config_formatter.rb +3 -4
- data/lib/rubocop/formatter/formatter_set.rb +3 -1
- data/lib/rubocop/formatter/html_formatter.rb +1 -1
- data/lib/rubocop/formatter/json_formatter.rb +9 -3
- data/lib/rubocop/formatter/offense_count_formatter.rb +2 -0
- data/lib/rubocop/formatter/quiet_formatter.rb +13 -0
- data/lib/rubocop/formatter/simple_text_formatter.rb +3 -3
- data/lib/rubocop/formatter/tap_formatter.rb +71 -0
- data/lib/rubocop/formatter/worst_offenders_formatter.rb +2 -0
- data/lib/rubocop/node_pattern.rb +46 -29
- data/lib/rubocop/options.rb +13 -8
- data/lib/rubocop/path_util.rb +15 -3
- data/lib/rubocop/processed_source.rb +8 -9
- data/lib/rubocop/rake_task.rb +16 -23
- data/lib/rubocop/remote_config.rb +13 -1
- data/lib/rubocop/result_cache.rb +1 -0
- data/lib/rubocop/rspec/cop_helper.rb +10 -10
- data/lib/rubocop/rspec/expect_offense.rb +6 -8
- data/lib/rubocop/rspec/shared_contexts.rb +4 -8
- data/lib/rubocop/rspec/shared_examples.rb +8 -8
- data/lib/rubocop/rspec/support.rb +5 -5
- data/lib/rubocop/runner.rb +1 -1
- data/lib/rubocop/string_util.rb +2 -0
- data/lib/rubocop/token.rb +74 -0
- data/lib/rubocop/version.rb +1 -1
- metadata +118 -48
- data/lib/rubocop/cop/layout/space_inside_brackets.rb +0 -20
- data/lib/rubocop/cop/lint/invalid_character_literal.rb +0 -41
- data/lib/rubocop/cop/mixin/access_modifier_node.rb +0 -41
- data/lib/rubocop/cop/mixin/on_method_def.rb +0 -44
- data/lib/rubocop/cop/mixin/space_inside.rb +0 -76
- data/lib/rubocop/cop/style/accessor_method_name.rb +0 -45
- data/lib/rubocop/cop/style/class_and_module_camel_case.rb +0 -29
- data/lib/rubocop/cop/style/constant_name.rb +0 -29
- data/lib/rubocop/cop/style/method_name.rb +0 -34
- data/lib/rubocop/cop/style/predicate_name.rb +0 -67
- data/lib/rubocop/cop/style/variable_name.rb +0 -39
data/lib/rubocop.rb
CHANGED
@@ -5,6 +5,7 @@ require 'rainbow'
|
|
5
5
|
|
6
6
|
require 'English'
|
7
7
|
require 'set'
|
8
|
+
require 'forwardable'
|
8
9
|
require 'powerpack/array/butfirst'
|
9
10
|
require 'powerpack/enumerable/drop_last'
|
10
11
|
require 'powerpack/hash/symbolize_keys'
|
@@ -12,508 +13,573 @@ require 'powerpack/string/blank'
|
|
12
13
|
require 'powerpack/string/strip_indent'
|
13
14
|
require 'unicode/display_width'
|
14
15
|
|
15
|
-
|
16
|
+
require_relative 'rubocop/version'
|
16
17
|
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
18
|
+
require_relative 'rubocop/path_util'
|
19
|
+
require_relative 'rubocop/platform'
|
20
|
+
require_relative 'rubocop/string_util'
|
21
|
+
require_relative 'rubocop/name_similarity'
|
22
|
+
require_relative 'rubocop/node_pattern'
|
23
|
+
require_relative 'rubocop/string_interpreter'
|
24
|
+
require_relative 'rubocop/ast/sexp'
|
25
|
+
require_relative 'rubocop/ast/node'
|
26
|
+
require_relative 'rubocop/ast/node/mixin/method_identifier_predicates'
|
27
|
+
require_relative 'rubocop/ast/node/mixin/binary_operator_node'
|
28
|
+
require_relative 'rubocop/ast/node/mixin/collection_node'
|
29
|
+
require_relative 'rubocop/ast/node/mixin/conditional_node'
|
30
|
+
require_relative 'rubocop/ast/node/mixin/hash_element_node'
|
31
|
+
require_relative 'rubocop/ast/node/mixin/method_dispatch_node'
|
32
|
+
require_relative 'rubocop/ast/node/mixin/modifier_node'
|
33
|
+
require_relative 'rubocop/ast/node/mixin/parameterized_node'
|
34
|
+
require_relative 'rubocop/ast/node/mixin/predicate_operator_node'
|
35
|
+
require_relative 'rubocop/ast/node/mixin/basic_literal_node'
|
36
|
+
require_relative 'rubocop/ast/node/and_node'
|
37
|
+
require_relative 'rubocop/ast/node/args_node'
|
38
|
+
require_relative 'rubocop/ast/node/array_node'
|
39
|
+
require_relative 'rubocop/ast/node/block_node'
|
40
|
+
require_relative 'rubocop/ast/node/case_node'
|
41
|
+
require_relative 'rubocop/ast/node/def_node'
|
42
|
+
require_relative 'rubocop/ast/node/ensure_node'
|
43
|
+
require_relative 'rubocop/ast/node/for_node'
|
44
|
+
require_relative 'rubocop/ast/node/hash_node'
|
45
|
+
require_relative 'rubocop/ast/node/if_node'
|
46
|
+
require_relative 'rubocop/ast/node/keyword_splat_node'
|
47
|
+
require_relative 'rubocop/ast/node/or_node'
|
48
|
+
require_relative 'rubocop/ast/node/pair_node'
|
49
|
+
require_relative 'rubocop/ast/node/regexp_node'
|
50
|
+
require_relative 'rubocop/ast/node/resbody_node'
|
51
|
+
require_relative 'rubocop/ast/node/send_node'
|
52
|
+
require_relative 'rubocop/ast/node/str_node'
|
53
|
+
require_relative 'rubocop/ast/node/super_node'
|
54
|
+
require_relative 'rubocop/ast/node/symbol_node'
|
55
|
+
require_relative 'rubocop/ast/node/until_node'
|
56
|
+
require_relative 'rubocop/ast/node/when_node'
|
57
|
+
require_relative 'rubocop/ast/node/while_node'
|
58
|
+
require_relative 'rubocop/ast/node/yield_node'
|
59
|
+
require_relative 'rubocop/ast/builder'
|
60
|
+
require_relative 'rubocop/ast/traversal'
|
61
|
+
require_relative 'rubocop/error'
|
62
|
+
require_relative 'rubocop/warning'
|
53
63
|
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
64
|
+
require_relative 'rubocop/cop/util'
|
65
|
+
require_relative 'rubocop/cop/offense'
|
66
|
+
require_relative 'rubocop/cop/message_annotator'
|
67
|
+
require_relative 'rubocop/cop/ignored_node'
|
68
|
+
require_relative 'rubocop/cop/autocorrect_logic'
|
69
|
+
require_relative 'rubocop/cop/badge'
|
70
|
+
require_relative 'rubocop/cop/registry'
|
71
|
+
require_relative 'rubocop/cop/cop'
|
72
|
+
require_relative 'rubocop/cop/commissioner'
|
73
|
+
require_relative 'rubocop/cop/corrector'
|
74
|
+
require_relative 'rubocop/cop/force'
|
75
|
+
require_relative 'rubocop/cop/severity'
|
76
|
+
require_relative 'rubocop/cop/generator'
|
67
77
|
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
78
|
+
require_relative 'rubocop/cop/variable_force'
|
79
|
+
require_relative 'rubocop/cop/variable_force/branch'
|
80
|
+
require_relative 'rubocop/cop/variable_force/branchable'
|
81
|
+
require_relative 'rubocop/cop/variable_force/variable'
|
82
|
+
require_relative 'rubocop/cop/variable_force/assignment'
|
83
|
+
require_relative 'rubocop/cop/variable_force/reference'
|
84
|
+
require_relative 'rubocop/cop/variable_force/scope'
|
85
|
+
require_relative 'rubocop/cop/variable_force/variable_table'
|
76
86
|
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
87
|
+
require_relative 'rubocop/cop/mixin/annotation_comment'
|
88
|
+
require_relative 'rubocop/cop/mixin/array_hash_indentation'
|
89
|
+
require_relative 'rubocop/cop/mixin/array_min_size'
|
90
|
+
require_relative 'rubocop/cop/mixin/array_syntax'
|
91
|
+
require_relative 'rubocop/cop/mixin/autocorrect_alignment'
|
92
|
+
require_relative 'rubocop/cop/mixin/check_assignment'
|
93
|
+
require_relative 'rubocop/cop/mixin/configurable_max'
|
94
|
+
require_relative 'rubocop/cop/mixin/code_length' # relies on configurable_max
|
95
|
+
require_relative 'rubocop/cop/mixin/classish_length' # relies on code_length
|
96
|
+
require_relative 'rubocop/cop/mixin/configurable_enforced_style'
|
97
|
+
require_relative 'rubocop/cop/mixin/configurable_formatting'
|
98
|
+
require_relative 'rubocop/cop/mixin/configurable_naming'
|
99
|
+
require_relative 'rubocop/cop/mixin/configurable_numbering'
|
100
|
+
require_relative 'rubocop/cop/mixin/def_node'
|
101
|
+
require_relative 'rubocop/cop/mixin/documentation_comment'
|
102
|
+
require_relative 'rubocop/cop/mixin/duplication'
|
103
|
+
require_relative 'rubocop/cop/mixin/empty_lines_around_body'
|
104
|
+
require_relative 'rubocop/cop/mixin/empty_parameter'
|
105
|
+
require_relative 'rubocop/cop/mixin/end_keyword_alignment'
|
106
|
+
require_relative 'rubocop/cop/mixin/enforce_superclass'
|
107
|
+
require_relative 'rubocop/cop/mixin/first_element_line_break'
|
108
|
+
require_relative 'rubocop/cop/mixin/frozen_string_literal'
|
109
|
+
require_relative 'rubocop/cop/mixin/hash_alignment'
|
110
|
+
require_relative 'rubocop/cop/mixin/ignored_pattern'
|
111
|
+
require_relative 'rubocop/cop/mixin/integer_node'
|
112
|
+
require_relative 'rubocop/cop/mixin/match_range'
|
113
|
+
require_relative 'rubocop/cop/mixin/method_complexity'
|
114
|
+
require_relative 'rubocop/cop/mixin/method_preference'
|
115
|
+
require_relative 'rubocop/cop/mixin/min_body_length'
|
116
|
+
require_relative 'rubocop/cop/mixin/multiline_expression_indentation'
|
117
|
+
require_relative 'rubocop/cop/mixin/multiline_literal_brace_layout'
|
118
|
+
require_relative 'rubocop/cop/mixin/negative_conditional'
|
119
|
+
require_relative 'rubocop/cop/mixin/heredoc'
|
120
|
+
require_relative 'rubocop/cop/mixin/on_normal_if_unless'
|
121
|
+
require_relative 'rubocop/cop/mixin/ordered_gem_node'
|
122
|
+
require_relative 'rubocop/cop/mixin/parentheses'
|
123
|
+
require_relative 'rubocop/cop/mixin/parser_diagnostic'
|
124
|
+
require_relative 'rubocop/cop/mixin/percent_array'
|
125
|
+
require_relative 'rubocop/cop/mixin/percent_literal'
|
126
|
+
require_relative 'rubocop/cop/mixin/preceding_following_alignment'
|
127
|
+
require_relative 'rubocop/cop/mixin/rescue_node'
|
128
|
+
require_relative 'rubocop/cop/mixin/safe_assignment'
|
129
|
+
require_relative 'rubocop/cop/mixin/safe_mode'
|
130
|
+
require_relative 'rubocop/cop/mixin/space_after_punctuation'
|
131
|
+
require_relative 'rubocop/cop/mixin/space_before_punctuation'
|
132
|
+
require_relative 'rubocop/cop/mixin/surrounding_space'
|
133
|
+
require_relative 'rubocop/cop/mixin/statement_modifier'
|
134
|
+
require_relative 'rubocop/cop/mixin/string_help'
|
135
|
+
require_relative 'rubocop/cop/mixin/string_literals_help'
|
136
|
+
require_relative 'rubocop/cop/mixin/target_ruby_version'
|
137
|
+
require_relative 'rubocop/cop/mixin/target_rails_version'
|
138
|
+
require_relative 'rubocop/cop/mixin/too_many_lines'
|
139
|
+
require_relative 'rubocop/cop/mixin/trailing_comma'
|
140
|
+
require_relative 'rubocop/cop/mixin/unused_argument'
|
130
141
|
|
131
|
-
|
132
|
-
|
142
|
+
require_relative 'rubocop/cop/bundler/duplicated_gem'
|
143
|
+
require_relative 'rubocop/cop/bundler/insecure_protocol_source'
|
144
|
+
require_relative 'rubocop/cop/bundler/ordered_gems'
|
133
145
|
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
require 'rubocop/cop/layout/align_parameters'
|
138
|
-
require 'rubocop/cop/layout/block_end_newline'
|
139
|
-
require 'rubocop/cop/layout/case_indentation'
|
140
|
-
require 'rubocop/cop/layout/closing_parenthesis_indentation'
|
141
|
-
require 'rubocop/cop/layout/comment_indentation'
|
142
|
-
require 'rubocop/cop/layout/dot_position'
|
143
|
-
require 'rubocop/cop/layout/else_alignment'
|
144
|
-
require 'rubocop/cop/layout/empty_line_after_magic_comment'
|
145
|
-
require 'rubocop/cop/layout/empty_line_between_defs'
|
146
|
-
require 'rubocop/cop/layout/empty_lines_around_access_modifier'
|
147
|
-
require 'rubocop/cop/layout/empty_lines_around_begin_body'
|
148
|
-
require 'rubocop/cop/layout/empty_lines_around_block_body'
|
149
|
-
require 'rubocop/cop/layout/empty_lines_around_class_body'
|
150
|
-
require 'rubocop/cop/layout/empty_lines_around_exception_handling_keywords'
|
151
|
-
require 'rubocop/cop/layout/empty_lines_around_method_body'
|
152
|
-
require 'rubocop/cop/layout/empty_lines_around_module_body'
|
153
|
-
require 'rubocop/cop/layout/empty_lines'
|
154
|
-
require 'rubocop/cop/layout/end_of_line'
|
155
|
-
require 'rubocop/cop/layout/extra_spacing'
|
156
|
-
require 'rubocop/cop/layout/first_array_element_line_break'
|
157
|
-
require 'rubocop/cop/layout/first_hash_element_line_break'
|
158
|
-
require 'rubocop/cop/layout/first_method_argument_line_break'
|
159
|
-
require 'rubocop/cop/layout/first_method_parameter_line_break'
|
160
|
-
require 'rubocop/cop/layout/first_parameter_indentation'
|
161
|
-
require 'rubocop/cop/layout/indent_array'
|
162
|
-
require 'rubocop/cop/layout/indent_assignment'
|
163
|
-
require 'rubocop/cop/layout/indentation_consistency'
|
164
|
-
require 'rubocop/cop/layout/indentation_width'
|
165
|
-
require 'rubocop/cop/layout/indent_hash'
|
166
|
-
require 'rubocop/cop/layout/indent_heredoc'
|
167
|
-
require 'rubocop/cop/layout/initial_indentation'
|
168
|
-
require 'rubocop/cop/layout/leading_comment_space'
|
169
|
-
require 'rubocop/cop/layout/multiline_array_brace_layout'
|
170
|
-
require 'rubocop/cop/layout/multiline_assignment_layout'
|
171
|
-
require 'rubocop/cop/layout/multiline_block_layout'
|
172
|
-
require 'rubocop/cop/layout/multiline_hash_brace_layout'
|
173
|
-
require 'rubocop/cop/layout/multiline_method_call_brace_layout'
|
174
|
-
require 'rubocop/cop/layout/multiline_method_call_indentation'
|
175
|
-
require 'rubocop/cop/layout/multiline_method_definition_brace_layout'
|
176
|
-
require 'rubocop/cop/layout/multiline_operation_indentation'
|
177
|
-
require 'rubocop/cop/layout/rescue_ensure_alignment'
|
178
|
-
require 'rubocop/cop/layout/space_after_colon'
|
179
|
-
require 'rubocop/cop/layout/space_after_comma'
|
180
|
-
require 'rubocop/cop/layout/space_after_method_name'
|
181
|
-
require 'rubocop/cop/layout/space_after_not'
|
182
|
-
require 'rubocop/cop/layout/space_after_semicolon'
|
183
|
-
require 'rubocop/cop/layout/space_around_block_parameters'
|
184
|
-
require 'rubocop/cop/layout/space_around_equals_in_parameter_default'
|
185
|
-
require 'rubocop/cop/layout/space_around_keyword'
|
186
|
-
require 'rubocop/cop/layout/space_around_operators'
|
187
|
-
require 'rubocop/cop/layout/space_before_block_braces'
|
188
|
-
require 'rubocop/cop/layout/space_before_comma'
|
189
|
-
require 'rubocop/cop/layout/space_before_comment'
|
190
|
-
require 'rubocop/cop/layout/space_before_first_arg'
|
191
|
-
require 'rubocop/cop/layout/space_before_semicolon'
|
192
|
-
require 'rubocop/cop/layout/space_in_lambda_literal'
|
193
|
-
require 'rubocop/cop/layout/space_inside_array_percent_literal'
|
194
|
-
require 'rubocop/cop/layout/space_inside_block_braces'
|
195
|
-
require 'rubocop/cop/layout/space_inside_brackets'
|
196
|
-
require 'rubocop/cop/layout/space_inside_hash_literal_braces'
|
197
|
-
require 'rubocop/cop/layout/space_inside_parens'
|
198
|
-
require 'rubocop/cop/layout/space_inside_percent_literal_delimiters'
|
199
|
-
require 'rubocop/cop/layout/space_inside_range_literal'
|
200
|
-
require 'rubocop/cop/layout/space_inside_string_interpolation'
|
201
|
-
require 'rubocop/cop/layout/tab'
|
202
|
-
require 'rubocop/cop/layout/trailing_blank_lines'
|
203
|
-
require 'rubocop/cop/layout/trailing_whitespace'
|
146
|
+
require_relative 'rubocop/cop/gemspec/duplicated_assignment'
|
147
|
+
require_relative 'rubocop/cop/gemspec/ordered_dependencies'
|
148
|
+
require_relative 'rubocop/cop/gemspec/required_ruby_version'
|
204
149
|
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
|
234
|
-
|
235
|
-
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
|
262
|
-
|
263
|
-
|
264
|
-
|
265
|
-
|
266
|
-
|
150
|
+
require_relative 'rubocop/cop/layout/access_modifier_indentation'
|
151
|
+
require_relative 'rubocop/cop/layout/align_array'
|
152
|
+
require_relative 'rubocop/cop/layout/align_hash'
|
153
|
+
require_relative 'rubocop/cop/layout/align_parameters'
|
154
|
+
require_relative 'rubocop/cop/layout/block_end_newline'
|
155
|
+
require_relative 'rubocop/cop/layout/case_indentation'
|
156
|
+
require_relative 'rubocop/cop/layout/class_structure'
|
157
|
+
require_relative 'rubocop/cop/layout/closing_parenthesis_indentation'
|
158
|
+
require_relative 'rubocop/cop/layout/comment_indentation'
|
159
|
+
require_relative 'rubocop/cop/layout/dot_position'
|
160
|
+
require_relative 'rubocop/cop/layout/else_alignment'
|
161
|
+
require_relative 'rubocop/cop/layout/empty_line_after_magic_comment'
|
162
|
+
require_relative 'rubocop/cop/layout/empty_line_between_defs'
|
163
|
+
require_relative 'rubocop/cop/layout/empty_lines_around_access_modifier'
|
164
|
+
require_relative 'rubocop/cop/layout/empty_lines_around_arguments'
|
165
|
+
require_relative 'rubocop/cop/layout/empty_lines_around_begin_body'
|
166
|
+
require_relative 'rubocop/cop/layout/empty_lines_around_block_body'
|
167
|
+
require_relative 'rubocop/cop/layout/empty_lines_around_class_body'
|
168
|
+
require_relative 'rubocop/cop/layout/empty_lines_around_exception_handling_keywords' # rubocop:disable Metrics/LineLength
|
169
|
+
require_relative 'rubocop/cop/layout/empty_lines_around_method_body'
|
170
|
+
require_relative 'rubocop/cop/layout/empty_lines_around_module_body'
|
171
|
+
require_relative 'rubocop/cop/layout/empty_lines'
|
172
|
+
require_relative 'rubocop/cop/layout/end_of_line'
|
173
|
+
require_relative 'rubocop/cop/layout/extra_spacing'
|
174
|
+
require_relative 'rubocop/cop/layout/first_array_element_line_break'
|
175
|
+
require_relative 'rubocop/cop/layout/first_hash_element_line_break'
|
176
|
+
require_relative 'rubocop/cop/layout/first_method_argument_line_break'
|
177
|
+
require_relative 'rubocop/cop/layout/first_method_parameter_line_break'
|
178
|
+
require_relative 'rubocop/cop/layout/first_parameter_indentation'
|
179
|
+
require_relative 'rubocop/cop/layout/indent_array'
|
180
|
+
require_relative 'rubocop/cop/layout/indent_assignment'
|
181
|
+
require_relative 'rubocop/cop/layout/indentation_consistency'
|
182
|
+
require_relative 'rubocop/cop/layout/indentation_width'
|
183
|
+
require_relative 'rubocop/cop/layout/indent_hash'
|
184
|
+
require_relative 'rubocop/cop/layout/indent_heredoc'
|
185
|
+
require_relative 'rubocop/cop/layout/initial_indentation'
|
186
|
+
require_relative 'rubocop/cop/layout/leading_comment_space'
|
187
|
+
require_relative 'rubocop/cop/layout/multiline_array_brace_layout'
|
188
|
+
require_relative 'rubocop/cop/layout/multiline_assignment_layout'
|
189
|
+
require_relative 'rubocop/cop/layout/multiline_block_layout'
|
190
|
+
require_relative 'rubocop/cop/layout/multiline_hash_brace_layout'
|
191
|
+
require_relative 'rubocop/cop/layout/multiline_method_call_brace_layout'
|
192
|
+
require_relative 'rubocop/cop/layout/multiline_method_call_indentation'
|
193
|
+
require_relative 'rubocop/cop/layout/multiline_method_definition_brace_layout'
|
194
|
+
require_relative 'rubocop/cop/layout/multiline_operation_indentation'
|
195
|
+
require_relative 'rubocop/cop/layout/rescue_ensure_alignment'
|
196
|
+
require_relative 'rubocop/cop/layout/space_after_colon'
|
197
|
+
require_relative 'rubocop/cop/layout/space_after_comma'
|
198
|
+
require_relative 'rubocop/cop/layout/space_after_method_name'
|
199
|
+
require_relative 'rubocop/cop/layout/space_after_not'
|
200
|
+
require_relative 'rubocop/cop/layout/space_after_semicolon'
|
201
|
+
require_relative 'rubocop/cop/layout/space_around_block_parameters'
|
202
|
+
require_relative 'rubocop/cop/layout/space_around_equals_in_parameter_default'
|
203
|
+
require_relative 'rubocop/cop/layout/space_around_keyword'
|
204
|
+
require_relative 'rubocop/cop/layout/space_around_operators'
|
205
|
+
require_relative 'rubocop/cop/layout/space_before_block_braces'
|
206
|
+
require_relative 'rubocop/cop/layout/space_before_comma'
|
207
|
+
require_relative 'rubocop/cop/layout/space_before_comment'
|
208
|
+
require_relative 'rubocop/cop/layout/space_before_first_arg'
|
209
|
+
require_relative 'rubocop/cop/layout/space_before_semicolon'
|
210
|
+
require_relative 'rubocop/cop/layout/space_in_lambda_literal'
|
211
|
+
require_relative 'rubocop/cop/layout/space_inside_array_percent_literal'
|
212
|
+
require_relative 'rubocop/cop/layout/space_inside_array_literal_brackets'
|
213
|
+
require_relative 'rubocop/cop/layout/space_inside_block_braces'
|
214
|
+
require_relative 'rubocop/cop/layout/space_inside_hash_literal_braces'
|
215
|
+
require_relative 'rubocop/cop/layout/space_inside_parens'
|
216
|
+
require_relative 'rubocop/cop/layout/space_inside_percent_literal_delimiters'
|
217
|
+
require_relative 'rubocop/cop/layout/space_inside_range_literal'
|
218
|
+
require_relative 'rubocop/cop/layout/space_inside_reference_brackets'
|
219
|
+
require_relative 'rubocop/cop/layout/space_inside_string_interpolation'
|
220
|
+
require_relative 'rubocop/cop/layout/tab'
|
221
|
+
require_relative 'rubocop/cop/layout/trailing_blank_lines'
|
222
|
+
require_relative 'rubocop/cop/layout/trailing_whitespace'
|
267
223
|
|
268
|
-
|
269
|
-
|
270
|
-
|
271
|
-
|
272
|
-
|
273
|
-
|
274
|
-
|
275
|
-
|
276
|
-
|
277
|
-
|
224
|
+
require_relative 'rubocop/cop/lint/ambiguous_block_association'
|
225
|
+
require_relative 'rubocop/cop/lint/ambiguous_operator'
|
226
|
+
require_relative 'rubocop/cop/lint/ambiguous_regexp_literal'
|
227
|
+
require_relative 'rubocop/cop/lint/assignment_in_condition'
|
228
|
+
require_relative 'rubocop/cop/lint/block_alignment'
|
229
|
+
require_relative 'rubocop/cop/lint/boolean_symbol'
|
230
|
+
require_relative 'rubocop/cop/lint/circular_argument_reference'
|
231
|
+
require_relative 'rubocop/cop/lint/condition_position'
|
232
|
+
require_relative 'rubocop/cop/lint/debugger'
|
233
|
+
require_relative 'rubocop/cop/lint/def_end_alignment'
|
234
|
+
require_relative 'rubocop/cop/lint/deprecated_class_methods'
|
235
|
+
require_relative 'rubocop/cop/lint/duplicate_case_condition'
|
236
|
+
require_relative 'rubocop/cop/lint/duplicate_methods'
|
237
|
+
require_relative 'rubocop/cop/lint/duplicated_key'
|
238
|
+
require_relative 'rubocop/cop/lint/each_with_object_argument'
|
239
|
+
require_relative 'rubocop/cop/lint/else_layout'
|
240
|
+
require_relative 'rubocop/cop/lint/empty_ensure'
|
241
|
+
require_relative 'rubocop/cop/lint/empty_expression'
|
242
|
+
require_relative 'rubocop/cop/lint/empty_interpolation'
|
243
|
+
require_relative 'rubocop/cop/lint/empty_when'
|
244
|
+
require_relative 'rubocop/cop/lint/end_alignment'
|
245
|
+
require_relative 'rubocop/cop/lint/end_in_method'
|
246
|
+
require_relative 'rubocop/cop/lint/ensure_return'
|
247
|
+
require_relative 'rubocop/cop/lint/float_out_of_range'
|
248
|
+
require_relative 'rubocop/cop/lint/format_parameter_mismatch'
|
249
|
+
require_relative 'rubocop/cop/lint/handle_exceptions'
|
250
|
+
require_relative 'rubocop/cop/lint/implicit_string_concatenation'
|
251
|
+
require_relative 'rubocop/cop/lint/inherit_exception'
|
252
|
+
require_relative 'rubocop/cop/lint/ineffective_access_modifier'
|
253
|
+
require_relative 'rubocop/cop/lint/interpolation_check'
|
254
|
+
require_relative 'rubocop/cop/lint/literal_as_condition'
|
255
|
+
require_relative 'rubocop/cop/lint/literal_in_interpolation'
|
256
|
+
require_relative 'rubocop/cop/lint/loop'
|
257
|
+
require_relative 'rubocop/cop/lint/missing_cop_enable_directive'
|
258
|
+
require_relative 'rubocop/cop/lint/multiple_compare'
|
259
|
+
require_relative 'rubocop/cop/lint/nested_method_definition'
|
260
|
+
require_relative 'rubocop/cop/lint/nested_percent_literal'
|
261
|
+
require_relative 'rubocop/cop/lint/next_without_accumulator'
|
262
|
+
require_relative 'rubocop/cop/lint/non_local_exit_from_iterator'
|
263
|
+
require_relative 'rubocop/cop/lint/parentheses_as_grouped_expression'
|
264
|
+
require_relative 'rubocop/cop/lint/percent_string_array'
|
265
|
+
require_relative 'rubocop/cop/lint/percent_symbol_array'
|
266
|
+
require_relative 'rubocop/cop/lint/rand_one'
|
267
|
+
require_relative 'rubocop/cop/lint/redundant_with_index'
|
268
|
+
require_relative 'rubocop/cop/lint/redundant_with_object'
|
269
|
+
require_relative 'rubocop/cop/lint/regexp_as_condition'
|
270
|
+
require_relative 'rubocop/cop/lint/require_parentheses'
|
271
|
+
require_relative 'rubocop/cop/lint/rescue_exception'
|
272
|
+
require_relative 'rubocop/cop/lint/rescue_type'
|
273
|
+
require_relative 'rubocop/cop/lint/return_in_void_context'
|
274
|
+
require_relative 'rubocop/cop/lint/safe_navigation_chain'
|
275
|
+
require_relative 'rubocop/cop/lint/script_permission'
|
276
|
+
require_relative 'rubocop/cop/lint/shadowed_argument'
|
277
|
+
require_relative 'rubocop/cop/lint/shadowed_exception'
|
278
|
+
require_relative 'rubocop/cop/lint/shadowing_outer_local_variable'
|
279
|
+
require_relative 'rubocop/cop/lint/string_conversion_in_interpolation'
|
280
|
+
require_relative 'rubocop/cop/lint/syntax'
|
281
|
+
require_relative 'rubocop/cop/lint/underscore_prefixed_variable_name'
|
282
|
+
require_relative 'rubocop/cop/lint/unified_integer'
|
283
|
+
require_relative 'rubocop/cop/lint/unneeded_disable'
|
284
|
+
require_relative 'rubocop/cop/lint/unneeded_require_statement'
|
285
|
+
require_relative 'rubocop/cop/lint/unneeded_splat_expansion'
|
286
|
+
require_relative 'rubocop/cop/lint/unreachable_code'
|
287
|
+
require_relative 'rubocop/cop/lint/unused_block_argument'
|
288
|
+
require_relative 'rubocop/cop/lint/unused_method_argument'
|
289
|
+
require_relative 'rubocop/cop/lint/uri_escape_unescape'
|
290
|
+
require_relative 'rubocop/cop/lint/uri_regexp'
|
291
|
+
require_relative 'rubocop/cop/lint/useless_access_modifier'
|
292
|
+
require_relative 'rubocop/cop/lint/useless_assignment'
|
293
|
+
require_relative 'rubocop/cop/lint/useless_comparison'
|
294
|
+
require_relative 'rubocop/cop/lint/useless_else_without_rescue'
|
295
|
+
require_relative 'rubocop/cop/lint/useless_setter_call'
|
296
|
+
require_relative 'rubocop/cop/lint/void'
|
278
297
|
|
279
|
-
|
280
|
-
|
281
|
-
|
282
|
-
|
283
|
-
|
284
|
-
|
285
|
-
|
286
|
-
|
287
|
-
|
288
|
-
|
289
|
-
|
290
|
-
require 'rubocop/cop/performance/range_include'
|
291
|
-
require 'rubocop/cop/performance/redundant_block_call'
|
292
|
-
require 'rubocop/cop/performance/redundant_match'
|
293
|
-
require 'rubocop/cop/performance/redundant_merge'
|
294
|
-
require 'rubocop/cop/performance/redundant_sort_by'
|
295
|
-
require 'rubocop/cop/performance/regexp_match'
|
296
|
-
require 'rubocop/cop/performance/reverse_each'
|
297
|
-
require 'rubocop/cop/performance/sample'
|
298
|
-
require 'rubocop/cop/performance/size'
|
299
|
-
require 'rubocop/cop/performance/compare_with_block'
|
300
|
-
require 'rubocop/cop/performance/start_with'
|
301
|
-
require 'rubocop/cop/performance/string_replacement'
|
302
|
-
require 'rubocop/cop/performance/times_map'
|
298
|
+
require_relative 'rubocop/cop/metrics/cyclomatic_complexity'
|
299
|
+
# relies on cyclomatic_complexity
|
300
|
+
require_relative 'rubocop/cop/metrics/abc_size'
|
301
|
+
require_relative 'rubocop/cop/metrics/block_length'
|
302
|
+
require_relative 'rubocop/cop/metrics/block_nesting'
|
303
|
+
require_relative 'rubocop/cop/metrics/class_length'
|
304
|
+
require_relative 'rubocop/cop/metrics/line_length'
|
305
|
+
require_relative 'rubocop/cop/metrics/method_length'
|
306
|
+
require_relative 'rubocop/cop/metrics/module_length'
|
307
|
+
require_relative 'rubocop/cop/metrics/parameter_lists'
|
308
|
+
require_relative 'rubocop/cop/metrics/perceived_complexity'
|
303
309
|
|
304
|
-
|
305
|
-
|
306
|
-
|
307
|
-
|
308
|
-
|
309
|
-
|
310
|
-
|
311
|
-
|
312
|
-
|
313
|
-
|
314
|
-
|
315
|
-
|
316
|
-
require 'rubocop/cop/style/braces_around_hash_parameters'
|
317
|
-
require 'rubocop/cop/style/case_equality'
|
318
|
-
require 'rubocop/cop/style/character_literal'
|
319
|
-
require 'rubocop/cop/style/class_and_module_camel_case'
|
320
|
-
require 'rubocop/cop/style/class_and_module_children'
|
321
|
-
require 'rubocop/cop/style/class_check'
|
322
|
-
require 'rubocop/cop/style/class_methods'
|
323
|
-
require 'rubocop/cop/style/class_vars'
|
324
|
-
require 'rubocop/cop/style/collection_methods'
|
325
|
-
require 'rubocop/cop/style/colon_method_call'
|
326
|
-
require 'rubocop/cop/style/command_literal'
|
327
|
-
require 'rubocop/cop/style/comment_annotation'
|
328
|
-
require 'rubocop/cop/style/conditional_assignment'
|
329
|
-
require 'rubocop/cop/style/constant_name'
|
330
|
-
require 'rubocop/cop/style/copyright'
|
331
|
-
require 'rubocop/cop/style/def_with_parentheses'
|
332
|
-
require 'rubocop/cop/style/preferred_hash_methods'
|
333
|
-
require 'rubocop/cop/style/documentation_method'
|
334
|
-
require 'rubocop/cop/style/documentation'
|
335
|
-
require 'rubocop/cop/style/double_negation'
|
336
|
-
require 'rubocop/cop/style/each_for_simple_loop'
|
337
|
-
require 'rubocop/cop/style/each_with_object'
|
338
|
-
require 'rubocop/cop/style/empty_case_condition'
|
339
|
-
require 'rubocop/cop/style/empty_else'
|
340
|
-
require 'rubocop/cop/style/empty_literal'
|
341
|
-
require 'rubocop/cop/style/empty_method'
|
342
|
-
require 'rubocop/cop/style/encoding'
|
343
|
-
require 'rubocop/cop/style/end_block'
|
344
|
-
require 'rubocop/cop/style/even_odd'
|
345
|
-
require 'rubocop/cop/style/file_name'
|
346
|
-
require 'rubocop/cop/style/flip_flop'
|
347
|
-
require 'rubocop/cop/style/for'
|
348
|
-
require 'rubocop/cop/style/format_string'
|
349
|
-
require 'rubocop/cop/style/format_string_token'
|
350
|
-
require 'rubocop/cop/style/frozen_string_literal_comment'
|
351
|
-
require 'rubocop/cop/style/global_vars'
|
352
|
-
require 'rubocop/cop/style/guard_clause'
|
353
|
-
require 'rubocop/cop/style/hash_syntax'
|
354
|
-
require 'rubocop/cop/style/identical_conditional_branches'
|
355
|
-
require 'rubocop/cop/style/if_inside_else'
|
356
|
-
require 'rubocop/cop/style/if_unless_modifier'
|
357
|
-
require 'rubocop/cop/style/if_unless_modifier_of_if_unless'
|
358
|
-
require 'rubocop/cop/style/if_with_semicolon'
|
359
|
-
require 'rubocop/cop/style/implicit_runtime_error'
|
360
|
-
require 'rubocop/cop/style/infinite_loop'
|
361
|
-
require 'rubocop/cop/style/inverse_methods'
|
362
|
-
require 'rubocop/cop/style/inline_comment'
|
363
|
-
require 'rubocop/cop/style/lambda'
|
364
|
-
require 'rubocop/cop/style/lambda_call'
|
365
|
-
require 'rubocop/cop/style/line_end_concatenation'
|
366
|
-
require 'rubocop/cop/style/method_call_without_args_parentheses'
|
367
|
-
require 'rubocop/cop/style/method_call_with_args_parentheses'
|
368
|
-
require 'rubocop/cop/style/method_called_on_do_end_block'
|
369
|
-
require 'rubocop/cop/style/method_def_parentheses'
|
370
|
-
require 'rubocop/cop/style/method_name'
|
371
|
-
require 'rubocop/cop/style/method_missing'
|
372
|
-
require 'rubocop/cop/style/missing_else'
|
373
|
-
require 'rubocop/cop/style/mixin_grouping'
|
374
|
-
require 'rubocop/cop/style/module_function'
|
375
|
-
require 'rubocop/cop/style/multiline_block_chain'
|
376
|
-
require 'rubocop/cop/style/multiline_if_then'
|
377
|
-
require 'rubocop/cop/style/multiline_if_modifier'
|
378
|
-
require 'rubocop/cop/style/multiline_memoization'
|
379
|
-
require 'rubocop/cop/style/multiline_ternary_operator'
|
380
|
-
require 'rubocop/cop/style/multiple_comparison'
|
381
|
-
require 'rubocop/cop/style/mutable_constant'
|
382
|
-
require 'rubocop/cop/style/negated_if'
|
383
|
-
require 'rubocop/cop/style/negated_while'
|
384
|
-
require 'rubocop/cop/style/nested_modifier'
|
385
|
-
require 'rubocop/cop/style/nested_parenthesized_calls'
|
386
|
-
require 'rubocop/cop/style/nested_ternary_operator'
|
387
|
-
require 'rubocop/cop/style/next'
|
388
|
-
require 'rubocop/cop/style/nil_comparison'
|
389
|
-
require 'rubocop/cop/style/non_nil_check'
|
390
|
-
require 'rubocop/cop/style/not'
|
391
|
-
require 'rubocop/cop/style/numeric_literals'
|
392
|
-
require 'rubocop/cop/style/numeric_literal_prefix'
|
393
|
-
require 'rubocop/cop/style/numeric_predicate'
|
394
|
-
require 'rubocop/cop/style/one_line_conditional'
|
395
|
-
require 'rubocop/cop/style/op_method'
|
396
|
-
require 'rubocop/cop/style/option_hash'
|
397
|
-
require 'rubocop/cop/style/optional_arguments'
|
398
|
-
require 'rubocop/cop/style/parallel_assignment'
|
399
|
-
require 'rubocop/cop/style/parentheses_around_condition'
|
400
|
-
require 'rubocop/cop/style/percent_literal_delimiters'
|
401
|
-
require 'rubocop/cop/style/percent_q_literals'
|
402
|
-
require 'rubocop/cop/style/perl_backrefs'
|
403
|
-
require 'rubocop/cop/style/predicate_name'
|
404
|
-
require 'rubocop/cop/style/proc'
|
405
|
-
require 'rubocop/cop/style/raise_args'
|
406
|
-
require 'rubocop/cop/style/redundant_begin'
|
407
|
-
require 'rubocop/cop/style/redundant_exception'
|
408
|
-
require 'rubocop/cop/style/redundant_freeze'
|
409
|
-
require 'rubocop/cop/style/redundant_parentheses'
|
410
|
-
require 'rubocop/cop/style/redundant_return'
|
411
|
-
require 'rubocop/cop/style/redundant_self'
|
412
|
-
require 'rubocop/cop/style/regexp_literal'
|
413
|
-
require 'rubocop/cop/style/rescue_modifier'
|
414
|
-
require 'rubocop/cop/style/safe_navigation'
|
415
|
-
require 'rubocop/cop/style/self_assignment'
|
416
|
-
require 'rubocop/cop/style/semicolon'
|
417
|
-
require 'rubocop/cop/style/send'
|
418
|
-
require 'rubocop/cop/style/signal_exception'
|
419
|
-
require 'rubocop/cop/style/single_line_block_params'
|
420
|
-
require 'rubocop/cop/style/single_line_methods'
|
421
|
-
require 'rubocop/cop/style/special_global_vars'
|
422
|
-
require 'rubocop/cop/style/stabby_lambda_parentheses'
|
423
|
-
require 'rubocop/cop/style/string_literals'
|
424
|
-
require 'rubocop/cop/style/string_literals_in_interpolation'
|
425
|
-
require 'rubocop/cop/style/string_methods'
|
426
|
-
require 'rubocop/cop/style/struct_inheritance'
|
427
|
-
require 'rubocop/cop/style/symbol_array'
|
428
|
-
require 'rubocop/cop/style/symbol_literal'
|
429
|
-
require 'rubocop/cop/style/symbol_proc'
|
430
|
-
require 'rubocop/cop/style/ternary_parentheses'
|
431
|
-
require 'rubocop/cop/style/trailing_comma_in_arguments'
|
432
|
-
require 'rubocop/cop/style/trailing_comma_in_literal'
|
433
|
-
require 'rubocop/cop/style/trailing_underscore_variable'
|
434
|
-
require 'rubocop/cop/style/trivial_accessors'
|
435
|
-
require 'rubocop/cop/style/unless_else'
|
436
|
-
require 'rubocop/cop/style/unneeded_capital_w'
|
437
|
-
require 'rubocop/cop/style/unneeded_interpolation'
|
438
|
-
require 'rubocop/cop/style/unneeded_percent_q'
|
439
|
-
require 'rubocop/cop/style/variable_interpolation'
|
440
|
-
require 'rubocop/cop/style/variable_name'
|
441
|
-
require 'rubocop/cop/style/variable_number'
|
442
|
-
require 'rubocop/cop/style/when_then'
|
443
|
-
require 'rubocop/cop/style/while_until_do'
|
444
|
-
require 'rubocop/cop/style/while_until_modifier'
|
445
|
-
require 'rubocop/cop/style/word_array'
|
446
|
-
require 'rubocop/cop/style/yoda_condition'
|
447
|
-
require 'rubocop/cop/style/zero_length_predicate'
|
310
|
+
require_relative 'rubocop/cop/naming/accessor_method_name'
|
311
|
+
require_relative 'rubocop/cop/naming/ascii_identifiers'
|
312
|
+
require_relative 'rubocop/cop/naming/class_and_module_camel_case'
|
313
|
+
require_relative 'rubocop/cop/naming/constant_name'
|
314
|
+
require_relative 'rubocop/cop/naming/file_name'
|
315
|
+
require_relative 'rubocop/cop/naming/heredoc_delimiter_case'
|
316
|
+
require_relative 'rubocop/cop/naming/heredoc_delimiter_naming'
|
317
|
+
require_relative 'rubocop/cop/naming/method_name'
|
318
|
+
require_relative 'rubocop/cop/naming/binary_operator_parameter_name'
|
319
|
+
require_relative 'rubocop/cop/naming/predicate_name'
|
320
|
+
require_relative 'rubocop/cop/naming/variable_name'
|
321
|
+
require_relative 'rubocop/cop/naming/variable_number'
|
448
322
|
|
449
|
-
|
450
|
-
|
451
|
-
|
452
|
-
|
453
|
-
|
454
|
-
|
455
|
-
|
456
|
-
|
457
|
-
|
458
|
-
|
459
|
-
|
460
|
-
|
461
|
-
|
462
|
-
|
463
|
-
|
464
|
-
|
465
|
-
|
466
|
-
|
467
|
-
|
468
|
-
|
469
|
-
|
470
|
-
|
471
|
-
|
472
|
-
|
473
|
-
|
474
|
-
|
475
|
-
require 'rubocop/cop/rails/save_bang'
|
476
|
-
require 'rubocop/cop/rails/scope_args'
|
477
|
-
require 'rubocop/cop/rails/skips_model_validations'
|
478
|
-
require 'rubocop/cop/rails/time_zone'
|
479
|
-
require 'rubocop/cop/rails/uniq_before_pluck'
|
480
|
-
require 'rubocop/cop/rails/validation'
|
323
|
+
require_relative 'rubocop/cop/performance/caller'
|
324
|
+
require_relative 'rubocop/cop/performance/case_when_splat'
|
325
|
+
require_relative 'rubocop/cop/performance/casecmp'
|
326
|
+
require_relative 'rubocop/cop/performance/count'
|
327
|
+
require_relative 'rubocop/cop/performance/detect'
|
328
|
+
require_relative 'rubocop/cop/performance/double_start_end_with'
|
329
|
+
require_relative 'rubocop/cop/performance/end_with'
|
330
|
+
require_relative 'rubocop/cop/performance/fixed_size'
|
331
|
+
require_relative 'rubocop/cop/performance/flat_map'
|
332
|
+
require_relative 'rubocop/cop/performance/hash_each_methods'
|
333
|
+
require_relative 'rubocop/cop/performance/lstrip_rstrip'
|
334
|
+
require_relative 'rubocop/cop/performance/range_include'
|
335
|
+
require_relative 'rubocop/cop/performance/redundant_block_call'
|
336
|
+
require_relative 'rubocop/cop/performance/redundant_match'
|
337
|
+
require_relative 'rubocop/cop/performance/redundant_merge'
|
338
|
+
require_relative 'rubocop/cop/performance/redundant_sort_by'
|
339
|
+
require_relative 'rubocop/cop/performance/regexp_match'
|
340
|
+
require_relative 'rubocop/cop/performance/reverse_each'
|
341
|
+
require_relative 'rubocop/cop/performance/sample'
|
342
|
+
require_relative 'rubocop/cop/performance/size'
|
343
|
+
require_relative 'rubocop/cop/performance/compare_with_block'
|
344
|
+
require_relative 'rubocop/cop/performance/start_with'
|
345
|
+
require_relative 'rubocop/cop/performance/string_replacement'
|
346
|
+
require_relative 'rubocop/cop/performance/times_map'
|
347
|
+
require_relative 'rubocop/cop/performance/unfreeze_string'
|
348
|
+
require_relative 'rubocop/cop/performance/uri_default_parser'
|
481
349
|
|
482
|
-
|
483
|
-
|
484
|
-
|
485
|
-
|
350
|
+
require_relative 'rubocop/cop/style/alias'
|
351
|
+
require_relative 'rubocop/cop/style/and_or'
|
352
|
+
require_relative 'rubocop/cop/style/array_join'
|
353
|
+
require_relative 'rubocop/cop/style/ascii_comments'
|
354
|
+
require_relative 'rubocop/cop/style/attr'
|
355
|
+
require_relative 'rubocop/cop/style/auto_resource_cleanup'
|
356
|
+
require_relative 'rubocop/cop/style/bare_percent_literals'
|
357
|
+
require_relative 'rubocop/cop/style/begin_block'
|
358
|
+
require_relative 'rubocop/cop/style/block_comments'
|
359
|
+
require_relative 'rubocop/cop/style/block_delimiters'
|
360
|
+
require_relative 'rubocop/cop/style/braces_around_hash_parameters'
|
361
|
+
require_relative 'rubocop/cop/style/case_equality'
|
362
|
+
require_relative 'rubocop/cop/style/character_literal'
|
363
|
+
require_relative 'rubocop/cop/style/class_and_module_children'
|
364
|
+
require_relative 'rubocop/cop/style/class_check'
|
365
|
+
require_relative 'rubocop/cop/style/class_methods'
|
366
|
+
require_relative 'rubocop/cop/style/class_vars'
|
367
|
+
require_relative 'rubocop/cop/style/collection_methods'
|
368
|
+
require_relative 'rubocop/cop/style/colon_method_call'
|
369
|
+
require_relative 'rubocop/cop/style/colon_method_definition'
|
370
|
+
require_relative 'rubocop/cop/style/command_literal'
|
371
|
+
require_relative 'rubocop/cop/style/comment_annotation'
|
372
|
+
require_relative 'rubocop/cop/style/commented_keyword'
|
373
|
+
require_relative 'rubocop/cop/style/conditional_assignment'
|
374
|
+
require_relative 'rubocop/cop/style/copyright'
|
375
|
+
require_relative 'rubocop/cop/style/date_time'
|
376
|
+
require_relative 'rubocop/cop/style/def_with_parentheses'
|
377
|
+
require_relative 'rubocop/cop/style/dir'
|
378
|
+
require_relative 'rubocop/cop/style/documentation_method'
|
379
|
+
require_relative 'rubocop/cop/style/documentation'
|
380
|
+
require_relative 'rubocop/cop/style/double_negation'
|
381
|
+
require_relative 'rubocop/cop/style/each_for_simple_loop'
|
382
|
+
require_relative 'rubocop/cop/style/each_with_object'
|
383
|
+
require_relative 'rubocop/cop/style/empty_block_parameter'
|
384
|
+
require_relative 'rubocop/cop/style/empty_case_condition'
|
385
|
+
require_relative 'rubocop/cop/style/empty_else'
|
386
|
+
require_relative 'rubocop/cop/style/empty_lambda_parameter'
|
387
|
+
require_relative 'rubocop/cop/style/empty_literal'
|
388
|
+
require_relative 'rubocop/cop/style/empty_method'
|
389
|
+
require_relative 'rubocop/cop/style/encoding'
|
390
|
+
require_relative 'rubocop/cop/style/end_block'
|
391
|
+
require_relative 'rubocop/cop/style/eval_with_location'
|
392
|
+
require_relative 'rubocop/cop/style/even_odd'
|
393
|
+
require_relative 'rubocop/cop/style/extend_self'
|
394
|
+
require_relative 'rubocop/cop/style/flip_flop'
|
395
|
+
require_relative 'rubocop/cop/style/for'
|
396
|
+
require_relative 'rubocop/cop/style/format_string'
|
397
|
+
require_relative 'rubocop/cop/style/format_string_token'
|
398
|
+
require_relative 'rubocop/cop/style/frozen_string_literal_comment'
|
399
|
+
require_relative 'rubocop/cop/style/global_vars'
|
400
|
+
require_relative 'rubocop/cop/style/guard_clause'
|
401
|
+
require_relative 'rubocop/cop/style/hash_syntax'
|
402
|
+
require_relative 'rubocop/cop/style/identical_conditional_branches'
|
403
|
+
require_relative 'rubocop/cop/style/if_inside_else'
|
404
|
+
require_relative 'rubocop/cop/style/if_unless_modifier'
|
405
|
+
require_relative 'rubocop/cop/style/if_unless_modifier_of_if_unless'
|
406
|
+
require_relative 'rubocop/cop/style/if_with_semicolon'
|
407
|
+
require_relative 'rubocop/cop/style/implicit_runtime_error'
|
408
|
+
require_relative 'rubocop/cop/style/infinite_loop'
|
409
|
+
require_relative 'rubocop/cop/style/inverse_methods'
|
410
|
+
require_relative 'rubocop/cop/style/inline_comment'
|
411
|
+
require_relative 'rubocop/cop/style/lambda'
|
412
|
+
require_relative 'rubocop/cop/style/lambda_call'
|
413
|
+
require_relative 'rubocop/cop/style/line_end_concatenation'
|
414
|
+
require_relative 'rubocop/cop/style/method_call_without_args_parentheses'
|
415
|
+
require_relative 'rubocop/cop/style/method_call_with_args_parentheses'
|
416
|
+
require_relative 'rubocop/cop/style/method_called_on_do_end_block'
|
417
|
+
require_relative 'rubocop/cop/style/method_def_parentheses'
|
418
|
+
require_relative 'rubocop/cop/style/method_missing'
|
419
|
+
require_relative 'rubocop/cop/style/min_max'
|
420
|
+
require_relative 'rubocop/cop/style/missing_else'
|
421
|
+
require_relative 'rubocop/cop/style/mixin_grouping'
|
422
|
+
require_relative 'rubocop/cop/style/mixin_usage'
|
423
|
+
require_relative 'rubocop/cop/style/module_function'
|
424
|
+
require_relative 'rubocop/cop/style/multiline_block_chain'
|
425
|
+
require_relative 'rubocop/cop/style/multiline_if_then'
|
426
|
+
require_relative 'rubocop/cop/style/multiline_if_modifier'
|
427
|
+
require_relative 'rubocop/cop/style/multiline_memoization'
|
428
|
+
require_relative 'rubocop/cop/style/multiline_ternary_operator'
|
429
|
+
require_relative 'rubocop/cop/style/multiple_comparison'
|
430
|
+
require_relative 'rubocop/cop/style/mutable_constant'
|
431
|
+
require_relative 'rubocop/cop/style/negated_if'
|
432
|
+
require_relative 'rubocop/cop/style/negated_while'
|
433
|
+
require_relative 'rubocop/cop/style/nested_modifier'
|
434
|
+
require_relative 'rubocop/cop/style/nested_parenthesized_calls'
|
435
|
+
require_relative 'rubocop/cop/style/nested_ternary_operator'
|
436
|
+
require_relative 'rubocop/cop/style/next'
|
437
|
+
require_relative 'rubocop/cop/style/nil_comparison'
|
438
|
+
require_relative 'rubocop/cop/style/non_nil_check'
|
439
|
+
require_relative 'rubocop/cop/style/not'
|
440
|
+
require_relative 'rubocop/cop/style/numeric_literals'
|
441
|
+
require_relative 'rubocop/cop/style/numeric_literal_prefix'
|
442
|
+
require_relative 'rubocop/cop/style/numeric_predicate'
|
443
|
+
require_relative 'rubocop/cop/style/one_line_conditional'
|
444
|
+
require_relative 'rubocop/cop/style/or_assignment'
|
445
|
+
require_relative 'rubocop/cop/style/option_hash'
|
446
|
+
require_relative 'rubocop/cop/style/optional_arguments'
|
447
|
+
require_relative 'rubocop/cop/style/parallel_assignment'
|
448
|
+
require_relative 'rubocop/cop/style/parentheses_around_condition'
|
449
|
+
require_relative 'rubocop/cop/style/percent_literal_delimiters'
|
450
|
+
require_relative 'rubocop/cop/style/percent_q_literals'
|
451
|
+
require_relative 'rubocop/cop/style/perl_backrefs'
|
452
|
+
require_relative 'rubocop/cop/style/preferred_hash_methods'
|
453
|
+
require_relative 'rubocop/cop/style/proc'
|
454
|
+
require_relative 'rubocop/cop/style/raise_args'
|
455
|
+
require_relative 'rubocop/cop/style/random_with_offset'
|
456
|
+
require_relative 'rubocop/cop/style/redundant_begin'
|
457
|
+
require_relative 'rubocop/cop/style/redundant_exception'
|
458
|
+
require_relative 'rubocop/cop/style/redundant_freeze'
|
459
|
+
require_relative 'rubocop/cop/style/redundant_parentheses'
|
460
|
+
require_relative 'rubocop/cop/style/redundant_return'
|
461
|
+
require_relative 'rubocop/cop/style/redundant_self'
|
462
|
+
require_relative 'rubocop/cop/style/redundant_conditional'
|
463
|
+
require_relative 'rubocop/cop/style/regexp_literal'
|
464
|
+
require_relative 'rubocop/cop/style/rescue_modifier'
|
465
|
+
require_relative 'rubocop/cop/style/rescue_standard_error'
|
466
|
+
require_relative 'rubocop/cop/style/return_nil'
|
467
|
+
require_relative 'rubocop/cop/style/safe_navigation'
|
468
|
+
require_relative 'rubocop/cop/style/self_assignment'
|
469
|
+
require_relative 'rubocop/cop/style/semicolon'
|
470
|
+
require_relative 'rubocop/cop/style/send'
|
471
|
+
require_relative 'rubocop/cop/style/signal_exception'
|
472
|
+
require_relative 'rubocop/cop/style/single_line_block_params'
|
473
|
+
require_relative 'rubocop/cop/style/single_line_methods'
|
474
|
+
require_relative 'rubocop/cop/style/special_global_vars'
|
475
|
+
require_relative 'rubocop/cop/style/stabby_lambda_parentheses'
|
476
|
+
require_relative 'rubocop/cop/style/stderr_puts'
|
477
|
+
require_relative 'rubocop/cop/style/string_hash_keys'
|
478
|
+
require_relative 'rubocop/cop/style/string_literals'
|
479
|
+
require_relative 'rubocop/cop/style/string_literals_in_interpolation'
|
480
|
+
require_relative 'rubocop/cop/style/string_methods'
|
481
|
+
require_relative 'rubocop/cop/style/struct_inheritance'
|
482
|
+
require_relative 'rubocop/cop/style/symbol_array'
|
483
|
+
require_relative 'rubocop/cop/style/symbol_literal'
|
484
|
+
require_relative 'rubocop/cop/style/symbol_proc'
|
485
|
+
require_relative 'rubocop/cop/style/ternary_parentheses'
|
486
|
+
require_relative 'rubocop/cop/style/trailing_body_on_method_definition'
|
487
|
+
require_relative 'rubocop/cop/style/trailing_comma_in_arguments'
|
488
|
+
require_relative 'rubocop/cop/style/trailing_comma_in_literal'
|
489
|
+
require_relative 'rubocop/cop/style/trailing_method_end_statement'
|
490
|
+
require_relative 'rubocop/cop/style/trailing_underscore_variable'
|
491
|
+
require_relative 'rubocop/cop/style/trivial_accessors'
|
492
|
+
require_relative 'rubocop/cop/style/unless_else'
|
493
|
+
require_relative 'rubocop/cop/style/unneeded_capital_w'
|
494
|
+
require_relative 'rubocop/cop/style/unneeded_interpolation'
|
495
|
+
require_relative 'rubocop/cop/style/unneeded_percent_q'
|
496
|
+
require_relative 'rubocop/cop/style/variable_interpolation'
|
497
|
+
require_relative 'rubocop/cop/style/when_then'
|
498
|
+
require_relative 'rubocop/cop/style/while_until_do'
|
499
|
+
require_relative 'rubocop/cop/style/while_until_modifier'
|
500
|
+
require_relative 'rubocop/cop/style/word_array'
|
501
|
+
require_relative 'rubocop/cop/style/yoda_condition'
|
502
|
+
require_relative 'rubocop/cop/style/zero_length_predicate'
|
486
503
|
|
487
|
-
|
504
|
+
require_relative 'rubocop/cop/rails/action_filter'
|
505
|
+
require_relative 'rubocop/cop/rails/active_support_aliases'
|
506
|
+
require_relative 'rubocop/cop/rails/application_job'
|
507
|
+
require_relative 'rubocop/cop/rails/application_record'
|
508
|
+
require_relative 'rubocop/cop/rails/blank'
|
509
|
+
require_relative 'rubocop/cop/rails/create_table_with_timestamps'
|
510
|
+
require_relative 'rubocop/cop/rails/date'
|
511
|
+
require_relative 'rubocop/cop/rails/dynamic_find_by'
|
512
|
+
require_relative 'rubocop/cop/rails/delegate'
|
513
|
+
require_relative 'rubocop/cop/rails/delegate_allow_blank'
|
514
|
+
require_relative 'rubocop/cop/rails/enum_uniqueness'
|
515
|
+
require_relative 'rubocop/cop/rails/environment_comparison'
|
516
|
+
require_relative 'rubocop/cop/rails/exit'
|
517
|
+
require_relative 'rubocop/cop/rails/file_path'
|
518
|
+
require_relative 'rubocop/cop/rails/find_by'
|
519
|
+
require_relative 'rubocop/cop/rails/find_each'
|
520
|
+
require_relative 'rubocop/cop/rails/has_and_belongs_to_many'
|
521
|
+
require_relative 'rubocop/cop/rails/has_many_or_has_one_dependent'
|
522
|
+
require_relative 'rubocop/cop/rails/http_positional_arguments'
|
523
|
+
require_relative 'rubocop/cop/rails/inverse_of'
|
524
|
+
require_relative 'rubocop/cop/rails/lexically_scoped_action_filter'
|
525
|
+
require_relative 'rubocop/cop/rails/not_null_column'
|
526
|
+
require_relative 'rubocop/cop/rails/output_safety'
|
527
|
+
require_relative 'rubocop/cop/rails/output'
|
528
|
+
require_relative 'rubocop/cop/rails/pluralization_grammar'
|
529
|
+
require_relative 'rubocop/cop/rails/presence'
|
530
|
+
require_relative 'rubocop/cop/rails/present'
|
531
|
+
require_relative 'rubocop/cop/rails/read_write_attribute'
|
532
|
+
require_relative 'rubocop/cop/rails/redundant_receiver_in_with_options'
|
533
|
+
require_relative 'rubocop/cop/rails/request_referer'
|
534
|
+
require_relative 'rubocop/cop/rails/reversible_migration'
|
535
|
+
require_relative 'rubocop/cop/rails/relative_date_constant'
|
536
|
+
require_relative 'rubocop/cop/rails/safe_navigation'
|
537
|
+
require_relative 'rubocop/cop/rails/save_bang'
|
538
|
+
require_relative 'rubocop/cop/rails/scope_args'
|
539
|
+
require_relative 'rubocop/cop/rails/skips_model_validations'
|
540
|
+
require_relative 'rubocop/cop/rails/time_zone'
|
541
|
+
require_relative 'rubocop/cop/rails/uniq_before_pluck'
|
542
|
+
require_relative 'rubocop/cop/rails/unknown_env'
|
543
|
+
require_relative 'rubocop/cop/rails/validation'
|
488
544
|
|
489
|
-
|
490
|
-
|
491
|
-
|
492
|
-
|
493
|
-
require 'rubocop/formatter/disabled_lines_formatter'
|
494
|
-
require 'rubocop/formatter/emacs_style_formatter'
|
495
|
-
require 'rubocop/formatter/file_list_formatter'
|
496
|
-
require 'rubocop/formatter/fuubar_style_formatter'
|
497
|
-
require 'rubocop/formatter/html_formatter'
|
498
|
-
require 'rubocop/formatter/json_formatter'
|
499
|
-
require 'rubocop/formatter/offense_count_formatter'
|
500
|
-
require 'rubocop/formatter/progress_formatter'
|
501
|
-
require 'rubocop/formatter/worst_offenders_formatter'
|
545
|
+
require_relative 'rubocop/cop/security/eval'
|
546
|
+
require_relative 'rubocop/cop/security/json_load'
|
547
|
+
require_relative 'rubocop/cop/security/marshal_load'
|
548
|
+
require_relative 'rubocop/cop/security/yaml_load'
|
502
549
|
|
503
|
-
|
550
|
+
require_relative 'rubocop/cop/team'
|
504
551
|
|
505
|
-
|
506
|
-
|
507
|
-
|
508
|
-
|
509
|
-
|
510
|
-
|
511
|
-
|
512
|
-
|
513
|
-
|
514
|
-
|
515
|
-
|
516
|
-
|
517
|
-
|
518
|
-
|
519
|
-
|
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/disabled_lines_formatter'
|
558
|
+
require_relative 'rubocop/formatter/emacs_style_formatter'
|
559
|
+
require_relative 'rubocop/formatter/file_list_formatter'
|
560
|
+
require_relative 'rubocop/formatter/fuubar_style_formatter'
|
561
|
+
require_relative 'rubocop/formatter/html_formatter'
|
562
|
+
require_relative 'rubocop/formatter/json_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
|
+
|
569
|
+
require_relative 'rubocop/formatter/formatter_set'
|
570
|
+
|
571
|
+
require_relative 'rubocop/cached_data'
|
572
|
+
require_relative 'rubocop/config'
|
573
|
+
require_relative 'rubocop/config_loader_resolver'
|
574
|
+
require_relative 'rubocop/config_loader'
|
575
|
+
require_relative 'rubocop/config_store'
|
576
|
+
require_relative 'rubocop/target_finder'
|
577
|
+
require_relative 'rubocop/token'
|
578
|
+
require_relative 'rubocop/comment_config'
|
579
|
+
require_relative 'rubocop/magic_comment'
|
580
|
+
require_relative 'rubocop/processed_source'
|
581
|
+
require_relative 'rubocop/result_cache'
|
582
|
+
require_relative 'rubocop/runner'
|
583
|
+
require_relative 'rubocop/cli'
|
584
|
+
require_relative 'rubocop/options'
|
585
|
+
require_relative 'rubocop/remote_config'
|