관리-도구
편집 파일: json_reporter.cpython-311.pyc
� �܋f� � �: � d Z ddlmZ ddlZddlZddlmZmZ ddlm Z ddl mZ ddlm Z ddlmZ ej d k rdd lmZ ndd lmZ erddlmZ ddlmZ ed eeeeeee ee eeeed�� � Z G d� de � � Z G d� de� � Zdd�ZdS )zJSON reporter.� )�annotationsN)� TYPE_CHECKING�Optional)� UNDEFINED)�Message)�BaseReporter)�MessageLocationTuple)� � )� TypedDict)�PyLinter)�Section� OldJsonExport��type�module�obj�line�column�endLine� endColumn�path�symbol�message� message-idc �b � e Zd ZdZdZdZdd�Zdd �Zdd �Ze dd�� � Z e dd�� � ZdS )�BaseJSONReporterz$Report messages and layouts in JSON.�json�layout�Section | None�return�Nonec � � � � fd�� j D � � }t t j |d�� � � j �� � dS )zLaunch layouts display.c �: �� g | ]}�� |� � ��S � )� serialize)�.0r �selfs ��o/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib/python3.11/site-packages/pylint/reporters/json_reporter.py� <listcomp>z5BaseJSONReporter.display_messages.<locals>.<listcomp>6 s% �� �N�N�N�W�����0�0�N�N�N� � )�indent)�fileN)�messages�printr �dumps�out)r( r � json_dumpables ` r) �display_messagesz!BaseJSONReporter.display_messages4 sH �� �N�N�N�N�� �N�N�N� � �d�j��q�1�1�1���A�A�A�A�A�Ar+ r c � � dS )z#Don't do anything in this reporter.Nr% �r( r s r) �display_reportsz BaseJSONReporter.display_reports9 � � � � r+ c � � dS )zDo nothing.Nr% r6 s r) �_displayzBaseJSONReporter._display<