Bor has asked for the wisdom of the Perl Monks concerning the following question:
Hello Monks,
I have a small question (what I cant find answer)
I use perlcritic
And for my test files perlcritic give me error:
Or maybe disable check?
I have a small question (what I cant find answer)
I use perlcritic
And for my test files perlcritic give me error:
my test file usually start withCode not contained in explicit package. Violates encapsulation (Seve +rity: 4)
How I can prevent this error?use lib qw( lib ); use strict; use warnings; use Test::More tests => 1;
Or maybe disable check?
PS.
I try
at end of first line, but it don't help - error appear for next line## no critic (Modules::RequireExplicitPackage)
Back to
Seekers of Perl Wisdom