terraform/tflint
- 307 bytes
- View raw
1#!/usr/bin/env bash
2# This runs the Terraform linter 'tflint'.
3#
4# It runs the linter inside a Docker image, so I don't have to worry
5# about installing it before I use it.
7set -o errexit
8set -o nounset
10docker run --rm --tty \
11 --volume $(pwd):/data \
12 ghcr.io/terraform-linters/tflint --recursive "$@"