@hailstails/hone 0.1.0-pre.4 → 0.1.0-pre.5

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 (45) hide show
  1. package/ADOPTING.md +37 -12
  2. package/MIGRATING.md +4 -4
  3. package/README.md +35 -16
  4. package/api/audit.d.ts +3 -2
  5. package/api/rule-set.d.ts +2 -4
  6. package/chunks/chunk-3HFJHJDO.js +53 -0
  7. package/chunks/chunk-7OVV6NEU.js +22 -0
  8. package/chunks/chunk-7PVPPH4C.js +13 -0
  9. package/chunks/chunk-HVABJ7T4.js +361 -0
  10. package/chunks/{chunk-BX6QHLSZ.js → chunk-IIMK5BCL.js} +57 -4
  11. package/chunks/{chunk-FOAGAYXM.js → chunk-SWPCKTJV.js} +44 -397
  12. package/chunks/{chunk-RZA3OVOO.js → chunk-VUG3DJHN.js} +5 -3
  13. package/chunks/{chunk-EYCRDEXX.js → chunk-YBWVUDIG.js} +2 -13
  14. package/core/check/tool-command.js +356 -81
  15. package/core/mechanism-port/piece-failure-types.d.ts +14 -0
  16. package/core/mechanism-port/runner-module-types.d.ts +5 -0
  17. package/core/rule-set-reader/authored-rule-set-types.d.ts +48 -0
  18. package/core/values/json-value.d.ts +3 -0
  19. package/docs/adding-a-discipline-or-mechanism.md +6 -3
  20. package/docs/extending.md +357 -0
  21. package/mechanisms/audit/CD-1/any-cast.js +9 -37
  22. package/mechanisms/audit/CD-19/import-boundaries.js +79 -68
  23. package/mechanisms/audit/CD-19/piece.json +5 -0
  24. package/mechanisms/audit/CD-2/cast-expressions.js +14 -37
  25. package/mechanisms/audit/CD-5/comments-directives.js +137 -55
  26. package/mechanisms/audit/CD-5/piece.json +7 -0
  27. package/mechanisms/audit/runner/README.md +1 -0
  28. package/mechanisms/audit/runner/runner.js +10 -6
  29. package/mechanisms/audit/runner/typescript-parse.d.ts +6 -0
  30. package/mechanisms/audit/runner/walker-piece.d.ts +5 -5
  31. package/mechanisms/eslint/runner/README.md +1 -1
  32. package/mechanisms/eslint/runner/runner.js +85 -35
  33. package/package.json +4 -4
  34. package/rules/CD-1/README.md +5 -5
  35. package/rules/CD-1/discipline.json +16 -6
  36. package/rules/CD-19/README.md +13 -3
  37. package/rules/CD-19/discipline.json +6 -8
  38. package/rules/CD-2/README.md +8 -4
  39. package/rules/CD-2/discipline.json +25 -7
  40. package/rules/CD-5/README.md +17 -5
  41. package/rules/CD-5/discipline.json +66 -0
  42. package/core/mechanism-port/runner-failure-types.d.ts +0 -38
  43. package/core/rule-set-reader/rule-set-types.d.ts +0 -41
  44. /package/api/{audit.js → audit.mjs} +0 -0
  45. /package/api/{rule-set.js → rule-set.mjs} +0 -0
@@ -1,38 +0,0 @@
1
- import type { RepoPath } from "../values/repo-path-types.js";
2
- export type PeerKind = "required" | "optional";
3
- export type RunnerFailure = {
4
- readonly kind: "piece-invalid";
5
- readonly pieceRoot: string;
6
- readonly detail: string;
7
- } | {
8
- readonly kind: "tool-failed";
9
- readonly detail: string;
10
- } | {
11
- readonly kind: "file-unreadable";
12
- readonly file: RepoPath;
13
- readonly detail: string;
14
- } | {
15
- readonly kind: "plugin-conflict";
16
- readonly detail: string;
17
- } | {
18
- readonly kind: "team-config-unloadable";
19
- readonly detail: string;
20
- } | {
21
- readonly kind: "runner-invalid-output";
22
- readonly detail: string;
23
- } | {
24
- readonly kind: "file-unparseable";
25
- readonly file: RepoPath;
26
- readonly detail: string;
27
- } | {
28
- readonly kind: "toolchain-unavailable";
29
- readonly packageName: string;
30
- readonly peer: PeerKind;
31
- readonly supported: string;
32
- readonly found: string;
33
- } | {
34
- readonly kind: "toolchain-shadowed";
35
- readonly packageName: string;
36
- readonly location: string;
37
- readonly installRoot: string;
38
- };
@@ -1,41 +0,0 @@
1
- import type { AnchorKind } from "../values/anchor.js";
2
- import type { ClauseId, DisciplineId, MechanismId } from "../values/identifier-types.js";
3
- import type { RepoPath } from "../values/repo-path-types.js";
4
- export type SourceCase = {
5
- readonly name: string;
6
- readonly fileName: RepoPath;
7
- readonly source: string;
8
- readonly expectedLines: readonly number[];
9
- };
10
- export type ClauseExceptions = "allowed" | "refused";
11
- export type ClauseDefinition = {
12
- readonly kind: "mechanical";
13
- readonly id: ClauseId;
14
- readonly summary: string;
15
- readonly mechanisms: readonly MechanismId[];
16
- readonly anchor: AnchorKind;
17
- readonly exceptions: ClauseExceptions;
18
- readonly cases: {
19
- readonly flag: readonly SourceCase[];
20
- readonly allow: readonly SourceCase[];
21
- };
22
- } | {
23
- readonly kind: "judgement";
24
- readonly id: ClauseId;
25
- readonly summary: string;
26
- readonly enforcedBy: "review";
27
- };
28
- export type DisciplineFile = {
29
- readonly version: 1;
30
- readonly id: DisciplineId;
31
- readonly clauses: readonly ClauseDefinition[];
32
- };
33
- export type PieceFile = {
34
- readonly version: 1;
35
- readonly discipline: DisciplineId;
36
- readonly mechanism: MechanismId;
37
- readonly clauses: readonly {
38
- readonly clause: ClauseId;
39
- readonly settings: unknown;
40
- }[];
41
- };
File without changes
File without changes