Perl::Critic::Utils::POD::ParseInteriorSequence - Pod::Parser subclass to find all interior sequences. River stage three • 113 direct dependents • 455 total dependents

Provides a means to extract interior sequences from POD text....

PETDANCE/Perl-Critic-1.134 - 23 May 2019 02:52:21 GMT

Perl::Critic::Exception::AggregateConfiguration - A collection of a set of problems found in the configuration and/or command-line options. River stage three • 113 direct dependents • 455 total dependents

A set of configuration settings can have multiple problems. This is an object for collecting all the problems found so that the user can see them in one run....

PETDANCE/Perl-Critic-1.134 - 23 May 2019 02:52:21 GMT

Perl::Critic::Policy::Modules::RequireVersionVar - Give every module a $VERSION number. River stage three • 113 direct dependents • 455 total dependents

Every Perl file (modules, libraries, and programs) should have a package-scoped $VERSION variable. The $VERSION allows clients to insist on a particular revision of your file like this: use SomeModule 2.4; #Only loads version 2.4 This Policy scans yo...

PETDANCE/Perl-Critic-1.134 - 23 May 2019 02:52:21 GMT

Perl::Critic::Policy::Modules::RequireEndWithOne - End each module with an explicitly 1; instead of some funky expression. River stage three • 113 direct dependents • 455 total dependents

All files included via "use" or "require" must end with a true value to indicate to the caller that the include was successful. The standard practice is to conclude your .pm files with "1;", but some authors like to get clever and return some other t...

PETDANCE/Perl-Critic-1.134 - 23 May 2019 02:52:21 GMT

Perl::Critic::PolicyParameter::Behavior::Integer - Actions appropriate for an integer parameter. River stage three • 113 direct dependents • 455 total dependents

Provides a standard set of functionality for an integer Perl::Critic::PolicyParameter so that the developer of a policy does not have to provide it her/himself. The parser provided by this behavior allows underscores ("_") in input values as in a Per...

PETDANCE/Perl-Critic-1.134 - 23 May 2019 02:52:21 GMT

Perl::Critic::Exception::Configuration::Generic - A problem with Perl::Critic configuration that doesn't involve an option. River stage three • 113 direct dependents • 455 total dependents

A representation of a problem found with the configuration of Perl::Critic, whether from a .perlcriticrc, another profile file, or command line. This covers things like file reading and parsing errors....

PETDANCE/Perl-Critic-1.134 - 23 May 2019 02:52:21 GMT

Perl::Critic::Policy::Miscellanea::ProhibitTies - Do not use tie. River stage three • 113 direct dependents • 455 total dependents

Conway discourages using "tie" to bind Perl primitive variables to user-defined objects. Unless the tie is done close to where the object is used, other developers probably won't know that the variable has special behavior. If you want to encapsulate...

PETDANCE/Perl-Critic-1.134 - 23 May 2019 02:52:21 GMT

Perl::Critic::PolicyParameter::Behavior::String - Actions appropriate for a simple string parameter. River stage three • 113 direct dependents • 455 total dependents

Provides a standard set of functionality for a string Perl::Critic::PolicyParameter so that the developer of a policy does not have to provide it her/himself. NOTE: Do not instantiate this class. Use the singleton instance held onto by Perl::Critic::...

PETDANCE/Perl-Critic-1.134 - 23 May 2019 02:52:21 GMT

Perl::Critic::Policy::Modules::ProhibitEvilModules - Ban modules that aren't blessed by your shop. River stage three • 113 direct dependents • 455 total dependents

Use this policy if you wish to prohibit the use of specific modules. These may be modules that you feel are deprecated, buggy, unsupported, insecure, or just don't like....

PETDANCE/Perl-Critic-1.134 - 23 May 2019 02:52:21 GMT

Perl::Critic::Policy::InputOutput::RequireBriefOpen - Close filehandles as soon as possible after opening them. River stage three • 113 direct dependents • 455 total dependents

One way that production systems fail unexpectedly is by running out of filehandles. Filehandles are a finite resource on every operating system that I'm aware of, and running out of them is virtually impossible to recover from. The solution is to not...

PETDANCE/Perl-Critic-1.134 - 23 May 2019 02:52:21 GMT

Perl::Critic::Policy::CodeLayout::RequireTidyCode - Must run code through perltidy. River stage three • 113 direct dependents • 455 total dependents

