mirror of
https://github.com/mgechev/revive.git
synced 2025-11-25 22:12:38 +02:00
feature: new rule unnecessary-format to spot unnecessary use of formatting functions (#1372)
This commit is contained in:
12
test/unnecessary_format_test.go
Normal file
12
test/unnecessary_format_test.go
Normal file
@@ -0,0 +1,12 @@
|
||||
package test
|
||||
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/mgechev/revive/lint"
|
||||
"github.com/mgechev/revive/rule"
|
||||
)
|
||||
|
||||
func TestUnnecessaryFormat(t *testing.T) {
|
||||
testRule(t, "unnecessary_format", &rule.UnnecessaryFormatRule{}, &lint.RuleConfig{})
|
||||
}
|
||||
Reference in New Issue
Block a user