Skip to content

Instantly share code, notes, and snippets.

@HalisCz
Last active April 11, 2019 14:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save HalisCz/64005e193f0f82bcd6fc7221d9a0de28 to your computer and use it in GitHub Desktop.
Save HalisCz/64005e193f0f82bcd6fc7221d9a0de28 to your computer and use it in GitHub Desktop.
lint-shell
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