3
tûœ]É  ã               @   s8   d Z ddlmZmZ ddlmZ dd„ Zdd„ ZdZd
S )a@  utilities methods and classes for checkers

Base id of standard checkers (used in msg and report ids):
01: base
02: classes
03: format
04: import
05: misc
06: variables
07: exceptions
08: similar
09: design_analysis
10: newstyle
11: typecheck
12: logging
13: string_format
14: string_constant
15: stdlib
16: python3
17: refactoring
18-50: not yet used: reserved for future internal checkers.
51-99: perhaps used: reserved for external checkers

The raw_metrics checker has no number associated since it doesn't emit any
messages nor reports. XXX not true, emit a 07 report !

é    )ÚBaseCheckerÚBaseTokenChecker)Úregister_pluginsc             C   sP   g }xF|D ]>}| | }t |tƒr(d| nt|ƒ}||jddƒ|ddf7 }q
W |S )zžget values listed in <columns> from <stats> and <old_stats>,
    and return a formated list of values, designed to be given to a
    ureport.Table object
    z%.3fÚ_ú ZNC)Ú
isinstanceÚfloatÚstrÚreplace)Ústatsr   ÚcolumnsÚlinesZm_typeÚnew© r   ú:/tmp/pip-build-fn42xldr/pylint/pylint/checkers/__init__.pyÚtable_lines_from_stats.   s    
r   c             C   s   t | td ƒ dS )z0initialize linter with checkers in this package r   N)r   Ú__path__)Zlinterr   r   r   Ú
initialize;   s    r   r   r   N)r   r   r   )	Ú__doc__Zpylint.checkers.base_checkerr   r   Zpylint.utilsr   r   r   Ú__all__r   r   r   r   Ú<module>(   s
   