File tree 3 files changed +10
-4
lines changed
3 files changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -8,14 +8,20 @@ linters-settings:
8
8
staticcheck :
9
9
checks :
10
10
- all
11
- - ' -SA1019' # it is okay to use math/rand at times
11
+ - ' -SA1019' # it is okay to use math/rand at times.
12
+ gosec :
13
+ excludes : # these are not relevant for us right now
14
+ - G114
15
+ - G204
16
+ - G306
17
+ - G404
12
18
13
19
linters :
14
20
disable-all : true
15
21
enable :
16
22
- errcheck
17
23
- ineffassign
18
- # - gas
24
+ - gosec
19
25
- gofmt
20
26
- gosimple
21
27
- govet
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ package main
19
19
import (
20
20
"fmt"
21
21
"net/http"
22
- _ "net/http/pprof"
22
+ _ "net/http/pprof" //nolint:gosec
23
23
"runtime"
24
24
25
25
"github.com/dustin/go-humanize"
Original file line number Diff line number Diff line change 6
6
"log"
7
7
"math/rand"
8
8
"net/http"
9
- _ "net/http/pprof"
9
+ _ "net/http/pprof" //nolint:gosec
10
10
"os"
11
11
"sync"
12
12
"sync/atomic"
You can’t perform that action at this time.
0 commit comments