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

TooMuchCode::ProhibitLargeBlock -- Find oversized blocks

Description

       This policy scan for large code blocks of the following type.

           map { ... };
           grep { ... };
           do { ... };

       By default a large block is one with more than 10 statements. If you need another limit, you can set the
       parameter "block_statement_count_limit".

       For example in the .perlcriticrc file

         [TooMuchCode::ProhibitLargeBlock]
         block_statement_count_limit = 20

perl v5.36.0                                       2023-10-05              Perl::Critic::...hibitLargeBlock(3pm)

Name

       TooMuchCode::ProhibitLargeBlock -- Find oversized blocks

See Also