[boxer] 04/33: Consistently use namespace::clean in modules. Order use by pragma/non-Moo/Moo/cleanup and (roughly) by specificity.
Jonas Smedegaard
dr at jones.dk
Sun Nov 5 18:28:16 UTC 2017
This is an automated email from the git hooks/post-receive script.
js pushed a commit to annotated tag debian/1.1.5-1
in repository boxer.
commit 04ae82585467ea04e59a0ac1855953c611e34c9f
Author: Jonas Smedegaard <dr at jones.dk>
Date: Wed Jun 29 19:46:50 2016 +0200
Consistently use namespace::clean in modules. Order use by pragma/non-Moo/Moo/cleanup and (roughly) by specificity.
---
lib/Boxer.pm | 2 ++
lib/Boxer/CLI.pm | 2 ++
lib/Boxer/CLI/Command.pm | 5 +++--
lib/Boxer/CLI/Command/About.pm | 1 +
lib/Boxer/CLI/Command/Aliases.pm | 2 +-
lib/Boxer/CLI/Command/Commands.pm | 1 +
lib/Boxer/CLI/Command/Compose.pm | 4 ++--
lib/Boxer/Role/Interact.pm | 2 ++
lib/Boxer/Task.pm | 2 ++
lib/Boxer/Task/Classify.pm | 10 ++++++----
lib/Boxer/Task/Serialize.pm | 14 ++++++++------
lib/Boxer/Types.pm | 2 ++
12 files changed, 32 insertions(+), 15 deletions(-)
diff --git a/lib/Boxer.pm b/lib/Boxer.pm
index c328d22..03b49cf 100644
--- a/lib/Boxer.pm
+++ b/lib/Boxer.pm
@@ -14,6 +14,8 @@ use strictures 2;
use version;
use Role::Commons -all;
+use namespace::clean;
+
=head1 VERSION
Version v1.1.4
diff --git a/lib/Boxer/CLI.pm b/lib/Boxer/CLI.pm
index 0c6f4f5..824ad77 100644
--- a/lib/Boxer/CLI.pm
+++ b/lib/Boxer/CLI.pm
@@ -16,6 +16,8 @@ use Role::Commons -all;
use App::Cmd::Setup -app;
+use namespace::clean;
+
=head1 VERSION
Version v1.1.4
diff --git a/lib/Boxer/CLI/Command.pm b/lib/Boxer/CLI/Command.pm
index b978216..cb33d26 100644
--- a/lib/Boxer/CLI/Command.pm
+++ b/lib/Boxer/CLI/Command.pm
@@ -10,13 +10,14 @@ use strictures 2;
use version;
use Role::Commons -all;
-use App::Cmd::Setup-command;
-
use Log::Any::Adapter qw<Screen>;
use File::HomeDir qw<>;
use File::Temp qw<>;
use JSON qw<>;
use Path::Class qw<>;
+use App::Cmd::Setup-command;
+
+use namespace::clean;
=head1 VERSION
diff --git a/lib/Boxer/CLI/Command/About.pm b/lib/Boxer/CLI/Command/About.pm
index ab6d3d1..1300124 100644
--- a/lib/Boxer/CLI/Command/About.pm
+++ b/lib/Boxer/CLI/Command/About.pm
@@ -11,6 +11,7 @@ use version;
use Role::Commons -all;
use Boxer::CLI -command;
+
use namespace::clean;
=head1 VERSION
diff --git a/lib/Boxer/CLI/Command/Aliases.pm b/lib/Boxer/CLI/Command/Aliases.pm
index cc111d9..e9abd98 100644
--- a/lib/Boxer/CLI/Command/Aliases.pm
+++ b/lib/Boxer/CLI/Command/Aliases.pm
@@ -11,8 +11,8 @@ use version;
use Role::Commons -all;
use match::simple qw(match);
-
use Boxer::CLI -command;
+
use namespace::clean;
=head1 VERSION
diff --git a/lib/Boxer/CLI/Command/Commands.pm b/lib/Boxer/CLI/Command/Commands.pm
index 8989af7..b0aeb31 100644
--- a/lib/Boxer/CLI/Command/Commands.pm
+++ b/lib/Boxer/CLI/Command/Commands.pm
@@ -11,6 +11,7 @@ use version;
use Role::Commons -all;
use Boxer::CLI -command;
+
use namespace::clean;
=head1 VERSION
diff --git a/lib/Boxer/CLI/Command/Compose.pm b/lib/Boxer/CLI/Command/Compose.pm
index 690e0e7..a2bbe6c 100644
--- a/lib/Boxer/CLI/Command/Compose.pm
+++ b/lib/Boxer/CLI/Command/Compose.pm
@@ -10,10 +10,10 @@ use strictures 2;
use version;
use Role::Commons -all;
+use Module::Runtime qw/use_module/;
use Boxer::CLI -command;
-use namespace::clean;
-use Module::Runtime qw/use_module/;
+use namespace::clean;
=head1 VERSION
diff --git a/lib/Boxer/Role/Interact.pm b/lib/Boxer/Role/Interact.pm
index 68e93cd..374d3d5 100644
--- a/lib/Boxer/Role/Interact.pm
+++ b/lib/Boxer/Role/Interact.pm
@@ -13,6 +13,8 @@ use Role::Commons -all;
use Moo::Role;
use MooX::Types::MooseLike::Base qw< Bool >;
+use namespace::clean;
+
=head1 VERSION
Version v1.1.4
diff --git a/lib/Boxer/Task.pm b/lib/Boxer/Task.pm
index ec676cd..7bbe433 100644
--- a/lib/Boxer/Task.pm
+++ b/lib/Boxer/Task.pm
@@ -14,6 +14,8 @@ use autodie;
use Moo;
with 'MooX::Role::Logger', 'Boxer::Role::Interact';
+use namespace::clean;
+
=head1 VERSION
Version v1.1.4
diff --git a/lib/Boxer/Task/Classify.pm b/lib/Boxer/Task/Classify.pm
index 11231af..7cc37e9 100644
--- a/lib/Boxer/Task/Classify.pm
+++ b/lib/Boxer/Task/Classify.pm
@@ -12,14 +12,16 @@ use Role::Commons -all;
use autodie qw(:all);
use IPC::System::Simple;
+use File::BaseDir qw(data_dirs);
+use Capture::Tiny qw(capture_stdout);
+use YAML::XS;
+
use Moo;
-use Boxer::Types qw( DataDir ClassDir NodeDir Suite );
use Types::Standard qw( Maybe Str Undef );
+use Boxer::Types qw( DataDir ClassDir NodeDir Suite );
extends 'Boxer::Task';
-use File::BaseDir qw(data_dirs);
-use Capture::Tiny qw(capture_stdout);
-use YAML::XS;
+use namespace::clean;
=head1 VERSION
diff --git a/lib/Boxer/Task/Serialize.pm b/lib/Boxer/Task/Serialize.pm
index 4a85f01..ce6db5d 100644
--- a/lib/Boxer/Task/Serialize.pm
+++ b/lib/Boxer/Task/Serialize.pm
@@ -12,17 +12,19 @@ use Role::Commons -all;
use autodie;
use Carp qw<croak>;
-use Moo;
-extends 'Boxer::Task';
-
-use Boxer::Types qw( SkelDir Suite );
-use Types::Standard qw( Bool HashRef Str Undef );
-use Types::Path::Tiny qw( Dir File Path );
use Path::Tiny;
use Try::Tiny;
use Template::Tiny;
use File::ShareDir qw(dist_dir);
+use Moo;
+use Types::Standard qw( Bool HashRef Str Undef );
+use Types::Path::Tiny qw( Dir File Path );
+use Boxer::Types qw( SkelDir Suite );
+extends 'Boxer::Task';
+
+use namespace::clean;
+
=head1 VERSION
Version v1.1.4
diff --git a/lib/Boxer/Types.pm b/lib/Boxer/Types.pm
index 51201c2..871d18c 100644
--- a/lib/Boxer/Types.pm
+++ b/lib/Boxer/Types.pm
@@ -16,6 +16,8 @@ use Type::Utils -all;
use Types::Path::Tiny qw(Dir);
use Types::Common::String qw(LowerCaseSimpleStr);
+use namespace::clean;
+
=head1 VERSION
Version v1.1.4
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/boxer.git
More information about the Pkg-perl-cvs-commits
mailing list