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.21k stars 382 forks source link

refactor: add nil assignments to verify interface implementations #1883

Closed jbedard closed 3 months ago

jbedard commented 3 months ago

Just something I find useful both for the assertion and devx when browsing the code. Now each struct explicitly declares which interface it's implementing and you'll get an error directly beside that struct if something is wrong.

What type of PR is this?

Other

What package or component does this PR mostly affect? all

What does this PR do? Why is it needed?

Minor cleanup