rubocop 0.76.0 → 0.83.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (289) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE.txt +1 -1
  3. data/README.md +6 -6
  4. data/config/default.yml +466 -306
  5. data/lib/rubocop/ast/builder.rb +45 -42
  6. data/lib/rubocop/ast/node/array_node.rb +13 -0
  7. data/lib/rubocop/ast/node/block_node.rb +7 -1
  8. data/lib/rubocop/ast/node/case_match_node.rb +56 -0
  9. data/lib/rubocop/ast/node/def_node.rb +11 -0
  10. data/lib/rubocop/ast/node/forward_args_node.rb +18 -0
  11. data/lib/rubocop/ast/node/mixin/method_dispatch_node.rb +8 -0
  12. data/lib/rubocop/ast/node/regexp_node.rb +2 -4
  13. data/lib/rubocop/ast/node/send_node.rb +4 -0
  14. data/lib/rubocop/ast/node.rb +13 -20
  15. data/lib/rubocop/ast/traversal.rb +29 -10
  16. data/lib/rubocop/cli/command/auto_genenerate_config.rb +105 -0
  17. data/lib/rubocop/cli/command/base.rb +33 -0
  18. data/lib/rubocop/cli/command/execute_runner.rb +76 -0
  19. data/lib/rubocop/cli/command/init_dotfile.rb +45 -0
  20. data/lib/rubocop/cli/command/show_cops.rb +80 -0
  21. data/lib/rubocop/cli/command/version.rb +17 -0
  22. data/lib/rubocop/cli/command.rb +21 -0
  23. data/lib/rubocop/cli/environment.rb +21 -0
  24. data/lib/rubocop/cli.rb +20 -233
  25. data/lib/rubocop/comment_config.rb +6 -1
  26. data/lib/rubocop/config.rb +41 -11
  27. data/lib/rubocop/config_loader.rb +54 -44
  28. data/lib/rubocop/config_loader_resolver.rb +28 -1
  29. data/lib/rubocop/config_obsoletion.rb +67 -11
  30. data/lib/rubocop/config_validator.rb +74 -99
  31. data/lib/rubocop/cop/autocorrect_logic.rb +7 -4
  32. data/lib/rubocop/cop/badge.rb +5 -5
  33. data/lib/rubocop/cop/bundler/gem_comment.rb +4 -4
  34. data/lib/rubocop/cop/bundler/insecure_protocol_source.rb +3 -3
  35. data/lib/rubocop/cop/cop.rb +21 -0
  36. data/lib/rubocop/cop/corrector.rb +48 -24
  37. data/lib/rubocop/cop/correctors/alignment_corrector.rb +2 -2
  38. data/lib/rubocop/cop/correctors/condition_corrector.rb +1 -2
  39. data/lib/rubocop/cop/correctors/empty_line_corrector.rb +1 -1
  40. data/lib/rubocop/cop/correctors/lambda_literal_to_method_corrector.rb +3 -3
  41. data/lib/rubocop/cop/correctors/line_break_corrector.rb +2 -2
  42. data/lib/rubocop/cop/correctors/percent_literal_corrector.rb +1 -1
  43. data/lib/rubocop/cop/correctors/space_corrector.rb +1 -2
  44. data/lib/rubocop/cop/correctors/string_literal_corrector.rb +2 -2
  45. data/lib/rubocop/cop/gemspec/ordered_dependencies.rb +1 -1
  46. data/lib/rubocop/cop/generator/configuration_injector.rb +1 -1
  47. data/lib/rubocop/cop/generator.rb +6 -6
  48. data/lib/rubocop/cop/internal_affairs/method_name_equal.rb +59 -0
  49. data/lib/rubocop/cop/internal_affairs/offense_location_keyword.rb +1 -1
  50. data/lib/rubocop/cop/internal_affairs.rb +1 -0
  51. data/lib/rubocop/cop/layout/{align_arguments.rb → argument_alignment.rb} +1 -1
  52. data/lib/rubocop/cop/layout/array_alignment.rb +82 -0
  53. data/lib/rubocop/cop/layout/{indent_assignment.rb → assignment_indentation.rb} +1 -1
  54. data/lib/rubocop/cop/layout/block_end_newline.rb +5 -3
  55. data/lib/rubocop/cop/layout/condition_position.rb +12 -2
  56. data/lib/rubocop/cop/layout/dot_position.rb +1 -1
  57. data/lib/rubocop/cop/layout/else_alignment.rb +8 -0
  58. data/lib/rubocop/cop/layout/empty_line_between_defs.rb +2 -1
  59. data/lib/rubocop/cop/layout/empty_lines_around_attribute_accessor.rb +68 -0
  60. data/lib/rubocop/cop/layout/end_of_line.rb +2 -2
  61. data/lib/rubocop/cop/layout/extra_spacing.rb +1 -1
  62. data/lib/rubocop/cop/layout/{indent_first_argument.rb → first_argument_indentation.rb} +5 -5
  63. data/lib/rubocop/cop/layout/{indent_first_array_element.rb → first_array_element_indentation.rb} +20 -14
  64. data/lib/rubocop/cop/layout/{indent_first_hash_element.rb → first_hash_element_indentation.rb} +4 -4
  65. data/lib/rubocop/cop/layout/{indent_first_parameter.rb → first_parameter_indentation.rb} +3 -3
  66. data/lib/rubocop/cop/layout/{align_hash.rb → hash_alignment.rb} +10 -6
  67. data/lib/rubocop/cop/layout/heredoc_argument_closing_parenthesis.rb +2 -2
  68. data/lib/rubocop/cop/layout/{indent_heredoc.rb → heredoc_indentation.rb} +7 -7
  69. data/lib/rubocop/cop/layout/{tab.rb → indentation_style.rb} +48 -6
  70. data/lib/rubocop/cop/layout/leading_comment_space.rb +34 -3
  71. data/lib/rubocop/cop/layout/{leading_blank_lines.rb → leading_empty_lines.rb} +1 -1
  72. data/lib/rubocop/cop/{metrics → layout}/line_length.rb +72 -110
  73. data/lib/rubocop/cop/layout/multiline_block_layout.rb +15 -6
  74. data/lib/rubocop/cop/layout/multiline_hash_brace_layout.rb +0 -4
  75. data/lib/rubocop/cop/layout/multiline_method_argument_line_breaks.rb +1 -1
  76. data/lib/rubocop/cop/layout/multiline_method_call_indentation.rb +1 -1
  77. data/lib/rubocop/cop/layout/multiline_operation_indentation.rb +13 -4
  78. data/lib/rubocop/cop/layout/{align_parameters.rb → parameter_alignment.rb} +1 -1
  79. data/lib/rubocop/cop/layout/space_around_block_parameters.rb +3 -3
  80. data/lib/rubocop/cop/layout/space_around_keyword.rb +12 -0
  81. data/lib/rubocop/cop/layout/space_around_method_call_operator.rb +133 -0
  82. data/lib/rubocop/cop/layout/space_around_operators.rb +69 -9
  83. data/lib/rubocop/cop/layout/space_before_block_braces.rb +17 -0
  84. data/lib/rubocop/cop/layout/space_before_first_arg.rb +8 -0
  85. data/lib/rubocop/cop/layout/space_in_lambda_literal.rb +1 -1
  86. data/lib/rubocop/cop/layout/space_inside_block_braces.rb +2 -2
  87. data/lib/rubocop/cop/layout/space_inside_hash_literal_braces.rb +2 -9
  88. data/lib/rubocop/cop/layout/space_inside_range_literal.rb +2 -2
  89. data/lib/rubocop/cop/layout/{trailing_blank_lines.rb → trailing_empty_lines.rb} +1 -1
  90. data/lib/rubocop/cop/layout/trailing_whitespace.rb +2 -2
  91. data/lib/rubocop/cop/lint/ambiguous_operator.rb +38 -0
  92. data/lib/rubocop/cop/lint/ambiguous_regexp_literal.rb +14 -0
  93. data/lib/rubocop/cop/lint/boolean_symbol.rb +12 -0
  94. data/lib/rubocop/cop/lint/debugger.rb +2 -2
  95. data/lib/rubocop/cop/lint/disjunctive_assignment_in_constructor.rb +1 -1
  96. data/lib/rubocop/cop/lint/{duplicated_key.rb → duplicate_hash_key.rb} +1 -1
  97. data/lib/rubocop/cop/lint/duplicate_methods.rb +1 -5
  98. data/lib/rubocop/cop/lint/each_with_object_argument.rb +1 -1
  99. data/lib/rubocop/cop/lint/empty_when.rb +29 -6
  100. data/lib/rubocop/cop/lint/ensure_return.rb +18 -1
  101. data/lib/rubocop/cop/lint/erb_new_arguments.rb +1 -1
  102. data/lib/rubocop/cop/lint/implicit_string_concatenation.rb +1 -1
  103. data/lib/rubocop/cop/lint/ineffective_access_modifier.rb +1 -1
  104. data/lib/rubocop/cop/lint/inherit_exception.rb +1 -1
  105. data/lib/rubocop/cop/lint/interpolation_check.rb +1 -1
  106. data/lib/rubocop/cop/lint/literal_as_condition.rb +10 -13
  107. data/lib/rubocop/cop/lint/literal_in_interpolation.rb +1 -1
  108. data/lib/rubocop/cop/lint/loop.rb +6 -4
  109. data/lib/rubocop/cop/lint/{multiple_compare.rb → multiple_comparison.rb} +2 -2
  110. data/lib/rubocop/cop/lint/nested_method_definition.rb +2 -2
  111. data/lib/rubocop/cop/lint/non_deterministic_require_order.rb +89 -0
  112. data/lib/rubocop/cop/lint/number_conversion.rb +1 -1
  113. data/lib/rubocop/cop/lint/parentheses_as_grouped_expression.rb +21 -9
  114. data/lib/rubocop/cop/lint/percent_string_array.rb +2 -2
  115. data/lib/rubocop/cop/lint/raise_exception.rb +75 -0
  116. data/lib/rubocop/cop/lint/redundant_cop_disable_directive.rb +4 -9
  117. data/lib/rubocop/cop/lint/redundant_cop_enable_directive.rb +13 -8
  118. data/lib/rubocop/cop/lint/redundant_splat_expansion.rb +1 -1
  119. data/lib/rubocop/cop/lint/{string_conversion_in_interpolation.rb → redundant_string_coercion.rb} +2 -2
  120. data/lib/rubocop/cop/lint/redundant_with_index.rb +2 -2
  121. data/lib/rubocop/cop/lint/redundant_with_object.rb +2 -2
  122. data/lib/rubocop/cop/lint/safe_navigation_chain.rb +1 -1
  123. data/lib/rubocop/cop/lint/struct_new_override.rb +58 -0
  124. data/lib/rubocop/cop/lint/{handle_exceptions.rb → suppressed_exception.rb} +13 -29
  125. data/lib/rubocop/cop/lint/unified_integer.rb +0 -2
  126. data/lib/rubocop/cop/lint/unused_method_argument.rb +32 -6
  127. data/lib/rubocop/cop/lint/uri_regexp.rb +4 -4
  128. data/lib/rubocop/cop/lint/useless_access_modifier.rb +69 -23
  129. data/lib/rubocop/cop/lint/useless_assignment.rb +3 -2
  130. data/lib/rubocop/cop/lint/useless_else_without_rescue.rb +5 -0
  131. data/lib/rubocop/cop/lint/useless_setter_call.rb +5 -1
  132. data/lib/rubocop/cop/metrics/method_length.rb +1 -1
  133. data/lib/rubocop/cop/migration/department_name.rb +47 -6
  134. data/lib/rubocop/cop/mixin/alignment.rb +1 -1
  135. data/lib/rubocop/cop/mixin/configurable_enforced_style.rb +4 -0
  136. data/lib/rubocop/cop/mixin/end_keyword_alignment.rb +6 -1
  137. data/lib/rubocop/cop/mixin/frozen_string_literal.rb +14 -5
  138. data/lib/rubocop/cop/mixin/{hash_alignment.rb → hash_alignment_styles.rb} +1 -1
  139. data/lib/rubocop/cop/mixin/hash_transform_method.rb +178 -0
  140. data/lib/rubocop/cop/mixin/line_length_help.rb +89 -0
  141. data/lib/rubocop/cop/mixin/method_complexity.rb +5 -0
  142. data/lib/rubocop/cop/mixin/nil_methods.rb +4 -4
  143. data/lib/rubocop/cop/mixin/parser_diagnostic.rb +1 -1
  144. data/lib/rubocop/cop/mixin/rational_literal.rb +18 -0
  145. data/lib/rubocop/cop/mixin/statement_modifier.rb +9 -24
  146. data/lib/rubocop/cop/mixin/target_ruby_version.rb +5 -1
  147. data/lib/rubocop/cop/mixin/trailing_comma.rb +9 -13
  148. data/lib/rubocop/cop/naming/{uncommunicative_block_param_name.rb → block_parameter_name.rb} +3 -3
  149. data/lib/rubocop/cop/naming/class_and_module_camel_case.rb +1 -1
  150. data/lib/rubocop/cop/naming/constant_name.rb +2 -1
  151. data/lib/rubocop/cop/naming/heredoc_delimiter_naming.rb +6 -6
  152. data/lib/rubocop/cop/naming/memoized_instance_variable_name.rb +1 -1
  153. data/lib/rubocop/cop/naming/method_name.rb +26 -0
  154. data/lib/rubocop/cop/naming/{uncommunicative_method_param_name.rb → method_parameter_name.rb} +4 -4
  155. data/lib/rubocop/cop/naming/predicate_name.rb +6 -6
  156. data/lib/rubocop/cop/naming/rescued_exceptions_variable_name.rb +1 -1
  157. data/lib/rubocop/cop/offense.rb +11 -0
  158. data/lib/rubocop/cop/registry.rb +15 -3
  159. data/lib/rubocop/cop/style/access_modifier_declarations.rb +26 -6
  160. data/lib/rubocop/cop/style/alias.rb +5 -5
  161. data/lib/rubocop/cop/style/and_or.rb +5 -6
  162. data/lib/rubocop/cop/style/array_join.rb +2 -2
  163. data/lib/rubocop/cop/style/attr.rb +8 -0
  164. data/lib/rubocop/cop/style/block_delimiters.rb +60 -1
  165. data/lib/rubocop/cop/style/case_equality.rb +24 -1
  166. data/lib/rubocop/cop/style/character_literal.rb +2 -2
  167. data/lib/rubocop/cop/style/collection_methods.rb +2 -0
  168. data/lib/rubocop/cop/style/conditional_assignment.rb +10 -10
  169. data/lib/rubocop/cop/style/copyright.rb +1 -1
  170. data/lib/rubocop/cop/style/dir.rb +1 -1
  171. data/lib/rubocop/cop/style/disable_cops_within_source_code_directive.rb +49 -0
  172. data/lib/rubocop/cop/style/documentation.rb +43 -5
  173. data/lib/rubocop/cop/style/double_cop_disable_directive.rb +1 -1
  174. data/lib/rubocop/cop/style/each_for_simple_loop.rb +1 -1
  175. data/lib/rubocop/cop/style/each_with_object.rb +3 -3
  176. data/lib/rubocop/cop/style/empty_method.rb +1 -5
  177. data/lib/rubocop/cop/style/end_block.rb +6 -0
  178. data/lib/rubocop/cop/style/eval_with_location.rb +1 -1
  179. data/lib/rubocop/cop/style/even_odd.rb +2 -2
  180. data/lib/rubocop/cop/style/expand_path_arguments.rb +3 -3
  181. data/lib/rubocop/cop/style/exponential_notation.rb +119 -0
  182. data/lib/rubocop/cop/style/format_string.rb +2 -2
  183. data/lib/rubocop/cop/style/frozen_string_literal_comment.rb +89 -11
  184. data/lib/rubocop/cop/style/guard_clause.rb +28 -4
  185. data/lib/rubocop/cop/style/hash_each_methods.rb +89 -0
  186. data/lib/rubocop/cop/style/hash_syntax.rb +3 -5
  187. data/lib/rubocop/cop/style/hash_transform_keys.rb +83 -0
  188. data/lib/rubocop/cop/style/hash_transform_values.rb +80 -0
  189. data/lib/rubocop/cop/style/if_unless_modifier.rb +61 -6
  190. data/lib/rubocop/cop/style/if_with_semicolon.rb +16 -0
  191. data/lib/rubocop/cop/style/infinite_loop.rb +1 -1
  192. data/lib/rubocop/cop/style/inverse_methods.rb +9 -5
  193. data/lib/rubocop/cop/style/ip_addresses.rb +4 -4
  194. data/lib/rubocop/cop/style/lambda.rb +3 -2
  195. data/lib/rubocop/cop/style/lambda_call.rb +1 -21
  196. data/lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb +169 -0
  197. data/lib/rubocop/cop/style/method_call_with_args_parentheses/require_parentheses.rb +54 -0
  198. data/lib/rubocop/cop/style/method_call_with_args_parentheses.rb +7 -205
  199. data/lib/rubocop/cop/style/mixin_grouping.rb +2 -2
  200. data/lib/rubocop/cop/style/module_function.rb +58 -12
  201. data/lib/rubocop/cop/style/multiline_if_modifier.rb +1 -1
  202. data/lib/rubocop/cop/style/multiline_memoization.rb +1 -1
  203. data/lib/rubocop/cop/style/multiline_method_signature.rb +1 -1
  204. data/lib/rubocop/cop/style/multiline_when_then.rb +21 -2
  205. data/lib/rubocop/cop/style/mutable_constant.rb +2 -4
  206. data/lib/rubocop/cop/style/nested_parenthesized_calls.rb +9 -9
  207. data/lib/rubocop/cop/style/next.rb +7 -7
  208. data/lib/rubocop/cop/style/nil_comparison.rb +1 -1
  209. data/lib/rubocop/cop/style/non_nil_check.rb +4 -4
  210. data/lib/rubocop/cop/style/not.rb +1 -1
  211. data/lib/rubocop/cop/style/numeric_literal_prefix.rb +1 -1
  212. data/lib/rubocop/cop/style/numeric_literals.rb +8 -4
  213. data/lib/rubocop/cop/style/numeric_predicate.rb +5 -4
  214. data/lib/rubocop/cop/style/one_line_conditional.rb +4 -3
  215. data/lib/rubocop/cop/style/option_hash.rb +3 -3
  216. data/lib/rubocop/cop/style/optional_arguments.rb +1 -1
  217. data/lib/rubocop/cop/style/or_assignment.rb +4 -3
  218. data/lib/rubocop/cop/style/percent_literal_delimiters.rb +7 -7
  219. data/lib/rubocop/cop/style/percent_q_literals.rb +1 -1
  220. data/lib/rubocop/cop/style/perl_backrefs.rb +2 -2
  221. data/lib/rubocop/cop/style/proc.rb +1 -1
  222. data/lib/rubocop/cop/style/raise_args.rb +1 -1
  223. data/lib/rubocop/cop/style/random_with_offset.rb +3 -3
  224. data/lib/rubocop/cop/style/redundant_condition.rb +18 -6
  225. data/lib/rubocop/cop/style/redundant_conditional.rb +1 -1
  226. data/lib/rubocop/cop/style/redundant_exception.rb +3 -3
  227. data/lib/rubocop/cop/style/redundant_interpolation.rb +2 -2
  228. data/lib/rubocop/cop/style/redundant_parentheses.rb +3 -3
  229. data/lib/rubocop/cop/style/redundant_percent_q.rb +2 -2
  230. data/lib/rubocop/cop/style/redundant_return.rb +7 -15
  231. data/lib/rubocop/cop/style/redundant_self.rb +1 -1
  232. data/lib/rubocop/cop/style/redundant_sort.rb +3 -3
  233. data/lib/rubocop/cop/style/rescue_modifier.rb +1 -1
  234. data/lib/rubocop/cop/style/return_nil.rb +1 -1
  235. data/lib/rubocop/cop/style/safe_navigation.rb +1 -1
  236. data/lib/rubocop/cop/style/self_assignment.rb +1 -1
  237. data/lib/rubocop/cop/style/slicing_with_range.rb +39 -0
  238. data/lib/rubocop/cop/style/special_global_vars.rb +1 -1
  239. data/lib/rubocop/cop/style/stabby_lambda_parentheses.rb +1 -4
  240. data/lib/rubocop/cop/style/string_hash_keys.rb +1 -1
  241. data/lib/rubocop/cop/style/symbol_array.rb +3 -3
  242. data/lib/rubocop/cop/style/symbol_literal.rb +2 -2
  243. data/lib/rubocop/cop/style/ternary_parentheses.rb +2 -3
  244. data/lib/rubocop/cop/style/trailing_comma_in_arguments.rb +35 -22
  245. data/lib/rubocop/cop/style/trailing_comma_in_array_literal.rb +41 -0
  246. data/lib/rubocop/cop/style/trailing_comma_in_block_args.rb +88 -0
  247. data/lib/rubocop/cop/style/trailing_comma_in_hash_literal.rb +44 -0
  248. data/lib/rubocop/cop/style/trailing_underscore_variable.rb +7 -1
  249. data/lib/rubocop/cop/style/trivial_accessors.rb +6 -6
  250. data/lib/rubocop/cop/style/unpack_first.rb +0 -4
  251. data/lib/rubocop/cop/style/variable_interpolation.rb +1 -1
  252. data/lib/rubocop/cop/style/while_until_modifier.rb +2 -2
  253. data/lib/rubocop/cop/style/word_array.rb +1 -1
  254. data/lib/rubocop/cop/style/yoda_condition.rb +16 -1
  255. data/lib/rubocop/cop/style/zero_length_predicate.rb +1 -1
  256. data/lib/rubocop/cop/team.rb +5 -0
  257. data/lib/rubocop/cop/util.rb +24 -0
  258. data/lib/rubocop/cop/variable_force/assignment.rb +1 -0
  259. data/lib/rubocop/cop/variable_force/scope.rb +1 -0
  260. data/lib/rubocop/cop/variable_force/variable.rb +1 -0
  261. data/lib/rubocop/cop/variable_force.rb +4 -1
  262. data/lib/rubocop/formatter/base_formatter.rb +2 -2
  263. data/lib/rubocop/formatter/clang_style_formatter.rb +0 -2
  264. data/lib/rubocop/formatter/formatter_set.rb +1 -1
  265. data/lib/rubocop/formatter/json_formatter.rb +6 -5
  266. data/lib/rubocop/formatter/junit_formatter.rb +74 -0
  267. data/lib/rubocop/formatter/pacman_formatter.rb +1 -1
  268. data/lib/rubocop/formatter/tap_formatter.rb +0 -2
  269. data/lib/rubocop/name_similarity.rb +12 -9
  270. data/lib/rubocop/node_pattern.rb +97 -11
  271. data/lib/rubocop/options.rb +26 -13
  272. data/lib/rubocop/processed_source.rb +1 -4
  273. data/lib/rubocop/rake_task.rb +1 -0
  274. data/lib/rubocop/result_cache.rb +23 -7
  275. data/lib/rubocop/rspec/cop_helper.rb +1 -1
  276. data/lib/rubocop/rspec/expect_offense.rb +1 -1
  277. data/lib/rubocop/rspec/shared_contexts.rb +5 -4
  278. data/lib/rubocop/runner.rb +25 -4
  279. data/lib/rubocop/target_finder.rb +6 -4
  280. data/lib/rubocop/target_ruby.rb +151 -0
  281. data/lib/rubocop/version.rb +1 -1
  282. data/lib/rubocop.rb +53 -27
  283. metadata +73 -48
  284. data/lib/rubocop/cop/layout/align_array.rb +0 -39
  285. data/lib/rubocop/cop/lint/end_in_method.rb +0 -40
  286. data/lib/rubocop/cop/mixin/safe_mode.rb +0 -24
  287. data/lib/rubocop/cop/style/braces_around_hash_parameters.rb +0 -209
  288. data/lib/rubocop/formatter/disabled_lines_formatter.rb +0 -57
  289. data/lib/rubocop/string_util.rb +0 -14
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubocop
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.76.0
4
+ version: 0.83.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bozhidar Batsov
@@ -10,22 +10,8 @@ authors:
10
10
  autorequire:
