Open dseynhae opened 4 years ago
Did some more debugging, to my surprise, it is not related to the hierarchy:
package MyJob 1.0;
use strict;
use warnings;
1;
Will give the same discrepancy (perlcritic
says there is no problem, but perlcritic
as called by Perl Toolbox
has an issue...).
It looks like the file is renamed with the suffix .lint
:
That would trigger the file name violation:
Reproduced with no .perlcriticrc
file. The file tree under lib
directory should be preserved when linting with perlcritic.
Consider the simple file
<location>/BaseClass/DerivedClass/MyJob.pm
:I have tried the following experiment in VS Code opened on folder
<location>
, or directly on the fileMyJob.pm
(both Windows and Linux give the same problem):I do have the impression that PerlToolbox changes the path of the file, under the hood??? Not sure why Perlcritic would change its mind about this particular issue.
I do have a ~/.perlcriticrc file (attached), but it is irrelevant to reproduce this problem... perlcriticrc.txt