Last active
April 11, 2019 14:44
-
-
Save HalisCz/64005e193f0f82bcd6fc7221d9a0de28 to your computer and use it in GitHub Desktop.
lint-shell
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
variables: | |
SHELLCHECK_SEVERITY: style | |
lint-shell: | |
tags: [kubernetes] | |
stage: prepare | |
image: koalaman/shellcheck-alpine | |
script: | |
# check with hard fail and customizable severity level | |
- find ./ -name '*.sh' -exec shellcheck --check-sourced --color=always --severity=${SHELLCHECK_SEVERITY} {} + | |
# non-failing check with default severity, just to include output | |
- find ./ -name '*.sh' -exec shellcheck --check-sourced --color=always --severity=style {} + || true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment