summaryrefslogtreecommitdiffstats
path: root/gitlint/contrib/rules/signedoff_by.py
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2021-12-04 03:31:49 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2021-12-04 03:31:49 +0000
commit23d0ac82f3d68663ddc74a0e1f9b963beb8d62b9 (patch)
treefc37aa2c97a3d28b3dee7f3892041158981ed335 /gitlint/contrib/rules/signedoff_by.py
parentReleasing progress-linux version 0.16.0-1. (diff)
downloadgitlint-23d0ac82f3d68663ddc74a0e1f9b963beb8d62b9.tar.xz
gitlint-23d0ac82f3d68663ddc74a0e1f9b963beb8d62b9.zip
Merging upstream version 0.17.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'gitlint/contrib/rules/signedoff_by.py')
-rw-r--r--gitlint/contrib/rules/signedoff_by.py18
1 files changed, 0 insertions, 18 deletions
diff --git a/gitlint/contrib/rules/signedoff_by.py b/gitlint/contrib/rules/signedoff_by.py
deleted file mode 100644
index 139a1b1..0000000
--- a/gitlint/contrib/rules/signedoff_by.py
+++ /dev/null
@@ -1,18 +0,0 @@
-
-from gitlint.rules import CommitRule, RuleViolation
-
-
-class SignedOffBy(CommitRule):
- """ This rule will enforce that each commit body contains a "Signed-off-by" line.
- We keep things simple here and just check whether the commit body contains a line that starts with "Signed-off-by".
- """
-
- name = "contrib-body-requires-signed-off-by"
- id = "CC1"
-
- def validate(self, commit):
- for line in commit.message.body:
- if line.lower().startswith("signed-off-by"):
- return []
-
- return [RuleViolation(self.id, "Body does not contain a 'Signed-off-by' line", line_nr=1)]