Delphi-RAG-Lint

YADF options

Collapse short begin..end blocks

Since: 1.0.0.0 · Default: false · INI key: CollapseShortBlocks

Fold a short control-statement begin..end body onto one line when it fits MaxLen: an if/for/while/with/else header whose block holds only simple one-statement-per-line code becomes "if X then begin A := 1; B := 2; end;". Only pure simple-statement bodies fold -- a nested block, a multi-line statement, or any comment leaves the block expanded; routine bodies are never folded. Off by default.

  • Reflow long lines - Reflow lines that exceed MaxLen. When false, long lines are left as-is.
  • Trim trailing spaces - Trim trailing whitespace from every output line.
  • Max blank lines - Maximum consecutive blank lines kept in output. Excess blanks are collapsed.