cpan Perl-Critic 1.082

latest releases: 1.152, 1.150, 1.148...
16 years ago

[New Features]

  • A new metadata system for defining policy parameters/options has been
    added. This makes the life of policy authors easier because
    configuration validation and parsing can be taken care of
    automatically, in most cases. This allows greater integration with
    IDEs and allows the perlcritic "--profile-proto" option to produce
    better output.

Note: This change does NOT REQUIRE ANY CHANGES to policies outside of
this distribution; they should continue to work as is. However, use
of this facility can reduce the size of your code and provide the
means for tools to discover more about your policy. If this change
does break any of your policies, please let us know.

To learn how to take advantage of this facility, read
Perl::Critic::DEVELOPER and look at the source of any of the
configurable policies included in this distribution.

There is a discussion of the design considerations for this facility in
the source repository under doc/PolicyParameter_Notes.pod.

  • Added support for "criticism-fatal" option in your perlcriticrc
    file. This will be used by the criticism pragma to cause execution
    to abort if the file contains any violations.

[New Policy]

  • Module::RequireNoMatchVarsWithUseEnglish

[Policy Changes]

  • Added an allow_last_statement_to_be_comma_separated_in_map_and_grep
    option to ValuesAndExpressions::ProhibitCommaSeparatedStatements.
    Partial response to http://rt.cpan.org/Public/Bug/Display.html?id=27654.
  • ControlStructures::ProhibitPostfixControls gains the ability to have
    the flow control statements allowed to be modified. This in response
    to RT #29540.
  • TestingAndDebugging::RequireUseStrict now accepts "use Moose" as
    equivalent to "use strict".
  • TestingAndDebugging::RequireUseWarnings now accepts "use Moose" as
    equivalent to "use warnings".

[Bug Fixes]

  • RT #31281 perlcritic doesn't recognize "#!/bin/env perl" shebang
  • Replace usage of Unicode property escapes with POSIX character classes
    order to restore 5.6 compatability.
  • RT #30388 ValuesAndExpressions::ProhibitVersionStrings complained
    about numbered directories in "use lib".
  • Fixed handling of badly behaved spelling programs in PodSpelling.

Don't miss a new Perl-Critic release

NewReleases is sending notifications on new releases.