Skip to content

Commit d13cbf0

Browse files
authored
Merge pull request #1517 from saschagrunert/goprintffuncname
Fix `goprintffuncname` linter
2 parents 7002687 + d40d56b commit d13cbf0

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.golangci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ linters:
3131
- goimports
3232
- gomoddirectives
3333
- gomodguard
34+
- goprintffuncname
3435
- gosmopolitan
3536
- govet
3637
- grouper
@@ -91,7 +92,6 @@ linters:
9192
# - goconst
9293
# - gocyclo
9394
# - godox
94-
# - goprintffuncname
9595
# - gosec
9696
# - gosimple
9797
# - ireturn

pkg/framework/util.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -160,19 +160,19 @@ func nowStamp() string {
160160
return time.Now().Format(time.StampMilli)
161161
}
162162

163-
func log(level string, format string, args ...interface{}) {
163+
func logf(level string, format string, args ...interface{}) {
164164
fmt.Fprintf(GinkgoWriter, nowStamp()+": "+level+": "+format+"\n", args...)
165165
}
166166

167167
// Logf prints a info message.
168168
func Logf(format string, args ...interface{}) {
169-
log("INFO", format, args...)
169+
logf("INFO", format, args...)
170170
}
171171

172172
// Failf prints an error message.
173173
func Failf(format string, args ...interface{}) {
174174
msg := fmt.Sprintf(format, args...)
175-
log("INFO", msg)
175+
logf("INFO", msg)
176176
Fail(nowStamp()+": "+msg, 1)
177177
}
178178

0 commit comments

Comments
 (0)