This will help narrow down spelling errors that are in the
commit subject

Signed-off-by: Chandan Somani <csom...@redhat.com>
---
 utilities/checkpatch.py | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/utilities/checkpatch.py b/utilities/checkpatch.py
index 57f7baf46..c5575ba00 100755
--- a/utilities/checkpatch.py
+++ b/utilities/checkpatch.py
@@ -1024,6 +1024,10 @@ def ovs_checkpatch_file(filename):
     result = ovs_checkpatch_parse(part.get_payload(decode=False), filename,
                                   mail.get('Author', mail['From']),
                                   mail['Commit'])
+    if spellcheck:
+        if check_spelling(mail["Subject"], False):
+            print("Subject: %s" % mail["Subject"])
+
     ovs_checkpatch_print_result()
     return result
 
-- 
2.26.3

_______________________________________________
dev mailing list
d...@openvswitch.org
https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Reply via email to