1
0
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:
SalvadorC
2018-08-23 20:45:10 +02:00
committed by Minko Gechev
parent 771aa23069
commit 81bdff4472
5 changed files with 146 additions and 0 deletions

View 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{})
}