ModelProblem

data class ModelProblem(val rule: ModelRule, val severity: ProblemSeverity, val message: String, val entityName: String? = null, val sourceFile: String? = null, val sourceLine: Int? = null, val remediation: String? = null, val quickFixes: List<ModelQuickFix> = emptyList(), val kind: SarifKind = SarifKind.FAIL, val ownerElementId: String? = null, val relatedEntityIds: List<String> = emptyList(), val subjectId: String? = null, val sourceOffset: Int? = null, val remediationInventory: ModelRemediationInventory? = null, val remediationSummary: String? = null)

A rule result: a violation, pending review, unresolved assessment, or explicit disposition.

Constructors

Link copied to clipboard
constructor(rule: ModelRule, severity: ProblemSeverity, message: String, entityName: String? = null, sourceFile: String? = null, sourceLine: Int? = null, remediation: String? = null, quickFixes: List<ModelQuickFix> = emptyList(), kind: SarifKind = SarifKind.FAIL, ownerElementId: String? = null, relatedEntityIds: List<String> = emptyList(), subjectId: String? = null, sourceOffset: Int? = null, remediationInventory: ModelRemediationInventory? = null, remediationSummary: String? = null)

Properties

Link copied to clipboard

User-facing remediation resolved from the problem first, then the rule default.

Link copied to clipboard

The published correction is deliberately independent of the detailed local remediation.

Link copied to clipboard

Canonical MetamodelEntity.id of the reviewed object, never its human name or a composite finding identity.

Link copied to clipboard

SARIF result kind. Defaults to SarifKind.FAIL — meaning "the check failed". Rules that produce purely informational outputs may use SarifKind.INFORMATIONAL.

Link copied to clipboard
Link copied to clipboard

Logical owner, independent of the file or Gradle project declaring the subject.

Link copied to clipboard

Structured fixes that IDE integrations may expose as executable quick fixes.

Link copied to clipboard

Model entities supplying evidence for this finding (for example the allocated requirement).

Link copied to clipboard

Problem-specific remediation. When absent, ModelRule.remediation is used.

Link copied to clipboard

Target-independent diagnostic inventory, shared by findings with the same owner.

Link copied to clipboard

One short correction paragraph for findings tables; never candidate inventories or detailed repair steps.

Link copied to clipboard
Link copied to clipboard

Resolved SARIF level: if kind is SarifKind.FAIL, uses severity's SARIF mapping; otherwise SarifLevel.NONE.

Link copied to clipboard
Link copied to clipboard

Absolute path to the source file where the problem was triggered (optional).

Link copied to clipboard

Line number in sourceFile where the entity is declared (1-based, optional).

Link copied to clipboard

Exact identifier offset for a source-declaration finding; adapters retain the physical file/line too.

Link copied to clipboard

Stable identity for separate obligations anchored to the same entity.

Generated with STIG