From bcc3623d128d2f5583151890ec5a988dd2230468 Mon Sep 17 00:00:00 2001 From: codeGlaze Date: Thu, 11 Sep 2025 13:34:54 -0400 Subject: [PATCH 1/2] Disable shadowed-var linter in config.edn --- .clj-kondo/config.edn | 1 + 1 file changed, 1 insertion(+) diff --git a/.clj-kondo/config.edn b/.clj-kondo/config.edn index 4e901577e..9480eb867 100644 --- a/.clj-kondo/config.edn +++ b/.clj-kondo/config.edn @@ -1,6 +1,7 @@ {:linters {:if {:level :off} :unused-namespace {:level :off} :unused-binding {:level :off} + :shadowed-var {:level :off} :unresolved-symbol {:exclude [(clojure.core.match/match) From b4e030d3ad977ff9e2a7117f0d6e15eca690f7b5 Mon Sep 17 00:00:00 2001 From: codeGlaze Date: Thu, 11 Sep 2025 13:37:08 -0400 Subject: [PATCH 2/2] Modify linter command to handle warning exit code (2) * Adds an OR (||) statement to save the warning on a non-clean (0) exit, checks if it's a warning (error 2) and ignores it * Remove if we want to watch for specific warnings in the future --- .github/workflows/continuous-integration.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/continuous-integration.yml b/.github/workflows/continuous-integration.yml index 03691a76a..7e976a8ed 100644 --- a/.github/workflows/continuous-integration.yml +++ b/.github/workflows/continuous-integration.yml @@ -28,6 +28,6 @@ jobs: - name: Get leiningen version run: lein -v - name: Run linter - run: lein lint + run: lein lint || test $? -eq 2 - name: Run tests - run: lein test \ No newline at end of file + run: lein test