From ac9651c34d73d58b3d5b196eb4ed8c4e1c7d6fc5 Mon Sep 17 00:00:00 2001 From: Thanh Ha Date: Fri, 10 Mar 2017 13:54:44 -0500 Subject: [PATCH] Reorg .coafile for better handling of bears Change-Id: I300128fa181ccd326f0626789f454fc8e5ed0f98 Signed-off-by: Thanh Ha --- .coafile | 31 +++++++++++++++++++++---------- 1 file changed, 21 insertions(+), 10 deletions(-) diff --git a/.coafile b/.coafile index b1d56641..5406fa94 100644 --- a/.coafile +++ b/.coafile @@ -1,17 +1,28 @@ -[default] -bears = SpaceConsistencyBear,GitCommitBear -files = shell/* -allow_trailing_whitespace = False -enforce_newline_at_EOF = True -indent_size = 4 -use_spaces = yeah +[Git] +bears = GitCommitBear +ignore_length_regex = Signed-off-by, + Also-by, + Co-authored-by, + http://, + https:// [Python] -bears = BanditBear,PyCommentedCodeBear,PyDocStyleBear,PyFlakesBear,PyImportSortBear +bears = BanditBear, + PyCommentedCodeBear, + PyDocStyleBear, + PyFlakesBear, + PyImportSortBear, + SpaceConsistencyBear files = lftools/**/*.py pydocstyle_ignore = D203, D213, D301 +indent_size = 4 +use_spaces = yeah -[ShellCheck] -bears = ShellCheckBear +[Shell] +bears = ShellCheckBear, + SpaceConsistencyBear files = shell/* shell = bash +indent_size = 4 +use_spaces = yeah + -- 2.16.6