mirror of
https://github.com/tofuutils/pre-commit-opentofu.git
synced 2025-10-15 17:38:54 +02:00
fix: Terraform validate for submodules (#172)
This commit is contained in:
parent
4f6e849059
commit
827af52cd2
2 changed files with 3 additions and 2 deletions
|
|
@ -1,6 +1,6 @@
|
||||||
repos:
|
repos:
|
||||||
- repo: git://github.com/pre-commit/pre-commit-hooks
|
- repo: git://github.com/pre-commit/pre-commit-hooks
|
||||||
rev: v3.3.0
|
rev: v3.4.0
|
||||||
hooks:
|
hooks:
|
||||||
- id: check-yaml
|
- id: check-yaml
|
||||||
- id: end-of-file-fixer
|
- id: end-of-file-fixer
|
||||||
|
|
@ -9,7 +9,7 @@ repos:
|
||||||
- id: check-merge-conflict
|
- id: check-merge-conflict
|
||||||
- id: check-executables-have-shebangs
|
- id: check-executables-have-shebangs
|
||||||
- repo: git://github.com/jumanjihouse/pre-commit-hooks
|
- repo: git://github.com/jumanjihouse/pre-commit-hooks
|
||||||
rev: 2.1.4
|
rev: 2.1.5
|
||||||
hooks:
|
hooks:
|
||||||
- id: shfmt
|
- id: shfmt
|
||||||
args: ['-l', '-i', '2', '-ci', '-sr', '-w']
|
args: ['-l', '-i', '2', '-ci', '-sr', '-w']
|
||||||
|
|
|
||||||
|
|
@ -36,6 +36,7 @@
|
||||||
- id: terraform_validate
|
- id: terraform_validate
|
||||||
name: Terraform validate
|
name: Terraform validate
|
||||||
description: Validates all Terraform configuration files.
|
description: Validates all Terraform configuration files.
|
||||||
|
require_serial: true
|
||||||
entry: terraform_validate.sh
|
entry: terraform_validate.sh
|
||||||
language: script
|
language: script
|
||||||
files: (\.tf|\.tfvars)$
|
files: (\.tf|\.tfvars)$
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue