@shivaedev/quality 0.69.5 → 0.70.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/CHANGELOG.md +17 -0
- package/README.md +3 -3
- package/dist/adapters/biome/browserDiagnostic.d.ts.map +1 -1
- package/dist/adapters/biome/browserDiagnostic.js +1 -1
- package/dist/adapters/biome/browserDiagnostic.js.map +1 -1
- package/dist/adapters/biome/configs.d.ts.map +1 -1
- package/dist/adapters/biome/configs.js +1 -1
- package/dist/adapters/biome/configs.js.map +1 -1
- package/dist/adapters/biome/presetConfig.d.ts.map +1 -1
- package/dist/adapters/biome/presetConfig.js +2 -2
- package/dist/adapters/biome/presetConfig.js.map +1 -1
- package/dist/adapters/biome/relocateConfig.js +1 -1
- package/dist/adapters/biome/relocateConfig.js.map +1 -1
- package/dist/adapters/biome/withExceptionConfig.js +2 -2
- package/dist/adapters/biome/withExceptionConfig.js.map +1 -1
- package/dist/adapters/bodyReferences.d.ts +1 -1
- package/dist/adapters/bodyReferences.d.ts.map +1 -1
- package/dist/adapters/bodyReferences.js +1 -1
- package/dist/adapters/bodyReferences.js.map +1 -1
- package/dist/adapters/buildEntryPaths.d.ts +1 -1
- package/dist/adapters/buildEntryPaths.d.ts.map +1 -1
- package/dist/adapters/buildEntryPaths.js +2 -2
- package/dist/adapters/buildEntryPaths.js.map +1 -1
- package/dist/adapters/buildHelper.d.ts +1 -1
- package/dist/adapters/buildHelper.d.ts.map +1 -1
- package/dist/adapters/buildHelper.js +2 -2
- package/dist/adapters/buildHelper.js.map +1 -1
- package/dist/adapters/bundlerEntries.d.ts.map +1 -1
- package/dist/adapters/bundlerEntries.js +4 -4
- package/dist/adapters/bundlerEntries.js.map +1 -1
- package/dist/adapters/changeKeyFindings.d.ts.map +1 -1
- package/dist/adapters/changeKeyFindings.js +1 -1
- package/dist/adapters/changeKeyFindings.js.map +1 -1
- package/dist/adapters/databaseUrlFindings.d.ts.map +1 -1
- package/dist/adapters/databaseUrlFindings.js +2 -2
- package/dist/adapters/databaseUrlFindings.js.map +1 -1
- package/dist/adapters/engineEscapes.js +2 -2
- package/dist/adapters/engineEscapes.js.map +1 -1
- package/dist/adapters/import-compiler/service.js +3 -3
- package/dist/adapters/import-compiler/service.js.map +1 -1
- package/dist/adapters/imports/departures.d.ts.map +1 -1
- package/dist/adapters/imports/departures.js +2 -24
- package/dist/adapters/imports/departures.js.map +1 -1
- package/dist/adapters/imports/fakeTargets.d.ts.map +1 -1
- package/dist/adapters/imports/fakeTargets.js +2 -2
- package/dist/adapters/imports/fakeTargets.js.map +1 -1
- package/dist/adapters/imports/graph.d.ts.map +1 -1
- package/dist/adapters/imports/graph.js +2 -2
- package/dist/adapters/imports/graph.js.map +1 -1
- package/dist/adapters/imports/resolve.d.ts +1 -1
- package/dist/adapters/imports/resolve.d.ts.map +1 -1
- package/dist/adapters/imports/resolve.js.map +1 -1
- package/dist/adapters/knip/configuration.d.ts.map +1 -1
- package/dist/adapters/knip/configuration.js +2 -2
- package/dist/adapters/knip/configuration.js.map +1 -1
- package/dist/adapters/knip/report.d.ts.map +1 -1
- package/dist/adapters/knip/report.js +1 -1
- package/dist/adapters/knip/report.js.map +1 -1
- package/dist/adapters/knip/run.d.ts.map +1 -1
- package/dist/adapters/knip/run.js +5 -5
- package/dist/adapters/knip/run.js.map +1 -1
- package/dist/adapters/moduleResolver.js +1 -1
- package/dist/adapters/moduleResolver.js.map +1 -1
- package/dist/adapters/nativeTransactionFindings.d.ts.map +1 -1
- package/dist/adapters/nativeTransactionFindings.js +1 -1
- package/dist/adapters/nativeTransactionFindings.js.map +1 -1
- package/dist/adapters/positiveRefusalFindings.d.ts.map +1 -1
- package/dist/adapters/positiveRefusalFindings.js +1 -1
- package/dist/adapters/positiveRefusalFindings.js.map +1 -1
- package/dist/adapters/queueReadoutFindings.d.ts.map +1 -1
- package/dist/adapters/queueReadoutFindings.js +3 -3
- package/dist/adapters/queueReadoutFindings.js.map +1 -1
- package/dist/adapters/reachableBuildEntries.d.ts.map +1 -1
- package/dist/adapters/reachableBuildEntries.js +3 -3
- package/dist/adapters/reachableBuildEntries.js.map +1 -1
- package/dist/adapters/rule.d.ts +1 -1
- package/dist/adapters/rule.d.ts.map +1 -1
- package/dist/adapters/rule.js +1 -1
- package/dist/adapters/rule.js.map +1 -1
- package/dist/adapters/serviceAccess.d.ts +1 -1
- package/dist/adapters/serviceAccess.d.ts.map +1 -1
- package/dist/adapters/spawnedEntries.d.ts.map +1 -1
- package/dist/adapters/spawnedEntries.js +3 -3
- package/dist/adapters/spawnedEntries.js.map +1 -1
- package/dist/adapters/specReaderSources.d.ts.map +1 -1
- package/dist/adapters/specReaderSources.js +1 -1
- package/dist/adapters/specReaderSources.js.map +1 -1
- package/dist/adapters/testProjects.js +1 -1
- package/dist/adapters/testProjects.js.map +1 -1
- package/dist/adapters/units/runtime.d.ts.map +1 -1
- package/dist/adapters/units/runtime.js +2 -2
- package/dist/adapters/units/runtime.js.map +1 -1
- package/dist/adapters/units/runtimeOrigins.d.ts +1 -1
- package/dist/adapters/units/runtimeOrigins.d.ts.map +1 -1
- package/dist/adapters/units/runtimeOrigins.js +1 -1
- package/dist/adapters/units/runtimeOrigins.js.map +1 -1
- package/dist/adapters/units/runtimeUse.d.ts +1 -1
- package/dist/adapters/units/runtimeUse.d.ts.map +1 -1
- package/dist/adapters/units/runtimeUse.js +1 -1
- package/dist/adapters/units/runtimeUse.js.map +1 -1
- package/dist/baseline/compare.d.ts +1 -1
- package/dist/baseline/compare.d.ts.map +1 -1
- package/dist/baseline/compare.js.map +1 -1
- package/dist/baseline/legacy.d.ts +1 -1
- package/dist/baseline/legacy.d.ts.map +1 -1
- package/dist/baseline/legacy.js +1 -1
- package/dist/baseline/legacy.js.map +1 -1
- package/dist/baseline/looseStagedEntries.d.ts +1 -1
- package/dist/baseline/looseStagedEntries.d.ts.map +1 -1
- package/dist/baseline/looseStagedEntries.js +3 -3
- package/dist/baseline/looseStagedEntries.js.map +1 -1
- package/dist/baseline/rewrite.d.ts +1 -1
- package/dist/baseline/rewrite.d.ts.map +1 -1
- package/dist/baseline/rewrite.js +1 -1
- package/dist/baseline/rewrite.js.map +1 -1
- package/dist/baseline/update.d.ts +1 -1
- package/dist/baseline/update.d.ts.map +1 -1
- package/dist/baseline/update.js +1 -1
- package/dist/baseline/update.js.map +1 -1
- package/dist/biome/nativeEffectCall.d.ts +1 -1
- package/dist/biome/nativeEffectCall.d.ts.map +1 -1
- package/dist/biome/recognizeDiagnostics.d.ts +1 -1
- package/dist/biome/recognizeDiagnostics.d.ts.map +1 -1
- package/dist/biome/recognizeDiagnostics.js +2 -2
- package/dist/biome/recognizeDiagnostics.js.map +1 -1
- package/dist/biome/report.d.ts.map +1 -1
- package/dist/biome/report.js +1 -1
- package/dist/biome/report.js.map +1 -1
- package/dist/biome/withoutEntryPointImports.d.ts.map +1 -1
- package/dist/biome/withoutEntryPointImports.js.map +1 -1
- package/dist/cli/args.js +2 -2
- package/dist/cli/args.js.map +1 -1
- package/dist/cli/fix.d.ts.map +1 -1
- package/dist/cli/fix.js +1 -1
- package/dist/cli/fix.js.map +1 -1
- package/dist/cli/program.d.ts.map +1 -1
- package/dist/cli/program.js +1 -1
- package/dist/cli/program.js.map +1 -1
- package/dist/cli/shrink.d.ts.map +1 -1
- package/dist/cli/shrink.js +1 -1
- package/dist/cli/shrink.js.map +1 -1
- package/dist/config/load.d.ts +1 -1
- package/dist/config/load.d.ts.map +1 -1
- package/dist/config/load.js +3 -3
- package/dist/config/load.js.map +1 -1
- package/dist/config/resolve.d.ts.map +1 -1
- package/dist/config/resolve.js.map +1 -1
- package/dist/decoded.d.ts +1 -1
- package/dist/decoded.d.ts.map +1 -1
- package/dist/decoded.js +1 -1
- package/dist/decoded.js.map +1 -1
- package/dist/docs/documentedImports.js +1 -1
- package/dist/docs/documentedImports.js.map +1 -1
- package/dist/docs/headingAnchors.d.ts +1 -1
- package/dist/docs/headingAnchors.d.ts.map +1 -1
- package/dist/docs/importFindings.d.ts.map +1 -1
- package/dist/docs/importFindings.js +3 -3
- package/dist/docs/importFindings.js.map +1 -1
- package/dist/docs/linkFindings.d.ts +2 -2
- package/dist/docs/linkFindings.d.ts.map +1 -1
- package/dist/docs/linkFindings.js +2 -2
- package/dist/docs/linkFindings.js.map +1 -1
- package/dist/docs/markdownLinks.d.ts +1 -1
- package/dist/docs/markdownLinks.d.ts.map +1 -1
- package/dist/docs/markdownLinks.js +1 -1
- package/dist/docs/markdownLinks.js.map +1 -1
- package/dist/engine/evaluate.d.ts +1 -1
- package/dist/engine/evaluate.d.ts.map +1 -1
- package/dist/engine/evaluate.js +1 -1
- package/dist/engine/evaluate.js.map +1 -1
- package/dist/engine/runRules.d.ts +1 -1
- package/dist/engine/runRules.d.ts.map +1 -1
- package/dist/engine/runRules.js.map +1 -1
- package/dist/engine/session.d.ts +2 -2
- package/dist/engine/session.d.ts.map +1 -1
- package/dist/engine/session.js +2 -2
- package/dist/engine/session.js.map +1 -1
- package/dist/exceptions/migrateConfig.d.ts +1 -1
- package/dist/exceptions/migrateConfig.d.ts.map +1 -1
- package/dist/exceptions/registryEntries.d.ts +2 -2
- package/dist/exceptions/registryEntries.d.ts.map +1 -1
- package/dist/git/base.js +1 -1
- package/dist/git/base.js.map +1 -1
- package/dist/git/history.js +1 -1
- package/dist/git/history.js.map +1 -1
- package/dist/hooks/forwarding.js +2 -2
- package/dist/hooks/forwarding.js.map +1 -1
- package/dist/hooks/install.d.ts +1 -1
- package/dist/hooks/install.d.ts.map +1 -1
- package/dist/hooks/install.js +5 -5
- package/dist/hooks/install.js.map +1 -1
- package/dist/hooks/setup.d.ts +1 -1
- package/dist/hooks/setup.d.ts.map +1 -1
- package/dist/hooks/setup.js +1 -1
- package/dist/hooks/setup.js.map +1 -1
- package/dist/hooks/shim.d.ts +1 -1
- package/dist/hooks/shim.d.ts.map +1 -1
- package/dist/hooks/shim.js +1 -1
- package/dist/hooks/shim.js.map +1 -1
- package/dist/hooks/status.d.ts +1 -1
- package/dist/hooks/status.d.ts.map +1 -1
- package/dist/hooks/status.js +3 -3
- package/dist/hooks/status.js.map +1 -1
- package/dist/hooks/uninstall.js +3 -3
- package/dist/hooks/uninstall.js.map +1 -1
- package/dist/imports/adminEvidence.d.ts.map +1 -1
- package/dist/imports/adminEvidence.js +1 -1
- package/dist/imports/adminEvidence.js.map +1 -1
- package/dist/imports/adminFindings.d.ts +1 -1
- package/dist/imports/adminFindings.d.ts.map +1 -1
- package/dist/imports/adminFindings.js +1 -1
- package/dist/imports/adminFindings.js.map +1 -1
- package/dist/imports/browserGlobals.d.ts.map +1 -1
- package/dist/imports/browserGlobals.js +1 -1
- package/dist/imports/browserGlobals.js.map +1 -1
- package/dist/imports/classifyRuntime.d.ts +2 -2
- package/dist/imports/classifyRuntime.d.ts.map +1 -1
- package/dist/imports/classifyRuntime.js +2 -2
- package/dist/imports/classifyRuntime.js.map +1 -1
- package/dist/imports/departures.d.ts +1 -1
- package/dist/imports/departures.d.ts.map +1 -1
- package/dist/imports/departures.js +1 -1
- package/dist/imports/departures.js.map +1 -1
- package/dist/imports/fences/check.d.ts +1 -1
- package/dist/imports/fences/check.d.ts.map +1 -1
- package/dist/imports/fences/check.js +2 -2
- package/dist/imports/fences/check.js.map +1 -1
- package/dist/imports/fences/compilePolicy.d.ts +3 -3
- package/dist/imports/fences/compilePolicy.d.ts.map +1 -1
- package/dist/imports/fences/compilePolicy.js +1 -1
- package/dist/imports/fences/compilePolicy.js.map +1 -1
- package/dist/imports/fences/declarations.d.ts +1 -1
- package/dist/imports/fences/declarations.d.ts.map +1 -1
- package/dist/imports/fences/discover.d.ts +1 -1
- package/dist/imports/fences/discover.d.ts.map +1 -1
- package/dist/imports/fences/discover.js +1 -1
- package/dist/imports/fences/discover.js.map +1 -1
- package/dist/imports/fences/evaluate.d.ts +2 -2
- package/dist/imports/fences/evaluate.d.ts.map +1 -1
- package/dist/imports/fences/evaluate.js +3 -3
- package/dist/imports/fences/evaluate.js.map +1 -1
- package/dist/imports/fences/match.d.ts +1 -1
- package/dist/imports/fences/match.d.ts.map +1 -1
- package/dist/imports/fences/match.js.map +1 -1
- package/dist/imports/fences/reach.d.ts +1 -1
- package/dist/imports/fences/reach.d.ts.map +1 -1
- package/dist/imports/fences/selectors.d.ts +1 -1
- package/dist/imports/fences/selectors.d.ts.map +1 -1
- package/dist/imports/fences/vocabulary.d.ts +2 -2
- package/dist/imports/fences/vocabulary.d.ts.map +1 -1
- package/dist/imports/fences/vocabulary.js +1 -1
- package/dist/imports/fences/vocabulary.js.map +1 -1
- package/dist/imports/graph.d.ts +3 -3
- package/dist/imports/graph.d.ts.map +1 -1
- package/dist/imports/graph.js +1 -1
- package/dist/imports/graph.js.map +1 -1
- package/dist/imports/nodePlatformBarrels.d.ts.map +1 -1
- package/dist/imports/nodePlatformBarrels.js +1 -1
- package/dist/imports/nodePlatformBarrels.js.map +1 -1
- package/dist/imports/runtime.d.ts +1 -1
- package/dist/imports/runtime.d.ts.map +1 -1
- package/dist/imports/runtime.js +1 -1
- package/dist/imports/runtime.js.map +1 -1
- package/dist/imports/testComposition.d.ts +2 -2
- package/dist/imports/testComposition.d.ts.map +1 -1
- package/dist/imports/testComposition.js +1 -1
- package/dist/imports/testComposition.js.map +1 -1
- package/dist/imports/withoutGenerated.d.ts +2 -2
- package/dist/imports/withoutGenerated.d.ts.map +1 -1
- package/dist/imports/withoutGenerated.js.map +1 -1
- package/dist/imports/workspace.d.ts.map +1 -1
- package/dist/imports/workspace.js +2 -2
- package/dist/imports/workspace.js.map +1 -1
- package/dist/inventory/collect.d.ts +1 -1
- package/dist/inventory/collect.d.ts.map +1 -1
- package/dist/inventory/collect.js +6 -6
- package/dist/inventory/collect.js.map +1 -1
- package/dist/inventory/routeFiles.d.ts +1 -1
- package/dist/inventory/routeFiles.d.ts.map +1 -1
- package/dist/inventory/routeFiles.js +3 -3
- package/dist/inventory/routeFiles.js.map +1 -1
- package/dist/inventory/walk.d.ts +2 -2
- package/dist/inventory/walk.d.ts.map +1 -1
- package/dist/inventory/walk.js +3 -3
- package/dist/inventory/walk.js.map +1 -1
- package/dist/naming/isMigrationFile.js +1 -1
- package/dist/naming/isMigrationFile.js.map +1 -1
- package/dist/naming/nativeNames.js +1 -1
- package/dist/naming/nativeNames.js.map +1 -1
- package/dist/naming/testCode.d.ts.map +1 -1
- package/dist/naming/testCode.js +3 -3
- package/dist/naming/testCode.js.map +1 -1
- package/dist/report/render.js +2 -2
- package/dist/report/render.js.map +1 -1
- package/dist/report/staleSections.js +1 -1
- package/dist/report/staleSections.js.map +1 -1
- package/dist/rules/builtIn.js +12 -12
- package/dist/rules/builtIn.js.map +1 -1
- package/dist/rules/comments/definePattern.js +2 -2
- package/dist/rules/comments/definePattern.js.map +1 -1
- package/dist/rules/comments/kinds.d.ts +1 -1
- package/dist/rules/comments/kinds.d.ts.map +1 -1
- package/dist/rules/comments/kinds.js.map +1 -1
- package/dist/rules/comments/maxPerFile.js +2 -2
- package/dist/rules/comments/maxPerFile.js.map +1 -1
- package/dist/rules/comments/noBanner.js +1 -1
- package/dist/rules/comments/noBanner.js.map +1 -1
- package/dist/rules/comments/noEnvironmentPragma.js +1 -1
- package/dist/rules/comments/noEnvironmentPragma.js.map +1 -1
- package/dist/rules/comments/noJsdoc.js +2 -2
- package/dist/rules/comments/noJsdoc.js.map +1 -1
- package/dist/rules/comments/noLineReference.js +1 -1
- package/dist/rules/comments/noLineReference.js.map +1 -1
- package/dist/rules/comments/noPrReference.js +1 -1
- package/dist/rules/comments/noPrReference.js.map +1 -1
- package/dist/rules/comments/noTodo.js +1 -1
- package/dist/rules/comments/noTodo.js.map +1 -1
- package/dist/rules/effect/failureFindings.js +2 -2
- package/dist/rules/effect/failureFindings.js.map +1 -1
- package/dist/rules/effect/failureHonesty.js +2 -2
- package/dist/rules/effect/failureHonesty.js.map +1 -1
- package/dist/rules/effect/failureOperations.js +1 -1
- package/dist/rules/effect/failureOperations.js.map +1 -1
- package/dist/rules/effect/successRecovery.js +1 -1
- package/dist/rules/effect/successRecovery.js.map +1 -1
- package/dist/rules/files/otherNames.js +1 -1
- package/dist/rules/files/otherNames.js.map +1 -1
- package/dist/rules/files/stylesheetImporters.js +1 -1
- package/dist/rules/files/stylesheetImporters.js.map +1 -1
- package/dist/rules/imports/aliased.js +5 -5
- package/dist/rules/imports/aliased.js.map +1 -1
- package/dist/rules/imports/manifest.js +1 -1
- package/dist/rules/imports/manifest.js.map +1 -1
- package/dist/rules/manifestsDependencyPins.d.ts.map +1 -1
- package/dist/rules/manifestsDependencyPins.js +2 -3
- package/dist/rules/manifestsDependencyPins.js.map +1 -1
- package/dist/rules/noBarrel.js +2 -2
- package/dist/rules/noBarrel.js.map +1 -1
- package/dist/rules/react/jsxConditionals.js +1 -1
- package/dist/rules/react/jsxConditionals.js.map +1 -1
- package/dist/rules/secondNames.js +1 -1
- package/dist/rules/secondNames.js.map +1 -1
- package/dist/rules/stories/adapterOnlyFakes.js +1 -1
- package/dist/rules/stories/adapterOnlyFakes.js.map +1 -1
- package/dist/rules/stories/adapters/authTables.d.ts.map +1 -1
- package/dist/rules/stories/adapters/authTables.js +1 -1
- package/dist/rules/stories/adapters/authTables.js.map +1 -1
- package/dist/rules/stories/adapters/realTime.d.ts.map +1 -1
- package/dist/rules/stories/adapters/realTime.js +1 -1
- package/dist/rules/stories/adapters/realTime.js.map +1 -1
- package/dist/rules/stories/adapters/sqlTables.js +1 -1
- package/dist/rules/stories/adapters/sqlTables.js.map +1 -1
- package/dist/rules/stories/authSql.js +2 -2
- package/dist/rules/stories/authSql.js.map +1 -1
- package/dist/rules/stories/domainOutcomes.js +4 -4
- package/dist/rules/stories/domainOutcomes.js.map +1 -1
- package/dist/rules/stories/engine.js +4 -4
- package/dist/rules/stories/engine.js.map +1 -1
- package/dist/rules/stories/fakeImplementation.js +1 -1
- package/dist/rules/stories/fakeImplementation.js.map +1 -1
- package/dist/rules/stories/fakeReplacements.js +2 -2
- package/dist/rules/stories/fakeReplacements.js.map +1 -1
- package/dist/rules/stories/globalRetries.js +3 -3
- package/dist/rules/stories/globalRetries.js.map +1 -1
- package/dist/rules/stories/groupedOutcomes.js +3 -3
- package/dist/rules/stories/groupedOutcomes.js.map +1 -1
- package/dist/rules/stories/httpStatus.js +2 -2
- package/dist/rules/stories/httpStatus.js.map +1 -1
- package/dist/rules/stories/namedValues.js +2 -2
- package/dist/rules/stories/namedValues.js.map +1 -1
- package/dist/rules/stories/noExpect.js +2 -2
- package/dist/rules/stories/noExpect.js.map +1 -1
- package/dist/rules/stories/noLimitImports.js +2 -2
- package/dist/rules/stories/noLimitImports.js.map +1 -1
- package/dist/rules/stories/origins.d.ts +1 -1
- package/dist/rules/stories/origins.d.ts.map +1 -1
- package/dist/rules/stories/origins.js +4 -4
- package/dist/rules/stories/origins.js.map +1 -1
- package/dist/rules/stories/positiveRefusals.js +2 -2
- package/dist/rules/stories/positiveRefusals.js.map +1 -1
- package/dist/rules/stories/queueSql.js +1 -1
- package/dist/rules/stories/queueSql.js.map +1 -1
- package/dist/rules/stories/registersTests.js +1 -1
- package/dist/rules/stories/registersTests.js.map +1 -1
- package/dist/rules/stories/retryOption.js +1 -1
- package/dist/rules/stories/retryOption.js.map +1 -1
- package/dist/rules/stories/setup.js +1 -1
- package/dist/rules/stories/setup.js.map +1 -1
- package/dist/rules/stories/sources.js +2 -2
- package/dist/rules/stories/sources.js.map +1 -1
- package/dist/rules/stories/specHelpers.js +2 -2
- package/dist/rules/stories/specHelpers.js.map +1 -1
- package/dist/rules/stories/specs.js +3 -3
- package/dist/rules/stories/specs.js.map +1 -1
- package/dist/rules/stories/sqlText.js +1 -1
- package/dist/rules/stories/sqlText.js.map +1 -1
- package/dist/rules/stories/unitTests.js +3 -3
- package/dist/rules/stories/unitTests.js.map +1 -1
- package/dist/rules/stories/waitOnEvents.js +3 -3
- package/dist/rules/stories/waitOnEvents.js.map +1 -1
- package/dist/rules/suppressions/biome/ConsumerDeclaration.js +1 -1
- package/dist/rules/suppressions/biome/ConsumerDeclaration.js.map +1 -1
- package/dist/rules/suppressions/biome/weakenings.js +2 -2
- package/dist/rules/suppressions/biome/weakenings.js.map +1 -1
- package/dist/rules/suppressions/noDoubleCast.js +2 -2
- package/dist/rules/suppressions/noDoubleCast.js.map +1 -1
- package/dist/rules/suppressions/noInline.js +2 -2
- package/dist/rules/suppressions/noInline.js.map +1 -1
- package/dist/testing/adapters/hookRepository.d.ts +2 -2
- package/dist/testing/adapters/hookRepository.d.ts.map +1 -1
- package/dist/testing/adapters/hookRepository.js +5 -5
- package/dist/testing/adapters/hookRepository.js.map +1 -1
- package/dist/testing/adapters/packageExports.d.ts +1 -1
- package/dist/testing/adapters/packageExports.d.ts.map +1 -1
- package/dist/testing/adapters/qualityTree.d.ts +1 -1
- package/dist/testing/adapters/qualityTree.d.ts.map +1 -1
- package/dist/testing/adapters/qualityTree.js +1 -1
- package/dist/testing/adapters/qualityTree.js.map +1 -1
- package/dist/testing/adapters/storySpecFiles.d.ts +1 -1
- package/dist/testing/adapters/storySpecFiles.d.ts.map +1 -1
- package/dist/testing/adapters/writePackageExports.js +1 -1
- package/dist/testing/adapters/writePackageExports.js.map +1 -1
- package/package.json +7 -7
- package/src/adapters/biome/browserDiagnostic.ts +1 -1
- package/src/adapters/biome/configs.ts +1 -1
- package/src/adapters/biome/presetConfig.ts +2 -2
- package/src/adapters/biome/relocateConfig.ts +1 -1
- package/src/adapters/biome/withExceptionConfig.ts +2 -2
- package/src/adapters/bodyReferences.ts +1 -1
- package/src/adapters/buildEntryPaths.ts +2 -2
- package/src/adapters/buildHelper.ts +2 -2
- package/src/adapters/bundlerEntries.ts +4 -4
- package/src/adapters/changeKeyFindings.ts +1 -1
- package/src/adapters/databaseUrlFindings.ts +2 -2
- package/src/adapters/engineEscapes.ts +3 -3
- package/src/adapters/import-compiler/service.ts +3 -3
- package/src/adapters/imports/departures.ts +2 -29
- package/src/adapters/imports/fakeTargets.ts +2 -2
- package/src/adapters/imports/graph.ts +2 -2
- package/src/adapters/imports/resolve.ts +1 -1
- package/src/adapters/knip/configuration.ts +2 -2
- package/src/adapters/knip/report.ts +1 -1
- package/src/adapters/knip/run.ts +5 -5
- package/src/adapters/moduleResolver.ts +1 -1
- package/src/adapters/nativeTransactionFindings.ts +1 -1
- package/src/adapters/positiveRefusalFindings.ts +1 -1
- package/src/adapters/queueReadoutFindings.ts +3 -3
- package/src/adapters/reachableBuildEntries.ts +3 -3
- package/src/adapters/rule.ts +1 -1
- package/src/adapters/serviceAccess.ts +1 -1
- package/src/adapters/spawnedEntries.ts +3 -3
- package/src/adapters/specReaderSources.ts +1 -1
- package/src/adapters/testProjects.ts +1 -1
- package/src/adapters/units/runtime.ts +2 -2
- package/src/adapters/units/runtimeOrigins.ts +1 -1
- package/src/adapters/units/runtimeUse.ts +1 -1
- package/src/baseline/compare.ts +1 -1
- package/src/baseline/legacy.ts +2 -2
- package/src/baseline/looseStagedEntries.ts +3 -3
- package/src/baseline/rewrite.ts +1 -1
- package/src/baseline/update.ts +2 -2
- package/src/biome/nativeEffectCall.ts +1 -1
- package/src/biome/recognizeDiagnostics.ts +3 -3
- package/src/biome/report.ts +1 -1
- package/src/biome/withoutEntryPointImports.ts +1 -1
- package/src/cli/args.ts +2 -2
- package/src/cli/fix.ts +1 -1
- package/src/cli/program.ts +1 -1
- package/src/cli/shrink.ts +1 -1
- package/src/config/load.ts +3 -3
- package/src/config/resolve.ts +1 -1
- package/src/decoded.ts +1 -1
- package/src/docs/documentedImports.ts +1 -1
- package/src/docs/headingAnchors.ts +1 -1
- package/src/docs/importFindings.ts +3 -3
- package/src/docs/linkFindings.ts +3 -3
- package/src/docs/markdownLinks.ts +1 -1
- package/src/engine/evaluate.ts +1 -1
- package/src/engine/runRules.ts +1 -1
- package/src/engine/session.ts +3 -3
- package/src/exceptions/migrateConfig.ts +1 -1
- package/src/exceptions/registryEntries.ts +2 -2
- package/src/git/base.ts +1 -1
- package/src/git/history.ts +1 -1
- package/src/hooks/forwarding.ts +2 -2
- package/src/hooks/install.ts +5 -5
- package/src/hooks/setup.ts +1 -1
- package/src/hooks/shim.ts +1 -1
- package/src/hooks/status.ts +3 -3
- package/src/hooks/uninstall.ts +3 -3
- package/src/imports/adminEvidence.ts +1 -1
- package/src/imports/adminFindings.ts +2 -2
- package/src/imports/browserGlobals.ts +1 -1
- package/src/imports/classifyRuntime.ts +3 -3
- package/src/imports/departures.ts +2 -2
- package/src/imports/fences/check.ts +3 -3
- package/src/imports/fences/compilePolicy.ts +3 -3
- package/src/imports/fences/declarations.ts +1 -1
- package/src/imports/fences/discover.ts +2 -2
- package/src/imports/fences/evaluate.ts +4 -4
- package/src/imports/fences/match.ts +1 -1
- package/src/imports/fences/reach.ts +1 -1
- package/src/imports/fences/selectors.ts +1 -1
- package/src/imports/fences/vocabulary.ts +2 -2
- package/src/imports/graph.ts +3 -3
- package/src/imports/nodePlatformBarrels.ts +1 -1
- package/src/imports/runtime.ts +2 -2
- package/src/imports/testComposition.ts +2 -2
- package/src/imports/withoutGenerated.ts +1 -1
- package/src/imports/workspace.ts +2 -2
- package/src/inventory/collect.ts +6 -6
- package/src/inventory/routeFiles.ts +3 -3
- package/src/inventory/walk.ts +3 -3
- package/src/naming/isMigrationFile.ts +1 -1
- package/src/naming/nativeNames.ts +1 -1
- package/src/naming/testCode.ts +3 -3
- package/src/report/render.ts +2 -2
- package/src/report/staleSections.ts +1 -1
- package/src/rules/builtIn.ts +12 -12
- package/src/rules/comments/definePattern.ts +2 -2
- package/src/rules/comments/kinds.ts +1 -1
- package/src/rules/comments/maxPerFile.ts +2 -2
- package/src/rules/comments/noBanner.ts +1 -1
- package/src/rules/comments/noEnvironmentPragma.ts +1 -1
- package/src/rules/comments/noJsdoc.ts +2 -2
- package/src/rules/comments/noLineReference.ts +1 -1
- package/src/rules/comments/noPrReference.ts +1 -1
- package/src/rules/comments/noTodo.ts +1 -1
- package/src/rules/effect/failureFindings.ts +2 -2
- package/src/rules/effect/failureHonesty.ts +2 -2
- package/src/rules/effect/failureOperations.ts +1 -1
- package/src/rules/effect/successRecovery.ts +1 -1
- package/src/rules/files/otherNames.ts +1 -1
- package/src/rules/files/stylesheetImporters.ts +1 -1
- package/src/rules/imports/aliased.ts +5 -5
- package/src/rules/imports/manifest.ts +1 -1
- package/src/rules/manifestsDependencyPins.ts +2 -3
- package/src/rules/noBarrel.ts +2 -2
- package/src/rules/react/jsxConditionals.ts +1 -1
- package/src/rules/secondNames.ts +1 -1
- package/src/rules/stories/adapterOnlyFakes.ts +1 -1
- package/src/rules/stories/adapters/authTables.ts +1 -1
- package/src/rules/stories/adapters/realTime.ts +1 -1
- package/src/rules/stories/adapters/sqlTables.ts +1 -1
- package/src/rules/stories/authSql.ts +2 -2
- package/src/rules/stories/domainOutcomes.ts +4 -4
- package/src/rules/stories/engine.ts +4 -4
- package/src/rules/stories/fakeImplementation.ts +1 -1
- package/src/rules/stories/fakeReplacements.ts +2 -2
- package/src/rules/stories/globalRetries.ts +4 -4
- package/src/rules/stories/groupedOutcomes.ts +3 -3
- package/src/rules/stories/httpStatus.ts +2 -2
- package/src/rules/stories/namedValues.ts +2 -2
- package/src/rules/stories/noExpect.ts +2 -2
- package/src/rules/stories/noLimitImports.ts +2 -2
- package/src/rules/stories/origins.ts +4 -4
- package/src/rules/stories/positiveRefusals.ts +2 -2
- package/src/rules/stories/queueSql.ts +1 -1
- package/src/rules/stories/registersTests.ts +1 -1
- package/src/rules/stories/retryOption.ts +1 -1
- package/src/rules/stories/setup.ts +1 -1
- package/src/rules/stories/sources.ts +2 -2
- package/src/rules/stories/specHelpers.ts +2 -2
- package/src/rules/stories/specs.ts +3 -3
- package/src/rules/stories/sqlText.ts +1 -1
- package/src/rules/stories/unitTests.ts +3 -3
- package/src/rules/stories/waitOnEvents.ts +3 -3
- package/src/rules/suppressions/biome/ConsumerDeclaration.ts +1 -1
- package/src/rules/suppressions/biome/weakenings.ts +2 -2
- package/src/rules/suppressions/noDoubleCast.ts +2 -2
- package/src/rules/suppressions/noInline.ts +2 -2
- package/src/testing/adapters/hookRepository.ts +5 -9
- package/src/testing/adapters/packageExports.ts +1 -1
- package/src/testing/adapters/qualityTree.ts +1 -1
- package/src/testing/adapters/storySpecFiles.ts +1 -1
- package/src/testing/adapters/writePackageExports.ts +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { spawnSync } from "node:child_process";
|
|
2
2
|
import { createRequire } from "node:module";
|
|
3
3
|
import process from "node:process";
|
|
4
|
-
import { linkPackage, seedTree } from "
|
|
4
|
+
import { linkPackage, seedTree } from "#testing/adapters/tree.ts";
|
|
5
5
|
const BIN = createRequire(import.meta.url).resolve("@biomejs/biome/bin/biome");
|
|
6
6
|
export function formatTree(root) {
|
|
7
7
|
const result = spawnSync(process.execPath, [BIN, "format", "--write", ".", "--colors=off"], { cwd: root, encoding: "utf8" });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"qualityTree.js","sourceRoot":"","sources":["../../../src/testing/adapters/qualityTree.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAC/C,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,OAAO,MAAM,cAAc,CAAC;AACnC,OAAO,EAAE,WAAW,EAAiB,QAAQ,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"qualityTree.js","sourceRoot":"","sources":["../../../src/testing/adapters/qualityTree.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAC/C,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,OAAO,MAAM,cAAc,CAAC;AACnC,OAAO,EAAE,WAAW,EAAiB,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AAEjF,MAAM,GAAG,GAAG,aAAa,CAAC,OAAO,IAAI,CAAC,GAAG,CAAC,CAAC,OAAO,CAAC,0BAA0B,CAAC,CAAC;AAE/E,MAAM,UAAU,UAAU,CAAC,IAAY;IACtC,MAAM,MAAM,GAAG,SAAS,CAAC,OAAO,CAAC,QAAQ,EAAE,CAAC,GAAG,EAAE,QAAQ,EAAE,SAAS,EAAE,GAAG,EAAE,cAAc,CAAC,EAAE,EAAE,GAAG,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,EAAE,CAAC,CAAC;IAC7H,IAAI,MAAM,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QACzB,MAAM,IAAI,KAAK,CAAC,8BAA8B,MAAM,CAAC,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,CAAC,CAAC;IAChF,CAAC;IACD,OAAO,IAAI,CAAC;AACb,CAAC;AAED,MAAM,UAAU,WAAW,CAAC,GAAG,MAA0C;IACxE,MAAM,IAAI,GAAG,QAAQ,CACpB;QACC,EAAE,OAAO,EAAE,iBAAiB,EAAE,IAAI,EAAE,YAAY,EAAE;QAClD,EAAE,OAAO,EAAE,2DAA2D,EAAE,IAAI,EAAE,YAAY,EAAE;KAC5F,EACD,GAAG,MAAM,CACT,CAAC;IACF,WAAW,CAAC,IAAI,CAAC,CAAC;IAClB,OAAO,UAAU,CAAC,IAAI,CAAC,CAAC;AACzB,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { SeedFile } from "
|
|
1
|
+
import type { SeedFile } from "#testing/adapters/tree.ts";
|
|
2
2
|
export declare const kitFiles: readonly SeedFile[];
|
|
3
3
|
export declare function spec(content: string, path?: string): SeedFile;
|
|
4
4
|
export declare function factoryFiles(factory: string): readonly SeedFile[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"storySpecFiles.d.ts","sourceRoot":"","sources":["../../../src/testing/adapters/storySpecFiles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"storySpecFiles.d.ts","sourceRoot":"","sources":["../../../src/testing/adapters/storySpecFiles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AAE1D,eAAO,MAAM,QAAQ,EAAE,SAAS,QAAQ,EAUvC,CAAC;AAEF,wBAAgB,IAAI,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,SAAuB,GAAG,QAAQ,CAE3E;AAED,wBAAgB,YAAY,CAAC,OAAO,EAAE,MAAM,GAAG,SAAS,QAAQ,EAAE,CAYjE;AAED,eAAO,MAAM,iBAAiB,EAAE,SAAS,QAAQ,EAahD,CAAC;AAEF,wBAAgB,OAAO,CAAC,GAAG,KAAK,EAAE,SAAS,MAAM,EAAE,GAAG,MAAM,CAM3D"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { mkdirSync, writeFileSync } from "node:fs";
|
|
2
2
|
import { dirname, join } from "node:path";
|
|
3
|
-
import { packageExports } from "
|
|
3
|
+
import { packageExports } from "#testing/adapters/packageExports.ts";
|
|
4
4
|
export function writePackageExports(root, exports, path) {
|
|
5
5
|
const target = join(root, path);
|
|
6
6
|
mkdirSync(dirname(target), { recursive: true });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"writePackageExports.js","sourceRoot":"","sources":["../../../src/testing/adapters/writePackageExports.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AACnD,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAC1C,OAAO,EAAE,cAAc,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"writePackageExports.js","sourceRoot":"","sources":["../../../src/testing/adapters/writePackageExports.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AACnD,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAC1C,OAAO,EAAE,cAAc,EAAE,MAAM,qCAAqC,CAAC;AAErE,MAAM,UAAU,mBAAmB,CAAC,IAAY,EAAE,OAAgB,EAAE,IAAY;IAC/E,MAAM,MAAM,GAAG,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;IAChC,SAAS,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;IAChD,aAAa,CAAC,MAAM,EAAE,cAAc,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC,OAAO,CAAC,CAAC;AAC9D,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shivaedev/quality",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.70.1",
|
|
4
4
|
"description": "Repository quality gate with typed rules, a baseline of existing debt and a registry of reasoned exceptions",
|
|
5
5
|
"homepage": "https://github.com/ShivaeDev/platform/tree/main/packages/quality#readme",
|
|
6
6
|
"bugs": {
|
|
@@ -53,10 +53,10 @@
|
|
|
53
53
|
"dependencies": {
|
|
54
54
|
"@biomejs/biome": "2.6.4",
|
|
55
55
|
"@mdn/browser-compat-data": "8.1.7",
|
|
56
|
-
"@shivaedev/errors": "0.10.
|
|
57
|
-
"@shivaedev/heavy-lock": "0.11.
|
|
58
|
-
"@shivaedev/service": "0.8.
|
|
59
|
-
"@shivaedev/skills": "0.8.
|
|
56
|
+
"@shivaedev/errors": "0.10.1",
|
|
57
|
+
"@shivaedev/heavy-lock": "0.11.1",
|
|
58
|
+
"@shivaedev/service": "0.8.1",
|
|
59
|
+
"@shivaedev/skills": "0.8.1",
|
|
60
60
|
"@vitest/coverage-v8": "5.0.5",
|
|
61
61
|
"browserslist": "4.29.5",
|
|
62
62
|
"ignore": "7.0.14",
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
"@effect/platform-node": "4.1.1",
|
|
69
69
|
"@effect/platform-node-shared": "4.1.1",
|
|
70
70
|
"@effect/vitest": "4.1.1",
|
|
71
|
-
"@shivaedev/test-story": "0.45.
|
|
71
|
+
"@shivaedev/test-story": "0.45.2",
|
|
72
72
|
"@types/node": "24.19.2",
|
|
73
73
|
"@typescript/native": "npm:typescript@7.0.2",
|
|
74
74
|
"effect": "4.1.1",
|
|
@@ -77,7 +77,7 @@
|
|
|
77
77
|
"peerDependencies": {
|
|
78
78
|
"@effect/platform-node": "4.1.1",
|
|
79
79
|
"@effect/platform-node-shared": "4.1.1",
|
|
80
|
-
"@shivaedev/test-story": "0.45.
|
|
80
|
+
"@shivaedev/test-story": "0.45.2",
|
|
81
81
|
"effect": "4.1.1",
|
|
82
82
|
"vitest": "5.0.5"
|
|
83
83
|
},
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import bcd from "@mdn/browser-compat-data" with { type: "json" };
|
|
2
2
|
import type { BrowserName, CompatStatement, Identifier, SimpleSupportStatement } from "@mdn/browser-compat-data/types";
|
|
3
|
+
import { browserTargets } from "#adapters/biome/browserTargets.ts";
|
|
3
4
|
import type { Diagnostic } from "#biome/report.ts";
|
|
4
|
-
import { browserTargets } from "./browserTargets.ts";
|
|
5
5
|
|
|
6
6
|
const BROWSERS: Readonly<Record<string, BrowserName>> = {
|
|
7
7
|
"and_chr": "chrome_android",
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { posix } from "node:path";
|
|
2
|
+
import { resolvePackage } from "#adapters/biome/resolvePackage.ts";
|
|
2
3
|
import type { Finding, RuleInputs } from "#rule.ts";
|
|
3
4
|
import { type Declaration, decodeShipped, PRESET_DECLARATIONS } from "#rules/suppressions/biome/declarations.ts";
|
|
4
5
|
import { itemsOf, type Json, member, type Parsed, parseJsonc, textOf } from "#rules/suppressions/biome/json.ts";
|
|
5
|
-
import { resolvePackage } from "./resolvePackage.ts";
|
|
6
6
|
|
|
7
7
|
export interface Preset {
|
|
8
8
|
readonly declared: readonly Declaration[];
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { posix } from "node:path";
|
|
2
2
|
import { Effect } from "effect";
|
|
3
|
+
import { resolvePackage } from "#adapters/biome/resolvePackage.ts";
|
|
4
|
+
import { PRESET, rootConfig } from "#adapters/biome/rootConfig.ts";
|
|
3
5
|
import type { Finding, RuleInputs } from "#rule.ts";
|
|
4
6
|
import { decodeShipped, PRESET_DECLARATIONS } from "#rules/suppressions/biome/declarations.ts";
|
|
5
7
|
import { parseJsonc } from "#rules/suppressions/biome/json.ts";
|
|
6
|
-
import { resolvePackage } from "./resolvePackage.ts";
|
|
7
|
-
import { PRESET, rootConfig } from "./rootConfig.ts";
|
|
8
8
|
|
|
9
9
|
function problem(file: string, message: string): { readonly _tag: "Problem"; readonly findings: readonly Finding[] } {
|
|
10
10
|
return { _tag: "Problem", findings: [{ file, message }] };
|
|
@@ -2,8 +2,8 @@ import { createRequire } from "node:module";
|
|
|
2
2
|
import { dirname, resolve } from "node:path";
|
|
3
3
|
import { Effect, FileSystem, type PlatformError, Schema } from "effect";
|
|
4
4
|
import ts from "typescript";
|
|
5
|
+
import { cacheConfig } from "#adapters/biome/cacheConfig.ts";
|
|
5
6
|
import { nonEffectPlugins } from "#biome/nonEffectPlugins.ts";
|
|
6
|
-
import { cacheConfig } from "./cacheConfig.ts";
|
|
7
7
|
|
|
8
8
|
const ObjectConfig = Schema.Record(Schema.String, Schema.Unknown);
|
|
9
9
|
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { join, relative } from "node:path";
|
|
2
2
|
import { Effect, Schema } from "effect";
|
|
3
|
+
import { browserOverrides } from "#adapters/biome/browserTargets.ts";
|
|
4
|
+
import { parseConfig, relocateConfig } from "#adapters/biome/relocateConfig.ts";
|
|
3
5
|
import { exceptionConfig } from "#biome/exceptionConfig.ts";
|
|
4
6
|
import type { ExceptionDeclaration } from "#exceptions/declaration.ts";
|
|
5
7
|
import { readOptionalText } from "#inventory/filesystem.ts";
|
|
6
8
|
import { ignoredPaths } from "#inventory/trackedPaths.ts";
|
|
7
|
-
import { browserOverrides } from "./browserTargets.ts";
|
|
8
|
-
import { parseConfig, relocateConfig } from "./relocateConfig.ts";
|
|
9
9
|
|
|
10
10
|
export const withExceptionConfig = Effect.fn("Biome.withExceptionConfig")(function* <TValue, TError, TRequirements>(
|
|
11
11
|
root: string,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import ts from "typescript";
|
|
2
|
+
import { type BodyReference, dataFactory, serviceFactory } from "#adapters/bodyReference.ts";
|
|
2
3
|
import { importFrom } from "#rules/stories/importOrigin.ts";
|
|
3
4
|
import { memberName } from "#rules/stories/syntax.ts";
|
|
4
|
-
import { type BodyReference, dataFactory, serviceFactory } from "./bodyReference.ts";
|
|
5
5
|
|
|
6
6
|
export function storyBody(body: ts.Expression, checker: ts.TypeChecker) {
|
|
7
7
|
const declaration = checker.getTypeAtLocation(body).getCallSignatures()[0]?.declaration;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { posix } from "node:path";
|
|
2
2
|
import ts from "typescript";
|
|
3
|
-
import { type BuildBindings, buildEntryValue, buildOption } from "
|
|
4
|
-
import { importedCall } from "
|
|
3
|
+
import { type BuildBindings, buildEntryValue, buildOption } from "#adapters/buildEntryValue.ts";
|
|
4
|
+
import { importedCall } from "#adapters/importedCall.ts";
|
|
5
5
|
|
|
6
6
|
function pathFromCall(node: ts.CallExpression, cwd: string, paths: (expression: ts.Expression) => readonly string[]): readonly string[] {
|
|
7
7
|
if (node.expression.getText() === "process.cwd" && node.arguments.length === 0) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { posix } from "node:path";
|
|
2
2
|
import ts from "typescript";
|
|
3
|
-
import { type BuildBindings, buildEntryValue } from "
|
|
4
|
-
import { importedCall } from "
|
|
3
|
+
import { type BuildBindings, buildEntryValue } from "#adapters/buildEntryValue.ts";
|
|
4
|
+
import { importedCall } from "#adapters/importedCall.ts";
|
|
5
5
|
|
|
6
6
|
type Helper = ts.FunctionDeclaration | ts.FunctionExpression | ts.ArrowFunction;
|
|
7
7
|
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { posix } from "node:path";
|
|
2
2
|
import ts from "typescript";
|
|
3
|
+
import { buildEntryPaths } from "#adapters/buildEntryPaths.ts";
|
|
4
|
+
import { type BuildBindings, buildEntryValue, buildOption } from "#adapters/buildEntryValue.ts";
|
|
5
|
+
import { buildArguments, buildHelper } from "#adapters/buildHelper.ts";
|
|
6
|
+
import { importedCall } from "#adapters/importedCall.ts";
|
|
3
7
|
import type { SourceFile } from "#rule.ts";
|
|
4
8
|
import { parse } from "#rules/parse.ts";
|
|
5
|
-
import { buildEntryPaths } from "./buildEntryPaths.ts";
|
|
6
|
-
import { type BuildBindings, buildEntryValue, buildOption } from "./buildEntryValue.ts";
|
|
7
|
-
import { buildArguments, buildHelper } from "./buildHelper.ts";
|
|
8
|
-
import { importedCall } from "./importedCall.ts";
|
|
9
9
|
|
|
10
10
|
const ESBUILD = new Set(["build", "buildSync", "context"]);
|
|
11
11
|
|
|
@@ -2,12 +2,12 @@ import { join } from "node:path";
|
|
|
2
2
|
import { Effect } from "effect";
|
|
3
3
|
import ts from "typescript";
|
|
4
4
|
import { changeKeyApi } from "#adapters/changeKeyApi.ts";
|
|
5
|
+
import { changeKeyLiterals } from "#adapters/changeKeyLiterals.ts";
|
|
5
6
|
import type { Finding, RuleInputs, SourceFile } from "#rule.ts";
|
|
6
7
|
import { effectProgram } from "#rules/effect/program.ts";
|
|
7
8
|
import { parse } from "#rules/parse.ts";
|
|
8
9
|
import { importBindings } from "#rules/stories/importBindings.ts";
|
|
9
10
|
import { memberName, nodesWhere, unwrapped } from "#rules/stories/syntax.ts";
|
|
10
|
-
import { changeKeyLiterals } from "./changeKeyLiterals.ts";
|
|
11
11
|
|
|
12
12
|
const APIS = new Set([
|
|
13
13
|
"invalidateOnCommit",
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { join } from "node:path";
|
|
2
2
|
import { Effect } from "effect";
|
|
3
|
+
import { databaseUrlReads } from "#adapters/databaseUrlReads.ts";
|
|
4
|
+
import { storyProgram } from "#adapters/storyProgram.ts";
|
|
3
5
|
import { importGraph } from "#imports/graph.ts";
|
|
4
6
|
import { isTestSupport } from "#naming/testName.ts";
|
|
5
7
|
import type { RuleInputs } from "#rule.ts";
|
|
6
8
|
import { findingAt } from "#rules/stories/syntax.ts";
|
|
7
|
-
import { databaseUrlReads } from "./databaseUrlReads.ts";
|
|
8
|
-
import { storyProgram } from "./storyProgram.ts";
|
|
9
9
|
|
|
10
10
|
const MESSAGE =
|
|
11
11
|
"Reads a *DATABASE_URL variable directly in test-support. Use postgresTestUrl(name) from @shivaedev/test-sql/server/adapters/postgresTestUrl.ts so missing PostgreSQL URLs fail in CI instead of silently skipping tests.";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { posix } from "node:path";
|
|
2
2
|
import ts from "typescript";
|
|
3
|
+
import type { BodyReference } from "#adapters/bodyReference.ts";
|
|
4
|
+
import { bodyReferences, storyBody } from "#adapters/bodyReferences.ts";
|
|
5
|
+
import { serviceAccess } from "#adapters/serviceAccess.ts";
|
|
3
6
|
import { isTestSupport, testName } from "#naming/testName.ts";
|
|
4
7
|
import { engineOf } from "#rules/stories/engineOf.ts";
|
|
5
8
|
import { memberName, unwrapped } from "#rules/stories/syntax.ts";
|
|
6
|
-
import type { BodyReference } from "./bodyReference.ts";
|
|
7
|
-
import { bodyReferences, storyBody } from "./bodyReferences.ts";
|
|
8
|
-
import { serviceAccess } from "./serviceAccess.ts";
|
|
9
9
|
|
|
10
10
|
export interface EngineEscape {
|
|
11
11
|
readonly node: ts.Node;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { Effect } from "effect";
|
|
2
2
|
import type ts from "typescript";
|
|
3
3
|
import { defineService } from "@shivaedev/service/defineService.ts";
|
|
4
|
-
import { browserChecker } from "
|
|
5
|
-
import { departures } from "
|
|
6
|
-
import { graph } from "
|
|
4
|
+
import { browserChecker } from "#adapters/import-compiler/browserChecker.ts";
|
|
5
|
+
import { departures } from "#adapters/import-compiler/departures.ts";
|
|
6
|
+
import { graph } from "#adapters/import-compiler/graph.ts";
|
|
7
7
|
|
|
8
8
|
export const ImportCompiler = defineService({
|
|
9
9
|
id: "@shivaedev/quality/ImportCompiler",
|
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
import { realpathSync } from "node:fs";
|
|
2
2
|
import { posix } from "node:path";
|
|
3
|
+
import { type Project, projectsFor } from "#adapters/imports/projects.ts";
|
|
4
|
+
import { resolveImport } from "#adapters/imports/resolve.ts";
|
|
3
5
|
import type { Departure } from "#imports/departures.ts";
|
|
4
6
|
import type { ImportRequest } from "#imports/extract.ts";
|
|
5
7
|
import { type SpecifierSite, specifierSites } from "#imports/specifiers.ts";
|
|
6
8
|
import { packageOf, type WorkspacePackage } from "#imports/workspace.ts";
|
|
7
|
-
import { moduleRoot } from "#naming/moduleRoot.ts";
|
|
8
9
|
import type { RuleInputs } from "#rule.ts";
|
|
9
10
|
import { parse } from "#rules/parse.ts";
|
|
10
|
-
import { type Project, projectsFor } from "./projects.ts";
|
|
11
|
-
import { resolveImport } from "./resolve.ts";
|
|
12
11
|
|
|
13
12
|
const QUERY = /\?.*$/u;
|
|
14
13
|
|
|
@@ -16,17 +15,10 @@ const RELATIVE = /^\.\.?(?:\/|$)/u;
|
|
|
16
15
|
|
|
17
16
|
const MAY_BE_RELATIVE = /["'`]\.\.?[/"'`]|\\/u;
|
|
18
17
|
|
|
19
|
-
const TRAILING_SLASHES = /\/+$/u;
|
|
20
|
-
|
|
21
18
|
function noAmbient(): boolean {
|
|
22
19
|
return false;
|
|
23
20
|
}
|
|
24
21
|
|
|
25
|
-
function leavesLexically(path: string): boolean {
|
|
26
|
-
const normal = posix.normalize(path).replace(TRAILING_SLASHES, "");
|
|
27
|
-
return normal === ".." || normal.startsWith("../") || normal.includes("/");
|
|
28
|
-
}
|
|
29
|
-
|
|
30
22
|
interface FileContext {
|
|
31
23
|
readonly from: string;
|
|
32
24
|
readonly packages: readonly WorkspacePackage[];
|
|
@@ -35,19 +27,6 @@ interface FileContext {
|
|
|
35
27
|
readonly root: string;
|
|
36
28
|
}
|
|
37
29
|
|
|
38
|
-
function registersAdmin(from: string, specifier: string, target: string | undefined): boolean {
|
|
39
|
-
const root = moduleRoot(from);
|
|
40
|
-
const folder = posix.dirname(from);
|
|
41
|
-
return (
|
|
42
|
-
root !== undefined
|
|
43
|
-
&& (folder === `${root}/client` || folder === `${root}/server`)
|
|
44
|
-
&& /^registration\.[cm]?[jt]sx?$/u.test(posix.basename(from))
|
|
45
|
-
&& specifier.startsWith("./admin/")
|
|
46
|
-
&& target?.startsWith(`${folder}/admin/`) === true
|
|
47
|
-
);
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
// A relative import leaves its folder when its path climbs or descends, or when it names a folder whose index file lies below.
|
|
51
30
|
function departureAt(context: FileContext, site: SpecifierSite): Departure | undefined {
|
|
52
31
|
const path = site.specifier.replace(QUERY, "");
|
|
53
32
|
if (!RELATIVE.test(path)) {
|
|
@@ -56,12 +35,6 @@ function departureAt(context: FileContext, site: SpecifierSite): Departure | und
|
|
|
56
35
|
const request: ImportRequest = { kind: "import", line: site.line, specifier: site.specifier, type: site.type };
|
|
57
36
|
const target = resolveImport(context.root, noAmbient, request, context.from, context.project);
|
|
58
37
|
const local = target?.kind === "file" ? target.path : undefined;
|
|
59
|
-
if (registersAdmin(context.path, path, local)) {
|
|
60
|
-
return undefined;
|
|
61
|
-
}
|
|
62
|
-
if (!(leavesLexically(path) || (local !== undefined && posix.dirname(local) !== posix.dirname(context.path)))) {
|
|
63
|
-
return undefined;
|
|
64
|
-
}
|
|
65
38
|
const owner = local === undefined ? undefined : packageOf(context.packages, local);
|
|
66
39
|
const workspace = owner !== undefined && owner !== packageOf(context.packages, context.path) ? owner.name : undefined;
|
|
67
40
|
return { ...site, file: context.path, installed: target?.kind === "external" ? target.package : undefined, workspace };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { realpathSync } from "node:fs";
|
|
2
2
|
import { join } from "node:path";
|
|
3
|
+
import { projectsFor } from "#adapters/imports/projects.ts";
|
|
4
|
+
import { resolveImport } from "#adapters/imports/resolve.ts";
|
|
3
5
|
import type { RuleInputs } from "#rule.ts";
|
|
4
|
-
import { projectsFor } from "./projects.ts";
|
|
5
|
-
import { resolveImport } from "./resolve.ts";
|
|
6
6
|
|
|
7
7
|
export interface FakeModule {
|
|
8
8
|
readonly file: string;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { join, posix } from "node:path";
|
|
2
2
|
import ts from "typescript";
|
|
3
|
+
import { type Project, projectsFor } from "#adapters/imports/projects.ts";
|
|
4
|
+
import { isDeclarationFile, presumedTarget, resolveImport } from "#adapters/imports/resolve.ts";
|
|
3
5
|
import { ambientModules } from "#imports/ambient.ts";
|
|
4
6
|
import { type ImportRequest, importsOf } from "#imports/extract.ts";
|
|
5
7
|
import type { ImportEdge, ImportGraph, UnresolvedImport } from "#imports/graph.ts";
|
|
6
8
|
import type { RuleInputs } from "#rule.ts";
|
|
7
9
|
import { parse } from "#rules/parse.ts";
|
|
8
|
-
import { type Project, projectsFor } from "./projects.ts";
|
|
9
|
-
import { isDeclarationFile, presumedTarget, resolveImport } from "./resolve.ts";
|
|
10
10
|
|
|
11
11
|
const QUERY = /\?.*$/u;
|
|
12
12
|
|
|
@@ -2,12 +2,12 @@ import { realpathSync } from "node:fs";
|
|
|
2
2
|
import { createRequire } from "node:module";
|
|
3
3
|
import { dirname, join, relative } from "node:path";
|
|
4
4
|
import ts from "typescript";
|
|
5
|
+
import type { Project } from "#adapters/imports/projects.ts";
|
|
5
6
|
import type { Ambient } from "#imports/ambient.ts";
|
|
6
7
|
import type { Endpoint } from "#imports/Endpoint.ts";
|
|
7
8
|
import type { ImportRequest } from "#imports/extract.ts";
|
|
8
9
|
import { builtinName, nameAt, packageNameOf } from "#imports/packageName.ts";
|
|
9
10
|
import { posix } from "#inventory/ignoreScope.ts";
|
|
10
|
-
import type { Project } from "./projects.ts";
|
|
11
11
|
|
|
12
12
|
const NODE_MODULES = "/node_modules/";
|
|
13
13
|
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { posix } from "node:path";
|
|
2
2
|
import { isToolConfig } from "#adapters/isToolConfig.ts";
|
|
3
|
+
import { KNIP_ISSUES } from "#adapters/knip/findings.ts";
|
|
4
|
+
import { mockEntries } from "#adapters/knip/mockEntries.ts";
|
|
3
5
|
import { readPackageManifest } from "#adapters/manifestInventory.ts";
|
|
4
6
|
import { scriptPaths } from "#adapters/scriptPaths.ts";
|
|
5
7
|
import { exportedModule, exportTargets } from "#imports/packageExports.ts";
|
|
6
8
|
import { packageOf, workspacePackages } from "#imports/workspace.ts";
|
|
7
9
|
import type { RuleInputs } from "#rule.ts";
|
|
8
|
-
import { KNIP_ISSUES } from "./findings.ts";
|
|
9
|
-
import { mockEntries } from "./mockEntries.ts";
|
|
10
10
|
|
|
11
11
|
const ENTRIES = ["**/*.{test,spec,stories,story}.{ts,tsx,mts,cts,js,jsx,mjs,cjs}", "src/test-support/**", "*.config.{ts,mts,cts,js,mjs,cjs}"];
|
|
12
12
|
|
package/src/adapters/knip/run.ts
CHANGED
|
@@ -4,15 +4,15 @@ import process from "node:process";
|
|
|
4
4
|
import { pathToFileURL } from "node:url";
|
|
5
5
|
import { Effect, FileSystem, Stream } from "effect";
|
|
6
6
|
import { ChildProcess, ChildProcessSpawner } from "effect/process";
|
|
7
|
+
import { knipConfiguration } from "#adapters/knip/configuration.ts";
|
|
8
|
+
import { entryPointFindings } from "#adapters/knip/entryPointFindings.ts";
|
|
9
|
+
import { KNIP_ISSUES } from "#adapters/knip/findings.ts";
|
|
10
|
+
import { knipReport } from "#adapters/knip/report.ts";
|
|
11
|
+
import { sourceConfig } from "#adapters/knip/sourceConfig.ts";
|
|
7
12
|
import { readPackageManifest } from "#adapters/manifestInventory.ts";
|
|
8
13
|
import { programmaticEntries } from "#inventory/programmaticEntries.ts";
|
|
9
14
|
import { toolOwnedFiles } from "#inventory/toolOwnedFiles.ts";
|
|
10
15
|
import type { RuleInputs } from "#rule.ts";
|
|
11
|
-
import { knipConfiguration } from "./configuration.ts";
|
|
12
|
-
import { entryPointFindings } from "./entryPointFindings.ts";
|
|
13
|
-
import { KNIP_ISSUES } from "./findings.ts";
|
|
14
|
-
import { knipReport } from "./report.ts";
|
|
15
|
-
import { sourceConfig } from "./sourceConfig.ts";
|
|
16
16
|
|
|
17
17
|
const API = createRequire(import.meta.url).resolve("knip");
|
|
18
18
|
const BIN = join(dirname(API), "..", "bin", "knip.js");
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import ts from "typescript";
|
|
2
|
-
import { importedCall } from "
|
|
2
|
+
import { importedCall } from "#adapters/importedCall.ts";
|
|
3
3
|
|
|
4
4
|
function isImportMeta(node: ts.Expression): boolean {
|
|
5
5
|
return ts.isMetaProperty(node) && node.keywordToken === ts.SyntaxKind.ImportKeyword && node.name.text === "meta";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { join } from "node:path";
|
|
2
2
|
import { Effect } from "effect";
|
|
3
3
|
import ts from "typescript";
|
|
4
|
+
import { transactionChanges } from "#adapters/transactionChanges.ts";
|
|
4
5
|
import type { Finding, RuleInputs } from "#rule.ts";
|
|
5
6
|
import { effectProgram } from "#rules/effect/program.ts";
|
|
6
7
|
import { parse } from "#rules/parse.ts";
|
|
7
8
|
import { memberName, nodesWhere, unwrapped } from "#rules/stories/syntax.ts";
|
|
8
|
-
import { transactionChanges } from "./transactionChanges.ts";
|
|
9
9
|
|
|
10
10
|
function candidates(source: ts.SourceFile): readonly ts.Node[] {
|
|
11
11
|
const aliases = new Set(["withTransaction"]);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import ts from "typescript";
|
|
2
|
+
import { type OutcomeAssertion, outcomeAssertions } from "#adapters/outcomeAssertions.ts";
|
|
2
3
|
import type { Finding, SourceFile } from "#rule.ts";
|
|
3
4
|
import type { storyOrigins } from "#rules/stories/origins.ts";
|
|
4
5
|
import { nodesWhere, unwrapped } from "#rules/stories/syntax.ts";
|
|
5
|
-
import { type OutcomeAssertion, outcomeAssertions } from "./outcomeAssertions.ts";
|
|
6
6
|
|
|
7
7
|
const MESSAGE =
|
|
8
8
|
"Only rules out an outcome. Assert the expected refusal's domain reason or public response positively on the same outcome in this story; an unrelated failure must fail the story too.";
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { join } from "node:path";
|
|
2
2
|
import { Effect } from "effect";
|
|
3
3
|
import ts from "typescript";
|
|
4
|
+
import { readPackageManifest } from "#adapters/manifestInventory.ts";
|
|
5
|
+
import { queueTestingOrigin } from "#adapters/queueTestingOrigin.ts";
|
|
6
|
+
import { storyProgram } from "#adapters/storyProgram.ts";
|
|
4
7
|
import { importGraph } from "#imports/graph.ts";
|
|
5
8
|
import { packageOf } from "#imports/workspace.ts";
|
|
6
9
|
import { isTestCode } from "#naming/testName.ts";
|
|
7
10
|
import type { RuleInputs } from "#rule.ts";
|
|
8
11
|
import { nodesWhere } from "#rules/stories/syntax.ts";
|
|
9
|
-
import { readPackageManifest } from "./manifestInventory.ts";
|
|
10
|
-
import { queueTestingOrigin } from "./queueTestingOrigin.ts";
|
|
11
|
-
import { storyProgram } from "./storyProgram.ts";
|
|
12
12
|
|
|
13
13
|
const MESSAGE =
|
|
14
14
|
"Reads jobs-testing queue storage. An enqueued job or its state does not prove the work ran. Assert the application's visible result instead; use jobs-testing only to control and settle workers.";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
+
import { bundlerEntries } from "#adapters/bundlerEntries.ts";
|
|
2
|
+
import { bundlerSources } from "#adapters/bundlerSources.ts";
|
|
3
|
+
import { spawnedEntries } from "#adapters/spawnedEntries.ts";
|
|
1
4
|
import type { ImportGraph } from "#imports/graph.ts";
|
|
2
5
|
import type { PackageLayout } from "#naming/packageLayout.ts";
|
|
3
6
|
import type { RuleInputs } from "#rule.ts";
|
|
4
|
-
import { bundlerEntries } from "./bundlerEntries.ts";
|
|
5
|
-
import { bundlerSources } from "./bundlerSources.ts";
|
|
6
|
-
import { spawnedEntries } from "./spawnedEntries.ts";
|
|
7
7
|
|
|
8
8
|
function scriptsByPackage(layout: PackageLayout): ReadonlyMap<string, readonly string[]> {
|
|
9
9
|
const scripts = new Map<string, string[]>();
|
package/src/adapters/rule.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Effect } from "effect";
|
|
2
|
+
import { describeIssue, type StandardSchemaV1 } from "#adapters/standardSchema.ts";
|
|
2
3
|
import { validOrFail } from "#decoded.ts";
|
|
3
4
|
import type { Configured, Findings, RegisteredRule, RuleContext } from "#rule.ts";
|
|
4
|
-
import { describeIssue, type StandardSchemaV1 } from "./standardSchema.ts";
|
|
5
5
|
|
|
6
6
|
export type RuleCheckResult<TServices> = Findings | PromiseLike<Findings> | Effect.Effect<Findings, unknown, TServices>;
|
|
7
7
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { basename } from "node:path";
|
|
2
2
|
import ts from "typescript";
|
|
3
|
-
import type { BodyReference } from "
|
|
3
|
+
import type { BodyReference } from "#adapters/bodyReference.ts";
|
|
4
4
|
|
|
5
5
|
function nativeService({ module, path }: BodyReference): boolean {
|
|
6
6
|
const name = path[0];
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { posix } from "node:path";
|
|
2
2
|
import ts from "typescript";
|
|
3
|
+
import { buildEntryPaths } from "#adapters/buildEntryPaths.ts";
|
|
4
|
+
import { buildEntryValue, buildOption } from "#adapters/buildEntryValue.ts";
|
|
5
|
+
import { importedCall } from "#adapters/importedCall.ts";
|
|
3
6
|
import type { SourceFile } from "#rule.ts";
|
|
4
7
|
import { parse } from "#rules/parse.ts";
|
|
5
|
-
import { buildEntryPaths } from "./buildEntryPaths.ts";
|
|
6
|
-
import { buildEntryValue, buildOption } from "./buildEntryValue.ts";
|
|
7
|
-
import { importedCall } from "./importedCall.ts";
|
|
8
8
|
|
|
9
9
|
const COMMANDS = new Set(["spawn", "spawnSync", "execFile", "execFileSync", "fork"]);
|
|
10
10
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import ts from "typescript";
|
|
2
|
+
import { asymmetricMatcher } from "#adapters/asymmetricMatcher.ts";
|
|
2
3
|
import type { SourceFile } from "#rule.ts";
|
|
3
4
|
import { parse } from "#rules/parse.ts";
|
|
4
5
|
import { topLevelHelpers, unwrapped } from "#rules/stories/syntax.ts";
|
|
5
|
-
import { asymmetricMatcher } from "./asymmetricMatcher.ts";
|
|
6
6
|
|
|
7
7
|
const READ_METHODS = new Set([
|
|
8
8
|
"at",
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { fileURLToPath } from "node:url";
|
|
2
2
|
import { Effect } from "effect";
|
|
3
3
|
import { coverageConfigDefaults, defaultExclude, type TestUserConfig } from "vitest/config";
|
|
4
|
+
import { TestOutput } from "#adapters/TestOutput.ts";
|
|
4
5
|
import type { Environment } from "#naming/testName.ts";
|
|
5
|
-
import { TestOutput } from "./TestOutput.ts";
|
|
6
6
|
|
|
7
7
|
const EXTENSION = "?(c|m)[jt]s?(x)";
|
|
8
8
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type ts from "typescript";
|
|
2
|
+
import { runtimeOrigins } from "#adapters/units/runtimeOrigins.ts";
|
|
3
|
+
import { firstRuntimeUse, type RuntimeUse } from "#adapters/units/runtimeUse.ts";
|
|
2
4
|
import { type Trail, walkFrom } from "#imports/fences/reach.ts";
|
|
3
5
|
import type { ImportEdge } from "#imports/graph.ts";
|
|
4
6
|
import type { Finding } from "#rule.ts";
|
|
5
|
-
import { runtimeOrigins } from "./runtimeOrigins.ts";
|
|
6
|
-
import { firstRuntimeUse, type RuntimeUse } from "./runtimeUse.ts";
|
|
7
7
|
|
|
8
8
|
export const PURE_REPAIR = "Exercise the Effect behaviour through the package story kit, or test an existing pure API without the runner.";
|
|
9
9
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import ts from "typescript";
|
|
2
|
+
import { exportedRuntime, importedRuntime, type RuntimeName, runtimeImport } from "#adapters/units/runtimeImports.ts";
|
|
2
3
|
import { memberName } from "#rules/stories/syntax.ts";
|
|
3
|
-
import { exportedRuntime, importedRuntime, type RuntimeName, runtimeImport } from "./runtimeImports.ts";
|
|
4
4
|
|
|
5
5
|
function member(receiver: RuntimeName | undefined, name: string): RuntimeName | undefined {
|
|
6
6
|
return receiver === undefined ? undefined : { ...receiver, path: [...receiver.path, name] };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import ts from "typescript";
|
|
2
|
-
import { type RuntimeName, runtimeImport, runtimeOf } from "
|
|
2
|
+
import { type RuntimeName, runtimeImport, runtimeOf } from "#adapters/units/runtimeImports.ts";
|
|
3
3
|
|
|
4
4
|
function moduleRuntime(node: ts.Node): string | undefined {
|
|
5
5
|
if (ts.isImportDeclaration(node) && node.importClause === undefined && ts.isStringLiteral(node.moduleSpecifier)) {
|
package/src/baseline/compare.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import type { BaselineEntry } from "#baseline/format.ts";
|
|
1
2
|
import { groupBy, keyOf, levelOf, type RuleIndex, unusedEntryProblem, type Violation } from "#engine/violation.ts";
|
|
2
|
-
import type { BaselineEntry } from "./format.ts";
|
|
3
3
|
|
|
4
4
|
export interface Regression {
|
|
5
5
|
readonly count: number;
|
package/src/baseline/legacy.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Schema } from "effect";
|
|
2
|
+
import { countOf } from "#baseline/compare.ts";
|
|
3
|
+
import type { BaselineEntry } from "#baseline/format.ts";
|
|
2
4
|
import { type Decoded, decodeWith } from "#decoded.ts";
|
|
3
5
|
import { groupBy, keyOf, type Violation } from "#engine/violation.ts";
|
|
4
|
-
import { countOf } from "./compare.ts";
|
|
5
|
-
import type { BaselineEntry } from "./format.ts";
|
|
6
6
|
|
|
7
7
|
export const LEGACY_BASELINE = "quality/baseline.json";
|
|
8
8
|
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { Effect } from "effect";
|
|
2
|
+
import { applyBaseline } from "#baseline/compare.ts";
|
|
3
|
+
import { type BaselineEntry, decodeBaseline } from "#baseline/format.ts";
|
|
4
|
+
import { shardOf } from "#baseline/shards.ts";
|
|
2
5
|
import { validOrFail } from "#decoded.ts";
|
|
3
6
|
import type { Session } from "#engine/session.ts";
|
|
4
7
|
import { keyOf } from "#engine/violation.ts";
|
|
5
8
|
import { applyRegistry } from "#exceptions/registry.ts";
|
|
6
9
|
import { gitOrFail, run } from "#git/command.ts";
|
|
7
10
|
import { changesSince } from "#git/history.ts";
|
|
8
|
-
import { applyBaseline } from "./compare.ts";
|
|
9
|
-
import { type BaselineEntry, decodeBaseline } from "./format.ts";
|
|
10
|
-
import { shardOf } from "./shards.ts";
|
|
11
11
|
|
|
12
12
|
export const looseStagedEntries = Effect.fn("Baseline.looseStagedEntries")(function* (session: Session) {
|
|
13
13
|
const { root, baseline } = session.config;
|
package/src/baseline/rewrite.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { type BaselineEntry, byPathAndRule, encodeEntry, linesOf } from "#baseline/format.ts";
|
|
1
2
|
import { keyOf } from "#engine/violation.ts";
|
|
2
|
-
import { type BaselineEntry, byPathAndRule, encodeEntry, linesOf } from "./format.ts";
|
|
3
3
|
|
|
4
4
|
interface Row {
|
|
5
5
|
readonly entry: BaselineEntry;
|