Code metrics tool


Logtalk code_metrics tool allows applying code metrics to source code. Several basic metrics are provided:

  • Halstead complexity
  • Cyclomatic complexity
  • Efferent coupling
  • Afferent coupling
  • Instability
  • Abstractness
  • Documentation
  • Source code size
  • Depth of Inheritance
  • Number of Clauses
  • Number of Rules

The tool is extensible allowing users to define their own metrics.

For details on the code metrics tool, see https://github.com/LogtalkDotOrg/logtalk3/blob/master/tools/code_metrics/NOTES.md