[DRE-commits] [rubocop] 01/09: Merge tag 'upstream/0.46.0'
Miguel Landaeta
nomadium at moszumanska.debian.org
Thu Dec 29 22:07:57 UTC 2016
This is an automated email from the git hooks/post-receive script.
nomadium pushed a commit to branch master
in repository rubocop.
commit e3c21d2849c4ef87fcfd64db0eee706cb07e44ae
Merge: 65c4734 3ba9c1c
Author: Miguel Landaeta <nomadium at debian.org>
Date: Thu Dec 29 17:25:56 2016 +0000
Merge tag 'upstream/0.46.0'
Upstream release 0.46.0
# gpg: Signature made Thu 29 Dec 2016 05:25:20 PM GMT
# gpg: using RSA key 0xAFB8E0FC9231CC6D
# 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]
.gitattributes | 1 +
.github/ISSUE_TEMPLATE.md | 34 +
.github/PULL_REQUEST_TEMPLATE.md | 21 +
.rubocop.yml | 6 +
.rubocop_todo.yml | 29 +-
.travis.yml | 29 +-
CHANGELOG.md | 1168 ++++-
CONTRIBUTING.md | 1 +
Gemfile | 17 +-
LICENSE.txt | 2 +-
README.md | 839 +---
Rakefile | 64 +-
assets/output.html.erb | 88 +-
bin/rubocop | 2 +-
config/default.yml | 553 ++-
config/disabled.yml | 83 +-
config/enabled.yml | 780 +++-
lib/rubocop.rb | 190 +-
lib/rubocop/ast_node.rb | 624 +++
lib/rubocop/ast_node/builder.rb | 30 +
lib/rubocop/ast_node/sexp.rb | 13 +
lib/rubocop/ast_node/traversal.rb | 171 +
lib/rubocop/cached_data.rb | 63 +
lib/rubocop/cli.rb | 118 +-
lib/rubocop/comment_config.rb | 118 +-
lib/rubocop/config.rb | 283 +-
lib/rubocop/config_loader.rb | 123 +-
lib/rubocop/config_loader_resolver.rb | 43 +
lib/rubocop/config_store.rb | 6 +-
lib/rubocop/cop/autocorrect_logic.rb | 4 +-
lib/rubocop/cop/bundler/duplicated_gem.rb | 69 +
lib/rubocop/cop/bundler/ordered_gems.rb | 54 +
lib/rubocop/cop/commissioner.rb | 73 +-
lib/rubocop/cop/cop.rb | 125 +-
lib/rubocop/cop/corrector.rb | 59 +-
lib/rubocop/cop/force.rb | 2 +-
lib/rubocop/cop/ignored_node.rb | 6 +-
lib/rubocop/cop/lint/ambiguous_operator.rb | 4 +-
lib/rubocop/cop/lint/ambiguous_regexp_literal.rb | 4 +-
lib/rubocop/cop/lint/assignment_in_condition.rb | 49 +-
lib/rubocop/cop/lint/block_alignment.rb | 242 +-
.../cop/lint/circular_argument_reference.rb | 69 +
lib/rubocop/cop/lint/condition_position.rb | 8 +-
lib/rubocop/cop/lint/debugger.rb | 91 +-
lib/rubocop/cop/lint/def_end_alignment.rb | 40 +-
lib/rubocop/cop/lint/deprecated_class_methods.rb | 66 +-
lib/rubocop/cop/lint/duplicate_case_condition.rb | 49 +
lib/rubocop/cop/lint/duplicate_methods.rb | 181 +-
lib/rubocop/cop/lint/duplicated_key.rb | 30 +
lib/rubocop/cop/lint/each_with_object_argument.rb | 15 +-
lib/rubocop/cop/lint/else_layout.rb | 45 +-
lib/rubocop/cop/lint/empty_ensure.rb | 4 +-
lib/rubocop/cop/lint/empty_expression.rb | 32 +
lib/rubocop/cop/lint/empty_interpolation.rb | 12 +-
lib/rubocop/cop/lint/empty_when.rb | 40 +
lib/rubocop/cop/lint/end_alignment.rb | 117 +-
lib/rubocop/cop/lint/end_in_method.rb | 4 +-
lib/rubocop/cop/lint/ensure_return.rb | 4 +-
lib/rubocop/cop/lint/eval.rb | 10 +-
lib/rubocop/cop/lint/float_out_of_range.rb | 30 +
lib/rubocop/cop/lint/format_parameter_mismatch.rb | 155 +
lib/rubocop/cop/lint/handle_exceptions.rb | 4 +-
.../cop/lint/implicit_string_concatenation.rb | 90 +
.../cop/lint/ineffective_access_modifier.rb | 134 +
lib/rubocop/cop/lint/inherit_exception.rb | 83 +
lib/rubocop/cop/lint/invalid_character_literal.rb | 5 +-
lib/rubocop/cop/lint/literal_in_condition.rb | 31 +-
lib/rubocop/cop/lint/literal_in_interpolation.rb | 44 +-
lib/rubocop/cop/lint/loop.rb | 4 +-
lib/rubocop/cop/lint/nested_method_definition.rb | 37 +-
lib/rubocop/cop/lint/next_without_accumulator.rb | 45 +
.../cop/lint/non_local_exit_from_iterator.rb | 23 +-
.../cop/lint/parentheses_as_grouped_expression.rb | 28 +-
lib/rubocop/cop/lint/percent_string_array.rb | 70 +
lib/rubocop/cop/lint/percent_symbol_array.rb | 56 +
lib/rubocop/cop/lint/rand_one.rb | 35 +
lib/rubocop/cop/lint/require_parentheses.rb | 16 +-
lib/rubocop/cop/lint/rescue_exception.rb | 6 +-
lib/rubocop/cop/lint/shadowed_exception.rb | 131 +
.../cop/lint/shadowing_outer_local_variable.rb | 4 +-
lib/rubocop/cop/lint/space_before_first_arg.rb | 44 -
.../cop/lint/string_conversion_in_interpolation.rb | 15 +-
lib/rubocop/cop/lint/syntax.rb | 15 +-
.../cop/lint/underscore_prefixed_variable_name.rb | 9 +-
lib/rubocop/cop/lint/unified_integer.rb | 37 +
lib/rubocop/cop/lint/unneeded_disable.rb | 198 +-
lib/rubocop/cop/lint/unneeded_splat_expansion.rb | 136 +
lib/rubocop/cop/lint/unreachable_code.rb | 10 +-
lib/rubocop/cop/lint/unused_block_argument.rb | 99 +-
lib/rubocop/cop/lint/unused_method_argument.rb | 12 +-
lib/rubocop/cop/lint/useless_access_modifier.rb | 198 +-
lib/rubocop/cop/lint/useless_assignment.rb | 58 +-
lib/rubocop/cop/lint/useless_comparison.rb | 18 +-
.../cop/lint/useless_else_without_rescue.rb | 4 +-
lib/rubocop/cop/lint/useless_setter_call.rb | 81 +-
lib/rubocop/cop/lint/void.rb | 24 +-
lib/rubocop/cop/metrics/abc_size.rb | 28 +-
lib/rubocop/cop/metrics/block_length.rb | 26 +
lib/rubocop/cop/metrics/block_nesting.rb | 4 +-
lib/rubocop/cop/metrics/class_length.rb | 2 +-
lib/rubocop/cop/metrics/cyclomatic_complexity.rb | 7 +-
lib/rubocop/cop/metrics/line_length.rb | 137 +-
lib/rubocop/cop/metrics/method_length.rb | 20 +-
lib/rubocop/cop/metrics/module_length.rb | 2 +-
lib/rubocop/cop/metrics/parameter_lists.rb | 6 +-
lib/rubocop/cop/metrics/perceived_complexity.rb | 7 +-
lib/rubocop/cop/mixin/access_modifier_node.rb | 38 +-
lib/rubocop/cop/mixin/annotation_comment.rb | 5 +-
lib/rubocop/cop/mixin/array_hash_indentation.rb | 82 +
lib/rubocop/cop/mixin/array_syntax.rb | 4 +-
lib/rubocop/cop/mixin/autocorrect_alignment.rb | 90 +-
.../cop/mixin/autocorrect_unless_changing_ast.rb | 33 -
lib/rubocop/cop/mixin/check_assignment.rb | 39 +-
lib/rubocop/cop/mixin/classish_length.rb | 9 +-
lib/rubocop/cop/mixin/code_length.rb | 6 +-
.../cop/mixin/configurable_enforced_style.rb | 82 +-
lib/rubocop/cop/mixin/configurable_max.rb | 4 +-
lib/rubocop/cop/mixin/configurable_naming.rb | 23 +-
lib/rubocop/cop/mixin/configurable_numbering.rb | 58 +
lib/rubocop/cop/mixin/def_node.rb | 27 +
lib/rubocop/cop/mixin/documentation_comment.rb | 40 +
lib/rubocop/cop/mixin/empty_lines_around_body.rb | 150 +-
lib/rubocop/cop/mixin/end_keyword_alignment.rb | 74 +-
lib/rubocop/cop/mixin/first_element_line_break.rb | 41 +
lib/rubocop/cop/mixin/frozen_string_literal.rb | 34 +
lib/rubocop/cop/mixin/hash_node.rb | 14 +
lib/rubocop/cop/mixin/if_node.rb | 19 +-
lib/rubocop/cop/mixin/integer_node.rb | 12 +
lib/rubocop/cop/mixin/match_range.rb | 22 +
lib/rubocop/cop/mixin/method_complexity.rb | 4 +-
lib/rubocop/cop/mixin/method_preference.rb | 28 +
lib/rubocop/cop/mixin/min_body_length.rb | 4 +-
.../cop/mixin/multiline_expression_indentation.rb | 191 +
.../cop/mixin/multiline_literal_brace_layout.rb | 152 +
lib/rubocop/cop/mixin/negative_conditional.rb | 19 +-
lib/rubocop/cop/mixin/on_method_def.rb | 13 +-
lib/rubocop/cop/mixin/on_normal_if_unless.rb | 4 +-
lib/rubocop/cop/mixin/parentheses.rb | 22 +
lib/rubocop/cop/mixin/parser_diagnostic.rb | 2 +-
lib/rubocop/cop/mixin/percent_literal.rb | 8 +-
.../cop/mixin/preceding_following_alignment.rb | 89 +
lib/rubocop/cop/mixin/safe_assignment.rb | 20 +-
lib/rubocop/cop/mixin/safe_mode.rb | 22 +
lib/rubocop/cop/mixin/space_after_punctuation.rb | 37 +-
lib/rubocop/cop/mixin/space_before_punctuation.rb | 41 +-
lib/rubocop/cop/mixin/space_inside.rb | 33 +-
lib/rubocop/cop/mixin/statement_modifier.rb | 67 +-
lib/rubocop/cop/mixin/string_help.rb | 12 +-
lib/rubocop/cop/mixin/string_literals_help.rb | 23 +-
lib/rubocop/cop/mixin/surrounding_space.rb | 24 +-
lib/rubocop/cop/mixin/too_many_lines.rb | 39 +
lib/rubocop/cop/mixin/trailing_comma.rb | 162 +
lib/rubocop/cop/mixin/unused_argument.rb | 12 +-
lib/rubocop/cop/offense.rb | 71 +-
lib/rubocop/cop/performance/case_when_splat.rb | 179 +
lib/rubocop/cop/performance/casecmp.rb | 107 +
lib/rubocop/cop/performance/compare_with_block.rb | 61 +
lib/rubocop/cop/performance/count.rb | 89 +-
lib/rubocop/cop/performance/detect.rb | 74 +-
.../cop/performance/double_start_end_with.rb | 68 +
lib/rubocop/cop/performance/end_with.rb | 54 +
lib/rubocop/cop/performance/fixed_size.rb | 56 +
lib/rubocop/cop/performance/flat_map.rb | 68 +-
lib/rubocop/cop/performance/hash_each_methods.rb | 84 +
lib/rubocop/cop/performance/lstrip_rstrip.rb | 41 +
lib/rubocop/cop/performance/range_include.rb | 39 +
.../cop/performance/redundant_block_call.rb | 93 +
lib/rubocop/cop/performance/redundant_match.rb | 54 +
lib/rubocop/cop/performance/redundant_merge.rb | 152 +
lib/rubocop/cop/performance/redundant_sort_by.rb | 45 +
lib/rubocop/cop/performance/reverse_each.rb | 30 +-
lib/rubocop/cop/performance/sample.rb | 167 +-
lib/rubocop/cop/performance/size.rb | 33 +-
lib/rubocop/cop/performance/start_with.rb | 57 +
lib/rubocop/cop/performance/string_replacement.rb | 175 +
lib/rubocop/cop/performance/times_map.rb | 61 +
lib/rubocop/cop/rails/action_filter.rb | 49 +-
lib/rubocop/cop/rails/date.rb | 54 +-
lib/rubocop/cop/rails/default_scope.rb | 33 -
lib/rubocop/cop/rails/delegate.rb | 11 +-
lib/rubocop/cop/rails/delegate_allow_blank.rb | 62 +
lib/rubocop/cop/rails/dynamic_find_by.rb | 77 +
lib/rubocop/cop/rails/enum_uniqueness.rb | 71 +
lib/rubocop/cop/rails/exit.rb | 61 +
lib/rubocop/cop/rails/find_by.rb | 39 +-
lib/rubocop/cop/rails/find_each.rb | 26 +-
lib/rubocop/cop/rails/has_and_belongs_to_many.rb | 6 +-
lib/rubocop/cop/rails/http_positional_arguments.rb | 92 +
lib/rubocop/cop/rails/not_null_column.rb | 44 +
lib/rubocop/cop/rails/output.rb | 22 +-
lib/rubocop/cop/rails/output_safety.rb | 58 +
lib/rubocop/cop/rails/pluralization_grammar.rb | 105 +
lib/rubocop/cop/rails/read_write_attribute.rb | 33 +-
lib/rubocop/cop/rails/request_referer.rb | 38 +
lib/rubocop/cop/rails/safe_navigation.rb | 88 +
lib/rubocop/cop/rails/save_bang.rb | 155 +
lib/rubocop/cop/rails/scope_args.rb | 18 +-
lib/rubocop/cop/rails/time_zone.rb | 81 +-
lib/rubocop/cop/rails/uniq_before_pluck.rb | 90 +
lib/rubocop/cop/rails/validation.rb | 66 +-
lib/rubocop/cop/security/json_load.rb | 44 +
lib/rubocop/cop/severity.rb | 18 +-
.../cop/style/access_modifier_indentation.rb | 14 +-
lib/rubocop/cop/style/accessor_method_name.rb | 2 +-
lib/rubocop/cop/style/alias.rb | 117 +-
lib/rubocop/cop/style/align_array.rb | 4 +-
lib/rubocop/cop/style/align_hash.rb | 78 +-
lib/rubocop/cop/style/align_parameters.rb | 36 +-
lib/rubocop/cop/style/and_or.rb | 85 +-
lib/rubocop/cop/style/array_join.rb | 19 +-
lib/rubocop/cop/style/ascii_comments.rb | 25 +-
lib/rubocop/cop/style/ascii_identifiers.rb | 27 +-
lib/rubocop/cop/style/attr.rb | 34 +-
lib/rubocop/cop/style/auto_resource_cleanup.rb | 10 +-
lib/rubocop/cop/style/bare_percent_literals.rb | 29 +-
lib/rubocop/cop/style/begin_block.rb | 4 +-
lib/rubocop/cop/style/block_comments.rb | 20 +-
lib/rubocop/cop/style/block_delimiters.rb | 211 +-
lib/rubocop/cop/style/block_end_newline.rb | 8 +-
.../cop/style/braces_around_hash_parameters.rb | 59 +-
lib/rubocop/cop/style/case_equality.rb | 10 +-
lib/rubocop/cop/style/case_indentation.rb | 21 +-
lib/rubocop/cop/style/character_literal.rb | 25 +-
.../cop/style/class_and_module_camel_case.rb | 4 +-
lib/rubocop/cop/style/class_and_module_children.rb | 12 +-
lib/rubocop/cop/style/class_check.rb | 16 +-
lib/rubocop/cop/style/class_methods.rb | 11 +-
lib/rubocop/cop/style/class_vars.rb | 4 +-
.../cop/style/closing_parenthesis_indentation.rb | 35 +-
lib/rubocop/cop/style/collection_methods.rb | 31 +-
lib/rubocop/cop/style/colon_method_call.rb | 16 +-
lib/rubocop/cop/style/command_literal.rb | 47 +-
lib/rubocop/cop/style/comment_annotation.rb | 49 +-
lib/rubocop/cop/style/comment_indentation.rb | 31 +-
lib/rubocop/cop/style/conditional_assignment.rb | 681 +++
lib/rubocop/cop/style/constant_name.rb | 4 +-
lib/rubocop/cop/style/copyright.rb | 24 +-
lib/rubocop/cop/style/def_with_parentheses.rb | 12 +-
lib/rubocop/cop/style/deprecated_hash_methods.rb | 39 -
lib/rubocop/cop/style/documentation.rb | 110 +-
lib/rubocop/cop/style/documentation_method.rb | 79 +
lib/rubocop/cop/style/dot_position.rb | 45 +-
lib/rubocop/cop/style/double_negation.rb | 23 +-
lib/rubocop/cop/style/each_for_simple_loop.rb | 57 +
lib/rubocop/cop/style/each_with_object.rb | 70 +-
lib/rubocop/cop/style/else_alignment.rb | 34 +-
lib/rubocop/cop/style/empty_case_condition.rb | 93 +
lib/rubocop/cop/style/empty_else.rb | 51 +-
lib/rubocop/cop/style/empty_line_between_defs.rb | 59 +-
lib/rubocop/cop/style/empty_lines.rb | 44 +-
.../style/empty_lines_around_access_modifier.rb | 45 +-
.../cop/style/empty_lines_around_block_body.rb | 31 +-
.../cop/style/empty_lines_around_class_body.rb | 23 +-
.../cop/style/empty_lines_around_method_body.rb | 28 +-
.../cop/style/empty_lines_around_module_body.rb | 28 +-
lib/rubocop/cop/style/empty_literal.rb | 113 +-
lib/rubocop/cop/style/empty_method.rb | 96 +
lib/rubocop/cop/style/encoding.rb | 69 +-
lib/rubocop/cop/style/end_block.rb | 5 +-
lib/rubocop/cop/style/end_of_line.rb | 4 +-
lib/rubocop/cop/style/even_odd.rb | 68 +-
lib/rubocop/cop/style/extra_spacing.rb | 226 +-
lib/rubocop/cop/style/file_name.rb | 154 +-
.../cop/style/first_array_element_line_break.rb | 41 +
.../cop/style/first_hash_element_line_break.rb | 33 +
.../cop/style/first_method_argument_line_break.rb | 49 +
.../cop/style/first_method_parameter_line_break.rb | 42 +
.../cop/style/first_parameter_indentation.rb | 22 +-
lib/rubocop/cop/style/flip_flop.rb | 4 +-
lib/rubocop/cop/style/for.rb | 25 +-
lib/rubocop/cop/style/format_string.rb | 4 +-
.../cop/style/frozen_string_literal_comment.rb | 67 +
lib/rubocop/cop/style/global_vars.rb | 4 +-
lib/rubocop/cop/style/guard_clause.rb | 71 +-
lib/rubocop/cop/style/hash_syntax.rb | 115 +-
.../cop/style/identical_conditional_branches.rb | 92 +
lib/rubocop/cop/style/if_inside_else.rb | 48 +
lib/rubocop/cop/style/if_unless_modifier.rb | 82 +-
.../cop/style/if_unless_modifier_of_if_unless.rb | 44 +
lib/rubocop/cop/style/if_with_semicolon.rb | 4 +-
lib/rubocop/cop/style/implicit_runtime_error.rb | 31 +
lib/rubocop/cop/style/indent_array.rb | 128 +-
lib/rubocop/cop/style/indent_assignment.rb | 42 +
lib/rubocop/cop/style/indent_hash.rb | 136 +-
lib/rubocop/cop/style/indentation_consistency.rb | 4 +-
lib/rubocop/cop/style/indentation_width.rb | 135 +-
lib/rubocop/cop/style/infinite_loop.rb | 65 +-
lib/rubocop/cop/style/initial_indentation.rb | 42 +
lib/rubocop/cop/style/inline_comment.rb | 21 +-
lib/rubocop/cop/style/lambda.rb | 200 +-
lib/rubocop/cop/style/lambda_call.rb | 9 +-
lib/rubocop/cop/style/leading_comment_space.rb | 22 +-
lib/rubocop/cop/style/line_end_concatenation.rb | 44 +-
lib/rubocop/cop/style/method_call_parentheses.rb | 56 +-
.../cop/style/method_called_on_do_end_block.rb | 11 +-
lib/rubocop/cop/style/method_def_parentheses.rb | 49 +-
lib/rubocop/cop/style/method_missing.rb | 81 +
lib/rubocop/cop/style/method_name.rb | 2 +-
lib/rubocop/cop/style/missing_else.rb | 9 +-
lib/rubocop/cop/style/module_function.rb | 51 +-
.../cop/style/multiline_array_brace_layout.rb | 81 +
.../cop/style/multiline_assignment_layout.rb | 88 +
lib/rubocop/cop/style/multiline_block_chain.rb | 12 +-
lib/rubocop/cop/style/multiline_block_layout.rb | 74 +-
.../cop/style/multiline_hash_brace_layout.rb | 81 +
lib/rubocop/cop/style/multiline_if_modifier.rb | 73 +
lib/rubocop/cop/style/multiline_if_then.rb | 2 +-
lib/rubocop/cop/style/multiline_memoization.rb | 44 +
.../style/multiline_method_call_brace_layout.rb | 98 +
.../cop/style/multiline_method_call_indentation.rb | 196 +
.../multiline_method_definition_brace_layout.rb | 82 +
.../cop/style/multiline_operation_indentation.rb | 176 +-
.../cop/style/multiline_ternary_operator.rb | 16 +-
lib/rubocop/cop/style/mutable_constant.rb | 63 +
lib/rubocop/cop/style/negated_if.rb | 9 +-
lib/rubocop/cop/style/negated_while.rb | 14 +-
lib/rubocop/cop/style/nested_modifier.rb | 114 +
.../cop/style/nested_parenthesized_calls.rb | 59 +
lib/rubocop/cop/style/nested_ternary_operator.rb | 17 +-
lib/rubocop/cop/style/next.rb | 178 +-
lib/rubocop/cop/style/nil_comparison.rb | 20 +-
lib/rubocop/cop/style/non_nil_check.rb | 80 +-
lib/rubocop/cop/style/not.rb | 64 +-
lib/rubocop/cop/style/numeric_literal_prefix.rb | 97 +
lib/rubocop/cop/style/numeric_literals.rb | 13 +-
lib/rubocop/cop/style/numeric_predicate.rb | 140 +
lib/rubocop/cop/style/one_line_conditional.rb | 74 +-
lib/rubocop/cop/style/op_method.rb | 36 +-
lib/rubocop/cop/style/option_hash.rb | 69 +
lib/rubocop/cop/style/optional_arguments.rb | 62 +
lib/rubocop/cop/style/parallel_assignment.rb | 263 +-
.../cop/style/parentheses_around_condition.rb | 30 +-
.../cop/style/percent_literal_delimiters.rb | 79 +-
lib/rubocop/cop/style/percent_q_literals.rb | 10 +-
lib/rubocop/cop/style/perl_backrefs.rb | 8 +-
lib/rubocop/cop/style/predicate_name.rb | 11 +-
lib/rubocop/cop/style/preferred_hash_methods.rb | 78 +
lib/rubocop/cop/style/proc.rb | 20 +-
lib/rubocop/cop/style/raise_args.rb | 112 +-
lib/rubocop/cop/style/redundant_begin.rb | 21 +-
lib/rubocop/cop/style/redundant_exception.rb | 57 +-
lib/rubocop/cop/style/redundant_freeze.rb | 46 +
lib/rubocop/cop/style/redundant_parentheses.rb | 177 +
lib/rubocop/cop/style/redundant_return.rb | 85 +-
lib/rubocop/cop/style/redundant_self.rb | 65 +-
lib/rubocop/cop/style/regexp_literal.rb | 50 +-
lib/rubocop/cop/style/rescue_ensure_alignment.rb | 86 +
lib/rubocop/cop/style/rescue_modifier.rb | 54 +-
lib/rubocop/cop/style/safe_navigation.rb | 138 +
lib/rubocop/cop/style/self_assignment.rb | 14 +-
lib/rubocop/cop/style/semicolon.rb | 32 +-
lib/rubocop/cop/style/send.rb | 22 +
lib/rubocop/cop/style/signal_exception.rb | 64 +-
lib/rubocop/cop/style/single_line_block_params.rb | 9 +-
lib/rubocop/cop/style/single_line_methods.rb | 36 +-
.../cop/style/single_space_before_first_arg.rb | 41 -
lib/rubocop/cop/style/space_after_colon.rb | 28 +-
lib/rubocop/cop/style/space_after_comma.rb | 7 +-
.../cop/style/space_after_control_keyword.rb | 35 -
lib/rubocop/cop/style/space_after_method_name.rb | 11 +-
lib/rubocop/cop/style/space_after_not.rb | 21 +-
lib/rubocop/cop/style/space_after_semicolon.rb | 7 +-
.../cop/style/space_around_block_parameters.rb | 19 +-
.../space_around_equals_in_parameter_default.rb | 6 +-
lib/rubocop/cop/style/space_around_keyword.rb | 225 +
lib/rubocop/cop/style/space_around_operators.rb | 127 +-
lib/rubocop/cop/style/space_before_block_braces.rb | 16 +-
lib/rubocop/cop/style/space_before_comma.rb | 2 +-
lib/rubocop/cop/style/space_before_comment.rb | 4 +-
lib/rubocop/cop/style/space_before_first_arg.rb | 59 +
.../cop/style/space_before_modifier_keyword.rb | 37 -
lib/rubocop/cop/style/space_before_semicolon.rb | 2 +-
lib/rubocop/cop/style/space_in_lambda_literal.rb | 87 +
.../style/space_inside_array_percent_literal.rb | 53 +
lib/rubocop/cop/style/space_inside_block_braces.rb | 81 +-
lib/rubocop/cop/style/space_inside_brackets.rb | 2 +-
.../cop/style/space_inside_hash_literal_braces.rb | 73 +-
lib/rubocop/cop/style/space_inside_parens.rb | 2 +-
.../space_inside_percent_literal_delimiters.rb | 64 +
.../cop/style/space_inside_range_literal.rb | 10 +-
.../cop/style/space_inside_string_interpolation.rb | 56 +-
lib/rubocop/cop/style/special_global_vars.rb | 181 +-
lib/rubocop/cop/style/stabby_lambda_parentheses.rb | 112 +
lib/rubocop/cop/style/string_literals.rb | 73 +-
.../cop/style/string_literals_in_interpolation.rb | 4 +-
lib/rubocop/cop/style/string_methods.rb | 31 +
lib/rubocop/cop/style/struct_inheritance.rb | 6 +-
lib/rubocop/cop/style/symbol_array.rb | 99 +-
lib/rubocop/cop/style/symbol_literal.rb | 12 +-
lib/rubocop/cop/style/symbol_proc.rb | 129 +-
lib/rubocop/cop/style/tab.rb | 28 +-
lib/rubocop/cop/style/ternary_parentheses.rb | 172 +
lib/rubocop/cop/style/trailing_blank_lines.rb | 14 +-
lib/rubocop/cop/style/trailing_comma.rb | 172 -
.../cop/style/trailing_comma_in_arguments.rb | 70 +
lib/rubocop/cop/style/trailing_comma_in_literal.rb | 56 +
.../cop/style/trailing_underscore_variable.rb | 100 +-
lib/rubocop/cop/style/trailing_whitespace.rb | 4 +-
lib/rubocop/cop/style/trivial_accessors.rb | 39 +-
lib/rubocop/cop/style/unless_else.rb | 26 +-
lib/rubocop/cop/style/unneeded_capital_w.rb | 20 +-
lib/rubocop/cop/style/unneeded_interpolation.rb | 98 +
lib/rubocop/cop/style/unneeded_percent_q.rb | 90 +-
lib/rubocop/cop/style/variable_interpolation.rb | 15 +-
lib/rubocop/cop/style/variable_name.rb | 7 +-
lib/rubocop/cop/style/variable_number.rb | 78 +
lib/rubocop/cop/style/when_then.rb | 4 +-
lib/rubocop/cop/style/while_until_do.rb | 8 +-
lib/rubocop/cop/style/while_until_modifier.rb | 10 +-
lib/rubocop/cop/style/word_array.rb | 149 +-
lib/rubocop/cop/style/zero_length_predicate.rb | 83 +
lib/rubocop/cop/team.rb | 154 +-
lib/rubocop/cop/util.rb | 208 +-
lib/rubocop/cop/variable_force.rb | 109 +-
lib/rubocop/cop/variable_force/assignment.rb | 14 +-
lib/rubocop/cop/variable_force/locatable.rb | 73 +-
lib/rubocop/cop/variable_force/reference.rb | 10 +-
lib/rubocop/cop/variable_force/scope.rb | 19 +-
lib/rubocop/cop/variable_force/variable.rb | 14 +-
lib/rubocop/cop/variable_force/variable_table.rb | 12 +-
lib/rubocop/error.rb | 11 +
lib/rubocop/formatter/base_formatter.rb | 26 +-
lib/rubocop/formatter/clang_style_formatter.rb | 52 +-
lib/rubocop/formatter/colorizable.rb | 8 +-
lib/rubocop/formatter/disabled_config_formatter.rb | 153 +-
lib/rubocop/formatter/disabled_lines_formatter.rb | 5 +-
lib/rubocop/formatter/emacs_style_formatter.rb | 11 +-
lib/rubocop/formatter/file_list_formatter.rb | 2 +-
lib/rubocop/formatter/formatter_set.rb | 61 +-
lib/rubocop/formatter/fuubar_style_formatter.rb | 10 +-
lib/rubocop/formatter/html_formatter.rb | 69 +-
lib/rubocop/formatter/json_formatter.rb | 4 +-
lib/rubocop/formatter/offense_count_formatter.rb | 2 +-
lib/rubocop/formatter/progress_formatter.rb | 13 +-
lib/rubocop/formatter/simple_text_formatter.rb | 70 +-
lib/rubocop/formatter/text_util.rb | 19 +-
lib/rubocop/formatter/worst_offenders_formatter.rb | 60 +
lib/rubocop/name_similarity.rb | 21 +
lib/rubocop/node_pattern.rb | 542 +++
lib/rubocop/options.rb | 300 +-
lib/rubocop/path_util.rb | 39 +-
lib/rubocop/processed_source.rb | 88 +-
lib/rubocop/rake_task.rb | 18 +-
lib/rubocop/remote_config.rb | 66 +
lib/rubocop/result_cache.rb | 176 +
lib/rubocop/rspec/cop_helper.rb | 87 +
.../rspec/host_environment_simulation_helper.rb | 32 +
lib/rubocop/rspec/shared_contexts.rb | 78 +
lib/rubocop/rspec/shared_examples.rb | 100 +
lib/rubocop/rspec/support.rb | 8 +
lib/rubocop/runner.rb | 238 +-
lib/rubocop/string_interpreter.rb | 57 +
lib/rubocop/string_util.rb | 23 +-
lib/rubocop/target_finder.rb | 16 +-
lib/rubocop/token.rb | 9 +-
lib/rubocop/version.rb | 6 +-
lib/rubocop/warning.rb | 11 +
manual/basic_usage.md | 100 +
manual/caching.md | 49 +
manual/configuration.md | 329 ++
manual/contributing.md | 58 +
manual/cops.md | 389 ++
manual/cops_bundler.md | 73 +
manual/cops_lint.md | 1237 +++++
manual/cops_metrics.md | 214 +
manual/cops_performance.md | 665 +++
manual/cops_rails.md | 684 +++
manual/cops_security.md | 37 +
manual/cops_style.md | 4905 ++++++++++++++++++++
manual/css/extra.css | 15 +
manual/development.md | 17 +
manual/extensions.md | 59 +
manual/formatters.md | 249 +
manual/index.md | 16 +
manual/installation.md | 20 +
manual/integration_with_other_tools.md | 108 +
manual/support.md | 37 +
mkdocs.yml | 29 +
relnotes/v0.30.0.md | 2 +-
relnotes/v0.30.1.md | 1 +
relnotes/v0.32.1.md | 122 +
relnotes/v0.33.0.md | 157 +
relnotes/v0.34.0.md | 182 +
relnotes/v0.34.1.md | 129 +
relnotes/v0.34.2.md | 139 +
relnotes/v0.35.0.md | 210 +
relnotes/v0.36.0.md | 307 ++
relnotes/v0.37.0.md | 200 +
relnotes/v0.37.1.md | 179 +
relnotes/v0.37.2.md | 170 +
relnotes/v0.38.0.md | 208 +
relnotes/v0.39.0.md | 188 +
relnotes/v0.40.0.md | 229 +
relnotes/v0.41.0.md | 247 +
relnotes/v0.41.2.md | 201 +
relnotes/v0.42.0.md | 209 +
relnotes/v0.43.0.md | 250 +
relnotes/v0.44.0.md | 250 +
relnotes/v0.45.0.md | 254 +
relnotes/v0.46.0.md | 251 +
rubocop.gemspec | 34 +-
spec/.rubocop.yml | 5 -
spec/fixtures/html_formatter/expected.html | 151 +-
.../app/controllers/application_controller.rb | 2 +
spec/isolated_environment_spec.rb | 2 +-
spec/project_spec.rb | 19 +-
spec/rubocop/ast_node_spec.rb | 385 ++
spec/rubocop/cli/cli_auto_gen_config_spec.rb | 514 ++
spec/rubocop/cli/cli_autocorrect_spec.rb | 1049 +++++
spec/rubocop/cli/cli_options_spec.rb | 1133 +++++
spec/rubocop/cli_spec.rb | 2488 ++--------
spec/rubocop/comment_config_spec.rb | 116 +-
spec/rubocop/config_loader_spec.rb | 334 +-
spec/rubocop/config_spec.rb | 276 +-
spec/rubocop/config_store_spec.rb | 31 +-
spec/rubocop/cop/bundler/duplicated_gem_spec.rb | 89 +
spec/rubocop/cop/bundler/ordered_gems_spec.rb | 81 +
spec/rubocop/cop/commissioner_spec.rb | 16 +-
spec/rubocop/cop/cop_spec.rb | 89 +-
spec/rubocop/cop/corrector_spec.rb | 2 +-
spec/rubocop/cop/force_spec.rb | 2 +-
spec/rubocop/cop/lint/ambiguous_operator_spec.rb | 2 +-
.../cop/lint/ambiguous_regexp_literal_spec.rb | 2 +-
.../cop/lint/assignment_in_condition_spec.rb | 71 +-
spec/rubocop/cop/lint/block_alignment_spec.rb | 409 +-
.../cop/lint/circular_argument_reference_spec.rb | 175 +
spec/rubocop/cop/lint/condition_position_spec.rb | 13 +-
spec/rubocop/cop/lint/debugger_spec.rb | 113 +-
spec/rubocop/cop/lint/def_end_alignment_spec.rb | 88 +-
.../cop/lint/deprecated_class_methods_spec.rb | 7 +-
.../cop/lint/duplicate_case_condition_spec.rb | 103 +
spec/rubocop/cop/lint/duplicate_methods_spec.rb | 443 +-
spec/rubocop/cop/lint/duplicated_key_spec.rb | 103 +
.../cop/lint/each_with_object_argument_spec.rb | 14 +-
spec/rubocop/cop/lint/else_layout_spec.rb | 14 +-
spec/rubocop/cop/lint/empty_ensure_spec.rb | 2 +-
spec/rubocop/cop/lint/empty_expression_spec.rb | 102 +
spec/rubocop/cop/lint/empty_interpolation_spec.rb | 18 +-
spec/rubocop/cop/lint/empty_when_spec.rb | 140 +
spec/rubocop/cop/lint/end_alignment_spec.rb | 201 +-
spec/rubocop/cop/lint/end_in_method_spec.rb | 2 +-
spec/rubocop/cop/lint/ensure_return_spec.rb | 2 +-
spec/rubocop/cop/lint/eval_spec.rb | 45 +-
spec/rubocop/cop/lint/float_out_of_range_spec.rb | 53 +
.../cop/lint/format_parameter_mismatch_spec.rb | 316 ++
spec/rubocop/cop/lint/handle_exceptions_spec.rb | 2 +-
.../cop/lint/implicit_string_concatenation_spec.rb | 87 +
.../cop/lint/ineffective_access_modifier_spec.rb | 116 +
spec/rubocop/cop/lint/inherit_exception_spec.rb | 48 +
.../cop/lint/invalid_character_literal_spec.rb | 2 +-
spec/rubocop/cop/lint/literal_in_condition_spec.rb | 55 +-
.../cop/lint/literal_in_interpolation_spec.rb | 52 +-
spec/rubocop/cop/lint/loop_spec.rb | 2 +-
.../cop/lint/nested_method_definition_spec.rb | 102 +-
.../cop/lint/next_without_accumulator_spec.rb | 72 +
.../cop/lint/non_local_exit_from_iterator_spec.rb | 26 +-
.../lint/parentheses_as_grouped_expression_spec.rb | 8 +-
spec/rubocop/cop/lint/percent_string_array_spec.rb | 84 +
spec/rubocop/cop/lint/percent_symbol_array_spec.rb | 61 +
spec/rubocop/cop/lint/rand_one_spec.rb | 50 +
spec/rubocop/cop/lint/require_parentheses_spec.rb | 2 +-
spec/rubocop/cop/lint/rescue_exception_spec.rb | 2 +-
spec/rubocop/cop/lint/shadowed_exception_spec.rb | 510 ++
.../lint/shadowing_outer_local_variable_spec.rb | 2 +-
.../cop/lint/space_before_first_arg_spec.rb | 66 -
.../string_conversion_in_interpolation_spec.rb | 2 +-
spec/rubocop/cop/lint/syntax_spec.rb | 12 +-
.../lint/underscore_prefixed_variable_name_spec.rb | 2 +-
spec/rubocop/cop/lint/unified_integer_spec.rb | 71 +
spec/rubocop/cop/lint/unneeded_disable_spec.rb | 315 +-
.../cop/lint/unneeded_splat_expansion_spec.rb | 412 ++
spec/rubocop/cop/lint/unreachable_code_spec.rb | 22 +-
.../rubocop/cop/lint/unused_block_argument_spec.rb | 105 +-
.../cop/lint/unused_method_argument_spec.rb | 76 +-
.../cop/lint/useless_access_modifier_spec.rb | 686 ++-
spec/rubocop/cop/lint/useless_assignment_spec.rb | 126 +-
spec/rubocop/cop/lint/useless_comparison_spec.rb | 8 +-
.../cop/lint/useless_else_without_rescue_spec.rb | 2 +-
spec/rubocop/cop/lint/useless_setter_call_spec.rb | 50 +-
spec/rubocop/cop/lint/void_spec.rb | 38 +-
spec/rubocop/cop/metrics/abc_size_spec.rb | 18 +-
spec/rubocop/cop/metrics/block_length_spec.rb | 113 +
spec/rubocop/cop/metrics/block_nesting_spec.rb | 91 +-
spec/rubocop/cop/metrics/class_length_spec.rb | 17 +-
.../cop/metrics/cyclomatic_complexity_spec.rb | 2 +-
spec/rubocop/cop/metrics/line_length_spec.rb | 189 +-
spec/rubocop/cop/metrics/method_length_spec.rb | 30 +-
spec/rubocop/cop/metrics/module_length_spec.rb | 16 +-
spec/rubocop/cop/metrics/parameter_lists_spec.rb | 6 +-
.../cop/metrics/perceived_complexity_spec.rb | 2 +-
spec/rubocop/cop/offense_spec.rb | 52 +-
.../cop/performance/case_when_splat_spec.rb | 409 ++
spec/rubocop/cop/performance/casecmp_spec.rb | 130 +
.../cop/performance/compare_with_block_spec.rb | 59 +
spec/rubocop/cop/performance/count_spec.rb | 42 +-
spec/rubocop/cop/performance/detect_spec.rb | 190 +-
.../cop/performance/double_start_end_with_spec.rb | 89 +
spec/rubocop/cop/performance/end_with_spec.rb | 82 +
spec/rubocop/cop/performance/fixed_size_spec.rb | 236 +
spec/rubocop/cop/performance/flat_map_spec.rb | 6 +-
.../cop/performance/hash_each_methods_spec.rb | 75 +
spec/rubocop/cop/performance/lstrip_rstrip_spec.rb | 22 +
spec/rubocop/cop/performance/range_include_spec.rb | 34 +
.../cop/performance/redundant_block_call_spec.rb | 139 +
.../cop/performance/redundant_match_spec.rb | 103 +
.../cop/performance/redundant_merge_spec.rb | 211 +
.../cop/performance/redundant_sort_by_spec.rb | 29 +
spec/rubocop/cop/performance/reverse_each_spec.rb | 2 +-
spec/rubocop/cop/performance/sample_spec.rb | 57 +-
spec/rubocop/cop/performance/size_spec.rb | 14 +-
spec/rubocop/cop/performance/start_with_spec.rb | 73 +
.../cop/performance/string_replacement_spec.rb | 440 ++
spec/rubocop/cop/performance/times_map_spec.rb | 68 +
spec/rubocop/cop/rails/action_filter_spec.rb | 52 +-
spec/rubocop/cop/rails/date_spec.rb | 56 +-
spec/rubocop/cop/rails/default_scope_spec.rb | 37 -
.../rubocop/cop/rails/delegate_allow_blank_spec.rb | 33 +
spec/rubocop/cop/rails/delegate_spec.rb | 2 +-
spec/rubocop/cop/rails/dynamic_find_by_spec.rb | 141 +
spec/rubocop/cop/rails/enum_uniqueness_spec.rb | 37 +
spec/rubocop/cop/rails/exit_spec.rb | 67 +
spec/rubocop/cop/rails/find_by_spec.rb | 17 +-
spec/rubocop/cop/rails/find_each_spec.rb | 32 +-
.../cop/rails/has_and_belongs_to_many_spec.rb | 2 +-
.../cop/rails/http_positional_arguments_spec.rb | 237 +
spec/rubocop/cop/rails/not_null_column_spec.rb | 78 +
spec/rubocop/cop/rails/output_safety_spec.rb | 89 +
spec/rubocop/cop/rails/output_spec.rb | 2 +-
.../cop/rails/pluralization_grammar_spec.rb | 96 +
.../rubocop/cop/rails/read_write_attribute_spec.rb | 6 +-
spec/rubocop/cop/rails/request_referer_spec.rb | 50 +
spec/rubocop/cop/rails/safe_navigation_spec.rb | 209 +
spec/rubocop/cop/rails/save_bang_spec.rb | 167 +
spec/rubocop/cop/rails/scope_args_spec.rb | 49 +-
spec/rubocop/cop/rails/time_zone_spec.rb | 98 +-
spec/rubocop/cop/rails/uniq_before_pluck_spec.rb | 93 +
spec/rubocop/cop/rails/validation_spec.rb | 33 +-
spec/rubocop/cop/security/json_load_spec.rb | 40 +
spec/rubocop/cop/severity_spec.rb | 2 +-
.../cop/style/access_modifier_indentation_spec.rb | 28 +-
.../rubocop/cop/style/accessor_method_name_spec.rb | 2 +-
spec/rubocop/cop/style/alias_spec.rb | 195 +-
spec/rubocop/cop/style/align_array_spec.rb | 23 +-
spec/rubocop/cop/style/align_hash_spec.rb | 34 +-
spec/rubocop/cop/style/align_parameters_spec.rb | 232 +-
spec/rubocop/cop/style/and_or_spec.rb | 161 +-
spec/rubocop/cop/style/array_join_spec.rb | 2 +-
spec/rubocop/cop/style/ascii_comments_spec.rb | 12 +
spec/rubocop/cop/style/ascii_identifiers_spec.rb | 12 +
spec/rubocop/cop/style/attr_spec.rb | 50 +-
.../cop/style/auto_resource_cleanup_spec.rb | 8 +-
.../cop/style/bare_percent_literals_spec.rb | 2 +-
spec/rubocop/cop/style/begin_block_spec.rb | 2 +-
spec/rubocop/cop/style/block_comments_spec.rb | 2 +-
spec/rubocop/cop/style/block_delimiters_spec.rb | 164 +-
spec/rubocop/cop/style/block_end_newline_spec.rb | 16 +-
.../style/braces_around_hash_parameters_spec.rb | 11 +-
spec/rubocop/cop/style/case_equality_spec.rb | 2 +-
spec/rubocop/cop/style/case_indentation_spec.rb | 29 +-
spec/rubocop/cop/style/character_literal_spec.rb | 7 +-
.../cop/style/class_and_module_camel_case_spec.rb | 11 +-
.../cop/style/class_and_module_children_spec.rb | 49 +-
spec/rubocop/cop/style/class_check_spec.rb | 2 +-
spec/rubocop/cop/style/class_methods_spec.rb | 2 +-
spec/rubocop/cop/style/class_vars_spec.rb | 2 +-
.../style/closing_parenthesis_indentation_spec.rb | 42 +-
spec/rubocop/cop/style/collection_methods_spec.rb | 2 +-
spec/rubocop/cop/style/colon_method_call_spec.rb | 26 +-
spec/rubocop/cop/style/command_literal_spec.rb | 2 +-
spec/rubocop/cop/style/comment_annotation_spec.rb | 12 +-
spec/rubocop/cop/style/comment_indentation_spec.rb | 8 +-
...ditional_assignment_assign_in_condition_spec.rb | 952 ++++
...ditional_assignment_assign_to_condition_spec.rb | 2052 ++++++++
spec/rubocop/cop/style/constant_name_spec.rb | 5 +-
spec/rubocop/cop/style/copyright_spec.rb | 12 +-
.../rubocop/cop/style/def_with_parentheses_spec.rb | 2 +-
.../cop/style/deprecated_hash_methods_spec.rb | 45 -
.../rubocop/cop/style/documentation_method_spec.rb | 710 +++
spec/rubocop/cop/style/documentation_spec.rb | 155 +-
spec/rubocop/cop/style/dot_position_spec.rb | 20 +-
spec/rubocop/cop/style/double_negation_spec.rb | 2 +-
.../rubocop/cop/style/each_for_simple_loop_spec.rb | 116 +
spec/rubocop/cop/style/each_with_object_spec.rb | 27 +-
spec/rubocop/cop/style/else_alignment_spec.rb | 38 +-
.../rubocop/cop/style/empty_case_condition_spec.rb | 149 +
spec/rubocop/cop/style/empty_else_spec.rb | 211 +-
.../cop/style/empty_line_between_defs_spec.rb | 156 +-
.../empty_lines_around_access_modifier_spec.rb | 48 +-
.../style/empty_lines_around_block_body_spec.rb | 29 +-
.../style/empty_lines_around_class_body_spec.rb | 187 +-
.../style/empty_lines_around_method_body_spec.rb | 2 +-
.../style/empty_lines_around_module_body_spec.rb | 171 +-
spec/rubocop/cop/style/empty_lines_spec.rb | 2 +-
spec/rubocop/cop/style/empty_literal_spec.rb | 82 +-
spec/rubocop/cop/style/empty_method_spec.rb | 121 +
spec/rubocop/cop/style/encoding_spec.rb | 105 +-
spec/rubocop/cop/style/end_block_spec.rb | 2 +-
spec/rubocop/cop/style/end_of_line_spec.rb | 11 +-
spec/rubocop/cop/style/even_odd_spec.rb | 34 +-
spec/rubocop/cop/style/extra_spacing_spec.rb | 391 +-
spec/rubocop/cop/style/file_name_spec.rb | 209 +-
.../style/first_array_element_line_break_spec.rb | 154 +
.../style/first_hash_element_line_break_spec.rb | 100 +
.../style/first_method_argument_line_break_spec.rb | 104 +
.../first_method_parameter_line_break_spec.rb | 137 +
.../cop/style/first_parameter_indentation_spec.rb | 92 +-
spec/rubocop/cop/style/flip_flop_spec.rb | 2 +-
spec/rubocop/cop/style/for_spec.rb | 2 +-
spec/rubocop/cop/style/format_string_spec.rb | 2 +-
.../style/frozen_string_literal_comment_spec.rb | 343 ++
spec/rubocop/cop/style/global_vars_spec.rb | 2 +-
spec/rubocop/cop/style/guard_clause_spec.rb | 215 +-
spec/rubocop/cop/style/hash_syntax_spec.rb | 195 +-
.../style/identical_conditional_branches_spec.rb | 114 +
spec/rubocop/cop/style/if_inside_else_spec.rb | 121 +
.../style/if_unless_modifier_of_if_unless_spec.rb | 68 +
spec/rubocop/cop/style/if_unless_modifier_spec.rb | 108 +-
spec/rubocop/cop/style/if_with_semicolon_spec.rb | 5 +-
.../cop/style/implicit_runtime_error_spec.rb | 37 +
spec/rubocop/cop/style/indent_array_spec.rb | 525 ++-
spec/rubocop/cop/style/indent_assignment_spec.rb | 96 +
spec/rubocop/cop/style/indent_hash_spec.rb | 146 +-
.../cop/style/indentation_consistency_spec.rb | 40 +
spec/rubocop/cop/style/indentation_width_spec.rb | 152 +-
spec/rubocop/cop/style/infinite_loop_spec.rb | 98 +-
spec/rubocop/cop/style/initial_indentation_spec.rb | 70 +
spec/rubocop/cop/style/inline_comment_spec.rb | 20 +-
spec/rubocop/cop/style/lambda_call_spec.rb | 2 +-
spec/rubocop/cop/style/lambda_spec.rb | 445 +-
.../cop/style/leading_comment_space_spec.rb | 45 +-
.../cop/style/line_end_concatenation_spec.rb | 9 +-
.../cop/style/method_call_parentheses_spec.rb | 72 +-
.../style/method_called_on_do_end_block_spec.rb | 2 +-
.../cop/style/method_def_parentheses_spec.rb | 66 +-
spec/rubocop/cop/style/method_missing_spec.rb | 101 +
spec/rubocop/cop/style/method_name_spec.rb | 61 +-
spec/rubocop/cop/style/missing_else_spec.rb | 38 +-
spec/rubocop/cop/style/module_function_spec.rb | 60 +-
.../cop/style/multiline_array_brace_layout_spec.rb | 37 +
.../cop/style/multiline_assignment_layout_spec.rb | 141 +
.../cop/style/multiline_block_chain_spec.rb | 2 +-
.../cop/style/multiline_block_layout_spec.rb | 52 +-
.../cop/style/multiline_hash_brace_layout_spec.rb | 43 +
.../cop/style/multiline_if_modifier_spec.rb | 116 +
spec/rubocop/cop/style/multiline_if_then_spec.rb | 8 +-
.../cop/style/multiline_memoization_spec.rb | 130 +
.../multiline_method_call_brace_layout_spec.rb | 72 +
.../multiline_method_call_indentation_spec.rb | 854 ++++
...ultiline_method_definition_brace_layout_spec.rb | 38 +
.../style/multiline_operation_indentation_spec.rb | 355 +-
.../cop/style/multiline_ternary_operator_spec.rb | 2 +-
spec/rubocop/cop/style/mutable_constant_spec.rb | 137 +
spec/rubocop/cop/style/negated_if_spec.rb | 37 +-
spec/rubocop/cop/style/negated_while_spec.rb | 39 +-
spec/rubocop/cop/style/nested_modifier_spec.rb | 90 +
.../cop/style/nested_parenthesized_calls_spec.rb | 111 +
.../cop/style/nested_ternary_operator_spec.rb | 2 +-
spec/rubocop/cop/style/next_spec.rb | 655 ++-
spec/rubocop/cop/style/nil_comparison_spec.rb | 2 +-
spec/rubocop/cop/style/non_nil_check_spec.rb | 35 +-
spec/rubocop/cop/style/not_spec.rb | 39 +-
.../cop/style/numeric_literal_prefix_spec.rb | 139 +
spec/rubocop/cop/style/numeric_literals_spec.rb | 2 +-
spec/rubocop/cop/style/numeric_predicate_spec.rb | 173 +
.../rubocop/cop/style/one_line_conditional_spec.rb | 105 +-
spec/rubocop/cop/style/op_method_spec.rb | 14 +-
spec/rubocop/cop/style/option_hash_spec.rb | 88 +
spec/rubocop/cop/style/optional_arguments_spec.rb | 105 +
spec/rubocop/cop/style/parallel_assignment_spec.rb | 443 +-
.../cop/style/parentheses_around_condition_spec.rb | 45 +-
.../cop/style/percent_literal_delimiters_spec.rb | 108 +-
spec/rubocop/cop/style/percent_q_literals_spec.rb | 2 +-
spec/rubocop/cop/style/perl_backrefs_spec.rb | 2 +-
spec/rubocop/cop/style/predicate_name_spec.rb | 56 +-
.../cop/style/preferred_hash_methods_spec.rb | 91 +
spec/rubocop/cop/style/proc_spec.rb | 2 +-
spec/rubocop/cop/style/raise_args_spec.rb | 144 +-
spec/rubocop/cop/style/redundant_begin_spec.rb | 51 +-
spec/rubocop/cop/style/redundant_exception_spec.rb | 97 +-
spec/rubocop/cop/style/redundant_freeze_spec.rb | 87 +
.../cop/style/redundant_parentheses_spec.rb | 206 +
spec/rubocop/cop/style/redundant_return_spec.rb | 148 +-
spec/rubocop/cop/style/redundant_self_spec.rb | 60 +-
spec/rubocop/cop/style/regexp_literal_spec.rb | 2 +-
.../cop/style/rescue_ensure_alignment_spec.rb | 122 +
spec/rubocop/cop/style/rescue_modifier_spec.rb | 124 +-
spec/rubocop/cop/style/safe_navigation_spec.rb | 926 ++++
spec/rubocop/cop/style/self_assignment_spec.rb | 2 +-
spec/rubocop/cop/style/semicolon_spec.rb | 13 +-
spec/rubocop/cop/style/send_spec.rb | 81 +
spec/rubocop/cop/style/signal_exception_spec.rb | 74 +-
.../cop/style/single_line_block_params_spec.rb | 13 +-
spec/rubocop/cop/style/single_line_methods_spec.rb | 11 +-
.../style/single_space_before_first_arg_spec.rb | 63 -
spec/rubocop/cop/style/space_after_colon_spec.rb | 39 +-
spec/rubocop/cop/style/space_after_comma_spec.rb | 47 +-
.../cop/style/space_after_control_keyword_spec.rb | 84 -
.../cop/style/space_after_method_name_spec.rb | 2 +-
spec/rubocop/cop/style/space_after_not_spec.rb | 44 +-
.../cop/style/space_after_semicolon_spec.rb | 5 +-
.../style/space_around_block_parameters_spec.rb | 2 +-
...pace_around_equals_in_parameter_default_spec.rb | 2 +-
.../rubocop/cop/style/space_around_keyword_spec.rb | 215 +
.../cop/style/space_around_operators_spec.rb | 371 +-
.../cop/style/space_before_block_braces_spec.rb | 21 +-
spec/rubocop/cop/style/space_before_comma_spec.rb | 11 +-
.../rubocop/cop/style/space_before_comment_spec.rb | 2 +-
.../cop/style/space_before_first_arg_spec.rb | 88 +
.../style/space_before_modifier_keyword_spec.rb | 70 -
.../cop/style/space_before_semicolon_spec.rb | 5 +-
.../cop/style/space_in_lambda_literal_spec.rb | 150 +
.../space_inside_array_percent_literal_spec.rb | 85 +
.../cop/style/space_inside_block_braces_spec.rb | 119 +-
.../cop/style/space_inside_brackets_spec.rb | 14 +-
.../style/space_inside_hash_literal_braces_spec.rb | 72 +-
spec/rubocop/cop/style/space_inside_parens_spec.rb | 2 +-
...space_inside_percent_literal_delimiters_spec.rb | 99 +
.../cop/style/space_inside_range_literal_spec.rb | 2 +-
.../space_inside_string_interpolation_spec.rb | 124 +-
spec/rubocop/cop/style/special_global_vars_spec.rb | 172 +-
.../cop/style/stabby_lambda_parentheses_spec.rb | 64 +
.../style/string_literals_in_interpolation_spec.rb | 2 +-
spec/rubocop/cop/style/string_literals_spec.rb | 195 +-
spec/rubocop/cop/style/string_methods_spec.rb | 24 +
spec/rubocop/cop/style/struct_inheritance_spec.rb | 14 +-
spec/rubocop/cop/style/symbol_array_spec.rb | 87 +-
spec/rubocop/cop/style/symbol_literal_spec.rb | 4 +-
spec/rubocop/cop/style/symbol_proc_spec.rb | 82 +-
spec/rubocop/cop/style/tab_spec.rb | 12 +-
spec/rubocop/cop/style/ternary_parentheses_spec.rb | 327 ++
.../rubocop/cop/style/trailing_blank_lines_spec.rb | 2 +-
.../cop/style/trailing_comma_in_arguments_spec.rb | 345 ++
.../cop/style/trailing_comma_in_literal_spec.rb | 467 ++
spec/rubocop/cop/style/trailing_comma_spec.rb | 602 ---
.../cop/style/trailing_underscore_variable_spec.rb | 330 +-
spec/rubocop/cop/style/trailing_whitespace_spec.rb | 2 +-
spec/rubocop/cop/style/trivial_accessors_spec.rb | 135 +-
spec/rubocop/cop/style/unless_else_spec.rb | 79 +-
spec/rubocop/cop/style/unneeded_capital_w_spec.rb | 10 +-
.../cop/style/unneeded_interpolation_spec.rb | 148 +
spec/rubocop/cop/style/unneeded_percent_q_spec.rb | 202 +-
.../cop/style/variable_interpolation_spec.rb | 17 +-
spec/rubocop/cop/style/variable_name_spec.rb | 25 +-
spec/rubocop/cop/style/variable_number_spec.rb | 163 +
spec/rubocop/cop/style/when_then_spec.rb | 2 +-
spec/rubocop/cop/style/while_until_do_spec.rb | 2 +-
.../rubocop/cop/style/while_until_modifier_spec.rb | 4 +-
spec/rubocop/cop/style/word_array_spec.rb | 275 +-
.../cop/style/zero_length_predicate_spec.rb | 157 +
spec/rubocop/cop/team_spec.rb | 34 +-
spec/rubocop/cop/util_spec.rb | 53 +-
spec/rubocop/cop/variable_force/assignment_spec.rb | 7 +-
spec/rubocop/cop/variable_force/locatable_spec.rb | 284 +-
spec/rubocop/cop/variable_force/reference_spec.rb | 6 +-
spec/rubocop/cop/variable_force/scope_spec.rb | 37 +-
spec/rubocop/cop/variable_force/variable_spec.rb | 6 +-
.../cop/variable_force/variable_table_spec.rb | 10 +-
spec/rubocop/cop/variable_force_spec.rb | 14 +-
spec/rubocop/formatter/base_formatter_spec.rb | 36 +-
.../formatter/clang_style_formatter_spec.rb | 16 +-
spec/rubocop/formatter/colorizable_spec.rb | 22 +-
.../formatter/disabled_config_formatter_spec.rb | 148 +-
.../formatter/disabled_lines_formatter_spec.rb | 9 +-
.../formatter/emacs_style_formatter_spec.rb | 28 +-
spec/rubocop/formatter/file_list_formatter_spec.rb | 6 +-
spec/rubocop/formatter/formatter_set_spec.rb | 10 +-
.../formatter/fuubar_style_formatter_spec.rb | 3 +-
spec/rubocop/formatter/html_formatter_spec.rb | 22 +-
spec/rubocop/formatter/json_formatter_spec.rb | 9 +-
.../formatter/offense_count_formatter_spec.rb | 6 +-
spec/rubocop/formatter/progress_formatter_spec.rb | 72 +-
.../formatter/simple_text_formatter_spec.rb | 37 +-
spec/rubocop/formatter/text_util_spec.rb | 2 +-
.../formatter/worst_offenders_formatter_spec.rb | 43 +
spec/rubocop/node_pattern_spec.rb | 926 ++++
spec/rubocop/options_spec.rb | 147 +-
spec/rubocop/path_util_spec.rb | 82 +-
spec/rubocop/processed_source_spec.rb | 66 +-
spec/rubocop/rake_task_spec.rb | 49 +-
spec/rubocop/remote_config_spec.rb | 46 +
spec/rubocop/result_cache_spec.rb | 217 +
spec/rubocop/runner_spec.rb | 63 +-
spec/rubocop/string_interpreter_spec.rb | 41 +
spec/rubocop/string_util_spec.rb | 2 +-
spec/rubocop/target_finder_spec.rb | 30 +-
spec/rubocop/token_spec.rb | 2 +-
spec/spec_helper.rb | 27 +-
spec/support/cop_helper.rb | 75 -
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 | 16 +-
spec/support/custom_matchers.rb | 31 +-
.../empty_lines_around_body_shared_examples.rb | 401 ++
spec/support/file_helper.rb | 4 +-
spec/support/jruby_workaround.rb | 4 +-
spec/support/mri_syntax_checker.rb | 6 +-
.../multiline_literal_brace_layout_examples.rb | 314 ++
...literal_brace_layout_trailing_comma_examples.rb | 46 +
spec/support/shared_contexts.rb | 53 -
spec/support/shared_examples.rb | 65 -
spec/support/statement_modifier_helper.rb | 5 +-
tasks/cops_documentation.rake | 127 +
tasks/new_cop.rake | 108 +
903 files changed, 74198 insertions(+), 13155 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