From: Anil Belur Date: Thu, 16 Jan 2020 08:09:24 +0000 (+1000) Subject: Add pre-commit hook for shellcheck X-Git-Tag: v0.4.1~1 X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=commitdiff_plain;h=dc73f34a755f34a0650d893cc7e095a8a7d05ece;p=releng%2Fcommon-packer.git Add pre-commit hook for shellcheck Use pre-commit to run the shellcheck hook rather than coala as we want to eventually phase out coala. Issue: RELENG-2642 Change-Id: Ie06bbb0a06ba517bcc378480ea39320da00403c6 Signed-off-by: Anil Belur --- diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 23ef3e5..047fc32 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -9,3 +9,8 @@ repos: rev: 1.19.1 hooks: - id: prettier + + - repo: https://github.com/jumanjihouse/pre-commit-hooks + rev: 1.11.2 + hooks: + - id: shellcheck