Repository navigation
fix: load the project Biome config under the shared qlty source - #97
Merged
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
qlty ran no Biome here, so the two scripts under
.github/scriptswere never formatted or linted to the house style. This enables thebiomeplugin at 2.5.6 with a root.qlty/configs/biome.jsonthat extends thebiome.shared.jsonexported 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.jsonas a nested config, cannot resolve its relativeextendsfrom there, and the plugin errors.The rest clears what qlty then reports across the repo:
qlty fmton master too.escapeandunescapebecomeescapePathandunescapePath, as they shadowed the globals. The two mutation jobs that importescapechange with them. Every job checks the script out at the workflow's own commit, so callers see no change.mergeReports,measureSweepandexpandMutateare simplified to stay under the cognitive complexity limit, and the empty catch incollectShardssays why it is empty. Behaviour is unchanged.Proof: with a probe appended to
mutation-reports.mjs,qlty fmtgave single quotes and a 4-space indent, andqlty checkreportednoVarandnoDebugger. On the final commit,qlty check --all --no-cache,qlty fmt --allandqlty smells --allare clean.node --testpasses 29 of 29, and old and newmergeReports,measureSweepandexpandMutategave 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.