Changeset 220321 in webkit


Ignore:
Timestamp:
Aug 5, 2017 4:48:26 PM (7 years ago)
Author:
commit-queue@webkit.org
Message:

check-webkit-style: fix path-specific rules for WebKit2 rename
https://bugs.webkit.org/show_bug.cgi?id=175182

Patch by Yoshiaki Jitsukawa <Yoshiaki.Jitsukawa@sony.com> on 2017-08-05
Reviewed by David Kilzer.

  • Scripts/webkitpy/style/checker.py:
Location:
trunk/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r220311 r220321  
     12017-08-05  Yoshiaki Jitsukawa  <Yoshiaki.Jitsukawa@sony.com>
     2
     3        check-webkit-style: fix path-specific rules for WebKit2 rename
     4        https://bugs.webkit.org/show_bug.cgi?id=175182
     5
     6        Reviewed by David Kilzer.
     7
     8        * Scripts/webkitpy/style/checker.py:
     9
    1102017-08-04  Youenn Fablet  <youenn@apple.com>
    211
  • trunk/Tools/Scripts/webkitpy/style/checker.py

    r220243 r220321  
    151151    ([# The GTK+ and WPE APIs use upper case, underscore separated, words in
    152152      # certain types of enums (e.g. signals, properties).
    153       os.path.join('Source', 'WebKit2', 'Shared', 'API', 'glib'),
    154       os.path.join('Source', 'WebKit2', 'UIProcess', 'API', 'glib'),
    155       os.path.join('Source', 'WebKit2', 'UIProcess', 'API', 'gtk'),
    156       os.path.join('Source', 'WebKit2', 'UIProcess', 'API', 'wpe'),
    157       os.path.join('Source', 'WebKit2', 'WebProcess', 'InjectedBundle', 'API', 'glib'),
    158       os.path.join('Source', 'WebKit2', 'WebProcess', 'InjectedBundle', 'API', 'gtk'),
    159       os.path.join('Source', 'WebKit2', 'WebProcess', 'InjectedBundle', 'API', 'wpe')],
     153      os.path.join('Source', 'WebKit', 'Shared', 'API', 'glib'),
     154      os.path.join('Source', 'WebKit', 'UIProcess', 'API', 'glib'),
     155      os.path.join('Source', 'WebKit', 'UIProcess', 'API', 'gtk'),
     156      os.path.join('Source', 'WebKit', 'UIProcess', 'API', 'wpe'),
     157      os.path.join('Source', 'WebKit', 'WebProcess', 'InjectedBundle', 'API', 'glib'),
     158      os.path.join('Source', 'WebKit', 'WebProcess', 'InjectedBundle', 'API', 'gtk'),
     159      os.path.join('Source', 'WebKit', 'WebProcess', 'InjectedBundle', 'API', 'wpe')],
    160160     ["-readability/enum_casing"]),
    161161
     
    179179      "-whitespace/parens"]),
    180180
    181     # WebKit2 rules:
    182     # WebKit2 and certain directories have idiosyncracies.
     181    # WebKit rules:
     182    # WebKit and certain directories have idiosyncracies.
    183183    ([# NPAPI has function names with underscores.
    184       os.path.join('Source', 'WebKit2', 'WebProcess', 'Plugins', 'Netscape')],
     184      os.path.join('Source', 'WebKit', 'WebProcess', 'Plugins', 'Netscape')],
    185185     ["-readability/naming"]),
    186     ([# The WebKit2 C API has names with underscores and whitespace-aligned
     186    ([# The WebKit C API has names with underscores and whitespace-aligned
    187187      # struct members. Also, we allow unnecessary parameter names in
    188       # WebKit2 APIs because we're matching CF's header style.
     188      # WebKit APIs because we're matching CF's header style.
    189189      # Additionally, we use word which starts with non-capital letter 'k'
    190190      # for types of enums.
    191       os.path.join('Source', 'WebKit2', 'UIProcess', 'API', 'C'),
    192       os.path.join('Source', 'WebKit2', 'Shared', 'API', 'c'),
    193       os.path.join('Source', 'WebKit2', 'WebProcess', 'InjectedBundle', 'API', 'c')],
     191      os.path.join('Source', 'WebKit', 'UIProcess', 'API', 'C'),
     192      os.path.join('Source', 'WebKit', 'Shared', 'API', 'c'),
     193      os.path.join('Source', 'WebKit', 'WebProcess', 'InjectedBundle', 'API', 'c')],
    194194     ["-readability/enum_casing",
    195195      "-readability/naming",
     
    344344    os.path.join('Source', 'JavaScriptCore', 'icu'),
    345345    os.path.join('Source', 'WebCore', 'icu'),
    346     os.path.join('Source', 'WebKit', 'mac', 'icu'),
     346    os.path.join('Source', 'WebKitLegacy', 'mac', 'icu'),
    347347    os.path.join('Source', 'WTF', 'icu'),
    348348    ]
Note: See TracChangeset for help on using the changeset viewer.