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 | |
niklase@google.com | 1198db9 | 2011-06-09 07:07:24 +0000 | [diff] [blame] | 27 | def CheckChangeOnCommit (input_api, output_api): |
| 28 | results = [] |
| 29 | results.extend(input_api.canned_checks.CheckOwners(input_api, output_api)) |
| 30 | return results |
niklase@google.com | da159d6 | 2011-05-30 11:51:34 +0000 | [diff] [blame] | 31 | |
| 32 | |
niklase@google.com | da159d6 | 2011-05-30 11:51:34 +0000 | [diff] [blame] | 33 | |
| 34 | |
niklase@google.com | 1198db9 | 2011-06-09 07:07:24 +0000 | [diff] [blame] | 35 | #sources = lambda x: input_api.FilterSourceFile(x, black_list=black_list) |
| 36 | |