astj / flake8-formatter-junit-xml

JUnit XML formatter for flake8
MIT License
17 stars 10 forks source link

failed due to an exception: org.xml.sax.SAXException: Input stream is not a Checkstyle file. #13

Open Formartha opened 5 years ago

Formartha commented 5 years ago

Hello, I'm using Jenkins plugin (Checkstyle) in order to publish the code style with using jenkins. however, I'm getting the following error:

failed due to an exception: org.xml.sax.SAXException: Input stream is not a Checkstyle file.

Any idea what causes it?

astj commented 5 years ago

Hi @Formartha .

Checkstyle parses Checkstyle XML, not JUnit XML which is composed by this formatter. If you need Checkstyle format, maybe you can use something like https://github.com/d9magai/flake8-checkstyle, though I haven't tried it.