Search results for "module:Perl::Critic::Policy::ValuesAndExpressions::ProhibitVersionStrings"

Perl::Critic::Policy::ValuesAndExpressions::ProhibitVersionStrings - Don't use strings like v1.4 or 1.4.5 when including other modules. River stage three • 131 direct dependents • 386 total dependents

Whenever you "use" or "require" a module, you can specify a minimum version requirement. To ensure compatibility with older Perls, this version number should be expressed as a floating-point number. Do not use v-strings or three-part numbers. The Per...

PETDANCE/Perl-Critic-1.142 - 29 Nov 2022 02:20:23 UTC

Perl::Critic::Policy::Modules::ProhibitUseQuotedVersion - avoid quoted version number string in a "use" statement River stage two • 5 direct dependents • 18 total dependents

This policy is part of the "Perl::Critic::Pulp" add-on. It asks you not to quote a version number string as the sole argument to a "use" or "no" statement. use Foo::Bar '1.50'; # bad use Foo::Bar 1.50; # ok no Abc::Def '2.000_010'; # bad no Abc::Def ...

KRYDE/Perl-Critic-Pulp-99 - 28 Feb 2021 08:34:14 UTC

Perl::Critic::Policy::ValuesAndExpressions::RequireNumericVersion - $VERSION a plain number River stage two • 5 direct dependents • 18 total dependents

This policy is part of the "Perl::Critic::Pulp" add-on. It asks you to use a plain number in a module $VERSION so that Perl's builtin version works. Any literal number is fine, or a string which is a number, $VERSION = 123; # ok $VERSION = '1.5'; # o...

KRYDE/Perl-Critic-Pulp-99 - 28 Feb 2021 08:34:14 UTC

Perl::Critic::Policy::ValuesAndExpressions::RequireConstantVersion - Require $VERSION to be a constant rather than a computed value. River stage three • 131 direct dependents • 386 total dependents

The $VERSION variable of a module should be a simple constant - either a number, a single-quotish string, or a 'use version' object. In the latter case the 'use version;' must appear on the same line as the object construction. Computing the version ...

PETDANCE/Perl-Critic-1.142 - 29 Nov 2022 02:20:23 UTC
4 results (0.086 seconds)