Block.pm000644000765000024 1610114005564544 24552 0ustar00mgrimesstaff000000000000Perl-Tidy-Sweetened-1.18/lib/Perl/Tidy/Sweetened/Keywordpackage Perl::Tidy::Sweetened::Keyword::Block; # ABSTRACT: Perl::Tidy::Sweetened filter plugin to define new subroutine and class keywords use 5.010; # Needed for balanced parens matching with qr/(?-1)/ use strict; use warnings; use Carp; $|++; our $VERSION = '1.18'; # Regex to match balanced params. Reproduced from Regexp::Common to avoid # adding a non-core dependency. # $RE{balanced}{-parens=>'()'}; # The (?-1) construct requires 5.010 our $Paren = '(?:((?:\((?:(?>[^\(\)]+)|(?-1))*\))))'; sub new { my ( $class, %args ) = @_; croak 'keyword not specified' if not exists $args{keyword}; croak 'marker not specified' if not exists $args{marker}; croak 'replacement not specified' if not exists $args{replacement}; $args{clauses} = [] unless exists $args{clauses}; return bless {%args}, $class; } sub keyword { return $_[0]->{keyword} } sub marker { return $_[0]->{marker} } sub replacement { return $_[0]->{replacement} } sub emit_placeholder { my ( $self, $subname, $brace, $clauses ) = @_; # Store the signature and returns() for later use my $id = sprintf "%03d", $self->{counter}++; $self->{store_clause}->{$id} = $clauses; $self->{store_sub}->{$id} = $subname; # Turns 'my_method_name' into 'SUB004hod_name' my $marker = $self->marker . $id; substr( $subname, 0, length($marker), $marker ); return sprintf '%s %s %s', $self->replacement, $marker, $brace; } sub emit_keyword { my ( $self, $brace, $id ) = @_; # Get the signature and returns() from store my $clauses = $self->{store_clause}->{$id}; my $subname = $self->{store_sub}->{$id}; # Combine clauses (parameter list, returns(), etc) into a string separate # each with a space and lead with a space if there are any my $clause = join ' ', grep { length $_ } @$clauses; # FIXME: This forces space between sub/func/method name and clauses list # (ignores perltidy settings) $clause = ' ' . $clause if length $clause; return sprintf '%s %s%s%s', $self->keyword, $subname, $clause, $brace; } sub emit_csc { my ( $self, $id, $cscp ) = @_; return sprintf "%s %s %s", $cscp, $self->keyword, $self->{store_sub}->{$_}; } sub clauses { my $self = shift; # Create a regex (as a string) for all the clauses (ie, parameter list, # returns(), etc). my $clause_re = ''; my $i = 0; for my $clause ( @{ $self->{clauses} } ) { $clause =~ s{PAREN}{$Paren}g; $clause_re .= "(? $clause ) \\s* \n"; $i++; } return $clause_re; } sub identifier { # method or package identifier my $self = shift; return '\w+ (?: ::\w+ )*'; # words, possibly separated by :: } sub prefilter { my ( $self, $code ) = @_; my $keyword = $self->keyword; my $subname = $self->identifier; $code =~ s{ ^\s*\K # okay to have leading whitespace (preserve) $keyword \s+ # the "func/method" keyword (? $subname) # the function name or class name (needs ::) (?!\w|\s*=>) \s* # check to make sure this isn't a sub call with params @{[ $self->clauses ]} # any clauses defined (ie, a parameter list) (? .*?) # anything else (ie, comments) including brace $ }{ my $i = 0; my $clauses = []; while( exists $+{"clause_$i"} ){ ## warn "# clause_$i: " . $+{"clause_$i"} . "\n"; push @$clauses, $+{"clause_$i"}; $i++; } $self->emit_placeholder( $+{subname}, $+{brace}, $clauses ) }egmx; return $code; } sub postfilter { my ( $self, $code, $args ) = @_; my $marker = $self->marker; my $replacement = $self->replacement; my $subname = $self->identifier; my @ids; # Convert back to method $code =~ s{ ^\s*\K # preserve leading whitespace $replacement \s+ # keyword was converted to sub/package $marker # (? \d\d\d) # the identifier [\w:]* \b # the rest of the orignal sub/package name (? \n? \s* ) # possible newline and indentation (? .*? ) [ ]* # opening brace on followed orig comments [ ]* # trailing spaces (not all whitespace) }{ push @ids, $+{id}; $self->emit_keyword( $+{newline} . $+{brace}, $+{id} ); }egmx; # Restore the orig sub name when inserted via the -csc flag my $cscp = $args->{'-cscp'} || '## end'; $code =~ s{ \Q${cscp}\E \s sub \s ${marker} $_ }{ $self->emit_csc( $_, $cscp ); }egx for @ids; return $code; } 1; __END__ =pod =head1 NAME Perl::Tidy::Sweetened::Keyword::Block - Perl::Tidy::Sweetened filter plugin to define new subroutine and class keywords =head1 VERSION version 1.18 =head1 SYNOPSIS our $plugins = Perl::Tidy::Sweetened::Pluggable->new(); $plugins->add_filter( Perl::Tidy::Sweetened::Keyword::Block->new( keyword => 'method', marker => 'METHOD', replacement => 'sub', clauses => [ 'PAREN?', '(returns \s* PAREN)?' ], ) ); =head1 DESCRIPTION This is a Perl::Tidy::Sweetened filter which enables the definition of arbitrary keywords for subroutines with any number of potential signature definitions. New accepts: =over 4 =item keyword keyword => 'method' Declares a new keyword (in this example the "method" keyword). =item marker marker => 'METHOD' Provides a text marker to be used to flag the new keywords during C. The source code will be filtered prior to formatting by Perl::Tidy such that: method foo { } is turned into: sub foo { # __METHOD 1 } =item replacement replacement => 'sub' Will convert the keyword to a C as shown above. =item clauses clauses => [ 'PAREN?' ] Provides a list of strings which will be turned into a regex to capture additional clauses. The regex will include the 'xm' flags (so be sure to escape spaces). The clause can be marked optional with '?'. The special text "PAREN" can be used to capture a balanced parenthetical. This example will capture a parameter list enclosed by parenthesis, ie: method foo (Int $i) { } No formatting is done on the clauses at this time. The order of declaration is significant. =back =head1 AUTHOR Mark Grimes Emgrimes@cpan.orgE =head1 SOURCE Source repository is at L. =head1 BUGS Please report any bugs or feature requests on the bugtracker website L When submitting a bug or request, please include a test-file or a patch to an existing test-file that illustrates the bug or desired feature. =head1 COPYRIGHT AND LICENSE This software is copyright (c) 2021 by Mark Grimes Emgrimes@cpan.orgE. This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. =cut bugs.t000644000765000024 464514005564544 16614 0ustar00mgrimesstaff000000000000Perl-Tidy-Sweetened-1.18/tuse lib 't/lib'; use Test::More; use TidierTests; run_test( <<'RAW', <<'TIDIED', 'RT#83511 - () { rewriten as { ()', '', ); method name1 () { } method name2(){ } RAW method name1 () { } method name2 () { } TIDIED run_test( <<'RAW', <<'TIDIED', 'RT#83511 - same for func', '', ); func name1 () { } func name2(){ } RAW func name1 () { } func name2 () { } TIDIED run_test( <<'RAW', <<'TIDIED', 'RT#84868 - prototype with ()', '', ); func nm (Any $a where qr{(foo)}) { } func name2(){ } RAW func nm (Any $a where qr{(foo)}) { } func name2 () { } TIDIED run_test( <<'RAW', <<'TIDIED', 'RT#84868 - prototype with multiple ()', '', ); func nm (Any $a where qr{(f)(o)}) { } func name2(){ } RAW func nm (Any $a where qr{(f)(o)}) { } func name2 () { } TIDIED run_test( <<'RAW', <<'TIDIED', 'RT#84868 - Multiple line signatures', '', ); method nm (Str $bar, Int $foo where { $_>(0) } ) { } RAW method nm (Str $bar, Int $foo where { $_>(0) } ) { } TIDIED run_test( <<'RAW', <<'TIDIED', 'RT#84868 - Multiple line signatures w/ comment', '', ); method nm (Str $bar, Int $foo where { $_ > (0) } ) { # Fun stuff } RAW method nm (Str $bar, Int $foo where { $_ > (0) } ) { # Fun stuff } TIDIED run_test( <<'RAW', <<'TIDIED', 'RT#85076 - handle returns() with signature ', '', ); method foo ( File :$file! ) returns(Bool) { } RAW method foo ( File :$file! ) returns(Bool) { } TIDIED run_test( <<'RAW', <<'TIDIED', 'RT#85076 - handle returns()', '', ); method foo returns(Bool) { } RAW method foo returns(Bool) { } TIDIED run_test( <<'RAW', <<'TIDIED', 'RT#94633 - class WORD::WORD {}', '', ); class WORD::WORD { } class WORD { } sub mysub:ATTRIBUTE { } RAW class WORD::WORD { } class WORD { } sub mysub : ATTRIBUTE { } TIDIED run_test( <<'RAW', <<'TIDIED', 'RT#106398 - Long single line subs', '', ); sub test ($param) {$param->test->that->breaks->perltidysweetened} RAW sub test ($param) { $param->test->that->breaks->perltidysweetened } TIDIED run_test( <<'RAW', <<'TIDIED', 'RT#106398 - Long single line subs w/o params', '', ); sub test {$param->this->is->a->test->that->breaks->perltidysweetened} RAW sub test { $param->this->is->a->test->that->breaks ->perltidysweetened; } TIDIED run_test( <<'RAW', <<'TIDIED', 'RT#106464 - MooseX::Role::Parameterized', '1', ); method _path => sub { $path }; RAW method _path => sub { $path }; TIDIED done_testing; manifest.t000644000765000024 116414005564544 17643 0ustar00mgrimesstaff000000000000Perl-Tidy-Sweetened-1.18/xt#!/usr/bin/env perl # Test that the module MANIFEST is up-to-date use strict; BEGIN { $| = 1; $^W = 1; } my @MODULES = ( 'Test::DistManifest 1.003', ); # Don't run tests during end-user installs use Test::More; # plan( skip_all => 'Author tests not required for installation' ) # unless ( $ENV{RELEASE_TESTING} ); # Load the testing modules foreach my $MODULE (@MODULES) { eval "use $MODULE"; if ($@) { $ENV{RELEASE_TESTING} ? die("Failed to load required release-testing module $MODULE") : plan( skip_all => "$MODULE not available for testing" ); } } manifest_ok(); 1; MYMETA.json000644000765000024 160014005564544 35436 0ustar00mgrimesstaff000000000000Perl-Tidy-Sweetened-1.18/ci/local-docker/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Algorithm-Diff-1.1903{ "abstract" : "unknown", "author" : [ "unknown" ], "dynamic_config" : 0, "generated_by" : "ExtUtils::MakeMaker version 6.98, CPAN::Meta::Converter version 2.141170, CPAN::Meta::Converter version 2.150005", "license" : [ "unknown" ], "meta-spec" : { "url" : "http://search.cpan.org/perldoc?CPAN::Meta::Spec", "version" : "2" }, "name" : "Algorithm-Diff", "no_index" : { "directory" : [ "t", "inc" ] }, "prereqs" : { "build" : { "requires" : { "ExtUtils::MakeMaker" : "0" } }, "configure" : { "requires" : { "ExtUtils::MakeMaker" : "0" } }, "runtime" : { "requires" : {} } }, "release_status" : "stable", "version" : "1.1903", "x_serialization_backend" : "JSON::PP version 2.27300_01" } README000644000765000024 417014005564544 16075 0ustar00mgrimesstaff000000000000Perl-Tidy-Sweetened-1.18NAME Perl::Tidy::Sweetened - Tweaks to Perl::Tidy to support some syntactic sugar VERSION version 1.18 STATUS DESCRIPTION There are a number of modules on CPAN that allow users to write their classes with a more "modern" syntax. These tools eliminate the need to shift off $self, can support type checking and offer other improvements. Unfortunately, they can break the support tools that the Perl community has come to rely on. This module attempts to work around those issues. The module uses Perl::Tidy's "prefilter" and "postfilter" hooks to support "method" and "func" keywords, including the (possibly multi-line) parameter lists. This is quite an ugly hack, but it is the recommended method of supporting these new keywords (see the 2010-12-17 entry in the Perl::Tidy CHANGES file). The resulting formatted code will leave the parameter lists untouched. "Perl::Tidy::Sweetened" attempts to support the syntax outlined in the following modules, but most of the new syntax styles should work: * p5-mop * Method::Signatures::Simple * MooseX::Method::Signatures * MooseX::Declare * Moops * perl 5.20 signatures * Kavorka THANKS The idea and much of original code taken from Jonathan Swartz' blog . SEE ALSO Perl::Tidy AUTHOR Mark Grimes SOURCE Source repository is at . BUGS Please report any bugs or feature requests on the bugtracker website When submitting a bug or request, please include a test-file or a patch to an existing test-file that illustrates the bug or desired feature. COPYRIGHT AND LICENSE This software is copyright (c) 2021 by Mark Grimes . This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. MYMETA.json000644000765000024 247114005564544 34322 0ustar00mgrimesstaff000000000000Perl-Tidy-Sweetened-1.18/ci/local-docker/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Test-Warn-0.30{ "abstract" : "Perl extension to test methods for warnings", "author" : [ "Alexandr Ciornii " ], "dynamic_config" : 0, "generated_by" : "ExtUtils::MakeMaker version 6.78, CPAN::Meta::Converter version 2.131490, CPAN::Meta::Converter version 2.150005", "keywords" : [ "testing", "warnings" ], "license" : [ "perl_5" ], "meta-spec" : { "url" : "http://search.cpan.org/perldoc?CPAN::Meta::Spec", "version" : "2" }, "name" : "Test-Warn", "no_index" : { "directory" : [ "t", "inc" ] }, "prereqs" : { "build" : { "requires" : { "File::Spec" : "0", "Test::More" : "0" } }, "configure" : { "requires" : { "ExtUtils::MakeMaker" : "0" } }, "runtime" : { "requires" : { "Carp" : "1.22", "Sub::Uplevel" : "0.12", "Test::Builder" : "0.13", "Test::Builder::Tester" : "1.02", "perl" : "5.006" } } }, "release_status" : "stable", "resources" : { "repository" : { "url" : "https://github.com/chorny/test-warn" } }, "version" : "0.30", "x_serialization_backend" : "JSON::PP version 2.27300_01" } MYMETA.json000644000765000024 352614005564544 35357 0ustar00mgrimesstaff000000000000Perl-Tidy-Sweetened-1.18/ci/local-docker/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Test-Exception-0.43{ "abstract" : "Test exception-based code", "author" : [ "Adrian Howard " ], "dynamic_config" : 0, "generated_by" : "ExtUtils::MakeMaker version 7.0401, CPAN::Meta::Converter version 2.150001, CPAN::Meta::Converter version 2.150005", "license" : [ "perl_5" ], "meta-spec" : { "url" : "http://search.cpan.org/perldoc?CPAN::Meta::Spec", "version" : "2" }, "name" : "Test-Exception", "no_index" : { "directory" : [ "t", "inc" ] }, "prereqs" : { "build" : { "requires" : {} }, "configure" : { "requires" : { "ExtUtils::MakeMaker" : "0" } }, "runtime" : { "requires" : { "Carp" : "0", "Exporter" : "0", "Sub::Uplevel" : "0.18", "Test::Builder" : "0.7", "Test::Builder::Tester" : "1.07", "Test::Harness" : "2.03", "base" : "0", "perl" : "5.006001", "strict" : "0", "warnings" : "0" } }, "test" : { "requires" : { "Test::More" : "0.7", "overload" : "0" } } }, "release_status" : "stable", "resources" : { "bugtracker" : { "web" : "https://github.com/Test-More/test-exception/issues" }, "homepage" : "https://github.com/Test-More/test-exception", "repository" : { "type" : "git", "url" : "https://github.com/Test-More/test-exception.git", "web" : "https://github.com/Test-More/test-exception" } }, "version" : "0.43", "x_IRC" : "irc://irc.perl.org/#perl-qa", "x_MailingList" : "http://lists.perl.org/list/perl-qa.html", "x_authority" : "cpan:ADIE", "x_serialization_backend" : "JSON::PP version 2.27300_01" } Pluggable.pm000644000765000024 444014005564544 23761 0ustar00mgrimesstaff000000000000Perl-Tidy-Sweetened-1.18/lib/Perl/Tidy/Sweetenedpackage Perl::Tidy::Sweetened::Pluggable; # ABSTRACT: Simple object to facilitate a pluggable filter architecture use strict; use warnings; our $VERSION = '1.18'; sub new { my ( $class, %args ) = @_; return bless {%args}, $class; } sub filters { return ( $_[0]->{filters} ||= [] ) } sub args { return ( $_[0]->{args} ||= {} ) } sub add_filter { my $self = shift; push @{ $self->filters }, @_; } sub prefilter { my ( $self, $code ) = @_; for my $filter ( @{ $self->filters } ) { $code = $filter->prefilter($code, $self->args); } # warn "After prefilter, before tidy\n"; # warn $code; return $code; } sub postfilter { my ( $self, $code ) = @_; # warn "After tidy, before postfilter\n"; # warn $code; for my $filter ( @{ $self->filters } ) { $code = $filter->postfilter($code, $self->args); } return $code; } sub add_args { my ( $self, $args ) = @_; my ( $body_parts, $msg ) = Perl::Tidy::parse_args($args); $self->{args} = { map { my ( $k, $v ) = split /=/, $_, 2; ( $k => $v ) } @$body_parts }; } 1; __END__ =pod =head1 NAME Perl::Tidy::Sweetened::Pluggable - Simple object to facilitate a pluggable filter architecture =head1 VERSION version 1.18 =head1 SYNOPSIS our $plugins = Perl::Tidy::Sweetened::Pluggable->new(); $plugins->add_filter( Perl::Tidy::Sweetened::Keyword::SubSignature->new( keyword => 'method', marker => 'METHOD', ) ); $plugins->prefilter( $code ); $plugins->postfilter( $code ); =head1 DESCRIPTION Builds a pluggable, chainable list of filters. =head1 AUTHOR Mark Grimes Emgrimes@cpan.orgE =head1 SOURCE Source repository is at L. =head1 BUGS Please report any bugs or feature requests on the bugtracker website L When submitting a bug or request, please include a test-file or a patch to an existing test-file that illustrates the bug or desired feature. =head1 COPYRIGHT AND LICENSE This software is copyright (c) 2021 by Mark Grimes Emgrimes@cpan.orgE. This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. =cut args-sbl.t000644000765000024 56314005564544 17341 0ustar00mgrimesstaff000000000000Perl-Tidy-Sweetened-1.18/tuse lib 't/lib'; use Test::More; use TidierTests; run_test( <<'RAW', <<'TIDIED', 'RT#102815 - ignores -sbl', '', -sbl ); sub name1 () { } sub name2() { } RAW sub name1 () { } sub name2 () { } TIDIED run_test( <<'RAW', <<'TIDIED', 'what if indented', '', -sbl ); sub name1 () { sub name2() { } } RAW sub name1 () { sub name2 () { } } TIDIED done_testing; csc.t000644000765000024 312314005564544 16412 0ustar00mgrimesstaff000000000000Perl-Tidy-Sweetened-1.18/tuse lib 't/lib'; use Test::More; use TidierTests qw(run_test $indent_csc); run_test( <<'RAW', <<'TIDIED', 'GH#12 - Closing Side Comments (cpsp)', 0, '-csc', '-csci=1', '-cscp="## tidy end:"' ); method _trip_attribute_columns { 1; } RAW method _trip_attribute_columns { 1; } ## tidy end: method _trip_attribute_columns TIDIED run_test( <<'RAW', <<"TIDIED", 'GH#12 - Closing Side Comments', 0, '-csc', '-csci=1' ); method _trip_attribute_columns { 1; } RAW method _trip_attribute_columns { 1; }$indent_csc## end method _trip_attribute_columns TIDIED run_test( <<'RAW', <<"TIDIED", 'GH#20 - Closing comments when 10+ subs', 0, '-csc', '-csci=1' ); sub foo0a ($a) { $a++; } sub foo1a ($a) { $a++; } sub foo2a ($a) { $a++; } sub foo3a ($a) { $a++; } sub foo4a ($a) { $a++; } sub foo5a ($a) { $a++; } sub foo6a ($a) { $a++; } sub foo7a ($a) { $a++; } sub foo8a ($a) { $a++; } sub foo9a ($a) { $a++; } sub foo10a ($a) { $a++; } RAW sub foo0a (\$a) { \$a++; }$indent_csc## end sub foo0a sub foo1a (\$a) { \$a++; }$indent_csc## end sub foo1a sub foo2a (\$a) { \$a++; }$indent_csc## end sub foo2a sub foo3a (\$a) { \$a++; }$indent_csc## end sub foo3a sub foo4a (\$a) { \$a++; }$indent_csc## end sub foo4a sub foo5a (\$a) { \$a++; }$indent_csc## end sub foo5a sub foo6a (\$a) { \$a++; }$indent_csc## end sub foo6a sub foo7a (\$a) { \$a++; }$indent_csc## end sub foo7a sub foo8a (\$a) { \$a++; }$indent_csc## end sub foo8a sub foo9a (\$a) { \$a++; }$indent_csc## end sub foo9a sub foo10a (\$a) { \$a++; }$indent_csc## end sub foo10a TIDIED done_testing; 00-version.t000644000765000024 15214005564544 17523 0ustar00mgrimesstaff000000000000Perl-Tidy-Sweetened-1.18/tuse Test::More; use Perl::Tidy; diag "Perl::Tidy version: " . $Perl::Tidy::VERSION; ok 1; done_testing; TidierTests.pm000644000765000024 324514005564544 21031 0ustar00mgrimesstaff000000000000Perl-Tidy-Sweetened-1.18/t/libpackage TidierTests; use strict; use warnings; use Perl::Tidy::Sweetened; use Test::Most; use Exporter; @TidierTests::ISA = qw(Exporter); @TidierTests::EXPORT = qw(run_test); @TidierTests::EXPORT_OK = qw($indent_tc $indent_csc); sub run_test { my ( $raw, $expected, $msg, $todo, @args ) = @_; my $errorbuffer = ''; my @tidied; ## warn "# -nsyn -ce -npro -l=60 " . join( ' ', @args ), "\n"; Perl::Tidy::Sweetened::perltidy( source => \$raw, destination => \@tidied, perltidyrc => undef, errorfile => \$errorbuffer, argv => '-nsyn -ce -npro -l=60 ' . join( ' ', @args ), ); my $tidied = join '', @tidied; if ($todo) { TODO: { # Works with Test::More prior to 1.301001_? local $TidierTests::TODO = 'Not implmented'; # Works with Test::More after 1.301001_021 local $TODO = 'Not implmented'; return check_test( $tidied, $expected, $errorbuffer, $msg ); } } else { return check_test( $tidied, $expected, $errorbuffer, $msg ); } } sub check_test { my ( $tidied, $expected, $errors, $msg ) = @_; my $ok_log = is( $errors, '', "$msg: no errors" ); my $ok_tidy = eq_or_diff( $tidied, $expected, "$msg: matches" ); return $ok_log && $ok_tidy; } # Handle changes in spacing between versions require Perl::Tidy; ## Perl::Tidy changed spacing for trailing comments in v v20200907 our $indent_tc = ' ' x ( ( $Perl::Tidy::VERSION < 20200907 ) ? 8 : 4 ); ## Perl::Tidy changed spacing for closing side comments in v20200110 our $indent_csc = ' ' x ( ( $Perl::Tidy::VERSION < 20200110 ) ? 4 : 1 ); 1; MYMETA.json000644000765000024 6574014005564544 35607 0ustar00mgrimesstaff000000000000Perl-Tidy-Sweetened-1.18/ci/local-docker/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Devel-StackTrace-2.01{ "abstract" : "An object representing a stack trace", "author" : [ "Dave Rolsky " ], "dynamic_config" : 0, "generated_by" : "Dist::Zilla version 5.043, CPAN::Meta::Converter version 2.150005", "license" : [ "artistic_2" ], "meta-spec" : { "url" : "http://search.cpan.org/perldoc?CPAN::Meta::Spec", "version" : "2" }, "name" : "Devel-StackTrace", "prereqs" : { "build" : { "requires" : { "ExtUtils::MakeMaker" : "0" } }, "configure" : { "requires" : { "ExtUtils::MakeMaker" : "0" }, "suggests" : { "JSON::PP" : "2.27300" } }, "develop" : { "requires" : { "Code::TidyAll" : "0.24", "File::Spec" : "0", "IO::Handle" : "0", "IPC::Open3" : "0", "Perl::Critic" : "1.123", "Perl::Tidy" : "20140711", "Pod::Coverage::TrustPod" : "0", "Test::CPAN::Changes" : "0.19", "Test::CPAN::Meta::JSON" : "0.16", "Test::Code::TidyAll" : "0.24", "Test::EOL" : "0", "Test::Mojibake" : "0", "Test::More" : "0.88", "Test::NoTabs" : "0", "Test::Pod" : "1.41", "Test::Pod::Coverage" : "1.08", "Test::Pod::LinkCheck" : "0", "Test::Pod::No404s" : "0", "Test::Spelling" : "0.12", "Test::Synopsis" : "0", "Test::Version" : "1" } }, "runtime" : { "requires" : { "File::Spec" : "0", "Scalar::Util" : "0", "overload" : "0", "perl" : "5.006", "strict" : "0", "warnings" : "0" } }, "test" : { "recommends" : { "CPAN::Meta" : "2.120900" }, "requires" : { "ExtUtils::MakeMaker" : "0", "File::Spec" : "0", "Test::More" : "0.96", "base" : "0", "bytes" : "0" } } }, "provides" : { "Devel::StackTrace" : { "file" : "lib/Devel/StackTrace.pm", "version" : "2.01" }, "Devel::StackTrace::Frame" : { "file" : "lib/Devel/StackTrace/Frame.pm", "version" : "2.01" } }, "release_status" : "stable", "resources" : { "bugtracker" : { "mailto" : "bug-devel-stacktrace@rt.cpan.org", "web" : "http://rt.cpan.org/Public/Dist/Display.html?Name=Devel-StackTrace" }, "homepage" : "http://metacpan.org/release/Devel-StackTrace", "repository" : { "type" : "git", "url" : "git://github.com/autarch/Devel-StackTrace.git", "web" : "https://github.com/autarch/Devel-StackTrace" } }, "version" : "2.01", "x_Dist_Zilla" : { "perl" : { "version" : "5.022001" }, "plugins" : [ { "class" : "Dist::Zilla::Plugin::MakeMaker", "config" : { "Dist::Zilla::Role::TestRunner" : { "default_jobs" : 1 } }, "name" : "@DROLSKY/MakeMaker", "version" : "5.043" }, { "class" : "Dist::Zilla::Plugin::Authority", "name" : "@DROLSKY/Authority", "version" : "1.009" }, { "class" : "Dist::Zilla::Plugin::AutoPrereqs", "name" : "@DROLSKY/AutoPrereqs", "version" : "5.043" }, { "class" : "Dist::Zilla::Plugin::CopyFilesFromBuild", "name" : "@DROLSKY/CopyFilesFromBuild", "version" : "0.151680" }, { "class" : "Dist::Zilla::Plugin::Git::GatherDir", "config" : { "Dist::Zilla::Plugin::GatherDir" : { "exclude_filename" : [ "Build.PL", "LICENSE", "Makefile.PL", "README.md", "cpanfile" ], "exclude_match" : [], "follow_symlinks" : 0, "include_dotfiles" : 0, "prefix" : "", "prune_directory" : [], "root" : "." }, "Dist::Zilla::Plugin::Git::GatherDir" : { "include_untracked" : 0 } }, "name" : "@DROLSKY/Git::GatherDir", "version" : "2.036" }, { "class" : "Dist::Zilla::Plugin::GitHub::Meta", "name" : "@DROLSKY/GitHub::Meta", "version" : "0.42" }, { "class" : "Dist::Zilla::Plugin::GitHub::Update", "config" : { "Dist::Zilla::Plugin::GitHub::Update" : { "metacpan" : 1 } }, "name" : "@DROLSKY/GitHub::Update", "version" : "0.42" }, { "class" : "Dist::Zilla::Plugin::MetaResources", "name" : "@DROLSKY/MetaResources", "version" : "5.043" }, { "class" : "Dist::Zilla::Plugin::MetaProvides::Package", "config" : { "Dist::Zilla::Plugin::MetaProvides::Package" : { "finder_objects" : [ { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : "@DROLSKY/MetaProvides::Package/AUTOVIV/:InstallModulesPM", "version" : "5.043" } ] }, "Dist::Zilla::Role::MetaProvider::Provider" : { "inherit_missing" : "1", "inherit_version" : "1", "meta_noindex" : "1" } }, "name" : "@DROLSKY/MetaProvides::Package", "version" : "2.003001" }, { "class" : "Dist::Zilla::Plugin::NextRelease", "name" : "@DROLSKY/NextRelease", "version" : "5.043" }, { "class" : "Dist::Zilla::Plugin::Prereqs", "config" : { "Dist::Zilla::Plugin::Prereqs" : { "phase" : "test", "type" : "requires" } }, "name" : "@DROLSKY/Test::More with subtest", "version" : "5.043" }, { "class" : "Dist::Zilla::Plugin::Prereqs", "config" : { "Dist::Zilla::Plugin::Prereqs" : { "phase" : "develop", "type" : "requires" } }, "name" : "@DROLSKY/Modules for use with tidyall", "version" : "5.043" }, { "class" : "Dist::Zilla::Plugin::PromptIfStale", "config" : { "Dist::Zilla::Plugin::PromptIfStale" : { "check_all_plugins" : 1, "check_all_prereqs" : 1, "modules" : [], "phase" : "release", "skip" : [ "Dist::Zilla::Plugin::DROLSKY::Contributors", "Dist::Zilla::Plugin::DROLSKY::License", "Dist::Zilla::Plugin::DROLSKY::TidyAll", "Dist::Zilla::Plugin::DROLSKY::VersionProvider" ] } }, "name" : "@DROLSKY/PromptIfStale", "version" : "0.047" }, { "class" : "Dist::Zilla::Plugin::ReadmeAnyFromPod", "config" : { "Dist::Zilla::Role::FileWatcher" : { "version" : "0.006" } }, "name" : "@DROLSKY/README.md in build", "version" : "0.150250" }, { "class" : "Dist::Zilla::Plugin::ReadmeAnyFromPod", "config" : { "Dist::Zilla::Role::FileWatcher" : { "version" : "0.006" } }, "name" : "@DROLSKY/README.md in root", "version" : "0.150250" }, { "class" : "Dist::Zilla::Plugin::Test::Pod::Coverage::Configurable", "name" : "@DROLSKY/Test::Pod::Coverage::Configurable", "version" : "0.05" }, { "class" : "Dist::Zilla::Plugin::Test::PodSpelling", "config" : { "Dist::Zilla::Plugin::Test::PodSpelling" : { "directories" : [], "spell_cmd" : "", "stopwords" : [ "CPAN", "DROLSKY", "DROLSKY's", "PayPal", "Rolsky", "Rolsky", "Rolsky's", "stacktrace" ], "wordlist" : "Pod::Wordlist" } }, "name" : "@DROLSKY/Test::PodSpelling", "version" : "2.007000" }, { "class" : "Dist::Zilla::Plugin::Test::ReportPrereqs", "name" : "@DROLSKY/Test::ReportPrereqs", "version" : "0.024" }, { "class" : "Dist::Zilla::Plugin::Test::Version", "name" : "@DROLSKY/Test::Version", "version" : "1.05" }, { "class" : "Dist::Zilla::Plugin::ManifestSkip", "name" : "@DROLSKY/ManifestSkip", "version" : "5.043" }, { "class" : "Dist::Zilla::Plugin::MetaYAML", "name" : "@DROLSKY/MetaYAML", "version" : "5.043" }, { "class" : "Dist::Zilla::Plugin::License", "name" : "@DROLSKY/License", "version" : "5.043" }, { "class" : "Dist::Zilla::Plugin::ExtraTests", "name" : "@DROLSKY/ExtraTests", "version" : "5.043" }, { "class" : "Dist::Zilla::Plugin::ExecDir", "name" : "@DROLSKY/ExecDir", "version" : "5.043" }, { "class" : "Dist::Zilla::Plugin::ShareDir", "name" : "@DROLSKY/ShareDir", "version" : "5.043" }, { "class" : "Dist::Zilla::Plugin::Manifest", "name" : "@DROLSKY/Manifest", "version" : "5.043" }, { "class" : "Dist::Zilla::Plugin::CheckVersionIncrement", "name" : "@DROLSKY/CheckVersionIncrement", "version" : "0.121750" }, { "class" : "Dist::Zilla::Plugin::TestRelease", "name" : "@DROLSKY/TestRelease", "version" : "5.043" }, { "class" : "Dist::Zilla::Plugin::ConfirmRelease", "name" : "@DROLSKY/ConfirmRelease", "version" : "5.043" }, { "class" : "Dist::Zilla::Plugin::UploadToCPAN", "name" : "@DROLSKY/UploadToCPAN", "version" : "5.043" }, { "class" : "Dist::Zilla::Plugin::CheckPrereqsIndexed", "name" : "@DROLSKY/CheckPrereqsIndexed", "version" : "0.017" }, { "class" : "Dist::Zilla::Plugin::CPANFile", "name" : "@DROLSKY/CPANFile", "version" : "5.043" }, { "class" : "Dist::Zilla::Plugin::DROLSKY::Contributors", "name" : "@DROLSKY/DROLSKY::Contributors", "version" : "0.42" }, { "class" : "Dist::Zilla::Plugin::DROLSKY::License", "name" : "@DROLSKY/DROLSKY::License", "version" : "0.42" }, { "class" : "Dist::Zilla::Plugin::DROLSKY::TidyAll", "name" : "@DROLSKY/DROLSKY::TidyAll", "version" : "0.42" }, { "class" : "Dist::Zilla::Plugin::DROLSKY::VersionProvider", "name" : "@DROLSKY/DROLSKY::VersionProvider", "version" : "0.42" }, { "class" : "Dist::Zilla::Plugin::DROLSKY::Git::CheckFor::CorrectBranch", "config" : { "Dist::Zilla::Role::Git::Repo" : { "repo_root" : "." } }, "name" : "@DROLSKY/DROLSKY::Git::CheckFor::CorrectBranch", "version" : "0.42" }, { "class" : "Dist::Zilla::Plugin::Git::CheckFor::MergeConflicts", "config" : { "Dist::Zilla::Role::Git::Repo" : { "repo_root" : "." } }, "name" : "@DROLSKY/Git::CheckFor::MergeConflicts", "version" : "0.013" }, { "class" : "Dist::Zilla::Plugin::Git::Contributors", "config" : { "Dist::Zilla::Plugin::Git::Contributors" : { "include_authors" : 0, "include_releaser" : 1, "order_by" : "name", "paths" : [ "." ] } }, "name" : "@DROLSKY/Git::Contributors", "version" : "0.020" }, { "class" : "Dist::Zilla::Plugin::InstallGuide", "name" : "@DROLSKY/InstallGuide", "version" : "1.200006" }, { "class" : "Dist::Zilla::Plugin::Meta::Contributors", "name" : "@DROLSKY/Meta::Contributors", "version" : "0.003" }, { "class" : "Dist::Zilla::Plugin::MetaConfig", "name" : "@DROLSKY/MetaConfig", "version" : "5.043" }, { "class" : "Dist::Zilla::Plugin::MetaJSON", "name" : "@DROLSKY/MetaJSON", "version" : "5.043" }, { "class" : "Dist::Zilla::Plugin::SurgicalPodWeaver", "config" : { "Dist::Zilla::Plugin::PodWeaver" : { "finder" : [ ":InstallModules", ":ExecFiles" ], "plugins" : [ { "class" : "Pod::Weaver::Plugin::EnsurePod5", "name" : "@CorePrep/EnsurePod5", "version" : "4.012" }, { "class" : "Pod::Weaver::Plugin::H1Nester", "name" : "@CorePrep/H1Nester", "version" : "4.012" }, { "class" : "Pod::Weaver::Section::Name", "name" : "Name", "version" : "4.012" }, { "class" : "Pod::Weaver::Section::Version", "name" : "Version", "version" : "4.012" }, { "class" : "Pod::Weaver::Section::Region", "name" : "prelude", "version" : "4.012" }, { "class" : "Pod::Weaver::Section::Generic", "name" : "SYNOPSIS", "version" : "4.012" }, { "class" : "Pod::Weaver::Section::Generic", "name" : "DESCRIPTION", "version" : "4.012" }, { "class" : "Pod::Weaver::Section::Leftovers", "name" : "Leftovers", "version" : "4.012" }, { "class" : "Pod::Weaver::Section::Region", "name" : "postlude", "version" : "4.012" }, { "class" : "Pod::Weaver::Section::Authors", "name" : "Authors", "version" : "4.012" }, { "class" : "Pod::Weaver::Section::Contributors", "name" : "Contributors", "version" : "0.009" }, { "class" : "Pod::Weaver::Section::Legal", "name" : "Legal", "version" : "4.012" } ] } }, "name" : "@DROLSKY/SurgicalPodWeaver", "version" : "0.0023" }, { "class" : "Dist::Zilla::Plugin::MojibakeTests", "name" : "@DROLSKY/MojibakeTests", "version" : "0.8" }, { "class" : "Dist::Zilla::Plugin::PodSyntaxTests", "name" : "@DROLSKY/PodSyntaxTests", "version" : "5.043" }, { "class" : "Dist::Zilla::Plugin::Test::CPAN::Changes", "name" : "@DROLSKY/Test::CPAN::Changes", "version" : "0.009" }, { "class" : "Dist::Zilla::Plugin::Test::CPAN::Meta::JSON", "name" : "@DROLSKY/Test::CPAN::Meta::JSON", "version" : "0.004" }, { "class" : "Dist::Zilla::Plugin::Test::EOL", "config" : { "Dist::Zilla::Plugin::Test::EOL" : { "filename" : "xt/author/eol.t", "finder" : [ ":InstallModules", ":ExecFiles", ":TestFiles" ], "trailing_whitespace" : "1" } }, "name" : "@DROLSKY/Test::EOL", "version" : "0.18" }, { "class" : "Dist::Zilla::Plugin::Test::NoTabs", "config" : { "Dist::Zilla::Plugin::Test::NoTabs" : { "filename" : "xt/author/no-tabs.t", "finder" : [ ":InstallModules", ":ExecFiles", ":TestFiles" ] } }, "name" : "@DROLSKY/Test::NoTabs", "version" : "0.15" }, { "class" : "Dist::Zilla::Plugin::Test::Portability", "name" : "@DROLSKY/Test::Portability", "version" : "2.000006" }, { "class" : "Dist::Zilla::Plugin::Test::Synopsis", "name" : "@DROLSKY/Test::Synopsis", "version" : "2.000006" }, { "class" : "Dist::Zilla::Plugin::Test::TidyAll", "name" : "@DROLSKY/Test::TidyAll", "version" : "0.01" }, { "class" : "Dist::Zilla::Plugin::Test::Compile", "config" : { "Dist::Zilla::Plugin::Test::Compile" : { "bail_out_on_fail" : "0", "fail_on_warning" : "author", "fake_home" : 0, "filename" : "xt/author/00-compile.t", "module_finder" : [ ":InstallModules" ], "needs_display" : 0, "phase" : "develop", "script_finder" : [ ":PerlExecFiles" ], "skips" : [] } }, "name" : "@DROLSKY/Test::Compile", "version" : "2.054" }, { "class" : "Dist::Zilla::Plugin::Git::Check", "config" : { "Dist::Zilla::Plugin::Git::Check" : { "untracked_files" : "die" }, "Dist::Zilla::Role::Git::DirtyFiles" : { "allow_dirty" : [ "Build.PL", "CONTRIBUTING.md", "Changes", "LICENSE", "Makefile.PL", "README.md", "cpanfile" ], "allow_dirty_match" : [], "changelog" : "Changes" }, "Dist::Zilla::Role::Git::Repo" : { "repo_root" : "." } }, "name" : "@DROLSKY/Git::Check", "version" : "2.036" }, { "class" : "Dist::Zilla::Plugin::Git::Commit", "config" : { "Dist::Zilla::Plugin::Git::Commit" : { "add_files_in" : [], "commit_msg" : "v%v%n%n%c" }, "Dist::Zilla::Role::Git::DirtyFiles" : { "allow_dirty" : [ "Build.PL", "CONTRIBUTING.md", "Changes", "LICENSE", "Makefile.PL", "README.md", "cpanfile" ], "allow_dirty_match" : [], "changelog" : "Changes" }, "Dist::Zilla::Role::Git::Repo" : { "repo_root" : "." }, "Dist::Zilla::Role::Git::StringFormatter" : { "time_zone" : "local" } }, "name" : "@DROLSKY/commit generated files", "version" : "2.036" }, { "class" : "Dist::Zilla::Plugin::Git::Tag", "config" : { "Dist::Zilla::Plugin::Git::Tag" : { "branch" : null, "changelog" : "Changes", "signed" : 0, "tag" : "v2.01", "tag_format" : "v%v", "tag_message" : "v%v" }, "Dist::Zilla::Role::Git::Repo" : { "repo_root" : "." }, "Dist::Zilla::Role::Git::StringFormatter" : { "time_zone" : "local" } }, "name" : "@DROLSKY/Git::Tag", "version" : "2.036" }, { "class" : "Dist::Zilla::Plugin::Git::Push", "config" : { "Dist::Zilla::Plugin::Git::Push" : { "push_to" : [ "origin" ], "remotes_must_exist" : 1 }, "Dist::Zilla::Role::Git::Repo" : { "repo_root" : "." } }, "name" : "@DROLSKY/Git::Push", "version" : "2.036" }, { "class" : "Dist::Zilla::Plugin::BumpVersionAfterRelease", "config" : { "Dist::Zilla::Plugin::BumpVersionAfterRelease" : { "finders" : [ ":ExecFiles", ":InstallModules" ], "global" : 0, "munge_makefile_pl" : 1 } }, "name" : "@DROLSKY/BumpVersionAfterRelease", "version" : "0.014" }, { "class" : "Dist::Zilla::Plugin::Git::Commit", "config" : { "Dist::Zilla::Plugin::Git::Commit" : { "add_files_in" : [], "commit_msg" : "Bump version after release" }, "Dist::Zilla::Role::Git::DirtyFiles" : { "allow_dirty" : [ "Changes", "dist.ini" ], "allow_dirty_match" : [ "(?^:.+)" ], "changelog" : "Changes" }, "Dist::Zilla::Role::Git::Repo" : { "repo_root" : "." }, "Dist::Zilla::Role::Git::StringFormatter" : { "time_zone" : "local" } }, "name" : "@DROLSKY/commit version bump", "version" : "2.036" }, { "class" : "Dist::Zilla::Plugin::Git::Push", "config" : { "Dist::Zilla::Plugin::Git::Push" : { "push_to" : [ "origin" ], "remotes_must_exist" : 1 }, "Dist::Zilla::Role::Git::Repo" : { "repo_root" : "." } }, "name" : "@DROLSKY/push version bump", "version" : "2.036" }, { "class" : "Dist::Zilla::Plugin::Test::Pod::LinkCheck", "name" : "@DROLSKY/Test::Pod::LinkCheck", "version" : "1.002" }, { "class" : "Dist::Zilla::Plugin::Test::Pod::No404s", "name" : "@DROLSKY/Test::Pod::No404s", "version" : "1.002" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":InstallModules", "version" : "5.043" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":IncModules", "version" : "5.043" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":TestFiles", "version" : "5.043" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":ExtraTestFiles", "version" : "5.043" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":ExecFiles", "version" : "5.043" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":PerlExecFiles", "version" : "5.043" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":ShareFiles", "version" : "5.043" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":MainModule", "version" : "5.043" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":AllFiles", "version" : "5.043" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":NoFiles", "version" : "5.043" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : "@DROLSKY/MetaProvides::Package/AUTOVIV/:InstallModulesPM", "version" : "5.043" } ], "zilla" : { "class" : "Dist::Zilla::Dist::Builder", "config" : { "is_trial" : "0" }, "version" : "5.043" } }, "x_authority" : "cpan:DROLSKY", "x_contributors" : [ "Dagfinn Ilmari Mannsåker ", "David Cantrell ", "Graham Knop ", "Mark Fowler ", "Ricardo Signes " ], "x_serialization_backend" : "JSON::PP version 2.27300_01" } MYMETA.json000644000765000024 526414005564544 34650 0ustar00mgrimesstaff000000000000Perl-Tidy-Sweetened-1.18/ci/local-docker/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Sub-Uplevel-0.25{ "abstract" : "apparently run a function in a higher stack frame", "author" : [ "Michael Schwern ", "David Golden " ], "dynamic_config" : 0, "generated_by" : "Dist::Zilla version 5.031, CPAN::Meta::Converter version 2.143240, CPAN::Meta::Converter version 2.150005", "license" : [ "perl_5" ], "meta-spec" : { "url" : "http://search.cpan.org/perldoc?CPAN::Meta::Spec", "version" : "2" }, "name" : "Sub-Uplevel", "no_index" : { "directory" : [ "t", "xt", "examples", "corpus" ], "package" : [ "DB" ] }, "prereqs" : { "build" : { "requires" : { "ExtUtils::MakeMaker" : "0" } }, "configure" : { "requires" : { "ExtUtils::MakeMaker" : "6.17" } }, "develop" : { "requires" : { "Dist::Zilla" : "5", "Dist::Zilla::PluginBundle::DAGOLDEN" : "0.073", "File::Spec" : "0", "File::Temp" : "0", "IO::Handle" : "0", "IPC::Open3" : "0", "Pod::Coverage::TrustPod" : "0", "Test::CPAN::Meta" : "0", "Test::More" : "0", "Test::Pod" : "1.41", "Test::Pod::Coverage" : "1.08", "Test::Spelling" : "0.12", "Test::Version" : "1" } }, "runtime" : { "requires" : { "Carp" : "0", "constant" : "0", "perl" : "5.006", "strict" : "0", "warnings" : "0" } }, "test" : { "recommends" : { "CPAN::Meta" : "2.120900" }, "requires" : { "Exporter" : "0", "ExtUtils::MakeMaker" : "0", "File::Spec" : "0", "Test::More" : "0" } } }, "provides" : { "Sub::Uplevel" : { "file" : "lib/Sub/Uplevel.pm", "version" : "0.25" } }, "release_status" : "stable", "resources" : { "bugtracker" : { "web" : "https://github.com/dagolden/Sub-Uplevel/issues" }, "homepage" : "https://github.com/dagolden/Sub-Uplevel", "repository" : { "type" : "git", "url" : "https://github.com/dagolden/Sub-Uplevel.git", "web" : "https://github.com/dagolden/Sub-Uplevel" } }, "version" : "0.25", "x_authority" : "cpan:DAGOLDEN", "x_contributors" : [ "Adam Kennedy ", "Alexandr Ciornii ", "Michael Gray " ], "x_serialization_backend" : "JSON::PP version 2.27300_01" } versions000644000765000024 42714005564544 16771 0ustar00mgrimesstaff000000000000Perl-Tidy-Sweetened-1.1820210111 20201207 20201202 20201001 20200907 20200822 20200619 20200110 20191203 20190915 20190601 20181120 20181119 20181117 20180220 20180101 20171214 20170521 20160302 20160301 20150815 20140711 20140328 20181118 20180219 20130922 20130806 20130805 20130717 20121207 20120714 META.yml000644000765000024 261714005564544 16472 0ustar00mgrimesstaff000000000000Perl-Tidy-Sweetened-1.18--- abstract: 'Tweaks to Perl::Tidy to support some syntactic sugar' author: - 'Mark Grimes Emgrimes@cpan.orgE' build_requires: Test::Differences: '0' Test::More: '0.87' Test::Most: '0' configure_requires: Module::Build::Tiny: '0.034' dynamic_config: 0 generated_by: 'App::ModuleBuildTiny version 0.023, CPAN::Meta::Converter version 2.150010' license: perl meta-spec: url: http://module-build.sourceforge.net/META-spec-v1.4.html version: '1.4' name: Perl-Tidy-Sweetened provides: Perl::Tidy::Sweet: file: lib/Perl/Tidy/Sweet.pm version: '1.18' Perl::Tidy::Sweetened: file: lib/Perl/Tidy/Sweetened.pm version: '1.18' Perl::Tidy::Sweetened::Keyword::Block: file: lib/Perl/Tidy/Sweetened/Keyword/Block.pm version: '1.18' Perl::Tidy::Sweetened::Pluggable: file: lib/Perl/Tidy/Sweetened/Pluggable.pm version: '1.18' Perl::Tidy::Sweetened::Variable::Twigils: file: lib/Perl/Tidy/Sweetened/Variable/Twigils.pm version: '1.18' requires: Carp: '0' Perl::Tidy: '0' perl: '5.010' resources: bugtracker: http://github.com/mvgrimes/Perl-Tidy-Sweetened/issues repository: http://github.com/mvgrimes/Perl-Tidy-Sweetened.git version: '1.18' x_contributors: - 'Kent Fredric (@kentnl)' - 'Gregoy Oschwald (@oschwal)' - 'Curtis Brandt (@aggrolite)' - '@pblaberge' - 'Peter Roberts (@pwr22)' x_serialization_backend: 'CPAN::Meta::YAML version 0.018' cpanfile000644000765000024 42014005564544 16673 0ustar00mgrimesstaff000000000000Perl-Tidy-Sweetened-1.18 requires 'perl' => '5.010'; # Needed for RE{balanced}'s use of (?^) requires 'Perl::Tidy' => 0; requires 'Carp' => 0; on 'test' => sub { requires 'Test::Differences' => 0; requires 'Test::More' => 0.87; requires 'Test::Most' => 0; }; minimumversion.t000644000765000024 133114005564544 21112 0ustar00mgrimesstaff000000000000Perl-Tidy-Sweetened-1.18/xt#!/usr/bin/env perl # Test that our declared minimum Perl version matches our syntax use strict; BEGIN { $| = 1; $^W = 1; } my @MODULES = ( 'Perl::MinimumVersion 1.20', 'Test::MinimumVersion 0.008', ); # Don't run tests during end-user installs use Test::More; # plan( skip_all => 'Author tests not required for installation' ) # unless ( $ENV{RELEASE_TESTING} or $ENV{AUTOMATED_TESTING} ); # Load the testing modules foreach my $MODULE (@MODULES) { eval "use $MODULE"; if ($@) { $ENV{RELEASE_TESTING} ? die("Failed to load required release-testing module $MODULE") : plan( skip_all => "$MODULE not available for testing" ); } } all_minimum_version_from_metayml_ok(); 1; MYMETA.json000644000765000024 617414005564544 35034 0ustar00mgrimesstaff000000000000Perl-Tidy-Sweetened-1.18/ci/local-docker/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Capture-Tiny-0.36{ "abstract" : "Capture STDOUT and STDERR from Perl, XS or external programs", "author" : [ "David Golden " ], "dynamic_config" : 0, "generated_by" : "Dist::Zilla version 5.043, CPAN::Meta::Converter version 2.150001, CPAN::Meta::Converter version 2.150005", "license" : [ "apache_2_0" ], "meta-spec" : { "url" : "http://search.cpan.org/perldoc?CPAN::Meta::Spec", "version" : "2" }, "name" : "Capture-Tiny", "no_index" : { "directory" : [ "corpus", "examples", "t", "xt" ], "package" : [ "DB" ] }, "prereqs" : { "build" : { "requires" : { "ExtUtils::MakeMaker" : "0" } }, "configure" : { "requires" : { "ExtUtils::MakeMaker" : "6.17" } }, "develop" : { "requires" : { "Dist::Zilla" : "5", "Dist::Zilla::Plugin::OSPrereqs" : "0", "Dist::Zilla::Plugin::Prereqs" : "0", "Dist::Zilla::Plugin::RemovePrereqs" : "0", "Dist::Zilla::PluginBundle::DAGOLDEN" : "0.072", "English" : "0", "File::Spec" : "0", "File::Temp" : "0", "IO::Handle" : "0", "IPC::Open3" : "0", "Pod::Coverage::TrustPod" : "0", "Pod::Wordlist" : "0", "Software::License::Apache_2_0" : "0", "Test::CPAN::Meta" : "0", "Test::More" : "0", "Test::Pod" : "1.41", "Test::Pod::Coverage" : "1.08", "Test::Spelling" : "0.12", "Test::Version" : "1", "blib" : "1.01" } }, "runtime" : { "requires" : { "Carp" : "0", "Exporter" : "0", "File::Spec" : "0", "File::Temp" : "0", "IO::Handle" : "0", "Scalar::Util" : "0", "perl" : "5.006", "strict" : "0", "warnings" : "0" } }, "test" : { "recommends" : { "CPAN::Meta" : "2.120900" }, "requires" : { "ExtUtils::MakeMaker" : "0", "File::Spec" : "0", "IO::File" : "0", "Test::More" : "0.62", "lib" : "0" } } }, "provides" : { "Capture::Tiny" : { "file" : "lib/Capture/Tiny.pm", "version" : "0.36" } }, "release_status" : "stable", "resources" : { "bugtracker" : { "web" : "https://github.com/dagolden/Capture-Tiny/issues" }, "homepage" : "https://github.com/dagolden/Capture-Tiny", "repository" : { "type" : "git", "url" : "https://github.com/dagolden/Capture-Tiny.git", "web" : "https://github.com/dagolden/Capture-Tiny" } }, "version" : "0.36", "x_authority" : "cpan:DAGOLDEN", "x_contributors" : [ "Dagfinn Ilmari Mannsåker ", "David E. Wheeler ", "fecundf " ], "x_serialization_backend" : "JSON::PP version 2.27300_01" } perl-signatures.t000644000765000024 636714005564544 21003 0ustar00mgrimesstaff000000000000Perl-Tidy-Sweetened-1.18/tuse lib 't/lib'; use Test::More; use TidierTests; run_test( <<'RAW', <<'TIDIED', 'Two simple args', '', ); sub foo ($left, $right) { return $left + $right; } RAW sub foo ($left, $right) { return $left + $right; } TIDIED run_test( <<'RAW', <<'TIDIED', 'Ignore one arg ', '', ); sub foo ($first, $, $third) { return "first=$first, third=$third"; } RAW sub foo ($first, $, $third) { return "first=$first, third=$third"; } TIDIED run_test( <<'RAW', <<'TIDIED', 'Default value ', '', ); sub foo ($left, $right = 0) { return $left + $right; } RAW sub foo ($left, $right = 0) { return $left + $right; } TIDIED run_test( <<'RAW', <<'TIDIED', 'More complicated default ', '', ); my $auto_id = 0; sub foo ($thing, $id = $auto_id++) { print "$thing has ID $id"; } RAW my $auto_id = 0; sub foo ($thing, $id = $auto_id++) { print "$thing has ID $id"; } TIDIED run_test( <<'RAW', <<'TIDIED', 'Ignored default value', '', ); sub foo ($thing, $ = 1) { print $thing; } RAW sub foo ($thing, $ = 1) { print $thing; } TIDIED run_test( <<'RAW', <<'TIDIED', 'Really ignore default value', '', ); sub foo ($thing, $ =) { print $thing; } RAW sub foo ($thing, $ =) { print $thing; } TIDIED run_test( <<'RAW', <<'TIDIED', 'Slurpy', '', ); sub foo ($filter, @inputs) { print $filter->($_) foreach @inputs; } RAW sub foo ($filter, @inputs) { print $filter->($_) foreach @inputs; } TIDIED run_test( <<'RAW', <<'TIDIED', 'Ignored slurpy', '', ); sub foo ($thing, @) { print $thing; } RAW sub foo ($thing, @) { print $thing; } TIDIED run_test( <<'RAW', <<'TIDIED', 'Hash as an arg', '', ); sub foo ($filter, %inputs) { print $filter->($_, $inputs{$_}) foreach sort keys %inputs; } RAW sub foo ($filter, %inputs) { print $filter->( $_, $inputs{$_} ) foreach sort keys %inputs; } TIDIED run_test( <<'RAW', <<'TIDIED', 'Ignored hash', '', ); sub foo ($thing, %) { print $thing; } RAW sub foo ($thing, %) { print $thing; } TIDIED run_test( <<'RAW', <<'TIDIED', 'Empty args', '', ); sub foo () { return 123; } RAW sub foo () { return 123; } TIDIED run_test( <<'RAW', <<'TIDIED', 'Args and a prototype', '', ); sub foo :prototype($$) ($left, $right) { return $left + $right; } RAW sub foo : prototype($$) ( $left, $right ) { return $left + $right; } TIDIED run_test( <<'RAW', <<'TIDIED', 'Empty hash as default value', '', ); sub foo( $x, $y = {} ){ return $x+$y; } RAW sub foo ( $x, $y = {} ) { return $x + $y; } TIDIED SKIP: { skip 'Perl::Tidy version 20160301 has a bug that impacts this test', 2 if $Perl::Tidy::VERSION eq '20160301'; run_test( <<'RAW', <<'TIDIED', '5.20 annoymous sub', '', ); $j->map( sub ( $x, $ = 0 ) { $x->method(); } ); RAW $j->map( sub ( $x, $ = 0 ) { $x->method(); } ); TIDIED } run_test( <<'RAW', <<'TIDIED', '5.20 annoymous sub 2 ', '', ); my $x = sub ( $x, $ = 0 ) { $x->method(); }; RAW my $x = sub ( $x, $ = 0 ) { $x->method(); }; TIDIED run_test( <<'RAW', <<'TIDIED', 'Simple declaraion and use', '', ); use strict; use warnings; sub foo ( $left, $right ) { return $left + $right; } say foo( $a, $b ); RAW use strict; use warnings; sub foo ( $left, $right ) { return $left + $right; } say foo( $a, $b ); TIDIED done_testing; check-changes.t000644000765000024 122414005564544 20515 0ustar00mgrimesstaff000000000000Perl-Tidy-Sweetened-1.18/xt#!/usr/bin/env perl # Test that Changes has an entry for current version use strict; BEGIN { $| = 1; $^W = 1; } my @MODULES = ( 'Test::CheckChanges 0.08', ); # Don't run tests during end-user installs use Test::More; # plan( skip_all => 'Author tests not required for installation' ) # unless ( $ENV{RELEASE_TESTING} or $ENV{AUTOMATED_TESTING} ); # Load the testing modules foreach my $MODULE (@MODULES) { eval "use $MODULE"; if ($@) { $ENV{RELEASE_TESTING} ? die("Failed to load required release-testing module $MODULE") : plan( skip_all => "$MODULE not available for testing" ); } } ok_changes(); 1; kavorka.t000644000765000024 654314005564544 17311 0ustar00mgrimesstaff000000000000Perl-Tidy-Sweetened-1.18/tuse lib 't/lib'; use Test::More; use TidierTests qw(run_test $indent_tc); run_test( <<'RAW', <<'TIDIED', 'Simple method usage', '', ); method name1{ } sub name2{ } RAW method name1 { } sub name2 { } TIDIED run_test( <<'RAW', <<'TIDIED', 'Simple methods with underscores ', '', ); method name_1{ } RAW method name_1 { } TIDIED run_test( <<'RAW', <<'TIDIED', 'Method with signature', '', ); method name1 (class: $that) { } method name2( :$arg1, :$arg2 ){ } sub name3 {} RAW method name1 (class: $that) { } method name2 ( :$arg1, :$arg2 ) { } sub name3 { } TIDIED run_test( <<'RAW', <<'TIDIED', 'Simple classmethod usage', '', ); classmethod name1{ } sub name2{ } RAW classmethod name1 { } sub name2 { } TIDIED run_test( <<'RAW', <<'TIDIED', 'Simple classmethods with underscores ', '', ); classmethod name_1{ } RAW classmethod name_1 { } TIDIED run_test( <<'RAW', <<'TIDIED', 'classmethod with signature', '', ); classmethod name1 (class: $that) { } classmethod name2( :$arg1, :$arg2 ){ } sub name3 {} RAW classmethod name1 (class: $that) { } classmethod name2 ( :$arg1, :$arg2 ) { } sub name3 { } TIDIED run_test( <<'RAW', <<'TIDIED', 'Simple objectmethod usage', '', ); objectmethod name1{ } sub name2{ } RAW objectmethod name1 { } sub name2 { } TIDIED run_test( <<'RAW', <<'TIDIED', 'Simple objectmethods with underscores ', '', ); objectmethod name_1{ } RAW objectmethod name_1 { } TIDIED run_test( <<'RAW', <<'TIDIED', 'objectmethod with signature', '', ); objectmethod name1 (class: $that) { } objectmethod name2( :$arg1, :$arg2 ){ } sub name3 {} RAW objectmethod name1 (class: $that) { } objectmethod name2 ( :$arg1, :$arg2 ) { } sub name3 { } TIDIED run_test( <<'RAW', <<'TIDIED', 'Functions', '', ); fun morning ($name) { say "Hi $name"; } RAW fun morning ($name) { say "Hi $name"; } TIDIED run_test( <<'RAW', <<'TIDIED', 'Functions with underscore in name', '', ); fun morn_ing ($name) { say "Hi $name"; } RAW fun morn_ing ($name) { say "Hi $name"; } TIDIED run_test( <<'RAW', <<'TIDIED', 'Functions with multi-line paramaters', '', ); fun morning ( Str :$name, Int :$age, ) { say "Hi $name"; } RAW fun morning ( Str :$name, Int :$age, ) { say "Hi $name"; } TIDIED run_test( <<'RAW', <<"TIDIED", 'With trailing comments', '', ); method name1{# Trailing comment } sub name2{ # Trailing comment } RAW method name1 { # Trailing comment } sub name2 {$indent_tc# Trailing comment } TIDIED run_test( <<'RAW', <<"TIDIED", 'With attribs trailing comments', '', ); method name1 :Attrib(Arg) {# comment } sub name2 :Attrib(Arg) { # comment } RAW method name1 : Attrib(Arg) { # comment } sub name2 : Attrib(Arg) {$indent_tc# comment } TIDIED run_test( <<'RAW', <<'TIDIED', 'but begin', '', ); method foo () but begin { 'bar' } RAW method foo () but begin { 'bar' } TIDIED run_test( <<'RAW', <<'TIDIED', 'around modifiers', '', ); around foo(Str :$bar, Str :$baz?) { say "hi"; } RAW around foo (Str :$bar, Str :$baz?) { say "hi"; } TIDIED run_test( <<'RAW', <<'TIDIED', 'before modifiers', '', ); before foo(Str :$bar, Str :$baz?) { say "hi"; } RAW before foo (Str :$bar, Str :$baz?) { say "hi"; } TIDIED run_test( <<'RAW', <<'TIDIED', 'after modifiers', '', ); after foo(Str :$bar, Str :$baz?) { say "hi"; } RAW after foo (Str :$bar, Str :$baz?) { say "hi"; } TIDIED done_testing; MYMETA.json000644000765000024 214514005564544 34274 0ustar00mgrimesstaff000000000000Perl-Tidy-Sweetened-1.18/ci/local-docker/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Text-Diff-1.44{ "abstract" : "Perform diffs on files and record sets", "author" : [ "Adam Kennedy " ], "dynamic_config" : 0, "generated_by" : "ExtUtils::MakeMaker version 7.02, CPAN::Meta::Converter version 2.150005", "license" : [ "perl_5" ], "meta-spec" : { "url" : "http://search.cpan.org/perldoc?CPAN::Meta::Spec", "version" : "2" }, "name" : "Text-Diff", "no_index" : { "directory" : [ "t", "inc" ] }, "prereqs" : { "build" : { "requires" : { "ExtUtils::MakeMaker" : "0" } }, "configure" : { "requires" : { "ExtUtils::MakeMaker" : "0" } }, "runtime" : { "requires" : { "Algorithm::Diff" : "1.19", "Exporter" : "0", "perl" : "5.006" } } }, "release_status" : "stable", "resources" : { "repository" : { "url" : "https://github.com/neilbowers/Text-Diff" } }, "version" : "1.44", "x_serialization_backend" : "JSON::PP version 2.27300_01" } perltidy-sweet000644000765000024 261314005564544 21425 0ustar00mgrimesstaff000000000000Perl-Tidy-Sweetened-1.18/script#!perl # ABSTRACT: Script to execute Perl::Tidy::Sweetened cleanup # PODNAME: perltidy-sweet use strict; use warnings; use Perl::Tidy::Sweetened; Perl::Tidy::Sweetened::perltidy(); __END__ =pod =head1 NAME perltidy-sweet - Script to execute Perl::Tidy::Sweetened cleanup =head1 DESCRIPTION This script is a drop in replacement for L's C which uses L to cleanup Perl code with a more "modern" syntax (ie, L, L, L, L, etc). See the documentation for L and L for usage. See L for more information about the changes introduced. =head1 SEE ALSO L =head1 AUTHOR Mark Grimes Emgrimes@cpan.orgE =head1 SOURCE Source repository is at L. =head1 BUGS Please report any bugs or feature requests on the bugtracker website L When submitting a bug or request, please include a test-file or a patch to an existing test-file that illustrates the bug or desired feature. =head1 COPYRIGHT AND LICENSE This software is copyright (c) 2021 by Mark Grimes Emgrimes@cpan.orgE. This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. =cut method-signature-simple.t000644000765000024 321114005564544 22406 0ustar00mgrimesstaff000000000000Perl-Tidy-Sweetened-1.18/tuse lib 't/lib'; use Test::More; use TidierTests qw(run_test $indent_tc); run_test( <<'RAW', <<'TIDIED', 'Simple method usage', '', ); method name1{ } sub name2{ } RAW method name1 { } sub name2 { } TIDIED run_test( <<'RAW', <<'TIDIED', 'Simple methods with underscores ', '', ); method name_1{ } RAW method name_1 { } TIDIED run_test( <<'RAW', <<'TIDIED', 'Method with signature', '', ); method name1 (class: $that) { } method name2( :$arg1, :$arg2 ){ } sub name3 {} RAW method name1 (class: $that) { } method name2 ( :$arg1, :$arg2 ) { } sub name3 { } TIDIED run_test( <<'RAW', <<'TIDIED', 'Functions', '', ); func morning ($name) { say "Hi $name"; } RAW func morning ($name) { say "Hi $name"; } TIDIED run_test( <<'RAW', <<'TIDIED', 'Functions with underscore in name', '', ); func morn_ing ($name) { say "Hi $name"; } RAW func morn_ing ($name) { say "Hi $name"; } TIDIED run_test( <<'RAW', <<'TIDIED', 'Functions with multi-line paramaters', '', ); func morning ( Str :$name, Int :$age, ) { say "Hi $name"; } RAW func morning ( Str :$name, Int :$age, ) { say "Hi $name"; } TIDIED run_test( <<'RAW', <<"TIDIED", 'With trailing comments', '', ); method name1{# Trailing comment } sub name2{ # Trailing comment } RAW method name1 { # Trailing comment } sub name2 {$indent_tc# Trailing comment } TIDIED run_test( <<'RAW', <<"TIDIED", 'With attribs trailing comments', '', ); method name1 :Attrib(Arg) {# comment } sub name2 :Attrib(Arg) { # comment } RAW method name1 : Attrib(Arg) { # comment } sub name2 : Attrib(Arg) {$indent_tc# comment } TIDIED done_testing; META.json000644000765000024 436414005564544 16643 0ustar00mgrimesstaff000000000000Perl-Tidy-Sweetened-1.18{ "abstract" : "Tweaks to Perl::Tidy to support some syntactic sugar", "author" : [ "Mark Grimes Emgrimes@cpan.orgE" ], "dynamic_config" : 0, "generated_by" : "App::ModuleBuildTiny version 0.023", "license" : [ "perl_5" ], "meta-spec" : { "url" : "http://search.cpan.org/perldoc?CPAN::Meta::Spec", "version" : "2" }, "name" : "Perl-Tidy-Sweetened", "prereqs" : { "configure" : { "requires" : { "Module::Build::Tiny" : "0.034" } }, "develop" : { "requires" : { "App::ModuleBuildTiny" : "0.023" } }, "runtime" : { "requires" : { "Carp" : "0", "Perl::Tidy" : "0", "perl" : "5.010" } }, "test" : { "requires" : { "Test::Differences" : "0", "Test::More" : "0.87", "Test::Most" : "0" } } }, "provides" : { "Perl::Tidy::Sweet" : { "file" : "lib/Perl/Tidy/Sweet.pm", "version" : "1.18" }, "Perl::Tidy::Sweetened" : { "file" : "lib/Perl/Tidy/Sweetened.pm", "version" : "1.18" }, "Perl::Tidy::Sweetened::Keyword::Block" : { "file" : "lib/Perl/Tidy/Sweetened/Keyword/Block.pm", "version" : "1.18" }, "Perl::Tidy::Sweetened::Pluggable" : { "file" : "lib/Perl/Tidy/Sweetened/Pluggable.pm", "version" : "1.18" }, "Perl::Tidy::Sweetened::Variable::Twigils" : { "file" : "lib/Perl/Tidy/Sweetened/Variable/Twigils.pm", "version" : "1.18" } }, "release_status" : "stable", "resources" : { "bugtracker" : { "web" : "http://github.com/mvgrimes/Perl-Tidy-Sweetened/issues" }, "repository" : { "type" : "git", "url" : "http://github.com/mvgrimes/Perl-Tidy-Sweetened.git", "web" : "http://github.com/mvgrimes/Perl-Tidy-Sweetened" } }, "version" : "1.18", "x_contributors" : [ "Kent Fredric (@kentnl)", "Gregoy Oschwald (@oschwal)", "Curtis Brandt (@aggrolite)", "@pblaberge", "Peter Roberts (@pwr22)" ], "x_serialization_backend" : "JSON::PP version 2.27400_02" } meta.t000644000765000024 122714005564544 16763 0ustar00mgrimesstaff000000000000Perl-Tidy-Sweetened-1.18/xt#!/usr/bin/env perl # Test that our META.yml file matches the specification use strict; BEGIN { $| = 1; $^W = 1; } my @MODULES = ( 'Test::CPAN::Meta 0.12', ); # Don't run tests during end-user installs use Test::More; # plan( skip_all => 'Author tests not required for installation' ) # unless ( $ENV{RELEASE_TESTING} or $ENV{AUTOMATED_TESTING} ); # Load the testing modules foreach my $MODULE (@MODULES) { eval "use $MODULE"; if ($@) { $ENV{RELEASE_TESTING} ? die("Failed to load required release-testing module $MODULE") : plan( skip_all => "$MODULE not available for testing" ); } } meta_yaml_ok(); 1; p5-mop.t000644000765000024 234014005564544 16757 0ustar00mgrimesstaff000000000000Perl-Tidy-Sweetened-1.18/tuse lib 't/lib'; use Test::More; use TidierTests; run_test( <<'RAW', <<'TIDIED', 'Simple empty class', '', ); class Point{ } sub name3{} RAW class Point { } sub name3 { } TIDIED run_test( <<'RAW', <<'TIDIED', 'Class with inheritance', '', ); class Point3D extends Point{ } RAW class Point3D extends Point { } TIDIED run_test( <<'RAW', <<'TIDIED', 'Class with attribute', '', ); class Point { has $!x; } sub name3 {} RAW class Point { has $!x; } sub name3 { } TIDIED run_test( <<'RAW', <<'TIDIED', 'Class with attribute and trait', '', ); class Point { has $!x is ro; } RAW class Point { has $!x is ro; } TIDIED run_test( <<'RAW', <<'TIDIED', 'Class with attribute with default value', '', ); class Point { has $!x is ro = 1 ; } RAW class Point { has $!x is ro = 1; } TIDIED run_test( <<'RAW', <<'TIDIED', 'Class with method', '', ); class Point { has $!x; method set_x($x) { $!x = $x; } } sub name3 {} RAW class Point { has $!x; method set_x ($x) { $!x = $x; } } sub name3 { } TIDIED run_test( <<'RAW', <<'TIDIED', 'Multipart class', '', ); class A::Point { has $!x is ro = 1 ; } RAW class A::Point { has $!x is ro = 1; } TIDIED done_testing; pod.t000644000765000024 125114005564544 16614 0ustar00mgrimesstaff000000000000Perl-Tidy-Sweetened-1.18/xt#!/usr/bin/env perl # Test that the syntax of our POD documentation is valid use strict; BEGIN { $| = 1; $^W = 1; } my @MODULES = ( 'Pod::Simple 3.07', 'Test::Pod 1.26', ); # Don't run tests during end-user installs use Test::More; # plan( skip_all => 'Author tests not required for installation' ) # unless ( $ENV{RELEASE_TESTING} or $ENV{AUTOMATED_TESTING} ); # Load the testing modules foreach my $MODULE (@MODULES) { eval "use $MODULE"; if ($@) { $ENV{RELEASE_TESTING} ? die("Failed to load required release-testing module $MODULE") : plan( skip_all => "$MODULE not available for testing" ); } } all_pod_files_ok(); 1; fixme.t000644000765000024 120114005564544 17135 0ustar00mgrimesstaff000000000000Perl-Tidy-Sweetened-1.18/xt#!/usr/bin/env perl # Check source files for FIXME statements use strict; BEGIN { $| = 1; $^W = 1; } my @MODULES = ( 'Test::Fixme 0.04', ); # Don't run tests during end-user installs use Test::More; # plan( skip_all => 'Author tests not required for installation' ) # unless ( $ENV{RELEASE_TESTING} or $ENV{AUTOMATED_TESTING} ); # Load the testing modules foreach my $MODULE (@MODULES) { eval "use $MODULE"; if ($@) { $ENV{RELEASE_TESTING} ? die("Failed to load required release-testing module $MODULE") : plan( skip_all => "$MODULE not available for testing" ); } } run_tests(); 1; annon-func.t000644000765000024 121614005564544 17705 0ustar00mgrimesstaff000000000000Perl-Tidy-Sweetened-1.18/tuse lib 't/lib'; use Test::More; use TidierTests; run_test( <<'RAW', <<'TIDIED', 'Annoymous func (GH#4)', '1', ); my $foo = func ($x,:$y) { $self->xyzzy($x,$y) }; RAW my $foo = func ($x,:$y) { $self->xyzzy( $x, $y ) }; TIDIED run_test( <<'RAW', <<'TIDIED', 'Annoymous func (GH#4)', '1', ); my $foo = { bar => 1, baz => func ($x,:$y) { $self->xyzzy($x,$y) } }; RAW my $foo = { bar => 1, baz => func ($x,:$y) { $self->xyzzy($x, $y) } }; TIDIED run_test( <<'RAW', <<'TIDIED', 'Annoymous sub', '', ); my $foo = sub ( $x, $y ){ $self->xyzzy( $x,$y ) }; RAW my $foo = sub ( $x, $y ) { $self->xyzzy( $x, $y ); }; TIDIED done_testing; moosex-method-signatures.t000644000765000024 320414005564544 22614 0ustar00mgrimesstaff000000000000Perl-Tidy-Sweetened-1.18/tuse lib 't/lib'; use Test::More; use TidierTests; run_test( <<'RAW', <<'TIDIED', 'Simple method usage', '', ); method name1{ } sub name2{ } RAW method name1 { } sub name2 { } TIDIED run_test( <<'RAW', <<'TIDIED', 'Method with signature', '', ); method name1 (class: $that) { } method name2( :$arg1, :$arg2 ){ } sub name3 {} RAW method name1 (class: $that) { } method name2 ( :$arg1, :$arg2 ) { } sub name3 { } TIDIED run_test( <<'RAW', <<'TIDIED', 'With paramater typing', '', ); method morning (Str $name) { $self->say("Hi ${name}!"); } RAW method morning (Str $name) { $self->say("Hi ${name}!"); } TIDIED run_test( <<'RAW', <<'TIDIED', 'With params with constraints', '', ); method hello (:$age where { $_ > 0 }) { } RAW method hello (:$age where { $_ > 0 }) { } TIDIED run_test( <<'RAW', <<'TIDIED', 'Multiple line signatures', '', ); method name1 (Str $bar, Int $foo where { $_ > 0 } ) { } RAW method name1 (Str $bar, Int $foo where { $_ > 0 } ) { } TIDIED run_test( <<'RAW', <<'TIDIED', 'Multiple line signatures w/ comment ', '', ); method name1 (Str $bar, Int $foo where { $_ > 0 } ) { # Fun stuff } RAW method name1 (Str $bar, Int $foo where { $_ > 0 } ) { # Fun stuff } TIDIED run_test( <<'RAW', <<'TIDIED', 'RT#85076 - handle returns() with signature ', '', ); method foo ( File :$file! ) returns(Bool) { } RAW method foo ( File :$file! ) returns(Bool) { } TIDIED run_test( <<'RAW', <<'TIDIED', 'RT#85076 - handle returns()', '', ); method foo returns (Bool) { } RAW method foo returns (Bool) { } TIDIED done_testing; critic.t000644000765000024 65214005564544 17273 0ustar00mgrimesstaff000000000000Perl-Tidy-Sweetened-1.18/xtuse strict; use warnings; use Test::More; use File::Spec; # plan( skip_all => 'Author test. Set TEST_AUTHOR to a true value to run.' ) # unless $ENV{TEST_AUTHOR}; eval { require Test::Perl::Critic; }; plan( skip_all => ' Test::Perl::Critic required to criticise code ' ) if $@; my $rcfile = File::Spec->catfile( 'xt', 'perlcriticrc' ); Test::Perl::Critic->import( -profile => $rcfile, -severity => 3 ); all_critic_ok(); basic.t000644000765000024 30114005564544 16676 0ustar00mgrimesstaff000000000000Perl-Tidy-Sweetened-1.18/tuse lib 't/lib'; use Test::More; use TidierTests; run_test( <<'RAW', <<'TIDIED', 'Normal sub usage', '', ); sub name1 { } sub name2 { } RAW sub name1 { } sub name2 { } TIDIED done_testing; MYMETA.json000644000765000024 251314005564544 35634 0ustar00mgrimesstaff000000000000Perl-Tidy-Sweetened-1.18/ci/local-docker/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Test-Differences-0.64{ "abstract" : "Test strings and data structures and show differences if not ok", "author" : [ "David Cantrell " ], "dynamic_config" : 0, "generated_by" : "ExtUtils::MakeMaker version 7.0401, CPAN::Meta::Converter version 2.150001, CPAN::Meta::Converter version 2.150005", "license" : [ "unknown" ], "meta-spec" : { "url" : "http://search.cpan.org/perldoc?CPAN::Meta::Spec", "version" : "2" }, "name" : "Test-Differences", "no_index" : { "directory" : [ "t", "inc" ] }, "prereqs" : { "build" : { "requires" : { "ExtUtils::MakeMaker" : "0" } }, "configure" : { "requires" : { "ExtUtils::MakeMaker" : "0" } }, "runtime" : { "requires" : { "Capture::Tiny" : "0.24", "Data::Dumper" : "2.126", "Test::More" : "0.88", "Text::Diff" : "1.43" } } }, "release_status" : "stable", "resources" : { "bugtracker" : { "web" : "https://github.com/Ovid/Test-Differences/issues" }, "repository" : { "url" : "https://github.com/Ovid/Test-Differences" } }, "version" : "0.64", "x_serialization_backend" : "JSON::PP version 2.27300_01" } Sweetened.pm000644000765000024 1410314005564544 22074 0ustar00mgrimesstaff000000000000Perl-Tidy-Sweetened-1.18/lib/Perl/Tidypackage Perl::Tidy::Sweetened; # ABSTRACT: Tweaks to Perl::Tidy to support some syntactic sugar use 5.010; use strict; use warnings; use Perl::Tidy qw(); our $VERSION = '1.18'; use Perl::Tidy::Sweetened::Pluggable; use Perl::Tidy::Sweetened::Keyword::Block; use Perl::Tidy::Sweetened::Variable::Twigils; our $plugins = Perl::Tidy::Sweetened::Pluggable->new(); # Create a subroutine filter for: # sub foo ($i, $j) {} $plugins->add_filter( Perl::Tidy::Sweetened::Keyword::Block->new( keyword => 'sub', marker => 'SUB', replacement => 'sub', clauses => ['PAREN'], ) ); # Create a subroutine filter for: # func foo (Int $i) returns (Bool) {} # where both the parameter list and the returns type are optional $plugins->add_filter( Perl::Tidy::Sweetened::Keyword::Block->new( keyword => 'func', marker => 'FUNC', replacement => 'sub', clauses => [ 'PAREN?', '(returns \s* PAREN)?' ], ) ); # Create a subroutine filter for: # fun foo (Int $i) {} # where the parameter list is optional $plugins->add_filter( Perl::Tidy::Sweetened::Keyword::Block->new( keyword => 'fun', marker => 'FUN', replacement => 'sub', clauses => ['PAREN?'], ) ); # Create a subroutine filter for: # method foo (Int $i) returns (Bool) {} # where both the parameter list and the returns type are optional $plugins->add_filter( Perl::Tidy::Sweetened::Keyword::Block->new( keyword => 'method', marker => 'METHOD', replacement => 'sub', clauses => [ 'PAREN?', '(returns \s* PAREN)?', '(\b(?:is|but|does) \s+ \w+)?' ], ) ); # Create a subroutine filter for: # around foo (Int $i) returns (Bool) {} # before foo (Int $i) returns (Bool) {} # after foo (Int $i) returns (Bool) {} # where both the parameter list and the returns type are optional $plugins->add_filter( Perl::Tidy::Sweetened::Keyword::Block->new( keyword => $_, marker => uc($_), replacement => 'sub', clauses => ['PAREN?'], ) ) for qw(around before after); # Create a subroutine filter for: # classmethod foo (Int $i) {} # where the parameter list is optional $plugins->add_filter( Perl::Tidy::Sweetened::Keyword::Block->new( keyword => 'classmethod', marker => 'CLASSMETHOD', replacement => 'sub', clauses => ['PAREN?'], ) ); # Create a subroutine filter for: # objectmethod foo (Int $i) {} # where the parameter list is optional $plugins->add_filter( Perl::Tidy::Sweetened::Keyword::Block->new( keyword => 'objectmethod', marker => 'OBJECTMETHOD', replacement => 'sub', clauses => ['PAREN?'], ) ); # Create a subroutine filter for: # class Foo extends Bar { # class Foo with Bar, Baz { # where both the extends and with are optional $plugins->add_filter( Perl::Tidy::Sweetened::Keyword::Block->new( keyword => 'class', marker => 'CLASS', replacement => 'package', clauses => [ '(with(\s+\w+)*)?', '(extends \s+ [\w|:]+)?', '(is(\s+\w+)*)?', ], ) ); # Create a twigil filter for: # $!variable_name $plugins->add_filter( Perl::Tidy::Sweetened::Variable::Twigils->new( twigil => '$!', marker => 'TWG_BANG', ) ); sub perltidy { my %args = @_; $plugins->add_args( $args{argv} ); return Perl::Tidy::perltidy( prefilter => sub { $plugins->prefilter( $_[0] ) }, postfilter => sub { $plugins->postfilter( $_[0] ) }, @_ ); } 1; __END__ =pod =head1 NAME Perl::Tidy::Sweetened - Tweaks to Perl::Tidy to support some syntactic sugar =head1 VERSION version 1.18 =head1 STATUS =for html Build Status CPAN version =head1 DESCRIPTION There are a number of modules on CPAN that allow users to write their classes with a more "modern" syntax. These tools eliminate the need to shift off C<$self>, can support type checking and offer other improvements. Unfortunately, they can break the support tools that the Perl community has come to rely on. This module attempts to work around those issues. The module uses L's C and C hooks to support C and C keywords, including the (possibly multi-line) parameter lists. This is quite an ugly hack, but it is the recommended method of supporting these new keywords (see the 2010-12-17 entry in the Perl::Tidy L file). B C attempts to support the syntax outlined in the following modules, but most of the new syntax styles should work: =over =item * p5-mop =item * Method::Signatures::Simple =item * MooseX::Method::Signatures =item * MooseX::Declare =item * Moops =item * perl 5.20 signatures =item * Kavorka =back =head1 THANKS The idea and much of original code taken from Jonathan Swartz' L. =head1 SEE ALSO L =head1 AUTHOR Mark Grimes Emgrimes@cpan.orgE =head1 SOURCE Source repository is at L. =head1 BUGS Please report any bugs or feature requests on the bugtracker website L When submitting a bug or request, please include a test-file or a patch to an existing test-file that illustrates the bug or desired feature. =head1 COPYRIGHT AND LICENSE This software is copyright (c) 2021 by Mark Grimes Emgrimes@cpan.orgE. This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. =cut MYMETA.json000644000765000024 6557614005564544 35540 0ustar00mgrimesstaff000000000000Perl-Tidy-Sweetened-1.18/ci/local-docker/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Exception-Class-1.40{ "abstract" : "A module that allows you to declare real exception classes in Perl", "author" : [ "Dave Rolsky " ], "dynamic_config" : 0, "generated_by" : "Dist::Zilla version 5.043, CPAN::Meta::Converter version 2.150005", "license" : [ "perl_5" ], "meta-spec" : { "url" : "http://search.cpan.org/perldoc?CPAN::Meta::Spec", "version" : "2" }, "name" : "Exception-Class", "prereqs" : { "build" : { "requires" : { "ExtUtils::MakeMaker" : "0" } }, "configure" : { "requires" : { "ExtUtils::MakeMaker" : "0" } }, "develop" : { "requires" : { "Code::TidyAll" : "0.24", "File::Spec" : "0", "IO::Handle" : "0", "IPC::Open3" : "0", "Perl::Critic" : "1.123", "Perl::Tidy" : "20140711", "Pod::Coverage::TrustPod" : "0", "Test::CPAN::Changes" : "0.19", "Test::Code::TidyAll" : "0.24", "Test::EOL" : "0", "Test::Mojibake" : "0", "Test::More" : "0.88", "Test::NoTabs" : "0", "Test::Pod" : "1.41", "Test::Pod::Coverage" : "1.08", "Test::Pod::LinkCheck" : "0", "Test::Pod::No404s" : "0", "Test::Spelling" : "0.12", "Test::Version" : "1" } }, "runtime" : { "requires" : { "Class::Data::Inheritable" : "0.02", "Devel::StackTrace" : "2.00", "Scalar::Util" : "0", "base" : "0", "overload" : "0", "perl" : "5.008001", "strict" : "0", "warnings" : "0" } }, "test" : { "recommends" : { "CPAN::Meta" : "2.120900" }, "requires" : { "ExtUtils::MakeMaker" : "0", "File::Spec" : "0", "Test::More" : "0.96", "vars" : "0" } } }, "provides" : { "Exception::Class" : { "file" : "lib/Exception/Class.pm", "version" : "1.40" }, "Exception::Class::Base" : { "file" : "lib/Exception/Class/Base.pm", "version" : "1.40" } }, "release_status" : "stable", "resources" : { "bugtracker" : { "mailto" : "bug-exception-class@rt.cpan.org", "web" : "http://rt.cpan.org/Public/Dist/Display.html?Name=Exception-Class" }, "homepage" : "http://metacpan.org/release/Exception-Class", "repository" : { "type" : "git", "url" : "git://github.com/autarch/Exception-Class.git", "web" : "https://github.com/autarch/Exception-Class" } }, "version" : "1.40", "x_Dist_Zilla" : { "perl" : { "version" : "5.022001" }, "plugins" : [ { "class" : "Dist::Zilla::Plugin::MakeMaker", "config" : { "Dist::Zilla::Role::TestRunner" : { "default_jobs" : 1 } }, "name" : "@DROLSKY/MakeMaker", "version" : "5.043" }, { "class" : "Dist::Zilla::Plugin::Authority", "name" : "@DROLSKY/Authority", "version" : "1.009" }, { "class" : "Dist::Zilla::Plugin::AutoPrereqs", "name" : "@DROLSKY/AutoPrereqs", "version" : "5.043" }, { "class" : "Dist::Zilla::Plugin::CopyFilesFromBuild", "name" : "@DROLSKY/CopyFilesFromBuild", "version" : "0.151680" }, { "class" : "Dist::Zilla::Plugin::Git::GatherDir", "config" : { "Dist::Zilla::Plugin::GatherDir" : { "exclude_filename" : [ "Build.PL", "LICENSE", "Makefile.PL", "README.md", "cpanfile" ], "exclude_match" : [], "follow_symlinks" : 0, "include_dotfiles" : 0, "prefix" : "", "prune_directory" : [], "root" : "." }, "Dist::Zilla::Plugin::Git::GatherDir" : { "include_untracked" : 0 } }, "name" : "@DROLSKY/Git::GatherDir", "version" : "2.036" }, { "class" : "Dist::Zilla::Plugin::GitHub::Meta", "name" : "@DROLSKY/GitHub::Meta", "version" : "0.42" }, { "class" : "Dist::Zilla::Plugin::GitHub::Update", "config" : { "Dist::Zilla::Plugin::GitHub::Update" : { "metacpan" : 1 } }, "name" : "@DROLSKY/GitHub::Update", "version" : "0.42" }, { "class" : "Dist::Zilla::Plugin::MetaResources", "name" : "@DROLSKY/MetaResources", "version" : "5.043" }, { "class" : "Dist::Zilla::Plugin::MetaProvides::Package", "config" : { "Dist::Zilla::Plugin::MetaProvides::Package" : { "finder_objects" : [ { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : "@DROLSKY/MetaProvides::Package/AUTOVIV/:InstallModulesPM", "version" : "5.043" } ] }, "Dist::Zilla::Role::MetaProvider::Provider" : { "inherit_missing" : "1", "inherit_version" : "1", "meta_noindex" : "1" } }, "name" : "@DROLSKY/MetaProvides::Package", "version" : "2.003001" }, { "class" : "Dist::Zilla::Plugin::NextRelease", "name" : "@DROLSKY/NextRelease", "version" : "5.043" }, { "class" : "Dist::Zilla::Plugin::Prereqs", "config" : { "Dist::Zilla::Plugin::Prereqs" : { "phase" : "test", "type" : "requires" } }, "name" : "@DROLSKY/Test::More with subtest", "version" : "5.043" }, { "class" : "Dist::Zilla::Plugin::Prereqs", "config" : { "Dist::Zilla::Plugin::Prereqs" : { "phase" : "develop", "type" : "requires" } }, "name" : "@DROLSKY/Modules for use with tidyall", "version" : "5.043" }, { "class" : "Dist::Zilla::Plugin::PromptIfStale", "config" : { "Dist::Zilla::Plugin::PromptIfStale" : { "check_all_plugins" : 1, "check_all_prereqs" : 1, "modules" : [], "phase" : "release", "skip" : [ "Dist::Zilla::Plugin::DROLSKY::Contributors", "Dist::Zilla::Plugin::DROLSKY::License", "Dist::Zilla::Plugin::DROLSKY::TidyAll", "Dist::Zilla::Plugin::DROLSKY::VersionProvider" ] } }, "name" : "@DROLSKY/PromptIfStale", "version" : "0.047" }, { "class" : "Dist::Zilla::Plugin::ReadmeAnyFromPod", "config" : { "Dist::Zilla::Role::FileWatcher" : { "version" : "0.006" } }, "name" : "@DROLSKY/README.md in build", "version" : "0.150250" }, { "class" : "Dist::Zilla::Plugin::ReadmeAnyFromPod", "config" : { "Dist::Zilla::Role::FileWatcher" : { "version" : "0.006" } }, "name" : "@DROLSKY/README.md in root", "version" : "0.150250" }, { "class" : "Dist::Zilla::Plugin::Test::Pod::Coverage::Configurable", "name" : "@DROLSKY/Test::Pod::Coverage::Configurable", "version" : "0.05" }, { "class" : "Dist::Zilla::Plugin::Test::PodSpelling", "config" : { "Dist::Zilla::Plugin::Test::PodSpelling" : { "directories" : [], "spell_cmd" : "", "stopwords" : [ "Arun", "CPAN", "DROLSKY", "DROLSKY's", "Kumar's", "PayPal", "PayPal", "Rolsky", "Rolsky", "Rolsky's", "Uncatchable", "automagic", "egid", "esque", "isa", "namespace", "param", "refcount", "rethrow", "runtime", "stacktrace", "stringifies", "subclasses", "uncatchable" ], "wordlist" : "Pod::Wordlist" } }, "name" : "@DROLSKY/Test::PodSpelling", "version" : "2.007000" }, { "class" : "Dist::Zilla::Plugin::Test::ReportPrereqs", "name" : "@DROLSKY/Test::ReportPrereqs", "version" : "0.021" }, { "class" : "Dist::Zilla::Plugin::Test::Version", "name" : "@DROLSKY/Test::Version", "version" : "1.05" }, { "class" : "Dist::Zilla::Plugin::ManifestSkip", "name" : "@DROLSKY/ManifestSkip", "version" : "5.043" }, { "class" : "Dist::Zilla::Plugin::MetaYAML", "name" : "@DROLSKY/MetaYAML", "version" : "5.043" }, { "class" : "Dist::Zilla::Plugin::License", "name" : "@DROLSKY/License", "version" : "5.043" }, { "class" : "Dist::Zilla::Plugin::ExtraTests", "name" : "@DROLSKY/ExtraTests", "version" : "5.043" }, { "class" : "Dist::Zilla::Plugin::ExecDir", "name" : "@DROLSKY/ExecDir", "version" : "5.043" }, { "class" : "Dist::Zilla::Plugin::ShareDir", "name" : "@DROLSKY/ShareDir", "version" : "5.043" }, { "class" : "Dist::Zilla::Plugin::Manifest", "name" : "@DROLSKY/Manifest", "version" : "5.043" }, { "class" : "Dist::Zilla::Plugin::CheckVersionIncrement", "name" : "@DROLSKY/CheckVersionIncrement", "version" : "0.121750" }, { "class" : "Dist::Zilla::Plugin::TestRelease", "name" : "@DROLSKY/TestRelease", "version" : "5.043" }, { "class" : "Dist::Zilla::Plugin::ConfirmRelease", "name" : "@DROLSKY/ConfirmRelease", "version" : "5.043" }, { "class" : "Dist::Zilla::Plugin::UploadToCPAN", "name" : "@DROLSKY/UploadToCPAN", "version" : "5.043" }, { "class" : "Dist::Zilla::Plugin::CheckPrereqsIndexed", "name" : "@DROLSKY/CheckPrereqsIndexed", "version" : "0.017" }, { "class" : "Dist::Zilla::Plugin::CPANFile", "name" : "@DROLSKY/CPANFile", "version" : "5.043" }, { "class" : "Dist::Zilla::Plugin::DROLSKY::Contributors", "name" : "@DROLSKY/DROLSKY::Contributors", "version" : "0.40" }, { "class" : "Dist::Zilla::Plugin::DROLSKY::License", "name" : "@DROLSKY/DROLSKY::License", "version" : "0.40" }, { "class" : "Dist::Zilla::Plugin::DROLSKY::TidyAll", "name" : "@DROLSKY/DROLSKY::TidyAll", "version" : "0.40" }, { "class" : "Dist::Zilla::Plugin::DROLSKY::VersionProvider", "name" : "@DROLSKY/DROLSKY::VersionProvider", "version" : "0.40" }, { "class" : "Dist::Zilla::Plugin::DROLSKY::Git::CheckFor::CorrectBranch", "config" : { "Dist::Zilla::Role::Git::Repo" : { "repo_root" : "." } }, "name" : "@DROLSKY/DROLSKY::Git::CheckFor::CorrectBranch", "version" : "0.40" }, { "class" : "Dist::Zilla::Plugin::Git::CheckFor::MergeConflicts", "config" : { "Dist::Zilla::Role::Git::Repo" : { "repo_root" : "." } }, "name" : "@DROLSKY/Git::CheckFor::MergeConflicts", "version" : "0.013" }, { "class" : "Dist::Zilla::Plugin::Git::Contributors", "config" : { "Dist::Zilla::Plugin::Git::Contributors" : { "include_authors" : 0, "include_releaser" : 1, "order_by" : "name", "paths" : [ "." ] } }, "name" : "@DROLSKY/Git::Contributors", "version" : "0.018" }, { "class" : "Dist::Zilla::Plugin::InstallGuide", "name" : "@DROLSKY/InstallGuide", "version" : "1.200006" }, { "class" : "Dist::Zilla::Plugin::Meta::Contributors", "name" : "@DROLSKY/Meta::Contributors", "version" : "0.002" }, { "class" : "Dist::Zilla::Plugin::MetaConfig", "name" : "@DROLSKY/MetaConfig", "version" : "5.043" }, { "class" : "Dist::Zilla::Plugin::MetaJSON", "name" : "@DROLSKY/MetaJSON", "version" : "5.043" }, { "class" : "Dist::Zilla::Plugin::SurgicalPodWeaver", "config" : { "Dist::Zilla::Plugin::PodWeaver" : { "finder" : [ ":InstallModules", ":ExecFiles" ], "plugins" : [ { "class" : "Pod::Weaver::Plugin::EnsurePod5", "name" : "@CorePrep/EnsurePod5", "version" : "4.012" }, { "class" : "Pod::Weaver::Plugin::H1Nester", "name" : "@CorePrep/H1Nester", "version" : "4.012" }, { "class" : "Pod::Weaver::Section::Name", "name" : "Name", "version" : "4.012" }, { "class" : "Pod::Weaver::Section::Version", "name" : "Version", "version" : "4.012" }, { "class" : "Pod::Weaver::Section::Region", "name" : "prelude", "version" : "4.012" }, { "class" : "Pod::Weaver::Section::Generic", "name" : "SYNOPSIS", "version" : "4.012" }, { "class" : "Pod::Weaver::Section::Generic", "name" : "DESCRIPTION", "version" : "4.012" }, { "class" : "Pod::Weaver::Section::Leftovers", "name" : "Leftovers", "version" : "4.012" }, { "class" : "Pod::Weaver::Section::Region", "name" : "postlude", "version" : "4.012" }, { "class" : "Pod::Weaver::Section::Authors", "name" : "Authors", "version" : "4.012" }, { "class" : "Pod::Weaver::Section::Contributors", "name" : "Contributors", "version" : "0.009" }, { "class" : "Pod::Weaver::Section::Legal", "name" : "Legal", "version" : "4.012" } ] } }, "name" : "@DROLSKY/SurgicalPodWeaver", "version" : "0.0023" }, { "class" : "Dist::Zilla::Plugin::MojibakeTests", "name" : "@DROLSKY/MojibakeTests", "version" : "0.8" }, { "class" : "Dist::Zilla::Plugin::PodSyntaxTests", "name" : "@DROLSKY/PodSyntaxTests", "version" : "5.043" }, { "class" : "Dist::Zilla::Plugin::Test::CPAN::Changes", "name" : "@DROLSKY/Test::CPAN::Changes", "version" : "0.009" }, { "class" : "Dist::Zilla::Plugin::Test::EOL", "config" : { "Dist::Zilla::Plugin::Test::EOL" : { "filename" : "xt/author/eol.t", "finder" : [ ":InstallModules", ":ExecFiles", ":TestFiles" ], "trailing_whitespace" : "1" } }, "name" : "@DROLSKY/Test::EOL", "version" : "0.18" }, { "class" : "Dist::Zilla::Plugin::Test::NoTabs", "config" : { "Dist::Zilla::Plugin::Test::NoTabs" : { "filename" : "xt/author/no-tabs.t", "finder" : [ ":InstallModules", ":ExecFiles", ":TestFiles" ] } }, "name" : "@DROLSKY/Test::NoTabs", "version" : "0.15" }, { "class" : "Dist::Zilla::Plugin::Test::Portability", "name" : "@DROLSKY/Test::Portability", "version" : "2.000006" }, { "class" : "Dist::Zilla::Plugin::Test::TidyAll", "name" : "@DROLSKY/Test::TidyAll", "version" : "0.01" }, { "class" : "Dist::Zilla::Plugin::Test::Compile", "config" : { "Dist::Zilla::Plugin::Test::Compile" : { "bail_out_on_fail" : "0", "fail_on_warning" : "author", "fake_home" : 0, "filename" : "xt/author/00-compile.t", "module_finder" : [ ":InstallModules" ], "needs_display" : 0, "phase" : "develop", "script_finder" : [ ":PerlExecFiles" ], "skips" : [] } }, "name" : "@DROLSKY/Test::Compile", "version" : "2.054" }, { "class" : "Dist::Zilla::Plugin::Git::Check", "config" : { "Dist::Zilla::Plugin::Git::Check" : { "untracked_files" : "die" }, "Dist::Zilla::Role::Git::DirtyFiles" : { "allow_dirty" : [ "Build.PL", "CONTRIBUTING.md", "Changes", "LICENSE", "Makefile.PL", "README.md", "cpanfile" ], "allow_dirty_match" : [], "changelog" : "Changes" }, "Dist::Zilla::Role::Git::Repo" : { "repo_root" : "." } }, "name" : "@DROLSKY/Git::Check", "version" : "2.036" }, { "class" : "Dist::Zilla::Plugin::Git::Commit", "config" : { "Dist::Zilla::Plugin::Git::Commit" : { "add_files_in" : [], "commit_msg" : "v%v%n%n%c" }, "Dist::Zilla::Role::Git::DirtyFiles" : { "allow_dirty" : [ "Build.PL", "CONTRIBUTING.md", "Changes", "LICENSE", "Makefile.PL", "README.md", "cpanfile" ], "allow_dirty_match" : [], "changelog" : "Changes" }, "Dist::Zilla::Role::Git::Repo" : { "repo_root" : "." }, "Dist::Zilla::Role::Git::StringFormatter" : { "time_zone" : "local" } }, "name" : "@DROLSKY/commit generated files", "version" : "2.036" }, { "class" : "Dist::Zilla::Plugin::Git::Tag", "config" : { "Dist::Zilla::Plugin::Git::Tag" : { "branch" : null, "changelog" : "Changes", "signed" : 0, "tag" : "v1.40", "tag_format" : "v%v", "tag_message" : "v%v" }, "Dist::Zilla::Role::Git::Repo" : { "repo_root" : "." }, "Dist::Zilla::Role::Git::StringFormatter" : { "time_zone" : "local" } }, "name" : "@DROLSKY/Git::Tag", "version" : "2.036" }, { "class" : "Dist::Zilla::Plugin::Git::Push", "config" : { "Dist::Zilla::Plugin::Git::Push" : { "push_to" : [ "origin" ], "remotes_must_exist" : 1 }, "Dist::Zilla::Role::Git::Repo" : { "repo_root" : "." } }, "name" : "@DROLSKY/Git::Push", "version" : "2.036" }, { "class" : "Dist::Zilla::Plugin::BumpVersionAfterRelease", "config" : { "Dist::Zilla::Plugin::BumpVersionAfterRelease" : { "finders" : [ ":ExecFiles", ":InstallModules" ], "global" : 0, "munge_makefile_pl" : 1 } }, "name" : "@DROLSKY/BumpVersionAfterRelease", "version" : "0.013" }, { "class" : "Dist::Zilla::Plugin::Git::Commit", "config" : { "Dist::Zilla::Plugin::Git::Commit" : { "add_files_in" : [], "commit_msg" : "Bump version after release" }, "Dist::Zilla::Role::Git::DirtyFiles" : { "allow_dirty" : [ "Changes", "dist.ini" ], "allow_dirty_match" : [ "(?^:.+)" ], "changelog" : "Changes" }, "Dist::Zilla::Role::Git::Repo" : { "repo_root" : "." }, "Dist::Zilla::Role::Git::StringFormatter" : { "time_zone" : "local" } }, "name" : "@DROLSKY/commit version bump", "version" : "2.036" }, { "class" : "Dist::Zilla::Plugin::Git::Push", "config" : { "Dist::Zilla::Plugin::Git::Push" : { "push_to" : [ "origin" ], "remotes_must_exist" : 1 }, "Dist::Zilla::Role::Git::Repo" : { "repo_root" : "." } }, "name" : "@DROLSKY/push version bump", "version" : "2.036" }, { "class" : "Dist::Zilla::Plugin::Test::Pod::LinkCheck", "name" : "@DROLSKY/Test::Pod::LinkCheck", "version" : "1.002" }, { "class" : "Dist::Zilla::Plugin::Test::Pod::No404s", "name" : "@DROLSKY/Test::Pod::No404s", "version" : "1.002" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":InstallModules", "version" : "5.043" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":IncModules", "version" : "5.043" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":TestFiles", "version" : "5.043" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":ExtraTestFiles", "version" : "5.043" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":ExecFiles", "version" : "5.043" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":PerlExecFiles", "version" : "5.043" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":ShareFiles", "version" : "5.043" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":MainModule", "version" : "5.043" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":AllFiles", "version" : "5.043" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":NoFiles", "version" : "5.043" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : "@DROLSKY/MetaProvides::Package/AUTOVIV/:InstallModulesPM", "version" : "5.043" } ], "zilla" : { "class" : "Dist::Zilla::Dist::Builder", "config" : { "is_trial" : "0" }, "version" : "5.043" } }, "x_authority" : "cpan:DROLSKY", "x_contributors" : [ "Ricardo Signes " ], "x_serialization_backend" : "JSON::PP version 2.27300_01" } MANIFEST000644000765000024 362714005564544 16354 0ustar00mgrimesstaff000000000000Perl-Tidy-Sweetened-1.18Build.PL Changes LICENSE MANIFEST META.json META.yml README TODO ci/local-docker/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Algorithm-Diff-1.1903/MYMETA.json ci/local-docker/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Capture-Tiny-0.36/MYMETA.json ci/local-docker/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Class-Data-Inheritable-0.08/MYMETA.json ci/local-docker/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Devel-StackTrace-2.01/MYMETA.json ci/local-docker/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Exception-Class-1.40/MYMETA.json ci/local-docker/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Perl-Tidy-20210111/MYMETA.json ci/local-docker/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Sub-Uplevel-0.25/MYMETA.json ci/local-docker/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Test-Deep-1.120/MYMETA.json ci/local-docker/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Test-Differences-0.64/MYMETA.json ci/local-docker/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Test-Exception-0.43/MYMETA.json ci/local-docker/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Test-Most-0.34/MYMETA.json ci/local-docker/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Test-Warn-0.30/MYMETA.json ci/local-docker/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Text-Diff-1.44/MYMETA.json cpanfile lib/Perl/Tidy/Sweet.pm lib/Perl/Tidy/Sweetened.pm lib/Perl/Tidy/Sweetened/Keyword/Block.pm lib/Perl/Tidy/Sweetened/Pluggable.pm lib/Perl/Tidy/Sweetened/Variable/Twigils.pm script/perltidier script/perltidy-sweet t/00-version.t t/annon-func.t t/args-sbl.t t/basic.t t/bugs.t t/csc.t t/kavorka.t t/lib/TidierTests.pm t/method-signature-simple.t t/moops.t t/moosex-declare.t t/moosex-method-signatures.t t/moosex-role-parameterized.t t/p5-mop.t t/perl-signatures.t test-all versions xt/check-changes.t xt/critic.t xt/fixme.t xt/hasversion.t xt/kwalitee.t xt/manifest.t xt/meta.t xt/minimumversion.t xt/perlcriticrc xt/pod-coverage.t xt/pod-spelling.t xt/pod.t pod-spelling.t000644000765000024 124314005564544 20430 0ustar00mgrimesstaff000000000000Perl-Tidy-Sweetened-1.18/xt#!/usr/bin/env perl # Test that the syntax of our POD documentation is valid use strict; BEGIN { $| = 1; $^W = 1; } my @MODULES = ( 'Test::Spelling 0.20', ); # Don't run tests during end-user installs use Test::More; # plan( skip_all => 'Author tests not required for installation' ) # unless ( $ENV{RELEASE_TESTING} or $ENV{AUTOMATED_TESTING} ); # Load the testing modules foreach my $MODULE (@MODULES) { eval "use $MODULE"; if ($@) { $ENV{RELEASE_TESTING} ? die("Failed to load required release-testing module $MODULE") : plan( skip_all => "$MODULE not available for testing" ); } } all_pod_files_spelling_ok(); 1; moosex-role-parameterized.t000644000765000024 32614005564544 22727 0ustar00mgrimesstaff000000000000Perl-Tidy-Sweetened-1.18/tuse lib 't/lib'; use Test::More; use TidierTests; run_test( <<'RAW', <<'TIDIED', 'Normal sub usage', '', ); role { method _test => sub { }; }; RAW role { method _test => sub { }; }; TIDIED done_testing; TODO000644000765000024 33714005564544 15666 0ustar00mgrimesstaff000000000000Perl-Tidy-Sweetened-1.18TODO list for Perl::Tidy::Sweetend - Ensure sub name is unique (so we don't erroneously replace a sub). - Convert params/clauses to something that tidy can handle (ie, prototypes), then convert back - Class definitions? test-all000644000765000024 107314005564544 16664 0ustar00mgrimesstaff000000000000Perl-Tidy-Sweetened-1.18#!/bin/bash releases="$( cat versions )" [ -d local/cache/SHANCOCK ] || mkdir -p local/cache/SHANCOCK for rel in $releases ; do if [ ! -e local/cache/${rel}.tar.gz ] ; then echo Fetching $rel curl -q http://cpan.metacpan.org/authors/id/S/SH/SHANCOCK/Perl-Tidy-${rel}.tar.gz \ > local/cache/${rel}.tar.gz fi done for rel in $releases ; do echo echo echo Testing $rel cpanm -l local -n local/cache/${rel}.tar.gz prove -Q -lmcr -It/lib t || exit done # reinsall the most recent version cpanm -l local -n Perl::Tidy hasversion.t000644000765000024 122314005564544 20212 0ustar00mgrimesstaff000000000000Perl-Tidy-Sweetened-1.18/xt#!/usr/bin/env perl # Test that all modules have a version number use strict; BEGIN { $| = 1; $^W = 1; } my @MODULES = ( 'Test::HasVersion 0.012', ); # Don't run tests during end-user installs use Test::More; # plan( skip_all => 'Author tests not required for installation' ) # unless ( $ENV{RELEASE_TESTING} or $ENV{AUTOMATED_TESTING} ); # Load the testing modules foreach my $MODULE (@MODULES) { eval "use $MODULE"; if ($@) { $ENV{RELEASE_TESTING} ? die("Failed to load required release-testing module $MODULE") : plan( skip_all => "$MODULE not available for testing" ); } } all_pm_version_ok(); 1; MYMETA.json000644000765000024 212014005564544 34605 0ustar00mgrimesstaff000000000000Perl-Tidy-Sweetened-1.18/ci/local-docker/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Perl-Tidy-20210111{ "abstract" : "indent and reformat perl scripts", "author" : [ "Steve Hancock " ], "dynamic_config" : 0, "generated_by" : "ExtUtils::MakeMaker version 7.0401, CPAN::Meta::Converter version 2.150010, CPAN::Meta::Converter version 2.150005", "license" : [ "gpl_2" ], "meta-spec" : { "url" : "http://search.cpan.org/perldoc?CPAN::Meta::Spec", "version" : "2" }, "name" : "Perl-Tidy", "no_index" : { "directory" : [ "t", "inc" ] }, "prereqs" : { "build" : { "requires" : { "ExtUtils::MakeMaker" : "0" } }, "configure" : { "requires" : { "ExtUtils::MakeMaker" : "0" } } }, "release_status" : "stable", "resources" : { "repository" : { "type" : "git", "url" : "https://github.com/perltidy/perltidy.git", "web" : "https://github.com/perltidy/perltidy" } }, "version" : "20210111", "x_serialization_backend" : "JSON::PP version 2.27300_01" } pod-coverage.t000644000765000024 202514005564544 20405 0ustar00mgrimesstaff000000000000Perl-Tidy-Sweetened-1.18/xt#!/usr/bin/env perl # Ensure pod coverage in your distribution use strict; BEGIN { $| = 1; $^W = 1; } my @MODULES = ( 'Test::Pod::Coverage 1.08', "Pod::Coverage::TrustPod 0.10" ); # Don't run tests during end-user installs use Test::More; # plan( skip_all => 'Author tests not required for installation' ) # unless ( $ENV{RELEASE_TESTING} ); # Load the testing modules foreach my $MODULE (@MODULES) { eval "use $MODULE"; if ($@) { $ENV{RELEASE_TESTING} ? die("Failed to load required release-testing module $MODULE") : plan( skip_all => "$MODULE not available for testing" ); } } # Skip platform specific modules unless we are on that platform # Don't require any pod for Moose BUILD subs pod_coverage_ok( $_, { trustme => ['BUILD'], coverage_class => 'Pod::Coverage::TrustPod' } ) for grep { not( ( $^O ne 'linux' && $_ =~ /Linux$/ ) or ( $^O ne 'darwin' && $_ =~ /Mac$/ ) or ( $^O ne 'freebsd' && $_ =~ /FreeBSD$/ ) ) } all_modules(); done_testing; 1; kwalitee.t000644000765000024 57114005564544 17623 0ustar00mgrimesstaff000000000000Perl-Tidy-Sweetened-1.18/xtuse strict; use warnings; use Test::More; # plan( skip_all => 'Author test. Set TEST_AUTHOR to a true value to run.' ) # unless $ENV{TEST_AUTHOR}; eval { require Test::Kwalitee; Test::Kwalitee->import( tests => [qw( -no_symlinks )] ); unlink 'Debian_CPANTS.txt' if -e 'Debian_CPANTS.txt'; }; plan( skip_all => 'Test::Kwalitee not installed; skipping' ) if $@; MYMETA.json000644000765000024 304714005564544 34351 0ustar00mgrimesstaff000000000000Perl-Tidy-Sweetened-1.18/ci/local-docker/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Test-Deep-1.120{ "abstract" : "unknown", "author" : [ "Fergal Daly " ], "dynamic_config" : 0, "generated_by" : "ExtUtils::MakeMaker version 7.1, CPAN::Meta::Converter version 2.150005", "license" : [ "perl_5" ], "meta-spec" : { "url" : "http://search.cpan.org/perldoc?CPAN::Meta::Spec", "version" : "2" }, "name" : "Test-Deep", "no_index" : { "directory" : [ "t", "inc" ] }, "prereqs" : { "build" : { "requires" : { "ExtUtils::MakeMaker" : "0" } }, "configure" : { "requires" : { "ExtUtils::MakeMaker" : "0" } }, "runtime" : { "requires" : { "List::Util" : "1.09", "Scalar::Util" : "1.09", "Test::Builder" : "0" } }, "test" : { "requires" : { "Test::More" : "0.88", "Test::Tester" : "0.04" } } }, "release_status" : "stable", "resources" : { "bugtracker" : { "web" : "http://github.com/rjbs/Test-Deep/issues" }, "homepage" : "http://github.com/rjbs/Test-Deep/", "repository" : { "type" : "git", "url" : "https://github.com/rjbs/Test-Deep.git", "web" : "https://github.com/rjbs/Test-Deep" }, "x_IRC" : "irc://irc.perl.org/#perl-qa", "x_MailingList" : "http://lists.perl.org/list/perl-qa.html" }, "version" : "1.120", "x_serialization_backend" : "JSON::PP version 2.27300_01" } Changes000644000765000024 2300714005564544 16530 0ustar00mgrimesstaff000000000000Perl-Tidy-Sweetened-1.18Changes for Perl::Tidy::Sweetend 1.18 - Sun Jan 31 12:24:35 EST 2021 Fixes tests to handle more changes in spacing in Perl::Tidy versions [Only changes tests. No need to upgrade.] 1.17 - Sun Jan 24 11:36:21 EST 2021 Handles errors in closing sub comments when there are 10+ subs. Fixes GH#20. Thanks to @fpostma72 for the bug report and PR. Perl-Tidy-20200907 changed an indentation of side comments. This patch adjusts the tests. Fixes GH#18. Thanks to @ppisar for the bug report and PR. Respects the -cscp argument. [Upgrade recommended if you use closing sub comments.] 1.16 - Wed Apr 8 11:57:37 EDT 2020 Adds support for 'around/before/after' keywords (GH#17) Thanks to witoldwegner for the PR. [Upgrade recommended if you use these method modifiers.] 1.15 - Tue Aug 28 09:15:20 EDT 2018 Adds basic support for kavorka traits (is/does/but) (GH#16) Update the perl versions to test with travis (+5.28, +5.26, -5.21) Thanks to Peter Roberts (@pwr22) for the PR. (GH#16). [Upgrade recommended if you use Kavorka.] 1.14 - Wed Mar 28 17:36:19 EDT 2018 Adds support for Kavorka's basic keywords. Thanks to Peter Roberts (@pwr22) for the PR. (GH#13). [Upgrade recommended if you use Kavorka.] 1.13 - Thu May 18 12:47:46 EDT 2017 Adds support for closing side comments (GH#12) Thanks to Aaron Priven for the bug report [Upgrade recommended if you use the -csc flag.] 1.12 - Tue Oct 4 15:56:53 EDT 2016 Add support to extend classes with :: (e.g, Object::Person). Thanks to @pblaberge for the PR. [Upgrade recommended.] 1.11 - Fri Apr 15 09:29:03 EDT 2016 Sends Perl::Tidy errors during testing to a string instead of fs (GH#9) - By default Perl::Tidy writes a perltidy.ERR file when it encounters errors. Perl::Tidy::Sweetened tests remove the error file then check to see if it is created after each test. This leads to a race condition with running in parallel (ie, prove -j 9). This commit makes Perl::Tidy write errors to a string buffer instead. Thanks @shlomif for the bug report (GH#9). [Only changes tests. No need to upgrade.] 1.10 - Sun Mar 13 13:14:01 EDT 2016 Skips test that fails with Perl::Tidy 20160301 due to a Perl::Tidy bug - Adds test-all script to run against multiple versions of Perl::Tidy - Moves display of Perl::Tidy version to t/00-version.t Fixes typo in cpan badge URL [Only changes tests. No need to upgrade.] 1.09 - Fri Mar 11 21:27:42 EST 2016 Converts from Module::Build to Module::Built::Tiny and the mbtiny tool Adds perltidy-sweet script to distribution Fixes issues with badges [Optional upgrade] 1.08 - Fri Mar 11 20:55:29 EST 2016 Updates tests to support Perl::Tidy 20160301 and later - New version of Perl::Tidy has some support for new syntax. This is great, but it has some minor impact on spacing in our tests. [Upgrade recommended if you are using newer versions of Perl::Tidy] 1.07 - Wed Jan 27 09:36:42 EST 2016 Adds new podweaver sections - Bugs in pod now point to GH issues - Adds contributors list to pod - Adds link to github in pod [No need to upgrade] 1.06 - Tue Jan 26 17:21:34 EST 2016 Ignore 'method' functions (not pseudo-keywords) like those in MooseX::Role::Parameterized (PR#6, RT#106464). Use faster container-based infrastructure for Travis (PR#7). Both of these patch were contributed by @oschwald. Thanks! [Upgrade recommended if you use MooseX::Role::Parameterized] 1.05 - Sat Aug 22 10:07:24 EDT 2015 Changes placeholder from comment at end of line, to munged sub/pkg name. So, instead of turning: method test_method_a ($self) { into sub test_method_a { # SUB1 we now turn it into sub SUB1_method_a { This eliminates issues with Perl::Tidy moving that trailing comment, and attempts to preserve the length of the method name so any changes to formatting due to name length will be consistent. Bug fixes and improvements to tests: - Bug fix: RT#106398 "long single line subs" should be handled correctly. - Adds (failing) test for RT#106464 - Adds checks for creation of perltidy.ERR file as part of tests - Adds simpler means of specifying TODO tests TODO: - Would like to preserve the *length* of the clauses in order to allow Perl::Tidy to format them. This could probably be done with prototypes for sub, but not sure what you do with packages. [This upgrade is recommended if you are experiencing issues with "# SUB_" comments being left in your code.] 1.04 - Fri Mar 20 09:16:11 EDT 2015 This release fixes bug reported in RT#102815. - We had been overwriting the result of the -sbl and -bl flags, which control line breaks before opening subroutine brace. Thanks to Serge Colle for the bug report. - This fix makes changes to the way the post_filter parses a line. Please test this with your codebase and report any bugs. [This upgrade is recommended if you use the -sbl or -bl flags.] 1.03 - Sat Dec 20 16:53:27 EST 2014 Adds the perltidy-sweet command - More clearly indicates how this differs from perltidy than perltidier. Thanks to Dave Rolsky (autarch) for the suggestion. - Keeps perltidier command as many users are already used to this. 1.02 - Tue Dec 9 12:28:49 EST 2014 Fixes handling of 5.20 experimental signatures - It looked like Perl::Tidy would handle the new 5.20 experimental signatures, but it fails when you try to use an empty hash as a default value (and maybe elsewhere). - Have to add a block parse for "sub (...) {" Adds test for anonymous sub routines for perl 5.20 signatures 1.01 - Sat Aug 23 14:35:05 EDT 2014 Adds support/test for Moops 1.00 - Sat Aug 16 09:57:05 EDT 2014 Bumps to version 1.00. Been stable for several years now. 0.27 - Wed Aug 6 04:32:47 EDT 2014 Adds $TODO flag that works with newest version of Test::More. 0.26 - Mon Aug 4 03:53:40 EDT 2014 Deals with MooseX::Delcare's "is" attribute for classes (GH#5) Thanks to stratust for the bug report Adds test to ensure we work with perl 5.20 signatures It doesn't look like any changes are needed, but it's good to have the tests in place to make sure. 0.25 - Fri Jun 6 10:38:57 EDT 2014 Fixes (GH#3): Typo in documentation. Method::Signatures::Simple instead of Method::Signature::Simple. Thanks to aggrolite for the bug report and patch. 0.24 - Thu Apr 24 07:27:09 EDT 2014 Fixes RT#94633: class WORD::WORD was not parsed correctly. Thanks to Kent Fredric for the bug report. 0.23 - Fri Jan 3 14:25:22 EST 2014 Re-uploads to try to fix metacpan.org indexing issue. 0.22 - Fri Oct 4 08:11:50 EDT 2013 Removes extraneous files from release 0.21 - Wed Oct 2 12:45:51 EDT 2013 Adds support for the new p5-mop syntax - Introduces a plugin to support twigils - Generalizes the SubSignature plugin to work with keywords that start blocks Further abstracts the creation of new subroutine filters Builds on Kent Fredric's plugin abstraction to make the parameter list, return type, and any other clause definable. 0.20 - Mon May 6 11:16:28 EDT 2013 Significant refactoring (by Kent Fredric++) to make the filters pluggable. - Fixes RT#85076 bug (support for returns() syntax) - Switches to named captures to make the regex more clear (ok, since we already require 5.010 for the balanced paranes) - Stores signature (and any returns() declaration) externally rather than in the code via comments. Nice idea Kent++. - Adds a .perltidyrc file so all contributers style will be consistent 0.19 - Fri Apr 26 10:20:13 EDT 2013 Removes unnecessary (?^:) wrapper around paren regex. Bumps req to 5.10 The (?^ cluster is causing failures on pre-5.14 version of perl. It does not appear to be necessary given our use of the regex. On the other hand, the use of (?-1) was added in 5.10, so let's bump the perl requirement back to 5.10 (it is hard to imagine anyone using modern method syntax on a pre-5.10 perl). 0.18 - Fri Apr 26 09:43:24 EDT 2013 Fixes bug where balanced parens in the parameters list were not correctly formatted (RT#84868). Minor tweaks: - Adds Perl::Tidy::Sweet as an alternate module name. - Changes hash bang for the perltidier script so it is rewritten at install. - Drops minimum perl version to 5.8 - Adds travis-ci config file 0.17 - Mon Feb 25 15:53:33 EST 2013 Fixes RT#83511 - empty parameter list improperly rewritten - Addresses a bug, reported by Kent Fredric, where "method for() {" was converted to "method foo { ()" 0.16 - Fri Feb 8 16:19:37 EST 2013 Bumps the perl version requirement We want to use \K in our regexps. This was introduced in 5.10. Since the purpose of this is to support modern Perl syntax, we'll just assume users are using a modern version of perl. 0.15 - Wed Nov 28 17:53:06 EST 2012 Adds missing prereq 0.14 - Wed Sep 5 14:54:50 EDT 2012 Fixes lingering typos 0.13 - Wed Sep 5 14:51:21 EDT 2012 Fixes lingering typos 0.12 - Tue Sep 4 22:39:26 EDT 2012 Fixes typo in package name, adds pod and comments 0.11 - Tue Sep 4 20:03:08 EDT 2012 Improves testing setup and implements formatting for "func" 0.10 - Wed Aug 22 11:53:23 EDT 2012 Initial implementation. Much of the code and the idea come from Jonathan Swartz's blog post: http://www.openswartz.com/2010/12/19/perltidy-and-method-happy-together/ Build.PL000644000765000024 17514005564544 16472 0ustar00mgrimesstaff000000000000Perl-Tidy-Sweetened-1.18# This Build.PL for Perl-Tidy-Sweetened was generated by mbtiny 0.023. use 5.010; use Module::Build::Tiny 0.034; Build_PL(); perlcriticrc000644000765000024 4214005564544 20212 0ustar00mgrimesstaff000000000000Perl-Tidy-Sweetened-1.18/xt# [-CodeLayout::ProhibitHardTabs] Twigils.pm000644000765000024 772314005564544 25235 0ustar00mgrimesstaff000000000000Perl-Tidy-Sweetened-1.18/lib/Perl/Tidy/Sweetened/Variablepackage Perl::Tidy::Sweetened::Variable::Twigils; # ABSTRACT: Perl::Tidy::Sweetened filter plugin to handle twigls use 5.010; # Needed for balanced parens matching with qr/(?-1)/ use strict; use warnings; use Carp; $|++; our $VERSION = '1.18'; sub new { my ( $class, %args ) = @_; croak 'twigil not specified' if not exists $args{twigil}; croak 'marker not specified' if not exists $args{marker}; $args{clauses} = [] unless exists $args{clauses}; return bless {%args}, $class; } sub twigil { return $_[0]->{twigil} } sub marker { return $_[0]->{marker} } sub emit_placeholder { my ( $self, $varname ) = @_; # Store the signature and returns() for later use my $id = $self->{counter}++; $self->{store}->{$id} = $varname; return sprintf '$__%s_%s', $self->marker, $id; } sub emit_twigil { my ( $self, $id ) = @_; # Get the signature and returns() from store my $varname = $self->{store}->{$id}; return sprintf '%s%s', $self->twigil, $varname; } sub prefilter { my ( $self, $code ) = @_; my $twigil = '\\' . $self->twigil; $code =~ s{ (?: ^|\s)\K # needs to be sperated by a space $twigil # the twigil (ie, $!) (? \w+) # the variable name }{ $self->emit_placeholder( $+{varname} ) }egmx; return $code; } sub postfilter { my ( $self, $code ) = @_; my $marker = $self->marker; # Convert back to method $code =~ s{ (?: ^|\s)\K # needs to be sperated by a space \$ __ $marker # keyword was convert to package _ (? \d+ ) \b # the method name and a word break }{ $self->emit_twigil( $+{id} ); }egmx; # Check to see if tidy turned it into "sub name\n{ #..." $code =~ s{ ^\s*\K # preserve leading whitespace package \s+ # method was converted to sub (? \w+)\n \s* # the method name and a newline (? \{ .*?) [ ]* # opening brace on newline followed orig comments \#__$marker \s+ # our magic token (? \d+) # our sub identifier [ ]* # trailing spaces (not all whitespace) }{ $self->emit_keyword( $+{subname}, $+{brace}, $+{id} ); }egmx; return $code; } 1; __END__ =pod =head1 NAME Perl::Tidy::Sweetened::Variable::Twigils - Perl::Tidy::Sweetened filter plugin to handle twigls =head1 VERSION version 1.18 =head1 SYNOPSIS our $plugins = Perl::Tidy::Sweetened::Pluggable->new(); $plugins->add_filter( Perl::Tidy::Sweetened::Variable::Twigils->new( twigil => '$!', marker => 'TWG_BANG', ) ); =head1 DESCRIPTION This is a Perl::Tidy::Sweetened filter which enables the use of twigils as defined by the L module. New accepts: =over 4 =item twigil twigil => '$!' Declares a new twigil. In this case to be used as C<$!variable>. =item marker marker => 'TWG_BANG' Provides a text marker to be used to flag the new keywords during C. The source code will be filtered prior to formatting by Perl::Tidy such that: $!class_attribute is turned into: $__TWG_BANK_1 Then back into the original twigiled variable in the C. =back =head1 AUTHOR Mark Grimes Emgrimes@cpan.orgE =head1 SOURCE Source repository is at L. =head1 BUGS Please report any bugs or feature requests on the bugtracker website L When submitting a bug or request, please include a test-file or a patch to an existing test-file that illustrates the bug or desired feature. =head1 COPYRIGHT AND LICENSE This software is copyright (c) 2021 by Mark Grimes Emgrimes@cpan.orgE. This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. =cut MYMETA.json000644000765000024 144614005564544 36644 0ustar00mgrimesstaff000000000000Perl-Tidy-Sweetened-1.18/ci/local-docker/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Class-Data-Inheritable-0.08{ "abstract" : "Inheritable, overridable class data", "author" : [ "unknown" ], "dynamic_config" : 0, "generated_by" : "ExtUtils::MakeMaker version 6.42, CPAN::Meta::Converter version 2.150005", "license" : [ "perl_5" ], "meta-spec" : { "url" : "http://search.cpan.org/perldoc?CPAN::Meta::Spec", "version" : "2" }, "name" : "Class-Data-Inheritable", "prereqs" : { "build" : { "requires" : { "ExtUtils::MakeMaker" : "0" } }, "configure" : { "requires" : { "ExtUtils::MakeMaker" : "0" } }, "runtime" : { "requires" : {} } }, "release_status" : "stable", "version" : "0.08", "x_serialization_backend" : "JSON::PP version 2.27300_01" } Sweet.pm000644000765000024 474314005564544 21231 0ustar00mgrimesstaff000000000000Perl-Tidy-Sweetened-1.18/lib/Perl/Tidypackage Perl::Tidy::Sweet; # ABSTRACT: Tweaks to Perl::Tidy to support some syntactic sugar use strict; use warnings; use base 'Perl::Tidy::Sweetened'; our $VERSION = '1.18'; 1; __END__ =pod =head1 NAME Perl::Tidy::Sweet - Tweaks to Perl::Tidy to support some syntactic sugar =head1 VERSION version 1.18 =head1 STATUS =for html Build Status CPAN version =head1 DESCRIPTION There are a number of modules on CPAN that allow users to write their classes with a more "modern" syntax. These tools eliminate the need to shift off C<$self>, can support type checking and offer other improvements. Unfortunately, they can break the support tools that the Perl community has come to rely on. This module attempts to work around those issues. The module uses L's C and C hooks to support C and C keywords, including the (possibly multi-line) parameter lists. This is quite an ugly hack, but it is the recommended method of supporting these new keywords (see the 2010-12-17 entry in the Perl::Tidy L file). B C attempts to support the syntax outlined in the following modules, but most of the new syntax styles should work: =over =item * p5-mop =item * Method::Signatures::Simple =item * MooseX::Method::Signatures =item * MooseX::Declare =item * Moops =item * perl 5.20 signatures =item * Kavorka =back =head1 SEE ALSO L =head1 AUTHOR Mark Grimes Emgrimes@cpan.orgE =head1 SOURCE Source repository is at L. =head1 BUGS Please report any bugs or feature requests on the bugtracker website L When submitting a bug or request, please include a test-file or a patch to an existing test-file that illustrates the bug or desired feature. =head1 COPYRIGHT AND LICENSE This software is copyright (c) 2021 by Mark Grimes Emgrimes@cpan.orgE. This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. =cut perltidier000644000765000024 260314005564544 20606 0ustar00mgrimesstaff000000000000Perl-Tidy-Sweetened-1.18/script#!perl # ABSTRACT: Script to execute Perl::Tidy::Sweetened cleanup # PODNAME: perltidier use strict; use warnings; use Perl::Tidy::Sweetened; Perl::Tidy::Sweetened::perltidy(); __END__ =pod =head1 NAME perltidier - Script to execute Perl::Tidy::Sweetened cleanup =head1 DESCRIPTION This script is a drop in replacement for L's C which uses L to cleanup Perl code with a more "modern" syntax (ie, L, L, L, L, etc). See the documentation for L and L for usage. See L for more information about the changes introduced. =head1 SEE ALSO L =head1 AUTHOR Mark Grimes Emgrimes@cpan.orgE =head1 SOURCE Source repository is at L. =head1 BUGS Please report any bugs or feature requests on the bugtracker website L When submitting a bug or request, please include a test-file or a patch to an existing test-file that illustrates the bug or desired feature. =head1 COPYRIGHT AND LICENSE This software is copyright (c) 2021 by Mark Grimes Emgrimes@cpan.orgE. This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. =cut moops.t000644000765000024 460214005564544 17002 0ustar00mgrimesstaff000000000000Perl-Tidy-Sweetened-1.18/tuse lib 't/lib'; use Test::More; use TidierTests; run_test( <<'RAW', <<'TIDIED', 'Simple class defn', '', ); class Person { has 'name' => (is => 'rw'); } RAW class Person { has 'name' => ( is => 'rw' ); } TIDIED run_test( <<'RAW', <<'TIDIED', 'Class defn with Moose', '1', ); class Person using Moose { has 'name' => ( is => 'rw' ); } RAW class Person using Moose { has 'name' => ( is => 'rw' ); } TIDIED run_test( <<'RAW', <<'TIDIED', 'Class defn with version ', '', ); class Person 1.2 { has 'name' => ( is => 'rw' ); } RAW class Person 1.2 { has 'name' => ( is => 'rw' ); } TIDIED run_test( <<'RAW', <<'TIDIED', 'Role defn', '', ); role NamedThing { has 'balance' => ( is => 'rw' ); } RAW role NamedThing { has 'balance' => ( is => 'rw' ); } TIDIED run_test( <<'RAW', <<'TIDIED', 'Class with role', '', ); class Person with NamedThing; RAW class Person with NamedThing; TIDIED run_test( <<'RAW', <<'TIDIED', 'Class that extends another', '', ); class Employee extends Person { has job_title => (is=>'ro'); } RAW class Employee extends Person { has job_title => ( is => 'ro' ); } TIDIED run_test( <<'RAW', <<'TIDIED', 'Class that extends another with ::', '', ); class Employee extends Person::Object { has job_title => (is=>'ro'); } RAW class Employee extends Person::Object { has job_title => ( is => 'ro' ); } TIDIED run_test( <<'RAW', <<'TIDIED', 'Class that extends and role', '1', ); class Employee extends Person with Employment { has job_title => (is=>'ro'); } RAW class Employee extends Person with Employment { has job_title => ( is => 'ro' ); } TIDIED run_test( <<'RAW', <<'TIDIED', 'Class with lexical_has', '', ); class Employee extends Person { lexical_has job_title => (is=>'ro'); } RAW class Employee extends Person { lexical_has job_title => ( is => 'ro' ); } TIDIED run_test( <<'RAW', <<'TIDIED', 'Class defn with method', '', ); class BankAccount { has 'balance' => ( is => 'rw' ); method deposit (Num $amount){ $self->inc_balance( $amount ); } } RAW class BankAccount { has 'balance' => ( is => 'rw' ); method deposit (Num $amount) { $self->inc_balance($amount); } } TIDIED run_test( <<'RAW', <<'TIDIED', 'Class with attribute', '1', ); class Person :mutable { lexical_has job_title => (is=>'ro'); } RAW class Person : mutable { lexical_has job_title => ( is => 'ro' ); } TIDIED done_testing; moosex-declare.t000644000765000024 166014005564544 20555 0ustar00mgrimesstaff000000000000Perl-Tidy-Sweetened-1.18/tuse lib 't/lib'; use Test::More; use TidierTests; run_test( <<'RAW', <<'TIDIED', 'Simple class defn', '', ); class BankAccount { has 'balance' => ( is => 'rw' ); } RAW class BankAccount { has 'balance' => ( is => 'rw' ); } TIDIED run_test( <<'RAW', <<'TIDIED', 'Class defn with method', '', ); class BankAccount { has 'balance' => ( is => 'rw' ); method deposit (Num $amount){ $self->inc_balance( $amount ); } } RAW class BankAccount { has 'balance' => ( is => 'rw' ); method deposit (Num $amount) { $self->inc_balance($amount); } } TIDIED run_test( <<'RAW', <<'TIDIED', 'Multipart class', '', ); class A::Point { has $!x is ro = 1 ; } RAW class A::Point { has $!x is ro = 1; } TIDIED run_test( <<'RAW', <<'TIDIED', 'Class with attrs (GH#5)', '', ); class A::Point is dirty { has $!x is ro = 1 ; } RAW class A::Point is dirty { has $!x is ro = 1; } TIDIED done_testing; LICENSE000644000765000024 4365214005564544 16252 0ustar00mgrimesstaff000000000000Perl-Tidy-Sweetened-1.18This software is copyright (c) 2021 by Mark Grimes. This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. Terms of the Perl programming language system itself a) the GNU General Public License as published by the Free Software Foundation; either version 1, or (at your option) any later version, or b) the "Artistic License" --- The GNU General Public License, Version 1, February 1989 --- This software is Copyright (c) 2021 by Mark Grimes. This is free software, licensed under: The GNU General Public License, Version 1, February 1989 GNU GENERAL PUBLIC LICENSE Version 1, February 1989 Copyright (C) 1989 Free Software Foundation, Inc. 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. Preamble The license agreements of most software companies try to keep users at the mercy of those companies. By contrast, our General Public License is intended to guarantee your freedom to share and change free software--to make sure the software is free for all its users. The General Public License applies to the Free Software Foundation's software and to any other program whose authors commit to using it. You can use it for your programs, too. When we speak of free software, we are referring to freedom, not price. Specifically, the General Public License is designed to make sure that you have the freedom to give away or sell copies of free software, that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs; and that you know you can do these things. To protect your rights, we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights. These restrictions translate to certain responsibilities for you if you distribute copies of the software, or if you modify it. For example, if you distribute copies of a such a program, whether gratis or for a fee, you must give the recipients all the rights that you have. You must make sure that they, too, receive or can get the source code. And you must tell them their rights. We protect your rights with two steps: (1) copyright the software, and (2) offer you this license which gives you legal permission to copy, distribute and/or modify the software. Also, for each author's protection and ours, we want to make certain that everyone understands that there is no warranty for this free software. If the software is modified by someone else and passed on, we want its recipients to know that what they have is not the original, so that any problems introduced by others will not reflect on the original authors' reputations. The precise terms and conditions for copying, distribution and modification follow. GNU GENERAL PUBLIC LICENSE TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 0. This License Agreement applies to any program or other work which contains a notice placed by the copyright holder saying it may be distributed under the terms of this General Public License. The "Program", below, refers to any such program or work, and a "work based on the Program" means either the Program or any work containing the Program or a portion of it, either verbatim or with modifications. Each licensee is addressed as "you". 1. You may copy and distribute verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of warranty; keep intact all the notices that refer to this General Public License and to the absence of any warranty; and give any other recipients of the Program a copy of this General Public License along with the Program. You may charge a fee for the physical act of transferring a copy. 2. You may modify your copy or copies of the Program or any portion of it, and copy and distribute such modifications under the terms of Paragraph 1 above, provided that you also do the following: a) cause the modified files to carry prominent notices stating that you changed the files and the date of any change; and b) cause the whole of any work that you distribute or publish, that in whole or in part contains the Program or any part thereof, either with or without modifications, to be licensed at no charge to all third parties under the terms of this General Public License (except that you may choose to grant warranty protection to some or all third parties, at your option). c) If the modified program normally reads commands interactively when run, you must cause it, when started running for such interactive use in the simplest and most usual way, to print or display an announcement including an appropriate copyright notice and a notice that there is no warranty (or else, saying that you provide a warranty) and that users may redistribute the program under these conditions, and telling the user how to view a copy of this General Public License. d) You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee. Mere aggregation of another independent work with the Program (or its derivative) on a volume of a storage or distribution medium does not bring the other work under the scope of these terms. 3. You may copy and distribute the Program (or a portion or derivative of it, under Paragraph 2) in object code or executable form under the terms of Paragraphs 1 and 2 above provided that you also do one of the following: a) accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Paragraphs 1 and 2 above; or, b) accompany it with a written offer, valid for at least three years, to give any third party free (except for a nominal charge for the cost of distribution) a complete machine-readable copy of the corresponding source code, to be distributed under the terms of Paragraphs 1 and 2 above; or, c) accompany it with the information you received as to where the corresponding source code may be obtained. (This alternative is allowed only for noncommercial distribution and only if you received the program in object code or executable form alone.) Source code for a work means the preferred form of the work for making modifications to it. For an executable file, complete source code means all the source code for all modules it contains; but, as a special exception, it need not include source code for modules which are standard libraries that accompany the operating system on which the executable file runs, or for standard header files or definitions files that accompany that operating system. 4. You may not copy, modify, sublicense, distribute or transfer the Program except as expressly provided under this General Public License. Any attempt otherwise to copy, modify, sublicense, distribute or transfer the Program is void, and will automatically terminate your rights to use the Program under this License. However, parties who have received copies, or rights to use copies, from you under this General Public License will not have their licenses terminated so long as such parties remain in full compliance. 5. By copying, distributing or modifying the Program (or any work based on the Program) you indicate your acceptance of this license to do so, and all its terms and conditions. 6. Each time you redistribute the Program (or any work based on the Program), the recipient automatically receives a license from the original licensor to copy, distribute or modify the Program subject to these terms and conditions. You may not impose any further restrictions on the recipients' exercise of the rights granted herein. 7. The Free Software Foundation may publish revised and/or new versions of the General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Program specifies a version number of the license which applies to it and "any later version", you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of the license, you may choose any version ever published by the Free Software Foundation. 8. If you wish to incorporate parts of the Program into other free programs whose distribution conditions are different, write to the author to ask for permission. For software which is copyrighted by the Free Software Foundation, write to the Free Software Foundation; we sometimes make exceptions for this. Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally. NO WARRANTY 9. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 10. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. END OF TERMS AND CONDITIONS Appendix: How to Apply These Terms to Your New Programs If you develop a new program, and you want it to be of the greatest possible use to humanity, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms. To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively convey the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. Copyright (C) 19yy This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 1, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301 USA Also add information on how to contact you by electronic and paper mail. If the program is interactive, make it output a short notice like this when it starts in an interactive mode: Gnomovision version 69, Copyright (C) 19xx name of author Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details. The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, the commands you use may be called something other than `show w' and `show c'; they could even be mouse-clicks or menu items--whatever suits your program. You should also get your employer (if you work as a programmer) or your school, if any, to sign a "copyright disclaimer" for the program, if necessary. Here a sample; alter the names: Yoyodyne, Inc., hereby disclaims all copyright interest in the program `Gnomovision' (a program to direct compilers to make passes at assemblers) written by James Hacker. , 1 April 1989 Ty Coon, President of Vice That's all there is to it! --- The Artistic License 1.0 --- This software is Copyright (c) 2021 by Mark Grimes. This is free software, licensed under: The Artistic License 1.0 The Artistic License Preamble The intent of this document is to state the conditions under which a Package may be copied, such that the Copyright Holder maintains some semblance of artistic control over the development of the package, while giving the users of the package the right to use and distribute the Package in a more-or-less customary fashion, plus the right to make reasonable modifications. Definitions: - "Package" refers to the collection of files distributed by the Copyright Holder, and derivatives of that collection of files created through textual modification. - "Standard Version" refers to such a Package if it has not been modified, or has been modified in accordance with the wishes of the Copyright Holder. - "Copyright Holder" is whoever is named in the copyright or copyrights for the package. - "You" is you, if you're thinking about copying or distributing this Package. - "Reasonable copying fee" is whatever you can justify on the basis of media cost, duplication charges, time of people involved, and so on. (You will not be required to justify it to the Copyright Holder, but only to the computing community at large as a market that must bear the fee.) - "Freely Available" means that no fee is charged for the item itself, though there may be fees involved in handling the item. It also means that recipients of the item may redistribute it under the same conditions they received it. 1. You may make and give away verbatim copies of the source form of the Standard Version of this Package without restriction, provided that you duplicate all of the original copyright notices and associated disclaimers. 2. You may apply bug fixes, portability fixes and other modifications derived from the Public Domain or from the Copyright Holder. A Package modified in such a way shall still be considered the Standard Version. 3. You may otherwise modify your copy of this Package in any way, provided that you insert a prominent notice in each changed file stating how and when you changed that file, and provided that you do at least ONE of the following: a) place your modifications in the Public Domain or otherwise make them Freely Available, such as by posting said modifications to Usenet or an equivalent medium, or placing the modifications on a major archive site such as ftp.uu.net, or by allowing the Copyright Holder to include your modifications in the Standard Version of the Package. b) use the modified Package only within your corporation or organization. c) rename any non-standard executables so the names do not conflict with standard executables, which must also be provided, and provide a separate manual page for each non-standard executable that clearly documents how it differs from the Standard Version. d) make other distribution arrangements with the Copyright Holder. 4. You may distribute the programs of this Package in object code or executable form, provided that you do at least ONE of the following: a) distribute a Standard Version of the executables and library files, together with instructions (in the manual page or equivalent) on where to get the Standard Version. b) accompany the distribution with the machine-readable source of the Package with your modifications. c) accompany any non-standard executables with their corresponding Standard Version executables, giving the non-standard executables non-standard names, and clearly documenting the differences in manual pages (or equivalent), together with instructions on where to get the Standard Version. d) make other distribution arrangements with the Copyright Holder. 5. You may charge a reasonable copying fee for any distribution of this Package. You may charge any fee you choose for support of this Package. You may not charge a fee for this Package itself. However, you may distribute this Package in aggregate with other (possibly commercial) programs as part of a larger (possibly commercial) software distribution provided that you do not advertise this Package as a product of your own. 6. The scripts and library files supplied as input to or produced as output from the programs of this Package do not automatically fall under the copyright of this Package, but belong to whomever generated them, and may be sold commercially, and may be aggregated with this Package. 7. C or perl subroutines supplied by you and linked into this Package shall not be considered part of this Package. 8. The name of the Copyright Holder may not be used to endorse or promote products derived from this software without specific prior written permission. 9. THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. The End MYMETA.json000644000765000024 242414005564544 34337 0ustar00mgrimesstaff000000000000Perl-Tidy-Sweetened-1.18/ci/local-docker/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Test-Most-0.34{ "abstract" : "unknown", "author" : [ "unknown" ], "dynamic_config" : 0, "generated_by" : "ExtUtils::MakeMaker version 6.92, CPAN::Meta::Converter version 2.140640, CPAN::Meta::Converter version 2.150005", "license" : [ "unknown" ], "meta-spec" : { "url" : "http://search.cpan.org/perldoc?CPAN::Meta::Spec", "version" : "2" }, "name" : "Test-Most", "no_index" : { "directory" : [ "t", "inc" ] }, "prereqs" : { "build" : { "requires" : { "ExtUtils::MakeMaker" : "0" } }, "configure" : { "requires" : { "ExtUtils::MakeMaker" : "0" } }, "runtime" : { "requires" : { "Exception::Class" : "1.14", "Test::Deep" : "0.106", "Test::Differences" : "0.61", "Test::Exception" : "0.31", "Test::Harness" : "3.21", "Test::More" : "0.88", "Test::Warn" : "0.23" } } }, "release_status" : "stable", "resources" : { "repository" : { "type" : "git", "web" : "https://github.com/Ovid/test--most" } }, "version" : "0.34", "x_serialization_backend" : "JSON::PP version 2.27300_01" }