A Validation of Martin's Metric
: Sami Hyrynsalmi, Ville Leppänen
: Jari Peltonen
: Symposium on Programming Languages and Software Tools
: Tampere, Finland
: 2009
: Proceedings of 11th Symposium on Programming Languages and Software Tools and 7th Nordic Workshop on Model Driven Software Engineering
: Department of Software Systems Report
: 5
: 87
: 101
: 978-952-15-2212-3
: 978-952-15-2213-0
: 1797-836X
DOI: https://doi.org/10.13140/2.1.3645.3448
Robert C. Martin presented a software metric for a set of classes i.e. a package. The objective of the package level metric is to identify poorly designed packages. The Martin's metric actually consists of eight metrics which measure a few different characteristics of packages. The metric is widely known, but there is lack of theoretical and empirical evaluation of the Martin’s metric. This paper evaluates the theoretical background of the metric against an evaluation framework and presents an experimental evaluation of five open-source software applications. The theoretical validation reveals a weakness in Martin's definition for cohesion. We propose a modification which is valid according to the evaluation framework.