rubocop 0.49.1 → 0.52.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (506) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +6 -9
  3. data/bin/rubocop +1 -1
  4. data/config/default.yml +264 -118
  5. data/config/disabled.yml +13 -9
  6. data/config/enabled.yml +1156 -918
  7. data/lib/rubocop.rb +555 -489
  8. data/lib/rubocop/ast/builder.rb +6 -1
  9. data/lib/rubocop/ast/node.rb +68 -52
  10. data/lib/rubocop/ast/node/args_node.rb +15 -10
  11. data/lib/rubocop/ast/node/array_node.rb +10 -1
  12. data/lib/rubocop/ast/node/block_node.rb +9 -0
  13. data/lib/rubocop/ast/node/def_node.rb +71 -0
  14. data/lib/rubocop/ast/node/for_node.rb +8 -0
  15. data/lib/rubocop/ast/node/if_node.rb +10 -2
  16. data/lib/rubocop/ast/node/mixin/basic_literal_node.rb +16 -0
  17. data/lib/rubocop/ast/node/mixin/collection_node.rb +15 -0
  18. data/lib/rubocop/ast/node/mixin/method_dispatch_node.rb +174 -0
  19. data/lib/rubocop/ast/node/mixin/method_identifier_predicates.rb +89 -0
  20. data/lib/rubocop/ast/node/mixin/parameterized_node.rb +18 -31
  21. data/lib/rubocop/ast/node/regexp_node.rb +35 -0
  22. data/lib/rubocop/ast/node/send_node.rb +21 -150
  23. data/lib/rubocop/ast/node/str_node.rb +14 -0
  24. data/lib/rubocop/ast/node/super_node.rb +3 -24
  25. data/lib/rubocop/ast/node/symbol_node.rb +20 -0
  26. data/lib/rubocop/ast/node/yield_node.rb +21 -0
  27. data/lib/rubocop/ast/traversal.rb +7 -7
  28. data/lib/rubocop/cached_data.rb +1 -6
  29. data/lib/rubocop/cli.rb +59 -13
  30. data/lib/rubocop/comment_config.rb +2 -5
  31. data/lib/rubocop/config.rb +136 -29
  32. data/lib/rubocop/config_loader.rb +61 -104
  33. data/lib/rubocop/config_loader_resolver.rb +102 -4
  34. data/lib/rubocop/cop/autocorrect_logic.rb +1 -1
  35. data/lib/rubocop/cop/bundler/duplicated_gem.rb +13 -11
  36. data/lib/rubocop/cop/bundler/insecure_protocol_source.rb +67 -0
  37. data/lib/rubocop/cop/bundler/ordered_gems.rb +7 -58
  38. data/lib/rubocop/cop/commissioner.rb +6 -3
  39. data/lib/rubocop/cop/cop.rb +11 -6
  40. data/lib/rubocop/cop/gemspec/duplicated_assignment.rb +102 -0
  41. data/lib/rubocop/cop/gemspec/ordered_dependencies.rb +97 -0
  42. data/lib/rubocop/cop/gemspec/required_ruby_version.rb +87 -0
  43. data/lib/rubocop/cop/generator.rb +122 -25
  44. data/lib/rubocop/cop/internal_affairs.rb +6 -2
  45. data/lib/rubocop/cop/internal_affairs/node_destructuring.rb +46 -0
  46. data/lib/rubocop/cop/internal_affairs/node_type_predicate.rb +16 -5
  47. data/lib/rubocop/cop/internal_affairs/offense_location_keyword.rb +54 -0
  48. data/lib/rubocop/cop/internal_affairs/redundant_location_argument.rb +59 -0
  49. data/lib/rubocop/cop/internal_affairs/redundant_message_argument.rb +71 -0
  50. data/lib/rubocop/cop/internal_affairs/useless_message_assertion.rb +3 -3
  51. data/lib/rubocop/cop/layout/access_modifier_indentation.rb +6 -10
  52. data/lib/rubocop/cop/layout/align_array.rb +2 -2
  53. data/lib/rubocop/cop/layout/align_hash.rb +18 -18
  54. data/lib/rubocop/cop/layout/align_parameters.rb +11 -23
  55. data/lib/rubocop/cop/layout/block_end_newline.rb +20 -6
  56. data/lib/rubocop/cop/layout/case_indentation.rb +15 -18
  57. data/lib/rubocop/cop/layout/class_structure.rb +306 -0
  58. data/lib/rubocop/cop/layout/closing_parenthesis_indentation.rb +7 -6
  59. data/lib/rubocop/cop/layout/comment_indentation.rb +42 -3
  60. data/lib/rubocop/cop/layout/dot_position.rb +31 -13
  61. data/lib/rubocop/cop/layout/else_alignment.rb +37 -17
  62. data/lib/rubocop/cop/layout/empty_line_after_magic_comment.rb +1 -1
  63. data/lib/rubocop/cop/layout/empty_line_between_defs.rb +22 -18
  64. data/lib/rubocop/cop/layout/empty_lines.rb +16 -2
  65. data/lib/rubocop/cop/layout/empty_lines_around_access_modifier.rb +23 -6
  66. data/lib/rubocop/cop/layout/empty_lines_around_arguments.rb +89 -0
  67. data/lib/rubocop/cop/layout/empty_lines_around_begin_body.rb +2 -2
  68. data/lib/rubocop/cop/layout/empty_lines_around_block_body.rb +4 -8
  69. data/lib/rubocop/cop/layout/empty_lines_around_class_body.rb +30 -5
  70. data/lib/rubocop/cop/layout/empty_lines_around_exception_handling_keywords.rb +10 -6
  71. data/lib/rubocop/cop/layout/empty_lines_around_method_body.rb +5 -5
  72. data/lib/rubocop/cop/layout/empty_lines_around_module_body.rb +22 -7
  73. data/lib/rubocop/cop/layout/end_of_line.rb +2 -2
  74. data/lib/rubocop/cop/layout/extra_spacing.rb +23 -26
  75. data/lib/rubocop/cop/layout/first_method_parameter_line_break.rb +3 -3
  76. data/lib/rubocop/cop/layout/first_parameter_indentation.rb +9 -3
  77. data/lib/rubocop/cop/layout/indent_array.rb +68 -21
  78. data/lib/rubocop/cop/layout/indent_hash.rb +71 -26
  79. data/lib/rubocop/cop/layout/indent_heredoc.rb +70 -35
  80. data/lib/rubocop/cop/layout/indentation_consistency.rb +1 -2
  81. data/lib/rubocop/cop/layout/indentation_width.rb +40 -27
  82. data/lib/rubocop/cop/layout/initial_indentation.rb +10 -7
  83. data/lib/rubocop/cop/layout/leading_comment_space.rb +32 -17
  84. data/lib/rubocop/cop/layout/multiline_array_brace_layout.rb +47 -14
  85. data/lib/rubocop/cop/layout/multiline_assignment_layout.rb +12 -11
  86. data/lib/rubocop/cop/layout/multiline_block_layout.rb +19 -16
  87. data/lib/rubocop/cop/layout/multiline_hash_brace_layout.rb +46 -13
  88. data/lib/rubocop/cop/layout/multiline_method_call_indentation.rb +29 -27
  89. data/lib/rubocop/cop/layout/multiline_method_definition_brace_layout.rb +7 -3
  90. data/lib/rubocop/cop/layout/multiline_operation_indentation.rb +6 -0
  91. data/lib/rubocop/cop/layout/rescue_ensure_alignment.rb +12 -4
  92. data/lib/rubocop/cop/layout/space_after_colon.rb +13 -6
  93. data/lib/rubocop/cop/layout/space_after_comma.rb +11 -1
  94. data/lib/rubocop/cop/layout/space_after_method_name.rb +8 -6
  95. data/lib/rubocop/cop/layout/space_after_not.rb +1 -1
  96. data/lib/rubocop/cop/layout/space_after_semicolon.rb +8 -1
  97. data/lib/rubocop/cop/layout/space_around_block_parameters.rb +32 -25
  98. data/lib/rubocop/cop/layout/space_around_equals_in_parameter_default.rb +28 -17
  99. data/lib/rubocop/cop/layout/space_around_keyword.rb +22 -16
  100. data/lib/rubocop/cop/layout/space_around_operators.rb +27 -14
  101. data/lib/rubocop/cop/layout/space_before_block_braces.rb +61 -12
  102. data/lib/rubocop/cop/layout/space_before_comma.rb +12 -1
  103. data/lib/rubocop/cop/layout/space_before_comment.rb +10 -5
  104. data/lib/rubocop/cop/layout/space_before_first_arg.rb +5 -4
  105. data/lib/rubocop/cop/layout/space_before_semicolon.rb +8 -1
  106. data/lib/rubocop/cop/layout/space_in_lambda_literal.rb +12 -14
  107. data/lib/rubocop/cop/layout/space_inside_array_literal_brackets.rb +235 -0
  108. data/lib/rubocop/cop/layout/space_inside_array_percent_literal.rb +4 -4
  109. data/lib/rubocop/cop/layout/space_inside_block_braces.rb +89 -18
  110. data/lib/rubocop/cop/layout/space_inside_hash_literal_braces.rb +62 -36
  111. data/lib/rubocop/cop/layout/space_inside_parens.rb +40 -3
  112. data/lib/rubocop/cop/layout/space_inside_percent_literal_delimiters.rb +1 -1
  113. data/lib/rubocop/cop/layout/space_inside_range_literal.rb +15 -15
  114. data/lib/rubocop/cop/layout/space_inside_reference_brackets.rb +81 -0
  115. data/lib/rubocop/cop/layout/space_inside_string_interpolation.rb +32 -17
  116. data/lib/rubocop/cop/layout/tab.rb +7 -4
  117. data/lib/rubocop/cop/layout/trailing_blank_lines.rb +11 -9
  118. data/lib/rubocop/cop/layout/trailing_whitespace.rb +1 -1
  119. data/lib/rubocop/cop/lint/ambiguous_block_association.rb +12 -19
  120. data/lib/rubocop/cop/lint/assignment_in_condition.rb +16 -2
  121. data/lib/rubocop/cop/lint/block_alignment.rb +42 -30
  122. data/lib/rubocop/cop/lint/boolean_symbol.rb +38 -0
  123. data/lib/rubocop/cop/lint/circular_argument_reference.rb +3 -14
  124. data/lib/rubocop/cop/lint/condition_position.rb +5 -1
  125. data/lib/rubocop/cop/lint/debugger.rb +18 -11
  126. data/lib/rubocop/cop/lint/def_end_alignment.rb +9 -14
  127. data/lib/rubocop/cop/lint/deprecated_class_methods.rb +4 -4
  128. data/lib/rubocop/cop/lint/duplicate_case_condition.rb +3 -3
  129. data/lib/rubocop/cop/lint/duplicate_methods.rb +75 -5
  130. data/lib/rubocop/cop/lint/duplicated_key.rb +1 -1
  131. data/lib/rubocop/cop/lint/each_with_object_argument.rb +1 -1
  132. data/lib/rubocop/cop/lint/else_layout.rb +3 -3
  133. data/lib/rubocop/cop/lint/empty_ensure.rb +1 -1
  134. data/lib/rubocop/cop/lint/empty_expression.rb +1 -1
  135. data/lib/rubocop/cop/lint/empty_interpolation.rb +1 -1
  136. data/lib/rubocop/cop/lint/empty_when.rb +1 -1
  137. data/lib/rubocop/cop/lint/end_alignment.rb +13 -14
  138. data/lib/rubocop/cop/lint/end_in_method.rb +1 -1
  139. data/lib/rubocop/cop/lint/ensure_return.rb +1 -1
  140. data/lib/rubocop/cop/lint/float_out_of_range.rb +5 -5
  141. data/lib/rubocop/cop/lint/format_parameter_mismatch.rb +36 -41
  142. data/lib/rubocop/cop/lint/handle_exceptions.rb +1 -1
  143. data/lib/rubocop/cop/lint/implicit_string_concatenation.rb +1 -1
  144. data/lib/rubocop/cop/lint/ineffective_access_modifier.rb +25 -20
  145. data/lib/rubocop/cop/lint/inherit_exception.rb +16 -19
  146. data/lib/rubocop/cop/lint/interpolation_check.rb +37 -0
  147. data/lib/rubocop/cop/lint/{literal_in_condition.rb → literal_as_condition.rb} +21 -7
  148. data/lib/rubocop/cop/lint/literal_in_interpolation.rb +1 -1
  149. data/lib/rubocop/cop/lint/loop.rb +1 -1
  150. data/lib/rubocop/cop/lint/missing_cop_enable_directive.rb +81 -0
  151. data/lib/rubocop/cop/lint/multiple_compare.rb +1 -1
  152. data/lib/rubocop/cop/lint/nested_method_definition.rb +6 -8
  153. data/lib/rubocop/cop/lint/nested_percent_literal.rb +58 -0
  154. data/lib/rubocop/cop/lint/next_without_accumulator.rb +1 -1
  155. data/lib/rubocop/cop/lint/non_local_exit_from_iterator.rb +4 -4
  156. data/lib/rubocop/cop/lint/parentheses_as_grouped_expression.rb +4 -3
  157. data/lib/rubocop/cop/lint/percent_string_array.rb +13 -22
  158. data/lib/rubocop/cop/lint/percent_symbol_array.rb +12 -12
  159. data/lib/rubocop/cop/lint/rand_one.rb +8 -2
  160. data/lib/rubocop/cop/lint/redundant_with_index.rb +80 -0
  161. data/lib/rubocop/cop/lint/redundant_with_object.rb +81 -0
  162. data/lib/rubocop/cop/lint/regexp_as_condition.rb +29 -0
  163. data/lib/rubocop/cop/lint/require_parentheses.rb +5 -3
  164. data/lib/rubocop/cop/lint/rescue_exception.rb +1 -1
  165. data/lib/rubocop/cop/lint/rescue_type.rb +18 -9
  166. data/lib/rubocop/cop/lint/return_in_void_context.rb +74 -0
  167. data/lib/rubocop/cop/lint/safe_navigation_chain.rb +1 -1
  168. data/lib/rubocop/cop/lint/script_permission.rb +8 -1
  169. data/lib/rubocop/cop/lint/shadowed_argument.rb +146 -0
  170. data/lib/rubocop/cop/lint/shadowed_exception.rb +37 -10
  171. data/lib/rubocop/cop/lint/shadowing_outer_local_variable.rb +1 -1
  172. data/lib/rubocop/cop/lint/string_conversion_in_interpolation.rb +7 -7
  173. data/lib/rubocop/cop/lint/syntax.rb +23 -20
  174. data/lib/rubocop/cop/lint/underscore_prefixed_variable_name.rb +1 -1
  175. data/lib/rubocop/cop/lint/unified_integer.rb +5 -4
  176. data/lib/rubocop/cop/lint/unneeded_disable.rb +41 -16
  177. data/lib/rubocop/cop/lint/unneeded_require_statement.rb +51 -0
  178. data/lib/rubocop/cop/lint/unneeded_splat_expansion.rb +45 -19
  179. data/lib/rubocop/cop/lint/unreachable_code.rb +53 -8
  180. data/lib/rubocop/cop/lint/unused_method_argument.rb +2 -1
  181. data/lib/rubocop/cop/lint/uri_escape_unescape.rb +74 -0
  182. data/lib/rubocop/cop/lint/uri_regexp.rb +73 -0
  183. data/lib/rubocop/cop/lint/useless_access_modifier.rb +12 -16
  184. data/lib/rubocop/cop/lint/useless_assignment.rb +1 -1
  185. data/lib/rubocop/cop/lint/useless_comparison.rb +1 -1
  186. data/lib/rubocop/cop/lint/useless_setter_call.rb +15 -12
  187. data/lib/rubocop/cop/lint/void.rb +38 -27
  188. data/lib/rubocop/cop/message_annotator.rb +4 -2
  189. data/lib/rubocop/cop/metrics/abc_size.rb +2 -2
  190. data/lib/rubocop/cop/metrics/block_nesting.rb +1 -1
  191. data/lib/rubocop/cop/metrics/class_length.rb +3 -1
  192. data/lib/rubocop/cop/metrics/cyclomatic_complexity.rb +2 -1
  193. data/lib/rubocop/cop/metrics/line_length.rb +8 -5
  194. data/lib/rubocop/cop/metrics/method_length.rb +8 -3
  195. data/lib/rubocop/cop/metrics/module_length.rb +3 -1
  196. data/lib/rubocop/cop/metrics/parameter_lists.rb +14 -5
  197. data/lib/rubocop/cop/metrics/perceived_complexity.rb +2 -1
  198. data/lib/rubocop/cop/mixin/array_hash_indentation.rb +3 -2
  199. data/lib/rubocop/cop/mixin/autocorrect_alignment.rb +2 -2
  200. data/lib/rubocop/cop/mixin/code_length.rb +1 -1
  201. data/lib/rubocop/cop/mixin/configurable_formatting.rb +1 -1
  202. data/lib/rubocop/cop/mixin/def_node.rb +1 -1
  203. data/lib/rubocop/cop/mixin/documentation_comment.rb +1 -1
  204. data/lib/rubocop/cop/mixin/empty_lines_around_body.rb +14 -7
  205. data/lib/rubocop/cop/mixin/empty_parameter.rb +23 -0
  206. data/lib/rubocop/cop/mixin/end_keyword_alignment.rb +8 -4
  207. data/lib/rubocop/cop/mixin/enforce_superclass.rb +3 -3
  208. data/lib/rubocop/cop/mixin/first_element_line_break.rb +12 -3
  209. data/lib/rubocop/cop/mixin/heredoc.rb +28 -0
  210. data/lib/rubocop/cop/mixin/method_complexity.rb +33 -7
  211. data/lib/rubocop/cop/mixin/multiline_expression_indentation.rb +74 -33
  212. data/lib/rubocop/cop/mixin/multiline_literal_brace_layout.rb +34 -8
  213. data/lib/rubocop/cop/mixin/negative_conditional.rb +4 -1
  214. data/lib/rubocop/cop/mixin/ordered_gem_node.rb +67 -0
  215. data/lib/rubocop/cop/mixin/parentheses.rb +12 -0
  216. data/lib/rubocop/cop/mixin/parser_diagnostic.rb +4 -1
  217. data/lib/rubocop/cop/mixin/percent_array.rb +52 -0
  218. data/lib/rubocop/cop/mixin/space_after_punctuation.rb +9 -8
  219. data/lib/rubocop/cop/mixin/space_before_punctuation.rb +11 -10
  220. data/lib/rubocop/cop/mixin/statement_modifier.rb +7 -17
  221. data/lib/rubocop/cop/mixin/string_help.rb +1 -1
  222. data/lib/rubocop/cop/mixin/string_literals_help.rb +1 -1
  223. data/lib/rubocop/cop/mixin/surrounding_space.rb +95 -8
  224. data/lib/rubocop/cop/mixin/too_many_lines.rb +2 -2
  225. data/lib/rubocop/cop/mixin/trailing_comma.rb +25 -17
  226. data/lib/rubocop/cop/mixin/unused_argument.rb +6 -2
  227. data/lib/rubocop/cop/naming/accessor_method_name.rb +55 -0
  228. data/lib/rubocop/cop/{style → naming}/ascii_identifiers.rb +35 -2
  229. data/lib/rubocop/cop/{style/op_method.rb → naming/binary_operator_parameter_name.rb} +7 -6
  230. data/lib/rubocop/cop/naming/class_and_module_camel_case.rb +33 -0
  231. data/lib/rubocop/cop/naming/constant_name.rb +58 -0
  232. data/lib/rubocop/cop/{style → naming}/file_name.rb +28 -13
  233. data/lib/rubocop/cop/naming/heredoc_delimiter_case.rb +62 -0
  234. data/lib/rubocop/cop/naming/heredoc_delimiter_naming.rb +59 -0
  235. data/lib/rubocop/cop/naming/method_name.rb +40 -0
  236. data/lib/rubocop/cop/naming/predicate_name.rb +101 -0
  237. data/lib/rubocop/cop/naming/variable_name.rb +50 -0
  238. data/lib/rubocop/cop/{style → naming}/variable_number.rb +11 -28
  239. data/lib/rubocop/cop/offense.rb +6 -1
  240. data/lib/rubocop/cop/performance/caller.rb +39 -11
  241. data/lib/rubocop/cop/performance/case_when_splat.rb +3 -7
  242. data/lib/rubocop/cop/performance/casecmp.rb +9 -8
  243. data/lib/rubocop/cop/performance/compare_with_block.rb +23 -13
  244. data/lib/rubocop/cop/performance/count.rb +7 -4
  245. data/lib/rubocop/cop/performance/detect.rb +9 -6
  246. data/lib/rubocop/cop/performance/double_start_end_with.rb +12 -20
  247. data/lib/rubocop/cop/performance/end_with.rb +6 -6
  248. data/lib/rubocop/cop/performance/fixed_size.rb +1 -1
  249. data/lib/rubocop/cop/performance/flat_map.rb +5 -2
  250. data/lib/rubocop/cop/performance/hash_each_methods.rb +85 -40
  251. data/lib/rubocop/cop/performance/lstrip_rstrip.rb +9 -6
  252. data/lib/rubocop/cop/performance/range_include.rb +3 -3
  253. data/lib/rubocop/cop/performance/redundant_block_call.rb +28 -28
  254. data/lib/rubocop/cop/performance/redundant_match.rb +13 -12
  255. data/lib/rubocop/cop/performance/redundant_merge.rb +44 -26
  256. data/lib/rubocop/cop/performance/redundant_sort_by.rb +9 -6
  257. data/lib/rubocop/cop/performance/regexp_match.rb +19 -10
  258. data/lib/rubocop/cop/performance/reverse_each.rb +1 -1
  259. data/lib/rubocop/cop/performance/sample.rb +1 -1
  260. data/lib/rubocop/cop/performance/size.rb +3 -3
  261. data/lib/rubocop/cop/performance/start_with.rb +6 -6
  262. data/lib/rubocop/cop/performance/string_replacement.rb +6 -6
  263. data/lib/rubocop/cop/performance/times_map.rb +32 -22
  264. data/lib/rubocop/cop/performance/unfreeze_string.rb +50 -0
  265. data/lib/rubocop/cop/performance/uri_default_parser.rb +47 -0
  266. data/lib/rubocop/cop/rails/action_filter.rb +23 -1
  267. data/lib/rubocop/cop/rails/active_support_aliases.rb +4 -5
  268. data/lib/rubocop/cop/rails/application_job.rb +5 -3
  269. data/lib/rubocop/cop/rails/application_record.rb +5 -3
  270. data/lib/rubocop/cop/rails/blank.rb +20 -17
  271. data/lib/rubocop/cop/rails/create_table_with_timestamps.rb +82 -0
  272. data/lib/rubocop/cop/rails/date.rb +7 -6
  273. data/lib/rubocop/cop/rails/delegate.rb +53 -29
  274. data/lib/rubocop/cop/rails/delegate_allow_blank.rb +4 -4
  275. data/lib/rubocop/cop/rails/dynamic_find_by.rb +2 -2
  276. data/lib/rubocop/cop/rails/enum_uniqueness.rb +4 -4
  277. data/lib/rubocop/cop/rails/environment_comparison.rb +66 -0
  278. data/lib/rubocop/cop/rails/exit.rb +8 -1
  279. data/lib/rubocop/cop/rails/file_path.rb +8 -11
  280. data/lib/rubocop/cop/rails/find_by.rb +2 -1
  281. data/lib/rubocop/cop/rails/find_each.rb +1 -1
  282. data/lib/rubocop/cop/rails/has_and_belongs_to_many.rb +8 -1
  283. data/lib/rubocop/cop/rails/has_many_or_has_one_dependent.rb +76 -0
  284. data/lib/rubocop/cop/rails/http_positional_arguments.rb +40 -44
  285. data/lib/rubocop/cop/rails/inverse_of.rb +96 -0
  286. data/lib/rubocop/cop/rails/lexically_scoped_action_filter.rb +112 -0
  287. data/lib/rubocop/cop/rails/not_null_column.rb +6 -6
  288. data/lib/rubocop/cop/rails/output.rb +11 -2
  289. data/lib/rubocop/cop/rails/output_safety.rb +16 -21
  290. data/lib/rubocop/cop/rails/pluralization_grammar.rb +10 -10
  291. data/lib/rubocop/cop/rails/presence.rb +105 -0
  292. data/lib/rubocop/cop/rails/present.rb +14 -17
  293. data/lib/rubocop/cop/rails/read_write_attribute.rb +13 -13
  294. data/lib/rubocop/cop/rails/redundant_receiver_in_with_options.rb +91 -0
  295. data/lib/rubocop/cop/rails/relative_date_constant.rb +11 -11
  296. data/lib/rubocop/cop/rails/request_referer.rb +3 -3
  297. data/lib/rubocop/cop/rails/reversible_migration.rb +36 -35
  298. data/lib/rubocop/cop/rails/safe_navigation.rb +7 -8
  299. data/lib/rubocop/cop/rails/save_bang.rb +19 -17
  300. data/lib/rubocop/cop/rails/scope_args.rb +2 -2
  301. data/lib/rubocop/cop/rails/skips_model_validations.rb +2 -2
  302. data/lib/rubocop/cop/rails/time_zone.rb +3 -2
  303. data/lib/rubocop/cop/rails/uniq_before_pluck.rb +4 -2
  304. data/lib/rubocop/cop/rails/unknown_env.rb +63 -0
  305. data/lib/rubocop/cop/rails/validation.rb +8 -8
  306. data/lib/rubocop/cop/registry.rb +2 -1
  307. data/lib/rubocop/cop/security/eval.rb +4 -4
  308. data/lib/rubocop/cop/security/json_load.rb +7 -5
  309. data/lib/rubocop/cop/security/marshal_load.rb +8 -6
  310. data/lib/rubocop/cop/security/yaml_load.rb +4 -4
  311. data/lib/rubocop/cop/style/alias.rb +49 -27
  312. data/lib/rubocop/cop/style/and_or.rb +65 -45
  313. data/lib/rubocop/cop/style/array_join.rb +10 -1
  314. data/lib/rubocop/cop/style/ascii_comments.rb +24 -4
  315. data/lib/rubocop/cop/style/attr.rb +15 -5
  316. data/lib/rubocop/cop/style/auto_resource_cleanup.rb +7 -5
  317. data/lib/rubocop/cop/style/bare_percent_literals.rb +31 -10
  318. data/lib/rubocop/cop/style/begin_block.rb +1 -1
  319. data/lib/rubocop/cop/style/block_comments.rb +17 -3
  320. data/lib/rubocop/cop/style/block_delimiters.rb +82 -16
  321. data/lib/rubocop/cop/style/braces_around_hash_parameters.rb +68 -32
  322. data/lib/rubocop/cop/style/case_equality.rb +13 -1
  323. data/lib/rubocop/cop/style/character_literal.rb +10 -0
  324. data/lib/rubocop/cop/style/class_and_module_children.rb +8 -4
  325. data/lib/rubocop/cop/style/class_check.rb +29 -10
  326. data/lib/rubocop/cop/style/class_methods.rb +10 -9
  327. data/lib/rubocop/cop/style/class_vars.rb +5 -4
  328. data/lib/rubocop/cop/style/collection_methods.rb +5 -3
  329. data/lib/rubocop/cop/style/colon_method_call.rb +18 -2
  330. data/lib/rubocop/cop/style/colon_method_definition.rb +36 -0
  331. data/lib/rubocop/cop/style/command_literal.rb +90 -30
  332. data/lib/rubocop/cop/style/comment_annotation.rb +39 -11
  333. data/lib/rubocop/cop/style/commented_keyword.rb +84 -0
  334. data/lib/rubocop/cop/style/conditional_assignment.rb +41 -41
  335. data/lib/rubocop/cop/style/copyright.rb +27 -28
  336. data/lib/rubocop/cop/style/date_time.rb +44 -0
  337. data/lib/rubocop/cop/style/def_with_parentheses.rb +31 -5
  338. data/lib/rubocop/cop/style/dir.rb +48 -0
  339. data/lib/rubocop/cop/style/documentation.rb +17 -2
  340. data/lib/rubocop/cop/style/documentation_method.rb +2 -6
  341. data/lib/rubocop/cop/style/double_negation.rb +1 -1
  342. data/lib/rubocop/cop/style/each_for_simple_loop.rb +8 -8
  343. data/lib/rubocop/cop/style/each_with_object.rb +6 -5
  344. data/lib/rubocop/cop/style/empty_block_parameter.rb +47 -0
  345. data/lib/rubocop/cop/style/empty_case_condition.rb +3 -3
  346. data/lib/rubocop/cop/style/empty_else.rb +55 -24
  347. data/lib/rubocop/cop/style/empty_lambda_parameter.rb +43 -0
  348. data/lib/rubocop/cop/style/empty_literal.rb +25 -14
  349. data/lib/rubocop/cop/style/empty_method.rb +29 -25
  350. data/lib/rubocop/cop/style/encoding.rb +8 -51
  351. data/lib/rubocop/cop/style/end_block.rb +1 -1
  352. data/lib/rubocop/cop/style/eval_with_location.rb +146 -0
  353. data/lib/rubocop/cop/style/even_odd.rb +4 -2
  354. data/lib/rubocop/cop/style/extend_self.rb +92 -0
  355. data/lib/rubocop/cop/style/flip_flop.rb +13 -2
  356. data/lib/rubocop/cop/style/for.rb +6 -2
  357. data/lib/rubocop/cop/style/format_string.rb +33 -5
  358. data/lib/rubocop/cop/style/format_string_token.rb +17 -15
  359. data/lib/rubocop/cop/style/frozen_string_literal_comment.rb +7 -6
  360. data/lib/rubocop/cop/style/global_vars.rb +12 -2
  361. data/lib/rubocop/cop/style/guard_clause.rb +6 -4
  362. data/lib/rubocop/cop/style/hash_syntax.rb +56 -56
  363. data/lib/rubocop/cop/style/identical_conditional_branches.rb +12 -8
  364. data/lib/rubocop/cop/style/if_inside_else.rb +11 -11
  365. data/lib/rubocop/cop/style/if_unless_modifier.rb +8 -7
  366. data/lib/rubocop/cop/style/if_unless_modifier_of_if_unless.rb +3 -2
  367. data/lib/rubocop/cop/style/if_with_semicolon.rb +10 -1
  368. data/lib/rubocop/cop/style/implicit_runtime_error.rb +7 -6
  369. data/lib/rubocop/cop/style/infinite_loop.rb +4 -4
  370. data/lib/rubocop/cop/style/inline_comment.rb +1 -1
  371. data/lib/rubocop/cop/style/inverse_methods.rb +24 -14
  372. data/lib/rubocop/cop/style/lambda.rb +45 -43
  373. data/lib/rubocop/cop/style/lambda_call.rb +37 -10
  374. data/lib/rubocop/cop/style/line_end_concatenation.rb +5 -5
  375. data/lib/rubocop/cop/style/method_call_with_args_parentheses.rb +3 -19
  376. data/lib/rubocop/cop/style/method_call_without_args_parentheses.rb +6 -4
  377. data/lib/rubocop/cop/style/method_called_on_do_end_block.rb +1 -1
  378. data/lib/rubocop/cop/style/method_def_parentheses.rb +20 -25
  379. data/lib/rubocop/cop/style/method_missing.rb +13 -26
  380. data/lib/rubocop/cop/style/min_max.rb +68 -0
  381. data/lib/rubocop/cop/style/missing_else.rb +20 -6
  382. data/lib/rubocop/cop/style/mixin_grouping.rb +31 -21
  383. data/lib/rubocop/cop/style/mixin_usage.rb +71 -0
  384. data/lib/rubocop/cop/style/module_function.rb +27 -11
  385. data/lib/rubocop/cop/style/multiline_block_chain.rb +1 -1
  386. data/lib/rubocop/cop/style/multiline_if_modifier.rb +8 -4
  387. data/lib/rubocop/cop/style/multiline_if_then.rb +15 -13
  388. data/lib/rubocop/cop/style/multiline_memoization.rb +33 -17
  389. data/lib/rubocop/cop/style/multiline_ternary_operator.rb +1 -1
  390. data/lib/rubocop/cop/style/multiple_comparison.rb +1 -1
  391. data/lib/rubocop/cop/style/mutable_constant.rb +11 -15
  392. data/lib/rubocop/cop/style/negated_if.rb +27 -31
  393. data/lib/rubocop/cop/style/negated_while.rb +1 -5
  394. data/lib/rubocop/cop/style/nested_modifier.rb +1 -1
  395. data/lib/rubocop/cop/style/nested_parenthesized_calls.rb +26 -23
  396. data/lib/rubocop/cop/style/nested_ternary_operator.rb +1 -1
  397. data/lib/rubocop/cop/style/next.rb +41 -12
  398. data/lib/rubocop/cop/style/nil_comparison.rb +8 -8
  399. data/lib/rubocop/cop/style/non_nil_check.rb +41 -38
  400. data/lib/rubocop/cop/style/not.rb +15 -5
  401. data/lib/rubocop/cop/style/numeric_literal_prefix.rb +8 -4
  402. data/lib/rubocop/cop/style/numeric_literals.rb +9 -9
  403. data/lib/rubocop/cop/style/numeric_predicate.rb +21 -21
  404. data/lib/rubocop/cop/style/one_line_conditional.rb +9 -4
  405. data/lib/rubocop/cop/style/option_hash.rb +11 -25
  406. data/lib/rubocop/cop/style/optional_arguments.rb +1 -2
  407. data/lib/rubocop/cop/style/or_assignment.rb +88 -0
  408. data/lib/rubocop/cop/style/parallel_assignment.rb +16 -16
  409. data/lib/rubocop/cop/style/parentheses_around_condition.rb +30 -13
  410. data/lib/rubocop/cop/style/percent_literal_delimiters.rb +25 -4
  411. data/lib/rubocop/cop/style/percent_q_literals.rb +29 -8
  412. data/lib/rubocop/cop/style/perl_backrefs.rb +8 -1
  413. data/lib/rubocop/cop/style/preferred_hash_methods.rb +7 -11
  414. data/lib/rubocop/cop/style/proc.rb +10 -2
  415. data/lib/rubocop/cop/style/raise_args.rb +22 -29
  416. data/lib/rubocop/cop/style/random_with_offset.rb +160 -0
  417. data/lib/rubocop/cop/style/redundant_begin.rb +16 -5
  418. data/lib/rubocop/cop/style/redundant_conditional.rb +96 -0
  419. data/lib/rubocop/cop/style/redundant_exception.rb +4 -4
  420. data/lib/rubocop/cop/style/redundant_freeze.rb +1 -1
  421. data/lib/rubocop/cop/style/redundant_parentheses.rb +14 -12
  422. data/lib/rubocop/cop/style/redundant_return.rb +28 -15
  423. data/lib/rubocop/cop/style/redundant_self.rb +35 -27
  424. data/lib/rubocop/cop/style/regexp_literal.rb +88 -27
  425. data/lib/rubocop/cop/style/rescue_modifier.rb +12 -1
  426. data/lib/rubocop/cop/style/rescue_standard_error.rb +122 -0
  427. data/lib/rubocop/cop/style/return_nil.rb +89 -0
  428. data/lib/rubocop/cop/style/safe_navigation.rb +100 -48
  429. data/lib/rubocop/cop/style/self_assignment.rb +13 -13
  430. data/lib/rubocop/cop/style/semicolon.rb +19 -9
  431. data/lib/rubocop/cop/style/send.rb +10 -1
  432. data/lib/rubocop/cop/style/signal_exception.rb +104 -3
  433. data/lib/rubocop/cop/style/single_line_block_params.rb +16 -15
  434. data/lib/rubocop/cop/style/single_line_methods.rb +26 -18
  435. data/lib/rubocop/cop/style/special_global_vars.rb +19 -14
  436. data/lib/rubocop/cop/style/stabby_lambda_parentheses.rb +23 -50
  437. data/lib/rubocop/cop/style/stderr_puts.rb +54 -0
  438. data/lib/rubocop/cop/style/string_hash_keys.rb +36 -0
  439. data/lib/rubocop/cop/style/string_literals.rb +26 -3
  440. data/lib/rubocop/cop/style/string_literals_in_interpolation.rb +16 -1
  441. data/lib/rubocop/cop/style/string_methods.rb +19 -8
  442. data/lib/rubocop/cop/style/struct_inheritance.rb +3 -3
  443. data/lib/rubocop/cop/style/symbol_array.rb +7 -35
  444. data/lib/rubocop/cop/style/symbol_literal.rb +1 -1
  445. data/lib/rubocop/cop/style/symbol_proc.rb +11 -25
  446. data/lib/rubocop/cop/style/ternary_parentheses.rb +46 -51
  447. data/lib/rubocop/cop/style/trailing_body_on_method_definition.rb +101 -0
  448. data/lib/rubocop/cop/style/trailing_comma_in_arguments.rb +20 -6
  449. data/lib/rubocop/cop/style/trailing_comma_in_literal.rb +22 -7
  450. data/lib/rubocop/cop/style/trailing_method_end_statement.rb +95 -0
  451. data/lib/rubocop/cop/style/trailing_underscore_variable.rb +70 -24
  452. data/lib/rubocop/cop/style/trivial_accessors.rb +72 -65
  453. data/lib/rubocop/cop/style/unless_else.rb +16 -1
  454. data/lib/rubocop/cop/style/unneeded_capital_w.rb +18 -8
  455. data/lib/rubocop/cop/style/unneeded_interpolation.rb +15 -19
  456. data/lib/rubocop/cop/style/unneeded_percent_q.rb +14 -13
  457. data/lib/rubocop/cop/style/variable_interpolation.rb +23 -9
  458. data/lib/rubocop/cop/style/when_then.rb +14 -1
  459. data/lib/rubocop/cop/style/while_until_do.rb +27 -4
  460. data/lib/rubocop/cop/style/while_until_modifier.rb +26 -6
  461. data/lib/rubocop/cop/style/word_array.rb +9 -30
  462. data/lib/rubocop/cop/style/yoda_condition.rb +51 -22
  463. data/lib/rubocop/cop/style/zero_length_predicate.rb +44 -29
  464. data/lib/rubocop/cop/team.rb +16 -8
  465. data/lib/rubocop/cop/util.rb +43 -34
  466. data/lib/rubocop/cop/variable_force.rb +1 -1
  467. data/lib/rubocop/cop/variable_force/assignment.rb +4 -2
  468. data/lib/rubocop/cop/variable_force/scope.rb +1 -5
  469. data/lib/rubocop/cop/variable_force/variable.rb +1 -1
  470. data/lib/rubocop/formatter/disabled_config_formatter.rb +3 -4
  471. data/lib/rubocop/formatter/formatter_set.rb +3 -1
  472. data/lib/rubocop/formatter/html_formatter.rb +1 -1
  473. data/lib/rubocop/formatter/json_formatter.rb +9 -3
  474. data/lib/rubocop/formatter/offense_count_formatter.rb +2 -0
  475. data/lib/rubocop/formatter/quiet_formatter.rb +13 -0
  476. data/lib/rubocop/formatter/simple_text_formatter.rb +3 -3
  477. data/lib/rubocop/formatter/tap_formatter.rb +71 -0
  478. data/lib/rubocop/formatter/worst_offenders_formatter.rb +2 -0
  479. data/lib/rubocop/node_pattern.rb +46 -29
  480. data/lib/rubocop/options.rb +13 -8
  481. data/lib/rubocop/path_util.rb +15 -3
  482. data/lib/rubocop/processed_source.rb +8 -9
  483. data/lib/rubocop/rake_task.rb +16 -23
  484. data/lib/rubocop/remote_config.rb +13 -1
  485. data/lib/rubocop/result_cache.rb +1 -0
  486. data/lib/rubocop/rspec/cop_helper.rb +10 -10
  487. data/lib/rubocop/rspec/expect_offense.rb +6 -8
  488. data/lib/rubocop/rspec/shared_contexts.rb +4 -8
  489. data/lib/rubocop/rspec/shared_examples.rb +8 -8
  490. data/lib/rubocop/rspec/support.rb +5 -5
  491. data/lib/rubocop/runner.rb +1 -1
  492. data/lib/rubocop/string_util.rb +2 -0
  493. data/lib/rubocop/token.rb +74 -0
  494. data/lib/rubocop/version.rb +1 -1
  495. metadata +118 -48
  496. data/lib/rubocop/cop/layout/space_inside_brackets.rb +0 -20
  497. data/lib/rubocop/cop/lint/invalid_character_literal.rb +0 -41
  498. data/lib/rubocop/cop/mixin/access_modifier_node.rb +0 -41
  499. data/lib/rubocop/cop/mixin/on_method_def.rb +0 -44
  500. data/lib/rubocop/cop/mixin/space_inside.rb +0 -76
  501. data/lib/rubocop/cop/style/accessor_method_name.rb +0 -45
  502. data/lib/rubocop/cop/style/class_and_module_camel_case.rb +0 -29
  503. data/lib/rubocop/cop/style/constant_name.rb +0 -29
  504. data/lib/rubocop/cop/style/method_name.rb +0 -34
  505. data/lib/rubocop/cop/style/predicate_name.rb +0 -67
  506. data/lib/rubocop/cop/style/variable_name.rb +0 -39
