Skip to content

Commit 1f181c1

Browse files
authored
Merge pull request #2256 from CosmWasm/aw/typos-ci
Add typo check to the CI
2 parents 0230bbb + 47ddd11 commit 1f181c1

File tree

84 files changed

+155
-126
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

84 files changed

+155
-126
lines changed

.github/workflows/typo-check.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Check for typos
2+
3+
on:
4+
merge_group:
5+
pull_request:
6+
push:
7+
branches:
8+
- main
9+
workflow_dispatch:
10+
11+
jobs:
12+
check-typos:
13+
name: "Spell-check repository source"
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: Checkout repository
17+
uses: actions/checkout@v4
18+
- name: Run spell-check
19+
uses: crate-ci/typos@master

CHANGELOG-pre1.0.0.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -738,7 +738,7 @@ and this project adheres to
738738
with this change, the `backtraces` feature now requires Rust nightly.
739739
- Rename `StdError::ParseErr::source` to `StdError::ParseErr::source_type` and
740740
`StdError::SerializeErr::target` to `StdError::SerializeErr::target_type` to
741-
work around speacial treatment of the field name `source` in thiserror.
741+
work around special treatment of the field name `source` in thiserror.
742742
- Rename `Extern` to `Deps` to unify naming.
743743
- Simplify ownership of calling `handle`, etc. with `Deps` and `DepsMut` struct
744744
that just contains references (`DepsMut` has `&mut Storage` otherwise the
@@ -1259,7 +1259,7 @@ https://github.com/CosmWasm/cosmwasm/issues/451).
12591259
for mock storage and copying a stateless bridge for the external storage,
12601260
which are different semantics.
12611261
- Remove public `cosmwasm::imports::dependencies`. A user of this library does
1262-
not need to call this explicitely. Dependencies are created internally and
1262+
not need to call this explicitly. Dependencies are created internally and
12631263
passed as an argument in `exports::do_init`, `exports::do_handle` and
12641264
`exports::do_query`.
12651265
- Make `ExternalStorage` not `Clone`able anymore. This does not copy any data,

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -768,7 +768,7 @@ and this project adheres to
768768
- all: Bump a few dependency versions to make the codebase compile with
769769
`-Zminimal-versions` ([#1465]).
770770
- cosmwasm-profiler: Package was removed 🪦. It served its job showing us that
771-
we cannot properly measure different runtimes for differet Wasm opcodes.
771+
we cannot properly measure different runtimes for different Wasm opcodes.
772772
- cosmwasm-schema: schema generation is now locked to produce strictly
773773
`draft-07` schemas
774774
- cosmwasm-schema: `QueryResponses` derive now sets the `JsonSchema` trait bound

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
members = ["packages/*"]
33
exclude = ["contracts"]
44

5-
# Resolver has to be set explicitely in workspaces
5+
# Resolver has to be set explicitly in workspaces
66
# due to https://github.com/rust-lang/cargo/issues/9956
77
resolver = "2"
88

IBC.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ pub enum IbcMsg {
2525
/// We cannot select the port_id, this is whatever the local chain has bound the ibctransfer
2626
/// module to.
2727
Transfer {
28-
/// exisiting channel to send the tokens over
28+
/// existing channel to send the tokens over
2929
channel_id: String,
3030
/// address on the remote chain to receive these tokens
3131
to_address: String,
@@ -385,7 +385,7 @@ produced 3 suggestions on how to handle errors and rollbacks _inside
385385
`submessage` and capture the error. This approach requires we use _exactly
386386
one_ submessage. If we have multiple, we may commit #1 and rollback #2 (see
387387
example 3 for that case). The main point is moving `messages` to
388-
`submessages` and reformating the error in `reply`. Note that if you set the
388+
`submessages` and reformatting the error in `reply`. Note that if you set the
389389
`Response.data` field in `reply` it will override the acknowledgement
390390
returned from the parent call. (See
391391
[bottom of reply section](./SEMANTICS.md#handling-the-reply)). You can see a

MIGRATING.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1342,7 +1342,7 @@ arbitrary ones.
13421342

13431343
- The block time in `env.block.time` is now a `Timestamp` which stores
13441344
nanosecond precision. `env.block.time_nanos` was removed. If you need the
1345-
compnents as before, use
1345+
components as before, use
13461346
```rust
13471347
let seconds = env.block.time.nanos() / 1_000_000_000;
13481348
let nsecs = env.block.time.nanos() % 1_000_000_000;
@@ -1456,7 +1456,7 @@ arbitrary ones.
14561456
- Contracts now support any custom error type `E: ToString + From<StdError>`.
14571457
Previously this has been `StdError`, which you can still use. However, you can
14581458
now create a much more structured error experience for your unit tests that
1459-
handels exactly the error cases of your contract. In order to get a convenient
1459+
handles exactly the error cases of your contract. In order to get a convenient
14601460
implementation for `ToString` and `From<StdError>`, we use the crate
14611461
[thiserror](https://crates.io/crates/thiserror), which needs to be added to
14621462
the contracts dependencies in `Cargo.toml`. To create the custom error, create
@@ -1492,8 +1492,8 @@ arbitrary ones.
14921492
- `fn handle`: `Result<HandleResponse, MyCustomError>`,
14931493
- `fn query`: `Result<Binary, MyCustomError>`.
14941494

1495-
If one of your funtions does not use the custom error, you can continue to use
1496-
`StdError` as before. I.e. you can have `handle` returning
1495+
If one of your functions does not use the custom error, you can continue to
1496+
use `StdError` as before. I.e. you can have `handle` returning
14971497
`Result<HandleResponse, MyCustomError>` and `query` returning
14981498
`StdResult<Binary>`.
14991499

_typos.toml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
[default]
2+
extend-ignore-re = [
3+
"(?Rm)^.*(#|//)\\s*spellchecker:disable-line$",
4+
]
5+
6+
[files]
7+
extend-exclude = [
8+
"contracts/**/schema/**",
9+
"packages/crypto/**/*.json",
10+
]

contracts/burner/tests/integration.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
//! Then running `cargo integration-test` will validate we can properly call into that generated Wasm.
44
//!
55
//! You can easily convert unit tests to integration tests.
6-
//! 1. First copy them over verbatum,
6+
//! 1. First copy them over verbatim,
77
//! 2. Then change
88
//! let mut deps = mock_dependencies(20, &[]);
99
//! to

contracts/crypto-verify/src/webauthn.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ pub fn verify(
2020
//
2121
// - the length of the encoded bytes being correct
2222
// - the point being an element of the curve
23-
// - the conversion from the encoded coorinate to an affine point succeeding
23+
// - the conversion from the encoded coordinate to an affine point succeeding
2424
// - the affine point actually being a valid public key
2525
// - the signature could actually exist like this for a secp256r1 ECDSA key
2626
//

contracts/cyberpunk/schema/cyberpunk.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"instantiate": {
66
"$schema": "http://json-schema.org/draft-07/schema#",
77
"title": "InstantiateMsg",
8-
"description": "An empty struct that serves as a placeholder in different places, such as contracts that don't set a custom message.\n\nIt is designed to be expressable in correct JSON and JSON Schema but contains no meaningful data. Previously we used enums without cases, but those cannot represented as valid JSON Schema (https://github.com/CosmWasm/cosmwasm/issues/451)",
8+
"description": "An empty struct that serves as a placeholder in different places, such as contracts that don't set a custom message.\n\nIt is designed to be expressible in correct JSON and JSON Schema but contains no meaningful data. Previously we used enums without cases, but those cannot represented as valid JSON Schema (https://github.com/CosmWasm/cosmwasm/issues/451)",
99
"type": "object",
1010
"additionalProperties": false
1111
},
@@ -498,7 +498,7 @@
498498
],
499499
"properties": {
500500
"index": {
501-
"description": "The position of this transaction in the block. The first transaction has index 0.\n\nThis allows you to get a unique transaction indentifier in this chain using the pair (`env.block.height`, `env.transaction.index`).",
501+
"description": "The position of this transaction in the block. The first transaction has index 0.\n\nThis allows you to get a unique transaction identifier in this chain using the pair (`env.block.height`, `env.transaction.index`).",
502502
"type": "integer",
503503
"format": "uint32",
504504
"minimum": 0.0

0 commit comments

Comments
 (0)