I've been told it's possible to have Perl::Critic
show the policy name that is offending in its output. But I can't recall what I have to do to turn this on. How can this be enabled in a perlcritic.rc
?
相关问题
- slurm: use a control node also for computing
- $ENV{$variable} in perl
- Is it possible to pass command-line arguments to @
- Redirecting STDOUT and STDERR to a file, except fo
- Change first key of multi-dimensional Hash in perl
相关文章
- Running a perl script on windows without extension
- Comparing speed of non-matching regexp
- Can NOT List directory including space using Perl
- Extracting columns from text file using Perl one-l
- Lazy (ungreedy) matching multiple groups using reg
- How do I tell DBD::mysql where mysql.sock is?
- What is a good way to deploy a Perl application?
- Speeding up Selenium Webdriver
The
--verbose
command-line option can control this-- if you don't want to specify your own format, try the values8
or9
. Both of these built-in formats contain the policy name. If you like one of them, you can add this line to your.perlcriticrc
:(Or 9, if you prefer that format.)
Randy
Season to taste. You're after
%p
or perhaps%P
. The specifiers are documented in perlcritic.