CodeQL Result Models

CodeQLResults

class ghastoolkit.CodeQLResults(iterable=(), /)

CodeQL Results.

static loadSarifResults(results: list[dict]) CodeQLResults

Load SARIF Results.

CodeLocation

class ghastoolkit.CodeLocation(uri: str, start_line: int, start_column: int | None = None, end_line: int | None = None, end_column: int | None = None)

Code Location Module.

__str__() str

To String.

end_column: int | None = None

End line of the result

end_line: int | None = None

End line of the result

start_column: int | None = None

Start column of the result

start_line: int

Start line of the result

uri: str

URI to the location where the result occurs

CodeResult

class ghastoolkit.CodeResult(rule_id: str, message: str, locations: list[~ghastoolkit.codeql.results.CodeLocation] = <factory>)

Code Result.

__str__() str

To String.

static loadSarifLocations(data: list[dict]) list[CodeLocation]

Load SARIF Locations.

locations: list[CodeLocation]

Locations of the results

message: str

Message of the result

rule_id: str

Rule ID