Fix bug where the user-provided tidyall class was not loaded
This fixes issue #43.
Shlomi Fish authored 2 years ago
Dave Rolsky committed 2 years ago
2 | 2 |
- Run `git stash pop` with `--quiet` flag again, as long as Git is not
|
3 | 3 |
2.24.x. See notes in 0.75 for why we stopped passing `--quiet` in the first
|
4 | 4 |
place.
|
|
5 |
|
|
6 |
- Fixed a bug where the class in the `--tidyall-class` option was not
|
|
7 |
loaded. Fixed by Shlomi Fish. PR #107. Fixed GH #43.
|
5 | 8 |
|
6 | 9 |
|
7 | 10 |
0.78 2020-04-25
|
2 | 2 |
use Code::TidyAll;
|
3 | 3 |
use Config;
|
4 | 4 |
use Path::Tiny qw(cwd path);
|
|
5 |
use Module::Runtime qw( use_module );
|
5 | 6 |
use Getopt::Long;
|
6 | 7 |
use strict;
|
7 | 8 |
use warnings;
|
|
117 | 118 |
|
118 | 119 |
my $tidyall_class = $params{tidyall_class} || 'Code::TidyAll';
|
119 | 120 |
|
|
121 |
use_module($tidyall_class);
|
|
122 |
|
120 | 123 |
my ( $ct, @paths );
|
121 | 124 |
|
122 | 125 |
if ($pipe) {
|