[libcode-tidyall-perl] 359/374: fix
Jonas Smedegaard
js at alioth.debian.org
Sun Sep 29 22:26:51 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 139d302a50cbdbd80309321cbad91a99d63762aa
Author: Jonathan Swartz <swartz at pobox.com>
Date: Mon Sep 2 13:38:02 2013 -0700
fix
---
lib/Test/Code/TidyAll.pm | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/lib/Test/Code/TidyAll.pm b/lib/Test/Code/TidyAll.pm
index 0b9e4cf..aa5ad4e 100644
--- a/lib/Test/Code/TidyAll.pm
+++ b/lib/Test/Code/TidyAll.pm
@@ -12,9 +12,10 @@ our @EXPORT_OK = qw(tidyall_ok);
our @EXPORT = @EXPORT_OK;
sub tidyall_ok {
- my $conf_file = Code::TidyAll->find_conf_file(".");
- my $ct = Code::TidyAll->new( check_only => 1, conf_file => $conf_file, mode => 'test', @_ );
- my @files = sort keys( %{ $ct->matched_files } );
+ my @conf_names = Code::TidyAll->default_conf_names;
+ my $conf_file = Code::TidyAll->find_conf_file( \@conf_names, "." );
+ my $ct = Code::TidyAll->new_from_conf_file( $conf_file, check_only => 1, mode => 'test' );
+ my @files = $ct->find_matched_files;
$test->plan( tests => scalar(@files) );
foreach my $file (@files) {
my $desc = $ct->_small_path($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