Skip to content

Commit e1a93b2

Browse files
authored
fix: grep: warning: stray \ before / which pop-up in grep 3.8 (antonbabenko#625)
1 parent 8bcd633 commit e1a93b2

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

.pre-commit-hooks.yaml

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@
55
language: script
66
require_serial: true
77
files: \.(tf(vars)?|hcl)$
8-
exclude: \.terraform\/.*$
8+
exclude: \.terraform/.*$
99

1010
- id: terraform_fmt
1111
name: Terraform fmt
1212
description: Rewrites all Terraform configuration files to a canonical format.
1313
entry: hooks/terraform_fmt.sh
1414
language: script
1515
files: (\.tf|\.tfvars)$
16-
exclude: \.terraform\/.*$
16+
exclude: \.terraform/.*$
1717

1818
- id: terraform_docs
1919
name: Terraform docs
@@ -22,7 +22,7 @@
2222
entry: hooks/terraform_docs.sh
2323
language: script
2424
files: (\.tf|\.terraform\.lock\.hcl)$
25-
exclude: \.terraform\/.*$
25+
exclude: \.terraform/.*$
2626

2727
- id: terraform_docs_without_aggregate_type_defaults
2828
name: Terraform docs (without aggregate type defaults)
@@ -31,7 +31,7 @@
3131
entry: hooks/terraform_docs.sh
3232
language: script
3333
files: (\.tf)$
34-
exclude: \.terraform\/.*$
34+
exclude: \.terraform/.*$
3535

3636
- id: terraform_docs_replace
3737
name: Terraform docs (overwrite README.md)
@@ -40,7 +40,7 @@
4040
entry: terraform_docs_replace
4141
language: python
4242
files: (\.tf)$
43-
exclude: \.terraform\/.*$
43+
exclude: \.terraform/.*$
4444

4545
- id: terraform_validate
4646
name: Terraform validate
@@ -49,7 +49,7 @@
4949
entry: hooks/terraform_validate.sh
5050
language: script
5151
files: (\.tf|\.tfvars)$
52-
exclude: \.terraform\/.*$
52+
exclude: \.terraform/.*$
5353

5454
- id: terraform_providers_lock
5555
name: Lock terraform provider versions
@@ -58,7 +58,7 @@
5858
entry: hooks/terraform_providers_lock.sh
5959
language: script
6060
files: (\.terraform\.lock\.hcl)$
61-
exclude: \.terraform\/.*$
61+
exclude: \.terraform/.*$
6262

6363
- id: terraform_tflint
6464
name: Terraform validate with tflint
@@ -67,23 +67,23 @@
6767
entry: hooks/terraform_tflint.sh
6868
language: script
6969
files: (\.tf|\.tfvars)$
70-
exclude: \.terraform\/.*$
70+
exclude: \.terraform/.*$
7171

7272
- id: terragrunt_fmt
7373
name: Terragrunt fmt
7474
description: Rewrites all Terragrunt configuration files to a canonical format.
7575
entry: hooks/terragrunt_fmt.sh
7676
language: script
7777
files: (\.hcl)$
78-
exclude: \.terraform\/.*$
78+
exclude: \.terraform/.*$
7979

8080
- id: terragrunt_validate
8181
name: Terragrunt validate
8282
description: Validates all Terragrunt configuration files.
8383
entry: hooks/terragrunt_validate.sh
8484
language: script
8585
files: (\.hcl)$
86-
exclude: \.terraform\/.*$
86+
exclude: \.terraform/.*$
8787

8888
- id: terraform_tfsec
8989
name: Terraform validate with tfsec (deprecated, use "terraform_trivy")
@@ -109,7 +109,7 @@
109109
pass_filenames: false
110110
always_run: false
111111
files: \.tf$
112-
exclude: \.terraform\/.*$
112+
exclude: \.terraform/.*$
113113
require_serial: true
114114

115115
- id: terraform_checkov
@@ -119,7 +119,7 @@
119119
language: script
120120
always_run: false
121121
files: \.tf$
122-
exclude: \.terraform\/.*$
122+
exclude: \.terraform/.*$
123123
require_serial: true
124124

125125
- id: terraform_wrapper_module_for_each
@@ -131,15 +131,15 @@
131131
always_run: false
132132
require_serial: true
133133
files: \.tf$
134-
exclude: \.terraform\/.*$
134+
exclude: \.terraform/.*$
135135

136136
- id: terrascan
137137
name: terrascan
138138
description: Runs terrascan on Terraform templates.
139139
language: script
140140
entry: hooks/terrascan.sh
141141
files: \.tf$
142-
exclude: \.terraform\/.*$
142+
exclude: \.terraform/.*$
143143
require_serial: true
144144

145145
- id: tfupdate

0 commit comments

Comments
 (0)