Total Complexity | 2 |
Total Lines | 21 |
Duplicated Lines | 0 % |
1 | from bears.perl.PerlCriticBear import PerlCriticBear |
||
12 | use strict; |
||
13 | use warnings; |
||
14 | use vars qw/ $VERSION /; |
||
15 | |||
16 | $VERSION = '1.00'; |
||
17 | |||
18 | exit 1 if !print "Hello, world!\n"; |
||
19 | """.split("\n") |
||
20 | |||
21 | |||
22 | bad_file = """ |
||
23 | #!/usr/bin/perl |
||
24 | |||
25 | print "Hello World\n"; |
||
26 | """.split("\n") |
||
27 | |||
28 | |||
29 | config_file = """ |
||
30 | severity = 5 |
||
31 | # for signatures |
||
32 | [-Subroutines::ProhibitSubroutinePrototypes] |
||
33 | |||
54 |