Skip to content

Commit 6bc709b

Browse files
author
Martin Taillefer
committed
ci: Add spell checker
1 parent 599c5f7 commit 6bc709b

File tree

27 files changed

+341
-321
lines changed

27 files changed

+341
-321
lines changed

.github/workflows/main.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,46 @@ jobs:
153153
if: success() || failure()
154154
run: cargo deny --all-features --workspace --color always check all
155155

156+
spell-check:
157+
needs: constants
158+
runs-on: ubuntu-latest
159+
env:
160+
CARGO_WORKSPACES_VERSION: ${{ needs.constants.outputs.CARGO_WORKSPACES_VERSION }}
161+
SCCACHE_VERSION: ${{ needs.constants.outputs.SCCACHE_VERSION }}
162+
SCCACHE_GHA_ENABLED: "true"
163+
RUSTC_WRAPPER: "sccache"
164+
steps:
165+
# prep
166+
- name: Checkout
167+
uses: actions/checkout@v6.0.0
168+
with:
169+
fetch-depth: 1
170+
- name: Cache Cargo Dependencies
171+
uses: actions/cache@v4.3.0
172+
with:
173+
path: |
174+
~/.cargo/bin/
175+
~/.cargo/registry/index/
176+
~/.cargo/registry/cache/
177+
~/.cargo/git/db/
178+
key: ${{ runner.os }}-cargo-tools-${{ hashFiles('**/Cargo.lock') }}
179+
- name: Start sccache
180+
uses: mozilla-actions/sccache-action@v0.0.9
181+
with:
182+
version: ${{ env.SCCACHE_VERSION }}
183+
- name: Install Rust
184+
uses: actions-rust-lang/setup-rust-toolchain@v1.15.2
185+
with:
186+
toolchain: ${{ env.RUST_LATEST }}
187+
- name: Install Cargo Tools
188+
uses: taiki-e/install-action@v2.62.62
189+
with:
190+
tool: cargo-spellcheck
191+
192+
# execute
193+
- name: Spell Checking
194+
run: cargo spellcheck check
195+
156196
semver:
157197
needs: constants
158198
runs-on: ${{ matrix.os }}

.spelling

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ filesystem
9898
fn
9999
foldhash
100100
footguns
101+
formatter
101102
fundle
102103
Fundle
103104
getsockopt
@@ -132,6 +133,7 @@ macros
132133
Macros
133134
Makefile
134135
metadata
136+
metadata
135137
Metas
136138
Microservices
137139
microsoft.com
@@ -241,4 +243,5 @@ wildcard
241243
wildcards
242244
Win32
243245
winsock
246+
workspace
244247
Xamarin

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Licensed under the MIT License.
33

44
[workspace]
5-
resolver = "3"
5+
resolver = "2"
66
members = ["crates/*"]
77

88
[workspace.package]

crates/bytesbuf/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,7 @@ use bytesbuf::BytesView;
423423

424424
pub fn write(&mut self, message: BytesView) {
425425
// We now need to identify whether the message actually uses memory that allows us to
426-
// ues the optimal I/O path. There is no requirement that the data passed to us contains
426+
// use the optimal I/O path. There is no requirement that the data passed to us contains
427427
// only memory with our preferred configuration.
428428

429429
let use_optimal_path = message.iter_chunk_metas().all(|meta| {

crates/bytesbuf/examples/mem_optimal_path.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ impl Connection {
6161

6262
pub fn write(&mut self, message: BytesView) {
6363
// We now need to identify whether the message actually uses memory that allows us to
64-
// ues the optimal I/O path. There is no requirement that the data passed to us contains
64+
// use the optimal I/O path. There is no requirement that the data passed to us contains
6565
// only memory with our preferred configuration.
6666

6767
let use_optimal_path = message.iter_chunk_metas().all(|meta| {

crates/bytesbuf/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -456,7 +456,7 @@
456456
//! # impl Foo {
457457
//! pub fn write(&mut self, message: BytesView) {
458458
//! // We now need to identify whether the message actually uses memory that allows us to
459-
//! // ues the optimal I/O path. There is no requirement that the data passed to us contains
459+
//! // use the optimal I/O path. There is no requirement that the data passed to us contains
460460
//! // only memory with our preferred configuration.
461461
//!
462462
//! let use_optimal_path = message.iter_chunk_metas().all(|meta| {

crates/bytesbuf/src/span_builder.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ impl SpanBuilder {
170170
.checked_sub(len.get())
171171
.expect("already handled the case where len > filled_bytes");
172172

173-
// SAFETY: We only seeked over filled bytes, so we must still be in-bounds.
173+
// SAFETY: We only skipped over filled bytes, so we must still be in-bounds.
174174
self.start = unsafe { self.start.add(len.get() as usize) };
175175

176176
Some(span)

crates/data_privacy/CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@
7373

7474
- ✨ Features
7575

76-
- Make RedactionEngine clonable. ([#13](https://github.com/microsoft/oxidizer/pull/13))
76+
- Make RedactionEngine cloneable. ([#13](https://github.com/microsoft/oxidizer/pull/13))
7777

7878
- 📚 Documentation
7979

crates/data_privacy/src/data_class.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ impl DataClass {
2525
///
2626
/// # Panics
2727
///
28-
/// Panics if `taxonomy` or `name` are not valid ASCII identifiers. Valid identifiers must
28+
/// Panics if `taxonomy` or `name` are not valid identifiers. Valid identifiers must
2929
/// start with `_` or an ASCII letter, followed by zero or more `_`, ASCII letters, or ASCII
3030
/// digits (e.g., `foo`, `_bar`, `Baz123`)
3131
#[must_use]

crates/data_privacy/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@
8686
//!
8787
//! # Classified Containers
8888
//!
89-
//! Types that implement the [`Classified`] trait are said to be classified containers. They encapsulate
89+
//! Types that implement the [`Classified`] trait are said to be _classified containers_. They encapsulate
9090
//! an instance of another type. Although containers can be created by hand, they are most commonly created
9191
//! using the [`classified`] attribute. See the documentation for the attribute to learn how you define your own
9292
//! classified type.

0 commit comments

Comments
 (0)