From c7974683591a7011e906b078b11ed35794753c79 Mon Sep 17 00:00:00 2001 From: Alan Moran Date: Fri, 7 Jun 2024 12:17:23 +0200 Subject: [PATCH] Fix lints --- ci/Makefile | 22 ++++++++++++++++++++-- ci/infrastructure/Makefile | 8 +++++--- 2 files changed, 25 insertions(+), 5 deletions(-) diff --git a/ci/Makefile b/ci/Makefile index 3a5c795c41..9d07aacc6b 100644 --- a/ci/Makefile +++ b/ci/Makefile @@ -1,11 +1,29 @@ .PHONY: set-autoscaler-pipeline - set-autoscaler-pipeline: @./autoscaler/set-pipeline.sh .PHONY: unpause-pipeline - unpause-pipeline: @./scripts/unpause-pipeline.sh + +.PHONY: delete-pipeline +delete-pipeline: + @./scripts/delete-pipeline.sh + +.PHONY: set-target +set-target: + @fly --target app-autoscaler-release login --team-name app-autoscaler --concourse-url https://concourse.app-runtime-interfaces.ci.cloudfoundry.org + +.PHONY: lint +lint: + shellcheck --external-sources -x -s bash autoscaler/**/**/*.sh + +.PHONY: fix-lint +fix-lint: + shellcheck --external-sources -x -s bash -f diff autoscaler/**/**/*.sh + +.PHONY: browse +browse: + @open https://concourse.app-runtime-interfaces.ci.cloudfoundry.org diff --git a/ci/infrastructure/Makefile b/ci/infrastructure/Makefile index 1c75e9e5a3..2ca211c481 100644 --- a/ci/infrastructure/Makefile +++ b/ci/infrastructure/Makefile @@ -1,11 +1,13 @@ - +.PHONY: set-pipeline set-pipeline: ./set-pipeline.sh +.PHONY: lint lint: shellcheck -x -s bash scripts/*.sh + shellcheck --external-sources -x -s bash **/*.sh +.PHONY: lint-fix lint-fix: - # uses shellcheck to fix any issues it can - shellcheck -x -s bash scripts/*.sh --fix + shellcheck --external-sources -x -s bash -f diff **/*.sh