From: Michael Kubacki <michael.kubacki@...>
Purdue Compiler Construction Tool Set (PCCTS) source code was copied/
pasted into BaseTools/Source/C/VfrCompile/Pccts/.
The code contains tab characters instead of spaces.
PatchCheck.py gives an error on modifications to files that
contain tabs.
This change adds that directory to the pre-existing list of
directories in which tab checks are ignored in PatchCheck.py.
The goal of my upcoming change there is not to mix tabs and spaces
but to fix a bug while preserving its current formatting characters.
Cc: Bob Feng <bob.c.feng@...>
Cc: Liming Gao <gaoliming@...>
Cc: Michael D Kinney <michael.d.kinney@...>
Cc: Sean Brogan <sean.brogan@...>
Cc: Yuwei Chen <yuwei.chen@...>
Signed-off-by: Michael Kubacki <michael.kubacki@...>
Reviewed-by: Liming Gao <gaoliming@...>
Reviewed-by: Michael D Kinney <michael.d.kinney@...>
---
BaseTools/Scripts/PatchCheck.py | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/BaseTools/Scripts/PatchCheck.py b/BaseTools/Scripts/PatchChe=
ck.py
index 475b3a8c27d9..a02fdb470ee2 100755
--- a/BaseTools/Scripts/PatchCheck.py
+++ b/BaseTools/Scripts/PatchCheck.py
@@ -384,7 +384,9 @@ class GitDiffCheck:
self.force_crlf =3D False
self.force_notabs =3D False
if os.path.basename(self.filename) =3D=3D 'GNUmakefile' =
or \
- os.path.basename(self.filename) =3D=3D 'Makefile':
+ os.path.basename(self.filename) =3D=3D 'Makefile' or =
\
+ self.filename.startswith(
+ 'BaseTools/Source/C/VfrCompile/Pccts/'):
self.force_notabs =3D False
elif len(line.rstrip()) !=3D 0:
self.format_error("didn't find diff command")
--=20
2.28.0.windows.1