File tree Expand file tree Collapse file tree 2 files changed +24
-0
lines changed Expand file tree Collapse file tree 2 files changed +24
-0
lines changed Original file line number Diff line number Diff line change 26
26
files : \.tf$
27
27
exclude : \.+.terraform\/.*$
28
28
29
+ - id : terragrunt-hclfmt
30
+ name : Terragrunt hclfmt
31
+ description : Rewrites all Terragrunt configuration files to a canonical format
32
+ entry : hooks/terragrunt-hclfmt.sh
33
+ language : script
34
+ files : \.hcl$
35
+ exclude : >
36
+ (?x)^(
37
+ .+\.terraform\/.*$|
38
+ .+\.terragrunt-cache\/.*$|
39
+ )$
40
+
29
41
- id : shellcheck
30
42
name : Shellcheck Bash Linter
31
43
description : Performs linting on bash scripts
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ set -e
4
+
5
+ # OSX GUI apps do not pick up environment variables the same way as Terminal apps and there are no easy solutions,
6
+ # especially as Apple changes the GUI app behavior every release (see https://stackoverflow.com/q/135688/483528). As a
7
+ # workaround to allow GitHub Desktop to work, add this (hopefully harmless) setting here.
8
+ export PATH=$PATH :/usr/local/bin
9
+
10
+ for file in " $@ " ; do
11
+ terragrunt hclfmt --terragrunt-config " $file "
12
+ done
You can’t perform that action at this time.
0 commit comments