diff --git a/lib/packwerk_yard/parser.rb b/lib/packwerk_yard/parser.rb index 001b35a..0896ece 100644 --- a/lib/packwerk_yard/parser.rb +++ b/lib/packwerk_yard/parser.rb @@ -35,7 +35,9 @@ def match?(path:) def extract_from_yard_to_types(source_code) YARD::Registry.clear - YARD::Parser::SourceParser.parse_string(source_code) + YARD::Logger.instance.enter_level(YARD::Logger::ERROR) do + YARD::Parser::SourceParser.parse_string(source_code) + end types = YARD::Registry.all(:method).each_with_object([]) do |method_object, arr| method_object.tags("param").each do |tag|