58972ae953051fce18d780cbbaedba1ba9f8c0e3,build-support/bin/shellcheck.py,,run_shellcheck,#,24
Before Change
def run_shellcheck() -> None:
targets = glob("./build-support/bin/**/*.sh", recursive=True) + [
"./pants",
"./pants2",
"./build-support/common.sh",
"./build-support/pants_intellij.sh",
"./build-support/pants_venv",
"./build-support/virtualenv",
"./build-support/githooks/pre-commit",
"./build-support/githooks/prepare-commit-msg",
"./build-support/python/clean.sh",
]
command = ["shellcheck", "--shell=bash", "--external-sources"] + targets
try:
subprocess.run(command, check=True)
except subprocess.CalledProcessError:
After Change
"./build-support/githooks/pre-commit",
"./build-support/githooks/prepare-commit-msg",
}
targets -= set(glob("./build-support/bin/native/src/**/*.sh", recursive=True))
targets -= set(glob("./build-support/virtualenv.dist/**/*.sh", recursive=True))
command = ["shellcheck", "--shell=bash", "--external-sources"] + sorted(targets)
try:
subprocess.run(command, check=True)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
Project Name: pantsbuild/pants
Commit Name: 58972ae953051fce18d780cbbaedba1ba9f8c0e3
Time: 2019-05-15
Author: ericarellano@me.com
File Name: build-support/bin/shellcheck.py
Class Name:
Method Name: run_shellcheck
Project Name: GoogleCloudPlatform/ml-on-gcp
Commit Name: c06752e6958a1c1de384776fc8d85c5fa117ea73
Time: 2019-08-08
Author: yuhanliu@google.com
File Name: example_zoo/tools/process.py
Class Name:
Method Name:
Project Name: explosion/thinc
Commit Name: 7ee43f4346812c46b8df43c8cdf7a3016958949c
Time: 2020-01-15
Author: ines@ines.io
File Name: setup.py
Class Name:
Method Name: clean