PPI
PPI copied to clipboard
this was previously a pull request in #292 however, i resolved it by way of completing the work on #e527641483403f5b0cd88507862cf1ffc0550197 which makes dependents tests available under https://github.com/Perl-Critic/PPI/actions/workflows/test-dependents.yml more work is...
After changing the contents of a `PPI::Token::QuoteLike::Words` element with the `set_contents` method, it seems that the changed contents is not reparsed and internal meta-data not updated. This leads to a...
Iterating over siblings using ->next_sibling or similar methods will take quadratic time if it has to search the parent's child list every time. Add a cache of the position in...
# Problem description Stringifying the `PPI::Document` object (same as calling `->content()` on it) strips out the content of heredocs, giving back an un-parseable document. Example code: ```perl #!/usr/bin/perl use strict;...
Expected behavior: The release tarball can be extracted with the `--same-owner` option. This works fine in release `PPI-1.278`: ``` wget https://cpan.metacpan.org/authors/id/O/OA/OALDERS/PPI-1.278.tar.gz gzip -dk PPI-1.278.tar.gz tar --same-owner -xvf PPI-1.278.tar ``` However,...
I raised [an issue on Perl::Metrics::Simple](https://github.com/matisse/Perl-Metrics-Simple/issues/18) because it doesn't recognise that `method` defines a subroutine. And it turns out that the problem is PPI not supporting `method` (and, also, `class`...
Here's how to reproduce: ``` $ perl -MPPI -E ' say PPI->VERSION; PPI::Document->new( \q{use feature "signatures", "postderef"; 1;} ) or do { die $@ }; ' 1.281 unknown arg decompose...
Adresses #158
First shot, consisting of a small perltidyrc change, full tidying via a private fork of https://metacpan.org/pod/Dist::Zilla::App::Command::perltidy and a test that checks the tidy status of files whenever author tests are...
When drafting a `Perl::Critic` policy to forbid `@_` and `@ARG` in subroutines with signatures, it would be helpful (though obviously not essential) to have `PPI::Statement::Sub->signature()`. I believe that (unlike `PPI::Statement::Sub->prototype()`)...