Perl::Critic::Policy::TooMuchCode::ProhibitLargeBlock(3pm)

Perl::Critic::Policy::TooMuchCode::ProhibitLargeBlock3pm

Overview

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

Releases

2 releases since Debian 12 (Bookworm); the text changed 1 time.

  1. 12
  2. 13

From libperl-critic-toomuchcode-perl 0.19-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.