struct Ameba::Issue

Overview

Represents an issue reported by Ameba.

Defined in:

ameba/issue.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(code : String, rule : Ameba::Rule::Base, location : Nil | Crystal::Location, end_location : Nil | Crystal::Location, message : String, status : Status | Nil = nil, block : Source::Corrector -> | Nil = nil) #

[View source]

Instance Method Detail

def code : String #

The source code that triggered this issue.


[View source]
def correct(corrector) #

[View source]
def correctable? #

[View source]
def disabled?(*args, **options) #

[View source]
def disabled?(*args, **options, &) #

[View source]
def enabled?(*args, **options) #

[View source]
def enabled?(*args, **options, &) #

[View source]
def end_location : Crystal::Location | Nil #

End location of the issue.


[View source]
def location : Crystal::Location | Nil #

Location of the issue.


[View source]
def message : String #

Issue message.


[View source]
def rule : Rule::Base #

A rule that triggers this issue.


[View source]
def status : Status #

Issue status.


[View source]
def syntax? #

[View source]