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

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

Issue 2384943002: Trim more unneeded stuff from Blink's C++ style checker script. (Closed)
Patch Set: . Created 4 years, 2 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
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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 '-readability/casting', 85 '-readability/casting',
86 '-readability/function', 86 '-readability/function',
87 '-runtime/arrays', # variable length array 87 '-runtime/arrays', # variable length array
88 '-runtime/casting', 88 '-runtime/casting',
89 '-runtime/sizeof', 89 '-runtime/sizeof',
90 '-runtime/explicit', # explicit 90 '-runtime/explicit', # explicit
91 '-runtime/virtual', # virtual dtor 91 '-runtime/virtual', # virtual dtor
92 '-runtime/printf', 92 '-runtime/printf',
93 '-runtime/threadsafe_fn', 93 '-runtime/threadsafe_fn',
94 '-runtime/rtti', 94 '-runtime/rtti',
95 '-whitespace/blank_line',
96 '-whitespace/end_of_line',
97 # List Python pep8 categories last. 95 # List Python pep8 categories last.
98 # 96 #
99 # Because much of WebKit's Python code base does not abide by the 97 # Because much of WebKit's Python code base does not abide by the
100 # PEP8 79 character limit, we ignore the 79-character-limit category 98 # PEP8 79 character limit, we ignore the 79-character-limit category
101 # pep8/E501 for now. 99 # pep8/E501 for now.
102 # 100 #
103 # FIXME: Consider bringing WebKit's Python code base into conformance 101 # FIXME: Consider bringing WebKit's Python code base into conformance
104 # with the 79 character limit, or some higher limit that is 102 # with the 79 character limit, or some higher limit that is
105 # agreeable to the WebKit project. 103 # agreeable to the WebKit project.
106 '-pep8/E501', 104 '-pep8/E501',
(...skipping 614 matching lines...) Expand 10 before | Expand all | Expand 10 after
721 checker = self._dispatcher.dispatch(file_path, 719 checker = self._dispatcher.dispatch(file_path,
722 style_error_handler, 720 style_error_handler,
723 min_confidence) 721 min_confidence)
724 722
725 if checker is None: 723 if checker is None:
726 raise AssertionError("File should not be checked: '%s'" % file_path) 724 raise AssertionError("File should not be checked: '%s'" % file_path)
727 725
728 _log.debug("Using class: " + checker.__class__.__name__) 726 _log.debug("Using class: " + checker.__class__.__name__)
729 727
730 checker.check(lines) 728 checker.check(lines)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698