drag-lint help
drag-lint is developed alongside Micronite, our quality and production-control software (www.htrmicronite.com).
Indexing
Build and maintain the per-project and library indexes.
| Feature | What it does | Since |
|---|---|---|
| Auto-Document Whole Project | Writes DocInsight documentation into every public declaration a project owns | 0.1.0-alpha |
| Include-file indexing and IF evaluation | Include files are indexed under the active build, value defines and IF expressions are evaluated, and an undecidable IF is reported as a pp-unresolved-if hint | 1.37.0-alpha |
| Index a project against its active build config | Parses a project index against the project's active build config (the .dproj Config marker or delphilsp.json) instead of a fixed Release, with an override flag | 1.35.1-alpha |
| Index DB schema reference | Table-by-table reference of the SQLite index file: every table, column, key, writer pass and schema version 23 to 27 | 1.53.0-alpha |
| migrate-dbs | Moves project index databases into each project's own D-RAG folder, matching the current index layout | 1.3.0-alpha |
| pp-profile | Diagnostic that prints the resolved preprocessor define profile for a project, one symbol per line | 0.92.0-alpha |
| purge-locals | A size escape hatch for an index database that has grown too large: it drops local-variable and parameter symbols and runs VACUUM to reclaim space | 0.91.0-alpha |
| Rebuild Index for This Project | Walks a project's .dproj compile closure and (re)builds its index | 0.2.0-alpha |
| register-project | Add a new project to the manifest so index --all and the IDE can see it | 1.20.4-alpha |
| schema | Prints the live schema of an index database: schemaversion, every table and column, and row counts | 0.95.0-alpha |
| Show Resolved DBs (debug) | Prints which database(s) drag-lint would actually use for a given project, file, or platform, without running a real query | 0.60.0-alpha |
| Library path of the project's Delphi | index reads the library path, IDE variables and $(BDS) from the BDS key of the project's target; a missing key falls back to 37.0 with a one-line note | 1.42.0-alpha |
| References for declaration positions | The index keeps a reference for pointer base types, generic constraints, generic method headers, dotted property specifiers and message constants | 1.51.1-alpha |
| Per-host bindings for refs in a shared include | A ref inside an include that several units include keeps one binding per host (table ref_host_bindings, schema 26); find-callers and usages read it | 1.51.1-alpha |
| Library bindings for bare reads, paren-less calls and function-result receivers | Bare reads of library vars (Application), paren-less library calls and members on a library function result bind to refs.external_target | 1.51.1-alpha |
| Custom attributes in the index | Every custom attribute is stored with its argument text and the symbol it decorates (table attributes), library indexes too | 1.51.1-alpha |
| Resolver fixes in 1.52 | Generic receivers (TObjectList<T>.Create) typed; index --resolve-only without a library keeps the last library bindings | 1.51.1-alpha |
| Stable symbol ids on an incremental index | An incremental index keeps the id of every unchanged symbol, so a body edit of a hub unit no longer rebinds every reference to its names | 1.53.0-alpha |
Search and navigation
Find symbols, callers, callees, text and types in the index.
| Feature | What it does | Since |
|---|---|---|
| call-path | Finds the shortest resolved call path from one symbol to another | 0.91.0-alpha |
| query --concept: captions, places and field links | Find a database field by its screen caption; every hit says which place it came from and where the field is shown, edited and used | 1.56.0-alpha |
| check-init | Answers whether a variable or field is set before a given use on every execution (SET / NEVER-SET / MAY-BE-UNSET) | 1.52.0-alpha |
| Class Surface | Shows the public surface of a class: its members and signatures, without the method bodies | 0.1.0-alpha |
| Compiler Hints | Uses query hints to surface compiler hint/warning findings that have been imported into the index, filtered by code or severity | 0.1.0-alpha |
| query --concept | Ranked BM25 concept search over identifiers, doc-comment prose and (1.56) field captions, in the project, its repository copy and the library | 1.38.0-alpha |
| context | Returns a compact context bundle for a symbol -- its doc comment, class surface (signatures), the target's own body, and a capped list of callers | 0.6.0-alpha |
| exception-facts | Lists which routine raises and handles which exception type, by routine or by type | 1.46.0-alpha |
| find-callees | Lists the resolved outgoing calls of one routine, plus the library-bound ones | 0.91.0-alpha |
| Find Undocumented (public) | Uses query find to list indexed symbols filtered by documentation state, kind, or visibility | 0.1.0-alpha |
| find-unit | Finds which indexed unit declares a symbol, and adds that unit to a file's uses clause | 0.69.0-alpha |
| Find Usages | Lists every reference to the symbol under the editor caret, in one of four scopes: this bound symbol (default), project, group or everywhere | 0.33.0-alpha |
| Find Usages | Lists references to the symbol represented by a Structure-tree node | 0.33.0-alpha |
| Gain (counted savings) | Sums the per-user usage log: tokens returned versus source bytes avoided, per verb and per day | 1.38.0-alpha |
| Go to Declaration | Jumps the editor caret to the declaration of the symbol represented by a Structure-tree node | 0.43.0-alpha |
| Go to Definition | Jumps the editor caret to the declaration of the symbol under the cursor | 0.47.0-alpha |
| Go to Implementation | Jumps the editor caret to the implementation of the symbol represented by a Structure-tree node | 0.43.0-alpha |
| happens-before | Answers whether one event (a write, a read, a call, a source line, an Application.Run) has happened before another on every execution: YES, NO or MAY | 1.56.0-alpha |
| helpers-of | Lists record/class helper edges targeting a given type, anywhere in the index | 0.94.0-alpha |
| Hover at Cursor | Hover card for the symbol under the caret: signature, type, documentation, callers; an interface method also lists its implementers | 0.7.0-alpha |
| outline | Prints the file-scoped symbol outline for one Pascal unit | 0.86.0-alpha |
| query ancestors | Resolves the transitive class/interface hierarchy of a type | 0.1.0-alpha |
| query descendants | The reverse of query ancestors: lists every class that descends from a given ancestor, across all scanned databases | 1.2.2-alpha |
| query find-callers | Lists callers of a routine by name, with an option to restrict results to precise, resolved callers | 0.1.0-alpha |
| query --kind --all | Lists every symbol of one kind -- every unit, every class, every enum -- with no name, no doc clause and no row cap | 1.19.1-alpha |
| query --name-like | Case-insensitive substring search over symbol names | 1.8.0-alpha |
| query regions | Counts or lists the indexed symbols inside each REGION of a unit, e.g. the DB-RAD regions of generated ORM code | 1.65.0-alpha |
| query --text --near | Keeps only text hits in routines within N call-graph hops of a symbol | 1.38.0-alpha |
| query type-usage | Answers one question, of a list of type names, about one file | 0.1.0-alpha |
| query typecat | Resolves a type's category -- float, string, class, interface, and so on | 0.66.0-alpha |
| query unit-usage | Shows which files reference a unit, or - with --in - which of its exports one file actually uses | 1.12.0-alpha |
| Show Completion | Shows an index-backed completion list at the editor caret | 0.21.0-alpha |
| Show Signature Help | Shows parameter help for the call being typed at the editor caret | 0.21.0-alpha |
| Show Structure | Shows a structural outline of the current unit | 0.30.0-alpha |
| Symbol Search | Searches symbols by name across the indexed projects | 0.1.0-alpha |
| Symbol Slice | Shows the slice of code relevant to one symbol: its declaration, body, and immediate context | 0.17.0-alpha |
| syntax-count | Counts modern syntax in the parse of every unit, uncapped: Delphi 13 if-expressions, is not, not in; inline var/const; anonymous methods; multiline strings | 1.42.0-alpha |
| Type at Cursor | Resolves the static type of the expression under the editor caret | 0.19.0-alpha |
| usages | Finds usage sites of a symbol in one of four scopes (this bound symbol, project, group, everywhere), with a choice of report width | 0.33.0-alpha |
| uses-recover | Recovers the uses edges of units that ship without source, from the vendor's .hpp headers and a dcc map; never reads a .dcu; --apply stores them in the index | 1.50.0-alpha |
| wiki | Looks up the dl:wiki concept topics a team has written into their own doc comments, and routes a human phrase to the code that implements it | 1.7.0-alpha |
Linting
Rules, autofix, suppression markers and project-wide checks.
| Feature | What it does | Since |
|---|---|---|
| Ancestor not in project (lint rule) | Project-wide lint rule (error): a form, frame or data module whose ancestor class is declared in no project unit and not in the platform library | 1.42.0-alpha |
| Autofix for fixable rules | lint --fix repairs findings of the 147 fixable rules; --json reports per finding whether it was applied; lint accepts a folder | 1.37.0-alpha |
| Complexity counts the if-expression | cyclomatic-complexity, cognitive-complexity and the autodoc Complexity fact count a Delphi 13 if-expression as a decision point | 1.52.0-alpha |
| Compliance labels (CWE, CERT, MISRA) | Rules carry CWE / CERT / MISRA ids; --labels prints them, rules --standard filters by standard, JSON gains a compliance field | 1.37.0-alpha |
| Copy All Diagnostics | Puts every lint finding for the current unit onto the clipboard, starting from the Structure form | 0.1.0-alpha |
| Copy Diagnostics (Current File) | Puts the current file's lint findings onto the clipboard | 0.1.0-alpha |
| Copy Selected Diagnostics | Copies only the Diagnostics rows selected in the Structure form (Ctrl/Shift-click, Ctrl+C) to the clipboard | 1.28.3-alpha |
| Cycle edge written in an include (lint rule) | Project lint rule: a uses entry or declaration a uses cycle runs through is written in an include, which cycles --fix never edits; write it in the .pas | 1.50.0-alpha |
| Data clump (lint rule) | Project rule, OFF by default: a group of 3+ parameters travels together through 3+ differently named routines (G-58) | 1.62.0-alpha |
| Data module reaching a global form (lint rule) | Project lint rule, ON by default since 1.52: a data module unit reads or writes another unit's global form variable | 1.42.0-alpha |
| Spring4D AST rules: resolve in loop, service locator, swallowed errors | Three dependency-injection rules on one parse tree: Resolve in a loop (ON), service locator (OFF), registration error swallowed (ON) | 1.64.0-alpha |
| Spring4D container rules: resolve, registration, captive and build order | Ten Spring4D container rules: unregistered or per-thread-in-task Resolve, duplicate / dead / never-resolved registrations, impl mismatch, captive, build order | 1.64.0-alpha |
| drag-lint: Project Rules | Right-click a project in the Project Manager to make it the active project and open its Lint Options tab in the drag-lint dock | 0.95.0-alpha |
| Effect-free call in a loop that could move out (lint rule) | Project-wide lint rule, ON by default since 1.43: a proven effect-free call inside a loop whose arguments, and the state it reads, cannot change in that loop | 1.42.0-alpha |
| exceptions-sync | Declare one exception class per distinct raise Exception.Create message, then rewrite the raise sites | 1.8.0-alpha |
| explain | Explains one lint rule in plain words: what it means, why it matters, a bad and a good example, its default, whether it can be fixed, and how to suppress it | 1.52.0-alpha |
| Finalization reaching a unit already finalized (lint rule) | Project lint rule: a finalization section reaches a global that a unit finalized earlier in the computed order tears down | 1.44.1-alpha |
| Fix all in project | Applies autofixes for every fixable finding across the whole project, starting from the Structure form | 0.61.0-alpha |
| Fix all in unit | Applies autofixes for every fixable finding in the current unit, starting from the Structure form | 0.1.0-alpha |
| Fix all reliability (1.31.3) | Fix all no longer drops every rename for library-root members, shows a wait cursor and refuses a second fix, and keeps E-prefixed exception classes | 1.31.3-alpha |
| Fix it | Applies the fix for the single lint finding on a Structure-tree node; an unused unit is removed or moved to implementation by compiling | 0.1.0-alpha |
| Data-flow rules that know a parameter's mode | Two OFF out-argument rules; since 1.52 a local passed by value to a method before assignment reports under the default used-before-assignment | 1.46.0-alpha |
| Lint rule: form no menu or click reaches (form-no-ui-path) | Project-wide lint rule: a form of the program that no menu / click path from the main form reaches (forms-csv walker, registries and by-name lookups excluded) | 1.64.0-alpha |
| Format Whole Project with YADF | Runs YADF formatting across a project's files, with indexing involved as part of the same action | 0.1.0-alpha |
| Format with YADF | Reformats one Pascal unit by driving the external YADF formatter | 0.16.0-alpha |
| Gap-wave lint rules | About 50 new lint rules (bug patterns, dead code, data flow, platform, structure) added in the 1.37.0 gap wave | 1.37.0-alpha |
| Global set in initialization and never freed (lint rule) | Project lint rule: a unit's initialization sets its own global to a new object and no source that names the variable frees it | 1.44.1-alpha |
| Heavy work in an initialization section (lint rule) | Project lint rule: an initialization section reaches the file system, the registry, the network, a database or a dialog | 1.44.1-alpha |
| Identifier case mismatch (lint rule) | Lint rule, OFF by default: a name spelled in a different case from its declaration | 1.42.0-alpha |
| Initialization reaching a unit that initializes later (lint rule) | Project lint rule: an initialization section reaches a global that a unit initializing later in the computed order sets in its own initialization | 1.44.1-alpha |
| Interfaced object set to nil (lint rule) | Lint rule, OFF by default: an object reference to a TInterfacedObject descendant is set to nil while it holds a fresh instance, which leaks it | 1.42.0-alpha |
| Lint Buffer (Unsaved) | Lints the current editor buffer's in-memory content, including unsaved edits, without writing it to disk first | 0.1.0-alpha |
| Lint only what changed since a revision | lint-all --changed-since <rev> keeps findings (review markers too) on lines changed since a git or hg revision; unknown revision or no working copy: exit 2 | 1.56.0-alpha |
| lint-project | Runs project-scoped structural lint rules against an index -- checks such as god-class, unused-public-symbol | 0.48.0-alpha |
| Estimated repair time (lint-all line) | lint-all prints one line with the estimated repair time of the run: per-rule minute constants summed, worded as an estimate (G-52) | 1.62.0-alpha |
| Lint rules | Every lint rule the engine ships, imported from rules --json | 0.2.0-alpha |
| Lint rules new in 1.65 | New lint rules from the 1.65 research wave: bug patterns, thread start, secrets, division-by-zero flow, enum shapes and field-repository drift | 1.65.0-alpha |
| Lint rules new in 1.66 | Seventeen rules new in 1.66: eight research rules (OFF), the R4 rule reserve (DI, labels, RSA keys, IVs, cookies) and variant-record-punning (OFF) | 1.66.0-alpha |
| lint-tree | Answers one question lint-all cannot: does an interface edit to this unit reach any dependent? | 1.11.0-alpha |
| Rename across every project that compiles a shared unit | A naming fix on a unit several project indexes own renames it in every owner or in none, after an IDE confirmation listing the projects | 1.29.0-alpha |
| Opaque to analysis (lint rule) | Project-wide lint rule (info, off by default): a routine whose non-library calls are mostly unresolvable, so impact and call trees are blind inside it | 1.42.0-alpha |
| Parameter type too wide (lint rule) | Project lint rule, ON since 1.52 (warning, autofix): a class-typed parameter that an ancestor type could carry, proved by the narrow-param plan | 1.46.0-alpha |
| Read but never assigned (lint rule) | Project-wide lint rule: a field or global that is read but that nothing in the project assigns or creates | 1.40.0-alpha |
| Lint rules on the static type of a reference | Lint rules on ref_types: is-always-true, is-never-true, argument-narrows, UI access from a thread, quit from a thread; sharper redundant-cast and unsafe casts | 1.44.1-alpha |
| Field repository DFM lint rules (repo-size-drift and five more) | Six project-wide rules comparing a form with the field repository: size, caption, unknown column or field, Required, UpdateTableName | 1.64.0-alpha |
| Field repository lookup lint rules (keyfields drift, dataset missing) | Two project-wide rules, OFF by default: lookup KeyFields drift from the repository, and a LOOKUP_DATASET no component declares | 1.64.0-alpha |
| Rescan this unit | Re-indexes the active project and re-lints the current unit on demand, so the Diagnostics panel drops findings already fixed | 1.28.3-alpha |
| review-marker-remeasured hint | A dl:ok on a routine-metric rule stamped under an older hash still suppresses its finding; a hint names the allow command that re-stamps it | 1.51.1-alpha |
| RTTI unavailable (lint rule) | Project lint rule, OFF by default: declarations that lose classic or extended RTTI (typeless enums, record properties, narrowing directives, published generics) | 1.50.0-alpha |
| Run AST Checks | Runs drag-lint's AST-level checks against a file | 0.31.0-alpha |
| Run Diagnostics (didSave) | Runs drag-lint's diagnostics pass on a file automatically when it is saved, mirroring the LSP textDocument/didSave notification | 0.22.0-alpha |
| Run Lint All (Full Report) | Runs the whole rule catalog against a project's indexed code and reports every surviving finding -- the overall project health check | 0.61.0-alpha |
| Schema-aware lint (lint rules) | Default-on lint rules: MAXLEN constants, literals, Copy counts, Size and DFM string fields checked against the field repository's column lengths | 1.53.0-alpha |
| Smell rules: replace temp with query, primitive obsession, derived variable | Three refactoring smells as per-file lint rules, OFF by default: temp to query, primitive signatures, derived fields (G-60) | 1.63.0-alpha |
| Speculative generality (lint rule) | Project rule, OFF by default: an interface with one implementor or a class with one direct descendant in the index (G-59) | 1.62.0-alpha |
| Lint rule: SQL built with Format (sql-injection-format) | Security rule, ON: a Format(..) string whose %s lands in a value position of SQL text; identifier positions are not reported | 1.64.0-alpha |
| Stream buffer used after free (lint rule) | Lint rule, OFF by default: a pointer into a memory stream buffer is used after the stream was freed | 1.42.0-alpha |
| New findings only (Structure form) | Shows only the findings of the current unit that the saved lint baseline does not hold; judges the editor buffer, so unsaved edits count | 1.57.0-alpha |
| Taint analysis (SQL, command, path, deserialization, HTML, log) | Six taint rules (SQL, command, path, deserialization, HTML, log) follow index data_flows facts from a source to a sink | 1.37.0-alpha |
| Target compiler (--target-compiler) | Names the Delphi the code is for: lint drops advice needing a newer compiler; index parses VER<N>0 / CompilerVersion branches for it | 1.38.0-alpha |
| Type-level dl:ok review | One dl:ok on an enum type declaration reviews every unused-enum-value or enum-ordinal-cast finding of that type, in any unit | 1.38.0-alpha |
| type-name-prefix: expected letter from the ancestor chain | type-name-prefix picks E or T from the ancestor chain (project, then library index); untraceable ancestors are an index gap; autofix uses the finding's letter | 1.31.4-alpha |
| Application-level lint rules | Whole-program lint rules: TLS checks off, UI calls in console/service apps, DUnitX tests without asserts, weak ciphers, asm without Win64, GUI WriteLn | 1.51.0-alpha |
| Component-authoring lint rules | Lint rules for component and IDE-expert code: FreeNotification, property defaults, palette bitmaps, repainting setters, DPI, OTA notifiers | 1.51.0-alpha |
| Form and unit consistency rules | Lint rules comparing a form unit with its .dfm and .dpr: fields vs objects, form resource, inherited handlers, self-free, auto-created forms | 1.51.0-alpha |
| Form-file data-binding rules | Six lint rules check the text .dfm beside a unit: bad data links, duplicate bindings, field-type mismatches, unreachable required fields | 1.51.0-alpha |
| Dataset and transaction lint rules | Lint checks: dataset edited but never posted, SELECT * in SQL text, transaction committed but never rolled back, dataset loop that never advances | 1.51.0-alpha |
| Exception and inherited lint rules | Lint rules for exception handlers and inherited calls: shadowed handlers, hand-freed exceptions, wrong or missing inherited, Destroy for Free | 1.51.0-alpha |
| Memory and string-pointer lint rules (PChar, raw memory, leaks, byte counts) | Eight memory lint rules, one widened: PChar of Char or temporaries, @S[1], read-only CreateProcess lines, raw memory over managed types, leaks, chars as bytes | 1.51.0-alpha |
| Object-model lint rules (Equals/hash, events, GUIDs, exports) | Ten single-file lint rules: Equals/GetHashCode, event calls, duplicate GUIDs, DLL exports, money as float, default params, accessors, forwards, legacy lists | 1.51.0-alpha |
| RTL collection and environment lint rules | Lint checks for dictionary reads without a key check, string-list leaks, Null compares, HKLM writes, Random without Randomize and Now used as a stopwatch | 1.51.0-alpha |
| RTL string and path lint rules | Seven lint rules for RTL string, path and conversion mistakes: swapped Pos arguments, StrictDelimiter, FormatSettings writes, path joins, file-name compares | 1.51.0-alpha |
| Style, loop and ordering rules | Eleven style and loop lint rules (begin/end, if-chains, SetLength and repaint in loops, loop bounds, method order); five are on by default | 1.51.0-alpha |
| Thread lifetime lint rules (v151 THR-A) | Six thread-lifetime lint rules (anonymous thread, Synchronize in destructor, Terminated, FreeOnTerminate, threadvar, Queue nil) plus FreeAndNil coverage | 1.51.0-alpha |
| Thread race and blocking rules | Four lint rules: racing writes in parallel bodies, non-atomic global increments in threads, unbounded waits in forms, lost task exceptions | 1.51.0-alpha |
| Text rules: bidi, invisible, control chars, TODO, header, strings | Six raw-text lint rules: bidi-control, invisible-char, control-char, todo-comment, file-header, hardcoded-string | 1.51.0-alpha |
| Typing and ownership lint rules (casts, Self as interface, destructors) | Five rules: unrelated class casts, Self as interface during construction, nil-unsafe destructors, Free without nil, unclear field ownership | 1.51.0-alpha |
| Wider built-in rules (1.51) | Six built-in rules read more constructs: code-page and label exemptions, named zero constants, implied else-if, thread dialogs, Supports aliases | 1.51.0-alpha |
| Wider scm rules and three new fixers | Seven built-in rules read more constructs; empty-finally, format-string-not-formatted and shared-marker-legacy-shape gain autofixes | 1.51.0-alpha |
| CLI fixes in 1.51.1 | lint-all --rule a,b runs only those rules, a DB copy stays on the copy; rules --rule; info versions; index parse-errors; resolve-only warning | 1.51.1-alpha |
| Reserved words as names, implicit package imports, contract-unit globs | reserved-word-identifier and implicit-package-import rules; contractUnits globs in drag-lint.json for contract-unit-declares-class | 1.52.0-alpha |
| member-could-be-private lint rule | Hint (OFF) on a public member used only in its own unit, now proposing the tighter visibility; published, virtual, interface and attributed members stay silent | 1.52.0-alpha |
| debug-display-placeholder + attribute-aware member-could-be-private | Warning (OFF in 1.52) on a DebuggerDisplay placeholder naming no member; member-could-be-private reads attributes from the index | 1.52.0-alpha |
| Default-on form, dataset and data-module rules | Four lint rules on by default since 1.52 (form object/field, foreign form access, edit without post, data module form global); a shipped exempt-class list | 1.52.0-alpha |
| Disable rule (this line, this unit, this project) | Silence one lint rule for a line (dl:ok marker), a unit or the project (rule_overrides in drag-lint-lint.json), with a reason and date; rules enable undoes it | 1.52.0-alpha |
| Array index possibly out of range lint rule (index-possibly-out-of-range) | Warns on the write of an array index that no dominating guard bounds on both sides before the access; the InRange guard autofix is manual-only | 1.52.0-alpha |
| Per-rule time budget in the rule frame (rule-skipped-budget) | A v151/v152 rule slower than rule_time_budget_ms (2000 ms) on a file is skipped there with one rule-skipped-budget note; index warns near the parse limit | 1.52.0-alpha |
| unit-used-by-no-unit rule; unit-not-in-dpr outside the project roots | Warns (ON) on a unit only the .dpr lists that nothing reaches (a form counts when opened); unit-not-in-dpr covers the closure minus library roots | 1.52.0-alpha |
| parameter-type-too-wide ON by default, with an autofix | parameter-type-too-wide ships ON as a warning in lint-all / lint-project with an autofix that retypes the parameter through the compile gate | 1.52.0-alpha |
| Lint rules unconnected-control and hanging-handler | Warns on a form control that nothing wires and on an event-handler-shaped method that no form binds and no code assigns or calls | 1.52.0-alpha |
| Fast one-file lint on a large index | One-file lint asks the index per name for unused-public-symbol's own-unit tier, not every ref: Export.pas 20.5 -> 9.1 s on a 712k-ref index | 1.52.3-alpha |
| Lint rules for form files: tab order, accelerators, shortcuts, actions, hints | Reports tab order, accelerator and shortcut clashes in form files, Action plus OnClick, and (OFF) default names, hidden hints, data components on a form | 1.54.0-alpha |
| Lint rules for repeated, impossible and misleading expressions and source text | Warns about repeated or impossible conditions, misleading Boolean precedence, a function reading its own name, warnings left off, look-alike letters | 1.54.0-alpha |
| Lint rules for results, parameters, nested addresses and overlays | Eight rules: a managed Result read too early, one variable in two var parameters, nested routine addresses, overlays, parameters, constant returns | 1.54.0-alpha |
| Third-party code in a project lint-all | A project lint-all leaves findings in vendored and library code out, says how many and why, and never hides your own shared units | 1.54.0-alpha |
| Lint rules schema-unknown-column, -type-mismatch and -required-not-set | Warns about fields, SQL columns and accessors that do not fit the tables of the field repository, and (off by default) INSERTs that leave out a required column | 1.54.0-alpha |
| Lint rules sql-param-mismatch and query-in-loop | Warns when ParamByName names a parameter the SQL does not have or a SQL parameter is never set, and hints at a query run once per loop iteration | 1.54.0-alpha |
| Lock order inversion rule | One project-wide lint rule: two places take the same two locks in opposite order, directly or through a called routine, so two threads can deadlock | 1.56.0-alpha |
| Lint rules: Single-precision Math calls and form-file smells | Finds Power calls on Single variables that run in Single precision for a Double result, a handler wired to many events, and overlapping controls | 1.56.0-alpha |
| Lint rules for unfreed container items and unowned instances | Three rules: new objects in a container that does not own them, a new instance passed to a routine that only reads it, a class instance passed as an interface | 1.56.0-alpha |
| Lint rule for calls that never return (noreturn) | One rule on the stored noreturn fact: code after a never-returning call, a never-returning routine not declared noreturn; falls-off follows dcc64 W1080 (1.66) | 1.56.0-alpha |
| Lint rules: ambiguous uses, narrowing assignments, open abstracts, dead handlers | Warns about a name two used units declare, a wide integer assigned to a narrow one, an open abstract method, a handler for an exception nothing raises | 1.56.0-alpha |
| Lint rules: class and literal hygiene (locals, literals, DUnitX, Variant loops) | Finds private fields that could be locals, string literals typed five or more times, DUnitX attribute mistakes and Variant use inside loops | 1.56.0-alpha |
| warm-rule-cache | Fills the lint rule cache for a project index; index runs warm it, or start it in the background (--rule-cache-warm) | 1.39.0-alpha |
| Lint rule: weak TLS version (weak-tls-version) | Security rule, ON: a weak protocol constant (SSL 2 / SSL 3 / TLS 1.0 / TLS 1.1) used as a TLS version | 1.64.0-alpha |
Documentation
DocInsight comments generated from the index, and drift detection.
| Feature | What it does | Since |
|---|---|---|
| bookmarks | Lists or finds the dl:bk comment-anchor bookmarks in a unit or a folder, and strips / restores them on request | 1.46.0-alpha |
| Bookmarks (IDE) | Lists, finds, strips and restores the // dl:bk comment anchors of the current unit from the IDE | 1.50.0-alpha |
| Doc Comment Stub (symbol) | Uses generate-docs to produce a doc-comment stub for one qualified symbol | 0.25.0-alpha |
| doc-drift | Diagnostic that computes deterministic doc-vs-code drift findings for one symbol | 0.93.0-alpha |
| doc-engine-refresh: engine-written doc text is behind the index | Lint rule (ON, info, fixable) split from doc-drift: a facts block or marked <summary> drag-lint wrote is behind the index; doc-drift keeps human-written text | 1.61.0-alpha |
| doc-forget | Reap or rename the project tags on inbound and Registered as: documentation facts; a dry run unless told to apply | 1.17.0-alpha |
| document-all | Documents every public declaration in every indexed unit, with no project scope | 0.93.0-alpha |
| Document it | Generates or repairs a managed DocInsight comment on the single symbol represented by a Structure-tree node | 0.90.0-alpha |
| Document project | Generates or repairs managed DocInsight comments for every public declaration of the active project, started from the Structure form right-click menu | 0.90.0-alpha |
| Document unit | Generates or repairs managed DocInsight comments for every public declaration in the unit open in the active editor (facts-only) | 0.90.0-alpha |
| Effect Summary Legend | The purity analysis writes a short token string for every routine it judges -- symbolfacts.effectsummary in the index | 1.16.0-alpha |
| shared-unit | Reads or extends the dl:shared marker on a unit, recording which projects share it | 1.10.0-alpha |
| Documentation policy: missing-doc, doc-placeholder, doc-malformed-summary | missing-doc covers DFM-bound handlers with code; doc-placeholder (ON, hint) flags template summaries; doc-malformed-summary (OFF) flags declaration-like ones | 1.52.0-alpha |
| dl:wiki concept blocks | The format of a dl:wiki block -- the concept notes the wiki verb reads | 1.7.0-alpha |
Refactoring and code generation
Rename, extract, safe delete, uses cleanup and code stubs.
| Feature | What it does | Since |
|---|---|---|
| allow | Records a dl:ok review of one finding, so it stops being reported without being fixed | 0.54.0-alpha |
| Allow this message | Records a dl:ok review of one finding, so it stops being reported without being fixed | 0.54.0-alpha |
| create-enum-helper | Generates a Byte-family record helper (ToByte/FromByte/ToInteger/ FromInteger/ToString/FromString) for an enum type | 0.94.0-alpha |
| Create helper class | Generates a Byte-family record helper for an enum type represented by a Structure-tree node | 0.94.0-alpha |
| Extract an interface from the members used (scratch + compile gate) | Declares an interface from the members of a class the project uses and adds it to the class; --apply through a scratch build and the compile gate | 1.50.0-alpha |
| extract-method | Pulls a run of statements out of a routine into a new method | 0.85.0-alpha |
| Prepare heavy initialization for lazy loading (first phase) | Names what an initialization section does; --apply moves its body verbatim into a run-once routine, through a scratch build and the compile gate | 1.50.0-alpha |
| Lint --fix through the compile gate | lint --fix --apply --project X.dproj goes through the compile gate (1.51); since 1.66 build 2 must prove it compiled every rewritten unit, else REFUSED | 1.50.0-alpha |
| Narrow parameter types (compile-gated) | Retypes a class-typed parameter to the deepest ancestor that declares every member the routine uses, when a static proof holds, through the compile gate | 1.44.1-alpha |
| Quick-Fix: Add Unit for Inline Hint (H2443) at Cursor | The same idea as the undeclared-identifier quick-fix, but for compiler hint H2443 -- an inline routine whose declaring unit is not in scope | 1.2.0-alpha |
| Quick-Fix: Add Unit for Undeclared at Cursor (Ctrl+Alt+U) | Finds which unit declares the identifier under the caret and adds that unit to the current unit's uses clause | 0.47.0-alpha |
| Quick-Fix: Convert Public Field to Property at Cursor | Rewrites a public field under the caret as a property | 1.2.0-alpha |
| Reconcile Project Members (.dpr/.dproj) | Lists every unit a project uses that is neither a project member nor in the library, judges each one (project unit or third-party) and fixes it either way | 1.18.0-alpha |
| Remove redundant casts (compile-gated) | Removes hard casts whose operand already has exactly the target type, proved from the index's static types and written through the compile gate | 1.44.1-alpha |
| Rename Symbol | Renames a symbol across the whole indexed project; LSP rename: the renameCompileGate setting builds the edits on a scratch mirror first (1.66) | 0.24.0-alpha |
| safe-delete | Deletes a symbol if and only if it has zero references in the index | 0.69.0-alpha |
| Unit Test Stub (symbol) | Uses generate-test to produce a unit-test skeleton for one qualified symbol | 0.27.0-alpha |
| unwith | Removes with blocks, proving every name binds to what it bound before | 1.44.1-alpha |
| Uses Audit -- interface->impl moves + unused (this unit) | For one unit, reports which uses entries could move from the interface section to implementation, and which are unused entirely | 0.43.0-alpha |
| Uses Cleanup Preview (compiler-verified, this unit) | The removals a Uses Audit suggests, but verified by actually compiling | 0.43.0-alpha |
| Uses & Deps Tab | Open the Uses & Deps tab to review uses-clause fixes and apply them | 1.12.0-alpha |
| Extract constant (manual fix for magic literals) | Turns one number or string literal into a named constant and replaces every occurrence in the unit; manual fix of the magic-literal rules | 1.52.0-alpha |
| extract-method and create-enum-helper through the compile gate by default | extract-method / create-enum-helper --apply build before and after the write; no project = REFUSED; 1.66: build 2 must prove every rewritten unit compiled | 1.52.0-alpha |
| Fix with drag-lint (VS Code and RAD Studio) | Fix the finding at the cursor, all of one rule, or every fixable finding in a file: VS Code code actions and menus, plus a RAD Studio menu entry | 1.52.0-alpha |
Component conversion
Rule-driven migration of legacy component types.
| Feature | What it does | Since |
|---|---|---|
| convert-apply | Locates .dfm component instances that match a #convert rule from a conversion-rules file and rewrites all five surfaces: declaration retype, uses-add | 1.2.0-alpha |
| convert-apply #migrate (member, type and enum rename / DL_NONE) | #migrate renames or DL_NONE-breaks a member at its .pas access sites; at file scope (or with a uses unit) it renames a type, enum or identifier | 1.22.0-alpha |
| Convert Components | Opens ConvRulesEditor on the components selected in the form designer | 1.46.0-alpha |
| Glyph strip stitching | convert-apply and convert-validate --glyph-stitch slices and stitches a TBitmap glyph strip per a book G[I/N] expressions; info capability glyph_stitch | 1.56.0-alpha |
| convert-scaffold | Auto-generates a valid conversion-rules file from the real property trees of a from-type and a to-type | 1.1.0-alpha |
| convert-validate | Parses and validates a conversion-rules file (a reFind-superset DSL), checking its #link/#default paths against the real property trees | 1.1.0-alpha |
| BDE and Data.DB rule books | The BDE-to-FireDAC conversion rules are two books (BDE, Data.DB) run in that order; the Convert tab warns on the wrong order | 1.36.0-alpha |
| Progress window and busy guard | ConvRulesEditor shows a cancellable progress window for long engine calls and refuses Save, Add, Convert and Delete while one runs | 1.35.0-alpha |
| Convert progress | ConvRulesEditor Convert tab: per-step progress (unit, book, phase, elapsed) on the status bar and the tab | 1.26.7-alpha |
| Curate rule books | ConvRulesEditor: split, delete, merge and compose #convert blocks across rule books on disk | 1.20.0-alpha |
| ConvRulesEditor | Visual rulebook editor for the conversion rules; its Convert tab reports StripDB value casts, cast sites to convert by hand and uses changes (engine 1.27) | 0.0.0 |
| Rule book and source encoding | ConvRulesEditor keeps each book's encoding, asks before a lossy save, and before a Convert whose rules a source cannot hold (raise it, fix the rules, or cancel) | 1.35.0-alpha |
| Examine: mark the properties a form uses | ConvRulesEditor Conversion menu: pick .dfm/.pas files and mark in green the From properties they actually use | 1.31.0-alpha |
| [Glyph expressions (G[I/N])](features/convrules-glyph.md) | ConvRulesEditor Mapping menu: set, change or clear the G[I/N] glyph expression on the selected link | 1.31.0-alpha |
| Inherited units, ancestors first | ConvRulesEditor offers and orders the ancestors of an inherited form root-first before Convert | 1.40.0-alpha |
| Conditional #mapping authoring | ConvRulesEditor Mapping menu: author a conditional #mapping (one enum value sets several target properties) and #apply it to a conversion | 1.31.0-alpha |
| Member migration (#migrate) | ConvRulesEditor: write #migrate Old -> New or -> DL_NONE (one row, or DL_NONE for all selected rows) into the row's book, or via the block's Members list | 1.35.0-alpha |
| Qualify #convert quick fix | ConvRulesEditor Convert tab: one click writes the engine's qualified #convert line (apply/1 qualify_fixes) into the open book | 1.31.5-alpha |
| Reindex project | ConvRulesEditor command: incremental index --project of the editor's project index, cancellable | 1.26.7-alpha |
| Rule chains (single-pass warning, merge / split) | ConvRulesEditor marks #convert chains, cycles, duplicate From types and unit swap chains on Save; offers merge into TA -> TC or split into stage books | 1.35.1-alpha |
| Scoped validation on Save | ConvRulesEditor File menu: Save and Validate check the syntax and only the changed #convert blocks, one engine pass per distinct From/To pair | 1.31.0-alpha |
| Unit rules (#use, #unuse, #useswap) | ConvRulesEditor Uses Units menu and Unit Rules tab: add, remove and swap units in the converted unit's uses clause | 1.31.0-alpha |
| Work list | ConvRulesEditor tab: what the last Convert run's converted code still uses from the old components (engine pas_uses) | 1.28.2-alpha |
| glyph-vacuum | Measure every streamed glyph or picture under a tree before writing a glyph rule | 1.15.0-alpha |
| proptree | Recursive deep-property enumerator for a class: flattens its own and inherited properties into dotted paths, recursing into class-typed properties | 1.1.0-alpha |
Graphs and reports
Call graphs, dependency reports, dead code, tester spreadsheets.
| Feature | What it does | Since |
|---|---|---|
| arch-diagram | Draws one self-contained HTML layer diagram of a project's units by folder, with the layers measured from the uses clauses | 1.50.0-alpha |
| butterfly | Composes a symbol's callers (upward wing) and callees (downward wing) into one combined chart in a single command | 0.99.0-alpha |
| Call Graph (Butterfly) | Shows callers and callees of one symbol together in a single "butterfly" view | 0.96.0-alpha |
| callgraph | Prints an N-deep resolved call tree for a symbol, in either direction | 0.91.0-alpha |
| Circular Dependency Report (worked example) | A worked example: a real four-unit uses cycle, and the report drag-lint produces for it | 1.4.0-alpha |
| Circular Uses Report (cycles + fix plan) | Finds uses cycles among indexed units and, on request, proposes a followable refactoring plan to break them | 0.43.0-alpha |
| Cycles fix (mechanical, compile-gated) | Plans, compile-gates and (with --apply) writes the mechanical fix of one circular uses group, verified against the predicted cycles output | 1.33.0-alpha |
| deps-report | Produces a third-party dependency rollup from an index: which external units/libraries an indexed codebase depends on | 0.95.0-alpha |
| Export Enums (Delphi const) | Uses export enums with --format delphi-const to dump indexed enum types as Delphi const declarations | 0.6.0-alpha |
| Export Graph (DOT) | Uses graph to export the indexed call/reference graph in DOT format, whole or rooted at a name substring; json and html add the Markdown text nodes | 0.6.0-alpha |
| Export to Obsidian | Uses export obsidian to write the indexed project out as a set of Obsidian vault markdown pages | 0.6.0-alpha |
| Find Dead Code | Scans the index for code with no references -- candidates to delete | 0.25.0-alpha |
| Forms for testers (CSV) | A CSV of a project's forms, one row per form, telling a tester how to reach each one from the main form | 0.44.0-alpha |
| Impact / Blast Radius (symbol) | Reports what would be affected if a chosen symbol changes -- the set of code to retest | 0.17.0-alpha |
| Interface Implementors Report | Who implements an interface, which method answers each interface method in each class, and who calls or uses an interface member | 1.40.0-alpha |
| Code-built menu tree and registry drift | The menu tree a Delphi program builds in code, read statically, and a check that the registered menu paths still match it | 1.33.0-alpha |
| metrics | Size and complexity rows from the index per routine, class, unit and folder, repeated parameter groups, single implementors, and a saved trend | 1.56.0-alpha |
| Halstead counts and maintainability index (metrics) | metrics --halstead (opt-in, G-53): Halstead volume, difficulty, effort and a 0..100 maintainability index per routine; without it the 1.62 output | 1.63.0-alpha |
| Migrate saved reports | Rewrites the old PowerShell-style COMMAND line of saved reports to the CLI style and lists every file it left alone, with the reason | 1.56.0-alpha |
| Reverse Call Tree (clickable, Messages window) | The same reverse call tree, rendered into the IDE's Messages window so each line navigates to the caller | 0.98.0-alpha |
| Reverse Call Tree (who calls this, N-deep) | Builds the tree of callers of a chosen symbol, transitively, to a chosen depth | 0.96.0-alpha |
| sbom | Writes a CycloneDX 1.6 JSON software bill of materials for a project from its index: the application, its library components and their dependencies | 1.56.0-alpha |
| Scan TODOs / FIXMEs | Scans source for TODO/FIXME/HACK/XXX/REVIEW/NOTE markers | 0.12.0-alpha |
| Show in Call Graph | Opens the call graph rooted at the symbol represented by a Structure-tree node | 0.96.0-alpha |
| Show Wiring (Spring4D DI + DFM events) | Surfaces bindings the compiler does not make obvious: Spring4D container registrations and DFM event hookups for a type | 0.21.0-alpha |
| site | Offline API reference site from the index: hub + search, a page per unit / class: DocInsight, members, callers, impact, DFM wiring, tables; incremental | 1.60.0-alpha |
| Top Symbols (fan-in) | Ranks indexed symbols by fan-in -- how many places reference them | 0.6.0-alpha |
| Uses Report (CSV) | Exports the project's unit-dependency data as a CSV file | 0.40.5-alpha |
| Cycles fix through recipe R3 (hub surface, compile-gated) | cycles --fix --hub-surface writes recipe R3 through the compile gate: build before and after, rollback, re-index and verify | 1.51.1-alpha |
Diagrams and charts
Ask a question about a symbol and get a clickable chart.
| Feature | What it does | Since |
|---|---|---|
| ask | Ask one report question and print the answer as text | 1.30.0-alpha |
| Where the charts find Graphviz | The charts find dot.exe by DRAGLINT_DOT, settings.json, the installed layout, PATH, then the shared default | 1.26.1-alpha |
| Chart questions | Every chart question of the Reports submenu and drag-lint ask, imported from REPORT_QUESTIONS | 1.20.2-alpha |
| Charts and the IDE | Ask a chart question, open the answer, read a round-trip trace, jump to RAD Studio | 1.20.1-alpha |
| Compare a report with current code | Reruns a saved or pasted report and shows before / delta / after | 1.28.0-alpha |
| drag-lint Chart panel | Report charts open in a dockable drag-lint Chart window inside the IDE (drag-lint-view.exe, WebView2): tabs, click to the line, recentre, back / forward | 1.60.0-alpha |
| Click-to-source: the draglint:// handler | Registers draglint:// so a chart row opens its line in RAD Studio; a GUI helper exe, no PowerShell | 1.31.0-alpha |
Compiler integration
Compile, fold compiler output into findings, preprocess.
| Feature | What it does | Since |
|---|---|---|
| Add Missing Units to uses (whole unit) | The whole-unit form of the undeclared-identifier quick-fix: resolves every unresolved name in a unit at once and adds the units that declare them | 0.43.0-alpha |
| Compile Buffer (unsaved) | Compiles a project with the current editor buffer's unsaved content in place of its file on disk, from a temporary shadow folder, without writing any real file | 0.47.0-alpha |
| compile-check | Runs a compiler-backed check against a single Delphi project (.dproj) or source file (.pas) and reports the result | 0.26.0-alpha |
| Compile Dependents | Check the units that depend on the one being edited now, instead of waiting for the automatic quiet-period pass (lint-tree tier 3) | 1.11.0-alpha |
| Compile & Diagnose | Compiles a project or unit and folds the compiler's errors and warnings into drag-lint findings | 0.26.0-alpha |
| Compiler messages: pass-through and overlap with our rules | Every Delphi compiler message (hint, warning, error) is stored per project and passed through under its own code; overlapping rules say where they go further | 1.51.0-alpha |
| Full Compile Sweep | Recompiles every unit of a project (a forced full build, refresh-findings --full) and refreshes its stored compiler findings | 1.2.0-alpha |
| ghost-check | Compiles a project with one or more units' content temporarily replaced by their unsaved editor buffers, then restores the original files unchanged | 1.8.0-alpha |
| ghost-recover | Scans a project's hidden D-RAG folder for recovery journals left behind when a ghost-check overlay was interrupted by a crash | 0.64.1-alpha |
| Import Build Log | Parses an external dcc or msbuild build log and folds its errors and warnings into drag-lint's stored findings | 0.8.0-alpha |
| preprocess-file | Diagnostic that prints a file's {$IFDEF}-resolved source to stdout under a given define set | 0.92.0-alpha |
| project-facts | Report what the build does: defines that are on and what sets each, imports, output paths and packages | 1.20.0-alpha |
| Recover Buffer-Compile Files | Restores any file left holding unsaved-buffer content after a Compile Buffer (unsaved) run was interrupted (for example by a crash) | 0.47.0-alpha |
Database and Firebird
SQL scripts, live schema snapshots, ORM links.
| Feature | What it does | Since |
|---|---|---|
| fb-snapshot | Connects to a Firebird database and captures a snapshot into a sqlite index | 0.40.5-alpha |
| link-orm | Links a project's code index to a SQL index so ORM-style relationships between Delphi symbols and SQL objects can be resolved across both | 0.40.5-alpha |
Editor integration
The RAD Studio plugin, the language server, MCP and workspaces.
| Feature | What it does | Since |
|---|---|---|
| drag-lint | This page documents the "View > Tool Windows > drag-lint" menu entry -- the main drag-lint dockable tool window | 0.42.0-alpha |
| drag-lint Graph | This page documents the "View > Tool Windows > drag-lint Graph" menu entry -- the drag-lint graph viewer | 0.43.0-alpha |
| drag-lint Graph (dockable) | Opens the drag-lint graph viewer as a dockable window inside the IDE, so it can sit beside Structure | 0.43.0-alpha |
| drag-lint Options | The plugin's settings dialog for drag-lint: lets you browse and toggle the lint rule catalog | 0.95.0-alpha |
| drag-lint Panel (dockable) | Opens the main drag-lint dockable tool window inside the IDE | 0.42.0-alpha |
| Editor right-click submenu | The drag-lint submenu of the code editor's right-click menu: the 1.52 caret commands, enabled by what the caret is on | 1.51.1-alpha |
| Exception facts in the editor | Hover, code lens and an MCP tool show which exception types a routine raises and handles | 1.50.0-alpha |
| Engine heartbeat: the IDE tells a busy engine from a stuck one | A running engine reports what it is doing, so the IDE kills only an engine whose status stopped moving | 1.40.0-alpha |
| Help line (DL page) | Type part of a feature name on the DL page, pick a match (with its menu path) and open that feature's help page at the configured help root | 1.33.0-alpha |
| IDE Menu Reference | What every item in the drag-lint menu does | 1.4.0-alpha |
| ide-release | Asks a running drag-lint Delphi IDE plugin not to respawn its drag-lint.exe child processes for a while -- and to drop the running one on its next request | 1.13.0-alpha |
| init: one command from a project to a wired AI client | Registers a project in the manifest, indexes it, finds its index and wires Claude Code, VS Code and Cursor to serve it, in one command | 1.38.0-alpha |
| Installation | Getting the CLI, the IDE plugin, or the LSP running | 0.21.0-alpha |
| lsp | Starts the LSP stdio server; client setting renameCompileGate (1.66, default off) builds a rename on a scratch mirror through the compile gate first | 0.6.0-alpha |
| LSP full rule set on save | Runs the full lint rule set on save so the editor shows what the CLI shows | 1.33.0-alpha |
| LSP protocol extensions | Answers outline, implementation, rename, lens, tokens, inlay hints, call and type hierarchy, type definition, highlights, folding and commands from the index | 1.33.0-alpha |
| LSP proxy merge | Merges drag-lint diagnostics, completion, hover, definition and navigation (hierarchy, type definition, highlight, folding) into a DelphiLSP proxy session | 1.33.0-alpha |
| Switch VS Code Delphi MCP entry | Turns the VS Code Delphi MCP entry off and on with a backup | 1.33.0-alpha |
| Register the MCP server (Claude Code, VS Code, Cursor) | Adds drag-lint serve to Claude Code, VS Code and Cursor MCP config: merged, backed up, idempotent, removable | 1.26.1-alpha |
| MCP get_neighbors | MCP tool: the call-graph neighbourhood of a symbol within 1..3 hops | 1.46.0-alpha |
| MCP server | Exposes the index to MCP clients as 20 tools | 0.4.0-alpha |
| Output encoding (--output-encoding) | Chooses the bytes verbs write to stdout, stderr and --output files: ASCII with \uXXXX escapes (default), UTF-8 or UTF-16LE, never a BOM; lossy ascii warns once | 1.35.0-alpha |
| project-context | Writes or checks the .dlcontext.json file beside a project: platform, config and define set, with the .dproj SHA-1 for staleness | 1.38.0-alpha |
| serve | Starts the MCP (Model Context Protocol) stdio server, for AI clients such as Claude or Cursor to query a drag-lint index | 0.4.0-alpha |
| Setup installer | One Inno Setup installer for the engine, Graphviz dot, the IDE plugin, ConvRulesEditor, drag-lint-graph and YADF | 1.28.3-alpha |
| Live routine metrics (Structure form) | Shows the length and cyclomatic complexity of the routine under the caret, from the index | 1.57.0-alpha |
| VS Code extension: Problems stay current | VS Code extension commands, and Problems that follow files an agent edits on disk | 1.38.0-alpha |
| workspace add | Registers a project file into a .drag-lint-workspace.json workspace config, so multi-project workspace commands know about it | 0.6.0-alpha |
| workspace index | Indexes every project registered in a .drag-lint-workspace.json workspace config in one pass | 0.6.0-alpha |
| workspace status | Reports the status of every project registered in a .drag-lint-workspace.json workspace config | 0.6.0-alpha |
Maintenance and diagnostics
Which databases cover what, drift checks, raw dumps, self-tests.
| Feature | What it does | Since |
|---|---|---|
| About and Status | The plugin's status window -- versions, connection health, and which indexes are actually in use | 0.15.0-alpha |
| ambiguous-calls | Resolver-coverage diagnostic that reports call sites the engine could not pin to exactly one target -- unresolved or ambiguous calls | 0.91.0-alpha |
| bench-context | Benchmarks the context command by building context bundles for a sample of symbols against a database | 0.18.0-alpha |
| diff | Compares two index databases and reports what changed between them -- for example an index snapshot taken before and after a refactor | 0.13.0-alpha |
| dump-call-edges | Diagnostic that dumps every resolved call edge in the index as refid|targetqname|confidence rows | 0.91.0-alpha |
| dump-refs | Diagnostic that dumps every ref in a file together with its enclosingsymbolid attribution | 0.82.0-alpha |
| Enum candidates: repo enum-candidates | Reports columns, fields and properties that are really enums, scored from code, DFMs, the repository and the database; read only | 1.64.0-alpha |
| Enum helper generator: repo enum-gen | Generates Delphi enums with record helpers and DUnitX tests from the enum candidates; ordinal = stored code, fillers for gaps, out of range raises | 1.64.0-alpha |
| Feature registry | The machine-checked master list of every feature, and the generator of the index pages | 1.22.0-alpha |
| Field repository | Keeps the TableTools field registry in one SQLite file per database, filled from Firebird (read-only), with a diffable text backup | 1.52.0-alpha |
| Field repository: generated calc fields | Writes a dataset's stored calculated-field bodies into one volatile OnCalcFields region, in dependency order | 1.61.0-alpha |
| Field repository: fields of a form in the IDE | Reads the datasets and grids of the form in the editor into the field repository, or writes persistent fields and grid columns back; checked first | 1.54.0-alpha |
| Field repository: generated handlers | Writes the field repository's event code and MAXLEN constants into hash-checked DLFR regions of existing units | 1.54.0-alpha |
| Field repository: describe a table's fields | Prints the per-field attributes of one repository table (kind, type, size, caption, width, events) as JSON or text, with an optional form/view overlay | 1.62.0-alpha |
| Grid column editors in the field repository | The field repository keeps the in-place editor of each cxGrid column: its PropertiesClassName and its Properties.* lines as the form has them | 1.56.0-alpha |
| info | Prints engine self-info: version, build date, license (MIT), tree-sitter details, and capabilities | 0.19.0-alpha |
| manifest where / migrate (installed layout v2) | Shows which drag-lint.json this engine reads and why; moves the exe-side one to %APPDATA% once (renamed, never deleted). Installed layout v2, off by default | 1.50.0-alpha |
| Library Drift Check | Flags registered library roots that have source on disk but nothing in the index | 0.47.0-alpha |
| Lookup layer SDK (interface, fake, conformance suite) | The tier-3 lookup layer interface for Pascal clients, an in-memory fake for tests, and a conformance suite LC01-LC11 any implementation can run | 1.63.0-alpha |
| Maintenance | Indexes, the manifest, reindexing, and what to do when something looks wrong | 1.4.0-alpha |
| Open Plugin Log | Opens the drag-lint plugin's own log file | 0.39.0-alpha |
| Project settings | Per-project settings store: drag-lint settings list|get|set|unset over _D-RAG\drag-lint-project.json and a local overlay | 1.53.0-alpha |
| Field repository: adopt ORM regions | Wraps the generated but unmarked code of existing ORM units in hashed DB-RAD A- regions, byte for byte, so the ORM redo can regenerate it | 1.65.0-alpha |
| Per-table ALTER from the field repository | Makes one Firebird table match the field repository: exact DDL, refused or lossy changes blocked before anything runs, dry run by default | 1.54.0-alpha |
| Enum columns to D_BYTETAG: repo alter-table --to-bytetag | Plans CHAR(1)/SMALLINT enum columns -> D_BYTETAG as isql scripts with a rollback; byte = enum-gen ordinal; never runs DDL | 1.65.0-alpha |
| Field repository backup formats: text, SQL, zip | Backs the field repository up as the diffable text file (default), an SQL script or a zip of a consistent copy, and restores each of them | 1.56.0-alpha |
| Copy events and columns between grid views | Copies the events of a grid view, its columns and their events to another view of the same form, or one event, as a change set; dry run by default | 1.56.0-alpha |
| Verified database backups and their purge | Backs a Firebird database up through the service API, restores it into a temporary database to prove it, lists and purges only its own files | 1.54.0-alpha |
| FIB$ reader inventory | Every routine that still names a FIB$ table or generator, classed SQL read / write, pipe load, name or message, from the project index | 1.61.0-alpha |
| Where a field is used | Tells per field name whether the project index finds it in a DFM control, a grid column, a lookup or code; the IDE Select Fields dialog uses it | 1.56.0-alpha |
| Generate grid column event handlers from the field repository | Writes stored grid column event code (OnGetDisplayText, OnCustomDrawCell, OnGetDataText, ...) into new handlers of a form; add only, dry run by default | 1.61.0-alpha |
| FIB$ table consumers (generated) | Generates the code that reads one FIB$ registry table from the field repository: a constant array with a Find function, or a pre-filled data module with Locate | 1.63.0-alpha |
| Generate the lookup layer interface unit from the field repository | Writes DLLookupLayerIntf.pas (and with --impl orm3 the ORM3 lookup units) into a client folder; dry run by default, backup on --apply | 1.62.0-alpha |
| Which dataset a lookup field takes its values from | For each lookup field of a form: the dataset that holds its table unfiltered, proved from the DFM and the index, ranked, or the tier fallback | 1.62.0-alpha |
| Read a form into the field repository | Reads the fields and calc / event code of a DFM into the field repository; a join field gets its own table, a calc over several tables its child end | 1.54.0-alpha |
| Datasets of an inherited form or data module | repo read-dfm follows link sources, lookups and grid datasets, and inherited datasets, into the ancestor DFM, and finds modules of used units in the project | 1.56.0-alpha |
| Read grid columns into the field repository | Read the columns of every TcxGridDBTableView and TDBGrid of a form, and its unbound columns, into the field repository | 1.60.0-alpha |
| Database regeneration: plan and verify | Plans, builds and verifies a NEW Firebird database from the field repository's schema-8 facts and a source database -- never writes an existing database | 1.64.0-alpha |
| Field repository: ORM preservation proof and run rollback | Proves an ORM generator run changed nothing outside the generator's regions (outside_changed per unit) and undoes one --apply run from its run manifest | 1.66.0-alpha |
| Write the field repository into a form | Brings the persistent fields of a text DFM, and their declarations in its unit, in line with the field repository as a change set, dry run by default | 1.54.0-alpha |
| Write grid columns from the field repository | Adds the columns a cxGrid view, an FDGridProvider TFDGPGridTableView or a TDBGrid lacks for the fields of a repository table; add only, dry run by default | 1.60.0-alpha |
| stop-now | Ask running engines (lsp, cycles --fix, index, lint-all) to stand down cleanly, so an index can be rebuilt or an engine replaced | 0.6.0-alpha |
| sql | Runs one read-only SQL statement against an index database and prints the result set | 0.40.5-alpha |
| Field repository wiki pages | Writes one Markdown page per repository table with a section per field: caption, type, kind, descriptions and where the project index shows, edits and uses it | 1.56.0-alpha |
Uses and Dependencies
Which units a unit needs, where they go in uses, and the cycles they make.
| Feature | What it does | Since |
|---|---|---|
| Auto uses on save (VS Code) | VS Code adds a missing unit to uses on save (source.addMissingImports); dropping an unused unit on save is opt-in and gated | 1.38.0-alpha |
| Missing unit in uses (unit-missing-from-uses) | Lint rule: names the unit that declares an undeclared identifier and adds it to the interface or implementation uses clause, cycle-checked | 1.38.0-alpha |