struct

Ameba::Issue

Inherits Struct < Value < Object

Represents an issue reported by Ameba.

Constructors

new(code : String, rule : Ameba::Rule::Base, location : Crinja::Parser::StreamPosition | Nil, end_location : Crinja::Parser::StreamPosition | Nil, message : String, status : Status | Nil = nil, block : Source::Corrector -> | Nil = nil)
Source

Instance methods

code

The source code that triggered this issue.

Source
correct(corrector)
Source
correctable?
Source
disabled?(*args, **options)
Source
disabled?(*args, **options, &)
Source
enabled?(*args, **options)
Source
enabled?(*args, **options, &)
Source
end_location

End location of the issue.

Source
location

Location of the issue.

Source
message

Issue message.

Source
rule

A rule that triggers this issue.

Source
status

Issue status.

Source
syntax?
Source

Nested types