Agile Code Quality MetricsGil Nahmias, CSP
Summary for ExpertsTools‘Metrics’ eclipse plugin
Ndepend
SourceMonitor
KlocworkMetricsWTF/MinuteAbstractness vs. InstabilityCyclomatic complexityTest cases/ClassDefect DensityFan in, Fan outCode coverage, Test coverage
“Metrics are a carving knife when what you really need is a scalpel. Metrics can tell you something is wrong, but they can't give you much guidance about the precise cause.disclaimerIn the case of clean code, the cause is discipline and professionalism”...”Fixing that problem is a matter of instilling pride of workmanship into the team”     				 -- Uncle Bob
Note before we startWhat are we trying to understandWhat we actually measureHow does it make people behave
Note before we startWhat are we trying to understandWhat we actually measureSoftware Quality# of bugsHow does it make people behaveNot record bugsHidden bugs, long stabilization, poor quality
Note before we startWhat are we trying to understandWhat we actually measureSoftware QualityEscaping DefectsHow does it make people behaveHidden bugs, long stabilization, poor quality
WTF/Minute – in code reviewosnews.com/comics
Abstractness vs. instabilityblog.troytuttle.com
Software qualityDefect Density: number of defects per lines of codeUnit test density: number of unit test cases per feature or class.+ve (actual = expected)			    -ve (actual != expected)		    stress 			    integrationMINIMUM4

Agile code quality metrics