mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2026-01-11 14:35:27 +00:00
44 lines
892 B
Makefile
44 lines
892 B
Makefile
.PHONY: default
|
|
default: check-fmt shellcheck
|
|
|
|
.PHONY: check-fmt
|
|
check-fmt: check-fmt-enos check-fmt-modules
|
|
|
|
.PHONY: fmt
|
|
fmt: fmt-enos fmt-modules
|
|
|
|
.PHONY: check-fmt-enos
|
|
check-fmt-enos:
|
|
enos fmt --check --diff .
|
|
|
|
.PHONY: fmt-enos
|
|
fmt-enos:
|
|
enos fmt .
|
|
|
|
.PHONY: check-fmt-modules
|
|
check-fmt-modules:
|
|
terraform fmt -check -diff -recursive ./modules
|
|
|
|
.PHONY: fmt-modules
|
|
fmt-modules:
|
|
terraform fmt -diff -recursive ./modules
|
|
|
|
.PHONY: validate-enos
|
|
validate-enos:
|
|
enos scenario validate --timeout 30m0s
|
|
|
|
.PHONY: lint
|
|
lint: check-fmt check-fmt-modules check-shfmt shellcheck validate-enos
|
|
|
|
.PHONY: shellcheck
|
|
shellcheck:
|
|
find ./modules/ -type f -name '*.sh' | xargs shellcheck
|
|
|
|
.PHONY: shfmt
|
|
shfmt:
|
|
find ./modules/ -type f -name '*.sh' | xargs shfmt -l -w -i 2 -bn -ci -kp -sr
|
|
|
|
.PHONY: check-shfmt
|
|
check-shfmt:
|
|
find ./modules/ -type f -name '*.sh' | xargs shfmt -l -d -i 2 -bn -ci -kp -sr
|