Subject: | Severity levels are wrong in POD |
Hello,
While arguing with a certain "jawnsy" on IRC we realized that we were
looking at our configs from the opposite sides. The problem is with
severity levels. I was using numbers, and he was using the string
equivalents.
Looking at the POD, it's contradictory and we were left scratching our
heads!
"Severity values are integers ranging from 1 (least severe) to 5 (most
severe)."
"-severity => 'gentle' -severity => 5"
"-severity => 'brutal' -severity => 1"
Looking at the code in Perl::Critic::Utils shows:
Readonly::Hash my %SEVERITY_NUMBER_OF => (
gentle => 5,
...
brutal => 1,
);
This means the sentence in the POD must be wrong, and would need
tweaking to correctly represent the concept of 5 being least severe, and
1 being the most severe.
P.S. Thanks again for the excellent module! :)
--
~Apocalypse