From 581f84a13f3497f0f5f0061ee19fa65166e4e0e15aa8d6deceb33ca19b610148 Mon Sep 17 00:00:00 2001 From: Stephan Kulow Date: Tue, 13 Dec 2022 11:45:18 +0000 Subject: [PATCH] Accepting request 1042273 from devel:languages:perl:autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - updated to 1.144 see /usr/share/doc/packages/perl-Perl-Critic/Changes 1.144 Perl::Critic now requires Perl 5.10.1. [New features] The ProhibitAugmentedAssignmentInDeclaration policy now allows augmented assignments to "our" variables, if the allow_our option is enabled. Thanks, Graham Knop. (GH #993) ProhibitExplicitISA now recommends "use parent" instead of "use base". (GH #987) RequireUseWarnings now recognizes that "use v5.36" implies warnings. Thanks, Andrew Grechkin. (GH #984) Subroutines::ProhibitNestedSubs now allows lexical subroutines can now be inside of other subroutines. Thanks, TOYAMA Nao. (GH #946, #971, #972) RequireUseStrict now knows that Test::Spec enables it. (GH #906) ProhibitUnusedCapture now understands @{^CAPTURE} and %{^CAPTURE_ALL} that were added in Perl 5.26.0. Thanks, Tom Wyant. (GH #778) Allow numeric operators on special number strings 'NaN' and 'inf'. Thanks, Omer Gazit. (GH #803) [Fixes] Miscellanea::ProhibitUselessNoCritic no longer filters out errors about itself, just as Miscellanea::ProhibitUnrestrictedNoCritic cannot. Thanks, Bernhard Schmalhofer. (GH #939) Fixed GH #878: bareword filehandle dies on `open(CHECK, '/foo');`. Thanks, Tom Wyant. [Internals] Updated to using Perl 5.10.1. Starting migrating to Perl 5.10-isms like defined-or. Thanks, James Raspass. [Documentation] Updated some outdated docs in Perl::Critic::Utils. Thanks, Slaven Rezić. (GH #951) 1.142 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 ProhibitBarewordFilehanles. Thanks, raf. (GH #912) References::ProhibitDoubleSigils policy now allows for Perl's postfix dereference syntax and does not report a policy violation. Thanks to Ilya Rassadin (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. Thanks, Tom Wyant. (GH #684) ProhibitVoidMap and ProhibitVoidGrep now detect void context inside subs, such as: sub { map { foo($_) } @list; return } Thanks, James Raspass. (GH #905) 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. Thanks, Tom Wyant. (GH #737) ProhibitTwoArgOpen now disallows one-arg opens as well. Also, it no longer allows two-arg opening of STDIN/STDOUT/STDERR. Thanks, Dan Book. (GH #652, #653) [Fixes] ProhibitLeadingZeros would not handle sysopen and lexical variables correctly. This has been fixed. Thanks, Tom Wyant. (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. Thanks, sigzero. [Internals] Switch to using List::SomeUtils instead of List::MoreUtils. OBS-URL: https://build.opensuse.org/request/show/1042273 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Perl-Critic?expand=0&rev=54 --- Perl-Critic-1.140.tar.gz | 3 -- Perl-Critic-1.144.tar.gz | 3 ++ perl-Perl-Critic.changes | 70 ++++++++++++++++++++++++++++++++++++++++ perl-Perl-Critic.spec | 7 ++-- 4 files changed, 76 insertions(+), 7 deletions(-) delete mode 100644 Perl-Critic-1.140.tar.gz create mode 100644 Perl-Critic-1.144.tar.gz diff --git a/Perl-Critic-1.140.tar.gz b/Perl-Critic-1.140.tar.gz deleted file mode 100644 index c14a7b1..0000000 --- a/Perl-Critic-1.140.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:bfeef0aa36f0941682a607212593db530b2c8a5499f6dc7d41f7e61a8ebdfddb -size 650449 diff --git a/Perl-Critic-1.144.tar.gz b/Perl-Critic-1.144.tar.gz new file mode 100644 index 0000000..306593b --- /dev/null +++ b/Perl-Critic-1.144.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e05d21a19626487ddea4e8d9f30cdedf594c3ac2ba028e95b5ee368d905f12cf +size 656935 diff --git a/perl-Perl-Critic.changes b/perl-Perl-Critic.changes index 3e5d585..18d4f5a 100644 --- a/perl-Perl-Critic.changes +++ b/perl-Perl-Critic.changes @@ -1,3 +1,73 @@ +------------------------------------------------------------------- +Mon Dec 12 03:10:08 UTC 2022 - Tina Müller + +- updated to 1.144 + see /usr/share/doc/packages/perl-Perl-Critic/Changes + + 1.144 Mon Dec 5 09:44:04 PM CST 2022 + Perl::Critic now requires Perl 5.10.1. + [New features] + The ProhibitAugmentedAssignmentInDeclaration policy now allows augmented + assignments to "our" variables, if the allow_our option is enabled. + Thanks, Graham Knop. (GH #993) + ProhibitExplicitISA now recommends "use parent" instead of "use base". + (GH #987) + RequireUseWarnings now recognizes that "use v5.36" implies warnings. + Thanks, Andrew Grechkin. (GH #984) + Subroutines::ProhibitNestedSubs now allows lexical subroutines can + now be inside of other subroutines. Thanks, TOYAMA Nao. (GH #946, + #971, #972) + RequireUseStrict now knows that Test::Spec enables it. (GH #906) + ProhibitUnusedCapture now understands @{^CAPTURE} and %{^CAPTURE_ALL} that + were added in Perl 5.26.0. Thanks, Tom Wyant. (GH #778) + Allow numeric operators on special number strings 'NaN' and 'inf'. Thanks, + Omer Gazit. (GH #803) + [Fixes] + Miscellanea::ProhibitUselessNoCritic no longer filters out errors about + itself, just as Miscellanea::ProhibitUnrestrictedNoCritic cannot. Thanks, + Bernhard Schmalhofer. (GH #939) + Fixed GH #878: bareword filehandle dies on `open(CHECK, '/foo');`. Thanks, + Tom Wyant. + [Internals] + Updated to using Perl 5.10.1. Starting migrating to Perl 5.10-isms like + defined-or. Thanks, James Raspass. + [Documentation] + Updated some outdated docs in Perl::Critic::Utils. Thanks, Slaven Rezić. + (GH #951) + 1.142 Mon Nov 28 08:12:14 PM CST 2022 + 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 + ProhibitBarewordFilehanles. Thanks, raf. (GH #912) + References::ProhibitDoubleSigils policy now allows for Perl's + postfix dereference syntax and does not report a policy violation. + Thanks to Ilya Rassadin (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. Thanks, Tom Wyant. (GH #684) + ProhibitVoidMap and ProhibitVoidGrep now detect void context inside subs, + such as: + sub { map { foo($_) } @list; return } + Thanks, James Raspass. (GH #905) + 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. Thanks, Tom Wyant. (GH #737) + ProhibitTwoArgOpen now disallows one-arg opens as well. Also, it + no longer allows two-arg opening of STDIN/STDOUT/STDERR. Thanks, + Dan Book. (GH #652, #653) + [Fixes] + ProhibitLeadingZeros would not handle sysopen and lexical variables + correctly. This has been fixed. Thanks, Tom Wyant. (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. Thanks, sigzero. + [Internals] + Switch to using List::SomeUtils instead of List::MoreUtils. + ------------------------------------------------------------------- Thu Oct 6 05:42:24 UTC 2022 - Stephan Kulow diff --git a/perl-Perl-Critic.spec b/perl-Perl-Critic.spec index 4893c65..4bb1415 100644 --- a/perl-Perl-Critic.spec +++ b/perl-Perl-Critic.spec @@ -18,7 +18,7 @@ %define cpan_name Perl-Critic Name: perl-Perl-Critic -Version: 1.140 +Version: 1.144 Release: 0 License: Artistic-1.0 OR GPL-1.0-or-later Summary: Critique Perl source code for best-practices @@ -34,7 +34,7 @@ BuildRequires: perl(Exception::Class) >= 1.23 BuildRequires: perl(Exporter) >= 5.63 BuildRequires: perl(File::Which) BuildRequires: perl(IO::String) -BuildRequires: perl(List::MoreUtils) >= 0.19 +BuildRequires: perl(List::SomeUtils) >= 0.55 BuildRequires: perl(Module::Build) >= 0.420400 BuildRequires: perl(Module::Pluggable) >= 3.1 BuildRequires: perl(PPI) >= 1.265 @@ -66,8 +66,7 @@ Requires: perl(Exception::Class) >= 1.23 Requires: perl(Exporter) >= 5.63 Requires: perl(File::Which) Requires: perl(IO::String) -Requires: perl(List::MoreUtils) >= 0.19 -Requires: perl(Module::Build) >= 0.420400 +Requires: perl(List::SomeUtils) >= 0.55 Requires: perl(Module::Pluggable) >= 3.1 Requires: perl(PPI) >= 1.265 Requires: perl(PPI::Document) >= 1.265