Tuesday 29th November 2022
Fedora Project
Updated perl-Perl-Critic to 1.142 in Rawhide:
This is the last version of Perl::Critic that will run on Perl 5.6.1; the next release will require Perl 5.10.1
- New Features
Add new policy InputOutput::ProhibitBarewordDirHandles, comparable to ProhibitBarewordFilehandles (GH#912)
References::ProhibitDoubleSigils policy now allows for Perl's postfix dereference syntax and does not report a policy violation (GH#578)
Added Test::Class::Moose and MooseX::MethodAttributes::Role to the list of modules that are equivalent to "use strict" (GH#808, GH#886)
Subroutines::RequireArgUnpacking now detects anonymous subroutines with attributes, prototypes or signatures (GH#684)
ProhibitVoidMap and ProhibitVoidGrep now detect void context inside subs (GH#905), such as: sub { map { foo($_) } @list; return }
RequireArgUnpacking now allows a closure to be recognized as a way that subroutine arguments can be unpacked; this is specified with an optional allow_closures configuration option (GH#737)
ProhibitTwoArgOpen now disallows one-arg opens as well; also, it no longer allows two-arg opening of STDIN/STDOUT/STDERR (GH#652, GH#653)
- Fixes
ProhibitLeadingZeros would not handle sysopen and lexical variables correctly; this has been fixed (GH#789)
- Documentation
We note that the any() function is available in both List::MoreUtils and List::SomeUtils
Added instructions to perlcritic on how to integrate with Visual Studio Code
- Internals
Switch to using List::SomeUtils instead of List::MoreUtils
Local Packages
Updated curl (7.86.0) to get noproxy to tailmatch like in 7.85.0 and earlier (Bug #2149224)
Updated perl-Perl-Critic to 1.142 as per the Fedora version