Perl::Critic - Critique Perl source code for best-practices. River stage three • 113 direct dependents • 454 total dependents

Perl::Critic is an extensible framework for creating and applying coding standards to Perl source code. Essentially, it is a static source code analysis engine. Perl::Critic is distributed with a number of Perl::Critic::Policy modules that attempt to...

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

Perl::Critic::Document - Caching wrapper around a PPI::Document. River stage three • 113 direct dependents • 454 total dependents

Perl::Critic does a lot of iterations over the PPI document tree via the "PPI::Document::find()" method. To save some time, this class pre-caches a lot of the common "find()" calls in a single traversal. Then, on subsequent requests we return the cac...

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

perlcritic - Command-line interface to critique Perl source. River stage three • 113 direct dependents • 454 total dependents

"perlcritic" is a Perl source code analyzer. It is the executable front-end to the Perl::Critic engine, which attempts to identify awkward, hard to read, error-prone, or unconventional constructs in your code. Most of the rules are based on Damian Co...

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

Perl::Critic::Utils - General utility subroutines and constants for Perl::Critic and derivative distributions. River stage three • 113 direct dependents • 454 total dependents

This module provides several static subs and variables that are useful for developing Perl::Critic::Policy subclasses. Unless you are writing Policy modules, you probably don't care about this package....

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

Perl::Critic::Policy::CodeLayout::RequireTrailingCommas - Put a comma at the end of every multi-line list declaration, including the last one. River stage three • 113 direct dependents • 454 total dependents

Conway suggests that all elements in a multi-line list should be separated by commas, including the last element. This makes it a little easier to re-order the list by cutting and pasting. my @list = ($foo, $bar, $baz); #not ok my @list = ($foo, $bar...

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

Perl::Critic::Policy::CodeLayout::ProhibitQuotedWordLists - Write qw(foo bar baz) instead of ('foo', 'bar', 'baz'). River stage three • 113 direct dependents • 454 total dependents

Conway doesn't mention this, but I think "qw()" is an underused feature of Perl. Whenever you need to declare a list of one-word literals, the "qw()" operator is wonderfully concise, and makes it easy to add to the list in the future. @list = ('foo',...

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

Perl::Critic::Policy::Variables::ProhibitPunctuationVars - Write $EVAL_ERROR instead of $@. River stage three • 113 direct dependents • 454 total dependents

Perl's vocabulary of punctuation variables such as $!, $., and $^ are perhaps the leading cause of its reputation as inscrutable line noise. The simple alternative is to use the English module to give them clear names. $| = undef; #not ok use English...

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

7 results (0.038 seconds)