Hacked By AnonymousFox

Current Path : /opt/cloudlinux/venv/lib64/python3.11/site-packages/pylint/utils/__pycache__/
Upload File :
Current File : //opt/cloudlinux/venv/lib64/python3.11/site-packages/pylint/utils/__pycache__/docs.cpython-311.pyc

�

�܋f���dZddlmZddlZddlZddlmZmZmZddl	m
Z
ddlmZm
Z
erddlmZdd�Zdd�Zddd�Zejdfdd�ZdS)z?Various helper functions to create the docs of a linter object.�)�annotationsN)�
TYPE_CHECKING�Any�TextIO)�MAIN_CHECKER_NAME)�get_rst_section�
get_rst_title)�PyLinter�linterr
�return�dict[str, dict[str, Any]]c	�"�i}|���D�]v}|j}|tk�r`	|||d<tj��5tjdt���||dxx|���z
cc<ddd��n#1swxYwY||d�|j	��||dxx|j
z
cc<��#t$r�tj��5tjdt���|t|�����t|j	��t|j
��d�||<ddd��n#1swxYwYY��rwxYw��x|S)	z,Get info from a checker and handle KeyError.�checker�ignore��category�optionsN�msgs�reports)rrrr)�get_checkers�namer�warnings�catch_warnings�filterwarnings�DeprecationWarning�options_and_values�updaterr�KeyError�list�dict)r�
by_checkerrrs    �b/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib/python3.11/site-packages/pylint/utils/docs.py�_get_checkers_infosr#s4��,.�J��&�&�(�(�����|���$�$�$�
�.5�
�4� ��+��,�.�.�P�P��+�H�?Q�R�R�R�R��t�$�Y�/�/�/�7�3M�3M�3O�3O�O�/�/�/�P�P�P�P�P�P�P�P�P�P�P����P�P�P�P��4� ��(�/�/���=�=�=��4� ��+�+�+�w��>�+�+�+�+���
�
�
��,�.�.����+�H�?Q�R�R�R�R�#*�#'��(B�(B�(D�(D�#E�#E� $�W�\� 2� 2�#'���#8�#8�	(�(�J�t�$���������������������
����%�"�s\�C)�AB�C)�B 	� C)�#B 	�$AC)�)F
�A)E;�/F
�;E?�?F
�E?�F
�	F
�strc��tdd��}|dz
}|���D]�}|jtkr�|jr�tj��5tjdt���|�	��D]a\}}|�d}n|�
���d�}|t|d	��z
}t|t��sJ�|td|���d
�z
}�b	ddd��n#1swxYwY��|S)z'Get documentation for the main checker.z"Pylint global options and switches�-z/
Pylint provides global options and switches.

rrNzGeneral optionsz options�~�
)r	rrrrrrrr�options_by_section�
capitalize�
isinstancerr)r�resultr�sectionr�titles      r"�!_get_global_options_documentationr/-s���
�?��
E�
E�F�
���F��&�&�(�(�D�D���<�,�,�,���,��(�*�*�	
D�	
D��'��;M�N�N�N�N�(/�(B�(B�(D�(D�D�D�$�G�W��� 1���#*�#5�#5�#7�#7� A� A� A���m�E�3�7�7�7�F�%�g�t�4�4�4�4�4����w�!?�!?�C�C�C�C�F�F�D�	
D�	
D�	
D�	
D�	
D�	
D�	
D�	
D�	
D�	
D�	
D����	
D�	
D�	
D�	
D���Ms�BC5�5C9	�<C9	T�show_options�boolc���|rt|��}nd}|tdd��z
}|dz
}t|��}t|��D])}||}|d}|d=||jdi|�d|i��z
}�*|S)z*Get documentation for individual checkers.�z%Pylint checkers' options and switchesr&z�
Pylint checkers can provide three set of features:

* options that control their execution,
* messages that they can raise,
* reports that they can generate.

Below is a list of all checkers and their features.

rr0�)r/r	r#�sorted�get_full_documentation)rr0r,r!�checker_name�informationrs       r"�_get_checkers_documentationr9Cs�����2�6�:�:�����
�m�C�S�I�I�I�F�
�
�
�F�%�V�,�,�J��z�*�*�
�
�� ��.���i�(���	�"��0�'�0�
�
��
�
�(4�
�
�
�	
����M��streamr�Nonec�V�tt||���dd�|���dS)z+Output a full documentation in ReST format.)r0N���)�file)�printr9)rr;r0s   r"�print_full_documentationrAasA��
�#�F��F�F�F�s��s�K�RX������r:)rr
rr
)rr
rr$)T)rr
r0r1rr$)rr
r;rr0r1rr<)�__doc__�
__future__r�sysr�typingrrr�pylint.constantsr�pylint.utils.utilsrr	�pylint.lint.pylinterr
r#r/r9�stdoutrAr4r:r"�<module>rJs��
F�E�"�"�"�"�"�"�
�
�
�
�����-�-�-�-�-�-�-�-�-�-�.�.�.�.�.�.�=�=�=�=�=�=�=�=��.�-�-�-�-�-�-�����2����,�����>(+�z��������r:

Hacked By AnonymousFox1.0, Coded By AnonymousFox