regenerate mocks, don't format autogenered files on make format (#5848)

This commit is contained in:
Alessio Treglia 2020-03-20 19:14:53 +01:00 committed by GitHub
parent 1d0967c32a
commit 22f377a858
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 15 additions and 25 deletions

View File

@ -197,9 +197,9 @@ lint:
.PHONY: lint
format:
find . -name '*.go' -type f -not -path "./vendor*" -not -path "*.git*" -not -path "./client/lcd/statik/statik.go" -not -name '*.pb.go' | xargs gofmt -w -s
find . -name '*.go' -type f -not -path "./vendor*" -not -path "*.git*" -not -path "./client/lcd/statik/statik.go" -not -name '*.pb.go' | xargs misspell -w
find . -name '*.go' -type f -not -path "./vendor*" -not -path "*.git*" -not -path "./client/lcd/statik/statik.go" -not -name '*.pb.go' | xargs goimports -w -local github.com/cosmos/cosmos-sdk
find . -name '*.go' -type f -not -path "./vendor*" -not -path "*.git*" -not -path "./client/lcd/statik/statik.go" -not -path "./tests/mocks/*" -not -name '*.pb.go' | xargs gofmt -w -s
find . -name '*.go' -type f -not -path "./vendor*" -not -path "*.git*" -not -path "./client/lcd/statik/statik.go" -not -path "./tests/mocks/*" -not -name '*.pb.go' | xargs misspell -w
find . -name '*.go' -type f -not -path "./vendor*" -not -path "*.git*" -not -path "./client/lcd/statik/statik.go" -not -path "./tests/mocks/*" -not -name '*.pb.go' | xargs goimports -w -local github.com/cosmos/cosmos-sdk
.PHONY: format
###############################################################################

View File

@ -5,9 +5,8 @@
package mocks
import (
reflect "reflect"
gomock "github.com/golang/mock/gomock"
reflect "reflect"
)
// MockNodeQuerier is a mock of NodeQuerier interface

View File

@ -5,10 +5,9 @@
package mocks
import (
reflect "reflect"
gomock "github.com/golang/mock/gomock"
tm_db "github.com/tendermint/tm-db"
reflect "reflect"
)
// MockDB is a mock of DB interface

View File

@ -5,11 +5,9 @@
package mocks
import (
reflect "reflect"
gomock "github.com/golang/mock/gomock"
types "github.com/cosmos/cosmos-sdk/types"
gomock "github.com/golang/mock/gomock"
reflect "reflect"
)
// MockAnteDecorator is a mock of AnteDecorator interface

View File

@ -5,11 +5,9 @@
package mocks
import (
reflect "reflect"
gomock "github.com/golang/mock/gomock"
types "github.com/cosmos/cosmos-sdk/types"
gomock "github.com/golang/mock/gomock"
reflect "reflect"
)
// MockInvariantRegistry is a mock of InvariantRegistry interface

View File

@ -6,16 +6,14 @@ package mocks
import (
json "encoding/json"
reflect "reflect"
context "github.com/cosmos/cosmos-sdk/client/context"
codec "github.com/cosmos/cosmos-sdk/codec"
types "github.com/cosmos/cosmos-sdk/types"
gomock "github.com/golang/mock/gomock"
mux "github.com/gorilla/mux"
cobra "github.com/spf13/cobra"
types0 "github.com/tendermint/tendermint/abci/types"
context "github.com/cosmos/cosmos-sdk/client/context"
codec "github.com/cosmos/cosmos-sdk/codec"
types "github.com/cosmos/cosmos-sdk/types"
reflect "reflect"
)
// MockAppModuleBasic is a mock of AppModuleBasic interface

View File

@ -5,11 +5,9 @@
package mocks
import (
reflect "reflect"
gomock "github.com/golang/mock/gomock"
types "github.com/cosmos/cosmos-sdk/types"
gomock "github.com/golang/mock/gomock"
reflect "reflect"
)
// MockRouter is a mock of Router interface