logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Analizo::Metric::NumberOfPublicAttributes - Number of Public Attributes (NPA) metric

Description

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

       Article: Monitoringofsourcecodemetricsinopensourceprojects by Paulo Roberto Miranda Meirelles.

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

       It measures the encapsulation. The attributes of a class must only serve to the functionalities of
       itself. Thus, good programming practices recommend that the attributes of a class must be manipulated
       using the access methods (Beck, 1997), the attributes of a class must be private, indicating that the
       ideal number for this metric is zero.

perl v5.40.0                                       2024-11-17              Analizo::Metri...ublicAttributes(3pm)

Name

       Analizo::Metric::NumberOfPublicAttributes - Number of Public Attributes (NPA) metric

See Also