mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 12:54:11 +08:00
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
11 lines
294 B
Bash
Executable File
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
|