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.

Files changed (398) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +1 -1
  3. data/CHANGELOG.md +65 -1
  4. data/Gemfile +0 -3
  5. data/LICENSE.txt +1 -1
  6. data/README.md +179 -77
  7. data/Rakefile +8 -0
  8. data/config/default.yml +151 -14
  9. data/config/enabled.yml +65 -8
  10. data/lib/rubocop.rb +19 -4
  11. data/lib/rubocop/cli.rb +2 -1
  12. data/lib/rubocop/comment_config.rb +97 -0
  13. data/lib/rubocop/config.rb +1 -1
  14. data/lib/rubocop/config_loader.rb +3 -2
  15. data/lib/rubocop/config_store.rb +6 -2
  16. data/lib/rubocop/cop/commissioner.rb +2 -2
  17. data/lib/rubocop/cop/cop.rb +22 -26
  18. data/lib/rubocop/cop/lint/ambiguous_operator.rb +2 -2
  19. data/lib/rubocop/cop/lint/ambiguous_regexp_literal.rb +1 -1
  20. data/lib/rubocop/cop/lint/assignment_in_condition.rb +1 -1
  21. data/lib/rubocop/cop/lint/block_alignment.rb +6 -6
  22. data/lib/rubocop/cop/lint/condition_position.rb +1 -1
  23. data/lib/rubocop/cop/lint/debugger.rb +1 -1
  24. data/lib/rubocop/cop/lint/deprecated_class_methods.rb +60 -0
  25. data/lib/rubocop/cop/lint/else_layout.rb +1 -1
  26. data/lib/rubocop/cop/lint/empty_ensure.rb +1 -1
  27. data/lib/rubocop/cop/lint/end_alignment.rb +14 -12
  28. data/lib/rubocop/cop/lint/end_in_method.rb +1 -1
  29. data/lib/rubocop/cop/lint/ensure_return.rb +1 -1
  30. data/lib/rubocop/cop/lint/eval.rb +1 -1
  31. data/lib/rubocop/cop/lint/handle_exceptions.rb +1 -1
  32. data/lib/rubocop/cop/lint/literal_in_condition.rb +13 -2
  33. data/lib/rubocop/cop/lint/literal_in_interpolation.rb +28 -0
  34. data/lib/rubocop/cop/lint/loop.rb +4 -4
  35. data/lib/rubocop/cop/lint/parentheses_as_grouped_expression.rb +1 -1
  36. data/lib/rubocop/cop/lint/require_parentheses.rb +6 -6
  37. data/lib/rubocop/cop/lint/rescue_exception.rb +1 -1
  38. data/lib/rubocop/cop/lint/shadowing_outer_local_variable.rb +2 -2
  39. data/lib/rubocop/cop/lint/string_conversion_in_interpolation.rb +30 -0
  40. data/lib/rubocop/cop/lint/syntax.rb +5 -5
  41. data/lib/rubocop/cop/lint/unreachable_code.rb +1 -1
  42. data/lib/rubocop/cop/lint/useless_assignment.rb +5 -5
  43. data/lib/rubocop/cop/lint/useless_comparison.rb +1 -1
  44. data/lib/rubocop/cop/lint/useless_setter_call.rb +1 -1
  45. data/lib/rubocop/cop/lint/void.rb +5 -5
  46. data/lib/rubocop/cop/mixin/autocorrect_alignment.rb +8 -5
  47. data/lib/rubocop/cop/mixin/code_length.rb +2 -2
  48. data/lib/rubocop/cop/mixin/configurable_enforced_style.rb +7 -7
  49. data/lib/rubocop/cop/mixin/configurable_max.rb +1 -1
  50. data/lib/rubocop/cop/mixin/configurable_naming.rb +1 -1
  51. data/lib/rubocop/cop/mixin/if_then_else.rb +1 -1
  52. data/lib/rubocop/cop/mixin/negative_conditional.rb +1 -1
  53. data/lib/rubocop/cop/mixin/parser_diagnostic.rb +2 -2
  54. data/lib/rubocop/cop/mixin/space_after_punctuation.rb +3 -2
  55. data/lib/rubocop/cop/mixin/space_inside.rb +1 -1
  56. data/lib/rubocop/cop/mixin/statement_modifier.rb +1 -0
  57. data/lib/rubocop/cop/mixin/string_help.rb +4 -4
  58. data/lib/rubocop/cop/{offence.rb → offense.rb} +7 -7
  59. data/lib/rubocop/cop/rails/action_filter.rb +73 -0
  60. data/lib/rubocop/cop/rails/default_scope.rb +1 -1
  61. data/lib/rubocop/cop/rails/has_and_belongs_to_many.rb +1 -1
  62. data/lib/rubocop/cop/rails/output.rb +1 -10
  63. data/lib/rubocop/cop/rails/read_attribute.rb +1 -1
  64. data/lib/rubocop/cop/rails/scope_args.rb +33 -0
  65. data/lib/rubocop/cop/rails/validation.rb +1 -1
  66. data/lib/rubocop/cop/style/access_modifier_indentation.rb +1 -1
  67. data/lib/rubocop/cop/style/accessor_method_name.rb +2 -2
  68. data/lib/rubocop/cop/style/alias.rb +2 -2
  69. data/lib/rubocop/cop/style/align_array.rb +1 -1
  70. data/lib/rubocop/cop/style/align_hash.rb +29 -2
  71. data/lib/rubocop/cop/style/align_parameters.rb +16 -2
  72. data/lib/rubocop/cop/style/and_or.rb +2 -2
  73. data/lib/rubocop/cop/style/ascii_comments.rb +1 -1
  74. data/lib/rubocop/cop/style/ascii_identifiers.rb +1 -1
  75. data/lib/rubocop/cop/style/attr.rb +1 -1
  76. data/lib/rubocop/cop/style/begin_block.rb +1 -1
  77. data/lib/rubocop/cop/style/block_comments.rb +1 -1
  78. data/lib/rubocop/cop/style/block_nesting.rb +1 -1
  79. data/lib/rubocop/cop/style/blocks.rb +2 -2
  80. data/lib/rubocop/cop/style/braces_around_hash_parameters.rb +2 -2
  81. data/lib/rubocop/cop/style/case_equality.rb +1 -1
  82. data/lib/rubocop/cop/style/case_indentation.rb +2 -2
  83. data/lib/rubocop/cop/style/character_literal.rb +2 -2
  84. data/lib/rubocop/cop/style/class_and_module_camel_case.rb +1 -1
  85. data/lib/rubocop/cop/style/class_and_module_children.rb +69 -0
  86. data/lib/rubocop/cop/style/class_methods.rb +1 -1
  87. data/lib/rubocop/cop/style/class_vars.rb +3 -3
  88. data/lib/rubocop/cop/style/collection_methods.rb +4 -4
  89. data/lib/rubocop/cop/style/colon_method_call.rb +1 -1
  90. data/lib/rubocop/cop/style/comment_annotation.rb +1 -1
  91. data/lib/rubocop/cop/style/constant_name.rb +1 -1
  92. data/lib/rubocop/cop/style/cyclomatic_complexity.rb +2 -2
  93. data/lib/rubocop/cop/style/def_parentheses.rb +2 -2
  94. data/lib/rubocop/cop/style/documentation.rb +1 -1
  95. data/lib/rubocop/cop/style/dot_position.rb +10 -11
  96. data/lib/rubocop/cop/style/double_negation.rb +40 -0
  97. data/lib/rubocop/cop/style/empty_line_between_defs.rb +8 -1
  98. data/lib/rubocop/cop/style/empty_lines.rb +3 -2
  99. data/lib/rubocop/cop/style/empty_lines_around_access_modifier.rb +1 -1
  100. data/lib/rubocop/cop/style/empty_lines_around_body.rb +1 -1
  101. data/lib/rubocop/cop/style/empty_literal.rb +3 -3
  102. data/lib/rubocop/cop/style/encoding.rb +1 -1
  103. data/lib/rubocop/cop/style/end_block.rb +1 -1
  104. data/lib/rubocop/cop/style/end_of_line.rb +2 -2
  105. data/lib/rubocop/cop/style/even_odd.rb +2 -2
  106. data/lib/rubocop/cop/style/favor_join.rb +1 -1
  107. data/lib/rubocop/cop/style/file_name.rb +29 -0
  108. data/lib/rubocop/cop/style/final_newline.rb +1 -1
  109. data/lib/rubocop/cop/style/flip_flop.rb +2 -2
  110. data/lib/rubocop/cop/style/for.rb +2 -2
  111. data/lib/rubocop/cop/style/format_string.rb +66 -0
  112. data/lib/rubocop/cop/style/global_vars.rb +2 -2
  113. data/lib/rubocop/cop/style/hash_methods.rb +1 -1
  114. data/lib/rubocop/cop/style/hash_syntax.rb +3 -3
  115. data/lib/rubocop/cop/style/if_unless_modifier.rb +2 -1
  116. data/lib/rubocop/cop/style/indent_array.rb +41 -0
  117. data/lib/rubocop/cop/style/indent_hash.rb +119 -0
  118. data/lib/rubocop/cop/style/indentation_consistency.rb +3 -11
  119. data/lib/rubocop/cop/style/indentation_width.rb +44 -23
  120. data/lib/rubocop/cop/style/lambda.rb +2 -2
  121. data/lib/rubocop/cop/style/lambda_call.rb +3 -3
  122. data/lib/rubocop/cop/style/leading_comment_space.rb +1 -1
  123. data/lib/rubocop/cop/style/line_end_concatenation.rb +7 -3
  124. data/lib/rubocop/cop/style/line_length.rb +2 -2
  125. data/lib/rubocop/cop/style/method_call_parentheses.rb +2 -2
  126. data/lib/rubocop/cop/style/method_called_on_do_end_block.rb +2 -2
  127. data/lib/rubocop/cop/style/method_def_parentheses.rb +9 -7
  128. data/lib/rubocop/cop/style/module_function.rb +1 -1
  129. data/lib/rubocop/cop/style/multiline_block_chain.rb +1 -1
  130. data/lib/rubocop/cop/style/multiline_ternary_operator.rb +1 -1
  131. data/lib/rubocop/cop/style/nested_ternary_operator.rb +2 -2
  132. data/lib/rubocop/cop/style/nil_comparison.rb +1 -1
  133. data/lib/rubocop/cop/style/not.rb +1 -1
  134. data/lib/rubocop/cop/style/numeric_literals.rb +5 -5
  135. data/lib/rubocop/cop/style/op_method.rb +2 -2
  136. data/lib/rubocop/cop/style/parameter_lists.rb +1 -1
  137. data/lib/rubocop/cop/style/parentheses_around_condition.rb +5 -4
  138. data/lib/rubocop/cop/style/percent_literal_delimiters.rb +143 -0
  139. data/lib/rubocop/cop/style/perl_backrefs.rb +1 -1
  140. data/lib/rubocop/cop/style/predicate_name.rb +1 -1
  141. data/lib/rubocop/cop/style/proc.rb +1 -1
  142. data/lib/rubocop/cop/style/raise_args.rb +2 -2
  143. data/lib/rubocop/cop/style/redundant_begin.rb +1 -1
  144. data/lib/rubocop/cop/style/redundant_exception.rb +1 -1
  145. data/lib/rubocop/cop/style/redundant_return.rb +1 -1
  146. data/lib/rubocop/cop/style/redundant_self.rb +2 -2
  147. data/lib/rubocop/cop/style/regexp_literal.rb +45 -19
  148. data/lib/rubocop/cop/style/rescue_modifier.rb +1 -1
  149. data/lib/rubocop/cop/style/self_assignment.rb +73 -0
  150. data/lib/rubocop/cop/style/semicolon.rb +12 -8
  151. data/lib/rubocop/cop/style/signal_exception.rb +2 -2
  152. data/lib/rubocop/cop/style/single_line_block_params.rb +1 -1
  153. data/lib/rubocop/cop/style/single_line_methods.rb +38 -1
  154. data/lib/rubocop/cop/style/space_after_colon.rb +3 -3
  155. data/lib/rubocop/cop/style/space_after_comma.rb +1 -1
  156. data/lib/rubocop/cop/style/space_after_control_keyword.rb +1 -1
  157. data/lib/rubocop/cop/style/space_after_method_name.rb +11 -3
  158. data/lib/rubocop/cop/style/space_after_not.rb +1 -1
  159. data/lib/rubocop/cop/style/space_after_semicolon.rb +1 -1
  160. data/lib/rubocop/cop/style/space_around_equals_in_parameter_default.rb +41 -6
  161. data/lib/rubocop/cop/style/space_around_operators.rb +4 -4
  162. data/lib/rubocop/cop/style/space_before_block_braces.rb +63 -0
  163. data/lib/rubocop/cop/style/space_before_modifier_keyword.rb +1 -1
  164. data/lib/rubocop/cop/style/{space_around_block_braces.rb → space_inside_block_braces.rb} +15 -24
  165. data/lib/rubocop/cop/style/space_inside_hash_literal_braces.rb +14 -7
  166. data/lib/rubocop/cop/style/special_global_vars.rb +1 -1
  167. data/lib/rubocop/cop/style/string_literals.rb +1 -1
  168. data/lib/rubocop/cop/style/symbol_array.rb +1 -1
  169. data/lib/rubocop/cop/style/tab.rb +1 -1
  170. data/lib/rubocop/cop/style/trailing_blank_lines.rb +2 -2
  171. data/lib/rubocop/cop/style/trailing_comma.rb +4 -4
  172. data/lib/rubocop/cop/style/trailing_whitespace.rb +1 -1
  173. data/lib/rubocop/cop/style/trivial_accessors.rb +2 -2
  174. data/lib/rubocop/cop/style/unless_else.rb +1 -1
  175. data/lib/rubocop/cop/style/variable_interpolation.rb +1 -1
  176. data/lib/rubocop/cop/style/when_then.rb +1 -1
  177. data/lib/rubocop/cop/style/while_until_do.rb +1 -1
  178. data/lib/rubocop/cop/style/while_until_modifier.rb +2 -1
  179. data/lib/rubocop/cop/style/word_array.rb +2 -2
  180. data/lib/rubocop/cop/team.rb +24 -7
  181. data/lib/rubocop/cop/util.rb +3 -3
  182. data/lib/rubocop/cop/variable_inspector.rb +25 -13
  183. data/lib/rubocop/cop/variable_inspector/assignment.rb +1 -1
  184. data/lib/rubocop/cop/variable_inspector/reference.rb +1 -1
  185. data/lib/rubocop/cop/variable_inspector/scope.rb +1 -1
  186. data/lib/rubocop/cop/variable_inspector/variable.rb +2 -2
  187. data/lib/rubocop/cop/variable_inspector/variable_table.rb +1 -1
  188. data/lib/rubocop/file_inspector.rb +12 -13
  189. data/lib/rubocop/formatter/base_formatter.rb +4 -4
  190. data/lib/rubocop/formatter/clang_style_formatter.rb +2 -2
  191. data/lib/rubocop/formatter/disabled_config_formatter.rb +12 -12
  192. data/lib/rubocop/formatter/emacs_style_formatter.rb +3 -2
  193. data/lib/rubocop/formatter/file_list_formatter.rb +4 -4
  194. data/lib/rubocop/formatter/formatter_set.rb +2 -1
  195. data/lib/rubocop/formatter/fuubar_style_formatter.rb +76 -0
  196. data/lib/rubocop/formatter/json_formatter.rb +17 -16
  197. data/lib/rubocop/formatter/offense_count_formatter.rb +54 -0
  198. data/lib/rubocop/formatter/progress_formatter.rb +16 -16
  199. data/lib/rubocop/formatter/simple_text_formatter.rb +25 -25
  200. data/lib/rubocop/options.rb +8 -7
  201. data/lib/rubocop/processed_source.rb +3 -2
  202. data/lib/rubocop/source_parser.rb +1 -59
  203. data/lib/rubocop/version.rb +3 -3
  204. data/relnotes/0.19.0.md +70 -0
  205. data/rubocop-todo.yml +6 -6
  206. data/rubocop.gemspec +2 -1
  207. data/spec/rubocop/cli_spec.rb +431 -268
  208. data/spec/rubocop/comment_config_spec.rb +103 -0
  209. data/spec/rubocop/config_loader_spec.rb +4 -4
  210. data/spec/rubocop/cop/commissioner_spec.rb +7 -7
  211. data/spec/rubocop/cop/cop_spec.rb +17 -17
  212. data/spec/rubocop/cop/lint/ambiguous_operator_spec.rb +16 -16
  213. data/spec/rubocop/cop/lint/ambiguous_regexp_literal_spec.rb +5 -5
  214. data/spec/rubocop/cop/lint/assignment_in_condition_spec.rb +19 -19
  215. data/spec/rubocop/cop/lint/block_alignment_spec.rb +52 -52
  216. data/spec/rubocop/cop/lint/condition_position_spec.rb +7 -7
  217. data/spec/rubocop/cop/lint/debugger_spec.rb +10 -10
  218. data/spec/rubocop/cop/lint/deprecated_class_methods_spec.rb +33 -0
  219. data/spec/rubocop/cop/lint/else_layout_spec.rb +7 -7
  220. data/spec/rubocop/cop/lint/empty_ensure_spec.rb +4 -4
  221. data/spec/rubocop/cop/lint/end_alignment_spec.rb +33 -34
  222. data/spec/rubocop/cop/lint/end_in_method_spec.rb +5 -5
  223. data/spec/rubocop/cop/lint/ensure_return_spec.rb +4 -4
  224. data/spec/rubocop/cop/lint/eval_spec.rb +8 -8
  225. data/spec/rubocop/cop/lint/handle_exceptions_spec.rb +4 -4
  226. data/spec/rubocop/cop/lint/invalid_character_literal_spec.rb +3 -3
  227. data/spec/rubocop/cop/lint/literal_in_condition_spec.rb +65 -10
  228. data/spec/rubocop/cop/lint/literal_in_interpolation_spec.rb +21 -0
  229. data/spec/rubocop/cop/lint/loop_spec.rb +6 -6
  230. data/spec/rubocop/cop/lint/parentheses_as_grouped_expression_spec.rb +14 -14
  231. data/spec/rubocop/cop/lint/require_parentheses_spec.rb +15 -15
  232. data/spec/rubocop/cop/lint/rescue_exception_spec.rb +21 -21
  233. data/spec/rubocop/cop/lint/shadowing_outer_local_variable_spec.rb +16 -16
  234. data/spec/rubocop/cop/lint/string_conversion_in_interpolation_spec.rb +27 -0
  235. data/spec/rubocop/cop/lint/syntax_spec.rb +11 -11
  236. data/spec/rubocop/cop/lint/unreachable_code_spec.rb +8 -8
  237. data/spec/rubocop/cop/lint/useless_assignment_spec.rb +207 -169
  238. data/spec/rubocop/cop/lint/useless_comparison_spec.rb +5 -5
  239. data/spec/rubocop/cop/lint/useless_else_without_rescue_spec.rb +4 -4
  240. data/spec/rubocop/cop/lint/useless_setter_call_spec.rb +17 -17
  241. data/spec/rubocop/cop/lint/void_spec.rb +8 -8
  242. data/spec/rubocop/cop/{offence_spec.rb → offense_spec.rb} +17 -17
  243. data/spec/rubocop/cop/rails/action_filter_spec.rb +69 -0
  244. data/spec/rubocop/cop/rails/default_scope_spec.rb +9 -9
  245. data/spec/rubocop/cop/rails/has_and_belongs_to_many_spec.rb +2 -2
  246. data/spec/rubocop/cop/rails/output_spec.rb +8 -18
  247. data/spec/rubocop/cop/rails/read_attribute_spec.rb +2 -2
  248. data/spec/rubocop/cop/rails/scope_args_spec.rb +25 -0
  249. data/spec/rubocop/cop/rails/validation_spec.rb +3 -3
  250. data/spec/rubocop/cop/style/access_modifier_indentation_spec.rb +38 -38
  251. data/spec/rubocop/cop/style/accessor_method_name_spec.rb +14 -14
  252. data/spec/rubocop/cop/style/alias_spec.rb +11 -11
  253. data/spec/rubocop/cop/style/align_array_spec.rb +23 -7
  254. data/spec/rubocop/cop/style/align_hash_spec.rb +111 -30
  255. data/spec/rubocop/cop/style/align_parameters_spec.rb +260 -187
  256. data/spec/rubocop/cop/style/and_or_spec.rb +6 -6
  257. data/spec/rubocop/cop/style/ascii_comments_spec.rb +3 -3
  258. data/spec/rubocop/cop/style/ascii_identifiers_spec.rb +5 -5
  259. data/spec/rubocop/cop/style/attr_spec.rb +2 -2
  260. data/spec/rubocop/cop/style/begin_block_spec.rb +2 -2
  261. data/spec/rubocop/cop/style/block_comments_spec.rb +3 -3
  262. data/spec/rubocop/cop/style/block_nesting_spec.rb +26 -26
  263. data/spec/rubocop/cop/style/blocks_spec.rb +8 -8
  264. data/spec/rubocop/cop/style/braces_around_hash_parameters_spec.rb +8 -8
  265. data/spec/rubocop/cop/style/case_equality_spec.rb +2 -2
  266. data/spec/rubocop/cop/style/case_indentation_spec.rb +21 -21
  267. data/spec/rubocop/cop/style/character_literal_spec.rb +6 -6
  268. data/spec/rubocop/cop/style/class_and_module_camel_case_spec.rb +4 -4
  269. data/spec/rubocop/cop/style/class_and_module_children_spec.rb +129 -0
  270. data/spec/rubocop/cop/style/class_length_spec.rb +9 -9
  271. data/spec/rubocop/cop/style/class_methods_spec.rb +8 -8
  272. data/spec/rubocop/cop/style/class_vars_spec.rb +4 -4
  273. data/spec/rubocop/cop/style/collection_methods_spec.rb +6 -6
  274. data/spec/rubocop/cop/style/colon_method_call_spec.rb +16 -16
  275. data/spec/rubocop/cop/style/comment_annotation_spec.rb +16 -16
  276. data/spec/rubocop/cop/style/constant_name_spec.rb +12 -12
  277. data/spec/rubocop/cop/style/cyclomatic_complexity_spec.rb +16 -16
  278. data/spec/rubocop/cop/style/def_with_parentheses_spec.rb +6 -6
  279. data/spec/rubocop/cop/style/documentation_spec.rb +14 -14
  280. data/spec/rubocop/cop/style/dot_position_spec.rb +23 -26
  281. data/spec/rubocop/cop/style/double_negation_spec.rb +22 -0
  282. data/spec/rubocop/cop/style/empty_line_between_defs_spec.rb +22 -14
  283. data/spec/rubocop/cop/style/empty_lines_around_access_modifier_spec.rb +4 -4
  284. data/spec/rubocop/cop/style/empty_lines_around_body_spec.rb +20 -20
  285. data/spec/rubocop/cop/style/empty_lines_spec.rb +17 -6
  286. data/spec/rubocop/cop/style/empty_literal_spec.rb +20 -20
  287. data/spec/rubocop/cop/style/encoding_spec.rb +5 -5
  288. data/spec/rubocop/cop/style/end_block_spec.rb +2 -2
  289. data/spec/rubocop/cop/style/end_of_line_spec.rb +4 -4
  290. data/spec/rubocop/cop/style/even_odd_spec.rb +18 -18
  291. data/spec/rubocop/cop/style/favor_join_spec.rb +7 -7
  292. data/spec/rubocop/cop/style/favor_unless_over_negated_if_spec.rb +7 -7
  293. data/spec/rubocop/cop/style/favor_until_over_negated_while_spec.rb +3 -3
  294. data/spec/rubocop/cop/style/file_name_spec.rb +71 -0
  295. data/spec/rubocop/cop/style/final_newline_spec.rb +4 -4
  296. data/spec/rubocop/cop/style/flip_flop_spec.rb +4 -4
  297. data/spec/rubocop/cop/style/for_spec.rb +13 -13
  298. data/spec/rubocop/cop/style/format_string_spec.rb +136 -0
  299. data/spec/rubocop/cop/style/global_vars_spec.rb +7 -7
  300. data/spec/rubocop/cop/style/hash_methods_spec.rb +6 -6
  301. data/spec/rubocop/cop/style/hash_syntax_spec.rb +11 -11
  302. data/spec/rubocop/cop/style/if_unless_modifier_spec.rb +29 -11
  303. data/spec/rubocop/cop/style/if_with_semicolon_spec.rb +1 -1
  304. data/spec/rubocop/cop/style/indent_array_spec.rb +136 -0
  305. data/spec/rubocop/cop/style/indent_hash_spec.rb +238 -0
  306. data/spec/rubocop/cop/style/indentation_consistency_spec.rb +69 -49
  307. data/spec/rubocop/cop/style/indentation_width_spec.rb +264 -128
  308. data/spec/rubocop/cop/style/lambda_call_spec.rb +14 -14
  309. data/spec/rubocop/cop/style/lambda_spec.rb +7 -7
  310. data/spec/rubocop/cop/style/leading_comment_space_spec.rb +15 -15
  311. data/spec/rubocop/cop/style/line_end_concatenation_spec.rb +11 -4
  312. data/spec/rubocop/cop/style/line_length_spec.rb +5 -5
  313. data/spec/rubocop/cop/style/method_call_parentheses_spec.rb +5 -5
  314. data/spec/rubocop/cop/style/method_called_on_do_end_block_spec.rb +9 -9
  315. data/spec/rubocop/cop/style/method_def_parentheses_spec.rb +19 -19
  316. data/spec/rubocop/cop/style/method_length_spec.rb +17 -17
  317. data/spec/rubocop/cop/style/method_name_spec.rb +21 -21
  318. data/spec/rubocop/cop/style/module_function_spec.rb +3 -3
  319. data/spec/rubocop/cop/style/multiline_block_chain_spec.rb +13 -13
  320. data/spec/rubocop/cop/style/multiline_if_then_spec.rb +10 -10
  321. data/spec/rubocop/cop/style/multiline_ternary_operator_spec.rb +3 -3
  322. data/spec/rubocop/cop/style/nested_ternary_operator_spec.rb +3 -3
  323. data/spec/rubocop/cop/style/nil_comparison_spec.rb +7 -7
  324. data/spec/rubocop/cop/style/not_spec.rb +6 -11
  325. data/spec/rubocop/cop/style/numeric_literals_spec.rb +8 -8
  326. data/spec/rubocop/cop/style/one_line_conditional_spec.rb +1 -1
  327. data/spec/rubocop/cop/style/op_method_spec.rb +13 -13
  328. data/spec/rubocop/cop/style/parameter_lists_spec.rb +6 -6
  329. data/spec/rubocop/cop/style/parentheses_around_condition_spec.rb +11 -10
  330. data/spec/rubocop/cop/style/percent_literal_delimiters_spec.rb +250 -0
  331. data/spec/rubocop/cop/style/perl_backrefs_spec.rb +2 -2
  332. data/spec/rubocop/cop/style/predicate_name_spec.rb +3 -3
  333. data/spec/rubocop/cop/style/proc_spec.rb +4 -4
  334. data/spec/rubocop/cop/style/raise_args_spec.rb +20 -20
  335. data/spec/rubocop/cop/style/redundant_begin_spec.rb +6 -6
  336. data/spec/rubocop/cop/style/redundant_exception_spec.rb +6 -6
  337. data/spec/rubocop/cop/style/redundant_return_spec.rb +22 -22
  338. data/spec/rubocop/cop/style/redundant_self_spec.rb +14 -14
  339. data/spec/rubocop/cop/style/regexp_literal_spec.rb +88 -67
  340. data/spec/rubocop/cop/style/rescue_modifier_spec.rb +17 -17
  341. data/spec/rubocop/cop/style/self_assignment_spec.rb +43 -0
  342. data/spec/rubocop/cop/style/semicolon_spec.rb +31 -17
  343. data/spec/rubocop/cop/style/signal_exception_spec.rb +29 -29
  344. data/spec/rubocop/cop/style/single_line_block_params_spec.rb +6 -6
  345. data/spec/rubocop/cop/style/single_line_methods_spec.rb +44 -6
  346. data/spec/rubocop/cop/style/space_after_colon_spec.rb +1 -1
  347. data/spec/rubocop/cop/style/space_after_comma_spec.rb +3 -3
  348. data/spec/rubocop/cop/style/space_after_control_keyword_spec.rb +12 -12
  349. data/spec/rubocop/cop/style/space_after_method_name_spec.rb +8 -8
  350. data/spec/rubocop/cop/style/space_after_not_spec.rb +3 -3
  351. data/spec/rubocop/cop/style/space_after_semicolon_spec.rb +1 -1
  352. data/spec/rubocop/cop/style/space_around_equals_in_parameter_default_spec.rb +63 -21
  353. data/spec/rubocop/cop/style/space_around_operators_spec.rb +24 -24
  354. data/spec/rubocop/cop/style/space_before_block_braces_spec.rb +72 -0
  355. data/spec/rubocop/cop/style/space_before_modifier_keyword_spec.rb +4 -4
  356. data/spec/rubocop/cop/style/{space_around_block_braces_spec.rb → space_inside_block_braces_spec.rb} +39 -41
  357. data/spec/rubocop/cop/style/space_inside_brackets_spec.rb +1 -1
  358. data/spec/rubocop/cop/style/space_inside_hash_literal_braces_spec.rb +15 -15
  359. data/spec/rubocop/cop/style/space_inside_parens_spec.rb +1 -1
  360. data/spec/rubocop/cop/style/special_global_vars_spec.rb +10 -10
  361. data/spec/rubocop/cop/style/string_literals_spec.rb +31 -31
  362. data/spec/rubocop/cop/style/symbol_array_spec.rb +9 -9
  363. data/spec/rubocop/cop/style/tab_spec.rb +3 -3
  364. data/spec/rubocop/cop/style/trailing_blank_lines_spec.rb +3 -3
  365. data/spec/rubocop/cop/style/trailing_comma_spec.rb +32 -32
  366. data/spec/rubocop/cop/style/trailing_whitespace_spec.rb +5 -5
  367. data/spec/rubocop/cop/style/trivial_accessors_spec.rb +39 -39
  368. data/spec/rubocop/cop/style/unless_else_spec.rb +1 -1
  369. data/spec/rubocop/cop/style/variable_interpolation_spec.rb +12 -12
  370. data/spec/rubocop/cop/style/variable_name_spec.rb +21 -21
  371. data/spec/rubocop/cop/style/when_then_spec.rb +1 -1
  372. data/spec/rubocop/cop/style/while_until_do_spec.rb +8 -8
  373. data/spec/rubocop/cop/style/while_until_modifier_spec.rb +25 -7
  374. data/spec/rubocop/cop/style/word_array_spec.rb +23 -23
  375. data/spec/rubocop/cop/team_spec.rb +14 -14
  376. data/spec/rubocop/file_inspector_spec.rb +14 -12
  377. data/spec/rubocop/formatter/base_formatter_spec.rb +19 -19
  378. data/spec/rubocop/formatter/clang_style_formatter_spec.rb +14 -14
  379. data/spec/rubocop/formatter/disabled_config_formatter_spec.rb +7 -7
  380. data/spec/rubocop/formatter/emacs_style_formatter_spec.rb +7 -7
  381. data/spec/rubocop/formatter/file_list_formatter_spec.rb +4 -4
  382. data/spec/rubocop/formatter/fuubar_style_formatter_spec.rb +129 -0
  383. data/spec/rubocop/formatter/json_formatter_spec.rb +23 -19
  384. data/spec/rubocop/formatter/offense_count_formatter_spec.rb +77 -0
  385. data/spec/rubocop/formatter/progress_formatter_spec.rb +27 -27
  386. data/spec/rubocop/formatter/simple_text_formatter_spec.rb +16 -16
  387. data/spec/rubocop/options_spec.rb +7 -8
  388. data/spec/rubocop/source_parser_spec.rb +0 -54
  389. data/spec/spec_helper.rb +11 -7
  390. data/spec/support/file_helper.rb +1 -1
  391. data/spec/support/mri_syntax_checker.rb +4 -4
  392. data/spec/support/shared_examples.rb +6 -6
  393. data/spec/support/statement_modifier_helper.rb +3 -3
  394. metadata +76 -16
  395. data/lib/rubocop/cop/style/favor_sprintf.rb +0 -26
  396. data/lib/rubocop/formatter/offence_count_formatter.rb +0 -49
  397. data/spec/rubocop/cop/style/favor_sprintf_spec.rb +0 -47
  398. 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, [offence])
