Class: Lilac::CLI::CrossRefLinter::Result
- Inherits:
-
Struct
- Object
- Struct
- Lilac::CLI::CrossRefLinter::Result
- Defined in:
- lib/lilac/cli/lint/cross_ref_linter.rb
Overview
Aggregate counts returned from lint. errors tracks fatal
violations (build should fail); warnings tracks non-fatal
ones. total is the "any diagnostic count" sum used by callers
that don't need to distinguish severity.
Instance Attribute Summary collapse
-
#errors ⇒ Object
Returns the value of attribute errors.
-
#warnings ⇒ Object
Returns the value of attribute warnings.
Instance Method Summary collapse
Instance Attribute Details
#errors ⇒ Object
Returns the value of attribute errors
37 38 39 |
# File 'lib/lilac/cli/lint/cross_ref_linter.rb', line 37 def errors @errors end |
#warnings ⇒ Object
Returns the value of attribute warnings
37 38 39 |
# File 'lib/lilac/cli/lint/cross_ref_linter.rb', line 37 def warnings @warnings end |
Instance Method Details
#errors? ⇒ Boolean
42 43 44 |
# File 'lib/lilac/cli/lint/cross_ref_linter.rb', line 42 def errors? errors.positive? end |
#total ⇒ Object
38 39 40 |
# File 'lib/lilac/cli/lint/cross_ref_linter.rb', line 38 def total warnings + errors end |