http://www.perlmonks.org?node_id=918037

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:
Code not contained in explicit package. Violates encapsulation (Seve +rity: 4)
my test file usually start with
use lib qw( lib ); use strict; use warnings; use Test::More tests => 1;
How I can prevent this error?
Or maybe disable check?

PS.
I try

## no critic (Modules::RequireExplicitPackage)
at end of first line, but it don't help - error appear for next line