Changeset 95446 in webkit


Ignore:
Timestamp:
Sep 19, 2011 11:29:27 AM (13 years ago)
Author:
alexis.menard@openbossa.org
Message:

Style checker should not check public Qt WK2 API for parameter_name.
https://bugs.webkit.org/show_bug.cgi?id=68359

Reviewed by Andreas Kling.

The public Qt WK2 APIs have different rules than WebKit for parameters of methods in h files.
Add an exception in the style checker to disable the check. Also added the test for it.

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

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r95444 r95446  
     12011-09-19  Alexis Menard  <alexis.menard@openbossa.org>
     2
     3        Style checker should not check public Qt WK2 API for parameter_name.
     4        https://bugs.webkit.org/show_bug.cgi?id=68359
     5
     6        Reviewed by Andreas Kling.
     7
     8        The public Qt WK2 APIs have different rules than WebKit for parameters of methods in h files.
     9        Add an exception in the style checker to disable the check. Also added the test for it.
     10
     11        * Scripts/webkitpy/style/checker.py:
     12        * Scripts/webkitpy/style/checker_unittest.py:
     13
    1142011-09-19  Leandro Pereira  <leandro@profusion.mobi>
    215
  • trunk/Tools/Scripts/webkitpy/style/checker.py

    r92857 r95446  
    145145       "Tools/MiniBrowser/qt"],
    146146      ["-build/include"]),
     147
     148    ([# The Qt APIs use Qt/QML naming style, which includes
     149      # naming parameters in h files.
     150      "Source/WebKit2/UIProcess/API/qt"],
     151     ["-readability/parameter_name"]),
     152
    147153    ([# The GTK+ APIs use GTK+ naming style, which includes
    148154      # lower-cased, underscore-separated values, whitespace before
  • trunk/Tools/Scripts/webkitpy/style/checker_unittest.py

    r92857 r95446  
    258258                    "build/include")
    259259
     260        assertNoCheck("Source/WebKit2/UIProcess/API/qt",
     261                    "readability/parameter_name")
     262
    260263        assertNoCheck("Source/WebCore/ForwardingHeaders/debugger/Debugger.h",
    261264                      "build/header_guard")
Note: See TracChangeset for help on using the changeset viewer.