@nielspeter/eess 0.4.0 → 0.5.0
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/README.md +94 -1
- package/dist/baseline-generator.d.ts +9 -0
- package/dist/baseline-generator.d.ts.map +1 -1
- package/dist/baseline-generator.js +9 -0
- package/dist/baseline-generator.js.map +1 -1
- package/dist/baseline.d.ts +1 -1
- package/dist/cardinality.d.ts.map +1 -1
- package/dist/cardinality.js +20 -5
- package/dist/cardinality.js.map +1 -1
- package/dist/cli-config.d.ts +59 -0
- package/dist/cli-config.d.ts.map +1 -0
- package/dist/cli-config.js +84 -0
- package/dist/cli-config.js.map +1 -0
- package/dist/collect-result.d.ts +94 -0
- package/dist/collect-result.d.ts.map +1 -0
- package/dist/collect-result.js +142 -0
- package/dist/collect-result.js.map +1 -0
- package/dist/combinators.d.ts +14 -0
- package/dist/combinators.d.ts.map +1 -1
- package/dist/combinators.js +53 -16
- package/dist/combinators.js.map +1 -1
- package/dist/condition.d.ts +37 -0
- package/dist/condition.d.ts.map +1 -1
- package/dist/condition.js +48 -1
- package/dist/condition.js.map +1 -1
- package/dist/correspondence.d.ts +30 -0
- package/dist/correspondence.d.ts.map +1 -1
- package/dist/correspondence.js +36 -1
- package/dist/correspondence.js.map +1 -1
- package/dist/dedupe-config-findings.d.ts.map +1 -1
- package/dist/dedupe-config-findings.js +27 -0
- package/dist/dedupe-config-findings.js.map +1 -1
- package/dist/diff-aware.d.ts +8 -9
- package/dist/diff-aware.d.ts.map +1 -1
- package/dist/diff-aware.js +38 -17
- package/dist/diff-aware.js.map +1 -1
- package/dist/emitter-findings.d.ts +167 -0
- package/dist/emitter-findings.d.ts.map +1 -0
- package/dist/emitter-findings.js +237 -0
- package/dist/emitter-findings.js.map +1 -0
- package/dist/errors.d.ts +48 -0
- package/dist/errors.d.ts.map +1 -1
- package/dist/errors.js +61 -0
- package/dist/errors.js.map +1 -1
- package/dist/exclusion-comments.d.ts +36 -1
- package/dist/exclusion-comments.d.ts.map +1 -1
- package/dist/exclusion-comments.js +185 -37
- package/dist/exclusion-comments.js.map +1 -1
- package/dist/execute-rule.d.ts +12 -3
- package/dist/execute-rule.d.ts.map +1 -1
- package/dist/execute-rule.js +184 -7
- package/dist/execute-rule.js.map +1 -1
- package/dist/file-walk.d.ts +22 -0
- package/dist/file-walk.d.ts.map +1 -0
- package/dist/file-walk.js +51 -0
- package/dist/file-walk.js.map +1 -0
- package/dist/format-json.d.ts +13 -0
- package/dist/format-json.d.ts.map +1 -1
- package/dist/format-json.js +24 -0
- package/dist/format-json.js.map +1 -1
- package/dist/index.d.ts +14 -46
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +13 -41
- package/dist/index.js.map +1 -1
- package/dist/internal.d.ts +55 -0
- package/dist/internal.d.ts.map +1 -0
- package/dist/internal.js +92 -0
- package/dist/internal.js.map +1 -0
- package/dist/mask-non-comment.d.ts +49 -0
- package/dist/mask-non-comment.d.ts.map +1 -0
- package/dist/mask-non-comment.js +261 -0
- package/dist/mask-non-comment.js.map +1 -0
- package/dist/owns-empty-discovery.d.ts.map +1 -1
- package/dist/owns-empty-discovery.js +12 -4
- package/dist/owns-empty-discovery.js.map +1 -1
- package/dist/path-suffix.d.ts +57 -0
- package/dist/path-suffix.d.ts.map +1 -0
- package/dist/path-suffix.js +73 -0
- package/dist/path-suffix.js.map +1 -0
- package/dist/predicate.d.ts +12 -0
- package/dist/predicate.d.ts.map +1 -1
- package/dist/predicate.js +20 -1
- package/dist/predicate.js.map +1 -1
- package/dist/preset-dispatch.d.ts +6 -34
- package/dist/preset-dispatch.d.ts.map +1 -1
- package/dist/preset-dispatch.js +30 -52
- package/dist/preset-dispatch.js.map +1 -1
- package/dist/report.d.ts +31 -7
- package/dist/report.d.ts.map +1 -1
- package/dist/report.js +174 -15
- package/dist/report.js.map +1 -1
- package/dist/rule-builder-like.d.ts +8 -2
- package/dist/rule-builder-like.d.ts.map +1 -1
- package/dist/rule-builder.d.ts +15 -0
- package/dist/rule-builder.d.ts.map +1 -1
- package/dist/rule-builder.js +41 -36
- package/dist/rule-builder.js.map +1 -1
- package/dist/rule-description.d.ts +50 -0
- package/dist/rule-description.d.ts.map +1 -1
- package/dist/rule-description.js +58 -0
- package/dist/rule-description.js.map +1 -1
- package/dist/selection-memo.d.ts +1 -3
- package/dist/selection-memo.d.ts.map +1 -1
- package/dist/selection-memo.js +1 -3
- package/dist/selection-memo.js.map +1 -1
- package/dist/silent-exclusion.d.ts +12 -0
- package/dist/silent-exclusion.d.ts.map +1 -1
- package/dist/silent-exclusion.js +22 -0
- package/dist/silent-exclusion.js.map +1 -1
- package/dist/terminal-builder.d.ts +29 -15
- package/dist/terminal-builder.d.ts.map +1 -1
- package/dist/terminal-builder.js +97 -51
- package/dist/terminal-builder.js.map +1 -1
- package/dist/vacuity-findings.d.ts +0 -6
- package/dist/vacuity-findings.d.ts.map +1 -1
- package/dist/vacuity-findings.js +27 -57
- package/dist/vacuity-findings.js.map +1 -1
- package/dist/violation.d.ts +22 -1
- package/dist/violation.d.ts.map +1 -1
- package/dist/violation.js.map +1 -1
- package/dist/watch.d.ts +71 -0
- package/dist/watch.d.ts.map +1 -0
- package/dist/watch.js +129 -0
- package/dist/watch.js.map +1 -0
- package/package.json +6 -1
package/dist/execute-rule.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"execute-rule.js","sourceRoot":"","sources":["../src/execute-rule.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,SAAS,CAAA;AAExB,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAA;AAG5C,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAC3C,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAA;AAC9C,OAAO,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAA;AACvD,OAAO,EAAE,sBAAsB,EAAE,MAAM,oBAAoB,CAAA;AAC3D,OAAO,EAAE,g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EAAE,MAAM,KAAK,MAAM,EAAE,CAAC;YAC/B,WAAW,CAAC,oBAAoB,CAAC,QAAQ,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC,CAAA;QACzD,CAAC;aAAM,IAAI,OAAO,EAAE,MAAM,KAAK,QAAQ,EAAE,CAAC;YACxC,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,sBAAsB,CAAC,QAAQ,EAAE,SAAS,CAAC,GAAG,IAAI,CAAC,CAAA;QAC1E,CAAC;aAAM,CAAC;YACN,WAAW,CAAC,gBAAgB,CAAC,QAAQ,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC,CAAA;QACrD,CAAC;IACH,CAAC;IAED,4EAA4E;IAC5E,0EAA0E;IAC1E,sEAAsE;IACtE,MAAM,SAAS,GAAG,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,WAAW,CAAC,CAAC,EAAE,MAAM,CAAC,KAAK,OAAO,CAAC,CAAA;IAC5E,IAAI,SAAS,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QACzB,MAAM,IAAI,aAAa,CAAC,SAAS,EAAE,GAAG,CAAC,MAAM,CAAC,CAAA;IAChD,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Recursive file discovery, shared by the dialects that read a directory tree
|
|
3
|
+
* rather than a TypeScript project.
|
|
4
|
+
*
|
|
5
|
+
* `eess-md` and `eess-crossvalidate` each carried a copy of this — measured at
|
|
6
|
+
* 99% similar, differing only in whether the ignore set arrived as a parameter
|
|
7
|
+
* or sat in a module constant. `toPosix` was duplicated alongside it, byte for
|
|
8
|
+
* byte.
|
|
9
|
+
*
|
|
10
|
+
* Kernel-safe: node builtins only, no project and no AST.
|
|
11
|
+
*/
|
|
12
|
+
/** Path separators normalised to `/`, so a corpus reads the same on Windows. */
|
|
13
|
+
export declare function toPosix(p: string): string;
|
|
14
|
+
/**
|
|
15
|
+
* Every file under `dir`, as paths relative to `root`, POSIX-separated.
|
|
16
|
+
*
|
|
17
|
+
* An unreadable directory — permissions, a dangling symlink — is skipped rather
|
|
18
|
+
* than thrown from: a corpus walk that dies on one bad entry reports nothing
|
|
19
|
+
* about the tree it could read, which is the worse failure for a gate.
|
|
20
|
+
*/
|
|
21
|
+
export declare function walkFiles(dir: string, root: string, ignoreDirs: ReadonlySet<string>): string[];
|
|
22
|
+
//# sourceMappingURL=file-walk.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"file-walk.d.ts","sourceRoot":"","sources":["../src/file-walk.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;GAUG;AAEH,gFAAgF;AAChF,wBAAgB,OAAO,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,CAEzC;AAED;;;;;;GAMG;AACH,wBAAgB,SAAS,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,UAAU,EAAE,WAAW,CAAC,MAAM,CAAC,GAAG,MAAM,EAAE,CAI9F"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { readdirSync } from 'node:fs';
|
|
2
|
+
import { join, relative, sep } from 'node:path';
|
|
3
|
+
/**
|
|
4
|
+
* Recursive file discovery, shared by the dialects that read a directory tree
|
|
5
|
+
* rather than a TypeScript project.
|
|
6
|
+
*
|
|
7
|
+
* `eess-md` and `eess-crossvalidate` each carried a copy of this — measured at
|
|
8
|
+
* 99% similar, differing only in whether the ignore set arrived as a parameter
|
|
9
|
+
* or sat in a module constant. `toPosix` was duplicated alongside it, byte for
|
|
10
|
+
* byte.
|
|
11
|
+
*
|
|
12
|
+
* Kernel-safe: node builtins only, no project and no AST.
|
|
13
|
+
*/
|
|
14
|
+
/** Path separators normalised to `/`, so a corpus reads the same on Windows. */
|
|
15
|
+
export function toPosix(p) {
|
|
16
|
+
return sep === '/' ? p : p.split(sep).join('/');
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Every file under `dir`, as paths relative to `root`, POSIX-separated.
|
|
20
|
+
*
|
|
21
|
+
* An unreadable directory — permissions, a dangling symlink — is skipped rather
|
|
22
|
+
* than thrown from: a corpus walk that dies on one bad entry reports nothing
|
|
23
|
+
* about the tree it could read, which is the worse failure for a gate.
|
|
24
|
+
*/
|
|
25
|
+
export function walkFiles(dir, root, ignoreDirs) {
|
|
26
|
+
const acc = [];
|
|
27
|
+
walkInto(dir, root, ignoreDirs, acc);
|
|
28
|
+
return acc;
|
|
29
|
+
}
|
|
30
|
+
function walkInto(dir, root, ignoreDirs, acc) {
|
|
31
|
+
let entries;
|
|
32
|
+
try {
|
|
33
|
+
entries = readdirSync(dir, { withFileTypes: true });
|
|
34
|
+
}
|
|
35
|
+
catch (err) {
|
|
36
|
+
void err; // unreadable dir (permissions, dangling symlink) — deliberately skipped
|
|
37
|
+
return;
|
|
38
|
+
}
|
|
39
|
+
for (const e of entries) {
|
|
40
|
+
const abs = join(dir, e.name);
|
|
41
|
+
if (e.isDirectory()) {
|
|
42
|
+
if (ignoreDirs.has(e.name))
|
|
43
|
+
continue;
|
|
44
|
+
walkInto(abs, root, ignoreDirs, acc);
|
|
45
|
+
}
|
|
46
|
+
else if (e.isFile()) {
|
|
47
|
+
acc.push(toPosix(relative(root, abs)));
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
//# sourceMappingURL=file-walk.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"file-walk.js","sourceRoot":"","sources":["../src/file-walk.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AACrC,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,GAAG,EAAE,MAAM,WAAW,CAAA;AAE/C;;;;;;;;;;GAUG;AAEH,gFAAgF;AAChF,MAAM,UAAU,OAAO,CAAC,CAAS;IAC/B,OAAO,GAAG,KAAK,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CA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only codeFrame: string | null;
|
|
58
58
|
readonly measured: number | null;
|
|
59
|
+
/**
|
|
60
|
+
* Other files this one finding concerns, or `null` when it concerns only its
|
|
61
|
+
* own (bug 0239).
|
|
62
|
+
*
|
|
63
|
+
* A finding about a RELATIONSHIP — two duplicate bodies, a cluster of them —
|
|
64
|
+
* is reported at one file and is about several. A consumer that filters by
|
|
65
|
+
* `file` alone will hide it from whoever edited any of the others, which is
|
|
66
|
+
* the bug this field exists to stop being reproduced downstream. If you
|
|
67
|
+
* filter, read this too.
|
|
68
|
+
*/
|
|
69
|
+
readonly relatedFiles: readonly string[] | null;
|
|
59
70
|
}
|
|
60
71
|
/** One finding removed by an inline `// eess-exclude` comment. */
|
|
61
72
|
export interface ArchJsonSuppression {
|
|
@@ -75,6 +86,8 @@ export interface ArchJsonReport {
|
|
|
75
86
|
readonly errors: number;
|
|
76
87
|
readonly warnings: number;
|
|
77
88
|
readonly reason: string | null;
|
|
89
|
+
/** Units examined — `null` when the caller supplied no evidence. */
|
|
90
|
+
readonly examined: number | null;
|
|
78
91
|
};
|
|
79
92
|
readonly untestedAllowlists: readonly ArchJsonUntestedAllowlist[];
|
|
80
93
|
readonly commentSuppressed: readonly ArchJsonSuppression[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"format-json.d.ts","sourceRoot":"","sources":["../src/format-json.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAA;
|
|
1
|
+
{"version":3,"file":"format-json.d.ts","sourceRoot":"","sources":["../src/format-json.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAA;AAEnD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA;AAGtD;;;;;;;;GAQG;AACH;;;;;;;;;;;GAWG;AACH,MAAM,WAAW,iBAAiB;IAChC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IACrB,QAAQ,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M,EAAE,MAAM,CAAA;QACvB,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAA;QACzB,QAAQ,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAA;QAC9B,oEAAoE;QACpE,QAAQ,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAA;KACjC,CAAA;IACD,QAAQ,CAAC,kBAAkB,EAAE,SAAS,yBAAyB,EAAE,CAAA;IACjE,QAAQ,CAAC,iBAAiB,EAAE,SAAS,mBAAmB,EAAE,CAAA;IAC1D,QAAQ,CAAC,UAAU,EAAE,SAAS,iBAAiB,EAAE,CAAA;CAClD;AAED,wBAAgB,oBAAoB,CAClC,UAAU,EAAE,aAAa,EAAE,EAC3B,MAAM,CAAC,EAAE,MAAM;AACf;;;;;;;;GAQG;AACH,QAAQ,GAAE,SAAS,YAAY,EAAO,GACrC,MAAM,CAqGR"}
|
package/dist/format-json.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { hasEvidence } from './collect-result.js';
|
|
1
2
|
import { commentSuppressions } from './comment-suppression.js';
|
|
2
3
|
export function formatViolationsJson(violations, reason,
|
|
3
4
|
/**
|
|
@@ -17,6 +18,22 @@ untested = []) {
|
|
|
17
18
|
errors,
|
|
18
19
|
warnings: violations.length - errors,
|
|
19
20
|
reason: reason ?? null,
|
|
21
|
+
/**
|
|
22
|
+
* The denominator, carried by hand — plan 0235.
|
|
23
|
+
*
|
|
24
|
+
* `JSON.stringify` DROPS an array's own properties: an `ArchViolation[]`
|
|
25
|
+
* carrying `examined` serialises as a bare `[…]` and the evidence is
|
|
26
|
+
* simply gone. Measured: `JSON.stringify(Object.assign([1,2],{examined:7}))`
|
|
27
|
+
* is `[1,2]`.
|
|
28
|
+
*
|
|
29
|
+
* Without this line `--format json` would carry violations and no
|
|
30
|
+
* denominator, which forecloses the machine-readable half of
|
|
31
|
+
* [bug 0174](../../../work/bugs/0174-eess-ts-reports-a-clean-gate-with-no-denominator.md)
|
|
32
|
+
* — a green with no way for a consumer to tell a clean run from one that
|
|
33
|
+
* examined nothing. `null` when the caller handed over a bare array, which
|
|
34
|
+
* is itself the honest answer: no evidence was supplied.
|
|
35
|
+
*/
|
|
36
|
+
examined: hasEvidence(violations) ? violations.examined : null,
|
|
20
37
|
},
|
|
21
38
|
// Bug 0015: an allowlist constrains edges, so a subject with none passes
|
|
22
39
|
// whatever the allowlist says. Reported rather than failed — for the `only*`
|
|
@@ -84,6 +101,13 @@ untested = []) {
|
|
|
84
101
|
// the number has to regex it back out of the message — which is the
|
|
85
102
|
// fragility bug 0012 was filed about.
|
|
86
103
|
measured: v.measured ?? null,
|
|
104
|
+
// Bug 0239. A finding about a relationship concerns several files and is
|
|
105
|
+
// reported at one of them; a consumer that filters by `file` needs the
|
|
106
|
+
// rest or it reproduces the very bug this field was added to fix. This is
|
|
107
|
+
// the documented agent-actionable stream, so omitting it would make the
|
|
108
|
+
// changeset's own advice — "read `relatedFiles` too" — impossible to
|
|
109
|
+
// follow through the interface CLAUDE.md points agents at.
|
|
110
|
+
relatedFiles: v.relatedFiles ?? null,
|
|
87
111
|
})),
|
|
88
112
|
};
|
|
89
113
|
return JSON.stringify(output, null, 2);
|
package/dist/format-json.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"format-json.js","sourceRoot":"","sources":["../src/format-json.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"format-json.js","sourceRoot":"","sources":["../src/format-json.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAA;AAEjD,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAA;AAmG9D,MAAM,UAAU,oBAAoB,CAClC,UAA2B,EAC3B,MAAe;AACf;;;;;;;;GAQG;AACH,WAAoC,EAAE;IAEtC,MAAM,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,QAAQ,IAA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"}
|
package/dist/index.d.ts
CHANGED
|
@@ -3,17 +3,14 @@ export type { Condition, ConditionContext } from './condition.js';
|
|
|
3
3
|
export { not, and, or } from './combinators.js';
|
|
4
4
|
export type { Matcher } from './combinators.js';
|
|
5
5
|
export type { ArchViolation, ArchFix } from './violation.js';
|
|
6
|
-
export { byCodepoint, severityFor, remedyRepeatsMessage } from './violation.js';
|
|
7
|
-
export { applyFixes } from './apply-fixes.js';
|
|
8
|
-
export type { ApplyResult } from './apply-fixes.js';
|
|
9
|
-
export { UNSUPPRESSABLE } from './unsuppressable.js';
|
|
10
6
|
export { RuleBuilder } from './rule-builder.js';
|
|
11
7
|
export { TerminalBuilder } from './terminal-builder.js';
|
|
12
|
-
export type { CollectResult } from './
|
|
13
|
-
export {
|
|
14
|
-
export {
|
|
15
|
-
export {
|
|
16
|
-
export { ArchRuleError } from './errors.js';
|
|
8
|
+
export type { CollectResult, Evidence } from './collect-result.js';
|
|
9
|
+
export { collectResult, mergeCollectResults, hasEvidence } from './collect-result.js';
|
|
10
|
+
export { EMITTER_NO_RECEIPT, EMITTER_PASS_WITHOUT_EVIDENCE, EMITTER_EXPIRED_DECLARATION, EMITTER_CONTRADICTORY_EVIDENCE, EMITTER_SOURCE_EMPTY, } from './emitter-findings.js';
|
|
11
|
+
export { assertsCardinality } from './cardinality.js';
|
|
12
|
+
export { ArchRuleError, isArchRuleError, ArchConfigError, isArchConfigError } from './errors.js';
|
|
13
|
+
export type { PathUniverse } from './path-universe.js';
|
|
17
14
|
export type { RuleMetadata } from './rule-metadata.js';
|
|
18
15
|
export type { RuleDescription } from './rule-description.js';
|
|
19
16
|
export { generateCodeFrame } from './code-frame.js';
|
|
@@ -25,56 +22,27 @@ export { formatViolationsGitHub } from './format-github.js';
|
|
|
25
22
|
export type { CheckOptions, OutputFormat, BaselineFilter, DiffFilterLike } from './check-options.js';
|
|
26
23
|
export { detectFormat, isCI } from './environment.js';
|
|
27
24
|
export { definePredicate, defineCondition } from './define.js';
|
|
28
|
-
export { dispatchRule, validateOverrides
|
|
29
|
-
export { reportViolations, finishPreset
|
|
25
|
+
export { dispatchRule, validateOverrides } from './preset-dispatch.js';
|
|
26
|
+
export { reportViolations, finishPreset } from './report.js';
|
|
30
27
|
export type { ReportMode, ReportOptions, PresetReportOptions } from './report.js';
|
|
31
28
|
export type { RuleSeverity, PresetBaseOptions } from './preset-dispatch.js';
|
|
32
|
-
export {
|
|
33
|
-
export type { Pair, MatchResult, MatchOptions } from './matching.js';
|
|
29
|
+
export type { Dispatchable } from './preset-dispatch.js';
|
|
34
30
|
export { correspondence, CorrespondenceBuilder } from './correspondence.js';
|
|
35
|
-
export type { Selection, ElementInfo, Direction
|
|
36
|
-
export {
|
|
37
|
-
export { escapeGitHub } from './format-github.js';
|
|
38
|
-
export { hashViolation } from './baseline.js';
|
|
39
|
-
export { discoverIdentityRoot, normalizeIdentityText } from './identity-root.js';
|
|
40
|
-
export { writeStderr } from './stderr.js';
|
|
41
|
-
export { bold, red, dim, yellow, cyan, gray } from './ansi.js';
|
|
31
|
+
export type { Selection, ElementInfo, Direction } from './correspondence.js';
|
|
32
|
+
export type { RelationSpec, CorrespondenceOptions, KeyBy } from './correspondence.js';
|
|
42
33
|
export { parseExclusionComments, isExcludedByComment } from './exclusion-comments.js';
|
|
43
|
-
export type { ExclusionComment, ExclusionWarning, ParseResult } from './exclusion-comments.js';
|
|
44
|
-
export { silent
|
|
34
|
+
export type { ExclusionComment, ExclusionWarning, ParseResult, MaskNonComment, ParseExclusionOptions, } from './exclusion-comments.js';
|
|
35
|
+
export { silent } from './silent-exclusion.js';
|
|
45
36
|
export type { SilentExclusion } from './silent-exclusion.js';
|
|
46
37
|
export { withBaseline, generateBaseline, Baseline } from './baseline.js';
|
|
47
38
|
export type { BaselineEntry, BaselineFile } from './baseline.js';
|
|
48
39
|
export { collectViolations } from './baseline-generator.js';
|
|
49
40
|
export { diffAware, DiffFilter } from './diff-aware.js';
|
|
50
|
-
export { recordEdgeCoverage, untestedRules, edgeCoverageNotice, resetEdgeCoverage, } from './edge-coverage.js';
|
|
51
41
|
export type { UntestedReason, EdgeCoverage } from './edge-coverage.js';
|
|
52
42
|
export type { GlobKind, GlobPosition, GlobBase, DeclaredGlob, GlobSite, OpaqueGlob, GlobLeaf, GlobTree, DeclaredGlobs, GlobNode, } from './glob-site.js';
|
|
53
|
-
export { isFaultPosition, countDeclaredGlobs, isGlobNode, isOpaqueGlob, globAnyOf, globNode, stampGlobs, negateGlobs, combineGlobs, } from './glob-site.js';
|
|
54
|
-
export type { PathUniverse } from './path-universe.js';
|
|
55
|
-
export { viewsFor } from './path-universe.js';
|
|
56
|
-
export type { OnDisk, DiskSet } from './disk-set.js';
|
|
57
|
-
export { isAnchored, isProjectRelative } from './project-relative.js';
|
|
58
|
-
export { isRecord, isNullaryCallable } from './type-guards.js';
|
|
59
|
-
export { shallowClone } from './shallow-clone.js';
|
|
60
|
-
export { suppressionNotice, activeNotice, resetDiffDisclosureForTests } from './diff-disclosure.js';
|
|
61
|
-
export { resetCommentSuppression, recordCommentSuppression, commentSuppressions, commentSuppressionNotice, } from './comment-suppression.js';
|
|
62
|
-
export { dedupeConfigFindings } from './dedupe-config-findings.js';
|
|
63
|
-
export { assertionLessViolation } from './terminal-builder.js';
|
|
64
|
-
export { toPortablePath } from './identity-root.js';
|
|
65
|
-
export type { Describable } from './rule-description.js';
|
|
66
|
-
export { isDescribable } from './rule-description.js';
|
|
67
|
-
export { resetStderrGuardForTests } from './stderr.js';
|
|
68
|
-
export { DECLARE_INSTEAD } from './unsuppressable.js';
|
|
69
|
-
export { UNSUPPRESSABLE_MECHANISMS } from './unsuppressable.js';
|
|
70
|
-
export { subjectOf } from './violation.js';
|
|
71
|
-
export { identityCollisions } from './violation.js';
|
|
72
|
-
export { resetIdentityCollisions } from './violation.js';
|
|
73
|
-
export { disambiguateIdentities } from './violation.js';
|
|
74
|
-
export { isArchRuleError } from './errors.js';
|
|
75
43
|
export type { ArchJsonViolation, ArchJsonSuppression, ArchJsonUntestedAllowlist, ArchJsonReport, } from './format-json.js';
|
|
76
44
|
export type { CorrespondenceResult } from './correspondence-core.js';
|
|
77
45
|
export { setCorrespondence } from './correspondence-core.js';
|
|
78
|
-
export { marksOwnEmptyDiscovery, ownsEmptyDiscovery } from './owns-empty-discovery.js';
|
|
79
46
|
export type { RuleBuilderLike } from './rule-builder-like.js';
|
|
47
|
+
export { globAnyOf, globNode } from './glob-site.js';
|
|
80
48
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAQA,YAAY,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAC/C,YAAY,EAAE,SAAS,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAA;AACjE,OAAO,EAAE,GAAG,EAAE,GAAG,EAAE,EAAE,EAAE,MAAM,kBAAkB,CAAA;AAC/C,YAAY,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAA;AAG/C,YAAY,EAAE,aAAa,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAQA,YAAY,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAC/C,YAAY,EAAE,SAAS,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAA;AACjE,OAAO,EAAE,GAAG,EAAE,GAAG,EAAE,EAAE,EAAE,MAAM,kBAAkB,CAAA;AAC/C,YAAY,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAA;AAG/C,YAAY,EAAE,aAAa,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAA;AAG5D,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAA;AAC/C,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAA;AAGvD,YAAY,EAAE,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,oBAAoB,EAAE,MAAM,0BAA0B,CAAA;AACpE,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAA;AAC5D,YAAY,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAA;AAO7D,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAA"}
|
package/dist/index.js
CHANGED
|
@@ -5,16 +5,13 @@
|
|
|
5
5
|
// defineCondition extension points. Nothing here depends on ts-morph or any
|
|
6
6
|
// dialect-specific parser.
|
|
7
7
|
export { not, and, or } from './combinators.js';
|
|
8
|
-
export { byCodepoint, severityFor, remedyRepeatsMessage } from './violation.js';
|
|
9
|
-
export { applyFixes } from './apply-fixes.js';
|
|
10
|
-
export { UNSUPPRESSABLE } from './unsuppressable.js';
|
|
11
8
|
// Rule builder, terminal builder, error
|
|
12
9
|
export { RuleBuilder } from './rule-builder.js';
|
|
13
10
|
export { TerminalBuilder } from './terminal-builder.js';
|
|
14
|
-
export {
|
|
15
|
-
export {
|
|
16
|
-
export {
|
|
17
|
-
export { ArchRuleError } from './errors.js';
|
|
11
|
+
export { collectResult, mergeCollectResults, hasEvidence } from './collect-result.js';
|
|
12
|
+
export { EMITTER_NO_RECEIPT, EMITTER_PASS_WITHOUT_EVIDENCE, EMITTER_EXPIRED_DECLARATION, EMITTER_CONTRADICTORY_EVIDENCE, EMITTER_SOURCE_EMPTY, } from './emitter-findings.js';
|
|
13
|
+
export { assertsCardinality } from './cardinality.js';
|
|
14
|
+
export { ArchRuleError, isArchRuleError, ArchConfigError, isArchConfigError } from './errors.js';
|
|
18
15
|
// Code frame & formatting
|
|
19
16
|
export { generateCodeFrame } from './code-frame.js';
|
|
20
17
|
export { formatViolations, formatViolationsPlain } from './format.js';
|
|
@@ -24,47 +21,22 @@ export { detectFormat, isCI } from './environment.js';
|
|
|
24
21
|
// Custom predicate/condition factories
|
|
25
22
|
export { definePredicate, defineCondition } from './define.js';
|
|
26
23
|
// Preset dispatch — generic per-rule severity/override infrastructure for presets
|
|
27
|
-
export { dispatchRule, validateOverrides
|
|
28
|
-
export { reportViolations, finishPreset
|
|
29
|
-
// Matching engine — shared by correspondence() and eess-ts's crossLayer
|
|
30
|
-
export { matchSelections } from './matching.js';
|
|
24
|
+
export { dispatchRule, validateOverrides } from './preset-dispatch.js';
|
|
25
|
+
export { reportViolations, finishPreset } from './report.js';
|
|
31
26
|
// Cross-validation — bind two element Selections and assert they correspond
|
|
32
27
|
export { correspondence, CorrespondenceBuilder } from './correspondence.js';
|
|
33
|
-
// Lower-level building blocks (used by dialects and covered by kernel tests)
|
|
34
|
-
export { applyFilters } from './execute-rule.js';
|
|
35
|
-
export { escapeGitHub } from './format-github.js';
|
|
36
|
-
export { hashViolation } from './baseline.js';
|
|
37
|
-
export { discoverIdentityRoot, normalizeIdentityText } from './identity-root.js';
|
|
38
|
-
export { writeStderr } from './stderr.js';
|
|
39
|
-
export { bold, red, dim, yellow, cyan, gray } from './ansi.js';
|
|
40
28
|
// Exclusions
|
|
41
29
|
export { parseExclusionComments, isExcludedByComment } from './exclusion-comments.js';
|
|
42
|
-
export { silent
|
|
30
|
+
export { silent } from './silent-exclusion.js';
|
|
43
31
|
// Baseline & diff-aware
|
|
44
32
|
export { withBaseline, generateBaseline, Baseline } from './baseline.js';
|
|
45
33
|
export { collectViolations } from './baseline-generator.js';
|
|
46
34
|
export { diffAware, DiffFilter } from './diff-aware.js';
|
|
47
|
-
// Edge coverage — allowlist conditions disclose when they tested nothing
|
|
48
|
-
export { recordEdgeCoverage, untestedRules, edgeCoverageNotice, resetEdgeCoverage, } from './edge-coverage.js';
|
|
49
|
-
export { isFaultPosition, countDeclaredGlobs, isGlobNode, isOpaqueGlob, globAnyOf, globNode, stampGlobs, negateGlobs, combineGlobs, } from './glob-site.js';
|
|
50
|
-
export { viewsFor } from './path-universe.js';
|
|
51
|
-
export { isAnchored, isProjectRelative } from './project-relative.js';
|
|
52
|
-
export { isRecord, isNullaryCallable } from './type-guards.js';
|
|
53
|
-
export { shallowClone } from './shallow-clone.js';
|
|
54
|
-
export { suppressionNotice, activeNotice, resetDiffDisclosureForTests } from './diff-disclosure.js';
|
|
55
|
-
export { resetCommentSuppression, recordCommentSuppression, commentSuppressions, commentSuppressionNotice, } from './comment-suppression.js';
|
|
56
|
-
export { dedupeConfigFindings } from './dedupe-config-findings.js';
|
|
57
|
-
export { assertionLessViolation } from './terminal-builder.js';
|
|
58
|
-
export { toPortablePath } from './identity-root.js';
|
|
59
|
-
export { isDescribable } from './rule-description.js';
|
|
60
|
-
export { resetStderrGuardForTests } from './stderr.js';
|
|
61
|
-
export { DECLARE_INSTEAD } from './unsuppressable.js';
|
|
62
|
-
export { UNSUPPRESSABLE_MECHANISMS } from './unsuppressable.js';
|
|
63
|
-
export { subjectOf } from './violation.js';
|
|
64
|
-
export { identityCollisions } from './violation.js';
|
|
65
|
-
export { resetIdentityCollisions } from './violation.js';
|
|
66
|
-
export { disambiguateIdentities } from './violation.js';
|
|
67
|
-
export { isArchRuleError } from './errors.js';
|
|
68
35
|
export { setCorrespondence } from './correspondence-core.js';
|
|
69
|
-
|
|
36
|
+
// Glob declaration — the constructors a user-written `definePredicate` needs to
|
|
37
|
+
// declare what it matches on. The types are above; these build them. ADR-011's
|
|
38
|
+
// first cut moved them behind `/internal` and left `packages/ts/src/index.ts`'s
|
|
39
|
+
// comment about them standing over the types alone, so the documented extension
|
|
40
|
+
// path required the internal entry point.
|
|
41
|
+
export { globAnyOf, globNode } from './glob-site.js';
|
|
70
42
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,qDAAqD;AACrD,EAAE;AACF,+EAA+E;AAC/E,8EAA8E;AAC9E,4EAA4E;AAC5E,2BAA2B;AAK3B,OAAO,EAAE,GAAG,EAAE,GAAG,EAAE,EAAE,EAAE,MAAM,kBAAkB,CAAA;
|
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AE,cAAc,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAA;AAM3E,aAAa;AACb,OAAO,EAAE,sBAAsB,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAA;AAQrF,OAAO,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAA;AAG9C,wBAAwB;AACxB,OAAO,EAAE,YAAY,EAAE,gBAAgB,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAA;AAExE,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAA;AAC3D,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AA4BvD,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAA;AAG5D,gFAAgF;AAChF,+EAA+E;AAC/E,gFAAgF;AAChF,gFAAgF;AAChF,0CAA0C;AAC1C,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAA"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
export type { ApplyResult } from './apply-fixes.js';
|
|
2
|
+
export type { Describable } from './rule-description.js';
|
|
3
|
+
export type { OnDisk, DiskSet } from './disk-set.js';
|
|
4
|
+
export type { Pair, MatchResult, MatchOptions } from './matching.js';
|
|
5
|
+
export { DECLARE_INSTEAD } from './unsuppressable.js';
|
|
6
|
+
export { UNSUPPRESSABLE } from './unsuppressable.js';
|
|
7
|
+
export { UNSUPPRESSABLE_MECHANISMS } from './unsuppressable.js';
|
|
8
|
+
export { applyFilters } from './execute-rule.js';
|
|
9
|
+
export { applyFixes } from './apply-fixes.js';
|
|
10
|
+
export { assertionLessViolation } from './terminal-builder.js';
|
|
11
|
+
export { bold, red, dim, yellow, cyan, gray } from './ansi.js';
|
|
12
|
+
export { byCodepoint, severityFor, remedyRepeatsMessage } from './violation.js';
|
|
13
|
+
export { dedupeConfigFindings } from './dedupe-config-findings.js';
|
|
14
|
+
export { isEmitterFinding, EMITTER_IDS } from './emitter-findings.js';
|
|
15
|
+
export { disambiguateIdentities } from './violation.js';
|
|
16
|
+
export { discoverIdentityRoot, normalizeIdentityText } from './identity-root.js';
|
|
17
|
+
export { escapeGitHub } from './format-github.js';
|
|
18
|
+
export { hashViolation } from './baseline.js';
|
|
19
|
+
export { identityCollisions } from './violation.js';
|
|
20
|
+
export { isAnchored, isProjectRelative } from './project-relative.js';
|
|
21
|
+
export { isDescribable } from './rule-description.js';
|
|
22
|
+
export { isFaultPosition, countDeclaredGlobs, isGlobNode, isOpaqueGlob, stampGlobs, negateGlobs, combineGlobs, } from './glob-site.js';
|
|
23
|
+
export { isRecord, isNullaryCallable } from './type-guards.js';
|
|
24
|
+
export { isSilent } from './silent-exclusion.js';
|
|
25
|
+
export { marksAssertsCardinality } from './cardinality.js';
|
|
26
|
+
export { marksOwnEmptyDiscovery, ownsEmptyDiscovery } from './owns-empty-discovery.js';
|
|
27
|
+
export { matchSelections } from './matching.js';
|
|
28
|
+
export { recordEdgeCoverage, untestedRules, edgeCoverageNotice, resetEdgeCoverage, } from './edge-coverage.js';
|
|
29
|
+
export { registerCacheReset, clearRegisteredCaches } from './cache-registry.js';
|
|
30
|
+
export { resetCommentSuppression, recordCommentSuppression, commentSuppressions, commentSuppressionNotice, } from './comment-suppression.js';
|
|
31
|
+
export { resetIdentityCollisions } from './violation.js';
|
|
32
|
+
export { resetStderrGuardForTests } from './stderr.js';
|
|
33
|
+
export { selectionMemo } from './selection-memo.js';
|
|
34
|
+
export { shallowClone } from './shallow-clone.js';
|
|
35
|
+
export { subjectOf } from './violation.js';
|
|
36
|
+
export { suppressionNotice, activeNotice, resetDiffDisclosureForTests } from './diff-disclosure.js';
|
|
37
|
+
export { toPortablePath } from './identity-root.js';
|
|
38
|
+
export { viewsFor } from './path-universe.js';
|
|
39
|
+
export { pathSuffixIndex } from './path-suffix.js';
|
|
40
|
+
export type { PathSuffixIndex, PathSuffixMatch } from './path-suffix.js';
|
|
41
|
+
export { violationsEmittedCount } from './report.js';
|
|
42
|
+
export { writeStderr } from './stderr.js';
|
|
43
|
+
export { RunScheduler, watchAndRerun } from './watch.js';
|
|
44
|
+
export type { WatchOptions } from './watch.js';
|
|
45
|
+
export { findConfigFile, extractSharedConfig, isModuleFormatRefusal, requireRuleFiles, } from './cli-config.js';
|
|
46
|
+
export type { SharedCliConfig } from './cli-config.js';
|
|
47
|
+
export { walkFiles, toPosix } from './file-walk.js';
|
|
48
|
+
export { declaredGlobsOf } from './rule-builder.js';
|
|
49
|
+
export { recordExclusions } from './silent-exclusion.js';
|
|
50
|
+
export { selectMatching, matchingElements } from './correspondence.js';
|
|
51
|
+
export { recordPredicate } from './predicate.js';
|
|
52
|
+
export { evaluateConditions, conditionContextFrom } from './condition.js';
|
|
53
|
+
export { ruleDescriptionOf, ruleDescriptionFrom } from './rule-description.js';
|
|
54
|
+
export { assertHomogeneous } from './combinators.js';
|
|
55
|
+
//# sourceMappingURL=internal.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"internal.d.ts","sourceRoot":"","sources":["../src/internal.ts"],"names":[],"mappings":"AAeA,YAAY,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AACnD,YAAY,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AACxD,YAAY,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,eAAe,CAAA;AACpD,YAAY,EAAE,IAAI,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,eAAe,CAAA;AACpE,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAA;AACrD,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAA;AACpD,OAAO,EAAE,yBAAyB,EAAE,MAAM,qBAAqB,CAAA;AAC/D,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAChD,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAC7C,OAAO,EAAE,sBAAsB,EAAE,MAAM,uBAAuB,CAAA;AAC9D,OAAO,EAAE,IAA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AqB,CAAA;AAItE,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAA;AAIhD,OAAO,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAA;AAIzE,OAAO,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAA;AAC9E,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAA"}
|
package/dist/internal.js
ADDED
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
// @nielspeter/eess/internal — family plumbing (ADR-011).
|
|
2
|
+
//
|
|
3
|
+
// NOT public API. These symbols exist so the sibling dialects can share the
|
|
4
|
+
// kernel's engine without each reimplementing it; a consumer writing rules never
|
|
5
|
+
// names them, and nothing here is taught by `docs/` or a package README.
|
|
6
|
+
//
|
|
7
|
+
// The boundary is enforced on this side of the line only: a dialect may import
|
|
8
|
+
// from here, and its barrel must never re-export what it finds. It cannot be
|
|
9
|
+
// enforced on the consumer's side — a subpath export is published and resolvable
|
|
10
|
+
// by anyone, which ADR-011's Enforcement table records as `manual` rather than
|
|
11
|
+
// pretending otherwise.
|
|
12
|
+
//
|
|
13
|
+
// Moving a symbol OUT of here and onto the root is additive. Moving one IN is a
|
|
14
|
+
// breaking change and needs a changeset that says so.
|
|
15
|
+
export { DECLARE_INSTEAD } from './unsuppressable.js';
|
|
16
|
+
export { UNSUPPRESSABLE } from './unsuppressable.js';
|
|
17
|
+
export { UNSUPPRESSABLE_MECHANISMS } from './unsuppressable.js';
|
|
18
|
+
export { applyFilters } from './execute-rule.js';
|
|
19
|
+
export { applyFixes } from './apply-fixes.js';
|
|
20
|
+
export { assertionLessViolation } from './terminal-builder.js';
|
|
21
|
+
export { bold, red, dim, yellow, cyan, gray } from './ansi.js';
|
|
22
|
+
export { byCodepoint, severityFor, remedyRepeatsMessage } from './violation.js';
|
|
23
|
+
export { dedupeConfigFindings } from './dedupe-config-findings.js';
|
|
24
|
+
// The emitter's own findings, for a dialect door that must tell "this receipt
|
|
25
|
+
// carried no evidence" apart from "this rule matched nothing". They are
|
|
26
|
+
// different faults with different remedies, and a door that refuses on the
|
|
27
|
+
// second is a false positive — measured: one dead preset glob blocked every fix
|
|
28
|
+
// in a run. Internal, not root: an adopter has no reason to mint or classify an
|
|
29
|
+
// emitter finding, which is proposal 009's subject.
|
|
30
|
+
export { isEmitterFinding, EMITTER_IDS } from './emitter-findings.js';
|
|
31
|
+
export { disambiguateIdentities } from './violation.js';
|
|
32
|
+
export { discoverIdentityRoot, normalizeIdentityText } from './identity-root.js';
|
|
33
|
+
export { escapeGitHub } from './format-github.js';
|
|
34
|
+
export { hashViolation } from './baseline.js';
|
|
35
|
+
export { identityCollisions } from './violation.js';
|
|
36
|
+
export { isAnchored, isProjectRelative } from './project-relative.js';
|
|
37
|
+
export { isDescribable } from './rule-description.js';
|
|
38
|
+
export { isFaultPosition, countDeclaredGlobs, isGlobNode, isOpaqueGlob, stampGlobs, negateGlobs, combineGlobs, } from './glob-site.js';
|
|
39
|
+
export { isRecord, isNullaryCallable } from './type-guards.js';
|
|
40
|
+
export { isSilent } from './silent-exclusion.js';
|
|
41
|
+
export { marksAssertsCardinality } from './cardinality.js';
|
|
42
|
+
export { marksOwnEmptyDiscovery, ownsEmptyDiscovery } from './owns-empty-discovery.js';
|
|
43
|
+
export { matchSelections } from './matching.js';
|
|
44
|
+
export { recordEdgeCoverage, untestedRules, edgeCoverageNotice, resetEdgeCoverage, } from './edge-coverage.js';
|
|
45
|
+
export { registerCacheReset, clearRegisteredCaches } from './cache-registry.js';
|
|
46
|
+
export { resetCommentSuppression, recordCommentSuppression, commentSuppressions, commentSuppressionNotice, } from './comment-suppression.js';
|
|
47
|
+
export { resetIdentityCollisions } from './violation.js';
|
|
48
|
+
export { resetStderrGuardForTests } from './stderr.js';
|
|
49
|
+
export { selectionMemo } from './selection-memo.js';
|
|
50
|
+
export { shallowClone } from './shallow-clone.js';
|
|
51
|
+
export { subjectOf } from './violation.js';
|
|
52
|
+
export { suppressionNotice, activeNotice, resetDiffDisclosureForTests } from './diff-disclosure.js';
|
|
53
|
+
export { toPortablePath } from './identity-root.js';
|
|
54
|
+
export { viewsFor } from './path-universe.js';
|
|
55
|
+
// Bug 0257: one suffix resolver, called by eess-md and eess-crossvalidate.
|
|
56
|
+
export { pathSuffixIndex } from './path-suffix.js';
|
|
57
|
+
export { violationsEmittedCount } from './report.js';
|
|
58
|
+
export { writeStderr } from './stderr.js';
|
|
59
|
+
// Watch-mode scheduling and the watch loop, shared by every dialect CLI. Family
|
|
60
|
+
// plumbing rather than public API (ADR-011): a consumer writing rules never
|
|
61
|
+
// calls this; a dialect's `--watch` does. Unified here because the two copies
|
|
62
|
+
// drifted and one of them kept a bug the other had fixed — see `watch.ts`.
|
|
63
|
+
export { RunScheduler, watchAndRerun } from './watch.js';
|
|
64
|
+
// The dialect-independent halves of CLI config handling — finding the file,
|
|
65
|
+
// validating what a loaded module claims, and classifying Node's module-format
|
|
66
|
+
// refusal. Family plumbing (ADR-011): a consumer writing rules never calls
|
|
67
|
+
// these; every dialect's CLI does, and did so from its own copy until now.
|
|
68
|
+
export { findConfigFile, extractSharedConfig, isModuleFormatRefusal, requireRuleFiles, } from './cli-config.js';
|
|
69
|
+
// Recursive file discovery for the dialects that read a directory tree rather
|
|
70
|
+
// than a TypeScript project (`eess-md`, `eess-crossvalidate`). Each carried its
|
|
71
|
+
// own copy at 99% similarity.
|
|
72
|
+
export { walkFiles, toPosix } from './file-walk.js';
|
|
73
|
+
// The globs a rule declares, stamped with their origin. Family plumbing — a
|
|
74
|
+
// dialect's own rule-declaration layer calls it; a consumer writing rules does not.
|
|
75
|
+
export { declaredGlobsOf } from './rule-builder.js';
|
|
76
|
+
// Recording exclusion patterns into a builder's state. Family plumbing: the
|
|
77
|
+
// dialects' builders call it, a consumer writing rules does not.
|
|
78
|
+
export { recordExclusions } from './silent-exclusion.js';
|
|
79
|
+
// Applying a rule's predicates to its elements. Family plumbing: the dialects'
|
|
80
|
+
// builders call it, a consumer writing rules does not.
|
|
81
|
+
export { selectMatching, matchingElements } from './correspondence.js';
|
|
82
|
+
// Recording a predicate on a builder, diagnosing one that arrived after
|
|
83
|
+
// `.should()`. Family plumbing.
|
|
84
|
+
export { recordPredicate } from './predicate.js';
|
|
85
|
+
// Running a rule's conditions over its selected elements, carrying the evidence
|
|
86
|
+
// count ADR-010 requires. Family plumbing: dialect builders call it.
|
|
87
|
+
export { evaluateConditions, conditionContextFrom } from './condition.js';
|
|
88
|
+
// Assembling a rule's English description from what it declared. Family
|
|
89
|
+
// plumbing: every dialect builder renders one, a consumer does not.
|
|
90
|
+
export { ruleDescriptionOf, ruleDescriptionFrom } from './rule-description.js';
|
|
91
|
+
export { assertHomogeneous } from './combinators.js';
|
|
92
|
+
//# sourceMappingURL=internal.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"internal.js","sourceRoot":"","sources":["../src/internal.ts"],"names":[],"mappings":"AAAA,yDAAyD;AACzD,EAAE;AACF,4EAA4E;AAC5E,iFAAiF;AACjF,yEAAyE;AACzE,EAAE;AACF,+EAA+E;AAC/E,6EAA6E;AAC7E,iFAAiF;AACjF,+EAA+E;AAC/E,wBAAwB;AACxB,EAAE;AACF,gFAAgF;AAChF,sDAAsD;AAMtD,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAA;AACrD,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAA;AACpD,OAAO,EAAE,yBAAyB,EAAE,MAAM,qBAAqB,CAAA;AAC/D,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAChD,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAC7C,OAAO,EAAE,sBAAsB,EAAE,MAAM,uBAAuB,CAAA;AAC9D,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,WAAW,CAAA;AAC9D,OAAO,EAAE,WAAW,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