관리-도구
편집 파일: collector.cpython-311.pyc
� �܋f6 � �n � d dl mZ d dlmZ d dlmZ d dlmZ d dl m Z d dlmZmZ G d� de � � Z d S ) � )�StringIO)�List)�UnknownMessageError)�Message)�BaseReporter)�Locationr c �H � e Zd ZdZd� Zdeddfd�Zd d�Zdee fd�Z dS ) � Collector� collectorc �f � t j | t � � �� � || _ g | _ d S )N)�output)r �__init__r �_message_store� _messages)�self� message_stores �r/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib/python3.11/site-packages/prospector/tools/pylint/collector.pyr zCollector.__init__ s/ � ���d�8�:�:�6�6�6�6�+�������� �msg�returnNc �J � t |j |j |j |j |j � � } | j � |j � � }|d j }n# t $ r |j }Y nw xY wt d|||j � � }| j � |� � d S )Nr �pylint)r �abspath�module�obj�line�columnr �get_message_definitions�msg_id�symbolr r r r �append)r r �loc�msg_data� msg_symbol�messages r �handle_messagezCollector.handle_message s� � ��s�{�C�J�����3�:�N�N�� ,��*�B�B�3�:�N�N�H� "�!��+�J�J�� #� $� $� $� ��J�J�J� $���� �(�J��S�W�=�=������g�&�&�&�&�&s �A �A/�.A/c � � d S �N� )r �layouts r �_displayzCollector._display% s � ��r c � � | j S r( )r )r s r �get_messageszCollector.get_messages( s � ��~�r )r N)�__name__� __module__�__qualname__�namer � PylintMessager&