Skip to content

Commit

Permalink
Support fail_on_warning in YARD::CLI::Stats
Browse files Browse the repository at this point in the history
Fixes #1392
  • Loading branch information
lsegal committed Sep 5, 2021
1 parent c0c039a commit 8364574
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/yard/cli/stats.rb
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ def run(*args)

print_statistics
print_undocumented_objects

abort if fail_on_warning && log.warned
end

# Prints statistics for different object types
Expand Down

0 comments on commit 8364574

Please sign in to comment.