A more gentle class line count sniff
bmitch opened this issue · comments
Bill Mitchell commented
The current Codor.Classes.ClassLength
simply counts the number of lines between the opening {
and the closing }
of a class.
Sometimes the number of doc blocks plus a number of small methods can make this climb quite fast.
A more "gentle" sniff for this would be nice. One that only counts logical lines of code.
Bill Mitchell commented
@Exadra37 just for you 😃
Bill Mitchell commented
@Exadra37 if you don't mind could you please test this out? I tried it on a couple packages and it seemed fine. You can test with the bmitchell-112
branch.