Versions in this module Expand all Collapse all v1 v1.3.9 Jul 25, 2024 Changes in this version + const PreserveScope + var DeviatingFuncs = map[Call]BranchKind + func Apply(rule Rule, node ast.Node, target Target, args lint.Arguments) []lint.Failure + type Args struct + PreserveScope bool + type Branch struct + HasDecls bool + func BlockBranch(block *ast.BlockStmt) Branch + func StmtBranch(stmt ast.Stmt) Branch + func (b Branch) LongString() string + func (b Branch) String() string + type BranchKind int + const Break + const Continue + const Empty + const Exit + const Goto + const Panic + const Regular + const Return + func (k BranchKind) Branch() Branch + func (k BranchKind) Deviates() bool + func (k BranchKind) IsEmpty() bool + func (k BranchKind) LongString() string + func (k BranchKind) Returns() bool + func (k BranchKind) String() string + type Call struct + Name string + Pkg string + func ExprCall(expr *ast.ExprStmt) (Call, bool) + func (f Call) String() string + type Chain struct + AtBlockEnd bool + Else Branch + HasInitializer bool + HasPriorNonDeviating bool + If Branch + type Rule interface + CheckIfElse func(chain Chain, args Args) (failMsg string) + type Target int + const TargetElse + const TargetIf