Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/caarmen/pylint-json2checkstyle

A Pylint plugin and command line tool to produce Pylint reports in checkstyle format.
https://github.com/caarmen/pylint-json2checkstyle

pylint-plugin python

Last synced: 11 days ago
JSON representation

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

Awesome Lists containing this project

README

        

# 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](https://github.com/Exirel/pylint-json2html) project.

[![GitHub license][license-image]][license-url]
[![GitHub-Actions][gh-image]][gh-url]
[![pyversion][pyversion-image]][pyversion-url]
[![pypi][pypi-image]][pypi-url]

[license-image]: https://img.shields.io/badge/license-MIT-lightgrey.svg?maxAge=2592000
[license-url]: https://raw.githubusercontent.com/caarmen/pylint-json2checkstyle/main/LICENSE
[gh-image]: https://img.shields.io/github/actions/workflow/status/caarmen/pylint-json2checkstyle/tests.yml?branch=main
[gh-url]: https://github.com/caarmen/pylint-json2checkstyle/actions/workflows/tests.yml?query=branch%3Amain
[pyversion-image]: https://img.shields.io/pypi/pyversions/pylint-json2checkstyle
[pyversion-url]: https://pypi.org/project/pylint-json2checkstyle/
[pypi-image]: https://img.shields.io/pypi/v/pylint-json2checkstyle.svg?style=flat
[pypi-url]: https://pypi.org/project/pylint-json2checkstyle/

## 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](https://github.com/jwgmeligmeyling/checkstyle-github-action) reads a checkstyle report and adds
annotations to PRs.