mirror of
https://github.com/kairos-io/kairos-agent.git
synced 2025-05-12 18:34:27 +00:00
🔧 Integrate Shellcheck (#931)
* Add `shellcheck` to lint. Signed-off-by: Shawn Wilsher <656602+sdwilsh@users.noreply.github.com> * Fix/Suppress `shellcheck` lint issues Signed-off-by: Shawn Wilsher <656602+sdwilsh@users.noreply.github.com> --------- Signed-off-by: Shawn Wilsher <656602+sdwilsh@users.noreply.github.com> Co-authored-by: Itxaka <itxaka.garcia@spectrocloud.com>
This commit is contained in:
parent
7c195374ae
commit
019c8b8f8a
20
Earthfile
20
Earthfile
@ -28,6 +28,8 @@ ARG GO_VERSION=1.18
|
||||
ARG HADOLINT_VERSION=2.12.0-alpine
|
||||
# renovate: datasource=docker depName=renovate/renovate versioning=docker
|
||||
ARG RENOVATE_VERSION=34
|
||||
# renovate: datasource=docker depName=koalaman/shellcheck-alpine versioning=docker
|
||||
ARG SHELLCHECK_VERSION=v0.9.0
|
||||
|
||||
all:
|
||||
BUILD +docker
|
||||
@ -166,11 +168,6 @@ hadolint:
|
||||
RUN ls
|
||||
RUN find . -name "Dockerfile*" -print | xargs -r -n1 hadolint
|
||||
|
||||
yamllint:
|
||||
FROM cytopia/yamllint
|
||||
COPY . .
|
||||
RUN yamllint .github/workflows/ overlay/
|
||||
|
||||
renovate-validate:
|
||||
ARG RENOVATE_VERSION
|
||||
FROM renovate/renovate:$RENOVATE_VERSION
|
||||
@ -178,10 +175,23 @@ renovate-validate:
|
||||
COPY renovate.json .
|
||||
RUN renovate-config-validator
|
||||
|
||||
shellcheck-lint:
|
||||
ARG SHELLCHECK_VERSION
|
||||
FROM koalaman/shellcheck-alpine:$SHELLCHECK_VERSION
|
||||
WORKDIR /mnt
|
||||
COPY . .
|
||||
RUN find . -name "*.sh" -print | xargs -r -n1 shellcheck
|
||||
|
||||
yamllint:
|
||||
FROM cytopia/yamllint
|
||||
COPY . .
|
||||
RUN yamllint .github/workflows/ overlay/
|
||||
|
||||
lint:
|
||||
BUILD +golint
|
||||
BUILD +hadolint
|
||||
BUILD +renovate-validate
|
||||
BUILD +shellcheck-lint
|
||||
BUILD +yamllint
|
||||
|
||||
luet:
|
||||
|
Loading…
Reference in New Issue
Block a user