سؤال

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