ePages 6.10 - DE_EPAGES/Core/Scripts/Perl/Critic/Policy/DE_EPAGES/Style/ProhibitFunctionSize.pm

Package Perl::Critic::Policy::DE_EPAGES::Style::ProhibitFunctionSize

This module checks for functions which are too large This module acts as a custom policy for Perl::Critic. Perl::Critic uses Module::Pluggable to automatically discover all modules in the Perl::Critic::Policy namespace, which is exactly the cause we put this module beyond Perl::Critic::Policy. This policy iterates over all blocks in the current tested module. If the block is identified as a sub (function), its rows are counted minus these with parantheses (2). If the sum is larger than base_max, a violation is returned. §parameters base_max - the sum of maximal allowed lines in a sub