سؤال

I'm looking for a way to create a rule for StyleCop, Resharper, Visual Studio itself or at least a add in which show me a visual warning if a method is longer than X characters / longer than X lines.

Anyone some working solutions?

هل كانت مفيدة؟

المحلول

This is a very simple rule to create with StyleCop. If you don't feel like rolling your own, StyleCop+ includes such a rule that is configurable to your preferred maximum method length.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top