Skip to content

Commit d920607

Browse files
committed
Apply perlimports to ./lib
1 parent 4c1e3c4 commit d920607

37 files changed

+73
-87
lines changed

app.psgi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ BEGIN {
88
}
99
use lib "$root_dir/lib";
1010

11-
use Config::ZOMG;
11+
use Config::ZOMG ();
1212
use File::Path ();
1313
use File::Spec ();
1414
use Log::Log4perl ();
@@ -46,7 +46,7 @@ BEGIN {
4646
$SIG{__WARN__} = sub { $logger->warn(@_) };
4747
}
4848

49-
use MetaCPAN::Server;
49+
use MetaCPAN::Server ();
5050

5151
STDERR->autoflush;
5252

bin/check_json.pl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
# PODNAME: check_json.pl
33
use 5.010;
44

5-
use Data::Dumper;
6-
use Cpanel::JSON::XS;
5+
use Data::Dumper qw( Dumper );
6+
use Cpanel::JSON::XS qw( decode_json );
77

88
foreach my $file (@ARGV) {
99
say "Processing $file";

bin/convert_authors.pl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
use strict;
44
use warnings;
5-
use Cpanel::JSON::XS;
6-
use File::Find;
5+
use Cpanel::JSON::XS qw( decode_json );
6+
use File::Find qw( find );
77

88
my @files;
99
find(

bin/metacpan

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@
1414

1515
use strict;
1616
use warnings;
17-
use FindBin;
17+
use FindBin ();
1818
use lib "$FindBin::RealBin/../lib";
19-
use MetaCPAN::Script::Runner;
19+
use MetaCPAN::Script::Runner ();
2020

2121
MetaCPAN::Script::Runner->run;
2222

bin/unlisted_prereqs.pl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
use strict;
77
use warnings;
88
use Perl::PrereqScanner 1.014;
9-
use CPAN::Meta::Requirements;
9+
use CPAN::Meta::Requirements ();
1010
use File::Find::Rule::Perl;
11-
use List::Util qw(sum);
11+
use List::Util qw( sum );
1212
use version 0.77;
1313

1414
# TODO: use CPAN::Meta::Prereqs
@@ -91,7 +91,7 @@ sub check_prereqs {
9191
if version->parse( $reqs->{runtime}{perl} )
9292
<= version->parse($MIN_PERL_VERSION);
9393

94-
use Data::Dumper;
94+
use Data::Dumper ();
9595
$Data::Dumper::Sortkeys = 1;
9696
print Data::Dumper->Dump( [$reqs], ['requires'] );
9797

lib/Catalyst/Authentication/Store/Proxy.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ package Catalyst::Authentication::Store::Proxy;
22

33
# ABSTRACT: Delegates authentication logic to the user object
44
use Moose;
5-
use Catalyst::Utils;
5+
use Catalyst::Utils ();
66
use MetaCPAN::Types::TypeTiny qw( HashRef Str );
77

88
has user_class => (

lib/Catalyst/Plugin/Session/Store/ElasticSearch.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ package Catalyst::Plugin::Session::Store::ElasticSearch;
44

55
use Moose;
66
extends 'Catalyst::Plugin::Session::Store';
7-
use MooseX::Types::ElasticSearch qw(:all);
7+
use MooseX::Types::ElasticSearch qw( ES );
88

99
has _session_es => (
1010
required => 1,

lib/MetaCPAN/Document/Author.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package MetaCPAN::Document::Author;
33
use MetaCPAN::Moose;
44

55
# load order important for next 2 modules
6-
use ElasticSearchX::Model::Document::Types qw(:all);
6+
use ElasticSearchX::Model::Document::Types qw( Location );
77
use ElasticSearchX::Model::Document;
88

99
# load order not important

lib/MetaCPAN/Document/Favorite.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ use warnings;
66
use Moose;
77
use ElasticSearchX::Model::Document;
88

9-
use DateTime;
9+
use DateTime ();
1010
use MetaCPAN::Util;
1111

1212
has id => (

lib/MetaCPAN/Document/Release.pm

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ package MetaCPAN::Document::Release;
22

33
use Moose;
44

5-
use DateTime qw();
65
use ElasticSearchX::Model::Document;
76
use MetaCPAN::Types qw( Dependency );
87
use MetaCPAN::Types::TypeTiny qw(
@@ -293,7 +292,7 @@ sub set_first {
293292
# currently, the "first" property is not computed on all releases
294293
# since this feature has not been around when last reindexed
295294
]
296-
} )->count
295+
} )->count
297296
? 0
298297
: 1;
299298

0 commit comments

Comments
 (0)