Skip to content

Clarify the scope of error highlighting in the SARIF report #452

Closed
@mmvpm

Description

@mmvpm

Description

The SARIF viewer will highlight the portion of the file specified by physicalLocation.region to display the error.

Now we specify only region.startLine field, so the whole line will be highlighted:
image

But there is no need to highlight an empty space at the beginning of the line.

Expected behavior

An empty space at the beginning of the line is not highlighted:
image

Metadata

Metadata

Assignees

Labels

ctg-enhancementNew feature, improvement or change request

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions