Skip to content
This repository has been archived by the owner on Apr 17, 2020. It is now read-only.

AbcMetricMethodCheck

Marco Otte-Witte edited this page Jun 27, 2013 · 3 revisions

This check reports methods with an ABC metric score that is higher than the threshold. The ABC metric is basically a measure for complexity and is calculated as:

a = number of assignments
b = number of branches
c = number of conditions

score = Math.sqrt(a*a + b*b + c*c)

Applies to

  • methods