Conway does make specific recommendations for whitespace and curly-braces in your code, but the most important thing is to adopt a consistent layout, regardless of the specifics. And the easiest way to do that is to use Perl::Tidy. This policy will c...

PETDANCE/Perl-Critic-1.134 - 23 May 2019 02:52:21 GMT

Perl::Critic::PolicyParameter::Behavior::Boolean - Actions appropriate for a boolean parameter. River stage three • 113 direct dependents • 455 total dependents

Provides a standard set of functionality for a boolean Perl::Critic::PolicyParameter so that the developer of a policy does not have to provide it her/himself. NOTE: Do not instantiate this class. Use the singleton instance held onto by Perl::Critic:...

PETDANCE/Perl-Critic-1.134 - 23 May 2019 02:52:21 GMT

Perl::Critic::Policy::CodeLayout::ProhibitHardTabs - Use spaces instead of tabs. River stage three • 113 direct dependents • 455 total dependents

Putting hard tabs in your source code (or POD) is one of the worst things you can do to your co-workers and colleagues, especially if those tabs are anywhere other than a leading position. Because various applications and devices represent tabs diffe...

PETDANCE/Perl-Critic-1.134 - 23 May 2019 02:52:21 GMT

Perl::Critic::Policy::ErrorHandling::RequireCarping - Use functions from Carp instead of warn or die. River stage three • 113 direct dependents • 455 total dependents

The "die" and "warn" functions both report the file and line number where the exception occurred. But if someone else is using your subroutine, they usually don't care where your code blew up. Instead, they want to know where their code invoked the s...

PETDANCE/Perl-Critic-1.134 - 23 May 2019 02:52:21 GMT

Perl::Critic::Policy::Variables::ProhibitLocalVars - Use my instead of local, except when you have to. River stage three • 113 direct dependents • 455 total dependents

Since Perl 5, there are very few reasons to declare "local" variables. The most common exceptions are Perl's magical global variables. If you do need to modify one of those global variables, you should localize it first. You should also use the Engli...

PETDANCE/Perl-Critic-1.134 - 23 May 2019 02:52:21 GMT

Perl::Critic::Exception::Fatal::PolicyDefinition - A bug in a policy. River stage three • 113 direct dependents • 455 total dependents

A bug in a policy was found, e.g. it didn't implement a method that it should have....

PETDANCE/Perl-Critic-1.134 - 23 May 2019 02:52:21 GMT

Perl::Critic::Policy::Variables::ProhibitReusedNames - Do not reuse a variable name in a lexical scope River stage three • 113 direct dependents • 455 total dependents

It's really hard on future maintenance programmers if you reuse a variable name in a lexical scope. The programmer is at risk of confusing which variable is which. And, worse, the programmer could accidentally remove the inner declaration, thus silen...

PETDANCE/Perl-Critic-1.134 - 23 May 2019 02:52:21 GMT

Perl::Critic::Policy::Variables::ProhibitPackageVars - Eliminate globals declared with our or use vars. River stage three • 113 direct dependents • 455 total dependents

Conway suggests avoiding package variables completely, because they expose your internals to other packages. Never use a package variable when a lexical variable will suffice. If your package needs to keep some dynamic state, consider using an object...

PETDANCE/Perl-Critic-1.134 - 23 May 2019 02:52:21 GMT

Perl::Critic::Policy::Subroutines::ProhibitManyArgs - Too many arguments. River stage three • 113 direct dependents • 455 total dependents

Subroutines that expect large numbers of arguments are hard to use because programmers routinely have to look at documentation to remember the order of those arguments. Many arguments is often a sign that a subroutine should be refactored or that an ...

PETDANCE/Perl-Critic-1.134 - 23 May 2019 02:52:21 GMT

Perl::Critic::PolicyParameter::Behavior::StringList - Actions appropriate for a parameter that is a list of strings. River stage three • 113 direct dependents • 455 total dependents

Provides a standard set of functionality for a string list Perl::Critic::PolicyParameter so that the developer of a policy does not have to provide it her/himself. NOTE: Do not instantiate this class. Use the singleton instance held onto by Perl::Cri...

PETDANCE/Perl-Critic-1.134 - 23 May 2019 02:52:21 GMT

197 results (0.088 seconds)