Skip to content

Commit 5b9f3e2

Browse files
fix(task): drop the space after the comma in two mutation-exclusion directives (#2428)
The gate in scripts/stryker-diff.mjs validates every Stryker disable directive in a changed file and rejects one whose mutator list does not match its pattern, which permits no whitespace after the comma inside the list. Two directives in this file read ConditionalExpression, EqualityOperator and ConditionalExpression, LogicalOperator, EqualityOperator, so the whole comment fails to match and is reported as a broad or unreasoned exclusion even though each names its mutators and gives a reason. Removing the space after each comma in those two comments is the whole change, three characters across two comment lines, with no code line, no suppression file, no changeset and no changelog touched.
1 parent e3de60a commit 5b9f3e2

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎src/core/task/Task.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4492,7 +4492,7 @@ export class Task extends EventEmitter<TaskEvents> implements TaskLike {
44924492
nativeToolCallParserScope,
44934493
)
44944494

4495-
// Stryker disable next-line ConditionalExpression, EqualityOperator: equivalent mutants, streamingKey is always defined here, so both conditions reduce to the partialToolUse check
4495+
// Stryker disable next-line ConditionalExpression,EqualityOperator: equivalent mutants, streamingKey is always defined here, so both conditions reduce to the partialToolUse check
44964496
if (partialToolUse && streamingKey !== undefined) {
44974497
// Reuse the compound key built above: it is exactly the key the start event
44984498
// registered under, so the delta lookup needs no second encoding.
@@ -4928,7 +4928,7 @@ export class Task extends EventEmitter<TaskEvents> implements TaskLike {
49284928
// name (provider quirk), the compound-key lookup above misses and both the
49294929
// parser entry and the dedup tracking would stay stale. Resolve the tracked
49304930
// entry by id and target the real compound key for finalization and cleanup.
4931-
// Stryker disable next-line ConditionalExpression, LogicalOperator, EqualityOperator: equivalent mutants, the both-miss case is unreachable via the raw-chunk pipeline
4931+
// Stryker disable next-line ConditionalExpression,LogicalOperator,EqualityOperator: equivalent mutants, the both-miss case is unreachable via the raw-chunk pipeline
49324932
if (finalToolUse === null && toolUseIndex === undefined) {
49334933
const resolved = NativeToolCallParser.getStreamingToolCallById(
49344934
event.id,

0 commit comments

Comments
 (0)