Dist-Zilla-Plugin-Munge-Whitespace
view release on metacpan or search on metacpan
lib/Dist/Zilla/Plugin/Munge/Whitespace.pm view on Meta::CPAN
our $AUTHORITY = 'cpan:KENTNL'; # AUTHORITY
use Moose qw( has with around );
use Dist::Zilla::Role::FileMunger 1.000; # munge_file
with 'Dist::Zilla::Role::FileMunger';
has 'preserve_trailing' => ( is => 'ro', isa => 'Bool', lazy => 1, default => sub { undef } );
has 'preserve_cr' => ( is => 'ro', isa => 'Bool', lazy => 1, default => sub { undef } );
has 'filename' => ( is => 'ro', isa => 'ArrayRef', lazy => 1, default => sub { [] } );
has 'match' => ( is => 'ro', isa => 'ArrayRef', lazy => 1, default => sub { [] } );
has '_match_expr' => ( is => 'ro', isa => 'RegexpRef', lazy_build => 1 );
has '_eol_kill_expr' => ( is => 'ro', isa => 'RegexpRef', lazy_build => 1 );
around dump_config => sub {
my ( $orig, $self, @args ) = @_;
my $config = $self->$orig(@args);
my $localconf = $config->{ +__PACKAGE__ } = {};
for my $attr (qw( preserve_trailing preserve_cr filename match )) {
( run in 0.631 second using v1.01-cache-2.11-cpan-5f2e87ce722 )