aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.gitlint12
-rw-r--r--tox.ini8
2 files changed, 19 insertions, 1 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)
diff --git a/tox.ini b/tox.ini
index 1f76aa8..cf8cf62 100644
--- a/tox.ini
+++ b/tox.ini
@@ -1,6 +1,6 @@
[tox]
minversion = 3.2.0
-envlist = json,yaml,py,md
+envlist = json,yaml,py,md,gitlint
skipsdist = true
requires = pip >= 8
@@ -43,3 +43,9 @@ commands_pre =
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