File tree 1 file changed +29
-0
lines changed
1 file changed +29
-0
lines changed Original file line number Diff line number Diff line change @@ -33,6 +33,13 @@ linters:
33
33
cli_help_arg_name : " --help"
34
34
examples :
35
35
- " bash-exec myfile.sh"
36
+ supported_platforms :
37
+ platform :
38
+ - linux/amd64
39
+ - linux/arm64
40
+ - linux/arm/v7
41
+ - linux/386
42
+ - linux/ppc64le
36
43
install :
37
44
dockerfile :
38
45
- |
@@ -69,6 +76,21 @@ linters:
69
76
cli_lint_errors_regex : " In .* line .*:.*\\ n"
70
77
examples :
71
78
- " shellcheck --color=auto --external-sources myfile.sh"
79
+ supported_platforms :
80
+ platform :
81
+ - linux/amd64
82
+ - linux/arm64
83
+ install_override :
84
+ - platform : linux/arm64
85
+ install :
86
+ dockerfile :
87
+ - |
88
+ RUN ML_THIRD_PARTY_DIR="/third-party/shellcheck" \
89
+ && mkdir -p ${ML_THIRD_PARTY_DIR} \
90
+ && wget -qO- "https://github.com/koalaman/shellcheck/releases/download/stable/shellcheck-stable.linux.aarch64.tar.xz" | tar -xJv --directory ${ML_THIRD_PARTY_DIR} \
91
+ && mv "${ML_THIRD_PARTY_DIR}/shellcheck-stable/shellcheck" /usr/bin/ \
92
+ && find ${ML_THIRD_PARTY_DIR} -type f -not -name 'LICENSE*' -delete -o -type d -empty -delete \
93
+ && shellcheck --version
72
94
install :
73
95
cargo :
74
96
- shellcheck-sarif
@@ -122,6 +144,13 @@ linters:
122
144
examples :
123
145
- " shfmt -d myfile.sh"
124
146
- " shfmt -w myfile.sh" # Fix
147
+ supported_platforms :
148
+ platform :
149
+ - linux/amd64
150
+ - linux/arm64
151
+ - linux/arm/v7
152
+ - linux/386
153
+ - linux/ppc64le
125
154
install :
126
155
dockerfile :
127
156
- FROM mvdan/shfmt:latest-alpine as shfmt
You can’t perform that action at this time.
0 commit comments