PaulHowarth/Blog/2011-12-22

Thursday 22nd December 2011

Fedora Project

  • Updated perl-Perl-Critic to 1.117 in Rawhide:

  • New Policies:

    • Variables::ProhibitAugmentedAssignmentInDeclaration reports constructs like 'my $x += 1'

  • Policy Changes:

    • BuiltinFunctions::ProhibitLvalueSubstr: add explicit 'use version' (CPAN RT#68498)

    • CodeLayout::ProhibitHardTabs: add 'pbp' to the default_themes list (CPAN RT#71093)

    • ControlStructures::ProhibitMutatingListFunctions now understands that tr///r (introduced in 5.13.7) does not change its operand

    • ControlStructures::ProhibitMutatingListFunctions now understands that '//=', '<<=', and '>>=' are assignment operators (CPAN RT#70901)

    • ErrorHandling::RequireCheckingReturnValueOfEval now allows things like grep { eval $_ } (CPAN RT#69489)

    • Modules::RequireExplicitPackage now has configuration option allow_import_of, to allow the import of specified modules before the package statement (CPAN RT#72660)

    • RegularExpressions::ProhibitEnumeratedClasses no longer thinks that [A-Za-z_] matches \w (CPAN RT#69322)

    • RegularExpressions::ProhibitUnusedCaptures now skips the first block of an 'if' or 'elsif' if the regular expression is bound to its operand with the '!~' operator (CPAN RT#69867)

    • RegularExpressions::ProhibitUnusedCaptures now looks into lists and blocks in the replacement portion of the regular expression if /e is asserted (CPAN RT#72086)

    • RegularExpressions::RequireDotMatchAnything, RegularExpressions::RequireExtendedFormatting and RegularExpressions::RequireLineBoundaryMatching now honour defaults set with 'use re "/modifiers"' (CPAN RT#72151)

    • Subroutines::ProhibitManyArgs now recognizes '+' as a prototype character

    • Variables::ProhibitPunctuationVars now recognizes bracketed variables embedded in interpolated strings (e.g. "${$}"); for the purpose of the 'allow' configuration, these are considered equivalent to the unbracketed form (CPAN RT#72910)

  • Other Changes:

    • Corrected POD in Perl::Critic::PPI::Utils (CPAN RT#68898)

    • Perl::Critic::Violation source() method now returns the line containing the violation (not the first line) when the statement containing the violation spans multiple lines

Local Packages

  • Updated perl-Perl-Critic to 1.117 as per the Fedora version


Recent