You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| 3 |`TEST_DIR`|`'/tmp/infrastructure'`| Dir on what you run tests. |
50
55
| 4 |`TEST_DESCRIPTION`|```'`terraform_tfsec` PR #123:'```| Text that you'd like to see in result |
51
56
| 5 |`RAW_TEST_`<br>`RESULTS_FILE_NAME`|`terraform_tfsec_pr123`| (Temporary) File where all test data will be stored. |
57
+
<!-- markdownlint-enable no-inline-html -->
52
58
53
59
### Run via BASH
54
60
@@ -87,3 +93,46 @@ Results will be located at `./test/results` dir.
87
93
```bash
88
94
sudo rm -rf tests/results
89
95
```
96
+
97
+
## Add new hook
98
+
99
+
You can use [this PR](https://github.com/antonbabenko/pre-commit-terraform/pull/252) as an example.
100
+
101
+
### Before write code
102
+
103
+
1. Try to figure out future hook usage.
104
+
2. Confirm the concept with [Anton Babenko](https://github.com/antonbabenko).
105
+
106
+
### Prepare basic documentation
107
+
108
+
1. Identify and describe dependencies in [Install dependencies](../README.md#1-install-dependencies) and [Available Hooks](../README.md#available-hooks) sections
109
+
110
+
### Add code
111
+
112
+
1. Based on prev. block, add hook dependencies installation to [Dockerfile](../Dockerfile).
0 commit comments