Perl::Critic::Policy - Base class for all Policy modules. River stage three • 122 direct dependents • 374 total dependents

Perl::Critic::Policy is the abstract base class for all Policy objects. If you're developing your own Policies, your job is to implement and override its methods in a subclass. To work with the Perl::Critic engine, your implementation must behave as ...

PETDANCE/Perl-Critic-1.140 - 24 Mar 2021 03:09:35 UTC

Test::Perl::Critic::Policy - A framework for testing your custom Policies River stage three • 122 direct dependents • 374 total dependents

This module provides a framework for function-testing your custom Perl::Critic::Policy modules. Policy testing usually involves feeding it a string of Perl code and checking its behavior. In the old days, those strings of Perl code were mixed directl...

PETDANCE/Perl-Critic-1.140 - 24 Mar 2021 03:09:35 UTC

Perl::Critic::Policy::Perlsecret - Prevent perlsecrets entering your codebase River stage one • 1 direct dependent • 1 total dependent

This policy checks for perlsecret operators in your code and warns you about them. You can override the secrets that are allowed or disallowed using the parameters "allow_secrets" and "disallow_secrets". The default is to simply disallow everything. ...

LANCEW/Perl-Critic-Policy-Perlsecret-0.0.11 - 05 Jan 2017 20:45:37 UTC

Perl::Critic::Policy::BadStrings - Search for bad strings in source files River stage one • 1 direct dependent • 1 total dependent

This policy will search for "bad words" in a file. It does this by looking at the raw Perl file, so the "bad words" can include different types of elements. The obvious use for this module would be to search for obscene words, but it can also be used...

JMASLAK/Perl-Critic-Policy-BadStrings-1.000 - 25 Nov 2017 16:22:09 UTC

Perl::Critic::Policy::CompileTime - Provide Perl::Critic support for hunting down compile-time side effects River stage one • 1 direct dependent • 1 total dependent

Perl::Critic::Policy::CompileTime is a Perl::Critic module which allows one to quickly find code in a large codebase or installation which may not run the way one expects when compiled by the Perl compiler, B::C. With the help of the underlying code ...

XAN/Perl-Critic-Policy-CompileTime-0.03 - 26 Sep 2014 20:34:02 UTC

Perl::Critic::Policy::HTTPCookies - Avoid using HTTP::Cookies River stage one • 1 direct dependent • 1 total dependent

This module provides Perl::Critic policies to detect the use of HTTP::Cookies. HTTP::Cookies takes a very lenient approach to setting cookies that does not work well with today's Internet, described in "LIMITATIONS" in HTTP::Cookies. Consider using H...

TOMHUKINS/Perl-Critic-Policy-HTTPCookies-0.54 - 27 Aug 2020 12:49:26 UTC

Perl::Critic::Policy::ProhibitOrReturn - Do not use `or return` River stage one • 1 direct dependent • 1 total dependent

Avoid using "or return". Consider using equivalent "if" (or "unless") statement instead. # not ok sub foo { my ($x) = @_; $x or return; ... } # ok sub foo { my ($x) = @_; return if !$x; ... }...

UTGWKK/Perl-Critic-Policy-ProhibitOrReturn-0.02 - 16 Nov 2020 02:07:24 UTC

Perl::Critic::Policy::ProhibitSmartmatch River stage one • 1 direct dependent • 1 total dependent

This distribution provides two Perl::Critic policies which help to avoid both explicit and implicit smartmatching....

HOLCAPEK/Perl-Critic-Policy-ProhibitSmartmatch-0.4 - 08 Dec 2017 08:44:38 UTC

Perl::Critic::Policy::ProhibitImplicitImport - Prefer symbol imports to be explicit River stage one • 1 direct dependent • 1 total dependent

Some Perl modules can implicitly import many symbols if no imports are specified. To avoid this, and to assist in finding where symbols have been imported from, specify the symbols you want to import explicitly in the "use" statement. Alternatively, ...

OALDERS/Perl-Critic-Policy-ProhibitImplicitImport-0.000001 - 19 Feb 2021 22:58:00 UTC

Perl::Critic::Policy::Freenode::Each - Don't use each to iterate through a hash River stage one • 5 direct dependents • 6 total dependents

