linter: enable nolintlint (#6162)

* nolintlint enable

* remove space

* fix tests

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
This commit is contained in:
Marko
2020-05-08 08:46:12 +00:00
committed by GitHub
co-authored by mergify[bot]
parent 4e328d75db
commit bef3689245
49 changed files with 41 additions and 105 deletions
-1
View File
@@ -563,7 +563,6 @@ func removeZeroCoins(coins Coins) Coins {
//-----------------------------------------------------------------------------
// Sort interface
//nolint
func (coins Coins) Len() int { return len(coins) }
func (coins Coins) Less(i, j int) bool { return coins[i].Denom < coins[j].Denom }
func (coins Coins) Swap(i, j int) { coins[i], coins[j] = coins[j], coins[i] }
-1
View File
@@ -575,7 +575,6 @@ func removeZeroDecCoins(coins DecCoins) DecCoins {
var _ sort.Interface = Coins{}
//nolint
func (coins DecCoins) Len() int { return len(coins) }
func (coins DecCoins) Less(i, j int) bool { return coins[i].Denom < coins[j].Denom }
func (coins DecCoins) Swap(i, j int) { coins[i], coins[j] = coins[j], coins[i] }
-5
View File
@@ -1,10 +1,5 @@
package types
import (
_ "github.com/gogo/protobuf/gogoproto" // nolint
_ "github.com/regen-network/cosmos-proto" // nolint
)
// CustomProtobufType defines the interface custom gogo proto types must implement
// in order to be used as a "customtype" extension.
//
-10
View File
@@ -6,12 +6,10 @@ import (
"github.com/cosmos/cosmos-sdk/store/types"
)
// nolint - reexport
type (
PruningOptions = types.PruningOptions
)
// nolint - reexport
type (
Store = types.Store
Committer = types.Committer
@@ -57,7 +55,6 @@ func DiffKVStores(a KVStore, b KVStore, prefixesToSkip [][]byte) (kvAs, kvBs []t
return types.DiffKVStores(a, b, prefixesToSkip)
}
// nolint - reexport
type (
CacheKVStore = types.CacheKVStore
CommitKVStore = types.CommitKVStore
@@ -66,10 +63,8 @@ type (
CommitID = types.CommitID
)
// nolint - reexport
type StoreType = types.StoreType
// nolint - reexport
const (
StoreTypeMulti = types.StoreTypeMulti
StoreTypeDB = types.StoreTypeDB
@@ -78,7 +73,6 @@ const (
StoreTypeMemory = types.StoreTypeMemory
)
// nolint - reexport
type (
StoreKey = types.StoreKey
CapabilityKey = types.CapabilityKey
@@ -158,25 +152,21 @@ type TraceContext = types.TraceContext
// --------------------------------------
// nolint - reexport
type (
Gas = types.Gas
GasMeter = types.GasMeter
GasConfig = types.GasConfig
)
// nolint - reexport
func NewGasMeter(limit Gas) GasMeter {
return types.NewGasMeter(limit)
}
// nolint - reexport
type (
ErrorOutOfGas = types.ErrorOutOfGas
ErrorGasOverflow = types.ErrorGasOverflow
)
// nolint - reexport
func NewInfiniteGasMeter() GasMeter {
return types.NewInfiniteGasMeter()
}
-1
View File
@@ -77,7 +77,6 @@ func NewTestMsg(addrs ...AccAddress) *TestMsg {
}
}
//nolint
func (msg *TestMsg) Route() string { return "TestMsg" }
func (msg *TestMsg) Type() string { return "Test message" }
func (msg *TestMsg) GetSignBytes() []byte {