You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"Conservative: re-export lists and `export *` are ignored (same as undocumented-export). Skips symbols shorter than 3 chars. Checks same-file references in the headSha file before querying default-branch Code Search (where brand-new PR exports are usually absent). Fail-safe on search errors or incomplete results.",
1143
1143
},
1144
1144
},
1145
+
{
1146
+
name: "exhaustiveness",
1147
+
title: "Enum/union exhaustiveness drift",
1148
+
category: "quality",
1149
+
cost: "github-light",
1150
+
defaultEnabled: true,
1151
+
profiles: ["balanced","deep"],
1152
+
requires: ["files","github-token","head-sha"],
1153
+
limits: {
1154
+
maxFiles: 10,
1155
+
maxFetches: 10,
1156
+
maxFindings: 25,
1157
+
},
1158
+
docs: {
1159
+
summary:
1160
+
"Flags when a PR adds a new enum member or string-literal union variant but an exhaustive switch still omits it.",
1161
+
looksAt:
1162
+
"Added enum/union members in changed TS/JS files, comparing pre-PR vs headSha member sets and scanning changed files for switches that covered all old members.",
1163
+
reports:
1164
+
"Type file, line, union/enum name, added member, and optional consumer file — never file contents.",
1165
+
network:
1166
+
"Bounded GitHub contents fetches at headSha for changed source files. Requires GitHub token forwarding for private repos.",
1167
+
notes:
1168
+
"Conservative: only explicit enum/union case labels; switches with a default branch are skipped. Fail-safe on fetch errors or ambiguous type parsing.",
Copy file name to clipboardExpand all lines: review-enrichment/analyzer-metadata.json
+28Lines changed: 28 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -1293,6 +1293,34 @@
1293
1293
"notes": "Conservative: re-export lists and `export *` are ignored (same as undocumented-export). Skips symbols shorter than 3 chars. Checks same-file references in the headSha file before querying default-branch Code Search (where brand-new PR exports are usually absent). Fail-safe on search errors or incomplete results."
1294
1294
}
1295
1295
},
1296
+
{
1297
+
"name": "exhaustiveness",
1298
+
"title": "Enum/union exhaustiveness drift",
1299
+
"category": "quality",
1300
+
"cost": "github-light",
1301
+
"defaultEnabled": true,
1302
+
"profiles": [
1303
+
"balanced",
1304
+
"deep"
1305
+
],
1306
+
"requires": [
1307
+
"files",
1308
+
"github-token",
1309
+
"head-sha"
1310
+
],
1311
+
"limits": {
1312
+
"maxFiles": 10,
1313
+
"maxFetches": 10,
1314
+
"maxFindings": 25
1315
+
},
1316
+
"docs": {
1317
+
"summary": "Flags when a PR adds a new enum member or string-literal union variant but an exhaustive switch still omits it.",
1318
+
"looksAt": "Added enum/union members in changed TS/JS files, comparing pre-PR vs headSha member sets and scanning changed files for switches that covered all old members.",
1319
+
"reports": "Type file, line, union/enum name, added member, and optional consumer file — never file contents.",
1320
+
"network": "Bounded GitHub contents fetches at headSha for changed source files. Requires GitHub token forwarding for private repos.",
1321
+
"notes": "Conservative: only explicit enum/union case labels; switches with a default branch are skipped. Fail-safe on fetch errors or ambiguous type parsing."
0 commit comments