From 224b97c1401fed1bfd0c157c677da4eedc14f239 Mon Sep 17 00:00:00 2001 From: Chris Mumford Date: Fri, 15 Jul 2022 05:32:45 -0700 Subject: [PATCH] Skip buildifier check on go_repositories.bzl during presubmit. go_repositories.bzl is generated by Gazelle, which does not add module/function docstrings. Skipping the buildifier check on this file to prevent presubmit failure. Bug: none Change-Id: I242319f25f2ba686efc2b0ade42852bbe28aabe3 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/558925 Reviewed-by: Kevin Lubick Commit-Queue: Chris Mumford --- PRESUBMIT.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PRESUBMIT.py b/PRESUBMIT.py index 915685abba..1ab3f7b319 100644 --- a/PRESUBMIT.py +++ b/PRESUBMIT.py @@ -356,7 +356,7 @@ def _CheckBuildifier(input_api, output_api): for affected_file in input_api.AffectedFiles(include_deletes=False): affected_file_path = affected_file.LocalPath() if affected_file_path.endswith('BUILD.bazel') or affected_file_path.endswith('.bzl'): - if not affected_file_path.endswith('public.bzl'): + if not affected_file_path.endswith('public.bzl') and not affected_file_path.endswith('go_repositories.bzl'): files.append(affected_file_path) if not files: return []