Skip to content

Commit d93ce38

Browse files
shlomifautarch
authored andcommitted
Fix bug where the user-provided tidyall class was not loaded
This fixes issue #43.
1 parent 8ddcb75 commit d93ce38

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

bin/tidyall

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ use Capture::Tiny qw(capture_merged);
33
use Code::TidyAll;
44
use Config;
55
use Path::Tiny qw(cwd path);
6+
use Module::Runtime qw( use_module );
67
use Getopt::Long;
78
use strict;
89
use warnings;
@@ -118,6 +119,8 @@ $params{iterations} = $iterations if $iterations;
118119

119120
my $tidyall_class = $params{tidyall_class} || 'Code::TidyAll';
120121

122+
use_module($tidyall_class);
123+
121124
my ( $ct, @paths );
122125

123126
if ($pipe) {

0 commit comments

Comments
 (0)