blob: d824286e79a90b2f76b52330dce4c3ce1a6c622f [file] [log] [blame]
niklase@google.comda159d62011-05-30 11:51:34 +00001
2
3
4
5webrtc_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'
10r'.*? in the file PATENTS. All contributing project authors may\n'
11r'.*? be found in the AUTHORS file in the root of the source tree\n'
12 )
13
14
15def 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.com1198db92011-06-09 07:07:24 +000027def CheckChangeOnCommit (input_api, output_api):
28 results = []
29 results.extend(input_api.canned_checks.CheckOwners(input_api, output_api))
30 return results
niklase@google.comda159d62011-05-30 11:51:34 +000031
32
niklase@google.comda159d62011-05-30 11:51:34 +000033
34
niklase@google.com1198db92011-06-09 07:07:24 +000035#sources = lambda x: input_api.FilterSourceFile(x, black_list=black_list)
36