Printable idea sheet
check_wildcard_one
reqlan rq/core_analysis/check.rq:163
Katz 0.507
`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
- 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
Interactive page: check_wildcard_one