module Ameba::Reportable
Overview
Represents a module used to report issues.
Direct including types
Defined in:
ameba/reportable.crInstance Method Summary
-
#add_issue(rule, location : Crystal::Location?, end_location : Crystal::Location?, message, status = nil)
Adds a new issue to the list of issues.
-
#add_issue(rule, location : Tuple(Int32, Int32), end_location : Tuple(Int32, Int32), message, **args)
Adds a new issue for location and end_location defined by line and column numbers.
-
#add_issue(rule, location : Tuple(Int32, Int32), message, **args)
Adds a new issue for location defined by line and column numbers.
-
#add_issue(rule, node : Crystal::ASTNode, message, **args)
Adds a new issue for AST node.
-
#add_issue(rule, token : Crystal::Token, message, **args)
Adds a new issue for Crystal token.
-
#issues
List of reported issues.
-
#valid?
Returns true if the list of not disabled issues is empty, false otherwise.
Instance Method Detail
def add_issue(rule, location : Crystal::Location?, end_location : Crystal::Location?, message, status = nil)
#
Adds a new issue to the list of issues.
def add_issue(rule, location : Tuple(Int32, Int32), end_location : Tuple(Int32, Int32), message, **args)
#
Adds a new issue for location and end_location defined by line and column numbers.
def add_issue(rule, location : Tuple(Int32, Int32), message, **args)
#
Adds a new issue for location defined by line and column numbers.