struct

Ignorelint::Fix

Inherits Struct < Value < Object

Constructors

new(code : Code, line_number : Int32, original : String, replacement : String)

Instance methods

code

The diagnostic code this fix addresses (e.g. Code::TrailingWhitespace).

deletion?

True when this fix removes the line entirely (replacement is empty). Used by Fixer.apply_fixes to decide between line deletion and replacement.

line_number

1-based line number in the source file where the fix applies.

original

The original text of the line (before the fix).

replacement

The corrected text (after the fix). Empty string means "delete this line".