Skip to content

Commit

Permalink
Use renovate with clj-style (#4531)
Browse files Browse the repository at this point in the history
* Use renovate with clj-style

* [build-command] Update generated files

* Ignore word

* Remove static flag

* [build-command] Update generated files

* Fix installation

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
bdovaz and github-actions[bot] authored Jan 21, 2025
1 parent 879b90a commit 65d5ba5
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 6 deletions.
1 change: 1 addition & 0 deletions .cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@
"gfch",
"gotit",
"gouverner",
"greglook",
"has-bigints",
"has-tostringtag",
"hiqr",
Expand Down
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,8 @@ ARG BICEP_DIR='/usr/local/bin'
# renovate: datasource=github-tags depName=clj-kondo/clj-kondo
ARG CLJ_KONDO_VERSION=2025.01.16

# renovate: datasource=github-tags depName=greglook/cljstyle
ARG CLJ_STYLE_VERSION=0.17.642
# renovate: datasource=nuget depName=csharpier
ARG CSHARP_CSHARPIER_VERSION=0.30.6
# renovate: datasource=nuget depName=roslynator.dotnet.cli
Expand Down Expand Up @@ -618,7 +620,7 @@ RUN curl --retry 5 --retry-delay 5 -sLO "https://github.com/Azure/arm-ttk/releas
# cljstyle installation
&& curl --retry 5 --retry-delay 5 -sLO https://raw.githubusercontent.com/greglook/cljstyle/main/util/install-cljstyle \
&& chmod +x install-cljstyle \
&& ./install-cljstyle --static \
&& ./install-cljstyle --static --version "$CLJ_STYLE_VERSION" \
#
# csharpier installation
&& dotnet tool install --global csharpier --version "${CSHARP_CSHARPIER_VERSION}" \
Expand Down
4 changes: 3 additions & 1 deletion flavors/cupcake/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,8 @@ FROM python:3.12.8-alpine3.21
# renovate: datasource=github-tags depName=clj-kondo/clj-kondo
ARG CLJ_KONDO_VERSION=2025.01.16

# renovate: datasource=github-tags depName=greglook/cljstyle
ARG CLJ_STYLE_VERSION=0.17.642
# renovate: datasource=github-tags depName=pmd/pmd extractVersion=^pmd_releases/(?<version>.*)$
ARG PMD_VERSION=7.9.0

Expand Down Expand Up @@ -435,7 +437,7 @@ RUN printf '#!/bin/bash \n\nif [[ -x "$1" ]]; then exit 0; else echo "Error: Fil
# cljstyle installation
&& curl --retry 5 --retry-delay 5 -sLO https://raw.githubusercontent.com/greglook/cljstyle/main/util/install-cljstyle \
&& chmod +x install-cljstyle \
&& ./install-cljstyle --static \
&& ./install-cljstyle --static --version "$CLJ_STYLE_VERSION" \
#
# hadolint installation
# Managed with COPY --link --from=hadolint /bin/hadolint /usr/bin/hadolint
Expand Down
4 changes: 3 additions & 1 deletion flavors/java/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,8 @@ FROM python:3.12.8-alpine3.21
# renovate: datasource=github-tags depName=clj-kondo/clj-kondo
ARG CLJ_KONDO_VERSION=2025.01.16

# renovate: datasource=github-tags depName=greglook/cljstyle
ARG CLJ_STYLE_VERSION=0.17.642
# renovate: datasource=github-tags depName=pmd/pmd extractVersion=^pmd_releases/(?<version>.*)$
ARG PMD_VERSION=7.9.0

Expand Down Expand Up @@ -346,7 +348,7 @@ RUN printf '#!/bin/bash \n\nif [[ -x "$1" ]]; then exit 0; else echo "Error: Fil
# cljstyle installation
&& curl --retry 5 --retry-delay 5 -sLO https://raw.githubusercontent.com/greglook/cljstyle/main/util/install-cljstyle \
&& chmod +x install-cljstyle \
&& ./install-cljstyle --static \
&& ./install-cljstyle --static --version "$CLJ_STYLE_VERSION" \
#
# hadolint installation
# Managed with COPY --link --from=hadolint /bin/hadolint /usr/bin/hadolint
Expand Down
5 changes: 3 additions & 2 deletions linters/clojure_cljstyle/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ FROM python:3.12.8-alpine3.21
## @generated by .automation/build.py using descriptor files, please do not update manually ##
#############################################################################################
#ARG__START

# renovate: datasource=github-tags depName=greglook/cljstyle
ARG CLJ_STYLE_VERSION=0.17.642
#ARG__END

####################
Expand Down Expand Up @@ -190,7 +191,7 @@ RUN ALPINE_GLIBC_BASE_URL="https://github.com/sgerrand/alpine-pkg-glibc/releases
# cljstyle installation
&& curl --retry 5 --retry-delay 5 -sLO https://raw.githubusercontent.com/greglook/cljstyle/main/util/install-cljstyle \
&& chmod +x install-cljstyle \
&& ./install-cljstyle --static
&& ./install-cljstyle --static --version "$CLJ_STYLE_VERSION"

#
#OTHER__END
Expand Down
5 changes: 4 additions & 1 deletion megalinter/descriptors/clojure.megalinter-descriptor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -114,10 +114,13 @@ linters:
- "cljstyle fix myfile.clj path/to/myfile.clj"
install:
dockerfile:
- |-
# renovate: datasource=github-tags depName=greglook/cljstyle
ARG CLJ_STYLE_VERSION=0.17.642
- |
RUN curl --retry 5 --retry-delay 5 -sLO https://raw.githubusercontent.com/greglook/cljstyle/main/util/install-cljstyle \
&& chmod +x install-cljstyle \
&& ./install-cljstyle --static
&& ./install-cljstyle --static --version "$CLJ_STYLE_VERSION"
ide:
emacs:
- name: cljstyle-mode
Expand Down

0 comments on commit 65d5ba5

Please sign in to comment.