crate-ci / typos

Source code spell checker
Apache License 2.0
2.67k stars 109 forks source link

pnpm-lock.yaml is not ignored #802

Closed Jiralite closed 1 year ago

Jiralite commented 1 year ago

Description

There was an effort to stop the spellchecking of lock files with #445. However, I am experiencing this with pnpm-lock.yaml.

Steps to Reproduce

Using the following .pre-commit-config.yaml:

repos:
  - repo: https://github.com/crate-ci/typos
    rev: v1.16.4
    hooks:
      - id: typos
        args: []
  1. pnpm init
  2. pnpm add uvu
  3. typos

This will be caught:

jiralite@Jiralites-MacBook-Pro test % typos
error: `sade` should be `sad`
  --> ./pnpm-lock.yaml:49:7
   |
49 |       sade: 1.8.1
   |       ^^^^
   |
epage commented 1 year ago

Looks like this is just a lockfile we weren't previously aware of

epage commented 1 year ago

v1.16.5 is out with the fix