From dff33135b194ad10a3f0833480c7f434c6fa1ee0 Mon Sep 17 00:00:00 2001 From: Jay DeLuca Date: Mon, 26 Jan 2026 07:02:07 -0500 Subject: [PATCH 1/2] Make super-linter ARM friendly Signed-off-by: Jay DeLuca --- .mise/tasks/lint/super-linter.sh | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.mise/tasks/lint/super-linter.sh b/.mise/tasks/lint/super-linter.sh index 54c2b434e..36155fdbb 100755 --- a/.mise/tasks/lint/super-linter.sh +++ b/.mise/tasks/lint/super-linter.sh @@ -4,9 +4,18 @@ set -euo pipefail -docker pull ghcr.io/super-linter/super-linter:latest +# Super-linter doesn't publish ARM64 images, so force amd64 on Apple Silicon +PLATFORM_FLAG="" +if [[ "$(uname -m)" == "arm64" ]]; then + PLATFORM_FLAG="--platform linux/amd64" +fi +# shellcheck disable=SC2086 # Intentional word splitting for PLATFORM_FLAG +docker pull $PLATFORM_FLAG ghcr.io/super-linter/super-linter:latest + +# shellcheck disable=SC2086 # Intentional word splitting for PLATFORM_FLAG docker run --rm \ + $PLATFORM_FLAG \ -e RUN_LOCAL=true \ -e DEFAULT_BRANCH=main \ --env-file ".github/super-linter.env" \ From 8d419fc9ea2e9339a9d79c59f44dfb0c6ea2b363 Mon Sep 17 00:00:00 2001 From: Jay DeLuca Date: Mon, 26 Jan 2026 07:28:17 -0500 Subject: [PATCH 2/2] Always specify architecture Signed-off-by: Jay DeLuca --- .mise/tasks/lint/super-linter.sh | 13 +++---------- CONTRIBUTING.md | 4 ++++ 2 files changed, 7 insertions(+), 10 deletions(-) diff --git a/.mise/tasks/lint/super-linter.sh b/.mise/tasks/lint/super-linter.sh index 3eb6d1b62..9ff678580 100755 --- a/.mise/tasks/lint/super-linter.sh +++ b/.mise/tasks/lint/super-linter.sh @@ -4,21 +4,14 @@ set -euo pipefail -# Super-linter doesn't publish ARM64 images, so force amd64 on Apple Silicon -PLATFORM_FLAG="" -if [[ "$(uname -m)" == "arm64" ]]; then - PLATFORM_FLAG="--platform linux/amd64" -fi - # renovate: datasource=docker depName=ghcr.io/super-linter/super-linter SUPER_LINTER_VERSION="v8.3.2@sha256:e9d1895a1bdc1f9d9df41f688b27aa891743f23f9fae0f22a3e25eeda8f102db" -# shellcheck disable=SC2086 # Intentional word splitting for PLATFORM_FLAG -docker pull $PLATFORM_FLAG "ghcr.io/super-linter/super-linter:${SUPER_LINTER_VERSION}" +# Super-linter doesn't publish ARM64 images, so always use amd64 +docker pull --platform linux/amd64 "ghcr.io/super-linter/super-linter:${SUPER_LINTER_VERSION}" -# shellcheck disable=SC2086 # Intentional word splitting for PLATFORM_FLAG docker run --rm \ - $PLATFORM_FLAG \ + --platform linux/amd64 \ -e RUN_LOCAL=true \ -e DEFAULT_BRANCH=main \ --env-file ".github/super-linter.env" \ diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 5be7b073d..164879f28 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -19,6 +19,10 @@ the code. Run `./mvnw spotless:apply` to format the code (only changed files) before committing. +Or run all the linters: + +`mise run lint:super-linter` + ## Running Tests If you're getting errors when running tests: