Allow tab characters also in arch files

This commit is contained in:
Matthias Krack 2023-03-06 17:54:01 +01:00
parent 72567a7a64
commit 40dbbd6d86

View file

@ -152,7 +152,12 @@ def check_file(path: pathlib.Path) -> typing.List[str]:
if "\r\n" in content:
warnings += [f"{path}: contains DOS linebreaks"]
if fn_ext not in (".pot", ".patch") and basefn != "Makefile" and "\t" in content:
if (
fn_ext not in (".pot", ".patch")
and basefn != "Makefile"
and basefn != "generate_arch_files.sh"
and "\t" in content
):
warnings += [f"{path}: contains tab character"]
if fn_ext == ".cu" and "#if defined(_OMP_H)\n#error" not in content: