Skip to content

Commit

Permalink
fix linting target
Browse files Browse the repository at this point in the history
  • Loading branch information
Telemaco019 committed Aug 5, 2024
1 parent 775459a commit 03423f8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,11 @@ doc: ## Generate the doc
.PHONY: lint
lint: ## Lint the codebase
@echo "\033[0;33m[Linting...]\033[0m"
@(which tflint && tflint) || docker run --rm -v $$(pwd):/data -t ghcr.io/terraform-linters/tflint
@if command -v tflint > /dev/null; then \
tflint; \
else \
docker run --rm -v $$(pwd):/data -t ghcr.io/terraform-linters/tflint; \
fi
@echo "${OK}"

.PHONY: validate
Expand Down

0 comments on commit 03423f8

Please sign in to comment.