]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
MAINTAINERS: Fix an entry using spaces instead of tabs
authorFilip Kastl <fkastl@suse.cz>
Tue, 14 May 2024 08:34:12 +0000 (10:34 +0200)
committerFilip Kastl <fkastl@suse.cz>
Tue, 14 May 2024 08:34:12 +0000 (10:34 +0200)
In the MAINTAINERS file, names and emails are separated by tabs.  One of
the entries recently added used spaces.  This patch corrects this.

The check-MAINTAINERS.py script breaks a bit when this happens.  This
patch also adds warning about this situation into the script.

ChangeLog:

* MAINTAINERS: Use tabs between name and email.

contrib/ChangeLog:

* check-MAINTAINERS.py: Add warning about not using tabs.

Signed-off-by: Filip Kastl <fkastl@suse.cz>
MAINTAINERS
contrib/check-MAINTAINERS.py

index 361059fd55c68f7153e321ebd1fda1ff2d65b3bf..8bb435dd54ea76a69fcb81f589f2315d3f634af4 100644 (file)
@@ -738,7 +738,7 @@ Kwok Cheung Yeung                           <kcyeung@baylibre.com>
 Greta Yorsh                                    <greta.yorsh@arm.com>
 David Yuste                                    <david.yuste@gmail.com>
 Adhemerval Zanella                             <azanella@linux.vnet.ibm.com>
-Xiao Zeng                                       <zengxiao@eswincomputing.com>
+Xiao Zeng                                      <zengxiao@eswincomputing.com>
 Dennis Zhang                                   <dennis.zhang@arm.com>
 Yufeng Zhang                                   <yufeng.zhang@arm.com>
 Qing Zhao                                      <qing.zhao@oracle.com>
index 9f31a10bcffb9ff0369e937548c6b7157d124e02..2bac67f08214b0e5a8f9def6e4fb98b7f93d17f8 100755 (executable)
@@ -71,6 +71,14 @@ def check_group(name, lines):
             print(f'Line should not start with space: "{line}"')
             exit_code = 2
 
+        # Special-case some names
+        if line == 'James Norris':
+            continue
+
+        if '\t' not in line:
+            print(f'Name and email should be separated by tabs: "{line}"')
+            exit_code = 2
+
     lines = [line + '\n' for line in lines]
     sorted_lines = sorted(lines, key=sort_by_surname)
     if lines != sorted_lines: