This repository has been archived by the owner on Jun 16, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 111
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
webkitpy: integrate pylint into check-webkit-style, part I
https://bugs.webkit.org/show_bug.cgi?id=101285 Reviewed by Ojan Vafai. This patch re-works lint-webkitpy so that the logic is pushed into check-webkit-style (mostly); we don't yet control which messages are displayed using the rules in webkitpy/style/checker.py (we're still using the pylintrc to suppress messages instead), but otherwise things work. For now we will only report pylint "errors", not warnings. * Scripts/lint-webkitpy: * Scripts/webkitpy/style/checker.py: * Scripts/webkitpy/style/checkers/python.py: (PythonChecker): (PythonChecker.check): (PythonChecker._check_pep8): (PythonChecker._check_pylint): (Pylinter): (Pylinter.__init__): (Pylinter.run): (_FilteredStringIO): (_FilteredStringIO.__init__): (_FilteredStringIO.write): (_FilteredStringIO._filter): * Scripts/webkitpy/style/checkers/python_unittest.py: (PythonCheckerTest.test_check): * Scripts/webkitpy/style/checkers/python_unittest_input.py: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@134309 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
dpranke@chromium.org
committed
Nov 12, 2012
1 parent
a00078e
commit 52449c2
Showing
6 changed files
with
122 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 4 additions & 2 deletions
6
Tools/Scripts/webkitpy/style/checkers/python_unittest_input.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
# This file is sample input for python_unittest.py and includes a single | ||
# error which is an extra space at the end of this line. | ||
# This file is sample input for python_unittest.py and includes two | ||
# problems, one that will generate a PEP-8 warning for trailing whitespace | ||
# and one that will generate a pylint error for an undefined variable. | ||
print error() |