-LtnddlmZddlmZddlmZddlmZdeedeedeefdZd S) )Path)List)Message)get_suppressions filepathsmessagesreturncnt||\}}}g}|D]}t|jj}|jdkr |jdvr0||vr5||vr|jj||vrN||vr4|jj||vr |j|||jjvr|||S)a This method post-processes all messages output by all tools, in order to filter out any based on the overall output. The main aim currently is to use information about messages suppressed by pylint due to inline comments, and use that to suppress messages from other tools representing the same problem. For example: import banana # pylint:disable=unused-import In this situation, pylint will not warn about an unused import as there is inline configuration to disable the warning. Pyflakes will still raise that error, however, because it does not understand pylint disabling messages. This method uses the information about suppressed messages from pylint to squash the unwanted redundant error from pyflakes and frosted. pylint)zsuppressed-messagez file-ignored)rrlocationpathsourcecodelineappend)rrpaths_to_ignorelines_to_ignoremessages_to_ignorefilteredmessagerelative_message_paths g/builddir/build/BUILD/cloudlinux-venv-1.0.10/venv/lib/python3.11/site-packages/prospector/postfilter.pyfilter_messagesrs&X % %',; + +   !O 3 3  !O 3 3$8M(NNN !$6 6 6$(:;P(QQQ<#56K#LWM]Mb#ccc     ON) pathlibrtypingrprospector.messagerprospector.suppressionrrrrr s&&&&&&3333332tDz2T']2tG}222222r