blob: eda670bc5a096bc5dbfe295da932e31ad9958bae [file] [log] [blame]
# Copyright 2014 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Presubmit script for app_list.
for more details about the presubmit API built into depot_tools.
def CheckChangeLintsClean(input_api, output_api):
"""Makes sure that the ui/app_list/ code is cpplint clean."""
black_list = input_api.DEFAULT_BLACK_LIST
sources = lambda x: input_api.FilterSourceFile(
x, white_list = INCLUDE_CPP_FILES_ONLY, black_list = black_list)
return input_api.canned_checks.CheckChangeLintsClean(
input_api, output_api, sources, lint_filters=[], verbose_level=1)
def CheckChangeOnUpload(input_api, output_api):
results = []
results += CheckChangeLintsClean(input_api, output_api)
return results