[libcode-tidyall-perl] 198/374: tidy

Jonas Smedegaard js at alioth.debian.org
Sun Sep 29 22:26:19 UTC 2013


This is an automated email from the git hooks/post-receive script.

js pushed a commit to branch master
in repository libcode-tidyall-perl.

commit ca1bc52c8b2d62062d0491b9778796033a838162
Author: Jonathan Swartz <swartz at pobox.com>
Date:   Thu Sep 6 15:37:02 2012 -0700

    tidy
---
 lib/Code/TidyAll/t/Plugin.pm            |    5 +++--
 lib/Code/TidyAll/t/Plugin/PerlCritic.pm |    3 +--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/lib/Code/TidyAll/t/Plugin.pm b/lib/Code/TidyAll/t/Plugin.pm
index 2c44aab..463ed3d 100644
--- a/lib/Code/TidyAll/t/Plugin.pm
+++ b/lib/Code/TidyAll/t/Plugin.pm
@@ -25,7 +25,8 @@ sub tidyall {
     my $source       = $p{source} || die "source required";
     my $plugin_class = $self->plugin_class;
     my %plugin_conf  = ( $plugin_class => { select => '*', %{ $p{conf} || {} } } );
-    my $ct = Code::TidyAll->new( quiet => 1, root_dir => $self->{root_dir}, plugins => \%plugin_conf );
+    my $ct =
+      Code::TidyAll->new( quiet => 1, root_dir => $self->{root_dir}, plugins => \%plugin_conf );
 
     $source =~ s/\\n/\n/g;
     my $result;
@@ -34,7 +35,7 @@ sub tidyall {
 
     if ( my $expect_tidy = $p{expect_tidy} ) {
         $expect_tidy =~ s/\\n/\n/g;
-        is( $result->state,                'tidied',           'state=tidied' );
+        is( $result->state,        'tidied',     'state=tidied' );
         is( $result->new_contents, $expect_tidy, 'new contents' );
     }
     elsif ( my $expect_ok = $p{expect_ok} ) {
diff --git a/lib/Code/TidyAll/t/Plugin/PerlCritic.pm b/lib/Code/TidyAll/t/Plugin/PerlCritic.pm
index 4884478..0cac688 100644
--- a/lib/Code/TidyAll/t/Plugin/PerlCritic.pm
+++ b/lib/Code/TidyAll/t/Plugin/PerlCritic.pm
@@ -18,8 +18,7 @@ sub test_main : Tests {
         conf      => { argv => "--profile $rc_file" },
         expect_ok => 1,
     );
-    write_file( $rc_file,
-        "only = 1\nseverity = 1\n[CodeLayout::ProhibitHardTabs]\n" );
+    write_file( $rc_file, "only = 1\nseverity = 1\n[CodeLayout::ProhibitHardTabs]\n" );
     $self->tidyall(
         source    => 'my $foo = 5\n',
         conf      => { argv => "--profile $rc_file" },

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libcode-tidyall-perl.git



More information about the Pkg-perl-cvs-commits mailing list