bg>ddlZddlZddlmZGddeZdS)N) FormatterceZdZdZddZdS)VSCodeFormatterz^ This formatter outputs messages in the same way as vscode prospector linter expects. TFc (d}g}t|jD]}||jjkr~|jj}||jjt jjd}tj dd|}d|z}| |d} | | |jj |jj |j |j|jdzd|S)N.z(\.__init__)?\.py$z************* Module %sz?%(line)s,%(character)s,%(code)s,%(code)s:%(source)s %(message)s)line charactersourcecodemessage )sortedmessageslocationpath _make_pathreplaceossepresubappendr r r r r stripjoin) selfsummaryrprofilecur_locoutputr module_nameheadertemplates m/builddir/build/BUILD/cloudlinux-venv-1.0.7/venv/lib/python3.11/site-packages/prospector/formatters/vscode.pyrenderzVSCodeFormatter.render sdm,,  G'*///!*/"oog.>.CDDLLRW[Z]^^  f%:B LL 2[@ f%%%XH MM#,1!(!1!;%n#L&4466     yy   N)TTF)__name__ __module__ __qualname____doc__r%r&r$rrs2!!!!!!r&r)rrprospector.formatters.baserrr+r&r$r-s] 000000 ! ! ! ! !i ! ! ! ! !r&