관리-도구
편집 파일: base_reporter.cpython-311.pyc
� �܋f� � � � d dl mZ d dlZd dlZd dlZd dlmZmZ d dlmZ d dl m Z d dlmZ d dl mZ erd dlmZ d d lmZ G d � d� � ZdS )� )�annotationsN)� TYPE_CHECKING�TextIO)�warn)�Message)�Text)�LinterStats)�PyLinter)�Sectionc �j � e Zd ZdZdZdZ d d!d �Zd"d�Zd d!d �Zd#d$d�Z d%d�Z d%d�Zd&d�Zd'd�Z d(d�ZdS ))�BaseReporterzTBase class for reporters. symbols: show short symbolic names for messages. � �baseN�output� TextIO | None�return�Nonec �� � t | dd � � rt j dt d�� � | d| _ |pt j | _ g | _ t j � � t j z | _ d S )N�__implements__z�Using the __implements__ inheritance pattern for BaseReporter is no longer supported. Child classes should only inherit BaseReporter� �� stacklevelr ) �getattr�warningsr �DeprecationWarning�section�sys�stdout�out�messages�os�getcwd�sep�path_strip_prefix��selfr s �o/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib/python3.11/site-packages/pylint/reporters/base_reporter.py�__init__zBaseReporter.__init__! s{ � ��4�)�4�0�0� ��M�S�"�� � � � � �����!�/�S�Z���')�� �!#����r�v�!5����� �msgr c �: � | j � |� � dS )z3Handle a new message triggered on the current file.N)r �append)r&