class documentation

class ReportsHandlerMixIn: (source)

Known subclasses: pylint.lint.PyLinter

View In Hierarchy

A mix-in class containing all the reports and stats manipulation related methods for the main lint class.

Method __init__ Undocumented
Method disable_report Disable the report of the given id.
Method enable_report Enable the report of the given id.
Method make_reports Render registered reports.
Method register_report Register a report.
Method report_is_enabled Is the report associated to the given identifier enabled ?
Method report_order Return a list of reporters.
Instance Variable _reports Undocumented
Instance Variable _reports_state Undocumented
def __init__(self): (source)
overridden in pylint.lint.PyLinter

Undocumented

def disable_report(self, reportid: str): (source)

Disable the report of the given id.

def enable_report(self, reportid: str): (source)

Enable the report of the given id.

def make_reports(self: PyLinter, stats: LinterStats, old_stats: LinterStats|None) -> Section: (source)

Render registered reports.

def register_report(self, reportid: str, r_title: str, r_cb: ReportsCallable, checker: BaseChecker): (source)

Register a report. :param reportid: The unique identifier for the report :param r_title: The report's title :param r_cb: The method to call to make the report :param checker: The checker defining the report

def report_is_enabled(self, reportid: str) -> bool: (source)

Is the report associated to the given identifier enabled ?

def report_order(self) -> MutableSequence[BaseChecker]: (source)
overridden in pylint.lint.PyLinter

Return a list of reporters.

_reports: ReportsDict = (source)

Undocumented

_reports_state: dict[str, bool] = (source)

Undocumented