shell-lint tool

This commit is contained in:
Jonathan Lange
2016-07-08 14:19:51 +01:00
parent d9ab133a85
commit 239935c063
2 changed files with 17 additions and 0 deletions

13
shell-lint Executable file
View File

@@ -0,0 +1,13 @@
#!/usr/bin/env bash
#
# Lint all shell files in given directories with `shellcheck`.
#
# e.g.
# $ shell-lint infra k8s
#
# Depends on:
# - shellcheck
# - files-with-type
# - file >= 5.22
"$(dirname "${BASH_SOURCE[0]}")/files-with-type" text/x-shellscript "$@" | xargs shellcheck