• Home
  • Raw
  • Download

Lines Matching +full:results +full:- +full:code

6 #     * Redistributions of source code must retain the above copyright
28 """Top-level presubmit script for V8.
30 See http://dev.chromium.org/developers/how-tos/depottools/presubmit-scripts
39 # This line is 'magic' in that git-cl looks for it to decide whether to
40 # use Python3 instead of Python2 when running the code in this file.
54 # Regular expression that matches code which should not be run through cpplint.
56 r'src[\\\/]base[\\\/]export-template\.h',
60 # Regular expression that matches code only used for test binaries
63 r'.+-unittest\.cc',
65 r'src[\\\/]compiler[\\\/]ast-graph-builder\.cc',
67 r'src[\\\/]extensions[\\\/]gc-extension\.cc',
69 r'src[\\\/]runtime[\\\/]runtime-test\.cc',
77 'production code. It is OK to ignore this warning if you know what\n'
109 results = []
112 results.append(output_api.PresubmitError("C++ lint check failed"))
116 results.append(output_api.PresubmitError("Torque format check failed"))
120 results.append(output_api.PresubmitError("JS format check failed"))
123 results.append(output_api.PresubmitError(
128 results.append(output_api.PresubmitError("Status file check failed"))
129 results.extend(input_api.canned_checks.CheckAuthorizedAuthor(
131 'v8-ci-autoroll-builder@chops-service-accounts.iam.gserviceaccount.com'
133 return results
138 change. Breaking - rules is an error, breaking ! rules is a
143 # eval-ed and thus doesn't have __file__.
235 results = []
237 results.append(output_api.PresubmitError(
241 results.append(output_api.PresubmitPromptOrNotify(
246 return results
261 dash_dot_slash_pattern = input_api.re.compile(r'[-./]')
308 file_inclusion_pattern = r'(?!.+-inl\.h).+\.h'
309 include_directive_pattern = input_api.re.compile(r'#include ".+-inl.h"')
311 'You are including an inline header (e.g. foo-inl.h) within a normal\n'
337 non-testing code. For now this is just a best-effort implementation
341 # We only scan .cc files, as the declaration of for-testing functions in
352 r'::[A-Za-z0-9_]+({})|({})[^;]+'.format(base_function_pattern,
420 Only skip if include/v8-version.h has been updated."""
421 src_version = 'include/v8-version.h'
429 """Check that bug entries are well-formed in commit message."""
433 results = []
445 results.append(
449 results.append(bogus_bug_msg.format(bug))
451 results.append(bogus_bug_msg.format(bug))
452 return [output_api.PresubmitError(r) for r in results]
461 results = []
468 results.append('JSON validation failed for {}. Error:\n{}'.format(
471 return [output_api.PresubmitError(r) for r in results]
476 Checks that all user-defined constructors and assignment operators are marked
494 # Skip src/bigint/ because it's meant to be V8-independent.
499 class_name = r'\b([A-Z][A-Za-z0-9_:]*)(?:::\1)?'
530 results = []
531 results.extend(_CommonChecks(input_api, output_api))
532 return results
536 results = []
537 results.extend(_CommonChecks(input_api, output_api))
538 results.extend(input_api.canned_checks.CheckChangeHasDescription(
541 results.extend(input_api.canned_checks.CheckTreeIsOpen(
543 json_url='http://v8-status.appspot.com/current?format=json'))
544 return results