@hailstails/hone 1.4.0 → 2.0.0-pre.1
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 +239 -168
- package/CHANGELOG.md +141 -0
- package/MIGRATING.md +145 -45
- package/README.md +148 -182
- package/chunks/chunk-5HRMJ4O2.js +608 -0
- package/chunks/chunk-5U4JMWNV.js +9 -0
- package/chunks/{chunk-FEWCJU7H.js → chunk-ASUN4AVC.js} +31 -12
- package/chunks/chunk-DGOLOS5A.js +9 -0
- package/chunks/{chunk-HJA4CX7C.js → chunk-FBZBSDED.js} +1 -1
- package/chunks/{chunk-Y2KPZDDV.js → chunk-GNOMK7CR.js} +201 -98
- package/chunks/chunk-IX2VZTBO.js +887 -0
- package/chunks/{chunk-QWA6OVLC.js → chunk-K2W3D3NB.js} +8 -2
- package/chunks/chunk-L7BGRC6D.js +22 -0
- package/chunks/chunk-M6SOGWT7.js +82 -0
- package/chunks/chunk-MWLBA4B3.js +849 -0
- package/chunks/chunk-NRIQD3PI.js +38 -0
- package/chunks/chunk-OKLYWD2Z.js +823 -0
- package/chunks/{chunk-3HFJHJDO.js → chunk-QP5TLOBY.js} +17 -8
- package/chunks/chunk-R75QELTA.js +481 -0
- package/chunks/chunk-RANAKCTW.js +31 -0
- package/chunks/{chunk-NA5L6PUE.js → chunk-RANIXNWY.js} +1 -2
- package/chunks/chunk-RFR3ITBS.js +9 -0
- package/chunks/{chunk-Z4UBS7WI.js → chunk-RGSHTPLA.js} +26 -7
- package/chunks/{chunk-T32FOWZA.js → chunk-TNY2PASL.js} +14 -18
- package/chunks/{chunk-Y4SMWOD2.js → chunk-UJONWHA4.js} +2 -2
- package/chunks/{chunk-WF3PPYRR.js → chunk-VYBO2Q65.js} +4 -2
- package/chunks/chunk-Z6JHBNDS.js +15 -0
- package/chunks/eslint-10-boundary-A4JIQ734.js +14 -0
- package/chunks/eslint-9-boundary-CL5DDBHX.js +34 -0
- package/docs/adding-a-discipline-or-mechanism.md +23 -19
- package/docs/extending.md +6 -5
- package/docs/output-contract.md +713 -16
- package/docs/why-chain-contract.md +6 -6
- package/methods/README.md +2 -2
- package/methods/assessment-template.md +3 -3
- package/methods/lenses/clean-architecture.md +26 -62
- package/methods/lenses/decomposition.md +7 -7
- package/methods/lenses/defended-on-intent.md +6 -6
- package/methods/lenses/di-discipline.md +18 -21
- package/methods/lenses/errors-as-data.md +6 -6
- package/methods/lenses/function-first.md +25 -27
- package/methods/lenses/naming.md +6 -6
- package/methods/lenses/test-discipline.md +8 -8
- package/methods/lenses/type-soundness.md +6 -6
- package/methods/lenses/zod-boundary.md +9 -9
- package/package.json +30 -28
- package/rules/README.md +335 -54
- package/rules/SPIRIT.md +4 -4
- package/rules/cases/a-value-is-one-of-several-kinds-or-states.md +20 -0
- package/rules/cases/an-adopter-is-not-handed-our-risk.md +17 -0
- package/rules/cases/an-operation-can-fail.md +20 -0
- package/rules/cases/builds-the-real-implementations.md +25 -0
- package/rules/cases/causes-an-effect.md +26 -0
- package/rules/cases/checks-a-value-that-may-be-one-of-several-outcomes.md +20 -0
- package/rules/cases/checks-conditions-before-its-work.md +20 -0
- package/rules/cases/coordinates-other-units.md +20 -0
- package/rules/cases/does-one-job.md +23 -0
- package/rules/cases/explains-something-in-prose.md +20 -0
- package/rules/cases/gives-a-value-its-type.md +26 -0
- package/rules/cases/gives-each-unit-its-test.md +20 -0
- package/rules/cases/keeps-state-or-settings-across-calls.md +20 -0
- package/rules/cases/makes-a-new-value-from-what-it-has.md +17 -0
- package/rules/cases/names-something.md +20 -0
- package/rules/cases/needs-the-current-time-a-random-value-a-new-id-or-an-outside-ordering.md +26 -0
- package/rules/cases/puts-code-in-a-file-or-folder.md +20 -0
- package/rules/cases/reads-data-from-outside.md +23 -0
- package/rules/cases/reuses-behaviour-from-another-unit-or-type.md +20 -0
- package/rules/cases/sends-data-out-of-the-program.md +20 -0
- package/rules/cases/sets-how-strictly-the-checker-works.md +14 -0
- package/rules/cases/ships-code-for-others.md +17 -0
- package/rules/cases/states-what-the-unit-gives-back-for-one-case-or-several.md +20 -0
- package/rules/cases/takes-an-outside-dependency.md +38 -0
- package/rules/cases/tests-across-units-or-against-a-real-system.md +20 -0
- package/rules/cases/uses-a-system-or-service-outside-the-program.md +29 -0
- package/rules/cases/uses-what-a-collaborator-gives-back.md +20 -0
- package/rules/cases/writes-basic-logic.md +17 -0
- package/rules/cases.md +71 -0
- package/rules/numbers.md +155 -0
- package/rules/principles/external-behaviour-sits-at-a-boundary.md +12 -0
- package/rules/principles/no-hidden-effects.md +17 -0
- package/rules/principles/no-leak-across-a-boundary.md +19 -0
- package/rules/principles/one-place-decides.md +12 -0
- package/rules/principles/our-code-reads-in-the-common-language.md +12 -0
- package/rules/principles/outside-risk-is-carried-on-purpose.md +13 -0
- package/rules/principles/tests-are-ours.md +12 -0
- package/rules/principles/the-type-checker-proves-it.md +12 -0
- package/rules/principles.md +93 -0
- package/rules/record-kinds/authorised-location.md +26 -0
- package/rules/record-kinds/boundary-record.md +9 -0
- package/rules/record-kinds/debt.md +23 -0
- package/rules/record-kinds/dependency-record.md +9 -0
- package/rules/record-kinds/deviation.md +9 -0
- package/rules/records.md +137 -0
- package/rules/rules/declared-not-asserted.md +16 -0
- package/rules/rules/doer-or-orchestrator.md +16 -0
- package/rules/rules/failures-are-values.md +15 -0
- package/rules/rules/fixed-versions.md +11 -0
- package/rules/rules/guard-first.md +14 -0
- package/rules/rules/handed-what-it-uses.md +16 -0
- package/rules/rules/kinds-are-named.md +16 -0
- package/rules/rules/one-reason-per-module.md +18 -0
- package/rules/rules/one-word-everywhere.md +19 -0
- package/rules/rules/outside-dependencies-justified.md +14 -0
- package/rules/rules/outside-dependencies-stay-at-boundaries.md +18 -0
- package/rules/rules/ports-declared-inside.md +22 -0
- package/rules/rules/shipped-risk-declared.md +11 -0
- package/rules/rules/straight-through-tests.md +15 -0
- package/rules/rules/tested-where-its-owned.md +20 -0
- package/rules/rules/tools-live-in-the-repo.md +11 -0
- package/rules/rules/upstream-stays-untouched.md +11 -0
- package/rules/rules/written-out-answers.md +17 -0
- package/rules/rules.md +185 -0
- package/rules/sources.md +142 -0
- package/rules/typescript/checks.md +1685 -0
- package/rules/typescript/recipes/adapter-per-outside-party.md +18 -0
- package/rules/typescript/recipes/assert-to-narrow.md +18 -0
- package/rules/typescript/recipes/bounded-context-generic.md +19 -0
- package/rules/typescript/recipes/closure-factory.md +20 -0
- package/rules/typescript/recipes/companion-test-file.md +18 -0
- package/rules/typescript/recipes/composed-orchestrator.md +18 -0
- package/rules/typescript/recipes/composition-root.md +18 -0
- package/rules/typescript/recipes/copy-never-write-in.md +18 -0
- package/rules/typescript/recipes/declared-not-bundled.md +17 -0
- package/rules/typescript/recipes/dependency-record.md +20 -0
- package/rules/typescript/recipes/domain-vocabulary-list.md +18 -0
- package/rules/typescript/recipes/entity-module.md +20 -0
- package/rules/typescript/recipes/exact-pins-and-a-lock-file.md +18 -0
- package/rules/typescript/recipes/extension-outside-the-vendored-code.md +18 -0
- package/rules/typescript/recipes/failure-asserted-as-a-value.md +18 -0
- package/rules/typescript/recipes/failure-mapping-at-the-adapter.md +20 -0
- package/rules/typescript/recipes/fix-the-declaration-not-the-value.md +18 -0
- package/rules/typescript/recipes/functional-iteration.md +18 -0
- package/rules/typescript/recipes/guard-clauses.md +18 -0
- package/rules/typescript/recipes/integration-test-owns-its-scratch.md +18 -0
- package/rules/typescript/recipes/integration-test-suffix.md +18 -0
- package/rules/typescript/recipes/iteach-over-typed-rows.md +18 -0
- package/rules/typescript/recipes/map-out-at-the-adapter.md +18 -0
- package/rules/typescript/recipes/meaning-in-names-not-comments.md +22 -0
- package/rules/typescript/recipes/named-exported-type.md +18 -0
- package/rules/typescript/recipes/narrow-ports.md +18 -0
- package/rules/typescript/recipes/one-argument-object.md +19 -0
- package/rules/typescript/recipes/port-in-the-domain.md +19 -0
- package/rules/typescript/recipes/ports-in-the-argument.md +18 -0
- package/rules/typescript/recipes/repo-scripts-only.md +18 -0
- package/rules/typescript/recipes/result-union.md +22 -0
- package/rules/typescript/recipes/screaming-folders.md +20 -0
- package/rules/typescript/recipes/shared-strict-base-config.md +20 -0
- package/rules/typescript/recipes/stub-with-vifn.md +20 -0
- package/rules/typescript/recipes/tagged-union-and-exhaustive-switch.md +18 -0
- package/rules/typescript/recipes/whole-words.md +18 -0
- package/rules/typescript/recipes/whole-written-out-expectation.md +18 -0
- package/rules/typescript/recipes/world-values-through-a-port.md +18 -0
- package/rules/typescript/recipes/zod-at-the-producers-adapter.md +19 -0
- package/rules/typescript/recipes.md +390 -0
- package/rules/typescript/symptoms/absence-standing-for-a-state.md +36 -0
- package/rules/typescript/symptoms/adapter-built-outside-the-root.md +30 -0
- package/rules/typescript/symptoms/ambient-randomness.md +36 -0
- package/rules/typescript/symptoms/answer-set-in-a-hook.md +45 -0
- package/rules/typescript/symptoms/authored-class-or-this/class-keyword.md +30 -0
- package/rules/typescript/symptoms/authored-class-or-this/static-members-only.md +18 -0
- package/rules/typescript/symptoms/authored-class-or-this.md +49 -0
- package/rules/typescript/symptoms/behaviour-tested-away-from-its-owner.md +44 -0
- package/rules/typescript/symptoms/boolean-in-a-signature/boolean-annotation.md +30 -0
- package/rules/typescript/symptoms/boolean-in-a-signature.md +43 -0
- package/rules/typescript/symptoms/branch-in-a-test/test-body.md +213 -0
- package/rules/typescript/symptoms/branch-in-a-test.md +48 -0
- package/rules/typescript/symptoms/bundled-dependency.md +28 -0
- package/rules/typescript/symptoms/catch-all-failure-kind.md +37 -0
- package/rules/typescript/symptoms/change-spread-across-modules.md +27 -0
- package/rules/typescript/symptoms/claimed-type/cast-to-any.md +29 -0
- package/rules/typescript/symptoms/claimed-type/non-null-assertions.md +34 -0
- package/rules/typescript/symptoms/claimed-type/unlisted-cast-site.md +34 -0
- package/rules/typescript/symptoms/claimed-type.md +56 -0
- package/rules/typescript/symptoms/computed-value-in-a-test/test-body.md +144 -0
- package/rules/typescript/symptoms/computed-value-in-a-test.md +36 -0
- package/rules/typescript/symptoms/coverage-gate.md +27 -0
- package/rules/typescript/symptoms/date-used-directly/clock-sources.md +31 -0
- package/rules/typescript/symptoms/date-used-directly.md +46 -0
- package/rules/typescript/symptoms/default-for-a-required-value.md +45 -0
- package/rules/typescript/symptoms/default-on-a-closed-union/default-arm.md +32 -0
- package/rules/typescript/symptoms/default-on-a-closed-union.md +32 -0
- package/rules/typescript/symptoms/dependency-without-a-record.md +33 -0
- package/rules/typescript/symptoms/doer-calling-our-own-unit.md +36 -0
- package/rules/typescript/symptoms/double-with-a-body/logic-in-a-passed-function.md +32 -0
- package/rules/typescript/symptoms/double-with-a-body/stub-implementation.md +31 -0
- package/rules/typescript/symptoms/double-with-a-body.md +55 -0
- package/rules/typescript/symptoms/drawer-path/drawer-names.md +28 -0
- package/rules/typescript/symptoms/drawer-path.md +32 -0
- package/rules/typescript/symptoms/duplicate-decision.md +36 -0
- package/rules/typescript/symptoms/edit-inside-vendored-code.md +33 -0
- package/rules/typescript/symptoms/failure-shaped-as-success.md +28 -0
- package/rules/typescript/symptoms/floating-version.md +27 -0
- package/rules/typescript/symptoms/inherited-environment-in-a-subprocess/git-spawn-environment.md +30 -0
- package/rules/typescript/symptoms/inherited-environment-in-a-subprocess.md +33 -0
- package/rules/typescript/symptoms/inner-layer-imports-outer.md +33 -0
- package/rules/typescript/symptoms/integration-heavy-suite.md +29 -0
- package/rules/typescript/symptoms/large-input-for-a-few-fields.md +37 -0
- package/rules/typescript/symptoms/library-class-built-in-place.md +42 -0
- package/rules/typescript/symptoms/long-function/function-length.md +47 -0
- package/rules/typescript/symptoms/long-function.md +75 -0
- package/rules/typescript/symptoms/loop-keyword/loop-statement.md +34 -0
- package/rules/typescript/symptoms/loop-keyword.md +49 -0
- package/rules/typescript/symptoms/machine-touched-in-a-unit-test.md +40 -0
- package/rules/typescript/symptoms/many-spellings-of-one-concept.md +29 -0
- package/rules/typescript/symptoms/module-level-state.md +30 -0
- package/rules/typescript/symptoms/module-or-global-patched/module-mock-call.md +29 -0
- package/rules/typescript/symptoms/module-or-global-patched.md +38 -0
- package/rules/typescript/symptoms/name-off-its-casing/filename-case.md +16 -0
- package/rules/typescript/symptoms/name-off-its-casing/naming-convention.md +20 -0
- package/rules/typescript/symptoms/name-off-its-casing.md +31 -0
- package/rules/typescript/symptoms/no-lock-file.md +27 -0
- package/rules/typescript/symptoms/orchestrator-that-computes.md +27 -0
- package/rules/typescript/symptoms/outside-dependency-vocabulary-for-basic-logic.md +33 -0
- package/rules/typescript/symptoms/outside-import-past-a-boundary/import-or-require.md +44 -0
- package/rules/typescript/symptoms/outside-import-past-a-boundary.md +45 -0
- package/rules/typescript/symptoms/outside-type-in-a-signature.md +37 -0
- package/rules/typescript/symptoms/own-type-guard.md +36 -0
- package/rules/typescript/symptoms/port-named-for-a-mechanism.md +34 -0
- package/rules/typescript/symptoms/port-outside-the-domain.md +28 -0
- package/rules/typescript/symptoms/positional-parameters/parameter-count.md +30 -0
- package/rules/typescript/symptoms/positional-parameters.md +43 -0
- package/rules/typescript/symptoms/process-global-used-in-place.md +53 -0
- package/rules/typescript/symptoms/prose-in-code.md +27 -0
- package/rules/typescript/symptoms/rebinding/parameter-reassignment.md +18 -0
- package/rules/typescript/symptoms/rebinding/test-body.md +32 -0
- package/rules/typescript/symptoms/rebinding.md +36 -0
- package/rules/typescript/symptoms/schema-past-its-adapter.md +41 -0
- package/rules/typescript/symptoms/shorthand-name/identifier-names.md +29 -0
- package/rules/typescript/symptoms/shorthand-name.md +32 -0
- package/rules/typescript/symptoms/strictness-weakened/exact-optional-property-types.md +51 -0
- package/rules/typescript/symptoms/strictness-weakened/no-fallthrough-cases-in-switch.md +51 -0
- package/rules/typescript/symptoms/strictness-weakened/no-implicit-override.md +51 -0
- package/rules/typescript/symptoms/strictness-weakened/no-property-access-from-index-signature.md +51 -0
- package/rules/{CD-3/CHECKS.md → typescript/symptoms/strictness-weakened/no-unchecked-indexed-access.md} +23 -38
- package/rules/typescript/symptoms/strictness-weakened/strict.md +51 -0
- package/rules/typescript/symptoms/strictness-weakened/use-unknown-in-catch-variables.md +51 -0
- package/rules/typescript/symptoms/strictness-weakened.md +32 -0
- package/rules/typescript/symptoms/tangled-function/cognitive-complexity.md +42 -0
- package/rules/typescript/symptoms/tangled-function.md +75 -0
- package/rules/typescript/symptoms/test-of-the-type-checker.md +24 -0
- package/rules/typescript/symptoms/test-switched-off/focused-tests.md +15 -0
- package/rules/typescript/symptoms/test-switched-off/skipped-tests.md +15 -0
- package/rules/typescript/symptoms/test-switched-off.md +25 -0
- package/rules/typescript/symptoms/text-past-its-reader/test-body.md +30 -0
- package/rules/typescript/symptoms/text-past-its-reader.md +71 -0
- package/rules/typescript/symptoms/throw-between-our-units.md +46 -0
- package/rules/typescript/symptoms/throw-or-catch-in-a-test/throw-statement.md +32 -0
- package/rules/typescript/symptoms/throw-or-catch-in-a-test/try-block.md +39 -0
- package/rules/typescript/symptoms/throw-or-catch-in-a-test.md +35 -0
- package/rules/typescript/symptoms/thrown-non-error/throw-only-error.md +15 -0
- package/rules/typescript/symptoms/thrown-non-error.md +27 -0
- package/rules/typescript/symptoms/tool-fetched-at-run-time.md +27 -0
- package/rules/typescript/symptoms/tuple-as-data.md +29 -0
- package/rules/typescript/symptoms/type-derived-from-code/factory-return-types.md +29 -0
- package/rules/typescript/symptoms/type-derived-from-code.md +41 -0
- package/rules/typescript/symptoms/types-only-file.md +36 -0
- package/rules/typescript/symptoms/unasserted-call.md +29 -0
- package/rules/typescript/symptoms/unit-without-a-running-test/companion-test-file.md +28 -0
- package/rules/typescript/symptoms/unit-without-a-running-test.md +28 -0
- package/rules/{CD-5/CHECKS.md → typescript/symptoms/untracked-escape/directive-pointers.md} +12 -23
- package/rules/typescript/symptoms/untracked-escape.md +32 -0
- package/rules/typescript/symptoms/untyped-value/explicit-any.md +14 -0
- package/rules/typescript/symptoms/untyped-value/implicit-any-let.md +14 -0
- package/rules/typescript/symptoms/untyped-value.md +36 -0
- package/rules/typescript/symptoms/wide-input.md +37 -0
- package/rules/typescript/symptoms/wide-port.md +32 -0
- package/rules/typescript/symptoms/work-inside-a-condition/else-after-an-exit.md +40 -0
- package/rules/typescript/symptoms/work-inside-a-condition.md +41 -0
- package/rules/typescript/symptoms/write-into-a-parameter/parameter-mutation.md +33 -0
- package/rules/typescript/symptoms/write-into-a-parameter.md +34 -0
- package/rules/typescript/symptoms.md +821 -0
- package/{core → src/application}/conformance/conformance-testing-types.d.ts +16 -6
- package/src/audit.d.ts +20 -0
- package/{api → src}/audit.js +6 -5
- package/{core/rule-set-reader → src/domain/rule-set}/authored-rule-set-types.d.ts +2 -2
- package/{core/values → src/domain/rule-set}/edition-types.d.ts +3 -3
- package/{core/values → src/domain/rule-set}/identifier-types.d.ts +2 -2
- package/{core/conformance → src/domain/runner}/conformance-types.d.ts +1 -1
- package/{core/mechanism-port → src/domain/runner}/piece-failure-types.d.ts +1 -1
- package/{core/mechanism-port → src/domain/runner}/runner-module-types.d.ts +4 -4
- package/src/domain/runner/runner-result-types.d.ts +88 -0
- package/src/eslint-plugin.d.ts +16 -0
- package/src/eslint-plugin.js +72 -0
- package/src/hone.js +13385 -0
- package/src/infrastructure/disciplines-file/version-one-names.json +634 -0
- package/src/infrastructure/engines/eslint/authored-class-or-this/class-keyword/class-keyword.examples.json +84 -0
- package/{mechanisms/eslint/CD-14/cd14/cd14.eslint-plugin.js → src/infrastructure/engines/eslint/authored-class-or-this/class-keyword/eslint-plugin.js} +9 -10
- package/src/infrastructure/engines/eslint/authored-class-or-this/class-keyword/piece.json +12 -0
- package/src/infrastructure/engines/eslint/authored-class-or-this/static-members-only/piece.json +24 -0
- package/src/infrastructure/engines/eslint/authored-class-or-this/static-members-only/static-members-only.examples.json +36 -0
- package/src/infrastructure/engines/eslint/claimed-type/non-null-assertions/eslint-plugin.js +16 -0
- package/src/infrastructure/engines/eslint/claimed-type/non-null-assertions/non-null-assertions.examples.json +48 -0
- package/src/infrastructure/engines/eslint/claimed-type/non-null-assertions/piece.json +22 -0
- package/src/infrastructure/engines/eslint/long-function/function-length/function-length.examples.json +42 -0
- package/src/infrastructure/engines/eslint/long-function/function-length/piece.json +16 -0
- package/{mechanisms/eslint/CD-7/cd7/cd7.eslint-plugin.js → src/infrastructure/engines/eslint/name-off-its-casing/filename-case/eslint-plugin.js} +5 -4
- package/src/infrastructure/engines/eslint/name-off-its-casing/filename-case/filename-case.examples.json +60 -0
- package/src/infrastructure/engines/eslint/name-off-its-casing/filename-case/piece.json +11 -0
- package/src/infrastructure/engines/eslint/name-off-its-casing/naming-convention/eslint-plugin.js +16 -0
- package/src/infrastructure/engines/eslint/name-off-its-casing/naming-convention/naming-convention.examples.json +78 -0
- package/src/infrastructure/engines/eslint/name-off-its-casing/naming-convention/piece.json +214 -0
- package/src/infrastructure/engines/eslint/positional-parameters/parameter-count/eslint-plugin.js +16 -0
- package/src/infrastructure/engines/eslint/positional-parameters/parameter-count/parameter-count.examples.json +30 -0
- package/src/infrastructure/engines/eslint/positional-parameters/parameter-count/piece.json +18 -0
- package/src/infrastructure/engines/eslint/rebinding/parameter-reassignment/eslint-plugin.js +16 -0
- package/src/infrastructure/engines/eslint/rebinding/parameter-reassignment/parameter-reassignment.examples.json +30 -0
- package/src/infrastructure/engines/eslint/rebinding/parameter-reassignment/piece.json +17 -0
- package/{mechanisms → src/infrastructure/engines}/eslint/runner/README.md +5 -5
- package/{mechanisms/eslint/runner → src/infrastructure/engines/eslint/runner/pieces}/eslint-piece-settings-types.d.ts +1 -1
- package/{mechanisms → src/infrastructure/engines}/eslint/runner/runner.js +2189 -1371
- package/{mechanisms/eslint/CD-41 → src/infrastructure/engines/eslint/tangled-function/cognitive-complexity}/README.md +1 -1
- package/src/infrastructure/engines/eslint/tangled-function/cognitive-complexity/cognitive-complexity.examples.json +48 -0
- package/{mechanisms/eslint/CD-41/cd41/cd41.eslint-plugin.js → src/infrastructure/engines/eslint/tangled-function/cognitive-complexity/eslint-plugin.js} +58 -14
- package/src/infrastructure/engines/eslint/tangled-function/cognitive-complexity/piece.json +12 -0
- package/{mechanisms/eslint/CD-27/cd27/cd27.eslint-plugin.js → src/infrastructure/engines/eslint/test-switched-off/focused-tests/eslint-plugin.js} +5 -4
- package/src/infrastructure/engines/eslint/test-switched-off/focused-tests/focused-tests.examples.json +60 -0
- package/src/infrastructure/engines/eslint/test-switched-off/focused-tests/piece.json +12 -0
- package/src/infrastructure/engines/eslint/test-switched-off/skipped-tests/piece.json +16 -0
- package/src/infrastructure/engines/eslint/test-switched-off/skipped-tests/skipped-tests.examples.json +54 -0
- package/{mechanisms/eslint/CD-10/cd10/cd10.eslint-plugin.js → src/infrastructure/engines/eslint/thrown-non-error/throw-only-error/eslint-plugin.js} +5 -4
- package/src/infrastructure/engines/eslint/thrown-non-error/throw-only-error/piece.json +12 -0
- package/src/infrastructure/engines/eslint/thrown-non-error/throw-only-error/throw-only-error.examples.json +54 -0
- package/{mechanisms/eslint/CD-1/cd1/cd1.eslint-plugin.js → src/infrastructure/engines/eslint/untyped-value/explicit-any/eslint-plugin.js} +14 -9
- package/src/infrastructure/engines/eslint/untyped-value/explicit-any/explicit-any.examples.json +36 -0
- package/src/infrastructure/engines/eslint/untyped-value/explicit-any/piece.json +12 -0
- package/src/infrastructure/engines/eslint/untyped-value/implicit-any-let/implicit-any-let.examples.json +48 -0
- package/src/infrastructure/engines/eslint/untyped-value/implicit-any-let/piece.json +16 -0
- package/src/infrastructure/engines/eslint/work-inside-a-condition/else-after-an-exit/else-after-an-exit.examples.json +36 -0
- package/{mechanisms/eslint/CD-42/cd42/cd42.eslint-plugin.js → src/infrastructure/engines/eslint/work-inside-a-condition/else-after-an-exit/eslint-plugin.js} +29 -13
- package/src/infrastructure/engines/eslint/work-inside-a-condition/else-after-an-exit/piece.json +12 -0
- package/src/infrastructure/engines/walker/authored-class-or-this/class-keyword/class-keyword.examples.json +84 -0
- package/{mechanisms/audit/CD-14 → src/infrastructure/engines/walker/authored-class-or-this/class-keyword}/class-syntax.js +6 -3
- package/src/infrastructure/engines/walker/authored-class-or-this/class-keyword/piece.json +10 -0
- package/src/infrastructure/engines/walker/boolean-in-a-signature/boolean-annotation/boolean-annotation.examples.json +42 -0
- package/{mechanisms/audit/CD-43 → src/infrastructure/engines/walker/boolean-in-a-signature/boolean-annotation}/boolean-signatures.js +14 -6
- package/src/infrastructure/engines/walker/boolean-in-a-signature/boolean-annotation/piece.json +9 -0
- package/src/infrastructure/engines/walker/branch-in-a-test/test-body/piece.json +95 -0
- package/{mechanisms/audit/CD-27 → src/infrastructure/engines/walker/branch-in-a-test/test-body}/test-body-logic.js +188 -56
- package/src/infrastructure/engines/walker/branch-in-a-test/test-body/test-body.examples.json +280 -0
- package/{mechanisms/audit/CD-1 → src/infrastructure/engines/walker/claimed-type/cast-to-any}/any-cast.js +7 -4
- package/src/infrastructure/engines/walker/claimed-type/cast-to-any/cast-to-any.examples.json +48 -0
- package/src/infrastructure/engines/walker/claimed-type/cast-to-any/piece.json +9 -0
- package/{mechanisms/audit/CD-2 → src/infrastructure/engines/walker/claimed-type/unlisted-cast-site}/cast-expressions.js +13 -6
- package/src/infrastructure/engines/walker/claimed-type/unlisted-cast-site/piece.json +14 -0
- package/src/infrastructure/engines/walker/claimed-type/unlisted-cast-site/unlisted-cast-site.examples.json +54 -0
- package/src/infrastructure/engines/walker/computed-value-in-a-test/test-body/piece.json +18 -0
- package/src/infrastructure/engines/walker/date-used-directly/clock-sources/clock-sources.examples.json +30 -0
- package/src/infrastructure/engines/walker/date-used-directly/clock-sources/clock-sources.js +36 -0
- package/src/infrastructure/engines/walker/date-used-directly/clock-sources/piece.json +9 -0
- package/src/infrastructure/engines/walker/default-on-a-closed-union/default-arm/default-arm.examples.json +36 -0
- package/src/infrastructure/engines/walker/default-on-a-closed-union/default-arm/piece.json +9 -0
- package/src/infrastructure/engines/walker/default-on-a-closed-union/default-arm/switch-defaults.js +54 -0
- package/src/infrastructure/engines/walker/double-with-a-body/logic-in-a-passed-function/piece.json +18 -0
- package/{mechanisms/audit/CD-25 → src/infrastructure/engines/walker/double-with-a-body/stub-implementation}/dependency-isolation.js +8 -4
- package/src/infrastructure/engines/walker/double-with-a-body/stub-implementation/piece.json +9 -0
- package/src/infrastructure/engines/walker/double-with-a-body/stub-implementation/stub-implementation.examples.json +36 -0
- package/{mechanisms/audit/CD-7 → src/infrastructure/engines/walker/drawer-path/drawer-names}/categorical-paths.js +23 -8
- package/src/infrastructure/engines/walker/drawer-path/drawer-names/drawer-names.examples.json +42 -0
- package/src/infrastructure/engines/walker/drawer-path/drawer-names/piece.json +9 -0
- package/src/infrastructure/engines/walker/inherited-environment-in-a-subprocess/git-spawn-environment/git-spawn-environment.examples.json +36 -0
- package/{mechanisms/audit/CD-47 → src/infrastructure/engines/walker/inherited-environment-in-a-subprocess/git-spawn-environment}/hermetic-git-spawns.js +13 -4
- package/src/infrastructure/engines/walker/inherited-environment-in-a-subprocess/git-spawn-environment/piece.json +9 -0
- package/src/infrastructure/engines/walker/loop-keyword/loop-statement/loop-statement.examples.json +48 -0
- package/{mechanisms/audit/CD-15 → src/infrastructure/engines/walker/loop-keyword/loop-statement}/loops.js +12 -4
- package/src/infrastructure/engines/walker/loop-keyword/loop-statement/piece.json +9 -0
- package/src/infrastructure/engines/walker/module-or-global-patched/module-mock-call/module-mock-call.examples.json +36 -0
- package/{mechanisms/audit/CD-26 → src/infrastructure/engines/walker/module-or-global-patched/module-mock-call}/module-mocking.js +8 -4
- package/src/infrastructure/engines/walker/module-or-global-patched/module-mock-call/piece.json +9 -0
- package/src/infrastructure/engines/walker/outside-import-past-a-boundary/import-or-require/import-boundaries.js +133 -0
- package/src/infrastructure/engines/walker/outside-import-past-a-boundary/import-or-require/import-or-require.examples.json +42 -0
- package/src/infrastructure/engines/walker/outside-import-past-a-boundary/import-or-require/piece.json +14 -0
- package/src/infrastructure/engines/walker/rebinding/test-body/piece.json +18 -0
- package/{mechanisms/audit/runner → src/infrastructure/engines/walker/runner/pieces}/walker-piece.d.ts +8 -14
- package/{mechanisms/audit → src/infrastructure/engines/walker}/runner/runner.js +194 -121
- package/{mechanisms/audit/runner → src/infrastructure/engines/walker/runner/toolchain}/typescript-parse.d.ts +1 -0
- package/src/infrastructure/engines/walker/shorthand-name/identifier-names/identifier-names.examples.json +42 -0
- package/{mechanisms/audit/CD-6 → src/infrastructure/engines/walker/shorthand-name/identifier-names}/identifier-names.js +32 -15
- package/src/infrastructure/engines/walker/shorthand-name/identifier-names/piece.json +9 -0
- package/src/infrastructure/engines/walker/strictness-weakened/exact-optional-property-types/exact-optional-property-types.examples.json +71 -0
- package/src/infrastructure/engines/walker/strictness-weakened/exact-optional-property-types/piece.json +17 -0
- package/src/infrastructure/engines/walker/strictness-weakened/no-fallthrough-cases-in-switch/no-fallthrough-cases-in-switch.examples.json +71 -0
- package/src/infrastructure/engines/walker/strictness-weakened/no-fallthrough-cases-in-switch/piece.json +17 -0
- package/src/infrastructure/engines/walker/strictness-weakened/no-implicit-override/no-implicit-override.examples.json +71 -0
- package/src/infrastructure/engines/walker/strictness-weakened/no-implicit-override/piece.json +17 -0
- package/src/infrastructure/engines/walker/strictness-weakened/no-property-access-from-index-signature/no-property-access-from-index-signature.examples.json +71 -0
- package/src/infrastructure/engines/walker/strictness-weakened/no-property-access-from-index-signature/piece.json +17 -0
- package/src/infrastructure/engines/walker/strictness-weakened/no-unchecked-indexed-access/no-unchecked-indexed-access.examples.json +71 -0
- package/src/infrastructure/engines/walker/strictness-weakened/no-unchecked-indexed-access/piece.json +17 -0
- package/{mechanisms/audit/CD-3 → src/infrastructure/engines/walker/strictness-weakened/strict}/compiler-overrides.js +102 -38
- package/src/infrastructure/engines/walker/strictness-weakened/strict/piece.json +13 -0
- package/src/infrastructure/engines/walker/strictness-weakened/strict/strict.examples.json +64 -0
- package/src/infrastructure/engines/walker/strictness-weakened/use-unknown-in-catch-variables/piece.json +17 -0
- package/src/infrastructure/engines/walker/strictness-weakened/use-unknown-in-catch-variables/use-unknown-in-catch-variables.examples.json +71 -0
- package/src/infrastructure/engines/walker/text-past-its-reader/test-body/piece.json +18 -0
- package/src/infrastructure/engines/walker/throw-or-catch-in-a-test/throw-statement/piece.json +9 -0
- package/src/infrastructure/engines/walker/throw-or-catch-in-a-test/throw-statement/throw-statement.examples.json +36 -0
- package/{mechanisms/audit/CD-10 → src/infrastructure/engines/walker/throw-or-catch-in-a-test/throw-statement}/throws-in-tests.js +6 -3
- package/src/infrastructure/engines/walker/throw-or-catch-in-a-test/try-block/piece.json +18 -0
- package/src/infrastructure/engines/walker/type-derived-from-code/factory-return-types/factory-return-types.examples.json +36 -0
- package/{mechanisms/audit/CD-7a → src/infrastructure/engines/walker/type-derived-from-code/factory-return-types}/factory-return-types.js +5 -3
- package/src/infrastructure/engines/walker/type-derived-from-code/factory-return-types/piece.json +9 -0
- package/src/infrastructure/engines/walker/unit-without-a-running-test/companion-test-file/companion-test-file.examples.json +36 -0
- package/{mechanisms/audit/CD-23 → src/infrastructure/engines/walker/unit-without-a-running-test/companion-test-file}/export-test-sibling.js +7 -4
- package/src/infrastructure/engines/walker/unit-without-a-running-test/companion-test-file/piece.json +9 -0
- package/{mechanisms/audit/CD-5 → src/infrastructure/engines/walker/untracked-escape/directive-pointers}/comments-directives.js +40 -19
- package/src/infrastructure/engines/walker/untracked-escape/directive-pointers/directive-pointers.examples.json +96 -0
- package/src/infrastructure/engines/walker/untracked-escape/directive-pointers/piece.json +16 -0
- package/src/infrastructure/engines/walker/write-into-a-parameter/parameter-mutation/parameter-mutation.examples.json +42 -0
- package/{mechanisms/audit/CD-44 → src/infrastructure/engines/walker/write-into-a-parameter/parameter-mutation}/parameter-mutation.js +22 -7
- package/src/infrastructure/engines/walker/write-into-a-parameter/parameter-mutation/piece.json +9 -0
- package/src/rule-set.d.ts +4 -0
- package/src/testing.d.ts +7 -0
- package/src/testing.js +524 -0
- package/api/audit.d.ts +0 -20
- package/api/rule-set.d.ts +0 -4
- package/api/testing.d.ts +0 -5
- package/api/testing.js +0 -238
- package/chunks/chunk-335ITLPO.js +0 -7
- package/chunks/chunk-6SM3HKWO.js +0 -1912
- package/chunks/chunk-E6VR3VRV.js +0 -268
- package/chunks/chunk-FR4FASVM.js +0 -108
- package/chunks/chunk-LDQUT742.js +0 -15
- package/chunks/chunk-MXSIQPCV.js +0 -13
- package/chunks/chunk-RWQ4UNKY.js +0 -24
- package/core/check/tool-command.js +0 -2586
- package/core/mechanism-port/runner-result-types.d.ts +0 -15
- package/mechanisms/audit/CD-1/piece.json +0 -13
- package/mechanisms/audit/CD-10/piece.json +0 -13
- package/mechanisms/audit/CD-14/piece.json +0 -13
- package/mechanisms/audit/CD-15/piece.json +0 -13
- package/mechanisms/audit/CD-17/clock-sources.js +0 -28
- package/mechanisms/audit/CD-17/piece.json +0 -13
- package/mechanisms/audit/CD-19/import-boundaries.js +0 -99
- package/mechanisms/audit/CD-19/piece.json +0 -18
- package/mechanisms/audit/CD-2/piece.json +0 -18
- package/mechanisms/audit/CD-23/piece.json +0 -13
- package/mechanisms/audit/CD-25/piece.json +0 -13
- package/mechanisms/audit/CD-26/piece.json +0 -13
- package/mechanisms/audit/CD-27/piece.json +0 -17
- package/mechanisms/audit/CD-3/piece.json +0 -77
- package/mechanisms/audit/CD-43/piece.json +0 -13
- package/mechanisms/audit/CD-44/piece.json +0 -13
- package/mechanisms/audit/CD-47/piece.json +0 -13
- package/mechanisms/audit/CD-5/piece.json +0 -20
- package/mechanisms/audit/CD-6/piece.json +0 -13
- package/mechanisms/audit/CD-7/piece.json +0 -13
- package/mechanisms/audit/CD-7a/piece.json +0 -13
- package/mechanisms/audit/CD-8/piece.json +0 -13
- package/mechanisms/audit/CD-8/switch-defaults.js +0 -42
- package/mechanisms/eslint/CD-1/piece.json +0 -23
- package/mechanisms/eslint/CD-10/piece.json +0 -15
- package/mechanisms/eslint/CD-14/piece.json +0 -31
- package/mechanisms/eslint/CD-2/cd2/cd2.eslint-plugin.js +0 -15
- package/mechanisms/eslint/CD-2/piece.json +0 -25
- package/mechanisms/eslint/CD-27/piece.json +0 -23
- package/mechanisms/eslint/CD-40/cd40/cd40.eslint-plugin.js +0 -15
- package/mechanisms/eslint/CD-40/piece.json +0 -21
- package/mechanisms/eslint/CD-41/piece.json +0 -23
- package/mechanisms/eslint/CD-42/piece.json +0 -15
- package/mechanisms/eslint/CD-44/cd44/cd44.eslint-plugin.js +0 -15
- package/mechanisms/eslint/CD-44/piece.json +0 -20
- package/mechanisms/eslint/CD-6/cd6/cd6.eslint-plugin.js +0 -15
- package/mechanisms/eslint/CD-6/piece.json +0 -217
- package/mechanisms/eslint/CD-7/piece.json +0 -15
- package/rules/CD-1/CHECKS.md +0 -39
- package/rules/CD-1/README.md +0 -28
- package/rules/CD-1/discipline.json +0 -195
- package/rules/CD-10/CHECKS.md +0 -49
- package/rules/CD-10/README.md +0 -27
- package/rules/CD-10/discipline.json +0 -133
- package/rules/CD-11/CHECKS.md +0 -13
- package/rules/CD-11/README.md +0 -25
- package/rules/CD-11/discipline.json +0 -12
- package/rules/CD-12/CHECKS.md +0 -13
- package/rules/CD-12/README.md +0 -25
- package/rules/CD-12/discipline.json +0 -12
- package/rules/CD-13/CHECKS.md +0 -13
- package/rules/CD-13/README.md +0 -25
- package/rules/CD-13/discipline.json +0 -12
- package/rules/CD-14/CHECKS.md +0 -49
- package/rules/CD-14/README.md +0 -28
- package/rules/CD-14/discipline.json +0 -173
- package/rules/CD-15/CHECKS.md +0 -42
- package/rules/CD-15/README.md +0 -30
- package/rules/CD-15/discipline.json +0 -73
- package/rules/CD-16/CHECKS.md +0 -7
- package/rules/CD-16/README.md +0 -15
- package/rules/CD-17/CHECKS.md +0 -37
- package/rules/CD-17/README.md +0 -28
- package/rules/CD-17/discipline.json +0 -51
- package/rules/CD-18/CHECKS.md +0 -13
- package/rules/CD-18/README.md +0 -25
- package/rules/CD-18/discipline.json +0 -12
- package/rules/CD-19/CHECKS.md +0 -49
- package/rules/CD-19/README.md +0 -29
- package/rules/CD-19/discipline.json +0 -63
- package/rules/CD-2/CHECKS.md +0 -58
- package/rules/CD-2/README.md +0 -30
- package/rules/CD-2/discipline.json +0 -151
- package/rules/CD-20/CHECKS.md +0 -7
- package/rules/CD-20/README.md +0 -15
- package/rules/CD-21/CHECKS.md +0 -13
- package/rules/CD-21/README.md +0 -24
- package/rules/CD-21/discipline.json +0 -12
- package/rules/CD-22/CHECKS.md +0 -13
- package/rules/CD-22/README.md +0 -24
- package/rules/CD-22/discipline.json +0 -12
- package/rules/CD-23/CHECKS.md +0 -35
- package/rules/CD-23/README.md +0 -26
- package/rules/CD-23/discipline.json +0 -57
- package/rules/CD-24/CHECKS.md +0 -7
- package/rules/CD-24/README.md +0 -15
- package/rules/CD-25/CHECKS.md +0 -38
- package/rules/CD-25/README.md +0 -31
- package/rules/CD-25/discipline.json +0 -57
- package/rules/CD-26/CHECKS.md +0 -36
- package/rules/CD-26/README.md +0 -29
- package/rules/CD-26/discipline.json +0 -57
- package/rules/CD-27/CHECKS.md +0 -451
- package/rules/CD-27/README.md +0 -29
- package/rules/CD-27/discipline.json +0 -437
- package/rules/CD-28/CHECKS.md +0 -13
- package/rules/CD-28/README.md +0 -25
- package/rules/CD-28/discipline.json +0 -12
- package/rules/CD-29/CHECKS.md +0 -13
- package/rules/CD-29/README.md +0 -23
- package/rules/CD-29/discipline.json +0 -12
- package/rules/CD-3/README.md +0 -26
- package/rules/CD-3/discipline.json +0 -641
- package/rules/CD-30/CHECKS.md +0 -13
- package/rules/CD-30/README.md +0 -24
- package/rules/CD-30/discipline.json +0 -12
- package/rules/CD-31/CHECKS.md +0 -13
- package/rules/CD-31/README.md +0 -23
- package/rules/CD-31/discipline.json +0 -12
- package/rules/CD-32/CHECKS.md +0 -13
- package/rules/CD-32/README.md +0 -24
- package/rules/CD-32/discipline.json +0 -12
- package/rules/CD-33/CHECKS.md +0 -13
- package/rules/CD-33/README.md +0 -24
- package/rules/CD-33/discipline.json +0 -12
- package/rules/CD-34/CHECKS.md +0 -13
- package/rules/CD-34/README.md +0 -23
- package/rules/CD-34/discipline.json +0 -12
- package/rules/CD-39/CHECKS.md +0 -13
- package/rules/CD-39/README.md +0 -24
- package/rules/CD-39/discipline.json +0 -12
- package/rules/CD-4/CHECKS.md +0 -13
- package/rules/CD-4/README.md +0 -26
- package/rules/CD-4/discipline.json +0 -12
- package/rules/CD-40/CHECKS.md +0 -39
- package/rules/CD-40/README.md +0 -29
- package/rules/CD-40/discipline.json +0 -58
- package/rules/CD-41/CHECKS.md +0 -64
- package/rules/CD-41/README.md +0 -31
- package/rules/CD-41/discipline.json +0 -138
- package/rules/CD-42/CHECKS.md +0 -47
- package/rules/CD-42/README.md +0 -25
- package/rules/CD-42/discipline.json +0 -61
- package/rules/CD-43/CHECKS.md +0 -37
- package/rules/CD-43/README.md +0 -27
- package/rules/CD-43/discipline.json +0 -65
- package/rules/CD-44/CHECKS.md +0 -48
- package/rules/CD-44/README.md +0 -26
- package/rules/CD-44/discipline.json +0 -111
- package/rules/CD-45/CHECKS.md +0 -13
- package/rules/CD-45/README.md +0 -25
- package/rules/CD-45/discipline.json +0 -12
- package/rules/CD-46/CHECKS.md +0 -7
- package/rules/CD-46/README.md +0 -25
- package/rules/CD-47/CHECKS.md +0 -37
- package/rules/CD-47/README.md +0 -31
- package/rules/CD-47/discipline.json +0 -57
- package/rules/CD-5/README.md +0 -28
- package/rules/CD-5/discipline.json +0 -131
- package/rules/CD-6/CHECKS.md +0 -51
- package/rules/CD-6/README.md +0 -28
- package/rules/CD-6/discipline.json +0 -165
- package/rules/CD-7/CHECKS.md +0 -46
- package/rules/CD-7/README.md +0 -29
- package/rules/CD-7/discipline.json +0 -142
- package/rules/CD-7a/CHECKS.md +0 -38
- package/rules/CD-7a/README.md +0 -26
- package/rules/CD-7a/discipline.json +0 -57
- package/rules/CD-8/CHECKS.md +0 -42
- package/rules/CD-8/README.md +0 -26
- package/rules/CD-8/discipline.json +0 -57
- package/rules/CD-9/CHECKS.md +0 -13
- package/rules/CD-9/README.md +0 -26
- package/rules/CD-9/discipline.json +0 -12
- /package/{core/values → src/domain/finding}/anchor.d.ts +0 -0
- /package/{core/values → src/domain/repository}/branded.d.ts +0 -0
- /package/{core/values → src/domain/repository}/repo-path-types.d.ts +0 -0
- /package/{core/values → src/domain}/result.d.ts +0 -0
- /package/{core/values → src/domain/rule-set}/clause-address-types.d.ts +0 -0
- /package/{core/values → src/domain/settings/json-values}/json-value.d.ts +0 -0
- /package/{mechanisms/eslint/CD-14 → src/infrastructure/engines/eslint/authored-class-or-this/class-keyword}/README.md +0 -0
- /package/{mechanisms/eslint/CD-2 → src/infrastructure/engines/eslint/claimed-type/non-null-assertions}/README.md +0 -0
- /package/{mechanisms/eslint/CD-7 → src/infrastructure/engines/eslint/name-off-its-casing/filename-case}/README.md +0 -0
- /package/{mechanisms/eslint/CD-6 → src/infrastructure/engines/eslint/name-off-its-casing/naming-convention}/README.md +0 -0
- /package/{mechanisms/eslint/CD-40 → src/infrastructure/engines/eslint/positional-parameters/parameter-count}/README.md +0 -0
- /package/{mechanisms/eslint/CD-44 → src/infrastructure/engines/eslint/rebinding/parameter-reassignment}/README.md +0 -0
- /package/{mechanisms/eslint/CD-27 → src/infrastructure/engines/eslint/test-switched-off/focused-tests}/README.md +0 -0
- /package/{mechanisms/eslint/CD-10 → src/infrastructure/engines/eslint/thrown-non-error/throw-only-error}/README.md +0 -0
- /package/{mechanisms/eslint/CD-1 → src/infrastructure/engines/eslint/untyped-value/explicit-any}/README.md +0 -0
- /package/{mechanisms/eslint/CD-42 → src/infrastructure/engines/eslint/work-inside-a-condition/else-after-an-exit}/README.md +0 -0
- /package/{mechanisms/audit → src/infrastructure/engines/walker}/runner/README.md +0 -0
- /package/{api → src}/rule-set.js +0 -0
package/docs/output-contract.md
CHANGED
|
@@ -6,13 +6,14 @@ A test renders every kind of line the command can print, fills each template bel
|
|
|
6
6
|
|
|
7
7
|
## Streams and exit codes
|
|
8
8
|
|
|
9
|
-
Hone prints everything to standard output: the report, the help, the version, `hone project`, `hone record-debt`, `hone prune-debt
|
|
9
|
+
Hone prints everything to standard output: the report, the help, the version, `hone project`, `hone record-debt`, `hone prune-debt`, `hone split-records` and `hone upgrade` lines and every load failure, including an error Hone did not expect. Hone writes nothing to standard error itself; Node can write its own warnings there, so a hook should not read output on standard error as a failure.
|
|
10
10
|
|
|
11
11
|
The exit code is the signal a hook should act on:
|
|
12
12
|
|
|
13
|
-
- `0`: `hone check` printed `verdict: pass` or `verdict: pass (partial assessment)`, `hone project` wrote or confirmed every projection, `hone record-debt` wrote every record it needed or needed none, `hone prune-debt` removed every paid record or found none, `hone split-records` split the records or found nothing to split, or help or the version was printed;
|
|
14
|
-
- `1`: `hone check` printed `verdict: fail` or `verdict: fail (partial assessment)` as its last line. Exit `1` always comes with one of those lines, and with nothing else;
|
|
15
|
-
- `2`: Hone could not decide. It printed exactly one line, starting with `load failure: `, and no verdict. That covers a command typed wrongly, an input that could not be loaded, a mechanism that failed, records `hone record-debt`, `hone prune-debt` or `hone split-records` could not write or place, and an error Hone did not expect, which prints as `unexpected-error
|
|
13
|
+
- `0`: `hone check` printed `verdict: pass` or `verdict: pass (partial assessment)`, `hone project` wrote or confirmed every projection, `hone record-debt` wrote every record it needed or needed none, `hone prune-debt` removed every paid record or found none, `hone split-records` split the records or found nothing to split, `hone upgrade` upgraded the repository or found it already on version 2, or help or the version was printed;
|
|
14
|
+
- `1`: `hone check` printed `verdict: fail` or `verdict: fail (partial assessment)` as its last line, or `hone upgrade` refused to upgrade. Exit `1` from `hone check` always comes with one of those lines, and with nothing else; exit `1` from `hone upgrade` always comes with a line starting `upgrade refused:`, and either `Nothing was changed.` or each file it could not put back;
|
|
15
|
+
- `2`: Hone could not decide. It printed exactly one line, starting with `load failure: `, and no verdict. That covers a command typed wrongly, an input that could not be loaded, a mechanism that failed, records `hone record-debt`, `hone prune-debt` or `hone split-records` could not write or place, and an error Hone did not expect, which prints as `unexpected-error`;
|
|
16
|
+
- `3`: only `hone upgrade` exits with it. Version 2 is in place, but a version 1 file could not be removed. It printed `upgrade incomplete:` and the list of version 1 files to delete by hand, then commit.
|
|
16
17
|
|
|
17
18
|
A 1.0 hook can rely on this: run `hone check`, block on any non-zero exit, and show standard output as it came.
|
|
18
19
|
|
|
@@ -47,14 +48,16 @@ In the tables below, a word in angle brackets, such as `<clause>`, stands for a
|
|
|
47
48
|
|
|
48
49
|
| Value | Printed as | Space |
|
|
49
50
|
| --- | --- | --- |
|
|
50
|
-
| `<clause>` | in the report, a clause address: `CD-15#loops` for Hone's own rule set, `<rule set>/<ID>#<clause>` for a team's; in a load failure, the address as written in `disciplines.json` | never in the report; may hold a space in a load failure |
|
|
51
|
+
| `<clause>` | in the report, a clause address: `CD-15#loops` (`loop-keyword#loop-statement`) for Hone's own rule set, `<rule set>/<ID>#<clause>` for a team's (`loop-keyword#loop-statement` is the check's name, given for reading: today's tool neither accepts nor prints a check's name, so write and expect the clause address; check names become typeable in 2.0); in a load failure, the address as written in `disciplines.json` | never in the report; may hold a space in a load failure |
|
|
51
52
|
| `<mechanism>` | a mechanism id, such as `audit` or `eslint` | never |
|
|
52
|
-
| `<record kind>`, `<section>`, `<package>` | a word from the lines below, a section name, or an npm package name | never |
|
|
53
|
+
| `<record kind>`, `<section>`, `<package>` | a word from the lines below, a section name, or an npm package name; in an `upgrade` record line, the kind of the version 1 record: `file-carve-out`, `authorised-location` or `clause-wide-carve-out` | never |
|
|
54
|
+
| `<new kind>` | in an `upgrade` record line, the kind of the version 2 record written, `debt` or `authorised-location`, or `not-adopted` for a check a version 1 `clause-wide-carve-out` now leaves not adopted | never |
|
|
55
|
+
| `<reason>` | in an `upgrade` `reason` line, the reason a version 1 `clause-wide-carve-out` gave, its whitespace collapsed to single spaces | may hold a space |
|
|
53
56
|
| `<line>`, `<column>` | a 1-based line and a 0-based column | never |
|
|
54
57
|
| `<count>`, `<index>`, `<earlier index>` | a whole number; an index counts from 0, within the file that holds the record | never |
|
|
55
58
|
| `<version>` | the installed package's version | never |
|
|
56
59
|
| `<edition>`, `<latest>` | the edition of a clause's check that ran and the latest edition its piece declares, each a whole number from 1 | never |
|
|
57
|
-
| `<file>`, `<path>`, `<records file>`, `<earlier records file>`, `<records folder>`, `<slice>`, `<suppressions file>`, `<package file>`, `<config root>`, `<piece folder>`, `<location>`, `<install folder>`, `<rule page>`, `<adoption guide>` | a path, as described below | may hold a space |
|
|
60
|
+
| `<file>`, `<path>`, `<records file>`, `<earlier records file>`, `<records folder>`, `<slice>`, `<suppressions file>`, `<package file>`, `<config root>`, `<piece folder>`, `<location>`, `<install folder>`, `<rule page>`, `<check page>`, `<adoption guide>`, `<symptom page>` | a path, as described below | may hold a space |
|
|
58
61
|
| `<folders>` | paths separated by `, ` | may hold a space |
|
|
59
62
|
| `<folder>` | the folder that holds a `<slice>` | may hold a space |
|
|
60
63
|
| `<project command>` | the command that runs `hone project` for this repository: `node`, the installed command's absolute path, `project --repo` and the repository's absolute path, each path with forward slashes and in double quotes when it holds a character other than a letter, digit or one of `_ . / @ : + -` | may hold a space |
|
|
@@ -64,7 +67,12 @@ In the tables below, a word in angle brackets, such as `<clause>`, stands for a
|
|
|
64
67
|
| `<url>` | the module URL Hone could not resolve, as given | may hold a space |
|
|
65
68
|
| `<snippet>` | the source text at a finding: at most 200 characters, or the first 200 followed by `…` when it is longer | may hold a space |
|
|
66
69
|
| `<fix>` | what to write instead of the form a finding flags, as the clause's piece words it | may hold a space |
|
|
67
|
-
| `<
|
|
70
|
+
| `<check>` | a version 2 check's address: its symptom's name, `#` and the check's name, such as `loop-keyword#loops` | never |
|
|
71
|
+
| `<symptom>` | a symptom's name in the installed symptom catalogue, which is also its heading's anchor on `<symptom page>`: lowercase letters, digits and hyphens | never |
|
|
72
|
+
| `<rule id>`, `<version 2 rule id>`, `<version 2 rule ids>` | an ESLint rule id as an inline disable writes it, or the id or ids a version 2 check has: `hone/` and the check's address, `hone/<check>`, character for character, with ids separated by `, ` | may hold a space |
|
|
73
|
+
| `<indicated>` | the names of the rules and principles the symptom may indicate, in the catalogue's order, each once, separated by `, ` | may hold a space |
|
|
74
|
+
| `<title>`, `<indications>`, `<breach>`, `<recipe>`, `<recipes>`, `<answers>` | the symptom's title; each case it may indicate, lowercased at its start, with ` → ` and the titles it points at separated by `, `, the cases separated by `; `; where its breach usually sits; its recipe's title, or its recipes' titles separated by `; `; and one sentence for each correct use the symptom has, then one for known debt, which every symptom takes: the situation, capitalised, then `: `, the record kind that expresses it, where it sits when the catalogue says, and in brackets that kind's format today or `no record format yet`, the sentences separated by `. ` | may hold a space |
|
|
75
|
+
| `<fix page>` | the page its piece names for a fix: for a clause of Hone's own rule set, a check's item, such as `rules/typescript/symptoms/branch-in-a-test/test-body.md`; for another rule set, a page in the clause's rule folder; as a path described below | may hold a space |
|
|
68
76
|
| `<section>` | the section of `<fix page>` that shows that form and what to write instead: lowercase letters, digits and hyphens | never |
|
|
69
77
|
| `<comment>`, `<script>`, `<option>`, `<source>` | the native exception's comment, the `package.json` script name and the option in it (or the whole script, when a quote in it has no partner), or where an imported record came from | may hold a space |
|
|
70
78
|
| `<detail>`, `<given>`, `<values>`, `<rule set>`, `<other rule set>`, `<clause with its rule set>`, `<version found>`, `<other package>`, `<range>` | text from the input, a tool or the command as typed | may hold a space |
|
|
@@ -78,7 +86,9 @@ hone check --repo <dir> [--base-revision <revision>] [--report-output <full|fail
|
|
|
78
86
|
hone project --repo <dir>
|
|
79
87
|
hone record-debt --repo <dir> --base-revision <revision> [--leave <path>]...
|
|
80
88
|
hone prune-debt --repo <dir> [--base-revision <revision>] [--forfeiture <this-run|elsewhere>]
|
|
89
|
+
hone authorise --repo <dir> --answers <address> --file <path> --case <case> --owes <principle> --why <question>... --because <answer>... --evidence <evidence>... --root-cause <text> --root-evidence <text> --readback <text> --owner <owner>
|
|
81
90
|
hone split-records --repo <dir>
|
|
91
|
+
hone upgrade --repo <dir>
|
|
82
92
|
hone --help
|
|
83
93
|
hone --version
|
|
84
94
|
```
|
|
@@ -96,8 +106,10 @@ commands:
|
|
|
96
106
|
check check the repository against the disciplines it selects and print the report, ending in its verdict
|
|
97
107
|
project write the native configuration each selected embedded mechanism needs, printing each file as written or unchanged
|
|
98
108
|
record-debt add a file carve-out naming only its clause and file to the exception records for each clause and file the check finds broken, as inherited debt, printing each pair and what was done
|
|
99
|
-
prune-debt remove from the exception records each stale or forfeited file carve-out whose file no longer exists, printing each pair removed
|
|
109
|
+
prune-debt remove from the exception records each stale or forfeited file carve-out whose file no longer exists or whose clause its mechanism measured on that file with nothing left to hold it, printing each pair removed
|
|
110
|
+
authorise write one authorised location to the records of a hone.config.json repository from the arguments given, with the why chain given, printing what was done
|
|
100
111
|
split-records move the exception records from discipline-exceptions.json into the discipline-exceptions folder, one file for each record kind and discipline, printing each file as written or removed
|
|
112
|
+
upgrade move a version 1 repository to version 2: write hone.config.json, the hone-records folder and the projection, check that version 2 reports what version 1 reported, then remove the version 1 files
|
|
101
113
|
|
|
102
114
|
options:
|
|
103
115
|
--help, -h print this help; after a command, print that command's help
|
|
@@ -176,7 +188,7 @@ exit codes:
|
|
|
176
188
|
```text
|
|
177
189
|
usage: hone prune-debt --repo <dir> [--base-revision <revision>] [--forfeiture <this-run|elsewhere>]
|
|
178
190
|
|
|
179
|
-
remove from the exception records each stale or forfeited file carve-out whose file no longer exists, printing each pair removed
|
|
191
|
+
remove from the exception records each stale or forfeited file carve-out whose file no longer exists or whose clause its mechanism measured on that file with nothing left to hold it, printing each pair removed
|
|
180
192
|
|
|
181
193
|
options:
|
|
182
194
|
--repo <dir>
|
|
@@ -193,6 +205,46 @@ exit codes:
|
|
|
193
205
|
2 a load failure: an input could not be loaded, a mechanism failed, the records could not be written, or Hone failed unexpectedly
|
|
194
206
|
```
|
|
195
207
|
|
|
208
|
+
`hone authorise --help` prints:
|
|
209
|
+
|
|
210
|
+
```text
|
|
211
|
+
usage: hone authorise --repo <dir> --answers <address> --file <path> --case <case> --owes <principle> --why <question>... --because <answer>... --evidence <evidence>... --root-cause <text> --root-evidence <text> --readback <text> --owner <owner>
|
|
212
|
+
|
|
213
|
+
write one authorised location to the records of a hone.config.json repository from the arguments given, with the why chain given, printing what was done
|
|
214
|
+
|
|
215
|
+
options:
|
|
216
|
+
--repo <dir>
|
|
217
|
+
the folder that holds hone.config.json, usually the repository root
|
|
218
|
+
--answers <address>
|
|
219
|
+
the symptom, or the symptom#check, the location answers, by the catalogue's names
|
|
220
|
+
--file <path>
|
|
221
|
+
the file the location is for, relative to --repo
|
|
222
|
+
--case <case>
|
|
223
|
+
the case the file is, as the cases page names it
|
|
224
|
+
--owes <principle>
|
|
225
|
+
the principle the case owes, as the cases page names it
|
|
226
|
+
--why <question>
|
|
227
|
+
one why of the chain, a question; give it, --because and --evidence once for each why, in order
|
|
228
|
+
--because <answer>
|
|
229
|
+
the answer to the why in the same place
|
|
230
|
+
--evidence <evidence>
|
|
231
|
+
what shows the answer, for the why in the same place
|
|
232
|
+
--root-cause <text>
|
|
233
|
+
the cause the fifth why names
|
|
234
|
+
--root-evidence <text>
|
|
235
|
+
the evidence that the cause still holds: what was run or read today, and what it showed
|
|
236
|
+
--readback <text>
|
|
237
|
+
the chain read back from the cause to the file
|
|
238
|
+
--owner <owner>
|
|
239
|
+
who decides whether this stays
|
|
240
|
+
--help, -h
|
|
241
|
+
print this help
|
|
242
|
+
|
|
243
|
+
exit codes:
|
|
244
|
+
0 the location was written, was already held, or was refused with each reason printed
|
|
245
|
+
2 a load failure: an input could not be loaded, the records could not be written, or Hone failed unexpectedly
|
|
246
|
+
```
|
|
247
|
+
|
|
196
248
|
`hone split-records --help` prints:
|
|
197
249
|
|
|
198
250
|
```text
|
|
@@ -211,6 +263,26 @@ exit codes:
|
|
|
211
263
|
2 a load failure: the records could not be read, placed or written, or Hone failed unexpectedly
|
|
212
264
|
```
|
|
213
265
|
|
|
266
|
+
`hone upgrade --help` prints:
|
|
267
|
+
|
|
268
|
+
```text
|
|
269
|
+
usage: hone upgrade --repo <dir>
|
|
270
|
+
|
|
271
|
+
move a version 1 repository to version 2: write hone.config.json, the hone-records folder and the projection, check that version 2 reports what version 1 reported, then remove the version 1 files
|
|
272
|
+
|
|
273
|
+
options:
|
|
274
|
+
--repo <dir>
|
|
275
|
+
the folder that holds disciplines.json, usually the repository root
|
|
276
|
+
--help, -h
|
|
277
|
+
print this help
|
|
278
|
+
|
|
279
|
+
exit codes:
|
|
280
|
+
0 the repository was upgraded, or is already on version 2
|
|
281
|
+
1 the upgrade was refused; it changed nothing, or named each file it could not put back
|
|
282
|
+
2 a load failure: an input could not be loaded, or Hone failed unexpectedly
|
|
283
|
+
3 version 2 is in place, but some version 1 files could not be removed; delete the files printed, then commit
|
|
284
|
+
```
|
|
285
|
+
|
|
214
286
|
`hone --version` prints the version of the installed package, read from its `package.json`, and exits `0`:
|
|
215
287
|
|
|
216
288
|
| Output | Line |
|
|
@@ -265,7 +337,7 @@ The verdict line reads `(partial assessment)` whenever the report has an `assess
|
|
|
265
337
|
|
|
266
338
|
## Report lines
|
|
267
339
|
|
|
268
|
-
Each section's entries take one of these shapes. A finding ends with ` fix: <fix> (<fix page>#<section>)` when its clause's piece names what to write instead of the form it flagged and the page that shows it, as `CD-27#test-body-logic` does; an exempted finding never carries
|
|
340
|
+
Each section's entries take one of these shapes. A finding names its symptom with ` symptom: <symptom>, may indicate: <indicated>` after the snippet when the installed symptom catalogue reads one for its clause, and for `CD-27#test-body-logic`, whose test-body checks such as `branch-in-a-test#test-body` each see one symptom, for the form it flagged; a finding the catalogue reads no symptom for prints without it. A finding ends with ` fix: <fix> (<fix page>#<section>)` when its clause's piece names what to write instead of the form it flagged and the page that shows it, as `CD-27#test-body-logic` does; an exempted finding never carries either. An exempted finding repeats ` exempted by <record kind>` once for each exception that covers it. In `projectionProblems`, a `<slice>` is the `disciplines.eslint.mjs` projection file of one config root, the repository root or a folder in `eslintConfigRoots`; `unconfigured` means that root has no `eslint.config.*`.
|
|
269
341
|
|
|
270
342
|
| Section | Line |
|
|
271
343
|
| --- | --- |
|
|
@@ -275,6 +347,8 @@ Each section's entries take one of these shapes. A finding ends with ` fix: <fix
|
|
|
275
347
|
| `editions` | `<clause> <mechanism> edition <edition> of <latest>` |
|
|
276
348
|
| `findings` | `<clause> <mechanism> <file>:<line>:<column> <snippet>` |
|
|
277
349
|
| `findings` | `<clause> <mechanism> <file>:<line>:<column> <snippet> fix: <fix> (<fix page>#<section>)` |
|
|
350
|
+
| `findings` | `<clause> <mechanism> <file>:<line>:<column> <snippet> symptom: <symptom>, may indicate: <indicated>` |
|
|
351
|
+
| `findings` | `<clause> <mechanism> <file>:<line>:<column> <snippet> symptom: <symptom>, may indicate: <indicated> fix: <fix> (<fix page>#<section>)` |
|
|
278
352
|
| `exempted` | `<clause> <mechanism> <file>:<line>:<column> <snippet> exempted by <record kind>` |
|
|
279
353
|
| `exempted` | `<clause> <mechanism> <file>:<line>:<column> <snippet> exempted by <record kind> imported from <source>` |
|
|
280
354
|
| `uncovered` | `<clause>` |
|
|
@@ -331,22 +405,39 @@ Each section's entries take one of these shapes. A finding ends with ` fix: <fix
|
|
|
331
405
|
| `projectionProblems` | `<mechanism> unconfigured <slice>: <folder> has no <mechanism> configuration file on disk, so nothing loads that slice; run the tool that generates it (for sku, sku configure) before the check` |
|
|
332
406
|
| `assessment` | `forfeiture elsewhere: 1 file carve-out not checked for decay in this run` |
|
|
333
407
|
| `assessment` | `forfeiture elsewhere: <count> file carve-outs not checked for decay in this run` |
|
|
408
|
+
| `readFirst` | `<symptom>: <title>. May indicate: <indications>. The breach usually sits <breach>. Recipe: <recipe>. <answers>. Read <symptom page>#<symptom>` |
|
|
409
|
+
| `readFirst` | `<symptom>: <title>. May indicate: <indications>. The breach usually sits <breach>. Recipes: <recipes>. <answers>. Read <symptom page>#<symptom>` |
|
|
410
|
+
| `readFirst` | `<symptom>: <title>. May indicate: <indications>. The breach usually sits <breach>. <answers>. Read <symptom page>#<symptom>` |
|
|
411
|
+
| `readFirst` | `symptom catalogue not read, so no finding names its symptom: file-unreadable <path> <detail>` |
|
|
412
|
+
| `readFirst` | `symptom catalogue not read, so no finding names its symptom: file-malformed <path> <detail>` |
|
|
413
|
+
| `readFirst` | `symptom catalogue not read, so no finding names its symptom: unsupported-version <path> <version found>` |
|
|
334
414
|
| `readFirst` | `Start from each rule's Spirit below. disciplines.assessment.md, where this repository records its own causes, forward goal and steps for a clause, is not written yet; <adoption guide>#5a-write-the-assessment says how to write it.` |
|
|
335
415
|
| `readFirst` | `disciplines.assessment.md, where this repository records its own causes, forward goal and steps for a clause, is not written yet; <adoption guide>#5a-write-the-assessment says how to write it.` |
|
|
336
416
|
| `readFirst` | `Start from each rule's Spirit below. disciplines.assessment.md could not be read.` |
|
|
337
417
|
| `readFirst` | `disciplines.assessment.md could not be read.` |
|
|
418
|
+
| `readFirst` | `Start from what must hold for each rule its symptom may indicate. disciplines.assessment.md, where this repository records its own causes, forward goal and steps for a clause, is not written yet; <adoption guide>#5a-write-the-assessment says how to write it.` |
|
|
419
|
+
| `readFirst` | `Start from what must hold for each rule its symptom may indicate. disciplines.assessment.md could not be read.` |
|
|
338
420
|
| `readFirst` | `<clause>: read the "## <clause>" section of disciplines.assessment.md, then <rule page>#spirit` |
|
|
339
421
|
| `readFirst` | `<clause>: read <rule page>#spirit; disciplines.assessment.md does not assess this clause` |
|
|
340
422
|
| `readFirst` | `<clause>: read <rule page>#spirit` |
|
|
341
423
|
| `readFirst` | `<clause>: read the "## <clause>" section of disciplines.assessment.md; its rule set has no rule page at <rule page>` |
|
|
342
424
|
| `readFirst` | `<clause>: its rule set has no rule page at <rule page>; disciplines.assessment.md does not assess this clause` |
|
|
343
425
|
| `readFirst` | `<clause>: its rule set has no rule page at <rule page>` |
|
|
426
|
+
| `readFirst` | `<clause>: read the "## <clause>" section of disciplines.assessment.md, then <check page>#fix` |
|
|
427
|
+
| `readFirst` | `<clause>: read <check page>#fix; disciplines.assessment.md does not assess this clause` |
|
|
428
|
+
| `readFirst` | `<clause>: read <check page>#fix` |
|
|
429
|
+
| `readFirst` | `<clause>: read the "## <clause>" section of disciplines.assessment.md, then <check page>` |
|
|
430
|
+
| `readFirst` | `<clause>: read <check page>; disciplines.assessment.md does not assess this clause` |
|
|
431
|
+
| `readFirst` | `<clause>: read <check page>` |
|
|
432
|
+
| `readFirst` | `<clause>: read the "## <clause>" section of disciplines.assessment.md; its rule set has no check page at <check page>` |
|
|
433
|
+
| `readFirst` | `<clause>: its rule set has no check page at <check page>; disciplines.assessment.md does not assess this clause` |
|
|
434
|
+
| `readFirst` | `<clause>: its rule set has no check page at <check page>` |
|
|
344
435
|
| `readFirst` | `prune-debt: 1 file carve-out under stale or forfeited still records debt that is paid; run <prune command> to remove what is paid, and commit the exception records it changes` |
|
|
345
436
|
| `readFirst` | `prune-debt: <count> file carve-outs under stale or forfeited still record debt that is paid; run <prune command> to remove what is paid, and commit the exception records it changes` |
|
|
346
437
|
| `readFirst` | `prune-debt: 1 file carve-out under stale or forfeited still records debt that is paid; run <prune command> to remove what is paid, then run <project command> and commit the exception records with every disciplines.<mechanism>.mjs it writes` |
|
|
347
438
|
| `readFirst` | `prune-debt: <count> file carve-outs under stale or forfeited still record debt that is paid; run <prune command> to remove what is paid, then run <project command> and commit the exception records with every disciplines.<mechanism>.mjs it writes` |
|
|
348
439
|
|
|
349
|
-
`readFirst` has one clause line per clause with findings, in the order the findings first name them, then, last, one `prune-debt` line when any `file-carve-out` under `stale` or `forfeited`
|
|
440
|
+
`readFirst` opens with one symptom line per symptom a finding names, in the order the findings first name them, each printed once however many findings name it. It names the symptom's cases with the rules and principles each may indicate, where the breach usually sits, its recipe or recipes when it has any, each correct use it has and the kind of record that expresses it, then known debt, which debt answers for every symptom, each with that kind's record format today. When the symptom catalogue cannot be read, `readFirst` opens instead with one line that says so and why; the findings then print as they would with no catalogue, and the verdict and exit code are those the findings decide. `readFirst` then has one clause line per clause with findings, in the order the findings first name them, then, last, one `prune-debt` line when any `file-carve-out` under `stale` or `forfeited` is one `hone prune-debt` would remove. It names `hone project` too when any of those records is for a clause whose mechanism, such as `eslint`, puts records into effect through a projection, and then names each such mechanism's projection file, joined by ` and every `. When `disciplines.assessment.md` is not written yet, or cannot be read, one note line comes after the symptom lines and before the clause lines; it starts with `Start from each rule's Spirit below.` when at least one clause line names a rule page, and otherwise with `Start from what must hold for each rule its symptom may indicate.` when at least one names a check page. A clause of Hone's own rule set names the item of each of its checks that its findings came from, or of every check it has when a finding names none, at the item's `Fix` section when it has one; a clause of another rule set names its rule page. A clause line that names more than one page joins them with ` and `, and then names each absent page after a `;`. A clause line's first word is a clause address, which holds a `#`, followed by `:`; a note line's first word holds no `#`, which is how a tool tells them apart. A symptom line is a note line whose first word is its symptom's name followed by `:`. The `<adoption guide>` is `ADOPTING.md` in the installed package, such as `node_modules/@hailstails/hone/ADOPTING.md`. A clause line names the clause's section in `disciplines.assessment.md` when the file has one, says `does not assess this clause` when the file is there without that section, and says neither when the file is not read. [The README](../README.md#commands) says how a section is matched.
|
|
350
441
|
|
|
351
442
|
## Load failures
|
|
352
443
|
|
|
@@ -400,8 +491,8 @@ An `arguments-invalid` line says what was wrong with the command as typed. Its w
|
|
|
400
491
|
|
|
401
492
|
| Problem | Line |
|
|
402
493
|
| --- | --- |
|
|
403
|
-
| `command-missing` | `load failure: arguments-invalid hone needs a command, check, project, record-debt, prune-debt
|
|
404
|
-
| `command-unknown` | `load failure: arguments-invalid hone has no command "<given>"; its commands are check, project, record-debt, prune-debt
|
|
494
|
+
| `command-missing` | `load failure: arguments-invalid hone needs a command, check, project, record-debt, prune-debt, authorise, split-records or upgrade; run hone --help for usage` |
|
|
495
|
+
| `command-unknown` | `load failure: arguments-invalid hone has no command "<given>"; its commands are check, project, record-debt, prune-debt, authorise, split-records and upgrade; run hone --help for usage` |
|
|
405
496
|
| `flag-extra` | `load failure: arguments-invalid hone <flag> takes nothing after it, not "<given>"; run hone --help for usage` |
|
|
406
497
|
| `argument-unexpected` | `load failure: arguments-invalid hone <command> takes options, not "<given>" on its own; give each option and its value as two arguments, as in <option> <value>; run hone <command> --help for its options` |
|
|
407
498
|
| `option-unknown` | `load failure: arguments-invalid hone <command> has no option "<given>"; run hone <command> --help for its options` |
|
|
@@ -427,7 +518,7 @@ An `arguments-invalid` line says what was wrong with the command as typed. Its w
|
|
|
427
518
|
|
|
428
519
|
## hone record-debt
|
|
429
520
|
|
|
430
|
-
`hone record-debt` runs the check, then prints one line for each clause and file that has a finding, or an inline disable or TypeScript directive under `unrecorded`, ordered by file and then by clause. A `recorded` line is a `file-carve-out` it added to the exception records, in whichever [layout](../
|
|
521
|
+
`hone record-debt` runs the check, then prints one line for each clause and file that has a finding, or an inline disable or TypeScript directive under `unrecorded`, ordered by file and then by clause. A `recorded` line is a `file-carve-out` it added to the exception records, in whichever [layout](../MIGRATING.md#16-moving-to-the-split-layout) the repository keeps them; every other line names a pair it wrote nothing for. It prints nothing when the check finds nothing to record. The `<path>` on a `left` line is the `--leave` value that covers the file. A `nested-configuration` line names a pair whose clause runs on an embedded mechanism, such as ESLint, in a file that loads the configuration in `<config folder>`, at or under the outermost `<folder>` that holds its own `disciplines.json`. The projection never reaches that configuration, so a record there would leave the projection out of effect and fail the next check.
|
|
431
522
|
|
|
432
523
|
| Output | Line |
|
|
433
524
|
| --- | --- |
|
|
@@ -440,7 +531,7 @@ An `arguments-invalid` line says what was wrong with the command as typed. Its w
|
|
|
440
531
|
|
|
441
532
|
## hone prune-debt
|
|
442
533
|
|
|
443
|
-
`hone prune-debt` runs the check with the `--base-revision` and `--forfeiture` it is given, then removes from the exception records each `file-carve-out` the check lists under `stale` or `forfeited` whose file no longer exists
|
|
534
|
+
`hone prune-debt` runs the check with the `--base-revision` and `--forfeiture` it is given, then removes from the exception records each `file-carve-out` the check lists under `stale` or `forfeited` whose file no longer exists or whose clause and file its mechanism reported as `measured`, unless its clause and file still hold a finding that no record answers, a finding that only debt exempts, or any native exception, recorded or not. A finding an `authorised-location` in force exempts is answered and does not keep the record; a `clause-wide-carve-out` is not an answer. An imported `authorised-location` or one with a legacy why-chain answers nothing on a run whose exception baseline is unmeasured, since that run accepted it without judging it at the base revision, so an unmeasured baseline removes nothing on such an answer. A `file-carve-out` in force beside an `authorised-location` on the same clause and file is listed under `doublyHeld`, not `stale` or `forfeited`, so the command removes neither. It works in whichever [layout](../MIGRATING.md#16-moving-to-the-split-layout) the repository keeps the records in, and prints one line for each clause and file it removed, ordered by file and then by clause. It leaves every other record for a person: a stale or forfeited `file-carve-out` on a file that still exists and that its mechanism did not measure, such as a file the mechanism skips, and an `authorised-location` or `clause-wide-carve-out` under `stale`. It prints nothing when it removed none. It does not write the projection: with an `eslint` clause, run `hone project` after it, as the `readFirst` line says. The text of every other record in a file it changes is kept byte for byte. In the split layout, a rule's file left with no records is deleted; a single `discipline-exceptions.json` left with none holds an empty list.
|
|
444
535
|
|
|
445
536
|
| Output | Line |
|
|
446
537
|
| --- | --- |
|
|
@@ -456,3 +547,609 @@ An `arguments-invalid` line says what was wrong with the command as typed. Its w
|
|
|
456
547
|
| `split-records` | `<path> removed` |
|
|
457
548
|
| `split-records` | `<path> already holds the records split: nothing to split` |
|
|
458
549
|
| `split-records` | `<path> holds no records: nothing to split` |
|
|
550
|
+
|
|
551
|
+
## hone upgrade
|
|
552
|
+
|
|
553
|
+
`hone upgrade` moves a version 1 repository to version 2. It writes `hone.config.json`, the `hone-records` folder and the version 2 projections, one for the repository root and one for each package folder version 1 projected into, rewrites each team ESLint config that imports a version 1 projection to import the version 2 projection in its own folder, carries `eslintConfigRoots` over, runs version 1 and version 2 over the same repository, and removes the version 1 files only when both report the same thing. A repository that is already on version 2 prints one line and exits `0`.
|
|
554
|
+
|
|
555
|
+
On success it prints `upgraded to version 2`, then a `wrote` line for each file it wrote, a `rewrote` line for each team config it rewrote, and a `removed` line for each version 1 file and folder it removed; then one line for each record it wrote, naming the kind and clause of the version 1 record, the file it covers, and the kind and check of the version 2 record, for each version 1 `clause-wide-carve-out`, a `reason` line with its reason, whitespace collapsed to single spaces, then one `clause-wide-carve-out <clause> -> not-adopted <check>` line for each check of its clause, since version 2 holds it as each of those checks being `not-adopted` in `hone.config.json`, a choice and not a record, and its settings have no place for a reason, which stays in version control and on the `reason` line, a `carried` line for each record that holds the version 1 entry word for word, a `mention` line for each line of a tracked file outside `exclude` that names `disciplines.json`, `discipline-exceptions`, `disciplines.eslint.mjs` or `disciplines.assessment.md`, which the upgrade does not change, and a `mention-unread` line for each tracked file outside `exclude` that could not be read, with the reason; a file the upgrade removed is not read, and a file that holds a NUL character is skipped as binary, with no line; then `upgrade: same findings (<count>), same verdict`, the count being the findings version 1 and version 2 both reported, and exits `0`. The version 1 files it removes are `disciplines.json`, every version 1 projection, and every `.json` file and folder it finds in `discipline-exceptions.json` or the `discipline-exceptions` folder, whether or not it holds a record. The `wrote`, `rewrote` and `removed` lines print a path inside `--repo` relative to it; the lines of a refusal print the paths as the files are, absolute.
|
|
556
|
+
|
|
557
|
+
A refusal prints `upgrade refused:`, then one or more lines saying what to do, then either `Nothing was changed.` or the files that could not be put back, and exits `1`. A refusal before anything is written never changes the repository. A refusal after files were written puts them back. A file that could not be put back is named with what to do: a file or folder the upgrade created is deleted by hand, and a file it replaced is restored from version control. A refusal that names a fault in Hone prints where to report it. The upgrade asks version 1 which projections it writes by running version 1's own `project` once, after version 1's run has reported every projection current, so a current projection that no config root owns any more is removed, as version 1's own `project` removes it. Version 1's own `project` is expected to change nothing but that removal: if it rewrites a projection, the upgrade refuses and names the file, since the run it measured was made before, and if it fails, the upgrade cannot know what it did before failing, so that refusal prints `version 1's own project may have changed files before it failed; check version control for what it changed.` in place of `Nothing was changed.`. A refusal that comes after that removal lists each file removed under `version 1's own project removed these files, and the upgrade does not put them back; restore them from version control:`, apart from the files the upgrade itself could not put back, and does not print `Nothing was changed.`; a success lists it among the version 1 files removed.
|
|
558
|
+
|
|
559
|
+
The records the upgrade carries over follow the `forfeiture` setting afterwards, as debt does. Its own proof never receives a base revision. A later `hone check` with no `--base-revision` leaves them to the run that has a base under `"forfeiture": "elsewhere"`, printing a `carried standing elsewhere` line in `assessment`, and fails with `import-unmeasured` under the default `this-run`.
|
|
560
|
+
|
|
561
|
+
When version 2 is in place but a version 1 file could not be removed, it prints `upgrade incomplete:`, the files it wrote, the file it could not remove, and every version 1 file still present, which it asks you to delete by hand, then commit, and exits `3`. Nothing is rolled back; the version 2 files stay. While `disciplines.json` is still beside `hone.config.json`, every `hone` command stops with `settings-in-both-versions`.
|
|
562
|
+
|
|
563
|
+
| Output | Line |
|
|
564
|
+
| --- | --- |
|
|
565
|
+
| `upgrade` | `upgrade refused:` |
|
|
566
|
+
| `upgrade` | `upgrade incomplete:` |
|
|
567
|
+
| `upgrade` | `Nothing was changed.` |
|
|
568
|
+
| `upgrade` | `upgraded to version 2` |
|
|
569
|
+
| `upgrade` | `wrote <path>` |
|
|
570
|
+
| `upgrade` | `rewrote <path>` |
|
|
571
|
+
| `upgrade` | `removed <path>` |
|
|
572
|
+
| `upgrade` | `<record kind> <clause> <file> -> <new kind> <check>` |
|
|
573
|
+
| `upgrade` | `reason <clause>: <reason>` |
|
|
574
|
+
| `upgrade` | `<record kind> <clause> -> <new kind> <check>` |
|
|
575
|
+
| `upgrade` | `carried <check> <file>` |
|
|
576
|
+
| `upgrade` | `mention <file>:<line>` |
|
|
577
|
+
| `upgrade` | `mention-unread <file> <detail>` |
|
|
578
|
+
| `upgrade` | `upgrade: same findings (<count>), same verdict` |
|
|
579
|
+
| `upgrade` | `already on version 2; nothing to upgrade` |
|
|
580
|
+
| `upgrade` | `This is a fault in hone, not in your repository. Report it at <issues page>, with this output.` |
|
|
581
|
+
| `upgrade` | `version 1's own run could not be made (<detail>). Run hone check and fix its load failure first.` |
|
|
582
|
+
| `upgrade` | `version 1's run failed (<detail>). Run hone check and fix its load failure first.` |
|
|
583
|
+
| `upgrade` | `version 1's own project failed (<detail>). Run hone project with your version 1 release, fix what it reports, then run the upgrade again.` |
|
|
584
|
+
| `upgrade` | `version 1's own project may have changed files before it failed; check version control for what it changed.` |
|
|
585
|
+
| `upgrade` | `version 1's own project rewrote <files>, which the upgrade had already measured. Commit what it wrote, then run the upgrade again.` |
|
|
586
|
+
| `upgrade` | `version 1's files could not be read (<detail>). Run hone check and fix its load failure first.` |
|
|
587
|
+
| `upgrade` | `a finding of <clause> in <file> names no check of version 2. Report it at <issues page>.` |
|
|
588
|
+
| `upgrade` | `<clause> in <file> is held by both a file carve-out and an authorised location. Remove one of them first, then run the upgrade again.` |
|
|
589
|
+
| `upgrade` | `the carve-out for <clause> in <file> was given no answer. This is a fault in hone, not in your repository. Report it at <issues page>, with this output.` |
|
|
590
|
+
| `upgrade` | `the authorised location for <clause> in <file> was given no answer. This is a fault in hone, not in your repository. Report it at <issues page>, with this output.` |
|
|
591
|
+
| `upgrade` | `<clause> has no version 2 check to run it, and version 2 does not carry the clauses of a version 1 team rule set. Remove it from disciplines.json to upgrade without it, or stay on version 1.` |
|
|
592
|
+
| `upgrade` | `<check> has no engine on the <mechanism> mechanism. This is a fault in hone, not in your repository. Report it at <issues page>, with this output.` |
|
|
593
|
+
| `upgrade` | `<check> could run on <engines> through the <mechanism> mechanism; the upgrade cannot choose. This is a fault in hone, not in your repository. Report it at <issues page>, with this output.` |
|
|
594
|
+
| `upgrade` | `the file carve-out for <clause> in <file> answers no finding. Remove it, or fix the file it names, then run the upgrade again.` |
|
|
595
|
+
| `upgrade` | `the file carve-out for <clause> in <file> answers only a suppression. Remove it, or fix the file it names, then run the upgrade again.` |
|
|
596
|
+
| `upgrade` | `<name> is not a name version 2 can file records under. This is a fault in hone, not in your repository. Report it at <issues page>, with this output.` |
|
|
597
|
+
| `upgrade` | `version 2's projection could not be made (<detail>). Fix what it names, then run the upgrade again.` |
|
|
598
|
+
| `upgrade` | `version 2 cannot run this repository yet (<detail>). Do what it names, or stay on version 1 until version 2 runs it, then run the upgrade again.` |
|
|
599
|
+
| `upgrade` | `the version 1 projection <projection> has no version 2 projection to take its place, since version 2 runs no lint config in <folder>. Remove it and its import in <config file>, then run the upgrade again.` |
|
|
600
|
+
| `upgrade` | `version 2 would project <file>, but version 1 has no projection in <folder>. With your version 1 release, run hone project and import what it writes in the lint config of <folder>, commit, then run the upgrade again.` |
|
|
601
|
+
| `upgrade` | `the version 1 projection <projection> belongs to no config root and is out of date. Delete it or restore its config root, commit, then run the upgrade again.` |
|
|
602
|
+
| `upgrade` | `the version 1 projection <projection> is <state>. Run hone project with your version 1 release, commit what it writes, then run the upgrade again.` |
|
|
603
|
+
| `upgrade` | `the version 1 projection <projection> is <state>. Run hone check with your version 1 release, fix what it reports, then run the upgrade again.` |
|
|
604
|
+
| `upgrade` | `the version 2 records would reach beyond the version 1 entries: <records>.` |
|
|
605
|
+
| `upgrade` | `<config file> holds no static default import of <projection>. Change its import of it to the form import projection from "<specifier>", then run the upgrade again.` |
|
|
606
|
+
| `upgrade` | `<config file> imports the version 1 projection <count> times. Import it once.` |
|
|
607
|
+
| `upgrade` | `<config file> names a version 1 projection outside the imports the upgrade rewrites, or imports one version 1 did not write. Remove the other mention or import, then run the upgrade again.` |
|
|
608
|
+
| `upgrade` | `version 1 already reports <clauses> as uncovered. Select or mark each of them in disciplines.json, then run the upgrade again.` |
|
|
609
|
+
| `upgrade` | `<file> cannot be placed in the repository. This is a fault in hone, not in your repository. Report it at <issues page>, with this output.` |
|
|
610
|
+
| `upgrade` | `the version 1 records file <path> is outside <root>. This is a fault in hone, not in your repository. Report it at <issues page>, with this output.` |
|
|
611
|
+
| `upgrade` | `<path> already exists. Move it aside, then run the upgrade again.` |
|
|
612
|
+
| `upgrade` | `<path> could not be read to be replaced (<detail>). Make it readable, then run the upgrade again.` |
|
|
613
|
+
| `upgrade` | `<path> could not be created (<detail>). Fix what the detail names, then run the upgrade again.` |
|
|
614
|
+
| `upgrade` | `<path> could not be written (<detail>). Fix what the detail names, then run the upgrade again.` |
|
|
615
|
+
| `upgrade` | `version 2's run failed (<detail>). This is a fault in hone, not in your repository. Report it at <issues page>, with this output.` |
|
|
616
|
+
| `upgrade` | `version 2 does not report what version 1 reported:` |
|
|
617
|
+
| `upgrade` | ` <section>:` |
|
|
618
|
+
| `upgrade` | ` only before: <before>` |
|
|
619
|
+
| `upgrade` | ` only after: <after>` |
|
|
620
|
+
| `upgrade` | `these inline directives name a version 1 rule id, which version 2 names differently:` |
|
|
621
|
+
| `upgrade` | ` <file>:<line> <rule id>: write <version 2 rule id>` |
|
|
622
|
+
| `upgrade` | ` <file>:<line> <rule id>: write each of <version 2 rule ids>` |
|
|
623
|
+
| `upgrade` | `Replace each version 1 id with the version 2 id shown, then run the upgrade again.` |
|
|
624
|
+
| `upgrade` | `these inline directives name a hone rule id that version 2 has no check under:` |
|
|
625
|
+
| `upgrade` | ` <file>:<line> <rule id>` |
|
|
626
|
+
| `upgrade` | `Fix each one to name a check of version 2, or remove it, then run the upgrade again.` |
|
|
627
|
+
| `upgrade` | `version 1's own project removed these files, and the upgrade does not put them back; restore them from version control:` |
|
|
628
|
+
| `upgrade` | ` <removed path>` |
|
|
629
|
+
| `upgrade` | `These files could not be put back; put them right by hand:` |
|
|
630
|
+
| `upgrade` | ` delete <unrestored path> (<unrestored detail>)` |
|
|
631
|
+
| `upgrade` | ` delete the empty folder <unrestored path> (<unrestored detail>)` |
|
|
632
|
+
| `upgrade` | ` restore <unrestored path> from version control (<unrestored detail>)` |
|
|
633
|
+
| `upgrade` | `the version 1 records are invalid; fix them first:` |
|
|
634
|
+
| `upgrade` | `<records file> entry <index>: <problem>` |
|
|
635
|
+
| `upgrade` | `a version 1 record in <records file> is not JSON. Fix it first.` |
|
|
636
|
+
| `upgrade` | `no file imports <projection> with a static default import. Change the ESLint config next to it to import it in the form import projection from "<specifier>", then run the upgrade again.` |
|
|
637
|
+
| `upgrade` | `<config file> could not be read (<detail>). Make it readable, then run the upgrade again.` |
|
|
638
|
+
| `upgrade` | `version 2 is in place (written: <written>; replaced: <replaced>), but <removal path> could not be removed (<detail>).` |
|
|
639
|
+
| `upgrade` | `version 2 is in place (written: <written>), but <removal path> is outside <root>.` |
|
|
640
|
+
| `upgrade` | `Delete these version 1 files by hand, then commit:` |
|
|
641
|
+
| `upgrade` | ` <remaining path>` |
|
|
642
|
+
|
|
643
|
+
# Version 2
|
|
644
|
+
|
|
645
|
+
Everything above this heading is what the installed `hone` prints today, on a repository that keeps `disciplines.json`. This part lists what a version 2 run prints: the report of `hone check` on a repository that keeps `hone.config.json` and `hone-records/`. A repository that keeps `disciplines.json` gets the report described above; `hone upgrade` moves it to `hone.config.json` and `hone-records/`, and from then on `hone check` prints the report described here. The same test that holds the tables above to what 1.x prints holds the tables in this part to what the version 2 report prints, reading this part on its own.
|
|
646
|
+
|
|
647
|
+
The streams, exit codes, output modes, verdict lines and heading lines are the same as in 1.x. What changes is the vocabulary: a check address `<symptom>#<check>` where 1.x printed a clause address, an engine where it printed a mechanism, and the five record kinds where it printed exception records.
|
|
648
|
+
|
|
649
|
+
## What a tool can parse in version 2
|
|
650
|
+
|
|
651
|
+
A tool can rely on these from 2.0.0, and a change to any of them is a major release:
|
|
652
|
+
|
|
653
|
+
- the section names, their order and roles, the heading and count lines, and the four verdict lines;
|
|
654
|
+
- in each line below, the fixed words and values up to the first value that may hold a space, and the single spaces between them. For a finding, that is its check address and engine; for a record, what it holds, its kind and the start of its site; for a refused, noted or carried record, its records file and index, then the refusal's kind, the note's kind or the record's standing.
|
|
655
|
+
|
|
656
|
+
A line of `findings`, `answered` or `unrecorded` leads with either a check or a clause. A tool tells them apart by the first field: a check address is lower-case catalogue names joined by `#` (`claimed-type#cast-expressions`), and a clause address holds an upper-case discipline id before its `#` (`CD-27#test-body-logic`, `acme/AC-1#no-moment`). After a check address, the second field is the engine that ran it. After a clause address, it is the mechanism id that raised the finding, since the symptom catalogue gives that clause no check.
|
|
657
|
+
|
|
658
|
+
A `<records file>` is one field: it is printed bare when its path holds no space, double quote or line break, and as a JSON string in double quotes when it does. A records file whose name is not a catalogue name, such as `hone-records/debt/my notes.json`, is still read, and its records are refused as `misplaced`, so its path can lead a `refused` line.
|
|
659
|
+
|
|
660
|
+
A record's ` carried` and its ` note: ` words come after its `<file>` or `<module>`, which may hold a space, so they are for a person. A tool reads the same facts from the `carried` and `record-notes` sections, which lead with the record's records file and index. A tool tells debt refused for a check its symptom does not have from an authorised location kept with a note for it by the section and the third field: the refusal is under `refused` with `unknown-check` as its third field, and the note is under `record-notes` with `unknown-check:`, ending in a colon.
|
|
661
|
+
|
|
662
|
+
These are not stable: the words after the `:` that ends an `unmeasured` or `projection-problems` line's leading fields, the `symptoms` lines, the `settings-notes` lines, the words of a ` note: ` on a record and of a `record-notes` line after its kind, the words of a refusal after its kind's values, the words after a record's site in `stale`, `forfeited` and `paid`, and a finding's `<fix>`.
|
|
663
|
+
|
|
664
|
+
As in 1.x, a minor release may add a section, a line form or a value, and a tool passes over a section heading or line it does not know. Removing or renaming a section or a line form, or changing a stable part, is a major release.
|
|
665
|
+
|
|
666
|
+
## Values in version 2
|
|
667
|
+
|
|
668
|
+
| Value | Printed as | Space |
|
|
669
|
+
| --- | --- | --- |
|
|
670
|
+
| `<check>` | a check address, `<symptom>#<check>`, such as `date-used-directly#clock-sources`; for a finding or native exception of a clause the symptom catalogue gives no check, such as a team rule set's, the clause address; in a load failure, the check as `hone.config.json` lists it, led by its rule set and `/` when it has one, or the clause address when the failure is in the rule set's own files | never in the report; may hold a space in a load failure |
|
|
671
|
+
| `<engine>` | the engine that ran the check, such as `walker` or `eslint`; beside a clause address, or in a load failure when the catalogue names no engine for it, the mechanism id | never |
|
|
672
|
+
| `<symptom>`, `<recipe>`, `<case name>` | a name in the symptom catalogue | never |
|
|
673
|
+
| `<section>` | in a finding, the section of its fix page, as in 1.x; in an upgrade refusal, a compared section of the two reports, always written in version 2's style: `excluded`, `findings`, `answered`, `unrecorded`, `misnamed`, `paid`, `stale`, `forfeited`, `doubly-held`, `invalid-records`, `not-adopted`, `not-run`, `editions`, `unmeasured`, `projection-problems`, `assessment` or `verdict` | never |
|
|
674
|
+
| `<check name>` | the check an authorised location names that its symptom does not have, as the record writes it | never |
|
|
675
|
+
| `<outside party>`, `<dependency>` | a boundary record's outside party, such as `runtime:clock`, `node:fs` or `uuid/v4`, and a dependency record's package name | never |
|
|
676
|
+
| `<records file>` | a records file under `hone-records/`, bare, or as a JSON string in double quotes when its path holds a space, a double quote or a line break | never outside a JSON string |
|
|
677
|
+
| `<belongs in>` | the records file a record belongs in, named for its kind and symptom or recipe | never |
|
|
678
|
+
| `<index>`, `<earlier index>` | a record's place in its records file's `records`, counting from 0; `<earlier index>` is the place of the record a duplicate repeats | never |
|
|
679
|
+
| `<standing>` | `established`, a carried record unchanged against the base revision, or `unjudged`, one this run could not compare | never |
|
|
680
|
+
| `<convention>` | a key of `hone.config.json` that no check reads yet: `generated` or `layers` | never |
|
|
681
|
+
| `<path>`, `<file>`, `<module>`, `<slice>`, `<folder>`, `<folders>`, `<fix page>`, `<symptom page>` | a path, printed as in 1.x; in the report `<path>` is one that `exclude` leaves out, and in a load failure it is the file that failed | may hold a space |
|
|
682
|
+
| `<snippet>`, `<fix>`, `<indicated>`, `<title>`, `<indications>`, `<breach>`, `<recipe title>`, `<recipe titles>`, `<answers>`, `<comment>`, `<script>`, `<option>`, `<command>`, `<invocation>`, `<wrapper>`, `<suppressions file>`, `<package file>`, `<project command>`, `<count>`, `<edition>`, `<latest>`, `<line>`, `<column>` | as in 1.x | as in 1.x |
|
|
683
|
+
| `<prune command>` | the command that removes paid, stale and forfeited debt, printed as `<project command>` is | may hold a space |
|
|
684
|
+
| `<case>`, `<owes>`, `<given>`, `<reason>`, `<revision>`, `<git message>` | text as written in a record, the command or git, as a JSON string in double quotes | may hold a space |
|
|
685
|
+
| `<issues>` | each problem the record's form has, as its key's path (`record` for the record itself) then `: ` and what is wrong, separated by `; ` | may hold a space |
|
|
686
|
+
| `<lacks>` | the keys a carried record lacks, separated by `, ` | may hold a space |
|
|
687
|
+
| `<dir>`, `<detail>`, `<url>`, `<version found>`, `<rule set>`, `<other rule set>`, `<config root>`, `<piece folder>`, `<package>`, `<other package>`, `<range>`, `<location>`, `<install folder>` | as in 1.x | as in 1.x |
|
|
688
|
+
| `<settings key>` | `checks` or `checkSettings`, the key that lists a check twice | never |
|
|
689
|
+
| `<check with its rule set>` | the check's address led by its rule set and `/`, such as `hone/claimed-type#cast-expressions`, as `hone.config.json` lists it | may hold a space |
|
|
690
|
+
| `<engines>` | the engines a check runs on, separated by ` or ` | never |
|
|
691
|
+
| `<other check>` | a further check address, as `hone.config.json` lists it | may hold a space |
|
|
692
|
+
| `<other checks>` | the further checks of the same rule, built from the catalogue, separated by a space | never |
|
|
693
|
+
| `<state>` | `not-run` or `not-adopted` | never |
|
|
694
|
+
| `<records folder>`, `<other records file>` | a folder or further records file under `hone-records/`, printed as `<records file>` is | never outside a JSON string |
|
|
695
|
+
| `<name>` | a file name no repository path can hold, as a JSON string in double quotes | may hold a space |
|
|
696
|
+
| `<document issues>` | each problem a refused records document has, as its key's path (`document` for the document itself) then `: ` and what is wrong, separated by `, ` | may hold a space |
|
|
697
|
+
| `<upgrade command>` | the command that rewrites version 1 files as version 2, printed as `<project command>` is | may hold a space |
|
|
698
|
+
|
|
699
|
+
## The version 2 report
|
|
700
|
+
|
|
701
|
+
`hone check` prints the report's non-empty sections in this order, then the verdict line. A failing section makes the verdict `fail`; a next-step, informational or guidance section never does, so paid debt, a note, an answered finding, a check available to list, a carried record or a symptom never fails a run. `actionable` prints the failing, next-step and guidance sections and leaves out the informational ones, so a hook that prints failures only still shows paid debt and the command that removes it. A passing run can therefore print a `paid` section under `actionable`, so a hook tells pass from fail by the exit code, not by whether anything was printed.
|
|
702
|
+
|
|
703
|
+
| Section | Role | What it lists |
|
|
704
|
+
| --- | --- | --- |
|
|
705
|
+
| `excluded` | informational | paths that `exclude` in `hone.config.json` leaves out |
|
|
706
|
+
| `not-adopted` | informational | checks marked `not-adopted` |
|
|
707
|
+
| `not-run` | informational | checks marked `not-run` |
|
|
708
|
+
| `editions` | informational | the edition each check ran, for checks with more than one edition |
|
|
709
|
+
| `findings` | failing | each place a check sees its symptom, unanswered |
|
|
710
|
+
| `answered` | informational | findings a record answers, with the records that answer them |
|
|
711
|
+
| `available` | informational | checks no setting lists whose symptom a listed check sees, offered to list |
|
|
712
|
+
| `stale` | failing | records that answer no finding and hold no native exception |
|
|
713
|
+
| `forfeited` | failing | debt on files this change touched |
|
|
714
|
+
| `unrecorded` | failing | native exceptions no record holds |
|
|
715
|
+
| `misnamed` | failing | inline disables that name a version 1 rule id or an id no check of this run has, which suppress nothing |
|
|
716
|
+
| `paid` | next-step | debt another record answers in place of, for a finding this run raised, with the records that answer and the command that removes the debt |
|
|
717
|
+
| `refused` | failing | records that cannot be read or applied |
|
|
718
|
+
| `unmeasured` | failing | what this run could not measure |
|
|
719
|
+
| `projection-problems` | failing | ESLint projections that are out of date |
|
|
720
|
+
| `assessment` | informational | concerns this run left to another run |
|
|
721
|
+
| `settings-notes` | informational | what `hone.config.json` declares that no check reads yet |
|
|
722
|
+
| `record-notes` | informational | every note on a record, by its records file and index, whether or not the record answers a finding |
|
|
723
|
+
| `carried` | informational | records carried from version 1 word for word, with what each lacks |
|
|
724
|
+
| `symptoms` | guidance | one note for each symptom the findings name |
|
|
725
|
+
|
|
726
|
+
The outputs are `full`, `actionable`, `counts` and `verdict-only`; `actionable` is the output version 1 called `failures-only`, and `hone upgrade` writes a version 1 `failures-only` as `actionable`. A version 2 settings file or `--report-output` that says `failures-only` is refused like any other word that is not an output.
|
|
727
|
+
|
|
728
|
+
| Line | Template |
|
|
729
|
+
| --- | --- |
|
|
730
|
+
| `heading` | `<section> (<count>)` |
|
|
731
|
+
| `heading` | `<section> (<count>) next-step` |
|
|
732
|
+
| `heading` | `<section> (<count>) informational` |
|
|
733
|
+
| `heading` | `<section> (<count>) guidance` |
|
|
734
|
+
| `verdict` | `verdict: pass` |
|
|
735
|
+
| `verdict` | `verdict: fail` |
|
|
736
|
+
| `verdict` | `verdict: pass (partial assessment)` |
|
|
737
|
+
| `verdict` | `verdict: fail (partial assessment)` |
|
|
738
|
+
|
|
739
|
+
## Version 2 report lines
|
|
740
|
+
|
|
741
|
+
A finding names what its symptom may indicate after the snippet, and ends with ` fix: <fix> (<fix page>#<section>)` when its check names what to write instead. A finding of a clause the catalogue gives no check prints its clause address and mechanism in place of `<check> <engine>`, and names no indication. An answered finding repeats ` answered by <reference>` once for each record that answers it, and so does paid debt, for each record that answers in its place. Debt is paid when every finding it held in this run was answered in its place. Pruning paid debt removes the record whole, so a later finding of another check at that file is a new finding. A stale record prints as its `<subject>`; stale debt then ends with the command that removes it, and forfeited debt with what to do before removing it. A native exception prints one line for each check of its clause that runs on its engine. An inline disable that names a rule id of the tool's own `hone/` namespace which no check of this run has suppresses nothing, and the finding it was written over is still reported; it prints under `misnamed` as `version-1-id` when the id is one a version 1 piece names, and as `names-no-check` for any other id, and fails the run until the disable names the check's own id, `hone/<symptom>#<check>`.
|
|
742
|
+
|
|
743
|
+
| Section | Line |
|
|
744
|
+
| --- | --- |
|
|
745
|
+
| `excluded` | `<path>` |
|
|
746
|
+
| `not-adopted` | `<check>` |
|
|
747
|
+
| `not-run` | `<check> adopted, engine not run: enforced by review` |
|
|
748
|
+
| `editions` | `<check> <engine> edition <edition> of <latest>` |
|
|
749
|
+
| `findings` | `<check> <engine> <file>:<line>:<column> <snippet> may indicate: <indicated>` |
|
|
750
|
+
| `findings` | `<check> <engine> <file>:<line>:<column> <snippet> may indicate: <indicated> fix: <fix> (<fix page>#<section>)` |
|
|
751
|
+
| `findings` | `<check> <engine> <file>:<line>:<column> <snippet>` |
|
|
752
|
+
| `findings` | `<check> <engine> <file>:<line>:<column> <snippet> fix: <fix> (<fix page>#<section>)` |
|
|
753
|
+
| `answered` | `<check> <engine> <file>:<line>:<column> <snippet> answered by <reference>` |
|
|
754
|
+
| `available` | `<check>` |
|
|
755
|
+
| `stale` | `<subject>` |
|
|
756
|
+
| `stale` | `<subject>; its file is no longer in the repository` |
|
|
757
|
+
| `stale` | `<subject>; its file is excluded by the settings, so nothing there was checked` |
|
|
758
|
+
| `stale` | `<subject>; nothing it holds is found: run <prune command> to remove it` |
|
|
759
|
+
| `stale` | `<subject>; its file is no longer in the repository: run <prune command> to remove it` |
|
|
760
|
+
| `stale` | `<subject>; its file is excluded by the settings, so nothing there was checked: run <prune command> to remove it` |
|
|
761
|
+
| `forfeited` | `<subject>; this change touched its file, so it no longer answers: fix what it held, then run <prune command> to remove it` |
|
|
762
|
+
| `unrecorded` | `<check> <engine> ignore <file>` |
|
|
763
|
+
| `unrecorded` | `<check> <engine> config-override <file>` |
|
|
764
|
+
| `unrecorded` | `<check> <engine> suppression-entry <file> <suppressions file>` |
|
|
765
|
+
| `unrecorded` | `<check> <engine> inline-disable <file>:<line> <comment>` |
|
|
766
|
+
| `unrecorded` | `<check> <engine> inline-disable <file>:<line> <comment> names no rule and escapes every selected check: naming the rule is the cheap fix` |
|
|
767
|
+
| `unrecorded` | `<check> <engine> inline-rule-config <file>:<line> <comment>` |
|
|
768
|
+
| `unrecorded` | `<check> <engine> command-line-option <package file> <script> <option> weakens the script's whole run, so no record can cover it: remove it from the script` |
|
|
769
|
+
| `unrecorded` | `<check> <engine> command-line-option <package file> <script> <option>: <command> is not the first command of its script, so Hone cannot tell what the option does to the files under check; give <command> a script of its own, such as <invocation>` |
|
|
770
|
+
| `unrecorded` | `<check> <engine> command-line-option <package file> <script> <option>: <wrapper> comes before <command> and is neither a package runner nor a NAME=value setting, so Hone cannot tell what the option does to the files under check; put only package runners and NAME=value settings before <command>` |
|
|
771
|
+
| `unrecorded` | `<check> <engine> command-line-option <package file> <script> <option>: a quote in the script has no partner, so Hone cannot read what the script passes to <command> or tell what that does to the files under check; pair every quote in the script` |
|
|
772
|
+
| `misnamed` | `<file>:<line> version-1-id <rule id> write <version 2 rule id> <comment>` |
|
|
773
|
+
| `misnamed` | `<file>:<line> version-1-id <rule id> write each of <version 2 rule ids> <comment>` |
|
|
774
|
+
| `misnamed` | `<file>:<line> names-no-check <rule id> <comment>` |
|
|
775
|
+
| `paid` | `<subject> answered by <reference>; run <prune command> to remove the paid debt` |
|
|
776
|
+
| `refused` | `<records file> records[<index>] form-refused <issues>` |
|
|
777
|
+
| `refused` | `<records file> records[<index>] unknown-symptom <given>` |
|
|
778
|
+
| `refused` | `<records file> records[<index>] unknown-check <given> of <symptom>` |
|
|
779
|
+
| `refused` | `<records file> records[<index>] unknown-recipe <given>` |
|
|
780
|
+
| `refused` | `<records file> records[<index>] recipe-reason-not-the-catalogues <recipe>: the catalogue gives its reason as <reason>` |
|
|
781
|
+
| `refused` | `<records file> records[<index>] named-ban <dependency>` |
|
|
782
|
+
| `refused` | `<records file> records[<index>] unknown-runtime-facility <outside party>` |
|
|
783
|
+
| `refused` | `<records file> records[<index>] misplaced <belongs in>` |
|
|
784
|
+
| `refused` | `<records file> records[<index>] not-a-records-name <given>` |
|
|
785
|
+
| `refused` | `<records file> records[<index>] carried-changed-since-base` |
|
|
786
|
+
| `refused` | `<records file> records[<index>] duplicate of <records file> records[<earlier index>]` |
|
|
787
|
+
| `unmeasured` | `forfeiture-unmeasured no-base-revision: no --base-revision was given, so debt cannot be checked for forfeiture; pass --base-revision with the branch's base, such as origin/main, or leave forfeiture to another run with "forfeiture": "elsewhere" in hone.config.json or --forfeiture elsewhere` |
|
|
788
|
+
| `unmeasured` | `forfeiture-unmeasured base-git-failed <revision>: git could not list the files changed since that revision and said <git message>; Hone needs that revision and the history back to where this branch left it, or leave forfeiture to another run with "forfeiture": "elsewhere" in hone.config.json or --forfeiture elsewhere` |
|
|
789
|
+
| `unmeasured` | `import-unmeasured no-base-revision: no --base-revision was given, so carried records cannot be checked against it; pass --base-revision with the branch's base, such as origin/main, or leave forfeiture to another run with "forfeiture": "elsewhere" in hone.config.json or --forfeiture elsewhere` |
|
|
790
|
+
| `unmeasured` | `import-unmeasured base-git-failed <revision>: git could not read hone-records at that revision and said <git message>; Hone needs hone-records as it was at that revision` |
|
|
791
|
+
| `unmeasured` | `engine-not-run <engine> missing: hone.<engine>.mjs is not written; run <project command> and commit every file it writes` |
|
|
792
|
+
| `unmeasured` | `engine-not-run <engine> not-included: the <engine> configuration leaves the projection out of effect for a file under check; spread the default export of hone.<engine>.mjs, or of a package's own hone.<engine>.mjs in that package, last in the configuration that file loads, after every other block (an import placed last without the spread applies nothing), or, where a tool such as sku generates the configuration, last in the configuration the tool takes` |
|
|
793
|
+
| `unmeasured` | `engine-not-run <engine> not-included: the <engine> configuration leaves the projection out of effect for a file under check; spread the default export of hone.<engine>.mjs, or of a package's own hone.<engine>.mjs in that package, last in the configuration that file loads, after every other block (an import placed last without the spread applies nothing), or, where a tool such as sku generates the configuration, last in the configuration the tool takes; the <engine> lines under projection-problems name the package slices involved` |
|
|
794
|
+
| `unmeasured` | `engine-not-run <engine> not-included: the <engine> configuration leaves the projection out of effect for a file under check; spread the default export of hone.<engine>.mjs, or of a package's own hone.<engine>.mjs in that package, last in the configuration that file loads, after every other block (an import placed last without the spread applies nothing), or, where a tool such as sku generates the configuration, last in the configuration the tool takes; <folders> hold their own hone.config.json, and nested Hone configurations are not supported yet (https://github.com/HailsTails/hone/issues/72): to govern such a folder from this repository, remove its hone.config.json and keep its records here, then run <project command>, which writes its slice` |
|
|
795
|
+
| `unmeasured` | `engine-not-run <engine> not-included: the <engine> configuration leaves the projection out of effect for a file under check; spread the default export of hone.<engine>.mjs, or of a package's own hone.<engine>.mjs in that package, last in the configuration that file loads, after every other block (an import placed last without the spread applies nothing), or, where a tool such as sku generates the configuration, last in the configuration the tool takes; the <engine> lines under projection-problems name the package slices involved; <folders> hold their own hone.config.json, and nested Hone configurations are not supported yet (https://github.com/HailsTails/hone/issues/72): to govern such a folder from this repository, remove its hone.config.json and keep its records here, then run <project command>, which writes its slice` |
|
|
796
|
+
| `unmeasured` | `engine-not-run <engine> measured-nothing: the <engine> engine measured no file in this run, so the records its checks answer were not judged, neither kept as answering nor removed as stale; the <engine> lines under projection-problems name what to fix` |
|
|
797
|
+
| `unmeasured` | `engine-not-run <engine> measured-nothing: the <engine> engine measured no file in this run, so the records its checks answer were not judged, neither kept as answering nor removed as stale; check that the <engine> configuration lints the files under check` |
|
|
798
|
+
| `projection-problems` | `<engine> out-of-date: hone.<engine>.mjs differs from what hone project writes now; run <project command> and commit every file it writes` |
|
|
799
|
+
| `projection-problems` | `<engine> out-of-date <slice>: that slice differs from what hone project writes now; run <project command> and commit every file it writes` |
|
|
800
|
+
| `projection-problems` | `<engine> missing <slice>: that slice is not written; run <project command> and commit every file it writes` |
|
|
801
|
+
| `projection-problems` | `<engine> unconfigured <slice>: <folder> has no <engine> configuration file on disk, so nothing loads that slice; run the tool that generates it (for sku, sku configure) before the check` |
|
|
802
|
+
| `assessment` | `forfeiture elsewhere: 1 debt record not checked for forfeiture in this run` |
|
|
803
|
+
| `assessment` | `forfeiture elsewhere: <count> debt records not checked for forfeiture in this run` |
|
|
804
|
+
| `assessment` | `carried standing elsewhere: 1 carried record not checked against the base in this run` |
|
|
805
|
+
| `assessment` | `carried standing elsewhere: <count> carried records not checked against the base in this run` |
|
|
806
|
+
| `settings-notes` | `<convention> is declared; no check reads it yet` |
|
|
807
|
+
| `record-notes` | `<records file> records[<index>] unknown-check: the catalogue has no check <given> of <symptom>` |
|
|
808
|
+
| `record-notes` | `<records file> records[<index>] unknown-case: the catalogue has no case <case>, owing <owes>` |
|
|
809
|
+
| `record-notes` | `<records file> records[<index>] owes-not-owed: <case name> does not owe <owes>` |
|
|
810
|
+
| `carried` | `<records file> records[<index>] <standing> lacks <lacks>` |
|
|
811
|
+
| `carried` | `<records file> records[<index>] <standing>` |
|
|
812
|
+
| `symptoms` | `<symptom>: <title>. May indicate: <indications>. The breach usually sits <breach>. Recipe: <recipe title>. <answers>. Read <symptom page>#<symptom>` |
|
|
813
|
+
| `symptoms` | `<symptom>: <title>. May indicate: <indications>. The breach usually sits <breach>. Recipes: <recipe titles>. <answers>. Read <symptom page>#<symptom>` |
|
|
814
|
+
| `symptoms` | `<symptom>: <title>. May indicate: <indications>. The breach usually sits <breach>. <answers>. Read <symptom page>#<symptom>` |
|
|
815
|
+
|
|
816
|
+
In `symptoms`, `<answers>` is one sentence for each correct use the symptom has, then one for known debt, which every symptom takes: the situation, capitalised, then `: `, the record kind that expresses it, and where it sits when the catalogue says.
|
|
817
|
+
|
|
818
|
+
A run that leaves forfeiture to another run, with `"forfeiture": "elsewhere"` in `hone.config.json` or `--forfeiture elsewhere`, leaves every judgement that needs a base to the run that has one. Debt is not checked for forfeiture, and a record carried over from version 1 is not checked against the base: when no `--base-revision` was given, the run prints one `carried standing elsewhere` line in `assessment` with how many carried records it left, and neither `forfeiture-unmeasured` nor `import-unmeasured` is printed. With a base revision, a carried record is judged in the run whatever the setting says, and a base revision that was given and cannot be read prints `import-unmeasured base-git-failed` and fails under either setting, since `elsewhere` excuses only a base that was not given. If no run is ever given a base revision, carried records are never judged, the same trade forfeiture makes under `elsewhere`. A run that assesses forfeiture in this run, the default, prints `import-unmeasured` and fails when it holds a carried record and no base revision was given. A check is never made against the commit when no base is given.
|
|
819
|
+
|
|
820
|
+
## Version 2 record subjects and references
|
|
821
|
+
|
|
822
|
+
A record is named by its `<subject>` in `stale`, `forfeited` and `paid`, and by its `<reference>` beside a finding it answers or a debt it answers in place of. A debt or authorised location that names one check of its symptom leads its subject with that check's address. An authorised location whose check, case or owes the catalogue does not list prints a ` note: ` for each of them, wherever it is named, and each note is listed again under `record-notes`. The record is still read and never refused for it, and the note never changes the verdict. An authorised location whose check its symptom does not have answers nothing until its check is corrected; it does not widen to the whole symptom. A record is listed under `stale` when nothing credits it and any one of three things holds: every check it reaches that a run selected was measured, where the record reaches it, by an engine of that check; or its place, the file or module it names, is no longer in the repository; or the settings exclude its place, which leaves the place out of what any engine checks. The line says which holds: a measured record prints `nothing it holds is found` on debt and nothing on any other record, a record whose place is gone prints `its file is no longer in the repository`, and an excluded place prints `its file is excluded by the settings, so nothing there was checked`, which wins over the place being gone, as when a folder the settings exclude holds a file that no longer exists; a `hone prune-debt` line carries the same reason after `stale`. A record that reaches a selected check its engine did not measure at a place that is in the repository and not excluded is not stale, and `hone prune-debt` leaves it; when an engine with selected checks measured no file at all, an `engine-not-run` line says so.
|
|
823
|
+
|
|
824
|
+
| Part | Text |
|
|
825
|
+
| --- | --- |
|
|
826
|
+
| `subject` | `<symptom> debt <file>` |
|
|
827
|
+
| `subject` | `<symptom> debt <file> carried` |
|
|
828
|
+
| `subject` | `<check> debt <file>` |
|
|
829
|
+
| `subject` | `<check> debt <file> carried` |
|
|
830
|
+
| `subject` | `<symptom> authorised-location <file>` |
|
|
831
|
+
| `subject` | `<symptom> authorised-location <file> carried` |
|
|
832
|
+
| `subject` | `<symptom> authorised-location <file> note: the catalogue has no case <case>, owing <owes>` |
|
|
833
|
+
| `subject` | `<symptom> authorised-location <file> note: <case name> does not owe <owes>` |
|
|
834
|
+
| `subject` | `<check> authorised-location <file>` |
|
|
835
|
+
| `subject` | `<check> authorised-location <file> carried` |
|
|
836
|
+
| `subject` | `<check> authorised-location <file> note: the catalogue has no case <case>, owing <owes>` |
|
|
837
|
+
| `subject` | `<check> authorised-location <file> note: <case name> does not owe <owes>` |
|
|
838
|
+
| `subject` | `<symptom>#<check name> authorised-location <file> note: the catalogue has no check <given> of <symptom>` |
|
|
839
|
+
| `subject` | `<symptom>#<check name> authorised-location <file> carried note: the catalogue has no check <given> of <symptom>` |
|
|
840
|
+
| `subject` | `<symptom>#<check name> authorised-location <file> note: the catalogue has no check <given> of <symptom> note: the catalogue has no case <case>, owing <owes>` |
|
|
841
|
+
| `subject` | `<symptom>#<check name> authorised-location <file> note: the catalogue has no check <given> of <symptom> note: <case name> does not owe <owes>` |
|
|
842
|
+
| `subject` | `<recipe> deviation <file>` |
|
|
843
|
+
| `subject` | `<outside party> boundary-record <module>` |
|
|
844
|
+
| `subject` | `<outside party> boundary-record <module> carried` |
|
|
845
|
+
| `subject` | `<dependency> dependency-record` |
|
|
846
|
+
| `reference` | `debt` |
|
|
847
|
+
| `reference` | `debt carried` |
|
|
848
|
+
| `reference` | `authorised-location` |
|
|
849
|
+
| `reference` | `authorised-location carried` |
|
|
850
|
+
| `reference` | `authorised-location note: the catalogue has no check <given> of <symptom>` |
|
|
851
|
+
| `reference` | `authorised-location carried note: the catalogue has no check <given> of <symptom>` |
|
|
852
|
+
| `reference` | `authorised-location note: the catalogue has no case <case>, owing <owes>` |
|
|
853
|
+
| `reference` | `authorised-location note: <case name> does not owe <owes>` |
|
|
854
|
+
| `reference` | `authorised-location note: the catalogue has no check <given> of <symptom> note: the catalogue has no case <case>, owing <owes>` |
|
|
855
|
+
| `reference` | `authorised-location note: the catalogue has no check <given> of <symptom> note: <case name> does not owe <owes>` |
|
|
856
|
+
| `reference` | `deviation <recipe>` |
|
|
857
|
+
| `reference` | `boundary-record <outside party>` |
|
|
858
|
+
| `reference` | `boundary-record <outside party> carried` |
|
|
859
|
+
| `reference` | `dependency-record <dependency>` |
|
|
860
|
+
|
|
861
|
+
A subject is its head, then ` carried` when the record is carried, then one ` note: ` for each catalogue note, the unknown check's first. A debt's or authorised location's head is `<symptom>`, `<check>` or `<symptom>#<check name>` by its reach, then its kind and `<file>`. A reference is the record's kind and, for a deviation, boundary record or dependency record, its recipe, outside party or dependency, followed by the same ` carried` and ` note: ` runs. Only a stated authorised location has a case or owes note, so a carried one prints at most the unknown check's note. The tables list every form this composition gives.
|
|
862
|
+
|
|
863
|
+
## Version 2 commands
|
|
864
|
+
|
|
865
|
+
The help below is what `hone --help` and `hone <command> --help` print for a repository that holds `hone.config.json`, for a folder that holds neither settings file, and when `--repo` is not given; a repository that holds `disciplines.json` prints the 1.x help shown above. `hone split-records --help` has no version 2 help, so it prints the 1.x help shown above under `hone split-records` for every repository.
|
|
866
|
+
|
|
867
|
+
The commands, their options and their exit codes are those of 1.x, with `split-records` removed; `upgrade` is the command listed above, with the help shown here. Help says "debt" where 1.x said "file carve-out", and "forfeiture" where 1.x said "decay". The synopsis, then the help of the tool and of each command, exactly as printed:
|
|
868
|
+
```text
|
|
869
|
+
hone check --repo <dir> [--base-revision <revision>] [--report-output <full|actionable|counts|verdict-only>] [--forfeiture <this-run|elsewhere>]
|
|
870
|
+
hone project --repo <dir>
|
|
871
|
+
hone record-debt --repo <dir> --base-revision <revision> [--leave <path>]...
|
|
872
|
+
hone prune-debt --repo <dir> [--base-revision <revision>] [--forfeiture <this-run|elsewhere>]
|
|
873
|
+
hone authorise --repo <dir> --answers <address> --file <path> --case <case> --owes <principle> --why <question>... --because <answer>... --evidence <evidence>... --root-cause <text> --root-evidence <text> --readback <text> --owner <owner>
|
|
874
|
+
hone upgrade --repo <dir>
|
|
875
|
+
hone --help
|
|
876
|
+
hone --version
|
|
877
|
+
```
|
|
878
|
+
|
|
879
|
+
```text
|
|
880
|
+
usage: hone <command> [options]
|
|
881
|
+
|
|
882
|
+
Checks a repository against the checks hone.config.json lists, answers its findings by the records in hone-records and prints one verdict.
|
|
883
|
+
|
|
884
|
+
commands:
|
|
885
|
+
check check the repository against the checks hone.config.json lists and print the report, ending in its verdict
|
|
886
|
+
project write the native configuration, hone.<engine>.mjs, and any file that types it beside it, for each engine that runs a listed check through one, printing each file as written or unchanged
|
|
887
|
+
record-debt add debt to hone-records for each symptom and file the check finds, printing each and what was done
|
|
888
|
+
prune-debt remove from hone-records the debt a run shows is paid, stale or forfeited, printing each debt removed
|
|
889
|
+
authorise write one authorised location to hone-records from the arguments given, with the why chain given, printing what was done
|
|
890
|
+
upgrade move a version 1 repository to version 2: write hone.config.json, the hone-records folder and the projection, check that version 2 reports what version 1 reported, then remove the version 1 files
|
|
891
|
+
|
|
892
|
+
options:
|
|
893
|
+
--help, -h print this help; after a command, print that command's help
|
|
894
|
+
--version print the installed version of @hailstails/hone
|
|
895
|
+
|
|
896
|
+
run hone <command> --help for a command's options and exit codes
|
|
897
|
+
```
|
|
898
|
+
|
|
899
|
+
```text
|
|
900
|
+
usage: hone check --repo <dir> [--base-revision <revision>] [--report-output <full|actionable|counts|verdict-only>] [--forfeiture <this-run|elsewhere>]
|
|
901
|
+
|
|
902
|
+
check the repository against the checks hone.config.json lists and print the report, ending in its verdict
|
|
903
|
+
|
|
904
|
+
options:
|
|
905
|
+
--repo <dir>
|
|
906
|
+
the folder that holds hone.config.json, usually the repository root
|
|
907
|
+
--base-revision <revision>
|
|
908
|
+
the revision the change is measured from; without it no debt can be forfeited and no carried record is checked against it
|
|
909
|
+
--report-output <full|actionable|counts|verdict-only>
|
|
910
|
+
how much of the report to print, over reportOutput in hone.config.json; full when neither is set
|
|
911
|
+
--forfeiture <this-run|elsewhere>
|
|
912
|
+
check debt for forfeiture in this run or leave it to another, over forfeiture in hone.config.json; this-run when neither is set
|
|
913
|
+
--help, -h
|
|
914
|
+
print this help
|
|
915
|
+
|
|
916
|
+
exit codes:
|
|
917
|
+
0 the verdict is pass
|
|
918
|
+
1 the verdict is fail
|
|
919
|
+
2 a load failure: an input could not be loaded, an engine failed, or Hone failed unexpectedly
|
|
920
|
+
```
|
|
921
|
+
|
|
922
|
+
```text
|
|
923
|
+
usage: hone project --repo <dir>
|
|
924
|
+
|
|
925
|
+
write the native configuration, hone.<engine>.mjs, and any file that types it beside it, for each engine that runs a listed check through one, printing each file as written or unchanged
|
|
926
|
+
|
|
927
|
+
options:
|
|
928
|
+
--repo <dir>
|
|
929
|
+
the folder that holds hone.config.json, usually the repository root
|
|
930
|
+
--help, -h
|
|
931
|
+
print this help
|
|
932
|
+
|
|
933
|
+
exit codes:
|
|
934
|
+
0 every projection was written or already current
|
|
935
|
+
2 any failure
|
|
936
|
+
```
|
|
937
|
+
|
|
938
|
+
```text
|
|
939
|
+
usage: hone record-debt --repo <dir> --base-revision <revision> [--leave <path>]...
|
|
940
|
+
|
|
941
|
+
add debt to hone-records for each symptom and file the check finds, printing each and what was done
|
|
942
|
+
|
|
943
|
+
options:
|
|
944
|
+
--repo <dir>
|
|
945
|
+
the folder that holds hone.config.json, usually the repository root
|
|
946
|
+
--base-revision <revision>
|
|
947
|
+
the branch's base, such as origin/main; a file it does not hold gets no debt
|
|
948
|
+
--leave <path>
|
|
949
|
+
a file or folder, relative to --repo, that gets no debt because a person records it as an authorised location; give it once for each path
|
|
950
|
+
--help, -h
|
|
951
|
+
print this help
|
|
952
|
+
|
|
953
|
+
exit codes:
|
|
954
|
+
0 every debt needed was written, or none was needed
|
|
955
|
+
2 a load failure: an input could not be loaded, an engine failed, the records could not be written, or Hone failed unexpectedly
|
|
956
|
+
```
|
|
957
|
+
|
|
958
|
+
```text
|
|
959
|
+
usage: hone prune-debt --repo <dir> [--base-revision <revision>] [--forfeiture <this-run|elsewhere>]
|
|
960
|
+
|
|
961
|
+
remove from hone-records the debt a run shows is paid, stale or forfeited, printing each debt removed
|
|
962
|
+
|
|
963
|
+
options:
|
|
964
|
+
--repo <dir>
|
|
965
|
+
the folder that holds hone.config.json, usually the repository root
|
|
966
|
+
--base-revision <revision>
|
|
967
|
+
the revision the change is measured from; without it no debt can be forfeited and no carried record is checked against it
|
|
968
|
+
--forfeiture <this-run|elsewhere>
|
|
969
|
+
check debt for forfeiture in this run or leave it to another, over forfeiture in hone.config.json; this-run when neither is set
|
|
970
|
+
--help, -h
|
|
971
|
+
print this help
|
|
972
|
+
|
|
973
|
+
exit codes:
|
|
974
|
+
0 every debt the run showed paid, stale or forfeited was removed, or none was shown
|
|
975
|
+
2 a load failure: an input could not be loaded, an engine failed, the records could not be written, or Hone failed unexpectedly
|
|
976
|
+
```
|
|
977
|
+
|
|
978
|
+
```text
|
|
979
|
+
usage: hone authorise --repo <dir> --answers <address> --file <path> --case <case> --owes <principle> --why <question>... --because <answer>... --evidence <evidence>... --root-cause <text> --root-evidence <text> --readback <text> --owner <owner>
|
|
980
|
+
|
|
981
|
+
write one authorised location to hone-records from the arguments given, with the why chain given, printing what was done
|
|
982
|
+
|
|
983
|
+
options:
|
|
984
|
+
--repo <dir>
|
|
985
|
+
the folder that holds hone.config.json, usually the repository root
|
|
986
|
+
--answers <address>
|
|
987
|
+
the symptom, or the symptom#check, the location answers, by the catalogue's names
|
|
988
|
+
--file <path>
|
|
989
|
+
the file the location is for, relative to --repo
|
|
990
|
+
--case <case>
|
|
991
|
+
the case the file is, as the cases page names it
|
|
992
|
+
--owes <principle>
|
|
993
|
+
the principle the case owes, as the cases page names it
|
|
994
|
+
--why <question>
|
|
995
|
+
one why of the chain, a question; give it, --because and --evidence once for each why, in order
|
|
996
|
+
--because <answer>
|
|
997
|
+
the answer to the why in the same place
|
|
998
|
+
--evidence <evidence>
|
|
999
|
+
what shows the answer, for the why in the same place
|
|
1000
|
+
--root-cause <text>
|
|
1001
|
+
the cause the fifth why names
|
|
1002
|
+
--root-evidence <text>
|
|
1003
|
+
the evidence that the cause still holds: what was run or read today, and what it showed
|
|
1004
|
+
--readback <text>
|
|
1005
|
+
the chain read back from the cause to the file
|
|
1006
|
+
--owner <owner>
|
|
1007
|
+
who decides whether this stays
|
|
1008
|
+
--help, -h
|
|
1009
|
+
print this help
|
|
1010
|
+
|
|
1011
|
+
exit codes:
|
|
1012
|
+
0 the location was written, was already held, or was refused with each reason printed
|
|
1013
|
+
2 a load failure: an input could not be loaded, an engine failed, the records could not be written, or Hone failed unexpectedly
|
|
1014
|
+
```
|
|
1015
|
+
|
|
1016
|
+
```text
|
|
1017
|
+
usage: hone upgrade --repo <dir>
|
|
1018
|
+
|
|
1019
|
+
move a version 1 repository to version 2: write hone.config.json, the hone-records folder and the projection, check that version 2 reports what version 1 reported, then remove the version 1 files
|
|
1020
|
+
|
|
1021
|
+
options:
|
|
1022
|
+
--repo <dir>
|
|
1023
|
+
the folder that holds disciplines.json, usually the repository root
|
|
1024
|
+
--help, -h
|
|
1025
|
+
print this help
|
|
1026
|
+
|
|
1027
|
+
exit codes:
|
|
1028
|
+
0 the repository was upgraded, or is already on version 2
|
|
1029
|
+
1 the upgrade was refused; it changed nothing, or named each file it could not put back
|
|
1030
|
+
2 a load failure: an input could not be loaded, or Hone failed unexpectedly
|
|
1031
|
+
3 version 2 is in place, but some version 1 files could not be removed; delete the files printed, then commit
|
|
1032
|
+
```
|
|
1033
|
+
|
|
1034
|
+
On a repository that is already on version 2, `hone upgrade` prints `already on version 2; nothing to upgrade` and exits `0`. What it prints on a version 1 repository is listed under `hone upgrade` in the 1.x part of this page.
|
|
1035
|
+
|
|
1036
|
+
## Version 2 record commands
|
|
1037
|
+
|
|
1038
|
+
The commands that write and remove records in `hone-records` print one line for each record they write, leave or remove, and nothing when there is nothing to say. A line starts with an `<address>`, then a word that says what was done, then the `<file>` the record is about. The `<address>` is the symptom's name, or `<symptom>#<check>` when one check of it found the finding or the record names it. The `<records file>` is the file under `hone-records` that already holds the record, written as a path is.
|
|
1039
|
+
|
|
1040
|
+
`hone record-debt` takes the findings a run left unanswered and the native exceptions it left under `unrecorded`. It writes one debt record under `hone-records/debt/<symptom>.json` for each symptom, check and file, and prints a line for each finding and each such exception, so none is passed over without one. An inline disable or a TypeScript directive that no record holds is answered by debt on the check it escapes and its file, the same record a finding there would get; once the comment is removed and the code fixed, the debt is `stale` and `hone prune-debt` removes it. Debt holds something that is owed, so an exception that hides nothing on a file is never the source of a record. A `config-override` is such an exception: a file under it that breaks the check gets its debt from the finding, as any finding does, because Hone's own run does not read the override. An exception no record can hold, a `config-override`, an `ignore`, an `inline-rule-config`, a `suppression-entry` or a `command-line-option`, gets an `unrecordable` line that says what to do instead, so the check can still fail after `record-debt` only for a reason the command has printed. For a `suppression-entry` the line says to remove it: Hone's run finds the finding whether or not the entry hides it, so the same run has already recorded that finding as debt. For an `ignore` the line gives two routes: remove the ignore, since Hone's run checks the file and has already recorded what it finds there as debt, or, for a generated or vendored file, list it in `exclude` in `hone.config.json` so Hone's setting and the team's ignore agree. A file the settings exclude is never checked, so an `ignore` on it is not an unrecorded exception and prints no line; `record-debt` never writes an exclusion. A `command-line-option` gets the advice that matches why Hone could not judge it, the same advice the report gives on its `unrecorded` line. After the lines for debt it recorded, it prints one more line that names the command that puts the debt into effect. The `<address>` on that line is the check the exception names, or else its clause, and for a `command-line-option` the `<file>` is the `package.json` that holds the script. It writes nothing it could not stand behind: a file under `--leave`, a record already held, a finding the catalogue gives no symptom or check to record against, and a file this change created or changed when the run assesses forfeiture, get a line and no record. The last is decided by the same `forfeiture` setting and the same measured change as the check's answering, so a debt the command writes is a debt the check keeps; with `forfeiture` set to `elsewhere`, the check forfeits nothing, and the command writes debt on such a file like any other and prints no `touched` line. A finding on a file the run would forfeit is the change's own breach, so its line says to fix it there; the same file under an inline disable or a TypeScript directive says to fix what the comment hides, then remove the comment. The `<clause>` on an `unrecordable` line is the finding's clause address, since it has no symptom to name. It never writes an authorised location, a boundary record or anything that needs an owner's reason. Run twice, it writes nothing the second time.
|
|
1041
|
+
|
|
1042
|
+
| Output | Line |
|
|
1043
|
+
| --- | --- |
|
|
1044
|
+
| `record-debt` | `<address> recorded <file>` |
|
|
1045
|
+
| `record-debt` | `<address> already-recorded <file>: <records file> already holds debt on this symptom and file; the check says why it does not answer` |
|
|
1046
|
+
| `record-debt` | `<address> left <file>: under --leave <path>; record it as an authorised location with its own reason, or fix it` |
|
|
1047
|
+
| `record-debt` | `<address> touched <file>: this change created or changed the file, so this run would forfeit debt on it; fix the finding there` |
|
|
1048
|
+
| `record-debt` | `<address> touched <file>: this change created or changed the file, so this run would forfeit debt on it; fix what the comment hides, then remove the comment` |
|
|
1049
|
+
| `record-debt` | `<clause> unrecordable <file>: the catalogue gives this finding no symptom or check to record debt against; fix the finding` |
|
|
1050
|
+
| `record-debt` | `<address> unrecordable <file>: an ESLint ignore leaves the file out of the team's lint run, which no record can hold; Hone's run checked the file and recorded what it found there as debt, so what is left is the ignore: remove it, or, if the file is generated or vendored and not yours to hold to the checks, list it in exclude in hone.config.json so Hone's setting and the team's ignore agree` |
|
|
1051
|
+
| `record-debt` | `<address> unrecordable <file>: a comment that sets a rule's configuration changes what the rule checks, which no record can hold; remove the comment` |
|
|
1052
|
+
| `record-debt` | `<address> unrecordable <file>: an entry in the suppressions file hides a finding from the team's lint run, which no record can hold; Hone's run still finds it and records it as debt, so remove the entry from the suppressions file` |
|
|
1053
|
+
| `record-debt` | `<address> unrecordable <file>: a lint-script option weakens the script's whole run, so no record can cover it; remove it from the script` |
|
|
1054
|
+
| `record-debt` | `<address> unrecordable <file>: <command> is not the first command of its script, so Hone cannot tell what the option does to the files under check; give <command> a script of its own, such as <invocation>` |
|
|
1055
|
+
| `record-debt` | `<address> unrecordable <file>: <wrapper> comes before <command> and is neither a package runner nor a NAME=value setting, so Hone cannot tell what the option does to the files under check; put only package runners and NAME=value settings before <command>` |
|
|
1056
|
+
| `record-debt` | `<address> unrecordable <file>: a quote in the script has no partner, so Hone cannot read what the script passes to <command> or tell what that does to the files under check; pair every quote in the script` |
|
|
1057
|
+
| `record-debt` | `<address> unrecordable <file>: an override in the ESLint configuration turns the check down for this file, which no record can hold; where debt holds the check the projection already turns it off, so remove the override or narrow it to the files that need it` |
|
|
1058
|
+
| `record-debt` | `<address> unrecordable <file>: no record of this engine holds this comment; fix the code, or remove the comment` |
|
|
1059
|
+
| `record-debt` | `run <project command> to put the recorded debt into effect` |
|
|
1060
|
+
|
|
1061
|
+
`hone prune-debt` takes the debt a run lists under `paid`, `stale` and `forfeited`, which are the records whose lines say to run it, and removes exactly those from `hone-records`, printing one line for each. A file left with no records is deleted. It leaves every other record, so each is still listed by the next run. The word after `removed` says which section listed the debt.
|
|
1062
|
+
|
|
1063
|
+
| Output | Line |
|
|
1064
|
+
| --- | --- |
|
|
1065
|
+
| `prune-debt` | `<address> removed <file>: paid` |
|
|
1066
|
+
| `prune-debt` | `<address> removed <file>: stale` |
|
|
1067
|
+
| `prune-debt` | `<address> removed <file>: stale, its file is no longer in the repository` |
|
|
1068
|
+
| `prune-debt` | `<address> removed <file>: stale, its file is excluded by the settings` |
|
|
1069
|
+
| `prune-debt` | `<address> removed <file>: forfeited` |
|
|
1070
|
+
|
|
1071
|
+
`hone authorise` writes one authorised location under `hone-records/authorised-locations/<symptom>.json` from the arguments it is given, with the why chain the person supplied. It never writes a why of its own. It refuses a chain the why-chain form refuses, and a symptom the catalogue does not name, and writes nothing then. It never refuses a case or an `owes` the catalogue does not list: the record is written and the next run prints a note for it. A `refused` line is printed for each reason, and a `form-refused` line names the `<path>` in the record and the `<message>` the form gives; the `<given>` is what was typed, quoted.
|
|
1072
|
+
|
|
1073
|
+
| Output | Line |
|
|
1074
|
+
| --- | --- |
|
|
1075
|
+
| `authorise` | `<address> authorised <file>` |
|
|
1076
|
+
| `authorise` | `<address> already-authorised <file>: <records file> already holds this record` |
|
|
1077
|
+
| `authorise` | `<address> refused <file>: unknown-symptom "<given>"` |
|
|
1078
|
+
| `authorise` | `<address> refused <file>: not-a-records-name "<given>"` |
|
|
1079
|
+
| `authorise` | `<address> refused <file>: form-refused <path>: <message>` |
|
|
1080
|
+
|
|
1081
|
+
## Version 2 load failures
|
|
1082
|
+
|
|
1083
|
+
A version 2 run that cannot decide prints one line and exits `2`, as in 1.x. The line starts with `load failure: ` and its kind, and the values follow in the order shown. A `<check>` is the address as `hone.config.json` lists it and may hold a space, so a tool reads a load failure by its kind, and by the values only up to the first one that may hold a space. The text after a `:` that ends the values is not stable. A minor release may add a kind; a tool passes over a kind it does not know.
|
|
1084
|
+
|
|
1085
|
+
Version 2 renames the 1.x kinds whose names spoke of clauses, disciplines, mechanisms, runners and pieces:
|
|
1086
|
+
- `selection-absent` is `config-absent`, and a `--repo` folder that holds neither `disciplines.json` nor `hone.config.json` prints `config-absent` from every command: only a folder holding `disciplines.json` runs on version 1;
|
|
1087
|
+
- `unknown-discipline` and `unknown-clause` are `unknown-check`;
|
|
1088
|
+
- `duplicate-clause` is `duplicate-check`;
|
|
1089
|
+
- `judgement-clause-selected` and `judgement-clause-listed` are `review-only-listed`;
|
|
1090
|
+
- `mechanism-not-allowed` is `engine-not-allowed`;
|
|
1091
|
+
- `runner-missing`, `runner-invalid` and `runner-failed` are `engine-missing`, `engine-invalid` and `engine-failed`;
|
|
1092
|
+
- `piece-missing` is `check-missing`.
|
|
1093
|
+
|
|
1094
|
+
It never prints `why-chains-required`, `records-in-both-layouts` or `records-unsplittable`. An `<engine>` is the engine's name, or the mechanism's id when the catalogue names no engine for it.
|
|
1095
|
+
|
|
1096
|
+
`records-refused` prints every records document refused, in the records' order, each as its records file, its refusal kind and its issues, joined by `; `. The line grows with the number of refused documents, so that one run shows everything to fix. A refused record, as opposed to a refused document, is not a load failure: it is listed under `refused`, and an authorised location is never refused for what it claims.
|
|
1097
|
+
|
|
1098
|
+
`catalogue-not-read` is printed when the tool's own symptom catalogue is absent or cannot be read, since every record resolves against it. A team rule set with no catalogue is not a load failure. `upgrade-needed` is printed when a version 2 run finds version 1 files. It names the `hone upgrade` command that rewrites them, with the repository's own invocation when the install can be located, and plain `hone upgrade` otherwise.
|
|
1099
|
+
|
|
1100
|
+
`settings-in-both-versions` is printed when the folder holds both `disciplines.json` and `hone.config.json`, since no run can tell which one the repository means. `not-ready-yet` is printed when a version 2 repository asks for something this release does not yet run on version 2 files: a command, named by the command, or other version 2 repositories inside this one, named `eslint-config-roots`, for which it names the first three folders and a count of the rest. A release that runs them stops printing it.
|
|
1101
|
+
|
|
1102
|
+
| Kind | Line |
|
|
1103
|
+
| --- | --- |
|
|
1104
|
+
| `arguments-invalid` | `load failure: arguments-invalid <detail>` |
|
|
1105
|
+
| `install-root-unresolvable` | `load failure: install-root-unresolvable <url> <detail>` |
|
|
1106
|
+
| `file-unreadable` | `load failure: file-unreadable <path> <detail>` |
|
|
1107
|
+
| `file-malformed` | `load failure: file-malformed <path> <detail>` |
|
|
1108
|
+
| `file-unwritable` | `load failure: file-unwritable <path> <detail>` |
|
|
1109
|
+
| `unsupported-version` | `load failure: unsupported-version <path> <version found>` |
|
|
1110
|
+
| `reserved-rule-set-name` | `load failure: reserved-rule-set-name <rule set>` |
|
|
1111
|
+
| `rule-set-name-collision` | `load failure: rule-set-name-collision <rule set> <other rule set>` |
|
|
1112
|
+
| `unknown-rule-set` | `load failure: unknown-rule-set <rule set>` |
|
|
1113
|
+
| `rule-set-invalid` | `load failure: rule-set-invalid <path> <detail>` |
|
|
1114
|
+
| `git-failed` | `load failure: git-failed <detail>` |
|
|
1115
|
+
| `config-root-untracked` | `load failure: config-root-untracked <config root>: an eslintConfigRoots entry is a folder git tracks files under outside every excluded path, spelled exactly as git spells it; fix or remove it in hone.config.json` |
|
|
1116
|
+
| `unexpected-error` | `load failure: unexpected-error <detail>` |
|
|
1117
|
+
| `config-absent` | `load failure: config-absent <dir> holds no hone.config.json; give the folder that holds it, usually the repository root` |
|
|
1118
|
+
| `settings-in-both-versions` | `load failure: settings-in-both-versions <dir>: it holds both disciplines.json and hone.config.json; keep the one this repository runs on and remove the other` |
|
|
1119
|
+
| `not-ready-yet` | `load failure: not-ready-yet <command>: this release runs <command> on version 1 files only, and this repository holds hone.config.json` |
|
|
1120
|
+
| `not-ready-yet` | `load failure: not-ready-yet eslint-config-roots: this release does not run a repository that holds other version 2 repositories yet; folders holding hone.config.json: <folders>; move them out of this repository, and run each on its own with --repo` |
|
|
1121
|
+
| `unknown-check` | `load failure: unknown-check <check>` |
|
|
1122
|
+
| `review-only-listed` | `load failure: review-only-listed <check>: a check enforced by review has no engine and is left out of checks; remove it` |
|
|
1123
|
+
| `duplicate-check` | `load failure: duplicate-check <settings key> <check> <check with its rule set>` |
|
|
1124
|
+
| `engine-not-allowed` | `load failure: engine-not-allowed <check> <engine>: it runs on <engines>; list it with one of those` |
|
|
1125
|
+
| `engine-not-allowed` | `load failure: engine-not-allowed <check> <engine>: the rule set does not run that check on that engine, though its catalogue says it does; list the check with an engine its rule set runs it on, or correct the rule set` |
|
|
1126
|
+
| `engine-missing` | `load failure: engine-missing <engine>` |
|
|
1127
|
+
| `engine-invalid` | `load failure: engine-invalid <engine> <detail>` |
|
|
1128
|
+
| `engine-failed` | `load failure: engine-failed <engine> piece-invalid <piece folder> <detail>` |
|
|
1129
|
+
| `engine-failed` | `load failure: engine-failed <engine> file-unreadable <file> <detail>` |
|
|
1130
|
+
| `engine-failed` | `load failure: engine-failed <engine> file-unparseable <file> <detail>` |
|
|
1131
|
+
| `engine-failed` | `load failure: engine-failed <engine> tool-failed <detail>` |
|
|
1132
|
+
| `engine-failed` | `load failure: engine-failed <engine> plugin-conflict <detail>` |
|
|
1133
|
+
| `engine-failed` | `load failure: engine-failed <engine> team-config-unloadable <detail>` |
|
|
1134
|
+
| `engine-failed` | `load failure: engine-failed <engine> runner-invalid-output <detail>` |
|
|
1135
|
+
| `engine-failed` | `load failure: engine-failed <engine> toolchain-unavailable <package> found <version found>, supported <range>: add a supported version to the devDependencies of the repository root` |
|
|
1136
|
+
| `engine-failed` | `load failure: engine-failed <engine> toolchain-unavailable <package> found not installed, supported <range>: <package> is a required peer of @hailstails/hone, so this install is incomplete; add a supported version to the devDependencies of the repository root and reinstall` |
|
|
1137
|
+
| `engine-failed` | `load failure: engine-failed <engine> toolchain-unavailable <package> found <version found>, supported <range>; <other package> found <version found>, supported <range>: add a supported version of each to the devDependencies of the repository root` |
|
|
1138
|
+
| `engine-failed` | `load failure: engine-failed <engine> toolchain-shadowed <package> resolved from <location> inside the core install <install folder>: delete <install folder>/node_modules, then reinstall the package with the repository's package manager, so the repository's own copy is used` |
|
|
1139
|
+
| `check-missing` | `load failure: check-missing <check> <engine>` |
|
|
1140
|
+
| `checks-run-together` | `load failure: checks-run-together <check> <other checks>: these checks are one rule today, so they run together; list each of them as <check> is listed` |
|
|
1141
|
+
| `check-settings-refused` | `load failure: check-settings-refused <check> unlisted: checkSettings gives settings only to a check listed to run; list it under checks or remove its settings` |
|
|
1142
|
+
| `check-settings-refused` | `load failure: check-settings-refused <check> <state>: checkSettings gives settings only to a check listed to run; run it or remove its settings` |
|
|
1143
|
+
| `check-settings-differ` | `load failure: check-settings-differ <check> <other check>: these checks are one rule today, so they take one set of settings; give them the same settings` |
|
|
1144
|
+
| `records-folder-unreadable` | `load failure: records-folder-unreadable <records folder> <detail>` |
|
|
1145
|
+
| `records-file-unreadable` | `load failure: records-file-unreadable <records file> <detail>` |
|
|
1146
|
+
| `records-file-not-json` | `load failure: records-file-not-json <records file> <detail>` |
|
|
1147
|
+
| `not-a-records-file` | `load failure: not-a-records-file <records file>: a records file is boundary-records.json or dependency-records.json, or a .json file named for its symptom, or for its recipe in deviations, inside the folder authorised-locations, debt or deviations of hone-records; move this file to where its kind belongs, or out of hone-records if it holds no records` |
|
|
1148
|
+
| `not-a-records-name` | `load failure: not-a-records-name <records folder> <name>: no repository path can hold that name; rename it` |
|
|
1149
|
+
| `records-refused` | `load failure: records-refused <records file> document-refused <document issues>` |
|
|
1150
|
+
| `records-refused` | `load failure: records-refused <records file> not-a-records-file` |
|
|
1151
|
+
| `records-refused` | `load failure: records-refused <records file> document-refused <document issues>; <other records file> not-a-records-file` |
|
|
1152
|
+
| `catalogue-not-read` | `load failure: catalogue-not-read <path>: the symptom catalogue is missing from this install; reinstall @hailstails/hone` |
|
|
1153
|
+
| `catalogue-not-read` | `load failure: catalogue-not-read <path> <detail>` |
|
|
1154
|
+
| `upgrade-needed` | `load failure: upgrade-needed <path>: this is a version 1 file; run <upgrade command>, which rewrites every version 1 file as version 2, and commit what it writes` |
|
|
1155
|
+
| `upgrade-needed` | `load failure: upgrade-needed <path>: this is a version 1 file; run hone upgrade, which rewrites every version 1 file as version 2, and commit what it writes` |
|