@hailstails/hone 0.1.0-pre.6 → 0.1.0-pre.8
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/ADOPTING.md +25 -9
- package/CHANGELOG.md +130 -0
- package/MIGRATING.md +55 -16
- package/README.md +30 -15
- package/api/audit.d.ts +3 -0
- package/api/audit.js +10 -0
- package/api/rule-set.js +0 -0
- package/api/testing.d.ts +5 -0
- package/api/testing.js +211 -0
- package/chunks/{chunk-LOYT2AGY.js → chunk-MYX7GAVM.js} +2 -1
- package/chunks/{chunk-MVK5KFJI.js → chunk-NRXSM7BY.js} +1 -0
- package/chunks/{chunk-XB4PCY3Q.js → chunk-P3NLETF5.js} +1 -1
- package/chunks/{chunk-ET5EBSJX.js → chunk-POZL7G62.js} +1 -1
- package/chunks/chunk-XXLMIBLS.js +2172 -0
- package/core/check/tool-command.js +71 -2111
- package/core/conformance/conformance-testing-types.d.ts +28 -0
- package/core/conformance/conformance-types.d.ts +7 -0
- package/docs/extending.md +20 -8
- package/docs/output-contract.md +4 -4
- package/mechanisms/audit/CD-19/import-boundaries.js +1 -1
- package/mechanisms/audit/runner/README.md +2 -2
- package/mechanisms/audit/runner/runner.js +3 -3
- package/mechanisms/eslint/runner/runner.js +3 -3
- package/package.json +8 -3
- package/rules/CD-10/CHECKS.md +2 -2
- package/rules/CD-14/CHECKS.md +2 -2
- package/rules/CD-15/CHECKS.md +2 -2
- package/rules/CD-17/CHECKS.md +2 -2
- package/rules/CD-19/CHECKS.md +2 -2
- package/rules/CD-2/CHECKS.md +2 -2
- package/rules/CD-23/CHECKS.md +2 -2
- package/rules/CD-25/CHECKS.md +2 -2
- package/rules/CD-26/CHECKS.md +2 -2
- package/rules/CD-27/CHECKS.md +2 -2
- package/rules/CD-3/CHECKS.md +2 -2
- package/rules/CD-40/CHECKS.md +2 -2
- package/rules/CD-41/CHECKS.md +2 -2
- package/rules/CD-42/CHECKS.md +2 -2
- package/rules/CD-43/CHECKS.md +2 -2
- package/rules/CD-44/CHECKS.md +2 -2
- package/rules/CD-47/CHECKS.md +2 -2
- package/rules/CD-5/CHECKS.md +2 -2
- package/rules/CD-6/CHECKS.md +2 -2
- package/rules/CD-7/CHECKS.md +2 -2
- package/rules/CD-7a/CHECKS.md +2 -2
- package/rules/CD-8/CHECKS.md +2 -2
- package/api/audit.mjs +0 -1
- package/api/rule-set.mjs +0 -1
package/rules/CD-6/CHECKS.md
CHANGED
|
@@ -40,7 +40,7 @@ const account = await loadAccount(id);
|
|
|
40
40
|
Name the value for what it is in the domain.
|
|
41
41
|
|
|
42
42
|
## Exceptions
|
|
43
|
-
Add an entry to `discipline-exceptions.json` at the repository root. Use `authorised-location` when a file must keep a name fixed by an external contract. Use `file-carve-out` for debt in one file: it
|
|
43
|
+
Add an entry to `discipline-exceptions.json` at the repository root. Use `authorised-location` when a file must keep a name fixed by an external contract. Use `file-carve-out` for debt in one file: it is forfeited once the file is touched, and needs a `whyChain` as below. See [discipline-exceptions.json](../../README.md#discipline-exceptionsjson).
|
|
44
44
|
|
|
45
45
|
```json
|
|
46
46
|
{ "version": 1, "exceptions": [
|
|
@@ -48,4 +48,4 @@ Add an entry to `discipline-exceptions.json` at the repository root. Use `author
|
|
|
48
48
|
] }
|
|
49
49
|
```
|
|
50
50
|
|
|
51
|
-
|
|
51
|
+
By default every record, `authorised-location` included, also needs a `whyChain` that follows the [why-chain contract](../../docs/why-chain-contract.md): five whys chained cause to cause, a `rootCause`, its `rootCheck`, a `readback` and an `owner`. A record imported from an earlier system carries `provenance` instead. With `"fileExceptionWhyChains": "optional"` in `disciplines.json`, an `authorised-location` or `file-carve-out` may give only its `reason`; a `clause-wide-carve-out` still needs its `whyChain`. [The exceptions format](../../README.md#discipline-exceptionsjson) gives each shape.
|
package/rules/CD-7/CHECKS.md
CHANGED
|
@@ -35,7 +35,7 @@ src/price-formatting.ts
|
|
|
35
35
|
Rename the file or folder for what it contains, or split it into files that each hold one thing.
|
|
36
36
|
|
|
37
37
|
## Exceptions
|
|
38
|
-
Add an entry to `discipline-exceptions.json` at the repository root. Use `authorised-location` when a path name is fixed by a framework or external convention. Use `file-carve-out` for debt in one file: it
|
|
38
|
+
Add an entry to `discipline-exceptions.json` at the repository root. Use `authorised-location` when a path name is fixed by a framework or external convention. Use `file-carve-out` for debt in one file: it is forfeited once the file is touched, and needs a `whyChain` as below. See [discipline-exceptions.json](../../README.md#discipline-exceptionsjson).
|
|
39
39
|
|
|
40
40
|
```json
|
|
41
41
|
{ "version": 1, "exceptions": [
|
|
@@ -43,4 +43,4 @@ Add an entry to `discipline-exceptions.json` at the repository root. Use `author
|
|
|
43
43
|
] }
|
|
44
44
|
```
|
|
45
45
|
|
|
46
|
-
|
|
46
|
+
By default every record, `authorised-location` included, also needs a `whyChain` that follows the [why-chain contract](../../docs/why-chain-contract.md): five whys chained cause to cause, a `rootCause`, its `rootCheck`, a `readback` and an `owner`. A record imported from an earlier system carries `provenance` instead. With `"fileExceptionWhyChains": "optional"` in `disciplines.json`, an `authorised-location` or `file-carve-out` may give only its `reason`; a `clause-wide-carve-out` still needs its `whyChain`. [The exceptions format](../../README.md#discipline-exceptionsjson) gives each shape.
|
package/rules/CD-7a/CHECKS.md
CHANGED
|
@@ -27,7 +27,7 @@ const createClient = (): Client => ({ send: () => undefined });
|
|
|
27
27
|
Declare and export the type, then annotate the factory with it.
|
|
28
28
|
|
|
29
29
|
## Exceptions
|
|
30
|
-
Add an entry to `discipline-exceptions.json` at the repository root. Use `authorised-location` when the type comes from a library whose package exports no named return type. Use `file-carve-out` for debt in one file: it
|
|
30
|
+
Add an entry to `discipline-exceptions.json` at the repository root. Use `authorised-location` when the type comes from a library whose package exports no named return type. Use `file-carve-out` for debt in one file: it is forfeited once the file is touched, and needs a `whyChain` as below. See [discipline-exceptions.json](../../README.md#discipline-exceptionsjson).
|
|
31
31
|
|
|
32
32
|
```json
|
|
33
33
|
{ "version": 1, "exceptions": [
|
|
@@ -35,4 +35,4 @@ Add an entry to `discipline-exceptions.json` at the repository root. Use `author
|
|
|
35
35
|
] }
|
|
36
36
|
```
|
|
37
37
|
|
|
38
|
-
|
|
38
|
+
By default every record, `authorised-location` included, also needs a `whyChain` that follows the [why-chain contract](../../docs/why-chain-contract.md): five whys chained cause to cause, a `rootCause`, its `rootCheck`, a `readback` and an `owner`. A record imported from an earlier system carries `provenance` instead. With `"fileExceptionWhyChains": "optional"` in `disciplines.json`, an `authorised-location` or `file-carve-out` may give only its `reason`; a `clause-wide-carve-out` still needs its `whyChain`. [The exceptions format](../../README.md#discipline-exceptionsjson) gives each shape.
|
package/rules/CD-8/CHECKS.md
CHANGED
|
@@ -31,7 +31,7 @@ switch (event.kind) {
|
|
|
31
31
|
Name each remaining variant so the compiler checks exhaustiveness.
|
|
32
32
|
|
|
33
33
|
## Exceptions
|
|
34
|
-
Add an entry to `discipline-exceptions.json` at the repository root. Use `authorised-location` when a switch is over an open set of values and needs a fallback. Use `file-carve-out` for debt in one file: it
|
|
34
|
+
Add an entry to `discipline-exceptions.json` at the repository root. Use `authorised-location` when a switch is over an open set of values and needs a fallback. Use `file-carve-out` for debt in one file: it is forfeited once the file is touched, and needs a `whyChain` as below. See [discipline-exceptions.json](../../README.md#discipline-exceptionsjson).
|
|
35
35
|
|
|
36
36
|
```json
|
|
37
37
|
{ "version": 1, "exceptions": [
|
|
@@ -39,4 +39,4 @@ Add an entry to `discipline-exceptions.json` at the repository root. Use `author
|
|
|
39
39
|
] }
|
|
40
40
|
```
|
|
41
41
|
|
|
42
|
-
|
|
42
|
+
By default every record, `authorised-location` included, also needs a `whyChain` that follows the [why-chain contract](../../docs/why-chain-contract.md): five whys chained cause to cause, a `rootCause`, its `rootCheck`, a `readback` and an `owner`. A record imported from an earlier system carries `provenance` instead. With `"fileExceptionWhyChains": "optional"` in `disciplines.json`, an `authorised-location` or `file-carve-out` may give only its `reason`; a `clause-wide-carve-out` still needs its `whyChain`. [The exceptions format](../../README.md#discipline-exceptionsjson) gives each shape.
|
package/api/audit.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/api/rule-set.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|