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

Changeset 268761 in webkit


Ignore:
Timestamp:
Oct 20, 2020, 2:40:40 PM (6 years ago)
Author:
Jonathan Bedard
Message:

[webkitpy] Use allowlist and blocklist
https://bugs.webkit.org/show_bug.cgi?id=217985
<rdar://problem/70499499>

Reviewed by Aakash Jain.

  • Scripts/webkitpy/pylintrc:
  • Scripts/webkitpy/style/checkers/cpp.py:

(check_namespace_indentation):

  • Scripts/webkitpy/w3c/common.py:

(is_basename_skipped):

  • flatpak/flatpakutils.py:

(WebkitFlatpak.setup_gstbuild):

Location:
trunk/Tools
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r268752 r268761  
     12020-10-20  Jonathan Bedard  <jbedard@apple.com>
     2
     3        [webkitpy] Use allowlist and blocklist
     4        https://bugs.webkit.org/show_bug.cgi?id=217985
     5        <rdar://problem/70499499>
     6
     7        Reviewed by Aakash Jain.
     8
     9        * Scripts/webkitpy/pylintrc:
     10        * Scripts/webkitpy/style/checkers/cpp.py:
     11        (check_namespace_indentation):
     12        * Scripts/webkitpy/w3c/common.py:
     13        (is_basename_skipped):
     14        * flatpak/flatpakutils.py:
     15        (WebkitFlatpak.setup_gstbuild):
     16
    1172020-10-20  Aakash Jain  <aakash_jain@apple.com>
    218
  • trunk/Tools/Scripts/webkitpy/pylintrc

    r133504 r268761  
    3939profile=no
    4040
    41 # Add files or directories to the blacklist. They should be base names, not
     41# Add files or directories to the blocklist. They should be base names, not
    4242# paths.
    4343ignore=CVS
  • trunk/Tools/Scripts/webkitpy/style/checkers/cpp.py

    r267917 r268761  
    24852485
    24862486
    2487 # Enum declaration whitelist
     2487# Enum declaration allowlist
    24882488_ALLOW_ALL_UPPERCASE_ENUM = ['JSTokenType']
    24892489
  • trunk/Tools/Scripts/webkitpy/w3c/common.py

    r246434 r268761  
    8080    """
    8181    assert '/' not in basename
    82     blacklist = [
     82    blocklist = [
    8383        'MANIFEST.json',    # MANIFEST.json is automatically regenerated.
    8484        'OWNERS',           # https://crbug.com/584660 https://crbug.com/702283
    8585        'reftest.list',     # https://crbug.com/582838
    8686    ]
    87     return (basename in blacklist
     87    return (basename in blocklist
    8888            or is_testharness_baseline(basename)
    8989            or basename.startswith('.'))
  • trunk/Tools/flatpak/flatpakutils.py

    r268639 r268761  
    616616        command = [os.path.join(gst_dir, 'gst-env.py'), '--builddir', gst_builddir, '--srcdir', gst_dir, "--only-environment"]
    617617        gst_env = run_sanitized(command, gather_output=True)
    618         whitelist = ("LD_LIBRARY_PATH", "PATH", "PKG_CONFIG_PATH")
     618        allowlist = ("LD_LIBRARY_PATH", "PATH", "PKG_CONFIG_PATH")
    619619        nopathlist = ("GST_DEBUG", "GST_VERSION", "GST_ENV")
    620620        env = []
     
    622622            tokens = line.split("=")
    623623            var_name, contents = tokens[0], "=".join(tokens[1:])
    624             if not var_name.startswith("GST_") and var_name not in whitelist:
     624            if not var_name.startswith("GST_") and var_name not in allowlist:
    625625                continue
    626626            if var_name not in nopathlist:
Note: See TracChangeset for help on using the changeset viewer.