Idea detail
check_wildcard_sparse
reqlan rq/core_analysis/check.rq:114
block
done
Summary
A wildcard_reference is for many matches.
check recounts each wildcard against the full idea catalog, not the stored edges, so files that the indexer visited first still get the true match count.
How 0 - match and 1 - match rows are handled is controlled by check_wildcard_zero and check_wildcard_one ( both default `warn` ).
Ignore a site with comment_reference_ignore.
The language server already warns when a wildcard matches nothing ( wildcard_references ); it also warns when the match count is 1.
Related: check_wildcard_sparse wildcard_references
Navigation
Attributes
| Key | Value |
|---|---|
| implementation | broken.rs, extract.rs, format-broken-refs.ts, reqlan-validator.ts |
| status | done |
| tests | broken_references.rs:check_warns_when_a_wildcard_matches_zero_or_one_idea, broken_references.rs:check_skips_sparse_wildcard_warning_on_rq_ignore_error, check.test.ts:warns on wildcards with 0 or 1 match, format-broken-refs.test.ts:marks wildcard sparse rows as warnings, wildcard-references.test.ts:warns when wildcard matches nothing, 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 | check | reqlan rq/core_analysis/check.rq | check_wildcard_sparse |
| references | check_wildcard_zero | reqlan rq/core_analysis/check.rq | check_wildcard_sparse |
| references | check_wildcard_one | reqlan rq/core_analysis/check.rq | check_wildcard_sparse |
| references | check | reqlan rq/core_analysis/core.rq | check_wildcard_sparse |
| references | wildcard_references | reqlan rq/language/imports.rq | check_wildcard_sparse |
| references | wildcard_reference | reqlan rq/reference_types.rq | check_wildcard_sparse |
Unresolved references
| Kind | Idea | Path | Snippet |
|---|---|---|---|
| None | |||
Local graph
Initialising graph…