[v2] utils: checkstyle.py: Add Co-developed-by to known_trailers
diff mbox series

Message ID 20240311125803.16708-1-hdegoede@redhat.com
State Accepted
Headers show
Series
  • [v2] utils: checkstyle.py: Add Co-developed-by to known_trailers
Related show

Commit Message

Hans de Goede March 11, 2024, 12:58 p.m. UTC
Add Co-developed-by to known_trailers to silence false positive
"Invalid commit trailer key 'Co-developed-by'" warnings.

Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Reviewed-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
---
Changes in v2:
- Keep known_trailers entries sorted alphabetically
---
 utils/checkstyle.py | 1 +
 1 file changed, 1 insertion(+)

Patch
diff mbox series

diff --git a/utils/checkstyle.py b/utils/checkstyle.py
index fb03dc34..db5a550d 100755
--- a/utils/checkstyle.py
+++ b/utils/checkstyle.py
@@ -471,6 +471,7 @@  class TrailersChecker(CommitChecker):
     known_trailers = {
         'Acked-by': email_regex,
         'Bug': link_regex,
+        'Co-developed-by': email_regex,
         'Fixes': commit_regex,
         'Link': link_regex,
         'Reported-by': validate_reported_by,