Pylint: support xml output

Created on 25 Oct 2017  路  5Comments  路  Source: PyCQA/pylint

Current pylint does not support xml output. Is it possible to output the code analysis results in xml?

enhancement proposal

Most helpful comment

You could use pytest-pylint to run Pylint and use Pytest's --junit-xml option.

All 5 comments

Yes, this possible, see here

You'd need to implement your own reporter class, similarly to e.g. pylint.reporters.json.JSONReporter.

Pull requests are welcome!

I see no reason why we should support xml. If you need such output, it's possible to use a custom reporter or build something on top of the json reporter.

Most continuous integration platforms support the xUnit/JUnit XML or Cucumber JSON reporting formats for test results. Having this support would make it easy to integrate linting into the CI pipeline. Please reconsider.

You could use pytest-pylint to run Pylint and use Pytest's --junit-xml option.

Was this page helpful?
0 / 5 - 0 ratings