1
0
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:
chavacava
2025-05-26 11:07:42 +02:00
committed by GitHub
parent ab05438914
commit 51ac5c2524
7 changed files with 240 additions and 0 deletions

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