Lines Matching refs:commit
322 def _check_cmd(hook_name, project, commit, cmd, fixup_func=None, **kwargs): argument
324 return [rh.results.HookCommandResult(hook_name, project, commit,
337 def check_custom(project, commit, _desc, diff, options=None, **kwargs): argument
339 return _check_cmd(options.name, project, commit, options.args((), diff),
343 def check_bpfmt(project, commit, _desc, diff, options=None): argument
353 data = rh.git.get_file_content(commit, d.file)
357 'bpfmt', project, commit, error=result.stdout,
362 def check_checkpatch(project, commit, _desc, diff, options=None): argument
367 return _check_cmd('checkpatch.pl', project, commit, cmd,
368 input=rh.git.get_patch(commit))
371 def check_clang_format(project, commit, _desc, diff, options=None): argument
378 options.args(('--style', 'file', '--commit', commit), diff))
381 return _check_cmd('clang-format', project, commit, cmd,
385 def check_google_java_format(project, commit, _desc, _diff, options=None): argument
393 '--commit', commit] + options.args()
396 return _check_cmd('google-java-format', project, commit, cmd,
400 def check_commit_msg_bug_field(project, commit, desc, _diff, options=None): argument
421 project, commit, error=error)]
424 def check_commit_msg_changeid_field(project, commit, desc, _diff, options=None): argument
448 project, commit, error=error)]
473 def check_commit_msg_prebuilt_apk_fields(project, commit, desc, diff, argument
505 project, commit, error=error)]
537 def check_commit_msg_test_field(project, commit, desc, _diff, options=None): argument
557 project, commit, error=error)]
604 def check_commit_msg_relnote_field_format(project, commit, desc, _diff, argument
641 project, commit, error=error))
666 project, commit,
701 project, commit,
745 project, commit,
772 def check_commit_msg_relnote_for_current_txt(project, commit, desc, diff, argument
802 project, commit, error=error)]
805 def check_cpplint(project, commit, _desc, diff, options=None): argument
815 return _check_cmd('cpplint', project, commit, cmd)
818 def check_gofmt(project, commit, _desc, diff, options=None): argument
828 data = rh.git.get_file_content(commit, d.file)
833 'gofmt', project, commit, error=result.stdout,
838 def check_json(project, commit, _desc, diff, options=None): argument
849 data = rh.git.get_file_content(commit, d.file)
854 'json', project, commit, error=str(e),
859 def _check_pylint(project, commit, _desc, diff, extra_args=None, options=None): argument
873 return _check_cmd('pylint', project, commit, cmd)
876 def check_pylint2(project, commit, desc, diff, options=None): argument
878 return _check_pylint(project, commit, desc, diff, options=options)
881 def check_pylint3(project, commit, desc, diff, options=None): argument
883 return _check_pylint(project, commit, desc, diff,
888 def check_rustfmt(project, commit, _desc, diff, options=None): argument
898 data = rh.git.get_file_content(commit, d.file)
904 'rustfmt', project, commit, error=result.stdout,
913 'rustfmt', project, commit, error=msg,
918 def check_xmllint(project, commit, _desc, diff, options=None): argument
959 return _check_cmd('xmllint', project, commit, cmd)
962 def check_android_test_mapping(project, commit, _desc, diff, options=None): argument
971 testmapping_args = ['--commit', commit]
974 return _check_cmd('android-test-mapping-format', project, commit, cmd)
977 def check_aidl_format(project, commit, _desc, diff, options=None): argument
987 data = rh.git.get_file_content(commit, d.file)
992 'aidl-format', project, commit, error=result.stdout,