struct Diagnostic
- Diagnostic
- Struct
- Value
- Object
Overview
Diagnostic record produced by a ConventionRule#check call.
The runner serializes diagnostics as one line each in the format:
<file>:<line>: [<rule_name>] <message> (suggested: <fix>)
Defined in:
lsp_rules/convention_rule.crConstructors
Instance Method Summary
- #file_path : String
- #file_path=(file_path : String)
- #line : Int32
- #line=(line : Int32)
- #message : String
- #message=(message : String)
- #rule_name : String
- #rule_name=(rule_name : String)
- #suggested_fix : String | Nil
- #suggested_fix=(suggested_fix : String | Nil)
-
#to_s(io : IO) : Nil
Renders the diagnostic in the runner's stable human + machine format.
Constructor Detail
def self.new(file_path : String, line : Int32, rule_name : String, message : String, suggested_fix : String | Nil = nil)
#