Printable idea sheet
check_wildcard_zero
reqlan rq/core_analysis/check.rq:138
Katz 0.507
`check_references` flag `wildcard_zero` ( default `warn` ) controls a wildcard_reference that matches 0 ideas.
0 matches means the pattern hits nothing.
`warn` — emit the row with severity `warning` and match count 0.
`error` — emit the row with severity `error` and match count 0.
`off` — omit the row.
CLI: `--wildcard-zero <warn|error|off>` ( commands ).
API: `AnalysisApi.check({ wildcardZero })`.
Related: check check_wildcard_sparse check_wildcard_one
- 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_zero_flag_off_omits_empty_match, broken_references.rs:check_wildcard_zero_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
Interactive page: check_wildcard_zero