commit | 8262cc2748f71aad8a73e6b6bf6cc1f786e433a1 | [log] [tgz] |
---|---|---|
author | Jayanth Dodderi Chidanand <jayanthdodderi.chidanand@arm.com> | Thu Aug 04 17:34:42 2022 +0100 |
committer | Jayanth Dodderi Chidanand <jayanthdodderi.chidanand@arm.com> | Fri Aug 05 11:36:47 2022 +0100 |
tree | 746628bccd51e80a40234196a7892a20493a217a | |
parent | bfe54ff9a0d81e6628e7e6557b771b6888eab120 [diff] |
ci(static-checks): modify line-endings script Fix for "(standard input)" output, based on https://git.linaro.org/people/leonardo.sandoval/tf-a-ci-scripts.git/commit/?h=fix-dos-line-endings-patch-check&id=3a779e4a41a46068a6be6660ad4e6d90658aa557 From beginning, the script is intended to detect Windows style CRLF and if found, fail the test. The reason behind is part of the coding style guide, where all lines must follow the UNIX LF style. However, when explicitly tested against a file with CRLF line endings the script couldn't report the proper error message. It prints the messsage "standard input" which is not ideal. To rectify this, the script has been modified to handle this in a better way, such that when files with CRLF line endings are encountered, they will be printed in the logfile before failing the test. Signed-off-by: Jayanth Dodderi Chidanand <jayanthdodderi.chidanand@arm.com> Change-Id: I0d7593bd15879f0f881134c177f1661611934ec2