Skip to content

Commit

Permalink
Merge pull request #4 from euglena1215/ignore-yard-warn
Browse files Browse the repository at this point in the history
Supress yard warn log
  • Loading branch information
euglena1215 authored Jan 7, 2024
2 parents a2d882b + bee2088 commit 45f2b8f
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 45f2b8f

Please sign in to comment.