Skip to content
Snippets Groups Projects
Commit a2370b4d authored by nimrod's avatar nimrod
Browse files

- Added shellchekc hook.

parent cf1439a3
No related branches found
No related tags found
No related merge requests found
...@@ -21,9 +21,10 @@ Add the following to your :code:`.pre-commit-config.yaml`: ...@@ -21,9 +21,10 @@ Add the following to your :code:`.pre-commit-config.yaml`:
.. code:: yaml .. code:: yaml
- repo: https://www.shore.co.il/git/shell-pre-commit/ - repo: https://www.shore.co.il/git/shell-pre-commit/
sha: v0.2.0 sha: v0.3.0
hooks: hooks:
- id: shell-lint - id: shell-lint
- id: shellcheck
And run :code:`pre-commit autoupdate` to update the hooks. And run :code:`pre-commit autoupdate` to update the hooks.
......
...@@ -5,4 +5,10 @@ ...@@ -5,4 +5,10 @@
language: system language: system
entry: /bin/sh entry: /bin/sh
args: ['-en'] 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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment