From a2370b4d6a33614873a4a30a916a9badc69a1e41 Mon Sep 17 00:00:00 2001 From: Adar Nimrod <nimrod@shore.co.il> Date: Sun, 23 Apr 2017 22:37:25 +0300 Subject: [PATCH] - Added shellchekc hook. --- README.rst | 3 ++- hooks.yaml | 8 +++++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/README.rst b/README.rst index 29d1949..e53f947 100644 --- a/README.rst +++ b/README.rst @@ -21,9 +21,10 @@ Add the following to your :code:`.pre-commit-config.yaml`: .. code:: yaml - repo: https://www.shore.co.il/git/shell-pre-commit/ - sha: v0.2.0 + sha: v0.3.0 hooks: - id: shell-lint + - id: shellcheck And run :code:`pre-commit autoupdate` to update the hooks. diff --git a/hooks.yaml b/hooks.yaml index d840899..f4ac44a 100644 --- a/hooks.yaml +++ b/hooks.yaml @@ -5,4 +5,10 @@ language: system entry: /bin/sh args: ['-en'] - files: \.(sh|bash|ksh|zsh)$ + files: &shell_scripts \.(sh|bash|ksh|zsh)$ +- id: shellcheck + name: shellcheck + description: A shell script static analysis tool + language: system + entry: shellcheck + files: *shell_scripts -- GitLab