Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: enable misspell linter #578

Merged
merged 1 commit into from
Jul 28, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ run:
linters:
enable:
- gofumpt
- misspell
4 changes: 2 additions & 2 deletions app/split_shares.go
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ func (sqwr *shareSplitter) hasRoomForBoth(tx, msg []byte) bool {

txBytesTaken := types.DelimLen(uint64(len(tx))) + len(tx)

maxTxSharesTaken := ((txBytesTaken - availableBytes) / consts.TxShareSize) + 1 // plus one becuase we have to add at least one share
maxTxSharesTaken := ((txBytesTaken - availableBytes) / consts.TxShareSize) + 1 // plus one because we have to add at least one share

maxMsgSharesTaken := types.MsgSharesUsed(len(msg))

Expand All @@ -225,7 +225,7 @@ func (sqwr *shareSplitter) hasRoomForTx(tx []byte) bool {
return true
}

maxSharesTaken := ((bytesTaken - availableBytes) / consts.TxShareSize) + 1 // plus one becuase we have to add at least one share
maxSharesTaken := ((bytesTaken - availableBytes) / consts.TxShareSize) + 1 // plus one because we have to add at least one share

return currentShareCount+maxSharesTaken <= sqwr.maxShareCount
}
Expand Down
2 changes: 1 addition & 1 deletion x/payment/types/builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ func NewKeyringSigner(ring keyring.Keyring, name string, chainID string) *Keyrin
}
}

// QueryAccountNumber queries the applicaiton to find the latest account number and
// QueryAccountNumber queries the application to find the latest account number and
// sequence, updating the respective internal fields. The internal account number must
// be set by this method or by manually calling k.SetAccountNumber in order for any built
// transactions to be valide
Expand Down
2 changes: 1 addition & 1 deletion x/payment/types/events.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const (
AttributeKeySize = "size"
)

// NewPayForDataEvent construt a new payformessge sdk.Event
// NewPayForDataEvent constructs a new payformessge sdk.Event
func NewPayForDataEvent(signer string, size uint64) sdk.Event {
return sdk.NewEvent(
EventTypePayForData,
Expand Down
2 changes: 1 addition & 1 deletion x/payment/types/payfordata.go
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ func CreateCommitment(k uint64, namespace, message []byte) ([]byte, error) {
}

// powerOf2MountainRange returns the heights of the subtrees for binary merkle
// mountian range
// mountain range
func powerOf2MountainRange(l, k uint64) []uint64 {
var output []uint64

Expand Down