summaryrefslogtreecommitdiffstats
path: root/gitlint/contrib/rules/signedoff_by.py
diff options
context:
space:
mode:
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 c2034e7..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.startswith("Signed-Off-By"):
- return []
-
- return [RuleViolation(self.id, "Body does not contain a 'Signed-Off-By' line", line_nr=1)]