Skip to content

Commit

Permalink
Add codespell with pre-commit (SalamLang#40)
Browse files Browse the repository at this point in the history
  • Loading branch information
jbampton authored Mar 2, 2024
1 parent 657c740 commit f1669af
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
8 changes: 8 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,14 @@ repos:
rev: v4.4.0
hooks:
- id: end-of-file-fixer
- repo: https://github.com/codespell-project/codespell
rev: v2.2.6
hooks:
- id: codespell
name: Run codespell
description: Check spelling with codespell
entry: codespell --ignore-words=codespell.txt
exclude: ^docs/README_(AR|FA).md$
- repo: https://github.com/igorshubovych/markdownlint-cli
rev: v0.39.0
hooks:
Expand Down
Empty file added codespell.txt
Empty file.
6 changes: 3 additions & 3 deletions salam.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ var read_,
// Normally we don't log exceptions but instead let them bubble out the top
// level where the embedding environment (e.g. the browser) can handle
// them.
// However under v8 and node we sometimes exit the process direcly in which case
// However under v8 and node we sometimes exit the process directly in which case
// its up to use us to log the exception before exiting.
// If we fix https://github.com/emscripten-core/emscripten/issues/15080
// this may no longer be needed under node.
Expand Down Expand Up @@ -1510,7 +1510,7 @@ function abort(what) {
// simply make the program stop.

// Suppress closure compiler warning here. Closure compiler's builtin extern
// defintion for WebAssembly.RuntimeError claims it takes no arguments even
// definition for WebAssembly.RuntimeError claims it takes no arguments even
// though it can.
// TODO(https://github.com/google/closure-compiler/pull/3913): Remove if/when upstream closure gets fixed.

Expand Down Expand Up @@ -2949,7 +2949,7 @@ var ASM_CONSTS = {
// parents must exist
var lookup, old_dir, new_dir;

// let the errors from non existant directories percolate up
// let the errors from non existent directories percolate up
lookup = FS.lookupPath(old_path, { parent: true });
old_dir = lookup.node;
lookup = FS.lookupPath(new_path, { parent: true });
Expand Down

0 comments on commit f1669af

Please sign in to comment.