diff --git a/.github/.codespellignore b/.github/.codespellignore index f70d9539584a..301cd418a1b0 100644 --- a/.github/.codespellignore +++ b/.github/.codespellignore @@ -1,4 +1,6 @@ cips pullrequest keypair -pastTime \ No newline at end of file +pastTime +hasTables +Nam \ No newline at end of file diff --git a/.github/workflows/misspell.yml b/.github/workflows/misspell.yml index 219bb1727077..c5fe98ec89e7 100644 --- a/.github/workflows/misspell.yml +++ b/.github/workflows/misspell.yml @@ -14,7 +14,7 @@ jobs: continue-on-error: true run: | sudo apt-get install codespell -y - codespell -w --skip="*.pulsar.go,*.pb.go,*.pb.gw.go,*.cosmos_orm.go,*.json,*.git,*.js,crypto/keys,fuzz,*.h" --ignore-words=".github/.codespellignore" + codespell -w --skip="*.pulsar.go,*.pb.go,*.pb.gw.go,*.cosmos_orm.go,*.json,*.git,*.js,crypto/keys,fuzz,*.h,proto/tendermint" --ignore-words=.github/.codespellignore - uses: peter-evans/create-pull-request@v5 with: token: ${{ secrets.PRBOT_PAT }} diff --git a/README.md b/README.md index 27c7e9ac9b00..03c776f2d301 100644 --- a/README.md +++ b/README.md @@ -29,7 +29,7 @@ Imported by Sims - Lint Satus + Lint Status The Cosmos SDK is a framework for building blockchain applications. [CometBFT (BFT Consensus)](https://github.com/cometbft/cometbft) and the Cosmos SDK are written in the Go programming language. Cosmos SDK is used to build [Gaia](https://github.com/cosmos/gaia), the implementation of the Cosmos Hub. diff --git a/client/tx/tx_test.go b/client/tx/tx_test.go index 231020d6ada2..42553a4835f5 100644 --- a/client/tx/tx_test.go +++ b/client/tx/tx_test.go @@ -32,7 +32,7 @@ func newTestTxConfig() (client.TxConfig, codec.Codec) { return authtx.NewTxConfig(codec.NewProtoCodec(encodingConfig.InterfaceRegistry), authtx.DefaultSignModes), encodingConfig.Codec } -// mockContext is a mock client.Context to return abitrary simulation response, used to +// mockContext is a mock client.Context to return arbitrary simulation response, used to // unit test CalculateGas. type mockContext struct { gasUsed uint64 diff --git a/crypto/keys/secp256k1/internal/secp256k1/libsecp256k1/sage/group_prover.sage b/crypto/keys/secp256k1/internal/secp256k1/libsecp256k1/sage/group_prover.sage index ab580c5b23bb..68882e93659a 100644 --- a/crypto/keys/secp256k1/internal/secp256k1/libsecp256k1/sage/group_prover.sage +++ b/crypto/keys/secp256k1/internal/secp256k1/libsecp256k1/sage/group_prover.sage @@ -17,7 +17,7 @@ # - A constraint describing the requirements of the law, called "require" # * Implementations are transliterated into functions that operate as well on # algebraic input points, and are called once per combination of branches -# exectured. Each execution returns: +# executed. Each execution returns: # - A constraint describing the assumptions this implementation requires # (such as Z1=1), called "assumeFormula" # - A constraint describing the assumptions this specific branch requires, diff --git a/server/types/abci.go b/server/types/abci.go index 965aed3df673..9c298691dc6b 100644 --- a/server/types/abci.go +++ b/server/types/abci.go @@ -33,5 +33,5 @@ type ABCI interface { ListSnapshots(*abci.RequestListSnapshots) (*abci.ResponseListSnapshots, error) // List available snapshots OfferSnapshot(*abci.RequestOfferSnapshot) (*abci.ResponseOfferSnapshot, error) // Offer a snapshot to the application LoadSnapshotChunk(*abci.RequestLoadSnapshotChunk) (*abci.ResponseLoadSnapshotChunk, error) // Load a snapshot chunk - ApplySnapshotChunk(*abci.RequestApplySnapshotChunk) (*abci.ResponseApplySnapshotChunk, error) // Apply a shapshot chunk + ApplySnapshotChunk(*abci.RequestApplySnapshotChunk) (*abci.ResponseApplySnapshotChunk, error) // Apply a snapshot chunk } diff --git a/tools/hubl/README.md b/tools/hubl/README.md index 97d02921ddbe..6d04fb778061 100644 --- a/tools/hubl/README.md +++ b/tools/hubl/README.md @@ -45,7 +45,7 @@ The chain configuration is stored in `~/.hubl/config.toml`. :::tip -When using an unsecure gRPC endpoint, change the `insecure` field to `true` in the config file. +When using an insecure gRPC endpoint, change the `insecure` field to `true` in the config file. ```toml [chains] diff --git a/types/address_test.go b/types/address_test.go index db0c932f472f..53b06475079c 100644 --- a/types/address_test.go +++ b/types/address_test.go @@ -427,7 +427,7 @@ func (s *addressTestSuite) TestCustomAddressVerifier() { return fmt.Errorf("incorrect address length %d", n) }) - // Verifiy that the custom logic rejects this 10 byte address + // Verify that the custom logic rejects this 10 byte address err = types.VerifyAddressFormat(addr) s.Require().NotNil(err) _, err = types.AccAddressFromBech32(accBech) diff --git a/x/auth/vesting/autocli.go b/x/auth/vesting/autocli.go index d79228c25307..e307b6f66401 100644 --- a/x/auth/vesting/autocli.go +++ b/x/auth/vesting/autocli.go @@ -34,7 +34,7 @@ timestamp.`, Use: "create-permanent-locked-account [to_address] [amount]", Short: "Create a new permanently locked account funded with an allocation of tokens.", Long: `Create a new account funded with an allocation of permanently locked tokens. -These tokens may be used for staking but are non-transferable. Staking rewards will acrue as liquid and transferable tokens.`, +These tokens may be used for staking but are non-transferable. Staking rewards will accrue as liquid and transferable tokens.`, PositionalArgs: []*autocliv1.PositionalArgDescriptor{ {ProtoField: "to_address"}, {ProtoField: "amount", Varargs: true}, diff --git a/x/authz/keeper/msg_server_test.go b/x/authz/keeper/msg_server_test.go index 597c1e02c71e..43fb013fea92 100644 --- a/x/authz/keeper/msg_server_test.go +++ b/x/authz/keeper/msg_server_test.go @@ -102,7 +102,7 @@ func (suite *TestSuite) TestGrant() { { name: "invalid grant, past time", malleate: func() *authz.MsgGrant { - pastTime := curBlockTime.Add(-time.Hour) + pTime := curBlockTime.Add(-time.Hour) grant, err := authz.NewGrant(curBlockTime, banktypes.NewSendAuthorization(coins, nil), &oneHour) // we only need the authorization suite.Require().NoError(err) return &authz.MsgGrant{ @@ -110,7 +110,7 @@ func (suite *TestSuite) TestGrant() { Grantee: grantee.String(), Grant: authz.Grant{ Authorization: grant.Authorization, - Expiration: &pastTime, + Expiration: &pTime, }, } }, diff --git a/x/distribution/migrations/v4/migrate_funds_test.go b/x/distribution/migrations/v4/migrate_funds_test.go index 74e4647e76fc..b353e111c1e2 100644 --- a/x/distribution/migrations/v4/migrate_funds_test.go +++ b/x/distribution/migrations/v4/migrate_funds_test.go @@ -104,7 +104,7 @@ func TestFundsMigration(t *testing.T) { _, err = v4.MigrateFunds(ctx, bankKeeper, feepool, distrAcc, poolAcc) require.NoError(t, err) - // set distrbution feepool as empty (since migration) + // set distribution feepool as empty (since migration) err = distrKeeper.FeePool.Set(ctx, disttypes.FeePool{}) require.NoError(t, err) diff --git a/x/gov/README.md b/x/gov/README.md index 8aa290a570ab..4a513b22c016 100644 --- a/x/gov/README.md +++ b/x/gov/README.md @@ -260,7 +260,7 @@ Since this is more of a social feature than a technical feature, we'll now get i * In the event of an economic emergency, what should validators do? * Terra crash of May, 2022, saw validators choose to run a new binary with code that had not been approved by governance, because the governance token had been inflated to nothing. * What is the purpose of the chain, specifically? - * best example of this is the Cosmos hub, where different founding groups, have different interpertations of the purpose of the network. + * best example of this is the Cosmos hub, where different founding groups, have different interpretations of the purpose of the network. This genesis entry, "constitution" hasn't been designed for existing chains, who should likely just ratify a constitution using their governance system. Instead, this is for new chains. It will allow for validators to have a much clearer idea of purpose and the expecations placed on them while operating their nodes. Likewise, for community members, the constitution will give them some idea of what to expect from both the "chain team" and the validators, respectively. diff --git a/x/tx/decode/decode_test.go b/x/tx/decode/decode_test.go index 9fc3f16966fa..a54702cbe9df 100644 --- a/x/tx/decode/decode_test.go +++ b/x/tx/decode/decode_test.go @@ -140,6 +140,6 @@ func TestDecodeTxBodyPanic(t *testing.T) { t.Fatal("expected a non-nil error") } if g, w := err.Error(), "could not consume length prefix"; !strings.Contains(g, w) { - t.Fatalf("error mismatch\n%s\ndoes not contain\n\t%q", g, w) + t.Fatalf("error mismatch\n%s\nodes not contain\n\t%q", g, w) } }