Idea detail
check_wildcard_one
reqlan rq/core_analysis/check.rq:163
block
done
Summary
`check_references` flag `wildcard_one` ( default `warn` ) controls a wildcard_reference that matches exactly 1 idea.
1 match means the pattern is too narrow — use a concrete reference instead.
`warn` — emit the row with severity `warning` and match count 1.
`error` — emit the row with severity `error` and match count 1.
`off` — omit the row.
CLI: `--wildcard-one <warn|error|off>` ( commands ).
API: `AnalysisApi.check({ wildcardOne })`.
Related: check check_wildcard_sparse check_wildcard_zero wildcard_references
Navigation
Attributes
| Key | Value |
|---|---|
| implementation | broken.rs, api.rs, check.ts, native-analysis-api.ts |
| status | done |
| tests | broken_references.rs:check_warns_when_a_wildcard_matches_zero_or_one_idea, broken_references.rs:check_wildcard_one_flag_off_omits_singleton_match, broken_references.rs:check_wildcard_one_flag_error_sets_severity, check.test.ts:warns on wildcards with 0 or 1 match, check.test.ts:honours wildcard-zero and wildcard-one handling flags, wildcard-references.test.ts:warns when wildcard matches only one idea |
Ancestor context
No ancestor chain recorded.
Outbound references
Inbound references
| Kind | Idea | Path | Snippet |
|---|---|---|---|
| references | commands | reqlan rq/cli/cli_package.rq | check_wildcard_one |
| references | check | reqlan rq/core_analysis/check.rq | check_wildcard_one |
| references | check_wildcard_sparse | reqlan rq/core_analysis/check.rq | check_wildcard_one |
| references | check_wildcard_zero | reqlan rq/core_analysis/check.rq | check_wildcard_one |
| references | check | reqlan rq/core_analysis/core.rq | check_wildcard_one |
| references | wildcard_references | reqlan rq/language/imports.rq | check_wildcard_one |
| references | wildcard_reference | reqlan rq/reference_types.rq | check_wildcard_one |
Unresolved references
| Kind | Idea | Path | Snippet |
|---|---|---|---|
| None | |||
Local graph
Initialising graph…