class

Flaw::AstRule

Inherits Flaw::Rule < Reference < Object

AST-backed rule. Subclasses override visit and are fed every parsed node by a shared AstBackend::Visitor, so each file is parsed once regardless of how many AST rules are active. check is a no-op — the Scanner routes these through the AST tier instead.

Instance methods

check(source : String, path : String) : Array(Finding)
Source
visit(node, source : String, path : String, findings : Array(Finding)) : Nil
Source