Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
PkgVersion conflicts with Test::Perl::Critic #602
The PkgVersion plug-in inserts the assignment to $VERSION immediately after the
A workaround is to specify the option "use_package" for PkgVersion but that means that your module no longer runs on older Perls (for example 5.10). In some situations that can be a high price to pay for the automatic versioning.
Feature suggestion: What about a new option "use_strict" for PkgVersion that inserts the version string immediately after the first "use strict"? That would shut up Perl::Critic. And if it also dies if there is no "use strict", it would be a cheap qa measure.
The problem could, of course, also be fixed inside Perl::Critic but it would probably be harder there.
added a commit
Nov 6, 2017
@gflohr I found this issue from your blog article about Distzillla and TravisCI. Thank you for that.
Would be an alternative for you to use