Package-level declarations

Types

Link copied to clipboard

The CPG backend for Coko.

Link copied to clipboard
data class CpgFinding(val message: String, val kind: Finding.Kind = Finding.Kind.Fail, val node: Node? = null, val relatedNodes: Nodes? = null) : Finding

A CPG specific implementation of a Finding.

Link copied to clipboard
typealias Nodes = Collection<Node>

Properties

Link copied to clipboard
val Node.sarifRegion: Region

Returns a Region object from a Node's startLine, endLine, startColumn, endColumn property. If these properties do not exist, returns an empty Region.

Functions

Link copied to clipboard
fun Node.getSarifLocation(artifacts: Map<Path, Artifact>?): Location

Returns a Location object from a Node using the given artifacts as well as its sarifRegion.