Documentation ¶
Overview ¶
go:build ruleguard
go:build ruleguard
go:build ruleguard
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DupSubExpr ¶
Suppose that we want to report the duplicated left and right operands of binary operations.
But if the operand has some side effects, this rule can cause false positives: `f() && f()` can make sense (although it's not the best piece of code).
This is where *filters* come to the rescue.
func RangeExprVal ¶
func StringsSimplify ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.