Delphi-RAG-Lint

drag-lint help

Lint rules

Since: 0.2.0-alpha

Every lint rule the engine ships, imported from rules --json.

Read this to see every lint rule drag-lint can check, with its category and whether it is on by default or fixable. You can filter the list by category or get it as JSON.

How to run it

Full flag list: rules in the CLI reference.

Flags

FlagArgumentMeaningDefault
--json
--category<name>
--standardcwe|cert|misra
--rules-dir<dir>
--project<X.dproj>
--rule<id>
--target-compiler<ver|auto>

Where to click

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

Details

Lists the full lint rule catalog: every rule drag-lint can check, with its category, and its default enabled/fixable status. Reach for it to see what a lint run can find, or to filter by category.

The catalog currently holds 557 rules -- 418 enabled by default, 147 marked fixable -- across 23 categories. Of the 557, 439 are built-in and 118 are external .scm rule files.

Running it from the CLI

drag-lint rules [--json] [--category <name>] [--rules-dir <dir>]

What it needs

No index required -- rules reads the static rule catalog, not any project's indexed data.

Example

Illustrative:

drag-lint rules --category naming --json

This would print the catalog of naming-category rules as JSON.


All features | CLI reference | IDE menus