Lines Matching +full:results +full:- +full:code
3 # Use of this source code is governed by a BSD-style license that can be
7 """Top-level presubmit script for Skia.
9 See http://dev.chromium.org/developers/how-tos/depottools/presubmit-scripts
27 'skia-buildbots.google.com', 'skia-swarming-bots', 'skia-public',
28 'skia-corp.google.com', 'chops-service-accounts']]
37 if len(contents) > 1 and contents[-1:] != '\n':
61 results = []
63 results.append(
67 return results
101 results = []
103 results.append(
108 return results
112 results = []
114 year_range_pattern = r'%s(-%s)?' % (year_pattern, year_pattern)
125 results.append(output_api.PresubmitError(
127 return results
132 results = []
135 return results
141 results.append(output_api.PresubmitError(
143 return results
156 cmd = ['python', os.path.join('bin', 'fetch-gn')]
163 results = []
167 cmd = [gn, 'format', '--dry-run', f.LocalPath()]
172 results.append(output_api.PresubmitError(
174 return results
179 results = []
183 # First-level headers in markdown look a lot like version control
187 results.append(
191 return results
199 '--dry-run'] + files
219 results = []
226 return results
231 results.append(output_api.PresubmitError(e.output))
232 return results
245 results = []
247 ['git', 'diff', '--no-ext-diff'])
249 results += [output_api.PresubmitError(
256 return results
260 results = []
270 results.extend(_CheckChangeHasEol(
273 results.extend(input_api.canned_checks.CheckChangeHasNoCR(
275 results.extend(input_api.canned_checks.CheckChangeHasNoStrayWhitespace(
277 results.extend(_JsonChecks(input_api, output_api))
278 results.extend(_IfDefChecks(input_api, output_api))
279 results.extend(_CopyrightChecks(input_api, output_api,
281 results.extend(_CheckDEPSValid(input_api, output_api))
282 results.extend(_CheckIncludesFormatted(input_api, output_api))
283 results.extend(_CheckGNFormatted(input_api, output_api))
284 results.extend(_CheckGitConflictMarkers(input_api, output_api))
285 results.extend(_RegenerateAllExamplesCPP(input_api, output_api))
286 return results
291 results = []
292 results.extend(_CommonChecks(input_api, output_api))
295 results.extend(_InfraTests(input_api, output_api))
296 results.extend(_CheckReleaseNotesForPublicAPI(input_api, output_api))
297 return results
318 self._gerrit.GetChangeInfo(self._issue)['labels']['Code-Review'])
324 self._gerrit.GetChangeInfo(self._issue)['labels']['Code-Review'])
333 results = []
339 # We only care about files that end in .h and are under the top-level
349 results.append(output_api.PresubmitPromptWarning(
352 return results
360 * Adds 'No-Try: true' if the CL contains only docs changes.
365 # Skip PostUploadHooks for all auto-commit service account bots. New
367 # the "--use-commit-queue" flag to "git cl upload".
372 results = []
388 # If the change includes only doc changes then add No-Try: true in the
390 if all_docs_changes and 'true' not in footers.get('No-Try', []):
392 change.AddDescriptionFooter('No-Try', 'true')
393 results.append(
396 '\'No-Try: true\' to the CL\'s description'))
403 return results
408 results = []
409 results.extend(_CommonChecks(input_api, output_api))
412 results.extend(
414 return results