@@ -38,16 +38,16 @@ linters:
disable-all: true
enable:
- bodyclose
- # - deadcode
+ - deadcode
- depguard
- dogsled
# - dupl
- # - errcheck
+ - errcheck
- funlen
# - gocritic
- gocyclo
- gofmt
- # - goimports
+ - goimports
# - golint
# - gosec
# - gosimple
@@ -6,7 +6,7 @@ import (
"fmt"
"sync"
- "github.com/eapache/go-xerial-snappy"
+ snappy "github.com/eapache/go-xerial-snappy"
"github.com/pierrec/lz4"
)
@@ -7,7 +7,7 @@ import (
"io/ioutil"
@@ -2,9 +2,10 @@ package sarama
import (
"errors"
+ "testing"
+
krbcfg "gopkg.in/jcmturner/gokrb5.v7/config"
"gopkg.in/jcmturner/gokrb5.v7/test/testdata"
- "testing"
/*
@@ -8,9 +8,10 @@ import (
"os"
"strings"
+ "github.com/rcrowley/go-metrics"
"github.com/Shopify/sarama"
"github.com/Shopify/sarama/tools/tls"
- "github.com/rcrowley/go-metrics"
var (
@@ -14,9 +14,10 @@ import (
gosync "sync"
"time"
+ metrics "github.com/rcrowley/go-metrics"
- metrics "github.com/rcrowley/go-metrics"
@@ -1,8 +1,9 @@
package sarama
- "github.com/klauspost/compress/zstd"
+ "github.com/klauspost/compress/zstd"