Skip to content

Commit 8ba738c

Browse files
authored
Merge pull request #1083 from jshufro/jms/goimports
Add a makefile target to format the code, update lint, run format
2 parents 0c4a54b + 67becc0 commit 8ba738c

348 files changed

Lines changed: 621 additions & 265 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,3 +210,7 @@ test:
210210
clean:
211211
rm -rf ${BUILD_DIR}
212212
docker buildx rm smartnode-builder
213+
214+
.PHONY: fmt
215+
fmt:
216+
go run golang.org/x/tools/cmd/goimports@v0.44.0 -local github.com/rocket-pool/smartnode -w .

bindings/dao/claim.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import (
55
"sync"
66

77
"github.com/ethereum/go-ethereum/accounts/abi/bind"
8+
89
"github.com/rocket-pool/smartnode/bindings/rocketpool"
910
)
1011

bindings/dao/protocol/proposal.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,12 @@ import (
1313
"github.com/ethereum/go-ethereum/accounts/abi"
1414
"github.com/ethereum/go-ethereum/accounts/abi/bind"
1515
"github.com/ethereum/go-ethereum/common"
16+
"golang.org/x/sync/errgroup"
17+
1618
"github.com/rocket-pool/smartnode/bindings/dao"
1719
"github.com/rocket-pool/smartnode/bindings/rocketpool"
1820
"github.com/rocket-pool/smartnode/bindings/types"
1921
strutils "github.com/rocket-pool/smartnode/bindings/utils/strings"
20-
"golang.org/x/sync/errgroup"
2122
)
2223

2324
// Settings

bindings/dao/protocol/proposals.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import (
99
"github.com/ethereum/go-ethereum/accounts/abi/bind"
1010
"github.com/ethereum/go-ethereum/common"
1111
"github.com/ethereum/go-ethereum/common/math"
12+
1213
"github.com/rocket-pool/smartnode/bindings/rocketpool"
1314
"github.com/rocket-pool/smartnode/bindings/types"
1415
)

bindings/dao/protocol/verify.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,12 @@ import (
1010

1111
"github.com/ethereum/go-ethereum/accounts/abi/bind"
1212
"github.com/ethereum/go-ethereum/common"
13+
"golang.org/x/sync/errgroup"
14+
1315
"github.com/rocket-pool/smartnode/bindings/rocketpool"
1416
"github.com/rocket-pool/smartnode/bindings/types"
1517
"github.com/rocket-pool/smartnode/bindings/utils/eth"
1618
"github.com/rocket-pool/smartnode/bindings/utils/multicall"
17-
"golang.org/x/sync/errgroup"
1819
)
1920

2021
const (

bindings/dao/security/actions.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import (
66

77
"github.com/ethereum/go-ethereum/accounts/abi/bind"
88
"github.com/ethereum/go-ethereum/common"
9+
910
"github.com/rocket-pool/smartnode/bindings/rocketpool"
1011
)
1112

bindings/dao/security/proposals.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import (
77

88
"github.com/ethereum/go-ethereum/accounts/abi/bind"
99
"github.com/ethereum/go-ethereum/common"
10+
1011
"github.com/rocket-pool/smartnode/bindings/dao"
1112
"github.com/rocket-pool/smartnode/bindings/rocketpool"
1213
)

bindings/dao/security/security.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,10 @@ import (
77

88
"github.com/ethereum/go-ethereum/accounts/abi/bind"
99
"github.com/ethereum/go-ethereum/common"
10+
"golang.org/x/sync/errgroup"
11+
1012
"github.com/rocket-pool/smartnode/bindings/rocketpool"
1113
"github.com/rocket-pool/smartnode/bindings/utils/strings"
12-
"golang.org/x/sync/errgroup"
1314
)
1415

1516
// Settings

bindings/dao/upgrades/details.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,10 @@ import (
55

66
"github.com/ethereum/go-ethereum/accounts/abi/bind"
77
"github.com/ethereum/go-ethereum/common"
8+
"golang.org/x/sync/errgroup"
9+
810
"github.com/rocket-pool/smartnode/bindings/rocketpool"
911
rptypes "github.com/rocket-pool/smartnode/bindings/types"
10-
"golang.org/x/sync/errgroup"
1112
)
1213

1314
// Settings

bindings/deposit/deposit-pool.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import (
66

77
"github.com/ethereum/go-ethereum/accounts/abi/bind"
88
"github.com/ethereum/go-ethereum/common"
9+
910
"github.com/rocket-pool/smartnode/bindings/rocketpool"
1011
)
1112

0 commit comments

Comments
 (0)