Skip to content

Commit 4dce7ea

Browse files
authored
Merge branch 'master' into feat/GH-526
2 parents fb8f970 + 37202d0 commit 4dce7ea

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,7 @@ For deprecated hook you need to specify each argument separately:
357357
]
358358
```
359359

360-
1. When you have multiple directories and want to run `terraform_checkov` in all of them and share a single config file - use the `__GIT_WORKING_DIR__` placeholder. It will be replaced by `terraform_checkov` hooks with the Git working directory (repo root) at run time. For example:
360+
2. When you have multiple directories and want to run `terraform_checkov` in all of them and share a single config file - use the `__GIT_WORKING_DIR__` placeholder. It will be replaced by `terraform_checkov` hooks with the Git working directory (repo root) at run time. For example:
361361

362362
```yaml
363363
- id: terraform_checkov
@@ -407,7 +407,7 @@ Unlike most other hooks, this hook triggers once if there are any changed files
407407
- --args=--terraform-var-file="../terraform.tfvars"
408408
```
409409

410-
1. (Optionally) Define `cost constraints` the hook should evaluate successfully in order to pass:
410+
3. (Optionally) Define `cost constraints` the hook should evaluate successfully in order to pass:
411411

412412
```yaml
413413
- id: infracost_breakdown
@@ -632,15 +632,15 @@ To replicate functionality in `terraform_docs` hook:
632632
- --args=--enable-rule=terraform_documented_variables
633633
```
634634

635-
1. When you have multiple directories and want to run `tflint` in all of them and share a single config file, it is impractical to hard-code the path to the `.tflint.hcl` file. The solution is to use the `__GIT_WORKING_DIR__` placeholder which will be replaced by `terraform_tflint` hooks with the Git working directory (repo root) at run time. For example:
635+
2. When you have multiple directories and want to run `tflint` in all of them and share a single config file, it is impractical to hard-code the path to the `.tflint.hcl` file. The solution is to use the `__GIT_WORKING_DIR__` placeholder which will be replaced by `terraform_tflint` hooks with the Git working directory (repo root) at run time. For example:
636636

637637
```yaml
638638
- id: terraform_tflint
639639
args:
640640
- --args=--config=__GIT_WORKING_DIR__/.tflint.hcl
641641
```
642642

643-
1. By default, pre-commit-terraform performs directory switching into the terraform modules for you. If you want to delegate the directory changing to the binary - this will allow tflint to determine the full paths for error/warning messages, rather than just module relative paths. *Note: this requires `tflint>=0.44.0`.* For example:
643+
3. By default, pre-commit-terraform performs directory switching into the terraform modules for you. If you want to delegate the directory changing to the binary - this will allow tflint to determine the full paths for error/warning messages, rather than just module relative paths. *Note: this requires `tflint>=0.44.0`.* For example:
644644

645645
```yaml
646646
- id: terraform_tflint

0 commit comments

Comments
 (0)