11
11
  bindir: exe
12
12
  cert_chain: []
13
- date: 2019-10-28 00:00:00.000000000 Z
13
+ date: 2020-05-11 00:00:00.000000000 Z
14
14
  dependencies:
15
- - !ruby/object:Gem::Dependency
16
- name: jaro_winkler
17
- requirement: !ruby/object:Gem::Requirement
18
- requirements:
19
- - - "~>"
20
- - !ruby/object:Gem::Version
21
- version: 1.5.1
22
- type: :runtime
23
- prerelease: false
24
- version_requirements: !ruby/object:Gem::Requirement
25
- requirements:
26
- - - "~>"
27
- - !ruby/object:Gem::Version
28
- version: 1.5.1
29
15
  - !ruby/object:Gem::Dependency
30
16
  name: parallel
31
17
  requirement: !ruby/object:Gem::Requirement
@@ -46,14 +32,14 @@ dependencies:
46
32
  requirements:
47
33
  - - ">="
48
34
  - !ruby/object:Gem::Version
49
- version: '2.6'
35
+ version: 2.7.0.1
50
36
  type: :runtime
51
37
  prerelease: false
52
38
  version_requirements: !ruby/object:Gem::Requirement
53
39
  requirements:
54
40
  - - ">="
55
41
  - !ruby/object:Gem::Version
