Illegal XML characters output in checkstyle format
See original GitHub issueJenkins checkstyle complains that character reference “” is an invalid XML character. Online XML validator http://www.xmlvalidation.com/index.php?id=1&L=0 confirms.
<error line="1" column="1" severity="error" message="Parsing error: Unexpected character '�' > 1 | �PNG | ^ 2 |  3 | ��� 4 | IHDR���F���F���q.�����gAMA�����a���	pHYs��������k����tEXtSoftware�Paint.NET v3.5.5I�����" source="" /></file>
Environment
- ESLint Version: 3.12.0
- Node Version: 6.9.1
- npm Version: 4.0.2
- OS Version: Windows 10 x64
Using parser babel-eslint
{ “extends”: “airbnb”, “parser”: “babel-eslint” }
On executiong: "node ./node_modules/eslint/bin/eslint.js -f checkstyle -o lint-report.xml src/**/*
Issue Analytics
- State:
- Created 7 years ago
- Comments:19 (11 by maintainers)
Top Results From Across the Web
What are invalid characters in XML - Stack Overflow
In XML 1.0 there are many illegal characters. In fact even using a character entity for most control characters will cause an error...
Read more >checkstyle – Configuration - SourceForge
Checkstyle obtains a configuration from an XML document whose elements specify the configuration's hierarchy of modules and their properties. ...
Read more >Miscellaneous - checkstyle
Checks the style of array type definitions. Some like Java style: public static void main(String[] args) and some like C style: public ...
Read more >Command Line - checkstyle
-f format - Specifies the output format. Valid values: xml , sarif , plain for XMLLogger, SarifLogger, and DefaultLogger respectively.
Read more >Regexp - checkstyle
<module name="Regexp"> <property name="format" value="// This code is ... otherwise it will think they are special instruction characters.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Oh, forgot to respond to @platinumazure, using the -o option and not using Ant’s output results in the same issue. The invalid characters are from it trying to convert the garbage characters in the image to XML.
@not-an-aardvark thanks for that clarification. That explains the issue. 👍
It looks like the conclusion was that this is not a bug in ESLint, so I’m going to close this issue.