Chromium Code Reviews| Index: gcl.py |
| =================================================================== |
| --- gcl.py (revision 99952) |
| +++ gcl.py (working copy) |
| @@ -1174,7 +1174,6 @@ |
| change_info.Save() |
| return 0 |
|
M-A Ruel
2011/09/07 19:18:29
keep 2 lines between file level symbols as per sty
Alexei Svitkine (slow)
2011/09/07 20:27:57
Done.
|
| - |
| @need_change_and_args |
| def CMDlint(change_info, args): |
| """Runs cpplint.py on all the files in the change list. |
| @@ -1183,6 +1182,7 @@ |
| """ |
| try: |
| import cpplint |
| + import cpplint_chromium |
| except ImportError: |
| ErrorExit("You need to install cpplint.py to lint C++ files.") |
| # Change the current working directory before calling lint so that it |
| @@ -1200,6 +1200,7 @@ |
| if not black_list: |
| black_list = DEFAULT_LINT_IGNORE_REGEX |
| black_regex = re.compile(black_list) |
| + extra_check_functions = [cpplint_chromium.CheckPointerDeclarationWhitespace] |
| # Access to a protected member _XX of a client class |
| # pylint: disable=W0212 |
| for filename in filenames: |
| @@ -1207,7 +1208,8 @@ |
| if black_regex.match(filename): |
| print "Ignoring file %s" % filename |
| else: |
| - cpplint.ProcessFile(filename, cpplint._cpplint_state.verbose_level) |
| + cpplint.ProcessFile(filename, cpplint._cpplint_state.verbose_level, |
| + extra_check_functions) |
| else: |
| print "Skipping file %s" % filename |