The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Analizo::Metric::NumerOfAttributes - Number of Attributes (NOA) metric

DESCRIPTION

The metric calculation is based on the following article and calculates the number of attributes of a class.

Article: Monitoring of source code metrics in open source projects by Paulo Roberto Miranda Meirelles.

See the adaptation of the paragraph about Number of Attributes in the article:

Calculates the number of attributes of a class. Its minimum value is zero and there is no upper limit to its result. A class with many attributes may indicate that it has many responsibilities and presents a low cohesion, i. e., is probably dealing with several different subjects.