Lines Matching refs:cmd
240 def _run(cmd, **kwargs): argument
248 return rh.utils.run(cmd, **kwargs)
307 def _fixup_func_caller(cmd, **kwargs): argument
315 result = _run(cmd, **kwargs)
322 def _check_cmd(hook_name, project, commit, cmd, fixup_func=None, **kwargs): argument
325 _run(cmd, **kwargs),
350 cmd = [bpfmt, '-l'] + options.args((), filtered)
354 result = _run(cmd, input=data)
365 cmd = ([tool, '-', '--root', project.dir] +
367 return _check_cmd('checkpatch.pl', project, commit, cmd,
379 cmd = [tool] + tool_args
381 return _check_cmd('clang-format', project, commit, cmd,
394 cmd = [tool] + tool_args
396 return _check_cmd('google-java-format', project, commit, cmd,
814 cmd = [cpplint] + options.args(('${PREUPLOAD_FILES}',), filtered)
815 return _check_cmd('cpplint', project, commit, cmd)
825 cmd = [gofmt, '-l'] + options.args((), filtered)
829 result = _run(cmd, input=data)
869 cmd = [
873 return _check_cmd('pylint', project, commit, cmd)
895 cmd = [rustfmt] + options.args((), filtered)
899 result = _run(cmd, input=data)
911 rh.shell.cmd_to_str(cmd + [d.file]))
957 cmd = ['xmllint'] + options.args(('${PREUPLOAD_FILES}',), filtered)
959 return _check_cmd('xmllint', project, commit, cmd)
972 cmd = [testmapping_format] + options.args(
974 return _check_cmd('android-test-mapping-format', project, commit, cmd)
984 cmd = [aidl_format, '-d'] + options.args((), filtered)
988 result = _run(cmd, input=data)