@shivaedev/quality 0.60.0 → 0.61.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 +21 -0
- package/README.md +37 -16
- package/dist/adapters/biome/relocateConfig.d.ts +1 -1
- package/dist/adapters/biome/relocateConfig.d.ts.map +1 -1
- package/dist/adapters/biome/relocateConfig.js +6 -5
- package/dist/adapters/biome/relocateConfig.js.map +1 -1
- package/dist/adapters/biome/run.d.ts +1 -1
- package/dist/adapters/biome/run.d.ts.map +1 -1
- package/dist/adapters/biome/run.js +2 -2
- package/dist/adapters/biome/run.js.map +1 -1
- package/dist/adapters/biome/withExceptionConfig.d.ts +1 -1
- package/dist/adapters/biome/withExceptionConfig.d.ts.map +1 -1
- package/dist/adapters/biome/withExceptionConfig.js +3 -3
- package/dist/adapters/biome/withExceptionConfig.js.map +1 -1
- package/dist/adapters/queueReadoutFindings.d.ts.map +1 -1
- package/dist/adapters/queueReadoutFindings.js +5 -2
- package/dist/adapters/queueReadoutFindings.js.map +1 -1
- package/dist/adapters/queueTestingOrigin.js +1 -1
- package/dist/adapters/queueTestingOrigin.js.map +1 -1
- package/dist/biome/nonEffectPlugins.d.ts +7 -0
- package/dist/biome/nonEffectPlugins.d.ts.map +1 -0
- package/dist/biome/nonEffectPlugins.js +24 -0
- package/dist/biome/nonEffectPlugins.js.map +1 -0
- package/dist/biome/report.d.ts +1 -1
- package/dist/biome/report.d.ts.map +1 -1
- package/dist/biome/report.js +5 -5
- package/dist/biome/report.js.map +1 -1
- package/dist/cli/baseline.d.ts.map +1 -1
- package/dist/cli/baseline.js +0 -6
- package/dist/cli/baseline.js.map +1 -1
- package/dist/cli/fix.d.ts.map +1 -1
- package/dist/cli/fix.js +7 -7
- package/dist/cli/fix.js.map +1 -1
- package/dist/cli/messages.d.ts +1 -1
- package/dist/cli/messages.d.ts.map +1 -1
- package/dist/cli/messages.js +1 -1
- package/dist/config/decode.d.ts +1 -0
- package/dist/config/decode.d.ts.map +1 -1
- package/dist/config/decode.js +2 -0
- package/dist/config/decode.js.map +1 -1
- package/dist/config/load.d.ts +1 -0
- package/dist/config/load.d.ts.map +1 -1
- package/dist/config/load.js +1 -0
- package/dist/config/load.js.map +1 -1
- package/dist/config/nonEffectFolders.d.ts +5 -0
- package/dist/config/nonEffectFolders.d.ts.map +1 -0
- package/dist/config/nonEffectFolders.js +17 -0
- package/dist/config/nonEffectFolders.js.map +1 -0
- package/dist/config/resolve.d.ts +1 -0
- package/dist/config/resolve.d.ts.map +1 -1
- package/dist/config.d.ts +1 -0
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js.map +1 -1
- package/dist/engine/runRules.d.ts.map +1 -1
- package/dist/engine/runRules.js +4 -1
- package/dist/engine/runRules.js.map +1 -1
- package/dist/engine/session.d.ts.map +1 -1
- package/dist/engine/session.js +1 -0
- package/dist/engine/session.js.map +1 -1
- package/dist/rule.d.ts +1 -0
- package/dist/rule.d.ts.map +1 -1
- package/dist/rule.js.map +1 -1
- package/dist/rules/biome.js +2 -2
- package/dist/rules/biome.js.map +1 -1
- package/dist/rules/effect/boundary.js +1 -1
- package/dist/rules/effect/boundary.js.map +1 -1
- package/dist/rules/effect/serviceParameters.js +1 -1
- package/dist/rules/effect/serviceParameters.js.map +1 -1
- package/dist/rules/stories/queueReadouts.js +1 -1
- package/dist/rules/stories/queueReadouts.js.map +1 -1
- package/dist/rules/stories/sources.d.ts +1 -0
- package/dist/rules/stories/sources.d.ts.map +1 -1
- package/dist/rules/stories/sources.js +17 -0
- package/dist/rules/stories/sources.js.map +1 -1
- package/dist/rules/stories/waitOnEvents.d.ts.map +1 -1
- package/dist/rules/stories/waitOnEvents.js +74 -10
- package/dist/rules/stories/waitOnEvents.js.map +1 -1
- package/dist/testing/ruleStory.d.ts +1 -0
- package/dist/testing/ruleStory.d.ts.map +1 -1
- package/dist/testing/ruleStory.js +4 -0
- package/dist/testing/ruleStory.js.map +1 -1
- package/docs/debt-and-hooks.md +1 -1
- package/package.json +14 -14
- package/src/adapters/biome/relocateConfig.ts +6 -4
- package/src/adapters/biome/run.ts +17 -12
- package/src/adapters/biome/withExceptionConfig.ts +3 -2
- package/src/adapters/queueReadoutFindings.ts +5 -2
- package/src/adapters/queueTestingOrigin.ts +1 -1
- package/src/biome/nonEffectPlugins.ts +27 -0
- package/src/biome/report.ts +5 -3
- package/src/cli/baseline.ts +0 -6
- package/src/cli/fix.ts +13 -5
- package/src/cli/messages.ts +1 -1
- package/src/config/decode.ts +2 -0
- package/src/config/load.ts +2 -0
- package/src/config/nonEffectFolders.ts +26 -0
- package/src/config.ts +1 -0
- package/src/engine/runRules.ts +9 -1
- package/src/engine/session.ts +1 -0
- package/src/rule.ts +1 -0
- package/src/rules/biome.ts +2 -2
- package/src/rules/effect/boundary.ts +1 -1
- package/src/rules/effect/serviceParameters.ts +1 -1
- package/src/rules/stories/queueReadouts.ts +1 -1
- package/src/rules/stories/sources.ts +18 -0
- package/src/rules/stories/waitOnEvents.ts +89 -10
- package/src/testing/ruleStory.ts +7 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,26 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.61.1 - 2026-11-04
|
|
4
|
+
|
|
5
|
+
### Changed
|
|
6
|
+
|
|
7
|
+
- Require Effect 4.0.7 and its matching companion packages. Install the 4.0.7 Effect stack together.
|
|
8
|
+
|
|
9
|
+
### Fixed
|
|
10
|
+
|
|
11
|
+
- Recognize the test-kits controller import and its jobs stories when checking story assertions against queue storage; applications and other kits remain checked.
|
|
12
|
+
|
|
13
|
+
## 0.61.0 - 2026-11-04
|
|
14
|
+
|
|
15
|
+
### Added
|
|
16
|
+
|
|
17
|
+
- Declare deliberately non-Effect subsystems with `nonEffectFolders` in Quality config. All `effect/*` rules and Effect-specific Biome plugins are off in those folders and their descendants; other rules and Effect importers remain checked. The declaration applies to the gate and Biome fix passes without adding baseline debt.
|
|
18
|
+
|
|
19
|
+
### Fixed
|
|
20
|
+
|
|
21
|
+
- Let `baseline write --first-adoption` record findings from every rule, including rules that permit config exceptions. A repository without a baseline may record all rules at once; policy upgrades with an existing baseline still name explicit rules, and ordinary later writes still require changed file selections.
|
|
22
|
+
- Follow story specs' runtime imports into test-support when reporting sleeps, polling, quiet windows, fake timers and `eventually`. Keep product timers and controlled kit clock advances accepted, and explain that a deadline bounds a failure but does not prove completion.
|
|
23
|
+
|
|
3
24
|
## 0.60.0 - 2026-11-04
|
|
4
25
|
|
|
5
26
|
### Added
|
package/README.md
CHANGED
|
@@ -64,10 +64,26 @@ ruleStory.it(
|
|
|
64
64
|
);
|
|
65
65
|
```
|
|
66
66
|
|
|
67
|
-
Seed a `quality.config.ts` that registers the custom rule to test the whole gate. `gate()` runs `quality lint`; `gateOutcome()` reads `passed`, `rejected` or `invalid`,
|
|
67
|
+
Seed a `quality.config.ts` that registers the custom rule to test the whole gate. `gate()` runs `quality lint`; `gateOutcome()` reads `passed`, `rejected` or `invalid`, `gateReport()` reads its output, and `gateReports(prefix)` reads the finding sections whose rule starts with that prefix. `writes(...)` changes fixture files and `removes(path)` deletes them. Use the kit’s `qualityInstalled()` trait when a fixture imports Quality or its tooling presets. It links the installed package into that fixture. The kit removes its temporary repository when the scope closes. Config imports are cached within the process, so use `quality` from `@shivaedev/quality/testing/adapters/cli.ts` to spawn a fresh command after changing a config.
|
|
68
68
|
|
|
69
69
|
For an existing kit, compose the lower-level helpers through its local test-support facade: `seedTree` and `removeSeededTrees` from `@shivaedev/quality/testing/adapters/tree.ts` manage fixture files; `scanned` and `findingsIn` from `@shivaedev/quality/testing/adapters/imports.ts` collect inventory and run a configured rule; `runQuality` from `@shivaedev/quality/testing/adapters/cli.ts` runs commands in process. Yield `runQuality(root, "lint")` as an Effect in the kit so it uses the story's controlled clock. These helpers use the same engine as the rule story kit.
|
|
70
70
|
|
|
71
|
+
### Folders that are not Effect code
|
|
72
|
+
|
|
73
|
+
Declare deliberately non-Effect subsystems, such as a game engine or simulation, once in `quality.config.ts`:
|
|
74
|
+
|
|
75
|
+
```ts
|
|
76
|
+
import { defineConfig } from "@shivaedev/quality/config.ts";
|
|
77
|
+
|
|
78
|
+
export default defineConfig({
|
|
79
|
+
nonEffectFolders: ["src/game/engine", "src/game/simulation"],
|
|
80
|
+
});
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
`nonEffectFolders` names explicit folders relative to the config directory, without glob patterns or parent traversal. A declaration covers every descendant and does not cover similarly named siblings. A leading `./` or trailing slash is accepted. Inside these folders, every `effect/*` rule and the Effect-specific Biome plugins (ambient runtime, Effect functions and test bodies, Schema naming and keys, and service Layers) are off. Every other rule remains on, including formatting, comments, naming, imports and suppression checks.
|
|
84
|
+
|
|
85
|
+
The declaration describes code, not imports: an Effect module importing a non-Effect subsystem stays checked, including service types imported from that subsystem. The full inventory and import graph remain available to every rule. Declare the folders in config instead of recording their Effect findings as permanent debt.
|
|
86
|
+
|
|
71
87
|
### Effect boundaries and services
|
|
72
88
|
|
|
73
89
|
`effect/boundary` checks every TypeScript or JavaScript source in Quality's inventory, including shipped code, tooling and specs. It reports async functions, methods and arrows, await (including `for await`), `new Promise(...)`, `.then(...)`, try statements and throw statements. Model the work with Effect, fail with a tagged error, and use `Effect.die` for defects. Effect's resource and finalizer primitives model cleanup.
|
|
@@ -76,15 +92,15 @@ It also reports synchronous calls imported from `node:fs` and `node:child_proces
|
|
|
76
92
|
|
|
77
93
|
`Effect.run*` references in core are reported even without Clock, Config or Random. Yield the computation so it uses the caller's runtime. Runners are accepted in `cli.ts`, `main.ts(x)`, `entry.ts(x)`, `*-cli.ts`, tool configs and tests, modules that call `runMain`, and modules with the `fileURLToPath(import.meta.url) === process.argv[1]` entry guard. Browser bootstraps use the `main` or `entry` filename convention; the starter uses `src/client/main.tsx`. These entry-point conventions accept runners only; the other boundary checks still apply.
|
|
78
94
|
|
|
79
|
-
|
|
95
|
+
Within Effect code, folders named `adapters/` or `test-support/`, at any depth, are exempt from this boundary rule. An `adapters/` folder bridges an outside library and hands the rest of the application Effect values. The name is fixed by convention, with no config or copied Biome plugin globs. Adapter code still follows `effect/service-parameters` and the ambient time, randomness, console and environment bans.
|
|
80
96
|
|
|
81
97
|
The `ambient-runtime` Biome plugin also reports `Effect.run*` calls whose computation contains `Clock`, `Config` or `Random`, `currentTimeMillisUnsafe`, crypto UUIDs and bytes, `performance.now`, process arguments, working directory and exit state, `globalThis.process.env`, timeouts and microtasks. Yield service computations in the caller's Effect so its environment controls them. These additional checks apply to core TypeScript code. They accept `cli.ts`, `main.ts(x)`, `entry.ts(x)`, `*-cli.ts`, modules that call `runMain`, use `NodeRuntime.runMain` or guard execution with `fileURLToPath(import.meta.url) === process.argv[1]`, tool configs, tests, `adapters/` and `test-support/`. The existing `Date.now()`, `new Date()`, `Math.random()`, console and direct `process.env` bans still apply there.
|
|
82
98
|
|
|
83
|
-
`effect/service-parameters` reports parameters carrying a service in exported functions and public methods, including returned factories. It follows service classes and tags, non-empty Contexts and service implementation shapes through aliases, interfaces, generic constraints, inferred parameters and destructuring. Read services from Effect's environment instead. An Effect or Stream requiring a service is a computation and is accepted. Methods implementing a service and functions constructing Layers may take services as parameters.
|
|
99
|
+
`effect/service-parameters` reports parameters carrying a service in exported functions and public methods, including returned factories. It follows service classes and tags, non-empty Contexts and service implementation shapes through aliases, interfaces, generic constraints, inferred parameters and destructuring. Read services from Effect's environment instead. An Effect or Stream requiring a service is a computation and is accepted. Methods implementing a service and functions constructing Layers may take services as parameters. Within Effect code, `test-support/` folders are exempt from this rule; `adapters/` folders are checked. Installed implementation shapes are discovered in the consuming repository's package scopes, alongside the framework service package's scope.
|
|
84
100
|
|
|
85
101
|
Both rules refuse config exceptions and inline suppressions. Record existing debt with `quality baseline write --rule effect/boundary --file src/legacy.ts` and `quality baseline write --rule effect/service-parameters --file src/legacy.ts`; the normal report and baseline burn-down apply.
|
|
86
102
|
|
|
87
|
-
When an upgrade expands these checks, inspect the new findings, repair the small ones and record retained debt with `quality baseline write --first-adoption --rule effect/boundary` (or `--rule effect/service-parameters`). This explicit first-adoption mode
|
|
103
|
+
When an upgrade expands these checks, inspect the new findings, repair the small ones and record retained debt with `quality baseline write --first-adoption --rule effect/boundary` (or `--rule effect/service-parameters`). This explicit first-adoption mode accepts every rule, including rules that permit config exceptions, and may record unchanged files. With an existing baseline, name the rules being adopted. Review each raised count and explain its reason in the pull request. Ordinary writes still require changed `--file` selections. Run `quality baseline tighten` after repairs to lower the touched files' counts.
|
|
88
104
|
|
|
89
105
|
### Package service ids
|
|
90
106
|
|
|
@@ -167,7 +183,7 @@ quality hooks install
|
|
|
167
183
|
|
|
168
184
|
For an application setup script, use `quality setup`. It installs the same hook when the current folder has its own `.git` entry, including a linked worktree. An unversioned app or an app inside another repository leaves hooks alone.
|
|
169
185
|
|
|
170
|
-
Installing the package does not install a hook. `hooks install` writes the repository's pre-commit hook. A hook Quality did not write is kept unless `--force` replaces it. For an existing repository, `quality baseline write` records error-level findings when there is no baseline; ordinary later writes require `--rule <id>` and `--file <path>`. Each selected path must be changed since `HEAD`; stage new files first.
|
|
186
|
+
Installing the package does not install a hook. `hooks install` writes the repository's pre-commit hook. A hook Quality did not write is kept unless `--force` replaces it. For an existing repository, `quality baseline write` records error-level findings when there is no baseline; ordinary later writes require `--rule <id>` and `--file <path>`. Each selected path must be changed since `HEAD`; stage new files first. `quality baseline write --first-adoption` also records every rule repo-wide when there is no baseline, including rules that permit config exceptions. With an existing baseline, first-adoption writes require explicit `--rule <id>` selections for a policy upgrade; omitting them refuses the write. Ordinary later writes still require changed file selections.
|
|
171
187
|
|
|
172
188
|
When upgrading Quality, the starter and apps generated by create-app provide `pnpm baseline write --rule <id> --file <path>`. Record each new rule’s findings in the changed files, review the baseline diff, and land the upgrade before burning down that debt. Checks remain strict for findings above the recorded counts. After repairs, run `pnpm baseline tighten` to lower the touched files’ debt.
|
|
173
189
|
|
|
@@ -273,11 +289,15 @@ Quality's `tests/story-setup` rule reports top-level test functions named with t
|
|
|
273
289
|
|
|
274
290
|
Specs keep expectations visible. `tests/spec-helpers` moves all module-level helper functions out of specs and into the kit; `tests/no-expect-in-support` moves `expect` calls into the spec, except in test-support files that register tests at module top level and are not imported by any module, so nested Vitest runs can execute them as test files with real assertions. `tests/named-values` rejects numeric literals passed to `toBe` or `toHaveLength` in specs, except zero and process exit codes asserted on an `exitCode` subject: assert the observed items or use a domain name that comes from the story's inputs or the product. For HTTP statuses, import `* as HttpStatus` from `effect/http/HttpStatus` and use `HttpStatus.fromLiteral("NotFound")`; subjects named `status` or `code` do not exempt numeric assertions. A spec-local numeric const that only feeds these matchers is reported, including aliases for zero and codes. `tests/no-limit-imports` rejects importing `MAX_*` constants from a `limits` module into specs, so a story proves behavior instead of copying an implementation cap.
|
|
275
291
|
|
|
276
|
-
Three more rules keep a spec readable as a story, as the [story-testing skill](https://github.com/ShivaeDev/platform/blob/main/packages/skills/skills/story-testing/SKILL.md) describes. Together with `tests/spec-helpers`, `tests/named-values` and `tests/no-limit-imports`, they read files whose test declarations trace to a story kit, whatever their suffix: a `.test` or `.spec` file outside `test-support` that is not a type or unit test, such as `orders.spec.ts`, `pane.dom.test.ts` or `orders.slow.test.ts`. The suffix says where a test sits under `tests/follow`, not whether it is a story, and `tests/story-specs` already holds every such file to the story kit. They exempt the same test-story prerequisites as `tests/story-specs`. `tests/domain-outcomes` reports each use of Effect's `Exit`, `Cause` or `Result` module, each `_tag` read or destructuring, and each object literal tagged `"Success"` or `"Failure"`: the kit's verb or readout returns the outcome in the domain's words, such as `"unauthorized"`, and a trait builds any failing input. A domain's own tagged value, such as `{ _tag: "Resync" }`, passes. `tests/grouped-outcomes` reports each run of two or more consecutive `expect(yield* …)` statements once, at its first statement: write the outcomes as rows of one `outcomes` call.
|
|
292
|
+
Three more rules keep a spec readable as a story, as the [story-testing skill](https://github.com/ShivaeDev/platform/blob/main/packages/skills/skills/story-testing/SKILL.md) describes. Together with `tests/spec-helpers`, `tests/named-values` and `tests/no-limit-imports`, they read files whose test declarations trace to a story kit, whatever their suffix: a `.test` or `.spec` file outside `test-support` that is not a type or unit test, such as `orders.spec.ts`, `pane.dom.test.ts` or `orders.slow.test.ts`. The suffix says where a test sits under `tests/follow`, not whether it is a story, and `tests/story-specs` already holds every such file to the story kit. They exempt the same test-story prerequisites as `tests/story-specs`. `tests/domain-outcomes` reports each use of Effect's `Exit`, `Cause` or `Result` module, each `_tag` read or destructuring, and each object literal tagged `"Success"` or `"Failure"`: the kit's verb or readout returns the outcome in the domain's words, such as `"unauthorized"`, and a trait builds any failing input. A domain's own tagged value, such as `{ _tag: "Resync" }`, passes. `tests/grouped-outcomes` reports each run of two or more consecutive `expect(yield* …)` statements once, at its first statement: write the outcomes as rows of one `outcomes` call.
|
|
293
|
+
|
|
294
|
+
`tests/wait-on-events` checks those story specs and the `test-support/` modules reachable through their runtime imports, including aliases, re-exports and literal dynamic imports. It reports `Effect.sleep`, `setTimeout` and `setInterval`, calls to an imported `eventually`, Vitest's fake timers and `vi.waitFor`, including polling loops and quiet windows built from these calls. Product modules keep their timers. `TestClock.adjust` and `TestClock.setTime` are reported in specs and accepted in support: when time passing is the behaviour, advance the controlled clock in a kit verb named for it.
|
|
295
|
+
|
|
296
|
+
Settle on the engine's own signal through a kit verb. A deadline bounds a failure but does not prove completion; reaching it must fail the story. The rule accepts failing Effect timeouts, a sleep piped directly into `Effect.andThen(Effect.fail(...))` or `Effect.andThen(Effect.die(...))`, and timeout callbacks that end by calling their enclosing Promise executor's rejection parameter. A resolving timeout or a sleep that ends successfully still guesses when the work is done.
|
|
277
297
|
|
|
278
298
|
`tests/positive-refusals` reports `.not.toBe` and `.not.toEqual` on a readout or field whose name ends in `outcome` (case insensitive), including locally stored readout aliases. In the same story, positively assert a concrete domain reason or public response on that same outcome with `toBe`, `toEqual`, `toMatchObject` or an `outcomes` row. For example, pair `expect(yield* submitOutcome()).not.toBe("saved")` with `expect(yield* submitOutcome()).toBe("unauthorized")`, or replace the negative check with the positive one. Another story, another outcome, an empty object or a boolean does not supply that evidence. The rule uses the same story-file scope and prerequisite exemptions as `tests/domain-outcomes`; it checks visible assertion syntax, while review establishes that a readout preserves unexpected failures.
|
|
279
299
|
|
|
280
|
-
`tests/queue-readouts` reports access to jobs-testing's `jobs` and `snapshot` readouts in tests and `test-support/`, including wrappers that return counts or job states. An enqueued job does not prove the work ran: assert the application's visible result instead. Worker controls and waits remain available. The check recognizes receivers named `jobsTesting`, controllers constructed with `makePgBossTesting` or annotated with the imported `PgBossTesting` type, local and imported aliases, destructuring and literal bracket access. It does not evaluate dynamic property names or arbitrary controller factories. The package named `@shivaedev/jobs` is exempt, at the repository root or wherever it lives in the workspace; nested application packages remain checked. This rule refuses config exceptions and inline suppressions.
|
|
300
|
+
`tests/queue-readouts` reports access to jobs-testing's `jobs` and `snapshot` readouts in tests and `test-support/`, including wrappers that return counts or job states. An enqueued job does not prove the work ran: assert the application's visible result instead. Worker controls and waits remain available. The check recognizes receivers named `jobsTesting`, controllers constructed with `makePgBossTesting` or annotated with the imported `PgBossTesting` type, local and imported aliases, destructuring and literal bracket access. It does not evaluate dynamic property names or arbitrary controller factories. The package named `@shivaedev/jobs` is exempt, at the repository root or wherever it lives in the workspace; test-kits also owns readout evidence under its `src/jobs/` and `src/test-support/jobs/` folders. Other test-kits domains and nested application packages remain checked. This rule refuses config exceptions and inline suppressions.
|
|
281
301
|
|
|
282
302
|
`boundaries/queue-sql` rejects SQL mentioning the private `pgboss.` schema. Apps use their queue definitions and let workers process jobs; there is no queue-purge API by design. `boundaries/auth-sql` rejects SQL accessing Better Auth's `user`, `account`, `session` and `verification` tables. App tables reference users by foreign key: migrations may reference only `user(id)` with `ON DELETE CASCADE` or `ON DELETE SET NULL`. Import `userReference` from `@shivaedev/identity/server/better-auth/userReference.ts` and interpolate `sql(userReference.table)` and `sql(userReference.column)` in the reference. Apps use identity for account data; `options.owners` names platform's own auth implementation and its migrations. These rules inspect SQL templates, literal query calls and query variables, and inventoried `.sql` files. They do not evaluate arbitrary runtime SQL construction.
|
|
283
303
|
|
|
@@ -475,15 +495,16 @@ Import names from their defining module; there is no root entry. The package's `
|
|
|
475
495
|
|
|
476
496
|
#### Config
|
|
477
497
|
|
|
478
|
-
| Key
|
|
479
|
-
|
|
|
480
|
-
| `sources`
|
|
481
|
-
| `
|
|
482
|
-
| `
|
|
483
|
-
| `
|
|
484
|
-
| `
|
|
485
|
-
| `
|
|
486
|
-
| `
|
|
498
|
+
| Key | Default | Meaning |
|
|
499
|
+
| ------------------ | ------------------------------------------------------------ | --------------------------------------------------------------------------------------------------------------------- |
|
|
500
|
+
| `sources` | `["."]` | Directories or files the source rules check, relative to the repository root. |
|
|
501
|
+
| `nonEffectFolders` | `[]` | Explicit folders whose descendants are not Effect code; other quality rules still apply. |
|
|
502
|
+
| `extensions` | `.ts`, `.tsx`, `.mts`, `.cts`, `.js`, `.jsx`, `.mjs`, `.cjs` | Source extensions. |
|
|
503
|
+
| `baseline` | `quality-baseline.jsonl` | Root shard for paths outside packages; package shards use `packages/<package>/quality-baseline.jsonl`. |
|
|
504
|
+
| `exceptions` | `[]` | Permanent exceptions as `{ files, rules, reason, subject? }`. |
|
|
505
|
+
| `registry` | `quality/registry.json` | Legacy input for upgrades; run `quality exceptions migrate`. |
|
|
506
|
+
| `local` | `[]` | Exposed extension API for rules made with `defineRule`; not required for adoption. |
|
|
507
|
+
| `rules` | Every rule at `error` | Options by rule id, such as import boundaries. An explicit `error` or `{ level: "error", options }` is also accepted. |
|
|
487
508
|
|
|
488
509
|
#### Local rules
|
|
489
510
|
|
|
@@ -2,5 +2,5 @@ import { Effect, FileSystem, type PlatformError, Schema, type Scope } from "effe
|
|
|
2
2
|
export declare function parseConfig(path: string, text: string): Effect.Effect<{
|
|
3
3
|
readonly [x: string]: unknown;
|
|
4
4
|
}, Schema.SchemaError, never>;
|
|
5
|
-
export declare function relocateConfig(root: string, original: string, config: Readonly<Record<string, unknown
|
|
5
|
+
export declare function relocateConfig(root: string, original: string, config: Readonly<Record<string, unknown>>, nonEffectFolders?: readonly string[]): Effect.Effect<string, PlatformError.PlatformError | Schema.SchemaError, FileSystem.FileSystem | Scope.Scope>;
|
|
6
6
|
//# sourceMappingURL=relocateConfig.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"relocateConfig.d.ts","sourceRoot":"","sources":["../../../src/adapters/biome/relocateConfig.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,KAAK,aAAa,EAAE,MAAM,EAAE,KAAK,KAAK,EAAE,MAAM,QAAQ,CAAC;
|
|
1
|
+
{"version":3,"file":"relocateConfig.d.ts","sourceRoot":"","sources":["../../../src/adapters/biome/relocateConfig.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,KAAK,aAAa,EAAE,MAAM,EAAE,KAAK,KAAK,EAAE,MAAM,QAAQ,CAAC;AAMpF,wBAAgB,WAAW,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM;;8BAKrD;AA6CD,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,EAAE,gBAAgB,GAAE,SAAS,MAAM,EAAO,gHAEjJ"}
|
|
@@ -2,6 +2,7 @@ import { createRequire } from "node:module";
|
|
|
2
2
|
import { dirname, resolve } from "node:path";
|
|
3
3
|
import { Effect, FileSystem, Schema } from "effect";
|
|
4
4
|
import ts from "typescript";
|
|
5
|
+
import { nonEffectPlugins } from "#biome/nonEffectPlugins.ts";
|
|
5
6
|
const ObjectConfig = Schema.Record(Schema.String, Schema.Unknown);
|
|
6
7
|
export function parseConfig(path, text) {
|
|
7
8
|
const parsed = ts.parseConfigFileTextToJson(path, text);
|
|
@@ -9,7 +10,7 @@ export function parseConfig(path, text) {
|
|
|
9
10
|
? Schema.decodeUnknownEffect(ObjectConfig)(parsed.config)
|
|
10
11
|
: Effect.die(new Error(`Cannot load ${path}: ${ts.flattenDiagnosticMessageText(parsed.error.messageText, " ")}`));
|
|
11
12
|
}
|
|
12
|
-
const writeConfig = Effect.fn("Biome.writeConfig")(function* (root, original, config, paths) {
|
|
13
|
+
const writeConfig = Effect.fn("Biome.writeConfig")(function* (root, original, config, paths, nonEffectFolders) {
|
|
13
14
|
const existing = paths.get(original);
|
|
14
15
|
if (existing !== undefined) {
|
|
15
16
|
return existing;
|
|
@@ -22,7 +23,7 @@ const writeConfig = Effect.fn("Biome.writeConfig")(function* (root, original, co
|
|
|
22
23
|
for (const specifier of Array.isArray(config.extends) ? config.extends : []) {
|
|
23
24
|
const source = specifier.startsWith(".") ? resolve(dirname(original), specifier) : require.resolve(specifier);
|
|
24
25
|
const inherited = yield* parseConfig(source, yield* fs.readFileString(source));
|
|
25
|
-
extended.push(yield* writeConfig(root, source, inherited, paths));
|
|
26
|
+
extended.push(yield* writeConfig(root, source, inherited, paths, nonEffectFolders));
|
|
26
27
|
}
|
|
27
28
|
const vcs = config.vcs ?? {};
|
|
28
29
|
const generated = {
|
|
@@ -30,7 +31,7 @@ const writeConfig = Effect.fn("Biome.writeConfig")(function* (root, original, co
|
|
|
30
31
|
...(Array.isArray(config.extends) ? { extends: extended } : {}),
|
|
31
32
|
...(Array.isArray(config.plugins)
|
|
32
33
|
? {
|
|
33
|
-
plugins: config.plugins.map((plugin) => typeof plugin === "string" ? resolve(root, plugin) : { ...plugin, path: resolve(root, plugin.path) }),
|
|
34
|
+
plugins: nonEffectPlugins(config.plugins, nonEffectFolders).map((plugin) => typeof plugin === "string" ? resolve(root, plugin) : { ...plugin, path: resolve(root, plugin.path) }),
|
|
34
35
|
}
|
|
35
36
|
: {}),
|
|
36
37
|
vcs: Schema.is(ObjectConfig)(vcs)
|
|
@@ -43,7 +44,7 @@ const writeConfig = Effect.fn("Biome.writeConfig")(function* (root, original, co
|
|
|
43
44
|
yield* fs.writeFileString(path, JSON.stringify(generated));
|
|
44
45
|
return path;
|
|
45
46
|
});
|
|
46
|
-
export function relocateConfig(root, original, config) {
|
|
47
|
-
return writeConfig(root, original, config, new Map());
|
|
47
|
+
export function relocateConfig(root, original, config, nonEffectFolders = []) {
|
|
48
|
+
return writeConfig(root, original, config, new Map(), nonEffectFolders);
|
|
48
49
|
}
|
|
49
50
|
//# sourceMappingURL=relocateConfig.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"relocateConfig.js","sourceRoot":"","sources":["../../../src/adapters/biome/relocateConfig.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAC7C,OAAO,EAAE,MAAM,EAAE,UAAU,EAAsB,MAAM,EAAc,MAAM,QAAQ,CAAC;AACpF,OAAO,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"relocateConfig.js","sourceRoot":"","sources":["../../../src/adapters/biome/relocateConfig.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAC7C,OAAO,EAAE,MAAM,EAAE,UAAU,EAAsB,MAAM,EAAc,MAAM,QAAQ,CAAC;AACpF,OAAO,EAAE,MAAM,YAAY,CAAC;AAC5B,OAAO,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAE9D,MAAM,YAAY,GAAG,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,OAAO,CAAC,CAAC;AAElE,MAAM,UAAU,WAAW,CAAC,IAAY,EAAE,IAAY;IACrD,MAAM,MAAM,GAAG,EAAE,CAAC,yBAAyB,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;IACxD,OAAO,MAAM,CAAC,KAAK,KAAK,SAAS;QAChC,CAAC,CAAC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AC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,IAAI,IAAI,IAAI,CAAC;aACjF;YACF,CAAC,CAAC,GAAG;KACN,CAAC;IACF,KAAK,CAAC,CAAC,EAAE,CAAC,eAAe,CAAC,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC,CAAC;IAC3D,OAAO,IAAI,CAAC;AACb,CAAC,CAAC,CAAC;AAEH,MAAM,UAAU,cAAc,CAAC,IAAY,EAAE,QAAgB,EAAE,MAAyC,EAAE,gBAAgB,GAAsB,EAAE;IACjJ,OAAO,WAAW,CAAC,IAAI,EAAE,QAAQ,EAAE,MAAM,EAAE,IAAI,GAAG,EAAE,EAAE,gBAAgB,CAAC,CAAC;AACzE,CAAC"}
|
|
@@ -9,7 +9,7 @@ export declare const runBiome: (root: string, args: readonly string[], exception
|
|
|
9
9
|
readonly reason: string;
|
|
10
10
|
readonly rules: readonly [string, ...string[]];
|
|
11
11
|
readonly subject?: string;
|
|
12
|
-
}[] | undefined) => Effect.Effect<{
|
|
12
|
+
}[] | undefined, nonEffectFolders?: readonly string[] | undefined) => Effect.Effect<{
|
|
13
13
|
code: number;
|
|
14
14
|
stderr: string;
|
|
15
15
|
stdout: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"run.d.ts","sourceRoot":"","sources":["../../../src/adapters/biome/run.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAU,MAAM,QAAQ,CAAC;AAMxC,MAAM,WAAW,QAAQ;IACxB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;CACxB;AAID,eAAO,MAAM,QAAQ;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"run.d.ts","sourceRoot":"","sources":["../../../src/adapters/biome/run.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAU,MAAM,QAAQ,CAAC;AAMxC,MAAM,WAAW,QAAQ;IACxB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;CACxB;AAID,eAAO,MAAM,QAAQ;;;;;;;;;kOAiCnB,CAAC"}
|
|
@@ -5,7 +5,7 @@ import { ChildProcess, ChildProcessSpawner } from "effect/process";
|
|
|
5
5
|
import { withExceptionConfig } from "#adapters/biome/withExceptionConfig.ts";
|
|
6
6
|
import { shadcnFiles } from "#inventory/shadcnFiles.ts";
|
|
7
7
|
const BIN = createRequire(import.meta.url).resolve("@biomejs/biome/bin/biome");
|
|
8
|
-
export const runBiome = Effect.fn("Biome.runBiome")(function* (root, args, exceptions = []) {
|
|
8
|
+
export const runBiome = Effect.fn("Biome.runBiome")(function* (root, args, exceptions = [], nonEffectFolders = []) {
|
|
9
9
|
const files = yield* shadcnFiles(root);
|
|
10
10
|
const toolOwned = [
|
|
11
11
|
{
|
|
@@ -19,6 +19,6 @@ export const runBiome = Effect.fn("Biome.runBiome")(function* (root, args, excep
|
|
|
19
19
|
const child = yield* spawner.spawn(ChildProcess.make(process.execPath, [BIN, ...args, ...configArgs, "--colors=off"], { cwd: root, stdin: "ignore" }));
|
|
20
20
|
const [stdout, stderr, code] = yield* Effect.all([Stream.mkString(Stream.decodeText(child.stdout)), Stream.mkString(Stream.decodeText(child.stderr)), child.exitCode], { concurrency: "unbounded" });
|
|
21
21
|
return { code: Number(code), stderr, stdout };
|
|
22
|
-
})));
|
|
22
|
+
}), nonEffectFolders));
|
|
23
23
|
});
|
|
24
24
|
//# sourceMappingURL=run.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"run.js","sourceRoot":"","sources":["../../../src/adapters/biome/run.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO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AAE,MAAM,EAAE,CAAC;IAC/C,CAAC,CAAC,EACH,gBAAgB,CAChB,CACD,CAAC;AACH,CAAC,CAAC,CAAC"}
|
|
@@ -4,5 +4,5 @@ export declare const withExceptionConfig: <TValue, TError, TRequirements>(root:
|
|
|
4
4
|
readonly reason: string;
|
|
5
5
|
readonly rules: readonly [string, ...string[]];
|
|
6
6
|
readonly subject?: string;
|
|
7
|
-
}[], run: (args: readonly string[]) => Effect.Effect<TValue, TError, TRequirements
|
|
7
|
+
}[], run: (args: readonly string[]) => Effect.Effect<TValue, TError, TRequirements>, nonEffectFolders?: readonly string[] | undefined) => Effect.Effect<TValue, TError | import("#inventory/filesystem.ts").FilesystemFailure | import("effect/PlatformError").PlatformError | Schema.SchemaError, TRequirements | import("effect/FileSystem").FileSystem | import("effect/Scope").Scope>;
|
|
8
8
|
//# sourceMappingURL=withExceptionConfig.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"withExceptionConfig.d.ts","sourceRoot":"","sources":["../../../src/adapters/biome/withExceptionConfig.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAMxC,eAAO,MAAM,mBAAmB,GAAqD,MAAM,EAAE,MAAM,EAAE,aAAa;;;;;iBAGrG,SAAS,MAAM,EAAE,KAAK,MAAM,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,aAAa,CAAC,
|
|
1
|
+
{"version":3,"file":"withExceptionConfig.d.ts","sourceRoot":"","sources":["../../../src/adapters/biome/withExceptionConfig.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAMxC,eAAO,MAAM,mBAAmB,GAAqD,MAAM,EAAE,MAAM,EAAE,aAAa;;;;;iBAGrG,SAAS,MAAM,EAAE,KAAK,MAAM,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,aAAa,CAAC,sSAmC7E,CAAC"}
|
|
@@ -3,9 +3,9 @@ import { Effect, Schema } from "effect";
|
|
|
3
3
|
import { exceptionConfig } from "#biome/exceptionConfig.ts";
|
|
4
4
|
import { readOptionalText } from "#inventory/filesystem.ts";
|
|
5
5
|
import { parseConfig, relocateConfig } from "./relocateConfig.js";
|
|
6
|
-
export const withExceptionConfig = Effect.fn("Biome.withExceptionConfig")(function* (root, declarations, run) {
|
|
6
|
+
export const withExceptionConfig = Effect.fn("Biome.withExceptionConfig")(function* (root, declarations, run, nonEffectFolders = []) {
|
|
7
7
|
const { includes, overrides } = exceptionConfig(declarations);
|
|
8
|
-
if (includes.length === 0 && overrides.length === 0) {
|
|
8
|
+
if (includes.length === 0 && overrides.length === 0 && nonEffectFolders.length === 0) {
|
|
9
9
|
return yield* run([]);
|
|
10
10
|
}
|
|
11
11
|
const { config, text } = yield* Effect.gen(function* () {
|
|
@@ -32,7 +32,7 @@ export const withExceptionConfig = Effect.fn("Biome.withExceptionConfig")(functi
|
|
|
32
32
|
files: { ...files, includes: [...previousIncludes, ...includes.filter((pattern) => pattern !== "**"), "!.worktrees", "!.quality-biome-*"] },
|
|
33
33
|
overrides: [...previousOverrides, ...overrides],
|
|
34
34
|
};
|
|
35
|
-
const path = yield* relocateConfig(root, join(root, config), generated);
|
|
35
|
+
const path = yield* relocateConfig(root, join(root, config), generated, nonEffectFolders);
|
|
36
36
|
return yield* run([`--config-path=${path}`]);
|
|
37
37
|
});
|
|
38
38
|
//# sourceMappingURL=withExceptionConfig.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"withExceptionConfig.js","sourceRoot":"","sources":["../../../src/adapters/biome/withExceptionConfig.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AACxC,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAE5D,OAAO,EAAE,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AK,CAAC,OAAO,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;IACjF,MAAM,iBAAiB,GAAG,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC;IAC5E,6IAA6I;IAC7I,MAAM,SAAS,GAAG;QACjB,GAAG,GAAG;QACN,KAAK,EAAE,EAAE,GAAG,KAAK,EAAE,QAAQ,EAAE,CAAC,GAAG,gBAAgB,EAAE,GAAG,QAAQ,CAAC,MAAM,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,KAAK,IAAI,CAAC,EAAE,aAAa,EAAE,mBAAmB,CAAC,EAAE;QAC3I,SAAS,EAAE,CAAC,GAAG,iBAAiB,EAAE,GAAG,SAAS,CAAC;KAC/C,CAAC;IACF,MAAM,IAAI,GAAG,KAAK,CAAC,CAAC,cAAc,CAAC,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,MAAM,CAAC,EAAE,SAAS,EAAE,gBAAgB,CAAC,CAAC;IAC1F,OAAO,KAAK,CAAC,CAAC,GAAG,CAAC,CAAC,iBAAiB,IAAI,EAAE,CAAC,CAAC,CAAC;AAC9C,CAAC,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"queueReadoutFindings.d.ts","sourceRoot":"","sources":["../../src/adapters/queueReadoutFindings.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAKhC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAS3C,eAAO,MAAM,oBAAoB;;;;
|
|
1
|
+
{"version":3,"file":"queueReadoutFindings.d.ts","sourceRoot":"","sources":["../../src/adapters/queueReadoutFindings.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAKhC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAS3C,eAAO,MAAM,oBAAoB;;;;uEAwB/B,CAAC"}
|
|
@@ -15,8 +15,11 @@ export const queueReadoutFindings = Effect.fn("Stories.queueReadoutFindings")(fu
|
|
|
15
15
|
const program = storyProgram(inputs, graph);
|
|
16
16
|
const origin = queueTestingOrigin(program.getTypeChecker());
|
|
17
17
|
return inputs.sources.flatMap((file) => {
|
|
18
|
-
const
|
|
19
|
-
|
|
18
|
+
const workspace = packageOf(graph.packages, file.path);
|
|
19
|
+
const owner = workspace?.name ?? root?.name;
|
|
20
|
+
const local = workspace === undefined ? file.path : file.path.slice(workspace.directory.length + 1);
|
|
21
|
+
const controller = owner === "@shivaedev/test-kits" && (local.startsWith("src/jobs/") || local.startsWith("src/test-support/jobs/"));
|
|
22
|
+
if (!isTestCode(file.path) || owner === "@shivaedev/jobs" || controller) {
|
|
20
23
|
return [];
|
|
21
24
|
}
|
|
22
25
|
const source = program.getSourceFile(join(inputs.root, file.path));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"queueReadoutFindings.js","sourceRoot":"","sources":["../../src/adapters/queueReadoutFindings.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAChC,OAAO,EAAE,MAAM,YAAY,CAAC;AAC5B,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEjD,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AACtD,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAC7D,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,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;QACX,CAAC;QACD,MAAM,MAAM,GAAG,OAAO,CAAC,aAAa,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;QACnE,IAAI,MAAM,KAAK,SAAS,EAAE,CAAC;YAC1B,OAAO,EAAE,CAAC;QACX,CAAC;QACD,OAAO,UAAU,CAChB,MAAM,EACN,CAAC,IAAI,EAAE,EAAE,CACR,CAAC,CAAC,EAAE,CAAC,0BAA0B,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,yBAAyB,CAAC,IAAI,CAAC,CAAC,IAAI,MAAM,CAAC,IAAI,CAAC,KAAK,SAAS,CAAC;eACxG,CAAC,EAAE,CAAC,gBAAgB,CAAC,IAAI,CAAC,IAAI,MAAM,CAAC,IAAI,CAAC,KAAK,SAAS,CAAC,CAC7D,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,IAAI,EAAE,MAAM,CAAC,6BAA6B,CAAC,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,GAAG,CAAC,EAAE,OAAO,EAAE,OAAO,EAAE,CAAC,CAAC,CAAC;IACtI,CAAC,CAAC,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import ts from "typescript";
|
|
2
2
|
import { importFrom } from "#rules/stories/importOrigin.ts";
|
|
3
3
|
import { memberName, unwrapped } from "#rules/stories/syntax.ts";
|
|
4
|
-
const TESTING_MODULE = "@shivaedev/jobs/
|
|
4
|
+
const TESTING_MODULE = "@shivaedev/test-kits/jobs/testing.ts";
|
|
5
5
|
function importedOrigin(node) {
|
|
6
6
|
if (importFrom(node) !== TESTING_MODULE) {
|
|
7
7
|
return undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"queueTestingOrigin.js","sourceRoot":"","sources":["../../src/adap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CAAC;QACD,IAAI,EAAE,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,SAAS,CAAC,IAAI,CAAC,KAAK,IAAI,EAAE,CAAC;YACvD,OAAO,KAAK,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC;QAC/B,CAAC;QACD,OAAO,SAAS,CAAC,IAAI,CAAC,CAAC;IACxB,CAAC;IAED,SAAS,KAAK,CAAC,IAAa;QAC3B,IAAI,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC;YAC3C,OAAO,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;QACxB,CAAC;QACD,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;QACnB,MAAM,MAAM,GAAG,MAAM,CAAC,IAAI,CAAC,CAAC;QAC5B,QAAQ,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;QACtB,KAAK,CAAC,GAAG,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;QACxB,OAAO,MAAM,CAAC;IACf,CAAC;IAED,OAAO,KAAK,CAAC;AACd,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"nonEffectPlugins.d.ts","sourceRoot":"","sources":["../../src/biome/nonEffectPlugins.ts"],"names":[],"mappings":"AAYA,KAAK,MAAM,GAAG,MAAM,GAAG;IAAE,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,QAAQ,CAAC,EAAE,SAAS,MAAM,EAAE,CAAA;CAAE,CAAC;AAExF,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,SAAS,MAAM,EAAE,EAAE,OAAO,EAAE,SAAS,MAAM,EAAE,YAYtF"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { nonEffectFolderPath } from "#config/nonEffectFolders.ts";
|
|
2
|
+
const EFFECT_PLUGINS = new Set([
|
|
3
|
+
"ambient-runtime.grit",
|
|
4
|
+
"effect-fn-spans.grit",
|
|
5
|
+
"effect-fn-functions.grit",
|
|
6
|
+
"effect-test-bodies.grit",
|
|
7
|
+
"schema-names.grit",
|
|
8
|
+
"schema-struct-keys.grit",
|
|
9
|
+
"service-layers.grit",
|
|
10
|
+
]);
|
|
11
|
+
export function nonEffectPlugins(plugins, folders) {
|
|
12
|
+
return plugins.map((plugin) => {
|
|
13
|
+
const path = typeof plugin === "string" ? plugin : plugin.path;
|
|
14
|
+
if (!EFFECT_PLUGINS.has(path.replaceAll("\\", "/").split("/").at(-1) ?? "") || folders.length === 0) {
|
|
15
|
+
return plugin;
|
|
16
|
+
}
|
|
17
|
+
const includes = typeof plugin === "string" ? ["**"] : (plugin.includes ?? ["**"]);
|
|
18
|
+
return {
|
|
19
|
+
...(typeof plugin === "string" ? { path } : plugin),
|
|
20
|
+
includes: [...includes, ...folders.map((folder) => `!${nonEffectFolderPath(folder)}/**`)],
|
|
21
|
+
};
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
//# sourceMappingURL=nonEffectPlugins.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"nonEffectPlugins.js","sourceRoot":"","sources":["../../src/biome/nonEffectPlugins.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AAElE,MAAM,cAAc,GAAwB,IAAI,GAAG,CAAC;IACnD,sBAAsB;IACtB,sBAAsB;IACtB,0BAA0B;IAC1B,yBAAyB;IACzB,mBAAmB;IACnB,yBAAyB;IACzB,qBAAqB;CACrB,CAAC,CAAC;AAIH,MAAM,UAAU,gBAAgB,CAAC,OAA0B,EAAE,OAA0B;IACtF,OAAO,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE;QAC7B,MAAM,IAAI,GAAG,OAAO,MAAM,KAAK,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC;QAC/D,IAAI,CAAC,cAAc,CAAC,GAAG,CAAC,IAAI,CAAC,UAAU,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,IAAI,OAAO,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;YACrG,OAAO,MAAM,CAAC;QACf,CAAC;QACD,MAAM,QAAQ,GAAG,OAAO,MAAM,KAAK,QAAQ,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,QAAQ,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;QACnF,OAAO;YACN,GAAG,CAAC,OAAO,MAAM,KAAK,QAAQ,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC;YACnD,QAAQ,EAAE,CAAC,GAAG,QAAQ,EAAE,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,IAAI,mBAAmB,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;SACzF,CAAC;IACH,CAAC,CAAC,CAAC;AACJ,CAAC"}
|
package/dist/biome/report.d.ts
CHANGED
|
@@ -46,7 +46,7 @@ export declare const biomeReport: (root: string, args: readonly string[], except
|
|
|
46
46
|
readonly reason: string;
|
|
47
47
|
readonly rules: readonly [string, ...string[]];
|
|
48
48
|
readonly subject?: string;
|
|
49
|
-
}[] | undefined, files?: readonly string[] | undefined) => Effect.Effect<{
|
|
49
|
+
}[] | undefined, files?: readonly string[] | undefined, nonEffectFolders?: readonly string[] | undefined) => Effect.Effect<{
|
|
50
50
|
diagnostics: readonly {
|
|
51
51
|
readonly category?: string;
|
|
52
52
|
readonly location: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"report.d.ts","sourceRoot":"","sources":["../../src/biome/report.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAQ,MAAM,EAAE,MAAM,QAAQ,CAAC;AAG9C,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAM3C,QAAA,MAAM,UAAU;;;;;;;;;;;;;;;EAKd,CAAC;AAEH,MAAM,MAAM,UAAU,GAAG,OAAO,UAAU,CAAC,IAAI,CAAC;AAEhD,QAAA,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;EAGV,CAAC;AAEH,MAAM,MAAM,MAAM,GAAG,OAAO,MAAM,CAAC,IAAI,CAAC;AAIxC,eAAO,MAAM,OAAO,EAAE,WAAW,CAAC,MAAM,CAA+B,CAAC;
|
|
1
|
+
{"version":3,"file":"report.d.ts","sourceRoot":"","sources":["../../src/biome/report.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAQ,MAAM,EAAE,MAAM,QAAQ,CAAC;AAG9C,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAM3C,QAAA,MAAM,UAAU;;;;;;;;;;;;;;;EAKd,CAAC;AAEH,MAAM,MAAM,UAAU,GAAG,OAAO,UAAU,CAAC,IAAI,CAAC;AAEhD,QAAA,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;EAGV,CAAC;AAEH,MAAM,MAAM,MAAM,GAAG,OAAO,MAAM,CAAC,IAAI,CAAC;AAIxC,eAAO,MAAM,OAAO,EAAE,WAAW,CAAC,MAAM,CAA+B,CAAC;AAkCxE,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;QAsBX,OAAO;;gLAElB,CAAC"}
|
package/dist/biome/report.js
CHANGED
|
@@ -23,9 +23,9 @@ function failure(args, run, missing, output) {
|
|
|
23
23
|
function unexplained(run, report) {
|
|
24
24
|
return run.code !== 0 && !report.diagnostics.some((diagnostic) => FAILING.has(diagnostic.severity));
|
|
25
25
|
}
|
|
26
|
-
const reportFor = Effect.fn("Biome.reportFor")(function* (root, args, paths, exceptions) {
|
|
26
|
+
const reportFor = Effect.fn("Biome.reportFor")(function* (root, args, paths, exceptions, nonEffectFolders) {
|
|
27
27
|
const command = [...args, "--reporter=json", "--max-diagnostics=none", ...paths];
|
|
28
|
-
const run = yield* runBiome(root, command, exceptions);
|
|
28
|
+
const run = yield* runBiome(root, command, exceptions, nonEffectFolders);
|
|
29
29
|
const report = decodeReport(run.stdout.trim());
|
|
30
30
|
if (report._tag === "None") {
|
|
31
31
|
return yield* Effect.fail(failure(command, run, "a report", [run.stdout, run.stderr].join("\n")));
|
|
@@ -40,9 +40,9 @@ const reportFor = Effect.fn("Biome.reportFor")(function* (root, args, paths, exc
|
|
|
40
40
|
}
|
|
41
41
|
return report.value;
|
|
42
42
|
});
|
|
43
|
-
export const biomeReport = Effect.fn("Biome.biomeReport")(function* (root, args, exceptions = [], files = ["."]) {
|
|
43
|
+
export const biomeReport = Effect.fn("Biome.biomeReport")(function* (root, args, exceptions = [], files = ["."], nonEffectFolders = []) {
|
|
44
44
|
const { relative, sep } = yield* Path.Path.pipe(Effect.provide(NodePath.layer));
|
|
45
|
-
const [report, tracked] = yield* Effect.all([reportFor(root, args, files, exceptions), ignoredTrackedPaths(root)], {
|
|
45
|
+
const [report, tracked] = yield* Effect.all([reportFor(root, args, files, exceptions, nonEffectFolders), ignoredTrackedPaths(root)], {
|
|
46
46
|
concurrency: "unbounded",
|
|
47
47
|
});
|
|
48
48
|
const paths = tracked
|
|
@@ -50,7 +50,7 @@ export const biomeReport = Effect.fn("Biome.biomeReport")(function* (root, args,
|
|
|
50
50
|
.filter((path) => files.includes(".") || files.includes(path))
|
|
51
51
|
.filter((path) => !path.split(sep).some((part) => part === ".git" || part === ".worktrees" || part === "node_modules"));
|
|
52
52
|
const extraArgs = [...args, "--vcs-enabled=false", ...(args.includes("--no-errors-on-unmatched") ? [] : ["--no-errors-on-unmatched"])];
|
|
53
|
-
const extra = paths.length === 0 ? undefined : yield* reportFor(root, extraArgs, paths, exceptions);
|
|
53
|
+
const extra = paths.length === 0 ? undefined : yield* reportFor(root, extraArgs, paths, exceptions, nonEffectFolders);
|
|
54
54
|
const diagnostics = [...report.diagnostics, ...(extra?.diagnostics ?? [])];
|
|
55
55
|
const unique = [...new Map(diagnostics.map((diagnostic) => [JSON.stringify(diagnostic), diagnostic])).values()];
|
|
56
56
|
return {
|
package/dist/biome/report.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"report.js","sourceRoot":"","sources":["../../src/biome/report.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,QAAQ,MAAM,gCAAgC,CAAC;AAC3D,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAC9C,OAAO,EAAiB,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAEjE,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAC3C,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AACjE,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AAEjE,MAAM,QAAQ,GAAG,MAAM,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,WAAW,CAAC,MAAM,CAAC,GAAG,CAAC,EAAE,IAAI,EAAE,MAAM,CAAC,GAAG,EAAE,CAAC,CAAC;AAE7F,MAAM,UAAU,GAAG,MAAM,CAAC,MAAM,CAAC;IAChC,QAAQ,EAAE,MAAM,CAAC,WAAW,CAAC,MAAM,CAAC,MAAM,CAAC;IAC3C,QAAQ,EAAE,MAAM,CAAC,MAAM,CAAC,EAAE,GAAG,EAAE,MAAM,CAAC,WAAW,CAAC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,CAAC,WAAW,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,MAAM,CAAC,WAAW,CAAC,QAAQ,CAAC,EAAE,CAAC;IAC5I,OAAO,EAAE,MAAM,CAAC,MAAM;IACtB,QAAQ,EAAE,MAAM,CAAC,MAAM;CACvB,CAAC,CAAC;AAIH,MAA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,MAAM,EAAE,CAAC,CAAC;IAChH,OAAO;QACN,WAAW,EAAE,oBAAoB,CAAC,IAAI,EAAE,MAAM,CAAC;QAC/C,OAAO,EAAE,EAAE,OAAO,EAAE,MAAM,CAAC,OAAO,CAAC,OAAO,GAAG,CAAC,KAAK,EAAE,OAAO,CAAC,OAAO,IAAI,CAAC,CAAC,EAAE;KAC5E,CAAC;AACH,CAAC,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"baseline.d.ts","sourceRoot":"","sources":["../../src/cli/baseline.ts"],"names":[],"mappings":"AACA,OAAO,EAAW,MAAM,EAAyB,MAAM,QAAQ,CAAC;AAGhE,OAAO,EAA6B,KAAK,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAC5E,OAAO,EAAe,KAAK,OAAO,EAAE,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"baseline.d.ts","sourceRoot":"","sources":["../../src/cli/baseline.ts"],"names":[],"mappings":"AACA,OAAO,EAAW,MAAM,EAAyB,MAAM,QAAQ,CAAC;AAGhE,OAAO,EAA6B,KAAK,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAC5E,OAAO,EAAe,KAAK,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAE/D,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAG3C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAU7C,eAAO,MAAM,aAAa,uKAoCxB,CAAC;AAWH,eAAO,MAAM,cAAc,GAA8C,aAAa,8DAGlE,OAAO,KAAK,MAAM,CAAC,MAAM,CAAC,KAAK,EAAE,YAAY,EAAE,aAAa,CAAC,oEAa/E,CAAC"}
|
package/dist/cli/baseline.js
CHANGED
|
@@ -3,7 +3,6 @@ import { Console, Effect, Path } from "effect";
|
|
|
3
3
|
import { saveShards } from "#baseline/shards.ts";
|
|
4
4
|
import { adopt, prune } from "#baseline/update.ts";
|
|
5
5
|
import { openSession } from "#engine/session.ts";
|
|
6
|
-
import { registrable } from "#engine/violation.ts";
|
|
7
6
|
import { applyRegistry } from "#exceptions/registry.ts";
|
|
8
7
|
import { SetupFailure } from "#failure.ts";
|
|
9
8
|
import { changesSince } from "#git/history.ts";
|
|
@@ -18,11 +17,6 @@ export const writeBaseline = Effect.fn("Cli.writeBaseline")(function* (cwd, conf
|
|
|
18
17
|
const { relative, resolve } = yield* Path.Path.pipe(Effect.provide(NodePath.layer));
|
|
19
18
|
const session = yield* openSession(cwd, config);
|
|
20
19
|
const existing = session.baseline.files.size === 0 ? undefined : session.baseline.entries;
|
|
21
|
-
if (firstAdoption && (rules.length === 0 || rules.some((rule) => registrable(session.config, rule)))) {
|
|
22
|
-
return yield* new SetupFailure({
|
|
23
|
-
message: "baseline write refused: --first-adoption requires explicit --rule ids that refuse config exceptions.",
|
|
24
|
-
});
|
|
25
|
-
}
|
|
26
20
|
if (existing !== undefined && files.length === 0 && !firstAdoption) {
|
|
27
21
|
return yield* new SetupFailure({
|
|
28
22
|
message: "baseline write refused: a baseline exists. Record a rule with --rule <id> and --file <path>; use prune for moved or fixed debt.",
|
package/dist/cli/baseline.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"baseline.js","sourceRoot":"","sources":["../../src/cli/baseline.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,QAAQ,MAAM,gCAAgC,CAAC;AAC3D,OAAO,EAAE,OAAO,EAAE,MAAM,EAAmB,IAAI,EAAE,MAAM,QAAQ,CAAC;AAEhE,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,EAAE,KAAK,EAAe,KAAK,EAAc,MAAM,qBAAqB,CAAC;AAC5E,OAAO,EAAE,WAAW,EAAgB,MAAM,oBAAoB,CAAC;AAC/D,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"baseline.js","sourceRoot":"","sources":["../../src/cli/baseline.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,QA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