Idea detail
check_unused_imports
reqlan rq/core_analysis/check.rq:371
Summary
`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.
Navigation
Attributes
| Key | Value |
|---|---|
| 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 |
Ancestor context
No ancestor chain recorded.
Outbound references
Inbound references
| Kind | Idea | Path | Snippet |
|---|---|---|---|
| references | check | reqlan rq/core_analysis/check.rq | check_unused_imports |
Unresolved references
| Kind | Idea | Path | Snippet |
|---|---|---|---|
| None | |||
Local graph
Initialising graph…