Skip to content

Commit f5d0a63

Browse files
authored
Add spell checking to CI (#1492)
* Add spell checking to CI * Fix a bunch of typos with `typos -w` * Manually fix some more typos * document how to run typos locally * fix doclink
1 parent b64a438 commit f5d0a63

File tree

49 files changed

+88
-69
lines changed

Some content is hidden

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

49 files changed

+88
-69
lines changed

.github/workflows/typos.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# https://github.com/crate-ci/typos
2+
# Add exceptions to _typos.toml
3+
4+
name: Spell Check
5+
on: [pull_request]
6+
7+
jobs:
8+
run:
9+
name: Spell Check
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout Actions Repository
13+
uses: actions/checkout@v2
14+
15+
- name: Check spelling of entire workspace
16+
uses: crate-ci/typos@master

_typos.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# https://github.com/crate-ci/typos
2+
# install: cargo install typos-cli
3+
# run: typos
4+
5+
[default.extend-words]
6+
lod = "lod" # level-of-detail

ci_docker/publish.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
VERSION=0.5 # Bump on each new version. Remember to update the version in the Dockerfile too.
22

3-
# The build needs to run from top of repo to access the requirments.txt
3+
# The build needs to run from top of repo to access the requirements.txt
44
cd `git rev-parse --show-toplevel`
55

66
# Pull :latest so we have the correct cache

clippy.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ disallowed-methods = [
1919
"std::env::temp_dir", # Use the tempdir crate instead
2020

2121
# Disabled because of https://github.com/rust-lang/rust-clippy/issues/10406
22-
# "std::time::Instant::now", # use `instant` crate instead for wasm/web compatability
23-
"std::time::Duration::elapsed", # use `instant` crate instead for wasm/web compatability
24-
"std::time::SystemTime::now", # use `instant` or `time` crates instead for wasm/web compatability
22+
# "std::time::Instant::now", # use `instant` crate instead for wasm/web compatibility
23+
"std::time::Duration::elapsed", # use `instant` crate instead for wasm/web compatibility
24+
"std::time::SystemTime::now", # use `instant` or `time` crates instead for wasm/web compatibility
2525

2626
"std::thread::spawn", # Use `std::thread::Builder` and name the thread
2727

crates/re_analytics/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ uuid = { version = "1.1", features = ["serde", "v4", "js"] }
3636
directories-next = "2"
3737
ureq = { version = "2.6", features = [
3838
"json",
39-
] } # TODO(emilk): use ehttp for web supprt
39+
] } # TODO(emilk): use ehttp for web support
4040

4141
[target.'cfg(target_arch = "wasm32")'.dependencies]
4242
web-sys = { version = "0.3.58", features = ["Storage"] }

crates/re_analytics/src/pipeline_native.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ fn flush_events(
298298
match serde_json::from_str::<Event>(&event_str) {
299299
Ok(event) => Some(event),
300300
Err(err) => {
301-
// NOTE: This is effectively where we detect posssible half-writes.
301+
// NOTE: This is effectively where we detect possible half-writes.
302302
error!(%err, %analytics_id, %session_id,
303303
"couldn't deserialize event from analytics data file: dropping it");
304304
None

crates/re_arrow_store/src/store.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1222,7 +1222,7 @@ pub struct ComponentTable {
12221222
/// Component buckets are append-only, they can never be written to in an out of order
12231223
/// fashion.
12241224
/// As such, a double-ended queue covers all our needs:
1225-
/// - poping from the front for garbage collection
1225+
/// - popping from the front for garbage collection
12261226
/// - pushing to the back for insertions
12271227
/// - binary search for queries
12281228
pub(crate) buckets: VecDeque<ComponentBucket>,

crates/re_arrow_store/src/store_write.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -656,7 +656,7 @@ impl IndexBucket {
656656
indices,
657657
} = &mut *guard;
658658

659-
// append time to primary index and update time range approriately
659+
// append time to primary index and update time range appropriately
660660
times.push(time.as_i64());
661661
*time_range = TimeRange::new(time_range.min.min(time), time_range.max.max(time));
662662

@@ -1220,7 +1220,7 @@ impl ComponentBucket {
12201220

12211221
debug_assert!(
12221222
!self.archived,
1223-
"achiving an already archived bucket, something is likely wrong"
1223+
"archiving an already archived bucket, something is likely wrong"
12241224
);
12251225

12261226
// Chunk compaction

crates/re_arrow_store/tests/data_store.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ fn all_components() {
153153

154154
let components_b = &[
155155
ColorRGBA::name(), // added by us, timeless
156-
Rect2D::name(), // ⚠ inherited before the buckets got splitted apart!
156+
Rect2D::name(), // ⚠ inherited before the buckets got split apart!
157157
Point2D::name(), // added by us
158158
cluster_key, // always here
159159
MsgId::name(), // automatically appended by MsgBundle
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/// Information about the build of a Rust crate.
22
///
3-
/// Create this with [`crate::build_info`].
3+
/// Create this with [`crate::build_info!`].
44
///
55
/// The `git_` fields are all empty on failure. Most likely git fails because we're not in a git repository
66
/// to begin with, which happens because we've imported the published crate from crates.io.

0 commit comments

Comments
 (0)