Skip to content

Commit d2a9faa

Browse files
committed
Sort use statements
1 parent 9781510 commit d2a9faa

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+80
-80
lines changed

lib/Catalyst/Action/Deserialize/MetaCPANSanitizedJSON.pm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
package Catalyst::Action::Deserialize::MetaCPANSanitizedJSON;
22

33
use Moose;
4-
use namespace::autoclean;
5-
use Try::Tiny qw( catch try );
64
use Cpanel::JSON::XS ();
75
use MetaCPAN::Server::QuerySanitizer ();
6+
use namespace::autoclean;
7+
use Try::Tiny qw( catch try );
88

99
extends 'Catalyst::Action::Deserialize::JSON';
1010

lib/MetaCPAN/API/Plugin/Model.pm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ use Carp ();
88
use MetaCPAN::Model::Search ();
99

1010
# New models
11-
use MetaCPAN::API::Model::User ();
12-
use MetaCPAN::API::Model::Download ();
1311
use MetaCPAN::API::Model::Cover ();
12+
use MetaCPAN::API::Model::Download ();
13+
use MetaCPAN::API::Model::User ();
1414

1515
has app => sub { Carp::croak 'app is required' }, weak => 1;
1616

lib/MetaCPAN/Document/Author/Profile.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ use ElasticSearchX::Model::Document;
88

99
with 'ElasticSearchX::Model::Document::EmbeddedRole';
1010

11-
use MetaCPAN::Util;
1211
use MetaCPAN::Types::TypeTiny qw( Str );
12+
use MetaCPAN::Util;
1313

