no-discarded-validation-result
Consume a value-producing validator's result instead of relying on its exceptions.
Why
Discarding a conversion's returned value makes validation an implicit exception side effect. The caller can continue with unvalidated or unnormalized inputs even after constructing a checked replacement.
Fix
Use the checked result in the following operation, or expose a separate validation command returning None. Preserve exception behavior; do not delete the call or add a dummy assignment.
Examples
def checked_count(raw: str) -> int: if not raw: raise ValueError("empty count") return int(raw)
def save(raw: str) -> None: checked_count(raw)def checked_count(raw: str) -> int: if not raw: raise ValueError("empty count") return int(raw)
def save(raw: str) -> int: return checked_count(raw)