diff options
author | Pyry Haulos <phaulos@google.com> | 2016-09-20 13:19:25 -0700 |
---|---|---|
committer | Pyry Haulos <phaulos@google.com> | 2016-09-20 13:19:25 -0700 |
commit | c1241bbf600412d062e354167e89b9373c74756b (patch) | |
tree | 1fc3a603936d4e4253494492bcdcd0ea28262159 | |
parent | 1378177a28628523454619d99c1563bc4e538f6d (diff) | |
download | VK-GL-CTS-c1241bbf600412d062e354167e89b9373c74756b.tar.gz VK-GL-CTS-c1241bbf600412d062e354167e89b9373c74756b.tar.bz2 VK-GL-CTS-c1241bbf600412d062e354167e89b9373c74756b.zip |
Check line endings in check_whitespace.py
Change-Id: I33f9f64478bcb2792cae3e2d4b6501496a54191d
-rw-r--r-- | doc/testspecs/VK/apitests.conf | 10 | ||||
-rw-r--r-- | scripts/src_util/check_whitespace.py | 3 |
2 files changed, 8 insertions, 5 deletions
diff --git a/doc/testspecs/VK/apitests.conf b/doc/testspecs/VK/apitests.conf index 0b3192292..572a4d965 100644 --- a/doc/testspecs/VK/apitests.conf +++ b/doc/testspecs/VK/apitests.conf @@ -1,5 +1,5 @@ -[attributes]
-newline=\n
-
-[replacements]
-\+\/-=±
+[attributes] +newline=\n + +[replacements] +\+\/-=± diff --git a/scripts/src_util/check_whitespace.py b/scripts/src_util/check_whitespace.py index 7d079bfd5..876e57ee6 100644 --- a/scripts/src_util/check_whitespace.py +++ b/scripts/src_util/check_whitespace.py @@ -34,6 +34,9 @@ def checkFileWhitespace (file): if " \t" in line: error = True print "%s:%i merged <space><tab>" % (file, lineNum+1) + if line.endswith("\r") or line.endswith("\r\n"): + error = True + print "%s:%i incorrect line ending" % (file, lineNum+1) f.close() return not error |