SEARCH
NEW RPMS
DIRECTORIES
ABOUT
FAQ
VARIOUS
BLOG

 
 

perl-Perl-Critic-Policy-Variables-ProhibitLoopOnHash rpm build for : openSUSE Tumbleweed. For other distributions click perl-Perl-Critic-Policy-Variables-ProhibitLoopOnHash.

Name : perl-Perl-Critic-Policy-Variables-ProhibitLoopOnHash
Version : 0.008 Vendor : openSUSE
Release : 1.24 Date : 2019-04-23 07:21:43
Group : Development/Libraries/Perl Source RPM : perl-Perl-Critic-Policy-Variables-ProhibitLoopOnHash-0.008-1.24.src.rpm
Size : 0.03 MB
Packager : https://bugs_opensuse_org
Summary : Don\'t write loops on hashes, only on keys and values of hashes
Description :
When \"looping over hashes,\" we mean looping over hash keys or hash values.
If you forgot to call \'keys\' or \'values\' you will accidentally loop over
both.

foreach my $foo (%hash) {...} # not ok
action() for %hash; # not ok
foreach my $foo ( keys %hash ) {...} # ok
action() for values %hash; # ok

An effort is made to detect expressions:

action() for %hash ? keys %hash : (); # ok
action() for %{ $hash{\'stuff\'} } ? keys %{ $hash{\'stuff\'} } : (); # ok

(Granted, the second example there doesn\'t make much sense, but I have
found a variation of it in real code.)

RPM found in directory: /vol/rzm3/linux-opensuse/tumbleweed/repo/oss/noarch

Content of RPM  Changelog  Provides Requires

Hmm ... It's impossible ;-) This RPM doesn't exist on any FTP server

Provides :
perl(Perl::Critic::Policy::Variables::ProhibitLoopOnHash)
perl-Perl-Critic-Policy-Variables-ProhibitLoopOnHash

Requires :
perl(:MODULE_COMPAT_5.40.0)
perl(List::Util) >= 1.33
perl(Perl::Critic) >= 1.126
perl(parent)
rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(FileDigests) <= 4.6.0-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
rpmlib(PayloadIsZstd) <= 5.4.18-1


Content of RPM :
/usr/lib/perl5/vendor_perl/5.40.0/Perl
/usr/lib/perl5/vendor_perl/5.40.0/Perl/Critic
/usr/lib/perl5/vendor_perl/5.40.0/Perl/Critic/Policy
/usr/lib/perl5/vendor_perl/5.40.0/Perl/Critic/Policy/Variables
/usr/lib/perl5/vendor_perl/5.40.0/Perl/Critic/Policy/Variables/ProhibitLoopOnHash.pm
/usr/share/doc/packages/perl-Perl-Critic-Policy-Variables-ProhibitLoopOnHash
/usr/share/doc/packages/perl-Perl-Critic-Policy-Variables-ProhibitLoopOnHash/Changes
/usr/share/doc/packages/perl-Perl-Critic-Policy-Variables-ProhibitLoopOnHash/README
/usr/share/licenses/perl-Perl-Critic-Policy-Variables-ProhibitLoopOnHash
/usr/share/licenses/perl-Perl-Critic-Policy-Variables-ProhibitLoopOnHash/LICENSE
/usr/share/man/man3/Perl::Critic::Policy::Variables::ProhibitLoopOnHash.3pm.gz

 
ICM