mirror of
https://github.com/weaveworks/scope.git
synced 2026-07-28 01:31:17 +00:00
shell-lint tool
This commit is contained in:
13
shell-lint
Executable file
13
shell-lint
Executable 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
|
||||
Reference in New Issue
Block a user