如何为 resharper 注释所有公共方法/类/属性等设置规则样式警察
我需要有规则来评论所有公共方法/类/属性等。 我找不到适合我的要求的任何标准规则。 我该怎么做呢?
I need to have rule for comment all public methods/classes/properties etc.
I can`t found any standard rule for my requirements.
How can I do it?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
StyleCop 可以部分满足您通过规则 SA1600 到 SA1608(元素文档)所追求的要求,但它们不是基于可访问性,因此它也适用于您的所有私有方法/类/属性。您可以沿着这条路径记录所有内容,否则您需要编写自定义 StyleCop 规则: http://scottwhite.blogspot.com/2008/11/creating-custom-stylecop-rules-in-c.html
StyleCop can partially meet what you're after by rules SA1600 to SA1608 (Element Documentation), but they're not based on accessibility so it applies to all your private methods/classes/properties as well. You can either go down this path and document everything otherwise you'll need to write a custom StyleCop rule: http://scottwhite.blogspot.com/2008/11/creating-custom-stylecop-rules-in-c.html