tasks/cops_documentation.rake in rubocop-sorbet-0.8.3 vs tasks/cops_documentation.rake in rubocop-sorbet-0.8.4

- old
+ new

@@ -276,11 +276,11 @@ exit! end end def main - cops = RuboCop::Cop::Cop.registry + cops = RuboCop::Cop::Registry.global config = RuboCop::ConfigLoader.load_file("config/default.yml") YARD::Registry.load! cops.departments.sort!.each do |department| print_cops_of_department(cops, department, config) @@ -300,10 +300,10 @@ task documentation_syntax_check: :yard_for_generate_documentation do require "parser/ruby25" ok = true YARD::Registry.load! - cops = RuboCop::Cop::Cop.registry + cops = RuboCop::Cop::Registry.global cops.each do |cop| examples = YARD::Registry.all(:class).find do |code_object| next unless RuboCop::Cop::Badge.for(code_object.to_s) == cop.badge break code_object.tags("example")