def lint_patch(file_name: str) -> None: """Lint patch command entry point.""" file_names = git.get_files_to_check_from_patch(file_name, is_interesting_file) # Patch may have files that we do not want to check which is fine if file_names: _lint_files(file_names)
def lint_patch(clang_format, infile): """Lint patch command entry point.""" files = git.get_files_to_check_from_patch(infile, is_interesting_file) # Patch may have files that we do not want to check which is fine if files: _lint_files(clang_format, files)
def lint_patch(linters, config_dict, file_name): # type: (str, Dict[str, str], List[str]) -> None """Lint patch command entry point.""" file_names = git.get_files_to_check_from_patch(file_name, 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_patch(eslint, infile): """Lint patch command entry point """ files = git.get_files_to_check_from_patch(infile, 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