diff options
author | Hess Chen <hesheng.chen@intel.com> | 2018-07-23 13:57:57 +0800 |
---|---|---|
committer | Yonghong Zhu <yonghong.zhu@intel.com> | 2018-07-26 08:45:04 +0800 |
commit | a1583a877b9aba07facd567dfe4c72679ae3ca04 (patch) | |
tree | 2bf108cf348b16f803dc64bd95bc58aee057dadf /BaseTools/Source/Python/Ecc/config.ini | |
parent | 304a27e08f9139555694fbd27d2b78c430df9b8f (diff) | |
download | edk2-a1583a877b9aba07facd567dfe4c72679ae3ca04.tar.gz edk2-a1583a877b9aba07facd567dfe4c72679ae3ca04.tar.bz2 edk2-a1583a877b9aba07facd567dfe4c72679ae3ca04.zip |
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 <hesheng.chen@intel.com>
Reviewed-by: Yonghong Zhu <yonghong.zhu@intel.com>
Diffstat (limited to 'BaseTools/Source/Python/Ecc/config.ini')
-rw-r--r-- | BaseTools/Source/Python/Ecc/config.ini | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/BaseTools/Source/Python/Ecc/config.ini b/BaseTools/Source/Python/Ecc/config.ini index 9a431bf124..6c86da74d6 100644 --- a/BaseTools/Source/Python/Ecc/config.ini +++ b/BaseTools/Source/Python/Ecc/config.ini @@ -72,6 +72,10 @@ GeneralCheckFileExistence = 1 GeneralCheckNonAcsii = 1
# Check whether UNI file is valid
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
|