Skip to content

Commit f9f2297

Browse files
committed
Use Registry.global instead of Cop.registry
Follow rubocop/rubocop#8095 This PR uses new `RuboCop::Cop::Registry` API instead of deprecated API.
1 parent 0b5b672 commit f9f2297

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tasks/cops_documentation.rake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ task documentation_syntax_check: :yard_for_generate_documentation do
2424

2525
ok = true
2626
YARD::Registry.load!
27-
cops = RuboCop::Cop::Cop.registry
27+
cops = RuboCop::Cop::Registry.global
2828
cops.each do |cop|
2929
examples = YARD::Registry.all(:class).find do |code_object|
3030
next unless RuboCop::Cop::Badge.for(code_object.to_s) == cop.badge

0 commit comments

Comments
 (0)