Title: [268996] trunk/Tools
Revision
268996
Author
[email protected]
Date
2020-10-26 14:19:02 -0700 (Mon, 26 Oct 2020)

Log Message

Allow skipping specific files from report-non-inclusive-language
https://bugs.webkit.org/show_bug.cgi?id=218199

Reviewed by Darin Adler.

* Scripts/report-non-inclusive-language:

Modified Paths

Diff

Modified: trunk/Tools/ChangeLog (268995 => 268996)


--- trunk/Tools/ChangeLog	2020-10-26 20:24:36 UTC (rev 268995)
+++ trunk/Tools/ChangeLog	2020-10-26 21:19:02 UTC (rev 268996)
@@ -1,3 +1,12 @@
+2020-10-26  Aakash Jain  <[email protected]>
+
+        Allow skipping specific files from report-non-inclusive-language
+        https://bugs.webkit.org/show_bug.cgi?id=218199
+
+        Reviewed by Darin Adler.
+
+        * Scripts/report-non-inclusive-language:
+
 2020-10-26  Matt Lewis  <[email protected]>
 
         Webkitscmpy has missing / in scm executable candidate list.

Modified: trunk/Tools/Scripts/report-non-inclusive-language (268995 => 268996)


--- trunk/Tools/Scripts/report-non-inclusive-language	2020-10-26 20:24:36 UTC (rev 268995)
+++ trunk/Tools/Scripts/report-non-inclusive-language	2020-10-26 21:19:02 UTC (rev 268996)
@@ -32,7 +32,6 @@
 #
 #   Clever default for use on WebKit source tree instead of current directory by default.
 #   Report third party sources separately from WebKit project files.
-#   Skip known examples on an exception list that we don't intend to fix.
 
 # Hard-coded for now, could read these out of a file instead.
 # Term, then the regular _expression_ for that term.
@@ -45,6 +44,7 @@
 IGNORE_DIRECTORIES = ['.svn', '.git', 'autoinstalled']
 IGNORE_FILES_STARTING_WITH = ('ChangeLog')
 IGNORE_FILES_ENDING_WITH = ('.log', '.order', '.pyc', '.swp', '.xcuserstate')
+IGNORE_FILE_NAMES = ['report-non-inclusive-language']
 
 parser = argparse.ArgumentParser(description='Report counts and locations of non-inclusive terms.')
 parser.add_argument('--verbose', '-v', action='');
@@ -65,6 +65,8 @@
             continue
         if file.endswith(IGNORE_FILES_ENDING_WITH):
             continue
+        if file in IGNORE_FILE_NAMES:
+            continue
         handle = open(os.path.join(subroot, file), "r")
         for line in handle.readlines():
             for term in nonInclusiveTerms:
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to