Demo/bin/Debug/front_end/cm_modes/PRESUBMIT.py
(完整代码) 1001B# Copyright 2015 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.
def _CheckCodeMirrorChanges(input_api, output_api):
errorText = ("ERROR: Attempt to modify CodeMirror. The only allowed changes are "
"rolls from the upstream (http://codemirror.net). If this is a roll, "
"make sure you mention 'roll CodeMirror' (no quotes) in the change description.\n"
"CodeMirror rolling instructions:\n"
" https://sites.google.com/a/chromium.org/devtools-codemirror-rolling")
changeDescription = input_api.change.DescriptionText()
errors = []
if "roll codemirror" not in changeDescription.lower():
errors.append(output_api.PresubmitError(errorText))
return errors
def CheckChangeOnUpload(input_api, output_api):
results = []
results.extend(_CheckCodeMirrorChanges(input_api, output_api))
return results
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。