Subject: | Package and VERSION policies should not apply to scripts |
Some of my distributions include command-line scripts that end up in blib/script/. Test::Perl::Critic finds these and issues the following false positives:
# Unpackaged code at line 6, column 1. Violates encapsulation.
# No 'VERSION' variable found at line 0, column 0. See page 404 of PBP.
Perhaps Test::Perl::Critic should alter its behavior when it discovers that it is looking in blib/script OR perhaps it can leverage the Critic.pm code that removes the magic eval and that can be the trigger to disable the Module-only policies.
-- Chris