logo
Free, Micro AI Code Reviews That Run on Git Commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, Micro AI Code Reviews That Run on Git Commit | Product Hunt git-lrc - Free, Micro AI Code Reviews That Run on Git Commit | Product Hunt

Analizo::Metric::DepthOfInheritanceTree - Depth of Inheritance Tree (DIT) metric

Description

       The metric calculation is based on the following article and calculates the longest path from a module to
       the class hierarchy root.

       Article: Anempiricalstudyofaspect-orientedmetrics by Eduardo Kessler Piveta, Ana Moreira, Marcelo
       Soares Pimenta, Joao Araujo, Pedro Guerreiro and R. Tom Price.

       See the adaptation of the paragraph about Depth of Inheritance Tree in the article:

       Considering a function "s(x) : Module -> Module" that computes the super-class or super-aspect of a giver
       module, the value of DIT is given by:

         DIT(m) = DIT(s(m)) + 1, ifc m != rootClass
         DIT(m) = 0, otherwise.

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

Name

       Analizo::Metric::DepthOfInheritanceTree - Depth of Inheritance Tree (DIT) metric

See Also