如何使用yardoc列出未记录的模块/类/常量/方法?(How can I list the undocumented modules/classes/constants/methods with y

编程入门 行业动态 更新时间:2024-10-17 21:23:33
如何使用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% 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?

最满意答案

您可以使用--list-undoc选项专门列出所有未记录的对象(及其文件位置)。

yard stats --list-undoc

甚至

yard --list-undoc

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

更多推荐

本文发布于:2023-04-28 06:17:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1330331.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:常量   如何使用   未记录   模块   方法

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!