Search results for "Perl::Critic::Policy::"
Perl::Critic::Policy - Base class for all Policy modules.
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- Test::Perl::Critic::Policy - A framework for testing your custom Policies
- Perl::Critic::PolicyConfig - Configuration data for a Policy.
- Perl::Critic::PolicyListing - Display minimal information about Policies.
- 175 more results from Perl-Critic »
Perl::Critic::Policy::BadStrings - Search for bad strings in source files
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- File::FindStrings - Finds strings within a file
- File::FindStrings::Boilerplate - Default Boilerplate for Perl::Critic::Policy::BadStrings
Perl::Critic::Policy::Perlsecret - Prevent perlsecrets entering your codebase
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
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
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
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`
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
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
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
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::CodeLayout::RequireKRParens - parenthesise in K&R style
- Perl::Critic::Policy::CodeLayout::RequireKRBracing - brace in K&R style
- Perl::Critic::Policy::CodeLayout::RequireBreakBeforeOperator - multiline expressions should be broken before operator
- 3 more results from Perl-Critic-PolicyBundle-SNEZ »
Perl::Critic::Policy::Freenode::Each - Don't use each to iterate through a hash
Legacy "freenode" theme policy alias....
DBOOK/Perl-Critic-Community-v1.0.3 - 24 Jul 2022 06:28:31 UTC - Search in distribution- Perl::Critic::Policy::Community::Each - Don't use each to iterate through a hash
- Perl::Critic::Policy::Freenode::Threads - Interpreter-based threads are officially discouraged
- Perl::Critic::Policy::Freenode::ModPerl - Don't use mod_perl to write web applications
- 51 more results from Perl-Critic-Community »
Perl::Critic::PolicyBundle::PERLANCAR - Perl::Critic policies
PERLANCAR/Perl-Critic-PolicyBundle-PERLANCAR-0.002
-
16 Aug 2017 11:37:53 UTC
-
Search in distribution
- Perl::Critic::PolicyBundle::PERLANCAR::BuiltinFunctions::GrepWithSimpleValue - Warn grep with simple value
- Perl::Critic::PolicyBundle::PERLANCAR::Variables::ProhibitFatCommaInDeclaration - Prohibit fat comma in declaration
Perl::Critic::Policy::Dynamic::NoIndirect - Perl::Critic policy against indirect method calls.
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.
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
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
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::Dynamic::ValidateAgainstSymbolTable
- Perl::Critic::Dynamic - Non-static policies for Perl::Critic
Perl::Critic::Policy::Bangs::ProhibitNoPlan - Know what you're going to test.
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::Bangs::ProhibitVagueNames - Don't use generic variable and subroutine names.
- Perl::Critic::Policy::Bangs::ProhibitFlagComments - Don't use XXX, TODO, or FIXME.
- Perl::Critic::Policy::Bangs::ProhibitNumberedNames - Prohibit variables and subroutines with names that end in digits.
- 6 more results from Perl-Critic-Bangs »
Perl::Critic::Policy::Tics::ProhibitUseBase - do not use base.pm
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::Tics::ProhibitLongLines - 80 x 40 for life!
- Perl::Critic::Policy::Tics::ProhibitManyArrows - (this => is => not => good)
Perl::Critic::Policy::Reneeb::Capitalization - NamingConventions::Capitalization plus the ability to exempt "Full qualified package names"
RENEEB/Perl-Critic-RENEEB-2.05
-
01 Dec 2020 07:16:10 UTC
-
Search in distribution
- Perl::Critic::Policy::Reneeb::RequirePostderef - Require Postdereferencing which became stable in Perl 5.24
- Perl::Critic::Policy::Reneeb::ProhibitBlockEval - Do not use the Block-eval. Use Try::Tiny instead
- Perl::Critic::Policy::Reneeb::ProhibitGrepToGetFirstFoundElement - Use List::Utils 'first' instead of grep if you want to get the first found element
- 2 more results from Perl-Critic-RENEEB »
Perl::Critic::Policy::Modules::ProhibitUseLib - Prohibit 'use lib' in modules
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