@expo/code-review-cli 0.9.0 → 0.9.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/core/config-refs.js +10 -6
- package/package.json +1 -1
|
@@ -674,12 +674,6 @@ export async function checkConfigRefs(options) {
|
|
|
674
674
|
}
|
|
675
675
|
}
|
|
676
676
|
for (const { line, token } of findProseCitations(text)) {
|
|
677
|
-
const forms = citationForms(token);
|
|
678
|
-
if (ignored.has(token) ||
|
|
679
|
-
forms.some((form) => covered.has(form)) ||
|
|
680
|
-
coveringGlobs.some((pattern) => forms.some((form) => matchesIgnore(form.replace(/^\.\.\.\//, ""), pattern)))) {
|
|
681
|
-
continue;
|
|
682
|
-
}
|
|
683
677
|
// Extension or wildcard tail ⇒ a citation on shape alone. Otherwise it only
|
|
684
678
|
// counts if it names something real: `eas-build-worker/terraform` and
|
|
685
679
|
// `general-central/{module,production}` are paths, `anthropic/claude-opus-5`
|
|
@@ -688,6 +682,16 @@ export async function checkConfigRefs(options) {
|
|
|
688
682
|
if (!isCodeCitation(token) && !named) {
|
|
689
683
|
continue;
|
|
690
684
|
}
|
|
685
|
+
// Coverage must accept the path the token RESOLVED to, not just the token as
|
|
686
|
+
// written: a prompt says `cert-manager` and the ref that pins it is
|
|
687
|
+
// `infrastructure/cert-manager/`. Without this, the fix the message suggests
|
|
688
|
+
// does not silence the citation it was suggested for.
|
|
689
|
+
const forms = [...citationForms(token), ...(named ? coveringForms(named) : [])];
|
|
690
|
+
if (ignored.has(token) ||
|
|
691
|
+
forms.some((form) => covered.has(form)) ||
|
|
692
|
+
coveringGlobs.some((pattern) => forms.some((form) => matchesIgnore(form.replace(/^\.\.\.\//, ""), pattern)))) {
|
|
693
|
+
continue;
|
|
694
|
+
}
|
|
691
695
|
const lineCitation = LINE_CITATION_RE.exec(token);
|
|
692
696
|
// For an extensionless token the suggestion is the path that actually resolved,
|
|
693
697
|
// which is also how a scope-relative citation learns its root-relative form.
|