[SP-pm] Critic... too much

Alexei Znamensky russoz at gmail.com
Fri Feb 18 15:10:29 PST 2011


Moçada,

Estou colocando o teste com o perl critic em um módulo, e ele está dando
(entre outros) os seguintes erros:

# Perl::Critic found these violations in "blib/lib/Queue/Base.pm":
# Code before strictures are enabled at line 3, column 1.  See page 429 of
PBP.  (Severity: 5)
# Code before warnings are enabled at line 3, column 1.  See page 431 of
PBP.  (Severity: 4)

Mas o começo do arquivo está assim:

------ 8< ------ 8< ------ 8< ------ 8< ------ 8< ------ 8< ------ 8< ------
8< ------ 8< ------ 8< ------ 8< ------
 package Queue::Base;
use strict;
use warnings;

use Carp;

sub new {
------ >8 ------ >8 ------ >8 ------ >8 ------ >8 ------ >8 ------ >8 ------
>8 ------ >8 ------ >8 ------ >8 ------

WTF???

Eu tentei colocar o strict e o warnings antes do package, mas daí ele
reclamou que estou fazendo coisas que não estão em um package... *sigh*

-- 
Alexei Znamensky [russoz_gmail_com] [russoz.wordpress.com] [
www.flickr.com/photos/alexeiz]
«Only love / Can bring the rain / That makes you yearn to the sky»
-------------- Pr�xima Parte ----------
Um anexo em HTML foi limpo...
URL: <http://mail.pm.org/pipermail/saopaulo-pm/attachments/20110218/c8130f73/attachment.html>


More information about the SaoPaulo-pm mailing list