Your IP : 216.73.216.196
�
�� Uc @ s d d l m Z d � Z d S( i����( t get_suppressionsc C s t | | | � \ } } } g } x� | D]� } | j d k rR | j d k rR q( n | j j | k rj q( n | j j | k r� | j j | | j j k r� q( q� n | j j | k r� | j j | | j j k r� | j | | j j | j j k r� q( q� q� n | j | � q( W| S( s
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.
t pylints suppressed-message( s suppressed-message( R t sourcet codet locationt patht linet append( t relative_filepathst roott messagest paths_to_ignoret lines_to_ignoret messages_to_ignoret filteredt message( ( sF /opt/alt/python27/lib/python2.7/site-packages/prospector/postfilter.pyt filter_messages s
#N( t prospector.suppressionR R ( ( ( sF /opt/alt/python27/lib/python2.7/site-packages/prospector/postfilter.pyt <module> s