struct

Fluxion::Diagnostic

Inherits Struct < Value < Object

A single validation or lint finding, anchored to the config path that produced it so the user can jump straight to the offending line.

Constructors

error(path : String, message : String, hint : String | Nil = nil, rule : String | Nil = nil) : self
Source
info(path : String, message : String, hint : String | Nil = nil, rule : String | Nil = nil) : self
Source
new(severity : Severity, path : String, message : String, hint : String | Nil = nil, rule : String | Nil = nil)
Source
warning(path : String, message : String, hint : String | Nil = nil, rule : String | Nil = nil) : self
Source

Instance methods

error?
Source
hint

Optional remediation hint, e.g. Did you mean 'dnf-packages'?.

Source
message
Source
path

Dotted path into the config document, e.g. jobs[1].steps[0].packages[2].

Source
rule

Stable identifier for lint rules, e.g. binary-without-checksum. Nil for plain validation errors, which are identified by their path and message.

Source
severity
Source
to_s(io : IO) : Nil

Same as #inspect(io).

Source
warning?
Source

Nested types