From 820f2cfe32f6f2008cd6f7e3845617e25458f222 Mon Sep 17 00:00:00 2001 From: "guillaume.lambert" Date: Thu, 14 Oct 2021 09:45:34 +0200 Subject: [OOM] add bashism and pre-commit linting - add linter in order to detect bashisms - add pre-commit linters for trailing blanks,tabs,etc - exclude them for honolulu and frankfurt and guilin branches since they are not intended for former active branches https://gerrit.onap.org/r/c/oom/+/120407 Issue-ID: OOM-2643 Signed-off-by: guillaume.lambert Change-Id: I2f8832725f7b9851dca4907f442145ec1aaab872 --- jjb/oom/oom-main-linter.yaml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/jjb/oom/oom-main-linter.yaml b/jjb/oom/oom-main-linter.yaml index d9887e472..a258a9efe 100644 --- a/jjb/oom/oom-main-linter.yaml +++ b/jjb/oom/oom-main-linter.yaml @@ -19,6 +19,14 @@ tox-envs: "docs,docs-linkcheck" pattern: "docs/**" parallel: true + - "checkbashisms": + tox-dir: "." + tox-envs: "checkbashisms" + pattern: "**" + - "pre-commit": + tox-dir: "." + tox-envs: "pre-commit" + pattern: "**" stream: - "master": branch: "master" @@ -28,3 +36,16 @@ branch: "frankfurt" - "guilin": branch: "guilin" + exclude: + - stream: "honolulu" + subproject: "checkbashisms" + - stream: "frankfurt" + subproject: "checkbashisms" + - stream: "guilin" + subproject: "checkbashisms" + - stream: "honolulu" + subproject: "pre-commit" + - stream: "frankfurt" + subproject: "pre-commit" + - stream: "guilin" + subproject: "pre-commit" -- cgit 1.2.3-korg