From 70f236086fee4675c2b4a67a50771e08181cddd9 Mon Sep 17 00:00:00 2001 From: Ed Page Date: Tue, 26 Nov 2024 11:04:26 -0600 Subject: [PATCH] fix: Re-add go.sum, requirements.txt to 'lock' file type Fixes #1158 --- crates/typos-cli/src/default_types.rs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/crates/typos-cli/src/default_types.rs b/crates/typos-cli/src/default_types.rs index b9fe9c8..621565a 100644 --- a/crates/typos-cli/src/default_types.rs +++ b/crates/typos-cli/src/default_types.rs @@ -160,7 +160,13 @@ pub(crate) const DEFAULT_TYPES: &[(&str, &[&str])] = &[ ]), ("lilypond", &["*.ly", "*.ily"]), ("lisp", &["*.el", "*.lisp", "*.lsp", "*.sc", "*.scm"]), - ("lock", &["*.lock", "package-lock.json", "composer.lock", "*.terraform.lock.hcl"]), + ("lock", &[ + "*.lock", + "package-lock.json", "pnpm-lock.yaml", + "composer.lock", "*.terraform.lock.hcl", + "requirements.txt", + "go.sum", + ]), ("log", &["*.log"]), ("lua", &["*.lua"]), ("lz4", &["*.lz4"]),