From a1583a877b9aba07facd567dfe4c72679ae3ca04 Mon Sep 17 00:00:00 2001 From: Hess Chen Date: Mon, 23 Jul 2018 13:57:57 +0800 Subject: BaseTools/Ecc: Add some new checkpoints 1. Add a checkpoint to check NO TABs. 2. Add a checkpoint to check line ending with CRLF. 3. Add a checkpoint to check no trailing spaces. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Hess Chen Reviewed-by: Yonghong Zhu --- BaseTools/Source/Python/Ecc/Configuration.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'BaseTools/Source/Python/Ecc/Configuration.py') diff --git a/BaseTools/Source/Python/Ecc/Configuration.py b/BaseTools/Source/Python/Ecc/Configuration.py index 29a1220761..f58adbf736 100644 --- a/BaseTools/Source/Python/Ecc/Configuration.py +++ b/BaseTools/Source/Python/Ecc/Configuration.py @@ -186,6 +186,10 @@ class Configuration(object): self.GeneralCheckNonAcsii = 1 # Check whether UNI file is valid self.GeneralCheckUni = 1 + # Check Only use CRLF (Carriage Return Line Feed) line endings. + self.GeneralCheckLineEnding = 1 + # Check if there is no trailing white space in one line. + self.GeneralCheckTrailingWhiteSpaceLine = 1 ## Space Checking self.SpaceCheckAll = 1 -- cgit v1.2.3