OCaml Metrics


OCaml Metrics is a simple OCaml code analysis tool. It can compute some metrics of functions and modules: cyclomatic complexity, the number of lines of code, Halstead complexity measures (difficulty, volume and effort) and Maintainability Index. OCaml Metrics generates reports in three formats: HTML, simple XML or plain text.

This allows developers to find parts of their projects which need refactoring in order to keep the projects easily maintainable.

Sample HTML output (OCaml Metrics v0.51 source)
Sample XML output (OCaml Metrics v0.51 source)

Project is hosted at OCamlForge.

Marcin Sulikowski
Back to author's homepage