Вопрос

I'm trying to setup Code Analysis in my Visual Studio 2012 to require all methods have a tag in comments above the method.

Does anyone know of a Code-Analysis rule that will do this? Is there also a rule that will require the tag for classes and class fields?

Thanks in advance for any help!

Это было полезно?

Решение

StyleCop has a number of rules in this area - I'd recommend checking that out if you need to do this kind of analysis. For example: http://www.stylecop.com/docs/Documentation%20Rules.html

You can download the tool from http://stylecop.codeplex.com/

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top