Versions in this module Expand all Collapse all v0 v0.2.0 Apr 14, 2020 Changes in this version type Filter + Type phpdoc.TypeExpr type Rule + Path string v0.1.0 Oct 31, 2019 Changes in this version + type Filter struct + Types []string + type Parser struct + func NewParser() *Parser + func (*Parser) Parse(filename string, r io.Reader) (*Set, error) + type Rule struct + Filters []map[string]Filter + Level int + Location string + Matcher *phpgrep.Matcher + Message string + Name string + func (r *Rule) String() string + type RuleKind int + const KindArray + const KindAssign + const KindBinOp + const KindBranch + const KindCast + const KindCmp + const KindCondOp + const KindConst + const KindFunctionCall + const KindLoop + const KindMethodCall + const KindNone + const KindOther + const KindOtherUnlikely + const KindRequire + const KindScalar + const KindStaticCall + const KindUnaryOp + const KindValueFetch + func CategorizeNode(n node.Node) RuleKind + type ScopedSet struct + RulesByKind [_KindCount][]Rule + func (set *ScopedSet) Clone() *ScopedSet + type Set struct + AlwaysAllowed []string + AlwaysCritical []string + Any *ScopedSet + Local *ScopedSet + Root *ScopedSet + func NewSet() *Set