Subject: | perlcritic doesn't recognize "#!/bin/env perl" shebang |
Notice how perlcritic doesn't critique foo_file when asked to critique
all files in the bug_demo directory...
[thaljef@rdcuxsrv183 ~]$ mkdir bug_demo ; echo '\#\!/usr/bin/env perl\n
$myEmpty = 05;' > bug_demo/foo_file
[thaljef@rdcuxsrv183
~]$ perlcritic -1 bug_demo/
No perl files were found.
[thaljef@rdcuxsrv183 ~]$ perlcritic -1 bug_demo/foo_file
RCS keywords $URL$, $Date$, $Author$, $Revision$ not found at line 1,
column 1. See page 441 of PBP. (Severity: 2)
Module does not end with "1;" at line 1, column 1. Must end with a
recognizable true value. (Severity: 4)
Code not contained in explicit package at line 1, column 1. Violates
encapsulation. (Severity: 4)
No "VERSION" variable found at line 1, column 1. See page 404 of PBP.
(Severity: 2)
Code before strictures are enabled at line 1, column 1. See page 429 of
PBP. (Severity: 5)
Code before warnings are enabled at line 1, column 1. See page 431 of
PBP. (Severity: 4)