rubocop 0.50.0 → 0.51.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (318) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +2 -6
  3. data/config/default.yml +20 -11
  4. data/config/enabled.yml +44 -7
  5. data/lib/rubocop.rb +526 -514
  6. data/lib/rubocop/ast/node.rb +9 -9
  7. data/lib/rubocop/ast/node/mixin/method_dispatch_node.rb +2 -2
  8. data/lib/rubocop/ast/node/send_node.rb +4 -0
  9. data/lib/rubocop/cached_data.rb +1 -6
  10. data/lib/rubocop/cli.rb +7 -6
  11. data/lib/rubocop/config.rb +58 -22
  12. data/lib/rubocop/config_loader.rb +37 -21
  13. data/lib/rubocop/config_loader_resolver.rb +3 -2
  14. data/lib/rubocop/cop/bundler/duplicated_gem.rb +5 -3
  15. data/lib/rubocop/cop/bundler/insecure_protocol_source.rb +4 -2
  16. data/lib/rubocop/cop/bundler/ordered_gems.rb +2 -53
  17. data/lib/rubocop/cop/commissioner.rb +1 -4
  18. data/lib/rubocop/cop/cop.rb +50 -17
  19. data/lib/rubocop/cop/gemspec/ordered_dependencies.rb +96 -0
  20. data/lib/rubocop/cop/generator.rb +8 -3
  21. data/lib/rubocop/cop/internal_affairs.rb +6 -5
  22. data/lib/rubocop/cop/internal_affairs/deprecated_positional_arguments.rb +81 -0
  23. data/lib/rubocop/cop/internal_affairs/node_type_predicate.rb +1 -1
  24. data/lib/rubocop/cop/internal_affairs/offense_location_keyword.rb +21 -11
  25. data/lib/rubocop/cop/internal_affairs/redundant_location_argument.rb +27 -14
  26. data/lib/rubocop/cop/internal_affairs/redundant_message_argument.rb +38 -16
  27. data/lib/rubocop/cop/internal_affairs/useless_message_assertion.rb +2 -2
  28. data/lib/rubocop/cop/layout/block_end_newline.rb +1 -1
  29. data/lib/rubocop/cop/layout/case_indentation.rb +1 -1
  30. data/lib/rubocop/cop/layout/closing_parenthesis_indentation.rb +1 -1
  31. data/lib/rubocop/cop/layout/comment_indentation.rb +4 -2
  32. data/lib/rubocop/cop/layout/dot_position.rb +1 -1
  33. data/lib/rubocop/cop/layout/else_alignment.rb +5 -2
  34. data/lib/rubocop/cop/layout/empty_line_after_magic_comment.rb +1 -1
  35. data/lib/rubocop/cop/layout/empty_line_between_defs.rb +1 -1
  36. data/lib/rubocop/cop/layout/empty_lines.rb +1 -1
  37. data/lib/rubocop/cop/layout/end_of_line.rb +1 -1
  38. data/lib/rubocop/cop/layout/extra_spacing.rb +2 -2
  39. data/lib/rubocop/cop/layout/indent_array.rb +1 -1
  40. data/lib/rubocop/cop/layout/indent_hash.rb +1 -1
  41. data/lib/rubocop/cop/layout/indent_heredoc.rb +2 -2
  42. data/lib/rubocop/cop/layout/indentation_width.rb +7 -5
  43. data/lib/rubocop/cop/layout/initial_indentation.rb +3 -2
  44. data/lib/rubocop/cop/layout/multiline_assignment_layout.rb +2 -2
  45. data/lib/rubocop/cop/layout/multiline_block_layout.rb +1 -1
  46. data/lib/rubocop/cop/layout/rescue_ensure_alignment.rb +3 -1
  47. data/lib/rubocop/cop/layout/space_after_colon.rb +2 -2
  48. data/lib/rubocop/cop/layout/space_after_method_name.rb +1 -1
  49. data/lib/rubocop/cop/layout/space_around_block_parameters.rb +3 -2
  50. data/lib/rubocop/cop/layout/space_around_equals_in_parameter_default.rb +1 -1
  51. data/lib/rubocop/cop/layout/space_around_keyword.rb +1 -1
  52. data/lib/rubocop/cop/layout/space_around_operators.rb +1 -1
  53. data/lib/rubocop/cop/layout/space_before_block_braces.rb +4 -4
  54. data/lib/rubocop/cop/layout/space_before_comment.rb +1 -1
  55. data/lib/rubocop/cop/layout/space_before_first_arg.rb +1 -1
  56. data/lib/rubocop/cop/layout/space_in_lambda_literal.rb +6 -2
  57. data/lib/rubocop/cop/layout/space_inside_array_percent_literal.rb +1 -1
  58. data/lib/rubocop/cop/layout/space_inside_block_braces.rb +2 -2
  59. data/lib/rubocop/cop/layout/space_inside_hash_literal_braces.rb +5 -2
  60. data/lib/rubocop/cop/layout/space_inside_parens.rb +9 -0
  61. data/lib/rubocop/cop/layout/space_inside_percent_literal_delimiters.rb +1 -1
  62. data/lib/rubocop/cop/layout/tab.rb +5 -2
  63. data/lib/rubocop/cop/layout/trailing_blank_lines.rb +4 -2
  64. data/lib/rubocop/cop/layout/trailing_whitespace.rb +1 -1
  65. data/lib/rubocop/cop/lint/assignment_in_condition.rb +1 -1
  66. data/lib/rubocop/cop/lint/block_alignment.rb +1 -1
  67. data/lib/rubocop/cop/lint/boolean_symbol.rb +1 -1
  68. data/lib/rubocop/cop/lint/circular_argument_reference.rb +3 -14
  69. data/lib/rubocop/cop/lint/debugger.rb +7 -7
  70. data/lib/rubocop/cop/lint/deprecated_class_methods.rb +4 -4
  71. data/lib/rubocop/cop/lint/duplicate_methods.rb +5 -3
  72. data/lib/rubocop/cop/lint/empty_ensure.rb +1 -1
  73. data/lib/rubocop/cop/lint/empty_expression.rb +1 -1
  74. data/lib/rubocop/cop/lint/empty_when.rb +1 -1
  75. data/lib/rubocop/cop/lint/end_in_method.rb +1 -1
  76. data/lib/rubocop/cop/lint/format_parameter_mismatch.rb +1 -1
  77. data/lib/rubocop/cop/lint/implicit_string_concatenation.rb +1 -1
  78. data/lib/rubocop/cop/lint/ineffective_access_modifier.rb +4 -3
  79. data/lib/rubocop/cop/lint/interpolation_check.rb +2 -1
  80. data/lib/rubocop/cop/lint/{literal_in_condition.rb → literal_as_condition.rb} +19 -5
  81. data/lib/rubocop/cop/lint/loop.rb +1 -1
  82. data/lib/rubocop/cop/lint/nested_method_definition.rb +1 -1
  83. data/lib/rubocop/cop/lint/non_local_exit_from_iterator.rb +2 -2
  84. data/lib/rubocop/cop/lint/parentheses_as_grouped_expression.rb +3 -2
  85. data/lib/rubocop/cop/lint/percent_string_array.rb +1 -1
  86. data/lib/rubocop/cop/lint/rand_one.rb +1 -1
  87. data/lib/rubocop/cop/lint/redundant_with_index.rb +1 -1
  88. data/lib/rubocop/cop/lint/redundant_with_object.rb +81 -0
  89. data/lib/rubocop/cop/lint/regexp_as_condition.rb +29 -0
  90. data/lib/rubocop/cop/lint/require_parentheses.rb +1 -1
  91. data/lib/rubocop/cop/lint/rescue_type.rb +5 -3
  92. data/lib/rubocop/cop/lint/rescue_without_error_class.rb +6 -3
  93. data/lib/rubocop/cop/lint/return_in_void_context.rb +24 -13
  94. data/lib/rubocop/cop/lint/safe_navigation_chain.rb +1 -1
  95. data/lib/rubocop/cop/lint/script_permission.rb +1 -1
  96. data/lib/rubocop/cop/lint/shadowed_exception.rb +37 -10
  97. data/lib/rubocop/cop/lint/shadowing_outer_local_variable.rb +1 -1
  98. data/lib/rubocop/cop/lint/string_conversion_in_interpolation.rb +1 -1
  99. data/lib/rubocop/cop/lint/syntax.rb +8 -2
  100. data/lib/rubocop/cop/lint/underscore_prefixed_variable_name.rb +1 -1
  101. data/lib/rubocop/cop/lint/unified_integer.rb +2 -2
  102. data/lib/rubocop/cop/lint/unneeded_disable.rb +11 -4
  103. data/lib/rubocop/cop/lint/unneeded_require_statement.rb +50 -0
  104. data/lib/rubocop/cop/lint/unneeded_splat_expansion.rb +2 -2
  105. data/lib/rubocop/cop/lint/unreachable_code.rb +1 -1
  106. data/lib/rubocop/cop/lint/unused_method_argument.rb +2 -1
  107. data/lib/rubocop/cop/lint/uri_escape_unescape.rb +2 -2
  108. data/lib/rubocop/cop/lint/uri_regexp.rb +3 -3
  109. data/lib/rubocop/cop/lint/useless_access_modifier.rb +9 -9
  110. data/lib/rubocop/cop/lint/useless_assignment.rb +1 -1
  111. data/lib/rubocop/cop/lint/useless_comparison.rb +1 -1
  112. data/lib/rubocop/cop/lint/useless_setter_call.rb +5 -1
  113. data/lib/rubocop/cop/lint/void.rb +10 -5
  114. data/lib/rubocop/cop/metrics/block_nesting.rb +1 -1
  115. data/lib/rubocop/cop/metrics/line_length.rb +4 -1
  116. data/lib/rubocop/cop/metrics/parameter_lists.rb +1 -2
  117. data/lib/rubocop/cop/mixin/array_hash_indentation.rb +3 -2
  118. data/lib/rubocop/cop/mixin/autocorrect_alignment.rb +1 -1
  119. data/lib/rubocop/cop/mixin/code_length.rb +1 -1
  120. data/lib/rubocop/cop/mixin/configurable_formatting.rb +1 -1
  121. data/lib/rubocop/cop/mixin/def_node.rb +1 -1
  122. data/lib/rubocop/cop/mixin/empty_lines_around_body.rb +7 -2
  123. data/lib/rubocop/cop/mixin/end_keyword_alignment.rb +1 -1
  124. data/lib/rubocop/cop/mixin/enforce_superclass.rb +1 -1
  125. data/lib/rubocop/cop/mixin/heredoc.rb +1 -1
  126. data/lib/rubocop/cop/mixin/method_complexity.rb +3 -4
  127. data/lib/rubocop/cop/mixin/multiline_expression_indentation.rb +1 -1
  128. data/lib/rubocop/cop/mixin/multiline_literal_brace_layout.rb +10 -4
  129. data/lib/rubocop/cop/mixin/ordered_gem_node.rb +63 -0
  130. data/lib/rubocop/cop/mixin/parser_diagnostic.rb +4 -1
  131. data/lib/rubocop/cop/mixin/space_after_punctuation.rb +2 -1
  132. data/lib/rubocop/cop/mixin/space_before_punctuation.rb +2 -1
  133. data/lib/rubocop/cop/mixin/space_inside.rb +1 -1
  134. data/lib/rubocop/cop/mixin/string_literals_help.rb +1 -1
  135. data/lib/rubocop/cop/mixin/trailing_comma.rb +5 -5
  136. data/lib/rubocop/cop/mixin/unused_argument.rb +43 -2
  137. data/lib/rubocop/cop/naming/accessor_method_name.rb +8 -7
  138. data/lib/rubocop/cop/naming/ascii_identifiers.rb +1 -1
  139. data/lib/rubocop/cop/naming/binary_operator_parameter_name.rb +1 -1
  140. data/lib/rubocop/cop/naming/class_and_module_camel_case.rb +1 -1
  141. data/lib/rubocop/cop/naming/constant_name.rb +1 -1
  142. data/lib/rubocop/cop/naming/file_name.rb +1 -1
  143. data/lib/rubocop/cop/naming/heredoc_delimiter_case.rb +1 -1
  144. data/lib/rubocop/cop/naming/heredoc_delimiter_naming.rb +3 -2
  145. data/lib/rubocop/cop/naming/predicate_name.rb +36 -5
  146. data/lib/rubocop/cop/performance/caller.rb +2 -2
  147. data/lib/rubocop/cop/performance/case_when_splat.rb +1 -1
  148. data/lib/rubocop/cop/performance/casecmp.rb +1 -1
  149. data/lib/rubocop/cop/performance/compare_with_block.rb +6 -2
  150. data/lib/rubocop/cop/performance/count.rb +3 -1
  151. data/lib/rubocop/cop/performance/detect.rb +4 -4
  152. data/lib/rubocop/cop/performance/double_start_end_with.rb +6 -9
  153. data/lib/rubocop/cop/performance/end_with.rb +1 -1
  154. data/lib/rubocop/cop/performance/flat_map.rb +3 -1
  155. data/lib/rubocop/cop/performance/hash_each_methods.rb +13 -10
  156. data/lib/rubocop/cop/performance/lstrip_rstrip.rb +3 -1
  157. data/lib/rubocop/cop/performance/range_include.rb +1 -1
  158. data/lib/rubocop/cop/performance/redundant_block_call.rb +1 -1
  159. data/lib/rubocop/cop/performance/redundant_match.rb +6 -5
  160. data/lib/rubocop/cop/performance/redundant_merge.rb +1 -1
  161. data/lib/rubocop/cop/performance/redundant_sort_by.rb +4 -1
  162. data/lib/rubocop/cop/performance/regexp_match.rb +4 -4
  163. data/lib/rubocop/cop/performance/reverse_each.rb +1 -1
  164. data/lib/rubocop/cop/performance/sample.rb +1 -1
  165. data/lib/rubocop/cop/performance/size.rb +1 -1
  166. data/lib/rubocop/cop/performance/start_with.rb +1 -1
  167. data/lib/rubocop/cop/performance/string_replacement.rb +2 -2
  168. data/lib/rubocop/cop/performance/times_map.rb +3 -3
  169. data/lib/rubocop/cop/performance/unfreeze_string.rb +2 -2
  170. data/lib/rubocop/cop/performance/uri_default_parser.rb +2 -2
  171. data/lib/rubocop/cop/rails/action_filter.rb +1 -1
  172. data/lib/rubocop/cop/rails/active_support_aliases.rb +1 -2
  173. data/lib/rubocop/cop/rails/application_job.rb +1 -1
  174. data/lib/rubocop/cop/rails/application_record.rb +1 -1
  175. data/lib/rubocop/cop/rails/blank.rb +20 -17
  176. data/lib/rubocop/cop/rails/date.rb +7 -6
  177. data/lib/rubocop/cop/rails/delegate.rb +1 -1
  178. data/lib/rubocop/cop/rails/delegate_allow_blank.rb +1 -1
  179. data/lib/rubocop/cop/rails/dynamic_find_by.rb +2 -2
  180. data/lib/rubocop/cop/rails/enum_uniqueness.rb +2 -2
  181. data/lib/rubocop/cop/rails/exit.rb +1 -1
  182. data/lib/rubocop/cop/rails/file_path.rb +6 -8
  183. data/lib/rubocop/cop/rails/find_by.rb +2 -1
  184. data/lib/rubocop/cop/rails/find_each.rb +1 -1
  185. data/lib/rubocop/cop/rails/has_and_belongs_to_many.rb +1 -1
  186. data/lib/rubocop/cop/rails/has_many_or_has_one_dependent.rb +35 -11
  187. data/lib/rubocop/cop/rails/http_positional_arguments.rb +3 -2
  188. data/lib/rubocop/cop/rails/not_null_column.rb +5 -5
  189. data/lib/rubocop/cop/rails/output.rb +2 -2
  190. data/lib/rubocop/cop/rails/output_safety.rb +2 -1
  191. data/lib/rubocop/cop/rails/present.rb +14 -17
  192. data/lib/rubocop/cop/rails/read_write_attribute.rb +3 -3
  193. data/lib/rubocop/cop/rails/relative_date_constant.rb +1 -1
  194. data/lib/rubocop/cop/rails/request_referer.rb +2 -2
  195. data/lib/rubocop/cop/rails/reversible_migration.rb +21 -19
  196. data/lib/rubocop/cop/rails/safe_navigation.rb +2 -2
  197. data/lib/rubocop/cop/rails/save_bang.rb +12 -12
  198. data/lib/rubocop/cop/rails/scope_args.rb +1 -1
  199. data/lib/rubocop/cop/rails/skips_model_validations.rb +2 -2
  200. data/lib/rubocop/cop/rails/time_zone.rb +3 -2
  201. data/lib/rubocop/cop/rails/uniq_before_pluck.rb +3 -1
  202. data/lib/rubocop/cop/rails/unknown_env.rb +63 -0
  203. data/lib/rubocop/cop/rails/validation.rb +1 -1
  204. data/lib/rubocop/cop/registry.rb +2 -1
  205. data/lib/rubocop/cop/security/eval.rb +2 -2
  206. data/lib/rubocop/cop/security/json_load.rb +2 -2
  207. data/lib/rubocop/cop/security/marshal_load.rb +3 -3
  208. data/lib/rubocop/cop/security/yaml_load.rb +2 -2
  209. data/lib/rubocop/cop/style/alias.rb +3 -3
  210. data/lib/rubocop/cop/style/and_or.rb +1 -1
  211. data/lib/rubocop/cop/style/array_join.rb +1 -1
  212. data/lib/rubocop/cop/style/ascii_comments.rb +1 -1
  213. data/lib/rubocop/cop/style/attr.rb +1 -1
  214. data/lib/rubocop/cop/style/auto_resource_cleanup.rb +2 -2
  215. data/lib/rubocop/cop/style/bare_percent_literals.rb +1 -1
  216. data/lib/rubocop/cop/style/begin_block.rb +1 -1
  217. data/lib/rubocop/cop/style/block_delimiters.rb +1 -1
  218. data/lib/rubocop/cop/style/braces_around_hash_parameters.rb +22 -19
  219. data/lib/rubocop/cop/style/case_equality.rb +1 -1
  220. data/lib/rubocop/cop/style/class_and_module_children.rb +2 -2
  221. data/lib/rubocop/cop/style/class_check.rb +1 -1
  222. data/lib/rubocop/cop/style/class_methods.rb +2 -1
  223. data/lib/rubocop/cop/style/class_vars.rb +1 -1
  224. data/lib/rubocop/cop/style/collection_methods.rb +1 -1
  225. data/lib/rubocop/cop/style/colon_method_call.rb +2 -2
  226. data/lib/rubocop/cop/style/comment_annotation.rb +5 -2
  227. data/lib/rubocop/cop/style/commented_keyword.rb +81 -0
  228. data/lib/rubocop/cop/style/conditional_assignment.rb +1 -1
  229. data/lib/rubocop/cop/style/copyright.rb +1 -1
  230. data/lib/rubocop/cop/style/date_time.rb +44 -0
  231. data/lib/rubocop/cop/style/def_with_parentheses.rb +1 -1
  232. data/lib/rubocop/cop/style/dir.rb +2 -6
  233. data/lib/rubocop/cop/style/documentation.rb +1 -1
  234. data/lib/rubocop/cop/style/double_negation.rb +1 -1
  235. data/lib/rubocop/cop/style/each_for_simple_loop.rb +1 -1
  236. data/lib/rubocop/cop/style/each_with_object.rb +2 -1
  237. data/lib/rubocop/cop/style/empty_case_condition.rb +1 -1
  238. data/lib/rubocop/cop/style/empty_else.rb +2 -2
  239. data/lib/rubocop/cop/style/empty_literal.rb +9 -9
  240. data/lib/rubocop/cop/style/encoding.rb +7 -51
  241. data/lib/rubocop/cop/style/end_block.rb +1 -1
  242. data/lib/rubocop/cop/style/even_odd.rb +1 -1
  243. data/lib/rubocop/cop/style/for.rb +6 -2
  244. data/lib/rubocop/cop/style/format_string.rb +4 -3
  245. data/lib/rubocop/cop/style/format_string_token.rb +2 -1
  246. data/lib/rubocop/cop/style/frozen_string_literal_comment.rb +3 -3
  247. data/lib/rubocop/cop/style/global_vars.rb +1 -1
  248. data/lib/rubocop/cop/style/guard_clause.rb +2 -2
  249. data/lib/rubocop/cop/style/hash_syntax.rb +2 -3
  250. data/lib/rubocop/cop/style/if_inside_else.rb +1 -1
  251. data/lib/rubocop/cop/style/if_unless_modifier.rb +2 -1
  252. data/lib/rubocop/cop/style/if_unless_modifier_of_if_unless.rb +2 -1
  253. data/lib/rubocop/cop/style/implicit_runtime_error.rb +2 -2
  254. data/lib/rubocop/cop/style/infinite_loop.rb +2 -2
  255. data/lib/rubocop/cop/style/inverse_methods.rb +4 -6
  256. data/lib/rubocop/cop/style/lambda.rb +3 -3
  257. data/lib/rubocop/cop/style/line_end_concatenation.rb +1 -1
  258. data/lib/rubocop/cop/style/method_call_without_args_parentheses.rb +1 -1
  259. data/lib/rubocop/cop/style/method_called_on_do_end_block.rb +1 -1
  260. data/lib/rubocop/cop/style/method_def_parentheses.rb +4 -2
  261. data/lib/rubocop/cop/style/min_max.rb +2 -1
  262. data/lib/rubocop/cop/style/mixin_usage.rb +73 -0
  263. data/lib/rubocop/cop/style/module_function.rb +2 -2
  264. data/lib/rubocop/cop/style/multiline_block_chain.rb +1 -1
  265. data/lib/rubocop/cop/style/multiline_if_then.rb +2 -1
  266. data/lib/rubocop/cop/style/multiline_memoization.rb +1 -1
  267. data/lib/rubocop/cop/style/nested_modifier.rb +1 -1
  268. data/lib/rubocop/cop/style/nested_parenthesized_calls.rb +3 -1
  269. data/lib/rubocop/cop/style/next.rb +2 -1
  270. data/lib/rubocop/cop/style/nil_comparison.rb +2 -2
  271. data/lib/rubocop/cop/style/non_nil_check.rb +2 -2
  272. data/lib/rubocop/cop/style/not.rb +1 -1
  273. data/lib/rubocop/cop/style/numeric_predicate.rb +2 -2
  274. data/lib/rubocop/cop/style/option_hash.rb +0 -11
  275. data/lib/rubocop/cop/style/or_assignment.rb +1 -1
  276. data/lib/rubocop/cop/style/parallel_assignment.rb +1 -1
  277. data/lib/rubocop/cop/style/percent_q_literals.rb +1 -1
  278. data/lib/rubocop/cop/style/preferred_hash_methods.rb +1 -1
  279. data/lib/rubocop/cop/style/proc.rb +1 -1
  280. data/lib/rubocop/cop/style/redundant_begin.rb +1 -1
  281. data/lib/rubocop/cop/style/redundant_exception.rb +4 -4
  282. data/lib/rubocop/cop/style/redundant_parentheses.rb +1 -1
  283. data/lib/rubocop/cop/style/redundant_return.rb +1 -1
  284. data/lib/rubocop/cop/style/regexp_literal.rb +2 -2
  285. data/lib/rubocop/cop/style/return_nil.rb +2 -7
  286. data/lib/rubocop/cop/style/safe_navigation.rb +27 -30
  287. data/lib/rubocop/cop/style/self_assignment.rb +2 -2
  288. data/lib/rubocop/cop/style/semicolon.rb +1 -1
  289. data/lib/rubocop/cop/style/send.rb +1 -1
  290. data/lib/rubocop/cop/style/signal_exception.rb +4 -3
  291. data/lib/rubocop/cop/style/stderr_puts.rb +52 -0
  292. data/lib/rubocop/cop/style/string_literals.rb +4 -3
  293. data/lib/rubocop/cop/style/string_methods.rb +1 -1
  294. data/lib/rubocop/cop/style/struct_inheritance.rb +3 -3
  295. data/lib/rubocop/cop/style/symbol_array.rb +1 -5
  296. data/lib/rubocop/cop/style/symbol_proc.rb +5 -5
  297. data/lib/rubocop/cop/style/ternary_parentheses.rb +2 -2
  298. data/lib/rubocop/cop/style/trailing_underscore_variable.rb +46 -23
  299. data/lib/rubocop/cop/style/trivial_accessors.rb +3 -1
  300. data/lib/rubocop/cop/style/variable_interpolation.rb +0 -2
  301. data/lib/rubocop/cop/style/when_then.rb +1 -1
  302. data/lib/rubocop/cop/style/while_until_do.rb +2 -1
  303. data/lib/rubocop/cop/style/while_until_modifier.rb +2 -1
  304. data/lib/rubocop/cop/style/word_array.rb +2 -2
  305. data/lib/rubocop/cop/style/zero_length_predicate.rb +4 -4
  306. data/lib/rubocop/cop/util.rb +1 -12
  307. data/lib/rubocop/formatter/html_formatter.rb +1 -1
  308. data/lib/rubocop/formatter/simple_text_formatter.rb +2 -2
  309. data/lib/rubocop/node_pattern.rb +1 -1
  310. data/lib/rubocop/options.rb +4 -0
  311. data/lib/rubocop/processed_source.rb +2 -8
  312. data/lib/rubocop/rake_task.rb +16 -23
  313. data/lib/rubocop/remote_config.rb +8 -0
  314. data/lib/rubocop/rspec/shared_contexts.rb +0 -8
  315. data/lib/rubocop/rspec/support.rb +5 -5
  316. data/lib/rubocop/version.rb +1 -1
  317. metadata +40 -30
  318. data/lib/rubocop/cop/lint/invalid_character_literal.rb +0 -41
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fc27de01c8e40a15273487b5c90697374de840fa
4
- data.tar.gz: 745535b26861520e259edd7bd596c64b69337d1b
3
+ metadata.gz: 6e80ddd697b6b2f3dd4be49d06709d15be331d71
4
+ data.tar.gz: e1a06966a86f061f09e705fe99229d00ac6b9e9a
5
5
  SHA512:
6
- metadata.gz: b4c147e35b45939d5a54d225141c41fcb5740873ec98f0f914a0a0b9e9c9fdd5c00ed4ee79fc54b7e8e808fdeb2ca594b034700a4e1edb6b6ec2e7cd23e6d3dc
7
- data.tar.gz: eca0914100842f7c36c082af77e4d780e5fd955642eb906d18eb9a7cc84bc8d7ddf445da7b89c29c3962cd063054aaa10a1755101e8ec7e6bc33fc948034576f
6
+ metadata.gz: bc105fff3d2e926b2f9c6acddac7c4593f70dac3a2751290a772a743bc7f88e23c797e8c9c6cda4ca4abe6f660243dd43e4f8067859a6ebed132ddc60d906350
7
+ data.tar.gz: d3723e0bfc8a0f321729066f0c092116e97099f60075d3a2424a6747df98e62722393c0734d434ade5d524b470be208b4a9148fa457ed151b19930eb134f2fa9
data/README.md CHANGED
@@ -51,7 +51,7 @@ haven't reached version 1.0 yet). To prevent an unwanted RuboCop update you
51
51
  might want to use a conservative version locking in your `Gemfile`:
52
52
 
53
53
  ```rb
54
- gem 'rubocop', '~> 0.50.0', require: false
54
+ gem 'rubocop', '~> 0.51.0', require: false
55
55
  ```