56
- version: '2.6'
42
+ version: 2.7.0.1
57
43
  - !ruby/object:Gem::Dependency
58
44
  name: rainbow
59
45
  requirement: !ruby/object:Gem::Requirement
@@ -74,6 +60,20 @@ dependencies:
74
60
  - - "<"
75
61
  - !ruby/object:Gem::Version
76
62
  version: '4.0'
63
+ - !ruby/object:Gem::Dependency
64
+ name: rexml
65
+ requirement: !ruby/object:Gem::Requirement
66
+ requirements:
67
+ - - ">="
68
+ - !ruby/object:Gem::Version
69
+ version: '0'
70
+ type: :runtime
71
+ prerelease: false
72
+ version_requirements: !ruby/object:Gem::Requirement
73
+ requirements:
74
+ - - ">="
75
+ - !ruby/object:Gem::Version
76
+ version: '0'
77
77
  - !ruby/object:Gem::Dependency
78
78
  name: ruby-progressbar
79
79
  requirement: !ruby/object:Gem::Requirement
@@ -97,7 +97,7 @@ dependencies:
97
97
  version: 1.4.0
98
98
  - - "<"
99
99
  - !ruby/object:Gem::Version
100
- version: '1.7'
100
+ version: '2.0'
101
101
  type: :runtime
