Skip to content

Commit

Permalink
add kotlin-detekt linter (#3408)
Browse files Browse the repository at this point in the history
* add kotlin-detekt linter

* Update megalinter/descriptors/kotlin.megalinter-descriptor.yml

Co-authored-by: Edouard Choinière <[email protected]>

* Update kotlin.megalinter-descriptor.yml

* [build-command] Update generated files

* new build

* fix syntax and new build

* Change installation instructions
Add default html report
output disable can_output_sarif. (Detekt doesn't support)

* Remove html reporter

---------

Co-authored-by: Edouard Choinière <[email protected]>
Co-authored-by: Nicolas Vuillamy <[email protected]>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
4 people authored Mar 18, 2024
1 parent 9fb8777 commit b2dc546
Show file tree
Hide file tree
Showing 41 changed files with 435 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .automation/generated/linter-links-previews.json
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,11 @@
"image": "https://repository-images.githubusercontent.com/35726310/78196080-8aee-11ea-8736-5d358571e7db",
"title": "dart-lang/sdk"
},
"detekt": {
"description": "The official website of detekt - A static analyzer for Kotlin",
"image": null,
"title": "Hello from detekt | detekt"
},
"devskim": {
"description": "DevSkim is a set of IDE plugins and rules that provide security &quot;linting&quot; capabilities. - GitHub - microsoft/DevSkim: DevSkim is a set of IDE plugins and rules that provide security &quot...",
"image": "https://opengraph.githubassets.com/e833e13fb1284378f44a593a44685cf5c8f5eba2eb392202a3cced2c4e044fea/microsoft/DevSkim",
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/deploy-BETA-linters.yml
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ jobs:
"json_npm_package_json_lint",
"jsx_eslint",
"kotlin_ktlint",
"kotlin_detekt",
"kubernetes_kubeconform",
"kubernetes_helm",
"kubernetes_kubescape",
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/deploy-DEV-linters.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ jobs:
"json_npm_package_json_lint",
"jsx_eslint",
"kotlin_ktlint",
"kotlin_detekt",
"kubernetes_kubeconform",
"kubernetes_helm",
"kubernetes_kubescape",
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/deploy-RELEASE-linters.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ jobs:
"json_npm_package_json_lint",
"jsx_eslint",
"kotlin_ktlint",
"kotlin_detekt",
"kubernetes_kubeconform",
"kubernetes_helm",
"kubernetes_kubescape",
Expand Down
8 changes: 8 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -586,6 +586,14 @@ RUN wget --quiet https://github.com/pmd/pmd/releases/download/pmd_releases%2F${P
chmod a+x ktlint && \
mv "ktlint" /usr/bin/ \

# detekt installation
&& curl --retry 5 --retry-delay 5 -sSLO https://github.com/detekt/detekt/releases/download/v1.23.5/detekt-cli-1.23.5.zip && \
unzip detekt-cli-1.23.5.zip && \
chmod a+x detekt-cli-1.23.5/bin/* && \
chmod a+x detekt-cli-1.23.5/lib/* && \
mv -n detekt-cli-1.23.5/bin/* usr/bin && \
mv -n detekt-cli-1.23.5/lib/* usr/lib \

# kubeconform installation
# Managed with COPY --link --from=kubeconform /kubeconform /usr/bin/

Expand Down
1 change: 1 addition & 0 deletions docs/standalone-linters.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
| JSON_NPM_PACKAGE_JSON_LINT | oxsecurity/megalinter-only-json_npm_package_json_lint:beta | ![Docker Image Size (tag)](https://img.shields.io/docker/image-size/oxsecurity/megalinter-only-json_npm_package_json_lint/beta) |
| JSX_ESLINT | oxsecurity/megalinter-only-jsx_eslint:beta | ![Docker Image Size (tag)](https://img.shields.io/docker/image-size/oxsecurity/megalinter-only-jsx_eslint/beta) |
| KOTLIN_KTLINT | oxsecurity/megalinter-only-kotlin_ktlint:beta | ![Docker Image Size (tag)](https://img.shields.io/docker/image-size/oxsecurity/megalinter-only-kotlin_ktlint/beta) |
| KOTLIN_DETEKT | oxsecurity/megalinter-only-kotlin_detekt:beta | ![Docker Image Size (tag)](https://img.shields.io/docker/image-size/oxsecurity/megalinter-only-kotlin_detekt/beta) |
| KUBERNETES_KUBECONFORM | oxsecurity/megalinter-only-kubernetes_kubeconform:beta | ![Docker Image Size (tag)](https://img.shields.io/docker/image-size/oxsecurity/megalinter-only-kubernetes_kubeconform/beta) |
| KUBERNETES_HELM | oxsecurity/megalinter-only-kubernetes_helm:beta | ![Docker Image Size (tag)](https://img.shields.io/docker/image-size/oxsecurity/megalinter-only-kubernetes_helm/beta) |
| KUBERNETES_KUBESCAPE | oxsecurity/megalinter-only-kubernetes_kubescape:beta | ![Docker Image Size (tag)](https://img.shields.io/docker/image-size/oxsecurity/megalinter-only-kubernetes_kubescape/beta) |
Expand Down
8 changes: 8 additions & 0 deletions flavors/c_cpp/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,14 @@ RUN printf '#!/bin/bash \n\nif [[ -x "$1" ]]; then exit 0; else echo "Error: Fil
chmod a+x ktlint && \
mv "ktlint" /usr/bin/ \

# detekt installation
&& curl --retry 5 --retry-delay 5 -sSLO https://github.com/detekt/detekt/releases/download/v1.23.5/detekt-cli-1.23.5.zip && \
unzip detekt-cli-1.23.5.zip && \
chmod a+x detekt-cli-1.23.5/bin/* && \
chmod a+x detekt-cli-1.23.5/lib/* && \
mv -n detekt-cli-1.23.5/bin/* usr/bin && \
mv -n detekt-cli-1.23.5/lib/* usr/lib \

# kubeconform installation
# Managed with COPY --link --from=kubeconform /kubeconform /usr/bin/

Expand Down
1 change: 1 addition & 0 deletions flavors/c_cpp/flavor.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
"JSON_V8R",
"JSON_PRETTIER",
"KOTLIN_KTLINT",
"KOTLIN_DETEKT",
"KUBERNETES_KUBECONFORM",
"KUBERNETES_HELM",
"KUBERNETES_KUBESCAPE",
Expand Down
8 changes: 8 additions & 0 deletions flavors/cupcake/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -435,6 +435,14 @@ RUN wget --quiet https://github.com/pmd/pmd/releases/download/pmd_releases%2F${P
chmod a+x ktlint && \
mv "ktlint" /usr/bin/ \

# detekt installation
&& curl --retry 5 --retry-delay 5 -sSLO https://github.com/detekt/detekt/releases/download/v1.23.5/detekt-cli-1.23.5.zip && \
unzip detekt-cli-1.23.5.zip && \
chmod a+x detekt-cli-1.23.5/bin/* && \
chmod a+x detekt-cli-1.23.5/lib/* && \
mv -n detekt-cli-1.23.5/bin/* usr/bin && \
mv -n detekt-cli-1.23.5/lib/* usr/lib \

# kubeconform installation
# Managed with COPY --link --from=kubeconform /kubeconform /usr/bin/

Expand Down
1 change: 1 addition & 0 deletions flavors/cupcake/flavor.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
"JSON_NPM_PACKAGE_JSON_LINT",
"JSX_ESLINT",
"KOTLIN_KTLINT",
"KOTLIN_DETEKT",
"KUBERNETES_KUBECONFORM",
"KUBERNETES_HELM",
"KUBERNETES_KUBESCAPE",
Expand Down
8 changes: 8 additions & 0 deletions flavors/documentation/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,14 @@ RUN printf '#!/bin/bash \n\nif [[ -x "$1" ]]; then exit 0; else echo "Error: Fil
chmod a+x ktlint && \
mv "ktlint" /usr/bin/ \

# detekt installation
&& curl --retry 5 --retry-delay 5 -sSLO https://github.com/detekt/detekt/releases/download/v1.23.5/detekt-cli-1.23.5.zip && \
unzip detekt-cli-1.23.5.zip && \
chmod a+x detekt-cli-1.23.5/bin/* && \
chmod a+x detekt-cli-1.23.5/lib/* && \
mv -n detekt-cli-1.23.5/bin/* usr/bin && \
mv -n detekt-cli-1.23.5/lib/* usr/lib \

# kubeconform installation
# Managed with COPY --link --from=kubeconform /kubeconform /usr/bin/

Expand Down
1 change: 1 addition & 0 deletions flavors/documentation/flavor.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
"JSON_V8R",
"JSON_PRETTIER",
"KOTLIN_KTLINT",
"KOTLIN_DETEKT",
"KUBERNETES_KUBECONFORM",
"KUBERNETES_HELM",
"KUBERNETES_KUBESCAPE",
Expand Down
8 changes: 8 additions & 0 deletions flavors/dotnet/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -325,6 +325,14 @@ RUN curl --retry 5 --retry-delay 5 -sLO "${ARM_TTK_URI}" \
chmod a+x ktlint && \
mv "ktlint" /usr/bin/ \

# detekt installation
&& curl --retry 5 --retry-delay 5 -sSLO https://github.com/detekt/detekt/releases/download/v1.23.5/detekt-cli-1.23.5.zip && \
unzip detekt-cli-1.23.5.zip && \
chmod a+x detekt-cli-1.23.5/bin/* && \
chmod a+x detekt-cli-1.23.5/lib/* && \
mv -n detekt-cli-1.23.5/bin/* usr/bin && \
mv -n detekt-cli-1.23.5/lib/* usr/lib \

# kubeconform installation
# Managed with COPY --link --from=kubeconform /kubeconform /usr/bin/

Expand Down
1 change: 1 addition & 0 deletions flavors/dotnet/flavor.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
"JSON_PRETTIER",
"JSON_NPM_PACKAGE_JSON_LINT",
"KOTLIN_KTLINT",
"KOTLIN_DETEKT",
"KUBERNETES_KUBECONFORM",
"KUBERNETES_HELM",
"KUBERNETES_KUBESCAPE",
Expand Down
8 changes: 8 additions & 0 deletions flavors/dotnetweb/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -345,6 +345,14 @@ RUN curl --retry 5 --retry-delay 5 -sLO "${ARM_TTK_URI}" \
chmod a+x ktlint && \
mv "ktlint" /usr/bin/ \

# detekt installation
&& curl --retry 5 --retry-delay 5 -sSLO https://github.com/detekt/detekt/releases/download/v1.23.5/detekt-cli-1.23.5.zip && \
unzip detekt-cli-1.23.5.zip && \
chmod a+x detekt-cli-1.23.5/bin/* && \
chmod a+x detekt-cli-1.23.5/lib/* && \
mv -n detekt-cli-1.23.5/bin/* usr/bin && \
mv -n detekt-cli-1.23.5/lib/* usr/lib \

# kubeconform installation
# Managed with COPY --link --from=kubeconform /kubeconform /usr/bin/

Expand Down
1 change: 1 addition & 0 deletions flavors/dotnetweb/flavor.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
"JSON_NPM_PACKAGE_JSON_LINT",
"JSX_ESLINT",
"KOTLIN_KTLINT",
"KOTLIN_DETEKT",
"KUBERNETES_KUBECONFORM",
"KUBERNETES_HELM",
"KUBERNETES_KUBESCAPE",
Expand Down
8 changes: 8 additions & 0 deletions flavors/go/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,14 @@ RUN printf '#!/bin/bash \n\nif [[ -x "$1" ]]; then exit 0; else echo "Error: Fil
chmod a+x ktlint && \
mv "ktlint" /usr/bin/ \

# detekt installation
&& curl --retry 5 --retry-delay 5 -sSLO https://github.com/detekt/detekt/releases/download/v1.23.5/detekt-cli-1.23.5.zip && \
unzip detekt-cli-1.23.5.zip && \
chmod a+x detekt-cli-1.23.5/bin/* && \
chmod a+x detekt-cli-1.23.5/lib/* && \
mv -n detekt-cli-1.23.5/bin/* usr/bin && \
mv -n detekt-cli-1.23.5/lib/* usr/lib \

# kubeconform installation
# Managed with COPY --link --from=kubeconform /kubeconform /usr/bin/

Expand Down
1 change: 1 addition & 0 deletions flavors/go/flavor.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
"JSON_V8R",
"JSON_PRETTIER",
"KOTLIN_KTLINT",
"KOTLIN_DETEKT",
"KUBERNETES_KUBECONFORM",
"KUBERNETES_HELM",
"KUBERNETES_KUBESCAPE",
Expand Down
8 changes: 8 additions & 0 deletions flavors/java/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -343,6 +343,14 @@ RUN wget --quiet https://github.com/pmd/pmd/releases/download/pmd_releases%2F${P
chmod a+x ktlint && \
mv "ktlint" /usr/bin/ \

# detekt installation
&& curl --retry 5 --retry-delay 5 -sSLO https://github.com/detekt/detekt/releases/download/v1.23.5/detekt-cli-1.23.5.zip && \
unzip detekt-cli-1.23.5.zip && \
chmod a+x detekt-cli-1.23.5/bin/* && \
chmod a+x detekt-cli-1.23.5/lib/* && \
mv -n detekt-cli-1.23.5/bin/* usr/bin && \
mv -n detekt-cli-1.23.5/lib/* usr/lib \

# kubeconform installation
# Managed with COPY --link --from=kubeconform /kubeconform /usr/bin/

Expand Down
1 change: 1 addition & 0 deletions flavors/java/flavor.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
"JSON_V8R",
"JSON_PRETTIER",
"KOTLIN_KTLINT",
"KOTLIN_DETEKT",
"KUBERNETES_KUBECONFORM",
"KUBERNETES_HELM",
"KUBERNETES_KUBESCAPE",
Expand Down
8 changes: 8 additions & 0 deletions flavors/javascript/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,14 @@ RUN printf '#!/bin/bash \n\nif [[ -x "$1" ]]; then exit 0; else echo "Error: Fil
chmod a+x ktlint && \
mv "ktlint" /usr/bin/ \

# detekt installation
&& curl --retry 5 --retry-delay 5 -sSLO https://github.com/detekt/detekt/releases/download/v1.23.5/detekt-cli-1.23.5.zip && \
unzip detekt-cli-1.23.5.zip && \
chmod a+x detekt-cli-1.23.5/bin/* && \
chmod a+x detekt-cli-1.23.5/lib/* && \
mv -n detekt-cli-1.23.5/bin/* usr/bin && \
mv -n detekt-cli-1.23.5/lib/* usr/lib \

# kubeconform installation
# Managed with COPY --link --from=kubeconform /kubeconform /usr/bin/

Expand Down
1 change: 1 addition & 0 deletions flavors/javascript/flavor.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
"JSON_NPM_PACKAGE_JSON_LINT",
"JSX_ESLINT",
"KOTLIN_KTLINT",
"KOTLIN_DETEKT",
"KUBERNETES_KUBECONFORM",
"KUBERNETES_HELM",
"KUBERNETES_KUBESCAPE",
Expand Down
8 changes: 8 additions & 0 deletions flavors/php/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,14 @@ RUN printf '#!/bin/bash \n\nif [[ -x "$1" ]]; then exit 0; else echo "Error: Fil
chmod a+x ktlint && \
mv "ktlint" /usr/bin/ \

# detekt installation
&& curl --retry 5 --retry-delay 5 -sSLO https://github.com/detekt/detekt/releases/download/v1.23.5/detekt-cli-1.23.5.zip && \
unzip detekt-cli-1.23.5.zip && \
chmod a+x detekt-cli-1.23.5/bin/* && \
chmod a+x detekt-cli-1.23.5/lib/* && \
mv -n detekt-cli-1.23.5/bin/* usr/bin && \
mv -n detekt-cli-1.23.5/lib/* usr/lib \

# kubeconform installation
# Managed with COPY --link --from=kubeconform /kubeconform /usr/bin/

Expand Down
1 change: 1 addition & 0 deletions flavors/php/flavor.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
"JSON_V8R",
"JSON_PRETTIER",
"KOTLIN_KTLINT",
"KOTLIN_DETEKT",
"KUBERNETES_KUBECONFORM",
"KUBERNETES_HELM",
"KUBERNETES_KUBESCAPE",
Expand Down
8 changes: 8 additions & 0 deletions flavors/python/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,14 @@ RUN printf '#!/bin/bash \n\nif [[ -x "$1" ]]; then exit 0; else echo "Error: Fil
chmod a+x ktlint && \
mv "ktlint" /usr/bin/ \

# detekt installation
&& curl --retry 5 --retry-delay 5 -sSLO https://github.com/detekt/detekt/releases/download/v1.23.5/detekt-cli-1.23.5.zip && \
unzip detekt-cli-1.23.5.zip && \
chmod a+x detekt-cli-1.23.5/bin/* && \
chmod a+x detekt-cli-1.23.5/lib/* && \
mv -n detekt-cli-1.23.5/bin/* usr/bin && \
mv -n detekt-cli-1.23.5/lib/* usr/lib \

# kubeconform installation
# Managed with COPY --link --from=kubeconform /kubeconform /usr/bin/

Expand Down
1 change: 1 addition & 0 deletions flavors/python/flavor.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
"JSON_V8R",
"JSON_PRETTIER",
"KOTLIN_KTLINT",
"KOTLIN_DETEKT",
"KUBERNETES_KUBECONFORM",
"KUBERNETES_HELM",
"KUBERNETES_KUBESCAPE",
Expand Down
8 changes: 8 additions & 0 deletions flavors/ruby/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,14 @@ RUN printf '#!/bin/bash \n\nif [[ -x "$1" ]]; then exit 0; else echo "Error: Fil
chmod a+x ktlint && \
mv "ktlint" /usr/bin/ \

# detekt installation
&& curl --retry 5 --retry-delay 5 -sSLO https://github.com/detekt/detekt/releases/download/v1.23.5/detekt-cli-1.23.5.zip && \
unzip detekt-cli-1.23.5.zip && \
chmod a+x detekt-cli-1.23.5/bin/* && \
chmod a+x detekt-cli-1.23.5/lib/* && \
mv -n detekt-cli-1.23.5/bin/* usr/bin && \
mv -n detekt-cli-1.23.5/lib/* usr/lib \

# kubeconform installation
# Managed with COPY --link --from=kubeconform /kubeconform /usr/bin/

Expand Down
1 change: 1 addition & 0 deletions flavors/ruby/flavor.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
"JSON_V8R",
"JSON_PRETTIER",
"KOTLIN_KTLINT",
"KOTLIN_DETEKT",
"KUBERNETES_KUBECONFORM",
"KUBERNETES_HELM",
"KUBERNETES_KUBESCAPE",
Expand Down
8 changes: 8 additions & 0 deletions flavors/rust/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,14 @@ RUN printf '#!/bin/bash \n\nif [[ -x "$1" ]]; then exit 0; else echo "Error: Fil
chmod a+x ktlint && \
mv "ktlint" /usr/bin/ \

# detekt installation
&& curl --retry 5 --retry-delay 5 -sSLO https://github.com/detekt/detekt/releases/download/v1.23.5/detekt-cli-1.23.5.zip && \
unzip detekt-cli-1.23.5.zip && \
chmod a+x detekt-cli-1.23.5/bin/* && \
chmod a+x detekt-cli-1.23.5/lib/* && \
mv -n detekt-cli-1.23.5/bin/* usr/bin && \
mv -n detekt-cli-1.23.5/lib/* usr/lib \

# kubeconform installation
# Managed with COPY --link --from=kubeconform /kubeconform /usr/bin/

Expand Down
1 change: 1 addition & 0 deletions flavors/rust/flavor.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
"JSON_V8R",
"JSON_PRETTIER",
"KOTLIN_KTLINT",
"KOTLIN_DETEKT",
"KUBERNETES_KUBECONFORM",
"KUBERNETES_HELM",
"KUBERNETES_KUBESCAPE",
Expand Down
8 changes: 8 additions & 0 deletions flavors/salesforce/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,14 @@ RUN sf plugins install @salesforce/plugin-packaging \
chmod a+x ktlint && \
mv "ktlint" /usr/bin/ \

# detekt installation
&& curl --retry 5 --retry-delay 5 -sSLO https://github.com/detekt/detekt/releases/download/v1.23.5/detekt-cli-1.23.5.zip && \
unzip detekt-cli-1.23.5.zip && \
chmod a+x detekt-cli-1.23.5/bin/* && \
chmod a+x detekt-cli-1.23.5/lib/* && \
mv -n detekt-cli-1.23.5/bin/* usr/bin && \
mv -n detekt-cli-1.23.5/lib/* usr/lib \

# kubeconform installation
# Managed with COPY --link --from=kubeconform /kubeconform /usr/bin/

Expand Down
1 change: 1 addition & 0 deletions flavors/salesforce/flavor.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
"JSON_PRETTIER",
"JSON_NPM_PACKAGE_JSON_LINT",
"KOTLIN_KTLINT",
"KOTLIN_DETEKT",
"KUBERNETES_KUBECONFORM",
"KUBERNETES_HELM",
"KUBERNETES_KUBESCAPE",
Expand Down
8 changes: 8 additions & 0 deletions flavors/swift/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,14 @@ RUN printf '#!/bin/bash \n\nif [[ -x "$1" ]]; then exit 0; else echo "Error: Fil
chmod a+x ktlint && \
mv "ktlint" /usr/bin/ \

# detekt installation
&& curl --retry 5 --retry-delay 5 -sSLO https://github.com/detekt/detekt/releases/download/v1.23.5/detekt-cli-1.23.5.zip && \
unzip detekt-cli-1.23.5.zip && \
chmod a+x detekt-cli-1.23.5/bin/* && \
chmod a+x detekt-cli-1.23.5/lib/* && \
mv -n detekt-cli-1.23.5/bin/* usr/bin && \
mv -n detekt-cli-1.23.5/lib/* usr/lib \

# kubeconform installation
# Managed with COPY --link --from=kubeconform /kubeconform /usr/bin/

Expand Down
1 change: 1 addition & 0 deletions flavors/swift/flavor.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
"JSON_V8R",
"JSON_PRETTIER",
"KOTLIN_KTLINT",
"KOTLIN_DETEKT",
"KUBERNETES_KUBECONFORM",
"KUBERNETES_HELM",
"KUBERNETES_KUBESCAPE",
Expand Down
8 changes: 8 additions & 0 deletions flavors/terraform/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,14 @@ RUN printf '#!/bin/bash \n\nif [[ -x "$1" ]]; then exit 0; else echo "Error: Fil
chmod a+x ktlint && \
mv "ktlint" /usr/bin/ \

# detekt installation
&& curl --retry 5 --retry-delay 5 -sSLO https://github.com/detekt/detekt/releases/download/v1.23.5/detekt-cli-1.23.5.zip && \
unzip detekt-cli-1.23.5.zip && \
chmod a+x detekt-cli-1.23.5/bin/* && \
chmod a+x detekt-cli-1.23.5/lib/* && \
mv -n detekt-cli-1.23.5/bin/* usr/bin && \
mv -n detekt-cli-1.23.5/lib/* usr/lib \

# kubeconform installation
# Managed with COPY --link --from=kubeconform /kubeconform /usr/bin/

Expand Down
Loading

0 comments on commit b2dc546

Please sign in to comment.