File tree Expand file tree Collapse file tree 9 files changed +46
-11
lines changed Expand file tree Collapse file tree 9 files changed +46
-11
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,33 @@ linters:
9
9
- gci
10
10
- testifylint
11
11
12
+ linters-settings :
13
+ gci :
14
+ # Section configuration to compare against.
15
+ # Section names are case-insensitive and may contain parameters in ().
16
+ # The default order of sections is `standard > default > custom > blank > dot > alias > localmodule`,
17
+ # If `custom-order` is `true`, it follows the order of `sections` option.
18
+ # Default: ["standard", "default"]
19
+ sections :
20
+ - standard # Standard section: captures all standard packages.
21
+ - default # Default section: contains all imports that could not be matched to another section type.
22
+ - prefix(github.com/cosmos/cosmos-sdk) # Custom section: groups all imports with the specified Prefix.
23
+ - prefix(github.com/cosmos/ibc-go)
24
+ - blank # Blank section: contains all blank imports. This section is not present unless explicitly enabled.
25
+ - dot # Dot section: contains all dot imports. This section is not present unless explicitly enabled.
26
+ - alias # Alias section: contains all alias imports. This section is not present unless explicitly enabled.
27
+ - localmodule # Local module section: contains all local packages. This section is not present unless explicitly enabled.
28
+ # Skip generated files.
29
+ # Default: true
30
+ skip-generated : false
31
+ # Enable custom order of sections.
32
+ # If `true`, make the section order the same as the order of `sections`.
33
+ # Default: false
34
+ custom-order : true
35
+ # Drops lexical ordering for custom sections.
36
+ # Default: false
37
+ no-lex-order : true
38
+
12
39
issues :
13
40
max-issues-per-linter : 0
14
41
max-same-issues : 0
Original file line number Diff line number Diff line change @@ -7,10 +7,11 @@ import (
7
7
"os"
8
8
"testing"
9
9
10
- "github.com/CosmWasm/wasmvm/v2/internal/api"
11
- "github.com/CosmWasm/wasmvm/v2/types"
12
10
"github.com/stretchr/testify/assert"
13
11
"github.com/stretchr/testify/require"
12
+
13
+ "github.com/CosmWasm/wasmvm/v2/internal/api"
14
+ "github.com/CosmWasm/wasmvm/v2/types"
14
15
)
15
16
16
17
const IBC_TEST_CONTRACT = "./testdata/ibc_reflect.wasm"
Original file line number Diff line number Diff line change 5
5
"os"
6
6
"testing"
7
7
8
- "github.com/CosmWasm/wasmvm/v2/types"
9
8
"github.com/stretchr/testify/require"
9
+
10
+ "github.com/CosmWasm/wasmvm/v2/types"
10
11
)
11
12
12
13
func TestValidateAddressFailure (t * testing.T ) {
Original file line number Diff line number Diff line change @@ -6,9 +6,10 @@ import (
6
6
"sync"
7
7
"testing"
8
8
9
+ "github.com/stretchr/testify/require"
10
+
9
11
"github.com/CosmWasm/wasmvm/v2/internal/api/testdb"
10
12
"github.com/CosmWasm/wasmvm/v2/types"
11
- "github.com/stretchr/testify/require"
12
13
)
13
14
14
15
type queueData struct {
Original file line number Diff line number Diff line change @@ -13,8 +13,9 @@ import (
13
13
"strings"
14
14
"syscall"
15
15
16
- "github.com/CosmWasm/wasmvm/v2/types"
17
16
"golang.org/x/sys/unix"
17
+
18
+ "github.com/CosmWasm/wasmvm/v2/types"
18
19
)
19
20
20
21
// Value types
Original file line number Diff line number Diff line change @@ -13,9 +13,10 @@ import (
13
13
"testing"
14
14
"time"
15
15
16
- "github.com/CosmWasm/wasmvm/v2/types"
17
16
"github.com/stretchr/testify/assert"
18
17
"github.com/stretchr/testify/require"
18
+
19
+ "github.com/CosmWasm/wasmvm/v2/types"
19
20
)
20
21
21
22
const (
Original file line number Diff line number Diff line change @@ -8,10 +8,11 @@ import (
8
8
"strings"
9
9
"testing"
10
10
11
- "github.com/CosmWasm/wasmvm/v2/internal/api/testdb"
12
- "github.com/CosmWasm/wasmvm/v2/types"
13
11
"github.com/stretchr/testify/assert"
14
12
"github.com/stretchr/testify/require"
13
+
14
+ "github.com/CosmWasm/wasmvm/v2/internal/api/testdb"
15
+ "github.com/CosmWasm/wasmvm/v2/types"
15
16
)
16
17
17
18
/** helper constructors **/
Original file line number Diff line number Diff line change @@ -9,10 +9,11 @@ import (
9
9
"os"
10
10
"testing"
11
11
12
- "github.com/CosmWasm/wasmvm/v2/internal/api"
13
- "github.com/CosmWasm/wasmvm/v2/types"
14
12
"github.com/stretchr/testify/assert"
15
13
"github.com/stretchr/testify/require"
14
+
15
+ "github.com/CosmWasm/wasmvm/v2/internal/api"
16
+ "github.com/CosmWasm/wasmvm/v2/types"
16
17
)
17
18
18
19
const (
Original file line number Diff line number Diff line change @@ -3,8 +3,9 @@ package cosmwasm
3
3
import (
4
4
"testing"
5
5
6
- "github.com/CosmWasm/wasmvm/v2/types"
7
6
"github.com/stretchr/testify/require"
7
+
8
+ "github.com/CosmWasm/wasmvm/v2/types"
8
9
)
9
10
10
11
func TestCreateChecksum (t * testing.T ) {
You can’t perform that action at this time.
0 commit comments