blob: cf7b57576fdfde7d3aa90b4636ccf3a4eec9049e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
# Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
# For details: https://github.com/pylint-dev/pylint/blob/main/LICENSE
# Copyright (c) https://github.com/pylint-dev/pylint/blob/main/CONTRIBUTORS.txt
"""Utilities methods and classes for reporters."""
from __future__ import annotations
from typing import TYPE_CHECKING
from pylint import utils
from pylint.reporters.base_reporter import BaseReporter
from pylint.reporters.collecting_reporter import CollectingReporter
from pylint.reporters.json_reporter import JSONReporter
from pylint.reporters.multi_reporter import MultiReporter
from pylint.reporters.reports_handler_mix_in import ReportsHandlerMixIn
if TYPE_CHECKING:
from pylint.lint.pylinter import PyLinter
def initialize(linter: PyLinter) -> None:
"""Initialize linter with reporters in this package."""
utils.register_plugins(linter, __path__[0])
__all__ = [
"BaseReporter",
"ReportsHandlerMixIn",
"JSONReporter",
"CollectingReporter",
"MultiReporter",
]
|