terça-feira, 2 de agosto de 2016

Code Review Target Values for Metrics: Example

Targets for code review activities could be set. One example could be (NEOSAT - Phase B example):

Target values for metrics:

MetricReference ValuesMin / Max Values
Defects corrected after document reviews100%Min
Number of tests failing before TRR0Max
Requirements covered by Validation100%Min
Structural analysis: Statement coverage100%Min
Structural analysis: Decision coverage100%Min
Nesting Level5Max
Cyclomatic complexity15Max
LOC per procedure100Max
Code comment frequency20%Min

The SUR (Subject under review) will then have to be scanned regarding whether it meets those requirements or not. Attributes like these could be mandated by international standards, customers, company internal coding standards and/or internal project coding standards / guidelines.