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
eb35f7978e
ignore/types: add janet
...
This adds file detection for janet:
https://janet-lang.org/
PR #2018
2021-10-14 07:56:55 -04:00
699e651db2
ignore/types: add texinfo
...
https://www.gnu.org/software/texinfo/
PR #1934
2021-07-13 07:59:23 -04:00
9eddb71b8e
ignore/types: add CUDA
...
Fixes #1918
2021-06-30 09:50:53 -04:00
431ea38620
ignore/types: add file extensions for Crystal
...
It sounds like Projectfile is no longer being used,
but we should keep it around in case folks are
still using it. It's unlikely that its presence will
do much if any harm.
PR #1904
2021-06-20 08:24:41 -04:00
14860b0f16
ignore-0.4.18
2021-06-12 07:59:07 -04:00
0eb1a1e7c9
deps/globset: update minimal versions
2021-06-12 07:58:46 -04:00
e824531e38
edition: manual changes
...
This is mostly just about removing 'extern crate' everywhere and fixing
the fallout.
2021-06-01 21:07:37 -04:00
af54069c51
edition: run 'cargo fix --edition --edition-idioms --all'
2021-06-01 21:07:37 -04:00
77a9e99964
edition: set edition=2018
2021-06-01 21:07:37 -04:00
459a9c5637
edition: initial 'cargo fix --edition' run
2021-06-01 21:07:37 -04:00
5d0f2b0fc0
ignore/types: config.ru and *.rbw Ruby
...
PR #1886
2021-06-01 10:57:09 -04:00
a28e664abd
ignore: check ignore rules before issuing stat calls
...
This seems like an obvious optimization but becomes critical when
filesystem operations even as simple as stat can result in significant
overheads; an example of this was a bespoke filesystem layer in Windows
that hosted files remotely and would download them on-demand when
particular filesystem operations occurred. Users of this system who
ensured correct file-type fileters were being used could still get
unnecessary file access resulting in large downloads.
Fixes #1657 , Closes #1660
2021-05-31 21:51:18 -04:00