CodeScan is based on SonarQube™, an open source reporting platform for coding languages. The metric definitions used for some of our rules including those based around complexity and duplication have been pre-defined by SonarQube™.
To learn more about the different metric definitions, please see the SonarQube™ documentation at the link below.