Skip to content

Commit

Permalink
fix(hermes): spelling
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenj committed Oct 9, 2024
1 parent c461a87 commit f117af7
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 14 deletions.
1 change: 1 addition & 0 deletions .config/dictionaries/project.dic
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ maindbname
mapref
mdlint
mdns
metno
miniprotocol
miniprotocols
mithril
Expand Down
2 changes: 2 additions & 0 deletions .earthlyignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.git
**/target
14 changes: 2 additions & 12 deletions Earthfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,8 @@ VERSION 0.8
IMPORT github.com/input-output-hk/catalyst-ci/earthly/mdlint:v3.2.15 AS mdlint-ci
IMPORT github.com/input-output-hk/catalyst-ci/earthly/cspell:v3.2.15 AS cspell-ci

FROM debian:stable-slim

# cspell: words livedocs sitedocs

# check-markdown : markdown check using catalyst-ci.
check-markdown:
DO mdlint-ci+CHECK
Expand All @@ -19,21 +17,13 @@ markdown-check-fix:

# clean-spelling-list : Make sure the project dictionary is properly sorted.
clean-spelling-list:
FROM debian:stable-slim

Check failure on line 20 in Earthfile

View workflow job for this annotation

GitHub Actions / ci / check / run (/home/runner/work/hermes/hermes)

Error

The command RUN cspell-cli --quiet lint . --dot did not complete successfully. Exit code 1
DO cspell-ci+CLEAN

# check-spelling : Check spelling in this repo inside a container.
check-spelling:
DO cspell-ci+CHECK

# spell-list-words : List words in a dictionary
spell-list-words:
FROM ghcr.io/streetsidesoftware/cspell:8.0.0
WORKDIR /work

COPY . .

RUN cspell-cli --words-only --unique "wasm/**" | sort -f

# repo-docs : target to store the documentation from the root of the repo.
repo-docs:
# Create artifacts of extra files we embed inside the documentation when its built.
Expand Down
2 changes: 2 additions & 0 deletions cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -141,12 +141,14 @@
// "dotnet",
// "elixir",
"filetypes",
"flutter",
"fonts",
// "fsharp",
"fullstack",
// "gaming-terms",
"git",
// "golang",
// "google",
// "haskell",
"html",
"html-symbol-entities",
Expand Down
2 changes: 2 additions & 0 deletions wasm/wasi-hermes-component-adapter/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,8 @@ fn build_raw_intrinsics() -> Vec<u8> {
module.finish()
}

// cspell: words libfoo

/// This function produces the output of `llvm-ar crus libfoo.a foo.o` given
/// the object file above as input. The archive is what's eventually fed to
/// LLD.
Expand Down
2 changes: 1 addition & 1 deletion wasm/wasi-hermes-component-adapter/src/descriptors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ impl Descriptors {
Descriptor::Closed(next) => *next,
_ => unreachable!("impossible: freelist points to a closed descriptor"),
};
// Write descriptor to the entry at the nead of the list
// Write descriptor to the entry at the head of the list
*freelist_desc = d;
// Point closed to the following item
self.closed = next_closed;
Expand Down
2 changes: 1 addition & 1 deletion wasm/wasi-hermes-component-adapter/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ macro_rules! cfg_filesystem_available {

// The unwrap/expect methods in std pull panic when they fail, which pulls
// in unwinding machinery that we can't use in the adapter. Instead, use this
// extension trait to get postfixed upwrap on Option and Result.
// extension trait to get postfixed unwrap on Option and Result.
#[allow(clippy::missing_docs_in_private_items)]
trait TrappingUnwrap<T> {
fn trapping_unwrap(self) -> T;
Expand Down

0 comments on commit f117af7

Please sign in to comment.