Skip to content

Commit

Permalink
Use renovate with perlcritic (#4538)
Browse files Browse the repository at this point in the history
* Use renovate with perlcritic

* Ignore word

* [build-command] Update generated files

* [build-command] Update generated files

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Edouard Choinière <27212526+echoix@users.noreply.github.com>
  • Loading branch information
3 people authored Jan 20, 2025
1 parent 91649cf commit b9e43b7
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 3 deletions.
1 change: 1 addition & 0 deletions .cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -1367,6 +1367,7 @@
"shpss",
"shutil",
"simplexml",
"skaji",
"slshape",
"smallskip",
"smtplib",
Expand Down
5 changes: 4 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,9 @@ ARG LUA_SELENE_VERSION=0.28.0
ARG LUA_STYLUA_VERSION=2.0.0
# renovate: datasource=npm depName=markdown-link-check
ARG MARKDOWN_MARKDOWN_LINK_CHECK_VERSION=3.12.2
# renovate: datasource=github-tags depName=skaji/cpm
ARG PERL_PERLCRITIC_VERSION=0.997021

# renovate: datasource=nuget depName=PSScriptAnalyzer registryUrl=https://www.powershellgallery.com/api/v2/
ARG PSSA_VERSION='1.23.0'

Expand Down Expand Up @@ -708,7 +711,7 @@ RUN wget --quiet https://github.com/pmd/pmd/releases/download/pmd_releases%2F${P
# markdown-link-check installation
#
# perlcritic installation
&& curl -fsSL https://raw.githubusercontent.com/skaji/cpm/main/cpm | perl - install -g --show-build-log-on-failure --without-build --without-test --without-runtime Perl::Critic \
&& curl -fsSL https://raw.githubusercontent.com/skaji/cpm/refs/tags/${PERL_PERLCRITIC_VERSION}/cpm | perl - install -g --show-build-log-on-failure --without-build --without-test --without-runtime Perl::Critic \
&& rm -rf /root/.perl-cpm

#
Expand Down
4 changes: 3 additions & 1 deletion linters/perl_perlcritic/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +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=skaji/cpm
ARG PERL_PERLCRITIC_VERSION=0.997021

#ARG__END

Expand Down Expand Up @@ -148,7 +150,7 @@ ENV PATH="/node-deps/node_modules/.bin:${PATH}" \
#############################################################################################
#OTHER__START
# perlcritic installation
RUN curl -fsSL https://raw.githubusercontent.com/skaji/cpm/main/cpm | perl - install -g --show-build-log-on-failure --without-build --without-test --without-runtime Perl::Critic \
RUN curl -fsSL https://raw.githubusercontent.com/skaji/cpm/refs/tags/${PERL_PERLCRITIC_VERSION}/cpm | perl - install -g --show-build-log-on-failure --without-build --without-test --without-runtime Perl::Critic \
&& rm -rf /root/.perl-cpm

#
Expand Down
5 changes: 4 additions & 1 deletion megalinter/descriptors/perl.megalinter-descriptor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,8 @@ linters:
install:
dockerfile:
- |
RUN curl -fsSL https://raw.githubusercontent.com/skaji/cpm/main/cpm | perl - install -g --show-build-log-on-failure --without-build --without-test --without-runtime Perl::Critic \
# renovate: datasource=github-tags depName=skaji/cpm
ARG PERL_PERLCRITIC_VERSION=0.997021
- |
RUN curl -fsSL https://raw.githubusercontent.com/skaji/cpm/refs/tags/${PERL_PERLCRITIC_VERSION}/cpm | perl - install -g --show-build-log-on-failure --without-build --without-test --without-runtime Perl::Critic \
&& rm -rf /root/.perl-cpm

0 comments on commit b9e43b7

Please sign in to comment.