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