parameters: (input_api, output_api)
return_statement: return results
docstring: Runs the V8 presubmit checks.
docstring_summary: Runs the V8 presubmit checks.
docstring_tokens: Runs the V8 presubmit checks .
function: def _V8PresubmitChecks(input_api, output_api):
    """Runs the V8 presubmit checks."""
    import sys
    sys.path.append(input_api.os_path.join(
          input_api.PresubmitLocalPath(), 'tools'))
    from v8_presubmit import CppLintProcessor
    from v8_presubmit import TorqueLintProcessor
    from v8_presubmit import SourceProcessor
    from v8_presubmit import StatusFilesProcessor
  
    def FilterFile(affected_file):
      return input_api.FilterSourceFile(
        affected_file,
        white_list=None,
        black_list=_NO_LINT_PATHS)
  
    def FilterTorqueFile(affected_file):
      return input_api.FilterSourceFile(
        affected_file,
        white_list=(r'.+\.tq'))
  
    results = []
    if not CppLintProcessor().RunOnFiles(
        input_api.AffectedFiles(file_filter=FilterFile, include_deletes=False)):
      results.append(output_api.PresubmitError("C++ lint check failed"))
    if not TorqueLintProcessor().RunOnFiles(
        input_api.AffectedFiles(file_filter=FilterTorqueFile,
                                include_deletes=False)):
      results.append(output_api.PresubmitError("Torque format check failed"))
    if not SourceProcessor().RunOnFiles(
        input_api.AffectedFiles(include_deletes=False)):
      results.append(output_api.PresubmitError(
          "Copyright header, trailing whitespaces and two empty lines " \
          "between declarations check failed"))
    if not StatusFilesProcessor().RunOnFiles(
        input_api.AffectedFiles(include_deletes=True)):
      results.append(output_api.PresubmitError("Status file check failed"))
    results.extend(input_api.canned_checks.CheckAuthorizedAuthor(
        input_api, output_api, bot_whitelist=[
          'v8-ci-autoroll-builder@chops-service-accounts.iam.gserviceaccount.com'
        ]))
    return results
function_tokens: def _V8PresubmitChecks ( input_api , output_api ) : import sys sys . path . append ( input_api . os_path . join ( input_api . PresubmitLocalPath ( ) , 'tools' ) ) from v8_presubmit import CppLintProcessor from v8_presubmit import TorqueLintProcessor from v8_presubmit import SourceProcessor from v8_presubmit import StatusFilesProcessor def FilterFile ( affected_file ) : return input_api . FilterSourceFile ( affected_file , white_list = None , black_list = _NO_LINT_PATHS ) def FilterTorqueFile ( affected_file ) : return input_api . FilterSourceFile ( affected_file , white_list = ( r'.+\.tq' ) ) results = [ ] if not CppLintProcessor ( ) . RunOnFiles ( input_api . AffectedFiles ( file_filter = FilterFile , include_deletes = False ) ) : results . append ( output_api . PresubmitError ( "C++ lint check failed" ) ) if not TorqueLintProcessor ( ) . RunOnFiles ( input_api . AffectedFiles ( file_filter = FilterTorqueFile , include_deletes = False ) ) : results . append ( output_api . PresubmitError ( "Torque format check failed" ) ) if not SourceProcessor ( ) . RunOnFiles ( input_api . AffectedFiles ( include_deletes = False ) ) : results . append ( output_api . PresubmitError ( "Copyright header, trailing whitespaces and two empty lines " "between declarations check failed" ) ) if not StatusFilesProcessor ( ) . RunOnFiles ( input_api . AffectedFiles ( include_deletes = True ) ) : results . append ( output_api . PresubmitError ( "Status file check failed" ) ) results . extend ( input_api . canned_checks . CheckAuthorizedAuthor ( input_api , output_api , bot_whitelist = [ 'v8-ci-autoroll-builder@chops-service-accounts.iam.gserviceaccount.com' ] ) ) return results