rubocop 0.50.0 → 0.51.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 +2 -6
- data/config/default.yml +20 -11
- data/config/enabled.yml +44 -7
- data/lib/rubocop.rb +526 -514
- data/lib/rubocop/ast/node.rb +9 -9
- data/lib/rubocop/ast/node/mixin/method_dispatch_node.rb +2 -2
- data/lib/rubocop/ast/node/send_node.rb +4 -0
- data/lib/rubocop/cached_data.rb +1 -6
- data/lib/rubocop/cli.rb +7 -6
- data/lib/rubocop/config.rb +58 -22
- data/lib/rubocop/config_loader.rb +37 -21
- data/lib/rubocop/config_loader_resolver.rb +3 -2
- data/lib/rubocop/cop/bundler/duplicated_gem.rb +5 -3
- data/lib/rubocop/cop/bundler/insecure_protocol_source.rb +4 -2
- data/lib/rubocop/cop/bundler/ordered_gems.rb +2 -53
- data/lib/rubocop/cop/commissioner.rb +1 -4
- data/lib/rubocop/cop/cop.rb +50 -17
- data/lib/rubocop/cop/gemspec/ordered_dependencies.rb +96 -0
- data/lib/rubocop/cop/generator.rb +8 -3
- data/lib/rubocop/cop/internal_affairs.rb +6 -5
- data/lib/rubocop/cop/internal_affairs/deprecated_positional_arguments.rb +81 -0
- data/lib/rubocop/cop/internal_affairs/node_type_predicate.rb +1 -1
- data/lib/rubocop/cop/internal_affairs/offense_location_keyword.rb +21 -11
- data/lib/rubocop/cop/internal_affairs/redundant_location_argument.rb +27 -14
- data/lib/rubocop/cop/internal_affairs/redundant_message_argument.rb +38 -16
- data/lib/rubocop/cop/internal_affairs/useless_message_assertion.rb +2 -2
- data/lib/rubocop/cop/layout/block_end_newline.rb +1 -1
- data/lib/rubocop/cop/layout/case_indentation.rb +1 -1
- data/lib/rubocop/cop/layout/closing_parenthesis_indentation.rb +1 -1
- data/lib/rubocop/cop/layout/comment_indentation.rb +4 -2
- data/lib/rubocop/cop/layout/dot_position.rb +1 -1
- data/lib/rubocop/cop/layout/else_alignment.rb +5 -2
- data/lib/rubocop/cop/layout/empty_line_after_magic_comment.rb +1 -1
- data/lib/rubocop/cop/layout/empty_line_between_defs.rb +1 -1
- data/lib/rubocop/cop/layout/empty_lines.rb +1 -1
- data/lib/rubocop/cop/layout/end_of_line.rb +1 -1
- data/lib/rubocop/cop/layout/extra_spacing.rb +2 -2
- data/lib/rubocop/cop/layout/indent_array.rb +1 -1
- data/lib/rubocop/cop/layout/indent_hash.rb +1 -1
- data/lib/rubocop/cop/layout/indent_heredoc.rb +2 -2
- data/lib/rubocop/cop/layout/indentation_width.rb +7 -5
- data/lib/rubocop/cop/layout/initial_indentation.rb +3 -2
- data/lib/rubocop/cop/layout/multiline_assignment_layout.rb +2 -2
- data/lib/rubocop/cop/layout/multiline_block_layout.rb +1 -1
- data/lib/rubocop/cop/layout/rescue_ensure_alignment.rb +3 -1
- data/lib/rubocop/cop/layout/space_after_colon.rb +2 -2
- data/lib/rubocop/cop/layout/space_after_method_name.rb +1 -1
- data/lib/rubocop/cop/layout/space_around_block_parameters.rb +3 -2
- data/lib/rubocop/cop/layout/space_around_equals_in_parameter_default.rb +1 -1
- data/lib/rubocop/cop/layout/space_around_keyword.rb +1 -1
- data/lib/rubocop/cop/layout/space_around_operators.rb +1 -1
- data/lib/rubocop/cop/layout/space_before_block_braces.rb +4 -4
- data/lib/rubocop/cop/layout/space_before_comment.rb +1 -1
- data/lib/rubocop/cop/layout/space_before_first_arg.rb +1 -1
- data/lib/rubocop/cop/layout/space_in_lambda_literal.rb +6 -2
- data/lib/rubocop/cop/layout/space_inside_array_percent_literal.rb +1 -1
- data/lib/rubocop/cop/layout/space_inside_block_braces.rb +2 -2
- data/lib/rubocop/cop/layout/space_inside_hash_literal_braces.rb +5 -2
- data/lib/rubocop/cop/layout/space_inside_parens.rb +9 -0
- data/lib/rubocop/cop/layout/space_inside_percent_literal_delimiters.rb +1 -1
- data/lib/rubocop/cop/layout/tab.rb +5 -2
- data/lib/rubocop/cop/layout/trailing_blank_lines.rb +4 -2
- data/lib/rubocop/cop/layout/trailing_whitespace.rb +1 -1
- data/lib/rubocop/cop/lint/assignment_in_condition.rb +1 -1
- data/lib/rubocop/cop/lint/block_alignment.rb +1 -1
- data/lib/rubocop/cop/lint/boolean_symbol.rb +1 -1
- data/lib/rubocop/cop/lint/circular_argument_reference.rb +3 -14
- data/lib/rubocop/cop/lint/debugger.rb +7 -7
- data/lib/rubocop/cop/lint/deprecated_class_methods.rb +4 -4
- data/lib/rubocop/cop/lint/duplicate_methods.rb +5 -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_when.rb +1 -1
- data/lib/rubocop/cop/lint/end_in_method.rb +1 -1
- data/lib/rubocop/cop/lint/format_parameter_mismatch.rb +1 -1
- data/lib/rubocop/cop/lint/implicit_string_concatenation.rb +1 -1
- data/lib/rubocop/cop/lint/ineffective_access_modifier.rb +4 -3
- data/lib/rubocop/cop/lint/interpolation_check.rb +2 -1
- data/lib/rubocop/cop/lint/{literal_in_condition.rb → literal_as_condition.rb} +19 -5
- data/lib/rubocop/cop/lint/loop.rb +1 -1
- data/lib/rubocop/cop/lint/nested_method_definition.rb +1 -1
- data/lib/rubocop/cop/lint/non_local_exit_from_iterator.rb +2 -2
- data/lib/rubocop/cop/lint/parentheses_as_grouped_expression.rb +3 -2
- data/lib/rubocop/cop/lint/percent_string_array.rb +1 -1
- data/lib/rubocop/cop/lint/rand_one.rb +1 -1
- data/lib/rubocop/cop/lint/redundant_with_index.rb +1 -1
- 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 +1 -1
- data/lib/rubocop/cop/lint/rescue_type.rb +5 -3
- data/lib/rubocop/cop/lint/rescue_without_error_class.rb +6 -3
- data/lib/rubocop/cop/lint/return_in_void_context.rb +24 -13
- data/lib/rubocop/cop/lint/safe_navigation_chain.rb +1 -1
- data/lib/rubocop/cop/lint/script_permission.rb +1 -1
- 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 +1 -1
- data/lib/rubocop/cop/lint/syntax.rb +8 -2
- data/lib/rubocop/cop/lint/underscore_prefixed_variable_name.rb +1 -1
- data/lib/rubocop/cop/lint/unified_integer.rb +2 -2
- data/lib/rubocop/cop/lint/unneeded_disable.rb +11 -4
- data/lib/rubocop/cop/lint/unneeded_require_statement.rb +50 -0
- data/lib/rubocop/cop/lint/unneeded_splat_expansion.rb +2 -2
- data/lib/rubocop/cop/lint/unreachable_code.rb +1 -1
- data/lib/rubocop/cop/lint/unused_method_argument.rb +2 -1
- data/lib/rubocop/cop/lint/uri_escape_unescape.rb +2 -2
- data/lib/rubocop/cop/lint/uri_regexp.rb +3 -3
- data/lib/rubocop/cop/lint/useless_access_modifier.rb +9 -9
- 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 +5 -1
- data/lib/rubocop/cop/lint/void.rb +10 -5
- data/lib/rubocop/cop/metrics/block_nesting.rb +1 -1
- data/lib/rubocop/cop/metrics/line_length.rb +4 -1
- data/lib/rubocop/cop/metrics/parameter_lists.rb +1 -2
- data/lib/rubocop/cop/mixin/array_hash_indentation.rb +3 -2
- data/lib/rubocop/cop/mixin/autocorrect_alignment.rb +1 -1
- 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/empty_lines_around_body.rb +7 -2
- data/lib/rubocop/cop/mixin/end_keyword_alignment.rb +1 -1
- data/lib/rubocop/cop/mixin/enforce_superclass.rb +1 -1
- data/lib/rubocop/cop/mixin/heredoc.rb +1 -1
- data/lib/rubocop/cop/mixin/method_complexity.rb +3 -4
- data/lib/rubocop/cop/mixin/multiline_expression_indentation.rb +1 -1
- data/lib/rubocop/cop/mixin/multiline_literal_brace_layout.rb +10 -4
- data/lib/rubocop/cop/mixin/ordered_gem_node.rb +63 -0
- data/lib/rubocop/cop/mixin/parser_diagnostic.rb +4 -1
- data/lib/rubocop/cop/mixin/space_after_punctuation.rb +2 -1
- data/lib/rubocop/cop/mixin/space_before_punctuation.rb +2 -1
- data/lib/rubocop/cop/mixin/space_inside.rb +1 -1
- data/lib/rubocop/cop/mixin/string_literals_help.rb +1 -1
- data/lib/rubocop/cop/mixin/trailing_comma.rb +5 -5
- data/lib/rubocop/cop/mixin/unused_argument.rb +43 -2
- data/lib/rubocop/cop/naming/accessor_method_name.rb +8 -7
- data/lib/rubocop/cop/naming/ascii_identifiers.rb +1 -1
- data/lib/rubocop/cop/naming/binary_operator_parameter_name.rb +1 -1
- data/lib/rubocop/cop/naming/class_and_module_camel_case.rb +1 -1
- data/lib/rubocop/cop/naming/constant_name.rb +1 -1
- data/lib/rubocop/cop/naming/file_name.rb +1 -1
- data/lib/rubocop/cop/naming/heredoc_delimiter_case.rb +1 -1
- data/lib/rubocop/cop/naming/heredoc_delimiter_naming.rb +3 -2
- data/lib/rubocop/cop/naming/predicate_name.rb +36 -5
- data/lib/rubocop/cop/performance/caller.rb +2 -2
- data/lib/rubocop/cop/performance/case_when_splat.rb +1 -1
- data/lib/rubocop/cop/performance/casecmp.rb +1 -1
- data/lib/rubocop/cop/performance/compare_with_block.rb +6 -2
- data/lib/rubocop/cop/performance/count.rb +3 -1
- data/lib/rubocop/cop/performance/detect.rb +4 -4
- data/lib/rubocop/cop/performance/double_start_end_with.rb +6 -9
- data/lib/rubocop/cop/performance/end_with.rb +1 -1
- data/lib/rubocop/cop/performance/flat_map.rb +3 -1
- data/lib/rubocop/cop/performance/hash_each_methods.rb +13 -10
- data/lib/rubocop/cop/performance/lstrip_rstrip.rb +3 -1
- data/lib/rubocop/cop/performance/range_include.rb +1 -1
- data/lib/rubocop/cop/performance/redundant_block_call.rb +1 -1
- data/lib/rubocop/cop/performance/redundant_match.rb +6 -5
- data/lib/rubocop/cop/performance/redundant_merge.rb +1 -1
- data/lib/rubocop/cop/performance/redundant_sort_by.rb +4 -1
- data/lib/rubocop/cop/performance/regexp_match.rb +4 -4
- 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 +1 -1
- data/lib/rubocop/cop/performance/start_with.rb +1 -1
- data/lib/rubocop/cop/performance/string_replacement.rb +2 -2
- data/lib/rubocop/cop/performance/times_map.rb +3 -3
- data/lib/rubocop/cop/performance/unfreeze_string.rb +2 -2
- data/lib/rubocop/cop/performance/uri_default_parser.rb +2 -2
- data/lib/rubocop/cop/rails/action_filter.rb +1 -1
- data/lib/rubocop/cop/rails/active_support_aliases.rb +1 -2
- data/lib/rubocop/cop/rails/application_job.rb +1 -1
- data/lib/rubocop/cop/rails/application_record.rb +1 -1
- data/lib/rubocop/cop/rails/blank.rb +20 -17
- data/lib/rubocop/cop/rails/date.rb +7 -6
- data/lib/rubocop/cop/rails/delegate.rb +1 -1
- data/lib/rubocop/cop/rails/delegate_allow_blank.rb +1 -1
- data/lib/rubocop/cop/rails/dynamic_find_by.rb +2 -2
- data/lib/rubocop/cop/rails/enum_uniqueness.rb +2 -2
- data/lib/rubocop/cop/rails/exit.rb +1 -1
- data/lib/rubocop/cop/rails/file_path.rb +6 -8
- 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 +1 -1
- data/lib/rubocop/cop/rails/has_many_or_has_one_dependent.rb +35 -11
- data/lib/rubocop/cop/rails/http_positional_arguments.rb +3 -2
- data/lib/rubocop/cop/rails/not_null_column.rb +5 -5
- data/lib/rubocop/cop/rails/output.rb +2 -2
- data/lib/rubocop/cop/rails/output_safety.rb +2 -1
- data/lib/rubocop/cop/rails/present.rb +14 -17
- data/lib/rubocop/cop/rails/read_write_attribute.rb +3 -3
- data/lib/rubocop/cop/rails/relative_date_constant.rb +1 -1
- data/lib/rubocop/cop/rails/request_referer.rb +2 -2
- data/lib/rubocop/cop/rails/reversible_migration.rb +21 -19
- data/lib/rubocop/cop/rails/safe_navigation.rb +2 -2
- data/lib/rubocop/cop/rails/save_bang.rb +12 -12
- data/lib/rubocop/cop/rails/scope_args.rb +1 -1
- 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 +3 -1
- data/lib/rubocop/cop/rails/unknown_env.rb +63 -0
- data/lib/rubocop/cop/rails/validation.rb +1 -1
- data/lib/rubocop/cop/registry.rb +2 -1
- data/lib/rubocop/cop/security/eval.rb +2 -2
- data/lib/rubocop/cop/security/json_load.rb +2 -2
- data/lib/rubocop/cop/security/marshal_load.rb +3 -3
- data/lib/rubocop/cop/security/yaml_load.rb +2 -2
- data/lib/rubocop/cop/style/alias.rb +3 -3
- data/lib/rubocop/cop/style/and_or.rb +1 -1
- data/lib/rubocop/cop/style/array_join.rb +1 -1
- data/lib/rubocop/cop/style/ascii_comments.rb +1 -1
- data/lib/rubocop/cop/style/attr.rb +1 -1
- data/lib/rubocop/cop/style/auto_resource_cleanup.rb +2 -2
- data/lib/rubocop/cop/style/bare_percent_literals.rb +1 -1
- data/lib/rubocop/cop/style/begin_block.rb +1 -1
- data/lib/rubocop/cop/style/block_delimiters.rb +1 -1
- data/lib/rubocop/cop/style/braces_around_hash_parameters.rb +22 -19
- data/lib/rubocop/cop/style/case_equality.rb +1 -1
- data/lib/rubocop/cop/style/class_and_module_children.rb +2 -2
- data/lib/rubocop/cop/style/class_check.rb +1 -1
- data/lib/rubocop/cop/style/class_methods.rb +2 -1
- data/lib/rubocop/cop/style/class_vars.rb +1 -1
- data/lib/rubocop/cop/style/collection_methods.rb +1 -1
- data/lib/rubocop/cop/style/colon_method_call.rb +2 -2
- data/lib/rubocop/cop/style/comment_annotation.rb +5 -2
- data/lib/rubocop/cop/style/commented_keyword.rb +81 -0
- data/lib/rubocop/cop/style/conditional_assignment.rb +1 -1
- data/lib/rubocop/cop/style/copyright.rb +1 -1
- data/lib/rubocop/cop/style/date_time.rb +44 -0
- data/lib/rubocop/cop/style/def_with_parentheses.rb +1 -1
- data/lib/rubocop/cop/style/dir.rb +2 -6
- data/lib/rubocop/cop/style/documentation.rb +1 -1
- data/lib/rubocop/cop/style/double_negation.rb +1 -1
- data/lib/rubocop/cop/style/each_for_simple_loop.rb +1 -1
- data/lib/rubocop/cop/style/each_with_object.rb +2 -1
- data/lib/rubocop/cop/style/empty_case_condition.rb +1 -1
- data/lib/rubocop/cop/style/empty_else.rb +2 -2
- data/lib/rubocop/cop/style/empty_literal.rb +9 -9
- data/lib/rubocop/cop/style/encoding.rb +7 -51
- data/lib/rubocop/cop/style/end_block.rb +1 -1
- data/lib/rubocop/cop/style/even_odd.rb +1 -1
- data/lib/rubocop/cop/style/for.rb +6 -2
- data/lib/rubocop/cop/style/format_string.rb +4 -3
- data/lib/rubocop/cop/style/format_string_token.rb +2 -1
- data/lib/rubocop/cop/style/frozen_string_literal_comment.rb +3 -3
- data/lib/rubocop/cop/style/global_vars.rb +1 -1
- data/lib/rubocop/cop/style/guard_clause.rb +2 -2
- data/lib/rubocop/cop/style/hash_syntax.rb +2 -3
- data/lib/rubocop/cop/style/if_inside_else.rb +1 -1
- data/lib/rubocop/cop/style/if_unless_modifier.rb +2 -1
- data/lib/rubocop/cop/style/if_unless_modifier_of_if_unless.rb +2 -1
- data/lib/rubocop/cop/style/implicit_runtime_error.rb +2 -2
- data/lib/rubocop/cop/style/infinite_loop.rb +2 -2
- data/lib/rubocop/cop/style/inverse_methods.rb +4 -6
- data/lib/rubocop/cop/style/lambda.rb +3 -3
- data/lib/rubocop/cop/style/line_end_concatenation.rb +1 -1
- data/lib/rubocop/cop/style/method_call_without_args_parentheses.rb +1 -1
- data/lib/rubocop/cop/style/method_called_on_do_end_block.rb +1 -1
- data/lib/rubocop/cop/style/method_def_parentheses.rb +4 -2
- data/lib/rubocop/cop/style/min_max.rb +2 -1
- data/lib/rubocop/cop/style/mixin_usage.rb +73 -0
- data/lib/rubocop/cop/style/module_function.rb +2 -2
- data/lib/rubocop/cop/style/multiline_block_chain.rb +1 -1
- data/lib/rubocop/cop/style/multiline_if_then.rb +2 -1
- data/lib/rubocop/cop/style/multiline_memoization.rb +1 -1
- data/lib/rubocop/cop/style/nested_modifier.rb +1 -1
- data/lib/rubocop/cop/style/nested_parenthesized_calls.rb +3 -1
- data/lib/rubocop/cop/style/next.rb +2 -1
- data/lib/rubocop/cop/style/nil_comparison.rb +2 -2
- data/lib/rubocop/cop/style/non_nil_check.rb +2 -2
- data/lib/rubocop/cop/style/not.rb +1 -1
- data/lib/rubocop/cop/style/numeric_predicate.rb +2 -2
- data/lib/rubocop/cop/style/option_hash.rb +0 -11
- data/lib/rubocop/cop/style/or_assignment.rb +1 -1
- data/lib/rubocop/cop/style/parallel_assignment.rb +1 -1
- data/lib/rubocop/cop/style/percent_q_literals.rb +1 -1
- data/lib/rubocop/cop/style/preferred_hash_methods.rb +1 -1
- data/lib/rubocop/cop/style/proc.rb +1 -1
- data/lib/rubocop/cop/style/redundant_begin.rb +1 -1
- data/lib/rubocop/cop/style/redundant_exception.rb +4 -4
- data/lib/rubocop/cop/style/redundant_parentheses.rb +1 -1
- data/lib/rubocop/cop/style/redundant_return.rb +1 -1
- data/lib/rubocop/cop/style/regexp_literal.rb +2 -2
- data/lib/rubocop/cop/style/return_nil.rb +2 -7
- data/lib/rubocop/cop/style/safe_navigation.rb +27 -30
- data/lib/rubocop/cop/style/self_assignment.rb +2 -2
- data/lib/rubocop/cop/style/semicolon.rb +1 -1
- data/lib/rubocop/cop/style/send.rb +1 -1
- data/lib/rubocop/cop/style/signal_exception.rb +4 -3
- data/lib/rubocop/cop/style/stderr_puts.rb +52 -0
- data/lib/rubocop/cop/style/string_literals.rb +4 -3
- data/lib/rubocop/cop/style/string_methods.rb +1 -1
- data/lib/rubocop/cop/style/struct_inheritance.rb +3 -3
- data/lib/rubocop/cop/style/symbol_array.rb +1 -5
- data/lib/rubocop/cop/style/symbol_proc.rb +5 -5
- data/lib/rubocop/cop/style/ternary_parentheses.rb +2 -2
- data/lib/rubocop/cop/style/trailing_underscore_variable.rb +46 -23
- data/lib/rubocop/cop/style/trivial_accessors.rb +3 -1
- data/lib/rubocop/cop/style/variable_interpolation.rb +0 -2
- data/lib/rubocop/cop/style/when_then.rb +1 -1
- data/lib/rubocop/cop/style/while_until_do.rb +2 -1
- data/lib/rubocop/cop/style/while_until_modifier.rb +2 -1
- data/lib/rubocop/cop/style/word_array.rb +2 -2
- data/lib/rubocop/cop/style/zero_length_predicate.rb +4 -4
- data/lib/rubocop/cop/util.rb +1 -12
- data/lib/rubocop/formatter/html_formatter.rb +1 -1
- data/lib/rubocop/formatter/simple_text_formatter.rb +2 -2
- data/lib/rubocop/node_pattern.rb +1 -1
- data/lib/rubocop/options.rb +4 -0
- data/lib/rubocop/processed_source.rb +2 -8
- data/lib/rubocop/rake_task.rb +16 -23
- data/lib/rubocop/remote_config.rb +8 -0
- data/lib/rubocop/rspec/shared_contexts.rb +0 -8
- data/lib/rubocop/rspec/support.rb +5 -5
- data/lib/rubocop/version.rb +1 -1
- metadata +40 -30
- data/lib/rubocop/cop/lint/invalid_character_literal.rb +0 -41
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6e80ddd697b6b2f3dd4be49d06709d15be331d71
|
4
|
+
data.tar.gz: e1a06966a86f061f09e705fe99229d00ac6b9e9a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bc105fff3d2e926b2f9c6acddac7c4593f70dac3a2751290a772a743bc7f88e23c797e8c9c6cda4ca4abe6f660243dd43e4f8067859a6ebed132ddc60d906350
|
7
|
+
data.tar.gz: d3723e0bfc8a0f321729066f0c092116e97099f60075d3a2424a6747df98e62722393c0734d434ade5d524b470be208b4a9148fa457ed151b19930eb134f2fa9
|
data/README.md
CHANGED
@@ -51,7 +51,7 @@ haven't reached version 1.0 yet). To prevent an unwanted RuboCop update you
|
|
51
51
|
might want to use a conservative version locking in your `Gemfile`:
|
52
52
|
|
53
53
|
```rb
|
54
|
-
gem 'rubocop', '~> 0.
|
54
|
+
gem 'rubocop', '~> 0.51.0', require: false
|
55
55
|
```
|
56
56
|
|
57
57
|
## Quickstart
|
@@ -71,11 +71,7 @@ You can read a ton more about RuboCop in its [official manual](http://rubocop.re
|
|
71
71
|
|
72
72
|
RuboCop supports the following Ruby implementations:
|
73
73
|
|
74
|
-
* MRI 2.
|
75
|
-
* MRI 2.1
|
76
|
-
* MRI 2.2
|
77
|
-
* MRI 2.3
|
78
|
-
* MRI 2.4
|
74
|
+
* MRI 2.1+
|
79
75
|
* JRuby 9.0+
|
80
76
|
* Rubinius 2.0+
|
81
77
|
|
data/config/default.yml
CHANGED
@@ -531,6 +531,13 @@ Layout/SpaceInsideStringInterpolation:
|
|
531
531
|
- space
|
532
532
|
- no_space
|
533
533
|
|
534
|
+
Layout/Tab:
|
535
|
+
# By default, the indentation width from Layout/IndentationWidth is used
|
536
|
+
# But it can be overridden by setting this parameter
|
537
|
+
# It is used during auto-correction to determine how many spaces should
|
538
|
+
# replace each tab.
|
539
|
+
IndentationWidth: ~
|
540
|
+
|
534
541
|
Layout/TrailingBlankLines:
|
535
542
|
EnforcedStyle: final_newline
|
536
543
|
SupportedStyles:
|
@@ -631,6 +638,10 @@ Naming/PredicateName:
|
|
631
638
|
# should still be accepted
|
632
639
|
NameWhitelist:
|
633
640
|
- is_a?
|
641
|
+
# Method definition macros for dynamically generated methods.
|
642
|
+
MethodDefinitionMacros:
|
643
|
+
- define_method
|
644
|
+
- define_singleton_method
|
634
645
|
# Exclude Rspec specs because there is a strong convention to write spec
|
635
646
|
# helpers in the form of `have_something` or `be_something`.
|
636
647
|
Exclude:
|
@@ -878,17 +889,6 @@ Style/EmptyMethod:
|
|
878
889
|
- compact
|
879
890
|
- expanded
|
880
891
|
|
881
|
-
# Checks whether the source file has a utf-8 encoding comment or not
|
882
|
-
# AutoCorrectEncodingComment must match the regex
|
883
|
-
# /#.*coding\s?[:=]\s?(?:UTF|utf)-8/
|
884
|
-
Style/Encoding:
|
885
|
-
EnforcedStyle: never
|
886
|
-
SupportedStyles:
|
887
|
-
- when_needed
|
888
|
-
- always
|
889
|
-
- never
|
890
|
-
AutoCorrectEncodingComment: '# encoding: utf-8'
|
891
|
-
|
892
892
|
# Checks use of for or each in multiline loops.
|
893
893
|
Style/For:
|
894
894
|
EnforcedStyle: each
|
@@ -1587,6 +1587,12 @@ Rails/UniqBeforePluck:
|
|
1587
1587
|
- aggressive
|
1588
1588
|
AutoCorrect: false
|
1589
1589
|
|
1590
|
+
Rails/UnknownEnv:
|
1591
|
+
Environments:
|
1592
|
+
- development
|
1593
|
+
- test
|
1594
|
+
- production
|
1595
|
+
|
1590
1596
|
Rails/SkipsModelValidations:
|
1591
1597
|
Blacklist:
|
1592
1598
|
- decrement!
|
@@ -1607,3 +1613,6 @@ Rails/Validation:
|
|
1607
1613
|
|
1608
1614
|
Bundler/OrderedGems:
|
1609
1615
|
TreatCommentsAsGroupSeparators: true
|
1616
|
+
|
1617
|
+
Gemspec/OrderedDependencies:
|
1618
|
+
TreatCommentsAsGroupSeparators: true
|
data/config/enabled.yml
CHANGED
@@ -499,6 +499,10 @@ Style/CommentAnnotation:
|
|
499
499
|
StyleGuide: '#annotate-keywords'
|
500
500
|
Enabled: true
|
501
501
|
|
502
|
+
Style/CommentedKeyword:
|
503
|
+
Description: 'Do not place comments on the same line as certain keywords.'
|
504
|
+
Enabled: true
|
505
|
+
|
502
506
|
Style/ConditionalAssignment:
|
503
507
|
Description: >-
|
504
508
|
Use the return value of `if` and `case` statements for
|
@@ -506,6 +510,11 @@ Style/ConditionalAssignment:
|
|
506
510
|
of assigning that variable inside of each branch.
|
507
511
|
Enabled: true
|
508
512
|
|
513
|
+
Style/DateTime:
|
514
|
+
Description: 'Use Date or Time over DateTime.'
|
515
|
+
StyleGuide: '#date--time'
|
516
|
+
Enabled: true
|
517
|
+
|
509
518
|
Style/DefWithParentheses:
|
510
519
|
Description: 'Use def with parentheses when there are arguments.'
|
511
520
|
StyleGuide: '#method-parens'
|
@@ -954,6 +963,11 @@ Style/StabbyLambdaParentheses:
|
|
954
963
|
StyleGuide: '#stabby-lambda-with-args'
|
955
964
|
Enabled: true
|
956
965
|
|
966
|
+
Style/StderrPuts:
|
967
|
+
Description: 'Use `warn` instead of `$stderr.puts`.'
|
968
|
+
StyleGuide: '#warn'
|
969
|
+
Enabled: true
|
970
|
+
|
957
971
|
Style/StringLiterals:
|
958
972
|
Description: 'Checks if uses of quotes match the configured preference.'
|
959
973
|
StyleGuide: '#consistent-string-literals'
|
@@ -987,6 +1001,10 @@ Style/TernaryParentheses:
|
|
987
1001
|
Description: 'Checks for use of parentheses around ternary conditions.'
|
988
1002
|
Enabled: true
|
989
1003
|
|
1004
|
+
Style/MixinUsage:
|
1005
|
+
Description: 'Checks that `include`, `extend` and `prepend` exists at the top level.'
|
1006
|
+
Enabled: true
|
1007
|
+
|
990
1008
|
Style/TrailingCommaInArguments:
|
991
1009
|
Description: 'Checks for trailing comma in argument lists.'
|
992
1010
|
StyleGuide: '#no-trailing-params-comma'
|
@@ -1264,13 +1282,7 @@ Lint/InterpolationCheck:
|
|
1264
1282
|
Description: 'Raise warning for interpolation in single q strs'
|
1265
1283
|
Enabled: true
|
1266
1284
|
|
1267
|
-
Lint/
|
1268
|
-
Description: >-
|
1269
|
-
Checks for invalid character literals with a non-escaped
|
1270
|
-
whitespace character.
|
1271
|
-
Enabled: true
|
1272
|
-
|
1273
|
-
Lint/LiteralInCondition:
|
1285
|
+
Lint/LiteralAsCondition:
|
1274
1286
|
Description: 'Checks of literals used in conditions.'
|
1275
1287
|
Enabled: true
|
1276
1288
|
|
@@ -1331,6 +1343,16 @@ Lint/RedundantWithIndex:
|
|
1331
1343
|
Description: 'Checks for redundant `with_index`.'
|
1332
1344
|
Enabled: true
|
1333
1345
|
|
1346
|
+
Lint/RedundantWithObject:
|
1347
|
+
Description: 'Checks for redundant `with_object`.'
|
1348
|
+
Enabled: true
|
1349
|
+
|
1350
|
+
Lint/RegexpAsCondition:
|
1351
|
+
Description: >-
|
1352
|
+
Do not use regexp literal as a condition.
|
1353
|
+
The regexp literal matches `$_` implicitly.
|
1354
|
+
Enabled: true
|
1355
|
+
|
1334
1356
|
Lint/RequireParentheses:
|
1335
1357
|
Description: >-
|
1336
1358
|
Use parentheses in the method call to avoid confusion
|
@@ -1395,6 +1417,10 @@ Lint/UnneededDisable:
|
|
1395
1417
|
It must be explicitly disabled.
|
1396
1418
|
Enabled: true
|
1397
1419
|
|
1420
|
+
Lint/UnneededRequireStatement:
|
1421
|
+
Description: 'Checks for unnecessary `require` statement.'
|
1422
|
+
Enabled: true
|
1423
|
+
|
1398
1424
|
Lint/UnneededSplatExpansion:
|
1399
1425
|
Description: 'Checks for splat unnecessarily being called on literals'
|
1400
1426
|
Enabled: true
|
@@ -1786,6 +1812,10 @@ Rails/UniqBeforePluck:
|
|
1786
1812
|
Description: 'Prefer the use of uniq or distinct before pluck.'
|
1787
1813
|
Enabled: true
|
1788
1814
|
|
1815
|
+
Rails/UnknownEnv:
|
1816
|
+
Description: 'Use correct environment name.'
|
1817
|
+
Enabled: true
|
1818
|
+
|
1789
1819
|
Rails/SkipsModelValidations:
|
1790
1820
|
Description: >-
|
1791
1821
|
Use methods that skips model validations with caution.
|
@@ -1853,3 +1883,10 @@ Bundler/OrderedGems:
|
|
1853
1883
|
Include:
|
1854
1884
|
- '**/Gemfile'
|
1855
1885
|
- '**/gems.rb'
|
1886
|
+
|
1887
|
+
Gemspec/OrderedDependencies:
|
1888
|
+
Description: >-
|
1889
|
+
Dependencies in the gemspec should be alphabetically sorted.
|
1890
|
+
Enabled: true
|
1891
|
+
Include:
|
1892
|
+
- '**/*.gemspec'
|
data/lib/rubocop.rb
CHANGED
@@ -13,534 +13,546 @@ require 'powerpack/string/blank'
|
|
13
13
|
require 'powerpack/string/strip_indent'
|
14
14
|
require 'unicode/display_width'
|
15
15
|
|
16
|
-
|
16
|
+
require_relative 'rubocop/version'
|
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
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
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/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/case_node'
|
40
|
+
require_relative 'rubocop/ast/node/def_node'
|
41
|
+
require_relative 'rubocop/ast/node/ensure_node'
|
42
|
+
require_relative 'rubocop/ast/node/for_node'
|
43
|
+
require_relative 'rubocop/ast/node/hash_node'
|
44
|
+
require_relative 'rubocop/ast/node/if_node'
|
45
|
+
require_relative 'rubocop/ast/node/keyword_splat_node'
|
46
|
+
require_relative 'rubocop/ast/node/or_node'
|
47
|
+
require_relative 'rubocop/ast/node/pair_node'
|
48
|
+
require_relative 'rubocop/ast/node/regexp_node'
|
49
|
+
require_relative 'rubocop/ast/node/resbody_node'
|
50
|
+
require_relative 'rubocop/ast/node/send_node'
|
51
|
+
require_relative 'rubocop/ast/node/super_node'
|
52
|
+
require_relative 'rubocop/ast/node/until_node'
|
53
|
+
require_relative 'rubocop/ast/node/when_node'
|
54
|
+
require_relative 'rubocop/ast/node/while_node'
|
55
|
+
require_relative 'rubocop/ast/node/yield_node'
|
56
|
+
require_relative 'rubocop/ast/builder'
|
57
|
+
require_relative 'rubocop/ast/traversal'
|
58
|
+
require_relative 'rubocop/error'
|
59
|
+
require_relative 'rubocop/warning'
|
60
60
|
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
61
|
+
require_relative 'rubocop/cop/util'
|
62
|
+
require_relative 'rubocop/cop/offense'
|
63
|
+
require_relative 'rubocop/cop/message_annotator'
|
64
|
+
require_relative 'rubocop/cop/ignored_node'
|
65
|
+
require_relative 'rubocop/cop/autocorrect_logic'
|
66
|
+
require_relative 'rubocop/cop/badge'
|
67
|
+
require_relative 'rubocop/cop/registry'
|
68
|
+
require_relative 'rubocop/cop/cop'
|
69
|
+
require_relative 'rubocop/cop/commissioner'
|
70
|
+
require_relative 'rubocop/cop/corrector'
|
71
|
+
require_relative 'rubocop/cop/force'
|
72
|
+
require_relative 'rubocop/cop/severity'
|
73
|
+
require_relative 'rubocop/cop/generator'
|
74
74
|
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
75
|
+
require_relative 'rubocop/cop/variable_force'
|
76
|
+
require_relative 'rubocop/cop/variable_force/branch'
|
77
|
+
require_relative 'rubocop/cop/variable_force/branchable'
|
78
|
+
require_relative 'rubocop/cop/variable_force/variable'
|
79
|
+
require_relative 'rubocop/cop/variable_force/assignment'
|
80
|
+
require_relative 'rubocop/cop/variable_force/reference'
|
81
|
+
require_relative 'rubocop/cop/variable_force/scope'
|
82
|
+
require_relative 'rubocop/cop/variable_force/variable_table'
|
83
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
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
84
|
+
require_relative 'rubocop/cop/mixin/annotation_comment'
|
85
|
+
require_relative 'rubocop/cop/mixin/array_hash_indentation'
|
86
|
+
require_relative 'rubocop/cop/mixin/array_min_size'
|
87
|
+
require_relative 'rubocop/cop/mixin/array_syntax'
|
88
|
+
require_relative 'rubocop/cop/mixin/autocorrect_alignment'
|
89
|
+
require_relative 'rubocop/cop/mixin/check_assignment'
|
90
|
+
require_relative 'rubocop/cop/mixin/configurable_max'
|
91
|
+
require_relative 'rubocop/cop/mixin/code_length' # relies on configurable_max
|
92
|
+
require_relative 'rubocop/cop/mixin/classish_length' # relies on code_length
|
93
|
+
require_relative 'rubocop/cop/mixin/configurable_enforced_style'
|
94
|
+
require_relative 'rubocop/cop/mixin/configurable_formatting'
|
95
|
+
require_relative 'rubocop/cop/mixin/configurable_naming'
|
96
|
+
require_relative 'rubocop/cop/mixin/configurable_numbering'
|
97
|
+
require_relative 'rubocop/cop/mixin/def_node'
|
98
|
+
require_relative 'rubocop/cop/mixin/documentation_comment'
|
99
|
+
require_relative 'rubocop/cop/mixin/duplication'
|
100
|
+
require_relative 'rubocop/cop/mixin/empty_lines_around_body'
|
101
|
+
require_relative 'rubocop/cop/mixin/end_keyword_alignment'
|
102
|
+
require_relative 'rubocop/cop/mixin/enforce_superclass'
|
103
|
+
require_relative 'rubocop/cop/mixin/first_element_line_break'
|
104
|
+
require_relative 'rubocop/cop/mixin/frozen_string_literal'
|
105
|
+
require_relative 'rubocop/cop/mixin/hash_alignment'
|
106
|
+
require_relative 'rubocop/cop/mixin/ignored_pattern'
|
107
|
+
require_relative 'rubocop/cop/mixin/integer_node'
|
108
|
+
require_relative 'rubocop/cop/mixin/match_range'
|
109
|
+
require_relative 'rubocop/cop/mixin/method_complexity'
|
110
|
+
require_relative 'rubocop/cop/mixin/method_preference'
|
111
|
+
require_relative 'rubocop/cop/mixin/min_body_length'
|
112
|
+
require_relative 'rubocop/cop/mixin/multiline_expression_indentation'
|
113
|
+
require_relative 'rubocop/cop/mixin/multiline_literal_brace_layout'
|
114
|
+
require_relative 'rubocop/cop/mixin/negative_conditional'
|
115
|
+
require_relative 'rubocop/cop/mixin/heredoc'
|
116
|
+
require_relative 'rubocop/cop/mixin/on_normal_if_unless'
|
117
|
+
require_relative 'rubocop/cop/mixin/ordered_gem_node'
|
118
|
+
require_relative 'rubocop/cop/mixin/parentheses'
|
119
|
+
require_relative 'rubocop/cop/mixin/parser_diagnostic'
|
120
|
+
require_relative 'rubocop/cop/mixin/percent_array'
|
121
|
+
require_relative 'rubocop/cop/mixin/percent_literal'
|
122
|
+
require_relative 'rubocop/cop/mixin/preceding_following_alignment'
|
123
|
+
require_relative 'rubocop/cop/mixin/rescue_node'
|
124
|
+
require_relative 'rubocop/cop/mixin/safe_assignment'
|
125
|
+
require_relative 'rubocop/cop/mixin/safe_mode'
|
126
|
+
require_relative 'rubocop/cop/mixin/space_after_punctuation'
|
127
|
+
require_relative 'rubocop/cop/mixin/space_before_punctuation'
|
128
|
+
require_relative 'rubocop/cop/mixin/surrounding_space'
|
129
|
+
require_relative 'rubocop/cop/mixin/space_inside' # relies on surrounding_space
|
130
|
+
require_relative 'rubocop/cop/mixin/statement_modifier'
|
131
|
+
require_relative 'rubocop/cop/mixin/string_help'
|
132
|
+
require_relative 'rubocop/cop/mixin/string_literals_help'
|
133
|
+
require_relative 'rubocop/cop/mixin/target_ruby_version'
|
134
|
+
require_relative 'rubocop/cop/mixin/target_rails_version'
|
135
|
+
require_relative 'rubocop/cop/mixin/too_many_lines'
|
136
|
+
require_relative 'rubocop/cop/mixin/trailing_comma'
|
137
|
+
require_relative 'rubocop/cop/mixin/unused_argument'
|
137
138
|
|
138
|
-
|
139
|
-
|
140
|
-
|
139
|
+
require_relative 'rubocop/cop/bundler/duplicated_gem'
|
140
|
+
require_relative 'rubocop/cop/bundler/insecure_protocol_source'
|
141
|
+
require_relative 'rubocop/cop/bundler/ordered_gems'
|
141
142
|
|
142
|
-
|
143
|
-
require 'rubocop/cop/layout/align_array'
|
144
|
-
require 'rubocop/cop/layout/align_hash'
|
145
|
-
require 'rubocop/cop/layout/align_parameters'
|
146
|
-
require 'rubocop/cop/layout/block_end_newline'
|
147
|
-
require 'rubocop/cop/layout/case_indentation'
|
148
|
-
require 'rubocop/cop/layout/closing_parenthesis_indentation'
|
149
|
-
require 'rubocop/cop/layout/comment_indentation'
|
150
|
-
require 'rubocop/cop/layout/dot_position'
|
151
|
-
require 'rubocop/cop/layout/else_alignment'
|
152
|
-
require 'rubocop/cop/layout/empty_line_after_magic_comment'
|
153
|
-
require 'rubocop/cop/layout/empty_line_between_defs'
|
154
|
-
require 'rubocop/cop/layout/empty_lines_around_access_modifier'
|
155
|
-
require 'rubocop/cop/layout/empty_lines_around_begin_body'
|
156
|
-
require 'rubocop/cop/layout/empty_lines_around_block_body'
|
157
|
-
require 'rubocop/cop/layout/empty_lines_around_class_body'
|
158
|
-
require 'rubocop/cop/layout/empty_lines_around_exception_handling_keywords'
|
159
|
-
require 'rubocop/cop/layout/empty_lines_around_method_body'
|
160
|
-
require 'rubocop/cop/layout/empty_lines_around_module_body'
|
161
|
-
require 'rubocop/cop/layout/empty_lines'
|
162
|
-
require 'rubocop/cop/layout/end_of_line'
|
163
|
-
require 'rubocop/cop/layout/extra_spacing'
|
164
|
-
require 'rubocop/cop/layout/first_array_element_line_break'
|
165
|
-
require 'rubocop/cop/layout/first_hash_element_line_break'
|
166
|
-
require 'rubocop/cop/layout/first_method_argument_line_break'
|
167
|
-
require 'rubocop/cop/layout/first_method_parameter_line_break'
|
168
|
-
require 'rubocop/cop/layout/first_parameter_indentation'
|
169
|
-
require 'rubocop/cop/layout/indent_array'
|
170
|
-
require 'rubocop/cop/layout/indent_assignment'
|
171
|
-
require 'rubocop/cop/layout/indentation_consistency'
|
172
|
-
require 'rubocop/cop/layout/indentation_width'
|
173
|
-
require 'rubocop/cop/layout/indent_hash'
|
174
|
-
require 'rubocop/cop/layout/indent_heredoc'
|
175
|
-
require 'rubocop/cop/layout/initial_indentation'
|
176
|
-
require 'rubocop/cop/layout/leading_comment_space'
|
177
|
-
require 'rubocop/cop/layout/multiline_array_brace_layout'
|
178
|
-
require 'rubocop/cop/layout/multiline_assignment_layout'
|
179
|
-
require 'rubocop/cop/layout/multiline_block_layout'
|
180
|
-
require 'rubocop/cop/layout/multiline_hash_brace_layout'
|
181
|
-
require 'rubocop/cop/layout/multiline_method_call_brace_layout'
|
182
|
-
require 'rubocop/cop/layout/multiline_method_call_indentation'
|
183
|
-
require 'rubocop/cop/layout/multiline_method_definition_brace_layout'
|
184
|
-
require 'rubocop/cop/layout/multiline_operation_indentation'
|
185
|
-
require 'rubocop/cop/layout/rescue_ensure_alignment'
|
186
|
-
require 'rubocop/cop/layout/space_after_colon'
|
187
|
-
require 'rubocop/cop/layout/space_after_comma'
|
188
|
-
require 'rubocop/cop/layout/space_after_method_name'
|
189
|
-
require 'rubocop/cop/layout/space_after_not'
|
190
|
-
require 'rubocop/cop/layout/space_after_semicolon'
|
191
|
-
require 'rubocop/cop/layout/space_around_block_parameters'
|
192
|
-
require 'rubocop/cop/layout/space_around_equals_in_parameter_default'
|
193
|
-
require 'rubocop/cop/layout/space_around_keyword'
|
194
|
-
require 'rubocop/cop/layout/space_around_operators'
|
195
|
-
require 'rubocop/cop/layout/space_before_block_braces'
|
196
|
-
require 'rubocop/cop/layout/space_before_comma'
|
197
|
-
require 'rubocop/cop/layout/space_before_comment'
|
198
|
-
require 'rubocop/cop/layout/space_before_first_arg'
|
199
|
-
require 'rubocop/cop/layout/space_before_semicolon'
|
200
|
-
require 'rubocop/cop/layout/space_in_lambda_literal'
|
201
|
-
require 'rubocop/cop/layout/space_inside_array_percent_literal'
|
202
|
-
require 'rubocop/cop/layout/space_inside_block_braces'
|
203
|
-
require 'rubocop/cop/layout/space_inside_brackets'
|
204
|
-
require 'rubocop/cop/layout/space_inside_hash_literal_braces'
|
205
|
-
require 'rubocop/cop/layout/space_inside_parens'
|
206
|
-
require 'rubocop/cop/layout/space_inside_percent_literal_delimiters'
|
207
|
-
require 'rubocop/cop/layout/space_inside_range_literal'
|
208
|
-
require 'rubocop/cop/layout/space_inside_string_interpolation'
|
209
|
-
require 'rubocop/cop/layout/tab'
|
210
|
-
require 'rubocop/cop/layout/trailing_blank_lines'
|
211
|
-
require 'rubocop/cop/layout/trailing_whitespace'
|
143
|
+
require_relative 'rubocop/cop/gemspec/ordered_dependencies'
|
212
144
|
|
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
|
-
|
267
|
-
|
268
|
-
|
269
|
-
|
270
|
-
|
271
|
-
|
272
|
-
|
273
|
-
|
274
|
-
|
275
|
-
|
276
|
-
|
277
|
-
|
278
|
-
|
279
|
-
|
280
|
-
|
281
|
-
|
145
|
+
require_relative 'rubocop/cop/layout/access_modifier_indentation'
|
146
|
+
require_relative 'rubocop/cop/layout/align_array'
|
147
|
+
require_relative 'rubocop/cop/layout/align_hash'
|
148
|
+
require_relative 'rubocop/cop/layout/align_parameters'
|
149
|
+
require_relative 'rubocop/cop/layout/block_end_newline'
|
150
|
+
require_relative 'rubocop/cop/layout/case_indentation'
|
151
|
+
require_relative 'rubocop/cop/layout/closing_parenthesis_indentation'
|
152
|
+
require_relative 'rubocop/cop/layout/comment_indentation'
|
153
|
+
require_relative 'rubocop/cop/layout/dot_position'
|
154
|
+
require_relative 'rubocop/cop/layout/else_alignment'
|
155
|
+
require_relative 'rubocop/cop/layout/empty_line_after_magic_comment'
|
156
|
+
require_relative 'rubocop/cop/layout/empty_line_between_defs'
|
157
|
+
require_relative 'rubocop/cop/layout/empty_lines_around_access_modifier'
|
158
|
+
require_relative 'rubocop/cop/layout/empty_lines_around_begin_body'
|
159
|
+
require_relative 'rubocop/cop/layout/empty_lines_around_block_body'
|
160
|
+
require_relative 'rubocop/cop/layout/empty_lines_around_class_body'
|
161
|
+
require_relative 'rubocop/cop/layout/empty_lines_around_exception_handling_keywords' # rubocop:disable Metrics/LineLength
|
162
|
+
require_relative 'rubocop/cop/layout/empty_lines_around_method_body'
|
163
|
+
require_relative 'rubocop/cop/layout/empty_lines_around_module_body'
|
164
|
+
require_relative 'rubocop/cop/layout/empty_lines'
|
165
|
+
require_relative 'rubocop/cop/layout/end_of_line'
|
166
|
+
require_relative 'rubocop/cop/layout/extra_spacing'
|
167
|
+
require_relative 'rubocop/cop/layout/first_array_element_line_break'
|
168
|
+
require_relative 'rubocop/cop/layout/first_hash_element_line_break'
|
169
|
+
require_relative 'rubocop/cop/layout/first_method_argument_line_break'
|
170
|
+
require_relative 'rubocop/cop/layout/first_method_parameter_line_break'
|
171
|
+
require_relative 'rubocop/cop/layout/first_parameter_indentation'
|
172
|
+
require_relative 'rubocop/cop/layout/indent_array'
|
173
|
+
require_relative 'rubocop/cop/layout/indent_assignment'
|
174
|
+
require_relative 'rubocop/cop/layout/indentation_consistency'
|
175
|
+
require_relative 'rubocop/cop/layout/indentation_width'
|
176
|
+
require_relative 'rubocop/cop/layout/indent_hash'
|
177
|
+
require_relative 'rubocop/cop/layout/indent_heredoc'
|
178
|
+
require_relative 'rubocop/cop/layout/initial_indentation'
|
179
|
+
require_relative 'rubocop/cop/layout/leading_comment_space'
|
180
|
+
require_relative 'rubocop/cop/layout/multiline_array_brace_layout'
|
181
|
+
require_relative 'rubocop/cop/layout/multiline_assignment_layout'
|
182
|
+
require_relative 'rubocop/cop/layout/multiline_block_layout'
|
183
|
+
require_relative 'rubocop/cop/layout/multiline_hash_brace_layout'
|
184
|
+
require_relative 'rubocop/cop/layout/multiline_method_call_brace_layout'
|
185
|
+
require_relative 'rubocop/cop/layout/multiline_method_call_indentation'
|
186
|
+
require_relative 'rubocop/cop/layout/multiline_method_definition_brace_layout'
|
187
|
+
require_relative 'rubocop/cop/layout/multiline_operation_indentation'
|
188
|
+
require_relative 'rubocop/cop/layout/rescue_ensure_alignment'
|
189
|
+
require_relative 'rubocop/cop/layout/space_after_colon'
|
190
|
+
require_relative 'rubocop/cop/layout/space_after_comma'
|
191
|
+
require_relative 'rubocop/cop/layout/space_after_method_name'
|
192
|
+
require_relative 'rubocop/cop/layout/space_after_not'
|
193
|
+
require_relative 'rubocop/cop/layout/space_after_semicolon'
|
194
|
+
require_relative 'rubocop/cop/layout/space_around_block_parameters'
|
195
|
+
require_relative 'rubocop/cop/layout/space_around_equals_in_parameter_default'
|
196
|
+
require_relative 'rubocop/cop/layout/space_around_keyword'
|
197
|
+
require_relative 'rubocop/cop/layout/space_around_operators'
|
198
|
+
require_relative 'rubocop/cop/layout/space_before_block_braces'
|
199
|
+
require_relative 'rubocop/cop/layout/space_before_comma'
|
200
|
+
require_relative 'rubocop/cop/layout/space_before_comment'
|
201
|
+
require_relative 'rubocop/cop/layout/space_before_first_arg'
|
202
|
+
require_relative 'rubocop/cop/layout/space_before_semicolon'
|
203
|
+
require_relative 'rubocop/cop/layout/space_in_lambda_literal'
|
204
|
+
require_relative 'rubocop/cop/layout/space_inside_array_percent_literal'
|
205
|
+
require_relative 'rubocop/cop/layout/space_inside_block_braces'
|
206
|
+
require_relative 'rubocop/cop/layout/space_inside_brackets'
|
207
|
+
require_relative 'rubocop/cop/layout/space_inside_hash_literal_braces'
|
208
|
+
require_relative 'rubocop/cop/layout/space_inside_parens'
|
209
|
+
require_relative 'rubocop/cop/layout/space_inside_percent_literal_delimiters'
|
210
|
+
require_relative 'rubocop/cop/layout/space_inside_range_literal'
|
211
|
+
require_relative 'rubocop/cop/layout/space_inside_string_interpolation'
|
212
|
+
require_relative 'rubocop/cop/layout/tab'
|
213
|
+
require_relative 'rubocop/cop/layout/trailing_blank_lines'
|
214
|
+
require_relative 'rubocop/cop/layout/trailing_whitespace'
|
282
215
|
|
283
|
-
|
284
|
-
|
285
|
-
|
286
|
-
|
287
|
-
|
288
|
-
|
289
|
-
|
290
|
-
|
291
|
-
|
292
|
-
|
216
|
+
require_relative 'rubocop/cop/lint/ambiguous_block_association'
|
217
|
+
require_relative 'rubocop/cop/lint/ambiguous_operator'
|
218
|
+
require_relative 'rubocop/cop/lint/ambiguous_regexp_literal'
|
219
|
+
require_relative 'rubocop/cop/lint/assignment_in_condition'
|
220
|
+
require_relative 'rubocop/cop/lint/block_alignment'
|
221
|
+
require_relative 'rubocop/cop/lint/boolean_symbol'
|
222
|
+
require_relative 'rubocop/cop/lint/circular_argument_reference'
|
223
|
+
require_relative 'rubocop/cop/lint/condition_position'
|
224
|
+
require_relative 'rubocop/cop/lint/debugger'
|
225
|
+
require_relative 'rubocop/cop/lint/def_end_alignment'
|
226
|
+
require_relative 'rubocop/cop/lint/deprecated_class_methods'
|
227
|
+
require_relative 'rubocop/cop/lint/duplicate_case_condition'
|
228
|
+
require_relative 'rubocop/cop/lint/duplicate_methods'
|
229
|
+
require_relative 'rubocop/cop/lint/duplicated_key'
|
230
|
+
require_relative 'rubocop/cop/lint/each_with_object_argument'
|
231
|
+
require_relative 'rubocop/cop/lint/else_layout'
|
232
|
+
require_relative 'rubocop/cop/lint/empty_ensure'
|
233
|
+
require_relative 'rubocop/cop/lint/empty_expression'
|
234
|
+
require_relative 'rubocop/cop/lint/empty_interpolation'
|
235
|
+
require_relative 'rubocop/cop/lint/empty_when'
|
236
|
+
require_relative 'rubocop/cop/lint/end_alignment'
|
237
|
+
require_relative 'rubocop/cop/lint/end_in_method'
|
238
|
+
require_relative 'rubocop/cop/lint/ensure_return'
|
239
|
+
require_relative 'rubocop/cop/lint/float_out_of_range'
|
240
|
+
require_relative 'rubocop/cop/lint/format_parameter_mismatch'
|
241
|
+
require_relative 'rubocop/cop/lint/handle_exceptions'
|
242
|
+
require_relative 'rubocop/cop/lint/implicit_string_concatenation'
|
243
|
+
require_relative 'rubocop/cop/lint/inherit_exception'
|
244
|
+
require_relative 'rubocop/cop/lint/ineffective_access_modifier'
|
245
|
+
require_relative 'rubocop/cop/lint/interpolation_check'
|
246
|
+
require_relative 'rubocop/cop/lint/literal_as_condition'
|
247
|
+
require_relative 'rubocop/cop/lint/literal_in_interpolation'
|
248
|
+
require_relative 'rubocop/cop/lint/loop'
|
249
|
+
require_relative 'rubocop/cop/lint/multiple_compare'
|
250
|
+
require_relative 'rubocop/cop/lint/nested_method_definition'
|
251
|
+
require_relative 'rubocop/cop/lint/next_without_accumulator'
|
252
|
+
require_relative 'rubocop/cop/lint/non_local_exit_from_iterator'
|
253
|
+
require_relative 'rubocop/cop/lint/parentheses_as_grouped_expression'
|
254
|
+
require_relative 'rubocop/cop/lint/percent_string_array'
|
255
|
+
require_relative 'rubocop/cop/lint/percent_symbol_array'
|
256
|
+
require_relative 'rubocop/cop/lint/rand_one'
|
257
|
+
require_relative 'rubocop/cop/lint/redundant_with_index'
|
258
|
+
require_relative 'rubocop/cop/lint/redundant_with_object'
|
259
|
+
require_relative 'rubocop/cop/lint/regexp_as_condition'
|
260
|
+
require_relative 'rubocop/cop/lint/require_parentheses'
|
261
|
+
require_relative 'rubocop/cop/lint/rescue_exception'
|
262
|
+
require_relative 'rubocop/cop/lint/rescue_type'
|
263
|
+
require_relative 'rubocop/cop/lint/rescue_without_error_class'
|
264
|
+
require_relative 'rubocop/cop/lint/return_in_void_context'
|
265
|
+
require_relative 'rubocop/cop/lint/safe_navigation_chain'
|
266
|
+
require_relative 'rubocop/cop/lint/script_permission'
|
267
|
+
require_relative 'rubocop/cop/lint/shadowed_exception'
|
268
|
+
require_relative 'rubocop/cop/lint/shadowing_outer_local_variable'
|
269
|
+
require_relative 'rubocop/cop/lint/string_conversion_in_interpolation'
|
270
|
+
require_relative 'rubocop/cop/lint/syntax'
|
271
|
+
require_relative 'rubocop/cop/lint/underscore_prefixed_variable_name'
|
272
|
+
require_relative 'rubocop/cop/lint/unified_integer'
|
273
|
+
require_relative 'rubocop/cop/lint/unneeded_disable'
|
274
|
+
require_relative 'rubocop/cop/lint/unneeded_require_statement'
|
275
|
+
require_relative 'rubocop/cop/lint/unneeded_splat_expansion'
|
276
|
+
require_relative 'rubocop/cop/lint/unreachable_code'
|
277
|
+
require_relative 'rubocop/cop/lint/unused_block_argument'
|
278
|
+
require_relative 'rubocop/cop/lint/unused_method_argument'
|
279
|
+
require_relative 'rubocop/cop/lint/uri_escape_unescape'
|
280
|
+
require_relative 'rubocop/cop/lint/uri_regexp'
|
281
|
+
require_relative 'rubocop/cop/lint/useless_access_modifier'
|
282
|
+
require_relative 'rubocop/cop/lint/useless_assignment'
|
283
|
+
require_relative 'rubocop/cop/lint/useless_comparison'
|
284
|
+
require_relative 'rubocop/cop/lint/useless_else_without_rescue'
|
285
|
+
require_relative 'rubocop/cop/lint/useless_setter_call'
|
286
|
+
require_relative 'rubocop/cop/lint/void'
|
293
287
|
|
294
|
-
|
295
|
-
|
296
|
-
|
297
|
-
|
298
|
-
|
299
|
-
|
300
|
-
|
301
|
-
|
302
|
-
|
303
|
-
|
304
|
-
|
305
|
-
require 'rubocop/cop/naming/variable_number'
|
288
|
+
require_relative 'rubocop/cop/metrics/cyclomatic_complexity'
|
289
|
+
# relies on cyclomatic_complexity
|
290
|
+
require_relative 'rubocop/cop/metrics/abc_size'
|
291
|
+
require_relative 'rubocop/cop/metrics/block_length'
|
292
|
+
require_relative 'rubocop/cop/metrics/block_nesting'
|
293
|
+
require_relative 'rubocop/cop/metrics/class_length'
|
294
|
+
require_relative 'rubocop/cop/metrics/line_length'
|
295
|
+
require_relative 'rubocop/cop/metrics/method_length'
|
296
|
+
require_relative 'rubocop/cop/metrics/module_length'
|
297
|
+
require_relative 'rubocop/cop/metrics/parameter_lists'
|
298
|
+
require_relative 'rubocop/cop/metrics/perceived_complexity'
|
306
299
|
|
307
|
-
|
308
|
-
|
309
|
-
|
310
|
-
|
311
|
-
|
312
|
-
|
313
|
-
|
314
|
-
|
315
|
-
|
316
|
-
|
317
|
-
|
318
|
-
|
319
|
-
require 'rubocop/cop/performance/redundant_block_call'
|
320
|
-
require 'rubocop/cop/performance/redundant_match'
|
321
|
-
require 'rubocop/cop/performance/redundant_merge'
|
322
|
-
require 'rubocop/cop/performance/redundant_sort_by'
|
323
|
-
require 'rubocop/cop/performance/regexp_match'
|
324
|
-
require 'rubocop/cop/performance/reverse_each'
|
325
|
-
require 'rubocop/cop/performance/sample'
|
326
|
-
require 'rubocop/cop/performance/size'
|
327
|
-
require 'rubocop/cop/performance/compare_with_block'
|
328
|
-
require 'rubocop/cop/performance/start_with'
|
329
|
-
require 'rubocop/cop/performance/string_replacement'
|
330
|
-
require 'rubocop/cop/performance/times_map'
|
331
|
-
require 'rubocop/cop/performance/unfreeze_string'
|
332
|
-
require 'rubocop/cop/performance/uri_default_parser'
|
300
|
+
require_relative 'rubocop/cop/naming/accessor_method_name'
|
301
|
+
require_relative 'rubocop/cop/naming/ascii_identifiers'
|
302
|
+
require_relative 'rubocop/cop/naming/class_and_module_camel_case'
|
303
|
+
require_relative 'rubocop/cop/naming/constant_name'
|
304
|
+
require_relative 'rubocop/cop/naming/file_name'
|
305
|
+
require_relative 'rubocop/cop/naming/heredoc_delimiter_case'
|
306
|
+
require_relative 'rubocop/cop/naming/heredoc_delimiter_naming'
|
307
|
+
require_relative 'rubocop/cop/naming/method_name'
|
308
|
+
require_relative 'rubocop/cop/naming/binary_operator_parameter_name'
|
309
|
+
require_relative 'rubocop/cop/naming/predicate_name'
|
310
|
+
require_relative 'rubocop/cop/naming/variable_name'
|
311
|
+
require_relative 'rubocop/cop/naming/variable_number'
|
333
312
|
|
334
|
-
|
335
|
-
|
336
|
-
|
337
|
-
|
338
|
-
|
339
|
-
|
340
|
-
|
341
|
-
|
342
|
-
|
343
|
-
|
344
|
-
|
345
|
-
|
346
|
-
|
347
|
-
|
348
|
-
|
349
|
-
|
350
|
-
|
351
|
-
|
352
|
-
|
353
|
-
|
354
|
-
|
355
|
-
|
356
|
-
|
357
|
-
|
358
|
-
|
359
|
-
|
360
|
-
require 'rubocop/cop/style/documentation'
|
361
|
-
require 'rubocop/cop/style/double_negation'
|
362
|
-
require 'rubocop/cop/style/each_for_simple_loop'
|
363
|
-
require 'rubocop/cop/style/each_with_object'
|
364
|
-
require 'rubocop/cop/style/empty_case_condition'
|
365
|
-
require 'rubocop/cop/style/empty_else'
|
366
|
-
require 'rubocop/cop/style/empty_literal'
|
367
|
-
require 'rubocop/cop/style/empty_method'
|
368
|
-
require 'rubocop/cop/style/encoding'
|
369
|
-
require 'rubocop/cop/style/end_block'
|
370
|
-
require 'rubocop/cop/style/even_odd'
|
371
|
-
require 'rubocop/cop/style/flip_flop'
|
372
|
-
require 'rubocop/cop/style/for'
|
373
|
-
require 'rubocop/cop/style/format_string'
|
374
|
-
require 'rubocop/cop/style/format_string_token'
|
375
|
-
require 'rubocop/cop/style/frozen_string_literal_comment'
|
376
|
-
require 'rubocop/cop/style/global_vars'
|
377
|
-
require 'rubocop/cop/style/guard_clause'
|
378
|
-
require 'rubocop/cop/style/hash_syntax'
|
379
|
-
require 'rubocop/cop/style/identical_conditional_branches'
|
380
|
-
require 'rubocop/cop/style/if_inside_else'
|
381
|
-
require 'rubocop/cop/style/if_unless_modifier'
|
382
|
-
require 'rubocop/cop/style/if_unless_modifier_of_if_unless'
|
383
|
-
require 'rubocop/cop/style/if_with_semicolon'
|
384
|
-
require 'rubocop/cop/style/implicit_runtime_error'
|
385
|
-
require 'rubocop/cop/style/infinite_loop'
|
386
|
-
require 'rubocop/cop/style/inverse_methods'
|
387
|
-
require 'rubocop/cop/style/inline_comment'
|
388
|
-
require 'rubocop/cop/style/lambda'
|
389
|
-
require 'rubocop/cop/style/lambda_call'
|
390
|
-
require 'rubocop/cop/style/line_end_concatenation'
|
391
|
-
require 'rubocop/cop/style/method_call_without_args_parentheses'
|
392
|
-
require 'rubocop/cop/style/method_call_with_args_parentheses'
|
393
|
-
require 'rubocop/cop/style/method_called_on_do_end_block'
|
394
|
-
require 'rubocop/cop/style/method_def_parentheses'
|
395
|
-
require 'rubocop/cop/style/method_missing'
|
396
|
-
require 'rubocop/cop/style/min_max'
|
397
|
-
require 'rubocop/cop/style/missing_else'
|
398
|
-
require 'rubocop/cop/style/mixin_grouping'
|
399
|
-
require 'rubocop/cop/style/module_function'
|
400
|
-
require 'rubocop/cop/style/multiline_block_chain'
|
401
|
-
require 'rubocop/cop/style/multiline_if_then'
|
402
|
-
require 'rubocop/cop/style/multiline_if_modifier'
|
403
|
-
require 'rubocop/cop/style/multiline_memoization'
|
404
|
-
require 'rubocop/cop/style/multiline_ternary_operator'
|
405
|
-
require 'rubocop/cop/style/multiple_comparison'
|
406
|
-
require 'rubocop/cop/style/mutable_constant'
|
407
|
-
require 'rubocop/cop/style/negated_if'
|
408
|
-
require 'rubocop/cop/style/negated_while'
|
409
|
-
require 'rubocop/cop/style/nested_modifier'
|
410
|
-
require 'rubocop/cop/style/nested_parenthesized_calls'
|
411
|
-
require 'rubocop/cop/style/nested_ternary_operator'
|
412
|
-
require 'rubocop/cop/style/next'
|
413
|
-
require 'rubocop/cop/style/nil_comparison'
|
414
|
-
require 'rubocop/cop/style/non_nil_check'
|
415
|
-
require 'rubocop/cop/style/not'
|
416
|
-
require 'rubocop/cop/style/numeric_literals'
|
417
|
-
require 'rubocop/cop/style/numeric_literal_prefix'
|
418
|
-
require 'rubocop/cop/style/numeric_predicate'
|
419
|
-
require 'rubocop/cop/style/one_line_conditional'
|
420
|
-
require 'rubocop/cop/style/or_assignment'
|
421
|
-
require 'rubocop/cop/style/option_hash'
|
422
|
-
require 'rubocop/cop/style/optional_arguments'
|
423
|
-
require 'rubocop/cop/style/parallel_assignment'
|
424
|
-
require 'rubocop/cop/style/parentheses_around_condition'
|
425
|
-
require 'rubocop/cop/style/percent_literal_delimiters'
|
426
|
-
require 'rubocop/cop/style/percent_q_literals'
|
427
|
-
require 'rubocop/cop/style/perl_backrefs'
|
428
|
-
require 'rubocop/cop/style/preferred_hash_methods'
|
429
|
-
require 'rubocop/cop/style/proc'
|
430
|
-
require 'rubocop/cop/style/raise_args'
|
431
|
-
require 'rubocop/cop/style/redundant_begin'
|
432
|
-
require 'rubocop/cop/style/redundant_exception'
|
433
|
-
require 'rubocop/cop/style/redundant_freeze'
|
434
|
-
require 'rubocop/cop/style/redundant_parentheses'
|
435
|
-
require 'rubocop/cop/style/redundant_return'
|
436
|
-
require 'rubocop/cop/style/redundant_self'
|
437
|
-
require 'rubocop/cop/style/redundant_conditional'
|
438
|
-
require 'rubocop/cop/style/regexp_literal'
|
439
|
-
require 'rubocop/cop/style/rescue_modifier'
|
440
|
-
require 'rubocop/cop/style/return_nil'
|
441
|
-
require 'rubocop/cop/style/safe_navigation'
|
442
|
-
require 'rubocop/cop/style/self_assignment'
|
443
|
-
require 'rubocop/cop/style/semicolon'
|
444
|
-
require 'rubocop/cop/style/send'
|
445
|
-
require 'rubocop/cop/style/signal_exception'
|
446
|
-
require 'rubocop/cop/style/single_line_block_params'
|
447
|
-
require 'rubocop/cop/style/single_line_methods'
|
448
|
-
require 'rubocop/cop/style/special_global_vars'
|
449
|
-
require 'rubocop/cop/style/stabby_lambda_parentheses'
|
450
|
-
require 'rubocop/cop/style/string_literals'
|
451
|
-
require 'rubocop/cop/style/string_literals_in_interpolation'
|
452
|
-
require 'rubocop/cop/style/string_methods'
|
453
|
-
require 'rubocop/cop/style/struct_inheritance'
|
454
|
-
require 'rubocop/cop/style/symbol_array'
|
455
|
-
require 'rubocop/cop/style/symbol_literal'
|
456
|
-
require 'rubocop/cop/style/symbol_proc'
|
457
|
-
require 'rubocop/cop/style/ternary_parentheses'
|
458
|
-
require 'rubocop/cop/style/trailing_comma_in_arguments'
|
459
|
-
require 'rubocop/cop/style/trailing_comma_in_literal'
|
460
|
-
require 'rubocop/cop/style/trailing_underscore_variable'
|
461
|
-
require 'rubocop/cop/style/trivial_accessors'
|
462
|
-
require 'rubocop/cop/style/unless_else'
|
463
|
-
require 'rubocop/cop/style/unneeded_capital_w'
|
464
|
-
require 'rubocop/cop/style/unneeded_interpolation'
|
465
|
-
require 'rubocop/cop/style/unneeded_percent_q'
|
466
|
-
require 'rubocop/cop/style/variable_interpolation'
|
467
|
-
require 'rubocop/cop/style/when_then'
|
468
|
-
require 'rubocop/cop/style/while_until_do'
|
469
|
-
require 'rubocop/cop/style/while_until_modifier'
|
470
|
-
require 'rubocop/cop/style/word_array'
|
471
|
-
require 'rubocop/cop/style/yoda_condition'
|
472
|
-
require 'rubocop/cop/style/zero_length_predicate'
|
313
|
+
require_relative 'rubocop/cop/performance/caller'
|
314
|
+
require_relative 'rubocop/cop/performance/case_when_splat'
|
315
|
+
require_relative 'rubocop/cop/performance/casecmp'
|
316
|
+
require_relative 'rubocop/cop/performance/count'
|
317
|
+
require_relative 'rubocop/cop/performance/detect'
|
318
|
+
require_relative 'rubocop/cop/performance/double_start_end_with'
|
319
|
+
require_relative 'rubocop/cop/performance/end_with'
|
320
|
+
require_relative 'rubocop/cop/performance/fixed_size'
|
321
|
+
require_relative 'rubocop/cop/performance/flat_map'
|
322
|
+
require_relative 'rubocop/cop/performance/hash_each_methods'
|
323
|
+
require_relative 'rubocop/cop/performance/lstrip_rstrip'
|
324
|
+
require_relative 'rubocop/cop/performance/range_include'
|
325
|
+
require_relative 'rubocop/cop/performance/redundant_block_call'
|
326
|
+
require_relative 'rubocop/cop/performance/redundant_match'
|
327
|
+
require_relative 'rubocop/cop/performance/redundant_merge'
|
328
|
+
require_relative 'rubocop/cop/performance/redundant_sort_by'
|
329
|
+
require_relative 'rubocop/cop/performance/regexp_match'
|
330
|
+
require_relative 'rubocop/cop/performance/reverse_each'
|
331
|
+
require_relative 'rubocop/cop/performance/sample'
|
332
|
+
require_relative 'rubocop/cop/performance/size'
|
333
|
+
require_relative 'rubocop/cop/performance/compare_with_block'
|
334
|
+
require_relative 'rubocop/cop/performance/start_with'
|
335
|
+
require_relative 'rubocop/cop/performance/string_replacement'
|
336
|
+
require_relative 'rubocop/cop/performance/times_map'
|
337
|
+
require_relative 'rubocop/cop/performance/unfreeze_string'
|
338
|
+
require_relative 'rubocop/cop/performance/uri_default_parser'
|
473
339
|
|
474
|
-
|
475
|
-
|
476
|
-
|
477
|
-
|
478
|
-
|
479
|
-
|
480
|
-
|
481
|
-
|
482
|
-
|
483
|
-
|
484
|
-
|
485
|
-
|
486
|
-
|
487
|
-
|
488
|
-
|
489
|
-
|
490
|
-
|
491
|
-
|
492
|
-
|
493
|
-
|
494
|
-
|
495
|
-
|
496
|
-
|
497
|
-
|
498
|
-
|
499
|
-
|
500
|
-
|
501
|
-
|
502
|
-
|
503
|
-
|
504
|
-
|
505
|
-
|
506
|
-
|
340
|
+
require_relative 'rubocop/cop/style/alias'
|
341
|
+
require_relative 'rubocop/cop/style/and_or'
|
342
|
+
require_relative 'rubocop/cop/style/array_join'
|
343
|
+
require_relative 'rubocop/cop/style/ascii_comments'
|
344
|
+
require_relative 'rubocop/cop/style/attr'
|
345
|
+
require_relative 'rubocop/cop/style/auto_resource_cleanup'
|
346
|
+
require_relative 'rubocop/cop/style/bare_percent_literals'
|
347
|
+
require_relative 'rubocop/cop/style/begin_block'
|
348
|
+
require_relative 'rubocop/cop/style/block_comments'
|
349
|
+
require_relative 'rubocop/cop/style/block_delimiters'
|
350
|
+
require_relative 'rubocop/cop/style/braces_around_hash_parameters'
|
351
|
+
require_relative 'rubocop/cop/style/case_equality'
|
352
|
+
require_relative 'rubocop/cop/style/character_literal'
|
353
|
+
require_relative 'rubocop/cop/style/class_and_module_children'
|
354
|
+
require_relative 'rubocop/cop/style/class_check'
|
355
|
+
require_relative 'rubocop/cop/style/class_methods'
|
356
|
+
require_relative 'rubocop/cop/style/class_vars'
|
357
|
+
require_relative 'rubocop/cop/style/collection_methods'
|
358
|
+
require_relative 'rubocop/cop/style/colon_method_call'
|
359
|
+
require_relative 'rubocop/cop/style/command_literal'
|
360
|
+
require_relative 'rubocop/cop/style/comment_annotation'
|
361
|
+
require_relative 'rubocop/cop/style/commented_keyword'
|
362
|
+
require_relative 'rubocop/cop/style/conditional_assignment'
|
363
|
+
require_relative 'rubocop/cop/style/copyright'
|
364
|
+
require_relative 'rubocop/cop/style/date_time'
|
365
|
+
require_relative 'rubocop/cop/style/def_with_parentheses'
|
366
|
+
require_relative 'rubocop/cop/style/dir'
|
367
|
+
require_relative 'rubocop/cop/style/documentation_method'
|
368
|
+
require_relative 'rubocop/cop/style/documentation'
|
369
|
+
require_relative 'rubocop/cop/style/double_negation'
|
370
|
+
require_relative 'rubocop/cop/style/each_for_simple_loop'
|
371
|
+
require_relative 'rubocop/cop/style/each_with_object'
|
372
|
+
require_relative 'rubocop/cop/style/empty_case_condition'
|
373
|
+
require_relative 'rubocop/cop/style/empty_else'
|
374
|
+
require_relative 'rubocop/cop/style/empty_literal'
|
375
|
+
require_relative 'rubocop/cop/style/empty_method'
|
376
|
+
require_relative 'rubocop/cop/style/encoding'
|
377
|
+
require_relative 'rubocop/cop/style/end_block'
|
378
|
+
require_relative 'rubocop/cop/style/even_odd'
|
379
|
+
require_relative 'rubocop/cop/style/flip_flop'
|
380
|
+
require_relative 'rubocop/cop/style/for'
|
381
|
+
require_relative 'rubocop/cop/style/format_string'
|
382
|
+
require_relative 'rubocop/cop/style/format_string_token'
|
383
|
+
require_relative 'rubocop/cop/style/frozen_string_literal_comment'
|
384
|
+
require_relative 'rubocop/cop/style/global_vars'
|
385
|
+
require_relative 'rubocop/cop/style/guard_clause'
|
386
|
+
require_relative 'rubocop/cop/style/hash_syntax'
|
387
|
+
require_relative 'rubocop/cop/style/identical_conditional_branches'
|
388
|
+
require_relative 'rubocop/cop/style/if_inside_else'
|
389
|
+
require_relative 'rubocop/cop/style/if_unless_modifier'
|
390
|
+
require_relative 'rubocop/cop/style/if_unless_modifier_of_if_unless'
|
391
|
+
require_relative 'rubocop/cop/style/if_with_semicolon'
|
392
|
+
require_relative 'rubocop/cop/style/implicit_runtime_error'
|
393
|
+
require_relative 'rubocop/cop/style/infinite_loop'
|
394
|
+
require_relative 'rubocop/cop/style/inverse_methods'
|
395
|
+
require_relative 'rubocop/cop/style/inline_comment'
|
396
|
+
require_relative 'rubocop/cop/style/lambda'
|
397
|
+
require_relative 'rubocop/cop/style/lambda_call'
|
398
|
+
require_relative 'rubocop/cop/style/line_end_concatenation'
|
399
|
+
require_relative 'rubocop/cop/style/method_call_without_args_parentheses'
|
400
|
+
require_relative 'rubocop/cop/style/method_call_with_args_parentheses'
|
401
|
+
require_relative 'rubocop/cop/style/method_called_on_do_end_block'
|
402
|
+
require_relative 'rubocop/cop/style/method_def_parentheses'
|
403
|
+
require_relative 'rubocop/cop/style/method_missing'
|
404
|
+
require_relative 'rubocop/cop/style/min_max'
|
405
|
+
require_relative 'rubocop/cop/style/missing_else'
|
406
|
+
require_relative 'rubocop/cop/style/mixin_grouping'
|
407
|
+
require_relative 'rubocop/cop/style/mixin_usage'
|
408
|
+
require_relative 'rubocop/cop/style/module_function'
|
409
|
+
require_relative 'rubocop/cop/style/multiline_block_chain'
|
410
|
+
require_relative 'rubocop/cop/style/multiline_if_then'
|
411
|
+
require_relative 'rubocop/cop/style/multiline_if_modifier'
|
412
|
+
require_relative 'rubocop/cop/style/multiline_memoization'
|
413
|
+
require_relative 'rubocop/cop/style/multiline_ternary_operator'
|
414
|
+
require_relative 'rubocop/cop/style/multiple_comparison'
|
415
|
+
require_relative 'rubocop/cop/style/mutable_constant'
|
416
|
+
require_relative 'rubocop/cop/style/negated_if'
|
417
|
+
require_relative 'rubocop/cop/style/negated_while'
|
418
|
+
require_relative 'rubocop/cop/style/nested_modifier'
|
419
|
+
require_relative 'rubocop/cop/style/nested_parenthesized_calls'
|
420
|
+
require_relative 'rubocop/cop/style/nested_ternary_operator'
|
421
|
+
require_relative 'rubocop/cop/style/next'
|
422
|
+
require_relative 'rubocop/cop/style/nil_comparison'
|
423
|
+
require_relative 'rubocop/cop/style/non_nil_check'
|
424
|
+
require_relative 'rubocop/cop/style/not'
|
425
|
+
require_relative 'rubocop/cop/style/numeric_literals'
|
426
|
+
require_relative 'rubocop/cop/style/numeric_literal_prefix'
|
427
|
+
require_relative 'rubocop/cop/style/numeric_predicate'
|
428
|
+
require_relative 'rubocop/cop/style/one_line_conditional'
|
429
|
+
require_relative 'rubocop/cop/style/or_assignment'
|
430
|
+
require_relative 'rubocop/cop/style/option_hash'
|
431
|
+
require_relative 'rubocop/cop/style/optional_arguments'
|
432
|
+
require_relative 'rubocop/cop/style/parallel_assignment'
|
433
|
+
require_relative 'rubocop/cop/style/parentheses_around_condition'
|
434
|
+
require_relative 'rubocop/cop/style/percent_literal_delimiters'
|
435
|
+
require_relative 'rubocop/cop/style/percent_q_literals'
|
436
|
+
require_relative 'rubocop/cop/style/perl_backrefs'
|
437
|
+
require_relative 'rubocop/cop/style/preferred_hash_methods'
|
438
|
+
require_relative 'rubocop/cop/style/proc'
|
439
|
+
require_relative 'rubocop/cop/style/raise_args'
|
440
|
+
require_relative 'rubocop/cop/style/redundant_begin'
|
441
|
+
require_relative 'rubocop/cop/style/redundant_exception'
|
442
|
+
require_relative 'rubocop/cop/style/redundant_freeze'
|
443
|
+
require_relative 'rubocop/cop/style/redundant_parentheses'
|
444
|
+
require_relative 'rubocop/cop/style/redundant_return'
|
445
|
+
require_relative 'rubocop/cop/style/redundant_self'
|
446
|
+
require_relative 'rubocop/cop/style/redundant_conditional'
|
447
|
+
require_relative 'rubocop/cop/style/regexp_literal'
|
448
|
+
require_relative 'rubocop/cop/style/rescue_modifier'
|
449
|
+
require_relative 'rubocop/cop/style/return_nil'
|
450
|
+
require_relative 'rubocop/cop/style/safe_navigation'
|
451
|
+
require_relative 'rubocop/cop/style/self_assignment'
|
452
|
+
require_relative 'rubocop/cop/style/semicolon'
|
453
|
+
require_relative 'rubocop/cop/style/send'
|
454
|
+
require_relative 'rubocop/cop/style/signal_exception'
|
455
|
+
require_relative 'rubocop/cop/style/single_line_block_params'
|
456
|
+
require_relative 'rubocop/cop/style/single_line_methods'
|
457
|
+
require_relative 'rubocop/cop/style/special_global_vars'
|
458
|
+
require_relative 'rubocop/cop/style/stabby_lambda_parentheses'
|
459
|
+
require_relative 'rubocop/cop/style/stderr_puts'
|
460
|
+
require_relative 'rubocop/cop/style/string_literals'
|
461
|
+
require_relative 'rubocop/cop/style/string_literals_in_interpolation'
|
462
|
+
require_relative 'rubocop/cop/style/string_methods'
|
463
|
+
require_relative 'rubocop/cop/style/struct_inheritance'
|
464
|
+
require_relative 'rubocop/cop/style/symbol_array'
|
465
|
+
require_relative 'rubocop/cop/style/symbol_literal'
|
466
|
+
require_relative 'rubocop/cop/style/symbol_proc'
|
467
|
+
require_relative 'rubocop/cop/style/ternary_parentheses'
|
468
|
+
require_relative 'rubocop/cop/style/trailing_comma_in_arguments'
|
469
|
+
require_relative 'rubocop/cop/style/trailing_comma_in_literal'
|
470
|
+
require_relative 'rubocop/cop/style/trailing_underscore_variable'
|
471
|
+
require_relative 'rubocop/cop/style/trivial_accessors'
|
472
|
+
require_relative 'rubocop/cop/style/unless_else'
|
473
|
+
require_relative 'rubocop/cop/style/unneeded_capital_w'
|
474
|
+
require_relative 'rubocop/cop/style/unneeded_interpolation'
|
475
|
+
require_relative 'rubocop/cop/style/unneeded_percent_q'
|
476
|
+
require_relative 'rubocop/cop/style/variable_interpolation'
|
477
|
+
require_relative 'rubocop/cop/style/when_then'
|
478
|
+
require_relative 'rubocop/cop/style/while_until_do'
|
479
|
+
require_relative 'rubocop/cop/style/while_until_modifier'
|
480
|
+
require_relative 'rubocop/cop/style/word_array'
|
481
|
+
require_relative 'rubocop/cop/style/yoda_condition'
|
482
|
+
require_relative 'rubocop/cop/style/zero_length_predicate'
|
507
483
|
|
508
|
-
|
509
|
-
|
510
|
-
|
511
|
-
|
484
|
+
require_relative 'rubocop/cop/rails/action_filter'
|
485
|
+
require_relative 'rubocop/cop/rails/active_support_aliases'
|
486
|
+
require_relative 'rubocop/cop/rails/application_job'
|
487
|
+
require_relative 'rubocop/cop/rails/application_record'
|
488
|
+
require_relative 'rubocop/cop/rails/blank'
|
489
|
+
require_relative 'rubocop/cop/rails/date'
|
490
|
+
require_relative 'rubocop/cop/rails/dynamic_find_by'
|
491
|
+
require_relative 'rubocop/cop/rails/delegate'
|
492
|
+
require_relative 'rubocop/cop/rails/delegate_allow_blank'
|
493
|
+
require_relative 'rubocop/cop/rails/enum_uniqueness'
|
494
|
+
require_relative 'rubocop/cop/rails/exit'
|
495
|
+
require_relative 'rubocop/cop/rails/file_path'
|
496
|
+
require_relative 'rubocop/cop/rails/find_by'
|
497
|
+
require_relative 'rubocop/cop/rails/find_each'
|
498
|
+
require_relative 'rubocop/cop/rails/has_and_belongs_to_many'
|
499
|
+
require_relative 'rubocop/cop/rails/has_many_or_has_one_dependent'
|
500
|
+
require_relative 'rubocop/cop/rails/http_positional_arguments'
|
501
|
+
require_relative 'rubocop/cop/rails/not_null_column'
|
502
|
+
require_relative 'rubocop/cop/rails/output_safety'
|
503
|
+
require_relative 'rubocop/cop/rails/output'
|
504
|
+
require_relative 'rubocop/cop/rails/pluralization_grammar'
|
505
|
+
require_relative 'rubocop/cop/rails/present'
|
506
|
+
require_relative 'rubocop/cop/rails/read_write_attribute'
|
507
|
+
require_relative 'rubocop/cop/rails/request_referer'
|
508
|
+
require_relative 'rubocop/cop/rails/reversible_migration'
|
509
|
+
require_relative 'rubocop/cop/rails/relative_date_constant'
|
510
|
+
require_relative 'rubocop/cop/rails/safe_navigation'
|
511
|
+
require_relative 'rubocop/cop/rails/save_bang'
|
512
|
+
require_relative 'rubocop/cop/rails/scope_args'
|
513
|
+
require_relative 'rubocop/cop/rails/skips_model_validations'
|
514
|
+
require_relative 'rubocop/cop/rails/time_zone'
|
515
|
+
require_relative 'rubocop/cop/rails/uniq_before_pluck'
|
516
|
+
require_relative 'rubocop/cop/rails/unknown_env'
|
517
|
+
require_relative 'rubocop/cop/rails/validation'
|
512
518
|
|
513
|
-
|
519
|
+
require_relative 'rubocop/cop/security/eval'
|
520
|
+
require_relative 'rubocop/cop/security/json_load'
|
521
|
+
require_relative 'rubocop/cop/security/marshal_load'
|
522
|
+
require_relative 'rubocop/cop/security/yaml_load'
|
514
523
|
|
515
|
-
|
516
|
-
require 'rubocop/formatter/simple_text_formatter'
|
517
|
-
require 'rubocop/formatter/clang_style_formatter' # relies on simple text
|
518
|
-
require 'rubocop/formatter/disabled_config_formatter'
|
519
|
-
require 'rubocop/formatter/disabled_lines_formatter'
|
520
|
-
require 'rubocop/formatter/emacs_style_formatter'
|
521
|
-
require 'rubocop/formatter/file_list_formatter'
|
522
|
-
require 'rubocop/formatter/fuubar_style_formatter'
|
523
|
-
require 'rubocop/formatter/html_formatter'
|
524
|
-
require 'rubocop/formatter/json_formatter'
|
525
|
-
require 'rubocop/formatter/offense_count_formatter'
|
526
|
-
require 'rubocop/formatter/progress_formatter'
|
527
|
-
require 'rubocop/formatter/tap_formatter'
|
528
|
-
require 'rubocop/formatter/worst_offenders_formatter'
|
524
|
+
require_relative 'rubocop/cop/team'
|
529
525
|
|
530
|
-
|
526
|
+
require_relative 'rubocop/formatter/base_formatter'
|
527
|
+
require_relative 'rubocop/formatter/simple_text_formatter'
|
528
|
+
# relies on simple text
|
529
|
+
require_relative 'rubocop/formatter/clang_style_formatter'
|
530
|
+
require_relative 'rubocop/formatter/disabled_config_formatter'
|
531
|
+
require_relative 'rubocop/formatter/disabled_lines_formatter'
|
532
|
+
require_relative 'rubocop/formatter/emacs_style_formatter'
|
533
|
+
require_relative 'rubocop/formatter/file_list_formatter'
|
534
|
+
require_relative 'rubocop/formatter/fuubar_style_formatter'
|
535
|
+
require_relative 'rubocop/formatter/html_formatter'
|
536
|
+
require_relative 'rubocop/formatter/json_formatter'
|
537
|
+
require_relative 'rubocop/formatter/offense_count_formatter'
|
538
|
+
require_relative 'rubocop/formatter/progress_formatter'
|
539
|
+
require_relative 'rubocop/formatter/tap_formatter'
|
540
|
+
require_relative 'rubocop/formatter/worst_offenders_formatter'
|
531
541
|
|
532
|
-
|
533
|
-
|
534
|
-
|
535
|
-
|
536
|
-
|
537
|
-
|
538
|
-
|
539
|
-
|
540
|
-
|
541
|
-
|
542
|
-
|
543
|
-
|
544
|
-
|
545
|
-
|
546
|
-
|
542
|
+
require_relative 'rubocop/formatter/formatter_set'
|
543
|
+
|
544
|
+
require_relative 'rubocop/cached_data'
|
545
|
+
require_relative 'rubocop/config'
|
546
|
+
require_relative 'rubocop/config_loader_resolver'
|
547
|
+
require_relative 'rubocop/config_loader'
|
548
|
+
require_relative 'rubocop/config_store'
|
549
|
+
require_relative 'rubocop/target_finder'
|
550
|
+
require_relative 'rubocop/token'
|
551
|
+
require_relative 'rubocop/comment_config'
|
552
|
+
require_relative 'rubocop/magic_comment'
|
553
|
+
require_relative 'rubocop/processed_source'
|
554
|
+
require_relative 'rubocop/result_cache'
|
555
|
+
require_relative 'rubocop/runner'
|
556
|
+
require_relative 'rubocop/cli'
|
557
|
+
require_relative 'rubocop/options'
|
558
|
+
require_relative 'rubocop/remote_config'
|