module Ameba::Reportable

Overview

Represents a module used to report issues.

Direct including types

Defined in:

Instance Method Summary

Instance Method Detail

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, end_location, message, status = nil) #

Adds a new issue to the list of issues.


def add_issue(rule, location : Tuple(Int32, Int32), message, **args) #

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


def add_issue(rule, node : Crystal::ASTNode, message, **args) #

Adds a new issue for AST node.


def add_issue(rule, token : Crystal::Token, message, **args) #

Adds a new issue for Crystal token.


def issues #

List of reported issues.


def valid? #

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