diff options
author | Filip Kastl <fkastl@suse.cz> | 2024-05-14 10:34:12 +0200 |
---|---|---|
committer | Filip Kastl <fkastl@suse.cz> | 2024-05-14 10:34:12 +0200 |
commit | 1a809280929fac9836ff31dcc0980ac8acee7631 (patch) | |
tree | dccc9a099349110ae78c8fcc11076e659a028335 /contrib | |
parent | 8d15d848b90f502bdc3070f5b4e6213721eb2272 (diff) | |
download | gcc-1a809280929fac9836ff31dcc0980ac8acee7631.zip gcc-1a809280929fac9836ff31dcc0980ac8acee7631.tar.gz gcc-1a809280929fac9836ff31dcc0980ac8acee7631.tar.bz2 |
MAINTAINERS: Fix an entry using spaces instead of tabs
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>
Diffstat (limited to 'contrib')
-rwxr-xr-x | contrib/check-MAINTAINERS.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/contrib/check-MAINTAINERS.py b/contrib/check-MAINTAINERS.py index 9f31a10..2bac67f 100755 --- a/contrib/check-MAINTAINERS.py +++ b/contrib/check-MAINTAINERS.py @@ -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: |