§
    ÷yIfä
  ã                  óŒ   — d dl mZ d dlZd dlZd dlmZmZ d dlmZ d dl	m
Z
 d dlmZ erd dlmZ d dl	mZ  G d	„ d
¦  «        ZdS )é    )ÚannotationsN)ÚTYPE_CHECKINGÚTextIO)ÚMessage)ÚText)ÚLinterStats)ÚPyLinter)ÚSectionc                  ó`   — e Zd ZdZdZdZ	 dd d	„Zd!d„Zd"d#d„Zd$d„Z	d$d„Z
d%d„Zd&d„Zd'd„ZdS )(ÚBaseReporterzTBase class for reporters.

    symbols: show short symbolic names for messages.
    Ú ÚbaseNÚoutputúTextIO | NoneÚreturnÚNonec                ó–   — |  d| _         |pt          j        | _        g | _        t          j        ¦   «         t
          j        z   | _        d S )Nr   )	ÚsectionÚsysÚstdoutÚoutÚmessagesÚosÚgetcwdÚsepÚpath_strip_prefix)Úselfr   s     úR/var/www/piapp/venv/lib/python3.11/site-packages/pylint/reporters/base_reporter.pyÚ__init__zBaseReporter.__init__   s?   € ØÐØˆŒØ!Ð/¥S¤ZˆŒØ')ˆŒå!#¤¡¤­r¬vÑ!5ˆÔÐÐó    Úmsgr   c                ó:   — | j                              |¦  «         dS )z3Handle a new message triggered on the current file.N)r   Úappend)r   r!   s     r   Úhandle_messagezBaseReporter.handle_message'   s   € àŒ×Ò˜SÑ!Ô!Ð!Ð!Ð!r    ÚstringÚstrc                ó2   — t          || j        ¬¦  «         dS )z"Write a line in the output buffer.)ÚfileN)Úprintr   )r   r%   s     r   ÚwritelnzBaseReporter.writeln+   s   € åˆf˜4œ8Ð$Ñ$Ô$Ð$Ð$Ð$r    Úlayoutr
   c                óF  — d| _         |j        r}t          |j        d         j        d         t          ¦  «        r0|j        d         j        d         xj        d|j        › d�z  c_        n"t          d|j        d         j        › �¦  «        ‚|                      |¦  «         dS )z0Display results encapsulated in the layout tree.r   z (ú)zIncorrect child for N)r   Ú	report_idÚ
isinstanceÚchildrenr   ÚdataÚ
ValueErrorÚ_display©r   r+   s     r   Údisplay_reportszBaseReporter.display_reports/   s¥   € àˆŒØÔð 	WÝ˜&œ/¨!Ô,Ô5°aÔ8½$Ñ?Ô?ð WØ” Ô"Ô+¨AÔ.Ð3Ô3Ð7O¸FÔ<LÐ7OÐ7OÐ7OÑOÐ3Ô3Ð3å Ð!U¸¼ÈÔ8JÔ8SÐ!UÐ!UÑVÔVÐVØ�Š�fÑÔÐÐÐr    c                ó   — t          ¦   «         ‚)zDisplay the layout.)ÚNotImplementedErrorr4   s     r   r3   zBaseReporter._display9   s   € å!Ñ#Ô#Ð#r    úSection | Nonec                ó   — dS )aœ  Hook for displaying the messages of the reporter.

        This will be called whenever the underlying messages
        needs to be displayed. For some reporters, it probably
        doesn't make sense to display messages as soon as they
        are available, so some mechanism of storing them could be used.
        This method can be implemented to display them after they've
        been aggregated.
        N© r4   s     r   Údisplay_messageszBaseReporter.display_messages=   ó   € € € r    ÚmoduleÚfilepathú
str | Nonec                ó   — dS )z0Hook called when a module starts to be analysed.Nr:   )r   r=   r>   s      r   Úon_set_current_modulez"BaseReporter.on_set_current_moduleJ   r<   r    Ústatsr   Úprevious_statsúLinterStats | Nonec                ó   — dS )z-Hook called when a module finished analyzing.Nr:   )r   rB   rC   s      r   Úon_closezBaseReporter.on_closeM   r<   r    )N)r   r   r   r   )r!   r   r   r   )r   )r%   r&   r   r   )r+   r
   r   r   )r+   r8   r   r   )r=   r&   r>   r?   r   r   )rB   r   rC   rD   r   r   )Ú__name__Ú
__module__Ú__qualname__Ú__doc__Ú	extensionÚnamer   r$   r*   r5   r3   r;   rA   rF   r:   r    r   r   r      s×   € € € € € ðð ð
 €Ià€DØð6ð 6ð 6ð 6ð 6ð"ð "ð "ð "ð%ð %ð %ð %ð %ðð ð ð ð$ð $ð $ð $ð	ð 	ð 	ð 	ð?ð ?ð ?ð ?ð<ð <ð <ð <ð <ð <r    r   )Ú
__future__r   r   r   Útypingr   r   Úpylint.messager   Úpylint.reporters.ureports.nodesr   Úpylint.utilsr   Úpylint.lint.pylinterr	   r
   r   r:   r    r   ú<module>rS      s×   ðð
 #Ð "Ð "Ð "Ð "Ð "à 	€	€	€	Ø 
€
€
€
Ø (Ð (Ð (Ð (Ð (Ð (Ð (Ð (à "Ð "Ð "Ð "Ð "Ð "Ø 0Ð 0Ð 0Ð 0Ð 0Ð 0Ø $Ð $Ð $Ð $Ð $Ð $àð 8Ø-Ð-Ð-Ð-Ð-Ð-Ø7Ð7Ð7Ð7Ð7Ð7ð><ð ><ð ><ð ><ð ><ñ ><ô ><ð ><ð ><ð ><r    