Copy Diagnostics (Current File)
Puts the current file's lint findings onto the clipboard.
Read this when you want to paste the current file findings elsewhere instead of reading them in the IDE. It puts the file lint findings onto the clipboard.
How to run it
Full flag list: lint in the CLI reference.
Flags
| Flag | Argument | Meaning | Default |
|---|---|---|---|
--rule | <id> | ||
--disable | |||
--rules-dir | <dir> | ||
--json | |||
--no-preprocess | |||
--library-db | <lib.sqlite> | ||
--db | <index.sqlite> | ||
--project-rules | |||
--stand-in-for | <realpath> |
Where to click
- drag-lint About window, button Copy Diagnostics (Current File)
Details
Puts the current file's lint findings onto the clipboard. Reach for it to paste a file's findings elsewhere (a chat, an issue, a note) instead of reading them in the IDE.
Running it from the CLI
drag-lint lint <path> [--rule <id>] [--disable id1,id2] [--rules-dir <dir>] [--json]
This runs the lint pass on a file and prints its findings. The clipboard-copy behavior is an IDE-side convenience on top of this verb; the CLI itself only prints.
Reaching it in the IDE
drag-lint > Copy Diagnostics (Current File)
What it needs
No index needed. lint <path> lints the given file directly, without
going through a project index database; the feature map marks this row's
Index column "no".
Example
Illustrative only:
drag-lint lint C:\Projects\MyApp\Unit1.pas --json
This would print Unit1.pas's findings as JSON; the IDE action copies
the equivalent findings text to the clipboard instead.