@classmethod
def create_from(cls, error):
    """Create a Statistic from a :class:`flake8.style_guide.Violation`."""
    return cls(error_code=error.code, filename=error.filename, message=
        error.text, count=0)