@@ -5,6 +5,7 @@ require 'rainbow'
5
5
 
6
6
  require 'English'
7
7
  require 'set'
8
+ require 'forwardable'
8
9
  require 'powerpack/array/butfirst'
9
10
  require 'powerpack/enumerable/drop_last'
10
11
  require 'powerpack/hash/symbolize_keys'
@@ -12,508 +13,573 @@ require 'powerpack/string/blank'
12
13
  require 'powerpack/string/strip_indent'
13
14
  require 'unicode/display_width'
14
15
 
15
- require 'rubocop/version'
16
+ require_relative 'rubocop/version'
16
17
 
17
- require 'rubocop/path_util'
18
- require 'rubocop/platform'
19
- require 'rubocop/string_util'
20
- require 'rubocop/name_similarity'
21
- require 'rubocop/node_pattern'
22
- require 'rubocop/string_interpreter'
23
- require 'rubocop/ast/sexp'
24
- require 'rubocop/ast/node'
25
- require 'rubocop/ast/node/mixin/binary_operator_node'
26
- require 'rubocop/ast/node/mixin/conditional_node'
27
- require 'rubocop/ast/node/mixin/hash_element_node'
28
- require 'rubocop/ast/node/mixin/modifier_node'
29
- require 'rubocop/ast/node/mixin/parameterized_node'
30
- require 'rubocop/ast/node/mixin/predicate_operator_node'
31
- require 'rubocop/ast/node/and_node'
32
- require 'rubocop/ast/node/args_node'
33
- require 'rubocop/ast/node/array_node'
34
- require 'rubocop/ast/node/block_node'
35
- require 'rubocop/ast/node/case_node'
36
- require 'rubocop/ast/node/ensure_node'
37
- require 'rubocop/ast/node/for_node'
38
- require 'rubocop/ast/node/hash_node'
39
- require 'rubocop/ast/node/if_node'
40
- require 'rubocop/ast/node/keyword_splat_node'
41
- require 'rubocop/ast/node/or_node'
42
- require 'rubocop/ast/node/pair_node'
43
- require 'rubocop/ast/node/resbody_node'
44
- require 'rubocop/ast/node/send_node'
45
- require 'rubocop/ast/node/super_node'
46
- require 'rubocop/ast/node/until_node'
47
- require 'rubocop/ast/node/when_node'
48
- require 'rubocop/ast/node/while_node'
49
- require 'rubocop/ast/builder'
50
- require 'rubocop/ast/traversal'
51
- require 'rubocop/error'
52
- 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/mixin/basic_literal_node'
36
+ require_relative 'rubocop/ast/node/and_node'
37
+ require_relative 'rubocop/ast/node/args_node'
38
+ require_relative 'rubocop/ast/node/array_node'
39
+ require_relative 'rubocop/ast/node/block_node'
40
+ require_relative 'rubocop/ast/node/case_node'
41
+ require_relative 'rubocop/ast/node/def_node'
42
+ require_relative 'rubocop/ast/node/ensure_node'
43
+ require_relative 'rubocop/ast/node/for_node'
44
+ require_relative 'rubocop/ast/node/hash_node'
45
+ require_relative 'rubocop/ast/node/if_node'
46
+ require_relative 'rubocop/ast/node/keyword_splat_node'
47
+ require_relative 'rubocop/ast/node/or_node'
48
+ require_relative 'rubocop/ast/node/pair_node'
49
+ require_relative 'rubocop/ast/node/regexp_node'
50
+ require_relative 'rubocop/ast/node/resbody_node'
51
+ require_relative 'rubocop/ast/node/send_node'
52
+ require_relative 'rubocop/ast/node/str_node'
53
+ require_relative 'rubocop/ast/node/super_node'
54
+ require_relative 'rubocop/ast/node/symbol_node'
55
+ require_relative 'rubocop/ast/node/until_node'
56
+ require_relative 'rubocop/ast/node/when_node'
57
+ require_relative 'rubocop/ast/node/while_node'
58
+ require_relative 'rubocop/ast/node/yield_node'
59
+ require_relative 'rubocop/ast/builder'
60
+ require_relative 'rubocop/ast/traversal'
61
+ require_relative 'rubocop/error'
62
+ require_relative 'rubocop/warning'
53
63
 
