Skip to content

Commit

Permalink
Fix bug where the user-provided tidyall class was not loaded
Browse files Browse the repository at this point in the history
This fixes issue #43.
  • Loading branch information
shlomif authored and autarch committed Nov 26, 2021
1 parent 8ddcb75 commit 67f5a94
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Changes
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
2.24.x. See notes in 0.75 for why we stopped passing `--quiet` in the first
place.

- Fixed a bug where the class in the `--tidyall-class` option was not
loaded. Fixed by Shlomi Fish. PR #107. Fixed GH #43.


0.78 2020-04-25

Expand Down
3 changes: 3 additions & 0 deletions bin/tidyall
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ use Capture::Tiny qw(capture_merged);
use Code::TidyAll;
use Config;
use Path::Tiny qw(cwd path);
use Module::Runtime qw( use_module );
use Getopt::Long;
use strict;
use warnings;
Expand Down Expand Up @@ -118,6 +119,8 @@ $params{iterations} = $iterations if $iterations;

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

use_module($tidyall_class);

my ( $ct, @paths );

if ($pipe) {
Expand Down

0 comments on commit 67f5a94

Please sign in to comment.