Skip to content

Commit e89b056

Browse files
Merge pull request #599 from onflow/janez/enable-more-linters
Add goimports linter
2 parents 870b11c + 95bcaad commit e89b056

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

.golangci.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
[linters]
2+
enable = [
3+
"goimports",
4+
]

models/sequential_height_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
package models
22

33
import (
4-
"github.com/stretchr/testify/require"
54
"math"
65
"testing"
6+
7+
"github.com/stretchr/testify/require"
78
)
89

910
func TestSequentialHeight(t *testing.T) {

services/requester/rotation_signer_test.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,13 @@ package requester
22

33
import (
44
"fmt"
5+
"sync"
6+
"testing"
7+
58
"github.com/onflow/flow-go-sdk/crypto"
69
"github.com/stretchr/testify/assert"
710
"github.com/stretchr/testify/require"
811
"golang.org/x/exp/maps"
9-
"sync"
10-
"testing"
1112
)
1213

1314
func Test_KeyRotation(t *testing.T) {

0 commit comments

Comments
 (0)