class Formatter(object):

    def format(self, match):
        formatstr = "[{0}] {1}\n{2}:{3}\n{4}\n"
        return formatstr.format(match.rule.id,
                                match.message,
                                match.filename,
                                match.linenumber,
                                match.line)


class QuietFormatter(object):

    def format(self, match):
        formatstr = "[{0}] {1}:{2}"
        return formatstr.format(match.rule.id, match.filename,
                                match.linenumber)


class ParseableFormatter(object):

    def format(self, match):
        formatstr = "{0}:{1}: [{2}] {3}"
        return formatstr.format(match.filename,
                                match.linenumber,
                                match.rule.id,
                                match.message,
                                )

class Formatter(object):

    def format(self, match):
        formatstr = u"[{0}] {1}\n{2}:{3}\n{4}\n"
        return formatstr.format(match.rule.id,
                                match.message,
                                match.filename,
                                match.linenumber,
                                match.line)


class QuietFormatter(object):

    def format(self, match):
        formatstr = u"[{0}] {1}:{2}"
        return formatstr.format(match.rule.id, match.filename,
                                match.linenumber)


class ParseableFormatter(object):

    def format(self, match):
        formatstr = u"{0}:{1}: [{2}] {3}"
        return formatstr.format(match.filename,
                                match.linenumber,
                                match.rule.id,
                                match.message,
                                )

Fix crash tasks with unicode string name (like name: héhé).
Fix crash tasks with unicode string name (like name: héhé).