54
- require 'rubocop/cop/util'
55
- require 'rubocop/cop/offense'
56
- require 'rubocop/cop/message_annotator'
57
- require 'rubocop/cop/ignored_node'
58
- require 'rubocop/cop/autocorrect_logic'
59
- require 'rubocop/cop/badge'
60
- require 'rubocop/cop/registry'
61
- require 'rubocop/cop/cop'
62
- require 'rubocop/cop/commissioner'
63
- require 'rubocop/cop/corrector'
64
- require 'rubocop/cop/force'
65
- require 'rubocop/cop/severity'
66
- require 'rubocop/cop/generator'
64
+ require_relative 'rubocop/cop/util'
65
+ require_relative 'rubocop/cop/offense'
66
+ require_relative 'rubocop/cop/message_annotator'
67
+ require_relative 'rubocop/cop/ignored_node'
68
+ require_relative 'rubocop/cop/autocorrect_logic'
69
+ require_relative 'rubocop/cop/badge'
70
+ require_relative 'rubocop/cop/registry'
71
+ require_relative 'rubocop/cop/cop'
72
+ require_relative 'rubocop/cop/commissioner'
73
+ require_relative 'rubocop/cop/corrector'
74
+ require_relative 'rubocop/cop/force'
75
+ require_relative 'rubocop/cop/severity'
76
+ require_relative 'rubocop/cop/generator'
67
77
 
