Skip to content

Commit 2a64ef3

Browse files
authored
Merge pull request #854 from axone-protocol/ci/codespell
Ci/codespell
2 parents 8fe4cfa + 2c190f1 commit 2a64ef3

File tree

10 files changed

+33
-14
lines changed

10 files changed

+33
-14
lines changed

.codespellrc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
[codespell]
2+
skip = *.pulsar.go,*.pb.go,*.pb.gw.go,*.json,*.git,*.bin,*.sum,*.mod,CHANGELOG.md,./docs
3+
count = true
4+
quiet-level = 3

.github/workflows/lint.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,3 +233,18 @@ jobs:
233233
version: "v0.9.0"
234234
env:
235235
SHELLCHECK_OPTS: -e SC2034
236+
237+
lint-typos:
238+
runs-on: ubuntu-22.04
239+
steps:
240+
- name: Check out repository
241+
uses: actions/checkout@v4
242+
243+
- name: Install codespell
244+
run: |
245+
pip install codespell==2.3.0
246+
247+
- name: Check for spelling errors
248+
run: |
249+
codespell --config .codespellrc
250+
exit $?

cmd/axoned/cmd/genaccount_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ func TestAddGenesisAccountCmd(t *testing.T) {
6464
},
6565
{
6666
name: "with keyring",
67-
addr: "ser",
67+
addr: "ser", // codespell:ignore
6868
denom: "1000atom",
6969
withKeyring: true,
7070
expectErr: false,

docs/command/axoned_tx_vesting_create-permanent-locked-account.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Create a new permanently locked account funded with an allocation of tokens.
55
### Synopsis
66

77
Create a new account funded with an allocation of permanently locked tokens. These
8-
tokens may be used for staking but are non-transferable. Staking rewards will acrue as liquid and transferable
8+
tokens may be used for staking but are non-transferable. Staking rewards will accrue as liquid and transferable
99
tokens.
1010

1111
```

starship/tests/setup_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ func TestE2ETestSuite(t *testing.T) {
1717
}
1818

1919
func (s *TestSuite) TestChainsStatus() {
20-
s.T().Log("runing test for /status endpoint for each chain")
20+
s.T().Log("running test for /status endpoint for each chain")
2121

2222
for _, chainClient := range s.chainClients {
2323
status, err := chainClient.GetStatus()
@@ -40,7 +40,7 @@ func (s *TestSuite) TestChainTokenTransfer() {
4040

4141
s.TransferTokens(chain1, address, 2345000, denom)
4242

43-
// Verify the address recived the token
43+
// Verify the address received the token
4444
balance, err := chain1.Client.QueryBalanceWithDenomTraces(context.Background(), sdk.MustAccAddressFromBech32(address), nil)
4545
s.Require().NoError(err)
4646

@@ -60,10 +60,10 @@ func (s *TestSuite) TestChainIBCTransfer() {
6060
address, err := chain1.CreateRandWallet(keyName)
6161
s.Require().NoError(err)
6262

63-
// Tranfer atom to axone chain
63+
// Transfer atom to axone chain
6464
s.IBCTransferTokens(chain2, chain1, address, 12345000)
6565

66-
// Verify the address recived the token
66+
// Verify the address received the token
6767
balances, err := banktypes.NewQueryClient(chain1.Client).AllBalances(context.Background(), &banktypes.QueryAllBalancesRequest{
6868
Address: address,
6969
})

x/logic/fs/wasm/fs.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ func (f *vfs) parsePath(op string, path string) (sdk.AccAddress, string, bool, e
112112
pathsLen := len(paths)
113113
if pathsLen < 1 || paths[pathsLen-1] == "" {
114114
return nil, "", false,
115-
&fs.PathError{Op: op, Path: path, Err: fmt.Errorf("emtpy path given, should be '%s:{contractName}:{contractAddr}?query={query}'",
115+
&fs.PathError{Op: op, Path: path, Err: fmt.Errorf("empty path given, should be '%s:{contractName}:{contractAddr}?query={query}'",
116116
Scheme)}
117117
}
118118

x/logic/fs/wasm/fs_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ func TestWasmVFS(t *testing.T) {
9999
data: []byte("\"hey\""),
100100
uri: `cosmwasm:?query=%7B%22object_data%22%3A%7B%22id%22%3A%20%224cbe36399aabfcc7158ee7a66cbfffa525bb0ceab33d1ff2cff08759fe0a9b05%22%7D%7D`,
101101
wantResult: []byte("\"\""),
102-
wantError: fmt.Sprintf("cosmwasm:?query=%%7B%%22object_data%%22%%3A%%7B%%22id%%22%%3A%%20%%224cbe36399aabfcc7158ee7a66cbfffa525bb0ceab33d1ff2cff08759fe0a9b05%%22%%7D%%7D: emtpy path given, should be 'cosmwasm:{contractName}:{contractAddr}?query={query}'"),
102+
wantError: fmt.Sprintf("cosmwasm:?query=%%7B%%22object_data%%22%%3A%%7B%%22id%%22%%3A%%20%%224cbe36399aabfcc7158ee7a66cbfffa525bb0ceab33d1ff2cff08759fe0a9b05%%22%%7D%%7D: empty path given, should be 'cosmwasm:{contractName}:{contractAddr}?query={query}'"),
103103
},
104104
{
105105
contractAddress: contractAddress,

x/logic/predicate/bank_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -679,13 +679,13 @@ func TestAccount(t *testing.T) {
679679
addresses: []string{
680680
"axone1ffd5wx65l407yvm478cxzlgygw07h79sw4jwpa",
681681
},
682-
query: `account(unparseable).`,
682+
query: `account(unparsable).`,
683683
wantAnswer: &types.Answer{
684684
HasMore: false,
685685
Variables: []string{},
686686
Results: []types.Result{
687687
{
688-
Error: "error(domain_error(encoding(bech32),unparseable),[d,e,c,o,d,i,n,g, ,b,e,c,h,3,2, ,f,a,i,l,e,d,:, ,i,n,v,a,l,i,d, ,s,e,p,a,r,a,t,o,r, ,i,n,d,e,x, ,-,1],account/1)",
688+
Error: "error(domain_error(encoding(bech32),unparsable),[d,e,c,o,d,i,n,g, ,b,e,c,h,3,2, ,f,a,i,l,e,d,:, ,i,n,v,a,l,i,d, ,s,e,p,a,r,a,t,o,r, ,i,n,d,e,x, ,-,1],account/1)",
689689
Substitutions: nil,
690690
},
691691
},
@@ -695,13 +695,13 @@ func TestAccount(t *testing.T) {
695695
addresses: []string{
696696
"axone1ffd5wx65l407yvm478cxzlgygw07h79sw4jwpa",
697697
},
698-
query: `account("wrong agument type").`,
698+
query: `account("wrong argument type").`,
699699
wantAnswer: &types.Answer{
700700
HasMore: false,
701701
Variables: []string{},
702702
Results: []types.Result{
703703
{
704-
Error: "error(type_error(atom,[w,r,o,n,g, ,a,g,u,m,e,n,t, ,t,y,p,e]),account/1)",
704+
Error: "error(type_error(atom,[w,r,o,n,g, ,a,r,g,u,m,e,n,t, ,t,y,p,e]),account/1)",
705705
Substitutions: nil,
706706
},
707707
},

x/logic/prolog/assert_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ func TestWhitelistBlacklistMatches(t *testing.T) {
169169

170170
for nc, tc := range cases {
171171
Convey(
172-
fmt.Sprintf("Given test case #%d with values: %v cheked against whitelist: %v and blacklist: %v",
172+
fmt.Sprintf("Given test case #%d with values: %v checked against whitelist: %v and blacklist: %v",
173173
nc, tc.values, tc.whitelist, tc.blacklist), func() {
174174
Convey("When the function WhitelistBlacklistMatches() is called", func() {
175175
result := lo.Filter(tc.values, util.Indexed(util.WhitelistBlacklistMatches(tc.whitelist, tc.blacklist, tc.predicate)))

x/vesting/client/cli/tx.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ func NewMsgCreatePermanentLockedAccountCmd(ac address.Codec) *cobra.Command {
100100
Use: "create-permanent-locked-account [to_address] [amount]",
101101
Short: "Create a new permanently locked account funded with an allocation of tokens.",
102102
Long: `Create a new account funded with an allocation of permanently locked tokens. These
103-
tokens may be used for staking but are non-transferable. Staking rewards will acrue as liquid and transferable
103+
tokens may be used for staking but are non-transferable. Staking rewards will accrue as liquid and transferable
104104
tokens.`,
105105
Args: cobra.ExactArgs(2),
106106
RunE: func(cmd *cobra.Command, args []string) error {

0 commit comments

Comments
 (0)