Skip to content

Commit

Permalink
fix linter issues
Browse files Browse the repository at this point in the history
Signed-off-by: Tobias Guggenmos <[email protected]>
  • Loading branch information
slrtbtfs committed Jun 30, 2022
1 parent c325b8f commit 826ba20
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 93 deletions.
2 changes: 1 addition & 1 deletion cmd/promql-langserver/promql-langserver.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import (
"os"
"time"

kitlog "github.com/go-kit/kit/log"
kitlog "github.com/go-kit/log"
"github.com/prometheus-community/promql-langserver/config"
promClient "github.com/prometheus-community/promql-langserver/prometheus"
"github.com/prometheus/common/route"
Expand Down
6 changes: 5 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,13 @@ module github.com/prometheus-community/promql-langserver
go 1.13

require (
github.com/armon/go-metrics v0.3.9 // indirect
github.com/blang/semver v3.5.1+incompatible
github.com/go-kit/kit v0.12.0
github.com/go-kit/log v0.2.0
github.com/google/uuid v1.3.0
github.com/hashicorp/go-cleanhttp v0.5.2 // indirect
github.com/hashicorp/go-hclog v0.16.2 // indirect
github.com/hashicorp/go-immutable-radix v1.3.1 // indirect
github.com/kelseyhightower/envconfig v1.4.0
github.com/pkg/errors v0.9.1
github.com/prometheus/client_golang v1.12.2
Expand Down
86 changes: 0 additions & 86 deletions go.sum

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion langserver/definition.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ func (s *server) Definition(ctx context.Context, params *protocol.DefinitionPara

defs := []protocol.Location{}

switch n := location.Node.(type) { // nolint: gocritic
switch n := location.Node.(type) {
case *promql.VectorSelector:
queries, err := location.Doc.GetQueries()
if err != nil {
Expand Down
4 changes: 2 additions & 2 deletions langserver/headlessClient.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ import (
"context"
"fmt"

"github.com/go-kit/kit/log"
"github.com/go-kit/kit/log/level"
"github.com/go-kit/log"
"github.com/go-kit/log/level"
"github.com/prometheus-community/promql-langserver/internal/vendored/go-tools/lsp/protocol"
)

Expand Down
2 changes: 1 addition & 1 deletion langserver/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ import (
"github.com/prometheus-community/promql-langserver/config"
promClient "github.com/prometheus-community/promql-langserver/prometheus"

"github.com/go-kit/kit/log"
"github.com/go-kit/log"
"github.com/prometheus-community/promql-langserver/internal/vendored/go-tools/jsonrpc2"
"github.com/prometheus-community/promql-langserver/internal/vendored/go-tools/lsp/protocol"
"github.com/prometheus-community/promql-langserver/langserver/cache"
Expand Down
2 changes: 1 addition & 1 deletion rest/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import (
"fmt"
"net/http"

"github.com/go-kit/kit/log"
"github.com/go-kit/log"
"github.com/pkg/errors"
"github.com/prometheus-community/promql-langserver/internal/vendored/go-tools/lsp/protocol"
"github.com/prometheus-community/promql-langserver/langserver"
Expand Down

0 comments on commit 826ba20

Please sign in to comment.