bmitch / Codor

Custom PHPCS sniffs to find Code Smells

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

A more gentle class line count sniff

bmitch opened this issue · comments

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.

@Exadra37 just for you 😃

@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.