Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add --no_force_warnings #15

Open
hkoba opened this issue Feb 5, 2020 · 0 comments
Open

Add --no_force_warnings #15

hkoba opened this issue Feb 5, 2020 · 0 comments
Assignees

Comments

@hkoba
Copy link
Owner

hkoba commented Feb 5, 2020

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.

package Foo;
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant