niklase@google.com | da159d6 | 2011-05-30 11:51:34 +0000 | [diff] [blame^] | 1 | |
| 2 | |
| 3 | |
| 4 | |
| 5 | webrtc_license_header = ( |
| 6 | r'.*? Copyright \(c\) 2011 The WebRTC project authors' |
| 7 | r'.*?Use of this source code is governed by a BSD-style license\n' |
| 8 | r'.*? that can be found in the LICENSE file in the root of the source\n' |
| 9 | r'.*? tree. An additional intellectual property rights grant can be found\n' |
| 10 | r'.*? in the file PATENTS. All contributing project authors may\n' |
| 11 | r'.*? be found in the AUTHORS file in the root of the source tree\n' |
| 12 | ) |
| 13 | |
| 14 | |
| 15 | def CheckChangeOnUpload(input_api, output_api): |
| 16 | results = [] |
| 17 | results.extend(input_api.canned_checks.CheckLongLines(input_api, output_api,maxlen=95)) |
| 18 | results.extend(input_api.canned_checks.CheckChangeHasNoTabs(input_api, output_api)) |
| 19 | return results |
| 20 | |
| 21 | |
| 22 | #results.extend(CheckChangeLintsClean(input_api, output_api)) |
| 23 | #results.extend(input_api.canned_checks.CheckLicense(input_api, output_api, license_re=webrtc_license_header)) |
| 24 | |
| 25 | |
| 26 | |
| 27 | |
| 28 | |
| 29 | #def CheckChangeOnCommit (input_api, output_api): |
| 30 | # results = [] |
| 31 | # sources = lambda x: input_api.FilterSourceFile(x, black_list=black_list) |
| 32 | # results.extend(input_api.canned_checks.CheckOwners(input_api, output_api, source_file_filter=sources)) |
| 33 | # return results |
| 34 | |
| 35 | |