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/Configuration.py | |
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/Configuration.py')
-rw-r--r-- | BaseTools/Source/Python/Ecc/Configuration.py | 4 |
1 files changed, 4 insertions, 0 deletions
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
|