From b74b68a2d88e376772d8ad637bb264f089f40d32 Mon Sep 17 00:00:00 2001 From: Youngtaek Yoon Date: Thu, 28 Mar 2024 01:29:36 +0000 Subject: [PATCH] Lint --- .golangci.yml | 1 - app/export.go | 3 ++- app/test_helpers.go | 2 +- cmd/fnsad/testnet.go | 6 +++--- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.golangci.yml b/.golangci.yml index 1f96d153..079a5901 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -17,7 +17,6 @@ linters: - misspell - maligned - nakedret - - prealloc - scopelint - staticcheck - structcheck diff --git a/app/export.go b/app/export.go index dcf21875..6f097b39 100644 --- a/app/export.go +++ b/app/export.go @@ -51,8 +51,9 @@ func (app *FnsaApp) ExportAppStateAndValidators(forZeroHeight bool, jailAllowedA // prepare for fresh start at zero height // NOTE zero height genesis is a temporary feature which will be deprecated +// in favor of export at a block height // -// in favor of export at a block height +//nolint:gocyclo func (app *FnsaApp) prepForZeroHeightGenesis(ctx sdk.Context, jailAllowedAddrs []string) { applyAllowedAddrs := false diff --git a/app/test_helpers.go b/app/test_helpers.go index 4685c93d..eac4a051 100644 --- a/app/test_helpers.go +++ b/app/test_helpers.go @@ -292,7 +292,7 @@ func NewTestNetworkFixture() network.TestFixture { // SignAndDeliverWithoutCommit signs and delivers a transaction. No commit func SignAndDeliverWithoutCommit(t *testing.T, txCfg client.TxConfig, app *bam.BaseApp, msgs []sdk.Msg, fees sdk.Coins, chainID string, accNums, accSeqs []uint64, blockTime time.Time, priv ...cryptotypes.PrivKey) (*abci.ResponseFinalizeBlock, error) { tx, err := simtestutil.GenSignedMockTx( - rand.New(rand.NewSource(time.Now().UnixNano())), + rand.New(rand.NewSource(time.Now().UnixNano())), //nolint:gosec txCfg, msgs, fees, diff --git a/cmd/fnsad/testnet.go b/cmd/fnsad/testnet.go index 9106eca4..818e2ade 100644 --- a/cmd/fnsad/testnet.go +++ b/cmd/fnsad/testnet.go @@ -75,14 +75,14 @@ type startArgs struct { algo string apiAddress string chainID string - enableLogging bool grpcAddress string minGasPrices string - numValidators int outputDir string - printMnemonic bool rpcAddress string timeoutCommit time.Duration + numValidators int + enableLogging bool + printMnemonic bool } func addTestnetFlagsToCmd(cmd *cobra.Command) {