diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2017-10-06 01:10:18 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2017-10-06 01:10:18 +1300 |
commit | bc35e35081678ab880e2cef8265aa7f380b05649 (patch) | |
tree | 217c7bbad55d66e13e42eca1a3a370d2f3d57a5d /perlcritic | |
parent | Update submodules (diff) | |
download | dotfiles-bc35e35081678ab880e2cef8265aa7f380b05649.tar.gz dotfiles-bc35e35081678ab880e2cef8265aa7f380b05649.zip |
Allow 10 and 1000 as literals
Diffstat (limited to 'perlcritic')
-rw-r--r-- | perlcritic/perlcriticrc | 4 |
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 |