Skip to content

Commit 7b2c286

Browse files
authored
V6 proposal (#10)
* Enable parallel linting * Update Dockerfile
1 parent 9181400 commit 7b2c286

File tree

4 files changed

+32
-3
lines changed

4 files changed

+32
-3
lines changed

CHANGELOG.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,18 @@
11
# Changelog
22

3+
## v6 - 2025-08-16
4+
5+
- Enable parallel clj-kondo execution
6+
- Log the safe inputs from the workflow
7+
8+
## v5 - 2025-08-14
9+
10+
- Update clojure:temurin-18-tools-deps-alpine Docker digest to 3c4b747
11+
12+
## v4 - 2024-12-27
13+
14+
- Update clojure:temurin-18-tools-deps-alpine Docker digest to 2397fa7
15+
316
## v3 - 2024-12-03
417

518
- Pin the Alpine image version

Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
# https://hub.docker.com/layers/library/clojure/temurin-18-tools-deps-alpine/images/sha256-11322c60157b98e87bd55d523854d177e4b150f7b0ca2179550d7cd2a60961f8
22
FROM clojure:temurin-18-tools-deps-alpine@sha256:3c4b747a4cf5681cf2b398cd3d38778f143acec6c937627ecb05ef09252db4e3
33

4-
ENV REVIEWDOG_VERSION=v0.12.0
4+
# https://github.com/reviewdog/reviewdog/blob/master/CHANGELOG.md#v0181---2024-06-22
5+
ENV REVIEWDOG_VERSION=v0.18.1
56

67
RUN wget -O - -q https://raw.githubusercontent.com/reviewdog/reviewdog/master/install.sh| sh -s -- -b /usr/local/bin/ ${REVIEWDOG_VERSION}
78

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ jobs:
9292
steps:
9393
- uses: actions/[email protected]
9494
- name: clj-kondo
95-
uses: nnichols/clojure-lint-action@v2
95+
uses: nnichols/clojure-lint-action@v6
9696
with:
9797
github_token: ${{ secrets.github_token }}
9898
reporter: github-pr-review

lint.sh

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,31 @@ git config --global --add safe.directory "$GITHUB_WORKSPACE" || exit 1
77

88
export REVIEWDOG_GITHUB_API_TOKEN="${INPUT_GITHUB_TOKEN}"
99

10+
echo "::group::Configuration"
11+
echo "GitHub Tokens are not logged"
12+
echo "INPUT_PATH: ${INPUT_PATH}"
13+
echo "INPUT_EXCLUDE: ${INPUT_EXCLUDE}"
14+
echo "INPUT_PATTERN: ${INPUT_PATTERN}"
15+
echo "INPUT_CLJ_KONDO_CONFIG: ${INPUT_CLJ_KONDO_CONFIG}"
16+
echo "INPUT_REPORTER: ${INPUT_REPORTER}"
17+
echo "INPUT_FILTER_MODE: ${INPUT_FILTER_MODE}"
18+
echo "INPUT_FAIL_ON_ERROR: ${INPUT_FAIL_ON_ERROR}"
19+
echo "INPUT_LEVEL: ${INPUT_LEVEL}"
20+
echo "INPUT_REVIEWDOG_FLAGS: ${INPUT_REVIEWDOG_FLAGS}"
21+
echo "::endgroup::"
22+
1023
sources=$(find "${INPUT_PATH}" -not -path "${INPUT_EXCLUDE}" -type f -name "${INPUT_PATTERN}")
1124

1225
echo "::group::Files to lint"
1326
echo "${sources}"
1427
echo "::endgroup::"
1528

1629
clj -Sdeps '{:deps {clj-kondo/clj-kondo {:mvn/version "RELEASE"}}}' -M -m clj-kondo.main \
17-
--lint $(find "${INPUT_PATH}" -not -path "${INPUT_EXCLUDE}" -type f -name "${INPUT_PATTERN}") \
30+
--lint ${sources} \
1831
--config "${INPUT_CLJ_KONDO_CONFIG}" \
1932
--config '{:output {:pattern "{{filename}}:{{row}}:{{col}}: {{message}}"}}' \
2033
--config '{:summary false}' \
34+
--parallel \
2135
| reviewdog \
2236
-efm="%f:%l:%c: %m" \
2337
-name="clj-kondo" \
@@ -28,5 +42,6 @@ clj -Sdeps '{:deps {clj-kondo/clj-kondo {:mvn/version "RELEASE"}}}' -M -m clj-ko
2842
"${INPUT_REVIEWDOG_FLAGS}"
2943

3044
exit_code=$?
45+
echo "clj-kondo finished with exit code: ${exit_code}"
3146

3247
exit $exit_code

0 commit comments

Comments
 (0)