tools: Added shellcheck for bash, sh, dash or ksh files.

This commit is contained in:
Andrew Hamilton 2017-12-13 19:15:26 +10:00
parent 45a3f1ede8
commit 4a02b26fb0
3 changed files with 9 additions and 2 deletions

View file

@ -675,6 +675,11 @@ def pil_half(path):
return Status.normal, result
@deps(deps={"shellcheck"}, url="shellcheck", executables={"shellcheck"})
def shellcheck(path):
return _run_command(["shellcheck", path])
@deps(deps={"git"}, url="git", executables={"git"})
def git_blame(path): # FIX: Add to tools_test.py
stdout, stderr, returncode = _do_command(
@ -830,7 +835,8 @@ TOOLS_FOR_EXTENSIONS = \
(["tar.gz", "tgz"], [tar_gz]),
(["tar.bz2"], [tar_bz2]),
(["a", "so"], [nm]),
(IMAGE_EXTENSIONS, [pil, pil_half])
(IMAGE_EXTENSIONS, [pil, pil_half]),
(["bash", "sh", "dash", "ksh"], [shellcheck])
]