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.
Read this when an old unit carries hundreds of accepted findings and you want to see only what your change added. Tick new only above the Structure form tree: the Diagnostics list keeps the findings that are not in <project>\_D-RAG\lint-baseline.json, written by lint-all --write-baseline. Baseline fingerprints use one canonical path, so a baseline written from a relative path is honoured everywhere; unsaved edits in the editor buffer count.
Where to click
- RAD Studio main menu: drag-lint > Show Structure
- Write the baseline once:
drag-lint lint-all --db <db> --write-baseline <project folder>\_D-RAG\lint-baseline.json - Open the Structure form (drag-lint > Show Structure)
- Tick new only beside regex above the tree
- The Diagnostics root reads Diagnostics (N new of M) and lists only the new findings
- Write the baseline once:
Details
Shows only the findings of the current unit that the saved lint baseline does not hold. Reach for it in an old unit with hundreds of accepted findings, when you want to see what your own change added.
The baseline it reads
<project folder>\_D-RAG\lint-baseline.json, the file the CLI writes:
drag-lint lint-all --db <db> --write-baseline <project folder>\_D-RAG\lint-baseline.json
The decision is the CLI's own (--baseline): a finding is old when the
baseline holds the same rule id, the same file and the same trimmed line text
(occurrence by occurrence). Moving a line keeps it old; editing the line makes
it new.
When the file does not exist the root reads Diagnostics (9, no baseline) and
every finding is shown.
Limits
- For the file in the active editor tab the line text is read from the EDITOR BUFFER (since 1.59), so an edited, unsaved line is judged by what it says now: edit a baselined line and its finding reads as new at once. The baseline itself holds the text as it was SAVED when it was written. A file that is not the active tab is read from disk, as the CLI reads it.
- There is no setting for another baseline path yet; the file name is fixed.