Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Perl-Critic CPAN distribution.

Report information
The Basics
Id: 31281
Status: resolved
Priority: 0/
Queue: Perl-Critic

People
Owner: Nobody in particular
Requestors: thaljef [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 1.080
Fixed in: (no value)



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)
Fixed on the trunk in revision 2025.
Fixed and released as version 1.081_001