From 725220518be40c04b46c2fce670d6c395a6557b3 Mon Sep 17 00:00:00 2001 From: Thanh Ha Date: Wed, 15 Jan 2020 18:21:56 -0500 Subject: [PATCH] Migrate shellcheck hook to pre-commit Use pre-commit to run the shellcheck hook rather than coala as we want to eventually phase out coala. Signed-off-by: Thanh Ha Change-Id: Id8068a29379a5c71c6f016e00e99325939e1e693 --- .coafile | 7 ------- .pre-commit-config.yaml | 5 +++++ 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/.coafile b/.coafile index f2e8f4a5..84e59c2a 100755 --- 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 diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index a496135d..fbe75456 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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 -- 2.16.6