class CrinjaLint::Rule::Lint::UselessAssign

Defined in:

crinja_lint/rule/lint/useless_assign.cr

Constant Summary

MSG = "Useless assignment to `%s`"

Instance Method Summary

Instance methods inherited from class CrinjaLint::Rule::Base

group group, name name, severity severity, special? special?, test(source, node : Crinja::AST::ASTNode)
test(source, node : Crinja::AST::ASTNode, *args)
test(source)
test

Instance Method Detail

def assigns : Hash(String, Crinja::AST::ASTNode | Crinja::Parser::Token) #

[View source]
def test(source, node : Crinja::AST::ASTNode, tag : Crinja::Tag::Set) #

[View source]
def test(source, node : Crinja::AST::ASTNode, tag : Crinja::Tag::For) #

[View source]
def test(source, node : Crinja::AST::ASTNode, tag : Crinja::Tag::With) #

[View source]
def test(source, node : Crinja::AST::ASTNode, tag : Crinja::Tag::Call) #

[View source]
def test(source, node : Crinja::AST::ASTNode, tag : Crinja::Tag::Import | Crinja::Tag::Extends) #

[View source]
def test(source, node : Crinja::AST::IdentifierLiteral) #

[View source]
def test(source) #

[View source]