style.Violation

A single style violation, located by line so the runner can scope it to the edit.

Usage

Source

style.Violation(
    line,
    label,
)

Parameter Attributes

line: int
label: str

Attributes

line: int

1-based line number of the offending construct in the post-edit file.

label: str
Short human-readable description, rendered as "{label} (line {line})".