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: add nil assignments to verify interface implementations #1883

Closed jbedard closed 1 month ago

jbedard commented 1 month 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