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

Changeset 277476 in webkit


Ignore:
Timestamp:
May 13, 2021, 7:06:04 PM (5 years ago)
Author:
aakash_jain@apple.com
Message:

report-non-inclusive-language should skip symlinks
​https://bugs.webkit.org/show_bug.cgi?id=225789

Reviewed by Darin Adler.

  • Scripts/report-non-inclusive-language: Skip symlinks since most likely the linked file would be checked

directly by the script while iterating the directory structure and would result in it being counted twice.
Also the script fails with an error if there is a symlink pointing to a non-existing file.

Location:
trunk/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r277465 r277476  
     12021-05-13  Aakash Jain  <aakash_jain@apple.com>
     2
     3        report-non-inclusive-language should skip symlinks
     4        https://bugs.webkit.org/show_bug.cgi?id=225789
     5
     6        Reviewed by Darin Adler.
     7
     8        * Scripts/report-non-inclusive-language: Skip symlinks since most likely the linked file would be checked
     9        directly by the script while iterating the directory structure and would result in it being counted twice.
     10        Also the script fails with an error if there is a symlink pointing to a non-existing file.
     11
    1122021-05-13  Aakash Jain  <aakash_jain@apple.com>
    213
  • trunk/Tools/Scripts/report-non-inclusive-language

    r276843 r277476  
    6868        if file in IGNORE_FILE_NAMES:
    6969            continue
     70        if os.path.islink(os.path.join(subroot, file)):
     71            continue
    7072        handle = open(os.path.join(subroot, file), "r")
    7173        for line in handle.readlines():
Note: See TracChangeset for help on using the changeset viewer.