summaryrefslogtreecommitdiffstats
path: root/.gitlint
diff options
context:
space:
mode:
authorSylvain Desbureaux <sylvain.desbureaux@orange.com>2020-12-07 09:15:19 +0100
committerSylvain Desbureaux <sylvain.desbureaux@orange.com>2020-12-09 08:04:39 +0000
commite76075dc8fde961e14fbefee092e00de95008a26 (patch)
tree449b1d2caeff905ba375a6a3e131bff8d052cf50 /.gitlint
parent7af7332525f2be46fe7ce101575abc00271dbe3c (diff)
[COMMON] Add git commit linting
Add an automated git commit linting in order to be sure commit messages are set the way we want. Issue-ID: OOM-2644 Signed-off-by: Sylvain Desbureaux <sylvain.desbureaux@orange.com> Change-Id: I36a397c318886f2ac05a8971147272669c7a4cd9 (cherry picked from commit 3c393e59b60734b4a1c163eb3e175507a32519ad)
Diffstat (limited to '.gitlint')
-rw-r--r--.gitlint13
1 files changed, 13 insertions, 0 deletions
diff --git a/.gitlint b/.gitlint
new file mode 100644
index 0000000000..9f3a51d8a0
--- /dev/null
+++ b/.gitlint
@@ -0,0 +1,13 @@
+[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)
+