Skip to content
This repository was archived by the owner on Jan 21, 2025. It is now read-only.

Commit c58f911

Browse files
committed
Update makefile and golangci config
1 parent 6f032d6 commit c58f911

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

.golangci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@ linters:
88
enable-all: true
99
disable:
1010
- funlen
11-
- wsl
1211
- gomnd
12+
- testpackage

logger.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ func (z *zapper) Enabled(lvl zapcore.Level) bool {
4444

4545
func (z *zapper) With(fs []zapcore.Field) zapcore.Core {
4646
me := zapcore.NewMapObjectEncoder()
47+
4748
for _, f := range fs {
4849
f.AddTo(me)
4950
}
@@ -61,11 +62,13 @@ func (z *zapper) Check(ent zapcore.Entry, ce *zapcore.CheckedEntry) *zapcore.Che
6162

6263
func (z *zapper) Write(ent zapcore.Entry, fs []zapcore.Field) error {
6364
me := zapcore.NewMapObjectEncoder()
65+
6466
for _, f := range fs {
6567
f.AddTo(me)
6668
}
6769

6870
var logFunc func(string, ...map[string]interface{})
71+
6972
switch ent.Level {
7073
case zapcore.DebugLevel:
7174
logFunc = z.logger.Debug

main.mk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ TEST_FORMAT = short-verbose
1616
endif
1717

1818
# Dependency versions
19-
GOTESTSUM_VERSION ?= 0.4.1
20-
GOLANGCI_VERSION ?= 1.24.0
19+
GOTESTSUM_VERSION ?= 0.4.2
20+
GOLANGCI_VERSION ?= 1.25.1
2121

2222
.PHONY: clear
2323
clear: ## Clear the working area and the project

0 commit comments

Comments
 (0)