What tools do you use to let you know that methods in your codebase are getting too long?

Posted by blueberryfields on Programmers See other posts from Programmers or by blueberryfields
Published on 2011-02-03T21:29:04Z Indexed on 2011/02/03 23:34 UTC
Read the original article Hit count: 628

Most people seem to agree that long methods are a code smell - a sign something may not be quite right with the code contained in them.

Which tools do you use to detect this smell?

clarified title based on responses. also, remember:

  • Your code will live over time, and be edited by multiple programmers
  • Emergency fixes and changes will come in, late at night, when the writer is too tired to pay attention to smells
  • Different programmers use different tools. A contractor with 4 screens set at maximum resolution will have a different idea of acceptable method size

In this context, I'm looking for tools and methods which go beyond looking at the size of a method when it's written, or when it's being edited.

© Programmers or respective owner

Related posts about code-quality

Related posts about code-reviews