Search results for "module:Perl::Critic::Policy::ValuesAndExpressions::ProhibitEmptyQuotes"
Perl::Critic::Policy::ValuesAndExpressions::ProhibitEmptyQuotes - Write q{} instead of ''.
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.152 - 17 Oct 2023 04:09:08 UTC
Perl::Critic - Critique Perl source code for best-practices.
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.152 - 17 Oct 2023 04:09:08 UTC
Perl::Critic::Policy::ValuesAndExpressions::ProhibitNoisyQuotes - Use q{} or qq{} instead of quotes for awkward-looking strings.
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.152 - 17 Oct 2023 04:09:08 UTC