diff --git a/BaseTools/Scripts/PatchCheck.py b/BaseTools/Scripts/PatchCheck.py index b5d9041fe6..867bdd7b1a 100755 --- a/BaseTools/Scripts/PatchCheck.py +++ b/BaseTools/Scripts/PatchCheck.py @@ -368,8 +368,8 @@ def run(self): self.filename.startswith('BaseTools/BinPipWrappers/PosixLike/') or \ self.filename.startswith('BaseTools/Bin/CYGWIN_NT-5.1-i686/') or \ self.filename == 'BaseTools/BuildEnv' or \ - self.filename.endswith('CODEOWNERS') or \ - self.filename.endswith('REVIEWERS'): + self.filename in ['CODEOWNERS', '.github/CODEOWNERS', 'docs/CODEOWNERS'] or \ + self.filename in ['REVIEWERS', '.github/REVIEWERS', 'docs/REVIEWERS']: # # Do not enforce CR/LF line endings for linux shell scripts. # Some linux shell scripts don't end with the ".sh" extension,