Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failing test - It seems that PPI has problems when heredoc terminator is... #17

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

vsespb
Copy link
Contributor

@vsespb vsespb commented Mar 20, 2014

... last in file and there is 0 or 1 newline after it (not more).

… is last in file and there is 0 or 1 newline after it (not more).
@guillaumeaubert
Copy link
Owner

I investigated the relevant PPI code and found the issue - the section of code that is designed to handle here-doc terminators without a trailing newline can never be reached due to a bug in the parsing loop. I sent a pull request to PPI's repository yesterday to address the issue: Perl-Critic/PPI#72.

I'm going to keep your pull request open until the underlying issue is addressed in PPI, and once that is done I will re-run your pull request against Travis to make sure that it is completely fixed.

@oalders
Copy link

oalders commented Jan 12, 2021

I'm going to keep your pull request open until the underlying issue is addressed in PPI, and once that is done I will re-run your pull request against Travis to make sure that it is completely fixed.

That PR was merged and released in PPI 1.222 https://metacpan.org/changes/distribution/PPI#L162

@oalders
Copy link

oalders commented Jan 15, 2021

With the latest PPI these tests are now passing, so I think this PR can safely be merged into master.

oalders added a commit to perl-ide/Perl-Critic-Policy-ValuesAndExpressions-PreventSQLInjection that referenced this pull request Mar 4, 2021
        - Added test for heredoc terminators
          guillaumeaubert#17
          (Victor Efimov)
        - Reset `_sqlsafe` when scanning multiple documents; added tests
          guillaumeaubert#22
          (Charlie Garrison)
        - New test cases related to anonymous functions
          guillaumeaubert#18
          (Victor Efimov)
        - Add safe_context configuration option
          guillaumeaubert#23
          (Nelson Ferraz)
        - Added a new "prefer_upper_case_keywords" configuration option (Olaf Alders)
        - Added detection for ALTER, CREATE and DROP statements.
oalders added a commit to perl-ide/Perl-Critic-Policy-ValuesAndExpressions-PreventSQLInjection that referenced this pull request Mar 5, 2021
oalders added a commit to perl-ide/Perl-Critic-Policy-ValuesAndExpressions-PreventSQLInjection that referenced this pull request Mar 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants