File tree 3 files changed +8
-9
lines changed 3 files changed +8
-9
lines changed Original file line number Diff line number Diff line change 5
5
linters :
6
6
disable-all : true
7
7
enable :
8
- - deadcode
9
8
- depguard
10
9
- durationcheck
11
10
- forcetypeassert
@@ -21,11 +20,10 @@ linters:
21
20
- prealloc
22
21
- predeclared
23
22
- promlinter
24
- - structcheck
25
23
- tagliatelle
26
24
- typecheck
27
- - varcheck
28
25
- wastedassign
26
+ - unused
29
27
# - asciicheck
30
28
# - bodyclose
31
29
# - cyclop
@@ -75,7 +73,6 @@ linters:
75
73
# - tparallel
76
74
# - unconvert
77
75
# - unparam
78
- # - unused
79
76
# - whitespace
80
77
# - wrapcheck
81
78
# - wsl
Original file line number Diff line number Diff line change @@ -112,7 +112,7 @@ install.lint: $(GOLANGCI_LINT)
112
112
113
113
$(GOLANGCI_LINT ) :
114
114
export \
115
- VERSION=v1.46 .2 \
115
+ VERSION=v1.52 .2 \
116
116
URL=https://raw.githubusercontent.com/golangci/golangci-lint \
117
117
BINDIR=${BUILD_BIN_PATH} && \
118
118
curl -sfL $$ URL/$$ VERSION/install.sh | sh -s $$ VERSION
Original file line number Diff line number Diff line change @@ -573,8 +573,9 @@ func pathExists(path string) bool {
573
573
574
574
// parseDockerJSONLog parses logs in Docker JSON log format.
575
575
// Docker JSON log format example:
576
- // {"log":"content 1","stream":"stdout","time":"2016-10-20T18:39:20.57606443Z"}
577
- // {"log":"content 2","stream":"stderr","time":"2016-10-20T18:39:20.57606444Z"}
576
+ //
577
+ // {"log":"content 1","stream":"stdout","time":"2016-10-20T18:39:20.57606443Z"}
578
+ // {"log":"content 2","stream":"stderr","time":"2016-10-20T18:39:20.57606444Z"}
578
579
func parseDockerJSONLog (log []byte , msg * logMessage ) {
579
580
var l jsonlog.JSONLog
580
581
@@ -588,8 +589,9 @@ func parseDockerJSONLog(log []byte, msg *logMessage) {
588
589
589
590
// parseCRILog parses logs in CRI log format.
590
591
// CRI log format example :
591
- // 2016-10-06T00:17:09.669794202Z stdout P The content of the log entry 1
592
- // 2016-10-06T00:17:10.113242941Z stderr F The content of the log entry 2
592
+ //
593
+ // 2016-10-06T00:17:09.669794202Z stdout P The content of the log entry 1
594
+ // 2016-10-06T00:17:10.113242941Z stderr F The content of the log entry 2
593
595
func parseCRILog (log string , msg * logMessage ) {
594
596
logMessage := strings .SplitN (log , " " , 4 )
595
597
if len (log ) < 4 {
You can’t perform that action at this time.
0 commit comments