pylint/message/message_definition.py
def format_help(self, checkerref=False):
        """return the help string for the given message id"""
        desc = self.descr
        if checkerref:
            desc += " This message belongs to the %s checker." % self.checker.name
        title = self.msg
        if self.symbol:
            msgid = "%s (%s)" % (self.symbol, self.msgid)
        else:
            msgid = self.msgid
        if self.minversion or self.maxversion:
            restr = []
            if self.minversion:
                restr.append("< %s" % ".".join([str(n) for n in self.minversion]))
            if self.maxversion:
                restr.append(">= %s" % ".".join([str(n) for n in self.maxversion]))
            restr = " or ".join(restr)
            if checkerref:
                desc += " It can't be emitted when using Python %s." % restr
            else:
                desc += " This message can't be emitted when using Python %s." % restr
        desc = normalize_text(" ".join(desc.split()), indent="  ")
        if title != "%s":
            title = title.splitlines()[0]

            return ":%s: *%s*\n%s" % (msgid, title.rstrip(" "), desc)
        return ":%s:\n%s" % (msgid, desc)
def format_help(self, checkerref=False):
        desc = self.descr
        if checkerref:
            desc += " This message belongs to the %s checker." % self.checker.name
        title = self.msg
        if self.symbol:
            msgid = "%s (%s)" % (self.symbol, self.msgid)
        else:
            msgid = self.msgid
        if self.minversion or self.maxversion:
            restr = []
            if self.minversion:
                restr.append("< %s" % ".".join([str(n) for n in self.minversion]))
            if self.maxversion:
                restr.append(">= %s" % ".".join([str(n) for n in self.maxversion]))
            restr = " or ".join(restr)
            if checkerref:
                desc += " It can't be emitted when using Python %s." % restr
            else:
                desc += " This message can't be emitted when using Python %s." % restr
        desc = normalize_text(" ".join(desc.split()), indent="  ")
        if title != "%s":
            title = title.splitlines()[0]

            return ":%s: *%s*\n%s" % (msgid, title.rstrip(" "), desc)
        return ":%s:\n%s" % (msgid, desc)
def format_help ( self , checkerref = False ) : desc = self . descr if checkerref : desc += " This message belongs to the %s checker." % self . checker . name title = self . msg if self . symbol : msgid = "%s (%s)" % ( self . symbol , self . msgid ) else : msgid = self . msgid if self . minversion or self . maxversion : restr = [ ] if self . minversion : restr . append ( "< %s" % "." . join ( [ str ( n ) for n in self . minversion ] ) ) if self . maxversion : restr . append ( ">= %s" % "." . join ( [ str ( n ) for n in self . maxversion ] ) ) restr = " or " . join ( restr ) if checkerref : desc += " It can't be emitted when using Python %s." % restr else : desc += " This message can't be emitted when using Python %s." % restr desc = normalize_text ( " " . join ( desc . split ( ) ) , indent = "  " ) if title != "%s" : title = title . splitlines ( ) [ 0 ] return ":%s: *%s*\n%s" % ( msgid , title . rstrip ( " " ) , desc ) return ":%s:\n%s" % ( msgid , desc )
return the help string for the given message id
return the help string for the given message id