Perl::...verride(3pm)
β¨ NAME β¨
okay so this is the Perl::...verride(3pm) page from the User Contributed Perl Documentation, and the policy is Perl::Critic::Policy::TestingAndDebugging::ProhibitProlongedStrictureOverride β aka Don't turn off strict for large blocks of code. periodt π
π«Ά AFFILIATION π«Ά
This Policy is part of the core Perl::Critic distribution. no cap, it's core-core.
πΈ DESCRIPTION πΈ
Everyone agrees that use strict is the first step to writing maintainable code in Perl. But 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. That's the vibe check, bestie β¨
π 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
π AUTHOR π
Chris Dolan <cdolan@cpan.org> β iconic.
π COPYRIGHT π
Copyright (c) 2006-2011 Chris Dolan.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
mwah π this page is from perl v5.42.0, dated 2024-10-23, and it's the Perl::...verride(3pm) man page. bye bestie π«Ά
π¦ where this page comes from
- opensuse-leap 16.0: perl-Perl-Critic 1.156.0-bp160.1.1 Β· Artistic-1.0 OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms