45

I have a small library of code that I am documenting with YARD. When I run the yardoc command, it tells me:

Files:          40
Modules:        14 (    0 undocumented)
Classes:        39 (    0 undocumented)
Constants:      21 (    4 undocumented)
Methods:       239 (   31 undocumented)
 88.82% documented

Instead of wading through all of my code to find the undocumented constants and methods, I want it to simply list the undocumented items. Anybody know how to do this?

Jeff Terrell Ph.D.
  • 2,563
  • 26
  • 39

2 Answers2

51

You can specifically list all undocumented objects (and their file locations) with the --list-undoc option.

yard stats --list-undoc

or even

yard --list-undoc
matb
  • 851
  • 13
  • 23
Vasiliy Ermolovich
  • 24,459
  • 5
  • 79
  • 77
27

This confused me as well. The --list-undoc option is actually defined under the stats command. Also, the command is yard rather than yardoc, which is shorthand for yard doc.

yard stats --list-undoc
Asher
  • 1,195
  • 1
  • 11
  • 19
postmodern
  • 271
  • 2
  • 2