Files
pytorch/.jenkins/run-shellcheck.sh
Karl Ostmo 00148825fc Run shellcheck on Jenkins scripts (#18874)
Summary:
closes #18873

Doesn't fail the build on warnings yet.
Also fix most severe shellcheck warnings
Limited to `.jenkins/pytorch/` at this time
Pull Request resolved: https://github.com/pytorch/pytorch/pull/18874

Differential Revision: D14936165

Pulled By: kostmo

fbshipit-source-id: 1ee335695e54fe6c387ef0f6606ea7011dad0fd4
2019-04-15 12:48:52 -07:00

11 lines
294 B
Bash
Executable File

#!/bin/bash -xe
# One may want to invoke this script locally as follows:
#
# .jenkins/run-shellcheck.sh --color=always | less -R
EXCLUSIONS=SC2086,SC1091,SC2155,SC1090,SC2164,SC1003
find .jenkins/pytorch -name *.sh | xargs shellcheck --exclude=$EXCLUSIONS --external-sources "$@" || true