Skip to content

Commit b64354e

Browse files
committed
rm tf validate
1 parent f57ee4f commit b64354e

1 file changed

Lines changed: 0 additions & 24 deletions

File tree

.pre-commit-config.yaml

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -10,30 +10,6 @@ repos:
1010
alias: terraform_tflint_nocreds
1111
name: terraform_tflint_nocreds
1212
- id: terraform_tfsec
13-
- repo: local
14-
hooks:
15-
- id: terraform_validate
16-
name: terraform_validate
17-
entry: |
18-
bash -c '
19-
AWS_DEFAULT_REGION=us-east-1
20-
declare -a DIRS
21-
for FILE in "$@"
22-
do
23-
DIRS+=($(dirname "$FILE"))
24-
done
25-
for DIR in $(printf "%s\n" "${DIRS[@]}" | sort -u)
26-
do
27-
cd $(dirname "$FILE")
28-
terraform init --backend=false
29-
terraform validate .
30-
cd ..
31-
done
32-
'
33-
language: system
34-
verbose: true
35-
files: \.tf(vars)?$
36-
exclude: examples
3713
- repo: https://github.com/pre-commit/pre-commit-hooks
3814
rev: v4.0.1
3915
hooks:

0 commit comments

Comments
 (0)