summaryrefslogtreecommitdiffstats
path: root/BaseTools/Scripts
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daude <philmd@redhat.com>2020-02-05 06:49:15 +0800
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2020-02-06 13:16:09 +0000
commit38ed2ff3dd4edebbdcd1ae7da471464b663a2e21 (patch)
tree6168629f34d1aa0e31cc4709d32933d1b31e8a6a /BaseTools/Scripts
parenta4960cf1b6c225b2d993b4f9c467b495a6e7dda2 (diff)
downloadedk2-38ed2ff3dd4edebbdcd1ae7da471464b663a2e21.tar.gz
edk2-38ed2ff3dd4edebbdcd1ae7da471464b663a2e21.tar.bz2
edk2-38ed2ff3dd4edebbdcd1ae7da471464b663a2e21.zip
BaseTools/Scripts/PatchCheck.py: Detect emails rewritten by Groups.Io
Due to strict DMARC / DKIM / SPF rules, Groups.Io sometimes rewrite the author email. See for example commit df851da3ceff5b6bcf5e12616. Add a check to detect these rewrites with PatchCheck.py. Signed-off-by: Philippe Mathieu-Daude <philmd@redhat.com> Cc: Bob Feng <bob.c.feng@intel.com> Cc: Liming Gao <liming.gao@intel.com> Reviewed-by: Laszlo Ersek <lersek@redhat.com> Reviewed-by: Bob Feng <bob.c.feng@intel.com>
Diffstat (limited to 'BaseTools/Scripts')
-rwxr-xr-xBaseTools/Scripts/PatchCheck.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/BaseTools/Scripts/PatchCheck.py b/BaseTools/Scripts/PatchCheck.py
index 6823cc69bb..73252ef355 100755
--- a/BaseTools/Scripts/PatchCheck.py
+++ b/BaseTools/Scripts/PatchCheck.py
@@ -79,6 +79,10 @@ class EmailAddressCheck:
self.error("The email address cannot contain a space: " +
mo.group(3))
+ if ' via Groups.Io' in name and mo.group(3).endswith('@groups.io'):
+ self.error("Email rewritten by lists DMARC / DKIM / SPF: " +
+ email)
+
class CommitMessageCheck:
"""Checks the contents of a git commit message."""