We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The simplex example, let's take a file containing:
<?php $x = foo";
If we run PHP Parallel Lint with the --checkstyle flag we get (formatted for readability):
--checkstyle
<?xml version="1.0" encoding="UTF-8"?> <checkstyle> <file name="example.php"> <error line="3" severity="ERROR" message="Parse error: syntax error, unexpected '"' in ./inc/x.php on line 3" source="Syntax Error" /> </file> </checkstyle>
Which is broken XML.
Generally speaking, when generating checkstyle XML, PHP Parallel Lint should HTML-escape messages, via something like: htmlspecialchars($message, ENT_QUOTES, 'UTF-8'); here: https://github.com/php-parallel-lint/PHP-Parallel-Lint/blob/master/src/Output.php#L444
htmlspecialchars($message, ENT_QUOTES, 'UTF-8');
The text was updated successfully, but these errors were encountered:
Use HTML-escaped messages in CheckstyleOutput
2792b52
fixes php-parallel-lint#72
490078e
Changelog for PRs #72 and #76
9ab2750
Follow up on #72 / escape messages in CheckstyleOutput
eaa07b4
* Minor tweak to allow CS to pass. * Enable SimpleXML for the PHP 5.3-5.5 tests.
No branches or pull requests
The simplex example, let's take a file containing:
If we run PHP Parallel Lint with the
--checkstyle
flag we get (formatted for readability):Which is broken XML.
Generally speaking, when generating checkstyle XML, PHP Parallel Lint should HTML-escape messages, via something like:
htmlspecialchars($message, ENT_QUOTES, 'UTF-8');
here: https://github.com/php-parallel-lint/PHP-Parallel-Lint/blob/master/src/Output.php#L444The text was updated successfully, but these errors were encountered: