Changeset 56942 in webkit


Ignore:
Timestamp:
Apr 1, 2010 3:39:51 PM (14 years ago)
Author:
eric@webkit.org
Message:

2010-04-01 Eric Seidel <eric@webkit.org>

Unreviewed, only ignoring chatty style errors.

check-webkit-style: WebKit needs a python style checker
https://bugs.webkit.org/show_bug.cgi?id=33639

Remove the 79 char line limit by ignoring
pep8/E501. Because we have our own report_error
implementation we have to ignore E501 by hand
instead of passing --ignore=E501.

Right now over 1400 lines of our existing python
fail E501 so this rule just generates needless noise.
The rest of WebKit has no wrapping rule so it makes
little sense for our Python to differ here.

  • Scripts/webkitpy/style/processors/python.py:
Location:
trunk/WebKitTools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebKitTools/ChangeLog

    r56937 r56942  
     12010-04-01  Eric Seidel  <eric@webkit.org>
     2
     3        Unreviewed, only ignoring chatty style errors.
     4
     5        check-webkit-style: WebKit needs a python style checker
     6        https://bugs.webkit.org/show_bug.cgi?id=33639
     7
     8        Remove the 79 char line limit by ignoring
     9        pep8/E501.  Because we have our own report_error
     10        implementation we have to ignore E501 by hand
     11        instead of passing --ignore=E501.
     12
     13        Right now over 1400 lines of our existing python
     14        fail E501 so this rule just generates needless noise.
     15        The rest of WebKit has no wrapping rule so it makes
     16        little sense for our Python to differ here.
     17
     18        * Scripts/webkitpy/style/processors/python.py:
     19
    1202010-04-01  Adam Barth  <abarth@webkit.org>
    221
  • trunk/WebKitTools/Scripts/webkitpy/style/processors/python.py

    r56899 r56942  
    3737        # Initialize pep8.options, which is necessary for
    3838        # Checker.check_all() to execute.
     39
    3940        pep8.process_options(arglist=[self._file_path])
    40 
    4141        checker = pep8.Checker(self._file_path)
    4242
     
    4848            pep8_message = text[5:]
    4949
     50            # We ignore PEP8/E501 -- line limit of 79 characters. Most of our
     51            # python code fails E501 and the rest of WebKit has no wrap limit.
     52            if pep8_code == "E501":
     53                return
     54
    5055            category = "pep8/" + pep8_code
    5156
Note: See TracChangeset for help on using the changeset viewer.