[New Policies]
- RegularExpressions::RequireDotMatchAnything
[New Features]
- perlcritic now supports a -pager option, so you can more easily
send the output to your favorite pager. You can set this option
on the command-line or in your .perlcriticrc file. See the
perlcritic perldoc for more details. Credit to Michael Schwern.
- The output from "perlcritic -doc PATTERN" will be automatically
sent to your pager if you have set the -pager option.
[Policy Changes]
- CodeLayout::ProhibitQuotedWordLists no longer applies if the list
contains any non-words, by default. A non-word is anything that does
not match /[\w-]+/. You can restore the former behavior by setting the
"strict" option. RT #37886.
- CodeLayout::ProhibitQuotedWordLists also now applies to the import
arguments of a C statement. RT #24467.
- ErrorHandling::RequireCheckingReturnValueOfEval now recognizes ternary
left-sides as valid checks.
- RegularExpressions::RequireExtendedFormatting gains a
minimum_regex_length_to_complain_about option. Also, regexes that
contain only word and whitespace characters are now exempt from this
policy, by default; you can make it complain about them by turning on
the new strict option. Contributed by Michael Schwern. RT #38531.
- TestingAndDebugging::ProhibitNoWarnings now supports a
allow_with_category_restriction option, thanks to Michael Schwern.
RT #38514.
- CodeLayout::ProhibitHardTabs now allows leading tabs in qw() word lists
and regexes with the /x modifier. You can still configure this
policy to forbid all hard tabs, if you like. RT #32440
[Bug Fixes]
- perlcritic should now work under PAR. RT #38380.
- URL for our repository in META.yml now works for anonymous
checkout. The password is "" (empty). RT #38628.
- color for high-severity violations is now magenta because
it is more redable than yellow on white backgrounds. RT #38511.