Skip to content

Commit 890c38f

Browse files
authored
Merge pull request #1028 from koic/use_registry_global_instead_of_cop_registry
Use `Registry.global` instead of `Cop.registry`
2 parents 0b5b672 + f9f2297 commit 890c38f

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)