aboutsummaryrefslogtreecommitdiff
path: root/perlcritic
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2017-10-06 01:10:18 +1300
committerTom Ryder <tom@sanctum.geek.nz>2017-10-06 01:10:18 +1300
commitbc35e35081678ab880e2cef8265aa7f380b05649 (patch)
tree217c7bbad55d66e13e42eca1a3a370d2f3d57a5d /perlcritic
parentUpdate submodules (diff)
downloaddotfiles-bc35e35081678ab880e2cef8265aa7f380b05649.tar.gz
dotfiles-bc35e35081678ab880e2cef8265aa7f380b05649.zip
Allow 10 and 1000 as literals
Diffstat (limited to 'perlcritic')
-rw-r--r--perlcritic/perlcriticrc4
1 files changed, 2 insertions, 2 deletions
diff --git a/perlcritic/perlcriticrc b/perlcritic/perlcriticrc
index c3fda080..7428792a 100644
--- a/perlcritic/perlcriticrc
+++ b/perlcritic/perlcriticrc
@@ -11,6 +11,6 @@ severity = brutal
add_exceptions = inet4 inet6 ipv4 ipv6
# Soften this policy a bit; tolerate all the single-digit integers as literals,
-# and also 100 (for calculating percentages)
+# and also three powers of 10 (for percentages, milliseconds etc)
[ValuesAndExpressions::ProhibitMagicNumbers]
-allowed_values = 0..9 100
+allowed_values = 0..9 10 100 1000