56
56
 
57
57
  ## Quickstart
@@ -71,11 +71,7 @@ You can read a ton more about RuboCop in its [official manual](http://rubocop.re
71
71
 
72
72
  RuboCop supports the following Ruby implementations:
73
73
 
74
- * MRI 2.0
75
- * MRI 2.1
76
- * MRI 2.2
77
- * MRI 2.3
78
- * MRI 2.4
74
+ * MRI 2.1+
79
75
  * JRuby 9.0+
80
76
  * Rubinius 2.0+
81
77
 
@@ -531,6 +531,13 @@ Layout/SpaceInsideStringInterpolation:
531
531
  - space
532
532
  - no_space
533
533
 
534
+ Layout/Tab:
535
+ # By default, the indentation width from Layout/IndentationWidth is used
536
+ # But it can be overridden by setting this parameter
537
+ # It is used during auto-correction to determine how many spaces should
538
+ # replace each tab.
539
+ IndentationWidth: ~
540
+
534
541
  Layout/TrailingBlankLines:
535
542
  EnforcedStyle: final_newline
536
543
  SupportedStyles:
@@ -631,6 +638,10 @@ Naming/PredicateName:
631
638
  # should still be accepted
632
639
  NameWhitelist:
633
640
  - is_a?
641
+ # Method definition macros for dynamically generated methods.
642
+ MethodDefinitionMacros:
643
+ - define_method
644
+ - define_singleton_method
634
645
  # Exclude Rspec specs because there is a strong convention to write spec
635
646
  # helpers in the form of `have_something` or `be_something`.
636
647
  Exclude:
@@ -878,17 +889,6 @@ Style/EmptyMethod:
878
889
  - compact
879
890
  - expanded
880
891
 
881
- # Checks whether the source file has a utf-8 encoding comment or not
882
- # AutoCorrectEncodingComment must match the regex
883
- # /#.*coding\s?[:=]\s?(?:UTF|utf)-8/
884
- Style/Encoding:
885
- EnforcedStyle: never
886
- SupportedStyles:
887
- - when_needed
888
- - always
889
- - never
890
- AutoCorrectEncodingComment: '# encoding: utf-8'
891
-
892
892
  # Checks use of for or each in multiline loops.
893
893
  Style/For:
894
894
  EnforcedStyle: each
@@ -1587,6 +1587,12 @@ Rails/UniqBeforePluck:
1587
1587
  - aggressive
1588
1588
  AutoCorrect: false
1589
1589
 
1590
+ Rails/UnknownEnv:
1591
+ Environments:
1592
+ - development
1593
+ - test
1594
+ - production
1595
+
1590
1596
  Rails/SkipsModelValidations:
1591
1597
  Blacklist:
1592
1598
  - decrement!
@@ -1607,3 +1613,6 @@ Rails/Validation:
1607
1613
 
1608
1614
  Bundler/OrderedGems:
1609
1615
  TreatCommentsAsGroupSeparators: true
1616
+
1617
+ Gemspec/OrderedDependencies:
1618
+ TreatCommentsAsGroupSeparators: true
@@ -499,6 +499,10 @@ Style/CommentAnnotation:
499
499
  StyleGuide: '#annotate-keywords'
500
500
  Enabled: true
501
501
 
502
+ Style/CommentedKeyword:
503
+ Description: 'Do not place comments on the same line as certain keywords.'
504
+ Enabled: true
505
+
502
506
  Style/ConditionalAssignment:
503
507
  Description: >-
504
508
  Use the return value of `if` and `case` statements for
@@ -506,6 +510,11 @@ Style/ConditionalAssignment:
506
510
  of assigning that variable inside of each branch.
507
511
  Enabled: true
508
512
 
513
+ Style/DateTime:
514
+ Description: 'Use Date or Time over DateTime.'
515
+ StyleGuide: '#date--time'
516
+ Enabled: true
517
+
509
518
  Style/DefWithParentheses:
510
519
  Description: 'Use def with parentheses when there are arguments.'
511
520
  StyleGuide: '#method-parens'
@@ -954,6 +963,11 @@ Style/StabbyLambdaParentheses:
954
963
  StyleGuide: '#stabby-lambda-with-args'
955
964
  Enabled: true
956
965
 
966
+ Style/StderrPuts:
967
+ Description: 'Use `warn` instead of `$stderr.puts`.'
968
+ StyleGuide: '#warn'
969
+ Enabled: true
970
+
957
971
  Style/StringLiterals:
958
972
  Description: 'Checks if uses of quotes match the configured preference.'
959
973
  StyleGuide: '#consistent-string-literals'
@@ -987,6 +1001,10 @@ Style/TernaryParentheses:
987
1001
  Description: 'Checks for use of parentheses around ternary conditions.'
988
1002
  Enabled: true
989
1003
 
1004
+ Style/MixinUsage:
1005
+ Description: 'Checks that `include`, `extend` and `prepend` exists at the top level.'
1006
+ Enabled: true
1007
+
990
1008
  Style/TrailingCommaInArguments:
991
1009
  Description: 'Checks for trailing comma in argument lists.'
992
1010
  StyleGuide: '#no-trailing-params-comma'
@@ -1264,13 +1282,7 @@ Lint/InterpolationCheck:
1264
1282
  Description: 'Raise warning for interpolation in single q strs'
1265
1283
  Enabled: true
1266
1284
 
1267
- Lint/InvalidCharacterLiteral:
1268
- Description: >-
1269
- Checks for invalid character literals with a non-escaped
1270
- whitespace character.
1271
- Enabled: true
1272
-
1273
- Lint/LiteralInCondition:
1285
+ Lint/LiteralAsCondition:
1274
1286
  Description: 'Checks of literals used in conditions.'
1275
1287
  Enabled: true
1276
1288
 
@@ -1331,6 +1343,16 @@ Lint/RedundantWithIndex:
1331
1343
  Description: 'Checks for redundant `with_index`.'
1332
1344
  Enabled: true
1333
1345
 
1346
+ Lint/RedundantWithObject:
1347
+ Description: 'Checks for redundant `with_object`.'
1348
+ Enabled: true
1349
+
1350
+ Lint/RegexpAsCondition:
1351
+ Description: >-
1352
+ Do not use regexp literal as a condition.
1353
+ The regexp literal matches `$_` implicitly.
1354
+ Enabled: true
1355
+
1334
1356
  Lint/RequireParentheses:
1335
1357
  Description: >-
1336
1358
  Use parentheses in the method call to avoid confusion
@@ -1395,6 +1417,10 @@ Lint/UnneededDisable:
1395
1417
  It must be explicitly disabled.
1396
1418
  Enabled: true
1397
1419
 
1420
+ Lint/UnneededRequireStatement:
1421
+ Description: 'Checks for unnecessary `require` statement.'
1422
+ Enabled: true
1423
+
1398
1424
  Lint/UnneededSplatExpansion:
1399
1425
  Description: 'Checks for splat unnecessarily being called on literals'
1400
1426
  Enabled: true
@@ -1786,6 +1812,10 @@ Rails/UniqBeforePluck:
1786
1812
  Description: 'Prefer the use of uniq or distinct before pluck.'
1787
1813
  Enabled: true
1788
1814
 
1815
+ Rails/UnknownEnv:
1816
+ Description: 'Use correct environment name.'
1817
+ Enabled: true
1818
+
1789
1819
  Rails/SkipsModelValidations:
1790
1820
  Description: >-
1791
1821
  Use methods that skips model validations with caution.
@@ -1853,3 +1883,10 @@ Bundler/OrderedGems:
1853
1883
  Include:
1854
1884
  - '**/Gemfile'
1855
1885
  - '**/gems.rb'
1886
+
1887
+ Gemspec/OrderedDependencies:
1888
+ Description: >-
1889
+ Dependencies in the gemspec should be alphabetically sorted.
1890
+ Enabled: true
1891
+ Include:
1892
+ - '**/*.gemspec'
@@ -13,534 +13,546 @@ require 'powerpack/string/blank'
13
13
  require 'powerpack/string/strip_indent'
14
14
  require 'unicode/display_width'
15
15
 
16
- require 'rubocop/version'
16
+ require_relative 'rubocop/version'
17
17
 
18
- require 'rubocop/path_util'
19
- require 'rubocop/platform'
20
- require 'rubocop/string_util'
21
- require 'rubocop/name_similarity'
22
- require 'rubocop/node_pattern'
23
- require 'rubocop/string_interpreter'
24
- require 'rubocop/ast/sexp'
25
- require 'rubocop/ast/node'
26
- require 'rubocop/ast/node/mixin/method_identifier_predicates'
27
- require 'rubocop/ast/node/mixin/binary_operator_node'
28
- require 'rubocop/ast/node/mixin/collection_node'
29
- require 'rubocop/ast/node/mixin/conditional_node'
30
- require 'rubocop/ast/node/mixin/hash_element_node'
31
- require 'rubocop/ast/node/mixin/method_dispatch_node'
32
- require 'rubocop/ast/node/mixin/modifier_node'
33
- require 'rubocop/ast/node/mixin/parameterized_node'
34
- require 'rubocop/ast/node/mixin/predicate_operator_node'
35
- require 'rubocop/ast/node/and_node'
36
- require 'rubocop/ast/node/args_node'
37
- require 'rubocop/ast/node/array_node'
38
- require 'rubocop/ast/node/block_node'
39
- require 'rubocop/ast/node/case_node'
40
- require 'rubocop/ast/node/def_node'
41
- require 'rubocop/ast/node/ensure_node'
42
- require 'rubocop/ast/node/for_node'
43
- require 'rubocop/ast/node/hash_node'
44
- require 'rubocop/ast/node/if_node'
45
- require 'rubocop/ast/node/keyword_splat_node'
46
- require 'rubocop/ast/node/or_node'
47
- require 'rubocop/ast/node/pair_node'
48
- require 'rubocop/ast/node/regexp_node'
49
- require 'rubocop/ast/node/resbody_node'
50
- require 'rubocop/ast/node/send_node'
51
- require 'rubocop/ast/node/super_node'
52
- require 'rubocop/ast/node/until_node'
53
- require 'rubocop/ast/node/when_node'
54
- require 'rubocop/ast/node/while_node'
55
- require 'rubocop/ast/node/yield_node'
56
- require 'rubocop/ast/builder'
57
- require 'rubocop/ast/traversal'
58
- require 'rubocop/error'
59
- require 'rubocop/warning'
18
+ require_relative 'rubocop/path_util'
19
+ require_relative 'rubocop/platform'
20
+ require_relative 'rubocop/string_util'
21
+ require_relative 'rubocop/name_similarity'
22
+ require_relative 'rubocop/node_pattern'
23
+ require_relative 'rubocop/string_interpreter'
24
+ require_relative 'rubocop/ast/sexp'
25
+ require_relative 'rubocop/ast/node'
26
+ require_relative 'rubocop/ast/node/mixin/method_identifier_predicates'
27
+ require_relative 'rubocop/ast/node/mixin/binary_operator_node'
28
+ require_relative 'rubocop/ast/node/mixin/collection_node'
29
+ require_relative 'rubocop/ast/node/mixin/conditional_node'
30
+ require_relative 'rubocop/ast/node/mixin/hash_element_node'
31
+ require_relative 'rubocop/ast/node/mixin/method_dispatch_node'
32
+ require_relative 'rubocop/ast/node/mixin/modifier_node'
33
+ require_relative 'rubocop/ast/node/mixin/parameterized_node'
34
+ require_relative 'rubocop/ast/node/mixin/predicate_operator_node'
35
+ require_relative 'rubocop/ast/node/and_node'
36
+ require_relative 'rubocop/ast/node/args_node'
37
+ require_relative 'rubocop/ast/node/array_node'
38
+ require_relative 'rubocop/ast/node/block_node'
39
+ require_relative 'rubocop/ast/node/case_node'
40
+ require_relative 'rubocop/ast/node/def_node'
41
+ require_relative 'rubocop/ast/node/ensure_node'
42
+ require_relative 'rubocop/ast/node/for_node'
43
+ require_relative 'rubocop/ast/node/hash_node'
44
+ require_relative 'rubocop/ast/node/if_node'
45
+ require_relative 'rubocop/ast/node/keyword_splat_node'
46
+ require_relative 'rubocop/ast/node/or_node'
47
+ require_relative 'rubocop/ast/node/pair_node'
48
+ require_relative 'rubocop/ast/node/regexp_node'
49
+ require_relative 'rubocop/ast/node/resbody_node'
50
+ require_relative 'rubocop/ast/node/send_node'
51
+ require_relative 'rubocop/ast/node/super_node'
52
+ require_relative 'rubocop/ast/node/until_node'
53
+ require_relative 'rubocop/ast/node/when_node'
54
+ require_relative 'rubocop/ast/node/while_node'
55
+ require_relative 'rubocop/ast/node/yield_node'
56
+ require_relative 'rubocop/ast/builder'
57
+ require_relative 'rubocop/ast/traversal'
58
+ require_relative 'rubocop/error'
59
+ require_relative 'rubocop/warning'
60
60
 
61
- require 'rubocop/cop/util'
62
- require 'rubocop/cop/offense'
63
- require 'rubocop/cop/message_annotator'
64
- require 'rubocop/cop/ignored_node'
65
- require 'rubocop/cop/autocorrect_logic'
66
- require 'rubocop/cop/badge'
67
- require 'rubocop/cop/registry'
68
- require 'rubocop/cop/cop'
69
- require 'rubocop/cop/commissioner'
70
- require 'rubocop/cop/corrector'
71
- require 'rubocop/cop/force'
72
- require 'rubocop/cop/severity'
73
- require 'rubocop/cop/generator'
61
+ require_relative 'rubocop/cop/util'
62
+ require_relative 'rubocop/cop/offense'
63
+ require_relative 'rubocop/cop/message_annotator'
64
+ require_relative 'rubocop/cop/ignored_node'
65
+ require_relative 'rubocop/cop/autocorrect_logic'
66
+ require_relative 'rubocop/cop/badge'
67
+ require_relative 'rubocop/cop/registry'
68
+ require_relative 'rubocop/cop/cop'
69
+ require_relative 'rubocop/cop/commissioner'
70
+ require_relative 'rubocop/cop/corrector'
71
+ require_relative 'rubocop/cop/force'
72
+ require_relative 'rubocop/cop/severity'
73
+ require_relative 'rubocop/cop/generator'
74
74
 
75
- require 'rubocop/cop/variable_force'
76
- require 'rubocop/cop/variable_force/branch'
77
- require 'rubocop/cop/variable_force/branchable'
78
- require 'rubocop/cop/variable_force/variable'
79
- require 'rubocop/cop/variable_force/assignment'
80
- require 'rubocop/cop/variable_force/reference'
81
- require 'rubocop/cop/variable_force/scope'
82
- require 'rubocop/cop/variable_force/variable_table'
75
+ require_relative 'rubocop/cop/variable_force'
76
+ require_relative 'rubocop/cop/variable_force/branch'
77
+ require_relative 'rubocop/cop/variable_force/branchable'
78
+ require_relative 'rubocop/cop/variable_force/variable'
79
+ require_relative 'rubocop/cop/variable_force/assignment'
80
+ require_relative 'rubocop/cop/variable_force/reference'
81
+ require_relative 'rubocop/cop/variable_force/scope'
82
+ require_relative 'rubocop/cop/variable_force/variable_table'
83
83
 
84
- require 'rubocop/cop/mixin/annotation_comment'
85
- require 'rubocop/cop/mixin/array_hash_indentation'
86
- require 'rubocop/cop/mixin/array_min_size'
87
- require 'rubocop/cop/mixin/array_syntax'
88
- require 'rubocop/cop/mixin/autocorrect_alignment'
89
- require 'rubocop/cop/mixin/check_assignment'
90
- require 'rubocop/cop/mixin/configurable_max'
91
- require 'rubocop/cop/mixin/code_length' # relies on configurable_max
92
- require 'rubocop/cop/mixin/classish_length' # relies on code_length
93
- require 'rubocop/cop/mixin/configurable_enforced_style'
94
- require 'rubocop/cop/mixin/configurable_formatting'
95
- require 'rubocop/cop/mixin/configurable_naming'
96
- require 'rubocop/cop/mixin/configurable_numbering'
97
- require 'rubocop/cop/mixin/def_node'
98
- require 'rubocop/cop/mixin/documentation_comment'
99
- require 'rubocop/cop/mixin/duplication'
100
- require 'rubocop/cop/mixin/empty_lines_around_body'
101
- require 'rubocop/cop/mixin/end_keyword_alignment'
102
- require 'rubocop/cop/mixin/enforce_superclass'
103
- require 'rubocop/cop/mixin/first_element_line_break'
104
- require 'rubocop/cop/mixin/frozen_string_literal'
105
- require 'rubocop/cop/mixin/hash_alignment'
106
- require 'rubocop/cop/mixin/ignored_pattern'
107
- require 'rubocop/cop/mixin/integer_node'
108
- require 'rubocop/cop/mixin/match_range'
109
- require 'rubocop/cop/mixin/method_complexity'
110
- require 'rubocop/cop/mixin/method_preference'
111
- require 'rubocop/cop/mixin/min_body_length'
112
- require 'rubocop/cop/mixin/multiline_expression_indentation'
113
- require 'rubocop/cop/mixin/multiline_literal_brace_layout'
114
- require 'rubocop/cop/mixin/negative_conditional'
115
- require 'rubocop/cop/mixin/heredoc'
116
- require 'rubocop/cop/mixin/on_normal_if_unless'
117
- require 'rubocop/cop/mixin/parentheses'
118
- require 'rubocop/cop/mixin/parser_diagnostic'
119
- require 'rubocop/cop/mixin/percent_array'
120
- require 'rubocop/cop/mixin/percent_literal'
121
- require 'rubocop/cop/mixin/preceding_following_alignment'
122
- require 'rubocop/cop/mixin/rescue_node'
123
- require 'rubocop/cop/mixin/safe_assignment'
124
- require 'rubocop/cop/mixin/safe_mode'
125
- require 'rubocop/cop/mixin/space_after_punctuation'
126
- require 'rubocop/cop/mixin/space_before_punctuation'
127
- require 'rubocop/cop/mixin/surrounding_space'
128
- require 'rubocop/cop/mixin/space_inside' # relies on surrounding_space
129
- require 'rubocop/cop/mixin/statement_modifier'
130
- require 'rubocop/cop/mixin/string_help'
131
- require 'rubocop/cop/mixin/string_literals_help'
132
- require 'rubocop/cop/mixin/target_ruby_version'
133
- require 'rubocop/cop/mixin/target_rails_version'
134
- require 'rubocop/cop/mixin/too_many_lines'
135
- require 'rubocop/cop/mixin/trailing_comma'
136
- require 'rubocop/cop/mixin/unused_argument'
84
+ require_relative 'rubocop/cop/mixin/annotation_comment'
85
+ require_relative 'rubocop/cop/mixin/array_hash_indentation'
86
+ require_relative 'rubocop/cop/mixin/array_min_size'
87
+ require_relative 'rubocop/cop/mixin/array_syntax'
88
+ require_relative 'rubocop/cop/mixin/autocorrect_alignment'
89
+ require_relative 'rubocop/cop/mixin/check_assignment'
90
+ require_relative 'rubocop/cop/mixin/configurable_max'
91
+ require_relative 'rubocop/cop/mixin/code_length' # relies on configurable_max
92
+ require_relative 'rubocop/cop/mixin/classish_length' # relies on code_length
93
+ require_relative 'rubocop/cop/mixin/configurable_enforced_style'
94
+ require_relative 'rubocop/cop/mixin/configurable_formatting'
95
+ require_relative 'rubocop/cop/mixin/configurable_naming'
96
+ require_relative 'rubocop/cop/mixin/configurable_numbering'
97
+ require_relative 'rubocop/cop/mixin/def_node'
98
+ require_relative 'rubocop/cop/mixin/documentation_comment'
99
+ require_relative 'rubocop/cop/mixin/duplication'
100
+ require_relative 'rubocop/cop/mixin/empty_lines_around_body'
101
+ require_relative 'rubocop/cop/mixin/end_keyword_alignment'
102
+ require_relative 'rubocop/cop/mixin/enforce_superclass'
103
+ require_relative 'rubocop/cop/mixin/first_element_line_break'
104
+ require_relative 'rubocop/cop/mixin/frozen_string_literal'
105
+ require_relative 'rubocop/cop/mixin/hash_alignment'
106
+ require_relative 'rubocop/cop/mixin/ignored_pattern'
107
+ require_relative 'rubocop/cop/mixin/integer_node'
108
+ require_relative 'rubocop/cop/mixin/match_range'
109
+ require_relative 'rubocop/cop/mixin/method_complexity'
110
+ require_relative 'rubocop/cop/mixin/method_preference'
111
+ require_relative 'rubocop/cop/mixin/min_body_length'
112
+ require_relative 'rubocop/cop/mixin/multiline_expression_indentation'
113
+ require_relative 'rubocop/cop/mixin/multiline_literal_brace_layout'
114
+ require_relative 'rubocop/cop/mixin/negative_conditional'
115
+ require_relative 'rubocop/cop/mixin/heredoc'
116
+ require_relative 'rubocop/cop/mixin/on_normal_if_unless'
117
+ require_relative 'rubocop/cop/mixin/ordered_gem_node'
118
+ require_relative 'rubocop/cop/mixin/parentheses'
119
+ require_relative 'rubocop/cop/mixin/parser_diagnostic'
120
+ require_relative 'rubocop/cop/mixin/percent_array'
121
+ require_relative 'rubocop/cop/mixin/percent_literal'
122
+ require_relative 'rubocop/cop/mixin/preceding_following_alignment'
123
+ require_relative 'rubocop/cop/mixin/rescue_node'
124
+ require_relative 'rubocop/cop/mixin/safe_assignment'
125
+ require_relative 'rubocop/cop/mixin/safe_mode'
126
+ require_relative 'rubocop/cop/mixin/space_after_punctuation'
127
+ require_relative 'rubocop/cop/mixin/space_before_punctuation'
128
+ require_relative 'rubocop/cop/mixin/surrounding_space'
129
+ require_relative 'rubocop/cop/mixin/space_inside' # relies on surrounding_space
130
+ require_relative 'rubocop/cop/mixin/statement_modifier'
131
+ require_relative 'rubocop/cop/mixin/string_help'
132
+ require_relative 'rubocop/cop/mixin/string_literals_help'
133
+ require_relative 'rubocop/cop/mixin/target_ruby_version'
134
+ require_relative 'rubocop/cop/mixin/target_rails_version'
135
+ require_relative 'rubocop/cop/mixin/too_many_lines'
136
+ require_relative 'rubocop/cop/mixin/trailing_comma'
137
+ require_relative 'rubocop/cop/mixin/unused_argument'
137
138
 
138
- require 'rubocop/cop/bundler/duplicated_gem'
139
- require 'rubocop/cop/bundler/insecure_protocol_source'
140
- require 'rubocop/cop/bundler/ordered_gems'
139
+ require_relative 'rubocop/cop/bundler/duplicated_gem'
140
+ require_relative 'rubocop/cop/bundler/insecure_protocol_source'
141
+ require_relative 'rubocop/cop/bundler/ordered_gems'
141
142
 
142
- require 'rubocop/cop/layout/access_modifier_indentation'
143
- require 'rubocop/cop/layout/align_array'
144
- require 'rubocop/cop/layout/align_hash'
145
- require 'rubocop/cop/layout/align_parameters'
146
- require 'rubocop/cop/layout/block_end_newline'
147
- require 'rubocop/cop/layout/case_indentation'
148
- require 'rubocop/cop/layout/closing_parenthesis_indentation'
149
- require 'rubocop/cop/layout/comment_indentation'
150
- require 'rubocop/cop/layout/dot_position'
151
- require 'rubocop/cop/layout/else_alignment'
152
- require 'rubocop/cop/layout/empty_line_after_magic_comment'
153
- require 'rubocop/cop/layout/empty_line_between_defs'
154
- require 'rubocop/cop/layout/empty_lines_around_access_modifier'
155
- require 'rubocop/cop/layout/empty_lines_around_begin_body'
156
- require 'rubocop/cop/layout/empty_lines_around_block_body'
157
- require 'rubocop/cop/layout/empty_lines_around_class_body'
158
- require 'rubocop/cop/layout/empty_lines_around_exception_handling_keywords'
159
- require 'rubocop/cop/layout/empty_lines_around_method_body'
160
- require 'rubocop/cop/layout/empty_lines_around_module_body'
161
- require 'rubocop/cop/layout/empty_lines'
162
- require 'rubocop/cop/layout/end_of_line'
163
- require 'rubocop/cop/layout/extra_spacing'
164
- require 'rubocop/cop/layout/first_array_element_line_break'
165
- require 'rubocop/cop/layout/first_hash_element_line_break'
166
- require 'rubocop/cop/layout/first_method_argument_line_break'
167
- require 'rubocop/cop/layout/first_method_parameter_line_break'
168
- require 'rubocop/cop/layout/first_parameter_indentation'
169
- require 'rubocop/cop/layout/indent_array'
170
- require 'rubocop/cop/layout/indent_assignment'
171
- require 'rubocop/cop/layout/indentation_consistency'
172
- require 'rubocop/cop/layout/indentation_width'
173
- require 'rubocop/cop/layout/indent_hash'
174
- require 'rubocop/cop/layout/indent_heredoc'
175
- require 'rubocop/cop/layout/initial_indentation'
176
- require 'rubocop/cop/layout/leading_comment_space'
177
- require 'rubocop/cop/layout/multiline_array_brace_layout'
178
- require 'rubocop/cop/layout/multiline_assignment_layout'
179
- require 'rubocop/cop/layout/multiline_block_layout'
180
- require 'rubocop/cop/layout/multiline_hash_brace_layout'
181
- require 'rubocop/cop/layout/multiline_method_call_brace_layout'
182
- require 'rubocop/cop/layout/multiline_method_call_indentation'
183
- require 'rubocop/cop/layout/multiline_method_definition_brace_layout'
184
- require 'rubocop/cop/layout/multiline_operation_indentation'
185
- require 'rubocop/cop/layout/rescue_ensure_alignment'
186
- require 'rubocop/cop/layout/space_after_colon'
187
- require 'rubocop/cop/layout/space_after_comma'
188
- require 'rubocop/cop/layout/space_after_method_name'
189
- require 'rubocop/cop/layout/space_after_not'
190
- require 'rubocop/cop/layout/space_after_semicolon'
191
- require 'rubocop/cop/layout/space_around_block_parameters'
192
- require 'rubocop/cop/layout/space_around_equals_in_parameter_default'
193
- require 'rubocop/cop/layout/space_around_keyword'
194
- require 'rubocop/cop/layout/space_around_operators'
195
- require 'rubocop/cop/layout/space_before_block_braces'
196
- require 'rubocop/cop/layout/space_before_comma'
197
- require 'rubocop/cop/layout/space_before_comment'
198
- require 'rubocop/cop/layout/space_before_first_arg'
199
- require 'rubocop/cop/layout/space_before_semicolon'
200
- require 'rubocop/cop/layout/space_in_lambda_literal'
201
- require 'rubocop/cop/layout/space_inside_array_percent_literal'
202
- require 'rubocop/cop/layout/space_inside_block_braces'
203
- require 'rubocop/cop/layout/space_inside_brackets'
204
- require 'rubocop/cop/layout/space_inside_hash_literal_braces'
205
- require 'rubocop/cop/layout/space_inside_parens'
206
- require 'rubocop/cop/layout/space_inside_percent_literal_delimiters'
207
- require 'rubocop/cop/layout/space_inside_range_literal'
208
- require 'rubocop/cop/layout/space_inside_string_interpolation'
209
- require 'rubocop/cop/layout/tab'
210
- require 'rubocop/cop/layout/trailing_blank_lines'
211
- require 'rubocop/cop/layout/trailing_whitespace'
143
+ require_relative 'rubocop/cop/gemspec/ordered_dependencies'
212
144
 
213
- require 'rubocop/cop/lint/ambiguous_block_association'
214
- require 'rubocop/cop/lint/ambiguous_operator'
215
- require 'rubocop/cop/lint/ambiguous_regexp_literal'
216
- require 'rubocop/cop/lint/assignment_in_condition'
217
- require 'rubocop/cop/lint/block_alignment'
218
- require 'rubocop/cop/lint/boolean_symbol'
219
- require 'rubocop/cop/lint/circular_argument_reference'
220
- require 'rubocop/cop/lint/condition_position'
221
- require 'rubocop/cop/lint/debugger'
222
- require 'rubocop/cop/lint/def_end_alignment'
223
- require 'rubocop/cop/lint/deprecated_class_methods'
224
- require 'rubocop/cop/lint/duplicate_case_condition'
225
- require 'rubocop/cop/lint/duplicate_methods'
226
- require 'rubocop/cop/lint/duplicated_key'
227
- require 'rubocop/cop/lint/each_with_object_argument'
228
- require 'rubocop/cop/lint/else_layout'
229
- require 'rubocop/cop/lint/empty_ensure'
230
- require 'rubocop/cop/lint/empty_expression'
231
- require 'rubocop/cop/lint/empty_interpolation'
232
- require 'rubocop/cop/lint/empty_when'
233
- require 'rubocop/cop/lint/end_alignment'
234
- require 'rubocop/cop/lint/end_in_method'
235
- require 'rubocop/cop/lint/ensure_return'
236
- require 'rubocop/cop/lint/float_out_of_range'
237
- require 'rubocop/cop/lint/format_parameter_mismatch'
238
- require 'rubocop/cop/lint/handle_exceptions'
239
- require 'rubocop/cop/lint/implicit_string_concatenation'
240
- require 'rubocop/cop/lint/inherit_exception'
241
- require 'rubocop/cop/lint/ineffective_access_modifier'
242
- require 'rubocop/cop/lint/interpolation_check'
243
- require 'rubocop/cop/lint/invalid_character_literal'
244
- require 'rubocop/cop/lint/literal_in_condition'
245
- require 'rubocop/cop/lint/literal_in_interpolation'
246
- require 'rubocop/cop/lint/loop'
247
- require 'rubocop/cop/lint/multiple_compare'
248
- require 'rubocop/cop/lint/nested_method_definition'
249
- require 'rubocop/cop/lint/next_without_accumulator'
250
- require 'rubocop/cop/lint/non_local_exit_from_iterator'
251
- require 'rubocop/cop/lint/parentheses_as_grouped_expression'
252
- require 'rubocop/cop/lint/percent_string_array'
253
- require 'rubocop/cop/lint/percent_symbol_array'
254
- require 'rubocop/cop/lint/rand_one'
255
- require 'rubocop/cop/lint/redundant_with_index'
256
- require 'rubocop/cop/lint/require_parentheses'
257
- require 'rubocop/cop/lint/rescue_exception'
258
- require 'rubocop/cop/lint/rescue_type'
259
- require 'rubocop/cop/lint/rescue_without_error_class'
260
- require 'rubocop/cop/lint/return_in_void_context'
261
- require 'rubocop/cop/lint/safe_navigation_chain'
262
- require 'rubocop/cop/lint/script_permission'
263
- require 'rubocop/cop/lint/shadowed_exception'
264
- require 'rubocop/cop/lint/shadowing_outer_local_variable'
265
- require 'rubocop/cop/lint/string_conversion_in_interpolation'
266
- require 'rubocop/cop/lint/syntax'
267
- require 'rubocop/cop/lint/underscore_prefixed_variable_name'
268
- require 'rubocop/cop/lint/unified_integer'
269
- require 'rubocop/cop/lint/unneeded_disable'
270
- require 'rubocop/cop/lint/unneeded_splat_expansion'
271
- require 'rubocop/cop/lint/unreachable_code'
272
- require 'rubocop/cop/lint/unused_block_argument'
273
- require 'rubocop/cop/lint/unused_method_argument'
274
- require 'rubocop/cop/lint/uri_escape_unescape'
275
- require 'rubocop/cop/lint/uri_regexp'
276
- require 'rubocop/cop/lint/useless_access_modifier'
277
- require 'rubocop/cop/lint/useless_assignment'
278
- require 'rubocop/cop/lint/useless_comparison'
279
- require 'rubocop/cop/lint/useless_else_without_rescue'
280
- require 'rubocop/cop/lint/useless_setter_call'
281
- require 'rubocop/cop/lint/void'
145
+ require_relative 'rubocop/cop/layout/access_modifier_indentation'
146
+ require_relative 'rubocop/cop/layout/align_array'
147
+ require_relative 'rubocop/cop/layout/align_hash'
148
+ require_relative 'rubocop/cop/layout/align_parameters'
149
+ require_relative 'rubocop/cop/layout/block_end_newline'
150
+ require_relative 'rubocop/cop/layout/case_indentation'
151
+ require_relative 'rubocop/cop/layout/closing_parenthesis_indentation'
152
+ require_relative 'rubocop/cop/layout/comment_indentation'
153
+ require_relative 'rubocop/cop/layout/dot_position'
154
+ require_relative 'rubocop/cop/layout/else_alignment'
155
+ require_relative 'rubocop/cop/layout/empty_line_after_magic_comment'
156
+ require_relative 'rubocop/cop/layout/empty_line_between_defs'
157
+ require_relative 'rubocop/cop/layout/empty_lines_around_access_modifier'
158
+ require_relative 'rubocop/cop/layout/empty_lines_around_begin_body'
159
+ require_relative 'rubocop/cop/layout/empty_lines_around_block_body'
160
+ require_relative 'rubocop/cop/layout/empty_lines_around_class_body'
161
+ require_relative 'rubocop/cop/layout/empty_lines_around_exception_handling_keywords' # rubocop:disable Metrics/LineLength
162
+ require_relative 'rubocop/cop/layout/empty_lines_around_method_body'
163
+ require_relative 'rubocop/cop/layout/empty_lines_around_module_body'
164
+ require_relative 'rubocop/cop/layout/empty_lines'
165
+ require_relative 'rubocop/cop/layout/end_of_line'
166
+ require_relative 'rubocop/cop/layout/extra_spacing'
167
+ require_relative 'rubocop/cop/layout/first_array_element_line_break'
168
+ require_relative 'rubocop/cop/layout/first_hash_element_line_break'
169
+ require_relative 'rubocop/cop/layout/first_method_argument_line_break'
170
+ require_relative 'rubocop/cop/layout/first_method_parameter_line_break'
171
+ require_relative 'rubocop/cop/layout/first_parameter_indentation'
172
+ require_relative 'rubocop/cop/layout/indent_array'
173
+ require_relative 'rubocop/cop/layout/indent_assignment'
174
+ require_relative 'rubocop/cop/layout/indentation_consistency'
175
+ require_relative 'rubocop/cop/layout/indentation_width'
176
+ require_relative 'rubocop/cop/layout/indent_hash'
177
+ require_relative 'rubocop/cop/layout/indent_heredoc'
178
+ require_relative 'rubocop/cop/layout/initial_indentation'
179
+ require_relative 'rubocop/cop/layout/leading_comment_space'
180
+ require_relative 'rubocop/cop/layout/multiline_array_brace_layout'
181
+ require_relative 'rubocop/cop/layout/multiline_assignment_layout'
182
+ require_relative 'rubocop/cop/layout/multiline_block_layout'
183
+ require_relative 'rubocop/cop/layout/multiline_hash_brace_layout'
184
+ require_relative 'rubocop/cop/layout/multiline_method_call_brace_layout'
185
+ require_relative 'rubocop/cop/layout/multiline_method_call_indentation'
186
+ require_relative 'rubocop/cop/layout/multiline_method_definition_brace_layout'
187
+ require_relative 'rubocop/cop/layout/multiline_operation_indentation'
188
+ require_relative 'rubocop/cop/layout/rescue_ensure_alignment'
189
+ require_relative 'rubocop/cop/layout/space_after_colon'
190
+ require_relative 'rubocop/cop/layout/space_after_comma'
191
+ require_relative 'rubocop/cop/layout/space_after_method_name'
192
+ require_relative 'rubocop/cop/layout/space_after_not'
193
+ require_relative 'rubocop/cop/layout/space_after_semicolon'
194
+ require_relative 'rubocop/cop/layout/space_around_block_parameters'
195
+ require_relative 'rubocop/cop/layout/space_around_equals_in_parameter_default'
196
+ require_relative 'rubocop/cop/layout/space_around_keyword'
197
+ require_relative 'rubocop/cop/layout/space_around_operators'
198
+ require_relative 'rubocop/cop/layout/space_before_block_braces'
199
+ require_relative 'rubocop/cop/layout/space_before_comma'
200
+ require_relative 'rubocop/cop/layout/space_before_comment'
201
+ require_relative 'rubocop/cop/layout/space_before_first_arg'
202
+ require_relative 'rubocop/cop/layout/space_before_semicolon'
203
+ require_relative 'rubocop/cop/layout/space_in_lambda_literal'
204
+ require_relative 'rubocop/cop/layout/space_inside_array_percent_literal'
205
+ require_relative 'rubocop/cop/layout/space_inside_block_braces'
206
+ require_relative 'rubocop/cop/layout/space_inside_brackets'
207
+ require_relative 'rubocop/cop/layout/space_inside_hash_literal_braces'
208
+ require_relative 'rubocop/cop/layout/space_inside_parens'
209
+ require_relative 'rubocop/cop/layout/space_inside_percent_literal_delimiters'
210
+ require_relative 'rubocop/cop/layout/space_inside_range_literal'
211
+ require_relative 'rubocop/cop/layout/space_inside_string_interpolation'
212
+ require_relative 'rubocop/cop/layout/tab'
213
+ require_relative 'rubocop/cop/layout/trailing_blank_lines'
214
+ require_relative 'rubocop/cop/layout/trailing_whitespace'
282
215
 
283
- require 'rubocop/cop/metrics/cyclomatic_complexity'
284
- require 'rubocop/cop/metrics/abc_size' # relies on cyclomatic_complexity
285
- require 'rubocop/cop/metrics/block_length'
286
- require 'rubocop/cop/metrics/block_nesting'
287
- require 'rubocop/cop/metrics/class_length'
288
- require 'rubocop/cop/metrics/line_length'
289
- require 'rubocop/cop/metrics/method_length'
290
- require 'rubocop/cop/metrics/module_length'
291
- require 'rubocop/cop/metrics/parameter_lists'
292
- require 'rubocop/cop/metrics/perceived_complexity'
216
+ require_relative 'rubocop/cop/lint/ambiguous_block_association'
217
+ require_relative 'rubocop/cop/lint/ambiguous_operator'
218
+ require_relative 'rubocop/cop/lint/ambiguous_regexp_literal'
219
+ require_relative 'rubocop/cop/lint/assignment_in_condition'
220
+ require_relative 'rubocop/cop/lint/block_alignment'
221
+ require_relative 'rubocop/cop/lint/boolean_symbol'
222
+ require_relative 'rubocop/cop/lint/circular_argument_reference'
223
+ require_relative 'rubocop/cop/lint/condition_position'
224
+ require_relative 'rubocop/cop/lint/debugger'
225
+ require_relative 'rubocop/cop/lint/def_end_alignment'
226
+ require_relative 'rubocop/cop/lint/deprecated_class_methods'
227
+ require_relative 'rubocop/cop/lint/duplicate_case_condition'
228
+ require_relative 'rubocop/cop/lint/duplicate_methods'
229
+ require_relative 'rubocop/cop/lint/duplicated_key'
230
+ require_relative 'rubocop/cop/lint/each_with_object_argument'
231
+ require_relative 'rubocop/cop/lint/else_layout'
232
+ require_relative 'rubocop/cop/lint/empty_ensure'
233
+ require_relative 'rubocop/cop/lint/empty_expression'
234
+ require_relative 'rubocop/cop/lint/empty_interpolation'
235
+ require_relative 'rubocop/cop/lint/empty_when'
236
+ require_relative 'rubocop/cop/lint/end_alignment'
237
+ require_relative 'rubocop/cop/lint/end_in_method'
238
+ require_relative 'rubocop/cop/lint/ensure_return'
239
+ require_relative 'rubocop/cop/lint/float_out_of_range'
240
+ require_relative 'rubocop/cop/lint/format_parameter_mismatch'
241
+ require_relative 'rubocop/cop/lint/handle_exceptions'
242
+ require_relative 'rubocop/cop/lint/implicit_string_concatenation'
243
+ require_relative 'rubocop/cop/lint/inherit_exception'
244
+ require_relative 'rubocop/cop/lint/ineffective_access_modifier'
245
+ require_relative 'rubocop/cop/lint/interpolation_check'
246
+ require_relative 'rubocop/cop/lint/literal_as_condition'
247
+ require_relative 'rubocop/cop/lint/literal_in_interpolation'
248
+ require_relative 'rubocop/cop/lint/loop'
249
+ require_relative 'rubocop/cop/lint/multiple_compare'
250
+ require_relative 'rubocop/cop/lint/nested_method_definition'
251
+ require_relative 'rubocop/cop/lint/next_without_accumulator'
252
+ require_relative 'rubocop/cop/lint/non_local_exit_from_iterator'
253
+ require_relative 'rubocop/cop/lint/parentheses_as_grouped_expression'
254
+ require_relative 'rubocop/cop/lint/percent_string_array'
255
+ require_relative 'rubocop/cop/lint/percent_symbol_array'
256
+ require_relative 'rubocop/cop/lint/rand_one'
257
+ require_relative 'rubocop/cop/lint/redundant_with_index'
258
+ require_relative 'rubocop/cop/lint/redundant_with_object'
259
+ require_relative 'rubocop/cop/lint/regexp_as_condition'
260
+ require_relative 'rubocop/cop/lint/require_parentheses'
261
+ require_relative 'rubocop/cop/lint/rescue_exception'
262
+ require_relative 'rubocop/cop/lint/rescue_type'
263
+ require_relative 'rubocop/cop/lint/rescue_without_error_class'
264
+ require_relative 'rubocop/cop/lint/return_in_void_context'
265
+ require_relative 'rubocop/cop/lint/safe_navigation_chain'
266
+ require_relative 'rubocop/cop/lint/script_permission'
267
+ require_relative 'rubocop/cop/lint/shadowed_exception'
268
+ require_relative 'rubocop/cop/lint/shadowing_outer_local_variable'
269
+ require_relative 'rubocop/cop/lint/string_conversion_in_interpolation'
270
+ require_relative 'rubocop/cop/lint/syntax'
271
+ require_relative 'rubocop/cop/lint/underscore_prefixed_variable_name'
272
+ require_relative 'rubocop/cop/lint/unified_integer'
273
+ require_relative 'rubocop/cop/lint/unneeded_disable'
274
+ require_relative 'rubocop/cop/lint/unneeded_require_statement'
275
+ require_relative 'rubocop/cop/lint/unneeded_splat_expansion'
276
+ require_relative 'rubocop/cop/lint/unreachable_code'
277
+ require_relative 'rubocop/cop/lint/unused_block_argument'
278
+ require_relative 'rubocop/cop/lint/unused_method_argument'
279
+ require_relative 'rubocop/cop/lint/uri_escape_unescape'
280
+ require_relative 'rubocop/cop/lint/uri_regexp'
281
+ require_relative 'rubocop/cop/lint/useless_access_modifier'
282
+ require_relative 'rubocop/cop/lint/useless_assignment'
283
+ require_relative 'rubocop/cop/lint/useless_comparison'
284
+ require_relative 'rubocop/cop/lint/useless_else_without_rescue'
285
+ require_relative 'rubocop/cop/lint/useless_setter_call'
286
+ require_relative 'rubocop/cop/lint/void'
293
287
 
294
- require 'rubocop/cop/naming/accessor_method_name'
295
- require 'rubocop/cop/naming/ascii_identifiers'
296
- require 'rubocop/cop/naming/class_and_module_camel_case'
297
- require 'rubocop/cop/naming/constant_name'
298
- require 'rubocop/cop/naming/file_name'
299
- require 'rubocop/cop/naming/heredoc_delimiter_case'
300
- require 'rubocop/cop/naming/heredoc_delimiter_naming'
301
- require 'rubocop/cop/naming/method_name'
302
- require 'rubocop/cop/naming/binary_operator_parameter_name'
303
- require 'rubocop/cop/naming/predicate_name'
304
- require 'rubocop/cop/naming/variable_name'
305
- require 'rubocop/cop/naming/variable_number'
288
+ require_relative 'rubocop/cop/metrics/cyclomatic_complexity'
289
+ # relies on cyclomatic_complexity
290
+ require_relative 'rubocop/cop/metrics/abc_size'
291
+ require_relative 'rubocop/cop/metrics/block_length'
292
+ require_relative 'rubocop/cop/metrics/block_nesting'
293
+ require_relative 'rubocop/cop/metrics/class_length'
294
+ require_relative 'rubocop/cop/metrics/line_length'
295
+ require_relative 'rubocop/cop/metrics/method_length'
296
+ require_relative 'rubocop/cop/metrics/module_length'
297
+ require_relative 'rubocop/cop/metrics/parameter_lists'
298
+ require_relative 'rubocop/cop/metrics/perceived_complexity'
306
299
 
307
- require 'rubocop/cop/performance/caller'
308
- require 'rubocop/cop/performance/case_when_splat'
309
- require 'rubocop/cop/performance/casecmp'
310
- require 'rubocop/cop/performance/count'
311
- require 'rubocop/cop/performance/detect'
312
- require 'rubocop/cop/performance/double_start_end_with'
313
- require 'rubocop/cop/performance/end_with'
314
- require 'rubocop/cop/performance/fixed_size'
315
- require 'rubocop/cop/performance/flat_map'
316
- require 'rubocop/cop/performance/hash_each_methods'
317
- require 'rubocop/cop/performance/lstrip_rstrip'
318
- require 'rubocop/cop/performance/range_include'
319
- require 'rubocop/cop/performance/redundant_block_call'
320
- require 'rubocop/cop/performance/redundant_match'
321
- require 'rubocop/cop/performance/redundant_merge'
322
- require 'rubocop/cop/performance/redundant_sort_by'
323
- require 'rubocop/cop/performance/regexp_match'
324
- require 'rubocop/cop/performance/reverse_each'
325
- require 'rubocop/cop/performance/sample'
326
- require 'rubocop/cop/performance/size'
327
- require 'rubocop/cop/performance/compare_with_block'
328
- require 'rubocop/cop/performance/start_with'
329
- require 'rubocop/cop/performance/string_replacement'
330
- require 'rubocop/cop/performance/times_map'
331
- require 'rubocop/cop/performance/unfreeze_string'
332
- require 'rubocop/cop/performance/uri_default_parser'
300
+ require_relative 'rubocop/cop/naming/accessor_method_name'
301
+ require_relative 'rubocop/cop/naming/ascii_identifiers'
302
+ require_relative 'rubocop/cop/naming/class_and_module_camel_case'
303
+ require_relative 'rubocop/cop/naming/constant_name'
304
+ require_relative 'rubocop/cop/naming/file_name'
305
+ require_relative 'rubocop/cop/naming/heredoc_delimiter_case'
306
+ require_relative 'rubocop/cop/naming/heredoc_delimiter_naming'
307
+ require_relative 'rubocop/cop/naming/method_name'
308
+ require_relative 'rubocop/cop/naming/binary_operator_parameter_name'
309
+ require_relative 'rubocop/cop/naming/predicate_name'
310
+ require_relative 'rubocop/cop/naming/variable_name'
311
+ require_relative 'rubocop/cop/naming/variable_number'
333
312
 
334
- require 'rubocop/cop/style/alias'
335
- require 'rubocop/cop/style/and_or'
336
- require 'rubocop/cop/style/array_join'
337
- require 'rubocop/cop/style/ascii_comments'
338
- require 'rubocop/cop/style/attr'
339
- require 'rubocop/cop/style/auto_resource_cleanup'
340
- require 'rubocop/cop/style/bare_percent_literals'
341
- require 'rubocop/cop/style/begin_block'
342
- require 'rubocop/cop/style/block_comments'
343
- require 'rubocop/cop/style/block_delimiters'
344
- require 'rubocop/cop/style/braces_around_hash_parameters'
345
- require 'rubocop/cop/style/case_equality'
346
- require 'rubocop/cop/style/character_literal'
347
- require 'rubocop/cop/style/class_and_module_children'
348
- require 'rubocop/cop/style/class_check'
349
- require 'rubocop/cop/style/class_methods'
350
- require 'rubocop/cop/style/class_vars'
351
- require 'rubocop/cop/style/collection_methods'
352
- require 'rubocop/cop/style/colon_method_call'
353
- require 'rubocop/cop/style/command_literal'
354
- require 'rubocop/cop/style/comment_annotation'
355
- require 'rubocop/cop/style/conditional_assignment'
356
- require 'rubocop/cop/style/copyright'
357
- require 'rubocop/cop/style/def_with_parentheses'
358
- require 'rubocop/cop/style/dir'
359
- require 'rubocop/cop/style/documentation_method'
360
- require 'rubocop/cop/style/documentation'
361
- require 'rubocop/cop/style/double_negation'
362
- require 'rubocop/cop/style/each_for_simple_loop'
363
- require 'rubocop/cop/style/each_with_object'
364
- require 'rubocop/cop/style/empty_case_condition'
365
- require 'rubocop/cop/style/empty_else'
366
- require 'rubocop/cop/style/empty_literal'
367
- require 'rubocop/cop/style/empty_method'
368
- require 'rubocop/cop/style/encoding'
369
- require 'rubocop/cop/style/end_block'
370
- require 'rubocop/cop/style/even_odd'
371
- require 'rubocop/cop/style/flip_flop'
372
- require 'rubocop/cop/style/for'
373
- require 'rubocop/cop/style/format_string'
374
- require 'rubocop/cop/style/format_string_token'
375
- require 'rubocop/cop/style/frozen_string_literal_comment'
376
- require 'rubocop/cop/style/global_vars'
377
- require 'rubocop/cop/style/guard_clause'
378
- require 'rubocop/cop/style/hash_syntax'
379
- require 'rubocop/cop/style/identical_conditional_branches'
380
- require 'rubocop/cop/style/if_inside_else'
381
- require 'rubocop/cop/style/if_unless_modifier'
382
- require 'rubocop/cop/style/if_unless_modifier_of_if_unless'
383
- require 'rubocop/cop/style/if_with_semicolon'
384
- require 'rubocop/cop/style/implicit_runtime_error'
385
- require 'rubocop/cop/style/infinite_loop'
386
- require 'rubocop/cop/style/inverse_methods'
387
- require 'rubocop/cop/style/inline_comment'
388
- require 'rubocop/cop/style/lambda'
389
- require 'rubocop/cop/style/lambda_call'
390
- require 'rubocop/cop/style/line_end_concatenation'
391
- require 'rubocop/cop/style/method_call_without_args_parentheses'
392
- require 'rubocop/cop/style/method_call_with_args_parentheses'
393
- require 'rubocop/cop/style/method_called_on_do_end_block'
394
- require 'rubocop/cop/style/method_def_parentheses'
395
- require 'rubocop/cop/style/method_missing'
396
- require 'rubocop/cop/style/min_max'
397
- require 'rubocop/cop/style/missing_else'
398
- require 'rubocop/cop/style/mixin_grouping'
399
- require 'rubocop/cop/style/module_function'
400
- require 'rubocop/cop/style/multiline_block_chain'
401
- require 'rubocop/cop/style/multiline_if_then'
402
- require 'rubocop/cop/style/multiline_if_modifier'
403
- require 'rubocop/cop/style/multiline_memoization'
404
- require 'rubocop/cop/style/multiline_ternary_operator'
405
- require 'rubocop/cop/style/multiple_comparison'
406
- require 'rubocop/cop/style/mutable_constant'
407
- require 'rubocop/cop/style/negated_if'
408
- require 'rubocop/cop/style/negated_while'
409
- require 'rubocop/cop/style/nested_modifier'
410
- require 'rubocop/cop/style/nested_parenthesized_calls'
411
- require 'rubocop/cop/style/nested_ternary_operator'
412
- require 'rubocop/cop/style/next'
413
- require 'rubocop/cop/style/nil_comparison'
414
- require 'rubocop/cop/style/non_nil_check'
415
- require 'rubocop/cop/style/not'
416
- require 'rubocop/cop/style/numeric_literals'
417
- require 'rubocop/cop/style/numeric_literal_prefix'
418
- require 'rubocop/cop/style/numeric_predicate'
419
- require 'rubocop/cop/style/one_line_conditional'
420
- require 'rubocop/cop/style/or_assignment'
421
- require 'rubocop/cop/style/option_hash'
422
- require 'rubocop/cop/style/optional_arguments'
423
- require 'rubocop/cop/style/parallel_assignment'
424
- require 'rubocop/cop/style/parentheses_around_condition'
425
- require 'rubocop/cop/style/percent_literal_delimiters'
426
- require 'rubocop/cop/style/percent_q_literals'
427
- require 'rubocop/cop/style/perl_backrefs'
428
- require 'rubocop/cop/style/preferred_hash_methods'
429
- require 'rubocop/cop/style/proc'
430
- require 'rubocop/cop/style/raise_args'
431
- require 'rubocop/cop/style/redundant_begin'
432
- require 'rubocop/cop/style/redundant_exception'
433
- require 'rubocop/cop/style/redundant_freeze'
434
- require 'rubocop/cop/style/redundant_parentheses'
435
- require 'rubocop/cop/style/redundant_return'
436
- require 'rubocop/cop/style/redundant_self'
437
- require 'rubocop/cop/style/redundant_conditional'
438
- require 'rubocop/cop/style/regexp_literal'
439
- require 'rubocop/cop/style/rescue_modifier'
440
- require 'rubocop/cop/style/return_nil'
441
- require 'rubocop/cop/style/safe_navigation'
442
- require 'rubocop/cop/style/self_assignment'
443
- require 'rubocop/cop/style/semicolon'
444
- require 'rubocop/cop/style/send'
445
- require 'rubocop/cop/style/signal_exception'
446
- require 'rubocop/cop/style/single_line_block_params'
447
- require 'rubocop/cop/style/single_line_methods'
448
- require 'rubocop/cop/style/special_global_vars'
449
- require 'rubocop/cop/style/stabby_lambda_parentheses'
450
- require 'rubocop/cop/style/string_literals'
451
- require 'rubocop/cop/style/string_literals_in_interpolation'
452
- require 'rubocop/cop/style/string_methods'
453
- require 'rubocop/cop/style/struct_inheritance'
454
- require 'rubocop/cop/style/symbol_array'
455
- require 'rubocop/cop/style/symbol_literal'
456
- require 'rubocop/cop/style/symbol_proc'
457
- require 'rubocop/cop/style/ternary_parentheses'
458
- require 'rubocop/cop/style/trailing_comma_in_arguments'
459
- require 'rubocop/cop/style/trailing_comma_in_literal'
460
- require 'rubocop/cop/style/trailing_underscore_variable'
461
- require 'rubocop/cop/style/trivial_accessors'
462
- require 'rubocop/cop/style/unless_else'
463
- require 'rubocop/cop/style/unneeded_capital_w'
464
- require 'rubocop/cop/style/unneeded_interpolation'
465
- require 'rubocop/cop/style/unneeded_percent_q'
466
- require 'rubocop/cop/style/variable_interpolation'
467
- require 'rubocop/cop/style/when_then'
468
- require 'rubocop/cop/style/while_until_do'
469
- require 'rubocop/cop/style/while_until_modifier'
470
- require 'rubocop/cop/style/word_array'
471
- require 'rubocop/cop/style/yoda_condition'
472
- require 'rubocop/cop/style/zero_length_predicate'
313
+ require_relative 'rubocop/cop/performance/caller'
314
+ require_relative 'rubocop/cop/performance/case_when_splat'
315
+ require_relative 'rubocop/cop/performance/casecmp'
316
+ require_relative 'rubocop/cop/performance/count'
317
+ require_relative 'rubocop/cop/performance/detect'
318
+ require_relative 'rubocop/cop/performance/double_start_end_with'
319
+ require_relative 'rubocop/cop/performance/end_with'
320
+ require_relative 'rubocop/cop/performance/fixed_size'
321
+ require_relative 'rubocop/cop/performance/flat_map'
322
+ require_relative 'rubocop/cop/performance/hash_each_methods'
323
+ require_relative 'rubocop/cop/performance/lstrip_rstrip'
324
+ require_relative 'rubocop/cop/performance/range_include'
325
+ require_relative 'rubocop/cop/performance/redundant_block_call'
326
+ require_relative 'rubocop/cop/performance/redundant_match'
327
+ require_relative 'rubocop/cop/performance/redundant_merge'
328
+ require_relative 'rubocop/cop/performance/redundant_sort_by'
329
+ require_relative 'rubocop/cop/performance/regexp_match'
330
+ require_relative 'rubocop/cop/performance/reverse_each'
331
+ require_relative 'rubocop/cop/performance/sample'
332
+ require_relative 'rubocop/cop/performance/size'
333
+ require_relative 'rubocop/cop/performance/compare_with_block'
334
+ require_relative 'rubocop/cop/performance/start_with'
335
+ require_relative 'rubocop/cop/performance/string_replacement'
336
+ require_relative 'rubocop/cop/performance/times_map'
337
+ require_relative 'rubocop/cop/performance/unfreeze_string'
338
+ require_relative 'rubocop/cop/performance/uri_default_parser'
473
339
 
474
- require 'rubocop/cop/rails/action_filter'
475
- require 'rubocop/cop/rails/active_support_aliases'
476
- require 'rubocop/cop/rails/application_job'
477
- require 'rubocop/cop/rails/application_record'
478
- require 'rubocop/cop/rails/blank'
479
- require 'rubocop/cop/rails/date'
480
- require 'rubocop/cop/rails/dynamic_find_by'
481
- require 'rubocop/cop/rails/delegate'
482
- require 'rubocop/cop/rails/delegate_allow_blank'
483
- require 'rubocop/cop/rails/enum_uniqueness'
484
- require 'rubocop/cop/rails/exit'
485
- require 'rubocop/cop/rails/file_path'
486
- require 'rubocop/cop/rails/find_by'
487
- require 'rubocop/cop/rails/find_each'
488
- require 'rubocop/cop/rails/has_and_belongs_to_many'
489
- require 'rubocop/cop/rails/has_many_or_has_one_dependent'
490
- require 'rubocop/cop/rails/http_positional_arguments'
491
- require 'rubocop/cop/rails/not_null_column'
492
- require 'rubocop/cop/rails/output_safety'
493
- require 'rubocop/cop/rails/output'
494
- require 'rubocop/cop/rails/pluralization_grammar'
495
- require 'rubocop/cop/rails/present'
496
- require 'rubocop/cop/rails/read_write_attribute'
497
- require 'rubocop/cop/rails/request_referer'
498
- require 'rubocop/cop/rails/reversible_migration'
499
- require 'rubocop/cop/rails/relative_date_constant'
500
- require 'rubocop/cop/rails/safe_navigation'
501
- require 'rubocop/cop/rails/save_bang'
502
- require 'rubocop/cop/rails/scope_args'
503
- require 'rubocop/cop/rails/skips_model_validations'
504
- require 'rubocop/cop/rails/time_zone'
505
- require 'rubocop/cop/rails/uniq_before_pluck'
506
- require 'rubocop/cop/rails/validation'
340
+ require_relative 'rubocop/cop/style/alias'
341
+ require_relative 'rubocop/cop/style/and_or'
342
+ require_relative 'rubocop/cop/style/array_join'
343
+ require_relative 'rubocop/cop/style/ascii_comments'
344
+ require_relative 'rubocop/cop/style/attr'
345
+ require_relative 'rubocop/cop/style/auto_resource_cleanup'
346
+ require_relative 'rubocop/cop/style/bare_percent_literals'
347
+ require_relative 'rubocop/cop/style/begin_block'
348
+ require_relative 'rubocop/cop/style/block_comments'
349
+ require_relative 'rubocop/cop/style/block_delimiters'
350
+ require_relative 'rubocop/cop/style/braces_around_hash_parameters'
351
+ require_relative 'rubocop/cop/style/case_equality'
352
+ require_relative 'rubocop/cop/style/character_literal'
353
+ require_relative 'rubocop/cop/style/class_and_module_children'
354
+ require_relative 'rubocop/cop/style/class_check'
355
+ require_relative 'rubocop/cop/style/class_methods'
356
+ require_relative 'rubocop/cop/style/class_vars'
357
+ require_relative 'rubocop/cop/style/collection_methods'
358
+ require_relative 'rubocop/cop/style/colon_method_call'
359
+ require_relative 'rubocop/cop/style/command_literal'
360
+ require_relative 'rubocop/cop/style/comment_annotation'
361
+ require_relative 'rubocop/cop/style/commented_keyword'
362
+ require_relative 'rubocop/cop/style/conditional_assignment'
363
+ require_relative 'rubocop/cop/style/copyright'
364
+ require_relative 'rubocop/cop/style/date_time'
365
+ require_relative 'rubocop/cop/style/def_with_parentheses'
366
+ require_relative 'rubocop/cop/style/dir'
367
+ require_relative 'rubocop/cop/style/documentation_method'
368
+ require_relative 'rubocop/cop/style/documentation'
369
+ require_relative 'rubocop/cop/style/double_negation'
370
+ require_relative 'rubocop/cop/style/each_for_simple_loop'
371
+ require_relative 'rubocop/cop/style/each_with_object'
372
+ require_relative 'rubocop/cop/style/empty_case_condition'
373
+ require_relative 'rubocop/cop/style/empty_else'
374
+ require_relative 'rubocop/cop/style/empty_literal'
375
+ require_relative 'rubocop/cop/style/empty_method'
376
+ require_relative 'rubocop/cop/style/encoding'
377
+ require_relative 'rubocop/cop/style/end_block'
378
+ require_relative 'rubocop/cop/style/even_odd'
379
+ require_relative 'rubocop/cop/style/flip_flop'
380
+ require_relative 'rubocop/cop/style/for'
381
+ require_relative 'rubocop/cop/style/format_string'
382
+ require_relative 'rubocop/cop/style/format_string_token'
383
+ require_relative 'rubocop/cop/style/frozen_string_literal_comment'
384
+ require_relative 'rubocop/cop/style/global_vars'
385
+ require_relative 'rubocop/cop/style/guard_clause'
386
+ require_relative 'rubocop/cop/style/hash_syntax'
387
+ require_relative 'rubocop/cop/style/identical_conditional_branches'
388
+ require_relative 'rubocop/cop/style/if_inside_else'
389
+ require_relative 'rubocop/cop/style/if_unless_modifier'
390
+ require_relative 'rubocop/cop/style/if_unless_modifier_of_if_unless'
391
+ require_relative 'rubocop/cop/style/if_with_semicolon'
392
+ require_relative 'rubocop/cop/style/implicit_runtime_error'
393
+ require_relative 'rubocop/cop/style/infinite_loop'
394
+ require_relative 'rubocop/cop/style/inverse_methods'
395
+ require_relative 'rubocop/cop/style/inline_comment'
396
+ require_relative 'rubocop/cop/style/lambda'
397
+ require_relative 'rubocop/cop/style/lambda_call'
398
+ require_relative 'rubocop/cop/style/line_end_concatenation'
399
+ require_relative 'rubocop/cop/style/method_call_without_args_parentheses'
400
+ require_relative 'rubocop/cop/style/method_call_with_args_parentheses'
401
+ require_relative 'rubocop/cop/style/method_called_on_do_end_block'
402
+ require_relative 'rubocop/cop/style/method_def_parentheses'
403
+ require_relative 'rubocop/cop/style/method_missing'
404
+ require_relative 'rubocop/cop/style/min_max'
405
+ require_relative 'rubocop/cop/style/missing_else'
406
+ require_relative 'rubocop/cop/style/mixin_grouping'
407
+ require_relative 'rubocop/cop/style/mixin_usage'
408
+ require_relative 'rubocop/cop/style/module_function'
409
+ require_relative 'rubocop/cop/style/multiline_block_chain'
410
+ require_relative 'rubocop/cop/style/multiline_if_then'
411
+ require_relative 'rubocop/cop/style/multiline_if_modifier'
412
+ require_relative 'rubocop/cop/style/multiline_memoization'
413
+ require_relative 'rubocop/cop/style/multiline_ternary_operator'
414
+ require_relative 'rubocop/cop/style/multiple_comparison'
415
+ require_relative 'rubocop/cop/style/mutable_constant'
416
+ require_relative 'rubocop/cop/style/negated_if'
417
+ require_relative 'rubocop/cop/style/negated_while'
418
+ require_relative 'rubocop/cop/style/nested_modifier'
419
+ require_relative 'rubocop/cop/style/nested_parenthesized_calls'
420
+ require_relative 'rubocop/cop/style/nested_ternary_operator'
421
+ require_relative 'rubocop/cop/style/next'
422
+ require_relative 'rubocop/cop/style/nil_comparison'
423
+ require_relative 'rubocop/cop/style/non_nil_check'
424
+ require_relative 'rubocop/cop/style/not'
425
+ require_relative 'rubocop/cop/style/numeric_literals'
426
+ require_relative 'rubocop/cop/style/numeric_literal_prefix'
427
+ require_relative 'rubocop/cop/style/numeric_predicate'
428
+ require_relative 'rubocop/cop/style/one_line_conditional'
429
+ require_relative 'rubocop/cop/style/or_assignment'
430
+ require_relative 'rubocop/cop/style/option_hash'
431
+ require_relative 'rubocop/cop/style/optional_arguments'
432
+ require_relative 'rubocop/cop/style/parallel_assignment'
433
+ require_relative 'rubocop/cop/style/parentheses_around_condition'
434
+ require_relative 'rubocop/cop/style/percent_literal_delimiters'
435
+ require_relative 'rubocop/cop/style/percent_q_literals'
436
+ require_relative 'rubocop/cop/style/perl_backrefs'
437
+ require_relative 'rubocop/cop/style/preferred_hash_methods'
438
+ require_relative 'rubocop/cop/style/proc'
439
+ require_relative 'rubocop/cop/style/raise_args'
440
+ require_relative 'rubocop/cop/style/redundant_begin'
441
+ require_relative 'rubocop/cop/style/redundant_exception'
442
+ require_relative 'rubocop/cop/style/redundant_freeze'
443
+ require_relative 'rubocop/cop/style/redundant_parentheses'
444
+ require_relative 'rubocop/cop/style/redundant_return'
445
+ require_relative 'rubocop/cop/style/redundant_self'
446
+ require_relative 'rubocop/cop/style/redundant_conditional'
447
+ require_relative 'rubocop/cop/style/regexp_literal'
448
+ require_relative 'rubocop/cop/style/rescue_modifier'
449
+ require_relative 'rubocop/cop/style/return_nil'
450
+ require_relative 'rubocop/cop/style/safe_navigation'
451
+ require_relative 'rubocop/cop/style/self_assignment'
452
+ require_relative 'rubocop/cop/style/semicolon'
453
+ require_relative 'rubocop/cop/style/send'
454
+ require_relative 'rubocop/cop/style/signal_exception'
455
+ require_relative 'rubocop/cop/style/single_line_block_params'
456
+ require_relative 'rubocop/cop/style/single_line_methods'
457
+ require_relative 'rubocop/cop/style/special_global_vars'
458
+ require_relative 'rubocop/cop/style/stabby_lambda_parentheses'
459
+ require_relative 'rubocop/cop/style/stderr_puts'
460
+ require_relative 'rubocop/cop/style/string_literals'
461
+ require_relative 'rubocop/cop/style/string_literals_in_interpolation'
462
+ require_relative 'rubocop/cop/style/string_methods'
463
+ require_relative 'rubocop/cop/style/struct_inheritance'
464
+ require_relative 'rubocop/cop/style/symbol_array'
465
+ require_relative 'rubocop/cop/style/symbol_literal'
466
+ require_relative 'rubocop/cop/style/symbol_proc'
467
+ require_relative 'rubocop/cop/style/ternary_parentheses'
468
+ require_relative 'rubocop/cop/style/trailing_comma_in_arguments'
469
+ require_relative 'rubocop/cop/style/trailing_comma_in_literal'
470
+ require_relative 'rubocop/cop/style/trailing_underscore_variable'
471
+ require_relative 'rubocop/cop/style/trivial_accessors'
472
+ require_relative 'rubocop/cop/style/unless_else'
473
+ require_relative 'rubocop/cop/style/unneeded_capital_w'
474
+ require_relative 'rubocop/cop/style/unneeded_interpolation'
475
+ require_relative 'rubocop/cop/style/unneeded_percent_q'
476
+ require_relative 'rubocop/cop/style/variable_interpolation'
477
+ require_relative 'rubocop/cop/style/when_then'
478
+ require_relative 'rubocop/cop/style/while_until_do'
479
+ require_relative 'rubocop/cop/style/while_until_modifier'
480
+ require_relative 'rubocop/cop/style/word_array'
481
+ require_relative 'rubocop/cop/style/yoda_condition'
482
+ require_relative 'rubocop/cop/style/zero_length_predicate'
507
483
 
508
- require 'rubocop/cop/security/eval'
509
- require 'rubocop/cop/security/json_load'
510
- require 'rubocop/cop/security/marshal_load'
511
- require 'rubocop/cop/security/yaml_load'
484
+ require_relative 'rubocop/cop/rails/action_filter'
485
+ require_relative 'rubocop/cop/rails/active_support_aliases'
486
+ require_relative 'rubocop/cop/rails/application_job'
487
+ require_relative 'rubocop/cop/rails/application_record'
488
+ require_relative 'rubocop/cop/rails/blank'
489
+ require_relative 'rubocop/cop/rails/date'
490
+ require_relative 'rubocop/cop/rails/dynamic_find_by'
491
+ require_relative 'rubocop/cop/rails/delegate'
492
+ require_relative 'rubocop/cop/rails/delegate_allow_blank'
493
+ require_relative 'rubocop/cop/rails/enum_uniqueness'
494
+ require_relative 'rubocop/cop/rails/exit'
495
+ require_relative 'rubocop/cop/rails/file_path'
496
+ require_relative 'rubocop/cop/rails/find_by'
497
+ require_relative 'rubocop/cop/rails/find_each'
498
+ require_relative 'rubocop/cop/rails/has_and_belongs_to_many'
499
+ require_relative 'rubocop/cop/rails/has_many_or_has_one_dependent'
500
+ require_relative 'rubocop/cop/rails/http_positional_arguments'
501
+ require_relative 'rubocop/cop/rails/not_null_column'
502
+ require_relative 'rubocop/cop/rails/output_safety'
503
+ require_relative 'rubocop/cop/rails/output'
504
+ require_relative 'rubocop/cop/rails/pluralization_grammar'
505
+ require_relative 'rubocop/cop/rails/present'
506
+ require_relative 'rubocop/cop/rails/read_write_attribute'
507
+ require_relative 'rubocop/cop/rails/request_referer'
508
+ require_relative 'rubocop/cop/rails/reversible_migration'
509
+ require_relative 'rubocop/cop/rails/relative_date_constant'
510
+ require_relative 'rubocop/cop/rails/safe_navigation'
511
+ require_relative 'rubocop/cop/rails/save_bang'
512
+ require_relative 'rubocop/cop/rails/scope_args'
513
+ require_relative 'rubocop/cop/rails/skips_model_validations'
514
+ require_relative 'rubocop/cop/rails/time_zone'
515
+ require_relative 'rubocop/cop/rails/uniq_before_pluck'
516
+ require_relative 'rubocop/cop/rails/unknown_env'
517
+ require_relative 'rubocop/cop/rails/validation'
512
518
 
513
- require 'rubocop/cop/team'
519
+ require_relative 'rubocop/cop/security/eval'
520
+ require_relative 'rubocop/cop/security/json_load'
521
+ require_relative 'rubocop/cop/security/marshal_load'
522
+ require_relative 'rubocop/cop/security/yaml_load'
514
523
 
515
- require 'rubocop/formatter/base_formatter'
516
- require 'rubocop/formatter/simple_text_formatter'
517
- require 'rubocop/formatter/clang_style_formatter' # relies on simple text
518
- require 'rubocop/formatter/disabled_config_formatter'
519
- require 'rubocop/formatter/disabled_lines_formatter'
520
- require 'rubocop/formatter/emacs_style_formatter'
521
- require 'rubocop/formatter/file_list_formatter'
522
- require 'rubocop/formatter/fuubar_style_formatter'
523
- require 'rubocop/formatter/html_formatter'
524
- require 'rubocop/formatter/json_formatter'
525
- require 'rubocop/formatter/offense_count_formatter'
526
- require 'rubocop/formatter/progress_formatter'
527
- require 'rubocop/formatter/tap_formatter'
528
- require 'rubocop/formatter/worst_offenders_formatter'
524
+ require_relative 'rubocop/cop/team'
529
525
 
530
- require 'rubocop/formatter/formatter_set'
526
+ require_relative 'rubocop/formatter/base_formatter'
527
+ require_relative 'rubocop/formatter/simple_text_formatter'
528
+ # relies on simple text
529
+ require_relative 'rubocop/formatter/clang_style_formatter'
530
+ require_relative 'rubocop/formatter/disabled_config_formatter'
531
+ require_relative 'rubocop/formatter/disabled_lines_formatter'
532
+ require_relative 'rubocop/formatter/emacs_style_formatter'
533
+ require_relative 'rubocop/formatter/file_list_formatter'
534
+ require_relative 'rubocop/formatter/fuubar_style_formatter'
535
+ require_relative 'rubocop/formatter/html_formatter'
536
+ require_relative 'rubocop/formatter/json_formatter'
537
+ require_relative 'rubocop/formatter/offense_count_formatter'
538
+ require_relative 'rubocop/formatter/progress_formatter'
539
+ require_relative 'rubocop/formatter/tap_formatter'
540
+ require_relative 'rubocop/formatter/worst_offenders_formatter'
531
541
 
532
- require 'rubocop/cached_data'
533
- require 'rubocop/config'
534
- require 'rubocop/config_loader_resolver'
535
- require 'rubocop/config_loader'
536
- require 'rubocop/config_store'
537
- require 'rubocop/target_finder'
538
- require 'rubocop/token'
539
- require 'rubocop/comment_config'
540
- require 'rubocop/magic_comment'
541
- require 'rubocop/processed_source'
542
- require 'rubocop/result_cache'
543
- require 'rubocop/runner'
544
- require 'rubocop/cli'
545
- require 'rubocop/options'
546
- require 'rubocop/remote_config'
542
+ require_relative 'rubocop/formatter/formatter_set'
543
+
544
+ require_relative 'rubocop/cached_data'
545
+ require_relative 'rubocop/config'
546
+ require_relative 'rubocop/config_loader_resolver'
547
+ require_relative 'rubocop/config_loader'
548
+ require_relative 'rubocop/config_store'
549
+ require_relative 'rubocop/target_finder'
550
+ require_relative 'rubocop/token'
551
+ require_relative 'rubocop/comment_config'
552
+ require_relative 'rubocop/magic_comment'
553
+ require_relative 'rubocop/processed_source'
554
+ require_relative 'rubocop/result_cache'
555
+ require_relative 'rubocop/runner'
556
+ require_relative 'rubocop/cli'
557
+ require_relative 'rubocop/options'
558
+ require_relative 'rubocop/remote_config'