Skip to content

Allow parseable output in parallel of human-readable output #1798

@exhuma

Description

@exhuma

Current behavior

Currently, when selecting a format like JSON using the -f argument, it will replace the "normal" output.

Expected behavior

It would be nice to have it generate an output-file instead so the normal human-readable output is still there. This makes sens in a CI environment like travis or gitlab where you can see the stdout and stderr of each job but where you also want to parse the output.

Allowing multiple output formats would solve this. Maybe with a new CLI argument? Or by adding a separator to the current value? For example:

pylint -f json:output.json   # Would redirect the JSON data to output.json and still write the normal report to stdout

pylint --version output

pylint 1.8.1,
astroid 1.6.0
Python 3.5.2 (default, Nov 23 2017, 16:37:01)
[GCC 5.4.0 20160609]

Metadata

Metadata

Assignees

No one assigned

    Labels

    Enhancement ✨Improvement to a componentMinor 💅Polishing pylint is always nice

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions