aboutsummaryrefslogtreecommitdiff
path: root/perlcritic
diff options
context:
space:
mode:
Diffstat (limited to 'perlcritic')
-rw-r--r--perlcritic/perlcriticrc3
1 files changed, 3 insertions, 0 deletions
diff --git a/perlcritic/perlcriticrc b/perlcritic/perlcriticrc
index a3517cc8..0bd59c98 100644
--- a/perlcritic/perlcriticrc
+++ b/perlcritic/perlcriticrc
@@ -25,3 +25,6 @@ add_exceptions = inet4 inet6 ipv4 ipv6
# 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]