rubocop 0.18.1 → 0.19.0
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of rubocop might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/.travis.yml +1 -1
- data/CHANGELOG.md +65 -1
- data/Gemfile +0 -3
- data/LICENSE.txt +1 -1
- data/README.md +179 -77
- data/Rakefile +8 -0
- data/config/default.yml +151 -14
- data/config/enabled.yml +65 -8
- data/lib/rubocop.rb +19 -4
- data/lib/rubocop/cli.rb +2 -1
- data/lib/rubocop/comment_config.rb +97 -0
- data/lib/rubocop/config.rb +1 -1
- data/lib/rubocop/config_loader.rb +3 -2
- data/lib/rubocop/config_store.rb +6 -2
- data/lib/rubocop/cop/commissioner.rb +2 -2
- data/lib/rubocop/cop/cop.rb +22 -26
- data/lib/rubocop/cop/lint/ambiguous_operator.rb +2 -2
- data/lib/rubocop/cop/lint/ambiguous_regexp_literal.rb +1 -1
- data/lib/rubocop/cop/lint/assignment_in_condition.rb +1 -1
- data/lib/rubocop/cop/lint/block_alignment.rb +6 -6
- data/lib/rubocop/cop/lint/condition_position.rb +1 -1
- data/lib/rubocop/cop/lint/debugger.rb +1 -1
- data/lib/rubocop/cop/lint/deprecated_class_methods.rb +60 -0
- data/lib/rubocop/cop/lint/else_layout.rb +1 -1
- data/lib/rubocop/cop/lint/empty_ensure.rb +1 -1
- data/lib/rubocop/cop/lint/end_alignment.rb +14 -12
- data/lib/rubocop/cop/lint/end_in_method.rb +1 -1
- data/lib/rubocop/cop/lint/ensure_return.rb +1 -1
- data/lib/rubocop/cop/lint/eval.rb +1 -1
- data/lib/rubocop/cop/lint/handle_exceptions.rb +1 -1
- data/lib/rubocop/cop/lint/literal_in_condition.rb +13 -2
- data/lib/rubocop/cop/lint/literal_in_interpolation.rb +28 -0
- data/lib/rubocop/cop/lint/loop.rb +4 -4
- data/lib/rubocop/cop/lint/parentheses_as_grouped_expression.rb +1 -1
- data/lib/rubocop/cop/lint/require_parentheses.rb +6 -6
- data/lib/rubocop/cop/lint/rescue_exception.rb +1 -1
- data/lib/rubocop/cop/lint/shadowing_outer_local_variable.rb +2 -2
- data/lib/rubocop/cop/lint/string_conversion_in_interpolation.rb +30 -0
- data/lib/rubocop/cop/lint/syntax.rb +5 -5
- data/lib/rubocop/cop/lint/unreachable_code.rb +1 -1
- data/lib/rubocop/cop/lint/useless_assignment.rb +5 -5
- data/lib/rubocop/cop/lint/useless_comparison.rb +1 -1
- data/lib/rubocop/cop/lint/useless_setter_call.rb +1 -1
- data/lib/rubocop/cop/lint/void.rb +5 -5
- data/lib/rubocop/cop/mixin/autocorrect_alignment.rb +8 -5
- data/lib/rubocop/cop/mixin/code_length.rb +2 -2
- data/lib/rubocop/cop/mixin/configurable_enforced_style.rb +7 -7
- data/lib/rubocop/cop/mixin/configurable_max.rb +1 -1
- data/lib/rubocop/cop/mixin/configurable_naming.rb +1 -1
- data/lib/rubocop/cop/mixin/if_then_else.rb +1 -1
- data/lib/rubocop/cop/mixin/negative_conditional.rb +1 -1
- data/lib/rubocop/cop/mixin/parser_diagnostic.rb +2 -2
- data/lib/rubocop/cop/mixin/space_after_punctuation.rb +3 -2
- data/lib/rubocop/cop/mixin/space_inside.rb +1 -1
- data/lib/rubocop/cop/mixin/statement_modifier.rb +1 -0
- data/lib/rubocop/cop/mixin/string_help.rb +4 -4
- data/lib/rubocop/cop/{offence.rb → offense.rb} +7 -7
- data/lib/rubocop/cop/rails/action_filter.rb +73 -0
- data/lib/rubocop/cop/rails/default_scope.rb +1 -1
- data/lib/rubocop/cop/rails/has_and_belongs_to_many.rb +1 -1
- data/lib/rubocop/cop/rails/output.rb +1 -10
- data/lib/rubocop/cop/rails/read_attribute.rb +1 -1
- data/lib/rubocop/cop/rails/scope_args.rb +33 -0
- data/lib/rubocop/cop/rails/validation.rb +1 -1
- data/lib/rubocop/cop/style/access_modifier_indentation.rb +1 -1
- data/lib/rubocop/cop/style/accessor_method_name.rb +2 -2
- data/lib/rubocop/cop/style/alias.rb +2 -2
- data/lib/rubocop/cop/style/align_array.rb +1 -1
- data/lib/rubocop/cop/style/align_hash.rb +29 -2
- data/lib/rubocop/cop/style/align_parameters.rb +16 -2
- data/lib/rubocop/cop/style/and_or.rb +2 -2
- data/lib/rubocop/cop/style/ascii_comments.rb +1 -1
- data/lib/rubocop/cop/style/ascii_identifiers.rb +1 -1
- data/lib/rubocop/cop/style/attr.rb +1 -1
- data/lib/rubocop/cop/style/begin_block.rb +1 -1
- data/lib/rubocop/cop/style/block_comments.rb +1 -1
- data/lib/rubocop/cop/style/block_nesting.rb +1 -1
- data/lib/rubocop/cop/style/blocks.rb +2 -2
- data/lib/rubocop/cop/style/braces_around_hash_parameters.rb +2 -2
- data/lib/rubocop/cop/style/case_equality.rb +1 -1
- data/lib/rubocop/cop/style/case_indentation.rb +2 -2
- data/lib/rubocop/cop/style/character_literal.rb +2 -2
- data/lib/rubocop/cop/style/class_and_module_camel_case.rb +1 -1
- data/lib/rubocop/cop/style/class_and_module_children.rb +69 -0
- data/lib/rubocop/cop/style/class_methods.rb +1 -1
- data/lib/rubocop/cop/style/class_vars.rb +3 -3
- data/lib/rubocop/cop/style/collection_methods.rb +4 -4
- data/lib/rubocop/cop/style/colon_method_call.rb +1 -1
- data/lib/rubocop/cop/style/comment_annotation.rb +1 -1
- data/lib/rubocop/cop/style/constant_name.rb +1 -1
- data/lib/rubocop/cop/style/cyclomatic_complexity.rb +2 -2
- data/lib/rubocop/cop/style/def_parentheses.rb +2 -2
- data/lib/rubocop/cop/style/documentation.rb +1 -1
- data/lib/rubocop/cop/style/dot_position.rb +10 -11
- data/lib/rubocop/cop/style/double_negation.rb +40 -0
- data/lib/rubocop/cop/style/empty_line_between_defs.rb +8 -1
- data/lib/rubocop/cop/style/empty_lines.rb +3 -2
- data/lib/rubocop/cop/style/empty_lines_around_access_modifier.rb +1 -1
- data/lib/rubocop/cop/style/empty_lines_around_body.rb +1 -1
- data/lib/rubocop/cop/style/empty_literal.rb +3 -3
- data/lib/rubocop/cop/style/encoding.rb +1 -1
- data/lib/rubocop/cop/style/end_block.rb +1 -1
- data/lib/rubocop/cop/style/end_of_line.rb +2 -2
- data/lib/rubocop/cop/style/even_odd.rb +2 -2
- data/lib/rubocop/cop/style/favor_join.rb +1 -1
- data/lib/rubocop/cop/style/file_name.rb +29 -0
- data/lib/rubocop/cop/style/final_newline.rb +1 -1
- data/lib/rubocop/cop/style/flip_flop.rb +2 -2
- data/lib/rubocop/cop/style/for.rb +2 -2
- data/lib/rubocop/cop/style/format_string.rb +66 -0
- data/lib/rubocop/cop/style/global_vars.rb +2 -2
- data/lib/rubocop/cop/style/hash_methods.rb +1 -1
- data/lib/rubocop/cop/style/hash_syntax.rb +3 -3
- data/lib/rubocop/cop/style/if_unless_modifier.rb +2 -1
- data/lib/rubocop/cop/style/indent_array.rb +41 -0
- data/lib/rubocop/cop/style/indent_hash.rb +119 -0
- data/lib/rubocop/cop/style/indentation_consistency.rb +3 -11
- data/lib/rubocop/cop/style/indentation_width.rb +44 -23
- data/lib/rubocop/cop/style/lambda.rb +2 -2
- data/lib/rubocop/cop/style/lambda_call.rb +3 -3
- data/lib/rubocop/cop/style/leading_comment_space.rb +1 -1
- data/lib/rubocop/cop/style/line_end_concatenation.rb +7 -3
- data/lib/rubocop/cop/style/line_length.rb +2 -2
- data/lib/rubocop/cop/style/method_call_parentheses.rb +2 -2
- data/lib/rubocop/cop/style/method_called_on_do_end_block.rb +2 -2
- data/lib/rubocop/cop/style/method_def_parentheses.rb +9 -7
- data/lib/rubocop/cop/style/module_function.rb +1 -1
- data/lib/rubocop/cop/style/multiline_block_chain.rb +1 -1
- data/lib/rubocop/cop/style/multiline_ternary_operator.rb +1 -1
- data/lib/rubocop/cop/style/nested_ternary_operator.rb +2 -2
- data/lib/rubocop/cop/style/nil_comparison.rb +1 -1
- data/lib/rubocop/cop/style/not.rb +1 -1
- data/lib/rubocop/cop/style/numeric_literals.rb +5 -5
- data/lib/rubocop/cop/style/op_method.rb +2 -2
- data/lib/rubocop/cop/style/parameter_lists.rb +1 -1
- data/lib/rubocop/cop/style/parentheses_around_condition.rb +5 -4
- data/lib/rubocop/cop/style/percent_literal_delimiters.rb +143 -0
- data/lib/rubocop/cop/style/perl_backrefs.rb +1 -1
- data/lib/rubocop/cop/style/predicate_name.rb +1 -1
- data/lib/rubocop/cop/style/proc.rb +1 -1
- data/lib/rubocop/cop/style/raise_args.rb +2 -2
- data/lib/rubocop/cop/style/redundant_begin.rb +1 -1
- data/lib/rubocop/cop/style/redundant_exception.rb +1 -1
- data/lib/rubocop/cop/style/redundant_return.rb +1 -1
- data/lib/rubocop/cop/style/redundant_self.rb +2 -2
- data/lib/rubocop/cop/style/regexp_literal.rb +45 -19
- data/lib/rubocop/cop/style/rescue_modifier.rb +1 -1
- data/lib/rubocop/cop/style/self_assignment.rb +73 -0
- data/lib/rubocop/cop/style/semicolon.rb +12 -8
- data/lib/rubocop/cop/style/signal_exception.rb +2 -2
- data/lib/rubocop/cop/style/single_line_block_params.rb +1 -1
- data/lib/rubocop/cop/style/single_line_methods.rb +38 -1
- data/lib/rubocop/cop/style/space_after_colon.rb +3 -3
- data/lib/rubocop/cop/style/space_after_comma.rb +1 -1
- data/lib/rubocop/cop/style/space_after_control_keyword.rb +1 -1
- data/lib/rubocop/cop/style/space_after_method_name.rb +11 -3
- data/lib/rubocop/cop/style/space_after_not.rb +1 -1
- data/lib/rubocop/cop/style/space_after_semicolon.rb +1 -1
- data/lib/rubocop/cop/style/space_around_equals_in_parameter_default.rb +41 -6
- data/lib/rubocop/cop/style/space_around_operators.rb +4 -4
- data/lib/rubocop/cop/style/space_before_block_braces.rb +63 -0
- data/lib/rubocop/cop/style/space_before_modifier_keyword.rb +1 -1
- data/lib/rubocop/cop/style/{space_around_block_braces.rb → space_inside_block_braces.rb} +15 -24
- data/lib/rubocop/cop/style/space_inside_hash_literal_braces.rb +14 -7
- data/lib/rubocop/cop/style/special_global_vars.rb +1 -1
- data/lib/rubocop/cop/style/string_literals.rb +1 -1
- data/lib/rubocop/cop/style/symbol_array.rb +1 -1
- data/lib/rubocop/cop/style/tab.rb +1 -1
- data/lib/rubocop/cop/style/trailing_blank_lines.rb +2 -2
- data/lib/rubocop/cop/style/trailing_comma.rb +4 -4
- data/lib/rubocop/cop/style/trailing_whitespace.rb +1 -1
- data/lib/rubocop/cop/style/trivial_accessors.rb +2 -2
- data/lib/rubocop/cop/style/unless_else.rb +1 -1
- data/lib/rubocop/cop/style/variable_interpolation.rb +1 -1
- data/lib/rubocop/cop/style/when_then.rb +1 -1
- data/lib/rubocop/cop/style/while_until_do.rb +1 -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/team.rb +24 -7
- data/lib/rubocop/cop/util.rb +3 -3
- data/lib/rubocop/cop/variable_inspector.rb +25 -13
- data/lib/rubocop/cop/variable_inspector/assignment.rb +1 -1
- data/lib/rubocop/cop/variable_inspector/reference.rb +1 -1
- data/lib/rubocop/cop/variable_inspector/scope.rb +1 -1
- data/lib/rubocop/cop/variable_inspector/variable.rb +2 -2
- data/lib/rubocop/cop/variable_inspector/variable_table.rb +1 -1
- data/lib/rubocop/file_inspector.rb +12 -13
- data/lib/rubocop/formatter/base_formatter.rb +4 -4
- data/lib/rubocop/formatter/clang_style_formatter.rb +2 -2
- data/lib/rubocop/formatter/disabled_config_formatter.rb +12 -12
- data/lib/rubocop/formatter/emacs_style_formatter.rb +3 -2
- data/lib/rubocop/formatter/file_list_formatter.rb +4 -4
- data/lib/rubocop/formatter/formatter_set.rb +2 -1
- data/lib/rubocop/formatter/fuubar_style_formatter.rb +76 -0
- data/lib/rubocop/formatter/json_formatter.rb +17 -16
- data/lib/rubocop/formatter/offense_count_formatter.rb +54 -0
- data/lib/rubocop/formatter/progress_formatter.rb +16 -16
- data/lib/rubocop/formatter/simple_text_formatter.rb +25 -25
- data/lib/rubocop/options.rb +8 -7
- data/lib/rubocop/processed_source.rb +3 -2
- data/lib/rubocop/source_parser.rb +1 -59
- data/lib/rubocop/version.rb +3 -3
- data/relnotes/0.19.0.md +70 -0
- data/rubocop-todo.yml +6 -6
- data/rubocop.gemspec +2 -1
- data/spec/rubocop/cli_spec.rb +431 -268
- data/spec/rubocop/comment_config_spec.rb +103 -0
- data/spec/rubocop/config_loader_spec.rb +4 -4
- data/spec/rubocop/cop/commissioner_spec.rb +7 -7
- data/spec/rubocop/cop/cop_spec.rb +17 -17
- data/spec/rubocop/cop/lint/ambiguous_operator_spec.rb +16 -16
- data/spec/rubocop/cop/lint/ambiguous_regexp_literal_spec.rb +5 -5
- data/spec/rubocop/cop/lint/assignment_in_condition_spec.rb +19 -19
- data/spec/rubocop/cop/lint/block_alignment_spec.rb +52 -52
- data/spec/rubocop/cop/lint/condition_position_spec.rb +7 -7
- data/spec/rubocop/cop/lint/debugger_spec.rb +10 -10
- data/spec/rubocop/cop/lint/deprecated_class_methods_spec.rb +33 -0
- data/spec/rubocop/cop/lint/else_layout_spec.rb +7 -7
- data/spec/rubocop/cop/lint/empty_ensure_spec.rb +4 -4
- data/spec/rubocop/cop/lint/end_alignment_spec.rb +33 -34
- data/spec/rubocop/cop/lint/end_in_method_spec.rb +5 -5
- data/spec/rubocop/cop/lint/ensure_return_spec.rb +4 -4
- data/spec/rubocop/cop/lint/eval_spec.rb +8 -8
- data/spec/rubocop/cop/lint/handle_exceptions_spec.rb +4 -4
- data/spec/rubocop/cop/lint/invalid_character_literal_spec.rb +3 -3
- data/spec/rubocop/cop/lint/literal_in_condition_spec.rb +65 -10
- data/spec/rubocop/cop/lint/literal_in_interpolation_spec.rb +21 -0
- data/spec/rubocop/cop/lint/loop_spec.rb +6 -6
- data/spec/rubocop/cop/lint/parentheses_as_grouped_expression_spec.rb +14 -14
- data/spec/rubocop/cop/lint/require_parentheses_spec.rb +15 -15
- data/spec/rubocop/cop/lint/rescue_exception_spec.rb +21 -21
- data/spec/rubocop/cop/lint/shadowing_outer_local_variable_spec.rb +16 -16
- data/spec/rubocop/cop/lint/string_conversion_in_interpolation_spec.rb +27 -0
- data/spec/rubocop/cop/lint/syntax_spec.rb +11 -11
- data/spec/rubocop/cop/lint/unreachable_code_spec.rb +8 -8
- data/spec/rubocop/cop/lint/useless_assignment_spec.rb +207 -169
- data/spec/rubocop/cop/lint/useless_comparison_spec.rb +5 -5
- data/spec/rubocop/cop/lint/useless_else_without_rescue_spec.rb +4 -4
- data/spec/rubocop/cop/lint/useless_setter_call_spec.rb +17 -17
- data/spec/rubocop/cop/lint/void_spec.rb +8 -8
- data/spec/rubocop/cop/{offence_spec.rb → offense_spec.rb} +17 -17
- data/spec/rubocop/cop/rails/action_filter_spec.rb +69 -0
- data/spec/rubocop/cop/rails/default_scope_spec.rb +9 -9
- data/spec/rubocop/cop/rails/has_and_belongs_to_many_spec.rb +2 -2
- data/spec/rubocop/cop/rails/output_spec.rb +8 -18
- data/spec/rubocop/cop/rails/read_attribute_spec.rb +2 -2
- data/spec/rubocop/cop/rails/scope_args_spec.rb +25 -0
- data/spec/rubocop/cop/rails/validation_spec.rb +3 -3
- data/spec/rubocop/cop/style/access_modifier_indentation_spec.rb +38 -38
- data/spec/rubocop/cop/style/accessor_method_name_spec.rb +14 -14
- data/spec/rubocop/cop/style/alias_spec.rb +11 -11
- data/spec/rubocop/cop/style/align_array_spec.rb +23 -7
- data/spec/rubocop/cop/style/align_hash_spec.rb +111 -30
- data/spec/rubocop/cop/style/align_parameters_spec.rb +260 -187
- data/spec/rubocop/cop/style/and_or_spec.rb +6 -6
- data/spec/rubocop/cop/style/ascii_comments_spec.rb +3 -3
- data/spec/rubocop/cop/style/ascii_identifiers_spec.rb +5 -5
- data/spec/rubocop/cop/style/attr_spec.rb +2 -2
- data/spec/rubocop/cop/style/begin_block_spec.rb +2 -2
- data/spec/rubocop/cop/style/block_comments_spec.rb +3 -3
- data/spec/rubocop/cop/style/block_nesting_spec.rb +26 -26
- data/spec/rubocop/cop/style/blocks_spec.rb +8 -8
- data/spec/rubocop/cop/style/braces_around_hash_parameters_spec.rb +8 -8
- data/spec/rubocop/cop/style/case_equality_spec.rb +2 -2
- data/spec/rubocop/cop/style/case_indentation_spec.rb +21 -21
- data/spec/rubocop/cop/style/character_literal_spec.rb +6 -6
- data/spec/rubocop/cop/style/class_and_module_camel_case_spec.rb +4 -4
- data/spec/rubocop/cop/style/class_and_module_children_spec.rb +129 -0
- data/spec/rubocop/cop/style/class_length_spec.rb +9 -9
- data/spec/rubocop/cop/style/class_methods_spec.rb +8 -8
- data/spec/rubocop/cop/style/class_vars_spec.rb +4 -4
- data/spec/rubocop/cop/style/collection_methods_spec.rb +6 -6
- data/spec/rubocop/cop/style/colon_method_call_spec.rb +16 -16
- data/spec/rubocop/cop/style/comment_annotation_spec.rb +16 -16
- data/spec/rubocop/cop/style/constant_name_spec.rb +12 -12
- data/spec/rubocop/cop/style/cyclomatic_complexity_spec.rb +16 -16
- data/spec/rubocop/cop/style/def_with_parentheses_spec.rb +6 -6
- data/spec/rubocop/cop/style/documentation_spec.rb +14 -14
- data/spec/rubocop/cop/style/dot_position_spec.rb +23 -26
- data/spec/rubocop/cop/style/double_negation_spec.rb +22 -0
- data/spec/rubocop/cop/style/empty_line_between_defs_spec.rb +22 -14
- data/spec/rubocop/cop/style/empty_lines_around_access_modifier_spec.rb +4 -4
- data/spec/rubocop/cop/style/empty_lines_around_body_spec.rb +20 -20
- data/spec/rubocop/cop/style/empty_lines_spec.rb +17 -6
- data/spec/rubocop/cop/style/empty_literal_spec.rb +20 -20
- data/spec/rubocop/cop/style/encoding_spec.rb +5 -5
- data/spec/rubocop/cop/style/end_block_spec.rb +2 -2
- data/spec/rubocop/cop/style/end_of_line_spec.rb +4 -4
- data/spec/rubocop/cop/style/even_odd_spec.rb +18 -18
- data/spec/rubocop/cop/style/favor_join_spec.rb +7 -7
- data/spec/rubocop/cop/style/favor_unless_over_negated_if_spec.rb +7 -7
- data/spec/rubocop/cop/style/favor_until_over_negated_while_spec.rb +3 -3
- data/spec/rubocop/cop/style/file_name_spec.rb +71 -0
- data/spec/rubocop/cop/style/final_newline_spec.rb +4 -4
- data/spec/rubocop/cop/style/flip_flop_spec.rb +4 -4
- data/spec/rubocop/cop/style/for_spec.rb +13 -13
- data/spec/rubocop/cop/style/format_string_spec.rb +136 -0
- data/spec/rubocop/cop/style/global_vars_spec.rb +7 -7
- data/spec/rubocop/cop/style/hash_methods_spec.rb +6 -6
- data/spec/rubocop/cop/style/hash_syntax_spec.rb +11 -11
- data/spec/rubocop/cop/style/if_unless_modifier_spec.rb +29 -11
- data/spec/rubocop/cop/style/if_with_semicolon_spec.rb +1 -1
- data/spec/rubocop/cop/style/indent_array_spec.rb +136 -0
- data/spec/rubocop/cop/style/indent_hash_spec.rb +238 -0
- data/spec/rubocop/cop/style/indentation_consistency_spec.rb +69 -49
- data/spec/rubocop/cop/style/indentation_width_spec.rb +264 -128
- data/spec/rubocop/cop/style/lambda_call_spec.rb +14 -14
- data/spec/rubocop/cop/style/lambda_spec.rb +7 -7
- data/spec/rubocop/cop/style/leading_comment_space_spec.rb +15 -15
- data/spec/rubocop/cop/style/line_end_concatenation_spec.rb +11 -4
- data/spec/rubocop/cop/style/line_length_spec.rb +5 -5
- data/spec/rubocop/cop/style/method_call_parentheses_spec.rb +5 -5
- data/spec/rubocop/cop/style/method_called_on_do_end_block_spec.rb +9 -9
- data/spec/rubocop/cop/style/method_def_parentheses_spec.rb +19 -19
- data/spec/rubocop/cop/style/method_length_spec.rb +17 -17
- data/spec/rubocop/cop/style/method_name_spec.rb +21 -21
- data/spec/rubocop/cop/style/module_function_spec.rb +3 -3
- data/spec/rubocop/cop/style/multiline_block_chain_spec.rb +13 -13
- data/spec/rubocop/cop/style/multiline_if_then_spec.rb +10 -10
- data/spec/rubocop/cop/style/multiline_ternary_operator_spec.rb +3 -3
- data/spec/rubocop/cop/style/nested_ternary_operator_spec.rb +3 -3
- data/spec/rubocop/cop/style/nil_comparison_spec.rb +7 -7
- data/spec/rubocop/cop/style/not_spec.rb +6 -11
- data/spec/rubocop/cop/style/numeric_literals_spec.rb +8 -8
- data/spec/rubocop/cop/style/one_line_conditional_spec.rb +1 -1
- data/spec/rubocop/cop/style/op_method_spec.rb +13 -13
- data/spec/rubocop/cop/style/parameter_lists_spec.rb +6 -6
- data/spec/rubocop/cop/style/parentheses_around_condition_spec.rb +11 -10
- data/spec/rubocop/cop/style/percent_literal_delimiters_spec.rb +250 -0
- data/spec/rubocop/cop/style/perl_backrefs_spec.rb +2 -2
- data/spec/rubocop/cop/style/predicate_name_spec.rb +3 -3
- data/spec/rubocop/cop/style/proc_spec.rb +4 -4
- data/spec/rubocop/cop/style/raise_args_spec.rb +20 -20
- data/spec/rubocop/cop/style/redundant_begin_spec.rb +6 -6
- data/spec/rubocop/cop/style/redundant_exception_spec.rb +6 -6
- data/spec/rubocop/cop/style/redundant_return_spec.rb +22 -22
- data/spec/rubocop/cop/style/redundant_self_spec.rb +14 -14
- data/spec/rubocop/cop/style/regexp_literal_spec.rb +88 -67
- data/spec/rubocop/cop/style/rescue_modifier_spec.rb +17 -17
- data/spec/rubocop/cop/style/self_assignment_spec.rb +43 -0
- data/spec/rubocop/cop/style/semicolon_spec.rb +31 -17
- data/spec/rubocop/cop/style/signal_exception_spec.rb +29 -29
- data/spec/rubocop/cop/style/single_line_block_params_spec.rb +6 -6
- data/spec/rubocop/cop/style/single_line_methods_spec.rb +44 -6
- data/spec/rubocop/cop/style/space_after_colon_spec.rb +1 -1
- data/spec/rubocop/cop/style/space_after_comma_spec.rb +3 -3
- data/spec/rubocop/cop/style/space_after_control_keyword_spec.rb +12 -12
- data/spec/rubocop/cop/style/space_after_method_name_spec.rb +8 -8
- data/spec/rubocop/cop/style/space_after_not_spec.rb +3 -3
- data/spec/rubocop/cop/style/space_after_semicolon_spec.rb +1 -1
- data/spec/rubocop/cop/style/space_around_equals_in_parameter_default_spec.rb +63 -21
- data/spec/rubocop/cop/style/space_around_operators_spec.rb +24 -24
- data/spec/rubocop/cop/style/space_before_block_braces_spec.rb +72 -0
- data/spec/rubocop/cop/style/space_before_modifier_keyword_spec.rb +4 -4
- data/spec/rubocop/cop/style/{space_around_block_braces_spec.rb → space_inside_block_braces_spec.rb} +39 -41
- data/spec/rubocop/cop/style/space_inside_brackets_spec.rb +1 -1
- data/spec/rubocop/cop/style/space_inside_hash_literal_braces_spec.rb +15 -15
- data/spec/rubocop/cop/style/space_inside_parens_spec.rb +1 -1
- data/spec/rubocop/cop/style/special_global_vars_spec.rb +10 -10
- data/spec/rubocop/cop/style/string_literals_spec.rb +31 -31
- data/spec/rubocop/cop/style/symbol_array_spec.rb +9 -9
- data/spec/rubocop/cop/style/tab_spec.rb +3 -3
- data/spec/rubocop/cop/style/trailing_blank_lines_spec.rb +3 -3
- data/spec/rubocop/cop/style/trailing_comma_spec.rb +32 -32
- data/spec/rubocop/cop/style/trailing_whitespace_spec.rb +5 -5
- data/spec/rubocop/cop/style/trivial_accessors_spec.rb +39 -39
- data/spec/rubocop/cop/style/unless_else_spec.rb +1 -1
- data/spec/rubocop/cop/style/variable_interpolation_spec.rb +12 -12
- data/spec/rubocop/cop/style/variable_name_spec.rb +21 -21
- data/spec/rubocop/cop/style/when_then_spec.rb +1 -1
- data/spec/rubocop/cop/style/while_until_do_spec.rb +8 -8
- data/spec/rubocop/cop/style/while_until_modifier_spec.rb +25 -7
- data/spec/rubocop/cop/style/word_array_spec.rb +23 -23
- data/spec/rubocop/cop/team_spec.rb +14 -14
- data/spec/rubocop/file_inspector_spec.rb +14 -12
- data/spec/rubocop/formatter/base_formatter_spec.rb +19 -19
- data/spec/rubocop/formatter/clang_style_formatter_spec.rb +14 -14
- data/spec/rubocop/formatter/disabled_config_formatter_spec.rb +7 -7
- data/spec/rubocop/formatter/emacs_style_formatter_spec.rb +7 -7
- data/spec/rubocop/formatter/file_list_formatter_spec.rb +4 -4
- data/spec/rubocop/formatter/fuubar_style_formatter_spec.rb +129 -0
- data/spec/rubocop/formatter/json_formatter_spec.rb +23 -19
- data/spec/rubocop/formatter/offense_count_formatter_spec.rb +77 -0
- data/spec/rubocop/formatter/progress_formatter_spec.rb +27 -27
- data/spec/rubocop/formatter/simple_text_formatter_spec.rb +16 -16
- data/spec/rubocop/options_spec.rb +7 -8
- data/spec/rubocop/source_parser_spec.rb +0 -54
- data/spec/spec_helper.rb +11 -7
- data/spec/support/file_helper.rb +1 -1
- data/spec/support/mri_syntax_checker.rb +4 -4
- data/spec/support/shared_examples.rb +6 -6
- data/spec/support/statement_modifier_helper.rb +3 -3
- metadata +76 -16
- data/lib/rubocop/cop/style/favor_sprintf.rb +0 -26
- data/lib/rubocop/formatter/offence_count_formatter.rb +0 -49
- data/spec/rubocop/cop/style/favor_sprintf_spec.rb +0 -47
- data/spec/rubocop/formatter/offence_count_formatter_spec.rb +0 -52
@@ -12,13 +12,13 @@ module Rubocop
|
|
12
12
|
|
13
13
|
describe '#report_file' do
|
14
14
|
before do
|
15
|
-
formatter.report_file(file, [
|
15
|
+
formatter.report_file(file, [offense])
|
16
16
|
end
|
17
17
|
|
18
18
|
let(:file) { '/path/to/file' }
|
19
19
|
|
20
|
-
let(:
|
21
|
-
Cop::
|
20
|
+
let(:offense) do
|
21
|
+
Cop::Offense.new(:convention, location,
|
22
22
|
'This is a message.', 'CopName', corrected)
|
23
23
|
end
|
24
24
|
|
@@ -50,7 +50,7 @@ module Rubocop
|
|
50
50
|
end
|
51
51
|
end
|
52
52
|
|
53
|
-
context 'when the
|
53
|
+
context 'when the offense is not corrected' do
|
54
54
|
let(:corrected) { false }
|
55
55
|
|
56
56
|
it 'prints message as-is' do
|
@@ -59,7 +59,7 @@ module Rubocop
|
|
59
59
|
end
|
60
60
|
end
|
61
61
|
|
62
|
-
context 'when the
|
62
|
+
context 'when the offense is automatically corrected' do
|
63
63
|
let(:corrected) { true }
|
64
64
|
|
65
65
|
it 'prints [Corrected] along with message' do
|
@@ -74,47 +74,47 @@ module Rubocop
|
|
74
74
|
it 'handles pluralization correctly' do
|
75
75
|
formatter.report_summary(0, 0, 0)
|
76
76
|
expect(output.string).to eq(
|
77
|
-
"\n0 files inspected, no
|
77
|
+
"\n0 files inspected, no offenses detected\n")
|
78
78
|
end
|
79
79
|
end
|
80
80
|
|
81
|
-
context 'when a file inspected and no
|
81
|
+
context 'when a file inspected and no offenses detected' do
|
82
82
|
it 'handles pluralization correctly' do
|
83
83
|
formatter.report_summary(1, 0, 0)
|
84
84
|
expect(output.string).to eq(
|
85
|
-
"\n1 file inspected, no
|
85
|
+
"\n1 file inspected, no offenses detected\n")
|
86
86
|
end
|
87
87
|
end
|
88
88
|
|
89
|
-
context 'when a
|
89
|
+
context 'when a offense detected' do
|
90
90
|
it 'handles pluralization correctly' do
|
91
91
|
formatter.report_summary(1, 1, 0)
|
92
92
|
expect(output.string).to eq(
|
93
|
-
"\n1 file inspected, 1
|
93
|
+
"\n1 file inspected, 1 offense detected\n")
|
94
94
|
end
|
95
95
|
end
|
96
96
|
|
97
|
-
context 'when 2
|
97
|
+
context 'when 2 offenses detected' do
|
98
98
|
it 'handles pluralization correctly' do
|
99
99
|
formatter.report_summary(2, 2, 0)
|
100
100
|
expect(output.string).to eq(
|
101
|
-
"\n2 files inspected, 2
|
101
|
+
"\n2 files inspected, 2 offenses detected\n")
|
102
102
|
end
|
103
103
|
end
|
104
104
|
|
105
|
-
context 'when an
|
105
|
+
context 'when an offense is corrected' do
|
106
106
|
it 'prints about correction' do
|
107
107
|
formatter.report_summary(1, 1, 1)
|
108
108
|
expect(output.string).to eq(
|
109
|
-
"\n1 file inspected, 1
|
109
|
+
"\n1 file inspected, 1 offense detected, 1 offense corrected\n")
|
110
110
|
end
|
111
111
|
end
|
112
112
|
|
113
|
-
context 'when 2
|
113
|
+
context 'when 2 offenses are corrected' do
|
114
114
|
it 'handles pluralization correctly' do
|
115
115
|
formatter.report_summary(1, 1, 2)
|
116
116
|
expect(output.string).to eq(
|
117
|
-
"\n1 file inspected, 1
|
117
|
+
"\n1 file inspected, 1 offense detected, 2 offenses corrected\n")
|
118
118
|
end
|
119
119
|
end
|
120
120
|
end
|
@@ -46,10 +46,11 @@ Usage: rubocop [options] [file1, file2, ...]
|
|
46
46
|
[p]rogress (default)
|
47
47
|
[s]imple
|
48
48
|
[c]lang
|
49
|
+
[fu]ubar
|
49
50
|
[e]macs
|
50
51
|
[j]son
|
51
|
-
[
|
52
|
-
[o]
|
52
|
+
[fi]les
|
53
|
+
[o]ffenses
|
53
54
|
custom formatter class name
|
54
55
|
-o, --out FILE Write output to a file instead of STDOUT.
|
55
56
|
This option applies to the previously
|
@@ -60,10 +61,10 @@ Usage: rubocop [options] [file1, file2, ...]
|
|
60
61
|
default, and their configurations for the
|
61
62
|
current directory.
|
62
63
|
-d, --debug Display debug info.
|
63
|
-
-D, --display-cop-names Display cop names in
|
64
|
+
-D, --display-cop-names Display cop names in offense messages.
|
64
65
|
-R, --rails Run extra Rails cops.
|
65
66
|
-l, --lint Run only lint cops.
|
66
|
-
-a, --auto-correct Auto-correct
|
67
|
+
-a, --auto-correct Auto-correct offenses.
|
67
68
|
-n, --no-color Disable color output.
|
68
69
|
-v, --version Display version.
|
69
70
|
-V, --verbose-version Display verbose version.
|
@@ -111,10 +112,8 @@ Usage: rubocop [options] [file1, file2, ...]
|
|
111
112
|
before do
|
112
113
|
create_file('example.rb', '# encoding: utf-8')
|
113
114
|
|
114
|
-
create_file(required_file_path, [
|
115
|
-
'
|
116
|
-
"puts 'Hello from required file!'"
|
117
|
-
])
|
115
|
+
create_file(required_file_path, ['# encoding: utf-8',
|
116
|
+
"puts 'Hello from required file!'"])
|
118
117
|
end
|
119
118
|
|
120
119
|
it 'requires the passed path' do
|
@@ -82,58 +82,4 @@ describe Rubocop::SourceParser, :isolated_environment do
|
|
82
82
|
end
|
83
83
|
end
|
84
84
|
end
|
85
|
-
|
86
|
-
describe '.cop_disabled_lines_in' do
|
87
|
-
let(:source) do
|
88
|
-
[
|
89
|
-
'# encoding: utf-8',
|
90
|
-
'',
|
91
|
-
'# rubocop:disable MethodLength',
|
92
|
-
'def some_method',
|
93
|
-
" puts 'foo'",
|
94
|
-
'end',
|
95
|
-
'# rubocop:enable MethodLength',
|
96
|
-
'',
|
97
|
-
'# rubocop:disable all',
|
98
|
-
'some_method',
|
99
|
-
'# rubocop:enable all',
|
100
|
-
'',
|
101
|
-
"code = 'This is evil.'",
|
102
|
-
'eval(code) # rubocop:disable Eval',
|
103
|
-
"puts 'This is not evil.'"
|
104
|
-
]
|
105
|
-
end
|
106
|
-
|
107
|
-
let(:disabled_lines) { described_class.cop_disabled_lines_in(source) }
|
108
|
-
|
109
|
-
it 'has keys for disabled cops' do
|
110
|
-
expect(disabled_lines).to have_key('MethodLength')
|
111
|
-
expect(disabled_lines).to have_key('Eval')
|
112
|
-
end
|
113
|
-
|
114
|
-
it 'supports disabling multiple lines with a pair of directive' do
|
115
|
-
method_length_disabled_lines = disabled_lines['MethodLength']
|
116
|
-
expected_part = (3..6).to_a
|
117
|
-
expect(method_length_disabled_lines & expected_part)
|
118
|
-
.to eq(expected_part)
|
119
|
-
end
|
120
|
-
|
121
|
-
it 'supports disabling single line with a direcive at end of line' do
|
122
|
-
eval_disabled_lines = disabled_lines['Eval']
|
123
|
-
expect(eval_disabled_lines).to include(14)
|
124
|
-
expect(eval_disabled_lines).not_to include(15)
|
125
|
-
end
|
126
|
-
|
127
|
-
it 'supports disabling all cops with keyword all' do
|
128
|
-
all_cop_names = Rubocop::Cop::Cop.all.map(&:cop_name).sort
|
129
|
-
expect(disabled_lines.keys.sort).to eq(all_cop_names)
|
130
|
-
|
131
|
-
expected_part = (9..10).to_a
|
132
|
-
|
133
|
-
disabled_lines.each_value do |each_cop_disabled_lines|
|
134
|
-
expect(each_cop_disabled_lines & expected_part)
|
135
|
-
.to eq(expected_part)
|
136
|
-
end
|
137
|
-
end
|
138
|
-
end
|
139
85
|
end
|
data/spec/spec_helper.rb
CHANGED
@@ -83,7 +83,7 @@ def inspect_source_file(cop, source)
|
|
83
83
|
end
|
84
84
|
|
85
85
|
def inspect_source(cop, source, file = nil)
|
86
|
-
Rubocop::Formatter::DisabledConfigFormatter.
|
86
|
+
Rubocop::Formatter::DisabledConfigFormatter.config_to_allow_offenses = {}
|
87
87
|
processed_source = parse_source(source, file)
|
88
88
|
fail 'Error parsing example code' unless processed_source.valid_syntax?
|
89
89
|
_investigate(cop, processed_source)
|
@@ -118,13 +118,17 @@ def _investigate(cop, processed_source)
|
|
118
118
|
commissioner
|
119
119
|
end
|
120
120
|
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
121
|
+
module Rubocop
|
122
|
+
module Cop
|
123
|
+
class Cop
|
124
|
+
def messages
|
125
|
+
offenses.sort.map(&:message)
|
126
|
+
end
|
125
127
|
|
126
|
-
|
127
|
-
|
128
|
+
def highlights
|
129
|
+
offenses.sort.map { |o| o.location.source }
|
130
|
+
end
|
131
|
+
end
|
128
132
|
end
|
129
133
|
end
|
130
134
|
|
data/spec/support/file_helper.rb
CHANGED
@@ -7,7 +7,7 @@ module FileHelper
|
|
7
7
|
file_path = File.expand_path(file_path)
|
8
8
|
|
9
9
|
dir_path = File.dirname(file_path)
|
10
|
-
FileUtils.makedirs dir_path unless File.
|
10
|
+
FileUtils.makedirs dir_path unless File.exist?(dir_path)
|
11
11
|
|
12
12
|
File.open(file_path, 'w') do |file|
|
13
13
|
case content
|
@@ -6,7 +6,7 @@ require 'open3'
|
|
6
6
|
module MRISyntaxChecker
|
7
7
|
module_function
|
8
8
|
|
9
|
-
def
|
9
|
+
def offenses_for_source(source, fake_cop_name = 'Syntax', grep_message = nil)
|
10
10
|
if source.is_a?(Array)
|
11
11
|
source_lines = source
|
12
12
|
source = source_lines.join("\n")
|
@@ -17,12 +17,12 @@ module MRISyntaxChecker
|
|
17
17
|
source_buffer = Parser::Source::Buffer.new('test', 1)
|
18
18
|
source_buffer.source = source
|
19
19
|
|
20
|
-
|
20
|
+
offenses = check_syntax(source).each_line.map do |line|
|
21
21
|
check_line(line, source_lines, source_buffer, fake_cop_name,
|
22
22
|
grep_message)
|
23
23
|
end
|
24
24
|
|
25
|
-
|
25
|
+
offenses.compact
|
26
26
|
end
|
27
27
|
|
28
28
|
def check_line(line, source_lines, source_buffer, fake_cop_name,
|
@@ -33,7 +33,7 @@ module MRISyntaxChecker
|
|
33
33
|
begin_pos = source_lines[0...(line_number - 1)].reduce(0) do |a, e|
|
34
34
|
a + e.length + "\n".length
|
35
35
|
end
|
36
|
-
Rubocop::Cop::
|
36
|
+
Rubocop::Cop::Offense.new(severity,
|
37
37
|
Parser::Source::Range.new(source_buffer,
|
38
38
|
begin_pos,
|
39
39
|
begin_pos + 1),
|
@@ -5,7 +5,7 @@
|
|
5
5
|
shared_examples_for 'accepts' do
|
6
6
|
it 'accepts' do
|
7
7
|
inspect_source(cop, source)
|
8
|
-
expect(cop.
|
8
|
+
expect(cop.offenses).to be_empty
|
9
9
|
end
|
10
10
|
end
|
11
11
|
|
@@ -13,21 +13,21 @@ shared_examples_for 'mimics MRI 2.1' do |grep_mri_warning|
|
|
13
13
|
if RUBY_ENGINE == 'ruby' && RUBY_VERSION.start_with?('2.1')
|
14
14
|
it "mimics MRI #{RUBY_VERSION} built-in syntax checking" do
|
15
15
|
inspect_source(cop, source)
|
16
|
-
|
16
|
+
offenses_by_mri = MRISyntaxChecker.offenses_for_source(
|
17
17
|
source, cop.name, grep_mri_warning
|
18
18
|
)
|
19
19
|
|
20
20
|
# Compare objects before comparing counts for clear failure output.
|
21
|
-
cop.
|
22
|
-
|
21
|
+
cop.offenses.each_with_index do |offense_by_cop, index|
|
22
|
+
offense_by_mri = offenses_by_mri[index]
|
23
23
|
# Exclude column attribute since MRI does not
|
24
24
|
# output column number.
|
25
25
|
[:severity, :line, :cop_name].each do |a|
|
26
|
-
expect(
|
26
|
+
expect(offense_by_cop.send(a)).to eq(offense_by_mri.send(a))
|
27
27
|
end
|
28
28
|
end
|
29
29
|
|
30
|
-
expect(cop.
|
30
|
+
expect(cop.offenses.count).to eq(offenses_by_mri.count)
|
31
31
|
end
|
32
32
|
end
|
33
33
|
end
|
@@ -4,7 +4,7 @@ module StatementModifierHelper
|
|
4
4
|
def check_empty(cop, keyword)
|
5
5
|
inspect_source(cop, ["#{keyword} cond",
|
6
6
|
'end'])
|
7
|
-
expect(cop.
|
7
|
+
expect(cop.offenses).to be_empty
|
8
8
|
end
|
9
9
|
|
10
10
|
def check_really_short(cop, keyword)
|
@@ -13,7 +13,7 @@ module StatementModifierHelper
|
|
13
13
|
'end'])
|
14
14
|
expect(cop.messages).to eq(
|
15
15
|
["Favor modifier #{keyword} usage when you have a single-line body."])
|
16
|
-
expect(cop.
|
16
|
+
expect(cop.offenses.map { |o| o.location.source }).to eq([keyword])
|
17
17
|
end
|
18
18
|
|
19
19
|
def check_too_long(cop, keyword)
|
@@ -27,7 +27,7 @@ module StatementModifierHelper
|
|
27
27
|
" #{body}",
|
28
28
|
' end'])
|
29
29
|
|
30
|
-
expect(cop.
|
30
|
+
expect(cop.offenses).to be_empty
|
31
31
|
end
|
32
32
|
|
33
33
|
def check_short_multiline(cop, keyword)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rubocop
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.19.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bozhidar Batsov
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-03-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rainbow
|
@@ -36,14 +36,14 @@ dependencies:
|
|
36
36
|
requirements:
|
37
37
|
- - ~>
|
38
38
|
- !ruby/object:Gem::Version
|
39
|
-
version: 2.1.
|
39
|
+
version: 2.1.7
|
40
40
|
type: :runtime
|
41
41
|
prerelease: false
|
42
42
|
version_requirements: !ruby/object:Gem::Requirement
|
43
43
|
requirements:
|
44
44
|
- - ~>
|
45
45
|
- !ruby/object:Gem::Version
|
46
|
-
version: 2.1.
|
46
|
+
version: 2.1.7
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: powerpack
|
49
49
|
requirement: !ruby/object:Gem::Requirement
|
@@ -78,6 +78,20 @@ dependencies:
|
|
78
78
|
- - <
|
79
79
|
- !ruby/object:Gem::Version
|
80
80
|
version: '2'
|
81
|
+
- !ruby/object:Gem::Dependency
|
82
|
+
name: ruby-progressbar
|
83
|
+
requirement: !ruby/object:Gem::Requirement
|
84
|
+
requirements:
|
85
|
+
- - ~>
|
86
|
+
- !ruby/object:Gem::Version
|
87
|
+
version: '1.4'
|
88
|
+
type: :runtime
|
89
|
+
prerelease: false
|
90
|
+
version_requirements: !ruby/object:Gem::Requirement
|
91
|
+
requirements:
|
92
|
+
- - ~>
|
93
|
+
- !ruby/object:Gem::Version
|
94
|
+
version: '1.4'
|
81
95
|
- !ruby/object:Gem::Dependency
|
82
96
|
name: rake
|
83
97
|
requirement: !ruby/object:Gem::Requirement
|
@@ -176,6 +190,7 @@ files:
|
|
176
190
|
- config/enabled.yml
|
177
191
|
- lib/rubocop.rb
|
178
192
|
- lib/rubocop/cli.rb
|
193
|
+
- lib/rubocop/comment_config.rb
|
179
194
|
- lib/rubocop/config.rb
|
180
195
|
- lib/rubocop/config_loader.rb
|
181
196
|
- lib/rubocop/config_store.rb
|
@@ -189,6 +204,7 @@ files:
|
|
189
204
|
- lib/rubocop/cop/lint/block_alignment.rb
|
190
205
|
- lib/rubocop/cop/lint/condition_position.rb
|
191
206
|
- lib/rubocop/cop/lint/debugger.rb
|
207
|
+
- lib/rubocop/cop/lint/deprecated_class_methods.rb
|
192
208
|
- lib/rubocop/cop/lint/else_layout.rb
|
193
209
|
- lib/rubocop/cop/lint/empty_ensure.rb
|
194
210
|
- lib/rubocop/cop/lint/end_alignment.rb
|
@@ -198,11 +214,13 @@ files:
|
|
198
214
|
- lib/rubocop/cop/lint/handle_exceptions.rb
|
199
215
|
- lib/rubocop/cop/lint/invalid_character_literal.rb
|
200
216
|
- lib/rubocop/cop/lint/literal_in_condition.rb
|
217
|
+
- lib/rubocop/cop/lint/literal_in_interpolation.rb
|
201
218
|
- lib/rubocop/cop/lint/loop.rb
|
202
219
|
- lib/rubocop/cop/lint/parentheses_as_grouped_expression.rb
|
203
220
|
- lib/rubocop/cop/lint/require_parentheses.rb
|
204
221
|
- lib/rubocop/cop/lint/rescue_exception.rb
|
205
222
|
- lib/rubocop/cop/lint/shadowing_outer_local_variable.rb
|
223
|
+
- lib/rubocop/cop/lint/string_conversion_in_interpolation.rb
|
206
224
|
- lib/rubocop/cop/lint/syntax.rb
|
207
225
|
- lib/rubocop/cop/lint/unreachable_code.rb
|
208
226
|
- lib/rubocop/cop/lint/useless_assignment.rb
|
@@ -229,11 +247,13 @@ files:
|
|
229
247
|
- lib/rubocop/cop/mixin/statement_modifier.rb
|
230
248
|
- lib/rubocop/cop/mixin/string_help.rb
|
231
249
|
- lib/rubocop/cop/mixin/surrounding_space.rb
|
232
|
-
- lib/rubocop/cop/
|
250
|
+
- lib/rubocop/cop/offense.rb
|
251
|
+
- lib/rubocop/cop/rails/action_filter.rb
|
233
252
|
- lib/rubocop/cop/rails/default_scope.rb
|
234
253
|
- lib/rubocop/cop/rails/has_and_belongs_to_many.rb
|
235
254
|
- lib/rubocop/cop/rails/output.rb
|
236
255
|
- lib/rubocop/cop/rails/read_attribute.rb
|
256
|
+
- lib/rubocop/cop/rails/scope_args.rb
|
237
257
|
- lib/rubocop/cop/rails/validation.rb
|
238
258
|
- lib/rubocop/cop/style/access_modifier_indentation.rb
|
239
259
|
- lib/rubocop/cop/style/accessor_method_name.rb
|
@@ -254,6 +274,7 @@ files:
|
|
254
274
|
- lib/rubocop/cop/style/case_indentation.rb
|
255
275
|
- lib/rubocop/cop/style/character_literal.rb
|
256
276
|
- lib/rubocop/cop/style/class_and_module_camel_case.rb
|
277
|
+
- lib/rubocop/cop/style/class_and_module_children.rb
|
257
278
|
- lib/rubocop/cop/style/class_length.rb
|
258
279
|
- lib/rubocop/cop/style/class_methods.rb
|
259
280
|
- lib/rubocop/cop/style/class_vars.rb
|
@@ -265,6 +286,7 @@ files:
|
|
265
286
|
- lib/rubocop/cop/style/def_parentheses.rb
|
266
287
|
- lib/rubocop/cop/style/documentation.rb
|
267
288
|
- lib/rubocop/cop/style/dot_position.rb
|
289
|
+
- lib/rubocop/cop/style/double_negation.rb
|
268
290
|
- lib/rubocop/cop/style/empty_line_between_defs.rb
|
269
291
|
- lib/rubocop/cop/style/empty_lines.rb
|
270
292
|
- lib/rubocop/cop/style/empty_lines_around_access_modifier.rb
|
@@ -275,17 +297,20 @@ files:
|
|
275
297
|
- lib/rubocop/cop/style/end_of_line.rb
|
276
298
|
- lib/rubocop/cop/style/even_odd.rb
|
277
299
|
- lib/rubocop/cop/style/favor_join.rb
|
278
|
-
- lib/rubocop/cop/style/favor_sprintf.rb
|
279
300
|
- lib/rubocop/cop/style/favor_unless_over_negated_if.rb
|
280
301
|
- lib/rubocop/cop/style/favor_until_over_negated_while.rb
|
302
|
+
- lib/rubocop/cop/style/file_name.rb
|
281
303
|
- lib/rubocop/cop/style/final_newline.rb
|
282
304
|
- lib/rubocop/cop/style/flip_flop.rb
|
283
305
|
- lib/rubocop/cop/style/for.rb
|
306
|
+
- lib/rubocop/cop/style/format_string.rb
|
284
307
|
- lib/rubocop/cop/style/global_vars.rb
|
285
308
|
- lib/rubocop/cop/style/hash_methods.rb
|
286
309
|
- lib/rubocop/cop/style/hash_syntax.rb
|
287
310
|
- lib/rubocop/cop/style/if_unless_modifier.rb
|
288
311
|
- lib/rubocop/cop/style/if_with_semicolon.rb
|
312
|
+
- lib/rubocop/cop/style/indent_array.rb
|
313
|
+
- lib/rubocop/cop/style/indent_hash.rb
|
289
314
|
- lib/rubocop/cop/style/indentation_consistency.rb
|
290
315
|
- lib/rubocop/cop/style/indentation_width.rb
|
291
316
|
- lib/rubocop/cop/style/lambda.rb
|
@@ -310,6 +335,7 @@ files:
|
|
310
335
|
- lib/rubocop/cop/style/op_method.rb
|
311
336
|
- lib/rubocop/cop/style/parameter_lists.rb
|
312
337
|
- lib/rubocop/cop/style/parentheses_around_condition.rb
|
338
|
+
- lib/rubocop/cop/style/percent_literal_delimiters.rb
|
313
339
|
- lib/rubocop/cop/style/perl_backrefs.rb
|
314
340
|
- lib/rubocop/cop/style/predicate_name.rb
|
315
341
|
- lib/rubocop/cop/style/proc.rb
|
@@ -320,6 +346,7 @@ files:
|
|
320
346
|
- lib/rubocop/cop/style/redundant_self.rb
|
321
347
|
- lib/rubocop/cop/style/regexp_literal.rb
|
322
348
|
- lib/rubocop/cop/style/rescue_modifier.rb
|
349
|
+
- lib/rubocop/cop/style/self_assignment.rb
|
323
350
|
- lib/rubocop/cop/style/semicolon.rb
|
324
351
|
- lib/rubocop/cop/style/signal_exception.rb
|
325
352
|
- lib/rubocop/cop/style/single_line_block_params.rb
|
@@ -330,10 +357,11 @@ files:
|
|
330
357
|
- lib/rubocop/cop/style/space_after_method_name.rb
|
331
358
|
- lib/rubocop/cop/style/space_after_not.rb
|
332
359
|
- lib/rubocop/cop/style/space_after_semicolon.rb
|
333
|
-
- lib/rubocop/cop/style/space_around_block_braces.rb
|
334
360
|
- lib/rubocop/cop/style/space_around_equals_in_parameter_default.rb
|
335
361
|
- lib/rubocop/cop/style/space_around_operators.rb
|
362
|
+
- lib/rubocop/cop/style/space_before_block_braces.rb
|
336
363
|
- lib/rubocop/cop/style/space_before_modifier_keyword.rb
|
364
|
+
- lib/rubocop/cop/style/space_inside_block_braces.rb
|
337
365
|
- lib/rubocop/cop/style/space_inside_brackets.rb
|
338
366
|
- lib/rubocop/cop/style/space_inside_hash_literal_braces.rb
|
339
367
|
- lib/rubocop/cop/style/space_inside_parens.rb
|
@@ -369,8 +397,9 @@ files:
|
|
369
397
|
- lib/rubocop/formatter/emacs_style_formatter.rb
|
370
398
|
- lib/rubocop/formatter/file_list_formatter.rb
|
371
399
|
- lib/rubocop/formatter/formatter_set.rb
|
400
|
+
- lib/rubocop/formatter/fuubar_style_formatter.rb
|
372
401
|
- lib/rubocop/formatter/json_formatter.rb
|
373
|
-
- lib/rubocop/formatter/
|
402
|
+
- lib/rubocop/formatter/offense_count_formatter.rb
|
374
403
|
- lib/rubocop/formatter/progress_formatter.rb
|
375
404
|
- lib/rubocop/formatter/simple_text_formatter.rb
|
376
405
|
- lib/rubocop/options.rb
|
@@ -381,12 +410,14 @@ files:
|
|
381
410
|
- lib/rubocop/target_finder.rb
|
382
411
|
- lib/rubocop/token.rb
|
383
412
|
- lib/rubocop/version.rb
|
413
|
+
- relnotes/0.19.0.md
|
384
414
|
- rubocop-todo.yml
|
385
415
|
- rubocop.gemspec
|
386
416
|
- spec/.rubocop.yml
|
387
417
|
- spec/isolated_environment_spec.rb
|
388
418
|
- spec/project_spec.rb
|
389
419
|
- spec/rubocop/cli_spec.rb
|
420
|
+
- spec/rubocop/comment_config_spec.rb
|
390
421
|
- spec/rubocop/config_loader_spec.rb
|
391
422
|
- spec/rubocop/config_spec.rb
|
392
423
|
- spec/rubocop/config_store_spec.rb
|
@@ -399,6 +430,7 @@ files:
|
|
399
430
|
- spec/rubocop/cop/lint/block_alignment_spec.rb
|
400
431
|
- spec/rubocop/cop/lint/condition_position_spec.rb
|
401
432
|
- spec/rubocop/cop/lint/debugger_spec.rb
|
433
|
+
- spec/rubocop/cop/lint/deprecated_class_methods_spec.rb
|
402
434
|
- spec/rubocop/cop/lint/else_layout_spec.rb
|
403
435
|
- spec/rubocop/cop/lint/empty_ensure_spec.rb
|
404
436
|
- spec/rubocop/cop/lint/end_alignment_spec.rb
|
@@ -408,11 +440,13 @@ files:
|
|
408
440
|
- spec/rubocop/cop/lint/handle_exceptions_spec.rb
|
409
441
|
- spec/rubocop/cop/lint/invalid_character_literal_spec.rb
|
410
442
|
- spec/rubocop/cop/lint/literal_in_condition_spec.rb
|
443
|
+
- spec/rubocop/cop/lint/literal_in_interpolation_spec.rb
|
411
444
|
- spec/rubocop/cop/lint/loop_spec.rb
|
412
445
|
- spec/rubocop/cop/lint/parentheses_as_grouped_expression_spec.rb
|
413
446
|
- spec/rubocop/cop/lint/require_parentheses_spec.rb
|
414
447
|
- spec/rubocop/cop/lint/rescue_exception_spec.rb
|
415
448
|
- spec/rubocop/cop/lint/shadowing_outer_local_variable_spec.rb
|
449
|
+
- spec/rubocop/cop/lint/string_conversion_in_interpolation_spec.rb
|
416
450
|
- spec/rubocop/cop/lint/syntax_spec.rb
|
417
451
|
- spec/rubocop/cop/lint/unreachable_code_spec.rb
|
418
452
|
- spec/rubocop/cop/lint/useless_assignment_spec.rb
|
@@ -420,11 +454,13 @@ files:
|
|
420
454
|
- spec/rubocop/cop/lint/useless_else_without_rescue_spec.rb
|
421
455
|
- spec/rubocop/cop/lint/useless_setter_call_spec.rb
|
422
456
|
- spec/rubocop/cop/lint/void_spec.rb
|
423
|
-
- spec/rubocop/cop/
|
457
|
+
- spec/rubocop/cop/offense_spec.rb
|
458
|
+
- spec/rubocop/cop/rails/action_filter_spec.rb
|
424
459
|
- spec/rubocop/cop/rails/default_scope_spec.rb
|
425
460
|
- spec/rubocop/cop/rails/has_and_belongs_to_many_spec.rb
|
426
461
|
- spec/rubocop/cop/rails/output_spec.rb
|
427
462
|
- spec/rubocop/cop/rails/read_attribute_spec.rb
|
463
|
+
- spec/rubocop/cop/rails/scope_args_spec.rb
|
428
464
|
- spec/rubocop/cop/rails/validation_spec.rb
|
429
465
|
- spec/rubocop/cop/style/access_modifier_indentation_spec.rb
|
430
466
|
- spec/rubocop/cop/style/accessor_method_name_spec.rb
|
@@ -445,6 +481,7 @@ files:
|
|
445
481
|
- spec/rubocop/cop/style/case_indentation_spec.rb
|
446
482
|
- spec/rubocop/cop/style/character_literal_spec.rb
|
447
483
|
- spec/rubocop/cop/style/class_and_module_camel_case_spec.rb
|
484
|
+
- spec/rubocop/cop/style/class_and_module_children_spec.rb
|
448
485
|
- spec/rubocop/cop/style/class_length_spec.rb
|
449
486
|
- spec/rubocop/cop/style/class_methods_spec.rb
|
450
487
|
- spec/rubocop/cop/style/class_vars_spec.rb
|
@@ -456,6 +493,7 @@ files:
|
|
456
493
|
- spec/rubocop/cop/style/def_with_parentheses_spec.rb
|
457
494
|
- spec/rubocop/cop/style/documentation_spec.rb
|
458
495
|
- spec/rubocop/cop/style/dot_position_spec.rb
|
496
|
+
- spec/rubocop/cop/style/double_negation_spec.rb
|
459
497
|
- spec/rubocop/cop/style/empty_line_between_defs_spec.rb
|
460
498
|
- spec/rubocop/cop/style/empty_lines_around_access_modifier_spec.rb
|
461
499
|
- spec/rubocop/cop/style/empty_lines_around_body_spec.rb
|
@@ -466,17 +504,20 @@ files:
|
|
466
504
|
- spec/rubocop/cop/style/end_of_line_spec.rb
|
467
505
|
- spec/rubocop/cop/style/even_odd_spec.rb
|
468
506
|
- spec/rubocop/cop/style/favor_join_spec.rb
|
469
|
-
- spec/rubocop/cop/style/favor_sprintf_spec.rb
|
470
507
|
- spec/rubocop/cop/style/favor_unless_over_negated_if_spec.rb
|
471
508
|
- spec/rubocop/cop/style/favor_until_over_negated_while_spec.rb
|
509
|
+
- spec/rubocop/cop/style/file_name_spec.rb
|
472
510
|
- spec/rubocop/cop/style/final_newline_spec.rb
|
473
511
|
- spec/rubocop/cop/style/flip_flop_spec.rb
|
474
512
|
- spec/rubocop/cop/style/for_spec.rb
|
513
|
+
- spec/rubocop/cop/style/format_string_spec.rb
|
475
514
|
- spec/rubocop/cop/style/global_vars_spec.rb
|
476
515
|
- spec/rubocop/cop/style/hash_methods_spec.rb
|
477
516
|
- spec/rubocop/cop/style/hash_syntax_spec.rb
|
478
517
|
- spec/rubocop/cop/style/if_unless_modifier_spec.rb
|
479
518
|
- spec/rubocop/cop/style/if_with_semicolon_spec.rb
|
519
|
+
- spec/rubocop/cop/style/indent_array_spec.rb
|
520
|
+
- spec/rubocop/cop/style/indent_hash_spec.rb
|
480
521
|
- spec/rubocop/cop/style/indentation_consistency_spec.rb
|
481
522
|
- spec/rubocop/cop/style/indentation_width_spec.rb
|
482
523
|
- spec/rubocop/cop/style/lambda_call_spec.rb
|
@@ -501,6 +542,7 @@ files:
|
|
501
542
|
- spec/rubocop/cop/style/op_method_spec.rb
|
502
543
|
- spec/rubocop/cop/style/parameter_lists_spec.rb
|
503
544
|
- spec/rubocop/cop/style/parentheses_around_condition_spec.rb
|
545
|
+
- spec/rubocop/cop/style/percent_literal_delimiters_spec.rb
|
504
546
|
- spec/rubocop/cop/style/perl_backrefs_spec.rb
|
505
547
|
- spec/rubocop/cop/style/predicate_name_spec.rb
|
506
548
|
- spec/rubocop/cop/style/proc_spec.rb
|
@@ -511,6 +553,7 @@ files:
|
|
511
553
|
- spec/rubocop/cop/style/redundant_self_spec.rb
|
512
554
|
- spec/rubocop/cop/style/regexp_literal_spec.rb
|
513
555
|
- spec/rubocop/cop/style/rescue_modifier_spec.rb
|
556
|
+
- spec/rubocop/cop/style/self_assignment_spec.rb
|
514
557
|
- spec/rubocop/cop/style/semicolon_spec.rb
|
515
558
|
- spec/rubocop/cop/style/signal_exception_spec.rb
|
516
559
|
- spec/rubocop/cop/style/single_line_block_params_spec.rb
|
@@ -521,10 +564,11 @@ files:
|
|
521
564
|
- spec/rubocop/cop/style/space_after_method_name_spec.rb
|
522
565
|
- spec/rubocop/cop/style/space_after_not_spec.rb
|
523
566
|
- spec/rubocop/cop/style/space_after_semicolon_spec.rb
|
524
|
-
- spec/rubocop/cop/style/space_around_block_braces_spec.rb
|
525
567
|
- spec/rubocop/cop/style/space_around_equals_in_parameter_default_spec.rb
|
526
568
|
- spec/rubocop/cop/style/space_around_operators_spec.rb
|
569
|
+
- spec/rubocop/cop/style/space_before_block_braces_spec.rb
|
527
570
|
- spec/rubocop/cop/style/space_before_modifier_keyword_spec.rb
|
571
|
+
- spec/rubocop/cop/style/space_inside_block_braces_spec.rb
|
528
572
|
- spec/rubocop/cop/style/space_inside_brackets_spec.rb
|
529
573
|
- spec/rubocop/cop/style/space_inside_hash_literal_braces_spec.rb
|
530
574
|
- spec/rubocop/cop/style/space_inside_parens_spec.rb
|
@@ -559,8 +603,9 @@ files:
|
|
559
603
|
- spec/rubocop/formatter/emacs_style_formatter_spec.rb
|
560
604
|
- spec/rubocop/formatter/file_list_formatter_spec.rb
|
561
605
|
- spec/rubocop/formatter/formatter_set_spec.rb
|
606
|
+
- spec/rubocop/formatter/fuubar_style_formatter_spec.rb
|
562
607
|
- spec/rubocop/formatter/json_formatter_spec.rb
|
563
|
-
- spec/rubocop/formatter/
|
608
|
+
- spec/rubocop/formatter/offense_count_formatter_spec.rb
|
564
609
|
- spec/rubocop/formatter/progress_formatter_spec.rb
|
565
610
|
- spec/rubocop/formatter/simple_text_formatter_spec.rb
|
566
611
|
- spec/rubocop/options_spec.rb
|
@@ -606,6 +651,7 @@ test_files:
|
|
606
651
|
- spec/isolated_environment_spec.rb
|
607
652
|
- spec/project_spec.rb
|
608
653
|
- spec/rubocop/cli_spec.rb
|
654
|
+
- spec/rubocop/comment_config_spec.rb
|
609
655
|
- spec/rubocop/config_loader_spec.rb
|
610
656
|
- spec/rubocop/config_spec.rb
|
611
657
|
- spec/rubocop/config_store_spec.rb
|
@@ -618,6 +664,7 @@ test_files:
|
|
618
664
|
- spec/rubocop/cop/lint/block_alignment_spec.rb
|
619
665
|
- spec/rubocop/cop/lint/condition_position_spec.rb
|
620
666
|
- spec/rubocop/cop/lint/debugger_spec.rb
|
667
|
+
- spec/rubocop/cop/lint/deprecated_class_methods_spec.rb
|
621
668
|
- spec/rubocop/cop/lint/else_layout_spec.rb
|
622
669
|
- spec/rubocop/cop/lint/empty_ensure_spec.rb
|
623
670
|
- spec/rubocop/cop/lint/end_alignment_spec.rb
|
@@ -627,11 +674,13 @@ test_files:
|
|
627
674
|
- spec/rubocop/cop/lint/handle_exceptions_spec.rb
|
628
675
|
- spec/rubocop/cop/lint/invalid_character_literal_spec.rb
|
629
676
|
- spec/rubocop/cop/lint/literal_in_condition_spec.rb
|
677
|
+
- spec/rubocop/cop/lint/literal_in_interpolation_spec.rb
|
630
678
|
- spec/rubocop/cop/lint/loop_spec.rb
|
631
679
|
- spec/rubocop/cop/lint/parentheses_as_grouped_expression_spec.rb
|
632
680
|
- spec/rubocop/cop/lint/require_parentheses_spec.rb
|
633
681
|
- spec/rubocop/cop/lint/rescue_exception_spec.rb
|
634
682
|
- spec/rubocop/cop/lint/shadowing_outer_local_variable_spec.rb
|
683
|
+
- spec/rubocop/cop/lint/string_conversion_in_interpolation_spec.rb
|
635
684
|
- spec/rubocop/cop/lint/syntax_spec.rb
|
636
685
|
- spec/rubocop/cop/lint/unreachable_code_spec.rb
|
637
686
|
- spec/rubocop/cop/lint/useless_assignment_spec.rb
|
@@ -639,11 +688,13 @@ test_files:
|
|
639
688
|
- spec/rubocop/cop/lint/useless_else_without_rescue_spec.rb
|
640
689
|
- spec/rubocop/cop/lint/useless_setter_call_spec.rb
|
641
690
|
- spec/rubocop/cop/lint/void_spec.rb
|
642
|
-
- spec/rubocop/cop/
|
691
|
+
- spec/rubocop/cop/offense_spec.rb
|
692
|
+
- spec/rubocop/cop/rails/action_filter_spec.rb
|
643
693
|
- spec/rubocop/cop/rails/default_scope_spec.rb
|
644
694
|
- spec/rubocop/cop/rails/has_and_belongs_to_many_spec.rb
|
645
695
|
- spec/rubocop/cop/rails/output_spec.rb
|
646
696
|
- spec/rubocop/cop/rails/read_attribute_spec.rb
|
697
|
+
- spec/rubocop/cop/rails/scope_args_spec.rb
|
647
698
|
- spec/rubocop/cop/rails/validation_spec.rb
|
648
699
|
- spec/rubocop/cop/style/access_modifier_indentation_spec.rb
|
649
700
|
- spec/rubocop/cop/style/accessor_method_name_spec.rb
|
@@ -664,6 +715,7 @@ test_files:
|
|
664
715
|
- spec/rubocop/cop/style/case_indentation_spec.rb
|
665
716
|
- spec/rubocop/cop/style/character_literal_spec.rb
|
666
717
|
- spec/rubocop/cop/style/class_and_module_camel_case_spec.rb
|
718
|
+
- spec/rubocop/cop/style/class_and_module_children_spec.rb
|
667
719
|
- spec/rubocop/cop/style/class_length_spec.rb
|
668
720
|
- spec/rubocop/cop/style/class_methods_spec.rb
|
669
721
|
- spec/rubocop/cop/style/class_vars_spec.rb
|
@@ -675,6 +727,7 @@ test_files:
|
|
675
727
|
- spec/rubocop/cop/style/def_with_parentheses_spec.rb
|
676
728
|
- spec/rubocop/cop/style/documentation_spec.rb
|
677
729
|
- spec/rubocop/cop/style/dot_position_spec.rb
|
730
|
+
- spec/rubocop/cop/style/double_negation_spec.rb
|
678
731
|
- spec/rubocop/cop/style/empty_line_between_defs_spec.rb
|
679
732
|
- spec/rubocop/cop/style/empty_lines_around_access_modifier_spec.rb
|
680
733
|
- spec/rubocop/cop/style/empty_lines_around_body_spec.rb
|
@@ -685,17 +738,20 @@ test_files:
|
|
685
738
|
- spec/rubocop/cop/style/end_of_line_spec.rb
|
686
739
|
- spec/rubocop/cop/style/even_odd_spec.rb
|
687
740
|
- spec/rubocop/cop/style/favor_join_spec.rb
|
688
|
-
- spec/rubocop/cop/style/favor_sprintf_spec.rb
|
689
741
|
- spec/rubocop/cop/style/favor_unless_over_negated_if_spec.rb
|
690
742
|
- spec/rubocop/cop/style/favor_until_over_negated_while_spec.rb
|
743
|
+
- spec/rubocop/cop/style/file_name_spec.rb
|
691
744
|
- spec/rubocop/cop/style/final_newline_spec.rb
|
692
745
|
- spec/rubocop/cop/style/flip_flop_spec.rb
|
693
746
|
- spec/rubocop/cop/style/for_spec.rb
|
747
|
+
- spec/rubocop/cop/style/format_string_spec.rb
|
694
748
|
- spec/rubocop/cop/style/global_vars_spec.rb
|
695
749
|
- spec/rubocop/cop/style/hash_methods_spec.rb
|
696
750
|
- spec/rubocop/cop/style/hash_syntax_spec.rb
|
697
751
|
- spec/rubocop/cop/style/if_unless_modifier_spec.rb
|
698
752
|
- spec/rubocop/cop/style/if_with_semicolon_spec.rb
|
753
|
+
- spec/rubocop/cop/style/indent_array_spec.rb
|
754
|
+
- spec/rubocop/cop/style/indent_hash_spec.rb
|
699
755
|
- spec/rubocop/cop/style/indentation_consistency_spec.rb
|
700
756
|
- spec/rubocop/cop/style/indentation_width_spec.rb
|
701
757
|
- spec/rubocop/cop/style/lambda_call_spec.rb
|
@@ -720,6 +776,7 @@ test_files:
|
|
720
776
|
- spec/rubocop/cop/style/op_method_spec.rb
|
721
777
|
- spec/rubocop/cop/style/parameter_lists_spec.rb
|
722
778
|
- spec/rubocop/cop/style/parentheses_around_condition_spec.rb
|
779
|
+
- spec/rubocop/cop/style/percent_literal_delimiters_spec.rb
|
723
780
|
- spec/rubocop/cop/style/perl_backrefs_spec.rb
|
724
781
|
- spec/rubocop/cop/style/predicate_name_spec.rb
|
725
782
|
- spec/rubocop/cop/style/proc_spec.rb
|
@@ -730,6 +787,7 @@ test_files:
|
|
730
787
|
- spec/rubocop/cop/style/redundant_self_spec.rb
|
731
788
|
- spec/rubocop/cop/style/regexp_literal_spec.rb
|
732
789
|
- spec/rubocop/cop/style/rescue_modifier_spec.rb
|
790
|
+
- spec/rubocop/cop/style/self_assignment_spec.rb
|
733
791
|
- spec/rubocop/cop/style/semicolon_spec.rb
|
734
792
|
- spec/rubocop/cop/style/signal_exception_spec.rb
|
735
793
|
- spec/rubocop/cop/style/single_line_block_params_spec.rb
|
@@ -740,10 +798,11 @@ test_files:
|
|
740
798
|
- spec/rubocop/cop/style/space_after_method_name_spec.rb
|
741
799
|
- spec/rubocop/cop/style/space_after_not_spec.rb
|
742
800
|
- spec/rubocop/cop/style/space_after_semicolon_spec.rb
|
743
|
-
- spec/rubocop/cop/style/space_around_block_braces_spec.rb
|
744
801
|
- spec/rubocop/cop/style/space_around_equals_in_parameter_default_spec.rb
|
745
802
|
- spec/rubocop/cop/style/space_around_operators_spec.rb
|
803
|
+
- spec/rubocop/cop/style/space_before_block_braces_spec.rb
|
746
804
|
- spec/rubocop/cop/style/space_before_modifier_keyword_spec.rb
|
805
|
+
- spec/rubocop/cop/style/space_inside_block_braces_spec.rb
|
747
806
|
- spec/rubocop/cop/style/space_inside_brackets_spec.rb
|
748
807
|
- spec/rubocop/cop/style/space_inside_hash_literal_braces_spec.rb
|
749
808
|
- spec/rubocop/cop/style/space_inside_parens_spec.rb
|
@@ -778,8 +837,9 @@ test_files:
|
|
778
837
|
- spec/rubocop/formatter/emacs_style_formatter_spec.rb
|
779
838
|
- spec/rubocop/formatter/file_list_formatter_spec.rb
|
780
839
|
- spec/rubocop/formatter/formatter_set_spec.rb
|
840
|
+
- spec/rubocop/formatter/fuubar_style_formatter_spec.rb
|
781
841
|
- spec/rubocop/formatter/json_formatter_spec.rb
|
782
|
-
- spec/rubocop/formatter/
|
842
|
+
- spec/rubocop/formatter/offense_count_formatter_spec.rb
|
783
843
|
- spec/rubocop/formatter/progress_formatter_spec.rb
|
784
844
|
- spec/rubocop/formatter/simple_text_formatter_spec.rb
|
785
845
|
- spec/rubocop/options_spec.rb
|