Search results for "module:Perl::Critic::Policy::Modules::RequirePerlVersion"
Perl::Critic::Policy::Modules::RequirePerlVersion - Require a use 5.006; or similar.
As Perl evolves, new desirable features get added. The best ones seem to break backward compatibility, unfortunately. As a favor to downstream developers, it's good to state explicitly which Perl version will not be able to parse your code. For examp...
THALJEF/Perl-Critic-More-1.003 - 29 Oct 2013 16:43:05 UTC
Perl::Critic::Policy::Modules::RequireVersionVar - Give every module a $VERSION number.
Every Perl file (modules, libraries, and programs) should have a package-scoped $VERSION variable. The $VERSION allows clients to insist on a particular revision of your file like this: use SomeModule 2.4; #Only loads version 2.4 This Policy scans yo...
PETDANCE/Perl-Critic-1.152 - 17 Oct 2023 04:09:08 UTC
Perl::Critic::Policy::Compatibility::ConstantPragmaHash - new enough "constant" module for multiple constants
This policy is part of the "Perl::Critic::Pulp" add-on. It requires that when you use the hash style multiple constants of "use constant" that you explicitly declare either Perl 5.8 or "constant" 1.03 or higher. use constant { AA => 1, BB => 2 }; # b...
KRYDE/Perl-Critic-Pulp-99 - 28 Feb 2021 08:34:14 UTC
Perl::Critic::Policy::Compatibility::ConstantLeadingUnderscore - new enough "constant" module for leading underscores
This policy is part of the "Perl::Critic::Pulp" add-on. It asks that if you have a constant with a leading underscore, use constant _FOO ... # leading underscore on name then you explicitly declare "use 5.6" or "use constant 1.02", or higher, since "...
KRYDE/Perl-Critic-Pulp-99 - 28 Feb 2021 08:34:14 UTC
Perl::Critic::Policy::Compatibility::PerlMinimumVersionAndWhy - explicit Perl version for features used
This policy is part of the "Perl::Critic::Pulp" add-on. It requires that you have an explicit "use 5.XXX" etc for the Perl syntax features you use, as determined by "Perl::MinimumVersion". use 5.010; # the // operator is new in perl 5.010 print $x //...
KRYDE/Perl-Critic-Pulp-99 - 28 Feb 2021 08:34:14 UTC