Skip to content

A Pylint plugin and command line tool to produce Pylint reports in checkstyle format.

License

Notifications You must be signed in to change notification settings

caarmen/pylint-json2checkstyle

Repository files navigation

pylint-json2checkstyle

A Pylint plugin and command line tool to produce Pylint reports in checkstyle format.

This project is partially inspired from the pylint-json2html project.

GitHub license GitHub-Actions pyversion pypi

Usage:

As a command line tool

usage: pylint-json2checkstyle [-h] [-o checkstyle_output_file] [json_input_file]

Convert pylint json report to checkstyle

positional arguments:
  json_input_file       Pylint JSON report input file (or stdin)

optional arguments:
  -h, --help            show this help message and exit
  -o checkstyle_output_file, --output checkstyle_output_file
                        Checkstyle report output file (or stdout)

As a Pylint plugin:

pylint --load-plugins=pylint_json2checkstyle.checkstyle_reporter --output-format=checkstyle [pylint arguments ... ]

Why?

Checkstyle is a widely supported report format for code issues, with integrations available in CI environments.

For example, the Checkstyle GitHub Action reads a checkstyle report and adds annotations to PRs.

About

A Pylint plugin and command line tool to produce Pylint reports in checkstyle format.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages