pylint/message/message_handler_mix_in.py
def is_message_enabled(self, msg_descr, line=None, confidence=None):
        """return true if the message associated to the given message id is
        enabled

        msgid may be either a numeric or symbolic message id.
        """
        if self.config.confidence and confidence:
            if confidence.name not in self.config.confidence:
                return False
        try:
            message_definitions = self.msgs_store.get_message_definitions(msg_descr)
            msgids = [md.msgid for md in message_definitions]
        except UnknownMessageError:
            # The linter checks for messages that are not registered
            # due to version mismatch, just treat them as message IDs
            # for now.
            msgids = [msg_descr]
        for msgid in msgids:
            if self.is_one_message_enabled(msgid, line):
                return True
        return False
def is_message_enabled(self, msg_descr, line=None, confidence=None):
        """return true if the message associated to the given message id is
        enabled

        msgid may be either a numeric or symbolic message id.
        """
        if self.config.confidence and confidence:
            if confidence.name not in self.config.confidence:
                return False
        try:
            message_definitions = self.msgs_store.get_message_definitions(msg_descr)
            msgids = [md.msgid for md in message_definitions]
        except UnknownMessageError:
            # The linter checks for messages that are not registered
            # due to version mismatch, just treat them as message IDs
            # for now.
            msgids = [msg_descr]
        for msgid in msgids:
            if self.is_one_message_enabled(msgid, line):
                return True
        return False
def is_message_enabled ( self , msg_descr , line = None , confidence = None ) : if self . config . confidence and confidence : if confidence . name not in self . config . confidence : return False try : message_definitions = self . msgs_store . get_message_definitions ( msg_descr ) msgids = [ md . msgid for md in message_definitions ] except UnknownMessageError : # The linter checks for messages that are not registered # due to version mismatch, just treat them as message IDs # for now. msgids = [ msg_descr ] for msgid in msgids : if self . is_one_message_enabled ( msgid , line ) : return True return False
return true if the message associated to the given message id is
        enabled

        msgid may be either a numeric or symbolic message id.
return true if the message associated to the given message id is enabled