mirror of
https://github.com/BurntSushi/ripgrep.git
synced 2025-03-03 14:32:22 +02:00
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
This commit is contained in:
parent
fe97c0a152
commit
339c46a6ed
@ -251,7 +251,11 @@ pub const DEFAULT_TYPES: &[(&str, &[&str])] = &[
|
||||
("tex", &["*.tex", "*.ltx", "*.cls", "*.sty", "*.bib", "*.dtx", "*.ins"]),
|
||||
("texinfo", &["*.texi"]),
|
||||
("textile", &["*.textile"]),
|
||||
("tf", &["*.tf"]),
|
||||
("tf", &[
|
||||
"*.tf", "*.auto.tfvars", "terraform.tfvars", "*.tf.json",
|
||||
"*.auto.tfvars.json", "terraform.tfvars.json", "*.terraformrc",
|
||||
"terraform.rc", "*.tfrc", "*.terraform.lock.hcl",
|
||||
]),
|
||||
("thrift", &["*.thrift"]),
|
||||
("toml", &["*.toml", "Cargo.lock"]),
|
||||
("ts", &["*.ts", "*.tsx", "*.cts", "*.mts"]),
|
||||
|
Loading…
x
Reference in New Issue
Block a user