Skip to content

Commit 9adab29

Browse files
youyyytroklidelguillaumemichel
authored
feat: Add CI for Spell Checking (#10637)
* Create spellcheck.yml * Create .codespell-ignore --------- Co-authored-by: Marcin Rataj <[email protected]> Co-authored-by: Guillaume Michel <[email protected]>
1 parent dab91c8 commit 9adab29

30 files changed

+105
-63
lines changed

.codespell-ignore

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
Adin
2+
nd
3+
Nd
4+
afile
5+
thirdparty
6+
receivedFrom
7+
origN
8+
hel
9+
TotalIn
10+
childs
11+
userA
12+
AssignT
13+
OT
14+
AssignT
15+
fo
16+
recusive
17+
raison
18+
Boddy
19+
ressource
20+
achin
21+
re-using

.github/workflows/spellcheck.yml

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Spell Check
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
spellcheck:
7+
runs-on: ubuntu-latest
8+
9+
steps:
10+
- name: Checkout code
11+
uses: actions/checkout@v3
12+
13+
- name: Install Codespell
14+
run: pip install codespell==2.4.0
15+
16+
- name: Run Codespell
17+
uses: codespell-project/actions-codespell@v2
18+
with:
19+
only_warn: 1
20+
ignore_words_file: .codespell-ignore
21+
skip: "*.mod,*.sum,*.pdf,./docs/AUTHORS,./test/sharness/t0275-cid-security-data,./test/sharness/t0280-plugin-dag-jose-data,./bin"

config/version.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ package config
22

33
const DefaultSwarmCheckPercentThreshold = 5
44

5-
// Version allows controling things like custom user agent and update checks.
5+
// Version allows controlling things like custom user agent and update checks.
66
type Version struct {
77
// Optional suffix to the AgentVersion presented by `ipfs id` and exposed
88
// via libp2p identify protocol.

core/commands/version.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ func DetectNewKuboVersion(nd *core.IpfsNode, minPercent int64) (VersionCheckOutp
227227
return
228228
}
229229

230-
// Ignore prerelases and development releases (-dev, -rcX)
230+
// Ignore prereleases and development releases (-dev, -rcX)
231231
if peerVersion.Metadata() != "" || peerVersion.Prerelease() != "" {
232232
return
233233
}

docs/changelogs/v0.10.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ See `ipfs swarm peering --help` for more details.
320320
- More changelog grooming.
321321
- Changelog grooming.
322322
- node/tests: put most of the schema test cases here
323-
- Add more explicit discussion of indicies to ListIterator.
323+
- Add more explicit discussion of indices to ListIterator.
324324
- node/bindnode: start of a reflect-based Node implementation
325325
- add DeepEqual and start using it in tests
326326
- Add enumerate methods to the multicodec registries. ([ipld/go-ipld-prime#176](https://github.com/ipld/go-ipld-prime/pull/176))
@@ -390,7 +390,7 @@ See `ipfs swarm peering --help` for more details.
390390
- remove note about go modules in README ([libp2p/go-libp2p-noise#100](https://github.com/libp2p/go-libp2p-noise/pull/100))
391391
- fix: remove deprecated call to pk.Bytes ([libp2p/go-libp2p-noise#99](https://github.com/libp2p/go-libp2p-noise/pull/99))
392392
- github.com/libp2p/go-libp2p-peerstore (v0.2.7 -> v0.2.8):
393-
- Fix perfomance issue in updating addr book ([libp2p/go-libp2p-peerstore#141](https://github.com/libp2p/go-libp2p-peerstore/pull/141))
393+
- Fix performance issue in updating addr book ([libp2p/go-libp2p-peerstore#141](https://github.com/libp2p/go-libp2p-peerstore/pull/141))
394394
- Fix test flakes ([libp2p/go-libp2p-peerstore#164](https://github.com/libp2p/go-libp2p-peerstore/pull/164))
395395
- Only remove records during GC ([libp2p/go-libp2p-peerstore#135](https://github.com/libp2p/go-libp2p-peerstore/pull/135))
396396
- sync: update CI config files ([libp2p/go-libp2p-peerstore#160](https://github.com/libp2p/go-libp2p-peerstore/pull/160))

docs/changelogs/v0.11.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ This work was [contributed](https://github.com/ipfs/go-ipfs/pull/8569) by [Ceram
301301
- fix(graphsync): make sure linkcontext is passed (#207) ([ipfs/go-graphsync#207](https://github.com/ipfs/go-graphsync/pull/207))
302302
- Merge final v0.6.x commit history, and 0.8.0 changelog (#205) ([ipfs/go-graphsync#205](https://github.com/ipfs/go-graphsync/pull/205))
303303
- Fix broken link to IPLD selector documentation (#189) ([ipfs/go-graphsync#189](https://github.com/ipfs/go-graphsync/pull/189))
304-
- fix: check errors before defering a close (#200) ([ipfs/go-graphsync#200](https://github.com/ipfs/go-graphsync/pull/200))
304+
- fix: check errors before deferring a close (#200) ([ipfs/go-graphsync#200](https://github.com/ipfs/go-graphsync/pull/200))
305305
- chore: fix checks (#197) ([ipfs/go-graphsync#197](https://github.com/ipfs/go-graphsync/pull/197))
306306
- Merge the v0.6.x commit history (#190) ([ipfs/go-graphsync#190](https://github.com/ipfs/go-graphsync/pull/190))
307307
- Ready for universal CI (#187) ([ipfs/go-graphsync#187](https://github.com/ipfs/go-graphsync/pull/187))

docs/changelogs/v0.12.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ As usual, this release includes important fixes, some of which may be critical f
5858

5959
- `ipfs refs local` will now list all blocks as if they were [raw]() CIDv1 instead of with whatever CID version and IPLD codecs they were stored with. All other functionality should remain the same.
6060

61-
Note: This change also effects [ipfs-update](https://github.com/ipfs/ipfs-update) so if you use that tool to mange your go-ipfs installation then grab ipfs-update v1.8.0 from [dist](https://dist.ipfs.tech/#ipfs-update).
61+
Note: This change also effects [ipfs-update](https://github.com/ipfs/ipfs-update) so if you use that tool to manage your go-ipfs installation then grab ipfs-update v1.8.0 from [dist](https://dist.ipfs.tech/#ipfs-update).
6262

6363
Keep reading to learn more details.
6464

docs/changelogs/v0.14.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ $ ipfs cid format -v 1 -b base256emoji bafybeigdyrzt5sfp7udm7hu76uh7y26nf3efuylq
173173
- swarm: fix flaky TestDialExistingConnection test (#1509) ([libp2p/go-libp2p#1509](https://github.com/libp2p/go-libp2p/pull/1509))
174174
- tcp: limit the number of connections in tcp suite test on non-linux hosts (#1507) ([libp2p/go-libp2p#1507](https://github.com/libp2p/go-libp2p/pull/1507))
175175
- increase overly short require.Eventually intervals (#1501) ([libp2p/go-libp2p#1501](https://github.com/libp2p/go-libp2p/pull/1501))
176-
- tls: fix flaky handshake cancelation test (#1503) ([libp2p/go-libp2p#1503](https://github.com/libp2p/go-libp2p/pull/1503))
176+
- tls: fix flaky handshake cancellation test (#1503) ([libp2p/go-libp2p#1503](https://github.com/libp2p/go-libp2p/pull/1503))
177177
- merge the transport test suite from go-libp2p-testing here ([libp2p/go-libp2p#1496](https://github.com/libp2p/go-libp2p/pull/1496))
178178
- fix racy connection comparison in TestDialWorkerLoopBasic (#1499) ([libp2p/go-libp2p#1499](https://github.com/libp2p/go-libp2p/pull/1499))
179179
- swarm: fix race condition in TestFailFirst (#1490) ([libp2p/go-libp2p#1490](https://github.com/libp2p/go-libp2p/pull/1490))

docs/changelogs/v0.16.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ The previous alternative is websocket secure, which require installing a reverse
106106

107107
#### How to enable WebTransport
108108

109-
Thoses steps are temporary and wont be needed once we make it enabled by default.
109+
Those steps are temporary and won't be needed once we make it enabled by default.
110110

111111
1. Enable the WebTransport transport:
112112
`ipfs config Swarm.Transports.Network.WebTransport --json true`
@@ -191,7 +191,7 @@ For more information, see `ipfs add --help` and `ipfs files --help`.
191191
- docs: add WebTransport docs ([ipfs/kubo#9308](https://github.com/ipfs/kubo/pull/9308))
192192
- chore: bump version to 0.16.0-rc1
193193
- fix: ensure hasher is registered when using a hashing function
194-
- feat: add webtransport as an optin transport ([ipfs/kubo#9293](https://github.com/ipfs/kubo/pull/9293))
194+
- feat: add webtransport as an option transport ([ipfs/kubo#9293](https://github.com/ipfs/kubo/pull/9293))
195195
- feat(gateway): _redirects file support (#8890) ([ipfs/kubo#8890](https://github.com/ipfs/kubo/pull/8890))
196196
- docs: fix typo in changelog-v0.16.0.md
197197
- Readme: Rewrite introduction and featureset (#9211) ([ipfs/kubo#9211](https://github.com/ipfs/kubo/pull/9211))
@@ -265,7 +265,7 @@ For more information, see `ipfs add --help` and `ipfs files --help`.
265265
- sync: update CI config files ([ipfs/go-pinning-service-http-client#21](https://github.com/ipfs/go-pinning-service-http-client/pull/21))
266266
- github.com/ipld/edelweiss (v0.1.4 -> v0.2.0):
267267
- Release v0.2.0 (#60) ([ipld/edelweiss#60](https://github.com/ipld/edelweiss/pull/60))
268-
- feat: add cachable modifier to methods (#48) ([ipld/edelweiss#48](https://github.com/ipld/edelweiss/pull/48))
268+
- feat: add cacheable modifier to methods (#48) ([ipld/edelweiss#48](https://github.com/ipld/edelweiss/pull/48))
269269
- adding licenses (#52) ([ipld/edelweiss#52](https://github.com/ipld/edelweiss/pull/52))
270270
- sync: update CI config files ([ipld/edelweiss#56](https://github.com/ipld/edelweiss/pull/56))
271271
- chore: replace deprecated ioutil with io/os ([ipld/edelweiss#59](https://github.com/ipld/edelweiss/pull/59))

docs/changelogs/v0.18.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ As much as possible, the aim is for a user to only think about how much memory t
5656
and not need to think about translating that to hard numbers for connections, streams, etc.
5757
More updates are likely in future Kubo releases, but with this release:
5858
1. ``System.StreamsInbound`` is no longer bounded directly
59-
2. ``System.ConnsInbound``, ``Transient.Memory``, ``Transiet.ConnsInbound`` have higher default computed values.
59+
2. ``System.ConnsInbound``, ``Transient.Memory``, ``Transient.ConnsInbound`` have higher default computed values.
6060

6161
### 📝 Changelog
6262

@@ -312,11 +312,11 @@ and various improvements have been made to improve the UX including:
312312
- github.com/ipfs/kubo:
313313
- fix: clarity: no user supplied rcmgr limits of 0 (#9563) ([ipfs/kubo#9563](https://github.com/ipfs/kubo/pull/9563))
314314
- fix(gateway): undesired conversions to dag-json and friends (#9566) ([ipfs/kubo#9566](https://github.com/ipfs/kubo/pull/9566))
315-
- fix: ensure connmgr is smaller then autoscalled ressource limits
315+
- fix: ensure connmgr is smaller then autoscalled resource limits
316316
- fix: typo in ensureConnMgrMakeSenseVsResourcesMgr
317317
- docs: clarify browser descriptions for webtransport
318318
- fix: update saxon download path
319-
- fix: refuse to start if connmgr is smaller than ressource limits and not using none connmgr
319+
- fix: refuse to start if connmgr is smaller than resource limits and not using none connmgr
320320
- fix: User-Agent sent to HTTP routers
321321
- test: port gateway sharness tests to Go tests
322322
- fix: do not download saxon in parallel
@@ -338,7 +338,7 @@ and various improvements have been made to improve the UX including:
338338
- fix: disable provide over HTTP with Routing.Type=auto (#9511) ([ipfs/kubo#9511](https://github.com/ipfs/kubo/pull/9511))
339339
- Update version.go
340340
- 'chore: update version.go'
341-
- Clened up 0.18 changelog for release ([ipfs/kubo#9497](https://github.com/ipfs/kubo/pull/9497))
341+
- Cleaned up 0.18 changelog for release ([ipfs/kubo#9497](https://github.com/ipfs/kubo/pull/9497))
342342
- feat: turn on WebTransport by default ([ipfs/kubo#9492](https://github.com/ipfs/kubo/pull/9492))
343343
- feat: fast directory listings with DAG Size column (#9481) ([ipfs/kubo#9481](https://github.com/ipfs/kubo/pull/9481))
344344
- feat: add basic CLI tests using Go Test
@@ -484,7 +484,7 @@ and various improvements have been made to improve the UX including:
484484
- run gofmt -s
485485
- bump go.mod to Go 1.18 and run go fix
486486
- test for reader / sizing behavior on large files ([ipfs/go-unixfsnode#34](https://github.com/ipfs/go-unixfsnode/pull/34))
487-
- add helper to approximate test creation patter from ipfs-files ([ipfs/go-unixfsnode#32](https://github.com/ipfs/go-unixfsnode/pull/32))
487+
- add helper to approximate test creation pattern from ipfs-files ([ipfs/go-unixfsnode#32](https://github.com/ipfs/go-unixfsnode/pull/32))
488488
- chore: remove Stebalien/go-bitfield in favour of ipfs/go-bitfield
489489
- github.com/ipfs/interface-go-ipfs-core (v0.7.0 -> v0.8.2):
490490
- chore: version 0.8.2 (#100) ([ipfs/interface-go-ipfs-core#100](https://github.com/ipfs/interface-go-ipfs-core/pull/100))

docs/changelogs/v0.19.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ There are further followups up on libp2p resource manager improvements in Kubo [
8989
and [0.18.1](https://github.com/ipfs/kubo/blob/master/docs/changelogs/v0.18.md#improving-libp2p-resource-management-integration):
9090
1. `ipfs swarm limits` and `ipfs swarm stats` have been replaced by `ipfs swarm resources` to provide a single/combined view for limits and their current usage in a more intuitive ordering.
9191
1. Removal of `Swarm.ResourceMgr.Limits` config. Instead [the power user can specify limits in a .json file that are fed directly to go-libp2p](https://github.com/ipfs/kubo/blob/master/docs/libp2p-resource-management.md#user-supplied-override-limits). This allows the power user to take advantage of the [new resource manager types introduced in go-libp2p 0.25](https://github.com/libp2p/go-libp2p/blob/master/CHANGELOG.md#new-resource-manager-types-) including "use default", "unlimited", "block all".
92-
- Note: we don't expect most users to need these capablities, but they are there if so.
92+
- Note: we don't expect most users to need these capabilities, but they are there if so.
9393
1. [Doc updates](https://github.com/ipfs/kubo/blob/master/docs/libp2p-resource-management.md).
9494

9595
#### Gateways
@@ -205,11 +205,11 @@ For more information and rational see [#9717](https://github.com/ipfs/kubo/issue
205205
- Merge Kubo: v0.18 ([ipfs/kubo#9581](https://github.com/ipfs/kubo/pull/9581))
206206
- fix: clarity: no user supplied rcmgr limits of 0 (#9563) ([ipfs/kubo#9563](https://github.com/ipfs/kubo/pull/9563))
207207
- fix(gateway): undesired conversions to dag-json and friends (#9566) ([ipfs/kubo#9566](https://github.com/ipfs/kubo/pull/9566))
208-
- fix: ensure connmgr is smaller then autoscalled ressource limits
208+
- fix: ensure connmgr is smaller then autoscalled resource limits
209209
- fix: typo in ensureConnMgrMakeSenseVsResourcesMgr
210210
- docs: clarify browser descriptions for webtransport
211211
- fix: update saxon download path
212-
- fix: refuse to start if connmgr is smaller than ressource limits and not using none connmgr
212+
- fix: refuse to start if connmgr is smaller than resource limits and not using none connmgr
213213
- fix: User-Agent sent to HTTP routers
214214
- test: port gateway sharness tests to Go tests
215215
- fix: do not download saxon in parallel

docs/changelogs/v0.21.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ The [`go-ipfs-http-client`](https://github.com/ipfs/go-ipfs-http-client) RPC has
7575
been migrated into [`kubo/client/rpc`](../../client/rpc).
7676

7777
With this change the two will be kept in sync, in some previous releases we
78-
updated the CoreAPI with new Kubo features but forgot to port thoses to the
78+
updated the CoreAPI with new Kubo features but forgot to port those to the
7979
http-client, making it impossible to use them together with the same coreapi
8080
version.
8181

@@ -142,7 +142,7 @@ Shared Size: 2048
142142
Ratio: 1.615755
143143
```
144144

145-
`ipfs --enc=json dag stat`'s keys are a non breaking change, new keys have been added but old keys with previous sementics are still here.
145+
`ipfs --enc=json dag stat`'s keys are a non breaking change, new keys have been added but old keys with previous semantics are still here.
146146

147147
#### Accelerated DHT Client is no longer experimental
148148

docs/changelogs/v0.23.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
Mplex is being deprecated, this is because it is unreliable and
2828
randomly drop streams when sending data *too fast*.
2929

30-
New pieces of code rely on backpressure, that means the stream will dynamicaly
30+
New pieces of code rely on backpressure, that means the stream will dynamically
3131
slow down the sending rate if data is getting backed up.
3232
Backpressure is provided by **Yamux** and **QUIC**.
3333

@@ -111,7 +111,7 @@ the `/quic-v1` addresses only. For more background information, check [issue #94
111111

112112
Thanks to [probelab.io's RFM17.1](https://github.com/plprobelab/network-measurements/blob/master/results/rfm17.1-sharing-prs-with-multiaddresses.md) DHT servers will [now cache the addresses of content hosts for the lifetime of the provider record](https://github.com/libp2p/go-libp2p-kad-dht/commit/777160f164b8c187c534debd293157031e9f3a02).
113113

114-
This means clients who resolve content from theses servers get a responses which include both peer id and multiaddresses.
114+
This means clients who resolve content from these servers get a responses which include both peer id and multiaddresses.
115115
In most cases this enables skipping a second query which resolves the peer id to multiaddresses for stable enough peers.
116116

117117
This will improve content fetching lantency in the network overtime as servers updates.
@@ -175,7 +175,7 @@ Thx a lot @bmwiedemann for debugging this issue.
175175
- chore: bump boxo for verifcid breaking changes
176176
- chore: remove outdated comment (#10077) ([ipfs/kubo#10077](https://github.com/ipfs/kubo/pull/10077))
177177
- chore: remove deprecated testground plans
178-
- feat: allow users to optin again into mplex
178+
- feat: allow users to option again into mplex
179179
- feat: remove Mplex
180180
- docs(readme): minimal reqs (#10066) ([ipfs/kubo#10066](https://github.com/ipfs/kubo/pull/10066))
181181
- docs: add v0.23.md

docs/changelogs/v0.24.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ record remains cached before checking an upstream routing system, such as Amino
6262
DHT, for updates. The TTL value in the IPNS record now serves as a hint for:
6363

6464
- `boxo/namesys`: the internal cache, determining how long the IPNS resolution
65-
result is cached before asking upsteam routing systems for updates.
65+
result is cached before asking upstream routing systems for updates.
6666
- `boxo/gateway`: the `Cache-Control` HTTP header in responses to requests made
6767
for `/ipns/name` content paths.
6868

docs/changelogs/v0.25.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ After deprecating and removing mplex support by default in [v0.23.0](https://git
4444
We now fully removed it. If you still need mplex support to talk with other pieces of software,
4545
please try updating them, and if they don't support yamux or QUIC [talk to us about it](https://github.com/ipfs/kubo/issues/new/choose).
4646

47-
Mplex is unreliable by design, it will drop data and generete errors when sending data *too fast*,
47+
Mplex is unreliable by design, it will drop data and generate errors when sending data *too fast*,
4848
yamux and QUIC support backpressure, that means if we send data faster than the remote machine can process it, we slows down to match the remote's speed.
4949

5050
#### Graphsync Experiment Removal

docs/changelogs/v0.27.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ Kubo now only uses [trustless requests](https://specs.ipfs.tech/http-gateways/tr
113113
- github.com/multiformats/go-multiaddr (v0.12.1 -> v0.12.2):
114114
- chore: release v0.12.2
115115
- tests: add round trip equality check to fuzz (#232) ([multiformats/go-multiaddr#232](https://github.com/multiformats/go-multiaddr/pull/232))
116-
- fix: correctly parse ports as uint16 and explicitely fail on overflows (#228) ([multiformats/go-multiaddr#228](https://github.com/multiformats/go-multiaddr/pull/228))
116+
- fix: correctly parse ports as uint16 and explicitly fail on overflows (#228) ([multiformats/go-multiaddr#228](https://github.com/multiformats/go-multiaddr/pull/228))
117117
- replace custom random tests with testing.F (#227) ([multiformats/go-multiaddr#227](https://github.com/multiformats/go-multiaddr/pull/227))
118118

119119
</details>

docs/changelogs/v0.29.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ The hash function, CID version, or UnixFS raw leaves and chunker behaviors can b
8080
- github.com/ipfs/go-ipfs-exchange-interface (v0.2.0 -> v0.2.1):
8181
- chore: bump version
8282
- Deprecate types and readme (#29) ([ipfs/go-ipfs-exchange-interface#29](https://github.com/ipfs/go-ipfs-exchange-interface/pull/29))
83-
- docs: Add proper documenation to the interface.
83+
- docs: Add proper documentation to the interface.
8484
- github.com/ipfs/go-verifcid (v0.0.2 -> v0.0.3):
8585
- chore: bump version
8686
- chore: deprecate types and readme

0 commit comments

Comments
 (0)