treefmt.toml: add warning for sh -c

This commit is contained in:
zimbatm 2022-05-20 16:18:55 +02:00
parent 3824820f08
commit d19198044e
No known key found for this signature in database
GPG Key ID: 71BAF6D40C1D63D7

View File

@ -70,7 +70,7 @@ shellcheck "$@"
# Then format them
shfmt -i 2 -s -w "$@"
""",
"--",
"--", # bash swallows the second argument when using -c
]
includes = ["*.sh"]
@ -85,6 +85,6 @@ for f in "$@"; do
terraform fmt "$f"
done
""",
"--",
"--", # bash swallows the second argument when using -c
]
includes = ["*.tf"]