Delphi-RAG-Lint

YADF options

Max line length

Since: 1.0.0.0 · Default: 180 · INI key: MaxLen · CLI flag: --max-len

Sets the column at which YADF starts wrapping a line. A line longer than this value is broken at the safest available point (after a comma, before an operator) when Reflow long lines is on.

When it does not apply

Lines that contain a string literal or a // line comment may run past the limit. Breaking inside a literal would change what the program does, so YADF leaves those lines alone by design.

Example

With MaxLen=60 a long call is wrapped:

Result:= DoSomething(FirstArgument, SecondArgument, ThirdArgument, FourthArgument);

becomes

Result:= DoSomething(FirstArgument, SecondArgument,
  ThirdArgument, FourthArgument);