Lean4
/-- Possible errors that text-based linters can report. -/
-- We collect these in one inductive type to centralise error reporting.
inductive StyleError where/-- The bare string "Adaptation note" (or variants thereof):
instead, the #adaptation_note command should be used. -/
| adaptationNote/-- A line ends with windows line endings (\r\n) instead of unix ones (\n). -/
| windowsLineEnding/-- A line contains trailing whitespace. -/
| trailingWhitespace/-- A line contains a space before a semicolon -/
| semicolon
deriving BEq