Skip to content

Commit 5f26f32

Browse files
authored
Ref #10260 -- Add documentation for the github output format (#10272)
1 parent 4d35cba commit 5f26f32

File tree

3 files changed

+13
-6
lines changed

3 files changed

+13
-6
lines changed

doc/user_guide/configuration/all-options.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ Standard Checkers
155155

156156
--output-format
157157
"""""""""""""""
158-
*Set the output format. Available formats are: text, parseable, colorized, json2 (improved json format), json (old json format) and msvs (visual studio). You can also give a reporter class, e.g. mypackage.mymodule.MyReporterClass.*
158+
*Set the output format. Available formats are: 'text', 'parseable', 'colorized', 'json2' (improved json format), 'json' (old json format), msvs (visual studio) and 'github' (GitHub actions). You can also give a reporter class, e.g. mypackage.mymodule.MyReporterClass.*
159159

160160
**Default:** ``text``
161161

doc/user_guide/usage/output.rst

+9-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,15 @@ Output by default is written to stdout. The simplest way to output to a file is
88
with the ``--output=<filename>`` option.
99

1010
The default format for the output is raw text. You can change this by passing
11-
pylint the ``--output-format=<value>`` option. Possible values are: ``text``, ``json``,
12-
``parseable``, ``colorized`` and ``msvs`` (for Visual Studio).
11+
pylint the ``--output-format=<value>`` option. Possible values are:
12+
13+
* ``text``
14+
* ``parseable``
15+
* ``colorized``
16+
* ``json2``: improved json format
17+
* ``json``: old json format
18+
* ``msvs``: visual studio
19+
* ``github``: `GitHub action messages <https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/workflow-commands-for-github-actions>`_
1320

1421
Multiple output formats can be used at the same time by passing
1522
a comma-separated list of formats to ``--output-format``.

pylint/lint/base_options.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -102,9 +102,9 @@ def _make_linter_options(linter: PyLinter) -> Options:
102102
"metavar": "<format>",
103103
"short": "f",
104104
"group": "Reports",
105-
"help": "Set the output format. Available formats are: text, "
106-
"parseable, colorized, json2 (improved json format), json "
107-
"(old json format) and msvs (visual studio). "
105+
"help": "Set the output format. Available formats are: 'text', "
106+
"'parseable', 'colorized', 'json2' (improved json format), 'json' "
107+
"(old json format), msvs (visual studio) and 'github' (GitHub actions). "
108108
"You can also give a reporter class, e.g. mypackage.mymodule."
109109
"MyReporterClass.",
110110
"kwargs": {"linter": linter},

0 commit comments

Comments
 (0)