Christian Vallentin
6cd9479634
ignore: implement FusedIterator for Walk
...
PR #2567
2023-08-28 22:55:19 -04:00
Andrew Gallant
51765f2f4c
ignore: apply rustfmt
...
I believe this happened because rustfmt now knows how to format `let ...
else` constructs.
2023-08-28 20:09:26 -04:00
mataha
962d47e6a1
ignore/types: add Prolog file types
...
This improves the Prolog file type rules.
* `.pl` is the most common extension in the wild, though `.pro` is
preferred in places where file extension may clash with Perl[1].
* `.P` is used for compatibility with XSB Prolog dialect[2].
PR #2590
[1]: https://www.swi-prolog.org/pldoc/man?section=fileext
[2]: https://www.swi-prolog.org/pldoc/man?section=xsb-source
2023-08-21 10:53:56 -04:00
mataha
19b6a45abb
ignore/types: tweak Gradle file types
...
This PR extends Gradle file types with the following:
- Kotlin DSL buildscripts (`*.gradle.kts`)
- Gradle Java properties (`gradle.properties`)
- wrapper files (`gradle-wrapper.*`)
- wrapper scripts (`gradlew`, `gradlew.bat`)
PR #2587
2023-08-20 18:49:02 -04:00
Vidar
fed4fea217
ignore/types: add csproj
...
Supports the .NET C# Project file extension.
PR #2575
2023-07-31 07:08:44 -04:00
mataha
601e122e9f
ignore/types: add Windows Command Prompt files
...
This PR adds `*.bat` and `*.cmd` file types.
In doing so, it makes a distinction between batch files (old standard
from the MS-DOS era) and command scripts (new flavor - can operate on
batch files, although `*.cmd` is preferred for various reasons, the
main one being batch files will set `ERRORLEVEL` following inconsistent
MS-DOS style rules[1]).
PR #2556
[1]: https://groups.google.com/g/microsoft.public.win2000.cmdprompt.admin/c/XHeUq8oe2wk/m/LIEViGNmkK0J#i106
2023-07-10 15:58:17 -04:00
Michal Terepeta
cb7501ff11
doc: clarify the comment on Worker.work_done
...
We call `work_done` only once the work has been actually performed
(otherwise `num_pending` could go to 0 before the actual work is done).
Closes #2039
2023-07-08 18:52:42 -04:00
kotborealis
f30a30867e
ignore/types: name aliases for file types
...
We also make py/python, md/markdown and ts/typescript aliases of one
another.
Note that this only introduces aliases at the point where default types
are defined. This just makes them a bit easier to read/write, and also
makes it easier to expose more names that describe the same thing.
Fixes #1857 , Closes #1895
2023-07-08 18:52:42 -04:00
Klas Mellbourn
7313dca472
ignore/types: add 'typescript' alias for 'ts'
...
Closes #2009
2023-07-08 18:52:42 -04:00
Tama McGlinn
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
Juan Francisco Cantero Hurtado
ee1360cc07
ignore/types: add raku extensions to ignore types
...
Closes #2117
2023-07-08 18:52:42 -04:00
Andrew Gallant
da7c81fb96
ignore/types: add MDX format to Markdown types
...
Ref https://mdxjs.com/
Closes #2142
2023-07-08 18:52:42 -04:00
chrispy
a4e3d56de1
ignore/types: add DITA (Darwin Information Typing Architecture)
...
Closes #2148
2023-07-08 18:52:42 -04:00
Andrew Gallant
cfe357188d
ignore/types: fix formatting
2023-07-08 18:52:42 -04:00
edam
792451e331
ignore/types: added V type
...
V (http://vlang.io ) uses '.v' files.
Closes #2302
2023-07-08 18:52:42 -04:00
Mark Sisson
0f6181d309
ignore/types: add USD to the default file types
...
Closes #2432
2023-07-08 18:52:42 -04:00
Sam James
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
angrycandy
07cbfee225
ignore/types: improve Elixir globs
...
Closes #2450
2023-07-08 18:52:42 -04:00
Eric Arellano
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
Jakub Jirutka
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
Jon Parise
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
Yifei Teng
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
Andrew Gallant
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
Francois Marier
949092fd22
ignore/types: add 'mdwn' to Markdown
...
PR #2520
2023-05-26 14:44:41 -04:00
Ville Skyttä
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
Manu
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
David Ringo
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
Vincent Bockaert
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
Andrew Gallant
fe97c0a152
ignore-0.4.20
2023-01-15 08:21:02 -05:00
Christian Vallentin
826f3fad5b
ignore/api: add Clone and Debug impls for OverrideBuilder
...
PR #2397
2023-01-15 08:16:27 -05:00
Andrew Gallant
a0e8dbe9df
ignore-0.4.19
2023-01-05 08:55:46 -05:00
Andrew Gallant
e95254a86f
deps: remove ignore's dependency on crossbeam-utils
...
Scoped threads are now part of std.
2023-01-05 08:51:08 -05:00
Andrew Gallant
2f484d8ce5
deps: update to globset 0.4.10
2023-01-05 08:49:58 -05:00
Armin Brauns
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
Armin Brauns
25a4eaf5ae
ignore/types: add devicetree filetype
...
See: https://www.devicetree.org/
PR #2349
2022-11-14 07:42:57 -05:00
jgart
65b1b0e38a
ignore/types: add carp
...
See: https://github.com/carp-lang/Carp
PR #2343
2022-11-01 07:17:00 -04:00
Glenn Slotte
c032cda4b7
ignore/types: add ReScript and ReasonML
...
PR #2340
2022-10-29 13:49:19 -04:00
Marcin Nowak-Liebiediew
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
Dave Rolsky
515f120b5c
doc: fix typo
...
PR #2313
2022-09-24 13:23:59 -04:00
Linda_pp
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
Nacho Barrientos
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
John Saigle
a02678800b
ignore/types: add Solidity
...
See: https://soliditylang.org/about/
PR #2284
2022-08-17 09:37:32 -04:00
Malte
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
tleb
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
Andrew Gallant
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
Andrew Gallant
dc337bab0a
deps: update to globset 0.4.9
2022-06-10 14:11:20 -04:00
jgart
ec36f8c3ff
ignore/types: add pants
...
See: https://www.pantsbuild.org/
PR #2228
2022-06-08 13:29:17 -04:00
jpe90
a726d03641
ignore/types: add hare to default types
...
PR #2219
2022-05-22 20:08:45 -04:00
Keith Smiley
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
Alex Touchet
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