68
- require 'rubocop/cop/variable_force'
69
- require 'rubocop/cop/variable_force/branch'
70
- require 'rubocop/cop/variable_force/branchable'
71
- require 'rubocop/cop/variable_force/variable'
72
- require 'rubocop/cop/variable_force/assignment'
73
- require 'rubocop/cop/variable_force/reference'
74
- require 'rubocop/cop/variable_force/scope'
75
- require 'rubocop/cop/variable_force/variable_table'
78
+ require_relative 'rubocop/cop/variable_force'
79
+ require_relative 'rubocop/cop/variable_force/branch'
80
+ require_relative 'rubocop/cop/variable_force/branchable'
81
+ require_relative 'rubocop/cop/variable_force/variable'
82
+ require_relative 'rubocop/cop/variable_force/assignment'
83
+ require_relative 'rubocop/cop/variable_force/reference'
84
+ require_relative 'rubocop/cop/variable_force/scope'
85
+ require_relative 'rubocop/cop/variable_force/variable_table'
76
86
 
77
- require 'rubocop/cop/mixin/access_modifier_node'
78
- require 'rubocop/cop/mixin/annotation_comment'
79
- require 'rubocop/cop/mixin/array_hash_indentation'
80
- require 'rubocop/cop/mixin/array_min_size'
81
- require 'rubocop/cop/mixin/array_syntax'
82
- require 'rubocop/cop/mixin/autocorrect_alignment'
83
- require 'rubocop/cop/mixin/check_assignment'
84
- require 'rubocop/cop/mixin/configurable_max'
85
- require 'rubocop/cop/mixin/code_length' # relies on configurable_max
86
- require 'rubocop/cop/mixin/classish_length' # relies on code_length
87
- require 'rubocop/cop/mixin/configurable_enforced_style'
88
- require 'rubocop/cop/mixin/configurable_formatting'
89
- require 'rubocop/cop/mixin/configurable_naming'
90
- require 'rubocop/cop/mixin/configurable_numbering'
91
- require 'rubocop/cop/mixin/def_node'
92
- require 'rubocop/cop/mixin/documentation_comment'
93
- require 'rubocop/cop/mixin/duplication'
94
- require 'rubocop/cop/mixin/empty_lines_around_body'
95
- require 'rubocop/cop/mixin/end_keyword_alignment'
96
- require 'rubocop/cop/mixin/enforce_superclass'
97
- require 'rubocop/cop/mixin/first_element_line_break'
98
- require 'rubocop/cop/mixin/frozen_string_literal'
99
- require 'rubocop/cop/mixin/hash_alignment'
100
- require 'rubocop/cop/mixin/ignored_pattern'
101
- require 'rubocop/cop/mixin/integer_node'
102
- require 'rubocop/cop/mixin/on_method_def'
103
- require 'rubocop/cop/mixin/match_range'
104
- require 'rubocop/cop/mixin/method_complexity' # relies on on_method_def
105
- require 'rubocop/cop/mixin/method_preference'
106
- require 'rubocop/cop/mixin/min_body_length'
107
- require 'rubocop/cop/mixin/multiline_expression_indentation'
108
- require 'rubocop/cop/mixin/multiline_literal_brace_layout'
109
- require 'rubocop/cop/mixin/negative_conditional'
110
- require 'rubocop/cop/mixin/on_normal_if_unless'
111
- require 'rubocop/cop/mixin/parentheses'
112
- require 'rubocop/cop/mixin/parser_diagnostic'
113
- require 'rubocop/cop/mixin/percent_literal'
114
- require 'rubocop/cop/mixin/preceding_following_alignment'
115
- require 'rubocop/cop/mixin/rescue_node'
116
- require 'rubocop/cop/mixin/safe_assignment'
117
- require 'rubocop/cop/mixin/safe_mode'
118
- require 'rubocop/cop/mixin/space_after_punctuation'
119
- require 'rubocop/cop/mixin/space_before_punctuation'
120
- require 'rubocop/cop/mixin/surrounding_space'
121
- require 'rubocop/cop/mixin/space_inside' # relies on surrounding_space
122
- require 'rubocop/cop/mixin/statement_modifier'
123
- require 'rubocop/cop/mixin/string_help'
124
- require 'rubocop/cop/mixin/string_literals_help'
125
- require 'rubocop/cop/mixin/target_ruby_version'
126
- require 'rubocop/cop/mixin/target_rails_version'
127
- require 'rubocop/cop/mixin/too_many_lines'
128
- require 'rubocop/cop/mixin/trailing_comma'
129
- require 'rubocop/cop/mixin/unused_argument'
87
+ require_relative 'rubocop/cop/mixin/annotation_comment'
88
+ require_relative 'rubocop/cop/mixin/array_hash_indentation'
89
+ require_relative 'rubocop/cop/mixin/array_min_size'
90
+ require_relative 'rubocop/cop/mixin/array_syntax'
91
+ require_relative 'rubocop/cop/mixin/autocorrect_alignment'
92
+ require_relative 'rubocop/cop/mixin/check_assignment'
93
+ require_relative 'rubocop/cop/mixin/configurable_max'
94
+ require_relative 'rubocop/cop/mixin/code_length' # relies on configurable_max
95
+ require_relative 'rubocop/cop/mixin/classish_length' # relies on code_length
96
+ require_relative 'rubocop/cop/mixin/configurable_enforced_style'
97
+ require_relative 'rubocop/cop/mixin/configurable_formatting'
98
+ require_relative 'rubocop/cop/mixin/configurable_naming'
99
+ require_relative 'rubocop/cop/mixin/configurable_numbering'
100
+ require_relative 'rubocop/cop/mixin/def_node'
101
+ require_relative 'rubocop/cop/mixin/documentation_comment'
102
+ require_relative 'rubocop/cop/mixin/duplication'
103
+ require_relative 'rubocop/cop/mixin/empty_lines_around_body'
104
+ require_relative 'rubocop/cop/mixin/empty_parameter'
105
+ require_relative 'rubocop/cop/mixin/end_keyword_alignment'
106
+ require_relative 'rubocop/cop/mixin/enforce_superclass'
107
+ require_relative 'rubocop/cop/mixin/first_element_line_break'
108
+ require_relative 'rubocop/cop/mixin/frozen_string_literal'
109
+ require_relative 'rubocop/cop/mixin/hash_alignment'
110
+ require_relative 'rubocop/cop/mixin/ignored_pattern'
111
+ require_relative 'rubocop/cop/mixin/integer_node'
112
+ require_relative 'rubocop/cop/mixin/match_range'
113
+ require_relative 'rubocop/cop/mixin/method_complexity'
114
+ require_relative 'rubocop/cop/mixin/method_preference'
115
+ require_relative 'rubocop/cop/mixin/min_body_length'
116
+ require_relative 'rubocop/cop/mixin/multiline_expression_indentation'
117
+ require_relative 'rubocop/cop/mixin/multiline_literal_brace_layout'
118
+ require_relative 'rubocop/cop/mixin/negative_conditional'
119
+ require_relative 'rubocop/cop/mixin/heredoc'
120
+ require_relative 'rubocop/cop/mixin/on_normal_if_unless'
121
+ require_relative 'rubocop/cop/mixin/ordered_gem_node'
122
+ require_relative 'rubocop/cop/mixin/parentheses'
123
+ require_relative 'rubocop/cop/mixin/parser_diagnostic'
124
+ require_relative 'rubocop/cop/mixin/percent_array'
125
+ require_relative 'rubocop/cop/mixin/percent_literal'
126
+ require_relative 'rubocop/cop/mixin/preceding_following_alignment'
127
+ require_relative 'rubocop/cop/mixin/rescue_node'
128
+ require_relative 'rubocop/cop/mixin/safe_assignment'
129
+ require_relative 'rubocop/cop/mixin/safe_mode'
130
+ require_relative 'rubocop/cop/mixin/space_after_punctuation'
131
+ require_relative 'rubocop/cop/mixin/space_before_punctuation'
132
+ require_relative 'rubocop/cop/mixin/surrounding_space'
133
+ require_relative 'rubocop/cop/mixin/statement_modifier'
134
+ require_relative 'rubocop/cop/mixin/string_help'
135
+ require_relative 'rubocop/cop/mixin/string_literals_help'
136
+ require_relative 'rubocop/cop/mixin/target_ruby_version'
137
+ require_relative 'rubocop/cop/mixin/target_rails_version'
138
+ require_relative 'rubocop/cop/mixin/too_many_lines'
139
+ require_relative 'rubocop/cop/mixin/trailing_comma'
140
+ require_relative 'rubocop/cop/mixin/unused_argument'
130
141
 
