Skip to content

fix: load the project Biome config under the shared qlty source - #97

Merged
sinemacula-ben merged 6 commits into
masterfrom
fix/biome-shared-config
Nov 17, 2026
Merged

sinemacula-ben merged 6 commits into
masterfrom
fix/biome-shared-config

Conversation

@sinemacula-ben

Copy link
Copy Markdown
Contributor

qlty ran no Biome here, so the two scripts under .github/scripts were never formatted or linted to the house style. This enables the biome plugin at 2.5.6 with a root .qlty/configs/biome.json that extends the biome.shared.json exported by sinemacula/coding-standards v1.30.1, the tag already pinned. The config leaves .qlty/ out of Biome: under --all, Biome otherwise reads .qlty/configs/biome.json as a nested config, cannot resolve its relative extends from there, and the plugin errors.

The rest clears what qlty then reports across the repo:

  • Biome reformats both scripts (single quotes, 4-space indent, no parens on single-parameter arrows). That commit has no code change.
  • The pre-push hook command goes on one line. shfmt indents continuation lines with tabs, so the four-line form failed qlty fmt on master too.
  • escape and unescape become escapePath and unescapePath, as they shadowed the globals. The two mutation jobs that import escape change with them. Every job checks the script out at the workflow's own commit, so callers see no change.
  • mergeReports, measureSweep and expandMutate are simplified to stay under the cognitive complexity limit, and the empty catch in collectShards says why it is empty. Behaviour is unchanged.

Proof: with a probe appended to mutation-reports.mjs, qlty fmt gave single quotes and a 4-space indent, and qlty check reported noVar and noDebugger. On the final commit, qlty check --all --no-cache, qlty fmt --all and qlty smells --all are clean. node --test passes 29 of 29, and old and new mergeReports, measureSweep and expandMutate gave identical output over a few thousand random inputs.

Deploy after merge: none; release-please proposes a patch.

Check after release: a caller's scoped and full mutation runs still plan and merge their shards.

sinemacula-ben and others added 6 commits November 16, 2026 16:43
Enable the biome plugin at 2.5.6 with a root .qlty/configs/biome.json that extends the shared biome.shared.json exported by sinemacula/coding-standards v1.30.1, so the scripts are formatted and linted to the house style.
shfmt indents continuation lines with tabs, so the four-line form never passed qlty fmt.
Rename escape and unescape to escapePath and unescapePath, along with the two mutation jobs that import them. The jobs check the script out at the workflow's own commit, so both sides change together.
Split the mutant choice out of mergeReports, weigh a shard's mutants in one pass in measureSweep, and move the file check in expandMutate into a helper, so each stays under the complexity limit. Say why collectShards ignores a missing folder. Behaviour is unchanged.
@sinemacula-ben
sinemacula-ben merged commit 2f88d85 into master Nov 17, 2026
6 checks passed
@sinemacula-ben
sinemacula-ben deleted the fix/biome-shared-config branch November 17, 2026 00:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant