Skip to content

Commit f9fcfbd

Browse files
fix(core): drop the space after the comma in two Stryker disable directives
The mutation gate's directive validator accepts a mutator list written without spaces: Stryker disable next-line ConditionalExpression,EqualityOperator: reason. Two directives in src/core/task/Task.ts separate their mutators with a comma and a space - line 4454 (ConditionalExpression, EqualityOperator) and line 4890 (ConditionalExpression, LogicalOperator, EqualityOperator) - and are the only two of the repo's 40 directive lines that fail the validator, out of 11 files that carry directives. Because the gate validates every line of every source file a pull touches and reports the first failure, any later pull that edits Task.ts inherits an advisory from these two lines even when it does not touch them. Removing only line 4454 moves the advisory to line 4890; this removes both, so a pull touching Task.ts earns no advisory from this file. Neither line changes behaviour: both are comments, and the change costs no changed executable lines in the mutation-diff price.
1 parent 53cb5b5 commit f9fcfbd

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
@@ -4451,7 +4451,7 @@ export class Task extends EventEmitter<TaskEvents> implements TaskLike {
44514451
nativeToolCallParserScope,
44524452
)
44534453

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

0 commit comments

Comments
 (0)