bazel-contrib / bazel-gazelle

Gazelle is a Bazel build file generator for Bazel projects. It natively supports Go and protobuf, and it may be extended to support new languages and custom rule sets.
Apache License 2.0
1.19k stars 378 forks source link

refactor: reduce path.join while walking repo #1913

Closed jbedard closed 4 weeks ago

jbedard commented 1 month ago

What type of PR is this?

refactor / perf

What package or component does this PR mostly affect?

all

What does this PR do? Why is it needed?

Reduce duplicate path.Join invocations. Remove duplicate isBazelIgnored invocations (it is not needed on the root dir, it is invoked before recursing).

Which issues(s) does this PR fix?

Fixes #

Other notes for review