mirror of
https://github.com/luxfi/zapdb.git
synced 2026-07-27 06:54:45 +00:00
chores(linter): enable gosec linter (#1876)
This commit is contained in:
+8
-2
@@ -8,14 +8,20 @@ linters-settings:
|
||||
staticcheck:
|
||||
checks:
|
||||
- all
|
||||
- '-SA1019' # it is okay to use math/rand at times
|
||||
- '-SA1019' # it is okay to use math/rand at times.
|
||||
gosec:
|
||||
excludes: # these are not relevant for us right now
|
||||
- G114
|
||||
- G204
|
||||
- G306
|
||||
- G404
|
||||
|
||||
linters:
|
||||
disable-all: true
|
||||
enable:
|
||||
- errcheck
|
||||
- ineffassign
|
||||
# - gas
|
||||
- gosec
|
||||
- gofmt
|
||||
- gosimple
|
||||
- govet
|
||||
|
||||
+1
-1
@@ -19,7 +19,7 @@ package main
|
||||
import (
|
||||
"fmt"
|
||||
"net/http"
|
||||
_ "net/http/pprof"
|
||||
_ "net/http/pprof" //nolint:gosec
|
||||
"runtime"
|
||||
|
||||
"github.com/dustin/go-humanize"
|
||||
|
||||
@@ -6,7 +6,7 @@ import (
|
||||
"log"
|
||||
"math/rand"
|
||||
"net/http"
|
||||
_ "net/http/pprof"
|
||||
_ "net/http/pprof" //nolint:gosec
|
||||
"os"
|
||||
"sync"
|
||||
"sync/atomic"
|
||||
|
||||
Reference in New Issue
Block a user