mirror of
https://github.com/ViViDboarder/vim-settings.git
synced 2024-12-23 00:47:34 +00:00
Add terraform linting (tflint and tfsec)
Also minor updates to all github release installers
This commit is contained in:
parent
3d6071d222
commit
d20e4a2645
@ -91,8 +91,20 @@ function install_linters() {
|
|||||||
|
|
||||||
# Docker
|
# Docker
|
||||||
maybe_run release-gitter --git-url "https://github.com/hadolint/hadolint" \
|
maybe_run release-gitter --git-url "https://github.com/hadolint/hadolint" \
|
||||||
-c '"mv ~/bin/hadolint-* ~/bin/hadolint && chmod +x ~/bin/hadolint"' \
|
--exec "'mv ~/bin/{} ~/bin/hadolint && chmod +x ~/bin/hadolint'" \
|
||||||
"hadolint-{system}-x86_64" ~/bin
|
"hadolint-{system}-{arch}" ~/bin
|
||||||
|
|
||||||
|
# Terraform
|
||||||
|
maybe_run release-gitter --git-url "https://github.com/aquasecurity/tfsec" \
|
||||||
|
--map-arch arm64=aarch64 --map-arch x86_64=amd64 \
|
||||||
|
--map-system Linux=linux --map-system Darwin=darwin \
|
||||||
|
--exec "'mv ~/bin/{} ~/bin/tfsec && chmod +x ~/bin/tfsec'" \
|
||||||
|
"tfsec-{system}-{arch}" ~/bin
|
||||||
|
maybe_run release-gitter --git-url "https://github.com/terraform-linters/tflint" \
|
||||||
|
--map-arch x86_64=amd64 \
|
||||||
|
--map-system Linux=linux --map-system Darwin=darwin \
|
||||||
|
--extract-all --exec "'chmod +x ~/bin/tflint'" \
|
||||||
|
"tflint_{system}_{arch}.zip" ~/bin
|
||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
}
|
}
|
||||||
@ -113,9 +125,10 @@ function install_fixers() {
|
|||||||
|
|
||||||
# Lua
|
# Lua
|
||||||
if ! release-gitter --git-url "https://github.com/JohnnyMorganz/StyLua" \
|
if ! release-gitter --git-url "https://github.com/JohnnyMorganz/StyLua" \
|
||||||
--map-arch amd64=aarch64 \
|
--map-arch arm64=aarch64 \
|
||||||
--map-system Windows=windows --map-system Linux=linux --map-system Darwin=macos \
|
--map-system Windows=windows --map-system Linux=linux --map-system Darwin=macos \
|
||||||
-x -c "chmod +x ~/bin/stylua" "stylua-{system}-{arch}.zip" ~/bin ; then
|
--extract-all --exec "chmod +x ~/bin/stylua" \
|
||||||
|
"stylua-{system}-{arch}.zip" ~/bin ; then
|
||||||
maybe_run cargo install stylua
|
maybe_run cargo install stylua
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user