scottoffen / Metaphor

Apache/Perl REST Services Microframework
Other
0 stars 0 forks source link

Perl::Critic Severity 2 Issues #23

Closed scottoffen closed 9 years ago

scottoffen commented 9 years ago

Fix issues related to the following Perl::Critic severity 2 violations:

Granted, these are all based on one persons opinions about how Perl should be written, so allowances were made in some places by adjusting the Perl::Critic profile being used. In the comments on this issue I'll include notes about the errors I ignored.

scottoffen commented 9 years ago

Prohibit Postfix Controls and Prohibit Unless Blocks and Prohibit Until Blocks

The use of Postfix controls - especially unless - are one of my favorite things about Perl. IMHO, my use of them does not make the code any more difficult to understand, and readability is the only reason these controls are brought into question.

Require Pod Links Include Text and Require Pod Sections

Issue #2 has been logged for all documentation issues.

Require Dot Match Anything and Require Line Boundary Matching

I've check all cases reported - all 79 and 74, respectively - and have determined that these modifiers are not required.

Prohibit Magic Numbers

I'm leaving the 21 instances that are left. They apply directly to positioning and length that is self explanatory in context.