Skip to content

Commit

Permalink
BaseTools/Scripts: PatchCheck support CODEOWNERS locations
Browse files Browse the repository at this point in the history
Update PatchCheck.py to support all possible CODEOWNERS and
REVIEWERS file locations.

https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-code-owners#codeowners-file-location

Signed-off-by: Michael D Kinney <[email protected]>
  • Loading branch information
mdkinney committed Sep 8, 2022
1 parent 93992fd commit 4b6f2f5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions BaseTools/Scripts/PatchCheck.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 4b6f2f5

Please sign in to comment.