File tree 4 files changed +38
-12
lines changed
4 files changed +38
-12
lines changed Original file line number Diff line number Diff line change
1
+ run :
2
+ deadline : 2m
3
+
4
+ linters :
5
+ disable-all : true
6
+ enable :
7
+ - misspell
8
+ - govet
9
+ - staticcheck
10
+ - errcheck
11
+ - unparam
12
+ - ineffassign
13
+ - nakedret
14
+ - gocyclo
15
+ - dupl
16
+ - goimports
17
+ - revive
18
+ - gosec
19
+ - gosimple
20
+ - typecheck
21
+ - unused
22
+
23
+ linters-settings :
24
+ dupl :
25
+ threshold : 600
Original file line number Diff line number Diff line change @@ -245,7 +245,7 @@ func TestStandardLogrus(t *testing.T) {
245
245
246
246
}
247
247
248
- func TestLogrusInterface (t * testing.T ) {
248
+ func TestLogrusInterface (_ * testing.T ) {
249
249
lgr := NewStandard ()
250
250
testfunc (lgr )
251
251
}
Original file line number Diff line number Diff line change 1
1
// Package io provides a means of turning a log.Logger into an io.Writer for
2
2
// a chosen level. An example of this would be:
3
- // import(
4
- // "io"
5
- // "github.com/Masterminds/log-go"
6
- // logio "github.com/Masterminds/log-go/io"
7
- // )
8
3
//
9
- // func main() {
10
- // w := logio.NewCurrentWriter(log.InfoLevel)
11
- // io.WriteString(w, "foo")
12
- // }
4
+ // import(
5
+ // "io"
6
+ // "github.com/Masterminds/log-go"
7
+ // logio "github.com/Masterminds/log-go/io"
8
+ // )
9
+ //
10
+ // func main() {
11
+ // w := logio.NewCurrentWriter(log.InfoLevel)
12
+ // io.WriteString(w, "foo")
13
+ // }
13
14
package io
14
15
15
16
import (
Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ func TestCurrentIO(t *testing.T) {
68
68
}
69
69
buf .Reset ()
70
70
71
- // Testing a non-existant level
71
+ // Testing a non-existent level
72
72
defer func () {
73
73
if r := recover (); r != nil {
74
74
t .Log (r )
@@ -137,7 +137,7 @@ func TestIO(t *testing.T) {
137
137
}
138
138
buf .Reset ()
139
139
140
- // Testing a non-existant level
140
+ // Testing a non-existent level
141
141
defer func () {
142
142
if r := recover (); r != nil {
143
143
t .Log (r )
You can’t perform that action at this time.
0 commit comments