Legacy "freenode" theme alias of Perl::Critic::Policy::Community::Each....

DBOOK/Perl-Critic-Community-v1.0.0 - 27 May 2021 06:45:59 UTC

Perl::Critic::Policy::Community::Each - Don't use each to iterate through a hash River stage one • 5 direct dependents • 6 total dependents

The "each()" function relies on an iterator internal to a hash (or array), which is the same iterator used by "keys()" and "values()". So deleting or adding hash elements during iteration, or just calling "keys()" or "values()" on the hash, will caus...

DBOOK/Perl-Critic-Community-v1.0.0 - 27 May 2021 06:45:59 UTC

Perl::Critic::Policy::Freenode::ModPerl - Don't use mod_perl to write web applications River stage one • 5 direct dependents • 6 total dependents

Legacy "freenode" theme alias of Perl::Critic::Policy::Community::ModPerl....

DBOOK/Perl-Critic-Community-v1.0.0 - 27 May 2021 06:45:59 UTC

Perl::Critic::Policy::Freenode::Threads - Interpreter-based threads are officially discouraged River stage one • 5 direct dependents • 6 total dependents

Legacy "freenode" theme alias of Perl::Critic::Policy::Community::Threads....

DBOOK/Perl-Critic-Community-v1.0.0 - 27 May 2021 06:45:59 UTC

Perl::Critic::Policy::Community::Threads - Interpreter-based threads are officially discouraged River stage one • 5 direct dependents • 6 total dependents

Perl interpreter threads are officially discouraged. They were created to emulate "fork()" in Windows environments, and are not fast or lightweight as one may expect. Non-blocking code or I/O can be easily parallelized by using an event loop such as ...

DBOOK/Perl-Critic-Community-v1.0.0 - 27 May 2021 06:45:59 UTC

Perl::Critic::Policy::Community::ModPerl - Don't use mod_perl to write web applications River stage one • 5 direct dependents • 6 total dependents

mod_perl <http://perl.apache.org/> is an embedded Perl interpreter for the Apache <http://www.apache.org/> web server. It allows you to dynamically configure and mod Apache. It is not a generally good solution for writing web applications. Frameworks...

DBOOK/Perl-Critic-Community-v1.0.0 - 27 May 2021 06:45:59 UTC

Perl::Critic::Policy::Freenode::OpenArgs - Always use the three-argument form of open River stage one • 5 direct dependents • 6 total dependents

Legacy "freenode" theme alias of Perl::Critic::Policy::Community::OpenArgs....

DBOOK/Perl-Critic-Community-v1.0.0 - 27 May 2021 06:45:59 UTC

Perl::Critic::Policy::Freenode::DollarAB - Don't use $a or $b as variable names outside sort River stage one • 5 direct dependents • 6 total dependents

Legacy "freenode" theme alias of Perl::Critic::Policy::Community::DollarAB....

DBOOK/Perl-Critic-Community-v1.0.0 - 27 May 2021 06:45:59 UTC

Perl::Critic::PolicyBundle::SNEZ - extra Perl::Critic policies River stage one • 1 direct dependent • 1 total dependent

This is a set of policies I deemed useful but were not present in the core Perl::Critic (as far as I know)....

SNEZ/Perl-Critic-PolicyBundle-SNEZ-0.02 - 09 Aug 2019 12:24:48 UTC

Perl::Critic::Policy::Community::OpenArgs - Always use the three-argument form of open River stage one • 5 direct dependents • 6 total dependents

The "open()" function may be called in a two-argument form where the filename is parsed to determine the mode of opening, which may include piping input or output. (In the one-argument form, this filename is retrieved from a global variable, but the ...

DBOOK/Perl-Critic-Community-v1.0.0 - 27 May 2021 06:45:59 UTC

Perl::Critic::Policy::Freenode::Wantarray - Don't write context-sensitive functions using wantarray River stage one • 5 direct dependents • 6 total dependents

Legacy "freenode" theme alias of Perl::Critic::Policy::Community::Wantarray....

DBOOK/Perl-Critic-Community-v1.0.0 - 27 May 2021 06:45:59 UTC
410 results (0.076 seconds)