Skip to content

Commit

Permalink
Supress yard warn log
Browse files Browse the repository at this point in the history
  • Loading branch information
euglena1215 committed Jan 7, 2024
1 parent a2d882b commit bee2088
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/packwerk_yard/parser.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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|
Expand Down

0 comments on commit bee2088

Please sign in to comment.