lib/yard/cli/spellcheck.rb in yard-spellcheck-0.1.0 vs lib/yard/cli/spellcheck.rb in yard-spellcheck-0.1.1

- old
+ new

@@ -37,17 +37,21 @@ # The arguments for the command. # def run(*args) optparse(*args) + CLI::Yardoc.run('-c', '-n', '--no-stats') + @checker.check!(@names) do |element,typos| print_typos element, typos end if @stats puts "Statistics" print_stats @checker end + + exit -1 unless @checker.misspelled.empty? end protected include YARD::Spellcheck::Printer