Skip to content

Instantly share code, notes, and snippets.

@HalisCz HalisCz/lint-shell.yml
Last active Apr 11, 2019

Embed
What would you like to do?
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
You can’t perform that action at this time.