def lint_git_diff(linters, config_dict, _): # type: (str, Dict[str, str], List[str]) -> None """Lint git diff command entry point.""" file_names = gather_changed_files_for_lint(is_interesting_file) # Patch may have files that we do not want to check which is fine if file_names: _lint_files(linters, config_dict, file_names)
def lint_git_diff(clang_format): """ Lint the files that have changes since the last git commit. :param clang_format: Path to clang_format command. """ files = gather_changed_files_for_lint(is_interesting_file) if files: _lint_files(clang_format, files)
def lint_git_diff(eslint: Optional[str]) -> bool: """ Lint the files that have changes since the last git commit. :param eslint: Path to eslint command. :return: True if lint was successful. """ files = gather_changed_files_for_lint(is_interesting_file) # Patch may have files that we do not want to check which is fine if files: return _lint_files(eslint, files) return True