[Vlaanderen] Critic

Hendrik Van Belleghem Hendrik at LDL48.org
Fri Sep 8 01:14:58 PDT 2006


Tis een beetje een cross-post met mijn use.perl journal maar dit leek me toch leuk genoeg om te delen..
Onderstaande output is perl-critic op een mod_perl applicatie die ik ergens om mijn schijf heb liggen (applicatie heeft +/- 11000 lijnen):
 
"die" used instead of "croak"  = 6
"unless" block used  = 1
"warn" used instead of "carp"  = 24
@ISA used instead of "use base"  = 16
AUTOLOAD method declared  = 14
Ambiguous name for variable or subroutine  = 19
Bareword file handle opened  = 1
Builtin function called with parens  = 226
Capture variable used outside conditional  = 5
Code before warnings are enabled  = 6736
Expression form of "eval"  = 16
File handle for "print" is not braced  = 1
Heredoc terminator must be quoted  = 5
Loop iterator is not lexical  = 6
Magic punctuation variable used  = 21
Missing "BUGS AND LIMITATIONS" section in POD  = 67
Missing "CONFIGURATION AND ENVIRONMENT" section in POD  = 67
Missing "DEPENDENCIES" section in POD  = 67
Missing "DIAGNOSTICS" section in POD  = 67
Missing "INCOMPATIBILITIES" section in POD  = 67
Missing "LICENSE AND COPYRIGHT" section in POD  = 67
Missing "SUBROUTINES/METHODS" section in POD  = 67
Missing "SYNOPSIS" section in POD  = 4
Mixed high and low-precedence booleans  = 2
Mixed-case subroutine name  = 2
Package variable declared or used  = 8
Postfix control "if" used  = 297
Postfix control "unless" used  = 16
Pragma "constant" used  = 23
Quotes used with a noisy string  = 39
Quotes used with an empty string  = 171
RCS keywords $HeadURL$ not found  = 13
RCS keywords $Id$ not found  = 67
RCS keywords $Revision$, $HeadURL$, $Date$ not found  = 54
RCS keywords $Revision$, $Source$, $Date$ not found  = 54
RCS keywords $Source$ not found  = 13
Regular expression without "/m" flag  = 448
Regular expression without "/x" flag  = 448
String delimiter used with "split"  = 16
Subroutine called with "&" sigil  = 2
Subroutine does not end with "return"  = 37
Subroutine name is a homonym for builtin function  = 3
Subroutine with high complexity score  = 21
Symbols are exported by default  = 2
Two-argument "open" used  = 1
Useless interpolation of literal string  = 643
Variable declared in conditional statement  = 53
Warnings disabled  = 14
 
Perl critic is traditioneel verdeeld in 5 categorieen.. (1: laagste severity, 5: hoogste severity)
Momenteel heb ik 90% van de issues van severity 3 tot 5 gefixed en de rest is bitneukerij :)
 
Critic?
 
H.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.pm.org/pipermail/vlaanderen/attachments/20060908/7e99d265/attachment.html 


More information about the Vlaanderen mailing list