allow
Records a dl:ok review of one finding, so it stops being reported without being fixed.
Read this when a lint finding is a deliberate, reviewed exception that you do not intend to fix. allow records a dl:ok review for that one finding (identified by file, line and rule) so it stops being reported; without --apply it is a dry run.
How to run it
Full flag list: allow in the CLI reference.
Flags
| Flag | Argument | Meaning | Default |
|---|---|---|---|
--fix-line | <L> | ||
--fix-rule | <id> | ||
--apply | |||
--reason | <text> | ||
--rules-dir | <dir> | ||
--config | <file> | ||
--profile | <name> | ||
--enable | |||
--disable | |||
--stand-in-for | <realpath> |
Where to click
- RAD Studio main menu: drag-lint > Code Quality > Allow a Finding on This Line...
- Put the caret on the line of the finding
- Choose drag-lint > Code Quality > Allow a Finding on This Line...
- Confirm the rule (prefilled when the diagnostics hold one for that line), then choose Yes to write the dl:ok review or No for a dry-run preview
Details
Records a dl:ok review of one finding, so it stops being reported without
being fixed. Reach for it when a lint finding is a deliberate, reviewed
exception rather than something you intend to change.
Running it from the CLI
drag-lint allow <file> --fix-line <L> --fix-rule <id> [--apply] [--reason "<text>"]
--fix-line and --fix-rule identify the exact finding to allow. Per the
usage banner, this is a dry run without --apply: "record a dl:ok review of
ONE finding; dry-run without --apply".
Re-stamping a review (--reason, 1.52)
A marker's reason can carry a REVIEWED <yyyy-mm-dd> stamp (checked by
review-marker-reason-unreviewed). When allow re-hashes a STALE marker it keeps
the reason but drops that stamp and says so: a re-hash is not a re-review. After
you have re-read the code, pass the new reason and its stamp:
drag-lint allow Unit1.pas --fix-line 42 --fix-rule unused-private-member --apply --reason "REVIEWED 2026-11-18 kept for the RTTI streamer"
--reason REPLACES the marker's reason (it also re-stamps a marker whose hash is
still current); running it again with the same text changes nothing. A marker that allow
moves off a wrapped statement's continuation line keeps its reason, minus the stamp.
What it needs
No index required -- allow records the review directly against the given
file (a dl:ok marker), without going through a project index database.
Example
Illustrative:
drag-lint allow C:\Projects\MyApp\Unit1.pas --fix-line 42 --fix-rule unused-private-member --apply
This would record Unit1.pas line 42's unused-private-member finding as
reviewed, so it no longer appears in future lint runs.