}PD< > d dl Z d dlZd dlmZ G d de ZdS ) N) Formatterc e Zd ZdZddZdS )PylintFormatterz This formatter outputs messages in the same way as pylint -f parseable , which is used by several tools to parse pylint output. This formatter is therefore a compatibility shim between tools built on top of pylint and prospector itself. TFc h d }g }t | j D ]}||j j k r~|j j }| |j j t j j d }t j dd| }d|z }| | d} | | | |j j |j j |j |j |j j |j dz d | S )N.z(\.__init__)?\.py$ z************* Module %szC%(path)s:%(line)s: [%(code)s(%(source)s), %(function)s] %(message)s)pathlinesourcecodefunctionmessage )sortedmessageslocationr _make_pathreplaceossepresubappendr r r r r stripjoin) selfsummaryr profilecur_locoutputr module_nameheadertemplates n/builddir/build/BUILD/cloudlinux-venv-1.0.10/venv/lib/python3.11/site-packages/prospector/formatters/pylint.pyrenderzPylintFormatter.render s( dm,, G'*///!*/"oog.>.CDDLLRW[Z]^^ f%:BLL2[@ f%%% ]HMM OOG,<,ABB#,1%n#L ' 0 9&4466 yy N)TTF)__name__ __module____qualname____doc__r% r&