Subject: | exemptions for ValuesAndExpressions::ProhibitNoisyQuotes |
Hi there!
First of all, a huge THANK YOU for continuously developing and
maintaining Perl::Critic. It's such an awesome tool, should be mandatory
in any serious Perl shop!
Now, the [ValuesAndExpressions::ProhibitNoisyQuotes] policy is great,
but it would be even greater if it were possible to mangle with the
forbidden character set. I say that because nowadays most web developers
of frameworks such as Dancer and Mojolicious are used to the pattern:
get '/foo/bar' => sub { ... };
and Perl::Critic will mark those strings as noisy, asking them to be
replaced with:
get q[/foo/bar] => sub { ... };
which is not the preferred idiom.
Special characters in those strings are:
:
/
*
.
and it would be perfect if we could add them to a whitelist or some sort :)
How does that sound?