102
102
  prerelease: false
103
103
  version_requirements: !ruby/object:Gem::Requirement
@@ -107,7 +107,7 @@ dependencies:
107
107
  version: 1.4.0
108
108
  - - "<"
109
109
  - !ruby/object:Gem::Version
110
- version: '1.7'
110
+ version: '2.0'
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: bundler
113
113
  requirement: !ruby/object:Gem::Requirement
@@ -156,6 +156,7 @@ files:
156
156
  - lib/rubocop/ast/node/array_node.rb
157
157
  - lib/rubocop/ast/node/block_node.rb
158
158
  - lib/rubocop/ast/node/break_node.rb
159
+ - lib/rubocop/ast/node/case_match_node.rb
159
160
  - lib/rubocop/ast/node/case_node.rb
160
161
  - lib/rubocop/ast/node/class_node.rb
161
162
  - lib/rubocop/ast/node/def_node.rb
@@ -163,6 +164,7 @@ files:
163
164
  - lib/rubocop/ast/node/ensure_node.rb
164
165
  - lib/rubocop/ast/node/float_node.rb
165
166
  - lib/rubocop/ast/node/for_node.rb
167
+ - lib/rubocop/ast/node/forward_args_node.rb
166
168
  - lib/rubocop/ast/node/hash_node.rb
167
169
  - lib/rubocop/ast/node/if_node.rb
168
170
  - lib/rubocop/ast/node/int_node.rb
@@ -199,6 +201,14 @@ files:
199
201
  - lib/rubocop/ast/traversal.rb
200
202
  - lib/rubocop/cached_data.rb
201
203
  - lib/rubocop/cli.rb
204
+ - lib/rubocop/cli/command.rb
205
+ - lib/rubocop/cli/command/auto_genenerate_config.rb
206
+ - lib/rubocop/cli/command/base.rb
207
+ - lib/rubocop/cli/command/execute_runner.rb
208
+ - lib/rubocop/cli/command/init_dotfile.rb
209
+ - lib/rubocop/cli/command/show_cops.rb
210
+ - lib/rubocop/cli/command/version.rb
211
+ - lib/rubocop/cli/environment.rb
202
212
  - lib/rubocop/comment_config.rb
203
213
  - lib/rubocop/config.rb
204
214
  - lib/rubocop/config_loader.rb
@@ -240,6 +250,7 @@ files:
240
250
  - lib/rubocop/cop/generator/require_file_injector.rb
241
251
  - lib/rubocop/cop/ignored_node.rb
242
252
  - lib/rubocop/cop/internal_affairs.rb
253
+ - lib/rubocop/cop/internal_affairs/method_name_equal.rb
243
254
  - lib/rubocop/cop/internal_affairs/node_destructuring.rb
244
255
  - lib/rubocop/cop/internal_affairs/node_type_predicate.rb
245
256
  - lib/rubocop/cop/internal_affairs/offense_location_keyword.rb
@@ -247,10 +258,9 @@ files:
247
258
  - lib/rubocop/cop/internal_affairs/redundant_message_argument.rb
248
259
  - lib/rubocop/cop/internal_affairs/useless_message_assertion.rb
249
260
  - lib/rubocop/cop/layout/access_modifier_indentation.rb
250
- - lib/rubocop/cop/layout/align_arguments.rb
251
- - lib/rubocop/cop/layout/align_array.rb
252
- - lib/rubocop/cop/layout/align_hash.rb
253
- - lib/rubocop/cop/layout/align_parameters.rb
261
+ - lib/rubocop/cop/layout/argument_alignment.rb
262
+ - lib/rubocop/cop/layout/array_alignment.rb
263
+ - lib/rubocop/cop/layout/assignment_indentation.rb
254
264
  - lib/rubocop/cop/layout/block_alignment.rb
255
265
  - lib/rubocop/cop/layout/block_end_newline.rb
256
266
  - lib/rubocop/cop/layout/case_indentation.rb
@@ -269,6 +279,7 @@ files:
269
279
  - lib/rubocop/cop/layout/empty_lines.rb
270
280
  - lib/rubocop/cop/layout/empty_lines_around_access_modifier.rb
271
281
  - lib/rubocop/cop/layout/empty_lines_around_arguments.rb
282
+ - lib/rubocop/cop/layout/empty_lines_around_attribute_accessor.rb
272
283
  - lib/rubocop/cop/layout/empty_lines_around_begin_body.rb
273
284
  - lib/rubocop/cop/layout/empty_lines_around_block_body.rb
274
285
  - lib/rubocop/cop/layout/empty_lines_around_class_body.rb
@@ -278,22 +289,24 @@ files:
278
289
  - lib/rubocop/cop/layout/end_alignment.rb
279
290
  - lib/rubocop/cop/layout/end_of_line.rb
280
291
  - lib/rubocop/cop/layout/extra_spacing.rb
292
+ - lib/rubocop/cop/layout/first_argument_indentation.rb
293
+ - lib/rubocop/cop/layout/first_array_element_indentation.rb
281
294
  - lib/rubocop/cop/layout/first_array_element_line_break.rb
295
+ - lib/rubocop/cop/layout/first_hash_element_indentation.rb
282
296
  - lib/rubocop/cop/layout/first_hash_element_line_break.rb
283
297
  - lib/rubocop/cop/layout/first_method_argument_line_break.rb
284
298
  - lib/rubocop/cop/layout/first_method_parameter_line_break.rb
299
+ - lib/rubocop/cop/layout/first_parameter_indentation.rb
300
+ - lib/rubocop/cop/layout/hash_alignment.rb
285
301
  - lib/rubocop/cop/layout/heredoc_argument_closing_parenthesis.rb
286
- - lib/rubocop/cop/layout/indent_assignment.rb
287
- - lib/rubocop/cop/layout/indent_first_argument.rb
288
- - lib/rubocop/cop/layout/indent_first_array_element.rb
289
- - lib/rubocop/cop/layout/indent_first_hash_element.rb
290
- - lib/rubocop/cop/layout/indent_first_parameter.rb
291
- - lib/rubocop/cop/layout/indent_heredoc.rb
302
+ - lib/rubocop/cop/layout/heredoc_indentation.rb
292
303
  - lib/rubocop/cop/layout/indentation_consistency.rb
304
+ - lib/rubocop/cop/layout/indentation_style.rb
293
305
  - lib/rubocop/cop/layout/indentation_width.rb
294
306
  - lib/rubocop/cop/layout/initial_indentation.rb
295
- - lib/rubocop/cop/layout/leading_blank_lines.rb
296
307
  - lib/rubocop/cop/layout/leading_comment_space.rb
308
+ - lib/rubocop/cop/layout/leading_empty_lines.rb
309
+ - lib/rubocop/cop/layout/line_length.rb
297
310
  - lib/rubocop/cop/layout/multiline_array_brace_layout.rb
298
311
  - lib/rubocop/cop/layout/multiline_array_line_breaks.rb
299
312
  - lib/rubocop/cop/layout/multiline_assignment_layout.rb
@@ -305,6 +318,7 @@ files:
305
318
  - lib/rubocop/cop/layout/multiline_method_call_indentation.rb
306
319
  - lib/rubocop/cop/layout/multiline_method_definition_brace_layout.rb
307
320
  - lib/rubocop/cop/layout/multiline_operation_indentation.rb
321
+ - lib/rubocop/cop/layout/parameter_alignment.rb
308
322
  - lib/rubocop/cop/layout/rescue_ensure_alignment.rb
309
323
  - lib/rubocop/cop/layout/space_after_colon.rb
310
324
  - lib/rubocop/cop/layout/space_after_comma.rb
@@ -314,6 +328,7 @@ files:
314
328
  - lib/rubocop/cop/layout/space_around_block_parameters.rb
315
329
  - lib/rubocop/cop/layout/space_around_equals_in_parameter_default.rb
316
330
  - lib/rubocop/cop/layout/space_around_keyword.rb
331
+ - lib/rubocop/cop/layout/space_around_method_call_operator.rb
317
332
  - lib/rubocop/cop/layout/space_around_operators.rb
318
333
  - lib/rubocop/cop/layout/space_before_block_braces.rb
319
334
  - lib/rubocop/cop/layout/space_before_comma.rb
@@ -330,8 +345,7 @@ files:
330
345
  - lib/rubocop/cop/layout/space_inside_range_literal.rb
331
346
  - lib/rubocop/cop/layout/space_inside_reference_brackets.rb
332
347
  - lib/rubocop/cop/layout/space_inside_string_interpolation.rb
333
- - lib/rubocop/cop/layout/tab.rb
334
- - lib/rubocop/cop/layout/trailing_blank_lines.rb
348
+ - lib/rubocop/cop/layout/trailing_empty_lines.rb
335
349
  - lib/rubocop/cop/layout/trailing_whitespace.rb
336
350
  - lib/rubocop/cop/lint/ambiguous_block_association.rb
337
351
  - lib/rubocop/cop/lint/ambiguous_operator.rb
@@ -344,21 +358,19 @@ files:
344
358
  - lib/rubocop/cop/lint/deprecated_class_methods.rb
345
359
  - lib/rubocop/cop/lint/disjunctive_assignment_in_constructor.rb
346
360
  - lib/rubocop/cop/lint/duplicate_case_condition.rb
361
+ - lib/rubocop/cop/lint/duplicate_hash_key.rb
347
362
  - lib/rubocop/cop/lint/duplicate_methods.rb
348
- - lib/rubocop/cop/lint/duplicated_key.rb
349
363
  - lib/rubocop/cop/lint/each_with_object_argument.rb
350
364
  - lib/rubocop/cop/lint/else_layout.rb
351
365
  - lib/rubocop/cop/lint/empty_ensure.rb
352
366
  - lib/rubocop/cop/lint/empty_expression.rb
353
367
  - lib/rubocop/cop/lint/empty_interpolation.rb
354
368
  - lib/rubocop/cop/lint/empty_when.rb
355
- - lib/rubocop/cop/lint/end_in_method.rb
356
369
  - lib/rubocop/cop/lint/ensure_return.rb
357
370
  - lib/rubocop/cop/lint/erb_new_arguments.rb
358
371
  - lib/rubocop/cop/lint/flip_flop.rb
359
372
  - lib/rubocop/cop/lint/float_out_of_range.rb
360
373
  - lib/rubocop/cop/lint/format_parameter_mismatch.rb
361
- - lib/rubocop/cop/lint/handle_exceptions.rb
362
374
  - lib/rubocop/cop/lint/heredoc_method_call_position.rb
363
375
  - lib/rubocop/cop/lint/implicit_string_concatenation.rb
364
376
  - lib/rubocop/cop/lint/ineffective_access_modifier.rb
@@ -368,21 +380,24 @@ files:
368
380
  - lib/rubocop/cop/lint/literal_in_interpolation.rb
369
381
  - lib/rubocop/cop/lint/loop.rb
370
382
  - lib/rubocop/cop/lint/missing_cop_enable_directive.rb
371
- - lib/rubocop/cop/lint/multiple_compare.rb
383
+ - lib/rubocop/cop/lint/multiple_comparison.rb
372
384
  - lib/rubocop/cop/lint/nested_method_definition.rb
373
385
  - lib/rubocop/cop/lint/nested_percent_literal.rb
374
386
  - lib/rubocop/cop/lint/next_without_accumulator.rb
387
+ - lib/rubocop/cop/lint/non_deterministic_require_order.rb
375
388
  - lib/rubocop/cop/lint/non_local_exit_from_iterator.rb
376
389
  - lib/rubocop/cop/lint/number_conversion.rb
377
390
  - lib/rubocop/cop/lint/ordered_magic_comments.rb
378
391
  - lib/rubocop/cop/lint/parentheses_as_grouped_expression.rb
379
392
  - lib/rubocop/cop/lint/percent_string_array.rb
380
393
  - lib/rubocop/cop/lint/percent_symbol_array.rb
394
+ - lib/rubocop/cop/lint/raise_exception.rb
381
395
  - lib/rubocop/cop/lint/rand_one.rb
382
396
  - lib/rubocop/cop/lint/redundant_cop_disable_directive.rb
383
397
  - lib/rubocop/cop/lint/redundant_cop_enable_directive.rb
384
398
  - lib/rubocop/cop/lint/redundant_require_statement.rb
385
399
  - lib/rubocop/cop/lint/redundant_splat_expansion.rb
400
+ - lib/rubocop/cop/lint/redundant_string_coercion.rb
386
401
  - lib/rubocop/cop/lint/redundant_with_index.rb
387
402
  - lib/rubocop/cop/lint/redundant_with_object.rb
388
403
  - lib/rubocop/cop/lint/regexp_as_condition.rb
@@ -398,7 +413,8 @@ files:
398
413
  - lib/rubocop/cop/lint/shadowed_argument.rb
399
414
  - lib/rubocop/cop/lint/shadowed_exception.rb
