Disable GitCommit check for some patterns 58/53158/1
authorThanh Ha <thanh.ha@linuxfoundation.org>
Fri, 10 Mar 2017 16:49:47 +0000 (11:49 -0500)
committerThanh Ha <thanh.ha@linuxfoundation.org>
Fri, 10 Mar 2017 16:52:40 +0000 (11:52 -0500)
Some patterns can be long such as:

    - Sign-off-by when someone has a long name
    - http / https URLs

Change-Id: Ie5401a116de9599aaf85b91e63e1522d962c8e1a
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
.coafile

index 945b4eab80459617bb82a9def09518434e6df6b6..8bf8810899ccf30284c98aaeba6223d57287b090 100644 (file)
--- a/.coafile
+++ b/.coafile
@@ -1,11 +1,20 @@
 [default]
-bears = SpaceConsistencyBear,GitCommitBear
+bears = SpaceConsistencyBear
 files = scripts/*
 allow_trailing_whitespace = False
 enforce_newline_at_EOF = True
 indent_size = 4
 use_spaces = yeah
 
+[GitCommit]
+bears = GitCommitBear
+ignore_length_regex = Signed-off-by,
+    Also-by,
+    Co-authored-by,
+    http://,
+    https://
+
+
 [YAML]
 bears = YAMLLintBear
 files = jjb/**/*.yaml,openstack-hot/**/*.yaml