如何使用yardoc列出未记录的模块/类/常量/方法?(How can I list the undocumented modules/classes/constants/methods with yardoc?)
我有一个小的代码库,我正在使用YARD记录 。 当我运行yardoc命令时,它告诉我:
Files: 40 Modules: 14 ( 0 undocumented) Classes: 39 ( 0 undocumented) Constants: 21 ( 4 undocumented) Methods: 239 ( 31 undocumented) 88.82% documented而不是涉及我的所有代码,以找到未记录的常量和方法,我希望它只是列出未记录的项目。 有人知道怎么做吗
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% documentedInstead 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?
最满意答案
您可以使用--list-undoc选项专门列出所有未记录的对象(及其文件位置)。
yard stats --list-undoc甚至
yard --list-undocYou can specifically list all undocumented objects (and their file locations) with the --list-undoc option.
yard stats --list-undocor even
yard --list-undoc更多推荐
发布评论