Skip to content

Commit

Permalink
Fix exclude regular expressions (#117)
Browse files Browse the repository at this point in the history
* Fix exclude regular expressions

the current expressions look like a typo? They require one or more literal '.'s, followed by one of any symbol, then "terraform". I reasoned that the `.+` at the start was entirely superfluous and just check for the `.terraform/`

* delete extra $'s
  • Loading branch information
ThisGuyCodes authored Dec 16, 2024
1 parent a2d2016 commit 0225754
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .pre-commit-hooks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
entry: hooks/terraform-fmt.sh
language: script
files: \.tf$
exclude: \.+.terraform\/.*$
exclude: \.terraform\/.*$
require_serial: true

- id: terraform-validate
Expand All @@ -15,7 +15,7 @@
entry: hooks/terraform-validate.sh
language: script
files: \.tf$
exclude: \.+.terraform\/.*$
exclude: \.terraform\/.*$
require_serial: true

- id: packer-validate
Expand All @@ -32,7 +32,7 @@
entry: hooks/tflint.sh
language: script
files: \.tf$
exclude: \.+.terraform\/.*$
exclude: \.terraform\/.*$

- id: terragrunt-hclfmt
name: Terragrunt hclfmt
Expand All @@ -42,8 +42,8 @@
files: \.hcl$
exclude: >
(?x)^(
.+\.terraform\/.*$|
.+\.terragrunt-cache\/.*$|
\.terraform\/.*|
\.terragrunt-cache\/.*|
)$
- id: shellcheck
Expand Down

0 comments on commit 0225754

Please sign in to comment.