Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Fix grep: warning: stray \ before / which pop-up in grep 3.8 #625

Merged
merged 1 commit into from
Feb 16, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
28 changes: 14 additions & 14 deletions .pre-commit-hooks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@
language: script
require_serial: true
files: \.(tf(vars)?|hcl)$
exclude: \.terraform\/.*$
exclude: \.terraform/.*$

- id: terraform_fmt
name: Terraform fmt
description: Rewrites all Terraform configuration files to a canonical format.
entry: hooks/terraform_fmt.sh
language: script
files: (\.tf|\.tfvars)$
exclude: \.terraform\/.*$
exclude: \.terraform/.*$

- id: terraform_docs
name: Terraform docs
Expand All @@ -22,7 +22,7 @@
entry: hooks/terraform_docs.sh
language: script
files: (\.tf|\.terraform\.lock\.hcl)$
exclude: \.terraform\/.*$
exclude: \.terraform/.*$

- id: terraform_docs_without_aggregate_type_defaults
name: Terraform docs (without aggregate type defaults)
Expand All @@ -31,7 +31,7 @@
entry: hooks/terraform_docs.sh
language: script
files: (\.tf)$
exclude: \.terraform\/.*$
exclude: \.terraform/.*$

- id: terraform_docs_replace
name: Terraform docs (overwrite README.md)
Expand All @@ -40,7 +40,7 @@
entry: terraform_docs_replace
language: python
files: (\.tf)$
exclude: \.terraform\/.*$
exclude: \.terraform/.*$

- id: terraform_validate
name: Terraform validate
Expand All @@ -49,7 +49,7 @@
entry: hooks/terraform_validate.sh
language: script
files: (\.tf|\.tfvars)$
exclude: \.terraform\/.*$
exclude: \.terraform/.*$

- id: terraform_providers_lock
name: Lock terraform provider versions
Expand All @@ -58,7 +58,7 @@
entry: hooks/terraform_providers_lock.sh
language: script
files: (\.terraform\.lock\.hcl)$
exclude: \.terraform\/.*$
exclude: \.terraform/.*$

- id: terraform_tflint
name: Terraform validate with tflint
Expand All @@ -67,23 +67,23 @@
entry: hooks/terraform_tflint.sh
language: script
files: (\.tf|\.tfvars)$
exclude: \.terraform\/.*$
exclude: \.terraform/.*$

- id: terragrunt_fmt
name: Terragrunt fmt
description: Rewrites all Terragrunt configuration files to a canonical format.
entry: hooks/terragrunt_fmt.sh
language: script
files: (\.hcl)$
exclude: \.terraform\/.*$
exclude: \.terraform/.*$

- id: terragrunt_validate
name: Terragrunt validate
description: Validates all Terragrunt configuration files.
entry: hooks/terragrunt_validate.sh
language: script
files: (\.hcl)$
exclude: \.terraform\/.*$
exclude: \.terraform/.*$

- id: terraform_tfsec
name: Terraform validate with tfsec (deprecated, use "terraform_trivy")
Expand All @@ -109,7 +109,7 @@
pass_filenames: false
always_run: false
files: \.tf$
exclude: \.terraform\/.*$
exclude: \.terraform/.*$
require_serial: true

- id: terraform_checkov
Expand All @@ -119,7 +119,7 @@
language: script
always_run: false
files: \.tf$
exclude: \.terraform\/.*$
exclude: \.terraform/.*$
require_serial: true

- id: terraform_wrapper_module_for_each
Expand All @@ -131,15 +131,15 @@
always_run: false
require_serial: true
files: \.tf$
exclude: \.terraform\/.*$
exclude: \.terraform/.*$

- id: terrascan
name: terrascan
description: Runs terrascan on Terraform templates.
language: script
entry: hooks/terrascan.sh
files: \.tf$
exclude: \.terraform\/.*$
exclude: \.terraform/.*$
require_serial: true

- id: tfupdate
Expand Down