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

Perl::Critic::Policy::TestingAndDebugging::ProhibitProlongedStrictureOverride - Don't turn off strict for

Affiliation

       This Policy is part of the core Perl::Critic distribution.

Author

       Chris Dolan <cdolan@cpan.org>

Configuration

       The default number of statements allowed per "no strict" is three.  To override this number, put the
       following in your .perlcriticrc:

           [TestingAndDebugging::ProhibitProlongedStrictureOverride]
           statements = 5

Description

       Every agrees that "use strict" is the first step to writing maintainable code in Perl.  However,
       sometimes "strict" is a little too strict.  In those cases, you can turn it off briefly with a "no
       strict" directive.

       This policy checks that "no strict" is only in effect for a small number of statements.

Name

       Perl::Critic::Policy::TestingAndDebugging::ProhibitProlongedStrictureOverride - Don't turn off strict for
       large blocks of code.

See Also