Migrate shellcheck hook to pre-commit 26/62826/3
authorThanh Ha <zxiiro@gmail.com>
Wed, 15 Jan 2020 23:21:56 +0000 (18:21 -0500)
committerAnil Belur <abelur@linuxfoundation.org>
Thu, 16 Jan 2020 08:06:27 +0000 (08:06 +0000)
Use pre-commit to run the shellcheck hook rather than coala as
we want to eventually phase out coala.

Signed-off-by: Thanh Ha <zxiiro@gmail.com>
Change-Id: Id8068a29379a5c71c6f016e00e99325939e1e693

.coafile
.pre-commit-config.yaml

index f2e8f4a..84e59c2 100755 (executable)
--- a/.coafile
+++ b/.coafile
@@ -38,10 +38,3 @@ ignore = .git/**,
     docs/jjb/lf-macros.rst,
     docs/jjb/lf-maven-jobs.rst,
     docs/jjb/lf-rtdv3-jobs.rst
-
-[all.ShellCheck]
-bears = ShellCheckBear,SpaceConsistencyBear
-files = **.sh
-shell = bash
-indent_size = 4
-use_spaces = yeah
index a496135..fbe7545 100644 (file)
@@ -9,3 +9,8 @@ repos:
     rev: 1.18.2
     hooks:
       - id: prettier
+
+  - repo: https://github.com/jumanjihouse/pre-commit-hooks
+    rev: 1.11.2
+    hooks:
+      - id: shellcheck