summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xutils/checkstyle.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/utils/checkstyle.py b/utils/checkstyle.py
index 4185c39a..7d480bdf 100755
--- a/utils/checkstyle.py
+++ b/utils/checkstyle.py
@@ -493,6 +493,8 @@ class TrailersChecker(CommitChecker):
def check(cls, commit, top_level):
issues = []
+ sob_found = False
+
for trailer in commit.trailers:
match = TrailersChecker.trailer_regex.fullmatch(trailer)
if not match:
@@ -515,6 +517,12 @@ class TrailersChecker(CommitChecker):
issues.append(CommitIssue(f"Malformed value '{value}' for commit trailer '{key}'"))
continue
+ if key == 'Signed-off-by':
+ sob_found = True
+
+ if not sob_found:
+ issues.append(CommitIssue(f"No valid 'Signed-off-by' trailer found, see Documentation/contributing.rst"))
+
return issues