crate-ci / typos

Source code spell checker

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

False positive for commits id

DeadNews opened this issue · comments

Description

The typos pre-commit hook fails on truncated commit hashes in CHANGELOG.md.

Environment

- repo: https://github.com/crate-ci/typos
  rev: v1.20.4
  hooks:
    - id: typos

Actual Behavior

$ pre-commit run --files CHANGELOG.md

typos....................................................................Failed
- hook id: typos
- exit code: 2

error: `ba` should be `by`, `be`
  --> CHANGELOG.md:100:28
    |
100 | - _(README)_ update - ([e84ba3e](https://github.com/DeadNews/firebirdsql-run/commit/e84ba3e8e2f72a8dcad43f8ac3c768527ca199bd))
    |                            ^^
    |
$ pre-commit run --files CHANGELOG.md

typos....................................................................Failed
- hook id: typos
- exit code: 2

error: `ba` should be `by`, `be`
  --> CHANGELOG.md:22:99
   |
22 | - update `mkdocs` config ([#127](https://github.com/DeadNews/encode-utils-cli/issues/127)) - ([c92ba20](https://github.com/DeadNews/encode-utils-cli/commit/c92ba2032ac0b492b390d45c50f7c57c2660df5c))
   |                                                                                                   ^^
   |
error: `ba` should be `by`, `be`
  --> CHANGELOG.md:62:43
   |
62 | - _(renovate)_ use shared config - ([693c3ba](https://github.com/DeadNews/encode-utils-cli/commit/693c3ba58822db45dd06a032ba1ce554db6deaf6))
   |                                           ^^
   |

We are tracking this in #415.

See also #484.