⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 268763 in webkit


Ignore:
Timestamp:
Oct 20, 2020, 3:01:04 PM (6 years ago)
Author:
aakash_jain@apple.com
Message:

Make report-non-inclusive-language ignore autoinstalled directories and certain file types (follow-up fix)
https://bugs.webkit.org/show_bug.cgi?id=217972

Reviewed by Darin Adler.

  • Scripts/report-non-inclusive-language: Rename IGNORE_DIRECTORIES to IGNORE_DIRECTORIES_CONTAINING.
Location:
trunk/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r268762 r268763  
     12020-10-20  Aakash Jain  <aakash_jain@apple.com>
     2
     3        Make report-non-inclusive-language ignore autoinstalled directories and certain file types (follow-up fix)
     4        https://bugs.webkit.org/show_bug.cgi?id=217972
     5
     6        Reviewed by Darin Adler.
     7
     8        * Scripts/report-non-inclusive-language: Rename IGNORE_DIRECTORIES to IGNORE_DIRECTORIES_CONTAINING.
     9
    1102020-10-20  Sihui Liu  <sihui_liu@apple.com>
    211
  • trunk/Tools/Scripts/report-non-inclusive-language

    r268752 r268763  
    4343]
    4444
    45 IGNORE_DIRECTORIES = ['.svn', '.git', 'autoinstalled']
     45IGNORE_DIRECTORIES_CONTAINING = ['.svn', '.git', 'autoinstalled']
    4646IGNORE_FILES_STARTING_WITH = ('ChangeLog')
    4747IGNORE_FILES_ENDING_WITH = ('.log', '.order', '.pyc', '.swp', '.xcuserstate')
     
    5959for subroot, directories, files in os.walk(root):
    6060    prefix = subroot[len(root) + 1:]
    61     if any(directory in prefix for directory in IGNORE_DIRECTORIES):
     61    if any(directory in prefix for directory in IGNORE_DIRECTORIES_CONTAINING):
    6262        continue
    6363    for file in files:
Note: See TracChangeset for help on using the changeset viewer.