Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old April 20th, 2007, 02:45 PM
John Dollar
Guest
 
Posts: n/a
Default perlcritic man page

Is it just me, or is the man page for perlcritic messed up?

I ask because it's very confusing when it comes to severity.

First, it states for the "-severity N" option:

Severity values are integers ranging from 1 (least severe) to 5 (most
severe). The default is 5.

(which makes you figure it defaults to the MOST SEVERE.)

Then later on, for "-severity NAME":

SEVERITY NAME ...is equivalent to... SEVERITY NUMBER
--------------------------------------------------------
-severity gentle -severity 5
-severity stern -severity 4
-severity harsh -severity 3
-severity cruel -severity 2
-severity brutal -severity 1

Which is 100% the opposite.

Then for the "-gentle | -stern | -harsh | -cruel | -brutal" options:

These are named shortcuts for setting the "-severity" option. For
example, "-cruel" is equivalent to "-severity 4".

Umm...no...according to the table above, 4 is "-stern", not "-cruel".

And, of course, the real answer is that the table for "-severity NAME" is the
*ONLY* place that it is correct. However, it DOES default to 5, which is the
LEAST severe.

So, either this is written in some new version of the English language I've
never seen where words change their meanings paragraph to paragraph, or it's
completely confusing/wrong/needs fixing/etc./etc.

 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles