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

fix(ale_linters/phpcs): add support for multiline error messages #3282

Merged
merged 1 commit into from
Nov 21, 2020

Conversation

zanona
Copy link
Contributor

@zanona zanona commented Aug 12, 2020

This PR adds support for phpcs when there are errors resulting on messages containing more than one line.

An example would be :

<?php
$foo = 'bar';
echo "
<div>
    <h1>hello world</h1>
    <p>$foo</p>
</div>
";

Before this fix, the command below would return an error, but Ale wouldn't catch it.

$ phpcs --report=emacs theme/single-member.php
/home/user/file-name.php:14:10: error - All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '"
'.

@zanona zanona force-pushed the master branch 3 times, most recently from b0f8a04 to c86519a Compare August 12, 2020 09:49
@zanona zanona marked this pull request as ready for review August 12, 2020 09:54
@zanona
Copy link
Contributor Author

zanona commented Aug 12, 2020

Unrelated test error at /testplugin/test/command_callback/test_bingo_command_callback.vader

@stale
Copy link

stale bot commented Sep 25, 2020

This pull request has been automatically marked as stale because it has not been updated recently. Make sure to write tests and document your changes. See :help ale-dev for information on writing tests.
If your pull request is good to merge, bother w0rp or another maintainer again, and get them to merge it.

@stale stale bot added the stale PRs a bot will close automatically label Sep 25, 2020
@stale stale bot removed the stale PRs a bot will close automatically label Sep 25, 2020
@zanona
Copy link
Contributor Author

zanona commented Sep 25, 2020

Rebasing seems to have fixed tests, as it was unrelated. cc / @w0rp

@stale
Copy link

stale bot commented Oct 23, 2020

This pull request has been automatically marked as stale because it has not been updated recently. Make sure to write tests and document your changes. See :help ale-dev for information on writing tests.
If your pull request is good to merge, bother w0rp or another maintainer again, and get them to merge it.

@stale stale bot added the stale PRs a bot will close automatically label Oct 23, 2020
@stale stale bot closed this Oct 30, 2020
@zanona
Copy link
Contributor Author

zanona commented Oct 30, 2020

@w0rp could you please point someone to review this PR? I'm not quite sure what else I could've done here. Tests passed and all...

@w0rp w0rp reopened this Nov 21, 2020
@stale stale bot removed the stale PRs a bot will close automatically label Nov 21, 2020
Copy link
Member

@w0rp w0rp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is all good, I've just been too busy to look at ALE pull requests in recent months.

@w0rp w0rp merged commit df31632 into dense-analysis:master Nov 21, 2020
@w0rp
Copy link
Member

w0rp commented Nov 21, 2020

Cheers! 🍻

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.

None yet

2 participants