blob: 6f19e24a465267508d51978e286b662c047381cd [file] [log] [blame]
Nico Weber077f1a32015-08-06 15:08:57 -07001# Copyright 2015 The Chromium Authors. All rights reserved.
2# Use of this source code is governed by a BSD-style license that can be
3# found in the LICENSE file.
4
5"""Presubmit script for pdfium.
6
7See http://dev.chromium.org/developers/how-tos/depottools/presubmit-scripts
8for more details about the presubmit API built into depot_tools.
9"""
10
Dan Sinclair22d66072016-02-22 11:56:05 -050011LINT_FILTERS = [
12 '-',
13 '+build/header_guard',
14]
15
Nico Weber077f1a32015-08-06 15:08:57 -070016def CheckChangeOnUpload(input_api, output_api):
17 results = []
18 results += input_api.canned_checks.CheckPatchFormatted(input_api, output_api)
Dan Sinclair22d66072016-02-22 11:56:05 -050019 results += input_api.canned_checks.CheckChangeLintsClean(
20 input_api, output_api, None, LINT_FILTERS)
Nico Weber077f1a32015-08-06 15:08:57 -070021 return results