[DRE-commits] [rubocop] 01/01: Merge tag 'upstream/0.51.0+dfsg'
Miguel Landaeta
nomadium at moszumanska.debian.org
Mon Oct 30 19:27:50 UTC 2017
This is an automated email from the git hooks/post-receive script.
nomadium pushed a commit to branch master
in repository rubocop.
commit d2851d5bbefd9f4a7b5d94a03791081e92652975
Merge: 48e27ae a2842eb
Author: Miguel Landaeta <nomadium at debian.org>
Date: Mon Oct 30 18:37:46 2017 +0000
Merge tag 'upstream/0.51.0+dfsg'
Upstream release 0.51.0+dfsg
# gpg: Signature made Mon 30 Oct 2017 06:36:41 PM GMT
# gpg: using RSA key 1247379C15BCF26C0EC46B61AFB8E0FC9231CC6D
# gpg: Good signature from "Miguel Landaeta <miguel at miguel.cc>" [full]
# gpg: aka "Miguel Landaeta <nomadium at gmail.com>" [full]
# gpg: aka "Miguel Landaeta (LDC) <miguel at ldc.usb.ve>" [full]
# gpg: aka "Miguel Landaeta (Debian) <nomadium at debian.org>" [full]
# Primary key fingerprint: 4CB7 FE1E 280E CC90 F29A 597E 6E60 8B63 7D89 67E9
# Subkey fingerprint: 1247 379C 15BC F26C 0EC4 6B61 AFB8 E0FC 9231 CC6D
.github/ISSUE_TEMPLATE.md | 2 +-
.github/PULL_REQUEST_TEMPLATE.md | 4 +-
.gitignore | 1 +
.rubocop.yml | 23 +-
.rubocop_todo.yml | 18 +-
.travis.rb | 43 +
.travis.yml | 33 +-
CHANGELOG.md | 166 +++-
CONTRIBUTING.md | 2 +-
Gemfile | 3 +
README.md | 14 +-
Rakefile | 26 +-
bin/rubocop | 2 +-
config/default.yml | 290 +++---
config/disabled.yml | 9 +-
config/enabled.yml | 239 ++++-
lib/rubocop.rb | 1017 ++++++++++----------
lib/rubocop/ast/builder.rb | 5 +-
lib/rubocop/ast/node.rb | 94 +-
lib/rubocop/ast/node/args_node.rb | 14 +-
lib/rubocop/ast/node/array_node.rb | 9 +
lib/rubocop/ast/node/block_node.rb | 9 +
lib/rubocop/ast/node/def_node.rb | 71 ++
lib/rubocop/ast/node/for_node.rb | 8 +
lib/rubocop/ast/node/if_node.rb | 12 +-
lib/rubocop/ast/node/mixin/collection_node.rb | 15 +
lib/rubocop/ast/node/mixin/method_dispatch_node.rb | 174 ++++
.../ast/node/mixin/method_identifier_predicates.rb | 89 ++
lib/rubocop/ast/node/mixin/parameterized_node.rb | 49 +-
lib/rubocop/ast/node/regexp_node.rb | 35 +
lib/rubocop/ast/node/send_node.rb | 157 +--
lib/rubocop/ast/node/super_node.rb | 27 +-
lib/rubocop/ast/node/yield_node.rb | 21 +
lib/rubocop/ast/traversal.rb | 12 +-
lib/rubocop/cached_data.rb | 7 +-
lib/rubocop/cli.rb | 23 +-
lib/rubocop/config.rb | 127 ++-
lib/rubocop/config_loader.rb | 68 +-
lib/rubocop/config_loader_resolver.rb | 5 +-
lib/rubocop/cop/bundler/duplicated_gem.rb | 14 +-
.../cop/bundler/insecure_protocol_source.rb | 66 ++
lib/rubocop/cop/bundler/ordered_gems.rb | 63 +-
lib/rubocop/cop/commissioner.rb | 9 +-
lib/rubocop/cop/cop.rb | 65 +-
lib/rubocop/cop/gemspec/ordered_dependencies.rb | 96 ++
lib/rubocop/cop/generator.rb | 122 ++-
lib/rubocop/cop/internal_affairs.rb | 8 +-
.../deprecated_positional_arguments.rb | 81 ++
.../cop/internal_affairs/node_type_predicate.rb | 19 +-
.../internal_affairs/offense_location_keyword.rb | 53 +
.../redundant_location_argument.rb | 59 ++
.../internal_affairs/redundant_message_argument.rb | 71 ++
.../internal_affairs/useless_message_assertion.rb | 6 +-
.../cop/layout/access_modifier_indentation.rb | 5 +-
lib/rubocop/cop/layout/align_array.rb | 4 +-
lib/rubocop/cop/layout/align_hash.rb | 4 +-
lib/rubocop/cop/layout/align_parameters.rb | 16 +-
lib/rubocop/cop/layout/block_end_newline.rb | 2 +-
lib/rubocop/cop/layout/case_indentation.rb | 2 +-
.../cop/layout/closing_parenthesis_indentation.rb | 12 +-
lib/rubocop/cop/layout/comment_indentation.rb | 6 +-
lib/rubocop/cop/layout/dot_position.rb | 11 +-
lib/rubocop/cop/layout/else_alignment.rb | 50 +-
.../cop/layout/empty_line_after_magic_comment.rb | 2 +-
lib/rubocop/cop/layout/empty_line_between_defs.rb | 6 +-
lib/rubocop/cop/layout/empty_lines.rb | 2 +-
.../layout/empty_lines_around_access_modifier.rb | 24 +-
...pty_lines_around_exception_handling_keywords.rb | 6 +-
.../cop/layout/empty_lines_around_method_body.rb | 6 +-
lib/rubocop/cop/layout/end_of_line.rb | 2 +-
lib/rubocop/cop/layout/extra_spacing.rb | 4 +-
.../layout/first_method_parameter_line_break.rb | 6 +-
.../cop/layout/first_parameter_indentation.rb | 7 +-
lib/rubocop/cop/layout/indent_array.rb | 2 +-
lib/rubocop/cop/layout/indent_hash.rb | 2 +-
lib/rubocop/cop/layout/indent_heredoc.rb | 45 +-
lib/rubocop/cop/layout/indentation_consistency.rb | 3 +-
lib/rubocop/cop/layout/indentation_width.rb | 32 +-
lib/rubocop/cop/layout/initial_indentation.rb | 5 +-
lib/rubocop/cop/layout/leading_comment_space.rb | 51 +-
.../cop/layout/multiline_assignment_layout.rb | 4 +-
lib/rubocop/cop/layout/multiline_block_layout.rb | 2 +-
.../layout/multiline_method_call_indentation.rb | 37 +-
.../multiline_method_definition_brace_layout.rb | 6 +-
.../cop/layout/multiline_operation_indentation.rb | 6 +
lib/rubocop/cop/layout/rescue_ensure_alignment.rb | 4 +-
lib/rubocop/cop/layout/space_after_colon.rb | 11 +-
lib/rubocop/cop/layout/space_after_comma.rb | 10 +
lib/rubocop/cop/layout/space_after_method_name.rb | 10 +-
lib/rubocop/cop/layout/space_after_not.rb | 2 +-
.../cop/layout/space_around_block_parameters.rb | 22 +-
.../space_around_equals_in_parameter_default.rb | 2 +-
lib/rubocop/cop/layout/space_around_keyword.rb | 16 +-
lib/rubocop/cop/layout/space_around_operators.rb | 2 +-
.../cop/layout/space_before_block_braces.rb | 59 +-
lib/rubocop/cop/layout/space_before_comment.rb | 9 +-
lib/rubocop/cop/layout/space_before_first_arg.rb | 2 +-
lib/rubocop/cop/layout/space_before_semicolon.rb | 7 +
lib/rubocop/cop/layout/space_in_lambda_literal.rb | 8 +-
.../layout/space_inside_array_percent_literal.rb | 2 +-
.../cop/layout/space_inside_block_braces.rb | 4 +-
.../cop/layout/space_inside_hash_literal_braces.rb | 7 +-
lib/rubocop/cop/layout/space_inside_parens.rb | 9 +
.../space_inside_percent_literal_delimiters.rb | 2 +-
.../cop/layout/space_inside_range_literal.rb | 2 +-
.../layout/space_inside_string_interpolation.rb | 12 +-
lib/rubocop/cop/layout/tab.rb | 7 +-
lib/rubocop/cop/layout/trailing_blank_lines.rb | 6 +-
lib/rubocop/cop/layout/trailing_whitespace.rb | 2 +-
.../cop/lint/ambiguous_block_association.rb | 6 +-
lib/rubocop/cop/lint/assignment_in_condition.rb | 18 +-
lib/rubocop/cop/lint/block_alignment.rb | 23 +-
lib/rubocop/cop/lint/boolean_symbol.rb | 38 +
.../cop/lint/circular_argument_reference.rb | 17 +-
lib/rubocop/cop/lint/condition_position.rb | 6 +-
lib/rubocop/cop/lint/debugger.rb | 29 +-
lib/rubocop/cop/lint/def_end_alignment.rb | 8 +-
lib/rubocop/cop/lint/deprecated_class_methods.rb | 8 +-
lib/rubocop/cop/lint/duplicate_case_condition.rb | 6 +-
lib/rubocop/cop/lint/duplicate_methods.rb | 80 +-
lib/rubocop/cop/lint/duplicated_key.rb | 2 +-
lib/rubocop/cop/lint/each_with_object_argument.rb | 2 +-
lib/rubocop/cop/lint/else_layout.rb | 2 +-
lib/rubocop/cop/lint/empty_ensure.rb | 2 +-
lib/rubocop/cop/lint/empty_expression.rb | 2 +-
lib/rubocop/cop/lint/empty_interpolation.rb | 2 +-
lib/rubocop/cop/lint/empty_when.rb | 2 +-
lib/rubocop/cop/lint/end_in_method.rb | 2 +-
lib/rubocop/cop/lint/ensure_return.rb | 2 +-
lib/rubocop/cop/lint/float_out_of_range.rb | 10 +-
lib/rubocop/cop/lint/format_parameter_mismatch.rb | 77 +-
lib/rubocop/cop/lint/handle_exceptions.rb | 2 +-
.../cop/lint/implicit_string_concatenation.rb | 2 +-
.../cop/lint/ineffective_access_modifier.rb | 38 +-
lib/rubocop/cop/lint/inherit_exception.rb | 15 +-
lib/rubocop/cop/lint/interpolation_check.rb | 37 +
lib/rubocop/cop/lint/invalid_character_literal.rb | 41 -
...ral_in_condition.rb => literal_as_condition.rb} | 28 +-
lib/rubocop/cop/lint/literal_in_interpolation.rb | 2 +-
lib/rubocop/cop/lint/loop.rb | 2 +-
lib/rubocop/cop/lint/multiple_compare.rb | 2 +-
lib/rubocop/cop/lint/nested_method_definition.rb | 14 +-
lib/rubocop/cop/lint/next_without_accumulator.rb | 2 +-
.../cop/lint/non_local_exit_from_iterator.rb | 4 +-
.../cop/lint/parentheses_as_grouped_expression.rb | 5 +-
lib/rubocop/cop/lint/percent_string_array.rb | 17 +-
lib/rubocop/cop/lint/percent_symbol_array.rb | 2 +-
lib/rubocop/cop/lint/rand_one.rb | 10 +-
lib/rubocop/cop/lint/redundant_with_index.rb | 77 ++
lib/rubocop/cop/lint/redundant_with_object.rb | 81 ++
lib/rubocop/cop/lint/regexp_as_condition.rb | 29 +
lib/rubocop/cop/lint/require_parentheses.rb | 4 +-
lib/rubocop/cop/lint/rescue_exception.rb | 2 +-
lib/rubocop/cop/lint/rescue_type.rb | 27 +-
lib/rubocop/cop/lint/rescue_without_error_class.rb | 41 +
lib/rubocop/cop/lint/return_in_void_context.rb | 74 ++
lib/rubocop/cop/lint/safe_navigation_chain.rb | 2 +-
lib/rubocop/cop/lint/script_permission.rb | 8 +-
lib/rubocop/cop/lint/shadowed_exception.rb | 47 +-
.../cop/lint/shadowing_outer_local_variable.rb | 2 +-
.../cop/lint/string_conversion_in_interpolation.rb | 2 +-
lib/rubocop/cop/lint/syntax.rb | 43 +-
.../cop/lint/underscore_prefixed_variable_name.rb | 2 +-
lib/rubocop/cop/lint/unified_integer.rb | 9 +-
lib/rubocop/cop/lint/unneeded_disable.rb | 17 +-
lib/rubocop/cop/lint/unneeded_require_statement.rb | 50 +
lib/rubocop/cop/lint/unneeded_splat_expansion.rb | 6 +-
lib/rubocop/cop/lint/unreachable_code.rb | 61 +-
lib/rubocop/cop/lint/unused_method_argument.rb | 3 +-
lib/rubocop/cop/lint/uri_escape_unescape.rb | 74 ++
lib/rubocop/cop/lint/uri_regexp.rb | 73 ++
lib/rubocop/cop/lint/useless_access_modifier.rb | 28 +-
lib/rubocop/cop/lint/useless_assignment.rb | 2 +-
lib/rubocop/cop/lint/useless_comparison.rb | 2 +-
lib/rubocop/cop/lint/useless_setter_call.rb | 27 +-
lib/rubocop/cop/lint/void.rb | 65 +-
lib/rubocop/cop/metrics/block_nesting.rb | 2 +-
lib/rubocop/cop/metrics/line_length.rb | 9 +-
lib/rubocop/cop/metrics/method_length.rb | 11 +-
lib/rubocop/cop/metrics/parameter_lists.rb | 10 +-
lib/rubocop/cop/mixin/access_modifier_node.rb | 41 -
lib/rubocop/cop/mixin/array_hash_indentation.rb | 5 +-
lib/rubocop/cop/mixin/autocorrect_alignment.rb | 4 +-
lib/rubocop/cop/mixin/code_length.rb | 2 +-
lib/rubocop/cop/mixin/configurable_formatting.rb | 2 +-
lib/rubocop/cop/mixin/def_node.rb | 2 +-
lib/rubocop/cop/mixin/empty_lines_around_body.rb | 9 +-
lib/rubocop/cop/mixin/end_keyword_alignment.rb | 2 +-
lib/rubocop/cop/mixin/enforce_superclass.rb | 6 +-
lib/rubocop/cop/mixin/first_element_line_break.rb | 15 +-
lib/rubocop/cop/mixin/heredoc.rb | 28 +
lib/rubocop/cop/mixin/method_complexity.rb | 14 +-
.../cop/mixin/multiline_expression_indentation.rb | 101 +-
.../cop/mixin/multiline_literal_brace_layout.rb | 32 +-
lib/rubocop/cop/mixin/negative_conditional.rb | 2 +-
lib/rubocop/cop/mixin/on_method_def.rb | 44 -
lib/rubocop/cop/mixin/ordered_gem_node.rb | 63 ++
lib/rubocop/cop/mixin/parser_diagnostic.rb | 5 +-
lib/rubocop/cop/mixin/percent_array.rb | 52 +
lib/rubocop/cop/mixin/space_after_punctuation.rb | 3 +-
lib/rubocop/cop/mixin/space_before_punctuation.rb | 3 +-
lib/rubocop/cop/mixin/space_inside.rb | 2 +-
lib/rubocop/cop/mixin/string_help.rb | 2 +-
lib/rubocop/cop/mixin/string_literals_help.rb | 2 +-
lib/rubocop/cop/mixin/trailing_comma.rb | 10 +-
lib/rubocop/cop/mixin/unused_argument.rb | 45 +-
lib/rubocop/cop/naming/accessor_method_name.rb | 45 +
.../cop/{style => naming}/ascii_identifiers.rb | 4 +-
.../binary_operator_parameter_name.rb} | 6 +-
.../class_and_module_camel_case.rb | 4 +-
lib/rubocop/cop/{style => naming}/constant_name.rb | 4 +-
lib/rubocop/cop/{style => naming}/file_name.rb | 14 +-
lib/rubocop/cop/naming/heredoc_delimiter_case.rb | 68 ++
lib/rubocop/cop/naming/heredoc_delimiter_naming.rb | 59 ++
lib/rubocop/cop/{style => naming}/method_name.rb | 2 +-
lib/rubocop/cop/naming/predicate_name.rb | 97 ++
lib/rubocop/cop/{style => naming}/variable_name.rb | 26 +-
.../cop/{style => naming}/variable_number.rb | 2 +-
lib/rubocop/cop/performance/caller.rb | 50 +-
lib/rubocop/cop/performance/case_when_splat.rb | 2 +-
lib/rubocop/cop/performance/casecmp.rb | 10 +-
lib/rubocop/cop/performance/compare_with_block.rb | 16 +-
lib/rubocop/cop/performance/count.rb | 4 +-
lib/rubocop/cop/performance/detect.rb | 8 +-
.../cop/performance/double_start_end_with.rb | 23 +-
lib/rubocop/cop/performance/end_with.rb | 8 +-
lib/rubocop/cop/performance/fixed_size.rb | 2 +-
lib/rubocop/cop/performance/flat_map.rb | 4 +-
lib/rubocop/cop/performance/hash_each_methods.rb | 96 +-
lib/rubocop/cop/performance/lstrip_rstrip.rb | 8 +-
lib/rubocop/cop/performance/range_include.rb | 6 +-
.../cop/performance/redundant_block_call.rb | 14 +-
lib/rubocop/cop/performance/redundant_match.rb | 21 +-
lib/rubocop/cop/performance/redundant_merge.rb | 62 +-
lib/rubocop/cop/performance/redundant_sort_by.rb | 9 +-
lib/rubocop/cop/performance/regexp_match.rb | 26 +-
lib/rubocop/cop/performance/reverse_each.rb | 2 +-
lib/rubocop/cop/performance/sample.rb | 2 +-
lib/rubocop/cop/performance/size.rb | 2 +-
lib/rubocop/cop/performance/start_with.rb | 8 +-
lib/rubocop/cop/performance/string_replacement.rb | 4 +-
lib/rubocop/cop/performance/times_map.rb | 35 +-
lib/rubocop/cop/performance/unfreeze_string.rb | 50 +
lib/rubocop/cop/performance/uri_default_parser.rb | 47 +
lib/rubocop/cop/rails/action_filter.rb | 2 +-
lib/rubocop/cop/rails/active_support_aliases.rb | 5 +-
lib/rubocop/cop/rails/application_job.rb | 2 +-
lib/rubocop/cop/rails/application_record.rb | 2 +-
lib/rubocop/cop/rails/blank.rb | 37 +-
lib/rubocop/cop/rails/date.rb | 13 +-
lib/rubocop/cop/rails/delegate.rb | 43 +-
lib/rubocop/cop/rails/delegate_allow_blank.rb | 4 +-
lib/rubocop/cop/rails/dynamic_find_by.rb | 4 +-
lib/rubocop/cop/rails/enum_uniqueness.rb | 8 +-
lib/rubocop/cop/rails/exit.rb | 2 +-
lib/rubocop/cop/rails/file_path.rb | 19 +-
lib/rubocop/cop/rails/find_by.rb | 3 +-
lib/rubocop/cop/rails/find_each.rb | 2 +-
lib/rubocop/cop/rails/has_and_belongs_to_many.rb | 2 +-
.../cop/rails/has_many_or_has_one_dependent.rb | 72 ++
lib/rubocop/cop/rails/http_positional_arguments.rb | 13 +-
lib/rubocop/cop/rails/not_null_column.rb | 12 +-
lib/rubocop/cop/rails/output.rb | 4 +-
lib/rubocop/cop/rails/output_safety.rb | 3 +-
lib/rubocop/cop/rails/pluralization_grammar.rb | 4 +-
lib/rubocop/cop/rails/present.rb | 31 +-
lib/rubocop/cop/rails/read_write_attribute.rb | 6 +-
lib/rubocop/cop/rails/relative_date_constant.rb | 4 +-
lib/rubocop/cop/rails/request_referer.rb | 6 +-
lib/rubocop/cop/rails/reversible_migration.rb | 64 +-
lib/rubocop/cop/rails/safe_navigation.rb | 4 +-
lib/rubocop/cop/rails/save_bang.rb | 32 +-
lib/rubocop/cop/rails/scope_args.rb | 4 +-
lib/rubocop/cop/rails/skips_model_validations.rb | 4 +-
lib/rubocop/cop/rails/time_zone.rb | 5 +-
lib/rubocop/cop/rails/uniq_before_pluck.rb | 4 +-
lib/rubocop/cop/rails/unknown_env.rb | 63 ++
lib/rubocop/cop/rails/validation.rb | 2 +-
lib/rubocop/cop/registry.rb | 3 +-
lib/rubocop/cop/security/eval.rb | 8 +-
lib/rubocop/cop/security/json_load.rb | 8 +-
lib/rubocop/cop/security/marshal_load.rb | 10 +-
lib/rubocop/cop/security/yaml_load.rb | 8 +-
lib/rubocop/cop/style/accessor_method_name.rb | 45 -
lib/rubocop/cop/style/alias.rb | 70 +-
lib/rubocop/cop/style/and_or.rb | 82 +-
lib/rubocop/cop/style/array_join.rb | 2 +-
lib/rubocop/cop/style/ascii_comments.rb | 2 +-
lib/rubocop/cop/style/attr.rb | 2 +-
lib/rubocop/cop/style/auto_resource_cleanup.rb | 6 +-
lib/rubocop/cop/style/bare_percent_literals.rb | 2 +-
lib/rubocop/cop/style/begin_block.rb | 2 +-
lib/rubocop/cop/style/block_comments.rb | 4 +-
lib/rubocop/cop/style/block_delimiters.rb | 5 +-
.../cop/style/braces_around_hash_parameters.rb | 41 +-
lib/rubocop/cop/style/case_equality.rb | 2 +-
lib/rubocop/cop/style/class_and_module_children.rb | 4 +-
lib/rubocop/cop/style/class_check.rb | 2 +-
lib/rubocop/cop/style/class_methods.rb | 3 +-
lib/rubocop/cop/style/class_vars.rb | 2 +-
lib/rubocop/cop/style/collection_methods.rb | 2 +-
lib/rubocop/cop/style/colon_method_call.rb | 4 +-
lib/rubocop/cop/style/command_literal.rb | 29 +-
lib/rubocop/cop/style/comment_annotation.rb | 7 +-
lib/rubocop/cop/style/commented_keyword.rb | 81 ++
lib/rubocop/cop/style/conditional_assignment.rb | 60 +-
lib/rubocop/cop/style/copyright.rb | 20 +-
lib/rubocop/cop/style/date_time.rb | 44 +
lib/rubocop/cop/style/def_with_parentheses.rb | 11 +-
lib/rubocop/cop/style/dir.rb | 48 +
lib/rubocop/cop/style/documentation.rb | 2 +-
lib/rubocop/cop/style/documentation_method.rb | 8 +-
lib/rubocop/cop/style/double_negation.rb | 2 +-
lib/rubocop/cop/style/each_for_simple_loop.rb | 2 +-
lib/rubocop/cop/style/each_with_object.rb | 3 +-
lib/rubocop/cop/style/empty_case_condition.rb | 2 +-
lib/rubocop/cop/style/empty_else.rb | 5 +-
lib/rubocop/cop/style/empty_literal.rb | 19 +-
lib/rubocop/cop/style/empty_method.rb | 44 +-
lib/rubocop/cop/style/encoding.rb | 58 +-
lib/rubocop/cop/style/end_block.rb | 2 +-
lib/rubocop/cop/style/even_odd.rb | 2 +-
lib/rubocop/cop/style/flip_flop.rb | 4 +-
lib/rubocop/cop/style/for.rb | 8 +-
lib/rubocop/cop/style/format_string.rb | 7 +-
lib/rubocop/cop/style/format_string_token.rb | 3 +-
.../cop/style/frozen_string_literal_comment.rb | 6 +-
lib/rubocop/cop/style/global_vars.rb | 2 +-
lib/rubocop/cop/style/guard_clause.rb | 10 +-
lib/rubocop/cop/style/hash_syntax.rb | 25 +-
.../cop/style/identical_conditional_branches.rb | 6 +-
lib/rubocop/cop/style/if_inside_else.rb | 2 +-
lib/rubocop/cop/style/if_unless_modifier.rb | 3 +-
.../cop/style/if_unless_modifier_of_if_unless.rb | 3 +-
lib/rubocop/cop/style/if_with_semicolon.rb | 2 +-
lib/rubocop/cop/style/implicit_runtime_error.rb | 9 +-
lib/rubocop/cop/style/infinite_loop.rb | 4 +-
lib/rubocop/cop/style/inline_comment.rb | 2 +-
lib/rubocop/cop/style/inverse_methods.rb | 38 +-
lib/rubocop/cop/style/lambda.rb | 34 +-
lib/rubocop/cop/style/lambda_call.rb | 23 +-
lib/rubocop/cop/style/line_end_concatenation.rb | 2 +-
.../cop/style/method_call_with_args_parentheses.rb | 24 +-
.../style/method_call_without_args_parentheses.rb | 12 +-
.../cop/style/method_called_on_do_end_block.rb | 2 +-
lib/rubocop/cop/style/method_def_parentheses.rb | 46 +-
lib/rubocop/cop/style/method_missing.rb | 23 +-
lib/rubocop/cop/style/min_max.rb | 68 ++
lib/rubocop/cop/style/missing_else.rb | 19 +-
lib/rubocop/cop/style/mixin_grouping.rb | 4 +-
lib/rubocop/cop/style/mixin_usage.rb | 73 ++
lib/rubocop/cop/style/module_function.rb | 16 +-
lib/rubocop/cop/style/multiline_block_chain.rb | 2 +-
lib/rubocop/cop/style/multiline_if_modifier.rb | 6 +-
lib/rubocop/cop/style/multiline_if_then.rb | 3 +-
lib/rubocop/cop/style/multiline_memoization.rb | 28 +-
.../cop/style/multiline_ternary_operator.rb | 2 +-
lib/rubocop/cop/style/multiple_comparison.rb | 2 +-
lib/rubocop/cop/style/mutable_constant.rb | 8 +-
lib/rubocop/cop/style/negated_if.rb | 12 +-
lib/rubocop/cop/style/nested_modifier.rb | 2 +-
.../cop/style/nested_parenthesized_calls.rb | 20 +-
lib/rubocop/cop/style/nested_ternary_operator.rb | 2 +-
lib/rubocop/cop/style/next.rb | 3 +-
lib/rubocop/cop/style/nil_comparison.rb | 4 +-
lib/rubocop/cop/style/non_nil_check.rb | 32 +-
lib/rubocop/cop/style/not.rb | 2 +-
lib/rubocop/cop/style/numeric_literal_prefix.rb | 8 +-
lib/rubocop/cop/style/numeric_literals.rb | 4 +-
lib/rubocop/cop/style/numeric_predicate.rb | 14 +-
lib/rubocop/cop/style/one_line_conditional.rb | 11 +-
lib/rubocop/cop/style/option_hash.rb | 13 +-
lib/rubocop/cop/style/optional_arguments.rb | 3 +-
lib/rubocop/cop/style/or_assignment.rb | 88 ++
lib/rubocop/cop/style/parallel_assignment.rb | 6 +-
.../cop/style/parentheses_around_condition.rb | 23 +-
.../cop/style/percent_literal_delimiters.rb | 2 +-
lib/rubocop/cop/style/percent_q_literals.rb | 4 +-
lib/rubocop/cop/style/perl_backrefs.rb | 2 +-
lib/rubocop/cop/style/predicate_name.rb | 67 --
lib/rubocop/cop/style/preferred_hash_methods.rb | 2 +-
lib/rubocop/cop/style/proc.rb | 4 +-
lib/rubocop/cop/style/raise_args.rb | 33 +-
lib/rubocop/cop/style/redundant_begin.rb | 11 +-
lib/rubocop/cop/style/redundant_conditional.rb | 95 ++
lib/rubocop/cop/style/redundant_exception.rb | 8 +-
lib/rubocop/cop/style/redundant_freeze.rb | 2 +-
lib/rubocop/cop/style/redundant_parentheses.rb | 26 +-
lib/rubocop/cop/style/redundant_return.rb | 36 +-
lib/rubocop/cop/style/redundant_self.rb | 27 +-
lib/rubocop/cop/style/regexp_literal.rb | 20 +-
lib/rubocop/cop/style/rescue_modifier.rb | 2 +-
lib/rubocop/cop/style/return_nil.rb | 93 ++
lib/rubocop/cop/style/safe_navigation.rb | 132 ++-
lib/rubocop/cop/style/self_assignment.rb | 4 +-
lib/rubocop/cop/style/semicolon.rb | 2 +-
lib/rubocop/cop/style/send.rb | 2 +-
lib/rubocop/cop/style/signal_exception.rb | 7 +-
lib/rubocop/cop/style/single_line_block_params.rb | 27 +-
lib/rubocop/cop/style/single_line_methods.rb | 22 +-
lib/rubocop/cop/style/special_global_vars.rb | 6 +-
lib/rubocop/cop/style/stabby_lambda_parentheses.rb | 56 +-
lib/rubocop/cop/style/stderr_puts.rb | 52 +
lib/rubocop/cop/style/string_literals.rb | 7 +-
.../cop/style/string_literals_in_interpolation.rb | 23 +-
lib/rubocop/cop/style/string_methods.rb | 2 +-
lib/rubocop/cop/style/struct_inheritance.rb | 6 +-
lib/rubocop/cop/style/symbol_array.rb | 36 +-
lib/rubocop/cop/style/symbol_literal.rb | 2 +-
lib/rubocop/cop/style/symbol_proc.rb | 31 +-
lib/rubocop/cop/style/ternary_parentheses.rb | 26 +-
.../cop/style/trailing_underscore_variable.rb | 84 +-
lib/rubocop/cop/style/trivial_accessors.rb | 99 +-
lib/rubocop/cop/style/unless_else.rb | 2 +-
lib/rubocop/cop/style/unneeded_capital_w.rb | 2 +-
lib/rubocop/cop/style/unneeded_interpolation.rb | 2 +-
lib/rubocop/cop/style/unneeded_percent_q.rb | 2 +-
lib/rubocop/cop/style/variable_interpolation.rb | 9 +-
lib/rubocop/cop/style/when_then.rb | 2 +-
lib/rubocop/cop/style/while_until_do.rb | 3 +-
lib/rubocop/cop/style/while_until_modifier.rb | 3 +-
lib/rubocop/cop/style/word_array.rb | 35 +-
lib/rubocop/cop/style/yoda_condition.rb | 63 +-
lib/rubocop/cop/style/zero_length_predicate.rb | 43 +-
lib/rubocop/cop/team.rb | 24 +-
lib/rubocop/cop/util.rb | 2 +-
lib/rubocop/formatter/disabled_config_formatter.rb | 2 +-
lib/rubocop/formatter/formatter_set.rb | 3 +-
lib/rubocop/formatter/html_formatter.rb | 2 +-
lib/rubocop/formatter/offense_count_formatter.rb | 2 +
lib/rubocop/formatter/simple_text_formatter.rb | 6 +-
lib/rubocop/formatter/tap_formatter.rb | 71 ++
lib/rubocop/formatter/worst_offenders_formatter.rb | 2 +
lib/rubocop/node_pattern.rb | 70 +-
lib/rubocop/options.rb | 5 +
lib/rubocop/processed_source.rb | 10 +-
lib/rubocop/rake_task.rb | 39 +-
lib/rubocop/remote_config.rb | 14 +-
lib/rubocop/result_cache.rb | 1 +
lib/rubocop/rspec/cop_helper.rb | 20 +-
lib/rubocop/rspec/expect_offense.rb | 14 +-
lib/rubocop/rspec/shared_contexts.rb | 8 -
lib/rubocop/rspec/shared_examples.rb | 16 +-
lib/rubocop/rspec/support.rb | 10 +-
lib/rubocop/string_util.rb | 2 +
lib/rubocop/version.rb | 2 +-
manual/basic_usage.md | 55 +-
manual/configuration.md | 22 +-
manual/cops.md | 66 +-
manual/cops_bundler.md | 38 +
manual/cops_gemspec.md | 65 ++
manual/cops_layout.md | 174 +++-
manual/cops_lint.md | 336 ++++++-
manual/cops_metrics.md | 3 +-
manual/cops_naming.md | 341 +++++++
manual/cops_performance.md | 78 +-
manual/cops_rails.md | 102 +-
manual/cops_style.md | 728 ++++++++------
manual/development.md | 304 +++++-
manual/formatters.md | 35 +-
manual/installation.md | 2 +-
mkdocs.yml | 2 +
relnotes/v0.43.0.md | 2 +-
relnotes/v0.50.0.md | 122 +++
relnotes/v0.51.0.md | 66 ++
rubocop.gemspec | 24 +-
spec/isolated_environment_spec.rb | 2 +-
spec/project_spec.rb | 2 +-
spec/rubocop/ast/array_node_spec.rb | 22 +
spec/rubocop/ast/block_node_spec.rb | 14 +
spec/rubocop/ast/def_node_spec.rb | 505 ++++++++++
spec/rubocop/ast/for_node_spec.rb | 14 +
spec/rubocop/ast/if_node_spec.rb | 70 ++
spec/rubocop/ast/node_spec.rb | 2 +-
spec/rubocop/ast/regexp_node_spec.rb | 87 ++
spec/rubocop/ast/send_node_spec.rb | 201 +++-
spec/rubocop/ast/super_node_spec.rb | 104 ++
spec/rubocop/ast/yield_node_spec.rb | 353 +++++++
spec/rubocop/cli/cli_auto_gen_config_spec.rb | 42 +-
spec/rubocop/cli/cli_autocorrect_spec.rb | 312 +++---
spec/rubocop/cli/cli_options_spec.rb | 139 ++-
spec/rubocop/cli_spec.rb | 493 +++++-----
spec/rubocop/config_loader_spec.rb | 182 ++--
spec/rubocop/config_spec.rb | 50 +-
spec/rubocop/cop/bundler/duplicated_gem_spec.rb | 12 +-
.../cop/bundler/insecure_protocol_source_spec.rb | 45 +
spec/rubocop/cop/bundler/ordered_gems_spec.rb | 60 +-
spec/rubocop/cop/cop_spec.rb | 50 +-
.../cop/gemspec/ordered_dependencies_spec.rb | 190 ++++
spec/rubocop/cop/generator_spec.rb | 394 ++++++--
.../deprecated_positional_arguments_spec.rb | 140 +++
.../internal_affairs/node_type_predicate_spec.rb | 14 +-
.../offense_location_keyword_spec.rb | 73 ++
.../redundant_location_argument_spec.rb | 90 ++
.../redundant_message_argument_spec.rb | 107 ++
.../cop/layout/access_modifier_indentation_spec.rb | 104 +-
spec/rubocop/cop/layout/align_array_spec.rb | 56 +-
spec/rubocop/cop/layout/align_hash_spec.rb | 204 ++--
spec/rubocop/cop/layout/align_parameters_spec.rb | 210 ++--
spec/rubocop/cop/layout/block_end_newline_spec.rb | 24 +-
spec/rubocop/cop/layout/case_indentation_spec.rb | 106 +-
.../layout/closing_parenthesis_indentation_spec.rb | 96 +-
.../rubocop/cop/layout/comment_indentation_spec.rb | 22 +-
spec/rubocop/cop/layout/dot_position_spec.rb | 72 +-
spec/rubocop/cop/layout/else_alignment_spec.rb | 196 ++--
.../layout/empty_line_after_magic_comment_spec.rb | 20 +-
.../cop/layout/empty_line_between_defs_spec.rb | 128 +--
.../empty_lines_around_access_modifier_spec.rb | 84 +-
.../layout/empty_lines_around_begin_body_spec.rb | 26 +-
.../layout/empty_lines_around_block_body_spec.rb | 28 +-
.../layout/empty_lines_around_class_body_spec.rb | 96 +-
...ines_around_exception_handling_keywords_spec.rb | 46 +-
.../layout/empty_lines_around_method_body_spec.rb | 36 +-
.../layout/empty_lines_around_module_body_spec.rb | 70 +-
spec/rubocop/cop/layout/empty_lines_spec.rb | 10 +-
spec/rubocop/cop/layout/end_of_line_spec.rb | 42 +-
spec/rubocop/cop/layout/extra_spacing_spec.rb | 154 +--
.../layout/first_array_element_line_break_spec.rb | 60 +-
.../layout/first_hash_element_line_break_spec.rb | 32 +-
.../first_method_argument_line_break_spec.rb | 28 +-
.../first_method_parameter_line_break_spec.rb | 36 +-
.../cop/layout/first_parameter_indentation_spec.rb | 140 +--
spec/rubocop/cop/layout/indent_array_spec.rb | 148 +--
spec/rubocop/cop/layout/indent_assignment_spec.rb | 44 +-
spec/rubocop/cop/layout/indent_hash_spec.rb | 156 +--
spec/rubocop/cop/layout/indent_heredoc_spec.rb | 209 ++--
.../cop/layout/indentation_consistency_spec.rb | 188 ++--
spec/rubocop/cop/layout/indentation_width_spec.rb | 450 +++++----
.../rubocop/cop/layout/initial_indentation_spec.rb | 24 +-
.../cop/layout/leading_comment_space_spec.rb | 50 +-
.../layout/multiline_array_brace_layout_spec.rb | 4 +-
.../cop/layout/multiline_assignment_layout_spec.rb | 56 +-
.../cop/layout/multiline_block_layout_spec.rb | 100 +-
.../cop/layout/multiline_hash_brace_layout_spec.rb | 4 +-
.../multiline_method_call_brace_layout_spec.rb | 16 +-
.../multiline_method_call_indentation_spec.rb | 253 +++--
...ultiline_method_definition_brace_layout_spec.rb | 12 +-
.../layout/multiline_operation_indentation_spec.rb | 171 ++--
.../cop/layout/rescue_ensure_alignment_spec.rb | 40 +-
spec/rubocop/cop/layout/space_after_colon_spec.rb | 28 +-
spec/rubocop/cop/layout/space_after_comma_spec.rb | 10 +-
.../cop/layout/space_after_method_name_spec.rb | 24 +-
spec/rubocop/cop/layout/space_after_not_spec.rb | 8 +-
.../cop/layout/space_after_semicolon_spec.rb | 6 +-
.../layout/space_around_block_parameters_spec.rb | 20 +-
...pace_around_equals_in_parameter_default_spec.rb | 34 +-
.../cop/layout/space_around_keyword_spec.rb | 14 +-
.../cop/layout/space_around_operators_spec.rb | 161 ++--
.../cop/layout/space_before_block_braces_spec.rb | 81 +-
spec/rubocop/cop/layout/space_before_comma_spec.rb | 6 +-
.../cop/layout/space_before_comment_spec.rb | 6 +-
.../cop/layout/space_before_first_arg_spec.rb | 48 +-
.../cop/layout/space_before_semicolon_spec.rb | 8 +-
.../cop/layout/space_in_lambda_literal_spec.rb | 26 +-
.../space_inside_array_percent_literal_spec.rb | 24 +-
.../cop/layout/space_inside_block_braces_spec.rb | 76 +-
.../cop/layout/space_inside_brackets_spec.rb | 20 +-
.../space_inside_hash_literal_braces_spec.rb | 78 +-
.../rubocop/cop/layout/space_inside_parens_spec.rb | 12 +-
...space_inside_percent_literal_delimiters_spec.rb | 28 +-
.../cop/layout/space_inside_range_literal_spec.rb | 20 +-
.../space_inside_string_interpolation_spec.rb | 8 +-
spec/rubocop/cop/layout/tab_spec.rb | 34 +-
.../cop/layout/trailing_blank_lines_spec.rb | 31 +-
.../rubocop/cop/layout/trailing_whitespace_spec.rb | 58 +-
.../cop/lint/ambiguous_block_association_spec.rb | 2 +-
spec/rubocop/cop/lint/ambiguous_operator_spec.rb | 12 +-
.../cop/lint/ambiguous_regexp_literal_spec.rb | 2 +-
.../cop/lint/assignment_in_condition_spec.rb | 46 +-
spec/rubocop/cop/lint/block_alignment_spec.rb | 289 +++---
spec/rubocop/cop/lint/boolean_symbol_spec.rb | 53 +
.../cop/lint/circular_argument_reference_spec.rb | 233 ++---
spec/rubocop/cop/lint/condition_position_spec.rb | 8 +-
spec/rubocop/cop/lint/debugger_spec.rb | 9 +
spec/rubocop/cop/lint/def_end_alignment_spec.rb | 21 +-
.../cop/lint/deprecated_class_methods_spec.rb | 4 +-
spec/rubocop/cop/lint/duplicate_methods_spec.rb | 229 +++--
spec/rubocop/cop/lint/duplicated_key_spec.rb | 10 +-
spec/rubocop/cop/lint/else_layout_spec.rb | 8 +-
spec/rubocop/cop/lint/empty_ensure_spec.rb | 12 +-
spec/rubocop/cop/lint/empty_expression_spec.rb | 30 +-
spec/rubocop/cop/lint/empty_interpolation_spec.rb | 4 +-
spec/rubocop/cop/lint/empty_when_spec.rb | 54 +-
spec/rubocop/cop/lint/end_alignment_spec.rb | 20 +-
spec/rubocop/cop/lint/end_in_method_spec.rb | 16 +-
spec/rubocop/cop/lint/ensure_return_spec.rb | 8 +-
.../cop/lint/format_parameter_mismatch_spec.rb | 70 +-
spec/rubocop/cop/lint/handle_exceptions_spec.rb | 4 +-
.../cop/lint/implicit_string_concatenation_spec.rb | 8 +-
.../cop/lint/ineffective_access_modifier_spec.rb | 8 +-
spec/rubocop/cop/lint/inherit_exception_spec.rb | 4 +-
spec/rubocop/cop/lint/interpolation_check_spec.rb | 36 +
.../cop/lint/invalid_character_literal_spec.rb | 31 -
...dition_spec.rb => literal_as_condition_spec.rb} | 86 +-
.../cop/lint/literal_in_interpolation_spec.rb | 35 +-
spec/rubocop/cop/lint/multiple_compare_spec.rb | 6 +-
.../cop/lint/nested_method_definition_spec.rb | 48 +-
.../cop/lint/next_without_accumulator_spec.rb | 6 +-
.../cop/lint/non_local_exit_from_iterator_spec.rb | 50 +-
.../lint/parentheses_as_grouped_expression_spec.rb | 12 +-
spec/rubocop/cop/lint/percent_string_array_spec.rb | 8 +-
spec/rubocop/cop/lint/percent_symbol_array_spec.rb | 8 +-
spec/rubocop/cop/lint/rand_one_spec.rb | 2 +-
spec/rubocop/cop/lint/redundant_with_index_spec.rb | 50 +
.../rubocop/cop/lint/redundant_with_object_spec.rb | 76 ++
spec/rubocop/cop/lint/regexp_as_condition_spec.rb | 27 +
spec/rubocop/cop/lint/require_parentheses_spec.rb | 28 +-
spec/rubocop/cop/lint/rescue_exception_spec.rb | 28 +-
spec/rubocop/cop/lint/rescue_type_spec.rb | 84 +-
.../cop/lint/rescue_without_error_class_spec.rb | 103 ++
.../cop/lint/return_in_void_context_spec.rb | 91 ++
.../rubocop/cop/lint/safe_navigation_chain_spec.rb | 6 +-
spec/rubocop/cop/lint/script_permission_spec.rb | 76 +-
spec/rubocop/cop/lint/shadowed_exception_spec.rb | 161 ++--
.../lint/shadowing_outer_local_variable_spec.rb | 58 +-
.../string_conversion_in_interpolation_spec.rb | 4 +-
spec/rubocop/cop/lint/syntax_spec.rb | 90 +-
.../lint/underscore_prefixed_variable_name_spec.rb | 54 +-
spec/rubocop/cop/lint/unified_integer_spec.rb | 8 +-
spec/rubocop/cop/lint/unneeded_disable_spec.rb | 6 +-
.../cop/lint/unneeded_require_statement_spec.rb | 33 +
.../cop/lint/unneeded_splat_expansion_spec.rb | 220 +++--
spec/rubocop/cop/lint/unreachable_code_spec.rb | 204 +++-
.../rubocop/cop/lint/unused_block_argument_spec.rb | 499 +++++-----
.../cop/lint/unused_method_argument_spec.rb | 423 ++++----
spec/rubocop/cop/lint/uri_escape_unescape_spec.rb | 69 ++
spec/rubocop/cop/lint/uri_regexp_spec.rb | 62 ++
.../cop/lint/useless_access_modifier_spec.rb | 278 +++---
spec/rubocop/cop/lint/useless_assignment_spec.rb | 484 +++++-----
spec/rubocop/cop/lint/useless_comparison_spec.rb | 8 +-
.../cop/lint/useless_else_without_rescue_spec.rb | 10 +-
spec/rubocop/cop/lint/useless_setter_call_spec.rb | 36 +-
spec/rubocop/cop/lint/void_spec.rb | 119 ++-
spec/rubocop/cop/metrics/abc_size_spec.rb | 38 +-
spec/rubocop/cop/metrics/block_length_spec.rb | 48 +-
spec/rubocop/cop/metrics/block_nesting_spec.rb | 68 +-
spec/rubocop/cop/metrics/class_length_spec.rb | 36 +-
.../cop/metrics/cyclomatic_complexity_spec.rb | 72 +-
spec/rubocop/cop/metrics/line_length_spec.rb | 120 +--
spec/rubocop/cop/metrics/method_length_spec.rb | 182 ++--
spec/rubocop/cop/metrics/module_length_spec.rb | 44 +-
spec/rubocop/cop/metrics/parameter_lists_spec.rb | 16 +-
.../cop/metrics/perceived_complexity_spec.rb | 76 +-
.../{style => naming}/accessor_method_name_spec.rb | 26 +-
.../{style => naming}/ascii_identifiers_spec.rb | 2 +-
.../binary_operator_parameter_name_spec.rb} | 30 +-
.../class_and_module_camel_case_spec.rb | 6 +-
.../cop/{style => naming}/constant_name_spec.rb | 8 +-
.../cop/{style => naming}/file_name_spec.rb | 36 +-
.../cop/naming/heredoc_delimiter_case_spec.rb | 263 +++++
.../cop/naming/heredoc_delimiter_naming_spec.rb | 192 ++++
.../cop/{style => naming}/method_name_spec.rb | 64 +-
spec/rubocop/cop/naming/predicate_name_spec.rb | 129 +++
.../cop/{style => naming}/variable_name_spec.rb | 44 +-
.../cop/{style => naming}/variable_number_spec.rb | 14 +-
spec/rubocop/cop/offense_spec.rb | 8 +-
spec/rubocop/cop/performance/caller_spec.rb | 46 +-
.../cop/performance/case_when_splat_spec.rb | 128 ++-
spec/rubocop/cop/performance/casecmp_spec.rb | 49 +-
.../cop/performance/compare_with_block_spec.rb | 31 +-
spec/rubocop/cop/performance/count_spec.rb | 84 +-
spec/rubocop/cop/performance/detect_spec.rb | 72 +-
.../cop/performance/double_start_end_with_spec.rb | 24 +-
spec/rubocop/cop/performance/end_with_spec.rb | 20 +-
spec/rubocop/cop/performance/fixed_size_spec.rb | 76 +-
spec/rubocop/cop/performance/flat_map_spec.rb | 14 +-
.../cop/performance/hash_each_methods_spec.rb | 267 ++++-
spec/rubocop/cop/performance/lstrip_rstrip_spec.rb | 4 +-
spec/rubocop/cop/performance/range_include_spec.rb | 8 +-
.../cop/performance/redundant_block_call_spec.rb | 62 +-
.../cop/performance/redundant_match_spec.rb | 46 +-
.../cop/performance/redundant_merge_spec.rb | 116 ++-
.../cop/performance/redundant_sort_by_spec.rb | 8 +-
spec/rubocop/cop/performance/regexp_match_spec.rb | 124 +--
spec/rubocop/cop/performance/reverse_each_spec.rb | 2 +-
spec/rubocop/cop/performance/sample_spec.rb | 6 +-
spec/rubocop/cop/performance/size_spec.rb | 16 +-
spec/rubocop/cop/performance/start_with_spec.rb | 16 +-
.../cop/performance/string_replacement_spec.rb | 99 +-
spec/rubocop/cop/performance/times_map_spec.rb | 23 +-
.../cop/performance/unfreeze_string_spec.rb | 78 ++
.../cop/performance/uri_default_parser_spec.rb | 32 +
spec/rubocop/cop/rails/action_filter_spec.rb | 32 +-
.../cop/rails/active_support_aliases_spec.rb | 8 +-
spec/rubocop/cop/rails/application_job_spec.rb | 28 +-
spec/rubocop/cop/rails/application_record_spec.rb | 28 +-
spec/rubocop/cop/rails/blank_spec.rb | 75 +-
spec/rubocop/cop/rails/date_spec.rb | 24 +-
.../rubocop/cop/rails/delegate_allow_blank_spec.rb | 4 +-
spec/rubocop/cop/rails/delegate_spec.rb | 106 +-
spec/rubocop/cop/rails/dynamic_find_by_spec.rb | 12 +-
spec/rubocop/cop/rails/enum_uniqueness_spec.rb | 8 +-
spec/rubocop/cop/rails/exit_spec.rb | 3 +-
spec/rubocop/cop/rails/find_by_spec.rb | 6 +-
spec/rubocop/cop/rails/find_each_spec.rb | 10 +-
.../rails/has_many_or_has_one_dependent_spec.rb | 118 +++
.../cop/rails/http_positional_arguments_spec.rb | 150 +--
spec/rubocop/cop/rails/not_null_column_spec.rb | 8 +-
spec/rubocop/cop/rails/output_safety_spec.rb | 186 ++--
spec/rubocop/cop/rails/output_spec.rb | 6 +-
.../cop/rails/pluralization_grammar_spec.rb | 11 +-
spec/rubocop/cop/rails/present_spec.rb | 70 +-
.../rubocop/cop/rails/read_write_attribute_spec.rb | 32 +-
.../cop/rails/relative_date_constant_spec.rb | 20 +-
spec/rubocop/cop/rails/request_referer_spec.rb | 8 +-
.../rubocop/cop/rails/reversible_migration_spec.rb | 4 +-
spec/rubocop/cop/rails/safe_navigation_spec.rb | 10 +-
spec/rubocop/cop/rails/save_bang_spec.rb | 102 +-
spec/rubocop/cop/rails/scope_args_spec.rb | 4 +-
.../cop/rails/skips_model_validations_spec.rb | 8 +-
spec/rubocop/cop/rails/time_zone_spec.rb | 37 +-
spec/rubocop/cop/rails/uniq_before_pluck_spec.rb | 6 +-
spec/rubocop/cop/rails/unknown_env_spec.rb | 31 +
spec/rubocop/cop/rails/validation_spec.rb | 8 +-
spec/rubocop/cop/security/yaml_load_spec.rb | 2 +-
spec/rubocop/cop/style/alias_spec.rb | 62 +-
spec/rubocop/cop/style/and_or_spec.rb | 122 +--
spec/rubocop/cop/style/array_join_spec.rb | 9 +-
spec/rubocop/cop/style/attr_spec.rb | 16 +-
.../cop/style/bare_percent_literals_spec.rb | 12 +-
spec/rubocop/cop/style/begin_block_spec.rb | 2 +-
spec/rubocop/cop/style/block_comments_spec.rb | 16 +-
spec/rubocop/cop/style/block_delimiters_spec.rb | 200 ++--
.../style/braces_around_hash_parameters_spec.rb | 84 +-
spec/rubocop/cop/style/character_literal_spec.rb | 6 +-
.../cop/style/class_and_module_children_spec.rb | 24 +-
spec/rubocop/cop/style/class_check_spec.rb | 4 +-
spec/rubocop/cop/style/class_methods_spec.rb | 22 +-
spec/rubocop/cop/style/collection_methods_spec.rb | 10 +-
spec/rubocop/cop/style/colon_method_call_spec.rb | 2 +-
spec/rubocop/cop/style/command_literal_spec.rb | 32 +-
spec/rubocop/cop/style/comment_annotation_spec.rb | 16 +-
spec/rubocop/cop/style/commented_keyword_spec.rb | 144 +++
...ditional_assignment_assign_in_condition_spec.rb | 392 ++++----
...ditional_assignment_assign_to_condition_spec.rb | 743 +++++++-------
spec/rubocop/cop/style/copyright_spec.rb | 21 +-
spec/rubocop/cop/style/date_time_spec.rb | 32 +
.../rubocop/cop/style/def_with_parentheses_spec.rb | 20 +-
spec/rubocop/cop/style/dir_spec.rb | 35 +
.../rubocop/cop/style/documentation_method_spec.rb | 2 +-
spec/rubocop/cop/style/documentation_spec.rb | 72 +-
.../rubocop/cop/style/each_for_simple_loop_spec.rb | 52 +-
spec/rubocop/cop/style/each_with_object_spec.rb | 24 +-
.../rubocop/cop/style/empty_case_condition_spec.rb | 62 +-
spec/rubocop/cop/style/empty_else_spec.rb | 31 +-
spec/rubocop/cop/style/empty_literal_spec.rb | 28 +-
spec/rubocop/cop/style/empty_method_spec.rb | 6 +-
spec/rubocop/cop/style/encoding_spec.rb | 313 ++----
spec/rubocop/cop/style/end_block_spec.rb | 2 +-
spec/rubocop/cop/style/even_odd_spec.rb | 36 +-
spec/rubocop/cop/style/for_spec.rb | 32 +-
spec/rubocop/cop/style/format_string_spec.rb | 28 +-
spec/rubocop/cop/style/format_string_token_spec.rb | 11 +-
.../style/frozen_string_literal_comment_spec.rb | 330 ++++---
spec/rubocop/cop/style/global_vars_spec.rb | 2 +-
spec/rubocop/cop/style/guard_clause_spec.rb | 104 +-
spec/rubocop/cop/style/hash_syntax_spec.rb | 86 +-
.../style/identical_conditional_branches_spec.rb | 24 +-
spec/rubocop/cop/style/if_inside_else_spec.rb | 24 +-
.../style/if_unless_modifier_of_if_unless_spec.rb | 2 +-
spec/rubocop/cop/style/if_unless_modifier_spec.rb | 76 +-
.../cop/style/implicit_runtime_error_spec.rb | 8 +-
spec/rubocop/cop/style/infinite_loop_spec.rb | 53 +-
spec/rubocop/cop/style/inverse_methods_spec.rb | 81 +-
spec/rubocop/cop/style/lambda_call_spec.rb | 28 +-
spec/rubocop/cop/style/lambda_spec.rb | 146 +--
.../cop/style/line_end_concatenation_spec.rb | 24 +-
.../method_call_with_args_parentheses_spec.rb | 62 +-
.../method_call_without_args_parentheses_spec.rb | 16 +-
.../cop/style/method_def_parentheses_spec.rb | 90 +-
spec/rubocop/cop/style/method_missing_spec.rb | 26 +-
spec/rubocop/cop/style/min_max_spec.rb | 100 ++
spec/rubocop/cop/style/missing_else_spec.rb | 6 +-
spec/rubocop/cop/style/mixin_grouping_spec.rb | 42 +-
spec/rubocop/cop/style/mixin_usage_spec.rb | 75 ++
spec/rubocop/cop/style/module_function_spec.rb | 8 +-
.../cop/style/multiline_block_chain_spec.rb | 16 +-
.../cop/style/multiline_if_modifier_spec.rb | 6 +-
spec/rubocop/cop/style/multiline_if_then_spec.rb | 70 +-
.../cop/style/multiline_memoization_spec.rb | 84 +-
.../cop/style/multiline_ternary_operator_spec.rb | 12 +-
spec/rubocop/cop/style/multiple_comparison_spec.rb | 100 +-
spec/rubocop/cop/style/mutable_constant_spec.rb | 20 +-
spec/rubocop/cop/style/negated_if_spec.rb | 70 +-
spec/rubocop/cop/style/negated_while_spec.rb | 30 +-
spec/rubocop/cop/style/nested_modifier_spec.rb | 20 +-
.../cop/style/nested_parenthesized_calls_spec.rb | 14 +-
.../cop/style/nested_ternary_operator_spec.rb | 4 +-
spec/rubocop/cop/style/next_spec.rb | 202 ++--
spec/rubocop/cop/style/nil_comparison_spec.rb | 4 +-
spec/rubocop/cop/style/non_nil_check_spec.rb | 35 +-
spec/rubocop/cop/style/not_spec.rb | 14 +-
.../cop/style/numeric_literal_prefix_spec.rb | 42 +-
spec/rubocop/cop/style/numeric_literals_spec.rb | 30 +-
spec/rubocop/cop/style/numeric_predicate_spec.rb | 22 +-
.../rubocop/cop/style/one_line_conditional_spec.rb | 15 +-
spec/rubocop/cop/style/option_hash_spec.rb | 12 +-
spec/rubocop/cop/style/optional_arguments_spec.rb | 20 +-
spec/rubocop/cop/style/or_assignment_spec.rb | 341 +++++++
spec/rubocop/cop/style/parallel_assignment_spec.rb | 262 ++---
.../cop/style/parentheses_around_condition_spec.rb | 56 +-
.../cop/style/percent_literal_delimiters_spec.rb | 87 +-
spec/rubocop/cop/style/percent_q_literals_spec.rb | 6 +-
spec/rubocop/cop/style/perl_backrefs_spec.rb | 4 +-
spec/rubocop/cop/style/predicate_name_spec.rb | 76 --
.../cop/style/preferred_hash_methods_spec.rb | 8 +-
spec/rubocop/cop/style/proc_spec.rb | 2 +-
spec/rubocop/cop/style/raise_args_spec.rb | 45 +-
spec/rubocop/cop/style/redundant_begin_spec.rb | 38 +-
.../cop/style/redundant_conditional_spec.rb | 132 +++
spec/rubocop/cop/style/redundant_exception_spec.rb | 16 +-
spec/rubocop/cop/style/redundant_freeze_spec.rb | 6 +-
.../cop/style/redundant_parentheses_spec.rb | 43 +-
spec/rubocop/cop/style/redundant_return_spec.rb | 135 +--
spec/rubocop/cop/style/redundant_self_spec.rb | 23 +-
spec/rubocop/cop/style/regexp_literal_spec.rb | 46 +-
spec/rubocop/cop/style/rescue_modifier_spec.rb | 83 +-
spec/rubocop/cop/style/return_nil_spec.rb | 73 ++
spec/rubocop/cop/style/safe_navigation_spec.rb | 522 +++++-----
spec/rubocop/cop/style/self_assignment_spec.rb | 16 +-
spec/rubocop/cop/style/semicolon_spec.rb | 24 +-
spec/rubocop/cop/style/signal_exception_spec.rb | 68 +-
.../cop/style/single_line_block_params_spec.rb | 24 +-
spec/rubocop/cop/style/single_line_methods_spec.rb | 29 +-
spec/rubocop/cop/style/special_global_vars_spec.rb | 18 +-
.../cop/style/stabby_lambda_parentheses_spec.rb | 4 +-
spec/rubocop/cop/style/stderr_puts_spec.rb | 19 +
.../style/string_literals_in_interpolation_spec.rb | 20 +-
spec/rubocop/cop/style/string_literals_spec.rb | 138 +--
spec/rubocop/cop/style/string_methods_spec.rb | 4 +-
spec/rubocop/cop/style/struct_inheritance_spec.rb | 8 +-
spec/rubocop/cop/style/symbol_array_spec.rb | 40 +-
spec/rubocop/cop/style/symbol_literal_spec.rb | 2 +-
spec/rubocop/cop/style/symbol_proc_spec.rb | 24 +-
spec/rubocop/cop/style/ternary_parentheses_spec.rb | 10 +-
.../cop/style/trailing_comma_in_arguments_spec.rb | 118 +--
.../cop/style/trailing_comma_in_literal_spec.rb | 169 ++--
.../cop/style/trailing_underscore_variable_spec.rb | 148 ++-
spec/rubocop/cop/style/trivial_accessors_spec.rb | 152 ++-
spec/rubocop/cop/style/unless_else_spec.rb | 28 +-
spec/rubocop/cop/style/unneeded_capital_w_spec.rb | 4 +-
.../cop/style/unneeded_interpolation_spec.rb | 8 +-
spec/rubocop/cop/style/unneeded_percent_q_spec.rb | 26 +-
.../cop/style/variable_interpolation_spec.rb | 2 +-
spec/rubocop/cop/style/when_then_spec.rb | 20 +-
spec/rubocop/cop/style/while_until_do_spec.rb | 24 +-
.../rubocop/cop/style/while_until_modifier_spec.rb | 14 +-
spec/rubocop/cop/style/word_array_spec.rb | 69 +-
spec/rubocop/cop/style/yoda_condition_spec.rb | 24 +-
.../cop/style/zero_length_predicate_spec.rb | 4 +-
spec/rubocop/cop/team_spec.rb | 8 +-
spec/rubocop/cop/util_spec.rb | 8 +-
spec/rubocop/cop/variable_force/assignment_spec.rb | 40 +-
spec/rubocop/cop/variable_force/scope_spec.rb | 76 +-
spec/rubocop/formatter/base_formatter_spec.rb | 6 +-
.../formatter/clang_style_formatter_spec.rb | 50 +-
.../formatter/disabled_config_formatter_spec.rb | 4 +-
.../formatter/disabled_lines_formatter_spec.rb | 4 +-
.../formatter/emacs_style_formatter_spec.rb | 20 +-
spec/rubocop/formatter/file_list_formatter_spec.rb | 16 +-
spec/rubocop/formatter/formatter_set_spec.rb | 9 +
.../formatter/offense_count_formatter_spec.rb | 4 +-
spec/rubocop/formatter/progress_formatter_spec.rb | 4 +-
.../formatter/simple_text_formatter_spec.rb | 24 +-
...ess_formatter_spec.rb => tap_formatter_spec.rb} | 103 +-
.../formatter/worst_offenders_formatter_spec.rb | 4 +-
spec/rubocop/node_pattern_spec.rb | 63 +-
spec/rubocop/options_spec.rb | 7 +-
spec/rubocop/processed_source_spec.rb | 4 +-
spec/rubocop/rake_task_spec.rb | 31 +-
spec/rubocop/remote_config_spec.rb | 27 +
spec/rubocop/result_cache_spec.rb | 16 +-
spec/rubocop/runner_spec.rb | 36 +-
spec/rubocop/target_finder_spec.rb | 8 +-
spec/spec_helper.rb | 7 +-
spec/support/cops/class_must_be_a_module_cop.rb | 2 +-
spec/support/cops/module_must_be_a_class_cop.rb | 2 +-
spec/support/coverage.rb | 4 +-
.../empty_lines_around_body_shared_examples.rb | 152 +--
spec/support/jruby_workaround.rb | 15 -
.../multiline_literal_brace_layout_examples.rb | 147 ++-
...literal_brace_layout_trailing_comma_examples.rb | 16 +-
spec/support/statement_modifier_helper.rb | 22 +-
tasks/cops_documentation.rake | 20 +-
tasks/cut_release.rake | 83 ++
tasks/new_cop.rake | 4 +-
886 files changed, 25936 insertions(+), 14260 deletions(-)
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/rubocop.git
More information about the Pkg-ruby-extras-commits
mailing list