15
+ formatter.report_file(file, [offense])
16
16
  end
17
17
 
18
18
  let(:file) { '/path/to/file' }
19
19
 
20
- let(:offence) do
21
- Cop::Offence.new(:convention, location,
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 offence is not corrected' do
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 offence is automatically corrected' do
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 offences detected\n")
77
+ "\n0 files inspected, no offenses detected\n")
78
78
  end
79
79
  end
80
80
 
81
- context 'when a file inspected and no offences detected' do
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 offences detected\n")
85
+ "\n1 file inspected, no offenses detected\n")
86
86
  end
87
87
  end
88
88
 
89
- context 'when a offence detected' do
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 offence detected\n")
93
+ "\n1 file inspected, 1 offense detected\n")
94
94
  end
95
95
  end
96
96
 
97
- context 'when 2 offences detected' do
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 offences detected\n")
101
+ "\n2 files inspected, 2 offenses detected\n")
102
102
  end
103
103
  end
104
104
 
105
- context 'when an offence is corrected' do
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 offence detected, 1 offence corrected\n")
109
+ "\n1 file inspected, 1 offense detected, 1 offense corrected\n")
110
110
  end
111
111
  end
112
112
 
113
- context 'when 2 offences are corrected' do
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 offence detected, 2 offences corrected\n")
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
- [f]iles
52
- [o]ffences
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 offence messages.
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 offences.
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
- '# encoding: utf-8',
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
@@ -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.config_to_allow_offences = {}
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
- class Rubocop::Cop::Cop
122
- def messages
123
- offences.sort.map(&:message)
124
- end
121
+ module Rubocop
122
+ module Cop
123
+ class Cop
124
+ def messages
125
+ offenses.sort.map(&:message)
126
+ end
125
127
 
126
- def highlights
127
- offences.sort.map { |o| o.location.source }
128
+ def highlights
129
+ offenses.sort.map { |o| o.location.source }
130
+ end
131
+ end
128
132
  end
129
133
  end
130
134
 
@@ -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.exists?(dir_path)
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 offences_for_source(source, fake_cop_name = 'Syntax', grep_message = nil)
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
- offences = check_syntax(source).each_line.map do |line|
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
- offences.compact
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::Offence.new(severity,
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.offences).to be_empty
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
- offences_by_mri = MRISyntaxChecker.offences_for_source(
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.offences.each_with_index do |offence_by_cop, index|
22
- offence_by_mri = offences_by_mri[index]
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(offence_by_cop.send(a)).to eq(offence_by_mri.send(a))
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.offences.count).to eq(offences_by_mri.count)
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.offences).to be_empty
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.offences.map { |o| o.location.source }).to eq([keyword])
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.offences).to be_empty
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.18.1
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-02-02 00:00:00.000000000 Z
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.3
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.3
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/offence.rb
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/offence_count_formatter.rb
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/offence_spec.rb
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/offence_count_formatter_spec.rb
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/offence_spec.rb
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/offence_count_formatter_spec.rb
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