mirror of
https://github.com/mgechev/revive.git
synced 2025-11-25 22:12:38 +02:00
constant-logical-expr (new rule) (#55)
* suspicious-logical-expr (new rule) * renames 'suspicious-logical-expression' to 'constant-logical-expression'
This commit is contained in:
12
test/constant-logical-expr_test.go
Normal file
12
test/constant-logical-expr_test.go
Normal file
@@ -0,0 +1,12 @@
|
||||
package test
|
||||
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/mgechev/revive/rule"
|
||||
)
|
||||
|
||||
// ConstantLogicalExpr rule.
|
||||
func TestConstantLogicalExpr(t *testing.T) {
|
||||
testRule(t, "constant-logical-expr", &rule.ConstantLogicalExprRule{})
|
||||
}
|
||||
Reference in New Issue
Block a user