def METHOD_NAME(txt, severity):
    """
    http://cppcheck.sourceforge.net/devinfo/doxyoutput/classSeverity.html
    enum:
        none, error, warning, style, performance,
        portability, information, debug
    """
    if severity == "none":
        return txt
    if severity == "error":
        return red(txt)
    if severity == "warning":
        return yellow(txt)
    if severity == 'style':
        return blue(txt)
    if severity == "performance":
        return cyan(txt)
    if severity == "portability":
        return magenta(txt)
    if severity == "information":
        return green(txt)
    if severity == "debug":
        return txt
    return txt