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
--- /dev/null
+[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)
[tox]
minversion = 3.2.0
-envlist = json,yaml,py,md
+envlist = json,yaml,py,md,gitlint
skipsdist = true
requires = pip >= 8
commands =
/bin/bash -c "coala --non-interactive --disable-caching --no-autoapply-warn md --files $(</tmp/.coalist_md) \ "
+[testenv:gitlint]
+basepython = python3
+deps =
+ gitlint
+commands =
+ gitlint