Skip to content

Commit

Permalink
Fix codespell action
Browse files Browse the repository at this point in the history
Previously the action did not checkout the repository and as such
actually didn't do what it was supposed to.

This patch fixes all typos that accumulated over the time. Adds the
checkout action and fixes the codespell version action to `v1`.

Additionally codespell settings have been moved to a file so that the
`codespell` command line can be executed locally using the same
settings as in the CI.

Signed-off-by: Wiktor Kwapisiewicz <[email protected]>
  • Loading branch information
wiktor-k committed Jun 6, 2023
1 parent a1d7d18 commit 37be6a2
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
3 changes: 3 additions & 0 deletions .codespellrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[codespell]
skip = .git,target,Cargo.lock
ignore-words-list = crate,keypair
9 changes: 3 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,14 @@ on: [push, pull_request]

jobs:
# Use the following command to fix words locally:
# codespell --ignore-words-list "crate" --skip "*/target,*-sys" --write-changes
# codespell --write-changes
check-spelling:
name: Check spelling
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Check spelling
uses: codespell-project/actions-codespell@master
with:
ignore_words_list: "crate"
path: cryptoki
skip: "*/target,*-sys"
uses: codespell-project/actions-codespell@v1

formatting:
name: Check formatting
Expand Down
2 changes: 1 addition & 1 deletion cryptoki-sys/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ This is the low-level wrapper crate for PKCS #11 exposing the bindgen types.

## Generating bindings

The FFI bindings presented by this crate can be either those commited in the
The FFI bindings presented by this crate can be either those committed in the
crate under `src/bindings` or generated on the fly from the `pkcs11.h` file
at build time. For generating the bindings at build time
please enable the `generate-bindings` feature, as it is not enabled by default.
Expand Down
2 changes: 1 addition & 1 deletion cryptoki-sys/pkcs11.h
Original file line number Diff line number Diff line change
Expand Up @@ -860,7 +860,7 @@ typedef unsigned long ck_mechanism_type_t;

#define CKM_VENDOR_DEFINED ((unsigned long) (1UL << 31))

/* Ammendments */
/* Amendments */
#define CKM_SHA224 (0x255UL)
#define CKM_SHA224_HMAC (0x256UL)
#define CKM_SHA224_HMAC_GENERAL (0x257UL)
Expand Down

0 comments on commit 37be6a2

Please sign in to comment.