module

Ameba::Reportable

Represents a module used to report issues.

Instance methods

add_issue(rule, location : Crinja::Parser::StreamPosition | Nil, end_location : Crinja::Parser::StreamPosition | Nil, message : String, status : Issue::Status | Nil = nil, block : Source::Corrector -> | Nil = nil) : Issue

Adds a new issue to the list of issues.

Source
add_issue(rule, location : Crinja::Parser::StreamPosition | Nil, end_location : Crinja::Parser::StreamPosition | Nil, message : String, status : Issue::Status | Nil = nil, &block : Source::Corrector -> ) : Issue

Adds a new issue to the list of issues.

Source
add_issue(rule, location : Tuple(Int32, Int32), message, status : Issue::Status | Nil = nil, block : Source::Corrector -> | Nil = nil) : Issue

Adds a new issue for location defined by line and column numbers.

Source
add_issue(rule, location : Tuple(Int32, Int32), message, status : Issue::Status | Nil = nil, &block : Source::Corrector -> ) : Issue

Adds a new issue for location defined by line and column numbers.

Source
add_issue(rule, location : Tuple(Int32, Int32), end_location : Tuple(Int32, Int32), message, status : Issue::Status | Nil = nil, block : Source::Corrector -> | Nil = nil) : Issue

Adds a new issue for location and end_location defined by line and column numbers.

Source
add_issue(rule, location : Tuple(Int32, Int32), end_location : Tuple(Int32, Int32), message, status : Issue::Status | Nil = nil, &block : Source::Corrector -> ) : Issue

Adds a new issue for location and end_location defined by line and column numbers.

Source
issues

List of reported issues.

Source
valid?

Returns true if the list of not disabled issues is empty, false otherwise.

Source