Ameba::Issue - ameba 1.6.4

# struct Ameba::Issue

- Ameba::Issue
- Struct
- Value
- Object

##
Overview

Represents an issue reported by Ameba.

##
Defined in:

ameba/issue.cr

##
Constructors

- .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 Summary

- #code : String

  The source code that triggered this issue.

- #correct(corrector)
- #correctable?
- #disabled?(*args, **options)
- #disabled?(*args, **options, &)
- #enabled?(*args, **options)
- #enabled?(*args, **options, &)
- #end_location : Crystal::Location | Nil

  End location of the issue.

- #location : Crystal::Location | Nil

  Location of the issue.

- #message : String

  Issue message.

- #rule : Rule::Base

  A rule that triggers this issue.

- #status : Status

  Issue status.

- #syntax?

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