]> git.proxmox.com Git - rustc.git/blame - vendor/ignore/src/default_types.rs
New upstream version 1.64.0+dfsg1
[rustc.git] / vendor / ignore / src / default_types.rs
CommitLineData
3dfed10e
XL
1/// This list represents the default file types that ripgrep ships with. In
2/// general, any file format is fair game, although it should generally be
3/// limited to reasonably popular open formats. For other cases, you can add
4/// types to each invocation of ripgrep with the '--type-add' flag.
5///
6/// If you would like to add or improve this list, please file a PR:
064997fb 7/// <https://github.com/BurntSushi/ripgrep>.
3dfed10e
XL
8///
9/// Please try to keep this list sorted lexicographically and wrapped to 79
10/// columns (inclusive).
11#[rustfmt::skip]
12pub const DEFAULT_TYPES: &[(&str, &[&str])] = &[
13 ("agda", &["*.agda", "*.lagda"]),
14 ("aidl", &["*.aidl"]),
15 ("amake", &["*.mk", "*.bp"]),
16 ("asciidoc", &["*.adoc", "*.asc", "*.asciidoc"]),
17 ("asm", &["*.asm", "*.s", "*.S"]),
18 ("asp", &[
064997fb 19 "*.aspx", "*.aspx.cs", "*.aspx.vb", "*.ascx", "*.ascx.cs", "*.ascx.vb",
3dfed10e
XL
20 ]),
21 ("ats", &["*.ats", "*.dats", "*.sats", "*.hats"]),
22 ("avro", &["*.avdl", "*.avpr", "*.avsc"]),
23 ("awk", &["*.awk"]),
064997fb 24 ("bazel", &["*.bazel", "*.bzl", "*.BUILD", "*.bazelrc", "BUILD", "WORKSPACE"]),
3dfed10e
XL
25 ("bitbake", &["*.bb", "*.bbappend", "*.bbclass", "*.conf", "*.inc"]),
26 ("brotli", &["*.br"]),
27 ("buildstream", &["*.bst"]),
28 ("bzip2", &["*.bz2", "*.tbz2"]),
29 ("c", &["*.[chH]", "*.[chH].in", "*.cats"]),
30 ("cabal", &["*.cabal"]),
31 ("cbor", &["*.cbor"]),
32 ("ceylon", &["*.ceylon"]),
33 ("clojure", &["*.clj", "*.cljc", "*.cljs", "*.cljx"]),
34 ("cmake", &["*.cmake", "CMakeLists.txt"]),
35 ("coffeescript", &["*.coffee"]),
36 ("config", &["*.cfg", "*.conf", "*.config", "*.ini"]),
37 ("coq", &["*.v"]),
38 ("cpp", &[
39 "*.[ChH]", "*.cc", "*.[ch]pp", "*.[ch]xx", "*.hh", "*.inl",
40 "*.[ChH].in", "*.cc.in", "*.[ch]pp.in", "*.[ch]xx.in", "*.hh.in",
41 ]),
42 ("creole", &["*.creole"]),
43 ("crystal", &["Projectfile", "*.cr"]),
44 ("cs", &["*.cs"]),
45 ("csharp", &["*.cs"]),
46 ("cshtml", &["*.cshtml"]),
47 ("css", &["*.css", "*.scss"]),
48 ("csv", &["*.csv"]),
49 ("cython", &["*.pyx", "*.pxi", "*.pxd"]),
50 ("d", &["*.d"]),
51 ("dart", &["*.dart"]),
52 ("dhall", &["*.dhall"]),
53 ("diff", &["*.patch", "*.diff"]),
54 ("docker", &["*Dockerfile*"]),
cdc7bbd5 55 ("dvc", &["Dvcfile", "*.dvc"]),
3dfed10e
XL
56 ("ebuild", &["*.ebuild"]),
57 ("edn", &["*.edn"]),
58 ("elisp", &["*.el"]),
59 ("elixir", &["*.ex", "*.eex", "*.exs"]),
60 ("elm", &["*.elm"]),
61 ("erb", &["*.erb"]),
62 ("erlang", &["*.erl", "*.hrl"]),
63 ("fidl", &["*.fidl"]),
64 ("fish", &["*.fish"]),
cdc7bbd5 65 ("flatbuffers", &["*.fbs"]),
3dfed10e
XL
66 ("fortran", &[
67 "*.f", "*.F", "*.f77", "*.F77", "*.pfo",
68 "*.f90", "*.F90", "*.f95", "*.F95",
69 ]),
70 ("fsharp", &["*.fs", "*.fsx", "*.fsi"]),
cdc7bbd5 71 ("fut", &[".fut"]),
3dfed10e
XL
72 ("gap", &["*.g", "*.gap", "*.gi", "*.gd", "*.tst"]),
73 ("gn", &["*.gn", "*.gni"]),
74 ("go", &["*.go"]),
75 ("gradle", &["*.gradle"]),
76 ("groovy", &["*.groovy", "*.gradle"]),
77 ("gzip", &["*.gz", "*.tgz"]),
78 ("h", &["*.h", "*.hpp"]),
79 ("haml", &["*.haml"]),
80 ("haskell", &["*.hs", "*.lhs", "*.cpphs", "*.c2hs", "*.hsc"]),
81 ("hbs", &["*.hbs"]),
82 ("hs", &["*.hs", "*.lhs"]),
83 ("html", &["*.htm", "*.html", "*.ejs"]),
84 ("idris", &["*.idr", "*.lidr"]),
85 ("java", &["*.java", "*.jsp", "*.jspx", "*.properties"]),
86 ("jinja", &["*.j2", "*.jinja", "*.jinja2"]),
87 ("jl", &["*.jl"]),
88 ("js", &["*.js", "*.jsx", "*.vue"]),
89 ("json", &["*.json", "composer.lock"]),
90 ("jsonl", &["*.jsonl"]),
91 ("julia", &["*.jl"]),
92 ("jupyter", &["*.ipynb", "*.jpynb"]),
93 ("k", &["*.k"]),
94 ("kotlin", &["*.kt", "*.kts"]),
95 ("less", &["*.less"]),
96 ("license", &[
97 // General
98 "COPYING", "COPYING[.-]*",
99 "COPYRIGHT", "COPYRIGHT[.-]*",
100 "EULA", "EULA[.-]*",
101 "licen[cs]e", "licen[cs]e.*",
102 "LICEN[CS]E", "LICEN[CS]E[.-]*", "*[.-]LICEN[CS]E*",
103 "NOTICE", "NOTICE[.-]*",
104 "PATENTS", "PATENTS[.-]*",
105 "UNLICEN[CS]E", "UNLICEN[CS]E[.-]*",
106 // GPL (gpl.txt, etc.)
107 "agpl[.-]*",
108 "gpl[.-]*",
109 "lgpl[.-]*",
110 // Other license-specific (APACHE-2.0.txt, etc.)
111 "AGPL-*[0-9]*",
112 "APACHE-*[0-9]*",
113 "BSD-*[0-9]*",
114 "CC-BY-*",
115 "GFDL-*[0-9]*",
116 "GNU-*[0-9]*",
117 "GPL-*[0-9]*",
118 "LGPL-*[0-9]*",
119 "MIT-*[0-9]*",
120 "MPL-*[0-9]*",
121 "OFL-*[0-9]*",
122 ]),
123 ("lisp", &["*.el", "*.jl", "*.lisp", "*.lsp", "*.sc", "*.scm"]),
124 ("lock", &["*.lock", "package-lock.json"]),
125 ("log", &["*.log"]),
126 ("lua", &["*.lua"]),
127 ("lz4", &["*.lz4"]),
128 ("lzma", &["*.lzma"]),
129 ("m4", &["*.ac", "*.m4"]),
130 ("make", &[
131 "[Gg][Nn][Uu]makefile", "[Mm]akefile",
132 "[Gg][Nn][Uu]makefile.am", "[Mm]akefile.am",
133 "[Gg][Nn][Uu]makefile.in", "[Mm]akefile.in",
134 "*.mk", "*.mak"
135 ]),
136 ("mako", &["*.mako", "*.mao"]),
137 ("man", &["*.[0-9lnpx]", "*.[0-9][cEFMmpSx]"]),
138 ("markdown", &["*.markdown", "*.md", "*.mdown", "*.mkdn"]),
139 ("matlab", &["*.m"]),
140 ("md", &["*.markdown", "*.md", "*.mdown", "*.mkdn"]),
141 ("meson", &["meson.build", "meson_options.txt"]),
cdc7bbd5 142 ("minified", &["*.min.html", "*.min.css", "*.min.js"]),
064997fb 143 ("mint", &["*.mint"]),
3dfed10e
XL
144 ("mk", &["mkfile"]),
145 ("ml", &["*.ml"]),
146 ("msbuild", &[
147 "*.csproj", "*.fsproj", "*.vcxproj", "*.proj", "*.props", "*.targets",
148 ]),
149 ("nim", &["*.nim", "*.nimf", "*.nimble", "*.nims"]),
150 ("nix", &["*.nix"]),
151 ("objc", &["*.h", "*.m"]),
152 ("objcpp", &["*.h", "*.mm"]),
153 ("ocaml", &["*.ml", "*.mli", "*.mll", "*.mly"]),
154 ("org", &["*.org", "*.org_archive"]),
155 ("pascal", &["*.pas", "*.dpr", "*.lpr", "*.pp", "*.inc"]),
156 ("pdf", &["*.pdf"]),
157 ("perl", &["*.perl", "*.pl", "*.PL", "*.plh", "*.plx", "*.pm", "*.t"]),
158 ("php", &["*.php", "*.php3", "*.php4", "*.php5", "*.phtml"]),
064997fb 159 ("po", &["*.po"]),
3dfed10e
XL
160 ("pod", &["*.pod"]),
161 ("postscript", &["*.eps", "*.ps"]),
162 ("protobuf", &["*.proto"]),
163 ("ps", &["*.cdxml", "*.ps1", "*.ps1xml", "*.psd1", "*.psm1"]),
164 ("puppet", &["*.erb", "*.pp", "*.rb"]),
165 ("purs", &["*.purs"]),
166 ("py", &["*.py"]),
167 ("qmake", &["*.pro", "*.pri", "*.prf"]),
168 ("qml", &["*.qml"]),
169 ("r", &["*.R", "*.r", "*.Rmd", "*.Rnw"]),
cdc7bbd5 170 ("racket", &["*.rkt"]),
3dfed10e
XL
171 ("rdoc", &["*.rdoc"]),
172 ("readme", &["README*", "*README"]),
064997fb 173 ("red", &["*.r", "*.red", "*.reds"]),
3dfed10e
XL
174 ("robot", &["*.robot"]),
175 ("rst", &["*.rst"]),
064997fb
FG
176 ("ruby", &[
177 // Idiomatic files
178 "config.ru", "Gemfile", ".irbrc", "Rakefile",
179 // Extensions
180 "*.gemspec", "*.rb", "*.rbw"
181 ]),
3dfed10e
XL
182 ("rust", &["*.rs"]),
183 ("sass", &["*.sass", "*.scss"]),
184 ("scala", &["*.scala", "*.sbt"]),
185 ("sh", &[
186 // Portable/misc. init files
187 ".login", ".logout", ".profile", "profile",
188 // bash-specific init files
189 ".bash_login", "bash_login",
190 ".bash_logout", "bash_logout",
191 ".bash_profile", "bash_profile",
192 ".bashrc", "bashrc", "*.bashrc",
193 // csh-specific init files
194 ".cshrc", "*.cshrc",
195 // ksh-specific init files
196 ".kshrc", "*.kshrc",
197 // tcsh-specific init files
198 ".tcshrc",
199 // zsh-specific init files
200 ".zshenv", "zshenv",
201 ".zlogin", "zlogin",
202 ".zlogout", "zlogout",
203 ".zprofile", "zprofile",
204 ".zshrc", "zshrc",
205 // Extensions
206 "*.bash", "*.csh", "*.ksh", "*.sh", "*.tcsh", "*.zsh",
207 ]),
208 ("slim", &["*.skim", "*.slim", "*.slime"]),
209 ("smarty", &["*.tpl"]),
210 ("sml", &["*.sml", "*.sig"]),
211 ("soy", &["*.soy"]),
212 ("spark", &["*.spark"]),
213 ("spec", &["*.spec"]),
214 ("sql", &["*.sql", "*.psql"]),
215 ("stylus", &["*.styl"]),
216 ("sv", &["*.v", "*.vg", "*.sv", "*.svh", "*.h"]),
217 ("svg", &["*.svg"]),
218 ("swift", &["*.swift"]),
219 ("swig", &["*.def", "*.i"]),
220 ("systemd", &[
221 "*.automount", "*.conf", "*.device", "*.link", "*.mount", "*.path",
222 "*.scope", "*.service", "*.slice", "*.socket", "*.swap", "*.target",
223 "*.timer",
224 ]),
225 ("taskpaper", &["*.taskpaper"]),
226 ("tcl", &["*.tcl"]),
227 ("tex", &["*.tex", "*.ltx", "*.cls", "*.sty", "*.bib", "*.dtx", "*.ins"]),
228 ("textile", &["*.textile"]),
229 ("tf", &["*.tf"]),
230 ("thrift", &["*.thrift"]),
231 ("toml", &["*.toml", "Cargo.lock"]),
232 ("ts", &["*.ts", "*.tsx"]),
233 ("twig", &["*.twig"]),
234 ("txt", &["*.txt"]),
235 ("typoscript", &["*.typoscript", "*.ts"]),
236 ("vala", &["*.vala"]),
237 ("vb", &["*.vb"]),
cdc7bbd5 238 ("vcl", &["*.vcl"]),
3dfed10e
XL
239 ("verilog", &["*.v", "*.vh", "*.sv", "*.svh"]),
240 ("vhdl", &["*.vhd", "*.vhdl"]),
241 ("vim", &["*.vim"]),
242 ("vimscript", &["*.vim"]),
243 ("webidl", &["*.idl", "*.webidl", "*.widl"]),
244 ("wiki", &["*.mediawiki", "*.wiki"]),
245 ("xml", &[
246 "*.xml", "*.xml.dist", "*.dtd", "*.xsl", "*.xslt", "*.xsd", "*.xjb",
247 "*.rng", "*.sch", "*.xhtml",
248 ]),
249 ("xz", &["*.xz", "*.txz"]),
250 ("yacc", &["*.y"]),
251 ("yaml", &["*.yaml", "*.yml"]),
cdc7bbd5 252 ("yang", &["*.yang"]),
3dfed10e
XL
253 ("z", &["*.Z"]),
254 ("zig", &["*.zig"]),
255 ("zsh", &[
256 ".zshenv", "zshenv",
257 ".zlogin", "zlogin",
258 ".zlogout", "zlogout",
259 ".zprofile", "zprofile",
260 ".zshrc", "zshrc",
261 "*.zsh",
262 ]),
263 ("zstd", &["*.zst", "*.zstd"]),
264];