Skip to content

Commit 25bbd2d

Browse files
committed
Fix to emit Filename when using Script Based Rules
1 parent 91b61bd commit 25bbd2d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Engine/ScriptAnalyzer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -759,7 +759,7 @@ internal IEnumerable<DiagnosticRecord> GetExternalRecord(Ast ast, Token[] token,
759759

760760
if (!string.IsNullOrEmpty(message))
761761
{
762-
diagnostics.Add(new DiagnosticRecord(message, extent, ruleName, severity, null));
762+
diagnostics.Add(new DiagnosticRecord(message, extent, ruleName, severity, filePath));
763763
}
764764
}
765765
}

0 commit comments

Comments
 (0)