Risk-Aware Code Review: Auto Approve Low-Risk Changes
LiveReview LiveReview LiveReview - Free, Risk-Aware Code Review: Auto Approve Low-Risk Changes | Product Hunt LiveReview - Free, Risk-Aware Code Review: Auto Approve Low-Risk Changes | Product Hunt GitHub Install Now

We'd appreciate a star

TooMuchCode::ProhibitUnusedConstant -- Find unused constants.

Description

       This policy finds constant declarations by "constant" pragma, and further looks to see if they exist in
       the rest of the code.  (The scope of searching is within the same file.)

       It identifies constants defined in two simple forms, such as:

           use constant PI => 3.14;

       ... and

           use constant { PI => 3.14, TAU => 6.28 };

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

Name

       TooMuchCode::ProhibitUnusedConstant -- Find unused constants.

See Also