How many defects are actually detected by advisor/static testing?
Nobody knows for sure, but if you use static and metric analyses wisely, you can yield as many as 2-8 defects per 1000 lines of code (KLOC). • About how many defects are there in code? Nobody knows for sure, but you’re on firm technical ground if you figure 30-50/KLOC (1000’s of Lines of Code) when it is brand-new software. Smart QA folks aim to get defects down close to 1/KLOC; some critical aerospace applications have to get below 0.1/KLOC. NOTE: All these numbers are highly approximate! • Why are software metrics so important? Experience shows that the most complicated pieces of a software product often contribute most of the errors. If you know how to distinguish the most-complex pieces and can then concentrate your effort there, you make the best use of your resources.