]> Piment Noir Git Repositories - poolifier.git/commit
refactor(pools): address Sonar maintainability findings (#3424)
authorJérôme Benoit <jerome.benoit@piment-noir.org>
Wed, 25 Nov 2026 23:48:46 +0000 (00:48 +0100)
committerGitHub <noreply@github.com>
Wed, 25 Nov 2026 23:48:46 +0000 (00:48 +0100)
commitc2de5024932063f77b54225934bb01f6b8056b8c
tree947a8417b88c14d314edef5db49c45716dba0b53
parent91690ba98269396ff3a5f79b4f88abadc49e1edc
refactor(pools): address Sonar maintainability findings (#3424)

* refactor(pools): address Sonar maintainability findings

Separate rank-selection steps and simplify worker-state branches.
Aggregate strategy results without allocating temporary arrays.

* test(pools): cover strategy updates after failure

* test(pools): cover successful strategy aggregation
src/pools/abstract-pool.ts
src/pools/selection-strategies/abstract-worker-choice-strategy.ts
src/pools/selection-strategies/selection-strategies-utils.ts
src/pools/selection-strategies/worker-choice-strategies-context.ts
src/pools/utils.ts
tests/pools/selection-strategies/worker-choice-strategies-context.test.mjs