Changeset 52906 in webkit
- Timestamp:
- Jan 7, 2010 12:36:52 AM (14 years ago)
- Location:
- trunk/WebKitTools
- Files:
-
- 1 added
- 3 edited
- 6 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebKitTools/ChangeLog
r52902 r52906 1 2010-01-07 Chris Jerdonek <chris.jerdonek@gmail.com> 2 3 Reviewed by Eric Seidel. 4 5 Moved style-related modules to webkitpy.style sub-package. 6 7 https://bugs.webkit.org/show_bug.cgi?id=32971 8 9 * Scripts/check-webkit-style: 10 - Updated import statement. 11 12 * Scripts/test-webkitpy: 13 - Updated import statements. 14 15 * Scripts/webkitpy/cpp_style.py: Removed. 16 - Moved to webkitpy/style. 17 18 * Scripts/webkitpy/cpp_style_unittest.py: Removed. 19 - Moved to webkitpy/style. 20 21 * Scripts/webkitpy/style.py: Removed. 22 - Moved to webkitpy/style/checker.py. 23 24 * Scripts/webkitpy/style/__init__.py: Added. 25 - Added containing webkitpy directory to package search path. 26 27 * Scripts/webkitpy/style/checker.py: Copied from Scripts/webkitpy/style.py. 28 * Scripts/webkitpy/style/checker_unittest.py: Copied from Scripts/webkitpy/style_unittest.py. 29 - Updated import statement. 30 31 * Scripts/webkitpy/style/cpp_style.py: Copied from Scripts/webkitpy/cpp_style.py. 32 * Scripts/webkitpy/style/cpp_style_unittest.py: Copied from Scripts/webkitpy/cpp_style_unittest.py. 33 - Update import statement. 34 35 * Scripts/webkitpy/style/text_style.py: Copied from Scripts/webkitpy/text_style.py. 36 * Scripts/webkitpy/style/text_style_unittest.py: Copied from Scripts/webkitpy/text_style_unittest.py. 37 * Scripts/webkitpy/style_unittest.py: Removed. 38 - Moved to webkitpy/style/checker_unittest.py. 39 40 * Scripts/webkitpy/text_style.py: Removed. 41 - Moved to webkitpy/style. 42 43 * Scripts/webkitpy/text_style_unittest.py: Removed. 44 - Moved to webkitpy/style. 45 1 46 2010-01-06 Kinuko Yasuda <kinuko@chromium.org> 2 47 -
trunk/WebKitTools/Scripts/check-webkit-style
r52849 r52906 48 48 import sys 49 49 50 import webkitpy.style as style50 import webkitpy.style.checker as checker 51 51 from webkitpy.scm import detect_scm_system 52 52 … … 60 60 'replace') 61 61 62 defaults = style.ArgumentDefaults(style.DEFAULT_OUTPUT_FORMAT,63 style.DEFAULT_VERBOSITY,64 style.WEBKIT_FILTER_RULES)62 defaults = checker.ArgumentDefaults(checker.DEFAULT_OUTPUT_FORMAT, 63 checker.DEFAULT_VERBOSITY, 64 checker.WEBKIT_FILTER_RULES) 65 65 66 parser = style.ArgumentParser(defaults)66 parser = checker.ArgumentParser(defaults) 67 67 (files, options) = parser.parse(sys.argv[1:]) 68 68 69 69 # FIXME: Eliminate the need to call this function. 70 70 # Options should be passed into process_file instead. 71 style.set_options(options)71 checker.set_options(options) 72 72 73 73 if files: 74 74 for filename in files: 75 style.process_file(filename)75 checker.process_file(filename) 76 76 77 77 else: … … 89 89 else: 90 90 patch = scm.create_patch() 91 style.process_patch(patch)91 checker.process_patch(patch) 92 92 93 sys.stderr.write('Total errors found: %d\n' % style.error_count())94 sys.exit( style.error_count() > 0)93 sys.stderr.write('Total errors found: %d\n' % checker.error_count()) 94 sys.exit(checker.error_count() > 0) 95 95 96 96 -
trunk/WebKitTools/Scripts/test-webkitpy
r52714 r52906 41 41 from webkitpy.committers_unittest import * 42 42 from webkitpy.credentials_unittest import * 43 from webkitpy. cpp_style_unittest import *43 from webkitpy.style.cpp_style_unittest import * 44 44 from webkitpy.diff_parser_unittest import * 45 45 from webkitpy.executive_unittest import * … … 48 48 from webkitpy.steps.steps_unittest import * 49 49 from webkitpy.steps.updatechangelogswithreview_unittests import * 50 from webkitpy.style _unittest import *51 from webkitpy. text_style_unittest import *50 from webkitpy.style.checker_unittest import * 51 from webkitpy.style.text_style_unittest import * 52 52 from webkitpy.webkit_logging_unittest import * 53 53 from webkitpy.webkitport_unittest import * -
trunk/WebKitTools/Scripts/webkitpy/style/checker_unittest.py
r52905 r52906 37 37 import unittest 38 38 39 import style39 import checker as style 40 40 41 41 -
trunk/WebKitTools/Scripts/webkitpy/style/cpp_style_unittest.py
r52905 r52906 42 42 import unittest 43 43 import cpp_style 44 # FIXME: Remove the need to import something from style. See the44 # FIXME: Remove the need to import something from checker. See the 45 45 # FIXME notes near the STYLE_CATEGORIES definition for a 46 46 # suggestion on how to best do this. 47 from styleimport STYLE_CATEGORIES47 from checker import STYLE_CATEGORIES 48 48 49 49 # This class works as an error collector and replaces cpp_style.Error
Note: See TracChangeset
for help on using the changeset viewer.