ShellCheckDocker image for CI that automatically finds scripts to check.
docker run --rm -tv "$(pwd):/source:ro" inviz/shellcheck.PHONY: shellcheck
shellcheck:
docker run --rm -tv "$(CURDIR):/source:ro" inviz/shellchecklint-shellcheck:
stage: lintimage:
name: inviz/shellcheckentrypoint: ["sh", "-c"]script:
- shellcheck-cilint-shellcheck:
stage: lintimage:
name: inviz/shellcheckentrypoint: ["sh", "-c"]script:
- shellcheck-ci --junit > shellcheck.xmlartifacts:
when: alwayspaths:
- shellcheck.xmlreports:
junit: shellcheck.xmlCopyright © 2019–2020 Arthur Khashaev. See license for details.