Delphi-RAG-Lint

Articles

  • Twelve Bugs the Compiler Lets Through2026-12-04

    drag-lint 1.65 adds twelve on-by-default rules for Delphi mistakes that compile without a single warning: swapped FillChar arguments, a Byte loop counter, a thread configured after it started, SetFocus in OnCreate and eight more.

  • Finding the Enums Hiding in Your Database2026-12-03

    drag-lint 1.64 finds the columns, fields and properties that only ever hold a small closed set of codes, and turns them into Delphi enums with record helpers and DUnitX tests.

  • Integrating drag-lint With AI Coding Assistants2026-12-02

    An AI assistant that greps a Delphi code base reads comments, doc lines and look-alike names; one that asks the drag-lint index gets the resolved answer, and this is how we wire the two together.

  • A Master File for Your Field Metadata2026-11-30

    The Field Repository keeps the field facts of a Delphi and Firebird project in one SQLite file, drag-lint 1.61 carries grid bands and layout groups from that file into your forms, and releases expected within the next two to three weeks are planned to feed the IDE and lookup fields from it.

  • An API Reference from the Index2026-11-30

    drag-lint 1.60 writes a static API reference of a Delphi project from its index: a page per unit, class and interface with its DocInsight text, its members and a chart, and the same bytes every time for the same index.

  • Lint Only What Your Change Added2026-11-29

    A drag-lint baseline records the findings a Delphi project already has, so the next run reports only the findings your change added, on the command line and, since 1.57, in the IDE Structure form.

  • One Baseline, However You Type the Path2026-11-29

    Up to 1.58 a drag-lint baseline only matched when the file path was typed the same way it was written. 1.59 fingerprints one canonical path, so a baseline written by lint is honoured by lint-all, a full path and the IDE.

  • Two Locks Taken in Opposite Order2026-11-29

    drag-lint reports two places in a Delphi project that take the same two locks in opposite order, the classic deadlock that hangs a program with no exception and no log.

  • A Query Per Loop Iteration Is Now Reported by Default2026-11-27

    Since drag-lint 1.55.0-alpha the query-in-loop rule is on by default, so a Delphi loop that runs one database query per iteration is reported without any setting.

  • Find the Routines That Nest Too Deep2026-11-18

    To list the Delphi routines whose control flow nests too deep, drag-lint has a rule, deep-nesting, that counts only the statements that really add a level.

  • Teach drag-lint Your Domain Words2026-11-17

    Concept search in drag-lint is lexical, so a domain word like characteristic cannot find code that says Ftr, but one doc-comment line or one wiki topic with aliases fixes that, without AI.

  • Which Routine Raises This Exception2026-11-17

    To find every place a Delphi project raises or catches one exception type, drag-lint has a verb, exception-facts, that lists one row per raise or handler site.

  • Routines the Index Cannot See Into2026-11-05

    Impact analysis, call trees and dead-code detection are only as good as the calls the index could resolve, and the new opaque-to-analysis rule lists the routines where most of them could not be.

  • Which File Does the Compiler Use2026-11-05

    When a project names a unit twice, once in its own files and once on a search path, drag-lint now indexes the file the compiler uses and leaves the other one out.

  • Who Implements This Interface2026-11-04

    Ask drag-lint for an interface and it lists every class that implements it, how it does so, and which method answers each interface method, resolution clauses and implements delegation included.

  • What Tree-sitter Is, and Why Delphi Needs a Preprocessor in Front of It2026-11-01

    Tree-sitter turns a grammar file into a fast, error-tolerant parser that any language can call, and for Delphi it reaches every file only when a preprocessor resolves the conditional compilation first.

  • The IDE Formatter Hook in Delphi 13.22026-10-31

    Delphi 13.2 adds IOTACodeFormatter to the Open Tools API, a way to plug your own formatter into the IDE's Format Source command, and the only documentation is the comments in ToolsAPI.pas.

  • Add the Missing Uses Unit2026-10-29

    When you use a name whose unit is not in uses, drag-lint names the declaring unit, picks the right uses clause, checks for a circular reference and fixes it with one keystroke.

  • What the Index Saved You2026-10-29

    The new gain verb adds up what the index answered and what reading the source files instead would have cost, per verb and per day.

  • Menus Built in Code, Checked Against Your Docs2026-10-24

    drag-lint reads the menus a Delphi program builds in code, prints the tree, and compares it with the documented feature registry to report what is missing, moved or unregistered.

  • Untangling Circular Uses in Delphi2026-10-23

    drag-lint finds circular uses groups, names the unit that holds a group together, and removes the cycle for you behind a compile gate that rolls back on failure.

  • Three Ways to Read Delphi2026-10-19

    A raw lexer, DelphiAST, and tree-sitter-delphi13 are not three grades of the same tool.