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::AfferentConnections - Afferent Connections per Class (ACC) metric

Description

       The metric calculation is based on the following article and calculates the class connectivity.

       PhD Thesis: Monitoramentodemetricasdecodigo-fonteemprojetosdesoftwarelivre by Paulo Roberto
       Miranda Meirelles.

       See the adaptation of the paragraph about Afferent Connections per Class in the article:

       Measures the connectivity of a class. If a class "Ci" access a method or attribute of a class "Cj",
       consider "Ci" a client of the supplier class "Cj", denoting "Ci => Cj".  Consider the follow function:

         client(Ci, Cj) = 1, if (Ci => Cj) and (Ci != Cj)
         client(Ci, Cj) = 0, otherwise.

       So "ACC(Cj) = (sum(client(Ci, Cj)), i = 1 to N)", where "N" is the total number of system classes. If the
       value of this metric is large, a change in the class has substantially more side effects, making
       maintenance more difficult.

Name

       Analizo::Metric::AfferentConnections - Afferent Connections per Class (ACC) metric

References

       •   Monitoramento     de     metricas     de    codigo-fonte    em    projetos    de    software    livre
           <https://www.teses.usp.br/teses/disponiveis/45/45134/tde-27082013-090242>

perl v5.40.0                                       2024-11-17             Analizo::Metric...rentConnections(3pm)

See Also