Skip to content

Commit 33f80c9

Browse files
r0mdaunaveensrinivasan
authored andcommitted
Fix golangci-lint issues
1 parent 53bae3e commit 33f80c9

File tree

14 files changed

+48
-129
lines changed

14 files changed

+48
-129
lines changed

.golangci.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,10 @@ linters-settings:
8080
- FIXME
8181
- HACK
8282
gci:
83-
local-prefixes: github.com/ossf/scorecard
83+
sections:
84+
- standard
85+
- default
86+
- prefix(github.com/ossf/scorecard)
8487
gocritic:
8588
enabled-checks:
8689
# Diagnostic

clients/cii_blob_client.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ import (
1919
"fmt"
2020

2121
"gocloud.dev/blob"
22-
2322
// Needed to link GCP drivers.
2423
_ "gocloud.dev/blob/gcsblob"
2524
)

cron/config/config.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
package config
1717

1818
import (
19-
2019
// Used to embed config.yaml.
2120
_ "embed"
2221
"errors"

cron/data/blob.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ import (
2323
"time"
2424

2525
"gocloud.dev/blob"
26-
2726
// Needed to link in GCP drivers.
2827
_ "gocloud.dev/blob/gcsblob"
2928

cron/data/metadata.pb.go

Lines changed: 3 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

cron/data/request.pb.go

Lines changed: 3 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

cron/format/json.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,7 @@ import (
1818
"encoding/json"
1919
"fmt"
2020
"io"
21-
22-
// nolint:gosec
23-
_ "net/http/pprof"
21+
_ "net/http/pprof" // nolint:gosec
2422

2523
docs "github.com/ossf/scorecard/v4/docs/checks"
2624
sce "github.com/ossf/scorecard/v4/errors"

cron/pubsub/publisher.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ import (
2424
"sync/atomic"
2525

2626
"gocloud.dev/pubsub"
27-
2827
// Needed to link in GCP drivers.
2928
_ "gocloud.dev/pubsub/gcppubsub"
3029
"google.golang.org/protobuf/encoding/protojson"

cron/pubsub/subscriber_gocloud.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ import (
2020
"log"
2121

2222
"gocloud.dev/pubsub"
23-
2423
// Needed to link in GCP drivers.
2524
_ "gocloud.dev/pubsub/gcppubsub"
2625

cron/worker/main.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,7 @@ import (
2222
"flag"
2323
"fmt"
2424
"net/http"
25-
26-
// nolint:gosec
27-
_ "net/http/pprof"
25+
_ "net/http/pprof" // nolint:gosec
2826

2927
"go.opencensus.io/stats/view"
3028

0 commit comments

Comments
 (0)