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::ProhibitUnusedInclude -- Find unused include statements.

Description

       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.

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

Name

       TooMuchCode::ProhibitUnusedInclude -- Find unused include statements.

See Also