
    8@d                     l    d dl Z d dlZd dlZd dlmZmZ  ej        e          ZdZ	dZ
ed             ZdS )    N)hookimpllsp	threshold   c                 N   |                     d          5  |                     d|j                                      t          t
                    }t                              d|           	 t          |j	        |j        dt          j                  }n# t          $ r Y d d d            d S w xY wt          j                    }|                    ||           g }|j                                        D ]}|                                |k    r}|                    d|j        dz
  |j        d|j        dz
  t-          |j        |j                           ddd	|                                d
|dt0          j        j        d           |cd d d            S # 1 swxY w Y   d S )Nzlint: mccabemccabe)document_pathz&Running mccabe lint with threshold: %sexec   )line	character)startendz Cyclomatic complexity too high: z (threshold ))sourcerangemessageseverity)report_progressplugin_settingspathget	THRESHOLDDEFAULT_THRESHOLDlogdebugcompiler   astPyCF_ONLY_ASTSyntaxErrorr   PathGraphingAstVisitorpreordergraphsvalues
complexityappendlinenocolumnlenlinesr   DiagnosticSeverityWarning)config	workspacedocumentr   treevisitordiagsgraphs           9lib/python3.11/site-packages/pylsp/plugins/mccabe_lint.py
pylsp_lintr5      s    		"	">	2	2  **88=*QQUUV_arss			:IFFF	8?HM63CTUUDD 	 	 	       	 /11w'''^**,, 
	 
	E!!Y..&*/,*:!V!V(-q(8s8>Z_ZfKgGhGhii   W\VfVfVhVhVhVhjsjsjst # 6 >     5                 s7   AF-&BF
B-F,B--C FF!F)r   loggingr   pylspr   r   	getLogger__name__r   r   r   r5        r4   <module>r<      s|    


          g!!	  
  
  r;   