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 : Crystal::Location?, end_location : Crystal::Location?, message : String, status : Status? = nil, block : Source::Corrector -> ? = 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? #

End location of the issue.


[View source]
def location : Crystal::Location? #

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]