131
- require 'rubocop/cop/bundler/duplicated_gem'
132
- require 'rubocop/cop/bundler/ordered_gems'
142
+ require_relative 'rubocop/cop/bundler/duplicated_gem'
143
+ require_relative 'rubocop/cop/bundler/insecure_protocol_source'
144
+ require_relative 'rubocop/cop/bundler/ordered_gems'
133
145
 
134
- require 'rubocop/cop/layout/access_modifier_indentation'
135
- require 'rubocop/cop/layout/align_array'
136
- require 'rubocop/cop/layout/align_hash'
137
- require 'rubocop/cop/layout/align_parameters'
138
- require 'rubocop/cop/layout/block_end_newline'
139
- require 'rubocop/cop/layout/case_indentation'
140
- require 'rubocop/cop/layout/closing_parenthesis_indentation'
141
- require 'rubocop/cop/layout/comment_indentation'
142
- require 'rubocop/cop/layout/dot_position'
143
- require 'rubocop/cop/layout/else_alignment'
144
- require 'rubocop/cop/layout/empty_line_after_magic_comment'
145
- require 'rubocop/cop/layout/empty_line_between_defs'
146
- require 'rubocop/cop/layout/empty_lines_around_access_modifier'
147
- require 'rubocop/cop/layout/empty_lines_around_begin_body'
148
- require 'rubocop/cop/layout/empty_lines_around_block_body'
149
- require 'rubocop/cop/layout/empty_lines_around_class_body'
150
- require 'rubocop/cop/layout/empty_lines_around_exception_handling_keywords'
151
- require 'rubocop/cop/layout/empty_lines_around_method_body'
152
- require 'rubocop/cop/layout/empty_lines_around_module_body'
153
- require 'rubocop/cop/layout/empty_lines'
154
- require 'rubocop/cop/layout/end_of_line'
155
- require 'rubocop/cop/layout/extra_spacing'
156
- require 'rubocop/cop/layout/first_array_element_line_break'
157
- require 'rubocop/cop/layout/first_hash_element_line_break'
158
- require 'rubocop/cop/layout/first_method_argument_line_break'
159
- require 'rubocop/cop/layout/first_method_parameter_line_break'
160
- require 'rubocop/cop/layout/first_parameter_indentation'
161
- require 'rubocop/cop/layout/indent_array'
162
- require 'rubocop/cop/layout/indent_assignment'
163
- require 'rubocop/cop/layout/indentation_consistency'
164
- require 'rubocop/cop/layout/indentation_width'
165
- require 'rubocop/cop/layout/indent_hash'
166
- require 'rubocop/cop/layout/indent_heredoc'
167
- require 'rubocop/cop/layout/initial_indentation'
168
- require 'rubocop/cop/layout/leading_comment_space'
169
- require 'rubocop/cop/layout/multiline_array_brace_layout'
170
- require 'rubocop/cop/layout/multiline_assignment_layout'
171
- require 'rubocop/cop/layout/multiline_block_layout'
172
- require 'rubocop/cop/layout/multiline_hash_brace_layout'
173
- require 'rubocop/cop/layout/multiline_method_call_brace_layout'
174
- require 'rubocop/cop/layout/multiline_method_call_indentation'
175
- require 'rubocop/cop/layout/multiline_method_definition_brace_layout'
176
- require 'rubocop/cop/layout/multiline_operation_indentation'
177
- require 'rubocop/cop/layout/rescue_ensure_alignment'
178
- require 'rubocop/cop/layout/space_after_colon'
179
- require 'rubocop/cop/layout/space_after_comma'
180
- require 'rubocop/cop/layout/space_after_method_name'
181
- require 'rubocop/cop/layout/space_after_not'
182
- require 'rubocop/cop/layout/space_after_semicolon'
183
- require 'rubocop/cop/layout/space_around_block_parameters'
184
- require 'rubocop/cop/layout/space_around_equals_in_parameter_default'
185
- require 'rubocop/cop/layout/space_around_keyword'
186
- require 'rubocop/cop/layout/space_around_operators'
187
- require 'rubocop/cop/layout/space_before_block_braces'
188
- require 'rubocop/cop/layout/space_before_comma'
189
- require 'rubocop/cop/layout/space_before_comment'
190
- require 'rubocop/cop/layout/space_before_first_arg'
191
- require 'rubocop/cop/layout/space_before_semicolon'
192
- require 'rubocop/cop/layout/space_in_lambda_literal'
193
- require 'rubocop/cop/layout/space_inside_array_percent_literal'
194
- require 'rubocop/cop/layout/space_inside_block_braces'
195
- require 'rubocop/cop/layout/space_inside_brackets'
196
- require 'rubocop/cop/layout/space_inside_hash_literal_braces'
197
- require 'rubocop/cop/layout/space_inside_parens'
198
- require 'rubocop/cop/layout/space_inside_percent_literal_delimiters'
199
- require 'rubocop/cop/layout/space_inside_range_literal'
200
- require 'rubocop/cop/layout/space_inside_string_interpolation'
201
- require 'rubocop/cop/layout/tab'
202
- require 'rubocop/cop/layout/trailing_blank_lines'
203
- require 'rubocop/cop/layout/trailing_whitespace'
146
+ require_relative 'rubocop/cop/gemspec/duplicated_assignment'
147
+ require_relative 'rubocop/cop/gemspec/ordered_dependencies'
148
+ require_relative 'rubocop/cop/gemspec/required_ruby_version'
204
149
 
205
- require 'rubocop/cop/lint/ambiguous_block_association'
206
- require 'rubocop/cop/lint/ambiguous_operator'
207
- require 'rubocop/cop/lint/ambiguous_regexp_literal'
208
- require 'rubocop/cop/lint/assignment_in_condition'
209
- require 'rubocop/cop/lint/block_alignment'
210
- require 'rubocop/cop/lint/circular_argument_reference'
211
- require 'rubocop/cop/lint/condition_position'
212
- require 'rubocop/cop/lint/debugger'
213
- require 'rubocop/cop/lint/def_end_alignment'
214
- require 'rubocop/cop/lint/deprecated_class_methods'
215
- require 'rubocop/cop/lint/duplicate_case_condition'
216
- require 'rubocop/cop/lint/duplicate_methods'
217
- require 'rubocop/cop/lint/duplicated_key'
218
- require 'rubocop/cop/lint/each_with_object_argument'
219
- require 'rubocop/cop/lint/else_layout'
220
- require 'rubocop/cop/lint/empty_ensure'
221
- require 'rubocop/cop/lint/empty_expression'
222
- require 'rubocop/cop/lint/empty_interpolation'
223
- require 'rubocop/cop/lint/empty_when'
224
- require 'rubocop/cop/lint/end_alignment'
225
- require 'rubocop/cop/lint/end_in_method'
226
- require 'rubocop/cop/lint/ensure_return'
227
- require 'rubocop/cop/lint/float_out_of_range'
228
- require 'rubocop/cop/lint/format_parameter_mismatch'
229
- require 'rubocop/cop/lint/handle_exceptions'
230
- require 'rubocop/cop/lint/implicit_string_concatenation'
231
- require 'rubocop/cop/lint/inherit_exception'
232
- require 'rubocop/cop/lint/ineffective_access_modifier'
233
- require 'rubocop/cop/lint/invalid_character_literal'
234
- require 'rubocop/cop/lint/literal_in_condition'
235
- require 'rubocop/cop/lint/literal_in_interpolation'
236
- require 'rubocop/cop/lint/loop'
237
- require 'rubocop/cop/lint/multiple_compare'
238
- require 'rubocop/cop/lint/nested_method_definition'
239
- require 'rubocop/cop/lint/next_without_accumulator'
240
- require 'rubocop/cop/lint/non_local_exit_from_iterator'
241
- require 'rubocop/cop/lint/parentheses_as_grouped_expression'
242
- require 'rubocop/cop/lint/percent_string_array'
243
- require 'rubocop/cop/lint/percent_symbol_array'
244
- require 'rubocop/cop/lint/rand_one'
245
- require 'rubocop/cop/lint/require_parentheses'
246
- require 'rubocop/cop/lint/rescue_exception'
247
- require 'rubocop/cop/lint/rescue_type'
248
- require 'rubocop/cop/lint/safe_navigation_chain'
249
- require 'rubocop/cop/lint/script_permission'
250
- require 'rubocop/cop/lint/shadowed_exception'
251
- require 'rubocop/cop/lint/shadowing_outer_local_variable'
252
- require 'rubocop/cop/lint/string_conversion_in_interpolation'
253
- require 'rubocop/cop/lint/syntax'
254
- require 'rubocop/cop/lint/underscore_prefixed_variable_name'
255
- require 'rubocop/cop/lint/unified_integer'
256
- require 'rubocop/cop/lint/unneeded_disable'
257
- require 'rubocop/cop/lint/unneeded_splat_expansion'
258
- require 'rubocop/cop/lint/unreachable_code'
259
- require 'rubocop/cop/lint/unused_block_argument'
260
- require 'rubocop/cop/lint/unused_method_argument'
261
- require 'rubocop/cop/lint/useless_access_modifier'
262
- require 'rubocop/cop/lint/useless_assignment'
263
- require 'rubocop/cop/lint/useless_comparison'
264
- require 'rubocop/cop/lint/useless_else_without_rescue'
265
- require 'rubocop/cop/lint/useless_setter_call'
266
- require 'rubocop/cop/lint/void'
150
+ require_relative 'rubocop/cop/layout/access_modifier_indentation'
151
+ require_relative 'rubocop/cop/layout/align_array'
152
+ require_relative 'rubocop/cop/layout/align_hash'
153
+ require_relative 'rubocop/cop/layout/align_parameters'
154
+ require_relative 'rubocop/cop/layout/block_end_newline'
155
+ require_relative 'rubocop/cop/layout/case_indentation'
156
+ require_relative 'rubocop/cop/layout/class_structure'
157
+ require_relative 'rubocop/cop/layout/closing_parenthesis_indentation'
158
+ require_relative 'rubocop/cop/layout/comment_indentation'
159
+ require_relative 'rubocop/cop/layout/dot_position'
160
+ require_relative 'rubocop/cop/layout/else_alignment'
161
+ require_relative 'rubocop/cop/layout/empty_line_after_magic_comment'
162
+ require_relative 'rubocop/cop/layout/empty_line_between_defs'
163
+ require_relative 'rubocop/cop/layout/empty_lines_around_access_modifier'
164
+ require_relative 'rubocop/cop/layout/empty_lines_around_arguments'
165
+ require_relative 'rubocop/cop/layout/empty_lines_around_begin_body'
166
+ require_relative 'rubocop/cop/layout/empty_lines_around_block_body'
167
+ require_relative 'rubocop/cop/layout/empty_lines_around_class_body'
168
+ require_relative 'rubocop/cop/layout/empty_lines_around_exception_handling_keywords' # rubocop:disable Metrics/LineLength
169
+ require_relative 'rubocop/cop/layout/empty_lines_around_method_body'
170
+ require_relative 'rubocop/cop/layout/empty_lines_around_module_body'
171
+ require_relative 'rubocop/cop/layout/empty_lines'
172
+ require_relative 'rubocop/cop/layout/end_of_line'
173
+ require_relative 'rubocop/cop/layout/extra_spacing'
174
+ require_relative 'rubocop/cop/layout/first_array_element_line_break'
175
+ require_relative 'rubocop/cop/layout/first_hash_element_line_break'
176
+ require_relative 'rubocop/cop/layout/first_method_argument_line_break'
177
+ require_relative 'rubocop/cop/layout/first_method_parameter_line_break'
178
+ require_relative 'rubocop/cop/layout/first_parameter_indentation'
179
+ require_relative 'rubocop/cop/layout/indent_array'
180
+ require_relative 'rubocop/cop/layout/indent_assignment'
181
+ require_relative 'rubocop/cop/layout/indentation_consistency'
182
+ require_relative 'rubocop/cop/layout/indentation_width'
183
+ require_relative 'rubocop/cop/layout/indent_hash'
184
+ require_relative 'rubocop/cop/layout/indent_heredoc'
185
+ require_relative 'rubocop/cop/layout/initial_indentation'
186
+ require_relative 'rubocop/cop/layout/leading_comment_space'
187
+ require_relative 'rubocop/cop/layout/multiline_array_brace_layout'
188
+ require_relative 'rubocop/cop/layout/multiline_assignment_layout'
189
+ require_relative 'rubocop/cop/layout/multiline_block_layout'
190
+ require_relative 'rubocop/cop/layout/multiline_hash_brace_layout'
191
+ require_relative 'rubocop/cop/layout/multiline_method_call_brace_layout'
192
+ require_relative 'rubocop/cop/layout/multiline_method_call_indentation'
193
+ require_relative 'rubocop/cop/layout/multiline_method_definition_brace_layout'
194
+ require_relative 'rubocop/cop/layout/multiline_operation_indentation'
195
+ require_relative 'rubocop/cop/layout/rescue_ensure_alignment'
196
+ require_relative 'rubocop/cop/layout/space_after_colon'
197
+ require_relative 'rubocop/cop/layout/space_after_comma'
198
+ require_relative 'rubocop/cop/layout/space_after_method_name'
199
+ require_relative 'rubocop/cop/layout/space_after_not'
200
+ require_relative 'rubocop/cop/layout/space_after_semicolon'
201
+ require_relative 'rubocop/cop/layout/space_around_block_parameters'
202
+ require_relative 'rubocop/cop/layout/space_around_equals_in_parameter_default'
203
+ require_relative 'rubocop/cop/layout/space_around_keyword'
204
+ require_relative 'rubocop/cop/layout/space_around_operators'
205
+ require_relative 'rubocop/cop/layout/space_before_block_braces'
206
+ require_relative 'rubocop/cop/layout/space_before_comma'
207
+ require_relative 'rubocop/cop/layout/space_before_comment'
208
+ require_relative 'rubocop/cop/layout/space_before_first_arg'
209
+ require_relative 'rubocop/cop/layout/space_before_semicolon'
210
+ require_relative 'rubocop/cop/layout/space_in_lambda_literal'
211
+ require_relative 'rubocop/cop/layout/space_inside_array_percent_literal'
212
+ require_relative 'rubocop/cop/layout/space_inside_array_literal_brackets'
213
+ require_relative 'rubocop/cop/layout/space_inside_block_braces'
214
+ require_relative 'rubocop/cop/layout/space_inside_hash_literal_braces'
215
+ require_relative 'rubocop/cop/layout/space_inside_parens'
216
+ require_relative 'rubocop/cop/layout/space_inside_percent_literal_delimiters'
217
+ require_relative 'rubocop/cop/layout/space_inside_range_literal'
218
+ require_relative 'rubocop/cop/layout/space_inside_reference_brackets'
219
+ require_relative 'rubocop/cop/layout/space_inside_string_interpolation'
220
+ require_relative 'rubocop/cop/layout/tab'
221
+ require_relative 'rubocop/cop/layout/trailing_blank_lines'
222
+ require_relative 'rubocop/cop/layout/trailing_whitespace'
267
223
 
