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;h=refs%2Fchanges%2F26%2F62826%2F3;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