diff --git a/.automation/generated/flavors-stats.json b/.automation/generated/flavors-stats.json index 3e8abdd176e..623f7630fe3 100644 --- a/.automation/generated/flavors-stats.json +++ b/.automation/generated/flavors-stats.json @@ -1299,6 +1299,10 @@ [ "2023-02-16T01:07:41", 2778653 + ], + [ + "2023-02-17T17:51:42", + 2780933 ] ], "ci_light": [ @@ -2601,6 +2605,10 @@ [ "2023-02-16T01:07:41", 48142 + ], + [ + "2023-02-17T17:51:42", + 48449 ] ], "cupcake": [ @@ -2883,6 +2891,10 @@ [ "2023-02-16T01:07:41", 2834 + ], + [ + "2023-02-17T17:51:42", + 2897 ] ], "dart": [ @@ -5095,6 +5107,10 @@ [ "2023-02-16T01:07:41", 114610 + ], + [ + "2023-02-17T17:51:42", + 115387 ] ], "dotnet": [ @@ -6397,6 +6413,10 @@ [ "2023-02-16T01:07:41", 349110 + ], + [ + "2023-02-17T17:51:42", + 349522 ] ], "go": [ @@ -7699,6 +7719,10 @@ [ "2023-02-16T01:07:41", 16793 + ], + [ + "2023-02-17T17:51:42", + 16837 ] ], "java": [ @@ -9001,6 +9025,10 @@ [ "2023-02-16T01:07:41", 108751 + ], + [ + "2023-02-17T17:51:42", + 108949 ] ], "javascript": [ @@ -10303,6 +10331,10 @@ [ "2023-02-16T01:07:41", 201057 + ], + [ + "2023-02-17T17:51:42", + 201991 ] ], "php": [ @@ -11605,6 +11637,10 @@ [ "2023-02-16T01:07:41", 45239 + ], + [ + "2023-02-17T17:51:42", + 45348 ] ], "python": [ @@ -12907,6 +12943,10 @@ [ "2023-02-16T01:07:41", 158821 + ], + [ + "2023-02-17T17:51:42", + 159537 ] ], "ruby": [ @@ -14205,6 +14245,10 @@ [ "2023-02-16T01:07:41", 2957 + ], + [ + "2023-02-17T17:51:42", + 2968 ] ], "rust": [ @@ -15503,6 +15547,10 @@ [ "2023-02-16T01:07:41", 4564 + ], + [ + "2023-02-17T17:51:42", + 4576 ] ], "salesforce": [ @@ -16805,6 +16853,10 @@ [ "2023-02-16T01:07:41", 16627 + ], + [ + "2023-02-17T17:51:42", + 16668 ] ], "scala": [ @@ -18105,6 +18157,10 @@ [ "2023-02-16T01:07:41", 2895 + ], + [ + "2023-02-17T17:51:42", + 2998 ] ], "swift": [ @@ -19403,6 +19459,10 @@ [ "2023-02-16T01:07:41", 3161 + ], + [ + "2023-02-17T17:51:42", + 3164 ] ], "terraform": [ @@ -20705,6 +20765,10 @@ [ "2023-02-16T01:07:41", 176969 + ], + [ + "2023-02-17T17:51:42", + 178103 ] ] } \ No newline at end of file diff --git a/.automation/generated/linter-helps.json b/.automation/generated/linter-helps.json index 1e74bf5b707..f25023312e4 100644 --- a/.automation/generated/linter-helps.json +++ b/.automation/generated/linter-helps.json @@ -1165,7 +1165,7 @@ "" ], "clj-kondo": [ - "clj-kondo v2023.01.20", + "clj-kondo v2023.02.17", "", "", "Options:", @@ -1188,7 +1188,7 @@ " nearest `.clj-kondo` directory in the current and parent directories.", "", " --config : config may be a file or an EDN expression. See", - " https://cljdoc.org/d/clj-kondo/clj-kondo/2023.01.20/doc/configuration", + " https://cljdoc.org/d/clj-kondo/clj-kondo/2023.02.17/doc/configuration", "", " --config-dir : use this config directory instead of auto-detected", " .clj-kondo dir.", diff --git a/.automation/generated/linter-versions.json b/.automation/generated/linter-versions.json index cc88578fed4..4f264f13156 100644 --- a/.automation/generated/linter-versions.json +++ b/.automation/generated/linter-versions.json @@ -12,7 +12,7 @@ "checkstyle": "10.7.0", "chktex": "1.7.6", "clippy": "0.1.67", - "clj-kondo": "2023.01.20", + "clj-kondo": "2023.02.17", "coffeelint": "5.2.11", "cpplint": "1.6.1", "csharpier": "0.22.1", diff --git a/CHANGELOG.md b/CHANGELOG.md index e8ec14ab88c..8affeb9c6f0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -95,6 +95,7 @@ Note: Can be used with `oxsecurity/megalinter@beta` in your GitHub Action mega-l - [semgrep](https://semgrep.dev/) from 1.11.0 to **1.12.0** on 2023-02-16 - [trivy](https://aquasecurity.github.io/trivy/) from 0.37.2 to **0.37.3** on 2023-02-16 - [cspell](https://github.com/streetsidesoftware/cspell/tree/master/packages/cspell) from 6.24.0 to **6.26.1** on 2023-02-16 + - [clj-kondo](https://github.com/borkdude/clj-kondo) from 2023.01.20 to **2023.02.17** on 2023-02-17 ## [v6.19.0] - 2023-02-05 diff --git a/Dockerfile b/Dockerfile index 3de420bd64c..afa45dbde97 100644 --- a/Dockerfile +++ b/Dockerfile @@ -11,7 +11,6 @@ ############################################################################################# #FROM__START FROM mvdan/shfmt:latest-alpine as shfmt -FROM cljkondo/clj-kondo:2023.01.20-alpine as clj-kondo FROM hadolint/hadolint:v2.12.0-alpine as hadolint FROM mstruebing/editorconfig-checker:2.7.0 as editorconfig-checker FROM ghcr.io/assignuser/chktex-alpine:latest as chktex @@ -281,7 +280,6 @@ ENV PATH="/root/.cargo/bin:${PATH}" #COPY__START COPY --from=shfmt /bin/shfmt /usr/bin/ -COPY --from=clj-kondo /bin/clj-kondo /usr/bin/ COPY --from=hadolint /bin/hadolint /usr/bin/hadolint COPY --from=editorconfig-checker /usr/bin/ec /usr/bin/editorconfig-checker COPY --from=chktex /usr/bin/chktex /usr/bin/ @@ -412,7 +410,9 @@ RUN curl --retry 5 --retry-delay 5 -sLO "${ARM_TTK_URI}" \ && mv "${BICEP_EXE}" "${BICEP_DIR}" \ # clj-kondo installation -# Managed with COPY --from=clj-kondo /bin/clj-kondo /usr/bin/ + && curl -sLO https://raw.githubusercontent.com/clj-kondo/clj-kondo/master/script/install-clj-kondo \ + && chmod +x install-clj-kondo \ + && ./install-clj-kondo \ # csharpier installation && /usr/share/dotnet/dotnet tool install -g csharpier \ diff --git a/docs/all_linters.md b/docs/all_linters.md index 2ff8f190390..ec35e843912 100644 --- a/docs/all_linters.md +++ b/docs/all_linters.md @@ -18,7 +18,7 @@ | [**checkstyle**](https://github.com/checkstyle/checkstyle){target=_blank} | 10.7.0 | [LGPL-2.1](licenses/checkstyle.md) | [![GitHub stars](https://img.shields.io/github/stars/checkstyle/checkstyle?cacheSeconds=3600)](https://github.com/checkstyle/checkstyle){target=_blank} | [JAVA](descriptors/java_checkstyle.md) | :heart: | [MegaLinter reference](https://checkstyle.sourceforge.io/index.html#Related_Tools_Active_Tools){target=_blank} | | [**chktex**](https://www.nongnu.org/chktex){target=_blank} | 1.7.6 | | | [LATEX](descriptors/latex_chktex.md) | :white_circle: | [Web Site](https://www.nongnu.org/chktex){target=_blank} | | [**clippy**](https://github.com/rust-lang/rust-clippy){target=_blank} | 0.1.67 | [Other](licenses/clippy.md) | [![GitHub stars](https://img.shields.io/github/stars/rust-lang/rust-clippy?cacheSeconds=3600)](https://github.com/rust-lang/rust-clippy){target=_blank} | [RUST](descriptors/rust_clippy.md) | :white_circle: | [Repository](https://github.com/rust-lang/rust-clippy){target=_blank} | -| [**clj-kondo**](https://github.com/borkdude/clj-kondo){target=_blank} | 2023.01.20 | [EPL-1.0](licenses/clj-kondo.md) | [![GitHub stars](https://img.shields.io/github/stars/borkdude/clj-kondo?cacheSeconds=3600)](https://github.com/borkdude/clj-kondo){target=_blank} | [CLOJURE](descriptors/clojure_clj_kondo.md) | :heart: | [MegaLinter reference](https://github.com/borkdude/clj-kondo/blob/master/doc/ci-integration.md#github){target=_blank} | +| [**clj-kondo**](https://github.com/borkdude/clj-kondo){target=_blank} | 2023.02.17 | [EPL-1.0](licenses/clj-kondo.md) | [![GitHub stars](https://img.shields.io/github/stars/borkdude/clj-kondo?cacheSeconds=3600)](https://github.com/borkdude/clj-kondo){target=_blank} | [CLOJURE](descriptors/clojure_clj_kondo.md) | :heart: | [MegaLinter reference](https://github.com/borkdude/clj-kondo/blob/master/doc/ci-integration.md#github){target=_blank} | | [**coffeelint**](https://github.com/clutchski/coffeelint){target=_blank} | 5.2.11 | [Other](licenses/coffeelint.md) | [![GitHub stars](https://img.shields.io/github/stars/clutchski/coffeelint?cacheSeconds=3600)](https://github.com/clutchski/coffeelint){target=_blank} | [COFFEE](descriptors/coffee_coffeelint.md) | :white_circle: | [Repository](https://github.com/clutchski/coffeelint){target=_blank} | | [**cpplint**](https://github.com/cpplint/cpplint){target=_blank} | 1.6.1 | [Other](licenses/cpplint.md) | [![GitHub stars](https://img.shields.io/github/stars/cpplint/cpplint?cacheSeconds=3600)](https://github.com/cpplint/cpplint){target=_blank} | [C](descriptors/c_cpplint.md)
[CPP](descriptors/cpp_cpplint.md) | :white_circle: | [Repository](https://github.com/cpplint/cpplint){target=_blank} | | [**csharpier**](https://github.com/belav/csharpier){target=_blank} | 0.22.1 | [MIT](licenses/csharpier.md) | [![GitHub stars](https://img.shields.io/github/stars/belav/csharpier?cacheSeconds=3600)](https://github.com/belav/csharpier){target=_blank} | [CSHARP](descriptors/csharp_csharpier.md) | :white_circle: | [Repository](https://github.com/belav/csharpier){target=_blank} | diff --git a/docs/descriptors/clojure_clj_kondo.md b/docs/descriptors/clojure_clj_kondo.md index 416feb4e0c2..66be1e6c3b5 100644 --- a/docs/descriptors/clojure_clj_kondo.md +++ b/docs/descriptors/clojure_clj_kondo.md @@ -15,7 +15,7 @@ description: How to use clj-kondo (configure, ignore files, ignore errors, help ## clj-kondo documentation -- Version in MegaLinter: **2023.01.20** +- Version in MegaLinter: **2023.02.17** - Visit [Official Web Site](https://github.com/borkdude/clj-kondo#readme){target=_blank} - See [How to configure clj-kondo rules](https://github.com/borkdude/clj-kondo/blob/master/doc/config.md#configuration){target=_blank} - If custom `.clj-kondo/config.edn` config file is not found, [.clj-kondo/config.edn](https://github.com/oxsecurity/megalinter/tree/main/TEMPLATES/.clj-kondo/config.edn){target=_blank} will be used @@ -91,7 +91,7 @@ clj-kondo --lint --config .clj-kondo/config.edn myfile.clj ### Help content ```shell -clj-kondo v2023.01.20 +clj-kondo v2023.02.17 Options: @@ -114,7 +114,7 @@ Options: nearest `.clj-kondo` directory in the current and parent directories. --config : config may be a file or an EDN expression. See - https://cljdoc.org/d/clj-kondo/clj-kondo/2023.01.20/doc/configuration + https://cljdoc.org/d/clj-kondo/clj-kondo/2023.02.17/doc/configuration --config-dir : use this config directory instead of auto-detected .clj-kondo dir. @@ -138,7 +138,9 @@ Options: - Dockerfile commands : ```dockerfile -FROM cljkondo/clj-kondo:2023.01.20-alpine as clj-kondo -COPY --from=clj-kondo /bin/clj-kondo /usr/bin/ +RUN curl -sLO https://raw.githubusercontent.com/clj-kondo/clj-kondo/master/script/install-clj-kondo \ + && chmod +x install-clj-kondo \ + && ./install-clj-kondo + ``` diff --git a/flavors/cupcake/Dockerfile b/flavors/cupcake/Dockerfile index 747a3da9d0b..6af7d1818bc 100644 --- a/flavors/cupcake/Dockerfile +++ b/flavors/cupcake/Dockerfile @@ -12,7 +12,6 @@ ############################################################################################# #FROM__START FROM mvdan/shfmt:latest-alpine as shfmt -FROM cljkondo/clj-kondo:2023.01.20-alpine as clj-kondo FROM hadolint/hadolint:v2.12.0-alpine as hadolint FROM mstruebing/editorconfig-checker:2.7.0 as editorconfig-checker FROM zricethezav/gitleaks:v8.15.3 as gitleaks @@ -243,7 +242,6 @@ ENV PATH="/root/.cargo/bin:${PATH}" #COPY__START COPY --from=shfmt /bin/shfmt /usr/bin/ -COPY --from=clj-kondo /bin/clj-kondo /usr/bin/ COPY --from=hadolint /bin/hadolint /usr/bin/hadolint COPY --from=editorconfig-checker /usr/bin/ec /usr/bin/editorconfig-checker COPY --from=gitleaks /usr/bin/gitleaks /usr/bin/ @@ -301,7 +299,9 @@ RUN go install github.com/rhysd/actionlint/cmd/actionlint@latest && go clean --c # Managed with COPY --from=shfmt /bin/shfmt /usr/bin/ # clj-kondo installation -# Managed with COPY --from=clj-kondo /bin/clj-kondo /usr/bin/ + && curl -sLO https://raw.githubusercontent.com/clj-kondo/clj-kondo/master/script/install-clj-kondo \ + && chmod +x install-clj-kondo \ + && ./install-clj-kondo \ # hadolint installation # Managed with COPY --from=hadolint /bin/hadolint /usr/bin/hadolint diff --git a/flavors/java/Dockerfile b/flavors/java/Dockerfile index 2394cf305c1..9843ac95457 100644 --- a/flavors/java/Dockerfile +++ b/flavors/java/Dockerfile @@ -12,7 +12,6 @@ ############################################################################################# #FROM__START FROM mvdan/shfmt:latest-alpine as shfmt -FROM cljkondo/clj-kondo:2023.01.20-alpine as clj-kondo FROM hadolint/hadolint:v2.12.0-alpine as hadolint FROM mstruebing/editorconfig-checker:2.7.0 as editorconfig-checker FROM yoheimuta/protolint:latest as protolint @@ -193,7 +192,6 @@ ENV PATH="/root/.cargo/bin:${PATH}" #COPY__START COPY --from=shfmt /bin/shfmt /usr/bin/ -COPY --from=clj-kondo /bin/clj-kondo /usr/bin/ COPY --from=hadolint /bin/hadolint /usr/bin/hadolint COPY --from=editorconfig-checker /usr/bin/ec /usr/bin/editorconfig-checker COPY --from=protolint /usr/local/bin/protolint /usr/bin/ @@ -227,7 +225,9 @@ RUN go install github.com/rhysd/actionlint/cmd/actionlint@latest && go clean --c # Managed with COPY --from=shfmt /bin/shfmt /usr/bin/ # clj-kondo installation -# Managed with COPY --from=clj-kondo /bin/clj-kondo /usr/bin/ + && curl -sLO https://raw.githubusercontent.com/clj-kondo/clj-kondo/master/script/install-clj-kondo \ + && chmod +x install-clj-kondo \ + && ./install-clj-kondo \ # hadolint installation # Managed with COPY --from=hadolint /bin/hadolint /usr/bin/hadolint diff --git a/linters/clojure_clj_kondo/Dockerfile b/linters/clojure_clj_kondo/Dockerfile index 5e48e5d9c9e..69095636e00 100644 --- a/linters/clojure_clj_kondo/Dockerfile +++ b/linters/clojure_clj_kondo/Dockerfile @@ -10,7 +10,7 @@ ## @generated by .automation/build.py using descriptor files, please do not update manually ## ############################################################################################# #FROM__START -FROM cljkondo/clj-kondo:2023.01.20-alpine as clj-kondo + #FROM__END ################## @@ -114,7 +114,7 @@ ENV PATH="/node-deps/node_modules/.bin:${PATH}" \ ############################################################################################# #COPY__START -COPY --from=clj-kondo /bin/clj-kondo /usr/bin/ + #COPY__END ############################################################################################# @@ -122,7 +122,10 @@ COPY --from=clj-kondo /bin/clj-kondo /usr/bin/ ############################################################################################# #OTHER__START # clj-kondo installation -# Managed with COPY --from=clj-kondo /bin/clj-kondo /usr/bin/ +RUN curl -sLO https://raw.githubusercontent.com/clj-kondo/clj-kondo/master/script/install-clj-kondo \ + && chmod +x install-clj-kondo \ + && ./install-clj-kondo + #OTHER__END diff --git a/megalinter/descriptors/clojure.megalinter-descriptor.yml b/megalinter/descriptors/clojure.megalinter-descriptor.yml index f64f2171be8..04c78395c38 100644 --- a/megalinter/descriptors/clojure.megalinter-descriptor.yml +++ b/megalinter/descriptors/clojure.megalinter-descriptor.yml @@ -27,8 +27,10 @@ linters: - "clj-kondo --lint --config .clj-kondo/config.edn myfile.clj" install: dockerfile: - - FROM cljkondo/clj-kondo:2023.01.20-alpine as clj-kondo - - COPY --from=clj-kondo /bin/clj-kondo /usr/bin/ + - | + RUN curl -sLO https://raw.githubusercontent.com/clj-kondo/clj-kondo/master/script/install-clj-kondo \ + && chmod +x install-clj-kondo \ + && ./install-clj-kondo ide: atom: - name: linter-kondo