Search results for "module:Perl::Critic::Policy::ValuesAndExpressions::ProhibitEmptyQuotes"

Perl::Critic::Policy::ValuesAndExpressions::ProhibitEmptyQuotes - Write q{} instead of ''. River stage three • 131 direct dependents • 386 total dependents

Don't use quotes for an empty string or any string that is pure whitespace. Instead, use "q{}" to improve legibility. Better still, created named values like this. Use the "x" operator to repeat characters. $message = ''; #not ok $message = ""; #not ...

PETDANCE/Perl-Critic-1.142 - 29 Nov 2022 02:20:23 UTC

Perl::Critic - Critique Perl source code for best-practices. River stage three • 131 direct dependents • 386 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.142 - 29 Nov 2022 02:20:23 UTC

Perl::Critic::Policy::ValuesAndExpressions::ProhibitNoisyQuotes - Use q{} or qq{} instead of quotes for awkward-looking strings. River stage three • 131 direct dependents • 386 total dependents

Don't use quotes for one or two-character strings of non-alphanumeric characters (i.e. noise). These tend to be hard to read. For legibility, use "q{}" or a named value. However, braces, parentheses and brackets tend to look better in quotes, so thos...

PETDANCE/Perl-Critic-1.142 - 29 Nov 2022 02:20:23 UTC
3 results (0.129 seconds)