diff --git a/packages/ruling/tests/tools/lits.ts b/packages/ruling/tests/tools/lits.ts index ef175707c1..243a27e40b 100644 --- a/packages/ruling/tests/tools/lits.ts +++ b/packages/ruling/tests/tools/lits.ts @@ -109,7 +109,7 @@ function transformResults( if (result.issues[ruleId][language][projectWithFilename] === undefined) { result.issues[ruleId][language][projectWithFilename] = []; } - if (!issue.line) { + if (issue.line === null) { // do nothing // https://github.com/SonarSource/SonarJS/pull/4816#discussion_r1758892962 continue;