eslint: Illegal XML characters output in checkstyle format
Jenkins 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/**/*
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 19 (11 by maintainers)
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. 👍