':type show_confidence: bool
:rtype: str'

def format(self, show_confidence=False):

    if self.code:
        msg = ('%s    %s' % (self.code, self.message))
    else:
        msg = self.message
    if (show_confidence and (self.confidence is not None)):
        msg += ('    (%d%%)' % self.confidence)
    return ('%s:%s:%s:    %s' % (self.path, self.line, self.column, msg))
