Skip to content

ENUM

GenerationOptions.WarningsAsErrors

Contents

swift
public enum WarningsAsErrors: Codable, Equatable, Sendable

Controls which generation warnings are promoted to errors.

Cases

none

swift
case none

No warnings are promoted to errors (default behavior).

all

swift
case all

All warnings are promoted to errors.

only(_:)

swift
case only([GenerationWarning])

Only the specified warning categories are promoted to errors.

Released under the MIT License.