Severity
Severity of the diagnostic.
enum Severity
Severity of the diagnostic.
enum Severity
import PackagePlugin
struct Diagnostics
Emits errors, warnings, and remarks to be shown as a result of running the plugin. After emitting one or more errors, the plugin should return a non-zero exit code.
case error
case warning
case remark
static func emit(_ severity: Severity, _ description: String, file: String? = #file, line: Int? = #line)
Emits an error with a specified severity and message, and optional file path and line number.
static func error(_ message: String, file: String? = #file, line: Int? = #line)
Emits an error with the specified message, and optional file path and line number.
static func progress(_ message: String)
Emits a progress message
static func remark(_ message: String, file: String? = #file, line: Int? = #line)
Emits a remark with the specified message, and optional file path and line number.
static func warning(_ message: String, file: String? = #file, line: Int? = #line)
Emits a warning with the specified message, and optional file path and line number.
protocol Encodable
A type that can encode itself to an external representation.
protocol Equatable
A type that can be compared for value equality.
protocol Hashable : Equatable
A type that can be hashed into a Hasher
to produce an integer hash value.
protocol RawRepresentable<RawValue>
A type that can be converted to and from an associated raw value.
init?(rawValue: String)
var hashValue: Int { get }
static func != (lhs: Self, rhs: Self) -> Bool
Returns a Boolean value indicating whether two values are not equal.
func encode(to encoder: any Encoder) throws
Encodes this value into the given encoder, when the type’s RawValue
is String
.
func hash(into hasher: inout Hasher)