Skip to content

Commit d81aec2

Browse files
committed
feat: Update type-list for ripgrep bb88a1a
1 parent 64e4db4 commit d81aec2

File tree

1 file changed

+17
-10
lines changed

1 file changed

+17
-10
lines changed

crates/typos-cli/src/default_types.rs

Lines changed: 17 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,10 @@ pub(crate) const DEFAULT_TYPES: &[(&str, &[&str])] = &[
2727
("bat", &["*.bat", "*.cmd"]),
2828
("bazel", &[
2929
"*.bazel", "*.bzl", "*.BUILD", "*.bazelrc", "BUILD", "MODULE.bazel",
30-
"WORKSPACE", "WORKSPACE.bazel",
30+
"WORKSPACE", "WORKSPACE.bazel", "WORKSPACE.bzlmod",
3131
]),
3232
("bitbake", &["*.bb", "*.bbappend", "*.bbclass", "*.conf", "*.inc"]),
33+
("boxlang", &["*.bx", "*.bxm", "*.bxs"]),
3334
("brotli", &["*.br"]),
3435
("buildstream", &["*.bst"]),
3536
("bzip2", &["*.bz2", "*.tbz2"]),
@@ -56,6 +57,7 @@ pub(crate) const DEFAULT_TYPES: &[(&str, &[&str])] = &[
5657
"*.pem",
5758
]),
5859
("ceylon", &["*.ceylon"]),
60+
("cfml", &["*.cfc", "*.cfm"]),
5961
("clojure", &["*.clj", "*.cljc", "*.cljs", "*.cljx"]),
6062
("cmake", &["*.cmake", "CMakeLists.txt"]),
6163
("cml", &["*.cml"]),
@@ -101,6 +103,7 @@ pub(crate) const DEFAULT_TYPES: &[(&str, &[&str])] = &[
101103
("fsharp", &["*.fs", "*.fsx", "*.fsi"]),
102104
("fut", &["*.fut"]),
103105
("gap", &["*.g", "*.gap", "*.gi", "*.gd", "*.tst"]),
106+
("gleam", &["*.gleam"]),
104107
("gn", &["*.gn", "*.gni"]),
105108
("go", &["*.go", "go.mod", "go.work"]),
106109
("gprbuild", &["*.gpr"]),
@@ -124,10 +127,11 @@ pub(crate) const DEFAULT_TYPES: &[(&str, &[&str])] = &[
124127
("jinja", &["*.j2", "*.jinja", "*.jinja2"]),
125128
("jl", &["*.jl"]),
126129
("js", &["*.js", "*.jsx", "*.vue", "*.cjs", "*.mjs"]),
127-
("json", &["*.json"]),
130+
("json", &["*.json", "*.sarif"]),
128131
("jsonl", &["*.jsonl"]),
129132
("jupyter", &["*.ipynb", "*.jpynb"]),
130133
("k", &["*.k"]),
134+
("kconfig", &["Kconfig", "Kconfig.*"]),
131135
("kotlin", &["*.kt", "*.kts"]),
132136
("lean", &["*.lean"]),
133137
("less", &["*.less"]),
@@ -160,6 +164,7 @@ pub(crate) const DEFAULT_TYPES: &[(&str, &[&str])] = &[
160164
]),
161165
("lilypond", &["*.ly", "*.ily"]),
162166
("lisp", &["*.el", "*.lisp", "*.lsp", "*.sc", "*.scm"]),
167+
("llvm", &["*.ll"]),
163168
("lock", &[
164169
"*.lock",
165170
"package-lock.json", "pnpm-lock.yaml",
@@ -177,7 +182,7 @@ pub(crate) const DEFAULT_TYPES: &[(&str, &[&str])] = &[
177182
"[Gg][Nn][Uu]makefile", "[Mm]akefile",
178183
"[Gg][Nn][Uu]makefile.am", "[Mm]akefile.am",
179184
"[Gg][Nn][Uu]makefile.in", "[Mm]akefile.in",
180-
"*.mk", "*.mak"
185+
"*.mk", "*.mak", "Makefile.*"
181186
]),
182187
("mako", &["*.mako", "*.mao"]),
183188
("man", &["*.[0-9lnpx]", "*.[0-9][cEFMmpSx]"]),
@@ -199,7 +204,7 @@ pub(crate) const DEFAULT_TYPES: &[(&str, &[&str])] = &[
199204
("motoko", &["*.mo"]),
200205
("msbuild", &[
201206
"*.csproj", "*.fsproj", "*.vcxproj", "*.proj", "*.props", "*.targets",
202-
"*.sln",
207+
"*.sln", "*.slnf",
203208
]),
204209
("nim", &["*.nim", "*.nimf", "*.nimble", "*.nims"]),
205210
("nix", &["*.nix"]),
@@ -249,7 +254,7 @@ pub(crate) const DEFAULT_TYPES: &[(&str, &[&str])] = &[
249254
// Idiomatic files
250255
"config.ru", "Gemfile", ".irbrc", "Rakefile",
251256
// Extensions
252-
"*.gemspec", "*.rb", "*.rbw"
257+
"*.gemspec", "*.rb", "*.rbw", "*.rake"
253258
]),
254259
("rust", &[
255260
"*.rs",
@@ -258,9 +263,11 @@ pub(crate) const DEFAULT_TYPES: &[(&str, &[&str])] = &[
258263
]),
259264
("sass", &["*.sass", "*.scss"]),
260265
("scala", &["*.scala", "*.sbt"]),
266+
("scdoc", &["*.scd", "*.scdoc"]),
267+
("seed7", &["*.s7i", "*.sd7"]),
261268
("sh", &[
262269
// Portable/misc. init files
263-
".login", ".logout", ".profile", "profile",
270+
".env", ".login", ".logout", ".profile", "profile",
264271
// bash-specific init files
265272
".bash_login", "bash_login",
266273
".bash_logout", "bash_logout",
@@ -279,7 +286,7 @@ pub(crate) const DEFAULT_TYPES: &[(&str, &[&str])] = &[
279286
".zprofile", "zprofile",
280287
".zshrc", "zshrc",
281288
// Extensions
282-
"*.bash", "*.csh", "*.ksh", "*.sh", "*.tcsh", "*.zsh",
289+
"*.bash", "*.env", "*.csh", "*.ksh", "*.sh", "*.tcsh", "*.zsh",
283290
]),
284291
("slim", &["*.skim", "*.slim", "*.slime"]),
285292
("smarty", &["*.tpl"]),
@@ -306,16 +313,16 @@ pub(crate) const DEFAULT_TYPES: &[(&str, &[&str])] = &[
306313
("texinfo", &["*.texi"]),
307314
("textile", &["*.textile"]),
308315
("tf", &[
309-
"*.tf", "*.auto.tfvars", "terraform.tfvars", "*.tf.json",
310-
"*.auto.tfvars.json", "terraform.tfvars.json", "*.terraformrc",
311-
"terraform.rc", "*.tfrc",
316+
"*.tf", "*.tf.json", "*.tfvars", "*.tfvars.json",
317+
"*.terraformrc", "terraform.rc", "*.tfrc",
312318
]),
313319
("thrift", &["*.thrift"]),
314320
("toml", &["*.toml"]),
315321
("ts", &["*.ts", "*.tsx", "*.cts", "*.mts"]),
316322
("twig", &["*.twig"]),
317323
("txt", &["*.txt"]),
318324
("typoscript", &["*.typoscript"]),
325+
("typst", &["*.typ"]),
319326
("usd", &["*.usd", "*.usda", "*.usdc"]),
320327
("v", &["*.v", "*.vsh"]),
321328
("vala", &["*.vala"]),

0 commit comments

Comments
 (0)