Ben Northrop

  Thinking out loud about programming, decisions, philosophy...
...code ownership
Blog   |   Misc   |   CV   |   RSS    

JavaNCSS - Filtering Getters and Setters

  November 25th 2009

Here's a really simple program which takes JavaNCSS output and filters out the getters and setters, since these can obscure the average complexity scores pretty significantly. If you have a bunch of DTO or model classes, your average complexity can look really low, even if other classes are very complex.

You can use it like so...

c:\> javancss –function –recursive c:\codebase\myproj\src | java FilterGettersAndSetters

Here is the class file and here is the source. Let me know if it doesn't work!



I am currently living in Pittsburgh, PA, working as a Senior Technical Consultant for Summa, and studying as a part-time graduate student in Philosophy at Carnegie Mellon University. My thoughts here are mostly on software development, but trying to take a few insights from philosophy, psychology, economics, and decision sciences to help us understand better why we do what we do...and how to do it better. I maintain two pet projects: codersCV and PMDReports. Check 'em out!




Got a Comment?

Name:
Website:
Are you human:
Comment:

Comments (0)


 None so far!