OwlCyberSecurity - MANAGER
Edit File: reports_handler_mix_in.cpython-311.pyc
� ������h�����������������������������d�dl�mZ�d�dlZd�dlmZ�d�dlmZmZmZm Z �d�dl mZ�d�dlm Z �d�dlmZ�d�dlmZ�erd�d lmZ�d�d lmZ�edee eeef������������������f���������Z�G�d��d ������������ZdS�)�����)�annotationsN)�MutableSequence)� TYPE_CHECKING�DefaultDict�List�Tuple)�EmptyReportError)�Section)�ReportsCallable)�LinterStats)�BaseChecker)�PyLinterr ���c�������������������J�����e�Zd�ZdZdd�Zdd�Zdd�Zdd�Zdd�Zd d�Z d!d�Z dS�)"�ReportsHandlerMixInzrA mix-in class containing all the reports and stats manipulation related methods for the main lint class. �return�Nonec�����������������P�����t����������j��������t����������������������|�_��������i�|�_��������d�S�)N)�collections�defaultdict�list�_reports�_reports_state��selfs��� �x/builddir/build/BUILD/cloudlinux-venv-1.0.8/venv/lib/python3.11/site-packages/pylint/reporters/reports_handler_mix_in.py�__init__zReportsHandlerMixIn.__init__���s"������%0�%<�T�%B�%B�� �/1����������MutableSequence[BaseChecker]c�����������������*�����t����������|�j��������������������S�)zReturn a list of reporters.)r���r���r���s��� r����report_orderz ReportsHandlerMixIn.report_order ���s�������D�M�"�"�"r����reportid�str�r_title�r_cbr����checkerr ���c�����������������t�����|������������������������������������}|�j��������|������������������������������|||f�������������dS�)z�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 N)�upperr����append)r���r!���r#���r$���r%���s��� r����register_reportz#ReportsHandlerMixIn.register_report$���s;��������>�>�#�#��� �g��%�%�x��$�&?�@�@�@�@�@r���c�����������������B�����|������������������������������������}d|�j��������|<���dS�)z"Enable the report of the given id.TN�r'���r����r���r!���s��� r���� enable_reportz!ReportsHandlerMixIn.enable_report1���s$�������>�>�#�#��(,���H�%�%�%r���c�����������������B�����|������������������������������������}d|�j��������|<���dS�)z#Disable the report of the given id.FNr+���r,���s��� r����disable_reportz"ReportsHandlerMixIn.disable_report6���s$�������>�>�#�#��(-���H�%�%�%r����boolc�����������������8�����|�j������������������������������|d������������S�)z:Is the report associated to the given identifier enabled ?T)r����getr,���s��� r����report_is_enabledz%ReportsHandlerMixIn.report_is_enabled;���s�������"�&�&�x��6�6�6r���r���r����statsr���� old_stats�LinterStats | Noner ���c�����������������V����t����������d|�j��������j����������d�������������}|������������������������������������D�]v}|�j��������|���������D�]f\��}}}|����������������������|������������s�t����������|������������} ��||||�������������n#�t����������$�r�Y��Fw�xY�w||_��������|���������������������|��������������g�w|S�)zRender registered reports.�Reportz statements analysed.) r ���r4���� statementr ���r���r3���r ���� report_idr(���) r���r4���r5����sectr%���r!���r#���r$����report_sects ��� r����make_reportsz ReportsHandlerMixIn.make_reports?���s���������x�D�J�$8�!O�!O�!O�P�P���(�(�*�*�� )�� )�G�+/�=��+A�� )�� )�'��'�4��-�-�h�7�7����%�g�.�.����D��e�Y�7�7�7�7��'��������H�����(0��%����K�(�(�(�(� )���s����- A;�; B�BN)r���r���)r���r���) r!���r"���r#���r"���r$���r���r%���r ���r���r���)r!���r"���r���r���)r!���r"���r���r0���)r���r���r4���r���r5���r6���r���r ���)�__name__� __module__�__qualname__�__doc__r���r ���r)���r-���r/���r3���r=�����r���r���r���r������s������������������2��2��2��2�#��#��#��#�A��A��A��A�-��-��-��-� .��.��.��.� 7��7��7��7�����������r���r���)� __future__r���r����collections.abcr����typingr���r���r���r����pylint.exceptionsr ����pylint.reporters.ureports.nodesr ���� pylint.typingr����pylint.utilsr����pylint.checkersr ����pylint.lint.pylinterr���r"����ReportsDictr���rB���r���r����<module>rM������s!���� �#��"��"��"��"��"����������+��+��+��+��+��+��:��:��:��:��:��:��:��:��:��:��:��:��.��.��.��.��.��.��3��3��3��3��3��3��)��)��)��)��)��)��$��$��$��$��$��$���.�+�+�+�+�+�+�-�-�-�-�-�-��-��e�C��o�4M�.N�)O�O�P��:��:��:��:��:��:��:��:��:��:r���