Skip to content

Commit

Permalink
chores(linter): enable gosec linter
Browse files Browse the repository at this point in the history
  • Loading branch information
mangalaman93 committed Feb 17, 2023
1 parent a476694 commit fe5eecd
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
10 changes: 8 additions & 2 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion badger/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ package main
import (
"fmt"
"net/http"
_ "net/http/pprof"
_ "net/http/pprof" //nolint:gosec
"runtime"

"github.com/dustin/go-humanize"
Expand Down
2 changes: 1 addition & 1 deletion integration/testgc/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"log"
"math/rand"
"net/http"
_ "net/http/pprof"
_ "net/http/pprof" //nolint:gosec
"os"
"sync"
"sync/atomic"
Expand Down

0 comments on commit fe5eecd

Please sign in to comment.