You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, perlminlint tests all scripts with -w option. Unfortunately, there are some modules on CPAN which are useful, widely used but not perl -w clean. So, let's add an option to override this behavior and allow testing scripts without -w.
For example, perlminlint reports an error about Template::Mustache::Parser for the following script
at least for now.
packageFoo;
use strict;
use warnings;
use Template::Mustache;
1;
Here is the error.
False [] range "/-\w" in regex; marked by <-- HERE in m/\A(?:[/-\w <-- HERE .]+)/
at /home/hkoba//tmp/minlinttest/local/lib/perl5/Template/Mustache/Parser.pm line 2969.
You can avoid the above by adding no_force_warnings: 1 to your .perlminlint.yml in your project root (or somewhere surrounding) directory.
% echo no_force_warnings: 1 >> .perlminlint.yml
The text was updated successfully, but these errors were encountered:
Currently, perlminlint tests all scripts with
-w
option. Unfortunately, there are some modules on CPAN which are useful, widely used but notperl -w
clean. So, let's add an option to override this behavior and allow testing scripts without-w
.For example, perlminlint reports an error about Template::Mustache::Parser for the following script
at least for now.
Here is the error.
You can avoid the above by adding
no_force_warnings: 1
to your.perlminlint.yml
in your project root (or somewhere surrounding) directory.% echo no_force_warnings: 1 >> .perlminlint.yml
The text was updated successfully, but these errors were encountered: