Skip Navigation
InitializerInitializer

init(severity:summary:source:explanation:)

Creates a new warning.

init(
    severity: Severity,
    summary: String,
    source: SourceLocation? = nil,
    explanation: String? = nil
)

Parameters

severity

The severity level.

summary

A brief summary of the warning.

source

The source location, if applicable.

explanation

Additional context or explanation.