The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

Search results for "dist:Perl-Critic-Pulp module::Perl::Critic::*"

Perl::Critic::Policy::Modules::ProhibitModuleShebang - don't put a #! line at the start of a module file 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 use a "#!" interpreter line in a .pm module file. #!/usr/bin/perl -w <-- bad package Foo; ... This "#!" does nothing but might make a reader think it's supposed to be a progra...

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

Perl::Critic::Pulp - some add-on perlcritic policies River stage two • 5 direct dependents • 18 total dependents

This is a collection of add-on policies for "Perl::Critic". They're under a "pulp" theme plus other themes according to their purpose (see "POLICY THEMES" in Perl::Critic). Bugs CodeLayout::ProhibitFatCommaNewline Avoid newline before "=>" not quotin...

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

Perl::Critic::Pulp::Utils - shared helper code for the Pulp perlcritic add-on River stage two • 5 direct dependents • 18 total dependents

This is a bit of a grab bag, but works as far as it goes....

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

Perl::Critic::Policy::Compatibility::Gtk2Constants - new enough Gtk2 version for its constants River stage two • 5 direct dependents • 18 total dependents

This policy is part of the "Perl::Critic::Pulp" add-on. It requires that if you use certain constant subs from "Gtk2" and "Glib" then you must explicitly have a "use" of a high enough version of those modules. use Gtk2 1.160; ... return Gtk2::EVENT_P...

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

Perl::Critic::Policy::Modules::ProhibitPOSIXimport - don't import the whole of POSIX into a module 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 "use POSIX" with an import of all the symbols from that module if you're only using a few things. package Foo; use POSIX; # bad The aim is to save some memory, and maybe run a...

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

Perl::Critic::Policy::Miscellanea::TextDomainUnused - check for Locale::TextDomain imported but unused River stage two • 5 direct dependents • 18 total dependents

This policy is part of the "Perl::Critic::Pulp" add-on. It reports when you have "Locale::TextDomain" like use Locale::TextDomain ('MyMessageDomain'); but then don't use any of its functions or variables __ __x __n __nx __xn __p __px __np __npx N__ N...

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

Perl::Critic::Policy::Compatibility::PodMinimumVersion - check Perl version declared against POD features used River stage two • 5 direct dependents • 18 total dependents

This policy is part of the "Perl::Critic::Pulp" add-on. It checks that the POD features you use don't exceed your target Perl version as indicated by "use 5.008" etc. use 5.005; =pod C<< something >> # bad, double angles needs 5.006 POD doesn't affec...

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

Perl::Critic::Policy::CodeLayout::RequireFinalSemicolon - require a semicolon at the end of code blocks River stage two • 5 direct dependents • 18 total dependents

This policy is part of the "Perl::Critic::Pulp" add-on. It asks you to put a semicolon ";" on the final statement of a subroutine or block. sub foo { do_something(); # ok } sub bar { do_something() # bad } The idea is that if you add more code you do...

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

Perl::Critic::Policy::Documentation::ProhibitLinkToSelf - don't Lltgt link to own POD 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 use "L<>" markup to refer to a POD document itself. =head1 NAME My::Package - something =head1 DESCRIPTION L<My::Package> does blah blah ... # bad =head1 SEE ALSO L<My::Packag...

KRYDE/Perl-Critic-Pulp-99 - 28 Feb 2021 08:34:14 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::Compatibility::ConstantPragmaHash - new enough "constant" module for multiple constants River stage two • 5 direct dependents • 18 total dependents

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::ValuesAndExpressions::ConstantBeforeLt - disallow bareword before < River stage two • 5 direct dependents • 18 total dependents

This policy is part of the "Perl::Critic::Pulp" add-on. It prohibits a bareword before a "<" to keep you out of trouble with autoloaded or unprototyped constant subs since a "<" in that case is interpreted as the start of a "<..>" glob or readline in...

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

Perl::Critic::Policy::Documentation::ProhibitDuplicateSeeAlso - don't duplicate Lltgt links in SEE ALSO 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 duplicate "L<Foo>" links in a SEE ALSO section. =head1 SEE ALSO L<Foo::Bar> L<Foo::Bar> # bad The idea is that for readability a given cross-reference should be linked just on...

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

Perl::Critic::Policy::Compatibility::PerlMinimumVersionAndWhy - explicit Perl version for features used River stage two • 5 direct dependents • 18 total dependents

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

Perl::Critic::Policy::Compatibility::ConstantLeadingUnderscore - new enough "constant" module for leading underscores River stage two • 5 direct dependents • 18 total dependents

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::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::ProhibitUnknownBackslash - don't use undefined backslash forms River stage two • 5 direct dependents • 18 total dependents

This policy is part of the "Perl::Critic::Pulp" add-on. It checks for unknown backslash escapes like print "\*.c"; # bad This is harmless, assuming the intention is a literal "*" (which it gives), but unnecessary, and on that basis this policy is und...

KRYDE/Perl-Critic-Pulp-99 - 28 Feb 2021 08:34:14 UTC
17 results (0.045 seconds)