Even software which has been thoroughly dynamically tested can have its problems. Static analysis gives the developer useful information on non-functional qualities of the source code, such as its maintainability and compliance with coding standards. Cantata++’s static analysis facilities allow the user to check that software complies with coding standards and is within acceptable limits of complexity.

Cantata++ provides facilities for gathering and reporting over 300 static analysis metrics on the code. Metrics include:

  • Chidamber and Kemerer’s MOOSE metric set.
  • Fernando Brito e Abreu’s MOOD metric set.
  • Bansiya and Davis’ QMOOD metric set.
  • Robert Martin’s object-oriented dependency metrics, McCabe’s object-oriented metrics, and Bansiya’s class entropy metrics.
  • Halstead’s Software Science metrics.
  • McCabe’s, Myers' and Hansen’s cyclomatic metrics.
  • Basic counts of language constructs - comments, lines of code, statements, parameters etc etc.
  • All metrics are provided at the function, class, translation unit, or system level, as appropriate.