开发者

How to set rule Style cop for resharper comment all public methods/classes/properties etc

开发者 https://www.devze.com 2023-03-16 09:05 出处:网络
I need to have rule for comment all public methods/classes/properties etc. I ca开发者_开发问答n`t found any standard rule for my requirements.

I need to have rule for comment all public methods/classes/properties etc. I ca开发者_开发问答n`t found any standard rule for my requirements. How can I do it?


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

0

精彩评论

暂无评论...
验证码 换一张
取 消