99bf2b01dc
ignore/types: add Ada filetypes, including gprbuild and alire
...
*.adb and *.ads are the usual extensions for Ada source code,
and *.gpr indicates a GPRbuild project file used for Ada, and
these days often being combined with alire for package dependency
resolution. Alire stores a bunch of files named alire.toml in
different directories in your (gitignored) cache/dependencies/...
Closes #2013
2023-07-08 18:52:42 -04:00
ee1360cc07
ignore/types: add raku extensions to ignore types
...
Closes #2117
2023-07-08 18:52:42 -04:00
da7c81fb96
ignore/types: add MDX format to Markdown types
...
Ref https://mdxjs.com/
Closes #2142
2023-07-08 18:52:42 -04:00
a4e3d56de1
ignore/types: add DITA (Darwin Information Typing Architecture)
...
Closes #2148
2023-07-08 18:52:42 -04:00
cfe357188d
ignore/types: fix formatting
2023-07-08 18:52:42 -04:00
792451e331
ignore/types: added V type
...
V (http://vlang.io ) uses '.v' files.
Closes #2302
2023-07-08 18:52:42 -04:00
0f6181d309
ignore/types: add USD to the default file types
...
Closes #2432
2023-07-08 18:52:42 -04:00
e902e2fef4
ignore/types: add Gentoo eclass type
...
Eclasses are "ebuild libraries" and generally if you're filtering
for/filtering out an ebuild/eclass, you don't want the other either.
Followup to 4dfea016b9
Closes #2437
2023-07-08 18:52:42 -04:00
07cbfee225
ignore/types: improve Elixir globs
...
Closes #2450
2023-07-08 18:52:42 -04:00
ad9bfdd981
ignore/gitignore: expose gitconfig_excludes_path
...
I have reservations about this, but it looks useful and doesn't seem
terribly onerous to support. The `ignore` crate will really always need
to have some kind of logic supporting this in some form I think.
Closes #2482
2023-07-08 18:52:42 -04:00
0c1cbd99f3
ignore: tweak regex crate features
...
This removes most of the Unicode features as they aren't currently
used. We can always add them back later if necessary.
We can avoid the unicode-perl feature by changing `\s` to `[[:space:]]`,
which uses the ASCII-only definition of `\s`. Since we don't expect
non-ASCII whitespace in git config files, this seems okay.
Closes #2502
2023-07-08 18:52:42 -04:00
96cfc0ed13
ignore/types: add 'graphql' type
...
GraphQL file extensions: .graphql and .graphqls (schema)
We could also add `.gql`, but perhaps it's less correct to do so. We'll
start conservatively here, and we can always add `.gql` later.
Closes #2439 , Closes #2508
2023-07-08 18:52:42 -04:00
545a7dc759
ignore/types: add cml to the default types list
...
It's used in Fuchsia to mean "component manifest language."[1]
[1]: https://fuchsia.dev/reference/cml?hl=en
Closes #2529
2023-07-08 18:52:42 -04:00
e028ea3792
regex: migrate grep-regex to regex-automata
...
We just do a "basic" dumb migration. We don't try to improve anything
here.
2023-07-05 14:04:29 -04:00
949092fd22
ignore/types: add 'mdwn' to Markdown
...
PR #2520
2023-05-26 14:44:41 -04:00
335aa4937a
ignore/types: add *.pyi for Python
...
https://peps.python.org/pep-0484/#stub-files
PR #2517
2023-05-23 07:10:02 -04:00
a7ae9e4043
ignore/types: add support for docker-compose files
...
Default file is docker-compose.yml and the documentation
mentions overrides in the form of docker-compose.*.yml.
PR #2469
2023-03-21 12:56:38 -04:00
44fb9fce2c
ignore/types: add *.sln for msbuild
...
.sln is the extension for Visual Studio Project Soltion files, one of
the file types accepted as inputs by MSBuild.
PR #2415
2023-02-09 21:20:49 -05:00
339c46a6ed
ignore/types: enhance terraform default filter
...
The default filter for terraform only checks for *.tf files, but there
are quite few other terraform filetypes.
The explanation for all of them can be found below (including link to
documentation from Hashicorp at time of writing)
- *.tf.json & *.tfvars.json is to capture the files written in
JSON-based variant of the Terraform language
- https://developer.hashicorp.com/terraform/language/files
- *.tfvars is used to supply variables
- https://developer.hashicorp.com/terraform/cloud-docs/workspaces/variables#6-auto-tfvars-variable-files
- .terraform.lock.hcl is used as a Dependency lock file
- https://developer.hashicorp.com/terraform/language/files/dependency-lock
- terraform.rc & .terraformrc, *.tfrc
- https://developer.hashicorp.com/terraform/cli/config/config-file
PR #2412
2023-02-09 12:57:01 -05:00
fe97c0a152
ignore-0.4.20
2023-01-15 08:21:02 -05:00
826f3fad5b
ignore/api: add Clone and Debug impls for OverrideBuilder
...
PR #2397
2023-01-15 08:16:27 -05:00
a0e8dbe9df
ignore-0.4.19
2023-01-05 08:55:46 -05:00
e95254a86f
deps: remove ignore's dependency on crossbeam-utils
...
Scoped threads are now part of std.
2023-01-05 08:51:08 -05:00
2f484d8ce5
deps: update to globset 0.4.10
2023-01-05 08:49:58 -05:00
7f23cd63a5
ignore/types: add automated test for sortedness
...
People occasionally get this wrong and I've been manually
checking it. Instead, let's have CI do it automatically.
PR #2351
2022-11-14 08:31:07 -05:00
25a4eaf5ae
ignore/types: add devicetree filetype
...
See: https://www.devicetree.org/
PR #2349
2022-11-14 07:42:57 -05:00
65b1b0e38a
ignore/types: add carp
...
See: https://github.com/carp-lang/Carp
PR #2343
2022-11-01 07:17:00 -04:00
c032cda4b7
ignore/types: add ReScript and ReasonML
...
PR #2340
2022-10-29 13:49:19 -04:00
eab044d829
ignore/types: add motoko and candid
...
See: https://github.com/dfinity/candid
See: https://github.com/dfinity/motoko
PR #2335
2022-10-20 09:22:41 -04:00
515f120b5c
doc: fix typo
...
PR #2313
2022-09-24 13:23:59 -04:00
a66315d232
ignore/types: add *.cjs, *.mjs, *.cts, *.mts
...
These are used by both Node.js and TypeScript to indicate that a file
is CommonJS or ES.
Node.js: https://nodejs.org/api/esm.html
TypeScript: https://www.typescriptlang.org/docs/handbook/esm-node.html#new-file-extensions
PR #2297
2022-08-31 08:11:13 -04:00
bdf10ab7c0
ignore/types: add embedded puppet templates
...
.epp files are getting more and more common in Puppet code bases so it
makes sense I think to include them as part of the "puppet" type.
https://puppet.com/docs/puppet/7/lang_template_epp.html
PR #2141
2022-08-21 12:32:03 -04:00
a02678800b
ignore/types: add Solidity
...
See: https://soliditylang.org/about/
PR #2284
2022-08-17 09:37:32 -04:00
87b33c96c0
ignore/types: improve 'markdown' and 'php' types
...
This adds some lesser known extensions.
Notably, it adds php7 and php8, but not php6. Apparently,
php6 was never a thing: https://wiki.php.net/rfc/php6
PR #2263
2022-07-18 10:35:09 -04:00
e70778e89d
ignore/types: add dts to default types
...
See: https://devicetree-specification.readthedocs.io/en/v0.3/source-language.html
PR #2255
2022-07-07 12:24:12 -04:00
9f0e88bcb1
ignore: fix gitignore parsing bug for trailing \/
...
When a glob pattern ended with a \/, and since we permit backslash
escapes, the glob parser gave a "dangling escape" error. Which is weird,
because the \ is clearly not dangling.
The issue is that the layer above the glob parser, the gitignore parser,
was stripping the trailing / so that it wouldn't be part of the matching
logic. Of course, stripping the trailing / while it is escaped without
removing the backslash escape is wrong. So we do that here.
Fixes #2236
2022-06-14 10:40:37 -04:00
dc337bab0a
deps: update to globset 0.4.9
2022-06-10 14:11:20 -04:00
ec36f8c3ff
ignore/types: add pants
...
See: https://www.pantsbuild.org/
PR #2228
2022-06-08 13:29:17 -04:00
a726d03641
ignore/types: add hare to default types
...
PR #2219
2022-05-22 20:08:45 -04:00
4dc6c73c5a
ignore/types: improve Bazel globs
...
MODULE.bazel is a new file, and WORKSPACE.bazel was always supported
similar to BUILD.bazel vs BUILD.
PR #2203
2022-05-09 11:50:34 -04:00
36d03b4101
cargo: use SPDX license format for all crates
...
This was done for the main crate in d11a3b3377
.
See also #987 .
PR #2204
2022-05-09 07:52:11 -04:00
d161acb0a3
ignore/types: add '*.hh' to C++ headers
...
Like .hpp, .hh is an occasionally used extension for C++ headers
(to distinguish them from C headers). At least one popular project,
FreeBSD, uses this extension.
See also: https://docs.fileformat.com/programming/hh/
PR #2192
2022-04-25 07:38:03 -04:00
30ee6f08ee
ignore/types: add '*.asp' for asp type
...
The `*.asp` was not included in the type "asp" when it was added.
https://github.com/BurntSushi/ripgrep/pull/1134
PR #2188
2022-04-19 10:36:14 -04:00
5370064f00
warnings: remove/tweak some dead code
...
It looks like the dead code detector got better, so do a little code
cleanup.
2022-03-21 08:59:05 -04:00
418d048b27
ignore/types: add fennel
...
https://fennel-lang.org/
PR #2069
2021-11-15 09:58:09 -05:00
009dda1488
ignore: if require_git is false, don't stat .git
...
I've confirmed via strace that this eliminates a pile of stat calls.
PR #2052
2021-11-12 08:37:05 -05:00
ba535fb5a3
ignore/types: improve 'vim' and 'vimscript' types
...
This adds various Vim config files to the glob patterns.
PR #2044
2021-10-27 10:59:44 -04:00
427aaeeb2e
ignore/types: add lilypond
...
This adds file detection for lilypond: https://lilypond.org/
PR #2038
2021-10-24 11:22:07 -04:00
f5cff746bc
ignore/types: add hy
...
This adds file detection for hy: http://hylang.org/
PR #2033
2021-10-22 08:16:48 -04:00
457f53b7ee
ignore/types: fix futhark type extension
...
Previously, the 'fut' type only matches files called '.fut', while in
reality we want to match all files with the '.fut' extension. This
commit fixes that issue.
PR #2027
2021-10-19 09:15:19 -04:00