Skip to content

Commit

Permalink
Add local-prefixes setting for goimports (ava-labs#1612)
Browse files Browse the repository at this point in the history
  • Loading branch information
dhrubabasu committed Jun 13, 2023
1 parent b157612 commit 31db450
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ linters:
# - lll

linters-settings:
goimports:
local-prefixes: github.com/ava-labs/avalanchego
depguard:
list-type: blacklist
packages-with-error-message:
Expand Down
1 change: 1 addition & 0 deletions tests/upgrade/upgrade_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import (
"github.com/onsi/gomega"

runner_sdk "github.com/ava-labs/avalanche-network-runner-sdk"

"github.com/ava-labs/avalanchego/tests"
)

Expand Down
3 changes: 2 additions & 1 deletion x/merkledb/db.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,15 @@ import (
"golang.org/x/exp/maps"
"golang.org/x/exp/slices"

"github.com/prometheus/client_golang/prometheus"

"github.com/ava-labs/avalanchego/database"
"github.com/ava-labs/avalanchego/database/prefixdb"
"github.com/ava-labs/avalanchego/ids"
"github.com/ava-labs/avalanchego/trace"
"github.com/ava-labs/avalanchego/utils"
"github.com/ava-labs/avalanchego/utils/math"
"github.com/ava-labs/avalanchego/utils/set"
"github.com/prometheus/client_golang/prometheus"
)

const (
Expand Down

0 comments on commit 31db450

Please sign in to comment.