From: Thanh Ha Date: Wed, 15 Jan 2020 23:21:56 +0000 (-0500) Subject: Migrate shellcheck hook to pre-commit X-Git-Tag: v0.50.0~12 X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=commitdiff_plain;ds=sidebyside;h=725220518be40c04b46c2fce670d6c395a6557b3;p=releng%2Fglobal-jjb.git 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 --- 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