Skip to content

Commit 630cb7c

Browse files
authored
Fixing TFLint section of README (#109)
README made reference to the wrong default value of the root keyword.
1 parent d0bcdb3 commit 630cb7c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ repos:
151151

152152
With the introduction of `--chdir` into tflint, the `--config` argument is now bound to whatever subdirectory you are
153153
running the check against. For mono-repos this isn't ideal as you may have a central configuration file you'd like to
154-
use. If this matches your use-case, you can specify the placeholder `__GIT_DIR__` value in the `--config` argument
154+
use. If this matches your use-case, you can specify the placeholder `__GIT_ROOT__` value in the `--config` argument
155155
that will evaluate to the root of the repository you are in.
156156

157157
```yaml
@@ -161,7 +161,7 @@ repos:
161161
hooks:
162162
- id: tflint
163163
args:
164-
- "--config=__GIT_DIR__/.tflint.hcl"
164+
- "--config=__GIT_ROOT__/.tflint.hcl"
165165
```
166166

167167
#### Changing the placeholder value

0 commit comments

Comments
 (0)