Skip to content

Commit ba5eea6

Browse files
committed
Ignore block statement beginnings
1 parent 9593e22 commit ba5eea6

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/mutators/commentLinesMutator.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,10 @@ module.exports = async function commentLinesMutator ({mutodeInstance, filePath,
3434
debug('Logging line, continuing')
3535
return
3636
}
37+
if (lineContent.trim().endsWith('{')) {
38+
debug('Code block line, continuing')
39+
return
40+
}
3741

3842
const mutantId = ++mutodeInstance.mutants
3943
const log = `MUTANT ${mutantId}:\tCLM Commented line ${line}:\t${chalk.inverse(lineContent.trim())}`

0 commit comments

Comments
 (0)