268
- require 'rubocop/cop/metrics/cyclomatic_complexity'
269
- require 'rubocop/cop/metrics/abc_size' # relies on cyclomatic_complexity
270
- require 'rubocop/cop/metrics/block_length'
271
- require 'rubocop/cop/metrics/block_nesting'
272
- require 'rubocop/cop/metrics/class_length'
273
- require 'rubocop/cop/metrics/line_length'
274
- require 'rubocop/cop/metrics/method_length'
275
- require 'rubocop/cop/metrics/module_length'
276
- require 'rubocop/cop/metrics/parameter_lists'
277
- require 'rubocop/cop/metrics/perceived_complexity'
224
+ require_relative 'rubocop/cop/lint/ambiguous_block_association'
225
+ require_relative 'rubocop/cop/lint/ambiguous_operator'
226
+ require_relative 'rubocop/cop/lint/ambiguous_regexp_literal'
227
+ require_relative 'rubocop/cop/lint/assignment_in_condition'
228
+ require_relative 'rubocop/cop/lint/block_alignment'
229
+ require_relative 'rubocop/cop/lint/boolean_symbol'
230
+ require_relative 'rubocop/cop/lint/circular_argument_reference'
231
+ require_relative 'rubocop/cop/lint/condition_position'
232
+ require_relative 'rubocop/cop/lint/debugger'
233
+ require_relative 'rubocop/cop/lint/def_end_alignment'
234
+ require_relative 'rubocop/cop/lint/deprecated_class_methods'
235
+ require_relative 'rubocop/cop/lint/duplicate_case_condition'
236
+ require_relative 'rubocop/cop/lint/duplicate_methods'
237
+ require_relative 'rubocop/cop/lint/duplicated_key'
238
+ require_relative 'rubocop/cop/lint/each_with_object_argument'
239
+ require_relative 'rubocop/cop/lint/else_layout'
240
+ require_relative 'rubocop/cop/lint/empty_ensure'
241
+ require_relative 'rubocop/cop/lint/empty_expression'
242
+ require_relative 'rubocop/cop/lint/empty_interpolation'
243
+ require_relative 'rubocop/cop/lint/empty_when'
244
+ require_relative 'rubocop/cop/lint/end_alignment'
245
+ require_relative 'rubocop/cop/lint/end_in_method'
246
+ require_relative 'rubocop/cop/lint/ensure_return'
247
+ require_relative 'rubocop/cop/lint/float_out_of_range'
248
+ require_relative 'rubocop/cop/lint/format_parameter_mismatch'
249
+ require_relative 'rubocop/cop/lint/handle_exceptions'
250
+ require_relative 'rubocop/cop/lint/implicit_string_concatenation'
251
+ require_relative 'rubocop/cop/lint/inherit_exception'
252
+ require_relative 'rubocop/cop/lint/ineffective_access_modifier'
253
+ require_relative 'rubocop/cop/lint/interpolation_check'
254
+ require_relative 'rubocop/cop/lint/literal_as_condition'
255
+ require_relative 'rubocop/cop/lint/literal_in_interpolation'
256
+ require_relative 'rubocop/cop/lint/loop'
257
+ require_relative 'rubocop/cop/lint/missing_cop_enable_directive'
258
+ require_relative 'rubocop/cop/lint/multiple_compare'
259
+ require_relative 'rubocop/cop/lint/nested_method_definition'
260
+ require_relative 'rubocop/cop/lint/nested_percent_literal'
261
+ require_relative 'rubocop/cop/lint/next_without_accumulator'
262
+ require_relative 'rubocop/cop/lint/non_local_exit_from_iterator'
263
+ require_relative 'rubocop/cop/lint/parentheses_as_grouped_expression'
264
+ require_relative 'rubocop/cop/lint/percent_string_array'
265
+ require_relative 'rubocop/cop/lint/percent_symbol_array'
266
+ require_relative 'rubocop/cop/lint/rand_one'
267
+ require_relative 'rubocop/cop/lint/redundant_with_index'
268
+ require_relative 'rubocop/cop/lint/redundant_with_object'
269
+ require_relative 'rubocop/cop/lint/regexp_as_condition'
270
+ require_relative 'rubocop/cop/lint/require_parentheses'
271
+ require_relative 'rubocop/cop/lint/rescue_exception'
272
+ require_relative 'rubocop/cop/lint/rescue_type'
273
+ require_relative 'rubocop/cop/lint/return_in_void_context'
274
+ require_relative 'rubocop/cop/lint/safe_navigation_chain'
275
+ require_relative 'rubocop/cop/lint/script_permission'
276
+ require_relative 'rubocop/cop/lint/shadowed_argument'
277
+ require_relative 'rubocop/cop/lint/shadowed_exception'
278
+ require_relative 'rubocop/cop/lint/shadowing_outer_local_variable'
279
+ require_relative 'rubocop/cop/lint/string_conversion_in_interpolation'
280
+ require_relative 'rubocop/cop/lint/syntax'
281
+ require_relative 'rubocop/cop/lint/underscore_prefixed_variable_name'
282
+ require_relative 'rubocop/cop/lint/unified_integer'
283
+ require_relative 'rubocop/cop/lint/unneeded_disable'
284
+ require_relative 'rubocop/cop/lint/unneeded_require_statement'
285
+ require_relative 'rubocop/cop/lint/unneeded_splat_expansion'
286
+ require_relative 'rubocop/cop/lint/unreachable_code'
287
+ require_relative 'rubocop/cop/lint/unused_block_argument'
288
+ require_relative 'rubocop/cop/lint/unused_method_argument'
289
+ require_relative 'rubocop/cop/lint/uri_escape_unescape'
290
+ require_relative 'rubocop/cop/lint/uri_regexp'
291
+ require_relative 'rubocop/cop/lint/useless_access_modifier'
292
+ require_relative 'rubocop/cop/lint/useless_assignment'
293
+ require_relative 'rubocop/cop/lint/useless_comparison'
294
+ require_relative 'rubocop/cop/lint/useless_else_without_rescue'
295
+ require_relative 'rubocop/cop/lint/useless_setter_call'
296
+ require_relative 'rubocop/cop/lint/void'
278
297
 
279
- require 'rubocop/cop/performance/caller'
280
- require 'rubocop/cop/performance/case_when_splat'
281
- require 'rubocop/cop/performance/casecmp'
282
- require 'rubocop/cop/performance/count'
283
- require 'rubocop/cop/performance/detect'
284
- require 'rubocop/cop/performance/double_start_end_with'
285
- require 'rubocop/cop/performance/end_with'
286
- require 'rubocop/cop/performance/fixed_size'
287
- require 'rubocop/cop/performance/flat_map'
288
- require 'rubocop/cop/performance/hash_each_methods'
289
- require 'rubocop/cop/performance/lstrip_rstrip'
290
- require 'rubocop/cop/performance/range_include'
291
- require 'rubocop/cop/performance/redundant_block_call'
292
- require 'rubocop/cop/performance/redundant_match'
293
- require 'rubocop/cop/performance/redundant_merge'
294
- require 'rubocop/cop/performance/redundant_sort_by'
295
- require 'rubocop/cop/performance/regexp_match'
296
- require 'rubocop/cop/performance/reverse_each'
297
- require 'rubocop/cop/performance/sample'
298
- require 'rubocop/cop/performance/size'
299
- require 'rubocop/cop/performance/compare_with_block'
300
- require 'rubocop/cop/performance/start_with'
301
- require 'rubocop/cop/performance/string_replacement'
302
- require 'rubocop/cop/performance/times_map'
298
+ require_relative 'rubocop/cop/metrics/cyclomatic_complexity'
299
+ # relies on cyclomatic_complexity
300
+ require_relative 'rubocop/cop/metrics/abc_size'
301
+ require_relative 'rubocop/cop/metrics/block_length'
302
+ require_relative 'rubocop/cop/metrics/block_nesting'
303
+ require_relative 'rubocop/cop/metrics/class_length'
304
+ require_relative 'rubocop/cop/metrics/line_length'
305
+ require_relative 'rubocop/cop/metrics/method_length'
306
+ require_relative 'rubocop/cop/metrics/module_length'
307
+ require_relative 'rubocop/cop/metrics/parameter_lists'
308
+ require_relative 'rubocop/cop/metrics/perceived_complexity'
303
309
 
