Delphi-RAG-Lint

drag-lint help

Migrate saved reports

Since: 1.56.0-alpha

Rewrites the old PowerShell-style COMMAND line of saved reports to the CLI style and lists every file it left alone, with the reason.

Read this when saved compare reports still carry -Target / -Project. migrate-reports changes only the COMMAND line (--target, --project), is optional because compare reads both styles, and never treats a left-alone file as an error.

How to run it

drag-lint migrate-reports <file-or-folder>... [--project <P.dproj>] [--dry-run] [--json]

Example:

drag-lint migrate-reports <folder> --dry-run --json

Full flag list: migrate-reports in the CLI reference.

Flags

FlagArgumentMeaningDefault
--project<P.dproj>
--dry-run
--json

Where to click

No IDE surface: this feature runs from the CLI (see How to run it).

Details

drag-lint migrate-reports <file-or-folder>... [--project <P.dproj>] [--dry-run] [--json]

Rewrites the COMMAND line of saved reports from the old PowerShell style (-Target "T" -Project "P") to the CLI style of 1.56 (--target "T" --project "P"). Only that line changes. A folder is searched with its subfolders; --project adds that project's snapshot folder.

The verb lists what it left alone and why: no COMMAND line, a wrapped or mixed-style line, an unknown argument, or a file that is not a report. A left-alone file is never an error. Forms CSV and chart DOT snapshots carry no command line and are reported as current.

compare reads both styles, so running this verb is optional.

FlagMeaning
--project <P.dproj>also search the snapshot folder of that project
--dry-runlist what would change, write nothing
--json{verb, dryRun, files, migrated[], current[], leftAlone[], failed[]}
ExitMeaning
0done
1a path is missing or a file is unreadable
2usage error

All features | CLI reference | IDE menus