mirror of
https://github.com/storytold/terraform-aws-observability-accelerator.git
synced 2026-10-18 07:33:25 +00:00
Added gitignore and pre-commit files
This commit is contained in:
committed by
Rodrigue Koffi
parent
de50a0dfb5
commit
a99936ba7e
+38
-9
@@ -1,11 +1,40 @@
|
||||
---
|
||||
fail_fast: false
|
||||
minimum_pre_commit_version: "2.6.0"
|
||||
repos:
|
||||
-
|
||||
repo: https://github.com/aws-ia/pre-commit-configs
|
||||
# To update run:
|
||||
# pre-commit autoupdate --freeze
|
||||
rev: 80ed3f0a164f282afaac0b6aec70e20f7e541932 # frozen: v1.5.0
|
||||
- repo: https://github.com/pre-commit/pre-commit-hooks
|
||||
rev: v4.3.0
|
||||
hooks:
|
||||
- id: aws-ia-meta-hook
|
||||
- id: trailing-whitespace
|
||||
args: ['--markdown-linebreak-ext=md']
|
||||
- id: end-of-file-fixer
|
||||
- id: check-merge-conflict
|
||||
- id: detect-private-key
|
||||
- id: detect-aws-credentials
|
||||
args: ['--allow-missing-credentials']
|
||||
- repo: https://github.com/antonbabenko/pre-commit-terraform
|
||||
rev: v1.74.1
|
||||
hooks:
|
||||
- id: terraform_fmt
|
||||
- id: terraform_docs
|
||||
args:
|
||||
- '--args=--lockfile=false'
|
||||
- id: terraform_validate
|
||||
exclude: deploy
|
||||
- id: terraform_tflint
|
||||
args:
|
||||
- '--args=--only=terraform_deprecated_interpolation'
|
||||
- '--args=--only=terraform_deprecated_index'
|
||||
- '--args=--only=terraform_unused_declarations'
|
||||
- '--args=--only=terraform_comment_syntax'
|
||||
- '--args=--only=terraform_documented_outputs'
|
||||
- '--args=--only=terraform_documented_variables'
|
||||
- '--args=--only=terraform_typed_variables'
|
||||
- '--args=--only=terraform_module_pinned_source'
|
||||
- '--args=--only=terraform_naming_convention'
|
||||
- '--args=--only=terraform_required_version'
|
||||
- '--args=--only=terraform_required_providers'
|
||||
- '--args=--only=terraform_standard_module_structure'
|
||||
- '--args=--only=terraform_workspace_remote'
|
||||
- id: terraform_tfsec
|
||||
files: ^examples/ # only scan `examples/*` which are the implementation
|
||||
args:
|
||||
- --args=--config-file=__GIT_WORKING_DIR__/tfsec.yaml
|
||||
- --args=--concise-output
|
||||
|
||||
Reference in New Issue
Block a user