304
- require 'rubocop/cop/style/accessor_method_name'
305
- require 'rubocop/cop/style/alias'
306
- require 'rubocop/cop/style/and_or'
307
- require 'rubocop/cop/style/array_join'
308
- require 'rubocop/cop/style/ascii_comments'
309
- require 'rubocop/cop/style/ascii_identifiers'
310
- require 'rubocop/cop/style/attr'
311
- require 'rubocop/cop/style/auto_resource_cleanup'
312
- require 'rubocop/cop/style/bare_percent_literals'
313
- require 'rubocop/cop/style/begin_block'
314
- require 'rubocop/cop/style/block_comments'
315
- require 'rubocop/cop/style/block_delimiters'
316
- require 'rubocop/cop/style/braces_around_hash_parameters'
317
- require 'rubocop/cop/style/case_equality'
318
- require 'rubocop/cop/style/character_literal'
319
- require 'rubocop/cop/style/class_and_module_camel_case'
320
- require 'rubocop/cop/style/class_and_module_children'
321
- require 'rubocop/cop/style/class_check'
322
- require 'rubocop/cop/style/class_methods'
323
- require 'rubocop/cop/style/class_vars'
324
- require 'rubocop/cop/style/collection_methods'
325
- require 'rubocop/cop/style/colon_method_call'
326
- require 'rubocop/cop/style/command_literal'
327
- require 'rubocop/cop/style/comment_annotation'
328
- require 'rubocop/cop/style/conditional_assignment'
329
- require 'rubocop/cop/style/constant_name'
330
- require 'rubocop/cop/style/copyright'
331
- require 'rubocop/cop/style/def_with_parentheses'
332
- require 'rubocop/cop/style/preferred_hash_methods'
333
- require 'rubocop/cop/style/documentation_method'
334
- require 'rubocop/cop/style/documentation'
335
- require 'rubocop/cop/style/double_negation'
336
- require 'rubocop/cop/style/each_for_simple_loop'
337
- require 'rubocop/cop/style/each_with_object'
338
- require 'rubocop/cop/style/empty_case_condition'
339
- require 'rubocop/cop/style/empty_else'
340
- require 'rubocop/cop/style/empty_literal'
341
- require 'rubocop/cop/style/empty_method'
342
- require 'rubocop/cop/style/encoding'
343
- require 'rubocop/cop/style/end_block'
344
- require 'rubocop/cop/style/even_odd'
345
- require 'rubocop/cop/style/file_name'
346
- require 'rubocop/cop/style/flip_flop'
347
- require 'rubocop/cop/style/for'
348
- require 'rubocop/cop/style/format_string'
349
- require 'rubocop/cop/style/format_string_token'
350
- require 'rubocop/cop/style/frozen_string_literal_comment'
351
- require 'rubocop/cop/style/global_vars'
352
- require 'rubocop/cop/style/guard_clause'
353
- require 'rubocop/cop/style/hash_syntax'
354
- require 'rubocop/cop/style/identical_conditional_branches'
355
- require 'rubocop/cop/style/if_inside_else'
356
- require 'rubocop/cop/style/if_unless_modifier'
357
- require 'rubocop/cop/style/if_unless_modifier_of_if_unless'
358
- require 'rubocop/cop/style/if_with_semicolon'
359
- require 'rubocop/cop/style/implicit_runtime_error'
360
- require 'rubocop/cop/style/infinite_loop'
361
- require 'rubocop/cop/style/inverse_methods'
362
- require 'rubocop/cop/style/inline_comment'
363
- require 'rubocop/cop/style/lambda'
364
- require 'rubocop/cop/style/lambda_call'
365
- require 'rubocop/cop/style/line_end_concatenation'
366
- require 'rubocop/cop/style/method_call_without_args_parentheses'
367
- require 'rubocop/cop/style/method_call_with_args_parentheses'
368
- require 'rubocop/cop/style/method_called_on_do_end_block'
369
- require 'rubocop/cop/style/method_def_parentheses'
370
- require 'rubocop/cop/style/method_name'
371
- require 'rubocop/cop/style/method_missing'
372
- require 'rubocop/cop/style/missing_else'
373
- require 'rubocop/cop/style/mixin_grouping'
374
- require 'rubocop/cop/style/module_function'
375
- require 'rubocop/cop/style/multiline_block_chain'
376
- require 'rubocop/cop/style/multiline_if_then'
377
- require 'rubocop/cop/style/multiline_if_modifier'
378
- require 'rubocop/cop/style/multiline_memoization'
379
- require 'rubocop/cop/style/multiline_ternary_operator'
380
- require 'rubocop/cop/style/multiple_comparison'
381
- require 'rubocop/cop/style/mutable_constant'
382
- require 'rubocop/cop/style/negated_if'
383
- require 'rubocop/cop/style/negated_while'
384
- require 'rubocop/cop/style/nested_modifier'
385
- require 'rubocop/cop/style/nested_parenthesized_calls'
386
- require 'rubocop/cop/style/nested_ternary_operator'
387
- require 'rubocop/cop/style/next'
388
- require 'rubocop/cop/style/nil_comparison'
389
- require 'rubocop/cop/style/non_nil_check'
390
- require 'rubocop/cop/style/not'
391
- require 'rubocop/cop/style/numeric_literals'
392
- require 'rubocop/cop/style/numeric_literal_prefix'
393
- require 'rubocop/cop/style/numeric_predicate'
394
- require 'rubocop/cop/style/one_line_conditional'
395
- require 'rubocop/cop/style/op_method'
396
- require 'rubocop/cop/style/option_hash'
397
- require 'rubocop/cop/style/optional_arguments'
398
- require 'rubocop/cop/style/parallel_assignment'
399
- require 'rubocop/cop/style/parentheses_around_condition'
400
- require 'rubocop/cop/style/percent_literal_delimiters'
401
- require 'rubocop/cop/style/percent_q_literals'
402
- require 'rubocop/cop/style/perl_backrefs'
403
- require 'rubocop/cop/style/predicate_name'
404
- require 'rubocop/cop/style/proc'
405
- require 'rubocop/cop/style/raise_args'
406
- require 'rubocop/cop/style/redundant_begin'
407
- require 'rubocop/cop/style/redundant_exception'
408
- require 'rubocop/cop/style/redundant_freeze'
409
- require 'rubocop/cop/style/redundant_parentheses'
410
- require 'rubocop/cop/style/redundant_return'
411
- require 'rubocop/cop/style/redundant_self'
412
- require 'rubocop/cop/style/regexp_literal'
413
- require 'rubocop/cop/style/rescue_modifier'
414
- require 'rubocop/cop/style/safe_navigation'
415
- require 'rubocop/cop/style/self_assignment'
416
- require 'rubocop/cop/style/semicolon'
417
- require 'rubocop/cop/style/send'
418
- require 'rubocop/cop/style/signal_exception'
419
- require 'rubocop/cop/style/single_line_block_params'
420
- require 'rubocop/cop/style/single_line_methods'
421
- require 'rubocop/cop/style/special_global_vars'
422
- require 'rubocop/cop/style/stabby_lambda_parentheses'
423
- require 'rubocop/cop/style/string_literals'
424
- require 'rubocop/cop/style/string_literals_in_interpolation'
425
- require 'rubocop/cop/style/string_methods'
426
- require 'rubocop/cop/style/struct_inheritance'
427
- require 'rubocop/cop/style/symbol_array'
428
- require 'rubocop/cop/style/symbol_literal'
429
- require 'rubocop/cop/style/symbol_proc'
430
- require 'rubocop/cop/style/ternary_parentheses'
431
- require 'rubocop/cop/style/trailing_comma_in_arguments'
432
- require 'rubocop/cop/style/trailing_comma_in_literal'
433
- require 'rubocop/cop/style/trailing_underscore_variable'
434
- require 'rubocop/cop/style/trivial_accessors'
435
- require 'rubocop/cop/style/unless_else'
436
- require 'rubocop/cop/style/unneeded_capital_w'
437
- require 'rubocop/cop/style/unneeded_interpolation'
438
- require 'rubocop/cop/style/unneeded_percent_q'
439
- require 'rubocop/cop/style/variable_interpolation'
440
- require 'rubocop/cop/style/variable_name'
441
- require 'rubocop/cop/style/variable_number'
442
- require 'rubocop/cop/style/when_then'
443
- require 'rubocop/cop/style/while_until_do'
444
- require 'rubocop/cop/style/while_until_modifier'
445
- require 'rubocop/cop/style/word_array'
446
- require 'rubocop/cop/style/yoda_condition'
447
- require 'rubocop/cop/style/zero_length_predicate'
310
+ require_relative 'rubocop/cop/naming/accessor_method_name'
311
+ require_relative 'rubocop/cop/naming/ascii_identifiers'
312
+ require_relative 'rubocop/cop/naming/class_and_module_camel_case'
313
+ require_relative 'rubocop/cop/naming/constant_name'
314
+ require_relative 'rubocop/cop/naming/file_name'
315
+ require_relative 'rubocop/cop/naming/heredoc_delimiter_case'
316
+ require_relative 'rubocop/cop/naming/heredoc_delimiter_naming'
317
+ require_relative 'rubocop/cop/naming/method_name'
318
+ require_relative 'rubocop/cop/naming/binary_operator_parameter_name'
319
+ require_relative 'rubocop/cop/naming/predicate_name'
320
+ require_relative 'rubocop/cop/naming/variable_name'
321
+ require_relative 'rubocop/cop/naming/variable_number'
448
322
 
449
- require 'rubocop/cop/rails/action_filter'
450
- require 'rubocop/cop/rails/active_support_aliases'
451
- require 'rubocop/cop/rails/application_job'
452
- require 'rubocop/cop/rails/application_record'
453
- require 'rubocop/cop/rails/blank'
454
- require 'rubocop/cop/rails/date'
455
- require 'rubocop/cop/rails/dynamic_find_by'
456
- require 'rubocop/cop/rails/delegate'
457
- require 'rubocop/cop/rails/delegate_allow_blank'
458
- require 'rubocop/cop/rails/enum_uniqueness'
459
- require 'rubocop/cop/rails/exit'
460
- require 'rubocop/cop/rails/file_path'
461
- require 'rubocop/cop/rails/find_by'
462
- require 'rubocop/cop/rails/find_each'
463
- require 'rubocop/cop/rails/has_and_belongs_to_many'
464
- require 'rubocop/cop/rails/http_positional_arguments'
465
- require 'rubocop/cop/rails/not_null_column'
466
- require 'rubocop/cop/rails/output_safety'
467
- require 'rubocop/cop/rails/output'
468
- require 'rubocop/cop/rails/pluralization_grammar'
469
- require 'rubocop/cop/rails/present'
470
- require 'rubocop/cop/rails/read_write_attribute'
471
- require 'rubocop/cop/rails/request_referer'
472
- require 'rubocop/cop/rails/reversible_migration'
473
- require 'rubocop/cop/rails/relative_date_constant'
474
- require 'rubocop/cop/rails/safe_navigation'
475
- require 'rubocop/cop/rails/save_bang'
476
- require 'rubocop/cop/rails/scope_args'
477
- require 'rubocop/cop/rails/skips_model_validations'
478
- require 'rubocop/cop/rails/time_zone'
479
- require 'rubocop/cop/rails/uniq_before_pluck'
480
- require 'rubocop/cop/rails/validation'
323
+ require_relative 'rubocop/cop/performance/caller'
324
+ require_relative 'rubocop/cop/performance/case_when_splat'
325
+ require_relative 'rubocop/cop/performance/casecmp'
326
+ require_relative 'rubocop/cop/performance/count'
327
+ require_relative 'rubocop/cop/performance/detect'
328
+ require_relative 'rubocop/cop/performance/double_start_end_with'
329
+ require_relative 'rubocop/cop/performance/end_with'
330
+ require_relative 'rubocop/cop/performance/fixed_size'
331
+ require_relative 'rubocop/cop/performance/flat_map'
332
+ require_relative 'rubocop/cop/performance/hash_each_methods'
333
+ require_relative 'rubocop/cop/performance/lstrip_rstrip'
334
+ require_relative 'rubocop/cop/performance/range_include'
335
+ require_relative 'rubocop/cop/performance/redundant_block_call'
336
+ require_relative 'rubocop/cop/performance/redundant_match'
337
+ require_relative 'rubocop/cop/performance/redundant_merge'
338
+ require_relative 'rubocop/cop/performance/redundant_sort_by'
339
+ require_relative 'rubocop/cop/performance/regexp_match'
340
+ require_relative 'rubocop/cop/performance/reverse_each'
341
+ require_relative 'rubocop/cop/performance/sample'
342
+ require_relative 'rubocop/cop/performance/size'
343
+ require_relative 'rubocop/cop/performance/compare_with_block'
344
+ require_relative 'rubocop/cop/performance/start_with'
345
+ require_relative 'rubocop/cop/performance/string_replacement'
346
+ require_relative 'rubocop/cop/performance/times_map'
347
+ require_relative 'rubocop/cop/performance/unfreeze_string'
348
+ require_relative 'rubocop/cop/performance/uri_default_parser'
481
349
 
482
- require 'rubocop/cop/security/eval'
483
- require 'rubocop/cop/security/json_load'
484
- require 'rubocop/cop/security/marshal_load'
485
- require 'rubocop/cop/security/yaml_load'
350
+ require_relative 'rubocop/cop/style/alias'
351
+ require_relative 'rubocop/cop/style/and_or'
352
+ require_relative 'rubocop/cop/style/array_join'
353
+ require_relative 'rubocop/cop/style/ascii_comments'
354
+ require_relative 'rubocop/cop/style/attr'
355
+ require_relative 'rubocop/cop/style/auto_resource_cleanup'
356
+ require_relative 'rubocop/cop/style/bare_percent_literals'
357
+ require_relative 'rubocop/cop/style/begin_block'
358
+ require_relative 'rubocop/cop/style/block_comments'
359
+ require_relative 'rubocop/cop/style/block_delimiters'
360
+ require_relative 'rubocop/cop/style/braces_around_hash_parameters'
361
+ require_relative 'rubocop/cop/style/case_equality'
362
+ require_relative 'rubocop/cop/style/character_literal'
363
+ require_relative 'rubocop/cop/style/class_and_module_children'
364
+ require_relative 'rubocop/cop/style/class_check'
365
+ require_relative 'rubocop/cop/style/class_methods'
366
+ require_relative 'rubocop/cop/style/class_vars'
367
+ require_relative 'rubocop/cop/style/collection_methods'
368
+ require_relative 'rubocop/cop/style/colon_method_call'
369
+ require_relative 'rubocop/cop/style/colon_method_definition'
370
+ require_relative 'rubocop/cop/style/command_literal'
371
+ require_relative 'rubocop/cop/style/comment_annotation'
372
+ require_relative 'rubocop/cop/style/commented_keyword'
373
+ require_relative 'rubocop/cop/style/conditional_assignment'
374
+ require_relative 'rubocop/cop/style/copyright'
375
+ require_relative 'rubocop/cop/style/date_time'
376
+ require_relative 'rubocop/cop/style/def_with_parentheses'
377
+ require_relative 'rubocop/cop/style/dir'
378
+ require_relative 'rubocop/cop/style/documentation_method'
379
+ require_relative 'rubocop/cop/style/documentation'
380
+ require_relative 'rubocop/cop/style/double_negation'
381
+ require_relative 'rubocop/cop/style/each_for_simple_loop'
382
+ require_relative 'rubocop/cop/style/each_with_object'
383
+ require_relative 'rubocop/cop/style/empty_block_parameter'
384
+ require_relative 'rubocop/cop/style/empty_case_condition'
385
+ require_relative 'rubocop/cop/style/empty_else'
386
+ require_relative 'rubocop/cop/style/empty_lambda_parameter'
387
+ require_relative 'rubocop/cop/style/empty_literal'
388
+ require_relative 'rubocop/cop/style/empty_method'
389
+ require_relative 'rubocop/cop/style/encoding'
390
+ require_relative 'rubocop/cop/style/end_block'
391
+ require_relative 'rubocop/cop/style/eval_with_location'
392
+ require_relative 'rubocop/cop/style/even_odd'
393
+ require_relative 'rubocop/cop/style/extend_self'
394
+ require_relative 'rubocop/cop/style/flip_flop'
395
+ require_relative 'rubocop/cop/style/for'
396
+ require_relative 'rubocop/cop/style/format_string'
397
+ require_relative 'rubocop/cop/style/format_string_token'
398
+ require_relative 'rubocop/cop/style/frozen_string_literal_comment'
399
+ require_relative 'rubocop/cop/style/global_vars'
400
+ require_relative 'rubocop/cop/style/guard_clause'
401
+ require_relative 'rubocop/cop/style/hash_syntax'
402
+ require_relative 'rubocop/cop/style/identical_conditional_branches'
403
+ require_relative 'rubocop/cop/style/if_inside_else'
404
+ require_relative 'rubocop/cop/style/if_unless_modifier'
405
+ require_relative 'rubocop/cop/style/if_unless_modifier_of_if_unless'
406
+ require_relative 'rubocop/cop/style/if_with_semicolon'
407
+ require_relative 'rubocop/cop/style/implicit_runtime_error'
408
+ require_relative 'rubocop/cop/style/infinite_loop'
409
+ require_relative 'rubocop/cop/style/inverse_methods'
410
+ require_relative 'rubocop/cop/style/inline_comment'
411
+ require_relative 'rubocop/cop/style/lambda'
412
+ require_relative 'rubocop/cop/style/lambda_call'
413
+ require_relative 'rubocop/cop/style/line_end_concatenation'
414
+ require_relative 'rubocop/cop/style/method_call_without_args_parentheses'
415
+ require_relative 'rubocop/cop/style/method_call_with_args_parentheses'
416
+ require_relative 'rubocop/cop/style/method_called_on_do_end_block'
417
+ require_relative 'rubocop/cop/style/method_def_parentheses'
418
+ require_relative 'rubocop/cop/style/method_missing'
419
+ require_relative 'rubocop/cop/style/min_max'
420
+ require_relative 'rubocop/cop/style/missing_else'
421
+ require_relative 'rubocop/cop/style/mixin_grouping'
422
+ require_relative 'rubocop/cop/style/mixin_usage'
423
+ require_relative 'rubocop/cop/style/module_function'
424
+ require_relative 'rubocop/cop/style/multiline_block_chain'
425
+ require_relative 'rubocop/cop/style/multiline_if_then'
426
+ require_relative 'rubocop/cop/style/multiline_if_modifier'
427
+ require_relative 'rubocop/cop/style/multiline_memoization'
428
+ require_relative 'rubocop/cop/style/multiline_ternary_operator'
429
+ require_relative 'rubocop/cop/style/multiple_comparison'
430
+ require_relative 'rubocop/cop/style/mutable_constant'
431
+ require_relative 'rubocop/cop/style/negated_if'
432
+ require_relative 'rubocop/cop/style/negated_while'
433
+ require_relative 'rubocop/cop/style/nested_modifier'
434
+ require_relative 'rubocop/cop/style/nested_parenthesized_calls'
435
+ require_relative 'rubocop/cop/style/nested_ternary_operator'
436
+ require_relative 'rubocop/cop/style/next'
437
+ require_relative 'rubocop/cop/style/nil_comparison'
438
+ require_relative 'rubocop/cop/style/non_nil_check'
439
+ require_relative 'rubocop/cop/style/not'
440
+ require_relative 'rubocop/cop/style/numeric_literals'
441
+ require_relative 'rubocop/cop/style/numeric_literal_prefix'
442
+ require_relative 'rubocop/cop/style/numeric_predicate'
443
+ require_relative 'rubocop/cop/style/one_line_conditional'
444
+ require_relative 'rubocop/cop/style/or_assignment'
445
+ require_relative 'rubocop/cop/style/option_hash'
446
+ require_relative 'rubocop/cop/style/optional_arguments'
447
+ require_relative 'rubocop/cop/style/parallel_assignment'
448
+ require_relative 'rubocop/cop/style/parentheses_around_condition'
449
+ require_relative 'rubocop/cop/style/percent_literal_delimiters'
450
+ require_relative 'rubocop/cop/style/percent_q_literals'
451
+ require_relative 'rubocop/cop/style/perl_backrefs'
452
+ require_relative 'rubocop/cop/style/preferred_hash_methods'
453
+ require_relative 'rubocop/cop/style/proc'
454
+ require_relative 'rubocop/cop/style/raise_args'
455
+ require_relative 'rubocop/cop/style/random_with_offset'
456
+ require_relative 'rubocop/cop/style/redundant_begin'
457
+ require_relative 'rubocop/cop/style/redundant_exception'
458
+ require_relative 'rubocop/cop/style/redundant_freeze'
459
+ require_relative 'rubocop/cop/style/redundant_parentheses'
460
+ require_relative 'rubocop/cop/style/redundant_return'
461
+ require_relative 'rubocop/cop/style/redundant_self'
462
+ require_relative 'rubocop/cop/style/redundant_conditional'
463
+ require_relative 'rubocop/cop/style/regexp_literal'
464
+ require_relative 'rubocop/cop/style/rescue_modifier'
465
+ require_relative 'rubocop/cop/style/rescue_standard_error'
466
+ require_relative 'rubocop/cop/style/return_nil'
467
+ require_relative 'rubocop/cop/style/safe_navigation'
468
+ require_relative 'rubocop/cop/style/self_assignment'
469
+ require_relative 'rubocop/cop/style/semicolon'
470
+ require_relative 'rubocop/cop/style/send'
471
+ require_relative 'rubocop/cop/style/signal_exception'
472
+ require_relative 'rubocop/cop/style/single_line_block_params'
473
+ require_relative 'rubocop/cop/style/single_line_methods'
474
+ require_relative 'rubocop/cop/style/special_global_vars'
475
+ require_relative 'rubocop/cop/style/stabby_lambda_parentheses'
476
+ require_relative 'rubocop/cop/style/stderr_puts'
477
+ require_relative 'rubocop/cop/style/string_hash_keys'
478
+ require_relative 'rubocop/cop/style/string_literals'
479
+ require_relative 'rubocop/cop/style/string_literals_in_interpolation'
480
+ require_relative 'rubocop/cop/style/string_methods'
481
+ require_relative 'rubocop/cop/style/struct_inheritance'
482
+ require_relative 'rubocop/cop/style/symbol_array'
483
+ require_relative 'rubocop/cop/style/symbol_literal'
484
+ require_relative 'rubocop/cop/style/symbol_proc'
485
+ require_relative 'rubocop/cop/style/ternary_parentheses'
486
+ require_relative 'rubocop/cop/style/trailing_body_on_method_definition'
487
+ require_relative 'rubocop/cop/style/trailing_comma_in_arguments'
488
+ require_relative 'rubocop/cop/style/trailing_comma_in_literal'
489
+ require_relative 'rubocop/cop/style/trailing_method_end_statement'
490
+ require_relative 'rubocop/cop/style/trailing_underscore_variable'
491
+ require_relative 'rubocop/cop/style/trivial_accessors'
492
+ require_relative 'rubocop/cop/style/unless_else'
493
+ require_relative 'rubocop/cop/style/unneeded_capital_w'
494
+ require_relative 'rubocop/cop/style/unneeded_interpolation'
495
+ require_relative 'rubocop/cop/style/unneeded_percent_q'
496
+ require_relative 'rubocop/cop/style/variable_interpolation'
497
+ require_relative 'rubocop/cop/style/when_then'
498
+ require_relative 'rubocop/cop/style/while_until_do'
499
+ require_relative 'rubocop/cop/style/while_until_modifier'
500
+ require_relative 'rubocop/cop/style/word_array'
501
+ require_relative 'rubocop/cop/style/yoda_condition'
502
+ require_relative 'rubocop/cop/style/zero_length_predicate'
486
503
 
487
- require 'rubocop/cop/team'
504
+ require_relative 'rubocop/cop/rails/action_filter'
505
+ require_relative 'rubocop/cop/rails/active_support_aliases'
506
+ require_relative 'rubocop/cop/rails/application_job'
507
+ require_relative 'rubocop/cop/rails/application_record'
508
+ require_relative 'rubocop/cop/rails/blank'
509
+ require_relative 'rubocop/cop/rails/create_table_with_timestamps'
510
+ require_relative 'rubocop/cop/rails/date'
511
+ require_relative 'rubocop/cop/rails/dynamic_find_by'
512
+ require_relative 'rubocop/cop/rails/delegate'
513
+ require_relative 'rubocop/cop/rails/delegate_allow_blank'
514
+ require_relative 'rubocop/cop/rails/enum_uniqueness'
515
+ require_relative 'rubocop/cop/rails/environment_comparison'
516
+ require_relative 'rubocop/cop/rails/exit'
517
+ require_relative 'rubocop/cop/rails/file_path'
518
+ require_relative 'rubocop/cop/rails/find_by'
519
+ require_relative 'rubocop/cop/rails/find_each'
520
+ require_relative 'rubocop/cop/rails/has_and_belongs_to_many'
521
+ require_relative 'rubocop/cop/rails/has_many_or_has_one_dependent'
522
+ require_relative 'rubocop/cop/rails/http_positional_arguments'
523
+ require_relative 'rubocop/cop/rails/inverse_of'
524
+ require_relative 'rubocop/cop/rails/lexically_scoped_action_filter'
525
+ require_relative 'rubocop/cop/rails/not_null_column'
526
+ require_relative 'rubocop/cop/rails/output_safety'
527
+ require_relative 'rubocop/cop/rails/output'
528
+ require_relative 'rubocop/cop/rails/pluralization_grammar'
529
+ require_relative 'rubocop/cop/rails/presence'
530
+ require_relative 'rubocop/cop/rails/present'
531
+ require_relative 'rubocop/cop/rails/read_write_attribute'
532
+ require_relative 'rubocop/cop/rails/redundant_receiver_in_with_options'
533
+ require_relative 'rubocop/cop/rails/request_referer'
534
+ require_relative 'rubocop/cop/rails/reversible_migration'
535
+ require_relative 'rubocop/cop/rails/relative_date_constant'
536
+ require_relative 'rubocop/cop/rails/safe_navigation'
537
+ require_relative 'rubocop/cop/rails/save_bang'
538
+ require_relative 'rubocop/cop/rails/scope_args'
539
+ require_relative 'rubocop/cop/rails/skips_model_validations'
540
+ require_relative 'rubocop/cop/rails/time_zone'
541
+ require_relative 'rubocop/cop/rails/uniq_before_pluck'
542
+ require_relative 'rubocop/cop/rails/unknown_env'
543
+ require_relative 'rubocop/cop/rails/validation'
488
544
 
489
- require 'rubocop/formatter/base_formatter'
490
- require 'rubocop/formatter/simple_text_formatter'
491
- require 'rubocop/formatter/clang_style_formatter' # relies on simple text
492
- require 'rubocop/formatter/disabled_config_formatter'
493
- require 'rubocop/formatter/disabled_lines_formatter'
494
- require 'rubocop/formatter/emacs_style_formatter'
495
- require 'rubocop/formatter/file_list_formatter'
496
- require 'rubocop/formatter/fuubar_style_formatter'
497
- require 'rubocop/formatter/html_formatter'
498
- require 'rubocop/formatter/json_formatter'
499
- require 'rubocop/formatter/offense_count_formatter'
500
- require 'rubocop/formatter/progress_formatter'
501
- require 'rubocop/formatter/worst_offenders_formatter'
545
+ require_relative 'rubocop/cop/security/eval'
546
+ require_relative 'rubocop/cop/security/json_load'
547
+ require_relative 'rubocop/cop/security/marshal_load'
548
+ require_relative 'rubocop/cop/security/yaml_load'
502
549
 
503
- require 'rubocop/formatter/formatter_set'
550
+ require_relative 'rubocop/cop/team'
504
551
 
505
- require 'rubocop/cached_data'
506
- require 'rubocop/config'
507
- require 'rubocop/config_loader_resolver'
508
- require 'rubocop/config_loader'
509
- require 'rubocop/config_store'
510
- require 'rubocop/target_finder'
511
- require 'rubocop/token'
512
- require 'rubocop/comment_config'
513
- require 'rubocop/magic_comment'
514
- require 'rubocop/processed_source'
515
- require 'rubocop/result_cache'
516
- require 'rubocop/runner'
517
- require 'rubocop/cli'
518
- require 'rubocop/options'
519
- require 'rubocop/remote_config'
552
+ require_relative 'rubocop/formatter/base_formatter'
553
+ require_relative 'rubocop/formatter/simple_text_formatter'
554
+ # relies on simple text
555
+ require_relative 'rubocop/formatter/clang_style_formatter'
556
+ require_relative 'rubocop/formatter/disabled_config_formatter'
557
+ require_relative 'rubocop/formatter/disabled_lines_formatter'
558
+ require_relative 'rubocop/formatter/emacs_style_formatter'
559
+ require_relative 'rubocop/formatter/file_list_formatter'
560
+ require_relative 'rubocop/formatter/fuubar_style_formatter'
561
+ require_relative 'rubocop/formatter/html_formatter'
562
+ require_relative 'rubocop/formatter/json_formatter'
563
+ require_relative 'rubocop/formatter/offense_count_formatter'
564
+ require_relative 'rubocop/formatter/progress_formatter'
565
+ require_relative 'rubocop/formatter/quiet_formatter'
566
+ require_relative 'rubocop/formatter/tap_formatter'
567
+ require_relative 'rubocop/formatter/worst_offenders_formatter'
568
+
569
+ require_relative 'rubocop/formatter/formatter_set'
570
+
571
+ require_relative 'rubocop/cached_data'
572
+ require_relative 'rubocop/config'
573
+ require_relative 'rubocop/config_loader_resolver'
574
+ require_relative 'rubocop/config_loader'
575
+ require_relative 'rubocop/config_store'
576
+ require_relative 'rubocop/target_finder'
577
+ require_relative 'rubocop/token'
578
+ require_relative 'rubocop/comment_config'
579
+ require_relative 'rubocop/magic_comment'
580
+ require_relative 'rubocop/processed_source'
581
+ require_relative 'rubocop/result_cache'
582
+ require_relative 'rubocop/runner'
583
+ require_relative 'rubocop/cli'
584
+ require_relative 'rubocop/options'
585
+ require_relative 'rubocop/remote_config'