aboutsummaryrefslogtreecommitdiffstats
path: root/.gitlint
diff options
context:
space:
mode:
authormrichomme <morgan.richomme@orange.com>2020-12-10 14:51:55 +0100
committermrichomme <morgan.richomme@orange.com>2020-12-10 14:51:55 +0100
commit94e27de8ea2db18be2878faf38f5d74a09acfdf7 (patch)
treeeefdd236b5b47a9f5b5fc4cdf633d6cd202e0efe /.gitlint
parentf4f2c3da532bb8318ebd83a8e1bef8e97f8da2e9 (diff)
Add gitlint to improve the quality of commit message
Gitling will force some formating on patch submission Reuse the .gitlint from OOM project jjb on ci-management shall be modified accordingly First test on this repo, if OK => to be done on all the integration repositories Issue-ID: INT-1809 Signed-off-by: mrichomme <morgan.richomme@orange.com> Change-Id: I3f1d74d1eba05063a661e66d0620defe36ad7bc8
Diffstat (limited to '.gitlint')
-rw-r--r--.gitlint12
1 files changed, 12 insertions, 0 deletions
diff --git a/.gitlint b/.gitlint
new file mode 100644
index 0000000..a311aaf
--- /dev/null
+++ b/.gitlint
@@ -0,0 +1,12 @@
+[title-match-regex]
+regex=^\[[A-Z0-9]+]\[*[A-Z0-9]*]* [A-Z]+[\S ]*$
+
+[body-match-regex]
+regex=.{20,}
+
+[ignore-by-title]
+regex=^Release(.*)
+ignore=title-match-regex,body-min-length
+
+[ignore-body-lines]
+regex=^(Issue-ID|Signed-off-by|Change-Id|Reported-by|Depends-on|Co-authored-by|Fixes|Acked-by|Reviewed-by|CC)