StigSourceActions

Shared resolution and HTML rendering for source actions in Dokka model and report content.

Types

Link copied to clipboard
data class Action(val kind: StigSourceActions.Kind, val url: String, val label: String, val icon: StigIcon, val newTab: Boolean)
Link copied to clipboard
Link copied to clipboard
data class Settings(val view: Boolean, val edit: Boolean, val idea: Boolean)

Functions

Link copied to clipboard
fun locationHtml(label: String, actions: List<StigSourceActions.Action>, codeLabel: Boolean = false): String
Link copied to clipboard
fun resolve(absoluteFile: String?, relativePath: String?, fileLine: Int, contexts: List<CodeBrowserUrl.Context>, settings: StigSourceActions.Settings): List<StigSourceActions.Action>
Link copied to clipboard

Resolves the meaningful source action for a repository-level provenance target. Repository and commit pages can be viewed, but do not identify a source file that could be edited or opened in IDEA, so edit and IDEA actions are intentionally absent.

Link copied to clipboard