reqlanOverviewIdeasFilesCode filesClustersFoldersAttributesGraphPrint

Printable idea sheet

check_unused_imports

reqlan rq/core_analysis/check.rq:371

Katz 0.163

`check_references` reports an unused import when the import path resolves, the named idea exists, and the bound name produced by the import specifier or import alias is never referenced in the file body ( no `Local` reference to the bound name, no `Qualified` reference with qualifier = alias, no `IdeaSet` member with that name ).
Issue kind is `unused_import`. Severity defaults to `warning` ( controlled by `unusedImports`: `"warn"` | `"error"` | `"off"`, default `"warn"` ).
CLI flag: `--unused-imports <warn|error|off>`. Per-file `unusedImports` is read from `.reqlan/config.json` for the source file ' s applying base.
Suppressed when the preceding line is `//rq-ignore-error`.
Related: check, check_unresolved_imports, unused_imports, configuration_import_roots.

implementation
check.ts, server.ts, imports.rs, api.rs, analysis.rs
status
in-progress
tests
check.test.ts:unused-imports reports unused specifiers, check.test.ts:unused-imports honours warn and error, check.test.ts:unused-imports honours off

Interactive page: check_unused_imports