1 ## name warnings disabled
8 #-----------------------------------------------------------------------------
10 ## name selective warnings disabled
15 no warnings 'uninitialized', 'deprecated';
18 $policy = 'TestingAndDebugging::ProhibitNoWarnings';
19 is( pcritique($policy, \$code), 1, $policy.' selective warnings disabled');
21 #-----------------------------------------------------------------------------
23 ## name selective warnings disabled
28 no warnings qw(closure glob);
30 #-----------------------------------------------------------------------------
32 ## name allow no warnings, mixed case config
34 ## parms {allow => 'iO Glob OnCe'}
38 no warnings qw(glob io once);
40 #-----------------------------------------------------------------------------
42 ## name allow no warnings, comma delimimted
44 ## parms {allow => 'numeric,portable, pack'}
49 no warnings "numeric", "pack", "portable";
51 #-----------------------------------------------------------------------------
53 ## name wrong case, funky config
54 ## parms { allow => 'NumerIC;PORTABLE' }
59 no warnings "numeric", "pack", 'portable';
61 #-----------------------------------------------------------------------------
63 ## name More wrong case, funky config
65 ## parms { allow => 'paCK/PortablE' }
69 no warnings qw(numeric pack portable);