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) #

Instance Method Detail

def code : String #

The source code that triggered this issue.


def correct(corrector) #

def correctable? #

def disabled?(*args, **options) #

def disabled?(*args, **options, &) #

def enabled?(*args, **options) #

def enabled?(*args, **options, &) #

def end_location : Crystal::Location | Nil #

End location of the issue.


def location : Crystal::Location | Nil #

Location of the issue.


def message : String #

Issue message.


def rule : Rule::Base #

A rule that triggers this issue.


def status : Status #

Issue status.


def syntax? #