@autotelic/joggle 0.4.3 → 0.4.4
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/dist/check.js +11 -0
- package/package.json +1 -1
package/dist/check.js
CHANGED
|
@@ -250,6 +250,17 @@ export const checkRepository = Effect.fn("joggle.check")(function* (options) {
|
|
|
250
250
|
reason: `wrote 0 identities to ${target}: nothing new to accept`,
|
|
251
251
|
});
|
|
252
252
|
}
|
|
253
|
+
// A finding with no identity is one no baseline can ever hold: it survives every run
|
|
254
|
+
// and no accept quiets it. Saying so is the difference between "accepted" and
|
|
255
|
+
// "accepted, and these will be back".
|
|
256
|
+
const unnameable = report.diagnostics.filter((entry) => entry.identity === undefined).length;
|
|
257
|
+
if (unnameable > 0) {
|
|
258
|
+
notes.push({
|
|
259
|
+
ruleId: "joggle",
|
|
260
|
+
reason: unnameable +
|
|
261
|
+
" finding(s) declare no identity, so no baseline can accept them; they will appear in every run",
|
|
262
|
+
});
|
|
263
|
+
}
|
|
253
264
|
}
|
|
254
265
|
return notes.length === 0
|
|
255
266
|
? { ...report, diagnostics }
|