bg>ddlZddlZddlmZGddeZdS)N) FormatterceZdZdZddZdS)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 hd}g}t|jD]}||jjkr~|jj}||jjt jjd}tj dd|}d|z}| |d} | | ||jj|jj |j |j |jj|jdzd|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 rstripjoin) selfsummaryrprofilecur_locoutputr module_nameheadertemplates m/builddir/build/BUILD/cloudlinux-venv-1.0.7/venv/lib/python3.11/site-packages/prospector/formatters/pylint.pyrenderzPylintFormatter.renders(dm,,  G'*///!*/"oog.>.CDDLLRW[Z]^^  f%:B LL 2[@ f%%% ]H MM OOG,<,ABB#,1%n#L ' 0 9&4466     yy   N)TTF)__name__ __module__ __qualname____doc__r%r&r$rrs2 !!!!!!r&r)rrprospector.formatters.baserrr+r&r$r-s] 000000&!&!&!&!&!i&!&!&!&!&!r&