@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.
Files changed (2) hide show
  1. package/dist/check.js +11 -0
  2. 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 }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@autotelic/joggle",
3
- "version": "0.4.3",
3
+ "version": "0.4.4",
4
4
  "type": "module",
5
5
  "description": "Cross-file patterns and idioms for TypeScript — the layer above the linter and the typechecker.",
6
6
  "license": "MIT",