Search results for "Perl::Critic::Policy::"

Perl::Critic::Policy - Base class for all Policy modules. River stage three • 131 direct dependents • 411 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.156 - 23 Oct 2024 04:49:49 UTC - Search in distribution

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 - Search in distribution

Perl::Critic::Policy::Perlsecret - Prevent perlsecrets entering your codebase River stage two • 2 direct dependents • 20 total dependents

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 - Search in distribution

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 - Search in distribution

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 - Search in distribution

Perl::Critic::Policy::PreferredModules - Provide custom package recommendations River stage one • 1 direct dependent • 1 total dependent

Every project has its own rules for preferring specific packages over others. This Policy tries to be `un-opinionated` and let the user provide a module preferences with an explanation and/or suggested alternative....

ATOOMIC/Perl-Critic-Policy-PreferredModules-0.004 - 24 Jan 2022 22:09:59 UTC - Search in distribution

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 - Search in distribution

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 - Search in distribution

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 - Search in distribution

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 - Search in distribution

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

Legacy "freenode" theme policy alias....

DBOOK/Perl-Critic-Community-v1.0.3 - 24 Jul 2022 06:28:31 UTC - Search in distribution

Perl::Critic::PolicyBundle::PERLANCAR - Perl::Critic policies River stage one • 3 direct dependents • 3 total dependents

PERLANCAR/Perl-Critic-PolicyBundle-PERLANCAR-0.002 - 16 Aug 2017 11:37:53 UTC - Search in distribution

Perl::Critic::Policy::Dynamic::NoIndirect - Perl::Critic policy against indirect method calls. River stage one • 3 direct dependents • 3 total dependents

This Perl::Critic dynamic policy reports any use of indirect object syntax with a 'stern' severity. It's listed under the 'dynamic' and 'maintenance' themes. Since it wraps around indirect, it needs to compile the audited code and as such is implemen...

VPIT/Perl-Critic-Policy-Dynamic-NoIndirect-0.06 - 25 Aug 2011 14:55:26 UTC - Search in distribution

Perl::Critic::Policy::TryTiny::RequireUse - Requires that code which utilizes Try::Tiny actually use()es it. River stage one • 1 direct dependent • 1 total dependent

A common problem with Try::Tiny is forgetting to use the module in the first place. For example: perl -e 'try { print "hello" } catch { print "world" }' Can't call method "catch" without a package or object reference at -e line 1. helloworld If you f...

BLUEFEET/Perl-Critic-Policy-TryTiny-RequireUse-0.05 - 03 Mar 2019 18:55:41 UTC - Search in distribution

Perl::Critic::Policy::Variables::NameReuse - Don't reuse names for different types of variables River stage one • 1 direct dependent • 1 total dependent

This policy checks for the existence of multiple variables with the same name in a file. This can be confusing especially when accessing elements of variables or using list or key-value slices. For example, the code could access both $foo and $foo[0]...

DBOOK/Perl-Critic-Policy-Variables-NameReuse-v0.1.0 - 29 Nov 2018 02:18:04 UTC - Search in distribution

Perl::Critic::DynamicPolicy - Base class for dynamic Policies River stage one • 3 direct dependents • 9 total dependents

Perl::Critic::DynamicPolicy is intended to be used as a base class for Perl::Critic::Policy modules that wish to compile and/or execute the code that is being analyzed. Policies that inherit from Perl::Critic::DynamicPolicy will "fork" the process ea...

THALJEF/Perl-Critic-Dynamic-0.05 - 30 Sep 2010 22:07:27 UTC - Search in distribution

Perl::Critic::Policy::Bangs::ProhibitNoPlan - Know what you're going to test. River stage two • 8 direct dependents • 13 total dependents

Test::More should be given a plan indicting the number of tests to be run. This policy searches for instances of Test::More called with "no_plan"....

PETDANCE/Perl-Critic-Bangs-1.14 - 21 Oct 2024 04:37:22 UTC - Search in distribution

Perl::Critic::Policy::Tics::ProhibitUseBase - do not use base.pm River stage one • 3 direct dependents • 7 total dependents

use base qw(Baseclass); You've seen that a hundred times, right? That doesn't mean that it's a good idea. It screws with $VERSION, it alters (for the worse) the exceptions reported by failure-to-require, it doesn't let you call the base class's "impo...

RJBS/Perl-Critic-Tics-0.010 - 31 Dec 2022 19:04:14 UTC - Search in distribution

Perl::Critic::Policy::Reneeb::Capitalization - NamingConventions::Capitalization plus the ability to exempt "Full qualified package names" River stage one • 1 direct dependent • 1 total dependent

RENEEB/Perl-Critic-RENEEB-2.05 - 01 Dec 2020 07:16:10 UTC - Search in distribution

Perl::Critic::Policy::Modules::ProhibitUseLib - Prohibit 'use lib' in modules River stage one • 1 direct dependent • 1 total dependent

Perl::Critic::Policy::logicLAB::ProhibitUseLib prohibits the use of "use lib" in all files. This policy limits this to only modules. This policy is a derivation of Perl::Critic::Policy::logicLAB::ProhibitUseLib, see it's documentation for more inform...

GGOLDBACH/Perl-Critic-Policy-Modules-ProhibitUseLib-0.004 - 27 Sep 2018 16:31:33 UTC - Search in distribution
112 results (0.05 seconds)