report-non-inclusive-language should skip symlinks. Currently the script fails with an error if there is a symlink pointing to a non-existing file. Traceback (most recent call last): File "OpenSource/Tools/Scripts/report-non-inclusive-language", line 70, in <module> handle = open(os.path.join(subroot, file), "r") IOError: [Errno 2] No such file or directory: 'testdir/symlink-pointing-to-non-existing-file'
Also 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.
Created attachment 428578 [details] Patch
Comment on attachment 428578 [details] Patch How did you discover the need for this? Who’s using this on directories with symlinks in them?
> How did you discover the need for this? I discovered this while running this script on an "Internal" repository.
<rdar://problem/77998004>
Committed r277476 (237711@main): <https://commits.webkit.org/237711@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 428578 [details].