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::AverageMethodLinesOfCode - Average Method Lines of Code (AMLOC) metric

DESCRIPTION

The metric calculation is based on the following article and calculates the average number of lines of code per method.

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

See the adaptation of the paragraph about Average Method Lines of Code metric:

This metric indicates if the code is well distributed between the methods. How bigger, "heavier" are the methods. It's preferable to have a lot of small and of easy understanding operations than few large and complex operations.