mirror of
https://github.com/cp2k/cp2k.git
synced 2026-07-28 06:05:29 -04:00
Allow tab characters also in arch files
This commit is contained in:
parent
72567a7a64
commit
40dbbd6d86
1 changed files with 6 additions and 1 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue