From 061bc78a48587d5bd70408b55cbdd65f78027963 Mon Sep 17 00:00:00 2001 From: Ed Page Date: Mon, 25 Nov 2024 13:55:51 -0600 Subject: [PATCH] feat: Update type-list for ripgrep 2acf25c --- crates/typos-cli/src/default_types.rs | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/crates/typos-cli/src/default_types.rs b/crates/typos-cli/src/default_types.rs index f79250a..3dacd1b 100644 --- a/crates/typos-cli/src/default_types.rs +++ b/crates/typos-cli/src/default_types.rs @@ -24,6 +24,7 @@ pub(crate) const DEFAULT_TYPES: &[(&str, &[&str])] = &[ ("ats", &["*.ats", "*.dats", "*.sats", "*.hats"]), ("avro", &["*.avdl", "*.avpr", "*.avsc"]), ("awk", &["*.awk"]), + ("bat", &["*.bat", "*.cmd"]), ("bazel", &[ "*.bazel", "*.bzl", "*.BUILD", "*.bazelrc", "BUILD", "MODULE.bazel", "WORKSPACE", "WORKSPACE.bazel", @@ -103,7 +104,10 @@ pub(crate) const DEFAULT_TYPES: &[(&str, &[&str])] = &[ ("gn", &["*.gn", "*.gni"]), ("go", &["*.go"]), ("gprbuild", &["*.gpr"]), - ("gradle", &["*.gradle"]), + ("gradle", &[ + "*.gradle", "*.gradle.kts", "gradle.properties", "gradle-wrapper.*", + "gradlew", "gradlew.bat", + ]), ("graphql", &["*.graphql", "*.graphqls"]), ("groovy", &["*.groovy", "*.gradle"]), ("gzip", &["*.gz", "*.tgz"]), @@ -125,6 +129,7 @@ pub(crate) const DEFAULT_TYPES: &[(&str, &[&str])] = &[ ("jupyter", &["*.ipynb", "*.jpynb"]), ("k", &["*.k"]), ("kotlin", &["*.kt", "*.kts"]), + ("lean", &["*.lean"]), ("less", &["*.less"]), ("license", &[ // General @@ -179,7 +184,7 @@ pub(crate) const DEFAULT_TYPES: &[(&str, &[&str])] = &[ "*.mkdn", "*.mdx", ]), - ("meson", &["meson.build", "meson_options.txt"]), + ("meson", &["meson.build", "meson_options.txt", "meson.options"]), ("minified", &["*.min.html", "*.min.css", "*.min.js"]), ("mint", &["*.mint"]), ("mk", &["mkfile"]), @@ -207,6 +212,7 @@ pub(crate) const DEFAULT_TYPES: &[(&str, &[&str])] = &[ ("po", &["*.po"]), ("pod", &["*.pod"]), ("postscript", &["*.eps", "*.ps"]), + ("prolog", &["*.prolog", "*.P"]), ("protobuf", &["*.proto"]), ("ps", &["*.cdxml", "*.ps1", "*.ps1xml", "*.psd1", "*.psm1"]), ("puppet", &["*.epp", "*.erb", "*.pp", "*.rb"]), @@ -278,6 +284,7 @@ pub(crate) const DEFAULT_TYPES: &[(&str, &[&str])] = &[ ("sql", &["*.sql", "*.psql"]), ("stylus", &["*.styl"]), ("sv", &["*.v", "*.vg", "*.sv", "*.svh", "*.h"]), + ("svelte", &["*.svelte"]), ("svg", &["*.svg"]), ("swift", &["*.swift"]), ("swig", &["*.def", "*.i"]), @@ -303,7 +310,7 @@ pub(crate) const DEFAULT_TYPES: &[(&str, &[&str])] = &[ ("txt", &["*.txt"]), ("typoscript", &["*.typoscript"]), ("usd", &["*.usd", "*.usda", "*.usdc"]), - ("v", &["*.v"]), + ("v", &["*.v", "*.vsh"]), ("vala", &["*.vala"]), ("vb", &["*.vb"]), ("vcl", &["*.vcl"]), @@ -313,6 +320,7 @@ pub(crate) const DEFAULT_TYPES: &[(&str, &[&str])] = &[ "*.vim", ".vimrc", ".gvimrc", "vimrc", "gvimrc", "_vimrc", "_gvimrc", ]), ("webidl", &["*.idl", "*.webidl", "*.widl"]), + ("wgsl", &["*.wgsl"]), ("wiki", &["*.mediawiki", "*.wiki"]), ("xml", &[ "*.xml", "*.xml.dist", "*.dtd", "*.xsl", "*.xslt", "*.xsd", "*.xjb",