Skip to content

Commit

Permalink
Support --incompatible_disallow_empty_glob
Browse files Browse the repository at this point in the history
Fixes #25.
  • Loading branch information
nya3jp committed Nov 26, 2024
1 parent c72010a commit 6f9e2d1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lint/defs.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ def buildifier_test(name, srcs, type = "auto", **kwargs):
)

def lint_all():
py_srcs = native.glob(["*.py"])
py_srcs = native.glob(["*.py"], allow_empty = True)
if py_srcs:
pycodestyle_test(name = "pycodestyle_test", srcs = py_srcs)
bzl_srcs = native.glob(["WORKSPACE", "WORKSPACE.bazel", "BUILD", "BUILD.bazel", "*.bzl"])
bzl_srcs = native.glob(["WORKSPACE", "WORKSPACE.bazel", "BUILD", "BUILD.bazel", "*.bzl"], allow_empty = True)
if bzl_srcs:
buildifier_test(name = "buildifier_test", srcs = bzl_srcs)

0 comments on commit 6f9e2d1

Please sign in to comment.