Skip to content
Discussion options

You must be logged in to vote

Just for the context: I could make it work like this:

$ cat lefthook.yml
commit-msg:
  jobs:
    - run: npx cspell --no-summary --no-progress --language-id commit-msg {1}

$ git commit --amend -m 'no waaay this passes'
╭─────────────────────────────────────────────╮
│ 🥊 lefthook  v2.1.9-dev   hook:  commit-msg │
╰─────────────────────────────────────────────╯
┃  npx cspell --no-summary --no-progress --language-id commit-msg {1} ❯
.git/COMMIT_EDITMSG:1:4 - Unknown word (waaay)

exit status 1
  ────────────────────────────────────
summary: (done in 1.13 seconds)
🥊 npx cspell --no-summary --no-progress --language-id commit-msg {1} (1.13 seconds)

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
4 replies
@mrexox
Comment options

@lonix1
Comment options

@mrexox
Comment options

Answer selected by lonix1
@lonix1
Comment options

Comment options

You must be logged in to vote
1 reply
@lonix1
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants