struct

Ignorelint::Issue

Inherits Struct < Value < Object

A single lint finding — one problem detected on one line of an ignore file.

Issues are collected during Linter.lint and passed to formatters for output. When --fix is active, issues with fixable codes get their severity changed to Fixed after the fix is applied.

This is a struct (value type) because issues are created in bulk and never mutated after creation (except by CLI#mark_fixed, which creates new Issue instances rather than mutating existing ones).

Constructors

new(line : Int32, message : String, severity : Severity = :error, code : Code = :trailing_whitespace)

Instance methods

code

Machine-readable diagnostic code (e.g. Code::TrailingWhitespace).

line

1-based line number where the issue was found.

message

Human-readable description of the problem, suitable for terminal output.

severity

How serious this issue is. Controls exit code and color in output.