def METHOD_NAME(self, name, diagnosis, category=None, description=None, remediation=None, rawerror=None):
    """Register a warning for a diagnostic result."""
    self._diagnoses.append(
        self._result(
            self.DIAGNOSIS_WARNING,
            name,
            diagnosis,
            category=category,
            description=description,
            remediation=remediation,
            rawerror=rawerror,
        )
    )