400
415
  - lib/rubocop/cop/lint/shadowing_outer_local_variable.rb
401
- - lib/rubocop/cop/lint/string_conversion_in_interpolation.rb
416
+ - lib/rubocop/cop/lint/struct_new_override.rb
417
+ - lib/rubocop/cop/lint/suppressed_exception.rb
402
418
  - lib/rubocop/cop/lint/syntax.rb
403
419
  - lib/rubocop/cop/lint/to_json.rb
404
420
  - lib/rubocop/cop/lint/underscore_prefixed_variable_name.rb
@@ -420,7 +436,6 @@ files:
420
436
  - lib/rubocop/cop/metrics/block_nesting.rb
421
437
  - lib/rubocop/cop/metrics/class_length.rb
422
438
  - lib/rubocop/cop/metrics/cyclomatic_complexity.rb
423
- - lib/rubocop/cop/metrics/line_length.rb
424
439
  - lib/rubocop/cop/metrics/method_length.rb
425
440
  - lib/rubocop/cop/metrics/module_length.rb
426
441
  - lib/rubocop/cop/metrics/parameter_lists.rb
@@ -449,12 +464,14 @@ files:
449
464
  - lib/rubocop/cop/mixin/enforce_superclass.rb
450
465
  - lib/rubocop/cop/mixin/first_element_line_break.rb
451
466
  - lib/rubocop/cop/mixin/frozen_string_literal.rb
452
- - lib/rubocop/cop/mixin/hash_alignment.rb
467
+ - lib/rubocop/cop/mixin/hash_alignment_styles.rb
468
+ - lib/rubocop/cop/mixin/hash_transform_method.rb
453
469
  - lib/rubocop/cop/mixin/heredoc.rb
454
470
  - lib/rubocop/cop/mixin/ignored_methods.rb
455
471
  - lib/rubocop/cop/mixin/ignored_pattern.rb
456
472
  - lib/rubocop/cop/mixin/integer_node.rb
457
473
  - lib/rubocop/cop/mixin/interpolation.rb
474
+ - lib/rubocop/cop/mixin/line_length_help.rb
458
475
  - lib/rubocop/cop/mixin/match_range.rb
459
476
  - lib/rubocop/cop/mixin/method_complexity.rb
460
477
  - lib/rubocop/cop/mixin/method_preference.rb
@@ -474,9 +491,9 @@ files:
474
491
  - lib/rubocop/cop/mixin/preceding_following_alignment.rb
475
492
  - lib/rubocop/cop/mixin/preferred_delimiters.rb
476
493
  - lib/rubocop/cop/mixin/range_help.rb
494
+ - lib/rubocop/cop/mixin/rational_literal.rb
477
495
  - lib/rubocop/cop/mixin/rescue_node.rb
478
496
  - lib/rubocop/cop/mixin/safe_assignment.rb
479
- - lib/rubocop/cop/mixin/safe_mode.rb
480
497
  - lib/rubocop/cop/mixin/space_after_punctuation.rb
481
498
  - lib/rubocop/cop/mixin/space_before_punctuation.rb
482
499
  - lib/rubocop/cop/mixin/statement_modifier.rb
@@ -492,6 +509,7 @@ files:
492
509
  - lib/rubocop/cop/naming/accessor_method_name.rb
493
510
  - lib/rubocop/cop/naming/ascii_identifiers.rb
494
511
  - lib/rubocop/cop/naming/binary_operator_parameter_name.rb
512
+ - lib/rubocop/cop/naming/block_parameter_name.rb
495
513
  - lib/rubocop/cop/naming/class_and_module_camel_case.rb
496
514
  - lib/rubocop/cop/naming/constant_name.rb
497
515
  - lib/rubocop/cop/naming/file_name.rb
@@ -499,10 +517,9 @@ files:
499
517
  - lib/rubocop/cop/naming/heredoc_delimiter_naming.rb
500
518
  - lib/rubocop/cop/naming/memoized_instance_variable_name.rb
501
519
  - lib/rubocop/cop/naming/method_name.rb
520
+ - lib/rubocop/cop/naming/method_parameter_name.rb
502
521
  - lib/rubocop/cop/naming/predicate_name.rb
503
522
  - lib/rubocop/cop/naming/rescued_exceptions_variable_name.rb
504
- - lib/rubocop/cop/naming/uncommunicative_block_param_name.rb
505
- - lib/rubocop/cop/naming/uncommunicative_method_param_name.rb
506
523
  - lib/rubocop/cop/naming/variable_name.rb
507
524
  - lib/rubocop/cop/naming/variable_number.rb
508
525
  - lib/rubocop/cop/offense.rb
@@ -524,7 +541,6 @@ files:
524
541
  - lib/rubocop/cop/style/begin_block.rb
525
542
  - lib/rubocop/cop/style/block_comments.rb
526
543
  - lib/rubocop/cop/style/block_delimiters.rb
527
- - lib/rubocop/cop/style/braces_around_hash_parameters.rb
528
544
  - lib/rubocop/cop/style/case_equality.rb
529
545
  - lib/rubocop/cop/style/character_literal.rb
530
546
  - lib/rubocop/cop/style/class_and_module_children.rb
@@ -543,6 +559,7 @@ files:
543
559
  - lib/rubocop/cop/style/date_time.rb
544
560
  - lib/rubocop/cop/style/def_with_parentheses.rb
545
561
  - lib/rubocop/cop/style/dir.rb
562
+ - lib/rubocop/cop/style/disable_cops_within_source_code_directive.rb
546
563
  - lib/rubocop/cop/style/documentation.rb
547
564
  - lib/rubocop/cop/style/documentation_method.rb
548
565
  - lib/rubocop/cop/style/double_cop_disable_directive.rb
@@ -560,6 +577,7 @@ files:
560
577
  - lib/rubocop/cop/style/eval_with_location.rb
561
578
  - lib/rubocop/cop/style/even_odd.rb
562
579
  - lib/rubocop/cop/style/expand_path_arguments.rb
580
+ - lib/rubocop/cop/style/exponential_notation.rb
563
581
  - lib/rubocop/cop/style/float_division.rb
564
582
  - lib/rubocop/cop/style/for.rb
565
583
  - lib/rubocop/cop/style/format_string.rb
@@ -567,7 +585,10 @@ files:
567
585
  - lib/rubocop/cop/style/frozen_string_literal_comment.rb
568
586
  - lib/rubocop/cop/style/global_vars.rb
569
587
  - lib/rubocop/cop/style/guard_clause.rb
588
+ - lib/rubocop/cop/style/hash_each_methods.rb
570
589
  - lib/rubocop/cop/style/hash_syntax.rb
590
+ - lib/rubocop/cop/style/hash_transform_keys.rb
591
+ - lib/rubocop/cop/style/hash_transform_values.rb
571
592
  - lib/rubocop/cop/style/identical_conditional_branches.rb
