Is there a way to limit file size?

Jan 27, 2011 at 4:30 AM

It would be nice to have a warning for source files longer than maybe 3000 lines.

Developer
Jan 27, 2011 at 9:09 AM

Hi,

StyleCop+ has rules for checking method (and property) size.
The idea of checking the whole file sounds reasonable - I think it could be implemented there.

The only thing needs to be decided - what exactly to check. On one hand it could really be the number of lines. On the other (especially when you are controlling methods size) someone could want to limit a number of entities (methods, properties, fields, etc.) by their quantity (e.g. no more than 100 entities per class).

Best regards,
Oleg Shuruev

Feb 2, 2011 at 10:21 PM

Btw, StyleCop+ is a "must have" when using StyleCop!