File: zz_perlcritic.t

package info (click to toggle)
libhtml-tree-perl 5.07-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 964 kB
  • sloc: perl: 4,607; makefile: 6
file content (24 lines) | stat: -rw-r--r-- 554 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!perl -T

use Test::More;

eval "use Test::Perl::Critic";

if ($@) {
    Test::More::plan( skip_all =>
            "Test::Perl::Critic required for testing PBP compliance" );
}
else {
    Test::Perl::Critic->import(
        -verbose  => 8,
        -severity => 5,
        -exclude => [
          # fails to detect a package is accessing objects of its own class:
          'ProhibitAccessOfPrivateData',
          # subs expected to return a scalar *should* "return undef":
          'ProhibitExplicitReturnUndef',
        ],
    );
}

all_critic_ok();