572
593
  - lib/rubocop/cop/style/if_inside_else.rb
573
594
  - lib/rubocop/cop/style/if_unless_modifier.rb
@@ -582,6 +603,8 @@ files:
582
603
  - lib/rubocop/cop/style/lambda_call.rb
583
604
  - lib/rubocop/cop/style/line_end_concatenation.rb
584
605
  - lib/rubocop/cop/style/method_call_with_args_parentheses.rb
606
+ - lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb
607
+ - lib/rubocop/cop/style/method_call_with_args_parentheses/require_parentheses.rb
585
608
  - lib/rubocop/cop/style/method_call_without_args_parentheses.rb
586
609
  - lib/rubocop/cop/style/method_called_on_do_end_block.rb
587
610
  - lib/rubocop/cop/style/method_def_parentheses.rb
@@ -652,6 +675,7 @@ files:
652
675
  - lib/rubocop/cop/style/signal_exception.rb
653
676
  - lib/rubocop/cop/style/single_line_block_params.rb
654
677
  - lib/rubocop/cop/style/single_line_methods.rb
678
+ - lib/rubocop/cop/style/slicing_with_range.rb
655
679
  - lib/rubocop/cop/style/special_global_vars.rb
656
680
  - lib/rubocop/cop/style/stabby_lambda_parentheses.rb
657
681
  - lib/rubocop/cop/style/stderr_puts.rb
@@ -670,6 +694,7 @@ files:
670
694
  - lib/rubocop/cop/style/trailing_body_on_module.rb
671
695
  - lib/rubocop/cop/style/trailing_comma_in_arguments.rb
672
696
  - lib/rubocop/cop/style/trailing_comma_in_array_literal.rb
697
+ - lib/rubocop/cop/style/trailing_comma_in_block_args.rb
673
698
  - lib/rubocop/cop/style/trailing_comma_in_hash_literal.rb
674
699
  - lib/rubocop/cop/style/trailing_method_end_statement.rb
675
700
  - lib/rubocop/cop/style/trailing_underscore_variable.rb
@@ -702,13 +727,13 @@ files:
702
727
  - lib/rubocop/formatter/clang_style_formatter.rb
703
728
  - lib/rubocop/formatter/colorizable.rb
704
729
  - lib/rubocop/formatter/disabled_config_formatter.rb
705
- - lib/rubocop/formatter/disabled_lines_formatter.rb
706
730
  - lib/rubocop/formatter/emacs_style_formatter.rb
707
731
  - lib/rubocop/formatter/file_list_formatter.rb
708
732
  - lib/rubocop/formatter/formatter_set.rb
709
733
  - lib/rubocop/formatter/fuubar_style_formatter.rb
710
734
  - lib/rubocop/formatter/html_formatter.rb
711
735
  - lib/rubocop/formatter/json_formatter.rb
736
+ - lib/rubocop/formatter/junit_formatter.rb
712
737
  - lib/rubocop/formatter/offense_count_formatter.rb
713
738
  - lib/rubocop/formatter/pacman_formatter.rb
714
739
  - lib/rubocop/formatter/progress_formatter.rb
@@ -734,8 +759,8 @@ files:
734
759
  - lib/rubocop/rspec/support.rb
735
760
  - lib/rubocop/runner.rb
736
761
  - lib/rubocop/string_interpreter.rb
737
- - lib/rubocop/string_util.rb
738
762
  - lib/rubocop/target_finder.rb
763
+ - lib/rubocop/target_ruby.rb
739
764
  - lib/rubocop/token.rb
740
765
  - lib/rubocop/version.rb
741
766
  - lib/rubocop/warning.rb
@@ -757,14 +782,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
757
782
  requirements:
758
783
  - - ">="
759
784
  - !ruby/object:Gem::Version
760
- version: 2.3.0
785
+ version: 2.4.0
761
786
  required_rubygems_version: !ruby/object:Gem::Requirement
762
787
  requirements:
763
788
  - - ">="
764
789
  - !ruby/object:Gem::Version
765
790
  version: '0'
766
791
  requirements: []
767
- rubygems_version: 3.0.3
792
+ rubygems_version: 3.1.2
768
793
  signing_key:
769
794
  specification_version: 4
770
795
  summary: Automatic Ruby code style checking tool.
@@ -1,39 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module RuboCop
4
- module Cop
5
- module Layout
6
- # Here we check if the elements of a multi-line array literal are
7
- # aligned.
8
- #
9
- # @example
10
- # # bad
11
- # a = [1, 2, 3,
12
- # 4, 5, 6]
13
- # array = ['run',
14
- # 'forrest',
15
- # 'run']
16
- #
17
- # # good
18
- # a = [1, 2, 3,
19
- # 4, 5, 6]
20
- # a = ['run',
21
- # 'forrest',
22
- # 'run']
23
- class AlignArray < Cop
24
- include Alignment
25
-
26
- MSG = 'Align the elements of an array literal if they span more ' \
27
- 'than one line.'
28
-
29
- def on_array(node)
30
- check_alignment(node.children)
31
- end
32
-
33
- def autocorrect(node)
34
- AlignmentCorrector.correct(processed_source, node, column_delta)
35
- end
36
- end
37
- end
38
- end
39
- end
@@ -1,40 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module RuboCop
4
- module Cop
5
- module Lint
6
- # This cop checks for END blocks in method definitions.
7
- #
8
- # @example
9
- #
10
- # # bad
11
- #
12
- # def some_method
13
- # END { do_something }
14
- # end
15
- #
16
- # @example
17
- #
18
- # # good
19
- #
20
- # def some_method
21
- # at_exit { do_something }
22
- # end
23
- #
24
- # @example
25
- #
26
- # # good
27
- #
28
- # # outside defs
29
- # END { do_something }
30
- class EndInMethod < Cop
31
- MSG = '`END` found in method definition. Use `at_exit` instead.'
32
-
33
- def on_postexe(node)
34
- inside_of_method = node.each_ancestor(:def, :defs).count.nonzero?
35
- add_offense(node, location: :keyword) if inside_of_method
36
- end
37
- end
38
- end
39
- end
40
- end
@@ -1,24 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module RuboCop
4
- module Cop
5
- # Common functionality for Rails safe mode.
6
- #
7
- # This module can be removed from RuboCop 0.76.
8
- module SafeMode
9
- private
10
-
11
- def rails_safe_mode?
12
- safe_mode? || rails?
13
- end
14
-
15
- def safe_mode?
16
- cop_config['SafeMode']
17
- end
18
-
19
- def rails?
20
- config['Rails']&.fetch('Enabled')
21
- end
22
- end
23
- end
24
- end