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

Perl::Critic::Policy::TooMuchCode::ProhibitUnusedInclude3pm

Overview

This critic policy scans for unused include statement according to their documentation.

For example, Try::Tiny implicitly introduce a "try" subroutine that takes a block. Therefore, a lonely "use Try::Tiny" statement without a "try { .. }" block somewhere in its scope is considered to be an "Unused Include".

Notice: This module use a hard-coded list of commonly-used CPAN modules with symbols exported from them. Although it is relatively static, it needs to be revised from time to time.

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.