diff options
Diffstat (limited to 'perlcritic/perlcriticrc')
-rw-r--r-- | perlcritic/perlcriticrc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/perlcritic/perlcriticrc b/perlcritic/perlcriticrc index a3517cc8..37f033fe 100644 --- a/perlcritic/perlcriticrc +++ b/perlcritic/perlcriticrc @@ -20,8 +20,16 @@ add_exceptions = inet4 inet6 ipv4 ipv6 # Cool story, bro [-Editor::RequireEmacsFileVariables] +# Postfix dereferencing like $foo->@* causes false positives for this policy, +# a known bug; it's not fixed yet, so we'll just block this policy in the +# meantime: <https://github.com/Perl-Critic/Perl-Critic/issues/578> +[-References::ProhibitDoubleSigils] + # Soften this rather harsh policy a fair bit; tolerate negative one, all the # single-digit integers as literals, three powers of 10 (for percentages, # milliseconds etc), 60 (for angles and clocks), and 1900 (for localtime) [ValuesAndExpressions::ProhibitMagicNumbers] allowed_values = -1 0..9 10 60 100 1000 1900 + +# There's nothing wrong with $x == 2, and 2 == $x is just weird +[-ValuesAndExpressions::RequireConstantOnLeftSideOfEquality] |