The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.
package Code::TidyAll::Test::Plugin::RepeatFoo;

use File::Slurp::Tiny qw(read_file write_file);
use Moo;
extends 'Code::TidyAll::Plugin';

has 'times' => ( is => 'ro' );

sub transform_source {
    my ( $self, $source ) = @_;
    my $times = $self->times || die "no times specified";
    return $source x $times;
}

1;