Skip to content

Commit d40d56b

Browse files
committed
Fix goprintffuncname linter
Signed-off-by: Sascha Grunert <[email protected]>
1 parent 8d1ccce commit d40d56b

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
@@ -89,7 +90,6 @@ linters:
8990
# - goconst
9091
# - gocyclo
9192
# - godox
92-
# - goprintffuncname
9393
# - gosec
9494
# - gosimple
9595
# - 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)