-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
decd3f3
commit 120c2c7
Showing
86 changed files
with
3,586 additions
and
153 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,47 @@ | ||
repos: | ||
- repo: https://github.com/antonbabenko/pre-commit-terraform | ||
rev: v1.89.0 | ||
hooks: | ||
- id: terraform_fmt | ||
- id: terraform_docs | ||
args: | ||
- --args=--hide providers | ||
#validate will exclude folders that contains xyz/test... and .utils that contains only scripts stuffs | ||
- id: terraform_validate | ||
exclude: '(.*\/tests|.utils)' | ||
args: | ||
- --args=-json | ||
- --args=-no-color | ||
# - id: terraform_trivy | ||
- repo: https://github.com/antonbabenko/pre-commit-terraform | ||
rev: v1.89.1 # Get the latest from: https://github.com/antonbabenko/pre-commit-terraform/releases | ||
hooks: | ||
- id: terraform_fmt | ||
- id: terraform_docs | ||
args: | ||
- --hook-config=--path-to-file=README.md # Valid UNIX path. I.e. ../TFDOC.md or docs/README.md etc. | ||
- --hook-config=--add-to-existing-file=true # Boolean. true or false | ||
- --hook-config=--create-file-if-not-exist=true # Boolean. true or false | ||
- --args=--hide providers | ||
- id: terraform_validate | ||
args: | ||
- --init-args=-lockfile=readonly | ||
- --hook-config=--retry-once-with-cleanup=true | ||
- --init-args=-plugin-dir=/tmp/.terraform.d/plugin-cache | ||
- --args=-json | ||
- --args=-no-color | ||
- --args=-compact-warnings | ||
# - id: terraform_providers_lock | ||
# args: | ||
# - > | ||
# --args=--format table | ||
# --skip-dirs="**/.terraform" | ||
# - --args=-platform=windows_amd64 | ||
# - --args=-platform=darwin_amd64 | ||
# - --args=-platform=darwin_arm64 | ||
# - --args=-platform=linux_amd64 | ||
# - --args=-platform=linux_arm64 | ||
## general | ||
# - repo: https://github.com/pre-commit/pre-commit-hooks | ||
# rev: v4.0.1 | ||
# hooks: | ||
# # Common errors | ||
# - id: end-of-file-fixer | ||
# exclude_types: [sql] | ||
# - id: trailing-whitespace | ||
# args: [--markdown-linebreak-ext=md] | ||
# exclude_types: [sql] | ||
# - id: check-yaml | ||
# - id: check-executables-have-shebangs | ||
# # Cross platform | ||
# - id: check-case-conflict | ||
# - id: mixed-line-ending | ||
# args: [--fix=lf] | ||
# exclude_types: [sql] | ||
# # Security | ||
# - id: detect-aws-credentials | ||
# args: ['--allow-missing-credentials'] | ||
# - id: detect-private-key |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# .utils | ||
|
||
<!-- BEGINNING OF PRE-COMMIT-TERRAFORM DOCS HOOK --> | ||
## Requirements | ||
|
||
No requirements. | ||
|
||
## Modules | ||
|
||
No modules. | ||
|
||
## Resources | ||
|
||
No resources. | ||
|
||
## Inputs | ||
|
||
No inputs. | ||
|
||
## Outputs | ||
|
||
No outputs. | ||
<!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK --> |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.