Windows NT KAMIDAKI 10.0 build 19045 (Windows 10) AMD64
Apache/2.4.58 (Win64) OpenSSL/3.1.3 PHP/8.3.9
Server IP : 192.168.3.16 & Your IP : 216.73.216.52
Domains :
Cant Read [ /etc/named.conf ]
User : SISTEMA
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
C: /
xampp /
perl /
lib /
Module /
CPANTS /
Kwalitee /
Delete
Unzip
Name
Size
Permission
Date
Action
BrokenInstaller.pm
4.86
KB
-rw-rw-rw-
2019-08-08 07:43
CpantsErrors.pm
2.31
KB
-rw-rw-rw-
2019-08-08 07:43
Distname.pm
1.91
KB
-rw-rw-rw-
2019-08-08 07:43
Distros.pm
2.1
KB
-rw-rw-rw-
2019-08-08 07:43
Files.pm
16.09
KB
-rw-rw-rw-
2019-08-08 07:43
FindModules.pm
8.25
KB
-rw-rw-rw-
2019-08-08 07:43
License.pm
9.3
KB
-rw-rw-rw-
2019-08-08 07:43
Manifest.pm
4.21
KB
-rw-rw-rw-
2019-08-08 07:43
MetaYML.pm
11.45
KB
-rw-rw-rw-
2019-08-08 07:43
NeedsCompiler.pm
2.49
KB
-rw-rw-rw-
2019-08-08 07:43
Pod.pm
6.47
KB
-rw-rw-rw-
2019-08-08 07:43
Prereq.pm
11.04
KB
-rw-rw-rw-
2019-08-08 07:43
Repackageable.pm
1.82
KB
-rw-rw-rw-
2019-08-08 07:43
Signature.pm
1.42
KB
-rw-rw-rw-
2019-08-08 07:43
Uses.pm
11.03
KB
-rw-rw-rw-
2019-08-08 07:43
Version.pm
1.73
KB
-rw-rw-rw-
2019-08-08 07:43
Save
Rename
package Module::CPANTS::Kwalitee::Manifest; use warnings; use strict; use File::Spec::Functions qw(catfile); use Array::Diff; our $VERSION = '1.01'; $VERSION =~ s/_//; ## no critic sub order { 100 } ################################################################## # Analyse ################################################################## sub analyse { my $class = shift; my $me = shift; my $distdir = $me->distdir; my $manifest_file = catfile($distdir, 'MANIFEST'); if (-e $manifest_file) { # read manifest open(my $fh, '<', $manifest_file) or die "cannot read MANIFEST $manifest_file: $!"; my %seen; while (<$fh>) { chomp; next if /^\s*#/; # discard pure comments if (s/^'(\\[\\']|.+)+'\s*.*/$1/) { s/\\([\\'])/$1/g; } else { s/\s.*$//; } # strip quotes and comments next unless $_; # discard blank lines $seen{$_}++; } close $fh; my @manifest = sort keys %seen; my @files = sort keys %{$me->d->{files_hash} || {}}; my @dupes = grep {$seen{$_} > 1} @manifest; my $diff = Array::Diff->diff(\@manifest, \@files); if ($diff->count == 0 && !@dupes) { $me->d->{manifest_matches_dist} = 1; } else { $me->d->{manifest_matches_dist} = 0; my @error = ( 'MANIFEST ('.(@manifest + @dupes).') does not match dist ('.@files."):", ); if (my @added = @{$diff->added}) { push @error, "Missing in MANIFEST: ".join(', ', @added); } if (my @deleted = @{$diff->deleted}) { push @error, "Missing in Dist: " . join(', ', @deleted); } if (@dupes) { push @error, "Duplicates in MANIFEST: " . join(', ', @dupes); } $me->d->{error}{manifest_matches_dist} = \@error; } # Tweak symlinks error for a local distribution (RT #97858) if ($me->d->{is_local_distribution} && $me->d->{error}{symlinks}) { my %manifested = map {$_ => 1} @manifest; my @symlinks = grep {$manifested{$_}} split ',', $me->d->{error}{symlinks}; if (@symlinks) { $me->d->{error}{symlinks} = join ',', @symlinks; } else { delete $me->d->{error}{symlinks}; } } } else { $me->d->{manifest_matches_dist} = 0; $me->d->{error}{manifest_matches_dist} = q{Cannot find MANIFEST in dist.}; } } ################################################################## # Kwalitee Indicators ################################################################## sub kwalitee_indicators { return [ { name => 'manifest_matches_dist', error => q{MANIFEST does not match the contents of this distribution.}, remedy => q{Run a proper command ("make manifest" or "./Build manifest", maybe with a force option), or use a distribution builder to generate the MANIFEST. Or update MANIFEST manually.}, code => sub { shift->{manifest_matches_dist} ? 1 : 0 }, details => sub { my $d = shift; my $error = $d->{error}{manifest_matches_dist}; return $error unless ref $error; return join "\n", @$error; }, } ]; } q{Listening to: YAPC::Europe 2007}; __END__ =encoding UTF-8 =head1 NAME Module::CPANTS::Kwalitee::Manifest - Check MANIFEST =head1 SYNOPSIS Check if MANIFEST and dist contents match. =head1 DESCRIPTION =head2 Methods =head3 order Defines the order in which Kwalitee tests should be run. Returns C<100>. =head3 analyse Check if MANIFEST and dist contents match. =head3 kwalitee_indicators Returns the Kwalitee Indicators data structure. =over =item * manifest_matches_dist =back =head1 SEE ALSO L<Module::CPANTS::Analyse> =head1 AUTHOR Thomas Klausner, <domm@cpan.org>, https://domm.plix.at/ =head1 COPYRIGHT AND LICENSE Copyright © 2003–2006, 2009 L<Thomas Klausner|https://metacpan.org/author/domm> You may use and distribute this module according to the same terms that Perl is distributed under.