bg\PddlmZddlZddlZdZddZddZdZeZdS)) defaultdictN)blend BLEND_COMBOSc< ptdttD}g}|D]_}|j|jf}d}t D]&\ }||vrd}| |'|s||`t |D]l\ }t|dkr| fd|d|vr||d|ddD] } d| _ md |DS) z Given a list of messages on the same line, blend them together so that we end up with one message per actual problem. Note that we can still return more than one message here if there are two or more different errors for the line. cg|]}gSr).0_s c/builddir/build/BUILD/cloudlinux-venv-1.0.7/venv/lib/python3.11/site-packages/prospector/blender.py zblend_line..s888!2888FTrcR|j|jfSN)indexsourcecode)msgblend_combo_idx blend_comboss r zblend_line..9s(L9??SX&r )keyNc4g|]}t|dd|S)usedF)getattr)r ms r r zblend_line..Ms) @ @ @!ga&?&? @A @ @ @r ) rrangelenrr enumerateappendsortr) messagesr blend_listsblendedmessagerfound blend_combo blend_listnow_usedrs ` @r blend_liner*s /.Ts{4'8'8r )rrlocationpathliner valuesr*)r"r msgs_groupedr%outby_linemessages_on_lines r rrPs/> ' 0 0 > >  :. == =CC > Jr c2tjtjtd}|dg}g}|D]B}g}|D]}||z }|t|Ct|S)Nzblender_combinations.yaml combinations) yaml safe_load pkg_resourcesresource_string__name__getitemsr tuple)combosdefaultscombotoblendrs r get_default_blend_combinationsrDds ^M9(D_`` a aF ZZ + +FH(( # #C syy{{ "GGg'''' ??r r) collectionsrr:r8__all__r*rrDrrr r rGs$#####   ;A;A;A;A|(   .-// r