Lines Matching refs:diff

50     def __init__(self, diff=()):  argument
56 self.diff = diff
131 return [x.file for x in self.diff if x.status != 'D']
160 def expand_vars(args, diff=()): argument
162 replacer = Placeholders(diff=diff)
165 def args(self, default_args=(), diff=()): argument
179 return self.expand_vars(args, diff=diff)
229 def _filter_diff(diff, include_list, exclude_list=()): argument
246 for d in diff:
299 def check_custom(project, commit, _desc, diff, options=None, **kwargs): argument
301 return _check_cmd(options.name, project, commit, options.args((), diff),
305 def check_bpfmt(project, commit, _desc, diff, options=None): argument
307 filtered = _filter_diff(diff, [r'\.bp$'])
324 def check_checkpatch(project, commit, _desc, diff, options=None): argument
328 options.args(('--ignore=GERRIT_CHANGE_ID',), diff))
333 def check_clang_format(project, commit, _desc, diff, options=None): argument
340 options.args(('--style', 'file', '--commit', commit), diff))
435 def check_commit_msg_prebuilt_apk_fields(project, commit, desc, diff, argument
442 filtered = _filter_diff(diff, [r'\.apk$'])
673 def check_commit_msg_relnote_for_current_txt(project, commit, desc, diff, argument
684 diff,
706 def check_cpplint(project, commit, _desc, diff, options=None): argument
710 filtered = _filter_diff(diff, [r'\.(cc|h|cpp|cu|cuh)$'])
719 def check_gofmt(project, commit, _desc, diff, options=None): argument
721 filtered = _filter_diff(diff, [r'\.go$'])
738 def check_json(project, commit, _desc, diff, options=None): argument
743 filtered = _filter_diff(diff, [r'\.json$'])
759 def _check_pylint(project, commit, _desc, diff, extra_args=None, options=None): argument
761 filtered = _filter_diff(diff, [r'\.py$'])
776 def check_pylint2(project, commit, desc, diff, options=None): argument
778 return _check_pylint(project, commit, desc, diff, options=options)
781 def check_pylint3(project, commit, desc, diff, options=None): argument
783 return _check_pylint(project, commit, desc, diff,
788 def check_rustfmt(project, commit, _desc, diff, options=None): argument
790 filtered = _filter_diff(diff, [r'\.rs$'])
799 def check_xmllint(project, commit, _desc, diff, options=None): argument
832 filtered = _filter_diff(diff, [r'\.(%s)$' % '|'.join(extensions)])
843 def check_android_test_mapping(project, commit, _desc, diff, options=None): argument
847 filtered = _filter_diff(diff, [r'(^|.*/)TEST_MAPPING$'])