|
1 | | ---- |
2 | | -fail_fast: false |
3 | | -minimum_pre_commit_version: "2.6.0" |
4 | 1 | repos: |
5 | | - - |
6 | | - repo: https://github.com/aws-ia/pre-commit-configs |
7 | | - # To update run: |
8 | | - # pre-commit autoupdate --freeze |
9 | | - rev: 80ed3f0a164f282afaac0b6aec70e20f7e541932 # frozen: v1.5.0 |
| 2 | + - repo: https://github.com/pre-commit/pre-commit-hooks |
| 3 | + rev: v4.4.0 |
10 | 4 | hooks: |
11 | | - - id: aws-ia-meta-hook |
| 5 | + - id: trailing-whitespace |
| 6 | + args: ['--markdown-linebreak-ext=md'] |
| 7 | + - id: end-of-file-fixer |
| 8 | + - id: check-merge-conflict |
| 9 | + - id: detect-private-key |
| 10 | + - repo: https://github.com/antonbabenko/pre-commit-terraform |
| 11 | + rev: v1.77.1 |
| 12 | + hooks: |
| 13 | + - id: terraform_fmt |
| 14 | + - id: terraform_docs |
| 15 | + args: |
| 16 | + - '--args=--lockfile=false' |
| 17 | + - id: terraform_tflint |
| 18 | + args: |
| 19 | + - '--args=--only=terraform_deprecated_interpolation' |
| 20 | + - '--args=--only=terraform_deprecated_index' |
| 21 | + - '--args=--only=terraform_unused_declarations' |
| 22 | + - '--args=--only=terraform_comment_syntax' |
| 23 | + - '--args=--only=terraform_documented_outputs' |
| 24 | + - '--args=--only=terraform_documented_variables' |
| 25 | + - '--args=--only=terraform_typed_variables' |
| 26 | + - '--args=--only=terraform_module_pinned_source' |
| 27 | + - '--args=--only=terraform_naming_convention' |
| 28 | + - '--args=--only=terraform_required_version' |
| 29 | + - '--args=--only=terraform_required_providers' |
| 30 | + - '--args=--only=terraform_standard_module_structure' |
| 31 | + - '--args=--only=terraform_workspace_remote' |
| 32 | + - '--args=--only=terraform_empty_list_equality' |
| 33 | + - '--args=--only=terraform_unused_required_providers' |
| 34 | + - id: terraform_validate |
| 35 | + - id: terraform_tfsec |
| 36 | + args: |
| 37 | + - --args=--config-file=__GIT_WORKING_DIR__/.tfsec.yaml |
| 38 | + - --args=--concise-output |
0 commit comments