Skip to content

Commit

Permalink
Add supported_platforms to bash descriptor
Browse files Browse the repository at this point in the history
Relates to #1553
  • Loading branch information
echoix authored and bdovaz committed Mar 26, 2023
1 parent 41f3b89 commit 021112b
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions megalinter/descriptors/bash.megalinter-descriptor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,13 @@ linters:
cli_help_arg_name: "--help"
examples:
- "bash-exec myfile.sh"
supported_platforms:
platform:
- linux/amd64
- linux/arm64
- linux/arm/v7
- linux/386
- linux/ppc64le
install:
dockerfile:
- |
Expand Down Expand Up @@ -69,6 +76,21 @@ linters:
cli_lint_errors_regex: "In .* line .*:.*\\n"
examples:
- "shellcheck --color=auto --external-sources myfile.sh"
supported_platforms:
platform:
- linux/amd64
- linux/arm64
install_override:
- platform: linux/arm64
install:
dockerfile:
- |
RUN ML_THIRD_PARTY_DIR="/third-party/shellcheck" \
&& mkdir -p ${ML_THIRD_PARTY_DIR} \
&& wget -qO- "https://github.com/koalaman/shellcheck/releases/download/stable/shellcheck-stable.linux.aarch64.tar.xz" | tar -xJv --directory ${ML_THIRD_PARTY_DIR} \
&& mv "${ML_THIRD_PARTY_DIR}/shellcheck-stable/shellcheck" /usr/bin/ \
&& find ${ML_THIRD_PARTY_DIR} -type f -not -name 'LICENSE*' -delete -o -type d -empty -delete \
&& shellcheck --version
install:
cargo:
- shellcheck-sarif
Expand Down Expand Up @@ -122,6 +144,13 @@ linters:
examples:
- "shfmt -d myfile.sh"
- "shfmt -w myfile.sh" # Fix
supported_platforms:
platform:
- linux/amd64
- linux/arm64
- linux/arm/v7
- linux/386
- linux/ppc64le
install:
dockerfile:
- FROM mvdan/shfmt:latest-alpine as shfmt
Expand Down

0 comments on commit 021112b

Please sign in to comment.