Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(406)

Side by Side Diff: third_party/WebKit/Tools/Scripts/webkitpy/style/checker.py

Issue 2591803002: NOT FOR LANDING: Thread the needle through all webmodules.
Patch Set: AddEventListener sketched out. Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « third_party/WebKit/Source/wtf/Variant.h ('k') | third_party/WebKit/fake_gen/DEPS » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (C) 2009 Google Inc. All rights reserved. 1 # Copyright (C) 2009 Google Inc. All rights reserved.
2 # Copyright (C) 2010 Chris Jerdonek (chris.jerdonek@gmail.com) 2 # Copyright (C) 2010 Chris Jerdonek (chris.jerdonek@gmail.com)
3 # Copyright (C) 2010 ProFUSION embedded systems 3 # Copyright (C) 2010 ProFUSION embedded systems
4 # 4 #
5 # Redistribution and use in source and binary forms, with or without 5 # Redistribution and use in source and binary forms, with or without
6 # modification, are permitted provided that the following conditions are 6 # modification, are permitted provided that the following conditions are
7 # met: 7 # met:
8 # 8 #
9 # * Redistributions of source code must retain the above copyright 9 # * Redistributions of source code must retain the above copyright
10 # notice, this list of conditions and the following disclaimer. 10 # notice, this list of conditions and the following disclaimer.
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 203
204 # Files to skip that are more common or obvious. 204 # Files to skip that are more common or obvious.
205 # 205 #
206 # This list should be in addition to files with FileType.NONE. Files 206 # This list should be in addition to files with FileType.NONE. Files
207 # with FileType.NONE are automatically skipped without warning. 207 # with FileType.NONE are automatically skipped without warning.
208 _SKIPPED_FILES_WITHOUT_WARNING = [ 208 _SKIPPED_FILES_WITHOUT_WARNING = [
209 "LayoutTests" + os.path.sep, 209 "LayoutTests" + os.path.sep,
210 "Source/ThirdParty/leveldb" + os.path.sep, 210 "Source/ThirdParty/leveldb" + os.path.sep,
211 # Prevents this being recognized as a text file. 211 # Prevents this being recognized as a text file.
212 "Source/WebCore/GNUmakefile.features.am.in", 212 "Source/WebCore/GNUmakefile.features.am.in",
213 # BECAUSE I HACKED IT GOOD
214 "Source/wtf/Variant.h",
213 ] 215 ]
214 216
215 # Extensions of files which are allowed to contain carriage returns. 217 # Extensions of files which are allowed to contain carriage returns.
216 _CARRIAGE_RETURN_ALLOWED_FILE_EXTENSIONS = [ 218 _CARRIAGE_RETURN_ALLOWED_FILE_EXTENSIONS = [
217 'png', 219 'png',
218 'vcproj', 220 'vcproj',
219 'vsprops', 221 'vsprops',
220 ] 222 ]
221 223
222 # The maximum number of errors to report per file, per category. 224 # The maximum number of errors to report per file, per category.
(...skipping 488 matching lines...) Expand 10 before | Expand all | Expand 10 after
711 checker = self._dispatcher.dispatch(file_path, 713 checker = self._dispatcher.dispatch(file_path,
712 style_error_handler, 714 style_error_handler,
713 min_confidence) 715 min_confidence)
714 716
715 if checker is None: 717 if checker is None:
716 raise AssertionError("File should not be checked: '%s'" % file_path) 718 raise AssertionError("File should not be checked: '%s'" % file_path)
717 719
718 _log.debug("Using class: " + checker.__class__.__name__) 720 _log.debug("Using class: " + checker.__class__.__name__)
719 721
720 checker.check(lines) 722 checker.check(lines)
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/wtf/Variant.h ('k') | third_party/WebKit/fake_gen/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698