1414
has name => (
1515
is => 'ro',

lib/MetaCPAN/Model/Archive.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ use MetaCPAN::Types::TypeTiny qw( AbsPath ArrayRef Bool Str );
77

88
use Archive::Any ();
99
use Carp qw( croak );
10-
use Path::Tiny qw( path );
1110
use Digest::file qw( digest_file_hex );
11+
use Path::Tiny qw( path );
1212

1313
=head1 NAME
1414

lib/MetaCPAN/Model/Release.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ use MetaCPAN::Types::TypeTiny qw( AbsPath ArrayRef Str );
1515
use MetaCPAN::Util qw( fix_version);
1616
use Module::Metadata 1.000012 (); # Improved package detection.
1717
use MooseX::StrictConstructor;
18-
use Path::Tiny qw( path );
1918
use Parse::PMFile ();
19+
use Path::Tiny qw( path );
2020
use Try::Tiny qw( catch try );
2121

2222
with 'MetaCPAN::Role::Logger';

lib/MetaCPAN/Role/HasConfig.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ package MetaCPAN::Role::HasConfig;
22

33
use Moose::Role;
44

5-
use FindBin ();
65
use Config::ZOMG ();
6+
use FindBin ();
77
use MetaCPAN::Types::TypeTiny qw( HashRef );
88
use MetaCPAN::Util qw( checkout_root );
99

lib/MetaCPAN/Role/Logger.pm

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ package MetaCPAN::Role::Logger;
22

33
use v5.10;
44
use Moose::Role;
5-
use MetaCPAN::Types::TypeTiny qw( Logger Str );
6-
use Log::Contextual qw( set_logger );
5+
use Log::Contextual qw( set_logger );
76
use Log::Log4perl ':easy';
8-
use Path::Tiny qw( path );
7+
use MetaCPAN::Types::TypeTiny qw( Logger Str );
8+
use Path::Tiny qw( path );
99

1010
has level => (
1111
is => 'ro',

lib/MetaCPAN/Role/Script.pm

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@ package MetaCPAN::Role::Script;
33
use Moose::Role;
44

55
use ElasticSearchX::Model::Document::Types qw( ES );
6-
use MetaCPAN::Util qw( checkout_root );
6+
use File::Path ();
7+
use IO::Prompt::Tiny qw( prompt );
78
use Log::Contextual qw( :log :dlog );
89
use MetaCPAN::Model ();
910
use MetaCPAN::Types::TypeTiny qw( Bool HashRef Int Path Str );
11+
use MetaCPAN::Util qw( checkout_root );
1012
use Mojo::Server ();
1113
use Term::ANSIColor qw( colored );
12-
use IO::Prompt::Tiny qw( prompt );
13-
use File::Path ();
1414

1515
use Carp ();
1616

lib/MetaCPAN/Script/Author.pm

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,16 @@ use warnings;
66
use Moose;
77
with 'MooseX::Getopt', 'MetaCPAN::Role::Script';
88

9+
use Cpanel::JSON::XS qw( decode_json );
910
use DateTime ();
1011
use Email::Valid ();
1112
use Encode ();
12-
use Cpanel::JSON::XS qw( decode_json );
1313
use Log::Contextual qw( :log :dlog );
1414
use MetaCPAN::Document::Author ();
15-
use URI ();
16-
use XML::XPath ();
1715
use MetaCPAN::Types::TypeTiny qw( Str );
1816
use MetaCPAN::Util qw(diff_struct);
17+
use URI ();
18+
use XML::XPath ();
1919

2020
=head1 SYNOPSIS
2121

lib/MetaCPAN/Script/Backup.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ use strict;
44
use warnings;
55
use feature qw( state );
66

7+
use Cpanel::JSON::XS qw( decode_json encode_json );
78
use DateTime ();
89
use IO::Zlib ();
9-
use Cpanel::JSON::XS qw( decode_json encode_json );
1010
use Log::Contextual qw( :log :dlog );
1111
use MetaCPAN::Types::TypeTiny qw( Bool Int Path Str );
1212
use Moose;

lib/MetaCPAN/Script/CPANTesters.pm

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

55
use DBI ();
6+
use ElasticSearchX::Model::Document::Types qw( ESBulk );
67
use File::stat qw( stat );
78
use IO::Uncompress::Bunzip2 qw( bunzip2 );
89
use Log::Contextual qw( :log :dlog );
910
use MetaCPAN::Types::TypeTiny qw( Bool Path Uri );
10-
use ElasticSearchX::Model::Document::Types qw( ESBulk );
1111

1212
with 'MetaCPAN::Role::Script', 'MooseX::Getopt::Dashes';
1313

lib/MetaCPAN/Script/CPANTestersAPI.pm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ package MetaCPAN::Script::CPANTestersAPI;
33
use strict;
44
use warnings;
55

6-
use Log::Contextual qw( :log :dlog );
76
use Cpanel::JSON::XS qw( decode_json );
8-
use MetaCPAN::Types::TypeTiny qw( Uri );
97
use ElasticSearchX::Model::Document::Types qw( ESBulk );
8+
use Log::Contextual qw( :log :dlog );
9+
use MetaCPAN::Types::TypeTiny qw( Uri );
1010
use Moose;
1111

1212
with 'MetaCPAN::Role::Script', 'MooseX::Getopt::Dashes';

lib/MetaCPAN/Script/CVE.pm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ use namespace::autoclean;
55

66
use Cpanel::JSON::XS qw( decode_json );
77
use Log::Contextual qw( :log :dlog );
8-
use Path::Tiny qw( path );
9-
use Ref::Util qw( is_arrayref );
108
use MetaCPAN::Types::TypeTiny qw( Bool Str Uri );
119
use MetaCPAN::Util qw( numify_version );
10+
use Path::Tiny qw( path );
11+
use Ref::Util qw( is_arrayref );
1212

1313
with 'MetaCPAN::Role::Script', 'MooseX::Getopt';
1414

lib/MetaCPAN/Script/Latest.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ use warnings;
55

66
use Log::Contextual qw( :log );
77
use Moose;
8-
use Parse::CPAN::Packages::Fast ();
98
use CPAN::DistnameInfo ();
109
use DateTime::Format::ISO8601 ();
1110
use MetaCPAN::Types::TypeTiny qw( Bool Str );
11+
use Parse::CPAN::Packages::Fast ();
1212

1313
with 'MetaCPAN::Role::Script', 'MooseX::Getopt';
1414

lib/MetaCPAN/Script/Mapping.pm

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,21 +5,21 @@ use Moose;
55
use Cpanel::JSON::XS qw( decode_json );
66
use DateTime ();
77
use Log::Contextual qw( :log );
8+
use MetaCPAN::Script::Mapping::Contributor ();
9+
use MetaCPAN::Script::Mapping::Cover ();
810
use MetaCPAN::Script::Mapping::CPAN::Author ();
911
use MetaCPAN::Script::Mapping::CPAN::Distribution ();
1012
use MetaCPAN::Script::Mapping::CPAN::Favorite ();
1113
use MetaCPAN::Script::Mapping::CPAN::File ();
1214
use MetaCPAN::Script::Mapping::CPAN::Mirror ();
13-
use MetaCPAN::Script::Mapping::CPAN::Permission ();
1415
use MetaCPAN::Script::Mapping::CPAN::Package ();
16+
use MetaCPAN::Script::Mapping::CPAN::Permission ();
1517
use MetaCPAN::Script::Mapping::CPAN::Release ();
18+
use MetaCPAN::Script::Mapping::CVE ();
1619
use MetaCPAN::Script::Mapping::DeployStatement ();
1720
use MetaCPAN::Script::Mapping::User::Account ();
1821
use MetaCPAN::Script::Mapping::User::Identity ();
1922
use MetaCPAN::Script::Mapping::User::Session ();
20-
use MetaCPAN::Script::Mapping::Contributor ();
21-
use MetaCPAN::Script::Mapping::Cover ();
22-
use MetaCPAN::Script::Mapping::CVE ();
2323
use MetaCPAN::Types::TypeTiny qw( Bool Str );
2424

2525
use constant {

lib/MetaCPAN/Script/Release.pm

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@ package MetaCPAN::Script::Release;
33
use strict;
44
use warnings;
55

6-
use CPAN::DistnameInfo ();
7-
use File::Find::Rule ();
8-
use File::stat ();
9-
use List::Util qw( uniq );
10-
use Log::Contextual qw( :log :dlog );
11-
use MetaCPAN::Util;
6+
use CPAN::DistnameInfo ();
7+
use File::Find::Rule ();
8+
use File::stat ();
9+
use List::Util qw( uniq );
10+
use Log::Contextual qw( :log :dlog );
1211
use MetaCPAN::Model::Release ();
1312
use MetaCPAN::Script::Runner ();
1413
use MetaCPAN::Types::TypeTiny qw( Bool HashRef Int Str );
14+
use MetaCPAN::Util;
1515
use Moose;
1616
use PerlIO::gzip;
1717
use Try::Tiny qw( catch try );

lib/MetaCPAN/Script/Runner.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ use File::Path ();
88
use Hash::Merge::Simple qw( merge );
99
use Module::Pluggable search_path => ['MetaCPAN::Script'];
1010
use Module::Runtime ();
11-
use Try::Tiny qw( catch try );
1211
use Term::ANSIColor qw( colored );
12+
use Try::Tiny qw( catch try );
1313

1414
our $EXIT_CODE = 0;
1515

lib/MetaCPAN/Script/Tickets.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ $ENV{PERL_LWP_SSL_VERIFY_HOSTNAME} = 0;
88

99
use HTTP::Request::Common qw( GET );
1010
use Log::Contextual qw( :log :dlog );
11-
use Text::CSV_XS ();
1211
use Net::GitHub::V4 ();
1312
use Ref::Util qw( is_hashref is_ref );
13+
use Text::CSV_XS ();
1414
use URI::Escape qw( uri_escape );
1515

1616
with 'MetaCPAN::Role::Script', 'MooseX::Getopt';

lib/MetaCPAN/Script/Watcher.pm

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ use strict;
44
use warnings;
55
use Moose;
66

7-
use CPAN::DistnameInfo ();
8-
use Cpanel::JSON::XS qw( decode_json );
9-
use Log::Contextual qw( :log );
10-
use MetaCPAN::Util;
7+
use CPAN::DistnameInfo ();
8+
use Cpanel::JSON::XS qw( decode_json );
9+
use Log::Contextual qw( :log );
1110
use MetaCPAN::Types::TypeTiny qw( Bool );
11+
use MetaCPAN::Util;
1212

1313
with 'MetaCPAN::Role::Script', 'MooseX::Getopt';
1414

lib/MetaCPAN/Server/Controller/Diff.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ use warnings;
55

66
use MetaCPAN::Server::Diff ();
77
use Moose;
8-
use Try::Tiny qw( catch try );
98
use namespace::autoclean;
9+
use Try::Tiny qw( catch try );
1010

1111
BEGIN { extends 'MetaCPAN::Server::Controller' }
1212

lib/MetaCPAN/Server/Controller/Login/GitHub.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ package MetaCPAN::Server::Controller::Login::GitHub;
22

33
use Moose;
44

5-
use HTTP::Request::Common qw( GET POST );
65
use Cpanel::JSON::XS qw( decode_json );
6+
use HTTP::Request::Common qw( GET POST );
77
use LWP::UserAgent ();
88

99
BEGIN { extends 'MetaCPAN::Server::Controller::Login' }

lib/MetaCPAN/Server/Controller/Login/Google.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ package MetaCPAN::Server::Controller::Login::Google;
33
use strict;
44
use warnings;
55

6-
use HTTP::Request::Common qw( GET POST );
76
use Cpanel::JSON::XS qw( decode_json );
7+
use HTTP::Request::Common qw( GET POST );
88
use LWP::UserAgent ();
99
use Moose;
1010

lib/MetaCPAN/Server/Controller/OAuth2.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ package MetaCPAN::Server::Controller::OAuth2;
33
use Moose;
44
BEGIN { extends 'Catalyst::Controller' }
55

6-
use Digest::SHA ();
76
use Cpanel::JSON::XS qw( decode_json encode_json );
7+
use Digest::SHA ();
88
use URI ();
99

1010
has login => ( is => 'ro' );

lib/MetaCPAN/Server/Diff.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ use warnings;
55
use Moose;
66

77
use Encoding::FixLatin ();
8+
use File::Spec ();
89
use IPC::Run3 qw( run3 );
910
use MetaCPAN::Types::TypeTiny qw( ArrayRef );
10-
use File::Spec ();
1111

1212
has git => (
1313
is => 'ro',

lib/MetaCPAN/Server/View/JSONP.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ package MetaCPAN::Server::View::JSONP;
33
use strict;
44
use warnings;
55

6-
use Encode qw( decode_utf8 );
76
use Cpanel::JSON::XS ();
7+
use Encode qw( decode_utf8 );
88
use Moose;
99

1010
extends 'Catalyst::View';

t/01_darkpan.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ use lib 't/lib';
44

55
use Devel::Confess;
66
use MetaCPAN::DarkPAN ();
7-
use MetaCPAN::TestServer ();
87
use MetaCPAN::Tests::Controller::Search::DownloadURL ();
8+
use MetaCPAN::TestServer ();
99
use Test::More;
1010
use Test::RequiresInternet ( 'cpan.metacpan.org' => 80 );
1111

t/api/controller/cover.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ use Mojo::Base -strict;
33
use lib 't/lib';
44

55
use MetaCPAN::TestServer ();
6+
use Test::Mojo ();
67
use Test::More;
7-
use Test::Mojo ();
88

99
my $server = MetaCPAN::TestServer->new;
1010

t/api/controller/search/first.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use Mojo::Base -strict;
22

3-
use Test::More;
43
use Test::Mojo ();
4+
use Test::More;
55

66
my $t = Test::Mojo->new('MetaCPAN::API');
77

t/api/controller/search/web.t

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
use Mojo::Base -strict;
22

3-
use Test::More;
4-
use Test::Mojo;
53
use Mojo::JSON qw( false true );
4+
use Test::Mojo;
5+
use Test::More;
66

77
# Note: we need a release marked as status => latest
88
# so we're using Versions::PkgVar for now

t/api/queue.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ use lib 't/lib';
44

55
use MetaCPAN::DarkPAN ();
66
use Path::Tiny qw( path );
7-
use Test::More;
87
use Test::Mojo;
8+
use Test::More;
99

1010
my $t = Test::Mojo->new('MetaCPAN::API');
1111
my $app = $t->app;

t/lib/MetaCPAN/TestHelpers.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ use Cpanel::JSON::XS qw( decode_json encode_json );
88
use File::Copy qw( copy );
99
use File::pushd qw( pushd );
1010
use FindBin ();
11-
use MetaCPAN::Util qw( checkout_root );
1211
use MetaCPAN::Script::Runner ();
12+
use MetaCPAN::Util qw( checkout_root );
1313
use Path::Tiny qw( path );
1414
use Test::More;
1515
use Test::Routine::Util qw( run_tests );

t/lib/MetaCPAN/Tests/Distribution.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package MetaCPAN::Tests::Distribution;
2-
use Test::Routine;
32
use Test::More;
3+
use Test::Routine;
44
use version;
55
use MetaCPAN::Types::TypeTiny qw( Str );
66

0 commit comments

Comments
 (0)