Skip to content
This repository was archived by the owner on Jun 24, 2022. It is now read-only.

Commit 0e7fa63

Browse files
report-non-inclusive-language should do exact match for directory names to ignore
https://bugs.webkit.org/show_bug.cgi?id=217993 Reviewed by Darin Adler. * Scripts/report-non-inclusive-language: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@268772 268f45cc-cd09-0410-ab3c-d52691b4dbfc
1 parent 1e63f43 commit 0e7fa63

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

Tools/ChangeLog

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
2020-10-20 Aakash Jain <[email protected]>
2+
3+
report-non-inclusive-language should do exact match for directory names to ignore
4+
https://bugs.webkit.org/show_bug.cgi?id=217993
5+
6+
Reviewed by Darin Adler.
7+
8+
* Scripts/report-non-inclusive-language:
9+
110
2020-10-20 Aakash Jain <[email protected]>
211

312
[build.webkit.org] Rename slavename to workername in steps.py

Tools/Scripts/report-non-inclusive-language

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ nonInclusiveTerms = [
4242
[ "slave", "slave" ]
4343
]
4444

45-
IGNORE_DIRECTORIES_CONTAINING = ['.svn', '.git', 'autoinstalled']
45+
IGNORE_DIRECTORIES = ['.svn', '.git', 'autoinstalled']
4646
IGNORE_FILES_STARTING_WITH = ('ChangeLog')
4747
IGNORE_FILES_ENDING_WITH = ('.log', '.order', '.pyc', '.swp', '.xcuserstate')
4848

@@ -58,7 +58,7 @@ for term in nonInclusiveTerms:
5858
root = os.getcwd()
5959
for subroot, directories, files in os.walk(root):
6060
prefix = subroot[len(root) + 1:]
61-
if any(directory in prefix for directory in IGNORE_DIRECTORIES_CONTAINING):
61+
if any(directory in prefix.split('/') for directory in IGNORE_DIRECTORIES):
6262
continue
6363
for file in files:
6464
if file.startswith(IGNORE_FILES_STARTING_WITH):

0 commit comments

Comments
 (0)