|
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.3.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 | + - id: detect-aws-credentials |
| 11 | + args: ['--allow-missing-credentials'] |
| 12 | + - repo: https://github.com/antonbabenko/pre-commit-terraform |
| 13 | + rev: v1.74.1 |
| 14 | + hooks: |
| 15 | + - id: terraform_fmt |
| 16 | + - id: terraform_docs |
| 17 | + args: |
| 18 | + - '--args=--lockfile=false' |
| 19 | + - id: terraform_validate |
| 20 | + exclude: deploy |
| 21 | + - id: terraform_tflint |
| 22 | + args: |
| 23 | + - '--args=--only=terraform_deprecated_interpolation' |
| 24 | + - '--args=--only=terraform_deprecated_index' |
| 25 | + - '--args=--only=terraform_unused_declarations' |
| 26 | + - '--args=--only=terraform_comment_syntax' |
| 27 | + - '--args=--only=terraform_documented_outputs' |
| 28 | + - '--args=--only=terraform_documented_variables' |
| 29 | + - '--args=--only=terraform_typed_variables' |
| 30 | + - '--args=--only=terraform_module_pinned_source' |
| 31 | + - '--args=--only=terraform_naming_convention' |
| 32 | + - '--args=--only=terraform_required_version' |
| 33 | + - '--args=--only=terraform_required_providers' |
| 34 | + - '--args=--only=terraform_standard_module_structure' |
| 35 | + - '--args=--only=terraform_workspace_remote' |
| 36 | + - id: terraform_tfsec |
| 37 | + files: ^examples/ # only scan `examples/*` which are the implementation |
| 38 | + args: |
| 39 | + - --args=--config-file=__GIT_WORKING_DIR__/tfsec.yaml |
| 40 | + - --args=--concise-output |
0 commit comments